Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalBoolean RegistryDeleteValue( SalNumber hKey, SalString sSubKey )
The RegistryDeleteKey method deletes a key from the Windows registry.
Name | Description |
---|---|
SalNumber hKey | Identifies a currently open key or any of the following predefined reserved handle values: Const.HKEY_CLASSES_ROOT, Const.HKEY_CURRENT_USER, Const.HKEY_LOCAL_MACHINE, Const.HKEY_USERS |
SalString sSubKey | Name of subkey to delete. Use the "backslash" character (\) to denote multiple levels in the subkey. |
The return value is TRUE if the key was successfully deleted, FALSE otherwise
You can only use this method to delete registry keys of the REG_SZ (null-terminated string) type.
Call Profile.RegistryDeleteKey( HKEY_CLASSES_ROOT,'.ifm') Call Profile.RegistryDeleteKey( HKEY_CLASSES_ROOT, 'ifm_auto_file\\shell' )Ext._ProfileRegistryDeleteKey(Const.HKEY_CURRENT_USER, Const.REGISTRY_KEY_PersonalProfile);