// wdm.h
typedef struct _REG_SET_VALUE_KEY_INFORMATION {
PVOID Object;
PUNICODE_STRING ValueName;
ULONG TitleIndex;
ULONG Type;
PVOID Data;
ULONG DataSize;
PVOID CallContext;
PVOID ObjectContext;
PVOID Reserved;
} REG_SET_VALUE_KEY_INFORMATION, *PREG_SET_VALUE_KEY_INFORMATION;
View the official Windows Driver Kit DDI referenceNo description available.
The REG_SET_VALUE_KEY_INFORMATION structure describes a new setting for a registry key's value entry.
ObjectA pointer to the registry key object for the key whose value entry is about to be changed.
ValueNameA pointer to a UNICODE_STRING structure that contains the name of the value entry about to be changed.
TitleIndexReserved for system use. Drivers should ignore this member.
TypeThe type of data that is about to be written. For more information about the possible values for this member, see the Type parameter of ZwSetValueKey.
DataA pointer to a buffer that contains the data about to be written. The format of the buffer depends on the value of Type. For more information, see ZwSetValueKey.
DataSizeThe size, in bytes, of the Data buffer.
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.
The system passes this structure to a RegistryCallback routine every time a thread attempts to set a value entry for a key—for example, when a user-mode thread calls RegSetValue or RegSetValueEx or when a driver calls ZwSetValueKey.
For more information about registry filtering operations, see Filtering Registry Calls.