acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_registry.h
1#pragma once
2
3
4namespace universal_windows
5{
6
7#if false
8 class CLASS_DECL_ACME registry :
9 virtual public ::matter
10 {
11 public:
12
13
14 class CLASS_DECL_ACME Key
15 {
16 public:
17
18
19 HKEY m_hkey;
20
21
22 Key();
23 Key(HKEY hkey, const_char_pointer lpcszSubKey, bool bCreate);
24 virtual ~Key();
25
26
27 bool OpenKey(HKEY hkey, const_char_pointer lpcszSubKey, bool bCreate);
28 void CloseKey();
29
30 bool QueryValue(const_char_pointer lpcszValueName, string &strVAlue);
31
32 bool QueryValue(const_char_pointer lpcszValueName, memory & mem);
33
34 bool SetValue(const_char_pointer lpcszValueName, const_char_pointer lpcszValue);
35
36 bool DeleteValue(const_char_pointer lpcszValueName);
37
38 bool DeleteKey();
39
40 ::collection::count EnumKey(string_array_base & stra);
41
42 ::collection::count EnumValueName(string_array_base & stra);
43
44 operator HKEY();
45
46 };
47
48 registry();
49 virtual ~registry();
50 /*bool RegQueryValue(
51 HKEY hKey, // handle to key to query
52 const wide_character * lpSubKey,
53 // name of subkey to query
54 CWStr &str);*/
55
56 bool RegQueryValue(
57 HKEY hKey, // handle to key to query
58 const_char_pointer lpSubKey,
59 // name of subkey to query
60 string &str);
61
62
63
64 };
65
66#endif
67
68} // namespace universal_windows
69
70