// ks.h
PFNKSPINPOWER Pfnkspinpower;
void Pfnkspinpower(
[in] PKSPIN Pin,
[in] DEVICE_POWER_STATE State
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
An AVStream minidriver's AVStrMiniPinPower routine is called for pin-centric pins when the device is waking or entering a sleep state.
Pin [in]Points to a pin-centric KSPIN structure for which to register the callback.
State [in]Specifies the device power state being requested. Set this parameter to one of the following DEVICE_POWER_STATE enumeration values: PowerDeviceD0, PowerDeviceD1, PowerDeviceD2, or PowerDeviceD3.
[!WARNING] Do not attempt to obtain the filter control mutex from within either the Sleep or Wake callback. Doing so induces a risk of deadlock. For more information about mutexes, see Mutexes in AVStream.
The minidriver specifies an address for routines of this type in the Sleep and/or Wake parameters of the KsPinRegisterPowerCallbacks routine.
KsFilterRegisterPowerCallbacks