CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Posts
    11

    Exclamation Get Video Card Information

    Hi,

    I have been trying to retrieve Video Card Information from the Registry. I am using code to look at the key

    HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\VIDEO\Device\Video0

    and therefore get the location of the Video Card Information key. However, to do so, it is necessary to remove the "Registry\Machine" part from the value.

    Can anyone show me how to do this?

    Many Thanks.

  2. #2
    Join Date
    Nov 2003
    Posts
    1,902

    Re: Get Video Card Information

    The "correct" way to do this is to use the Setup API. What information specifically are you looking for?

    gg

  3. #3
    Join Date
    Jan 2007
    Posts
    11

    Re: Get Video Card Information

    The Driver Name, Memory Size and the DLL.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Get Video Card Information

    Another correct way to do this is to use EnumDisplayDevices and WMI.

    EnumDisplayDevices allows you to retrieve single or multi-monitor information.
    Last edited by Arjay; August 13th, 2008 at 12:54 PM.

  5. #5
    Join Date
    Aug 2008
    Posts
    2

    Re: Get Video Card Information

    You can also communicate with the video card driver for the most accurate information. Use CreateFile() to achieve this.

    Cheers!

    -Echo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured