Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Vista
admin account
file management
games
general
hardware assessment
hardware devices
installation
mail
multimedia
networking sharing
performance
print_fax_scan
security
  
 
date: Wed, 24 Sep 2008 00:57:02 -0700,    group: microsoft.public.windows.vista.hardware_devices        back       


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
date: Wed, 24 Sep 2008 00:57:02 -0700   author:   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.
date: Wed, 24 Sep 2008 03:20:01 -0700   author:   UlrichK

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us