#include <w32dlib/registry.h>
Public Member Functions | |
| Registry (HKEY root, const char *path, bool permanent) | |
| Opens the supplied registry key read/write. | |
| Registry (HKEY root, const char *path) | |
| Opens the supplied registry key read only. | |
| virtual | ~Registry () |
| Destructor. | |
| bool | IsOpen () |
| Sees whether the key was opened. | |
| bool | Read (const char *name, bool &val) |
| Reads a boolean value from the registry. | |
| bool | Read (const char *name, unsigned &val) |
| Reads an integer value from the registry. | |
| bool | Read (const char *name, std::string &val) |
| Reads a string value from the registry. | |
| bool | Write (const char *name, bool val) |
| Writes a boolean value to the registry. | |
| bool | Write (const char *name, unsigned val) |
| Writes an integer value to the registry. | |
| bool | Write (const char *name, const char *val) |
| Writes a string value to the registry. | |
| bool | Write (const char *name, const std::string &val) |
| Writes a string value to the registry. | |
Gives basic registry access.
|
||||||||||||||||
|
Opens the supplied registry key read/write.
|
|
||||||||||||
|
Opens the supplied registry key read only.
|
|
|
Destructor. This closes the registry key. |
|
|
Sees whether the key was opened.
|
|
||||||||||||
|
Reads a string value from the registry.
|
|
||||||||||||
|
Reads an integer value from the registry.
|
|
||||||||||||
|
Reads a boolean value from the registry. Booleans are implemented as a DWORD entry with a value 1 or 0.
|
|
||||||||||||
|
Writes a string value to the registry.
|
|
||||||||||||
|
Writes a string value to the registry.
|
|
||||||||||||
|
Writes an integer value to the registry.
|
|
||||||||||||
|
Writes a boolean value to the registry. Booleans are implemented as a DWORD entry with a value 1 or 0.
|
1.4.1