INetworkListManager::GetNetwork method (netlistmgr.h)

The GetNetwork method retrieves a network based on a supplied network ID.

Syntax

HRESULT GetNetwork(
  [in]  GUID     gdNetworkId,
  [out] INetwork **ppNetwork
);

Parameters

[in] gdNetworkId

GUID that specifies the network ID.

[out] ppNetwork

Pointer to a pointer that receives the INetwork interface instance for this network.

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