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
- lpszUsername
Type: System.String
- lpszDomain
Type: System.String
- lpszPassword
Type: System.String
- dwLogonType
Type: System.Int32
- dwLogonProvider
Type: System.Int32
- TokenHandle
Type: System.IntPtr
Return Value
Type: System.Boolean
See Also
Reference
Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security Namespace