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:
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
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
Package: windows