diff --git a/Windows API/GetOSIdentificationData.cpp b/Windows API/GetOSIdentificationData.cpp new file mode 100644 index 0000000..85b1f28 --- /dev/null +++ b/Windows API/GetOSIdentificationData.cpp @@ -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; +}