// wdfcontrol.h
VOID WdfControlDeviceInitSetShutdownNotification(
[in] PWDFDEVICE_INIT DeviceInit,
[in] PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification,
[in] UCHAR Flags
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF only]
The WdfControlDeviceInitSetShutdownNotification method sets shutdown notification information for a control device object.
DeviceInit
[in]A pointer to a WDFDEVICE_INIT structure that the driver obtained by calling WdfControlDeviceInitAllocate.
Notification
[in]A pointer to the driver's EvtDeviceShutdownNotification event callback function.
Flags
[in]One or more WDF_DEVICE_SHUTDOWN_FLAGS-typed flags that indicate when the EvtDeviceShutdownNotification callback function will be called.
The driver must call WdfControlDeviceInitSetShutdownNotification before calling WdfDeviceCreate. For more information about calling WdfControlDeviceInitSetShutdownNotification, see Using Control Device Objects.
For a code example that uses WdfControlDeviceInitSetShutdownNotification, see WdfControlDeviceInitAllocate.