PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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.
Versions 27 and later
WEBDEV - Server code This function is now available for WEBDEV sites in Windows.
New in version 27
WEBDEV - Server code This function is now available for WEBDEV sites in Windows.
WEBDEV - Server code This function is now available for WEBDEV sites in Windows.
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 copy was performed,
  • False otherwise.
<Access mode>: Integer constant
Versions 27 and later
Registry access mode:
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.
registryMode32Forced mode to access the registry as a 32-bit program.
registryMode64Forced mode to access the registry as a 64-bit program.
New in version 27
Registry access mode:
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.
registryMode32Forced mode to access the registry as a 32-bit program.
registryMode64Forced mode to access the registry as a 64-bit program.
Registry access mode:
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.
registryMode32Forced mode to access the registry as a 32-bit program.
registryMode64Forced mode to access 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: wd270std.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment