Enumerating ACTIVE devices?

Hplus Stationery
I want to enumerate devices that are active in the system. When I go
trundling through the registry, I find an entry for every sound card
that’s ever been in the box. How can I filter out the ones that are
actually installed, and whether they’re active or not, a la Device
Manager? (Ideally, I’d like to do this from user space)

I looked in the Win2k and Win98 DDKs, but couldn’t find anything that
seemed like what I need – although that may very easily be because I
just didn’t know exactly where to look…

Cheers,

/ h+


“Oh, here we go. ‘Poor me, my father never gave me
what I wanted for my birthday, boo hoo, my daddy’s
the Dark Lord of the Sith… waahhh wahhh!’”
– Aussie Beer Ninja

Hplus StationeryCheck out the SetupDiXxx functions.

…Chris

“WinDbg” wrote in message news:xxxxx@windbg…

I want to enumerate devices that are active in the system. When I go
trundling through the registry, I find an entry for every sound card
that’s ever been in the box. How can I filter out the ones that are
actually installed, and whether they’re active or not, a la Device
Manager? (Ideally, I’d like to do this from user space)

I looked in the Win2k and Win98 DDKs, but couldn’t find anything that
seemed like what I need – although that may very easily be because I
just didn’t know exactly where to look…

Cheers,

/ h+


“Oh, here we go. ‘Poor me, my father never gave me
what I wanted for my birthday, boo hoo, my daddy’s
the Dark Lord of the Sith… waahhh wahhh!’”
– Aussie Beer Ninja

Hplus StationeryUse SetupAPI and CfgMgr32 API instead of walking down the
registry by yourself. The DevCon Sample in the Windows XP DDK gives a good
example on how to use these API’s.
Look for SetupDi… and Cm… routines in the DDK help.

Regards
Volker

P.S.: It won’t seen with favour to post html to news groups and public
mailing lists.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of WinDbg
Sent: Friday, August 16, 2002 7:11 PM
To: Kernel Debugging Interest List
Subject: [windbg] Enumerating ACTIVE devices?

I want to enumerate devices that are active in the system. When I go
trundling through the registry, I find an entry for every sound card
that’s ever been in the box. How can I filter out the ones that are
actually installed, and whether they’re active or not, a la Device
Manager? (Ideally, I’d like to do this from user space)

I looked in the Win2k and Win98 DDKs, but couldn’t find anything that
seemed like what I need – although that may very easily be because I
just didn’t know exactly where to look…

Cheers,

/ h+


“Oh, here we go. ‘Poor me, my father never gave me
what I wanted for my birthday, boo hoo, my daddy’s
the Dark Lord of the Sith… waahhh wahhh!’”
– Aussie Beer Ninja


You are currently subscribed to windbg as: xxxxx@epost.de
To unsubscribe send a blank email to %%email.unsub%%