CallbackFilter.GetFilterDefaultCount method


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

CallbackFilter     See also    


Returns the number of on-boot rules


    function GetFilterDefaultCount(ProductName : AnsiString) : integer;

[C++ (Lib)]
    int GetFilterDefaultCount(LPCSTR ProductName);

[C++ (VCL)]
    int __fastcall GetFilterDefaultCount( AnsiString ProductName);

[C++ (.NET)]
    int GetFilterDefaultCount(String^ ProductName);

    int GetFilterDefaultCount(string ProductName);

    Function GetFilterDefaultCount(ByVal ProductName As String) As Integer


  • ProductName - the name or symbolic identifier of the program that has set the rule


Use this method to get the number of on-boot rules, set by your application.

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.

See also

AddFilterDefaultRule     DeleteFilterDefaultRule     GetFilterDefaultRule