Wmi Registry

Joined
Oct 13, 2005
Messages
4
Reaction score
0
this is my code ... i m having problem in enumerating the Main key like (HKEY_CLASSES_ROOT)..

error messeg "Invalid Parameters"



objManagementBaseObject = objManagementClass.GetMethodParameters("EnumKey")
objManagementBaseObject.SetPropertyValue("hDefKey", CType("&H" & Hex(RegistryHive.LocalMachine), Long))
aSubKeys = CType(objManagementClass.InvokeMethod("EnumKey", objManagementBaseObject, Nothing).Properties.Item("sNames").Value, String())
For Each strkey In aSubKeys
myKey = strkey
ListView1.Items.Add(myKey)
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top