The LogonUserEx function attempts to log a user on to the local computer. The local computer is the computer from which LogonUserEx was called. You cannot use LogonUserEx to log on to a remote computer. You specify the user with a user name and domain, and authenticate the user with a plaintext password. If the function succeeds, you receive a handle to a token that represents the logged-on user. You can then use this token handle to impersonate the specified user or, in most cases, to create a process that runs in the context of the specified user.
11/24/2010 12:30:59 PM - -95.223.169.177
The DuplicateTokenEx function creates a new access token that duplicates an existing token. This function can create either a primary token or an impersonation token.
11/19/2012 3:33:05 AM - -213.199.128.148
Opens a handle to the access token associated with a process.
4/19/2010 2:03:23 PM - -149.173.6.25
Opens the access token associated with a thread
3/16/2007 7:33:52 AM - anfortas.geo@yahoo.com-216.204.61.86
The DuplicateTokenEx function creates a new access token that duplicates an existing token. This function can create either a primary token or an impersonation token.
4/5/2012 1:49:37 PM - Carl Mailloux-209.226.94.110
.
public extern static bool DuplicateTokenEx(
.
Declare Auto Function DuplicateTokenEx Lib "advapi32.dll" ( _
.
ByRef DuplicateTokenHandle As System.IntPtr) As Boolean
.
ret = DuplicateTokenEx(Token, UInt32.Parse(GRANTED_ALL, System.Globalization.NumberStyles.HexNumber), sa, SecurityImpersonation, TokenType, DupedToken)
The DuplicateTokenEx function creates a new access token that duplicates an existing token. This function can create either a primary token or an impersonation token.
4/5/2012 1:49:37 PM - Carl Mailloux-209.226.94.110
.
public extern static bool DuplicateTokenEx(
.
Declare Auto Function DuplicateTokenEx Lib "advapi32.dll" ( _
.
ByRef DuplicateTokenHandle As System.IntPtr) As Boolean
.
ret = DuplicateTokenEx(Token, UInt32.Parse(GRANTED_ALL, System.Globalization.NumberStyles.HexNumber), sa, SecurityImpersonation, TokenType, DupedToken)