System.Win.Registry.TRegistry.UnLoadKey
Delphi
function UnLoadKey(const Key: string): Boolean;
C++
bool __fastcall UnLoadKey(const System::UnicodeString Key);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegistry |
Description
Removes a hive from the registry.
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.