Here's the reference, I think you need "Caption": http://msdn.microsoft.com/
Main Topics
Browse All TopicsHi Experts,
I need to get the video adapter name, *similar* to what is availabe using DXDiag
Eg: Name: NVIDIA GeForce 7300 GT
etc
However! I can not use DirectX SDK to obtain this data (due to project restrictions). Therefore, I need to get the equivalent information either directly from the registry (ugly) or via the Win32 API, or *ideally* using .Net Framework 2.0
Can you please provide a code sample C++ .Net preferred which demonstrates how to get the display adaptor name and some other attributes if possible, such as installed video memory etc.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here's the reference, I think you need "Caption": http://msdn.microsoft.com/
Here is the solution in C++ .Net
// Video properties demo
// Geoff Machell, July 2009
#using <System.Management.dll>
using namespace System;
using namespace System::Text;
void IterateOverCollection()
{
System::Management::Manage
System::Management::Manage
System::Management::Manage
while(moe->MoveNext())
{
System::Management::Manage
System::Management::Proper
System::Management::Proper
while(pde->MoveNext())
{
System::Management::Proper
Console::WriteLine("{0} {1}", pd->Name, pd->Value);
}
}
}
int main(array<System::String ^> ^args)
{
Console::WriteLine("Demo by Geoff Machell");
Console::WriteLine("July 2009");
Console::WriteLine("\n====
IterateOverCollection();
Console::WriteLine("\n====
System::Management::Manage
System::Management::Manage
System::Management::Manage
while(moe->MoveNext())
{
System::Management::Manage
Console::WriteLine( mbo->GetPropertyValue("Cap
Console::WriteLine( mbo->GetPropertyValue("Vid
Console::WriteLine( mbo->GetPropertyValue("Ada
}
Console::WriteLine("\n====
return 0;
}
Business Accounts
Answer for Membership
by: abelPosted on 2009-06-30 at 02:14:00ID: 24743524
You can do this using WMI via Win32_VideoController. This example shows more then that, but it should get you started (and you can copy the code that you need): http://www.codeproject.com /KB/cs/Eve rythingInW mi03.aspx