¡@

Home 

c# Programming Glossary: husertokenduplicate

Calling CreateProcessAsUser from C#

http://stackoverflow.com/questions/668389/calling-createprocessasuser-from-c-sharp

in its security context. var hUserToken IntPtr.Zero var hUserTokenDuplicate IntPtr.Zero var pEnvironmentBlock IntPtr.Zero var pNewEnvironmentBlock.. TOKEN_TYPE.TokenPrimary out hUserTokenDuplicate throw new Win32Exception Marshal.GetLastWin32Error Error duplicating.. new console process. retValue WinApi.CreateProcessAsUser hUserTokenDuplicate null this.CommandLine ref procAttrs ref threadAttrs false CreationFlags.CREATE_NEW_CONSOLE..