FireVolumeEvents Property

The events that should be fired when a filesystem volume is mounted to or unmounted from the system.

Syntax

ANSI (Cross Platform)
int GetFireVolumeEvents();
int SetFireVolumeEvents(int iFireVolumeEvents); Unicode (Windows) INT GetFireVolumeEvents();
INT SetFireVolumeEvents(INT iFireVolumeEvents);
#define PID_CBMONITOR_FIREVOLUMEEVENTS 14

CBFSFILTER_EXTERNAL void* CBFSFILTER_CALL CBFSFilter_CBMonitor_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
CBFSFILTER_EXTERNAL int CBFSFILTER_CALL CBFSFilter_CBMonitor_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

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_IGNORE0Don't fire any events when volumes are mounted or unmounted.

FS_MOUNT_NOTIFY64Fire Notification Events when volumes are mount or unmounted.

The NotifyFilterAttachToVolume and NotifyFilterDetachFromVolume events will fire, asynchronously, as necessary.

FS_MOUNT_CONTROL128Fire Control Events when volumes are mounted or unmounted.

The BeforeFilterAttachToVolume, AfterFilterAttachToVolume, and AfterFilterDetachFromVolume events will fire, synchronously, as necessary.

FS_MOUNT_BOTH192Fire 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.

Data Type

Integer

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Filter 2020 C++ Edition - Version 20.0 [Build 8317]