SOL9 Sample: WindowsVersion

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * WindowsVersion.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */



// 2015/12/20

#include <sol/WindowsVersion.h>

void _tmain(int argc, TCHAR** argv)
{

  WindowsVersion version;
  DWORD dwPlatformId; 
  DWORD dwMajorVersion; 
  DWORD dwMinorVersion;
  
  version.getVersion(dwPlatformId, 
      dwMajorVersion, 
      dwMinorVersion);
    
  _tprintf(_T("platformId=%d majorversion=%d minorVersion=%d\n"), dwPlatformId, dwMajorVersion, dwMinorVersion);

  _tprintf(_T("IsVista      = %d\n"), version.isVista());

  _tprintf(_T("IsWindows7   = %d\n"), version.isWindows7());
  _tprintf(_T("IsWindows8   = %d\n"), version.isWindows8());
  _tprintf(_T("IsWindows8.1 = %d\n"), version.isWindows81());
  _tprintf(_T("IsWindows10  = %d\n"), version.isWindows10());
  
}


Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.