DECLAREINTEGER GetInterfaceInfo IN iphlpapi;
STRING @ pIfTable,;
LONG @ dwOutBufLen
[in] Pointer to a buffer that specifies a IP_INTERFACE_INFO structure that contains the list of adapters.
[out] Pointer to a DWORD variable. If the buffer pointed to by the pIfTable parameter is NULL, or is not large enough to contain the list of adapters, GetInterfaceInfo receives the required size in this DWORD variable.
If the function succeeds, the return value is NO_ERROR.
Normally this functionality is achieved through IPCONFIG /all call.