ClusterRegDeleteKey

The ClusterRegDeleteKey function deletes a cluster database key.

LONG WINAPI ClusterRegDeleteKey(
  HKEY hKey,          
  LPCWSTR lpszSubKey  
);
 

Parameters

hKey
[in] Handle to a currently open key.
lpszSubKey
[in] Pointer to a NULL-terminated string specifying the name of the key to delete. The key pointed to by lpszSubKey cannot have subkeys; ClusterRegDeleteKey can only delete keys without subkeys. This parameter cannot be NULL.

Return Values

ERROR_SUCCESS
The operation was successful.

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

Remarks

Unlike the RegDeleteKey function that deletes a key from the system registry on Microsoft® Windows® 95 operating systems, ClusterRegDeleteKey cannot delete a key that has one or more subkeys. This behavior is identical to the behavior of RegDeleteKey on the Microsoft® Windows NT® Server network operating system.

QuickInfo

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