I use the code from printmirror, now I hook enumprinter api to hide my printer. when peopel choose a real printer to print the doc I hook createdcw to my printer. I really wanna know how I can do it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several ways to do this. Windows uses a print spooler for print jobs. The print spooler consists of several layers including Print Provider, Print Processor, Port Monitor, Language Monitor etc. All of these components can be customized, meaning you can write your own components and replace them in the print spooler. From within these components, you will be able to redirect print jobs. Each of these components give you different formats of the print data after the previous layer processes it.
This can get you started – http://blogs.technet.com/b/askperf/archive/2007/06/19/basic-printing-architecture.aspx