Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.13 KB

File metadata and controls

52 lines (35 loc) · 1.13 KB

Home

Function name : CeRegDeleteKey

Group: Remote Application Programming (RAPI) - Library: rapi


This function deletes a named subkey from the specified registry key. The subkey to be deleted cannot have any subkeys.


Code examples:

Pocket PC: custom RAPI class for operating with the System Registry

Declaration:

LONG CeRegDeleteKey(
  HKEY hKey,
  LPCWSTR lpszSubKey
);  

FoxPro declaration:

DECLARE INTEGER CeRegDeleteKey IN rapi;
	INTEGER hKey,;
	STRING  lpszSubKey  

Parameters:

hKey [in] Handle to a currently open key or one of the predefined reserved handle values.

lpszSubKey [in] Pointer to a null-terminated string specifying the name of the key to delete.


Return value:

ERROR_SUCCESS (0) indicates success.


Comments:

While testing this function I noticed that you are still able to delete a key with subkeys.