Expand Minimize

KsDispatchInvalidDeviceRequest function

The KsDispatchInvalidDeviceRequest function is used in KSDISPATCH_TABLE entries that are not handled and that need to return STATUS_INVALID_DEVICE_REQUEST.

Syntax


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

Parameters

DeviceObject [in]

Specifies the device object associated with the IRP.

Irp [in]

Specifies the IRP that is not being handled.

Return value

The KsDispatchInvalidDeviceRequest function returns STATUS_INVALID_DEVICE_REQUEST and completes the IRP.

Remarks

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.

Requirements

Target platform

Universal

Header

Ks.h (include Ks.h)

Library

Ks.lib

See also

KsDispatchFastIoDeviceControlFailure
KsDispatchFastWriteFailure
KsDispatchFastReadFailure

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft