oleviewdotnet icon indicating copy to clipboard operation
oleviewdotnet copied to clipboard

A command line version

Open RadAd opened this issue 2 years ago • 1 comments

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

RadAd avatar Nov 03 '23 05:11 RadAd

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 avatar Nov 16 '23 13:11 tyranid

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.

tyranid avatar Feb 23 '24 21:02 tyranid