Skip to content

Reg_SetBinaryX64

Sets the value of a registry variable of type binary (REG_BINARY) in 64 bit registry from a 32 bit context. If the key doesn’t exist, it’s created.

Reg_SetBinaryX64(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_SetBinaryX64("HKLM", "Software\KeyName", "ValueName", aTmp)

Scripting Guidelines

Registry Functions Constants Package Property Variables