Hooking System Print Messages
Posted on 1998-07-10
I would like to handle all printer error messages myself, rather than letting the Windows Print Manager handle them. It would be ideal if the method would work with both NT and 95, but it would be acceptable if there was a separate method for both.
In other words, when the system would normally display a message like "Printer out of paper" or "Printer not found", it would instead call my function. My function would add some extra functionality, and then maybe call the default message handler.
Is there a way to do this without writing a print driver? Example code wold be appreciated.