Windows Toolkit - win32_DeleteRegistry
- Loadable Function:
code =
win32_DeleteRegistry(key, subkey, valuename)
-
Delete a value from the Windows registry.
Example:
key='test\\temp'; # create key win32_WriteRegistry('HKLM',key,'test_value', 0) # delete it win32_DeleteRegistry('HKLM',key,'test_value')
key must be one of the following strings:
- HKCR
HKEY_CLASSES_ROOT
- HKCU
HKEY_CURRENT_USER
- HKLM
HKEY_LOCAL_MACHINE
- HKU
HKEY_USERS
subkey is the subkey to the registry value.
valuename is the name of the value to delete from the registry.
code is the success code. Values correspond to the codes in the winerror.h header file. The code of 0 is success, while other codes indicate failure