Discussion:
IoGetDeviceObjectPointer
(too old to reply)
Mangesh
2007-11-21 10:54:51 UTC
Permalink
Hi

I 'm trying to access vieo device object (e.g. "\\Device\\Video4" )
using IoGetDeviceObjectPointer but it is returning
STATUS_OBJECT_NAME_NOT_FOUND error.why it always returns this error ??

Is there any other way to acess video device object ? pl help me
out ...


RtlInitUnicodeString(&usVideoDriverName, L"\\Device\\Video4");
IoGetDeviceObjectPointer(&usVideoDriverName,STANDARD_RIGHTS_ALL ,pFileObject,ptaretdeviceobject);

Thanks in advance

Mangesh
Peter Wieland [MSFT]
2007-11-21 20:07:57 UTC
Permalink
When are you doing this? Are you sure the video driver has loaded already?

-p
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by Mangesh
Hi
I 'm trying to access vieo device object (e.g. "\\Device\\Video4" )
using IoGetDeviceObjectPointer but it is returning
STATUS_OBJECT_NAME_NOT_FOUND error.why it always returns this error ??
Is there any other way to acess video device object ? pl help me
out ...
RtlInitUnicodeString(&usVideoDriverName, L"\\Device\\Video4");
IoGetDeviceObjectPointer(&usVideoDriverName,STANDARD_RIGHTS_ALL
,pFileObject,ptaretdeviceobject);
Thanks in advance
Mangesh
Mangesh
2007-11-22 04:13:06 UTC
Permalink
Hi Peter

Thank for your reply.

Yes, video driver is already loaded . but still i'm getting
STATUS_OBJECT_NAME_NOT_FOUND error.

pl help me out

Thanks

On Nov 22, 1:07 am, "Peter Wieland [MSFT]"
Post by Peter Wieland [MSFT]
When are you doing this? Are you sure the video driver has loaded already?
-p
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by Mangesh
Hi
I 'm trying to access vieo device object (e.g. "\\Device\\Video4" )
usingIoGetDeviceObjectPointerbut it is returning
STATUS_OBJECT_NAME_NOT_FOUND error.why it always returns this error ??
Is there any other way to acess video device object ? pl help me
out ...
RtlInitUnicodeString(&usVideoDriverName, L"\\Device\\Video4");
IoGetDeviceObjectPointer(&usVideoDriverName,STANDARD_RIGHTS_ALL
,pFileObject,ptaretdeviceobject);
Thanks in advance
Mangesh- Hide quoted text -
- Show quoted text -
Check Abdoul
2007-12-01 14:51:58 UTC
Permalink
Run
!object \Device

in windbg and make sure that \Device\Video4 device exists.

Cheers
Check Abdoul
---------------------
Post by Mangesh
Hi
I 'm trying to access vieo device object (e.g. "\\Device\\Video4" )
using IoGetDeviceObjectPointer but it is returning
STATUS_OBJECT_NAME_NOT_FOUND error.why it always returns this error ??
Is there any other way to acess video device object ? pl help me
out ...
RtlInitUnicodeString(&usVideoDriverName, L"\\Device\\Video4");
IoGetDeviceObjectPointer(&usVideoDriverName,STANDARD_RIGHTS_ALL
,pFileObject,ptaretdeviceobject);
Thanks in advance
Mangesh
Loading...