mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
27 lines
303 B
C++
27 lines
303 B
C++
#include "Win32Helper.h"
|
|
|
|
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;
|
|
} |