Events in PrintQueue

ps = new PrintServer(printserverName);

PrintQueue pq1 = new PrintQueue(ps, pq.Name); 

As I understand it, pq1this is a printer queue that will process print jobs. A.

I want to capture events for this print queue. A.

For example, if user A prints, this print job is added to the queue. I want this job to be added to the queue event. So, I can know how many pages are allowed by the user or user check.

+1
source share
2 answers

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

0
source

It looks like at the win32 API level, you have the ability to connect to queue events:

.NET, .

:

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

PRINTER_CHANGE_JOB

. :

PRINTER_CHANGE_ADD_JOB PRINTER_CHANGE_SET_JOB PRINTER_CHANGE_DELETE_JOB PRINTER_CHANGE_WRITE_JOB

0

All Articles