tyranid / oleviewdotnet

A .net OLE/COM viewer and inspector to merge functionality of OleView and Test Container
GNU General Public License v3.0
1.14k stars 185 forks source link

A command line version #44

Closed RadAd closed 8 months ago

RadAd commented 1 year ago

Does anybody have a command line version that can output proxy definitions of interfaces in idl format?

tyranid commented 12 months ago

You can use the PowerShell module to format a COM proxy in a pseduo C#/C++ format from the command line using $proxy = Get-ComProxy -Iid "SOME IID"; Format-ComProxy $proxy. Obviously that's not IDL format, you'd have to try and convert it manually.

tyranid commented 8 months ago

For interests sake I've now committed a formatter for proxies that outputs in IDL as well as an better implementation of type library parsing which no longer always converts to a .NET assembly and will format in IDL format. For example, you can now do Get-ComTypeLib -Parse | Format-ComProxy and it'll parse all type libraries and output as IDL text. Closing this issue.