INetworkListManager::GetNetworks method (netlistmgr.h)

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

Syntax

HRESULT GetNetworks(
  [in]  NLM_ENUM_NETWORK Flags,
  [out] IEnumNetworks    **ppEnumNetwork
);

Parameters

[in] Flags

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

[out] 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

Requirement Value
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