// wdfdevice.h
EVT_WDF_DEVICE_USAGE_NOTIFICATION EvtWdfDeviceUsageNotification;
VOID EvtWdfDeviceUsageNotification(
[in] WDFDEVICE Device,
[in] WDF_SPECIAL_FILE_TYPE NotificationType,
[in] BOOLEAN IsInNotificationPath
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
A driver's EvtDeviceUsageNotification event callback function informs the driver when a device is being used for special files.
Device [in]A handle to a framework device object.
NotificationType [in]A WDF_SPECIAL_FILE_TYPE-typed value that identifies the type of special file that the system is storing on the specified device.
IsInNotificationPath [in]A Boolean value which, if TRUE, indicates that the system has starting using the special file and, if FALSE, indicate that the system as finished using the special file.
To register an EvtDeviceUsageNotification callback function, a driver must call WdfDeviceInitSetPnpPowerEventCallbacks.
Your driver must provide an EvtDeviceUsageNotification callback function only if must provide driver-specific handling of special files.
For more information about special files, see Supporting Special Files.