术语 | abortdoc |
释义 | AbortDoc 语法: int AbortDoc( __in HDC hdc ); AbortDoc函数 该AbortDoc函数停止当前的打印作业并删除自上次调用StartDoc函数后的一切绘制。 参数 hdc [in] 句柄打印作业的设备上下文。 返回值 如果函数成功,返回值大于零。 如果函数失败,返回值是SP_ERROR。 备注 应用程序应该调用AbortDoc函数停止打印作业,如果发生错误,或停止后,用户的打印作业取消这项工作。要结束一个成功的打印作业,应用程序应调用EndDoc函数。 如果打印管理器是用来启动打印作业,要求AbortDoc擦除整个后台工作,使打印机收到什么。如果打印管理器没有被用来启动打印作业时,数据可能已经被发送到打印机。在这种情况下,打印机驱动程序重置打印机(如果可能)和结束打印作业。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 EndDoc SETABORTPROC的 StartDoc 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==AbortDoc Function The AbortDoc function stops the current print job and erases everything drawn since the last call to the StartDoc function. Syntax int AbortDoc( __in HDC hdc ); Parameters hdc [in] Handle to the device context for the print job. Return Value If the function succeeds, the return value is greater than zero. If the function fails, the return value is SP_ERROR. Remarks Applications should call the AbortDoc function to stop a print job if an error occurs, or to stop a print job after the user cancels that job. To end a successful print job, an application should call the EndDoc function. If Print Manager was used to start the print job, calling AbortDoc erases the entire spool job, so that the printer receives nothing. If Print Manager was not used to start the print job, the data may already have been sent to the printer. In this case, the printer driver resets the printer (when possible) and ends the print job. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) LibraryGdi32.lib DLLGdi32.dll See Also Printing and Print Spooler Overview Printing and Print Spooler Functions EndDoc SetAbortProc StartDoc Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd162456(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。