How does impersonation in DCOM work?

前端 未结 2 1551
闹比i
闹比i 2020-12-29 09:51

I have a DCOM client and server applications which use OLE automation marshaller. They work fine when run on the same PC but when the server is on a different PC not in the

2条回答
  •  生来不讨喜
    2020-12-29 10:49

    For those who are working in Delphi there is one little note that can save a lot of your time. After you did obj as ISomeInterface operation, you have to call CoSetProxyBlanket for the new instance. This could be not very obvious, but all we know that as operator calls QueryInterface method, and it can return new instance.

提交回复
热议问题