Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CeRegDeleteKey (RAPI)

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function deletes a subkey from the specified registry key on a remote Windows Embedded CE–based device. The subkey to be deleted cannot have any subkeys.


LONG CeRegDeleteKey( 
  HKEY hKey, 
  LPCWSTR lpszSubKey 
);

hKey

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

HKEY_CLASSES_ROOT

HKEY_CURRENT_USER

HKEY_LOCAL_MACHINE

HKEY_USERS

The key specified by the lpSubKey parameter must be a subkey of the key identified by hKey.

lpszSubKey

[in] Pointer to a null-terminated string specifying the name of the key to delete. This parameter cannot be NULL.

ERROR_SUCCESS indicates success. A nonzero error code defined in Winerror.h indicates failure. To get a generic description of the error, call FormatMessage with the FORMAT_MESSAGE_FROM_SYSTEM flag set.

If the function succeeds, CeRegDeleteKey removes the specified key from the registry. The entire key, including all of its values, is removed. An application cannot call CeRegDeleteKey for a key that an application currently has open.

To open the key, use the CeRegCreateKeyEx or CeRegOpenKeyEx function.

Headerrapi.h
Libraryrapi.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Community Additions

Show:
© 2015 Microsoft