f7e2f5514dca6ce8d5ef2b708b5c0a167766d266
1 /* $Id: doscalls.h,v 1.3 2002/03/24 18:55:39 ea 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
17 // FIXME: use ib headers
19 #define EXIT_PROCESS 1
21 #define ERROR_INVALID_HANDLE 5
22 #define ERROR_FILE_NOT_FOUND 6
25 // Give the user nicer names that the internal ones
26 #define DosSleep Dos32Sleep
27 #define DosCreateThread Dos32CreateThread
28 #define DosOpen Dos32Open
29 #define DosClose Dos32Close
30 #define DosRead Dos32Read
31 #define DosWrite Dos32Write
32 #define DosBeep Dos32Beep
33 #define DosExit Dos32Exit
36 APIRET STDCALL
Dos32Sleep(ULONG msec
);
38 APIRET STDCALL
Dos32CreateThread(PTID ptid
,
44 APIRET STDCALL
Dos32Open(PSZ pszFileName
,
51 PVOID reserved
); //ULONGPEAOP2 peaop2)
53 APIRET STDCALL
Dos32Close(HFILE hFile
);
55 APIRET STDCALL
Dos32Read(HFILE hFile
,
60 APIRET STDCALL
Dos32Write(HFILE hFile
,
65 APIRET STDCALL
Dos32DevIOCtl(HFILE hDevice
, ULONG category
, ULONG function
,
66 PVOID pParams
,ULONG cbParmLenMax
,PULONG pcbParmLen
,
67 PVOID pData
,ULONG cbDataLenMax
,PULONG pcbDataLen
);
70 APIRET STDCALL
Dos32Beep(ULONG freq
,
73 VOID STDCALL
Dos32Exit(ULONG action
,