Partager via


Gdi::SetAbortProc_I

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

static WINGDIAPI int WINAPI SetAbortProc_I(
  HDC hdc, 
  ABORTPROC lpAbortProc
);

Parameters

  • hdc
    [in] Handle to the device context 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.

Remarks

This method is an internal version of the SetAbortProc function.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

See Also

SetAbortProc | Gdi::EndDoc_I | Gdi::StartDocW_I | Gdi::StartPage_I

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.