I’m trying to open driver’s private database file located at
L"\SystemRoot\hwinfo.db" with ZwOpenFile . The driver is upper pci bus
filter loaded at boot stage. I’m calling ZwOpenFile from AddDevice. The
status returned is STATUS_OBJECT_PATH_NOT_FOUND. I suspect this is
normal behaviour for the ZwOpenFile when called from boot driver. Is
there a way to make it work? Perhaps moving hwinfo.db to some other place?
Robert Milharcic
It may be because the system volume is not mounted yet. Check this thread for a solution to your problem
http://www.osronline.com/showThread.cfm?link=69255
Regards,
Bogdan
“Robert M.” wrote:
I’m trying to open driver’s private database file located at
L"\SystemRoot\hwinfo.db" with ZwOpenFile . The driver is upper pci bus
filter loaded at boot stage. I’m calling ZwOpenFile from AddDevice. The
status returned is STATUS_OBJECT_PATH_NOT_FOUND. I suspect this is
normal behaviour for the ZwOpenFile when called from boot driver. Is
there a way to make it work? Perhaps moving hwinfo.db to some other place?
Robert Milharcic
—
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
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
You cannot open any file from Boot driver init paths, use REG_BINARY value
in SYSTEM registry instead.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Robert M.”
To: “Windows System Software Devs Interest List”
Sent: Friday, March 31, 2006 2:55 PM
Subject: [ntdev] ZwOpenFile - boot driver
>
> I’m trying to open driver’s private database file located at
> L"\SystemRoot\hwinfo.db" with ZwOpenFile . The driver is upper pci bus
> filter loaded at boot stage. I’m calling ZwOpenFile from AddDevice. The
> status returned is STATUS_OBJECT_PATH_NOT_FOUND. I suspect this is
> normal behaviour for the ZwOpenFile when called from boot driver. Is
> there a way to make it work? Perhaps moving hwinfo.db to some other place?
>
>
> Robert Milharcic
>
> —
> 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