This returns extended information about a specific network whose name was returned by a network enumeration.
DWORD WNetGetNetworkInformation( LPTSTR lpProvider, LPNETINFOSTRUCT lpNetInfoStruct );
lpProvider
Pointer to the name of the provider for which information is required.
lpNetInfoStruct
Pointer to a structure that describes the behavior of the network. This structure has the following format: