GlistEngine
Loading...
Searching...
No Matches
gWindows.h
Go to the documentation of this file.
1/*
2 * gWindows.h
3 *
4 * Created on: 4 Nis 2024
5 * Author: noyan
6 */
7
8#ifndef UTILS_GWINDOWS_H_
9#define UTILS_GWINDOWS_H_
10
11#include "gObject.h"
12#ifdef WIN32
13#include <Windows.h>
14#include <intrin.h>
15#endif
16
17class gWindows: public gObject {
18public:
20 virtual ~gWindows();
21
22#ifdef WIN32
23 static void setRegPath(std::string regPath);
24 static std::string getRegPath();
25
26 static const char* getMachineName();
27 static uint16_t getVolumeHash();
28 static uint16_t getCpuHash();
29 static std::string getMachineGUID();
30
31 static long createRegistryKey(HKEY* hKey, std::string regPath = regpath, HKEY registryHive = HKEY_CURRENT_USER);
32 static long deleteRegistryKey(HKEY hKey, std::string keyPath);
33
34 static long openRegistryKey(HKEY* hKey, std::string regPath = regpath, HKEY registryHive = HKEY_CURRENT_USER);
35 static long closeRegistryKey(HKEY hKey);
36
37 static long setRegistryValue(HKEY hKey, std::string name, std::string value);
38 static std::string getRegistryValue(std::string name, std::string regPath = regpath, HKEY registryHive = HKEY_CURRENT_USER);
39 static long deleteRegistryValue(HKEY hKey, std::string name);
40#endif
41
42private:
43 static std::string regpath;
44
45};
46
47#endif /* UTILS_GWINDOWS_H_ */
Definition gObject.h:33
Definition gWindows.h:17
virtual ~gWindows()