ENDDOC

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

Parameters

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