IoGetDeviceObjectPointer function returns Access denied in XP

Hi

Am trying to get Device Object using IoGetDeviceObjectPointer function,
its returning Access denied in XP but same code is working fine with
Win2K.
please let me know the reasons why its failing in XP why not in Win2K.

thanks
Hems

“Hems” wrote in message news:xxxxx@ntdev…
>
> Am trying to get Device Object using IoGetDeviceObjectPointer function,
> its returning Access denied in XP but same code is working fine with
> Win2K.
>

Remember: All IoGetDeviceObjectPointer does is issue an “open”
(IRP_MJ_CREATE) to the device object you specify.

Lots of security was tightened up in XP, XP SP1, and Win2K3. Check the
protection on the device object using a utility such as OSR’s GUI Obj Dir
(which you can download for free at
http://www.osronline.com/article.cfm?id=42) .

Peter
OSR