RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.UnLoadKey Method

Removes a hive from the registry.

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

Call UnLoadKey to remove a hive from the registry without modifying its associated hive file, if any. A hive is a discrete collection of keys, subkeys, and values that is rooted at the top of the registry hierarchy. 

Key is the name of the key at the root of the hive to remove. 

If successful, UnLoadKey returns true.

Note: Before calling this function, set RootKey to HKEY_USERS, HKEY_LOCAL_MACHINE, or call RegistryConnect.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!