Capture and block print request in Windows

458 Views Asked by At

I would like to capture printer job request, check what is the source document and reject the print request if it's coming from a browser (chrome, IE, Firefox).
I tried using Windows Spooler API, FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification function, but I notice the event raised by these API are asynchronous. By the time I handle the event the request, it reaches the printer. Is there a way I can capture the print Jobs and allow it to reach the printer only if it meets a certain criterion (non-browser print request in my case).

Any help would be appreciated.

P.S. I would like to avoid developing and using a new Virtual Printer.

0

There are 0 best solutions below