int SetAbortProc(hdc, abrtprc) | |||||
HDC hdc; | /* handle of device context | */ | |||
ABORTPROC abrtprc; | /* instance address of abort function | */ |
The SetAbortProc function sets the application-defined procedure that allows a print job to be canceled during spooling. This function replaces the SETABORTPROC printer escape for Windows version 3.1.
hdc
Identifies the device context for the print job.
abrtprc
Specifies the procedure-instance address of the callback function. The address must have been created by using the MakeProcInstance 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.