Click or drag to resize

WindowsApiLogonUser Method

Win32 LogonUser function.

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static bool LogonUser(
	string lpszUsername,
	string lpszDomain,
	string lpszPassword,
	int dwLogonType,
	int dwLogonProvider,
	out IntPtr phToken
)
View Source

Parameters

lpszUsername  String
 
lpszDomain  String
 
lpszPassword  String
 
dwLogonType  Int32
 
dwLogonProvider  Int32
 
phToken  IntPtr
 

Return Value

Boolean
See Also