A CLSID is a global unique identifier that identifies a COM class object. You may need to register and know the CLSID of a particular DLL when you work with COM, especially when your server allows linking to its embedded objects. I had the same situation where I needed to know the CLSID of a DLL.
How to find CLSID of a DLL
Go to start and select Run, or you Press Windows key + R. And type regedit.
Click Yes, if you get any pop up as follows.
Select HKEY_CLASSES_ROOT from the list.
Now search for your DLL name. In my case it was MyWindowsControl. You can find a folder called CLSID under your DLL name.
On the right side you can see a column ‘Data’, that is your CLSID.
Conclusion
Did I miss anything that you may think is needed? Did you find this post useful? I hope you liked this article. Please sharewith me your valuable suggestions and feedback.
Your turn. What do you think?
A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.
Please read this article in my blog here.





MattPosted Mar 29, 2023, 12:33 PM
This will only work if the .dll is registered, right? So how can you get the CLSID of a com dll in c# (without registering the dll)?
TieOneOn #MaskUpPosted Sep 16, 2020, 2:12 AM
I need to reference Windows apps. Do you know how to find the CLSIDs?
Santhakumar MunuswamyPosted Feb 12, 2016, 11:15 PM
Thanks for nice share