CallbackFilter

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

OnSetEndOfFileN 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 or the application needs to change the size of the open file.

Declaration

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

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

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

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

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

[VB.NET]
    Delegate Sub CbFltSetEndOfFileEventN(ByVal Sender As CallbackFilter, 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    

Back to top