Get the DLL-file for a COM-Object without using CLSID and registry in c++
问题 Is it possible to get the DLL-filename for a loaded COM-Object without using the CLSID and a registry lookup? I have an IUnknown or in my case an IBaseFilter interface pointer and now I want to get the DLL-filename who created this COM-Object. Can I use the object point adress to reverse lookup the loaded module where it was created? And then get the HMODULE to use it in GetModuleFileName . 回答1: Only using some hacks, naturally. The object itself is on the heap, which is shared, but you could