Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.28 KB

WNetGetProviderName.md

File metadata and controls

58 lines (39 loc) · 1.28 KB

Home

Function name : WNetGetProviderName

Group: Windows Networking - Library: mpr


The WNetGetProviderName function obtains the provider name for a specific type of network.


Code examples:

Obtaining provider name for a specific type of network

Declaration:

DWORD WNetGetProviderName(
  DWORD dwNetType,       // network type
  LPTSTR lpProviderName, // provider name buffer
  LPDWORD lpBufferSize   // size of buffer
);  

FoxPro declaration:

DECLARE INTEGER WNetGetProviderName IN mpr;
	INTEGER   dwNetType,;
	STRING  @ lpProviderName,;
	INTEGER @ lpBufferSize
  

Parameters:

dwNetType [in] Specifies the network type that is unique to the network.

lpProviderName [out] Pointer to a buffer in which to return the network provider name.

lpBufferSize [in/out] Specifies the size, in characters, of the buffer passed to the function.


Return value:

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


Comments:

You can find a complete list of network types in the header file Winnetwk.h.