I'm trying to open \Device\Ide\PciIdeX using IoGetDeviceObjectPointer. It
returns STATUS_INVALID_DEVICE_REQUEST. Anyone know why and how I can get it
to work?

Thanks,
Josh

Re: Why does IoGetDeviceObjectPointer returns STATUS_INVALID_DEVICE_REQUEST opening \Device\Ide\PciIdeX? by Calvin

Calvin
Fri Oct 24 12:35:35 CDT 2003

"Josh Dahlby" <n/a> wrote in message
news:OP64E8kmDHA.688@TK2MSFTNGP10.phx.gbl...
> I'm trying to open \Device\Ide\PciIdeX using IoGetDeviceObjectPointer. It
> returns STATUS_INVALID_DEVICE_REQUEST. Anyone know why and how I can get
it
> to work?

The target device rejects an IRP_MJ_CREATE, since its
MajorFunction[IRP_MJ_CREATE]=nt!IopInvalidDeviceRequest.
and there's not device on top of it supports IRP_MJ_CREATE.

You may attach a upper filter sitting on top of \Device\Ide\PciIdeX and get
the resources from IRP_MN_START_DEVICE.

Good luck,
--
Calvin Guan, Software Developer cguan@nospam.ati.com
SW2D-Radeon NT Core Drivers
ATI Technologies Inc.
1 Commerce Valley Drive East
Markham, Ontario, Canada L3T 7X6
Tel: (905) 882-2600 Ext. 8654
Find a driver: http://www.ati.com/support/driver.html


>
> Thanks,
> Josh
>
>



Re: Why does IoGetDeviceObjectPointer returns STATUS_INVALID_DEVICE_REQUEST opening \Device\Ide\PciIdeX? by Josh

Josh
Fri Oct 24 13:17:50 CDT 2003

Alright, thanks Calvin. I had written an upper filter and used that to
figure out which object I really needed. But then ran in the problem. I
suppose I can write an upper filter for this piece of it.

Thanks,
Josh

"Calvin Guan" <ndisnewREMOVE_THE_CAPITALS@yahoo.com> wrote in message
news:O0pV%23UlmDHA.1072@TK2MSFTNGP09.phx.gbl...
> "Josh Dahlby" <n/a> wrote in message
> news:OP64E8kmDHA.688@TK2MSFTNGP10.phx.gbl...
> > I'm trying to open \Device\Ide\PciIdeX using IoGetDeviceObjectPointer.
It
> > returns STATUS_INVALID_DEVICE_REQUEST. Anyone know why and how I can
get
> it
> > to work?
>
> The target device rejects an IRP_MJ_CREATE, since its
> MajorFunction[IRP_MJ_CREATE]=nt!IopInvalidDeviceRequest.
> and there's not device on top of it supports IRP_MJ_CREATE.
>
> You may attach a upper filter sitting on top of \Device\Ide\PciIdeX and
get
> the resources from IRP_MN_START_DEVICE.
>
> Good luck,
> --
> Calvin Guan, Software Developer cguan@nospam.ati.com
> SW2D-Radeon NT Core Drivers
> ATI Technologies Inc.
> 1 Commerce Valley Drive East
> Markham, Ontario, Canada L3T 7X6
> Tel: (905) 882-2600 Ext. 8654
> Find a driver: http://www.ati.com/support/driver.html
>
>
> >
> > Thanks,
> > Josh
> >
> >
>
>