KsDispatchIrp - NtDoc

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

KSDDKAPI NTSTATUS KsDispatchIrp(
  [in] PDEVICE_OBJECT DeviceObject,
  [in] PIRP           Irp
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksdispatchirp)

KsDispatchIrp function

Description

KsDispatchIrp calls a dispatch routine corresponding to the function code of the specified IRP. KsDispatchIrp then returns the status code from this call.

Parameters

DeviceObject [in]

Specifies a pointer to the DEVICE_OBJECT to which the specific file object belongs.

Irp [in]

Contains the IRP for which to call a dispatch routine.

Return value

Returns the status code returned from the dispatch routine.

Remarks

A KSDISPATCH_TABLE can be contained in the stack location's file object's FsContext member. KsDispatchIrp calls the dispatch routine listed in this dispatch table for that major code.

See also

KsSetMajorFunctionHandler