// wdm.h
typedef struct _REG_REPLACE_KEY_INFORMATION {
PVOID Object;
PUNICODE_STRING OldFileName;
PUNICODE_STRING NewFileName;
PVOID CallContext;
PVOID ObjectContext;
PVOID Reserved;
} REG_REPLACE_KEY_INFORMATION, *PREG_REPLACE_KEY_INFORMATION;
View the official Windows Driver Kit DDI referenceNo description available.
The REG_REPLACE_KEY_INFORMATION structure describes the metadata that is about to be replaced for a key.
ObjectA pointer to a registry key object for the key whose metadata is about to be replaced.
OldFileNameThe name of the file that receives a backup copy of the registry information being replaced.
NewFileNameThe name of the file with the registry information. This file is typically created by using the RegSaveKey function.
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, which 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.
The system passes this structure to the RegistryCallback routine every time a thread attempts to replace the metadata for a key.
For more information about registry filtering operations, see Filtering Registry Calls.