Find out active graphics device programmatically (registry key)

Posted: 09-24-2008, 07:57 AM
Hello all.

I am trying to control graphics hardware acceleration programmatically.

My question is: How can I find the GUID of the active display device?

What I already found out:
The registry key for controlling this hardware acceleration is
HKLM\SYSTEM\CurrentControlSet\Control\Video\[GUID of graphics
card]\0000\Acceleration.Level

I thought that another registry key can be used to find out about the
graphics adapter GUID:
HKLM\Hardware\Devicemap\Video\ and there \Device\Video0
However on another computer it is not Video0 but Video7 and Video8

Is there any (official) documentation on this matter?

Thank you in advance
Ulrich
Reply With Quote

Responses to "Find out active graphics device programmatically (registry key)"

UlrichK
Guest
Posts: n/a
 
RE: Find out active graphics device programmatically (registry key)
Posted: 09-24-2008, 10:20 AM
Ok finally answered this one myself:

::EnumDisplayDevices(...) is your friend.
It delivers you DISPLAY_DEVICE.DeviceKey which is exactly the registry key I
am looking for.
I take it that the flag DISPLAY_DEVICE_PRIMARY_DEVICE in
DISPLAY_DEVICE.StateFlags signifies the device I am looking for.
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to programmatically read registry for installation and version of 3 specific software apps Phillip Windows XP Configuration & Management 1 09-28-2005 06:13 PM
How to programmatically locate the storage device? Denis @ TheOffice Windows XP Device Drivers 0 09-14-2005 05:30 PM
programmatically stop a USB device? JM7 Windows XP Device Drivers 4 07-13-2005 05:31 AM
starting and stopping a PCI device programmatically Bruno van Dooren Windows XP Device Drivers 0 12-13-2004 08:02 PM
find out device's PCI slot number programmatically GoAheadTarCon Windows XP Hardware 1 12-02-2003 09:56 AM