PFNKSPINPOWER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

PFNKSPINPOWER Pfnkspinpower;

void Pfnkspinpower(
  [in] PKSPIN Pin,
  [in] DEVICE_POWER_STATE State
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

An AVStream minidriver's AVStrMiniPinPower routine is called for pin-centric pins when the device is waking or entering a sleep state.

Parameters

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.

Remarks

[!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.

See also

KsFilterRegisterPowerCallbacks

KsPinRegisterPowerCallbacks