OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
WindowsUtilityFuctions.h
Go to the documentation of this file.
1#pragma once
2#define NOMINMAX //Supress windows macros min max
3#define WIN32_LEAN_AND_MEAN
4#include <windows.h>
5
6#include <string>
7
8namespace wuf
9{
10 std::string getErrorMessage(DWORD errorCode);
11 std::string toString(std::wstring& _wString);
12 std::string getExecutablePath();
13 const std::wstring toWideString(const std::string& _string);
14
16 {
17 public:
18 RegistryHandler(const std::string& _strKey);
20 bool setStringVal(const std::string& _entryName, const std::string& _entrydata);
21
22 std::string getStringVal(const std::string& _entryName);
23
24 private:
25 HKEY m_hKey;
26 };
27
28}
Definition WindowsUtilityFuctions.h:16
~RegistryHandler()
Definition WindowsUtilityFuctions.cpp:72
bool setStringVal(const std::string &_entryName, const std::string &_entrydata)
Definition WindowsUtilityFuctions.cpp:77
RegistryHandler(const std::string &_strKey)
Definition WindowsUtilityFuctions.cpp:62
std::string getStringVal(const std::string &_entryName)
Definition WindowsUtilityFuctions.cpp:83
Definition WindowsUtilityFuctions.h:9
const std::wstring toWideString(const std::string &_string)
Definition WindowsUtilityFuctions.cpp:52
std::string getExecutablePath()
Definition WindowsUtilityFuctions.cpp:40
std::string getErrorMessage(DWORD errorCode)
Definition WindowsUtilityFuctions.cpp:6
std::string toString(std::wstring &_wString)
Definition WindowsUtilityFuctions.cpp:31