Is there anything preventing you from loading a driver that would then
acquire those resources via the normal route of IRP_MN_START_DEVICE? If your
driver is the only one with them then you own them and can do what you want
them. Sounds like you need a driver with a limited control set that gets the
resources, does it’s testing, releases and unloads.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@woolyloach.com
Sent: Thursday, September 23, 2010 12:20 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Getting hardware address of a PnP/PCI device?
Ok, obviously I need to tell you WHY I need these addresses.
I’m writing a driver to enable HD Audio testing under WinPE. Audio isn’t
officially supported by Microsoft for WinPE, but we still have a
requirement to test it on the factory floor in the PE environment. The
driver isn’t loaded on boot, so I need to load this thing up, find the
addresses, let the user-mode code run the tests, then the system is shut
down.
There isn’t anything running but the PE OS and our diags.
Worst-case, if Windows won’t get me the info I need, I’ll plow through the
PCI config data until I find what I need - but that’s a comparatively slow
process and it also means I’ll have to keep a table of vendor/Device ID/etc.
to know when I’ve hit the thing I want.
If I could get the DDI exposed by hdaudbus.sys I’d be home free, because I
could send VERBs down to the hardware that way, but from my research doing
that would also involve having access to portcls.sys - which I don’t believe
exists in WinPE. I really wonder why hdaudbus.sys exists in WinPE at all,
given the official stance.
I suppose if it’s going to take a hack to get audio hardware diags running
under WinPE, a hack it will be, as little as anyone would like that. :-/
I see there are HAL functions to get this kind of info, but they’re
deprecated. Ugh.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer