home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNIP9404.ZIP / PRNSPOOL.H < prev    next >
C/C++ Source or Header  |  1994-04-03  |  1KB  |  49 lines

  1. /* prnspool.h 12-22-91 Robert Mashlan, public domain */
  2. /* print spooler interface functions header file     */
  3. /* modified by Bob Stout, Nov '93                    */
  4.  
  5. #ifdef __TURBOC__
  6.  #define FAR far
  7. #else
  8.  #define FAR _far
  9.  #if (defined(_MSC_VER) && (_MSC_VER >= 700)) || (defined(__SC__))
  10.   /* Make FP_xxx macros lvalues as in older versions */
  11.   #undef FP_SEG
  12.   #undef FP_OFF
  13.   #define FP_SEG(fp)    ((unsigned)((unsigned long)(fp) >> 16))
  14.   #define FP_OFF(fp)    ((unsigned)(fp && 0xffff))
  15.  #endif
  16. #endif
  17.  
  18. #ifndef MK_FP
  19.  #define MK_FP(seg,offset) \
  20.         ((void _far *)(((unsigned long)(seg)<<16) | (unsigned)(offset)))
  21. #endif
  22.  
  23. struct PACKET {
  24.       unsigned char level;
  25.       char far *pathname;
  26. };
  27.  
  28. extern int   printspool_errno;
  29. extern char *printspool_errlist[];
  30.  
  31. int  printspool_installed(void);
  32. int  printspool_submit( const char *pathname );
  33. int  printspool_remove( const char far *fname );
  34. int  printspool_cancel(void);
  35. char far *printspool_getqueue(void);
  36. void printspool_endhold(void);
  37. int  printspool_errorcount(void);
  38.  
  39. #define PSENOERR   0x00
  40. #define PSEINVFNC  0x01
  41. #define PSENOFILE  0x02
  42. #define PSENOPATH  0x03
  43. #define PSEMFILE   0x04
  44. #define PSEACCES   0x05
  45. #define PSEQUEFUL  0x08
  46. #define PSESPLBUSY 0x09
  47. #define PSENME2LNG 0x0c
  48. #define PSEINVDRV  0x0f
  49.