TdiDispatchInternalDeviceControl

TDI_STATUS
TdiDispatchInternalDeviceControl (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);

TdiDispatchInternalDeviceControl is a TDI driver function that provides TDI driver control for kernel-mode client requests other than those for opening and closing objects. When preparing a request, the client first issues a request message and then either calls a library build macro to format an IRP or uses an IRP passed in from a higher network layer. It places the request message in the minor function code member of the IRP and uses IRP_MJ_INTERNAL_DEVICE_CONTROL as the major function code. When the IRP is ready, the client calls IoCallDriver to deliver the request to TdiDispatchInternalDeviceControl. TdiDispatchInternalDeviceControl then forwards the client request to the appropriate internal driver function for processing.

Parameters

DeviceObject

Points to the device object that describes the TDI driver.

Irp

Points to the IRP.

Return Value

TdiDispatchInternalDeviceControl can return the following status codes:

Return values from other functions this function calls:

STATUS_INVALID_DEVICE_REQUEST
STATUS_INVALID_DEVICE_STATE
STATUS_PENDING
STATUS_SUCCESS

For more information about status codes, see Part II, Chapter 10.

See Also

IoCallDriver