Group: Windows Networking - Library: mpr
Obtaining provider name for a specific type of network
DWORD WNetGetProviderName(
DWORD dwNetType, // network type
LPTSTR lpProviderName, // provider name buffer
LPDWORD lpBufferSize // size of buffer
);
DECLARE INTEGER WNetGetProviderName IN mpr;
INTEGER dwNetType,;
STRING @ lpProviderName,;
INTEGER @ lpBufferSize
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.
If the function succeeds, the return value is NO_ERROR (0).
You can find a complete list of network types in the header file Winnetwk.h.