mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +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
|
@ -260,7 +260,7 @@ VOID STDCALL GetStartupInfoW(LPSTARTUPINFO lpStartupInfo)
|
|||
return;
|
||||
}
|
||||
|
||||
lpStartupInfo->cb = sizeof(STARTUPINFO);
|
||||
lpStartupInfo->cb = sizeof(STARTUPINFO);
|
||||
lstrcpyW(lpStartupInfo->lpDesktop, pPeb->StartupInfo->Desktop);
|
||||
lstrcpyW(lpStartupInfo->lpTitle, pPeb->StartupInfo->Title);
|
||||
lpStartupInfo->dwX = pPeb->StartupInfo->dwX;
|
||||
|
@ -283,9 +283,6 @@ VOID STDCALL GetStartupInfoW(LPSTARTUPINFO lpStartupInfo)
|
|||
|
||||
|
||||
return;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -352,9 +349,21 @@ BOOL STDCALL FlushInstructionCache(HANDLE hProcess,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
VOID STDCALL ExitProcess(UINT uExitCode)
|
||||
{
|
||||
NtTerminateProcess(NtCurrentProcess() ,uExitCode);
|
||||
VOID STDCALL ExitProcess(UINT 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