IoGetDeviceObjectPointer Fail in Windows XP 64bit

Hi all

When I run the following code in WinXP 64bit version . I got
the status == STATUS_OBJECT_NAME_NOT_FOUND

And I can’t run DevTree and DevView in winxp 64bit. I can’t see the
device name in WInOBJ.

But they all work well in WinXP 32bit version.

Does the Embedded Controller driver in WinXP 64bit have a device name??

Does anyone can help me??

RtlInitUnicodeString(&ntDeviceName, L"\Device\ACPIEC");

status =
IoGetDeviceObjectPointer(&ntDeviceName,FILE_ALL_ACCESS,&pFileObject,&pDe
viceObject);

thank you

KenKC

================================================================================================================================================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc. If you are not the intended recipient of this message, please notify the sender and destroy/delete the message. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.

Are you sure that the driver acpiec has loaded? Find the device in device manager and see what driver(s) are assigned to it.

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@compal.com
Sent: Tuesday, March 14, 2006 7:00 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] IoGetDeviceObjectPointer Fail in Windows XP 64bit

Hi all
??? When I run the following code in WinXP 64bit version . I got the status == STATUS_OBJECT_NAME_NOT_FOUND
And I can’t run DevTree and DevView in winxp 64bit. I can’t see the device name in WInOBJ.
But they all work well in WinXP 32bit version.
Does the Embedded Controller driver in WinXP 64bit have a device name??
Does anyone can help me??

RtlInitUnicodeString(&ntDeviceName, L"\Device\ACPIEC");?
status = IoGetDeviceObjectPointer(&ntDeviceName,FILE_ALL_ACCESS,&pFileObject,&pDeviceObject);

thank you
KenKC

================================================================================================================================================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc. If you are not the intended recipient of this message, please notify the sender and destroy/delete the message. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Yes, I can see acpiec.sys is assigned to embedded controller in device manager.
And I’m sure it already loaded.
When I run “sc query type= driver” , it shows
SERVICE_NAME: ACPIEC
DISPLAY_NAME: Microsoft Embedded Controller Driver
TYPE : 1 KERNEL_DRIVER
STATE : 4 RUNNING (STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, March 15, 2006 2:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] IoGetDeviceObjectPointer Fail in Windows XP 64bit

Are you sure that the driver acpiec has loaded? Find the device in device manager and see what driver(s) are assigned to it.

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@compal.com
Sent: Tuesday, March 14, 2006 7:00 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] IoGetDeviceObjectPointer Fail in Windows XP 64bit

Hi all
??? When I run the following code in WinXP 64bit version . I got the status == STATUS_OBJECT_NAME_NOT_FOUND
And I can’t run DevTree and DevView in winxp 64bit. I can’t see the device name in WInOBJ.
But they all work well in WinXP 32bit version.
Does the Embedded Controller driver in WinXP 64bit have a device name??
Does anyone can help me??

RtlInitUnicodeString(&ntDeviceName, L"\Device\ACPIEC");?
status = IoGetDeviceObjectPointer(&ntDeviceName,FILE_ALL_ACCESS,&pFileObject,&pDeviceObject);

thank you
KenKC

================================================================================================================================================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc. If you are not the intended recipient of this message, please notify the sender and destroy/delete the message. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Break into kd/windbg and use the !object command to find the driver, and from there use !drvobj to list the devices it created. Then, you can execute !devobj on each device to see its name.

As an example, I did this for the acpi.sys driver

0: kd> !object \driver\acpiec
Object driver\acpiec not found
0: kd> !object \driver\acpi
Object: 822b48b0 Type: (822f7040) Driver
ObjectHeader: 822b4898
HandleCount: 0 PointerCount: 27
Directory Object: e13c9458 Name: ACPI
0: kd> !drvobj 822b48b0
Driver object (822b48b0) is for:
\Driver\ACPI
Driver Extension List: (id , addr)

Device Object list:
8228f030 822921b8 822922d0 822923e8
82292500 82292618 82292730 82292848
82292960 82292a78 82292b90 82292ca8
822f0340 822f0458 822f0570 822f1570
822f2198 822b71b0 822f8ef0 822b4168
822dc1f8 822b1448 822b49c8 822b11a0
822b4510

0: kd> !devobj 8228f030
Device object (8228f030) is for:
00000053 \Driver\ACPI DriverObject 822b48b0
Current Irp 00000000 RefCount 0 Type 00000032 Flags 00001048
Dacl e13fa02c DevExt 822dcd38 DevObjExt 8228f0e8 DevNode 8228f168
ExtensionFlags (0x80000010) DOE_START_PENDING, DOE_DESIGNATED_FDO
Device queue is not busy.

In this case, the device’s name is “00000053”.

Alternative, you can execute “!object \Device” and see the entire device object tree and try to find any related objects.

D

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@compal.com
Sent: Tuesday, March 14, 2006 11:57 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] IoGetDeviceObjectPointer Fail in Windows XP 64bit

Yes, I can see acpiec.sys is assigned to embedded controller in device manager.
And I’m sure it already loaded.
When I run “sc query type= driver” , it shows
SERVICE_NAME: ACPIEC
DISPLAY_NAME: Microsoft Embedded Controller Driver
TYPE : 1 KERNEL_DRIVER
STATE : 4 RUNNING (STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, March 15, 2006 2:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] IoGetDeviceObjectPointer Fail in Windows XP 64bit

Are you sure that the driver acpiec has loaded? Find the device in device manager and see what driver(s) are assigned to it.

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@compal.com
Sent: Tuesday, March 14, 2006 7:00 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] IoGetDeviceObjectPointer Fail in Windows XP 64bit

Hi all
??? When I run the following code in WinXP 64bit version . I got the status == STATUS_OBJECT_NAME_NOT_FOUND
And I can’t run DevTree and DevView in winxp 64bit. I can’t see the device name in WInOBJ.
But they all work well in WinXP 32bit version.
Does the Embedded Controller driver in WinXP 64bit have a device name??
Does anyone can help me??

RtlInitUnicodeString(&ntDeviceName, L"\Device\ACPIEC");?
status = IoGetDeviceObjectPointer(&ntDeviceName,FILE_ALL_ACCESS,&pFileObject,&pDeviceObject);

thank you
KenKC

================================================================================================================================================================
This message may contain information which is private, privileged or confidential of Compal Electronics, Inc. If you are not the intended recipient of this message, please notify the sender and destroy/delete the message. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer