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);
Last updated