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

# AllocateAndGetIpNetTableFromStack(3w)

## NAME

**AllocateAndGetIpNetTableFromStack** (IPHLPAPI.@)

## SYNOPSIS

DWORD AllocateAndGetIpNetTableFromStack\
  (\
   PMIB\_IPNETTABLE\* *ppIpNetTable*,\
   BOOL             *bOrder*,\
   HANDLE           *heap*,\
   DWORD            *flags*\
  )

## DESCRIPTION

Get the IP-to-physical address mapping table. Like **[GetIpNetTable(3w)](/GetIpNetTable/3w.md)**, but allocate the returned table from *heap*.

## PARAMS

*ppIpNetTable* **\[Out\]**  pointer into which the **MIB\_IPNETTABLE** 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 *ppIpNetTable* 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"**.
