Reg_GetExpandStringX64
Description
Gets the value of a registry variable of type expandable string in 64 bit registry from a 32 bit context
Â
Syntax
Reg_GetExpandStringX64(sHandle, sKey, sVariable, bMustExist) as Boolean
Â
Parameters
sHandle (String)
HKEY-handle
sKey (String)
Subkey path
sVariable (String)
Name of variable to read
bMustExist (Boolean)
TRUE if variable must exist
Â
Return value
Result will be stored in gsValue.
Note: The value returned is not being interpreted or converted in any way. Meaning that if the function returns the value "%USERPROFILE%\My Documents", it is not being converted into e.g. C:\Documents and Settings\Administrator\My Documents.
Â
Example
VBScript
If bStatus Then bStatus = Reg_GetExpandStringX64("HKLM", "Software\KeyName", "ValueName", False) If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)
Â