INetworkListManager::GetNetworks method

The GetNetworks method retrieves the list of networks available on the local machine.

Syntax

HRESULT GetNetworks(
  NLM_ENUM_NETWORK Flags,
  IEnumNetworks    **ppEnumNetwork
);

Parameters

Flags

NLM_ENUM_NETWORK enumeration value that specifies the flags for the network (specifically, connected or not connected).

ppEnumNetwork

Pointer to a pointer that receives an IEnumNetworks interface instance that contains the enumerator for the list of available networks.

Return Value

Returns S_OK if the method succeeds. Otherwise, the method returns one of the following values.

Return code Description
E_POINTER
The pointer passed is NULL.
E_UNEXPECTED
The GUID is invalid.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header netlistmgr.h

See Also

INetworkListManager