网站首页  词典首页

请输入您要查询的函数:

 

术语 startdoc
释义 StartDoc
语法:
int StartDoc(
__in HDC hdc,
__in const DOCINFO *lpdi
);
StartDoc函数
该StartDoc函数启动打印作业。
参数
hdc [in]
一个句柄,打印作业的设备上下文。
lpdi [in]
一个 DOCINFO结构,包含文件的文件名指针和输出文件的名称。
返回值
如果函数成功,返回值大于零。该值是文档的打印作业标识符。
如果函数失败,返回值小于或等于零。
备注
应用程序应该调用StartDoc函数立即开始之前打印作业。使用此功能可确保多页文件不与其他打印作业穿插。
应用程序可以使用StartDoc返回检索值或设置打印作业的优先事项。调用GetJob或SetJob功能和供应这一需要的参数值为1。
实例
有关示例,请参见打印文档。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesStartDocW(Unicode)和StartDocA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
DOCINFO
EndDoc
GetJob
SetJob
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==StartDoc Function
The StartDoc function starts a print job.
Syntax
int StartDoc(
__in HDC hdc,
__in const DOCINFO *lpdi
);
Parameters
hdc [in]
A handle to the device context for the print job.
lpdi [in]
A pointer to a DOCINFO structure containing the name of the document file and the name of the output file.
Return Value
If the function succeeds, the return value is greater than zero. This value is the print job identifier for the document.
If the function fails, the return value is less than or equal to zero.
Remarks
Applications should call the StartDoc function immediately before beginning a print job. Using this function ensures that multipage documents are not interspersed with other print jobs.
Applications can use the value returned by StartDoc to retrieve or set the priority of a print job. Call the GetJob or SetJob function and supply this value as one of the required arguments.
Examples
For an example, see Printing a Document .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesStartDocW (Unicode) and StartDocA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
DOCINFO
EndDoc
GetJob
SetJob
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145114(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:56