int SetAbortProc(hDC, lpAbortProc) | |||||
HDC hDC; | /* device-context handle | */ | |||
PROC lpAbortProc; | /* pointer to abort function | */ |
The SetAbortProc function sets the application-supplied abort function that allows a print job to be cancelled during spooling. This function replaces the SETABORTPROC printer escape for Windows version 3.1 and later.
hDC
Identifies the device context for the print job.
lpAbortProc
Points to the application-supplied abort function. For more information about the callback function, see the description of the AbortProc callback function.
The return value is greater than zero if the function is successful. Otherwise, it is less than zero.
AbortDoc, AbortProc, Escape