home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / PRNSPOOL.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  1KB  |  50 lines

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