Additional Device

Hi everyone,

I have as part of my upper filter created an another device based on the
IOCTL example. I noticed when I run the IOCreateDevice in DriverEntry,
it creates a device and I can connect to it. But when I run that
function in AddDevice(), (and the rest required to create the additional
device) I get the same results (Success) but I can’t connect to it.

Does anyone know why something like this returns success yet the same
exe can’t connect?

Did you clear DO_DEVICE_INITIALIZING before exiting AddDevice? You have to
do this to make it work. Note: it is cleared automatically on exit from
DriverEntry, but no where else.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

“NCH Obble Smith” wrote in message
news:xxxxx@ntdev…
> Hi everyone,
>
> I have as part of my upper filter created an another device based on the
> IOCTL example. I noticed when I run the IOCreateDevice in DriverEntry, it
> creates a device and I can connect to it. But when I run that function in
> AddDevice(), (and the rest required to create the additional device) I get
> the same results (Success) but I can’t connect to it.
>
> Does anyone know why something like this returns success yet the same exe
> can’t connect?
>
>
>
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4574 (20091104)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

Information from ESET NOD32 Antivirus, version of virus signature database 4574 (20091104)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Good point, I didn’t know about that, but it make sense.

:slight_smile: yaaaa, I got it working (after 10 mins of trying to clear the
flag on the DriverObject instead of the DeviceObject :-p),

Thank you Don Burn.

Cheers
Obble.

On 5/11/2009 12:29 PM, Don Burn wrote:

Did you clear DO_DEVICE_INITIALIZING before exiting AddDevice? You have to
do this to make it work. Note: it is cleared automatically on exit from
DriverEntry, but no where else.