OnWriteFileN 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 needs to write the data from the open file or volume.

Declaration

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

[C++ (Lib)]
    typedef void (*CBFSFltWriteFileEventN)(CBFSFilter* Sender, LPWSTR FileName, __int64 Position, DWORD BytesToWrite, LONG Status);

[C++ (VCL)]
    typedef void __fastcall (__closure *TCBFSFltWriteFileEventN)(System::TObject* Sender, WideString FileName, __int64 Position, unsigned BytesToWrite, DWORD Status);

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

[C#]
    delegate void CBFSFltWriteFileEventN(CBFSFilter^ Sender, string FileName, long Position, Int32 BytesToWrite, Int32 Status);

[VB.NET]
    Delegate Sub CBFSFltWriteFileEventN(ByVal Sender As CBFSFilter, ByVal FileName As String, ByVal Position As Long, ByVal BytesToWrite As Int32, ByVal Status As Int32, ByRref UserContext As IntPtr)

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileName - contains the name of the file
  • Position - the starting position to write the file data to
  • BytesToWrite - the number of bytes to write 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 write the data to the open file or volume.

See also

OnWriteFileC