Bazaar/SysExec : start implementing SysStartAdmin() functions

git-svn-id: svn://ultimatepp.org/upp/trunk@3034 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2011-01-17 22:56:08 +00:00
parent 193d4581db
commit 2a3df454dd
3 changed files with 23 additions and 1 deletions

View file

@ -368,4 +368,19 @@ intptr_t SysStart(String const &command, String const &args)
return SysStart(command, args, Environment());
}
///////////////////////////////////////////////////////////////////////////////////////////////
// executes an external command as Admin user, passing a command line to it without waiting for its termination
// it WILL prompt for user intervention on secure systems (linux - Vista+ OSes)
// return true on success, false otherwise
bool SysStartAdmin(String const &command, String const &args, const VectorMap<String, String> &Environ);
{
#ifdef PLATFORM_POSIX
#else
// as ShellExecuteEx doesn't take
#endif
}
END_UPP_NAMESPACE

View file

@ -19,6 +19,13 @@ bool SysExec(String const &command, String const &args);
intptr_t SysStart(String const &command, String const &args, const VectorMap<String, String> &Environ);
intptr_t SysStart(String const &command, String const &args);
///////////////////////////////////////////////////////////////////////////////////////////////
// executes an external command as Admin user, passing a command line to it without waiting for its termination
// it WILL prompt for user intervention on secure systems (linux - Vista+ OSes)
// return true on success, false otherwise
bool SysStartAdmin(String const &command, String const &args, const VectorMap<String, String> &Environ);
bool SysStartAdmin(String const &command, String const &args);
END_UPP_NAMESPACE
#endif

View file

@ -1,4 +1,4 @@
description "BAZAAR : Execution of external commands gathering output - Author : Massimo Del Fedele - EMail : max@veneto.com";
description "BAZAAR : Execution of external commands gathering output - Author : Massimo Del Fedele - EMail : max@veneto.com\377";
uses
Core;