Logo Search packages:      
Sourcecode: inkscape version File versions

gdl-win32.c

/*
 * Windows stuff
 *
 * Author:
 *   Albin Sunnanbo
 *   Based on code by Lauris Kaplinski <lauris@kaplinski.com> (/src/extension/internal/win32.cpp)
 *
 * This code is in public domain
 */
#ifdef WIN32

#include "gdl-win32.h"
#include <windows.h>

/* Platform detection */
gboolean
is_os_vista()
{
      static gboolean initialized = FALSE;
      static gboolean is_vista = FALSE;
      static OSVERSIONINFOA osver;

      if ( !initialized )
      {
            BOOL result;

            initialized = TRUE;

            memset (&osver, 0, sizeof(OSVERSIONINFOA));
            osver.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
            result = GetVersionExA (&osver);
            if (result)
            {
                  if (osver.dwMajorVersion == WIN32_MAJORVERSION_VISTA)
                        is_vista = TRUE;
            }
      }

      return is_vista;
}

#endif

Generated by  Doxygen 1.6.0   Back to index