1 /* $Id: process.cpp,v 1.5 2002/09/04 22:19:47 robertk Exp $
5 * COPYRIGHT: See COPYING in the top level directory
6 * PROJECT: ReactOS OS/2 sub system
9 * CONTAINS: process and thread related CP-functions.
10 * PURPOSE: Kernelservices for OS/2 apps
11 * PROGRAMMER: Robert K. nonvolatil@yahoo.de
14 * 25-07-2002 Work to make it compile
18 #define INCL_DOSPROCESS
19 #define INCL_DOSERRORS
23 APIRET STDCALL
DosSleep(ULONG msec
)
27 Interv
.QuadPart
= -(10000 * msec
);
28 stat
= NT::NtDelayExecution( TRUE
, &Interv
);
33 /* $Id: process.cpp,v 1.5 2002/09/04 22:19:47 robertk Exp $ */
34 /* Terminates the current thread or the current Process.
35 Decission is made by action
36 FIXME: move this code to OS2.EXE */
37 VOID APIENTRY
DosExit(ULONG action
, ULONG result
)
40 if( action
== EXIT_THREAD
)
42 NT::NtTerminateThread( NULL
, result
);
46 NT::NtTerminateProcess( NULL
, result
);
51 APIRET STDCALL
DosCreateThread(PTID ptid
, PFNTHREAD pfn
,
52 ULONG param
, ULONG flag
, ULONG cbStack
)
54 return ERROR_CALL_NOT_IMPLEMENTED
;