> I’m not sure I understand what you mean by B ‘sending’ the internal IOCTLs to A.
B opens up a handle to A and then builds a PIRP, formats it as an internal IOCTL and sends it to A. If B is also a WDF driver, it can create and then open a WDFIOTARGET, allocate a WDFREQUEST, format it (WdfIoTargetFormatRequestForInternalIoctl) and send it. Alternatively you can send it synchronously (WdfIoTargetSendInternalIoctlSynchronously)
Secondly, it sounds like I would still need to do some sort of PNP notification from one driver to the other to let it know that it’s up and ready for device io. Are there any graceful ways that the WDF can help with this?
In driver A you create a device interface (WdfDeviceCreateDeviceInterface), this can be your own custom GUID. In driver B you register for device interface notifications (IoRegisterPlugPlayNotification). This will give you the name to open device A by.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Thursday, July 03, 2008 12:03 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver to driver communication in WDF
The best way to “export” this to define a couple of internal
IOCTLs and have B send them to A.
I’m not sure I understand what you mean by B ‘sending’ the internal IOCTLs to A.
Secondly, it sounds like I would still need to do some sort of PNP notification from one driver to the other to let it know that it’s up and ready for device io. Are there any graceful ways that the WDF can help with this?
I’m still pretty green to driver writing in Windows, but I’m trying to soak as much in as possible. It just doesn’t really sink in until you get your hands dirty. I’ve got lots to learn.
Thanks!
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer