#define INCL_DOS #define INCL_GPI #define INCL_WIN #include "os2.h" #define PASFAR pascal far writequeue(char far *txt, USHORT mode, USHORT len) { SEL selector, qownersel; char far *p; char far *ptr; int i; static HQUEUE hq=NULL; static char queuename[] = "\\QUEUES\\PMDEBUG"; static int pid; if (!hq && DosOpenQueue((USHORT*)&pid, &hq, queuename)) return -1; if (DosAllocSeg( len, &selector,SEG_GIVEABLE)) return -2; ptr = MAKEP(selector,0); for (i=0; i