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.
Int 2FH Function 01H
◄Summary► ◄Notes► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Description: Print Spooler DOS 3 Only
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.
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=eror count
pathname (Subfunction 02H) DS:SI=segment:offset of
print queue file list
If function unsuccessful
Carry flag=set
AX=error code
-♦-