---
name: "AllocateAndGetIpForwardTableFromStack"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/AllocateAndGetIpForwardTableFromStack"
---

# AllocateAndGetIpForwardTableFromStack(3w)

## NAME

**AllocateAndGetIpForwardTableFromStack** (IPHLPAPI.@)

## SYNOPSIS

DWORD AllocateAndGetIpForwardTableFromStack\
  (\
   PMIB\_IPFORWARDTABLE\* *ppIpForwardTable*,\
   BOOL                 *bOrder*,\
   HANDLE               *heap*,\
   DWORD                *flags*\
  )

## DESCRIPTION

Get the route table. Like **[GetIpForwardTable(3w)](/GetIpForwardTable/3w.md)**, but allocate the returned table from *heap*.

## PARAMS

*ppIpForwardTable* **\[Out\]**  pointer into which the **MIB\_IPFORWARDTABLE** is allocated and returned.

*bOrder* **\[In\]**  whether to sort the table.

*heap* **\[In\]**  *heap* from which the table is allocated.

*flags* **\[In\]**  *flags* to HeapAlloc.

## RETURNS

**ERROR\_INVALID\_PARAMETER** if ppIfTable is **NULL**, other error codes on failure, **NO\_ERROR** on success.

## IMPLEMENTATION

Declared in **"ipstats.h"**.

Implemented in **"dlls/iphlpapi/ipstats.c"**.

Debug channel **"iphlpapi"**.
