CallbackFilter

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

OnCanFileBeDeletedN event/delegate/notification

Filter:

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

CallbackFilter     See also    

Overview

This notification callback is called when the OS needs to query the possibility to delete the file or directory.

Declaration

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

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

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

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

[C#]
    delegate void CbFltCanFileBeDeletedEventN(CallbackFilter Sender, string FileName, Int32 Status);

[VB.NET]
    Delegate Sub CbFltCanFileBeDeletedEventN(ByVal Sender As CallbackFilter, ByVal FileName As String, ByVal Status As Int32)

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileName - name of the file
  • Status - status code of the completed operation

Description

This notification callback is called when the OS needs to check if the file or directory can be deleted.

See also

OnCanFileBeDeletedC    

Back to top