System::Win32Registry Class Reference
#include <win32registry.h>
Detailed Description
A simple wrapper class to access the Win32 registry. NOTE: using this class restricts your code to the Win32 platform.(C) 2007 Radon Labs GmbH
Public Types | |
enum | RootKey |
key enumeration | |
Static Public Member Functions | |
static bool | Exists (RootKey rootKey, const Util::String &key, const Util::String &name) |
return true if a registry entry exists | |
static bool | Write (RootKey rootKey, const Util::String &key, const Util::String &name, const Util::String &value) |
write a registry entry | |
static Util::String | Read (RootKey rootKey, const Util::String &key, const Util::String &name) |
read a registry entry | |
static bool | Delete (RootKey rootKey, const Util::String &key) |
delete a registry key (and all its contained values) |
Member Function Documentation
bool System::Win32Registry::Exists | ( | RootKey | rootKey, | |
const Util::String & | key, | |||
const Util::String & | name | |||
) | [static] |
return true if a registry entry exists
Return true if a specific entry exists in the registry. To check only for the existence of a key without the contained value, pass an empty 'name' string.
bool System::Win32Registry::Write | ( | RootKey | rootKey, | |
const Util::String & | key, | |||
const Util::String & | name, | |||
const Util::String & | value | |||
) | [static] |
write a registry entry
Set a key value in the registry. This will create the key if it doesn't exist.
Util::String System::Win32Registry::Read | ( | RootKey | rootKey, | |
const Util::String & | key, | |||
const Util::String & | name | |||
) | [static] |
read a registry entry
Get a value from the registry. Fails hard if the key doesn't exists (use the Exists() method to make sure that the key exists!).
bool System::Win32Registry::Delete | ( | RootKey | rootKey, | |
const Util::String & | key | |||
) | [static] |
delete a registry key (and all its contained values)
This deletes a complete registry key with all its values.