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.
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
 
 
                                      ♦