ultimatepp/bazaar/SysExec/ShellLib.h
micio 6c1daadc05 Bazaar/SysExec : fixed SysXXXAdmin() environment passing when app is already in elevated mode
git-svn-id: svn://ultimatepp.org/upp/trunk@3080 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-01-24 16:20:38 +00:00

21 lines
475 B
C

#ifndef _SysExec_ShellLib_h_
#define _SysExec_ShellLib_h_
#include <Core/Core.h>
NAMESPACE_UPP
#ifdef PLATFORM_WIN32
// check if user is running in admin mode
bool IsUserAdministrator(void);
// executes a command via shell "runas" as admin user;
// if wait is true, will wait for command end, otherwise executes it in background
bool ShellExec(String const &args, VectorMap<String, String> const &env, bool wait);
#endif
END_UPP_NAMESPACE
#endif