Running an application as a different user
We launch the application on behalf of another user.
1 2 3 4 5 6 7 8 9 |
var user, pass, pathAndParams: string; begin user:='user'; pass:= 'password'; pathAndParams:= 'C:\Windows\notepad.exe'; runAsUser(user, pass, pathAndParams); end; |