diff --git a/bazaar/SysExec/SysExec.cpp b/bazaar/SysExec/SysExec.cpp index 67bfda90d..06efc06e9 100644 --- a/bazaar/SysExec/SysExec.cpp +++ b/bazaar/SysExec/SysExec.cpp @@ -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 &Environ); +{ +#ifdef PLATFORM_POSIX + +#else + + // as ShellExecuteEx doesn't take + +#endif +} + END_UPP_NAMESPACE diff --git a/bazaar/SysExec/SysExec.h b/bazaar/SysExec/SysExec.h index a0dbe5eb8..475f1d4b2 100644 --- a/bazaar/SysExec/SysExec.h +++ b/bazaar/SysExec/SysExec.h @@ -19,6 +19,13 @@ bool SysExec(String const &command, String const &args); intptr_t SysStart(String const &command, String const &args, const VectorMap &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 &Environ); +bool SysStartAdmin(String const &command, String const &args); + END_UPP_NAMESPACE #endif diff --git a/bazaar/SysExec/SysExec.upp b/bazaar/SysExec/SysExec.upp index c1afbfaa6..3e95b8965 100644 --- a/bazaar/SysExec/SysExec.upp +++ b/bazaar/SysExec/SysExec.upp @@ -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;