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

OnFilterAttachToFsVolumeC event/delegate/callback


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

CallbackFilter     See also    


Synchronously informs about a new file system volume


    property OnFilterAttachToFsVolumeC : TCbFltFilterAttachToFsVolumeEventC;
    TCbFltFilterAttachToFsVolumeEventC = procedure(Sender : TObject; VolumeName : TCBString) of object;

[C++ (Lib)]
    typedef void (*TCbFltFilterAttachToFsVolumeEventC)(CallbackFilter* Sender, LPCWSTR VolumeName);

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbFltFilterAttachToFsVolumeEventC)(System::TObject* Sender, TCBString VolumeName);

[C++ (.NET)]
    public delegate void CbFltFilterAttachToFsVolumeEventC(CallbackFilter^ Sender, String^ VolumeName);

    delegate void CbFltFilterAttachToFsVolumeEventC(CallbackFilter Sender, String VolumeName);

    Delegate Sub CbFltFilterAttachToFsVolumeEventC(ByVal Sender As CallbackFilter, ByVal VolumeName As String)


  • Sender - reference to the class that called the delegate/event handler
  • VolumeName - the name of the volume which has been mounted to the system


Use this synchronous event to be notified when new file system volume appears in the system. You can set filter rules on the new volume, if needed, in response to this event. Use ProcessMountVolumeEvent property to select, which kind of callback / event handler is called when the filter is attached or detached.

Error handling

See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to CallbackFilter.

See also

ProcessMountVolumeEvent     OnFilterAttachToFsVolumeN     OnFilterDetachFromFsVolumeC    

Back to top