source: other-projects/trunk/gsinstaller/gsPlatform.h@ 15332

Last change on this file since 15332 was 11664, checked in by mdewsnip, 18 years ago

Fixed the line endings... for real this time, I hope.

  • Property svn:keywords set to Author Date Id Revision
File size: 751 bytes
Line 
1#ifndef _GSPLATFORM_H_
2#define _GSPLATFORM_H_
3#include <string>
4
5// use the standard namespace
6#if !defined (GSDL_NAMESPACE_BROKEN)
7#if defined(GSDL_USE_OBJECTSPACE)
8using namespace ospace::std;
9#else
10using namespace std;
11#endif
12#endif
13
14#include <windows.h>
15
16static string gsPlatform_WINDOWSNT("WindowsNT");
17static string gsPlatform_WINDOWS9X("Windows9x");
18static string gsPlatform_WINDOWS32S("Windows32s");
19static string gsPlatform_WINDOWS("Windows");
20
21class gsPlatform
22{
23private:
24 OSVERSIONINFO platformInfo;
25protected:
26public:
27 gsPlatform();
28 bool isWindows9x();
29 bool isWindowsNT();
30 bool isWindows32s();
31 bool isOldWindows32s();
32 bool isExplorerShell();
33 bool isUserAdministrator();
34 bool reboot();
35 string platformString();
36};
37#endif
Note: See TracBrowser for help on using the repository browser.