// wdm.h
typedef struct _REG_SAVE_KEY_INFORMATION {
PVOID Object;
HANDLE FileHandle;
ULONG Format;
PVOID CallContext;
PVOID ObjectContext;
PVOID Reserved;
} REG_SAVE_KEY_INFORMATION, *PREG_SAVE_KEY_INFORMATION;
View the official Windows Driver Kit DDI referenceNo description available.
The REG_SAVE_KEY_INFORMATION structure contains the information for a registry key that is about to be saved.
ObjectA pointer to a registry key object for the key whose information is about to be saved.
FileHandleA handle to the file to which the hive information will be saved.
FormatThe format in which the key or hive is saved. This member can have one of the following values.
| Value | Meaning |
|---|---|
| REG_STANDARD_FORMAT | Save in standard format. The standard format is the only format supported by Windows 2000. |
| REG_LATEST_FORMAT | Save in the latest format. The latest format is supported starting with Windows XP. After the key is saved in this format, it cannot be loaded on an earlier version of Windows. |
| REG_NO_COMPRESSION | Save with no compression, for faster save operations. The registry key object must represent the root of a hive. |
CallContextOptional driver-defined context information that the driver's RegistryCallback routine can supply. This member is defined starting with Windows Vista.
ObjectContextA pointer to driver-defined context information, which the driver has associated with a registry object by calling CmSetCallbackObjectContext. This member is defined starting with Windows Vista.
ReservedThis member is reserved for future use. This member is defined starting with Windows Vista.
For more information about registry filtering operations, see Filtering Registry Calls.