CallbackRegistry

Control over registry operations in Windows and .NET applications

CallbackRegistry.IsFileFiltered method

Filter:

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

CallbackRegistry     See also    

Overview

Checks whether the file falls under one of set filters.

Declaration

[Pascal]
    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);

[C#]
    bool IsFileFiltered(string FileName);

[VB.NET]
    Function IsFileFiltered(ByVal FileName As String) As Boolean

Parameters

  • 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.

Description

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    

Back to top