ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Registry functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Deletes a subkey from the Windows registry.
Note The function RegistryDeleteKey function deletes the sub-key, values and descendants of the specified key.
Example
Chemin is string
// Connaître le nom de la clé "root"
Chemin = RegistryFirstSubKey()
// Supprimer la clé pour mon application
Chemin = Chemin + "\MonAppli\"
IF RegistryDeleteKey(Chemin) = False THEN
	Error("Erreur lors de la suppression de la clé")
	RETURN
END
// Supprime la sous-clé "HKEY_LOCAL_MACHINE\SYSTEM\Appli"
ResSupClé = RegistryDeleteKey("HKEY_LOCAL_MACHINE\SYSTEM\Appli")
Syntax
<Result> = RegistryDeleteKey([<Access mode>, ] <Subkey path>)
<Result>: Boolean
  • True if the subkey was deleted or if the key does not exist,
  • False otherwise.
<Access mode>: Integer constant
Registry access mode:
registryMode32Forced mode to access the registry as a 32-bit program.
registryMode64Forced mode to access the registry as a 64-bit program.
registryModeAuto
(Default value)
Automatic registry access mode:
  • a 32-bit application running on a 32-bit system manipulates the registry as a 32-bit program.
  • a 32-bit application running on a 64-bit system manipulates the registry from the following branch:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
  • a 64-bit application running on a 64-bit system manipulates the registry as a 64-bit program.
<Subkey path>: Character string
Full path of subkey to delete.
Business / UI classification: Business Logic
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help