|
|
|
|
RegistryCopyKey (Function) In french: RegistreCopieClé Copies a registry key with all its subkeys and values.
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:
| | registryMode32 | Forced mode to access the registry as a 32-bit program. | registryMode64 | Forced 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|