When you create a COM instance, Windows looks in the registry, finds out which DLL to load, how to load it, then loads the DLL and finds the class that you were looking for. If you want to skip this search algorithm, then you should implement it, and I donβt think it is easy. But certainly doable.
UPDATE: find the CoLoadLibrary function, maybe this is not so difficult. I think COM servers call CoRegisterClassObject when they load, since Windows finds them, and you can call CoGetClassObject. I'm still in the dark, so keep reading MSDN.
fejesjoco
source share