Control over registry operations in Windows and .NET applications

OnCanFileBeDeletedN event/delegate/notification


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

CallbackRegistry     See also    


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


    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)(CallbackRegistry* 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(CallbackRegistry^ Sender, String^ FileName, Int32 Status);

    delegate void CbFltCanFileBeDeletedEventN(CallbackRegistry Sender, string FileName, Int32 Status);

    Delegate Sub CbFltCanFileBeDeletedEventN(ByVal Sender As CallbackRegistry, ByVal FileName As String, ByVal Status As Int32)


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


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

See also


Back to top