BOOL GetVersionEx(OSVERSIONINFO *Informations);
#include <windows.h>
#include <winbase.h>
OSVERSIONINFO Informations;
if (!GetVersionInfo(&Informations))
{
...
}
...
if (Informations.dwPlatformId==VER_PLATFORM_WIN32_NT)
{
...
}
...