术语 | abortproc |
释义 | AbortProc 语法: BOOL CALLBACK AbortProc( __in HDC hdc, __in int iError ); AbortProc功能 该AbortProc函数是一个应用程序定义的回调函数与SETABORTPROC的功能使用。它被称为打印作业时,要在后台取消。在ABORTPROC类型定义一个指向这个回调函数。 AbortProc是一个应用程序的占位符定义函数的名称。 参数 hdc [in] 一个句柄,打印作业的设备上下文。 iError [in] 指定是否发生错误。此参数是零,如果没有发生错误,它是SP_OUTOFDISK打印管理器,如果目前的磁盘空间和更多的磁盘空间将变得可用,如果应用程序等待。 返回值 回调函数应返回TRUE,继续打印作业或FALSE取消打印作业。 备注 如果iError参数SP_OUTOFDISK,应用程序不必取消打印作业。如果不取消作业,就必须产生的打印管理器通过调用PeekMessage或GetMessage函数。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) DLLGutils.dll 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 GetMessage PeekMessage SETABORTPROC 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==AbortProc Function The AbortProc function is an application-defined callback function used with the SetAbortProc function. It is called when a print job is to be canceled during spooling. The ABORTPROC type defines a pointer to this callback function. AbortProc is a placeholder for the application-defined function name. Syntax BOOL CALLBACK AbortProc( __in HDC hdc, __in int iError ); Parameters hdc [in] A handle to the device context for the print job. iError [in] Specifies whether an error has occurred. This parameter is zero if no error has occurred; it is SP_OUTOFDISK if Print Manager is currently out of disk space and more disk space will become available if the application waits. Return Value The callback function should return TRUE to continue the print job or FALSE to cancel the print job. Remarks If the iError parameter is SP_OUTOFDISK, the application need not cancel the print job. If it does not cancel the job, it must yield to Print Manager by calling the PeekMessage or GetMessage function. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) DLLGutils.dll See Also Printing and Print Spooler Overview Printing and Print Spooler Functions GetMessage PeekMessage SetAbortProc Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd162459(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。