Events in PrintQueue

落爺英雄遲暮 提交于 2019-12-08 04:11:16

As I understand it, ou can handle your OWN print queues (AddJob for example ..) but you cannot intercept the printjobs of other users.

Looks like at the win32 API level you have an option to hook up to queue events:

I Could not find the same in .NET unless you keep polling for the job collection for the queue.

Take a look at:

http://msdn.microsoft.com/en-us/library/dd162722(v=vs.85).aspx

PRINTER_CHANGE_JOB

Notify of any changes to a job. You can set this general flag or one or more of the following specific flags:

PRINTER_CHANGE_ADD_JOB PRINTER_CHANGE_SET_JOB PRINTER_CHANGE_DELETE_JOB PRINTER_CHANGE_WRITE_JOB

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!