// ks.h
PFNKSDEVICESETPOWER Pfnksdevicesetpower;
void Pfnksdevicesetpower(
[in] PKSDEVICE Device,
[in] PIRP Irp,
[in] DEVICE_POWER_STATE To,
[in] DEVICE_POWER_STATE From
)
{...}
View the official Windows Driver Kit DDI reference
No description available.
AVStream calls a minidriver's AVStrMiniDeviceSetPower routine when it receives an IRP_MN_SET_POWER.
Device
[in]Pointer to the KSDEVICE structure that received the IRP_MN_SET_POWER.
Irp
[in]The IRP_MN_SET_POWER issued by Device.
To
[in]The target device power state.
From
[in]The current device power state.
If a driver has registered its device for idle detection, the power manager sends an IRP_MN_SET_POWER to change the power state of an idle device.
The minidriver specifies this routine's address in the SetPower member of its KSDEVICE_DISPATCH structure.
This routine is optional.