views:

78

answers:

1

i create an registry key by program ....In this path .. computer/HKEY_CURRENT_USER/Software/test but i cannot delete that key by manually and programming ..while deleting through manually ,In reg message "cannot delete ........key: Error while deleting this key " help me to resolve my problem..

+1  A: 

It's hard to be sure from your question, but if you try to delete a key that has subkeys, it will fail. Check into DeleteSubKeyTree.

Factor Mystic
...and in native code, you should use RegDeleteTree to delete a key that has subkeys.
Reuben