[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL CreateProcessWithLogonW(
PCWSTR lpUsername,
PCWSTR lpDomain,
PCWSTR lpPassword,
CREATE_PROCESS_LOGON_FLAGS dwLogonFlags,
PCWSTR lpApplicationName,
PWSTR lpCommandLine,
PROCESS_CREATION_FLAGS dwCreationFlags,
[Optional] void* lpEnvironment,
PCWSTR lpCurrentDirectory,
STARTUPINFOW* lpStartupInfo,
PROCESS_INFORMATION* lpProcessInformation);