// wdfdevice.h
VOID WdfDeviceInitSetPowerInrush(
[in] PWDFDEVICE_INIT DeviceInit
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF only]
The WdfDeviceInitSetPowerInrush method informs the power manager that the specified device requires an inrush of current when it starts.
DeviceInit
[in]A caller-supplied pointer to a WDFDEVICE_INIT structure.
To avoid overloading the system's power supply, the system starts devices that require an inrush of current one at a time.
If your driver calls WdfDeviceInitSetPowerInrush, the framework makes it nonpageable during power state transitions and the driver must not call WdfDeviceInitSetPowerPageable.
Your driver must call WdfDeviceInitSetPowerInrush before it calls WdfDeviceCreate. For more information about calling WdfDeviceCreate, see Creating a Framework Device Object.
Calling WdfDeviceInitSetPowerInrush from a filter driver has no effect. For filter drivers, the framework uses the setting that the next-lower driver in the driver stack specifies.
The following code example informs the power manager that a device requires an inrush of current when it starts.
WdfDeviceInitSetPowerInrush(DeviceInit);