Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
It would be nice to have the following functionality in Qt in a platform independent manner.
1) - The ability to run a process as a named user (plus password). When having
a service that needs to run another program as a named user, the
service knows the users login name and password, so at the moment it is possible call
a windows api's (LogonUser, LoadUserProfile,
ImpersonateLoggedOnUser, CreateEnvironmentBlock, CreateProcessAsUserA).
It would be nice if I could simply use a QProcess to do this.
2) - Enable QProcess to make use of Vista UAC prompts when running a
program that requires elevation to administrator. I have currently coded
this using the windows api ShellExecute, which propmts for permission
to run the process elevated.