Tech Support > Microsoft Windows > Drivers > how two drivers can communicate
how two drivers can communicate
Posted by Mk on May 30th, 2006


Dear all

iam developing a driver for windows XP. THe driver pckg consist of 2
drivers one is a static driver which loads during boot up even without any
device one (functional driver) loads when u connect the USB device. Now the
functional driver should communicate with the static driver two exchange few
pointer data. For this iam using IOgetdeviceobjectpointer and getting the
handle of the static driver and sending a IOCTL. Now the issue is a windows
service acquires the handle of my static driver during boot up time because
of this my call to IOgetdeviceobjectpointer fails. If i disable the service i
get the handle without issue, I would like to know whether there are any way
to open two handles to the same driver or any other way to communicate with
the server driver without stopping the windows service. Pls provide info

Posted by Doron Holan [MS] on May 30th, 2006


is there a reason you created an exclusive device object? you should read
my blog entry on exclusive access devices

http://blogs.msdn.com/doronh/archive...25/607708.aspx

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Mk" <Mk@discussions.microsoft.com> wrote in message
news:AE76909D-03EA-4B46-9370-7C2F05C35142@microsoft.com...


Posted by Mk on May 30th, 2006


hi Holan

Thanx for the reply. No iam not creating any exclusive device
object. When calling IOCreatedevice iam creating a named object with default
parameters. From functional driver iam trying to get the pointer of that
device object I dont need exclusive access i just need a handle of that
driver to send IOCTL.

"Doron Holan [MS]" wrote:

Posted by Mk on May 30th, 2006


I have not set the exclusive flag in the IOCreate device func. In my
createclose function also i tried commenting out my code that fails mutiple
open calls but still iam not able to accquire the handle.

"Doron Holan [MS]" wrote:

Posted by Doron Holan [MS] on May 30th, 2006


are you getting a 2nd call to IRP_MJ_CREATE? are you sure that the modified
driver you created is loaded and not the old driver with the broken
behavior?

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Mk" <Mk@discussions.microsoft.com> wrote in message
news:4D0FC2C7-C03A-46AD-BDFA-947F3CDD3F29@microsoft.com...



Similar Posts