Registry Reference
Last updated
Last updated
Registy paths and root keys |
---|
Script | Function |
---|---|
gkScript::openRegistry()
Will create a registry object
For all operations, use fully qualified path strings.
Paths strings to values include the value name.
To address the the key's unnamed or default value, e.g. "HKLM\Software\" for the default value of the key "HKEY_LOCAL_MACHINE\Software".
Paths must start with one of the following default keys, or it's appreviation: HKCR or HKEY_CLASSES_ROOT HKCU or HKEY_CURRENT_USER HKLM or HKEY_LOCAL_MACHINE HKU or HKEY_USERS HKCC or HKEY_CURRENT_CONFIG HKPD or HKEY_PERFORMANCE_DATA
The Registry always opens the 64-bit registry paths. To use the 32-bit path you need explicit addressing, e.g. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
Registry::readString
Will return UTF8 strings
Registry::readValue
Will return UTF16 strings for all registry string types (REG_SZ, REG_EXPAND_SZ, REG_MULTI_SZ).