LogonUserExA

[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL LogonUserExA(
    PCSTR lpszUsername,
    PCSTR lpszDomain,
    PCSTR lpszPassword,
    LOGON32_LOGON dwLogonType,
    LOGON32_PROVIDER dwLogonProvider,
    [Optional] HANDLE* phToken,
    [Optional] PSID* ppLogonSid,
    [Optional] void** ppProfileBuffer,
    [Optional] uint* pdwProfileLength,
    [Optional] QUOTA_LIMITS* pQuotaLimits);

LOGON32_LOGON

LOGON32_PROVIDER

QUOTA_LIMITS

Last updated