mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +00:00
initial comit
svn path=/trunk/; revision=2773
This commit is contained in:
parent
e23995664a
commit
aea2b71437
16 changed files with 2595 additions and 0 deletions
17
os2/lib/doscalls/run/process.cpp
Normal file
17
os2/lib/doscalls/run/process.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
/* 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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue