CallbackFilter

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

OnPostUserFsRequestC event/delegate/notification

Filter:

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

CallbackFilter     See also    

Overview

This callback is called after the filesystem finishes processing one of the supplementary IRPs.

Declaration

[Pascal]
    property OnUserFsRequestC : TCbFltUserFsRequestEventC;
    TCbFltUserFsRequestEventC = procedure(Sender : TObject; FileName: TCBString; UserFsControlCode: LongWord; Buffer : Pointer; BufferLength: LongWord; Status: LongWord ) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    typedef void (*CbFltUserFsRequestEventC)(CallbackFilter* Sender, LPWSTR FileName, unsigned long UserFsControlCode, void * Buffer, unsigned long BufferLength, unsigned long Status );

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbFltUserFsRequestEventC)(System::TObject* Sender, WideString FileName, unsigned long UserFsControlCode, void * Buffer, unsigned long BufferLength, unsigned long Status );

[C++ (.NET)]
    public delegate void CbFltUserFsRequestEventC(CallbackFilter^ Sender, String^ FileName, UInt32 UserFsControlCode, IntPtr Buffer, UInt32 BufferLength, UInt32 Status );

[C#]
    delegate void CbFltUserFsRequestEventC(CallbackFilter^ Sender, string FileName, UInt32 UserFsControlCode, IntPtr Buffer, UInt32 BufferLength, UInt32 Status );

[VB.NET]
    Delegate Sub CbFltUserFsRequestEventC(ByVal Sender As CallbackFilter, ByVal FileName As String, ByVal UserFsControlCode As UInt32, ByVal Buffer As IntPtr, ByVal BufferLength As UInt32, ByVal Status As UInt32 )

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileName - contains the name of the file
  • UserFsControlCode - the IRP code that was reported (see description for details)
  • Buffer - the data passed with the IRP
  • BufferLength - the length of the data contained in Bufer
  • Status - status code of the completed operation

Description

This post-operation callback is called after one of the following IRPs (FSCTL_FILE_LEVEL_TRIM, FSCTL_OFFLOAD_WRITE, FSCTL_SET_ZERO_DATA) is processed by the filesystem. The operation is identified in UserFsControlCode parameter. The Buffer can be typecast to the request-specific data structure for use.

See also

OnUserFsRequestC     OnUserFsRequestN    

Back to top