_REG_RENAME_KEY_INFORMATION structure

The REG_RENAME_KEY_INFORMATION structure contains the new name for a registry key whose name is about to be changed.

Syntax

typedef struct _REG_RENAME_KEY_INFORMATION {
  PVOID           Object;
  PUNICODE_STRING NewName;
  PVOID           CallContext;
  PVOID           ObjectContext;
  PVOID           Reserved;
} REG_RENAME_KEY_INFORMATION, *PREG_RENAME_KEY_INFORMATION;

Members

        `CallContext`

        Optional driver-defined context information that the driver's <a href="https://msdn.microsoft.com/library/windows/hardware/ff560903">RegistryCallback</a> routine can supply. This member is defined for Windows Vista and later versions of the Windows operating system.

        `NewName`

        A pointer to a <a href="..\wudfwdm\ns-wudfwdm-_unicode_string.md">UNICODE_STRING</a> structure that contains the new name for the registry key.

        `Object`

        A pointer to the registry key object for the key whose name is about to be changed.

        `ObjectContext`

        A pointer to driver-defined context information that the driver has associated with a registry object by calling <a href="..\wdm\nf-wdm-cmsetcallbackobjectcontext.md">CmSetCallbackObjectContext</a>. This member is defined for Windows Vista and later versions of the Windows operating system.

        `Reserved`

        This member is reserved for future use. This member is defined for Windows Vista and later versions of the Windows operating system.

## Remarks
    Note that when a key is renamed, only the last component of the path can be changed.

For more information about registry filtering operations, see Filtering Registry Calls.

Requirements

   
Windows Driver kit version
Minimum KMDF version
Minimum UMDF version
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
## See Also

    <dl>

CmSetCallbackObjectContext
RegistryCallback

Send comments about this topic to Microsoft