// wdm.h
typedef struct _REG_QUERY_KEY_SECURITY_INFORMATION {
PVOID Object;
PSECURITY_INFORMATION SecurityInformation;
PSECURITY_DESCRIPTOR SecurityDescriptor;
PULONG Length;
PVOID CallContext;
PVOID ObjectContext;
PVOID Reserved;
} REG_QUERY_KEY_SECURITY_INFORMATION, *PREG_QUERY_KEY_SECURITY_INFORMATION;
View the official Windows Driver Kit DDI referenceNo description available.
The REG_QUERY_KEY_SECURITY_INFORMATION structure receives security information for a registry key object.
ObjectA pointer to the registry key object for the key whose security information is being retrieved.
SecurityInformationA pointer to a SECURITY_INFORMATION-typed value that identifies the type of security information that is being requested.
SecurityDescriptorA pointer to a SECURITY_DESCRIPTOR structure that receives security information for the key object.
LengthThe length, in bytes of the SECURITY_DESCRIPTOR structure that SecurityDescriptor points to.
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 the REG_QUERY_KEY_SECURITY_INFORMATION structure to the RegistryCallback routine every time a thread attempts to query a key's security information—for example, when a driver calls ZwQuerySecurityObject.
For more information about registry filtering operations, see Filtering Registry Calls.