Control over registry operations in Windows and .NET applications

CallbackRegistry.AddPassThroughCallbackRuleEx method


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

CallbackRegistry     See also    


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


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

[C++ (Lib)]
    bool AddPassThroughCallbackRuleEx(LPCWSTR Mask, LPCSTR EaName, CbFltCallbackFlags CallbackFlag);

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

[C++ (.NET)]
    bool AddPassThroughCallbackRuleEx(String^ Mask, String^ EaName, CbFltCallbackFlags CallbackFlag);

    bool AddPassThroughCallbackRuleEx(String Mask, String EaName, CbFltCallbackFlags CallbackFlag);

    Function AddPassThroughCallbackRuleEx(ByVal Mask As String, ByVal EaName As String, ByVal CallbackFlag As CbFltCallbackFlags) As Boolean


  • Mask - mask of the files to apply the filter to
  • EaName - name of the extended attribute. Wildcard characters are not allowed
  • CallbackFlag - 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.

CallbackFlag values


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

Read more about passthrough rules.

See also

AddFilterCallbackRuleEx     AddPassThroughAccessRuleEx     DeletePassThroughRule    

Back to top