CallbackRegistry

Control registry operations in Windows and .NET applications

OnPostSetValueKey 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 set a value entry for a key has been processed by the system code which deals with the registry.

Declaration

[Pascal]
    property OnPostSetValueKey : TCbRegPostSetValueKeyEvent;
    TCbRegPostSetValueKeyEvent = procedure( Sender : TObject; UserContext: pointer; Result: LongWord; var Processed: boolean; var StopFiltering : boolean ) of object;

[C++ (Lib)]
    typedef void (*CbRegPostSetValueKeyEvent)( CallbackRegistry* Sender, LPVOID UserContext, DWORD Result, BOOL * Processed, BOOL * StopFiltering );

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbRegPostSetValueKeyEvent)( System::TObject* Sender, void *UserContext, unsigned Result, bool &Processed, bool &StopFiltering );

[C++ (.NET)]
    public delegate void CbRegPostSetValueKeyEvent( CallbackRegistry^ Sender, Object^ UserContext, UInt32 Result, bool %Processed, bool %StopFiltering );

[C#]
    delegate void CbRegPostSetValueKeyEvent( CallbackRegistry Sender, Object UserContext, UInt32 Result, ref bool Processed, ref bool StopFiltering );

[VB.NET]
    Delegate Sub CbRegPostSetValueKeyEvent( ByVal Sender As CallbackRegistry, ByVal UserContext As Object, ByVal Result As UInt32, ByRef Processed As Boolean, ByRef StopFiltering As Boolean )

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • UserContext - the placeholder for the application-defined data
  • Result - win32 error value of the operation. This value is returned to the originator of the request in the case no other result is returned from the callback.
  • Processed - if it's set to TRUE then the request doesn't go further (to the registry manager). Default value is FALSE.
  • StopFiltering - if StopFiltering is set to true, no other callbacks for the created key handle will be called

Values of KeySetValueClass

Description

This callback/event is called after a request to set a value entry for a key has been 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 OnPreOpenKey/OnPreOpenKey callback/event handlers. The name of the value can be stored in the user context in OnPreSetValueKey callback / event handler and retrieved in this callback / event handler.
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

OnPreCreateKey     OnPreOpenKey     OnPreSetValueKey    

Back to top