IGetClusterNetworkInfo::GetNetworkHandle method (cluadmex.h)

[This method is available for use in the operating systems specified in the Requirements section. Support for this method was removed in Windows Server 2008.]

Retrieves a handle to a network.

Syntax

HNETWORK GetNetworkHandle(
  [in] LONG lObjIndex
);

Parameters

[in] lObjIndex

A number representing the zero-based index of the target network. lObjIndex is restricted to the number that can be retrieved by calling IGetClusterDataInfo::GetObjectCount.

Return value

If GetNetworkHandle is successful, it returns a handle for the network represented by lObjIndex.

If GetNetworkHandle is not successful, it returns NULL. For more information about the error, call the function GetLastError.

Remarks

Do not close the handle obtained through this method.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2003 Enterprise, Windows Server 2003 Datacenter
Target Platform Windows
Header cluadmex.h

See also

IGetClusterDataInfo::GetObjectCount

IGetClusterNetworkInfo