- How to put real device object into control object's device extensi
- Posted by Robert on June 1st, 2005
Hi,
I have win32 app and PS/2 keyboard filter driver. I can successfully
pass IOCTL from the app to the driver. I can see that IOCTL inside
my IRP_MJ_DEVICE_CONTROL function and can also set global flags.
I followed the microsoft article "How To Send IOCTLs to a Filter Driver"
using the following code in my AddDevice.
status = IoCreateDevice( Driver,
sizeof(DEVICE_EXTENSION),
&ntDeviceName,
FILE_DEVICE_UNKNOWN,
FILE_DEVICE_SECURE_OPEN,
FALSE,
&ControlDeviceObject);
In routine IRP_MJ_DEVICE_CONTROL the device object I get is not the real one
but my control object. I need to call another routine with my real device
object.
How can i do it? How can i put real device object into control object's
device extension ?
Will appreciate your kind suggestions.Thanks.
-Robert
- Posted by Eliyas Yakub [MSFT] on June 14th, 2005
Take a look at the src\general\toaster\filter sample in the Server 2003 SP1
DDK. It shows how to do this.
--
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/driver/default.mspx
http://www.microsoft.com/whdc/driver/kernel/KB-drv.mspx
- Access for a device object (Drivers) by garnsworthy
- CreateFile in user mode to open Device Control Object (Drivers) by finecats
- How to get the lowest device object (Drivers) by Xieshumin
- a device object's type (Drivers) by shahar
- NTKERN.VXD Device loaders for this device could not load the device drivers (code 2.) (Modems) by meirman

