EVT_WDF_DEVICE_USAGE_NOTIFICATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdfdevice-evt_wdf_device_usage_notification)

EVT_WDF_DEVICE_USAGE_NOTIFICATION callback function

Description

[Applies to KMDF and UMDF]

A driver's EvtDeviceUsageNotification event callback function informs the driver when a device is being used for special files.

Parameters

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.

Remarks

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.