A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Hardware and Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Hardware and Windows Vista Hardware issues in relation to Windows Vista. (microsoft.public.windows.vista.hardware_devices)

Find out active graphics device programmatically (registry key)



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 24th 08, 07:57 AM posted to microsoft.public.windows.vista.hardware_devices
UlrichK
external usenet poster
 
Posts: 3
Default 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
  #2 (permalink)  
Old September 24th 08, 10:20 AM posted to microsoft.public.windows.vista.hardware_devices
UlrichK
external usenet poster
 
Posts: 3
Default 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.
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.