Windows Toolkit - win32_WriteRegistry
- Loadable Function:
code =
win32_WriteRegistry(key, subkey, valuename, value)
-
Write a value to the Windows registry.
Example:
key='test\\temp'; win32_WriteRegistry('HKLM',key,'test_value', 0)
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 write to the registry.
value is the value to write. It must be a a string or an integer value.
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