术语 | startdocprinter |
释义 | StartDocPrinter 语法: DWORD StartDocPrinter( __in HANDLE hPrinter, __in DWORD Level, __in LPBYTE pDocInfo ); StartDocPrinter函数 StartDocPrinter函数通知的打印后台处理程序,一个文件将打印后台处理。 参数 hPrinter [in] 句柄到打印机。使用OpenPrinter或添加打印机函数检索打印机处理。 Level [in] 结构的版本的pDocInfo点。此值必须为1。 pDocInfo [in] 一个 DOC_INFO_1结构,描述了要打印的文档的指针。 返回值 如果函数成功,返回值标识打印作业。 如果函数失败,返回值是零。 备注 返回值永远不会大于2 ^ 32 1。 对于打印作业顺序如下: 开始一个打印作业,请发送StartDocPrinter。 首先每个页面,请StartPagePrinter。 将数据写入到页面,请WritePrinter。 要结束的每一页,请EndPagePrinter。 重复2,3和4需要尽可能多页。 要结束打印作业,请EndDocPrinter。 当在后台文件页面超过大约350 MB的,它可能无法打印,而不是发出错误信息。例如,这在打印时可能会发生大的EMF文件。页面大小限制取决于包括可用虚拟内存量的因素很多,由调用程序分配的内存量,以及碎片的数量在这个过程中堆。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinspool.h(头文件:winuser.h) LibraryWinspool.lib DLLSpoolss.dll Unicode和ANSI namesStartDocPrinterW(Unicode)和StartDocPrinterA(ANSI)的 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 DOC_INFO_1 DOC_INFO_2 EndDocPrinter EndPagePrinter OpenPrinter StartDocPrinter StartPagePrinter WritePrinter 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==StartDocPrinter Function The StartDocPrinter function notifies the print spooler that a document is to be spooled for printing. Syntax DWORD StartDocPrinter( __in HANDLE hPrinter, __in DWORD Level, __in LPBYTE pDocInfo ); Parameters hPrinter [in] A handle to the printer. Use the OpenPrinter or AddPrinter function to retrieve a printer handle. Level [in] The version of the structure to which pDocInfo points. This value must be 1. pDocInfo [in] A pointer to a DOC_INFO_1 structure that describes the document to print. Return Value If the function succeeds, the return value identifies the print job. If the function fails, the return value is zero. Remarks The return value will never be greater than 2^32 1. 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 can 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 DLLSpoolss.dll Unicode and ANSI namesStartDocPrinterW (Unicode) and StartDocPrinterA (ANSI) See Also Printing and Print Spooler Overview Printing and Print Spooler Functions DOC_INFO_1 DOC_INFO_2 EndDocPrinter EndPagePrinter OpenPrinter StartDocPrinter StartPagePrinter WritePrinter Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd145115(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。