// wdfrequest.h
typedef enum _WDF_REQUEST_STOP_ACTION_FLAGS {
WdfRequestStopActionInvalid = 0,
WdfRequestStopActionSuspend = 0x01,
WdfRequestStopActionPurge = 0x2,
WdfRequestStopRequestCancelable = 0x10000000
} WDF_REQUEST_STOP_ACTION_FLAGS;
View the official Windows Driver Kit DDI reference// wudfddi_types.h
typedef enum _WDF_REQUEST_STOP_ACTION_FLAGS {
WdfRequestStopActionInvalid,
WdfRequestStopActionSuspend,
WdfRequestStopActionPurge,
WdfRequestStopRequestCancelable
} WDF_REQUEST_STOP_ACTION_FLAGS;
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WDF_REQUEST_STOP_ACTION_FLAGS enumeration type defines flags that the framework passes to a driver's EvtIoStop callback function.
WdfRequestStopActionInvalid:0Reserved for internal use only.
WdfRequestStopActionSuspend:0x01The framework is stopping the I/O queue because the device is leaving its working (D0) state.
WdfRequestStopActionPurge:0x2The framework is stopping the I/O queue because the device is being removed.
WdfRequestStopRequestCancelable:0x10000000The I/O request is cancelable.
When the framework calls a driver's EvtIoStop callback function, it sets either the WdfRequestStopActionSuspend or WdfRequestStopActionPurge flag. If the request is cancelable, the framework also sets the WdfRequestStopRequestCancelable flag.
[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]
The WDF_REQUEST_STOP_ACTION_FLAGS enumeration contains values that identify the state of a stop action request in a call to the driver's IQueueCallbackIoStop::OnIoStop method.
WdfRequestStopActionInvalidIf this value is set to 1, the request is invalid.
WdfRequestStopActionSuspendIf this value is set to 1, the device is suspended.
WdfRequestStopActionPurgeIf this value is set to 1, the device and queue are removed.
WdfRequestStopRequestCancelableIf this value is set to 1, the request is marked as cancelable.
IQueueCallbackIoStop::OnIoStop