Windows Spooler Events API 不会为网络打印机生成事件

发布于 2024-08-24 03:15:12 字数 262 浏览 4 评论 0原文

当用户打印文档时,我使用后台处理程序事件 API 来捕获后台处理程序生成的事件,即

FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification

问题

当我从我的机器在网络打印机上打印文档时,监视器没有捕获任何事件(使用上述功能)

注意

本地打印机生成的事件正常,只有网络打印机有问题!

the context

i use Spooler Events API to capture events generated by the spooler when a user prints a document ie.

FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification

the problem

When I print a document on the network printers from my machine no events are captured by the monitor (uses the functions above)

Notice

Events ARE generated OK for local printers, only Network Printers are problematic!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

最冷一天 2024-08-31 03:15:12

来自文档

注意:在带有 Service Pack 2 (SP2) 及更高版本的 Windows XP 中,Internet 连接防火墙 (ICF) 默认情况下会阻止打印机端口,但可以启用文件和打印共享的例外。如果用户与另一台计算机建立打印机连接,并且未启用例外,则用户将不会收到来自服务器的打印机更改通知。机器管理员必须启用例外。

From the documentation:

Note: In Windows XP with Service Pack 2 (SP2) and later, the Internet Connection Firewall (ICF) blocks printer ports by default, but an exception for File and Print Sharing can be enabled. If a user makes a printer connection to another machine, and the exception is not enabled, then the user will not receive printer change notifications from the server. A machine admin will have to enable exception.

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