使用Windows API获取打印作业ID。 [英] Getting print Job ID using windows API.
本文介绍了使用Windows API获取打印作业ID。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获取用户通过chrome,ms word等应用程序发送的打印作业的打印作业ID。
I want to fetch the print job id of the print job send by user via application such as chrome,ms word etc.
我必须将该打印作业ID传递给getjob函数:
I have to pass that print job id to the getjob function :
BOOL GetJob(
_In_ HANDLE hPrinter,
_In_ DWORD JobId,
_In_ DWORD Level,
_Out_ LPBYTE pJob,
_In_ DWORD cbBuf,
_Out_ LPDWORD pcbNeeded
);
以便我可以获取特定作业的作业详细信息。
so that i can fetch the job details of the particular job.
有没有办法获取该作业ID?
Is there any way to fetch that job ID ?
谢谢,
推荐答案
您是否尝试过使用
EnumJobs功能
这篇关于使用Windows API获取打印作业ID。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文