Control over registry operations in Windows and .NET applications

CallbackRegistry.DeleteFilterRule method


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

CallbackRegistry     See also    


This method deletes the on-boot filter rule.


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

[C++ (Lib)]
    bool DeleteFilterDefaultRule(LPCWSTR Mask, CbFltAccessFlags AccessFlag, LPCSTR ProductName);

[C++ (VCL)]
    bool __fastcall DeleteFilterDefaultRule(WideString Mask, unsigned long AccessFlag, AnsiString ProductName);

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

    bool DeleteFilterDefaultRule(String Mask, CbFltAccessFlags AccessFlag, String ProductName);

    Function DeleteFilterDefaultRule(ByVal Mask As String, ByVal AccessFlag As CbFltAccessFlags, ByVal ProductName As String) As Boolean


  • Mask - mask of the files to apply filter to
  • AccessFlag - access filter flag
  • ProductName - the name or symbolic identifier of the program that has set the rule

Return values

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


Use this method to remove the desired on-boot filter rule, previously set using AddFilterDefaultRule() method.

ProductName is used to distinguish the rules, set by different applications or modules. The value is used as a key in registry, so keep it short but unique. String format of GUID value works fine.

Read more about default rules.

See also

AddFilterDefaultRule     DisableDefaultRules     GetFilterDefaultCount     GetFilterDefaultRule    

Back to top