LeviLamina
Loading...
Searching...
No Matches
RegistryKey.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class RegistryKey {
6public:
7 // member variables
8 // NOLINTBEGIN
11 // NOLINTEND
12
13public:
14 // prevent constructor by default
15 RegistryKey& operator=(RegistryKey const&);
16 RegistryKey(RegistryKey const&);
17 RegistryKey();
18
19public:
20 // member functions
21 // NOLINTBEGIN
22#ifdef LL_PLAT_C
23 MCNAPI RegistryKey(::RegistryKey&& key);
24#endif
25
26#ifdef LL_PLAT_S
27 MCNAPI explicit operator bool() const;
28#endif
29
30 MCNAPI bool readValue(char const* key, ::std::string& result) const;
31
32 MCNAPI bool readValue(char const* name, ulong& result) const;
33
34 MCNAPI ~RegistryKey();
35 // NOLINTEND
36
37public:
38 // static functions
39 // NOLINTBEGIN
40#ifdef LL_PLAT_C
41 MCNAPI static ::RegistryKey create(::HKEY__* base, char const* path, ulong desiredAccess);
42#endif
43
44 MCNAPI static ::RegistryKey open(::HKEY__* base, char const* path, ulong desiredAccess);
45 // NOLINTEND
46
47public:
48 // constructor thunks
49 // NOLINTBEGIN
50#ifdef LL_PLAT_C
51 MCNAPI void* $ctor(::RegistryKey&& key);
52#endif
53 // NOLINTEND
54
55public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCNAPI void $dtor();
59 // NOLINTEND
60};
MCAPI ~RegistryKey()
static MCAPI ::RegistryKey open(::HKEY__ *base, char const *path, ulong desiredAccess)
MCAPI bool readValue(char const *key, ::std::string &result) const
MCAPI void $dtor()
MCAPI bool readValue(char const *name, ulong &result) const
Definition Alias.h:14