CallbackRegistry

Control over registry operations in Windows and .NET applications

CallbackRegistry.GetFilterRule method

Filter:

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

CallbackRegistry     See also    

Overview

Returns the filter rule with given index.

Declaration

[Pascal]
    function GetFilterRule(Index : integer; var Mask : TCBString; var AccessFlag : LongWord; var CallbackFlag : LongWord): boolean;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    bool GetFilterRule(int Index, LPWSTR* Mask, CbFltAccessFlags* AccessFlag, CbFltCallbackFlags* CallbackFlag);

[C++ (VCL)]
    bool __fastcall GetFilterRule(int Index, WideString &Mask, unsigned &AccessFlag, unsigned &CallbackFlag);

[C++ (.NET)]
    bool GetFilterRule(int32 Index, String^% Mask, CbFltAccessFlags% AccessFlag, CbFltCallbackFlags% CallbackFlag);

[C#]
    bool GetFilterRule(int32 Index, ref string Mask, ref CbFltAccessFlags AccessFlag, ref CbFltCallbackFlags CallbackFlag);

[VB.NET]
    Function GetFilterRule( ByVal Index As Int32, ByRef Mask As Integer, ByRef AccessFlag As CbFltAccessFlags, ByRef CallbackFlag As CbFltCallbackFlags) As Boolean

Parameters

  • Index - index of the rule
  • Mask - contains mask of the files to apply the filter to
  • AccessFlag - access filter flag
  • CallbackFlag - callback filter flag

Return values

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

AccessFlag values

CallbackFlag values

Description

Use this method to get the desired filter rule.

[C++ (Lib)]
To free buffer, allocated for Mask parameter, use free() function.

See also

DeleteFilterRule     DeleteAllFilterRules     AddFilterAccessRule     AddFilterCallbackRule    

Back to top