PCLUSAPI_ADD_CLUSTER_NODE callback function

Adds a node to an existing cluster. The PCLUSAPI_ADD_CLUSTER_NODE type defines a pointer to this function.

Syntax

PCLUSAPI_ADD_CLUSTER_NODE PclusapiAddClusterNode;

HNODE PclusapiAddClusterNode(
  HCLUSTER hCluster,
  PCWSTR lpszNodeName,
  PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback,
  PVOID pvCallbackArg
)
{...}

Parameters

hCluster

Handle to a cluster, returned by the OpenCluster or CreateCluster function.

lpszNodeName

Name of the computer to add to the cluster.

pfnProgressCallback

Optional address to a PCLUSTER_SETUP_PROGRESS_CALLBACK callback function.

pvCallbackArg

Argument for the callback function.

Return Value

Handle to the new node or NULL to indicate that the node was not successfully added to the cluster. For more information about the error, call the GetLastError function.

Remarks

After the CreateCluster function successfully completes, at least 30 seconds should be allowed before the AddClusterNode function is called to add additional nodes.

Requirements

   
Windows version None supported Windows Server 2008 Datacenter, Windows Server 2008 Enterprise
Target Platform Windows
Header clusapi.h

See Also

CreateCluster

Node Management Functions

PCLUSTER_SETUP_PROGRESS_CALLBACK