GetUniDirectionalAdapterInfo function (iphlpapi.h)

The GetUniDirectionalAdapterInfo function retrieves information about the unidirectional adapters installed on the local computer. A unidirectional adapter is an adapter that can receive datagrams, but not transmit them.

Syntax

IPHLPAPI_DLL_LINKAGE DWORD GetUniDirectionalAdapterInfo(
  [out] PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS pIPIfInfo,
  [out] PULONG                             dwOutBufLen
);

Parameters

[out] pIPIfInfo

Pointer to an IP_UNIDIRECTIONAL_ADAPTER_ADDRESS structure that receives information about the unidirectional adapters installed on the local computer.

[out] dwOutBufLen

Pointer to a ULONG variable that receives the size of the structure pointed to by the pIPIfInfo parameter.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, use FormatMessage to obtain the message string for the returned error.

Requirements

Requirement Value
Target Platform Windows
Header iphlpapi.h
Library Iphlpapi.lib
DLL Iphlpapi.dll

See also

IP Helper Function Reference

IP Helper Start Page

IP_UNIDIRECTIONAL_ADAPTER_ADDRESS