CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Delete reg key?




//
// The following snippet deletes the key  HKEY_LOCAL_MACHINE\Delete\me
// 
// In other words, this will delete the "me" key which is a subkey of the "delete" key.  
// All of which are subkeys of the HKEY_LOCAL_MACHINE main key.
//
TRegistry *registry = new TRegistry;
registry->RootKey = HKEY_LOCAL_MACHINE;
registry->DeleteKey("\\Delete\\me");
delete registry;



W Komornicki's Home Page | Main Index | Thread Index