0

I'm maintaining a port monitor for a virtual printer, and I noticed that some of the interface we implement, including AddPort, have been marked as obsolete (see: http://msdn.microsoft.com/en-us/library/windows/hardware/ff545022(v=VS.85).aspx). Problem is, the documentation doesn't say what methods to use instead.

The port monitor must still have to deal with adding ports though right?

There doesn't seem to be any other non-obsolete replacements in the Monitor2 structure either (see: http://msdn.microsoft.com/en-us/library/windows/hardware/ff557532(v=vs.85).aspx).

Any ideas?

Thanks!

4

1 回答 1

1

端口监视器是具有服务器端和客户端 DLL 的分布式组件。客户端 DLL 通过 AddPortUI 函数提供 AddPort 的 UI功能该函数通过XcvData 函数向监视器的服务器端 DLL 发送一个请求,其中 DataName 设置为字符串“AddPort”。然后,服务器组件实际上实现了 AddPort 功能。

于 2011-12-11T17:02:44.423 回答