Solved

Accessing Win32_VideoController

Posted on 2003-11-14
3
642 Views
Last Modified: 2007-12-19
I need to look at the Win32_VideoController (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_videocontroller.asp) in order to get information on the capabilities of the video card.  Specifically I want to find out if this device is Monochrome and what is the current VideoMode.

I've found a few references to working with WMI from Delphi, but nothing dealing with VideoController.

Please provide a code sample.
Thanks for your help :)
Rob
0
Comment
Question by:DarthChucks
3 Comments
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 170 total points
Comment Utility
http://users.andara.com/~dblondeau/FTP/SWBEM.zip

Above link is some simple sample code for Delphi. And like you I don't find much specific information about WMI settings in Delphi. However, for WMI itself just go to the MSDN site about WMI:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_architecture.asp

But I guess you know that link too.
Since WMI provides an enormous amount of information it is quite difficult to find specific examples. Especially since WMI still isn't a very popular technique. But perhaps have a look at:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20740261.html

And if you haven't imported the WMI type library yet then import it or download it from http://workshop-alex.org/sources/WbemScripting_TLB.pas and download http://workshop-alex.org/sources/ShowProcesses.dpr too, which is an example about retrieving process information. It's not the same but still quite close to what you need.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now