CreateClusterNameAccount function

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 WINAPI CreateClusterNameAccount(
  _In_     HCLUSTER                         hCluster,
  _In_     PCREATE_CLUSTER_NAME_ACCOUNT     pConfig,
  _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback,
  _In_opt_ PVOID                            pvCallbackArg
);

typedef DWORD (*PCLUSAPI_CREATE_CLUSTER_NAME_ACCOUNT)(
    _In_     PCREATE_CLUSTER_NAME_ACCOUNT     pConfig,
    _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback,
    _In_opt_ PVOID                            pvCallbackArg
);

Parameters

hCluster [in]

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

pConfig [in]

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.

pfnProgressCallback [in, optional]

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

pvCallbackArg [in, optional]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2016

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

Failover Cluster Management Functions

 

 

Show: