Instant control over file and folder operations in Windows and .NET applications

OnPostRenameOrMoveFileC event/delegate/callback


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

CallbackFilter     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) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

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

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

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

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

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


  • 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


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

See also

OnRenameOrMoveFileC     OnRenameOrMoveFileN    

Back to top