Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
ENDDOC
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define ENDDOC 11 
short Control(lpDevice, ENDDOC, NULL, NULL)
LPPDEVICE lpDevice;
 
The ENDDOC escape ends a print job that is started by a STARTDOC escape and
that is to be ended in a standard way, instead of stopping the job in the
middle of the process.
 
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
 
When a printing error occurs, the ENDDOC escape should not be used to
terminate the printing operation.
 
See Also
 
STARTDOC, PDEVICE
 
 
                                      ♦