FireVolumeEvents Property
The events that should be fired when a filesystem volume is mounted to or unmounted from the system.
Syntax
public int getFireVolumeEvents(); public void setFireVolumeEvents(int fireVolumeEvents);
Default Value
0
Remarks
This property specifies the events that the class should fire when a filesystem volume is mounted to or unmounted from the system. Possible values are:
FS_MOUNT_IGNORE | 0 | Don't fire any events when volumes are mounted or unmounted. |
FS_MOUNT_NOTIFY | 64 | Fire Notification Events when volumes are mount or unmounted.
The NotifyFilterAttachToVolume and NotifyFilterDetachFromVolume events will fire, asynchronously, as necessary. |
FS_MOUNT_CONTROL | 128 | Fire Control Events when volumes are mounted or unmounted.
The BeforeFilterAttachToVolume, AfterFilterAttachToVolume, and AfterFilterDetachFromVolume events will fire, synchronously, as necessary. |
FS_MOUNT_BOTH | 192 | Fire all events when volumes are mounted or unmounted. |
Note that the aforementioned events are only fired for volumes mounted/unmounted after the StartFilter method is called. Typically, applications use these events to dynamically add or remove volume-specific filter rules that target removable volumes (like, e.g., USB drives), as well as create virtual files on such volumes. Please refer to the File Masks topic for more information.