开发者

How to get pointer to IUnknown in C#

开发者 https://www.devze.com 2023-01-19 22:53 出处:网络
.NET interop wraps COM objects into .NET objects (runtime-callable wrappers, RCWs), which hide the usual interface querying. In order to register a COM object representing a filter graph with the Runn

.NET interop wraps COM objects into .NET objects (runtime-callable wrappers, RCWs), which hide the usual interface querying. In order to register a COM object representing a filter graph with the Running Objects Table, I need the (native) address of its IUnknown interface (see How can I reverse engineer a DirectShow graph?).

So the question is: How can开发者_如何学运维 I get a COM object's IUnknown pointer in C#?


Use Marshal.GetIUnknownForObject().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号