How can the caller's process be identified in an ATL COM+ out-of-proc server application?

荒凉一梦 提交于 2019-12-11 11:14:38

问题


I have an ATL service running as an out-of-proc server that has several COM classes that the clients are expected to be using. Because of a change in requirements, I need to be able to identify which process owns which instances of the objects. I'm trying to use some of the COM functions to find out this information but I can't find the right ones. CoGetCallContext only returns information about the user who called the method, not which process it came from. Same with CoQueryClientBlanket. What function can I use to find out this information?

来源:https://stackoverflow.com/questions/35728741/how-can-the-callers-process-be-identified-in-an-atl-com-out-of-proc-server-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!