WdfControlDeviceInitSetShutdownNotification - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfcontrol-wdfcontroldeviceinitsetshutdownnotification)

WdfControlDeviceInitSetShutdownNotification function

Description

[Applies to KMDF only]

The WdfControlDeviceInitSetShutdownNotification method sets shutdown notification information for a control device object.

Parameters

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.

Remarks

The driver must call WdfControlDeviceInitSetShutdownNotification before calling WdfDeviceCreate. For more information about calling WdfControlDeviceInitSetShutdownNotification, see Using Control Device Objects.

Examples

For a code example that uses WdfControlDeviceInitSetShutdownNotification, see WdfControlDeviceInitAllocate.

See also

EvtDeviceShutdownNotification

WDFDEVICE_INIT

WDF_DEVICE_SHUTDOWN_FLAGS

WdfDeviceCreate