OnFilterDetachFromFsVolume event/delegate/callback


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

CBFSFilter     See also    


Synchronously informs about removal of the file system volume


    property OnFilterDetachFromFsVolumeC : TCBFSFltFilterDetachFromFsVolumeEventC;
    TCBFSFltFilterDetachFromFsVolumeEventC = procedure(Sender : TObject; VolumeName : WideString) of object;

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

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

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

    delegate void CBFSFltFilterDetachFromFsVolumeEventC(CBFSFilter Sender, String VolumeName);

    Delegate Sub CBFSFltFilterDetachFromFsVolumeEventC(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 is being removed from the system


Use this synchronous event to be informed when the file system volume disappears from the system. After the volume is removed all rules set for this volume are kept. Your application needs to remove them if necessary. 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