CallbackRegistry

Control registry operations in Windows and .NET applications

OnPostCloseKey event/delegate/callback

Filter:

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

CallbackRegistry     See also    

Overview

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

Declaration

[Pascal]
    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 );

[C#]
    delegate void CbRegPostCloseKeyEvent( CallbackRegistry Sender, Object UserContext );

[VB.NET]
    Delegate Sub CbRegPostCloseKeyEvent( ByVal Sender As CallbackRegistry, ByVal UserContext As Object )

Parameters

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

Description

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