Added TerminateProcess().

svn path=/trunk/; revision=448
This commit is contained in:
Eric Kohl 1999-05-11 15:28:11 +00:00
parent 078d8a8502
commit 3f9e43cbf2

View file

@ -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;
}
@ -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;
}