OnSetEndOfFileN event/delegate/notification

Filter:

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

CBFSFilter     See also    

Overview

This notification callback is called when the OS or the application needs to change the size of the open file.

Declaration

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

[C++ (Lib)]
    typedef void (*CBFSFltSetEndOfFileEventN)(CBFSFilter* Sender, LPWSTR FileName, __int64 EndOfFile, LONG Status);

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

[C++ (.NET)]
    public delegate void CBFSFltSetEndOfFileEventN(CBFSFilter^ Sender, String^ FileName, Int64 EndOfFile, Int32 Status);

[C#]
    delegate void CBFSFltSetEndOfFileEventN(CBFSFilter^ Sender, string FileName, long EndOfFile, Int32 Status);

[VB.NET]
    Delegate Sub CBFSFltSetEndOfFileEventN(ByVal Sender As CBFSFilter, ByVal FileName As String, ByVal EndOfFile As Long, ByVal Status As Int32)

Parameters

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

Description

This notification callback is called when the OS or the application needs to change the size of the open file.

See also

OnSetEndOfFileC