Compartir a través de


SetAbortProc

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

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 AbortProc.

Return Value

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

Requirements

Header wingdi.h
Library Mgprint.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

AbortProc
EndDoc
StartDoc
StartPage