The WNetGetNetworkInformation function returns extended information about a specific network provider whose name was returned by a previous network enumeration.
DWORD WNetGetNetworkInformationA( LPCSTR lpProvider, LPNETINFOSTRUCT lpNetInfoStruct );
Pointer to a constant null-terminated string that contains the name of the network provider for which information is required.
Pointer to a NETINFOSTRUCT structure. The structure describes characteristics of the network.
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is a system error code, such as one of the following values.
||The lpProvider parameter does not match any running network provider.|
||The cbStructure member of the NETINFOSTRUCT structure does not contain a valid structure size.|
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|