Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>abortdoc()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
AbortDoc()
Abort (terminate) a print job
------------------------------------------------------------------------------

Syntax
AbortDoc( <hDC> )   -->   nStatus

Arguments
<hDC> is the handle of the device context to stop printing to.

Returns
If successful, a positive numeric is returned, otherwise a
negative value is returned (one of the SP_* values defined in
WINDOWS.CH).

Description
This function aborts a print job previously started using the
StartDoc() function.

To terminate a print job normally, use the EndDoc() function.

Example
hPrintDC = GetPrintDC()
StartDoc( hPrintDC, "Out" )
     .
     .
     .
AbortDoc( hPrintDC )


See Also: CreateDC() EndDoc() GetPrintDC() StartDoc()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson