ZenLib
OS_Utils.h
Go to the documentation of this file.
1 /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
2  *
3  * Use of this source code is governed by a zlib-style license that can
4  * be found in the License.txt file in the root of the source tree.
5  */
6 
7 //---------------------------------------------------------------------------
8 #ifndef ZenOS_UtilsH
9 #define ZenOS_UtilsH
10 //---------------------------------------------------------------------------
11 
12 //---------------------------------------------------------------------------
13 #include "ZenLib/Ztring.h"
14 #ifdef WINDOWS
15 #ifndef ZENLIB_NO_WIN9X_SUPPORT
16  #undef __TEXT
17  #include "windows.h"
18 #endif //ZENLIB_NO_WIN9X_SUPPORT
19 #endif //WINDOWS
20 //---------------------------------------------------------------------------
21 
22 namespace ZenLib
23 {
24 
25 //***************************************************************************
26 // OS Information
27 //***************************************************************************
28 
29 //---------------------------------------------------------------------------
30 bool IsWin9X ();
31 #ifdef WINDOWS
32 #ifndef ZENLIB_NO_WIN9X_SUPPORT
33 inline bool IsWin9X_Fast ()
34 {
35  return GetVersion()>=0x80000000;
36 }
37 #endif //ZENLIB_NO_WIN9X_SUPPORT
38 #endif //WINDOWS
39 
40 //***************************************************************************
41 // Execute
42 //***************************************************************************
43 
44 void Shell_Execute(const Ztring &ToExecute);
45 
46 //***************************************************************************
47 // Directorues
48 //***************************************************************************
49 
50 Ztring OpenFolder_Show(void* Handle, const Ztring &Title, const Ztring &Caption);
51 
52 } //namespace ZenLib
53 #endif
void Shell_Execute(const Ztring &ToExecute)
bool IsWin9X()
Ztring OpenFolder_Show(void *Handle, const Ztring &Title, const Ztring &Caption)