Export (0) Print
Expand All
IRP
MDL
Expand Minimize

REG_CALLBACK_CONTEXT_CLEANUP_INFORMATION structure

The REG_CALLBACK_CONTEXT_CLEANUP_INFORMATION structure contains information that a driver's RegistryCallback routine can use to free resources that the driver previously allocated for the context that is associated with a registry object.

Syntax


typedef struct _REG_CALLBACK_CONTEXT_CLEANUP_INFORMATION {
  PVOID Object;
  PVOID ObjectContext;
  PVOID Reserved;
} REG_CALLBACK_CONTEXT_CLEANUP_INFORMATION, *PREG_CALLBACK_CONTEXT_CLEANUP_INFORMATION;

Members

Object

A pointer to the registry key object for the key to be deleted.

ObjectContext

A pointer to driver-defined context information that the driver has associated with a registry object by calling CmSetCallbackObjectContext.

Reserved

This member is reserved for future use.

Remarks

This structure is used by the RegistryCallback routine. When the Argument1 parameter to the RegistryCallback routine is RegNtCallbackObjectContextCleanup, the Argument2 parameter is a pointer to a REG_CALLBACK_CONTEXT_CLEANUP_INFORMATION structure.

The driver's RegistryCallback routine will receive a RegNtCallbackObjectContextCleanup notification after the key object's handle has been closed. In response to this notification, the routine should release any resources that it allocated for the object's context. The RegNtCallbackObjectContextCleanup notification occurs when the driver has called CmUnRegisterCallback or the driver's RegistryCallback routine has just finished processing a RegNtPreKeyHandleClose notification.

For more information about registry filtering operations, see Filtering Registry Calls.

Requirements

Version

Available starting with Windows Vista.

Header

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

See also

CmSetCallbackObjectContext
CmUnRegisterCallback
RegistryCallback

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft