JCL Help:RegDeleteKeyTree

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Deletes a registry key including all subkeys.


Pascal

 function RegDeleteKeyTree(const RootKey: DelphiHKEY; const Key: string): Boolean;


Parameters

Parameters Description
const RootKey: DelphiHKEY The rootkey from which to delete, one of the HKEY_XXX constants.
const Key: string Subkey of rootkey to delete.


Return Value

If the function succeeds it returns True else False. The failure may happen somewhere in the recursive deletion leaving you with only some remaining keys. Think twice before using this function. It will happily delete vital parts of the registry without complaining.


Description

RegDeleteKeyTree deletes the specified key under RootKey. This function deletes all subkeys first thus working also on Windows NT.


About

Unit

JclRegistry


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