]> cygwin.com Git - cygwin-apps/setup.git/blame - win32.cc
2002-04-29 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / win32.cc
CommitLineData
ad3c7385
RC
1/*
2 * Copyright (c) 2002, Robert Collins
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by Robert Collins <rbtcollins@hotmail.com>
13 *
14 */
15
16/* The purpose of this file is to centralize all the message
17 functions. */
18
19#if 0
20static const char *cvsid =
21 "\n%%% $Id$\n";
22#endif
23
24#include "win32.h"
25
26enum Win32::_os
27Win32::OS ()
28{
29 OSVERSIONINFO VersionInfo;
30 VersionInfo.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
31 if (!GetVersionEx (&VersionInfo))
32 {
33 // Throw an exception or something ??
34 }
35 if (VersionInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
36 return Win9x;
37 else
38 return WinNT;
39}
This page took 0.024962 seconds and 5 git commands to generate.