Listing Hardware like in Device Manager...

Just starting out? Need help? Post your questions and find answers here.
Kendrel
User
User
Posts: 58
Joined: Fri Apr 25, 2003 7:00 pm

Listing Hardware like in Device Manager...

Post by Kendrel »

I'll need to list up all Hardware like the Device Manager is doing it...
Iam quite sure these are stored in the registry, but i havent found the right sections yet...

if you have any example or something on this one, please help me...
thx in advance!
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

in registry HKEY_LOCAL_MACHINE\System\CurrentControlset\Services

Here you find all services , the one with Type=1 are hardware drivers, other are normal services
Kendrel
User
User
Posts: 58
Joined: Fri Apr 25, 2003 7:00 pm

errmmm...

Post by Kendrel »

i had a look, and there are some of the informations i would need but i couldnt find my gfx card for example... i just need a simple list like in the device manager that comes with windows... and you are sure that these are the values it uses?
Kendrel
User
User
Posts: 58
Joined: Fri Apr 25, 2003 7:00 pm

Okay...

Post by Kendrel »

Ive found now what i was looking for...

hklm\system\currentcontrolset\control\class\

there are the infos i need... on xp atleast :D

thx for your help berikco ! :D
Kendrel
User
User
Posts: 58
Joined: Fri Apr 25, 2003 7:00 pm

ummm

Post by Kendrel »

ohwell... i have to correct myself... the infos i need are spread everywhere in the registry... i thought it wouldnt be such a pain to list the shit what the device manager does... grrr
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

All services are in HKEY_LOCAL_MACHINE\System\CurrentControlset\Services, also display driver here.

but its not a nice list you can easely load, i agree. :wink:
Kendrel
User
User
Posts: 58
Joined: Fri Apr 25, 2003 7:00 pm

hmmm

Post by Kendrel »

well yes, but i dont see all the stuff there i would need...

ill stick to WMI now... i cannot use it with purebasic, so ill make that one with vb then... its very easy with WMI, and iam a little sad that you cannot use such things with PB... whatever... thx
Post Reply