ClusterRegQueryInfoKey

The ClusterRegQueryInfoKey function returns information about a cluster database key.

LONG WINAPI ClusterRegQueryInfoKey(
  HKEY hKey,                   
  LPDWORD lpcSubKeys,          
  LPDWORD lpcbMaxSubKeylen,    
  LPDWORD lpcValues,           
  LPDWORD lpcbMaxValueNameLen,  
  LPDWORD lpcbMaxValueLen,     
  LPDWORD lpcbSecurityDescriptor,  
  PFILETIME lpftLastWriteTime  
);
 

Parameters

hKey
[in] Handle to a cluster database key.
lpcSubKeys
[in] Pointer to a count of the number of subkeys contained by the cluster database key represented by hKey.
lpcbMaxSubKeylen
[in] Pointer to a count of the number of characters in the subkey with the longest name, excluding the terminating NULL character. This parameter can be NULL.
lpcValues
[in] Pointer to a count of the number of values associated with the cluster database key. This parameter can be NULL.
lpcbMaxValueNameLen
[in] Pointer to a count of the number of characters in the cluster database key's longest value name, excluding the terminating NULL character. This parameter can be NULL.
lpcbMaxValueLen
[in] Pointer to a count of the number of bytes of the longest data component among the cluster database key's values. This parameter can be NULL.
lpcbSecurityDescriptor
[in] Pointer to a count of the number of bytes in the cluster database key's security descriptor. This parameter can be NULL.
lpftLastWriteTime
[in] Pointer to the time that the cluster database key or any of its value entries was last modified. This parameter can be NULL.

Return Values

ERROR_SUCCESS
The operation was successful.

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

QuickInfo

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