Bazaar/SysExec : exported a couple of system info functions

git-svn-id: svn://ultimatepp.org/upp/trunk@3089 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2011-01-25 11:04:27 +00:00
parent d35920972b
commit 43b13d7bc4
6 changed files with 118 additions and 82 deletions

22
bazaar/SysExec/SysInfo.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef _SysExec_SysInfo_h_
#define _SysExec_SysInfo_h_
#include <Core/Core.h>
NAMESPACE_UPP
#ifdef PLATFORM_WIN32
////////////////////////////////////////////////////////////////////////////////////
// utility functions to if running Vista or newer OSs
bool IsVistaOrLater(void);
////////////////////////////////////////////////////////////////////////////////////
// check if user is running in admin mode
bool IsUserAdministrator(void);
#endif
END_UPP_NAMESPACE
#endif