we want to write a driver for virtual printer ( in language C or Java)
( for example How to create a virtual printer in Windows?)
We would redirect the file to a file server ( for example http://www.colorpilot.com/VirtualPrinterForCSharp2.html.
What are the fundamental building blocks of a printer driver ?
I have read about spooler and print monitor (these two are enough ? )
Any suggests are appreciated
Regards
Most print redirection requirements are fulfilled using a Port Monitor. You dont need to do a printer driver because if you do that then this is more difficult to broadbase across end-users who may want to use their printer drivers, you will need to have drivers for each printer and so on.
http://pages.cs.wisc.edu/~ghost/redmon/ is a very good example of a redirection port monitor. Mostly written in C. Please look at the licensing agreements before you see how you can use it in your project.
There is also a sample port monitor in the Windows WDK (Windows Driver Kit) you could use a base reference.
Hope this helps. If so, please vote a +1 :)