CreateProcessWithTokenW

Announcements and discussion for PInvoke

Moderators: Luke Jefferson, Robert

CreateProcessWithTokenW

Postby hk11 » Sat Jul 14, 2007 8:08 am

Can someone publish C# code to make use of CreateProcessWithTokenW function, so that i can run process just by getting token from current user, instead of passing user/pw for every run (WindowsIdentity.GetCurrent().Token)

Basically trying to extend impersonation functionality to disconnected functions like Process.Start()

Impersonation example:
http://www.codeproject.com/csharp/zetaimpersonator.asp

Many thanks.
hk11
 
Posts: 1
Joined: Sat Jul 14, 2007 8:05 am

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests