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 :)
source share