/*static char *SCCSID = "@(#)moncalls.h	6.1 91/04/26";*/
/*static char *SCCSID = "@(#)moncalls.h	6.1 91/02/27";*/

///////////////////////////////////////////////////////////////////////////////
#define MAX_OPENED_DEVICES  50
#define DEVSTRINGLEN        12
#define INFINITE_TIMEOUT    -1
#define BAD_ITEM            NULL
#define  MYERROR_FORCE_A_FAULT ERROR_PROTECTION_VIOLATION
///////////////////////////////////////////////////////////////////////////////

typedef struct OPENEDDEVICES {
    struct OPENEDDEVICES *Prev;
    struct OPENEDDEVICES *Next;
    USHORT                Dev_Handle;
    char                  Dev_String[DEVSTRINGLEN];
} OPENEDDEVICES;


typedef struct LISTHEADER {
   struct OPENEDDEVICES *First_Item;
   struct OPENEDDEVICES *Free_Item;
   HSEM                  ListRAMSem;
} LISTHEADER;


typedef struct IOC_PARMPACKET {
   UCHAR    Command_Info;
} IOC_PARMPACKET;

typedef struct IOC_DATAPACKET {
   USHORT Placement_Flag;
   USHORT Monitor_Index;
   USHORT Input_Buffer;
   USHORT Monitor_Buffer_Sel;
   USHORT Output_Buffer;
} IOC_DATAPACKET;

typedef SHANDLE HMONITOR;               /* hmon */
typedef HMONITOR FAR *PHMONITOR;

