EngCheckAbort

BOOL EngCheckAbort(

    IN SURFOBJ *pso

   );

EngCheckAbort enables a printer driver to check whether a print job has been terminated.

Parameters

pso
Points to a SURFOBJ that describes the print job. This object is passed to DrvSendPage or DrvStartPage.

Return Value

The return value is TRUE if the specified print job has been aborted. FALSE is returned if pso points to an invalid SURFOBJ, or if the print job has not been aborted.

Comments

The printer driver should call EngCheckAbort from any operation that takes more than five seconds.

If the specified print job has been aborted, the driver terminates its current operation and returns to GDI.

See Also

DrvSendPage, DrvStartPage, SURFOBJ