有关于 IdentityUnmarshal 接口的文档吗?

发布于 2024-08-12 04:57:29 字数 642 浏览 2 评论 0原文

每当我将组件放入 COM+ 并在客户端上调用 CoCreateInstance() 时,都会发生以下情况:

  • 运行时实例化对象(调用 IClassFactory::CreateInstance()
  • 运行时调用 QueryInterface()< /code> 对于在 CoCreateInstance() 调用中指定的接口,
  • 运行时调用 QueryInterface() 用于 IdentityUnmarshal 接口 ({0000001b- 0000-0000-c000-000000000046}

我唯一能找到的是 comdef.h 中的声明,即存在具有该接口 id 的 IdentityUnmarshal 接口。

ComDef.h

class __declspec(uuid("0000001b-0000-0000-c000-000000000046")) IdentityUnmarshal;

有更多信息吗?

Whenever I put my component into COM+ and call CoCreateInstance() on the client the following happens:

  • the runtime instantiates the object (calls IClassFactory::CreateInstance())
  • the runtime calls QueryInterface() for the interface specified in the CoCreateInstance() call
  • the runtime calls QueryInterface() for IdentityUnmarshal interface ({0000001b-0000-0000-c000-000000000046})

The only thing I can find is the declaration in comdef.h that there exists IdentityUnmarshal interface with that interface id.

ComDef.h:

class __declspec(uuid("0000001b-0000-0000-c000-000000000046")) IdentityUnmarshal;

Is there any more information on it?

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

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

发布评论

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

评论(1

放低过去 2024-08-19 04:57:29

如果我没记错的话,您可以查询 IdentityUnmarshal 接口来定义您是否正在处理代理。如果结果是 S_OK,则代理。

更新:查看此讨论

If I remember it correctly you may query for IdentityUnmarshal interface to define if you are dealing with proxy or not. If result is S_OK, then Proxy.

Update: check out this discussion

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