PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
RegistryCopyKey (Function)
In French: RegistreCopieClé
Copies a registry key as well as all its sub-keys and values.
Example
RegistryCopyKey("HKEY_LOCAL_MACHINE\SOFTWARE\MyApp", ...
"HKEY_LOCAL_MACHINE\SOFTWARE\MyApp2")
Syntax
<Result> = RegistryCopyKey(<Path of Source Key> , <Path of Destination Key>)
<Result>: Boolean
  • True if the copy was performed,
  • False otherwise.
<Path of Source Key>: Character string (with quotes)
Full path of the key to copy.
<Path of Destination Key>: Character string (with quotes)
Full path of destination key.
Remarks
  • RegistryCopyKey performs a recursive copy.
  • From Windows Vista and later, the operations linked to the copy 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 (copy of a sub-key for example), the previous operations (copy of the other sub-keys for example) are not canceled.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment