Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.2 KB

File metadata and controls

46 lines (32 loc) · 1.2 KB

Home

Function name : WNetGetNetworkInformation

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.


Code examples:

Retrieving Network Provider information

Declaration:

DWORD WNetGetNetworkInformation(
  LPCTSTR lpProvider,              // provider name
  LPNETINFOSTRUCT lpNetInfoStruct  // network information
);  

FoxPro declaration:

DECLARE INTEGER WNetGetNetworkInformation IN mpr;
	STRING   lpProvider,;
	STRING @ lpNetInfoStruct  

Parameters:

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.


Return value:

If the function succeeds, the return value is NO_ERROR (0).