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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for