网站首页  词典首页

请输入您要查询的函数:

 

术语 getjob
释义 GetJob
语法:
BOOL GetJob(
__in HANDLE hPrinter,
__in DWORD JobId,
__in DWORD Level,
__out LPBYTE pJob,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded
);
GetJob功能
该GetJob函数检索有关指定的打印作业。
参数
hPrinter [in]
句柄,供该打印作业的数据检索打印机。使用OpenPrinter或添加打印机函数检索打印机处理。
的JobID [in]
标识的打印作业的检索数据。使用AddJob函数或StartDoc函数获取打印作业标识符。
Level [in]
在缓冲区的pJob返回的信息类型。如果是1级,pJob收到JOB_INFO_1结构。如果是2级,pJob收到JOB_INFO_2结构。
pJob [out]
阿一个缓冲区,它接收JOB_INFO_1或JOB_INFO_2结构包含有关工作信息的指针。该缓冲区必须足够大,存储字符串指向的结构的成员。
要确定所需的缓冲区大小,请GetJob设置为零cbBuf。 GetJob失败,GetLastError返回ERROR_INSUFFICIENT_BUFFER和pcbNeeded参数返回的大小,以字节为单位须持有的结构及其数据数组中的缓冲区。
cbBuf [in]
大小,以字节数组的。
pcbNeeded [out]
一个值,指定复制的字节数,如果函数调用成功或所需的字节数指针,如果cbBuf太小。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesGetJobW(Unicode)和GetJobA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
AddJob
JOB_INFO_1
JOB_INFO_2
ScheduleJob
SetJob
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetJob Function
The GetJob function retrieves information about a specified print job.
Syntax
BOOL GetJob(
__in HANDLE hPrinter,
__in DWORD JobId,
__in DWORD Level,
__out LPBYTE pJob,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded
);
Parameters
hPrinter [in]
A handle to the printer for which the print-job data is retrieved. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
JobId [in]
Identifies the print job for which to retrieve data. Use the AddJob function or StartDoc function to get a print job identifier.
Level [in]
The type of information returned in the pJob buffer. If Level is 1, pJob receives a JOB_INFO_1 structure. If Level is 2, pJob receives a JOB_INFO_2 structure.
pJob [out]
A pointer to a buffer that receives a JOB_INFO_1 or a JOB_INFO_2 structure containing information about the job. The buffer must be large enough to store the strings pointed to by the structure members.
To determine the required buffer size, call GetJob with cbBuf set to zero. GetJob fails, GetLastError returns ERROR_INSUFFICIENT_BUFFER, and the pcbNeeded parameter returns the size, in bytes, of the buffer required to hold the array of structures and their data.
cbBuf [in]
The size, in bytes, of the array.
pcbNeeded [out]
A pointer to a value that specifies the number of bytes copied if the function succeeds or the number of bytes required if cbBuf is too small.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesGetJobW (Unicode) and GetJobA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
AddJob
JOB_INFO_1
JOB_INFO_2
ScheduleJob
SetJob
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144894(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:49