ReadRegBinary

Description:

baReadRegBinary gets a binary value from the Windows Registry.

Platforms:

Windows

Usage:

Result = baReadRegBinary( KeyName, ValueName, Default, Branch )

Arguments:

String, string, string, string.
KeyName is the name of the key.
ValueName is the name of the value.
Default is the string that is returned if the key/value doesn't exist.
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:

List.
Returns a list containing the binary value stored in Keyname. If the Keyname doesn't exist, then the return will be a list containing just the Default value.

Examples:

Director:
data = baReadRegBinary( "Courses\Computers", "Data", "error, "HKEY_CLASSES_ROOT" )

Authorware:
data := baReadRegBinary( "Courses\\Computers", "Data", "error", "HKEY_CLASSES_ROOT" )
 

Notes:

The return will be a list containing the binary values. eg:

[ 23, 45, 68, 0, 3, 5, 0 ]

Note that these values will not be the same values as shown in RegEdit - the values in RegEdit are in hex, while the Xtra returns the decimal equivalents. If the key does not exist, then a list with the default value (as a string) as its only entry will be returned, eg:

["error"]

A Registry entry consists of keys and sub-keys, similar to the directories and sub-directories in the Windows file system. 32 bit Windows adds Values to the registry. These can be thought of as files within the key.

 

See also:

baWriteRegBinary
baReadRegString
baWriteRegString
baReadRegNumber
baWriteRegNumber
baReadRegMulti
baWriteRegMulti
baDeleteReg
baRegKeyList
baRegValueList