Share via


SetAbortProc

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

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.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Wingdi.h.
Link Library: Mgprint.lib.

See Also

EndDoc | StartDoc | StartPage

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.