65d3a3760bd3bbf53b3e4825b573ed14288b57b1
1 /* $Id: doscalls.h,v 1.4 2002/05/30 15:11:46 robertk Exp $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS OS/2 sub system
6 * PURPOSE: Kernelservices for OS/2 apps
7 * PROGRAMMER: Robert K. robertk@mok.lvcm.com
16 // FIXME: use ib headers
18 #define EXIT_PROCESS 1
20 #define ERROR_INVALID_HANDLE 5
21 #define ERROR_FILE_NOT_FOUND 6
24 // Give the user nicer names that the internal ones
25 #define DosSleep Dos32Sleep
26 #define DosCreateThread Dos32CreateThread
27 #define DosOpen Dos32Open
28 #define DosClose Dos32Close
29 #define DosRead Dos32Read
30 #define DosWrite Dos32Write
31 #define DosBeep Dos32Beep
32 #define DosExit Dos32Exit
35 APIRET STDCALL
Dos32Sleep(ULONG msec
);
37 APIRET STDCALL
Dos32CreateThread(PTID ptid
,
43 APIRET STDCALL
Dos32Open(PSZ pszFileName
,
50 PVOID reserved
); //ULONGPEAOP2 peaop2)
52 APIRET STDCALL
Dos32Close(HFILE hFile
);
54 APIRET STDCALL
Dos32Read(HFILE hFile
,
59 APIRET STDCALL
Dos32Write(HFILE hFile
,
64 APIRET STDCALL
Dos32DevIOCtl(HFILE hDevice
, ULONG category
, ULONG function
,
65 PVOID pParams
,ULONG cbParmLenMax
,PULONG pcbParmLen
,
66 PVOID pData
,ULONG cbDataLenMax
,PULONG pcbDataLen
);
69 APIRET STDCALL
Dos32Beep(ULONG freq
,
72 VOID STDCALL
Dos32Exit(ULONG action
,