ClusterRegQueryInfoKey function (clusapi.h)

Returns information about a cluster database key.

Syntax

LONG ClusterRegQueryInfoKey(
  [in] HKEY      hKey,
  [in] LPDWORD   lpcSubKeys,
  [in] LPDWORD   lpcchMaxSubKeyLen,
  [in] LPDWORD   lpcValues,
  [in] LPDWORD   lpcchMaxValueNameLen,
  [in] LPDWORD   lpcbMaxValueLen,
  [in] LPDWORD   lpcbSecurityDescriptor,
  [in] PFILETIME lpftLastWriteTime
);

Parameters

[in] hKey

Handle to a cluster database key. All subsequent parameters describe the contents of the key.

[in] lpcSubKeys

If not NULL, pointer to the number of subkeys in the specified key.

[in] lpcchMaxSubKeyLen

If not NULL, pointer to the number of characters in the longest subkey name in the specified key. The number does not include the terminating NULL.

[in] lpcValues

If not NULL, pointer to the number of values in the specified key.

[in] lpcchMaxValueNameLen

If not NULL, pointer to the number of characters in the longest value name in the specified key. The number does not include the terminating NULL.

[in] lpcbMaxValueLen

If not NULL, pointer to the byte size of the largest data value in the specified key.

[in] lpcbSecurityDescriptor

If not NULL, pointer to the byte size of the specified key's security descriptor.

[in] lpftLastWriteTime

If not NULL, pointer to the time of the most recent modification to the specified key or any of its contents.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

See also

ClusterRegOpenKey