How to Find CLSID of a DLL

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.

Run_Command_With_regedit
                  Figure: Run Command With regedit

Click Yes, if you get any pop up as follows.

regedit_pop_up
                                    Figure: regedit pop up

Select HKEY_CLASSES_ROOT from the list.

Select_HKEY_CLASSES_ROOT
                                          Figure: Select HKEY CLASSES ROOT

Now search for your DLL name. In my case it was MyWindowsControl. You can find a folder called CLSID under your DLL name.

CLSID_Folder

Figure: CLSID Folder

On the right side you can see a column ‘Data’, that is your CLSID.

CLSID
                                                                     Figure: 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.

Ebook Download
View all
Learn
View all