Wrapper class for a Registry key handle.
More...
#include <reg.hpp>
|
| | Key (HKEY key, const std::wstring &subkey, bool create=false) |
| | Construct a Key with an open handle for a subkey under key.
|
| |
| | Key (Key &key, const std::wstring &subkey, bool create=false) |
| |
| | Key (const std::wstring &subkey, bool create=false) |
| | Construct a Key with an open handle for a subkey under HKLM.
|
| |
| | Key ()=default |
| |
| | Key (Key &&rhs) |
| |
| Key & | operator= (Key &&rhs) |
| |
| | ~Key () |
| |
| bool | defined () const |
| | Check for a valid key handle.
|
| |
| PHKEY | ref () |
| | Retrun a pointer to the Registry key handle.
|
| |
| HKEY | operator() () |
| | Return the Registry key handle.
|
| |
|
| HKEY | key_ = static_cast<HKEY>(INVALID_HANDLE_VALUE) |
| |
Wrapper class for a Registry key handle.
Definition at line 44 of file reg.hpp.
◆ Key() [1/6]
| openvpn::Win::Reg::Key::Key |
( |
const Key & |
| ) |
|
|
privatedelete |
◆ Key() [2/6]
| openvpn::Win::Reg::Key::Key |
( |
HKEY |
key, |
|
|
const std::wstring & |
subkey, |
|
|
bool |
create = false |
|
) |
| |
|
inline |
Construct a Key with an open handle for a subkey under key.
In case the subkey cannot be opened or created, the handle remains invalid.
- Parameters
-
| key | the key handle which the subkey is relative to |
| subkey | the subkey to open for the object |
| create | whether the subkey will be created if it doesn't exist |
Definition at line 59 of file reg.hpp.
◆ Key() [3/6]
| openvpn::Win::Reg::Key::Key |
( |
Key & |
key, |
|
|
const std::wstring & |
subkey, |
|
|
bool |
create = false |
|
) |
| |
|
inline |
◆ Key() [4/6]
| openvpn::Win::Reg::Key::Key |
( |
const std::wstring & |
subkey, |
|
|
bool |
create = false |
|
) |
| |
|
inline |
Construct a Key with an open handle for a subkey under HKLM.
In case the subkey cannot be opened or created, the handle remains invalid.
- Parameters
-
| subkey | the subkey to open for the object |
| create | whether the subkey will be created if it doesn't exist |
Definition at line 99 of file reg.hpp.
◆ Key() [5/6]
| openvpn::Win::Reg::Key::Key |
( |
| ) |
|
|
default |
◆ Key() [6/6]
| openvpn::Win::Reg::Key::Key |
( |
Key && |
rhs | ) |
|
|
inline |
◆ ~Key()
| openvpn::Win::Reg::Key::~Key |
( |
| ) |
|
|
inline |
◆ defined()
| bool openvpn::Win::Reg::Key::defined |
( |
| ) |
const |
|
inline |
Check for a valid key handle.
- Returns
- true if the handle is valid
-
false if the handle is invalid
Definition at line 136 of file reg.hpp.
◆ operator()()
| HKEY openvpn::Win::Reg::Key::operator() |
( |
| ) |
|
|
inline |
Return the Registry key handle.
- Returns
- HKEY the key handle
Definition at line 155 of file reg.hpp.
◆ operator=() [1/2]
| Key & openvpn::Win::Reg::Key::operator= |
( |
const Key & |
| ) |
|
|
privatedelete |
◆ operator=() [2/2]
| Key & openvpn::Win::Reg::Key::operator= |
( |
Key && |
rhs | ) |
|
|
inline |
◆ ref()
| PHKEY openvpn::Win::Reg::Key::ref |
( |
| ) |
|
|
inline |
Retrun a pointer to the Registry key handle.
- Returns
- PHKEY the Registry key handle pointer
Definition at line 146 of file reg.hpp.
◆ key_
| HKEY openvpn::Win::Reg::Key::key_ = static_cast<HKEY>(INVALID_HANDLE_VALUE) |
|
private |
The documentation for this class was generated from the following file: