Control registry operations in Windows and .NET applications

OnPostCloseKey event/delegate/callback


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CallbackRegistry     See also    


This callback is called after the request to close a key has been processed by the registry manager.


    property OnPostCloseKey : TCbRegPostCloseKeyEvent;
    TCbRegPostCloseKeyEvent = procedure( Sender : TObject; UserContext: pointer ) of object;

[C++ (Lib)]
    typedef void (*CbRegPostCloseKeyEvent)( CallbackRegistry* Sender, LPVOID UserContext );

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbRegPostCloseKeyEvent)( System::TObject* Sender, void * UserContext );

[C++ (.NET)]
    public delegate void CbRegPostCloseKeyEvent( CallbackRegistry^ Sender, Object^ UserContext );

    delegate void CbRegPostCloseKeyEvent( CallbackRegistry Sender, Object UserContext );

    Delegate Sub CbRegPostCloseKeyEvent( ByVal Sender As CallbackRegistry, ByVal UserContext As Object )


  • Sender - reference to the class that called the delegate/event handler
  • UserContext - the placeholder for the application-defined data


This callback/event is called after the application's request to close a key is processed by 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.

Error handling

See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to CallbackRegistry.

See also

OnPostOpenKey     OnPreCloseKey     OnPreCreateKey     OnPreOpenKey    

Back to top