Deletes the specified subkey from the registry. The entire key, including all of its values, is removed. The subkey cannot have subkeys.
LONG RegDeleteKey( HKEY hKey, LPCTSTR lpSubKey );
hKey
The key specified by the lpSubKey parameter must be a subkey of the key identified by hKey.
lpSubKey
If the function succeeds, RegDeleteKey removes the specified key from the registry. The entire key, including all its values, is removed. An application cannot call RegDeleteKey for a key that an application currently has open.
To open the key, use RegCreateKeyEx or RegOpenKeyEx.
ERROR_SUCCESS
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/iwin32.h | iwin32.h iwin32rt.h |
rt.lib |
Note
This function operates in the real-time portion of your application.
RegCreateKeyEx, RegOpenKeyEx, iwin32 API, iwin32 Overview