IRP
MDL
Expand Minimize

REG_QUERY_KEY_SECURITY_INFORMATION structure

The REG_QUERY_KEY_SECURITY_INFORMATION structure receives security information for a registry key object.

Syntax


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;

Members

Object

A pointer to the registry key object for the key whose security information is being retrieved.

SecurityInformation

A pointer to a SECURITY_INFORMATION-typed value that identifies the type of security information that is being requested.

SecurityDescriptor

A pointer to a SECURITY_DESCRIPTOR structure that receives security information for the key object.

Length

The length, in bytes of the SECURITY_DESCRIPTOR structure that SecurityDescriptor points to.

CallContext

Optional 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.

ObjectContext

A 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.

Reserved

This member is reserved for future use. This member is defined for Windows Vista and later versions of the Windows operating system.

Remarks

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.

Requirements

Version

Available on Windows Vista and later versions of the Windows operating system.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

See also

CmSetCallbackObjectContext
RegistryCallback
SECURITY_DESCRIPTOR
SECURITY_INFORMATION
ZwQuerySecurityObject

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft