CallbackFilter

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

OnPostCanFileBeDeletedC event/delegate/callback

Filter:

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

CallbackFilter     See also    

Overview

This callback is called after the OS queried possibility to delete the file or directory.

Declaration

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

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

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

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

[C#]
    delegate void CbFltPostCanFileBeDeletedEventC(CallbackFilter Sender, string FileName, Int32 Status, ref IntPtr UserContext);

[VB.NET]
    Delegate Sub CbFltPostCanFileBeDeletedEventC(ByVal Sender As CallbackFilter, ByVal FileName As String, ByVal Status As Int32, ByRef UserContext As IntPtr)

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileName - name of the file
  • UserContext - the placeholder for the application-defined data
  • 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.

See also

OnCanFileBeDeletedC     OnCanFileBeDeletedN    

Back to top