![]() |
libfilezilla
|
Prepresents a key in the Windows registry. More...
#include <registry.hpp>
Public Types | |
| enum | regview { regview_native, regview_32, regview_64 } |
Public Member Functions | |
| regkey (HKEY const root, std::wstring const &subkey, bool readonly, regview v=regview_native) | |
| See. More... | |
| regkey (regkey const &)=delete | |
| regkey & | operator= (regkey const &)=delete |
| void | close () |
| bool | open (HKEY const root, std::wstring const &subkey, bool readonly, regview v=regview_native) |
| Opens the specified registry key. More... | |
| bool | has_value (std::wstring const &name) const |
| std::wstring | value (std::wstring const &name) const |
| Gets the value with the given name as wstring, converting if necessary. | |
| uint64_t | int_value (std::wstring const &name) const |
| Gets the value with the given name as integer, converting if necessary. | |
| bool | set_value (std::wstring const &name, std::wstring const &value) |
| bool | set_value (std::wstring const &name, uint64_t value) |
| operator bool () const | |
| bool | delete_value (std::wstring const &name) |
Prepresents a key in the Windows registry.
Can access both the appropaire native registry view, as well as explicitly the 32-bit and 64bit registry views.
|
explicit |
See.
| bool open | ( | HKEY const | root, |
| std::wstring const & | subkey, | ||
| bool | readonly, | ||
| regview | v = regview_native |
||
| ) |
Opens the specified registry key.
If readonly is not set, missing subkeys are automatically created
1.8.10