ZenLib
OS_Utils.h
Go to the documentation of this file.
1 // ZenLib::OS_Utils - Cross platform OS utils
2 // Copyright (C) 2002-2011 MediaArea.net SARL, Info@MediaArea.net
3 //
4 // This software is provided 'as-is', without any express or implied
5 // warranty. In no event will the authors be held liable for any damages
6 // arising from the use of this software.
7 //
8 // Permission is granted to anyone to use this software for any purpose,
9 // including commercial applications, and to alter it and redistribute it
10 // freely, subject to the following restrictions:
11 //
12 // 1. The origin of this software must not be misrepresented; you must not
13 // claim that you wrote the original software. If you use this software
14 // in a product, an acknowledgment in the product documentation would be
15 // appreciated but is not required.
16 // 2. Altered source versions must be plainly marked as such, and must not be
17 // misrepresented as being the original software.
18 // 3. This notice may not be removed or altered from any source distribution.
19 //
20 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 
23 //---------------------------------------------------------------------------
24 #ifndef ZenOS_UtilsH
25 #define ZenOS_UtilsH
26 //---------------------------------------------------------------------------
27 
28 //---------------------------------------------------------------------------
29 #include "ZenLib/Conf.h"
30 #include "ZenLib/Ztring.h"
31 //---------------------------------------------------------------------------
32 
33 namespace ZenLib
34 {
35 
36 //***************************************************************************
37 // OS Information
38 //***************************************************************************
39 
40 //---------------------------------------------------------------------------
41 bool IsWin9X ();
42 #ifdef WINDOWS
43 #ifndef ZENLIB_NO_WIN9X_SUPPORT
44 inline bool IsWin9X_Fast ()
45 {
46  return GetVersion()>=0x80000000;
47 }
48 #endif //ZENLIB_NO_WIN9X_SUPPORT
49 #endif //WINDOWS
50 
51 //***************************************************************************
52 // Execute
53 //***************************************************************************
54 
55 void Shell_Execute(const Ztring &ToExecute);
56 
57 //***************************************************************************
58 // Directorues
59 //***************************************************************************
60 
61 Ztring OpenFolder_Show(void* Handle, const Ztring &Title, const Ztring &Caption);
62 
63 } //namespace ZenLib
64 #endif