GetPerAdapterInfo
A version of this page is also available for
4/8/2010
This function retrieves information about the adapter corresponding to the specified interface.
Syntax
DWORD GetPerAdapterInfo(
ULONG IfIndex,
PIP_PER_ADAPTER_INFO pPerAdapterInfo,
PULONG pOutBufLen
);
Parameters
- IfIndex
[in] The index of an interface for which to retrieve adapter information.
- pPerAdapterInfo
[out] Pointer to an IP_PER_ADAPTER_INFO structure containing information about the adapter.
- pOutBufLen
[in, out] Pointer to the size, in bytes, of the structure indicated by the pPerAdapterInfo parameter. If this size is insufficient to hold the information, the function provides the required size, and returns an error code of ERROR_BUFFER_OVERFLOW.
Return Value
Returns NO_ERROR if successful. If the function fails, it returns an error code. For a complete list of error codes, see Error Values or the SDK header file Winerror.h.
Requirements
Header | iphlpapi.h |
Library | Iphlpapi.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |