RegistryKey
From Pointui
Allows values to be read and written to the registry.
Methods
void Open(String keyName)
Opens the requested key, or creates it if it didn’t already exist.
The keyName must include the root key name. The following table shows the String names for the root keys supported:
| Root Key | Description |
|---|---|
| HKLM | HKEY_LOCAL_MACHINE |
| HKCU | HKEY_CURRENT_USER |
EXAMPLE
RegistryKey k; k.Open(“HKLM\\System\\State”);
void GetValue(String valueName, String result)
void GetValue(String valueName, int result)
void GetValue(String valueName, DateTime result)
void GetValue(String valueName, ByteArray result)
Reads a value from the registry and returns it in the result parameter. It’s important that the variable provided for result matches the type of data being read. For instance, if you were reading an 8 byte FILETIME date/time value from the registry you would need to supply a DateTime result variable.
void SetValue(String valueName, String value)
void SetValue(String valueName, int value)
void SetValue(String valueName, DateTime value)
void SetValue(String valueName, ByteArray value)
AVAILABLE SINCE: 2.0.18b
Sets a value in the registry. As with reading values using GetValue() you must use a variable of the correct data type to ensure the correct type of registry value is written.
void GetChildKeys(DataTable result)
AVAILABLE SINCE: 2.0.18b
Populates the result DataTable with the child keys of the current registry key. You must have previously have opened a key using Open().
The DataTable supports the following columns:
| columnName | Expected Data Type |
|---|---|
| KeyName | String |
