Discussion:
IoAttachDevice Failure - STATUS_NO_SUCH_DEVICE
(too old to reply)
a***@gmail.com
2006-09-17 09:14:31 UTC
Permalink
I have a TDI filtre driver and am trying to attach to \\Device\\Tcp.
The first time i load this driver i create a device object named
"abcd01" am able to attach to \\Device\\Tcp. Now if i load the same
driver with another name and create a device object named "newabcd01"
the IoAttachDevice fails with STATUS_NO_SUCH_DEVICE.
Could anyone please provide an insight as to why does IoAttachDevice
fails the second time.

Thanks a lot in advance.
a***@gmail.com
2006-09-18 11:38:27 UTC
Permalink
Hi everyone,

I found the problem.

The Problem : I had two drivers , A & B. A tried to attach to
\\Device\\Tcp using IoAttachDevice. After sucessfully attaching to tcp
i tried to attach my second driver B to \\Device\\Tcp. But B failed to
attach and returned error STATUS_NO_SUCH_DEVICE.

Solution : When i was attaching Driver A i first created a device
object. But i never reset the value of flags corresponding to bit
DO_DEVICE_INITIALIZING. So i as missing (*fltobj)->Flags &=
~DO_DEVICE_INITIALIZING; Due to missing of this line the device created
by driver A was working but was in initialization state and further
requests to attach on \\Device\\Tcp failed.

Thanks
Post by a***@gmail.com
I have a TDI filtre driver and am trying to attach to \\Device\\Tcp.
The first time i load this driver i create a device object named
"abcd01" am able to attach to \\Device\\Tcp. Now if i load the same
driver with another name and create a device object named "newabcd01"
the IoAttachDevice fails with STATUS_NO_SUCH_DEVICE.
Could anyone please provide an insight as to why does IoAttachDevice
fails the second time.
Thanks a lot in advance.
Loading...