SetAbortProc  1CRLSLD 

The SetAbortProc function sets the application-defined abort function that allows a print job to be canceled during spooling. This function replaces the SETABORTPROC printer escape.

int SetAbortProc(

    HDC hdc,

// handle of device context

    ABORTPROC lpAbortProc

// address of abort function 

   );

 

 

Parameters

hdc

Identifies the device context for the print job.

lpAbortProc

Points to the application-defined abort function. For more information about the callback function, see the AbortProcGA5P.2 callback function.

 

Return Values

If the function succeeds, the return value is greater than zero.

If the function fails, the return value is SP_ERROR. To get extended error information, call GetLastError11C2VS7.

See Also

AbortDoc, AbortProc