Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
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.
ABORTDOC
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define ABORTDOC 2 
short Control(lpDevice, ABORTDOC, NULL, NULL)
LPPDEVICE lpDevice;
 
The ABORTDOC escape cancels and deletes the job using the DeleteJob
function.
 
The ABORTDOC escape should be used for printing operations that do not
specify a stopping function with the SETABORTPROC escape, and to stop
printing operations that have not yet reached their first NEWFRAME or
NEXTBAND call.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDevice   Points to a PDEVICE structure specifying the destination device.
 
Return Value
 
The return value is positive if the escape is successful. Otherwise, it is
negative.
 
Comments
 
GDI calls this escape when a banding error occurs. It is also called by an
application when an error occurs or when the application wants to cancel the
print job.
 
See Also
 
DeleteJob, ENDDOC, NEWFRAME, NEXTBAND, SETABORTPROC, PDEVICE
 
 
                                      ♦