Platform SDK: Internet Protocol Helper |
The GetInterfaceInfo function obtains a list of the network interface adapters on the local system.
DWORD GetInterfaceInfo( PIP_INTERFACE_INFO pIfTable, // buffer to receive info PULONG dwOutBufLen // size of buffer );
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
Value | Meaning |
---|---|
ERROR_INVALID_PARAMETER | The dwOutBufLen parameter is NULL, or GetInterfaceInterface is unable to write to the memory pointed to by the dwOutBufLen parameter. |
ERROR_INSUFFICIENT_BUFFER | The buffer pointed to by the pIfTable parameter is not large enough. The required size is returned in the DWORD variable pointed to by the dwOutBufLen parameter. |
ERROR_NOT_SUPPORTED | This function is not supported on the operating system in use on the local system. |
Other | Use FormatMessage to obtain the message string for the returned error. |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 98.
Header: Declared in Iphlpapi.h.
Library: Use Iphlpapi.lib.