

In some cases, the Object member can contain a value that is non- NULL, but is not a pointer to a valid key object. Many of the notification structure types contain an Object member that points to a key object. The type of this structure varies according to the registry operation that is being performed. The notification structure contains information about the registry operation.

This value indicates which type of registry callback notification structure the third parameter of the Registr圜allback routine points to. In a registry filtering driver, the second parameter of the Registr圜allback routine is a REG_NOTIFY_CLASS enumeration value. This topic lists the circumstances in which the Object member of a registry callback notification structure might contain an undefined, non- NULL value. To avoid fatal errors and possible memory corruption, a registry filtering driver must not try to access a key object by using an invalid object pointer. Invalid Key Object Pointers in Registry Notifications
