Creates or opens a registry key that is a subkey of HKEY_CLASSES_ROOT.
procedure CreateRegKey(const Key: string; const ValueName: string; const Value: string; RootKey: DWord = HKEY_CLASSES_ROOT);
CreateRegKey(const AnsiString Key, const AnsiString ValueName, const AnsiString Value, DWord RootKey = HKEY_CLASSES_ROOT);
CreateRegKey creates or opens the key specified by the Key parameter. If the key does not already exist in the registry, CreateRegKey creates it, otherwise CreateRegKey opens it.
When the key is created, additional value and type information for the specified key can be set from the parameters passed to CreateRegKey.
ValueName points to a string that specifies the name of the subkey associated with value.
Value specifies the data to be stored with the specified value name.
RootKey is the top-level registry key under which the new key is created or opened. If omitted, it is HKEY_CLASSES_ROOT.
If CreateRegKey is not successful, an EOleRegistrationError exception is raised.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|