winapi - Not able to delete the registry entry -


i created new registry entries. not able delete parent node. structure of registry below:

hkey_current_user\software\ie_backup\internet settings below code using deleting registry entries. deletes content of node internetsettings not able delete ie_backup.

 void main()  {  //some other stuffs of code here creating new registry.  bool ret = deletevaluekey(hkey_current_user, l"software\\ie_backup",l"internet  settings");    }  bool deletevaluekey(hkey hkeyroot, lpcwstr subkey, lpcwstr valuekey) { hkey    hkey        = null; bool    breturn     = false;      if (regdeletekey(hkey, subkey ) == error_success)     {         breturn = true;     } if (regopenkeyex(hkeyroot, subkey, 0, key_set_value , &hkey) == error_success) {                       if (regdeletekey(hkey, valuekey ) == error_success)     {         breturn = true;     } }  if(hkey != null){regclosekey(hkey);}  return breturn; } 


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -