ReadBinary - cApplication

Reads binary data from the Windows Registry

Type: Function

Return Data Type: Boolean

Parameters: String sSubKey String sValueName Pointer pValueData Integer iDataLength

ParameterDescription
sSubKeyThe name of the subkey containing the Value
sValueNameThe name of the Value to read data from
pValueDataAddress in memory to copy the data to
iDataLengthLength of the data to copy


Return Value

If the data was read, the function returns True, otherwise it returns False.


Syntax
Function ReadBinary String sSubKey String sValueName Pointer pValueData Integer iDataLength Returns Boolean

Call: Get ReadBinary sSubKey sValueName pValueData iDataLength to BooleanVariable


Description

Use the ReadBinary function to read binary data from the Windows Registry. The base key that will be used is that returned by RegistryKeyString and you can specify a further subkey using the sSubKey parameter.

If you attempt to read a non-existent value, an error will be generated. Before trying to read a value, you should ensure that it exists using the ValueExists function.