Re: IoGetDeviceProperty() failed with property DevicePropertyBusTy

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Eliyas Yakub [MSFT] (eliyasy_at_online.microsoft.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 08:55:10 -0700

Just before your driver calls IoGetDeviceProperty, set a break point on the
following two functions and see which one returns an error:

bp nt!IopOpenRegistryKeyEx

bp nt!IopGetRegistryValue

When you hit the breakpoint of IopOpenRegistryKeyEx, get the stack trace and
dump the third parameter with dS command. That will show the key it's trying
to open.

When you hit the breakpoint of IopGetRegistryValue, dump the second param
with du command. That will show the value it's trying to open.

I'm sure one of these calls is failing. Then inspect the registry to see
what it's looking for is really there.

-- 
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx


Relevant Pages