How to transfer and share data between tow device drivers ?

Hi,all
I have two device drivers named test1.sys and test2.sys under Windows 2000. Now I want to transfer(share) data between two drivers without any Application. How can I do this?

Thanks for you time.
Thanks for you help.

Crasher Guo
xxxxx@sinfors.com.cn

Open the documentation and look for IoGetDeviceObject, IoAttachDeviceXxxx,
and IoCallDriver, and then read. Then do a search on the samples and see how
it has been done.


Gary G. Little
Seagate Technologies, LLC
xxxxx@seagate.com

“Crasher Guo” wrote in message news:xxxxx@ntdev…
>
> Hi,all
> I have two device drivers named test1.sys and test2.sys under Windows
2000. Now I want to transfer(share) data between two drivers without any
Application. How can I do this?
>
> Thanks for you time.
> Thanks for you help.
>
> Crasher Guo
> xxxxx@sinfors.com.cn
>
>
>
>
>
>

There are many ways:

Try this: Create an IOCTL in one driver that receives a pointer from the
other driver; ExAllocatePool() memory will work.

Jamey Kirby, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of Crasher Guo
Sent: Thursday, August 14, 2003 12:00 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] How to transfer and share data between tow device drivers ?

Hi,all
I have two device drivers named test1.sys and test2.sys under Windows 2000.
Now I want to transfer(share) data between two drivers without any
Application. How can I do this?

Thanks for you time.
Thanks for you help.

Crasher Guo
xxxxx@sinfors.com.cn


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

There is usually no need to attach yourself to stack unless you want to
filter all of the IO coming to the device you are opening. Also if you
do this, remember that you can only attach your device object to 1 stack
(so if you are in a pnp stack, you have used up that one attachment).

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Thursday, August 14, 2003 6:30 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: How to transfer and share data between tow device
drivers ?

Open the documentation and look for IoGetDeviceObject,
IoAttachDeviceXxxx,
and IoCallDriver, and then read. Then do a search on the samples and see
how
it has been done.


Gary G. Little
Seagate Technologies, LLC
xxxxx@seagate.com

“Crasher Guo” wrote in message news:xxxxx@ntdev…
>
> Hi,all
> I have two device drivers named test1.sys and test2.sys under Windows
2000. Now I want to transfer(share) data between two drivers without any
Application. How can I do this?
>
> Thanks for you time.
> Thanks for you help.
>
> Crasher Guo
> xxxxx@sinfors.com.cn
>
>
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com