Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get graphic card info ?

815 views
Skip to first unread message

Darrow

unread,
Aug 6, 2003, 9:15:42 AM8/6/03
to
Hi all !

I want to get graphic card informations like name, memory size, driver
version.
How to do that?

It must works on every versions of Windows. (not only on NT or on 95/98).

I think the best way to do that is read it from Windows registry.. but...
where is it ?

Darrow


Anaz

unread,
Aug 7, 2003, 4:08:48 AM8/7/03
to
"Darrow" <rus...@wp.pl> wrote in message news:<bgqv3q$fpf$1...@nemesis.news.tpi.pl>...


Hi Darrow,
In case of XP Look into the path
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\

From the Class section find the Class ID for the display device
It will be something like this {4D36E968-E325-11CE-BFC1-08002BE10318}
see inside /0000 key you will get graphics card name, driver version
etc.
The path will be different for different OS versions .
Inorder to tackle this find "proper key path programmatically" by
using your windows version number.
Regards
[Anaz K Kabeer]

Darrow

unread,
Aug 7, 2003, 12:10:23 PM8/7/03
to
> Hi Darrow,
> In case of XP Look into the path
> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\
>
> From the Class section find the Class ID for the display device
> It will be something like this {4D36E968-E325-11CE-BFC1-08002BE10318}
> see inside /0000 key you will get graphics card name, driver version
> etc.
> The path will be different for different OS versions .
> Inorder to tackle this find "proper key path programmatically" by
> using your windows version number.
> Regards
> [Anaz K Kabeer]

Thanks Anaz!
I am using Windows XP Pro and here is complete information but...
There is no info about video card memory size...
There is name, driver version , driver name and a lot of other useful
informations but without memory size...
Where I can find it ?

Darrow


Ed Astle

unread,
Aug 8, 2003, 6:44:17 AM8/8/03
to
Take a look at the DirectX structure DDCAPS and IDirectDraw7::GetCaps.
It has, amongst a ton of other stuff, dwVidMemTotal and dwVidMemFree.

I've never used it but it looks like it'll do the job.

Regards,
Ed

"Darrow" <rus...@wp.pl> wrote in message
news:bgqv3q$fpf$1...@nemesis.news.tpi.pl...

Dmitry Davletbaev

unread,
Aug 7, 2003, 11:57:53 PM8/7/03
to
If you are familiar with WMI take a look at Win32_VideoController class.
Here is information I found on my Windows XP (AdapterRAM=33554432 = 32M is
video memory size):

instance of Win32_VideoController
{
AdapterCompatibility = "NVIDIA";
AdapterDACType = "Integrated RAMDAC";
AdapterRAM = 33554432;
Availability = 3;
Caption = "NVIDIA GeForce2 MX/MX 400";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_VideoController";
CurrentBitsPerPixel = 32;
CurrentHorizontalResolution = 800;
CurrentNumberOfColors = "4294967296";
CurrentNumberOfColumns = 0;
CurrentNumberOfRows = 0;
CurrentRefreshRate = 72;
CurrentScanMode = 4;
CurrentVerticalResolution = 600;
Description = "NVIDIA GeForce2 MX/MX 400";
DeviceID = "VideoController1";
DeviceSpecificPens = 4294967295;
DriverDate = "20021118091500.000000-000";
DriverVersion = "6.13.10.4109";
InfFilename = "oem0.inf";
InfSection = "nv4";
InstalledDisplayDrivers = "nv4_disp.dll";
MaxRefreshRate = 240;
MinRefreshRate = 60;
Monochrome = FALSE;
Name = "NVIDIA GeForce2 MX/MX 400";
NumberOfColorPlanes = 1;
PNPDeviceID =
"PCI\\VEN_10DE&DEV_0110&SUBSYS_00000000&REV_B2\\4&9FD38EF&0&0008";
Status = "OK";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DDO";
VideoArchitecture = 5;
VideoMemoryType = 2;
VideoModeDescription = "800 x 600 x 4294967296 米.";
VideoProcessor = "GeForce2 MX/MX 400";
};

--
Dmitry Davletbaev
ha...@mgn.ru

"Darrow" <rus...@wp.pl> wrote in message:

news:bgttn6$kmr$1...@nemesis.news.tpi.pl...

Darrow

unread,
Aug 9, 2003, 11:08:09 AM8/9/03
to

> If you are familiar with WMI take a look at Win32_VideoController class.
> Here is information I found on my Windows XP (AdapterRAM=33554432 = 32M is
> video memory size):
(...)

It looks very nice but I don't know what WMI is :(
Where I can learn WMI ?
Currently I am using both Pascal(Delphi) and C++

Darrow


Dmitry Davletbaev

unread,
Aug 10, 2003, 12:56:14 AM8/10/03
to
On MSDN CD: "Platform SDK" / "Management Services" / "Windows Management
Instrumentation". You can find it also at www.msdn.microsoft.com.

--
Dmitry Davletbaev
ha...@mgn.ru

"Darrow" <rus...@wp.pl> wrote in message:

news:bh32qk$lcp$1...@nemesis.news.tpi.pl...

0 new messages