SetAbortProc

This function sets the application-defined function that allows a print job to be canceled during printing.

At a Glance

Header file: Wingdi.h
Windows CE versions: 2.0 and later

Syntax

int SetAbortProc( HDC hdc, ABORTPROC lpAbortProc);

Parameters

hdc

[in] Handle to the device context (DC) for the print job.

lpAbortProc

[in] Long pointer to the application-defined abort function.

Return Values

A value greater than zero indicates success. SP_ERROR indicates failure. To get extended error information, call GetLastError.

See Also

EndDoc, StartDoc, StartPage