Platform: Windows: Avoid windows.h

This way Windows.h doesn't pollute everything with random defines
This commit is contained in:
Paul Hollinsky
2022-02-28 19:12:35 -05:00
parent caf5cca42f
commit 453d3366af
8 changed files with 90 additions and 70 deletions
@@ -3,7 +3,6 @@
#ifdef __cplusplus
#include <Windows.h>
#include <string>
#include <vector>
@@ -20,17 +19,6 @@ public:
// Get DWORD value
static bool Get(std::wstring path, std::wstring key, uint32_t& value);
static bool Get(std::string path, std::string key, uint32_t& value);
private:
class Key {
public:
Key(std::wstring path, bool readwrite = false);
~Key();
HKEY GetKey() { return key; }
bool IsOpen() { return key != nullptr; }
private:
HKEY key;
};
};
}