1 #ifndef LIBFILEZILLA_GLUE_REGISTRY_HEADER
2 #define LIBFILEZILLA_GLUE_REGISTRY_HEADER
8 #include "../libfilezilla.hpp"
12 #include "windows.hpp"
39 explicit regkey(HKEY
const root, std::wstring
const& subkey,
bool readonly, regview v = regview_native);
51 bool open(HKEY
const root, std::wstring
const& subkey,
bool readonly, regview v = regview_native);
53 bool has_value(std::wstring
const& name)
const;
56 std::wstring
value(std::wstring
const& name)
const;
61 bool set_value(std::wstring
const& name, std::wstring
const& value);
62 bool set_value(std::wstring
const& name, uint64_t value);
64 explicit operator bool()
const {
65 return key_.has_value();
69 mutable std::optional<HKEY> key_;
74 #error This file is for Windows only
Prepresents a key in the Windows registry.
Definition: registry.hpp:26
regkey(HKEY const root, std::wstring const &subkey, bool readonly, regview v=regview_native)
See.
uint64_t int_value(std::wstring const &name) const
Gets the value with the given name as integer, converting if necessary.
bool open(HKEY const root, std::wstring const &subkey, bool readonly, regview v=regview_native)
Opens the specified registry key.
std::wstring value(std::wstring const &name) const
Gets the value with the given name as wstring, converting if necessary.
The namespace used by libfilezilla.
Definition: apply.hpp:17