Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 21 - lantastic v3+ - get printer status http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - LANtastic v3+ - GET PRINTER STATUS
        AX = 5FA3h
        BX = physical printer number (00h-02h = LPT1-LPT3, 03h-04h = COM1-COM2)
        DS:SI -> buffer for printer status (see below)
        ES:DI -> ASCIZ server name in form "\\machine"
Return: CF clear if successful
        CF set on error
            AX = error code
        BX = next physical printer number

Format of printer status:
Offset  Size    Description
 00h    BYTE    printer state
                bit 7: printer paused
                bits 0-6: 0 printer disabled
                          1 will stop at end of job
                          2 print multiple jobs
 01h    WORD    queue index of print job being despooled
                FFFFh if not despooling--ignore all following fields
 03h    WORD    actual characters per second being output
 05h    DWORD   number of characters actually output so far
 09h    DWORD   number of bytes read from spooled file so far
 0Dh    WORD    copies remaining to print

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