AVStrMiniDeviceSetPower routine

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

Syntax


PFNKSDEVICESETPOWER AVStrMiniDeviceSetPower;

void AVStrMiniDeviceSetPower(
  _In_  PKSDEVICE Device,
  _In_  PIRP Irp,
  _In_  DEVICE_POWER_STATE To,
  _In_  DEVICE_POWER_STATE From
)
{ ... }

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.

Return value

None

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.

Requirements

Version

Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.

Header

Ks.h (include Ks.h)

See also

KSDEVICE_DISPATCH
IRP_MN_SET_POWER

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft