Bewerken

Delen via


KsDispatchIrp function (ks.h)

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

Syntax

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

Parameters

[in] DeviceObject

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

[in] Irp

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.

Requirements

Requirement Value
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib

See also

KsSetMajorFunctionHandler