f7e2f5514dca6ce8d5ef2b708b5c0a167766d266
[reactos.git] / os2 / lib / doscalls / misc / doscalls.h
1 /* $Id: doscalls.h,v 1.3 2002/03/24 18:55:39 ea 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 #include "os2def.h"
15
16
17 // FIXME: use ib headers
18 #define EXIT_THREAD 0
19 #define EXIT_PROCESS 1
20 #define NO_ERROR 0
21 #define ERROR_INVALID_HANDLE 5
22 #define ERROR_FILE_NOT_FOUND 6
23 // for this
24
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
34
35
36 APIRET STDCALL Dos32Sleep(ULONG msec);
37
38 APIRET STDCALL Dos32CreateThread(PTID ptid,
39 PFNTHREAD pfn,
40 ULONG param,
41 ULONG flag,
42 ULONG cbStack);
43
44 APIRET STDCALL Dos32Open(PSZ pszFileName,
45 PHFILE pHf,
46 PULONG pulAction,
47 ULONG cbFile,
48 ULONG ulAttribute,
49 ULONG fsOpenFlags,
50 ULONG fsOpenMode,
51 PVOID reserved ); //ULONGPEAOP2 peaop2)
52
53 APIRET STDCALL Dos32Close(HFILE hFile);
54
55 APIRET STDCALL Dos32Read(HFILE hFile,
56 PVOID pBuffer,
57 ULONG cbRead,
58 PULONG pcbActual);
59
60 APIRET STDCALL Dos32Write(HFILE hFile,
61 PVOID pBuffer,
62 ULONG cbWrite,
63 PULONG pcbActual);
64
65 APIRET STDCALL Dos32DevIOCtl(HFILE hDevice, ULONG category, ULONG function,
66 PVOID pParams,ULONG cbParmLenMax,PULONG pcbParmLen,
67 PVOID pData,ULONG cbDataLenMax,PULONG pcbDataLen);
68
69
70 APIRET STDCALL Dos32Beep(ULONG freq,
71 ULONG dur);
72
73 VOID STDCALL Dos32Exit(ULONG action,
74 ULONG result);
75
76
77
78
79
80
81
82
83
84