I have a program that can check any setting in the windows Registry using API calls (RegQueryValueEx). My question is how do you check if a DLL is registered. DLL's seem to have a unique id like {047813C6-EE35-11D0-9CF1-444553540000}. Is this number computer specific? If it's not then I can just write my code so it checks for the same number on every PC, but if the number is PC specific I will have to write code that figures out how the number is generated. Does anyone know how to do that?

Getting a specific Key is easy, is there away to get lists of keys form the Registry, like if I query HKLM\Software and it returns all the sub groups? I think I could get that to do what I need.

I'm writing in VB6, I have VB.NET at my disposal as well if that could help.

Let me know if there are any other details you need.