CallbackFilter

Instant control over file and folder operations in Windows and .NET applications

CallbackFilter.GetReparseFileNameRule method

Filter:

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

CallbackFilter     See also    

Overview

This method retrieves the reparse rule based by index or mask.

Declaration

[Pascal]
    function GetReparseFileNameRule( Mask : TCBString; var ReparseMask : TCBString; ProductName : AnsiString ): boolean;
    function GetReparseFileNameRule( Index : Integer; var Mask : TCBString; var ReparseMask : TCBString; ProductName : AnsiString ): boolean;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    bool GetReparseFileNameRule( LPCWSTR Mask, LPCWSTR *ReparseMask, LPCSTR ProductName );
    bool GetReparseFileNameRule( int Index, LPCWSTR *Mask, LPCWSTR *ReparseMask, LPCSTR ProductName );

[C++ (VCL)]
    bool __fastcall GetReparseFileNameRule( WideString Mask, WideString &ReparseMask, AnsiString ProductName );
    bool __fastcall GetReparseFileNameRule( int Index, WideString &Mask, WideString &ReparseMask, AnsiString ProductName );

[C++ (.NET)]
    bool GetReparseFileNameRule( String^ Mask, String^% ReparseMask, String^ ProductName );
    bool GetReparseFileNameRule( Int32 Index, String^% Mask, String^% ReparseMask, String^ ProductName );

[C#]
    bool GetReparseFileNameRule( String Mask, ref String ReparseMask, String ProductName );
    bool GetReparseFileNameRule( Int32 Index, ref String Mask, ref String ReparseMask, String ProductName );

[VB.NET]
    Function GetReparseFileNameRule( ByVal Mask As String, ByRef ReparseMask As String, ByVal ProductName As String) As Boolean
    Function GetReparseFileNameRule( Index As Integer, ByRef Mask As String, ByRef ReparseMask As String, ByVal ProductName As String) As Boolean

Parameters

  • Index - index of the rule to retrieve
  • Mask - mask of the files to apply the filter to
  • ReparseMask - returns the reparse mask, set for the reparse Rule identified by Mask
  • 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.

Description

Use this method to retrieve a rule for redirecting file access based on it's index or mask.

[C++ (Lib)] NOTE: you must delete the pointer returned in ReparseMask parameter after a call completes. If you are accessing the rule by index, you should also delete the pointer returned in Mask parameter.

See also

AddReparseFileNameRule     DeleteAllReparseFileNameRules     DeleteReparseFileNameRule     GetReparseFileNameRulesCount    

Back to top