GetClusterResourceKey function

Opens the root of the cluster database subtree for a resource.

Syntax

HKEY GetClusterResourceKey(
  HRESOURCE hResource,
  REGSAM    samDesired
);

Parameters

hResource

Handle to a resource.

samDesired

Access mask that describes the security access needed for the opened key.

Return Value

If the operation succeeds, the function returns a registry key handle for the resource.

If the operation fails, the function returns NULL. For more information about the error, call GetLastError.

Remarks

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

Requirements

   
Windows version None supported Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

See Also

ClusterRegCloseKey

OpenClusterResource