C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_bios_printer
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _bios_printer routine uses INT 0x17 to perform printer output
     services for parallel printers. The <printer> argument specifies
     the affected printer, where 0 is LPT1, 1 is LPT2, and so on.
 
     Some printers do not support the full set of signals. As a result,
     the "Out of Paper" condition, for example, may not be returned to
     your program.
 
     The <service> argument can be any of the following manifest
     constants:
 
     _PRINTER_INIT     _PRINTER_STATUS     _PRINTER_WRITE
 
     Return Value
 
     The _bios_printer function returns the value in the AX register
     after the BIOS interrupt. The high-order byte (AH) of the return
     value indicates the printer status after the operation, as defined
     below:
 
     Bit     Meaning if True       Bit     Meaning if True
 
     0       Printer timed out     4       Printer selected
     1       Not used              5       Out of paper
     2       Not used              6       Acknowledge
     3       I/O error             7       Printer not busy
                                    -♦-