SetClusterName

The SetClusterName function sets the name for a cluster.

DWORD WINAPI SetClusterName(
  HCLUSTER hCluster,          
  LPCWSTR lpszNewClusterName  
);
 

Parameters

hCluster
[in] Handle to a cluster to rename.
lpszNewClusterName
[in] Pointer to the new cluster name.

Return Values

ERROR_RESOURCE_PROPERTIES_STORED
The operation was successful.

If the operation was unsuccessful, SetClusterName returns a Win32 error value.

Remarks

The cluster name is the Name property of the core Network Name resource, the Network Name resource of the cluster. Because of possible dependencies on this resource, the change is not effective until the Network Name resource is brought back online.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.