Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|---|---|
|
The pointer passed is NULL. |
|
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 |