Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 help and support Forum Windows 8 Forum Vista Tutorials

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroup Archive > Vista Newsgroups > Vista hardware & devices

Vista - Find out active graphics device programmatically (registry key)

 
 
09-24-2008   #1 (permalink)
UlrichK


 

Find out active graphics device programmatically (registry key)

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
My System SpecsSystem Spec
09-24-2008   #2 (permalink)
UlrichK


 

RE: Find out active graphics device programmatically (registry key)

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.
My System SpecsSystem Spec
 

 Find out active graphics device programmatically (registry key) problems?



Thread Tools


Similar topics to: Find out active graphics device programmatically (registry key)
Thread Forum
Device Driver Installation Process programmatically Drivers
Registry Editor - Find and Find Next Tutorials
changing registry permission programmatically Vista General
How do I programmatically find an item in a TreeView? Avalon
Active XP compatibility mode programmatically? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50