Working with COM is often like hacking away at a black box, throwing something in and hoping you get something else than an invalid HRESULT exception back. I’ve long been looking for tools to help out with this and only last week I found one real diamond of a helper. It’s the OLE/COM Object Viewer: OLE/COM Object Viewer main window

It’s placed under something called Windows Kits which seems to be shipped together with Visual Studio 2012: C:\Program Files (x86)\Windows Kits\8.0\bin\x86

The tool enumerates all registered COM classes and lets you view their exposed interfaces like in the picture below: OLE/COM Object Viewer interface details

It’s a superb tool to help you view your actual type and what they get marshaled as.

Update 01/08/2016: Several times I’ve had issues opening registered libs getting errors of IViewers.dll not being in place. I found an answer on Stack overflow where the recommendation is to open the oleview as an administrator the first time.

Why not join the newsletter?

Why not join the newsletter?

If you're not a fan of facebook or twitter, sign up to the newsletter and I'll send you a quick update every so often with what's going on and new posts coming out.

You have Successfully Subscribed!