OpenClusterNetwork function (clusapi.h)

Opens a connection to a network and returns a handle to it. The PCLUSAPI_OPEN_CLUSTER_NETWORK type defines a pointer to this function.

Syntax

HNETWORK OpenClusterNetwork(
  [in] HCLUSTER hCluster,
  [in] LPCWSTR  lpszNetworkName
);

Parameters

[in] hCluster

Handle to a cluster.

[in] lpszNetworkName

Pointer to the name of an existing network.

Return value

Return code Description
NULL
The operation was not successful. For more information about the error, call the function GetLastError.
 

If the operation was successful, OpenClusterNetwork returns a network handle.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

See also

CloseClusterNetwork

Failover Cluster Network Management Functions

OpenClusterNetworkEx