Skip to content

Reg_SetBinary

Sets the value of a registry variable of type binary (REG_BINARY). If the key doesn’t exist, it’s created.

Reg_SetBinary(sHandle, sKey, sVariable, vValue) as Boolean

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

Subkey path

Name of variable to contain the value

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.

Redim aTmp(2)
aTmp(0) = "10"
aTmp(1) = "1"
aTmp(2) = "5"
If bStatus Then bStatus = Reg_SetBinary("HKLM", "Software\KeyName", "ValueName", aTmp)

Scripting Guidelines

Registry Functions Constants Package Property Variables