PFNKSDEVICESETPOWER - NtDoc

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

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ks-pfnksdevicesetpower)

PFNKSDEVICESETPOWER callback function

Description

AVStream calls a minidriver's AVStrMiniDeviceSetPower routine when it receives an IRP_MN_SET_POWER.

Parameters

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.

Remarks

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.

See also

IRP_MN_SET_POWER

KSDEVICE_DISPATCH