COM: How to get CLSID? Can I use Prog-Id?

If I have a well-known COM library (the .ocx file itself), is there a way in C # to extract CLSID information? Basically I need the same information from a file. Visual Studio adds to the project file when you add a link to the file. Can they be extracted from the ocx file directly or by searching the registry?

Also, if I know prog-id, how can I find the CLSID and the corresponding ocx file?

Thanks for helping the newbie COM!

+3
source share

Source: https://habr.com/ru/post/1721038/


All Articles