2002-05-30 15:11:47 +00:00
|
|
|
/* $Id: doscalls.h,v 1.4 2002/05/30 15:11:46 robertk Exp $
|
2002-03-23 19:23:28 +00:00
|
|
|
*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS OS/2 sub system
|
|
|
|
* FILE: dll/doscalls.h
|
|
|
|
* PURPOSE: Kernelservices for OS/2 apps
|
|
|
|
* PROGRAMMER: Robert K. robertk@mok.lvcm.com
|
|
|
|
* REVISION HISTORY:
|
|
|
|
* 13-03-2002 Created
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: use ib headers
|
|
|
|
#define EXIT_THREAD 0
|
|
|
|
#define EXIT_PROCESS 1
|
|
|
|
#define NO_ERROR 0
|
|
|
|
#define ERROR_INVALID_HANDLE 5
|
|
|
|
#define ERROR_FILE_NOT_FOUND 6
|
|
|
|
// for this
|
|
|
|
|
|
|
|
// Give the user nicer names that the internal ones
|
|
|
|
#define DosSleep Dos32Sleep
|
|
|
|
#define DosCreateThread Dos32CreateThread
|
|
|
|
#define DosOpen Dos32Open
|
|
|
|
#define DosClose Dos32Close
|
|
|
|
#define DosRead Dos32Read
|
|
|
|
#define DosWrite Dos32Write
|
|
|
|
#define DosBeep Dos32Beep
|
|
|
|
#define DosExit Dos32Exit
|
|
|
|
|
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32Sleep(ULONG msec);
|
2002-03-23 19:23:28 +00:00
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32CreateThread(PTID ptid,
|
2002-03-23 19:23:28 +00:00
|
|
|
PFNTHREAD pfn,
|
|
|
|
ULONG param,
|
|
|
|
ULONG flag,
|
|
|
|
ULONG cbStack);
|
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32Open(PSZ pszFileName,
|
2002-03-23 19:23:28 +00:00
|
|
|
PHFILE pHf,
|
|
|
|
PULONG pulAction,
|
|
|
|
ULONG cbFile,
|
|
|
|
ULONG ulAttribute,
|
|
|
|
ULONG fsOpenFlags,
|
|
|
|
ULONG fsOpenMode,
|
|
|
|
PVOID reserved ); //ULONGPEAOP2 peaop2)
|
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32Close(HFILE hFile);
|
2002-03-23 19:23:28 +00:00
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32Read(HFILE hFile,
|
2002-03-23 19:23:28 +00:00
|
|
|
PVOID pBuffer,
|
|
|
|
ULONG cbRead,
|
|
|
|
PULONG pcbActual);
|
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32Write(HFILE hFile,
|
2002-03-23 19:23:28 +00:00
|
|
|
PVOID pBuffer,
|
|
|
|
ULONG cbWrite,
|
|
|
|
PULONG pcbActual);
|
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32DevIOCtl(HFILE hDevice, ULONG category, ULONG function,
|
2002-03-23 19:23:28 +00:00
|
|
|
PVOID pParams,ULONG cbParmLenMax,PULONG pcbParmLen,
|
|
|
|
PVOID pData,ULONG cbDataLenMax,PULONG pcbDataLen);
|
|
|
|
|
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
APIRET STDCALL Dos32Beep(ULONG freq,
|
2002-03-23 19:23:28 +00:00
|
|
|
ULONG dur);
|
|
|
|
|
2002-03-24 18:52:10 +00:00
|
|
|
VOID STDCALL Dos32Exit(ULONG action,
|
2002-03-23 19:23:28 +00:00
|
|
|
ULONG result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|