如何编写虚拟打印机驱动程序

发布于 2024-10-10 23:57:52 字数 417 浏览 5 评论 0原文

我想为虚拟打印机编写一个驱动程序(用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往日情怀 2024-10-17 23:57:52

大多数打印重定向要求都是使用端口监视器来满足的。您不需要创建打印机驱动程序,因为如果您这样做,那么在可能想要使用其打印机驱动程序的最终用户中广泛推广会更加困难,您将需要为每台打印机等提供驱动程序。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文