OSVERSIONINFO osvi;
DWORD         dwVersion; DWORD         dwWindowsMajorVersion; DWORD         dwWindowsMinorVersion; DWORD         dwWindowsVersion;
void DetermineOSVersion(){  OSVERSIONINFO osvi;  BOOL          bIsWin95Debute;  osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);  GetVersionEx(&osvi);  bIsWin95Debute = IsWin95Debute();  switch(osvi.dwPlatformId)  {    case VER_PLATFORM_WIN32_WINDOWS:      if((osvi.dwMajorVersion == 4) && (osvi.dwMinorVersion == 0))      {        dwOSType |= OS_WIN95;        if(bIsWin95Debute)          dwOSType |= OS_WIN95_DEBUTE;      }      else if((osvi.dwMajorVersion == 4) && (osvi.dwMinorVersion > 0))        dwOSType = OS_WIN98;      break;    case VER_PLATFORM_WIN32_NT:      if(osvi.dwMajorVersion == 3)        dwOSType = OS_NT3;      else if(osvi.dwMajorVersion > 3)        dwOSType = OS_NT4;      break;  }}