Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 2.54 KB

nc-ks-pfnksdevicesetpower.md

File metadata and controls

87 lines (60 loc) · 2.54 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:ks.PFNKSDEVICESETPOWER
PFNKSDEVICESETPOWER (ks.h)
AVStream calls a minidriver's AVStrMiniDeviceSetPower routine when it receives an IRP_MN_SET_POWER.
stream\avstrminidevicesetpower.htm
stream
04/23/2018
PFNKSDEVICESETPOWER callback function
AVStrMiniDeviceSetPower, AVStrMiniDeviceSetPower routine [Streaming Media Devices], PFNKSDEVICESETPOWER, avstclbk_8b833d83-a199-44a9-97b8-c4afc624d6d5.xml, ks/AVStrMiniDeviceSetPower, stream.avstrminidevicesetpower
ks.h
Ks.h
Desktop
Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Windows
PFNKSDEVICESETPOWER
ks/PFNKSDEVICESETPOWER
APIRef
kbSyntax
UserDefined
ks.h
PFNKSDEVICESETPOWER

PFNKSDEVICESETPOWER callback function

-description

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

-parameters

-param Device [in]

Pointer to the KSDEVICE structure that received the IRP_MN_SET_POWER.

-param Irp [in]

The IRP_MN_SET_POWER issued by Device.

-param To [in]

The target device power state.

-param 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