IoGetDeviceInterfaces trouble... trying again...

I have a kernel mode driver that is trying to send an
IOCTL to the another driver. Driver1.sys sets up a device
interface with IoRegisterDeviceInterface.
It then enables itself as a device of that interface with
IoSetDeviceInterfaceState. The name the OS gives
Driver1.sys is:

??\PCI#VEN_8086&DEV_2445&SUBSYS_76668384&REV_02
#3&61aaa01&0&FD#{f6c58c1f-7d44-4dd1-b240-dee24d44fd91}

So, in the other driver (Driver2.sys), we call IoGetDeviceInterfaces specifying the new interface. For
some reason it comes back with the following name:

??\PCI#VEN_8086&DEV_2445&SUBSYS_76668384&REV_02#3&

which is only part of what we need. It is as if the string
returned from IoGetDeviceInterfaces has been corrupted.
Any ideas as to what might be wrong?

Anthony


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

I believe you are encountering the phenomena of “compatable IDs”. Take a look at the DDK for compatable IDs and also Walter Oney’s book. Walter does a good job of explaining this.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
“Anthony Palomba” wrote in message news:xxxxx@ntdev…
I have a kernel mode driver that is trying to send an
IOCTL to the another driver. Driver1.sys sets up a device
interface with IoRegisterDeviceInterface.
It then enables itself as a device of that interface with
IoSetDeviceInterfaceState. The name the OS gives
Driver1.sys is:

??\PCI#VEN_8086&DEV_2445&SUBSYS_76668384&REV_02
#3&61aaa01&0&FD#{f6c58c1f-7d44-4dd1-b240-dee24d44fd91}

So, in the other driver (Driver2.sys), we call IoGetDeviceInterfaces specifying the new interface. For
some reason it comes back with the following name:

??\PCI#VEN_8086&DEV_2445&SUBSYS_76668384&REV_02#3&

which is only part of what we need. It is as if the string
returned from IoGetDeviceInterfaces has been corrupted.
Any ideas as to what might be wrong?

Anthony

------------------------------------------------------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now