KsDispatchIrp routine

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

Syntax


NTSTATUS KsDispatchIrp(
  _In_ PDEVICE_OBJECT DeviceObject,
  _In_ PIRP           Irp
);

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.

Requirements

Target platform

Universal

Header

Ks.h (include Ks.h)

Library

Ks.lib

See also

KsSetMajorFunctionHandler

 

 

Send comments about this topic to Microsoft

Show: