CallbackFilter.ReadWriteFileInPreCreatePath property


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

CallbackFilter     See also    


Specifies whether access to the file using OpenFile method is possible in OnCreateFileC and OnOpenFileC callbacks/events


    property ReadWriteFileInPreCreatePath : boolean;

[C++ (Lib)]
    void SetReadWriteFileInPreCreatePath(BOOL Value);
    bool GetReadWriteFileInPreCreatePath(void);

[C++ (VCL)]
    __property bool ReadWriteFileInPreCreatePath;

[C++ (.NET)]
    property bool ReadWriteFileInPreCreatePath

    bool ReadWriteFileInPreCreatePath;

    Public Property ReadWriteFileInPreCreatePath As Boolean


When the OnCreateFileC or OnOpenFileC callback/delegate/event handler is called, your code can use OpenFile method to read or write the file before it is opened. To provide such possibility the filter driver needs to perform some extra system calls. This can slow down operation in some cases. So if you don't need this functionality, you can set this property to false to speed up operations.

Property value can be changed only when when the filter is active, i.e. Active is true.

See also

OpenFile     OnCreateFileC     OnOpenFileC