ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Registry functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
RegistryCopyKey (Function)
In french: RegistreCopieClé
Copies a registry key with all its subkeys and values.
Example
RegistryCopyKey("HKEY_LOCAL_MACHINE\SOFTWARE\MyApp", ...
"HKEY_LOCAL_MACHINE\SOFTWARE\MyApp2")
Syntax
<Result> = RegistryCopyKey([<Access mode>, ] <Path of source key> , <Path of destination key>)
<Result>: Boolean
  • True if the image was copied,
  • 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.
<Path of source key>: Character string
Full path of the key to copy.
<Path of destination key>: Character string
Full path of destination key.
Remarks
  • RegistryCopyKey performs a recursive copy.
  • Starting with Windows Vista, copy-related operations are performed in a transaction. If an operation fails, all the previous operations are canceled.
  • In the earlier versions of Windows, the operations linked to the copy are not performed in transaction. If an operation fails (e.g. copying a subkey), previous operations (e.g. copying other subkeys) are not canceled.
Business / UI classification: Business Logic
Component: wd290std.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/21/2023

Send a report | Local help