mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-08 11:04:57 -06:00
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:
parent
193d4581db
commit
2a3df454dd
3 changed files with 23 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue