mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
68230ee1f4
svn path=/trunk/; revision=2779
18 lines
408 B
C++
18 lines
408 B
C++
/* $Id: process.cpp,v 1.2 2002/03/24 18:55:39 ea Exp $ */
|
|
/* Terminates the current thread or the current Process.
|
|
Decission is made by action
|
|
FIXME: move this code to OS2.EXE */
|
|
VOID APIENTRY Dos32Exit(ULONG action, ULONG result)
|
|
{
|
|
// decide what to do
|
|
if( action == EXIT_THREAD)
|
|
{
|
|
NtTerminateThread( NULL, result );
|
|
}
|
|
else // EXIT_PROCESS
|
|
{
|
|
NtTerminateProcess( NULL, result );
|
|
}
|
|
}
|
|
|
|
/* EOF */
|