Filter:Pascal C++ (Lib) C++ (VCL) C++ (.NET) C# VB.NET
This method adds a filter callback rule.
- Mask - mask of the files to apply the filter to
- CallbackFlag - flags to be set on files that match the Mask
TRUE / true if the function succeeded or FALSE / false if the function failed.
Use this method to add a filter callback rule. It means, that whenever some application (or the OS itself) tries to perform certain operations, specified by CallbackFlag, the corresponding callback will be called and it will notify your application about the event. If the callback function is not associated for the specific callback type, the request is processed as usually.
For example, if CallbackFlag is set to fltReadCallback, the OnReadFileC event will be fired if an application tries to read the file, whose name matches Mask.
Process-specific rules are supported.
Read more about masks.