WdfControlDeviceInitSetShutdownNotification function (wdfcontrol.h)
[Applies to KMDF only]
The WdfControlDeviceInitSetShutdownNotification method sets shutdown notification information for a control device object.
void WdfControlDeviceInitSetShutdownNotification(
[in] PWDFDEVICE_INIT DeviceInit,
[in] PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification,
[in] UCHAR Flags
);
[in] DeviceInit
A pointer to a WDFDEVICE_INIT structure that the driver obtained by calling WdfControlDeviceInitAllocate.
[in] Notification
A pointer to the driver's EvtDeviceShutdownNotification event callback function.
[in] Flags
One or more WDF_DEVICE_SHUTDOWN_FLAGS-typed flags that indicate when the EvtDeviceShutdownNotification callback function will be called.
None
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.
Requirement | Value |
---|---|
Target Platform | Universal |
Minimum KMDF version | 1.0 |
Header | wdfcontrol.h (include Wdf.h) |
Library | Wdf01000.sys (see Framework Library Versioning.) |
IRQL | <= DISPATCH_LEVEL |
DDI compliance rules | ControlDeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf) |