[*] Alternative panic path for older Win32 targets
This commit is contained in:
parent
7fb8b89def
commit
ef4dc9bc18
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user