|
Ocean
|
This class provides windows registry functionalities. More...
#include <Registry.h>
Public Types | |
| enum | RootType { ROOT_CLASSES_ROOT , ROOT_CURRENT_USER , ROOT_LOCAL_MACHINE , ROOT_USERS } |
| Definition of different registry root types. More... | |
| enum | ValueType { VALUE_INVALID , VALUE_DATA , VALUE_INTEGER32 , VALUE_INTEGER64 , VALUE_STRING , VALUE_STRINGS } |
| Definition of different registry value types. More... | |
| using | Names = std::vector< std::string > |
| Definition of a vector holding key or value names. | |
Static Public Member Functions | |
| static HKEY | translateRoot (const RootType root) |
| Translates a root type. | |
| static HKEY | openKey (const RootType root, const std::string &path) |
| Opens a registry key and returns the received key handle. | |
| static HKEY | openKey (const HKEY key, const std::string &name) |
| Opens a registry key and returns the received key handle. | |
| static bool | closeKey (const HKEY key) |
| Closes a registry key. | |
| static bool | createKey (const RootType root, const std::string &path) |
| Creates a new key. | |
| static ValueType | valueType (const HKEY key, const std::string &name) |
| Returns the type of a value. | |
| static bool | setValue (const RootType root, const std::string &path, const std::string &name, const int value) |
| Sets a value of a key. | |
| static bool | setValue (const HKEY key, const std::string &name, const int value) |
| Sets a value of a key. | |
| static bool | setValue (const RootType root, const std::string &path, const std::string &name, const long long value) |
| Sets a value of a key. | |
| static bool | setValue (const HKEY key, const std::string &name, const long long value) |
| Sets a value of a key. | |
| static bool | setValue (const RootType root, const std::string &path, const std::string &name, const std::string &value) |
| Sets a value of a key. | |
| static bool | setValue (const HKEY key, const std::string &name, const std::string &value) |
| Sets a value of a key. | |
| static bool | setValue (const RootType root, const std::string &path, const std::string &name, const Names &value) |
| Sets a value of a key. | |
| static bool | setValue (const HKEY key, const std::string &name, const Names &value) |
| Sets a value of a key. | |
| static bool | setValue (const RootType root, const std::string &path, const std::string &name, const unsigned char *value, const unsigned int size) |
| Sets a value of a key. | |
| static bool | setValue (const HKEY key, const std::string &name, const unsigned char *value, const unsigned int size) |
| Sets a value of a key. | |
| static int | value (const RootType root, const std::string &path, const std::string &name, const int value) |
| Returns a key value. | |
| static int | value (const HKEY key, const std::string &name, const int value) |
| Returns a key value. | |
| static long long | value (const RootType root, const std::string &path, const std::string &name, const long long value) |
| Returns a key value. | |
| static long long | value (const HKEY key, const std::string &name, const long long value) |
| Returns a key value. | |
| static std::string | value (const RootType root, const std::string &path, const std::string &name, const std::string &value) |
| Returns a key value. | |
| static std::string | value (const HKEY key, const std::string &name, const std::string &value) |
| Returns a key value. | |
| static Names | value (const RootType root, const std::string &path, const std::string &name, const Names &value) |
| Returns a key value. | |
| static Names | value (const HKEY key, const std::string &name, const Names &value) |
| Returns a key value. | |
| static Names | values (const RootType root, const std::string &path) |
| Returns all values specified for a key. | |
| static Names | values (const HKEY key) |
| Returns all values specified for a key. | |
| static Names | keys (const RootType root, const std::string &path) |
| Returns all sub keys specified for a key. | |
| static Names | keys (const HKEY key) |
| Returns all sub keys specified for a key. | |
This class provides windows registry functionalities.
| using Ocean::Platform::Win::Registry::Names = std::vector<std::string> |
Definition of a vector holding key or value names.
Definition of different registry value types.
| Enumerator | |
|---|---|
| VALUE_INVALID | Invalid value type. |
| VALUE_DATA | Data value type. |
| VALUE_INTEGER32 | 32 bit integer value type. |
| VALUE_INTEGER64 | 64 bit integer value type. |
| VALUE_STRING | String value type. |
| VALUE_STRINGS | Multi string value type. |
|
static |
Closes a registry key.
| key | Key to close |
|
static |
Creates a new key.
| root | Key root |
| path | Path and name of the new key |
|
static |
Returns all sub keys specified for a key.
| key | Key to return the sub keys from |
|
static |
Returns all sub keys specified for a key.
| root | Key root |
| path | Path and name of the key to return the keys from |
|
static |
Opens a registry key and returns the received key handle.
| key | Base registry key |
| name | The name of the new sub key |
|
static |
Opens a registry key and returns the received key handle.
| root | Key root to open |
| path | Path and name of the key to open |
|
static |
Sets a value of a key.
| key | Base registry key |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| key | Base registry key |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| key | Base registry key |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| key | Base registry key |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| key | Base registry key |
| name | The name of the value to set |
| value | Value buffer to set |
| size | Size of the value to set in bytes |
|
static |
Sets a value of a key.
| root | Key root |
| path | Path and name of the key to set the value for |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| root | Key root |
| path | Path and name of the key to set the value for |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| root | Key root |
| path | Path and name of the key to set the value for |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| root | Key root |
| path | Path and name of the key to set the value for |
| name | The name of the value to set |
| value | Value to set |
|
static |
Sets a value of a key.
| root | Key root |
| path | Path and name of the key to set the value for |
| name | The name of the value to set |
| value | Value buffer to set |
| size | Size of the value to set in bytes |
|
static |
Translates a root type.
| root | Root type to translate |
|
static |
Returns a key value.
| key | Base registry key |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns a key value.
| key | Base registry key |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns a key value.
| key | Base registry key |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns a key value.
| key | Base registry key |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns a key value.
| root | Key root |
| path | Path and name of the key to return the value from |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns a key value.
| root | Key root |
| path | Path and name of the key to return the value from |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns a key value.
| root | Key root |
| path | Path and name of the key to return the value from |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns a key value.
| root | Key root |
| path | Path and name of the key to return the value from |
| name | The name of the value to return |
| value | Default value top return if the key does not hold the specified value |
|
static |
Returns all values specified for a key.
| key | Key to return the values from |
|
static |
Returns all values specified for a key.
| root | Key root |
| path | Path and name of the key to return the values from |
|
static |