MCPcopy Create free account
hub / github.com/DarthTon/Xenos / LogOSInfo

Function LogOSInfo

src/Main.cpp:61–81  ·  view source on GitHub ↗

Log major OS information

Source from the content-addressed store, hash-verified

59/// Log major OS information
60/// </summary>
61void LogOSInfo()
62{
63 SYSTEM_INFO info = { 0 };
64 char* osArch = "x64";
65
66 auto pPeb = (blackbone::PEB_T*)NtCurrentTeb()->ProcessEnvironmentBlock;
67 GetNativeSystemInfo( &info );
68
69 if (info.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL)
70 osArch = "x86";
71
72 xlog::Normal(
73 "Started on Windows %d.%d.%d.%d %s. Driver status: 0x%X",
74 pPeb->OSMajorVersion,
75 pPeb->OSMinorVersion,
76 (pPeb->OSCSDVersion >> 8) & 0xFF,
77 pPeb->OSBuildNumber,
78 osArch,
79 blackbone::Driver().status()
80 );
81}
82
83/// <summary>
84/// Parse command line string

Callers 1

wWinMainFunction · 0.85

Calls 2

NormalFunction · 0.85
statusMethod · 0.80

Tested by

no test coverage detected