术语 | enddocprinter |
释义 | EndDocPrinter 语法: BOOL EndDocPrinter( __in HANDLE hPrinter ); EndDocPrinter功能 该EndDocPrinter函数结束一个指定的打印机打印作业。 参数 hPrinter [in] 句柄是一个打印作业应该结束打印机。使用OpenPrinter或添加打印机函数检索打印机处理。 返回值 如果函数成功,返回值是一个非零值。 如果函数失败,返回值是零。 备注 该EndDocPrinter函数返回一个打印作业,如果没有被StartDocPrinter函数调用开始的错误。 对于打印作业顺序如下: 开始一个打印作业,请发送StartDocPrinter。 首先每个页面,请StartPagePrinter。 将数据写入到页面,请WritePrinter。 要结束的每一页,请EndPagePrinter。 重复2,3和4需要尽可能多页。 要结束打印作业,请EndDocPrinter。 当在后台文件页面超过大约350 MB的,它可能无法打印,而不是发出错误信息。例如,这在打印时可能会发生大的EMF文件。页面大小限制取决于包括可用虚拟内存量的因素很多,由调用程序分配的内存量,以及碎片的数量在这个过程中堆。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinspool.h(头文件:winuser.h) LibraryWinspool.lib 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 EndDocPrinter EndPagePrinter StartDocPrinter StartPagePrinter WritePrinter 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==EndDocPrinter Function The EndDocPrinter function ends a print job for the specified printer. Syntax BOOL EndDocPrinter( __in HANDLE hPrinter ); Parameters hPrinter [in] Handle to a printer for which the print job should be ended. Use the OpenPrinter or AddPrinter function to retrieve a printer handle. Return Value If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero. Remarks The EndDocPrinter function returns an error if the print job was not started by calling the StartDocPrinter function. The sequence for a print job is as follows: To begin a print job, call StartDocPrinter. To begin each page, call StartPagePrinter . To write data to a page, call WritePrinter . To end each page, call EndPagePrinter . Repeat 2, 3, and 4 for as many pages as necessary. To end the print job, call EndDocPrinter. When a page in a spooled file exceeds approximately 350 MB, it may fail to print and not send an error message. For example, this can occur when printing large EMF files. The page size limit depends on many factors including the amount of virtual memory available, the amount of memory allocated by calling processes, and the amount of fragmentation in the process heap. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinspool.h (include Windows.h) LibraryWinspool.lib See Also Printing and Print Spooler Overview Printing and Print Spooler Functions EndDocPrinter EndPagePrinter StartDocPrinter StartPagePrinter WritePrinter Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd162595(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。