|
|
|
|
|
RegistryRename (Function) Renames a key and/or a value in the registry. Remark: Renaming a key consists of: - Copying the key.
- Renaming the copied key.
- Deleting the former key.
RegistryRename("HKEY_LOCAL_MACHINE\SOFTWARE\MyApp", "HKEY_LOCAL_MACHINE\SOFTWARE\MyApplication")
RegistryRename("HKEY_LOCAL_MACHINE\SOFTWARE\MyApp", "Auto", "Automatic")
Sintaxis
Renaming a key in the registry Ocultar los detalles
<Result> = RegistryRename([<Access mode>, ] <Name of key to rename> , <New key name>)
<Result>: Boolean - True if the rename operation was performed,
- False otherwise.
<Access mode>: Integer constant Modo de acceso al registro:
| | registryMode32 | Modo forzado para acceder al registro como un programa de 32 bits. | registryMode64 | Modo forzado para acceder al registro como un programa de 64 bits. | registryModeAuto (Valor predeterminado) | Modo de acceso automático al registro: - una aplicación de 32 bits que se ejecuta en un sistema de 32 bits manipula el registro como un programa de 32 bits.
- una aplicación de 32 bits que se ejecuta en un sistema de 64 bits manipula el registro desde la siguiente rama:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node - una aplicación de 64 bits que se ejecuta en un sistema de 64 bits manipula el registro como un programa de 64 bits.
|
<Name of key to rename>: Character string Full path of the key to rename. <Result> will return False if this key does not exist. <New key name>: Character string New path and name of the key. <Result> will return False if this key already exists.
Renaming a registry key as well as its value Ocultar los detalles
<Result> = RegistryRename([<Access mode>, ] <Name of key to rename> , <Name of value to rename> [, <New key name>] , <New value name>)
<Result>: Boolean - True if the rename operation was performed,
- False otherwise.
<Access mode>: Integer constant Modo de acceso al registro:
| | registryMode32 | Modo forzado para acceder al registro como un programa de 32 bits. | registryMode64 | Modo forzado para acceder al registro como un programa de 64 bits. | registryModeAuto (Valor predeterminado) | Modo de acceso automático al registro: - una aplicación de 32 bits que se ejecuta en un sistema de 32 bits manipula el registro como un programa de 32 bits.
- una aplicación de 32 bits que se ejecuta en un sistema de 64 bits manipula el registro desde la siguiente rama:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node - una aplicación de 64 bits que se ejecuta en un sistema de 64 bits manipula el registro como un programa de 64 bits.
|
<Name of key to rename>: Character string Full path of the key to rename. <Result> will return False if this key does not exist. <Name of value to rename>: Character string Name of the value to rename in the registry for the specified key. <Result> will return False if this value does not exist. <New key name>: Optional character string New path and name of the key. If this parameter corresponds to an empty string ("") or is not specified, the name of the key is not modified. <Result> will return False if this key already exists. <New value name>: Character string New name of the value in the registry for the specified key. Observaciones - RegistryRename performs a recursive copy and then a recursive delete.
- Starting with Windows Vista, renaming-related operations are performed in a transaction. If an operation fails, all the previous operations are canceled.
- The owner of the key is lost when the key is renamed.
Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|