CallbackFilter

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

OnSetFileAttributesN 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 attributes or times of the open file.

Declaration

[Pascal]
    property OnSetFileAttributesN : TCbFltSetFileAttributesEventN;
    TCbFltSetFileAttributesEventN = procedure(Sender : TObject; FileName: TCBString; CreationTime: TDateTime; LastAccessTime: TDateTime; LastWriteTime: TDateTime; FileAttributes: DWORD; Status : DWORD) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    typedef void (*CbFltSetFileAttributesEventC)(CallbackFilter* Sender, LPWSTR FileName, PFILETIME CreationTime, PFILETIME LastAccessTime, PFILETIME LastWriteTime, DWORD FileAttributesStatus);

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbFltSetFileAttributesEventC)(System::TObject* Sender, TCBString FileName, System::TDateTime CreationTime, System::TDateTime LastAccessTime, System::TDateTime LastWriteTime, unsigned FileAttributes, DWORD Status);

[C++ (.NET)]
    public delegate void CbFltSetFileAttributesEventC(CallbackFilter^ Sender, String^ FileName, DateTime% CreationTime, DateTime% LastAccessTime, DateTime% LastWriteTime, Int32 FileAttributes, Int32 Status);

[C#]
    delegate void CbFltSetFileAttributesEventC(CallbackFilter Sender, string FileName, DateTime CreationTime, DateTime LastAccessTime, DateTime LastWriteTime, Int32 FileAttributes, Int32 Status);

[VB.NET]
    Delegate Sub CbFltSetFileAttributesEventN(ByVal Sender As CallbackFilter, ByVal FileName As String, ByVal CreationTime As DateTime, ByVal LastAccessTime As DateTime, ByVal LastWriteTime As DateTime, ByVal FileAttributes As Int32, ByVal Status As Int32)

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileName - the name of the file
  • CreationTime - the time of the object creation. The value can be empty (zero in VCL, DateTime.MinValue in .NET) if the parameter is not set.
  • LastAccessTime - the time of the last access to the object. The value can be empty (zero in VCL, DateTime.MinValue in .NET) if the parameter is not set.
  • LastWriteTime - the time of the last modification to the object. The value can be empty (zero in VCL, DateTime.MinValue in .NET) if the parameter is not set.
  • FileAttributes - the attributes 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 times and/or the attributes of the open file.

See also

OnSetFileAttributesC    

Back to top