// wdm.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
The REG_RENAME_KEY_INFORMATION structure contains the new name for a registry key whose name is about to be changed.
ObjectA pointer to the registry key object for the key whose name is about to be changed.
NewNameA pointer to a UNICODE_STRING structure that contains the new name for the registry key.
CallContextOptional driver-defined context information that the driver's RegistryCallback routine can supply. This member is defined for Windows Vista and later versions of the Windows operating system.
ObjectContextA pointer to driver-defined context information that the driver has associated with a registry object by calling CmSetCallbackObjectContext. This member is defined for Windows Vista and later versions of the Windows operating system.
ReservedThis member is reserved for future use. This member is defined for Windows Vista and later versions of the Windows operating system.
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.