Retrieve information about Video Adapter

Posted on 2003-03-11
Medium Priority
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?)
Question by:patroclus02
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

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

see info at msdn:

Author Comment

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?)
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Expert Comment

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

Author Comment

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

Accepted Solution

jenguysmiley earned 160 total points
ID: 8122888
This has information on where to find things (hardware) in your registry for win 98/ME

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:

of course if you only want to know about your sound card check out these functions:

I also found this about device management (seems there is an API) but its complex

Author Comment

ID: 8123395
Thank you :)

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

764 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