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

# AllocateAndGetIpAddrTableFromStack(3w)

## NAME

**AllocateAndGetIpAddrTableFromStack** (IPHLPAPI.@)

## SYNOPSIS

DWORD AllocateAndGetIpAddrTableFromStack\
  (\
   PMIB\_IPADDRTABLE\* *ppIpAddrTable*,\
   BOOL              *bOrder*,\
   HANDLE            *heap*,\
   DWORD             *flags*\
  )

## DESCRIPTION

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

## PARAMS

*ppIpAddrTable* **\[Out\]**  pointer into which the **MIB\_IPADDRTABLE** 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 *ppIpAddrTable* is **NULL**, other error codes on failure, **NO\_ERROR** on success.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/iphlpapi/iphlpapi\_main.c"**.

Debug channel **"iphlpapi"**.
