Last active
August 29, 2015 13:56
-
-
Save icecoobe/8950345 to your computer and use it in GitHub Desktop.
List of Known Versions Of Windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct WindowsNTOSInfo | |
{ | |
DWORD dwMajorVersion; | |
DWORD dwMinorVersion; | |
WORD wServicePackMajor; | |
//const TCHAR * pcszOSDisplayName; | |
}; | |
struct WindowsNTOSInfoEx :WindowsNTOSInfo | |
{ | |
BYTE ProductType; | |
}; | |
const WindowsNTOSInfo KnownVersionsOfWindows[] = | |
{ | |
{ 6, 3, 0, },//win8.1,server2012 r2 | |
{ 6, 2, 0, },//win8,server2012 | |
{ 6, 1, 1, },//win7,win2008r2 sp1 | |
{ 6, 1, 0, },//win7,win2008r2 | |
{ 5, 1, 3, },//winxp sp3 | |
{ 5, 1, 2, },//winxp sp2 | |
{ 5, 1, 1, },//winxp sp1 | |
{ 5, 1, 0, },//winxp | |
{ 6, 0, 2, },//WinVista,server2008 SP2 | |
{ 6, 0, 1, },//WinVista,Server2008 Sp1 | |
{ 6, 0, 0, },//WinVista,Server2008 | |
{ 5, 2, 2, },//Windows Server 2003 Sp2 | |
{ 5, 2, 1, },//Windows Server 2003 Sp1 | |
{ 5, 2, 0, },//Windows Server 2003 | |
{ 5, 1, 4, }, //Windows Server 2000 Sp4 | |
{ 5, 1, 3, }, //Windows Server 2000 Sp3 | |
{ 5, 1, 2, }, //Windows Server 2000 Sp2 | |
{ 5, 1, 2, }, //Windows Server 2000 Sp1 | |
{ 5, 1, 0, }, //Windows Server 2000 | |
}; | |
const size_t n_KnownVersionofWindows = sizeof(KnownVersionsOfWindows) / sizeof(WindowsNTOSInfo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment