Hello,
Thank you for quick response.
But I don't know the reason behind the structure OSVERSIONINFOEX that is showing on Microsoft Windows XP professional version 2002 as below.
It does not have following 2 variables mainly wProductType through which OS with same version can be uniquely identified:
Code:
WORD wSuiteMask;
BYTE wProductType;
On Microsoft Windows XP Structure OSVERSIONINFOEX->
Code:
typedef struct _OSVERSIONINFOEXA {
DWORD dwOSVersionInfoSize;
DWORD dwMajorVersion;
DWORD dwMinorVersion;
DWORD dwBuildNumber;
DWORD dwPlatformId;
CHAR szCSDVersion[ 128 ]; // Maintenance string for PSS usage
WORD wServicePackMajor;
WORD wServicePackMinor;
WORD wReserved[2];
}OSVERSIONINFOEXA, *POSVERSIONINFOEX,A *LPOSVERSIONINFOEXA;
In my case I have to differentiate between "Windows 7" and "Windows Server 2008 R2"
Thanks.
Bookmarks