Hello every body.
I am buidling a TDI client driver. I want to know how any other
driver can send data to my TDI client, that is what IRP should I use. Like
TDI clients use IRP_MJ_INTERNAL_DEVICE_CONTROL to communicate with the
transport driver, but for that IRP, its necessary that the it must be from
a higher level driver to a lower level driver. If I take this point in
consideration and use it, how I can bound my other driver to run at higher
level than my TDI client (in the driver stack).
Can any one have some idea (for these two driver inter communication).
Asif
> transport driver, but for that IRP, its necessary that the it must
be from
a higher level driver to a lower level driver.
What do you mean with this phrase?
Just create the IRP_MJ_INTERNAL_DEVICE_CONTROL IRP with IoAllocateIrp,
and use it to call the TDI transport. This works fine.
Max
> transport driver, but for that IRP, its necessary that the it must be
from
a higher level driver to a lower level driver. If I take this point in
[Kumar, Srin] No. It is not necessary to be a higher level driver to
send an INTERNAL_DEVICE_IOCTL or DEVICE_IOCTL.
The difference between INTERNAL_DEVICE_IOCTL and DEVICE_IOCTL is
the later can be used by applications also to communicate with the
driver.
-Srin.
Hi All
What I was wishing to mention was that we can use
IRP_MJ_INTERNAL_DEVICE_CONTROL for communication b/w two drivers, but it
needs that, the comm b/w two driver should be in a way from higher level
driver to lower level driver in the driver stack, e.g TDI clients use this
IRP to communicate with the transport drivers (tcp/ip).
Now what I am needing is that how any other driver can send data to
my TDI client driver, when I am not sure of the place of the other driver
in the driver stack. Can I use above IRP or should I use
IRP_MJ_DEVICE_CONTROL which can be use to comm with user mode
applications. If there can be any other solution, u can mention.
Thanx in advance
Asif
Expose the usual IRP-based IOCTL interface from the upper egde.
Max
----- Original Message -----
From: “Muhammad Asif Khan”
To: “NT Developers Interest List”
Sent: Wednesday, July 09, 2003 10:34 AM
Subject: [ntdev] Re: Inter driver communication
> Hi All
> What I was wishing to mention was that we can use
> IRP_MJ_INTERNAL_DEVICE_CONTROL for communication b/w two drivers,
but it
> needs that, the comm b/w two driver should be in a way from higher
level
> driver to lower level driver in the driver stack, e.g TDI clients
use this
> IRP to communicate with the transport drivers (tcp/ip).
> Now what I am needing is that how any other driver can send
data to
> my TDI client driver, when I am not sure of the place of the other
driver
> in the driver stack. Can I use above IRP or should I use
> IRP_MJ_DEVICE_CONTROL which can be use to comm with user mode
> applications. If there can be any other solution, u can mention.
>
> Thanx in advance
> Asif
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com