Control over registry operations in Windows and .NET applications

OnPostCanFileBeDeletedC event/delegate/callback


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

CallbackRegistry     See also    


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


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

    delegate void CbFltPostCanFileBeDeletedEventC(CallbackRegistry Sender, string FileName, Int32 Status, ref IntPtr UserContext);

    Delegate Sub CbFltPostCanFileBeDeletedEventC(ByVal Sender As CallbackRegistry, ByVal FileName As String, ByVal Status As Int32, ByRef UserContext As IntPtr)


  • 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


This callback is called after the OS queried possibility of the file or directory to be deleted.

See also

OnCanFileBeDeletedC     OnCanFileBeDeletedN    

Back to top