Reg_GetBinary
Description
Section titled “Description”Gets the value of a registry variable of type binary
Syntax
Section titled “Syntax”Reg_GetBinary(sHandle, sKey, sVariable, bMustExist) 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 read
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”TRUE if variable must exist
Return value
Section titled “Return value”The data is stored in gaValue as an array with one element per byte (decimal values). gsValue contains the same bytes separated by | (pipe).
If the variable can be read, gbValue is set to TRUE, otherwise FALSE.
Example
Section titled “Example”If bStatus Then bStatus = Reg_GetBinary("HKLM", "Software\KeyName", "ValueName", False)If bStatus And IsArray(gaValue) Then For index = LBound(gaValue) To UBound(gaValue) bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & cStr(gaValue(index)), bStatus, True) NextEnd If