mov dx, seg FileName
mov ds, dx
mov dx, offset FileName ;ds:dx points to ASCIIZ filename
mov ax, 0102h ;Remove File from Print Queue
int 2Fh ;Multiplex Interrupt
Remove File from Print Queue (Interrupt 2Fh Function 0102h) removes a specified file or files from the print queue.
FileName
Points to a zero-terminated string that specifies the file or files to be removed from the queue. The string must be a valid MS-DOS filename, but may contain wildcards to remove multiple files from the print queue.
If the function is successful, the carry flag is clear. Otherwise, the carry flag is set and the AX register contains an error value, which may be 0002h (ERROR_FILE_NOT_FOUND).
Interrupt 2Fh Function 0101h Add File to Queue