Last change
on this file since 31825 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)
|
---|
8 | using namespace ospace::std;
|
---|
9 | #else
|
---|
10 | using namespace std;
|
---|
11 | #endif
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | #include <windows.h>
|
---|
15 |
|
---|
16 | static string gsPlatform_WINDOWSNT("WindowsNT");
|
---|
17 | static string gsPlatform_WINDOWS9X("Windows9x");
|
---|
18 | static string gsPlatform_WINDOWS32S("Windows32s");
|
---|
19 | static string gsPlatform_WINDOWS("Windows");
|
---|
20 |
|
---|
21 | class gsPlatform
|
---|
22 | {
|
---|
23 | private:
|
---|
24 | OSVERSIONINFO platformInfo;
|
---|
25 | protected:
|
---|
26 | public:
|
---|
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.