문제

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!

도움이 되었습니까?

해결책

Port monitors are distributed components with a server- and client-side DLL. The client-side DLL provides the UI functionality of AddPort with the AddPortUI function. That function sends a request to the monitor's server-side DLL via the XcvData function with DataName set to the string "AddPort". The server component then actually implements the AddPort functionality.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top