Control over registry operations in Windows and .NET applications

OnFilterDetachFromFsVolume event/delegate/callback


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

CallbackRegistry     See also    


Notifies about removal of the file system volume


    property OnFilterDetachFromFsVolume : TCbFltFilterDetachFromFsVolumeEvent;
    TCbFltFilterDetachFromFsVolumeEvent = procedure(Sender : TObject; VolumeName : WideString) of object;

[C++ (Lib)]
    typedef void (*CbFltFilterDetachFromFsVolumeEvent)(CallbackRegistry* Sender, LPCWSTR VolumeName);

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

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

    delegate void CbFltFilterDetachFromFsVolumeEvent(CallbackRegistry Sender, String VolumeName);

    Delegate Sub CbFltFilterDetachFromFsVolumeEvent(ByVal Sender As CallbackRegistry, 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 event to be notified 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.

Error handling

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

See also


Back to top