// ks.h
PFNKSCONTEXT_DISPATCH PfnkscontextDispatch;
NTSTATUS PfnkscontextDispatch(
[in] PVOID Context,
[in] PIRP Irp
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
A streaming minidriver's KStrContextDispatch routine is called to process IRP_MJ_POWER IRPs.
Context [in]Specifies the user-supplied memory context to be passed as the PowerContext argument to the KsSetPowerDispatch function.
Irp [in]Specifies the power IRP to be processed.
Returns STATUS_SUCCESS.
KStrContextDispatch must not complete the power IRP that is passed in the Irp parameter.
To manipulate the list entry only, KStrContextDispatch can call KsSetPowerDispatch while processing the power IRP. Manipulating other list entries can cause enumeration errors.