如何编写虚拟打印机驱动程序
我想为虚拟打印机编写一个驱动程序(用C++或Java) (如如何在 Windows 中创建虚拟打印机?) 我会将文件重定向到文件服务器(再次如 http://www.colorpilot.com/ 中所述VirtualPrinterForCSharp2.html。
的基本构建块是什么
打印机驱动程序
?预先感谢指导或建议
!
I want to write a driver for virtual printer (in C++ or Java)
(As explained in How to create a virtual printer in Windows?)
I would redirect the file to a file server (again as explained in http://www.colorpilot.com/VirtualPrinterForCSharp2.html.
What are the fundamental building blocks of a printer driver ?
I have read about spooler and print monitor but I am not sure that these are all that I have to know!
Any guide or suggestion appreciated in advance!
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
大多数打印重定向要求都是使用端口监视器来满足的。您不需要创建打印机驱动程序,因为如果您这样做,那么在可能想要使用其打印机驱动程序的最终用户中广泛推广会更加困难,您将需要为每台打印机等提供驱动程序。
http://pages.cs.wisc.edu/~ghost/redmon/是重定向端口监视器的一个很好的例子。大部分是用 C 编写的。在了解如何在项目中使用它之前,请先查看许可协议。
Windows WDK(Windows 驱动程序工具包)中还有一个示例端口监视器,您可以使用基本参考。
希望这有帮助。如果是这样,请投票 +1 :)
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 :)