| 
            
              WindowsApiLogonUser Method
             | 
          
        
        
            Win32 LogonUser function.
            
        
        Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
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
)<DllImportAttribute("advapi32.dll", CharSet := CharSet.Unicode, SetLastError := true>]
Public Shared Function LogonUser ( 
	lpszUsername As String,
	lpszDomain As String,
	lpszPassword As String,
	dwLogonType As Integer,
	dwLogonProvider As Integer,
	<OutAttribute> ByRef phToken As IntPtr
) As Booleanpublic:
[DllImportAttribute(L"advapi32.dll", CharSet = CharSet::Unicode, SetLastError = true)]
static bool LogonUser(
	String^ lpszUsername, 
	String^ lpszDomain, 
	String^ lpszPassword, 
	int dwLogonType, 
	int dwLogonProvider, 
	[OutAttribute] IntPtr% phToken
)
[<DllImportAttribute("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)>]
static member LogonUser : 
        lpszUsername : string * 
        lpszDomain : string * 
        lpszPassword : string * 
        dwLogonType : int * 
        dwLogonProvider : int * 
        phToken : IntPtr byref -> bool GSF.Interop.WindowsApi.LogonUser = function(lpszUsername, lpszDomain, lpszPassword, dwLogonType, dwLogonProvider, phToken);
 View SourceParameters
- lpszUsername  String
 -  
 - lpszDomain  String
 -  
 - lpszPassword  String
 -  
 - dwLogonType  Int32
 -  
 - dwLogonProvider  Int32
 -  
 - phToken  IntPtr
 -  
 
Return Value
Boolean
See Also