KsCompletePendingRequest function (ks.h)

The KsCompletePendingRequest function is used to complete an I/O request in response to which an AVStream dispatch function previously returned STATUS_PENDING.

Syntax

void KsCompletePendingRequest(
  [in] PIRP Irp
);

Parameters

[in] Irp

A pointer to the IRP structure that must be completed; this is passed in the dispatch function that returned a STATUS_PENDING.

Return value

None

Remarks

If the dispatch function in question does not pass an IRP, it cannot return STATUS_PENDING. Minidrivers should set IRP.IoStatus.Status before calling this function.

KsCompletePendingRequest can be used for PnP dispatch functions in the device dispatch table or filter creation and closure requests. Dispatch functions that return STATUS_PENDING must call this function when they complete the request.

Requirements

Requirement Value
Minimum supported client Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib
IRQL <=DISPATCH_LEVEL

See also

IO_STATUS_BLOCK

IRP

KSDEVICE_DISPATCH

KSFILTER_DISPATCH