CreateClusterNameAccount function (clusapi.h)

Creates a cluster name resource and then uses it add a cluster to a domain, even if the machines that host the cluster aren't members of the domain.The PCLUSAPI_CREATE_CLUSTER_NAME_ACCOUNT type defines a pointer to this function.

Syntax

DWORD CreateClusterNameAccount(
  [in]           HCLUSTER                         hCluster,
  [in]           PCREATE_CLUSTER_NAME_ACCOUNT     pConfig,
  [in, optional] PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback,
  [in, optional] PVOID                            pvCallbackArg
);

Parameters

[in] hCluster

A handle to the cluster to add the cluster name resource to.

[in] pConfig

A pointer to the CREATE_CLUSTER_NAME_ACCOUNT structure that contains the information about the cluster name resource to create, and the domain credentials to use.

[in, optional] pfnProgressCallback

A pointer to the ClusterSetupProgressCallback callback function that receives the status of updates to the cluster.

[in, optional] pvCallbackArg

Callback function arguments for the pfnProgressCallback parameter.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS. If the operation fails, the function returns a system error code.

Requirements

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

See also

Failover Cluster Management Functions