[*] Alternative panic path for older Win32 targets

This commit is contained in:
Reece Wilson 2023-08-19 13:30:44 +01:00
parent 7fb8b89def
commit ef4dc9bc18
2 changed files with 12 additions and 1 deletions

View File

@ -87,6 +87,7 @@ namespace Aurora
ADD_GET_PROC(Nt, ZwSetTimerResolution)
ADD_GET_PROC(Nt, NtQueryInformationProcess)
ADD_GET_PROC(Nt, NtNotifyChangeDirectoryFile)
ADD_GET_PROC(Nt, NtTerminateProcess)
ADD_GET_PROC_BI(Kernel32, KernelBase, VirtualAlloc2)
ADD_GET_PROC_BI(Kernel32, KernelBase, MapViewOfFile3)
@ -249,7 +250,12 @@ namespace Aurora
}
else
{
TerminateProcess(GetCurrentProcess(), 0);
if (pNtTerminateProcess)
{
pNtTerminateProcess((HANDLE)-1, 0x0);
}
::TerminateProcess(::GetCurrentProcess(), 0);
}
}
}

View File

@ -139,6 +139,11 @@ namespace Aurora
BOOLEAN WatchTree
);
inline NTSTATUS(__stdcall *pNtTerminateProcess)(
HANDLE ProcessHandle,
NTSTATUS ExitStatus
);
inline BOOL(__stdcall *pGetSystemCpuSetInformation)(
PSYSTEM_CPU_SET_INFORMATION Information,
ULONG BufferLength,