OnPostRenameOrMoveFileC event/delegate/callback

Filter:

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

CBFSFilter     See also    

Overview

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

Declaration

[Pascal]
    property OnPostRenameOrMoveFileC : TCBFSFltPostRenameOrMoveFileEventC;
    TCBFSFltPostRenameOrMoveFileEventC = procedure(Sender : TObject; FileName: TCBString; NewFileName: TCBString; Status : DWORD; var FileContext: pointer, var HandleContext : pointer ) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    typedef void (*CBFSFltPostRenameOrMoveFileEventC)(CBFSFilter* Sender, LPWSTR FileName, LPCWSTR NewFileName, LONG Status, PVOID *FileContext, PVOID *HandleContext );

[C++ (VCL)]
    typedef void __fastcall (__closure *TCBFSFltPostRenameOrMoveFileEventC)(System::TObject* Sender, TCBString FileName, TCBString NewFileName, DWORD Status, void* &FileContext); void* &HandleContext

[C++ (.NET)]
    public delegate void CBFSFltPostRenameOrMoveFileEventC(CBFSFilter^ Sender, String^ FileName, String^ NewFileName, Int32 Status, IntPtr% FileContext, IntPtr% HandleContext );

[C#]
    delegate void CBFSFltPostRenameOrMoveFileEventC(CBFSFilter Sender, string FileName, string NewFileName, Int32 Status, ref IntPtr FileContext, ref IntPtr HandleContext );

[VB.NET]
    Delegate Sub CBFSFltPostRenameOrMoveFileEventC(ByVal Sender As CBFSFilter, ByVal FileName As String, ByVal NewFileName As String, ByVal Status As Int32, ByRef FileContext As IntPtr, ByRef HandleContext As IntPtr)

Parameters

  • 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
  • FileContext - the placeholder for the application-defined data, common to all concurrent file operations on the file
  • HandleContext - the placeholder for the application-defined data, local to each opened file handle

Description

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

See also

OnRenameOrMoveFileC     OnRenameOrMoveFileN