How to write a driver for a virtual printer

I want to write a driver for a virtual printer (in C ++ or Java) (as described in How to create a virtual printer in Windows? ). I would redirect the file to the file server (again, as described in http://www.colorpilot.com/VirtualPrinterForCSharp2.html .

What are the main building blocks of a printer driver ?

I read about the spooler and print monitor, but I'm not sure if thatโ€™s all I need to know!

Any guidance or suggestion appreciated in advance!

Yours faithfully

+2
source share
1 answer

Most print redirection requirements are met using a portable monitor. You do not need to make a printer driver, because if you do, it is more difficult for the end users who can use their printer drivers to use widely, you will need drivers for each printer and so on.

http://pages.cs.wisc.edu/~ghost/redmon/ is a very good example of a redirect port monitor. It is mainly written in C. Please read the license agreements before you see how you can use it in your project.

Windows WDK (a set of Windows drivers) also has an example port monitor. You can use the base link.

Hope this helps. If yes, please vote +1 :)

+3
source

Source: https://habr.com/ru/post/1491323/


All Articles