网站首页  词典首页

请输入您要查询的函数:

 

术语 schedulejob
释义 ScheduleJob
语法:
BOOL ScheduleJob(
__in HANDLE hPrinter,
__in DWORD dwJobID
);
ScheduleJob函数
该ScheduleJob功能要求打印后台处理程序安排一次打印指定的打印作业。
参数
hPrinter [in]
一个句柄,打印作业的打印机。这必须是本地打印机,打印机作为后台配置。如果hPrinter是一个句柄到远程打印机连接,或者如果打印机直接打印配置,ScheduleJob函数失败。使用OpenPrinter或添加打印机函数检索打印机处理。
hPrinter必须是相同的打印机句柄指定呼吁AddJob取得多dwJobID打印作业标识符。
dwJobID [in]
打印工作安排。您通过调用此函数的AddJob打印作业的标识。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
您必须成功地调用之前调用ScheduleJob函数AddJob功能。 AddJob获取打印作业标识符作为dwJobID传递到ScheduleJob。两次通话中必须使用相同的值为hPrinter。
对于一个有效的后台打印文件ScheduleJob功能检查。如果有一个无效的后台文件,或者如果它是空的,ScheduleJob同时删除打印后台文件和相应的打印在打印后台处理程序入职。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
AddJob
OpenPrinter
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ScheduleJob Function
The ScheduleJob function requests that the print spooler schedule a specified print job for printing.
Syntax
BOOL ScheduleJob(
__in HANDLE hPrinter,
__in DWORD dwJobID
);
Parameters
hPrinter [in]
A handle to the printer for the print job. This must be a local printer that is configured as a spooled printer. If hPrinter is a handle to a remote printer connection, or if the printer is configured for direct printing, the ScheduleJob function fails. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
hPrinter must be the same printer handle specified in the call to AddJob that obtained the dwJobID print job identifier.
dwJobID [in]
The print job to be scheduled. You obtain this print job identifier by calling the AddJob function.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
You must successfully call the AddJob function before calling the ScheduleJob function. AddJob obtains the print job identifier that you pass to ScheduleJob as dwJobID. Both calls must use the same value for hPrinter.
The ScheduleJob function checks for a valid spool file. If there is an invalid spool file, or if it is empty, ScheduleJob deletes both the spool file and the corresponding print job entry in the print spooler.
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
AddJob
OpenPrinter
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162951(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 11:29:21