By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Get Com Assembly By ProgID

P: n/a
Dan
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.