PFNKSCONTEXT_DISPATCH callback function (ks.h)

A streaming minidriver's KStrContextDispatch routine is called to process IRP_MJ_POWER IRPs.

Syntax

PFNKSCONTEXT_DISPATCH PfnkscontextDispatch;

NTSTATUS PfnkscontextDispatch(
  [in] PVOID Context,
  [in] PIRP Irp
)
{...}

Parameters

[in] Context

Specifies the user-supplied memory context to be passed as the PowerContext argument to the KsSetPowerDispatch function.

[in] Irp

Specifies the power IRP to be processed.

Return value

Returns STATUS_SUCCESS.

Remarks

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.

Requirements

Requirement Value
Target Platform Desktop
Header ks.h (include Ks.h)

See also

KsSetPowerDispatch