Filter:Pascal C++ (Lib) C++ (VCL) C++ (.NET) C# VB.NET
This callback is called when a thread attempts to close the key.
- Sender - reference to the class that called the delegate/event handler
- UserContext - the placeholder for the application-defined data
- StopFiltering - parameter set to true tells the driver to not pass the request to the registry. Parameter set to false allows further processing of the request.
This callback/event handler is called before the application's request to close a key is passed to the registry manager in Windows.
The name of the key should be obtained from the user context which must have been set in OnPreCreateKey/OnPreOpenKey callback/event handlers.
Read more about contexts.
See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to CallbackRegistry.