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

# AllocateAndGetIfTableFromStack(3w)

## NAME

**AllocateAndGetIfTableFromStack** (IPHLPAPI.@)

## SYNOPSIS

DWORD AllocateAndGetIfTableFromStack\
  (\
   PMIB\_IFTABLE\* *ppIfTable*,\
   BOOL          *bOrder*,\
   HANDLE        *heap*,\
   DWORD         *flags*\
  )

## DESCRIPTION

Get table of local interfaces. Like **[GetIfTable(3w)](/GetIfTable/3w.md)**, but allocate the returned table from *heap*.

## PARAMS

*ppIfTable* **\[Out\]**  pointer into which the **MIB\_IFTABLE** 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**, whatever GetIfTable() returns otherwise.

## 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"**.
