WriteRegBinary

Description:

baWriteRegBinary writes a binary value into the Windows Registry.

Platforms:

Windows

Usage:

Result = baWriteRegBinary( KeyName, ValueName, Data, Branch )

Arguments:

String, string, list.
KeyName is the name of the key.
ValueName is the name of the value.
Data is a list containing the numbers that will be written to the registry.
Branch is the branch of the registry to use. Can be one of the following:
    "HKEY_CLASSES_ROOT"
    "HKEY_CURRENT_USER"
    "HKEY_LOCAL_MACHINE"
    "HKEY_USERS"
    "HKEY_CURRENT_USER"
    "HKEY_DYN_DATA"

Returns:

Integer.
Returns 1 if the function is successful, otherwise 0.

Examples:

Director:
OK = baWriteRegBinary( "Courses\Computers", "Course", [10, 23, 0, 0, 45, 13], "HKEY_CLASSES_ROOT" )

Authorware:
OK := baWriteRegBinary( "Courses\\Computers", "Course", [10, 23, 0, 0, 45, 13], "HKEY_CLASSES_ROOT" )
 

Notes:

The values used must be decimal numbers, not hex as is used in RegEdit.
 

See also:

baReadRegBinary
baReadRegString
baWriteRegString
baReadRegNumber
baWriteRegNumber
baReadRegMulti
baWriteRegMulti
baDeleteReg
baRegKeyList
baRegValueList