GetClusterGroupKey

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

HKEY WINAPI GetClusterGroupKey(
  HGROUP hGroup,     
  REGSAM samDesired  
);
 

Parameters

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

Return Values

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

If the operation was successful, GetClusterGroupKey returns a database key handle for the group.

Remarks

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

QuickInfo

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