Skip to content

Reg_GetBinary

Gets the value of a registry variable of type binary

Reg_GetBinary(sHandle, sKey, sVariable, bMustExist) As Boolean

Registry hive, for example HKLM. For all accepted values, see Registry Functions.

Subkey path

Name of variable to read

TRUE if variable must exist

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.

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)
Next
End If

Scripting Guidelines

Registry Functions Constants Package Property Variables