Need VB6 API function to delete a registry key and all of it's subkeys and values
Posted on 2011-05-05
I need some code examples to delete a registry key and all of it's subkeys and values. I have found numerous examples on how to delete an empty key using RegDeleteKey, but no working examples on how to delete a key with subkeys and values. The example must use API calls, specifically RegDeleteKeyEx, not RegDeleteKey so that I can set my samDesired to KEY_WOW64_64KEY and use the alternate registry view and access 64 bit keys from a 32 bit app. I have had no problem finding code for querying , enumerating and creating 64 bit key/values, not sure why deleting a key is so difficult.