forked from Skewjo/SysLat_Software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMachineInfo.h
48 lines (34 loc) · 1.01 KB
/
MachineInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
class MachineInfo
{
bool m_bDataExported = false;
SYSTEM_INFO siSysInfo;
string OEMID;
string OSName = "Windows ";
string CPU;
string Videocard;
string Drive;
string Memory;
string Motherboard;
void SetOSInfo();
void SetCPUInfo();
void SetVideoCardInfo();
//string Drive;
//string Memory;
void SetMOBOInfo();
//THIS FUNCTION IS UNUSED ATM - IT'S KIND OF WORTHLESS
void SetMachineInfo();
void CreateJSON();
//The following method can be used to retrieve any string value from the registry - will be useful for things other than just grabbing the MOBO name.
std::wstring GetStringValueFromHKLM(const std::wstring& regSubKey, const std::wstring& regValue);
public:
MachineInfo() {
SetOSInfo();
SetCPUInfo();
SetVideoCardInfo();
SetMOBOInfo();
CreateJSON();
}
void ExportData(string path = ".\\SysLat_Logs");
Json::Value MachineInfoJSON;
};