CallbackFilter.IsFileFiltered method


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

CallbackFilter     See also    


Checks whether the file falls under one of set filters.


    function IsFileFiltered(FileName: TCBString): boolean;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    bool IsFileFiltered(LPWSTR FileName);

[C++ (VCL)]
    bool __fastcall IsFileFiltered(WideString FileName);

[C++ (.NET)]
    bool IsFileFiltered(String^ FileName);

    bool IsFileFiltered(string FileName);

    Function IsFileFiltered(ByVal FileName As String) As Boolean


  • FileName - name of the file to be checked

Return values

TRUE / true if the file is filtered or FALSE / false if the file is not.


Use this method to check whether certain file would trigger one or more filters if accessed. This function should be used if you want to open the file from within some callback. If the file is filtered, you need to use CreateFile() or OpenFile() methods instead of CreateFile() Windows API function.

See also

CreateFile     OpenFile