Reg_SetExpandStringX64
Description
Section titled “Description”Sets the value of a registry variable of type expandable string (REG_EXPAND_SZ) in 64 bit registry from a 32 bit context. If the key doesn’t exist, it’s created.
The value is written as it is: environment variables such as %temp% aren’t expanded.
Syntax
Section titled “Syntax”Reg_SetExpandStringX64(sHandle, sKey, sVariable, sValue) as Boolean
Parameters
Section titled “Parameters”sHandle (String)
Section titled “sHandle (String)”Registry hive, for example HKLM. For all accepted values, see Registry Functions.
sKey (String)
Section titled “sKey (String)”Subkey path
sVariable (String)
Section titled “sVariable (String)”Name of variable to contain the value
sValue (String)
Section titled “sValue (String)”Value
Example
Section titled “Example”If bStatus Then bStatus = Reg_SetExpandStringX64("HKLM", "Software\KeyName", "ValueName", "%temp%")