|
WindowsApiLogonUser Method
|
Win32 LogonUser function.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
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 Boolean
public:
[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