1 /* $Id: process.cpp,v 1.6 2003/01/07 16:23:11 robd 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 //#if defined (INCL_DOS)
19 #define INCL_DOSPROCESS
20 #define INCL_DOSERRORS
24 APIRET STDCALL
DosSleep(ULONG msec
)
28 Interv
.QuadPart
= -(10000 * msec
);
29 stat
= NT::NtDelayExecution( TRUE
, &Interv
);
34 /* $Id: process.cpp,v 1.6 2003/01/07 16:23:11 robd Exp $ */
35 /* Terminates the current thread or the current Process.
36 Decission is made by action
37 FIXME: move this code to OS2.EXE */
38 VOID APIENTRY
DosExit(ULONG action
, ULONG result
)
41 if( action
== EXIT_THREAD
)
43 NT::NtTerminateThread( NULL
, result
);
47 NT::NtTerminateProcess( NULL
, result
);
52 APIRET STDCALL
DosCreateThread(PTID ptid
, PFNTHREAD pfn
,
53 ULONG param
, ULONG flag
, ULONG cbStack
)
55 return ERROR_CALL_NOT_IMPLEMENTED
;