Group: Windows Networking - Library: mpr
The WNetGetNetworkInformation function returns extended information about a specific network provider whose name was returned by a previous network enumeration.
Retrieving Network Provider information
DWORD WNetGetNetworkInformation(
LPCTSTR lpProvider, // provider name
LPNETINFOSTRUCT lpNetInfoStruct // network information
); DECLARE INTEGER WNetGetNetworkInformation IN mpr;
STRING lpProvider,;
STRING @ lpNetInfoStruct lpProvider [in] Pointer to a constant null-terminated string that contains the name of the network provider for which information is required.
lpNetInfoStruct [out] Pointer to a NETINFOSTRUCT structure. The structure describes characteristics of the network.
If the function succeeds, the return value is NO_ERROR (0).
Home