Click or drag to resize

ImpersonateLogonUser Method

Namespace:  EDK4Net.IO
Assembly:  EDK4Net (in EDK4Net.dll) Version: 3.0.7.3
Syntax
C#
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[BrowsableAttribute(false)]
public static bool LogonUser(
	string lpszUsername,
	string lpszDomain,
	string lpszPassword,
	int dwLogonType,
	int dwLogonProvider,
	ref IntPtr phToken
)

Parameters

lpszUsername
Type: SystemString
lpszDomain
Type: SystemString
lpszPassword
Type: SystemString
dwLogonType
Type: SystemInt32
dwLogonProvider
Type: SystemInt32
phToken
Type: SystemIntPtr

Return Value

Type: Boolean
See Also