Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegDeleteKey not deleting keys with subkeys ?

Status
Not open for further replies.

skinah

Programmer
Oct 3, 2001
17
AU
I'm using RegDeleteKey and its working great unless the key has subkeys. How can you delete the key and all sub keys with the least file size and coding ?

Is there a better way then using RegDeleteKey ?

thanks for any help.
 
On windows 98 RegDeleteKey deletes subkeys. On 2k,xp it does not. You can however enumerate the subkeys and delete them individually or alternatively there is always SHDeleteKey().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top