CallbackFilter

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

OnReadFileN 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 has read the data from the open file.

Declaration

[Pascal]
    property OnReadFileN : TCbFltReadFileEventN;
    TCbFltReadFileEventN = procedure(Sender : TObject; FileName: TCBString; Position: Int64; BytesToRead: LongWord; Status : DWORD) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    typedef void (*CbFltReadFileEventN)(CallbackFilter* Sender, LPWSTR FileName, __int64 Position, DWORD BytesToRead, LONG Status);

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbFltReadFileEventN)(System::TObject* Sender, TCBString FileName, __int64 Position, unsigned long BytesToRead, DWORD Status);

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

[C#]
    delegate void CbFltReadFileEventN(CallbackFilter^ Sender, string FileName, long Position, Int32 BytesToRead, Int32 Status);

[VB.NET]
    Delegate Sub CbFltReadFileEventN(ByVal Sender As CallbackFilter, ByVal FileName As String, ByVal Position As Long, ByVal BytesToRead As Int32, ByVal Status As Int32)

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileName - contains the name of the file
  • Position - the starting position to read the file data from
  • BytesToRead - the number of bytes to read from the file. The Buffer contains not more space, than this value.
  • Status - status code of the completed operation

Description

This notification callback is called when the OS needs to read the data from the open file.

See also

OnReadFileC    

Back to top