G
Greg Wilson
I need to launch an app from inside my VB.NET app as a
specific user.
I do (VB.NET pseudo code)
Dim moImpersonationContext As WindowsImpersonationContext
= WindowsIdentityIwant.impersonate()
Shell('cmd /C TheCommandToLaunchTheUnmanagedCode')
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 moImpersonationContext As WindowsImpersonationContext
= WindowsIdentityIwant.impersonate()
Shell('cmd /C TheCommandToLaunchTheUnmanagedCode')
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?