Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>prt_check()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PRT_CHECK()
   Checks the status of the printer.

   Syntax
         nStatus = PRT_CHECK(nPrinterN)

   Arguments
         nPrinterN   Sets which printer port is used, and hence the
                     appropriate printer. A value of 0, 1, or 2 corresponds to
                     LPT1, LPT2, or LPT3 respectively.

   Returns
         nStatus     Returns the status of the printer.
                     0 - Printer off line
                     1 - Printer ready

   Description
         PRT_CHECK() makes a call to the ROM BIOS to check the status of
         the requested printer. It sets which printer port is used, and hence
         the appropriate printer. A value of 0, 1 or 2 corresponds to LPT1,
         LPT2 or LPT3 respectively. Since a call is made directly to the ROM
         BIOS, we have no knowledge of output being re-directed by DOS or by
         a network driver. You should call this function before printing the
         screen to make sure that the printer is ready for use.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson