Files
2ine-tms34010/native/quecalls.h
T
Ryan C. Gordon 20d2bfa3ff Split out OS2EXPORT from OS2API.
Otherwise, "SomeObj * OS2API FunctionName()" won't work.
2017-12-20 18:31:48 -05:00

42 lines
1.1 KiB
C

#ifndef _INCL_QUECALLS_H_
#define _INCL_QUECALLS_H_
#include "os2types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
PID pid;
ULONG ulData;
} REQUESTDATA, *PREQUESTDATA;
enum
{
QUE_FIFO = 0,
QUE_LIFO = 1,
QUE_PRIORITY = 2,
QUE_NOCONVERT_ADDRESS = 0,
QUE_CONVERT_ADDRESS = 4
};
OS2EXPORT APIRET OS2API DosCreateQueue(PHQUEUE phq, ULONG priority, PSZ pszName);
OS2EXPORT APIRET OS2API DosCloseQueue(HQUEUE hq);
OS2EXPORT APIRET OS2API DosOpenQueue(PPID ppid, PHQUEUE phq, PSZ pszName);
OS2EXPORT APIRET OS2API DosPeekQueue(HQUEUE hq, PREQUESTDATA pRequest, PULONG pcbData, PPVOID ppbuf, PULONG element, BOOL32 nowait, PBYTE ppriority, HEV hsem);
OS2EXPORT APIRET OS2API DosPurgeQueue(HQUEUE hq);
OS2EXPORT APIRET OS2API DosQueryQueue(HQUEUE hq, PULONG pcbEntries);
OS2EXPORT APIRET OS2API DosReadQueue(HQUEUE hq, PREQUESTDATA pRequest, PULONG pcbData, PPVOID ppbuf, ULONG element, BOOL32 wait, PBYTE ppriority, HEV hsem);
OS2EXPORT APIRET OS2API DosWriteQueue(HQUEUE hq, ULONG request, ULONG cbData, PVOID pbData, ULONG priority);
#ifdef __cplusplus
}
#endif
#endif
// end of quecalls.h ...