?
Solved

Retrieve information about Video Adapter

Posted on 2003-03-11
7
Medium Priority
?
240 Views
Last Modified: 2013-12-03
I just want to know how can I retrieve information such as the name of the primary video adapter, and any other hardware like this. (there aren't any API, are there?)
0
Comment
Question by:patroclus02
  • 4
  • 3
7 Comments
 

Expert Comment

by:jenguysmiley
ID: 8114869
you might want to check out a win32 function EnumDisplayDevices

see info at msdn:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_2303.asp
0
 

Author Comment

by:patroclus02
ID: 8115337
Yep, thank you. :)
Don't you know how to detect any other device such as sound card, or hard disk or whatever? (maybe a clue?)
0
[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

 

Expert Comment

by:jenguysmiley
ID: 8115687
Ok I don't know any APIs for arbitrary device info but you can get the information from the registry

have a look at HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet
0
 

Author Comment

by:patroclus02
ID: 8120395
Could you give me any page or reference??
(I only want simple things such as the name of the sound card, etc..)
0
 

Accepted Solution

by:
jenguysmiley earned 160 total points
ID: 8122888
This has information on where to find things (hardware) in your registry for win 98/ME
http://support.microsoft.com/?kbid=298837

The key above was for 2000/XP but i'm sure you can draw your own parallels.

Just in case you don't know how to access the registry programmatically:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry.asp

of course if you only want to know about your sound card check out these functions:
waveOutGetDevCaps
waveInGetDevCaps
auxGetDevCaps
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/wave_0z39.asp


I also found this about device management (seems there is an API) but its complex
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/device_management.asp
0
 

Author Comment

by:patroclus02
ID: 8123395
Thank you :)
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question