EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfcontrol.h

EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION EvtWdfDeviceShutdownNotification;

VOID EvtWdfDeviceShutdownNotification(
  [in] WDFDEVICE Device
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdfcontrol-evt_wdf_device_shutdown_notification)

EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION callback function

Description

[Applies to KMDF only]

A driver's EvtDeviceShutdownNotification event callback function notifies the driver that the system is about to lose its power.

Parameters

Device [in]

A handle to a framework device object that the driver initialized by calling WdfControlDeviceInitAllocate.

Remarks

To register an EvtDeviceShutdownNotification event callback function, a driver must call WdfControlDeviceInitSetShutdownNotification. Only drivers that create control device objects can register this callback function.

The framework calls a driver's EvtDeviceShutdownNotification event callback function if the user is about to turn off the computer, or if the computer suddenly loses its power and an emergency power supply, such as an uninterruptible power supply (UPS), is available to safely turn off the computer.

For more information about control device objects and the EvtDeviceShutdownNotification callback function see Using Control Device Objects.

See also

WdfControlDeviceInitAllocate

WdfControlDeviceInitSetShutdownNotification