OnPostCanFileBeDeletedC 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 queried possibility to delete the file or directory.

Declaration

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

[C++ (Lib)]
    typedef void (*CBFSFltPostCanFileBeDeletedEventC)(CBFSFilter* Sender, LPWSTR FileName, BOOL DeleteFile, LONG Status, PVOID* FileContext, PVOID* HandleContext);

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

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

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

[VB.NET]
    Delegate Sub CBFSFltPostCanFileBeDeletedEventC(ByVal Sender As CBFSFilter, ByVal FileName As String, ByVal DeleteFile As Boolean, 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 - name of the file
  • DeleteFile - indicates whether the file will be deleted
  • 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
  • Status - status code of the completed operation

Description

This callback is called after the OS queried possibility of the file or directory to be deleted. When the callback/event handler is called, DeleteFile contains the value of the flag set by the OS or the application to indicate whether the file should be deleted.

See also

OnCanFileBeDeletedC     OnCanFileBeDeletedN