win32api.RegSetValue
RegSetValue(key, subKey, type, value)
Associates a value with a specified key. Currently, only strings are supported.
Parameters
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
Comments
If the key specified by the lpszSubKey parameter does not exist, the RegSetValue function creates it.Value lengths are limited by available memory. Long values (more than 2048 bytes) should be stored as files with the filenames stored in the configuration registry. This helps the registry perform efficiently.
The key identified by the key parameter must have been opened with KEY_SET_VALUE access.
Win32 API References