IoGetDeviceObjectPointer

I’m trying to get the device object pointer of a device object by
calling IoGetDeviceObjectPointer.
The object name given is same as shown from objdir /device and the
unicode string passed is ok.
But it’s returning an error STATUS_OBJECT_NAME_INVALID.

What can be the problem???

Thanks,
anup

Double check the case of the name you pass in.

“anup-kumar das” <anup-kumar.das> wrote in message
news:xxxxx@windbg…
>
> I’m trying to get the device object pointer of a device object by
> calling IoGetDeviceObjectPointer.
> The object name given is same as shown from objdir /device and the
> unicode string passed is ok.
> But it’s returning an error STATUS_OBJECT_NAME_INVALID.
>
> What can be the problem???
>
> Thanks,
> anup
>
></anup-kumar.das>