#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.
lpDevice
Points to a PDEVICE structure specifying the destination device.
The return value is positive if the escape is successful. Otherwise, it is negative.
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.