start 'run as'-dialogue

start 'run as'-dialogue

Post by R. Schoppe » Sat, 29 Jan 2005 21:31:18


I want to start the 'run as'-dialogue from VB-code,
not manual (- that works with SHIFT key and right-click)
Does anyone know the function?


start 'run as'-dialogue

Post by Mark R. Bl » Sun, 30 Jan 2005 04:23:45

The "Run As" dialog is a front-end to the Windows function
CreateProcessAsLogonW(), which you can call directly from Visual
< ;en-us;285879>
< ;

Another way might be to shell-execute runas.exe.


start 'run as'-dialogue

Post by R. Schoppe » Wed, 02 Feb 2005 19:28:59

Thanks a lot!
That was exactly the function I needed!

"Mark R. Blain" < XXXX@XXXXX.COM > schrieb im Newsbeitrag