DeleteRegistryKey method


Syntax

Invoke DeleteRegistryKey, hKey, lpszSubKey

Function

Deletes a registry subkey and all its descendants.

Parameters

hKey

Handle to one of the following predefined keys:

ecClassesRoot
ecCurrentUser
ecLocalMachine
ecUsers
ecPerformanceData
ecCurrentConfig
ecDynData

lpszSubKey

Pointer to the effective address of a null-terminated string that names the path of the subkey to be deleted.

Return value

Eax returns TRUE if successfull, or FALSE if not.