Share via


SecurityWin32Util.LogonUser Method

The Win32 LogonUserDllImport method. For more information, see Using the DllImport Attribute.

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public Shared Function LogonUser ( _
    lpszUsername As String, _
    lpszDomain As String, _
    lpszPassword As String, _
    dwLogonType As Integer, _
    dwLogonProvider As Integer, _
    ByRef TokenHandle As IntPtr _
) As Boolean
'Usage
Dim lpszUsername As String
Dim lpszDomain As String
Dim lpszPassword As String
Dim dwLogonType As Integer
Dim dwLogonProvider As Integer
Dim TokenHandle As IntPtr
Dim returnValue As Boolean

returnValue = SecurityWin32Util.LogonUser(lpszUsername, _
    lpszDomain, lpszPassword, dwLogonType, _
    dwLogonProvider, TokenHandle)
public static bool LogonUser(
    string lpszUsername,
    string lpszDomain,
    string lpszPassword,
    int dwLogonType,
    int dwLogonProvider,
    ref IntPtr TokenHandle
)

Parameters

Return Value

Type: System.Boolean

See Also

Reference

SecurityWin32Util Class

SecurityWin32Util Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security Namespace