Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing a custom printer driver for Windows

For the needs of my software I need to create a printer driver which will allow me to save all the images which are sent to it to files and then open my program's window letting the user to do something with the rendered pages.
I have found this article, but the sample uses the FILE: port, while I need to make my own port, dump the images to files and run an executable. However, I think I can accomplish my task by doing that in the driver's code, but I am not really sure that it is a good decision, since it is a driver, even though it is a user-mode driver.
I would be glad to hear any advice on my problem. Thanks in advance.

like image 924
Cracker Avatar asked Oct 22 '22 18:10

Cracker


1 Answers

You need a port monitor, not a driver. See my answer to this question. You can use RedMon, but I recommend using the sample port monitor found in the WDK instead.

like image 196
Carey Gregory Avatar answered Oct 27 '22 08:10

Carey Gregory