OnFilterAttachToFsVolumeN event/delegate/callback


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

CBFSFilter     See also    


Notifies about a new file system volume


    property OnFilterAttachToFsVolumeN : TCBFSFltFilterAttachToFsVolumeEventN;
    TCBFSFltFilterAttachToFsVolumeEventN = procedure(Sender : TObject; VolumeName : TCBString) of object;

[C++ (Lib)]
    typedef void (*CBFSFltFilterAttachToFsVolumeEventN)(CBFSFilter* Sender, LPCWSTR VolumeName);

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

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

    delegate void CBFSFltFilterAttachToFsVolumeEventN(CBFSFilter Sender, String VolumeName);

    Delegate Sub CBFSFltFilterAttachToFsVolumeEventN(ByVal Sender As CBFSFilter, 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 notification event to be informed 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. This notification is sent shortly after the volume is mounted, but not synchronously. For synchronous notification see OnFilterAttachToFsVolumeC 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 CBFSFilter.

See also

ProcessMountVolumeEvent     OnFilterAttachToFsVolumeC     OnFilterDetachFromFsVolumeN