Bewerken

Delen via


WDF_DEVICE_SHUTDOWN_FLAGS enumeration (wdfcontrol.h)

[Applies to KMDF only]

The WDF_DEVICE_SHUTDOWN_FLAGS enumeration defines flags that identify types of shutdown notifications that a driver can receive.

Syntax

typedef enum _WDF_DEVICE_SHUTDOWN_FLAGS {
  WdfDeviceShutdown = 0x01,
  WdfDeviceLastChanceShutdown = 0x02
} WDF_DEVICE_SHUTDOWN_FLAGS;

Constants

 
WdfDeviceShutdown
Value: 0x01
The driver is notified when the system is losing its power, but before file systems are flushed.
WdfDeviceLastChanceShutdown
Value: 0x02
The driver is notified when the system is losing its power, and after all file systems have been flushed.

Remarks

The WDF_DEVICE_SHUTDOWN_FLAGS enumeration is used as an input parameter to WdfControlDeviceInitSetShutdownNotification.

Requirements

Requirement Value
Minimum KMDF version 1.0
Header wdfcontrol.h (include Wdf.h)

See also

WdfControlDeviceInitSetShutdownNotification