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

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  Header file for SNIPPETS PC printer control functions
  5. */
  6.  
  7. #ifndef SNIPRINT__H
  8. #define SNIPRINT__H
  9.  
  10. #include <stdio.h>            /* For FILE */
  11.  
  12. /*
  13. **  ASSIGNPRN.C
  14. */
  15.  
  16. #define NUM_OF_PRNTRS 6
  17.  
  18. extern FILE *printer[NUM_OF_PRNTRS];
  19.  
  20. int assign_printer(int number, char *device);
  21.  
  22. /*
  23. **  CHANGPRN.C
  24. */
  25.  
  26. typedef enum {LPT1, LPT2, LPT3, COM1, COM2, CON} PrintDevice;
  27.  
  28. int change_prn(PrintDevice device);
  29.  
  30. /*
  31. **  PRTOGGLE.C
  32. */
  33.  
  34. int prtoggle(void);
  35.  
  36. /*
  37. **  PRTSCRN.C
  38. */
  39.  
  40. int PrtScrnStat(void);
  41. int PrtScrn(void);
  42.  
  43. /*
  44. **  PRTSTAT.C
  45. */
  46.  
  47. struct PrStatus {
  48.       unsigned int timeout  : 1;
  49.       unsigned int unused   : 2;
  50.       unsigned int IOerror  : 1;
  51.       unsigned int selected : 1;
  52.       unsigned int paperout : 1;
  53.       unsigned int ack      : 1;
  54.       unsigned int notbusy  : 1;
  55. };
  56.  
  57. int prtstat(unsigned int);
  58.  
  59.  
  60. #endif /* SNIPRINT__H */
  61.