vxug-VXAPI/Windows API/GetOSIdentificationData.cpp

26 lines
288 B
C++
Raw Normal View History

2022-07-15 04:12:16 +00:00
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;
}