JCL Help:RegCreateKey@DelphiHKEY@string
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: RegCreateKey Function
[+] JclRegistry.pas Functions
Search in JCL Help
Search in all projects
Summary
Creates and initializes a key.
Pascal
function RegCreateKey(const RootKey: DelphiHKEY; const Key: string): Longint; overload;
function RegCreateKey(const RootKey: DelphiHKEY; const Key: string; const Value: string): Longint; overload;
Parameters
Parameters | Description |
const Key: string | Subkey of HKEY_CLASSES_ROOT to create. |
const Value: string | The value to write to the default value of the specified key. |
Return Value
If the function succeeds it returns ERROR_SUCCESS as defined in Windows.pas. If it fails it returns a non-zero error code. You can use the Windows FormatMessage API call to get a description for the error code.
Description
RegCreateKey creates the specified key under the HKEY_CLASSES_ROOT and writes the specified value to the default value of this key.
About
Unit
Donator
Charlie Calvert
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page