Using UNIX Ioctls in Winsock
The SIOCGIFCONF command provided by most UNIX implementations is supported in the form of WSAIoctl and WSPIoctl functions with the command SIO_GET_INTERFACE_LIST. This command returns the list of configured interfaces and their parameters.
Note
Support of this command is mandatory for Windows Sockets 2-compliant TCP/IP service providers.
The parameter lpvOutBuffer points to the buffer in which WSAIoctl and WSPIoctl store the information about interfaces. The number of interfaces (number of structures returned in lpvOutBuffer) can be determined based on the actual length of the output buffer returned in lpcbBytesReturned.
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