I need to launch an app from inside my VB.NET app as a
specific user.
I do (VB.NET pseudo code)
Dim moImpersonation Context As WindowsImperson ationContext
= WindowsIdentity Iwant.impersona te()
Shell('cmd /C TheCommandToLau nchTheUnmanaged Code')
I can verify that the Shell command runs under the new
Windows Identity, but the unmanaged code still launched
under the logged on user.
What am I doing wrong?
specific user.
I do (VB.NET pseudo code)
Dim moImpersonation Context As WindowsImperson ationContext
= WindowsIdentity Iwant.impersona te()
Shell('cmd /C TheCommandToLau nchTheUnmanaged Code')
I can verify that the Shell command runs under the new
Windows Identity, but the unmanaged code still launched
under the logged on user.
What am I doing wrong?
Comment