ReadBinary - cApplication
Reads binary data from the Windows Registry
Type: Function
Return Data Type: Boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
| sSubKey | String | The name of the subkey containing the Value |
| sValueName | String | The name of the Value to read data from |
| pValueData | Pointer | Address in memory to copy the data to |
| iDataLength | Integer | Length of the data to copy |
Syntax
Function ReadBinary String sSubKey String sValueName Pointer pValueData Integer iDataLength Returns Boolean
Call Example
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.
Return Value
If the data was read, the function returns True, otherwise it returns False.