Method | Description | |
---|---|---|
Impersonate ( string logon, string password, string domain ) : bool |
Impersonate given logon information.
|
|
UnImpersonate ( ) : void |
Unimpersonate.
|
Method | Description | |
---|---|---|
DuplicateToken ( IntPtr, hToken, int impersonationLevel, IntPtr, &hNewToken ) : int | ||
LogonUser ( string lpszUserName, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, IntPtr, &phToken ) : int |
public static Impersonate ( string logon, string password, string domain ) : bool | ||
logon | string | Windows logon name. |
password | string | password |
domain | string | domain name |
return | bool |