For the complete documentation index, see llms.txt. This page is also available as Markdown.

LogonUserW

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

LOGON32_LOGON

LOGON32_PROVIDER

Last updated