NhpAllocateAndGetInterfaceInfoFromStack (Compact 2013)
3/26/2014
Deprecated.
This function obtains adapter information about the local device.
Note
The NhpAllocateAndGetInterfaceInfoFromStack function has been deprecated. Use the GetAdaptersAddresses function instead.
Syntax
DWORD NhpAllocateAndGetInterfaceInfoFromStack(
IP_INTERFACE_NAME_INFO ppTable,
PDWORD pdwCount,
BOOL bOrder,
HANDLE hHeap,
DWORD dwFlags
);
Parameters
- ppTable
An array of IP_INTERFACE_NAME_INFO structures that contains information about each adapter on the local system. The array contains one element for each adapter on the system.
- pdwCount
The number of elements in the ppTable array.
- bOrder
When TRUE, elements in the ppTable array are sorted by increasing index value.
- hHeap
A handle that specifies the heap from which ppTable should be allocated. This parameter can be the process heap returned by a call to the GetProcessHeap function, or a private heap created by a call to the HeapCreate function.
- dwFlags
A set of flags to be passed to the HeapAlloc function when allocating memory for ppTable. See the HeapAlloc function for more information.
Return Value
Returns ERROR_SUCCESS upon successful completion.
Remarks
The NhpAllocateAndGetInterfaceInfoFromStack function obtains adapter information about the local device and returns this information as an array of IP_INTERFACE_NAME_INFO structures. The NhpAllocateAndGetInterfaceInfoFromStack function has been deprecated. The GetAdaptersAddresses function and the associated IP_ADAPTER_ADDRESSES structure should be used instead.
See Also
Reference
IP Helper Functions
GetAdaptersAddresses
IP_INTERFACE_NAME_INFO