// ks.h
KSDDKAPI NTSTATUS KsDispatchInvalidDeviceRequest(
[in] PDEVICE_OBJECT DeviceObject,
[in] PIRP Irp
);
View the official Windows Driver Kit DDI reference
No description available.
The KsDispatchInvalidDeviceRequest function is used in KSDISPATCH_TABLE entries that are not handled and that need to return STATUS_INVALID_DEVICE_REQUEST.
DeviceObject
[in]Specifies the device object associated with the IRP.
Irp
[in]Specifies the IRP that is not being handled.
The KsDispatchInvalidDeviceRequest function returns STATUS_INVALID_DEVICE_REQUEST and completes the IRP.
The KsDispatchInvalidDeviceRequest function is needed because the dispatch table for an opened instance of a device may not handle a specific major function that another opened instance needs to handle. Therefore, the function pointer in the driver object must always point to a function that calls a dispatch table entry.
KsDispatchFastIoDeviceControlFailure