RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.DeleteKey Method

Removes a specified key and its associated data from the registry.

Pascal
function DeleteKey(const Key: string): Boolean;
C++
__fastcall Boolean DeleteKey(const AnsiString Key);

Call DeleteKey to remove a specified key and its associated data, if any, from the registry. Under Windows 95, if the key has subkeys, the subkeys and any associated data are also removed. Under Windows NT, subkeys must be explicitly deleted by separate calls to DeleteKey.  

DeleteKey returns true if key deletion is successful. On error, DeleteKey returns false. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!