mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
Create GetOSIdentificationData.cpp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user