Create GetOSIdentificationData.cpp

This commit is contained in:
vxunderground
2022-07-14 23:12:16 -05:00
committed by GitHub
parent 92e3a62f21
commit 939f506a25
+25
View File
@@ -0,0 +1,25 @@
DWORD GetOSIdentificationData(DWORD Id)
{
PPEB Peb = GetPeb();
switch (Id)
{
case 0:
return Peb->OSMajorVersion;
case 1:
return Peb->OSMinorVersion;
case 2:
return Peb->OSBuildNumber;
case 3:
return Peb->OSPlatformId;
default:
return 0;
}
return 0;
}