Control over registry operations in Windows and .NET applications

OnPostRenameOrMoveFileC event/delegate/callback


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

CallbackRegistry     See also    


This callback is called after the OS renamed or moved the file within a file system.


    property OnPostRenameOrMoveFileC : TCbFltPostRenameOrMoveFileEventC;
    TCbFltPostRenameOrMoveFileEventC = procedure(Sender : TObject; FileName: TCBString; NewFileName: TCBString; Status : DWORD; var UserContext: pointer; var ProcessRequest: boolean) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    typedef void (*CbFltPostRenameOrMoveFileEventC)(CallbackRegistry* Sender, LPWSTR FileName, LPCWSTR NewFileName, LONG Status, PVOID* UserContext, LPBOOL RequestAccepted);

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbFltPostRenameOrMoveFileEventC)(System::TObject* Sender, TCBString FileName, TCBString NewFileName, void * UserContext, DWORD Status, bool &ProcessRequest);

[C++ (.NET)]
    public delegate void CbFltPostRenameOrMoveFileEventC(CallbackRegistry^ Sender, String^ FileName, String^ NewFileName, Int32 Status, IntPtr% UserContext, bool% ProcessRequest);

    delegate void CbFltPostRenameOrMoveFileEventC(CallbackRegistry Sender, string FileName, string NewFileName, Int32 Status, ref IntPtr UserContext, ref bool ProcessRequest);

    Delegate Sub CbFltPostRenameOrMoveFileEventC(ByVal Sender As CallbackRegistry, ByVal FileName As String, ByVal NewFileName As String, ByVal Status As Int32, ByRef UserContext As IntPtr, ByRef ProcessRequest As Boolean)


  • Sender - reference to the class that called the delegate/event handler
  • FileName - old name of the file
  • NewFileName - new name of the file
  • Status - status code of the completed operation
  • UserContext - the placeholder for the application-defined data
  • ProcessRequest (RequestAccepted) - specifies, whether the request must be passed further to the underlying filters and the file system


This callback is called after the OS renamed or moved the file within a file system.

See also

OnRenameOrMoveFileC     OnRenameOrMoveFileN    

Back to top