This library provides Win32 Registry facilities.
Exception class thrown by the std.windows.registry classes.
Creates an instance of the exception.
string message | The message associated with the exception. |
Creates an instance of the exception, with the given.
string message | The message associated with the exception. |
int error | The Win32 error number associated with the exception. |
Enumeration of the recognised registry access modes.
Permission to query subkey data
Permission to set subkey data
Permission to create subkeys
Permission to enumerate subkeys
Permission for change notification
Permission to create a symbolic link
Enables a 64- or 32-bit application to open a 32-bit key
Enables a 64- or 32-bit application to open a 64-bit key
Combines the STANDARD_RIGHTS_READ, KEY_QUERY_VALUE, KEY_ENUMERATE_SUB_KEYS, and KEY_NOTIFY access rights
Combines the STANDARD_RIGHTS_WRITE, KEY_SET_VALUE, and KEY_CREATE_SUB_KEY access rights
Permission for read access
Enumeration of the recognised registry value types.
The null value type. (In practise this is treated as a zero-length binary array by the Win32 registry)
A zero-terminated string
A zero-terminated string containing expandable environment variable references
A binary blob
A 32-bit unsigned integer
A 32-bit unsigned integer, stored in little-endian byte order
A 32-bit unsigned integer, stored in big-endian byte order
A registry link
A set of zero-terminated strings
A hardware resource list
A hardware resource descriptor
A hardware resource requirements list
A 64-bit unsigned integer
A 64-bit unsigned integer, stored in little-endian byte order
This class represents a registry key.
The name of the key
The number of sub keys.
An enumerable sequence of all the sub- keys of this key.
An enumerable sequence of the names of all the sub-keys of this key.
The number of values.
An enumerable sequence of all the values of this key.
An enumerable sequence of the names of all the values of this key.
Returns the named sub-key of this key.
string name | The name of the subkey to create. May not be null. |
Returns the named sub-key of this key.
string name | The name of the subkey to aquire. If name is the empty string, then the called key is duplicated. |
REGSAM access | The desired access; one of the REGSAM enumeration. |
Deletes the named key.
string name | The name of the key to delete. May not be null. |
Returns the named value. If name is the empty string, then the default value is returned.
Sets the named value with the given 32-bit unsigned integer value.
string name | The name of the value to set. If it is the empty string, sets the default value. |
uint value | The 32-bit unsigned value to set. |
Sets the named value with the given 32-bit unsigned integer value, according to the desired byte-ordering.
string name | The name of the value to set. If it is the empty string, sets the default value. |
uint value | The 32-bit unsigned value to set. |
Endian endian | Can be Endian.BigEndian or Endian.LittleEndian. |
Sets the named value with the given 64-bit unsigned integer value.
string name | The name of the value to set. If it is the empty string, sets the default value. |
ulong value | The 64-bit unsigned value to set. |
Sets the named value with the given string value.
string name | The name of the value to set. If it is the empty string, sets the default value. |
string value | The string value to set. |
Sets the named value with the given string value.
string name | The name of the value to set. If it is the empty string, sets the default value. |
string value | The string value to set. |
bool asEXPAND_SZ | If true, the value will be stored as an expandable environment string, otherwise as a normal string. |
Sets the named value with the given multiple-strings value.
string name | The name of the value to set. If it is the empty string, sets the default value. |
string[] value | The multiple-strings value to set. |
Sets the named value with the given binary value.
string name | The name of the value to set. If it is the empty string, sets the default value. |
byte[] value | The binary value to set. |
Deletes the named value.
string name | The name of the value to delete. May not be null. |
Flushes any changes to the key to disk.
This class represents a value of a registry key.
The type of value.
Obtains the current value of the value as a string. If the value's type is REG_EXPAND_SZ the returned value is not expanded; value_EXPAND_SZ should be called
Obtains the current value as a string, within which any environment variables have undergone expansion. This function works with the same value-types as value_SZ.
Obtains the current value as an array of strings.
Obtains the current value as a 32-bit unsigned integer, ordered correctly according to the current architecture.
Obtains the value as a 64-bit unsigned integer, ordered correctly according to the current architecture.
Obtains the value as a binary blob.
Represents the local system registry.
Returns the root key for the HKEY_CLASSES_ROOT hive
Returns the root key for the HKEY_CURRENT_USER hive
Returns the root key for the HKEY_LOCAL_MACHINE hive
Returns the root key for the HKEY_USERS hive
Returns the root key for the HKEY_PERFORMANCE_DATA hive
Returns the root key for the HKEY_CURRENT_CONFIG hive
Returns the root key for the HKEY_DYN_DATA hive
An enumerable sequence representing the names of the sub-keys of a registry Key.
Key key = ... foreach (string subkeyName; key.keyNames) { // using subkeyName }
The number of keys.
The name of the key at the given index.
size_t index | The 0-based index of the key to retrieve. |
The name of the key at the given index.
size_t index | The 0-based index of the key to retrieve. |
An enumerable sequence representing the sub-keys of a registry Key.
Key key = ... foreach (Key subkey; key.keys) { // using subkey }
The number of keys.
The key at the given index.
size_t index | The 0-based index of the key to retrieve. |
The key at the given index.
size_t index | The 0-based index of the key to retrieve. |
An enumerable sequence representing the names of the values of a registry Key.
Key key = ... foreach (string valueName; key.valueNames) { // using valueName }
The number of values.
The name of the value at the given index.
size_t index | The 0-based index of the value to retrieve. |
The name of the value at the given index.
size_t index | The 0-based index of the value to retrieve. |
An enumerable sequence representing the values of a registry Key.
Key key = ... foreach (Value value; key.values) { // using value }
The number of values
The value at the given index.
size_t index | The 0-based index of the value to retrieve |
The value at the given index.
size_t index | The 0-based index of the value to retrieve. |