LogonUserA

[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL LogonUserA(
    PCSTR lpszUsername,
    PCSTR lpszDomain,
    PCSTR lpszPassword,
    LOGON32_LOGON dwLogonType,
    LOGON32_PROVIDER dwLogonProvider,
    HANDLE* phToken);

LOGON32_LOGON

LOGON32_PROVIDER

Last updated