Etterna 0.74.4
Loading...
Searching...
No Matches
RegistryAccess.h
1/* RegistryAccess - Windows registry helpers */
2
3#ifndef REGISTRY_ACCESS_H
4#define REGISTRY_ACCESS_H
5
6#include <string>
7#include <vector>
8
9namespace RegistryAccess {
10bool
11GetRegValue(const std::string& sKey,
12 const std::string& sName,
13 std::string& val);
14bool
15GetRegValue(const std::string& sKey,
16 const std::string& sName,
17 int& val,
18 bool bWarnOnError = true);
19bool
20GetRegValue(const std::string& sKey, const std::string& sName, bool& val);
21
22bool
23GetRegSubKeys(const std::string& sKey,
24 std::vector<std::string>& asList,
25 const std::string& sRegex = ".*",
26 bool bReturnPathToo = true);
27
28bool
29SetRegValue(const std::string& sKey,
30 const std::string& sName,
31 const std::string& val);
32bool
33SetRegValue(const std::string& sKey, const std::string& sName, int val);
34bool
35SetRegValue(const std::string& sKey, const std::string& sName, bool val);
36
37bool
38CreateKey(const std::string& sKey);
39}
40
41#endif