mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Added TerminateProcess().
svn path=/trunk/; revision=448
This commit is contained in:
parent
078d8a8502
commit
3f9e43cbf2
1 changed files with 16 additions and 9 deletions
|
@ -283,9 +283,6 @@ VOID STDCALL GetStartupInfoW(LPSTARTUPINFO lpStartupInfo)
|
|||
|
||||
|
||||
return;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -354,7 +351,19 @@ BOOL STDCALL FlushInstructionCache(HANDLE hProcess,
|
|||
|
||||
VOID STDCALL ExitProcess(UINT uExitCode)
|
||||
{
|
||||
NtTerminateProcess(NtCurrentProcess() ,uExitCode);
|
||||
NtTerminateProcess(NtCurrentProcess(), uExitCode);
|
||||
}
|
||||
|
||||
WINBOOL STDCALL TerminateProcess(HANDLE hProcess, UINT uExitCode)
|
||||
{
|
||||
NTSTATUS errCode;
|
||||
errCode = NtTerminateProcess(hProcess, uExitCode);
|
||||
if (!NT_SUCCESS(errCode))
|
||||
{
|
||||
SetLastError(RtlNtStatusToDosError(errCode));
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
VOID STDCALL FatalAppExitA(UINT uAction, LPCSTR lpMessageText)
|
||||
|
@ -379,5 +388,3 @@ VOID STDCALL FatalAppExitW(UINT uAction, LPCWSTR lpMessageText)
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue