LogonUserA (advapi32)
Last changed: -142.229.88.183

.
Summary

C# Signature:

[DllImport("advapi32.dll")] public static extern int LogonUserA(ref string lpszUsername, ref string lpszDomain,ref string lpszPassword, ref int dwLogonType, ref int dwLogonProvider, int phToken)

VB Signature:

Declare Function LogonUserA Lib "advapi32.dll" (ByVal lpszUsername As String, ByVal lpszDomain As String, ByVal lpszPassword As String, ByVal dwLogonType As Integer, ByVal dwLogonProvider As Integer, ByRef phToken As IntPtr) As Integer

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
LogonUserA on MSDN