Get Com Assembly By ProgID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good Day All,

I am trying to see if anyone know of a way to get the path for a Com
Assembly using the ProgID. I know I can do a brute force search of the
registry and retrieve the data. However, that method can be a bit too slow.

If anyone has any ideas I would appreciate it.

Thanks!

Dan
 
I am trying to see if anyone know of a way to get the path for a Com
Assembly using the ProgID. I know I can do a brute force search of the
registry and retrieve the data. However, that method can be a bit too slow.

You don't really have to search for it, just open at most two keys.

First resolve the ProgID to a CLSID, either using the ProgIDFromCLSID
API (the way I'd recommended) or manually by by checking the default
value of the HKEY_CLASSES_ROOT\<YourProgID>\CLSID registry key.

Then check the default value of the
HKEY_CLASSES_ROOT\CLSID\<YourCLSID>\InprocServer32 key.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top