Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 2Fh Function 01h
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   2Fh     Function:   01h
 
  Title:       Print Spooler [Version 3.0+]
 
  Description:
 
     Submits a file to the print spooler, removes a file from the print
     spooler's queue of pending files, or obtains the status of the
     printer. The print spooler, which is contained in the file
     PRINT.COM, was first added to MS-DOS in version 2.0, but the
     application program interface to the spooler was not documented
     until MS-DOS version 3.0.
 
     Input                                     Output
 
     AH = 01h                                  If function successful
     AL = Subfunction                            Carry flag: clear
          00h = Get Installed State            And if called with
          01h = Submit File to be Printed      AL = 00h
          02h = Remove File from Print Queue     AL = Print spooler state
          03h = Cancel All Files in Queue           = 00h (if not installed,
          04h = Hold Print Jobs for Status                 OK to install)
                Read                                = 01h (if not installed,
          05h = Release Hold                               not OK to install)
     DS:DX = segment:offset of packet               = FFh (if installed)
             (Subfunction 01h)                 Or if called with AL = 04h
           = segment:offset of ASCIIZ            DX = Error count
             path name (Subfunction 02h)         DS:SI = segment:offset of
                                                         print queue file
                                                         list
 
                                                 If function unsuccessful
                                                   Carry flag: set
                                                   AX = Error code (01h,
                                                        02h, 03h, 04h,
                                                        05h, 08h, 09h,
                                                        0Ch, or 0Fh)
                                                   See: Error codes
                                    -♦-