This function is used to delete a key (and in some cases any associated attributes or subkeys) from the registry.
Context
Windows client,
Windows server.
Parameters
NUM_BIN_2 |
KeySet |
Value describing the subset of keys stored in the registry. HKEY_CLASSES_ROOT: value "0", HKEY_CURRENT_USER: value "1", HKEY_LOCAL_MACHINE: value "2", HKEY_CURRENT_CONFIG: value "3", HKEY_USERS: value "4". |
|
KeyName |
Path leading to the key to be deleted. |
BOOL |
ReturnCode |
Return code for the operation: *TRUE if the operation was successful. *FALSE if the KeyName key is not present in the specified subset. |
Example
KeyName = 'Application\Startup_Options'
KeySet = 1
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxDeleteKey' KeySet KeyName ReturnCode
List of the VaToolBx functions by topic