ClusterRegOpenKey

The ClusterRegOpenKey function opens a cluster database key.

LONG WINAPI ClusterRegOpenKey(
  HKEY hKey,          
  LPCWSTR lpszSubKey, 
  REGSAM samDesired,  
  PHKEY phkResult     
);
 

Parameters

hKey
[in] Handle to a currently open key. This parameter cannot be NULL.
lpszSubKey
[in] Pointer to a NULL-terminated string specifying the name of a subkey that ClusterRegOpenKey opens or creates. The contents of lpszSubKey must be a subkey of the key identified by hKey, must not begin with the backslash character ( \ ), and must not be NULL.
samDesired
[in] Access mask that specifies the desired security access for the new key.
phkResult
[out] Pointer to a handle to the opened or created key.

Return Values

ERROR_SUCCESS
The operation was successful.

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

Remarks

Callers should call ClusterRegCloseKey to close the key handle opened by ClusterRegOpenKey when they are done with it. For more information, see the related Win32 functions RegOpenKey and RegOpenKeyEx.

QuickInfo

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