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

CallbackFilter.AddPassThroughAccessRuleEx method


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

CallbackFilter     See also    


This method adds a passthrough access rule with filtering by Extended Attribute name.


    function AddPassThroughAccessRuleEx(Mask : TCBString; EaName : AnsiString; AccessFlag : LongWord): boolean;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    bool AddPassThroughAccessRuleEx(LPCWSTR Mask, LPCSTR EaName CbFltAccessFlags AccessFlag);

[C++ (VCL)]
    bool __fastcall AddPassThroughAccessRuleEx(WideString Mask, AnsiString EaName unsigned AccessFlag);

[C++ (.NET)]
    bool AddPassThroughAccessRuleEx(String^ Mask, String^ EaName, CbFltAccessFlags AccessFlag);

    bool AddPassThroughAccessRuleEx(String Mask, String EaName, CbFltAccessFlags AccessFlag);

    Function AddPassThroughAccessRuleEx(ByVal Mask As String, ByVal EaName As String, ByVal AccessFlag As CbFltAccessFlags) As Boolean


  • Mask - mask of the files to apply the filter to
  • EaName - name of the extended attribute. Wildcard characters are not allowed
  • AccessFlag - flags to be set on files that match the Mask

Return values

TRUE / true if the function succeeded or FALSE / false if the function failed.

AccessFlag values


Use this method to add a passthrough access rule. Passthrough access rules let you exclude files from processing with access rules.

Read more about passthrough rules.

See also

AddFilterAccessRuleEx     AddPassThroughCallbackRuleEx     DeletePassThroughRule    

Back to top