Control over registry operations in Windows and .NET applications

CallbackRegistry.AddPassThroughAccessRule method


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

CallbackRegistry     See also    


This method adds a passthrough access rule.


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

[C++ (Lib)]
    bool AddPassThroughAccessRule(LPCWSTR Mask, CbFltAccessFlags AccessFlag);

[C++ (VCL)]
    bool __fastcall AddPassThroughAccessRule(WideString Mask, unsigned AccessFlag);

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

    bool AddPassThroughAccessRule(String Mask, CbFltAccessFlags AccessFlag);

    Function AddPassThroughAccessRule(ByVal Mask As String, ByVal AccessFlag As CbFltAccessFlags) As Boolean


  • Mask - mask of the files to apply the filter to
  • 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

AddFilterAccessRule     AddPassThroughCallbackRule     DeletePassThroughRule    

Back to top