Share via


GetPerAdapterInfo (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

IP Helper Functions
IP_PER_ADAPTER_INFO