GetClusterKey

The GetClusterKey function opens the root of the cluster database subtree for a cluster.

HKEY WINAPI GetClusterKey(
  HCLUSTER hCluster, 
  REGSAM samDesired  
);
 

Parameters

hCluster
[in] Handle to a cluster.
samDesired
[in] Access mask that describes the desired security access for the new key.

Return Values

NULL
The operation was unsuccessful. For detailed information about the error, call the Win32 function GetLastError.

If the operation was successful, GetClusterKey returns a database key handle for the cluster.

Remarks

The GetClusterKey function returns a handle to a cluster database key representing the cluster database subtree root for the cluster identified by hCluster. Callers should call ClusterRegCloseKey to close the key handle retrieved by GetClusterKey when they are done with it.