/*static char *SCCSID = "@(#)qthkcode.def	6.1 90/11/18";*/
/****************************************************************************/
/*                                                                          */
/*                       IBM/Microsoft Confidential                         */
/*                                                                          */
/*                 Copyright (c) IBM Corporation  1987, 1990                */
/*                 Copyright (c) Microsoft Corp.  1987, 1990                */
/*                           All Rights Reserved                            */
/*                                                                          */
/****************************************************************************/
/* #define BIT32    0x04                   */
/* since #define is not supported, 4 is    */
/* hardcoded in for callersize             */

typedef char UCHAR;

typedef unsigned short USHORT;

typedef unsigned long ULONG;

typedef unsigned int  UINT;

typedef char   *PCHAR;

typedef short  *PSHORT;

typedef long   *PLONG;

typedef UCHAR  *PUCHAR;

typedef USHORT *PUSHORT;

typedef ULONG  *PULONG;

typedef string *PSZ;

typedef UINT   *PUINT;

typedef struct _LOCATION {
        USHORT  processid;
        ULONG   requestdata;
        } LOCATION;

typedef LOCATION *PLOCATION;

typedef struct _LOCATION32 {
        ULONG   processid;
        ULONG   requestdata;
        } LOCATION32;

typedef LOCATION32 *PLOCATION32;

API16 USHORT w_DosCreateQueue(PUSHORT handle,USHORT qprio,PSZ qname,USHORT callersize)=
API32 ULONG Dos32CreateQueue(PULONG handle,ULONG qprio,PSZ qname,USHORT callersize deleted 4)
{
Dos32CreateQueue = conforming;
handle=output;
qname=input;
}
Dos32CreateQueue => w_DosCreateQueue;

API16 USHORT w_DosOpenQueue(PUSHORT ownerpid,PUSHORT handle,PSZ qname,USHORT callersize)=
API32 ULONG Dos32OpenQueue(PULONG ownerpid,PULONG handle,PSZ qname,USHORT callersize deleted 4)
{
Dos32OpenQueue = conforming;
ownerpid=output;
handle=output;
qname=input;
}
Dos32OpenQueue => w_DosOpenQueue;

API16 USHORT DosCloseQueue(USHORT handle)=
API32 ULONG Dos32CloseQueue(ULONG handle)
{
Dos32CloseQueue = conforming;
}
Dos32CloseQueue => DosCloseQueue;

API16 USHORT w_DosReadQueue(USHORT handle,PLOCATION request,PULONG datalength,PULONG dataaddress,USHORT elcode,USHORT nowait,PUSHORT elprio,ULONG semhand)=
API32 ULONG Dos32ReadQueue(ULONG handle,PLOCATION32 request,PULONG datalength,PULONG dataaddress,ULONG elcode,ULONG nowait,PULONG elprio,ULONG semhand)
{
Dos32ReadQueue = conforming;
request=output;
datalength=output;
dataaddress=output;
elprio=output;
}
Dos32ReadQueue => w_DosReadQueue;

API16 USHORT w_DosWriteQueue(USHORT handle,ULONG request,ULONG datalength,PCHAR dataaddress,USHORT elprio)=
API32 ULONG Dos32WriteQueue(ULONG handle,ULONG request,ULONG datalength,PCHAR dataaddress,ULONG elprio)
{
Dos32WriteQueue = conforming;
dataaddress=input;
}
Dos32WriteQueue => w_DosWriteQueue;

API16 USHORT w_DosPeekQueue(USHORT handle,PLOCATION request,PULONG datalength,PULONG dataaddress,PUSHORT elcode,USHORT nowait,PUSHORT elprio,ULONG semhand)=
API32 ULONG Dos32PeekQueue(ULONG handle,PLOCATION32 request,PULONG datalength,PULONG dataaddress,PULONG elcode,ULONG nowait,PULONG elprio,ULONG semhand)
{
Dos32PeekQueue = conforming;
request=output;
datalength=output;
dataaddress=output;
elcode=inout;
elprio=output;
}
Dos32PeekQueue => w_DosPeekQueue;

API16 USHORT DosPurgeQueue(USHORT handle)=
API32 ULONG Dos32PurgeQueue(ULONG handle)
{
Dos32PurgeQueue = conforming;
}
Dos32PurgeQueue => DosPurgeQueue;

API16 USHORT DosQueryQueue(USHORT handle,PUSHORT numel)=
API32 ULONG Dos32QueryQueue(ULONG handle,PULONG numel)
{
Dos32QueryQueue = conforming;
numel=output;
}
Dos32QueryQueue => DosQueryQueue;

API16 USHORT _dynainit()=
API32 ULONG queinit()
{
queinit = conforming;
}
queinit => _dynainit;
