65d3a3760bd3bbf53b3e4825b573ed14288b57b1
[reactos.git] / os2 / lib / doscalls / misc / doscalls.h
1 /* $Id: doscalls.h,v 1.4 2002/05/30 15:11:46 robertk Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS OS/2 sub system
5 * FILE: dll/doscalls.h
6 * PURPOSE: Kernelservices for OS/2 apps
7 * PROGRAMMER: Robert K. robertk@mok.lvcm.com
8 * REVISION HISTORY:
9 * 13-03-2002 Created
10 */
11
12
13
14
15
16 // FIXME: use ib headers
17 #define EXIT_THREAD 0
18 #define EXIT_PROCESS 1
19 #define NO_ERROR 0
20 #define ERROR_INVALID_HANDLE 5
21 #define ERROR_FILE_NOT_FOUND 6
22 // for this
23
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
33
34
35 APIRET STDCALL Dos32Sleep(ULONG msec);
36
37 APIRET STDCALL Dos32CreateThread(PTID ptid,
38 PFNTHREAD pfn,
39 ULONG param,
40 ULONG flag,
41 ULONG cbStack);
42
43 APIRET STDCALL Dos32Open(PSZ pszFileName,
44 PHFILE pHf,
45 PULONG pulAction,
46 ULONG cbFile,
47 ULONG ulAttribute,
48 ULONG fsOpenFlags,
49 ULONG fsOpenMode,
50 PVOID reserved ); //ULONGPEAOP2 peaop2)
51
52 APIRET STDCALL Dos32Close(HFILE hFile);
53
54 APIRET STDCALL Dos32Read(HFILE hFile,
55 PVOID pBuffer,
56 ULONG cbRead,
57 PULONG pcbActual);
58
59 APIRET STDCALL Dos32Write(HFILE hFile,
60 PVOID pBuffer,
61 ULONG cbWrite,
62 PULONG pcbActual);
63
64 APIRET STDCALL Dos32DevIOCtl(HFILE hDevice, ULONG category, ULONG function,
65 PVOID pParams,ULONG cbParmLenMax,PULONG pcbParmLen,
66 PVOID pData,ULONG cbDataLenMax,PULONG pcbDataLen);
67
68
69 APIRET STDCALL Dos32Beep(ULONG freq,
70 ULONG dur);
71
72 VOID STDCALL Dos32Exit(ULONG action,
73 ULONG result);
74
75
76
77
78
79
80
81
82
83