Reg_SetBinary
Description
Section titled “Description”Sets the value of a registry variable of type binary (REG_BINARY). If the key doesn’t exist, it’s created.
Syntax
Section titled “Syntax”Reg_SetBinary(sHandle, sKey, sVariable, vValue) 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
vValue (Variant)
Section titled “vValue (Variant)”Array of byte values from 0 to 255, one element per byte. Elements can be numbers or numeric strings. If vValue isn’t an array, the function returns FALSE.
Example
Section titled “Example”Redim aTmp(2)aTmp(0) = "10"aTmp(1) = "1"aTmp(2) = "5"
If bStatus Then bStatus = Reg_SetBinary("HKLM", "Software\KeyName", "ValueName", aTmp)