Reg_GetValueTypeX64
Description
Section titled “Description”Gets the registry data type of the requested variable, for example REG_SZ or REG_DWORD, in 64 bit registry from a 32 bit context.
Syntax
Section titled “Syntax”Reg_GetValueTypeX64(sHandle, sKey, sVariable) 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 check type of
Return value
Section titled “Return value”The registry data type is stored in gsValue as text and in giValue as a number:
| gsValue | giValue |
|---|---|
REG_SZ |
1 |
REG_EXPAND_SZ |
2 |
REG_BINARY |
3 |
REG_DWORD |
4 |
REG_MULTI_SZ |
7 |
REG_QWORD |
11 |
gbValue is TRUE if the type is found. If the variable doesn’t exist, gbValue is FALSE, gsValue is empty and giValue is -1. The function still returns TRUE.
Example
Section titled “Example”If bStatus Then bStatus = Reg_GetValueTypeX64("HKLM", "Software\KeyName", "ValueName")If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: '" & gsValue & "' giValue: '" & giValue &"'", bStatus, True)