Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Win 32 Api

Win 32 Api

Scheduled Pinned Locked Moved Article Writing
c++graphicsjson
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    HELLLLLP I need to obtain the name of the graphics card inserted in my PC. I'm using C++ and the Windows Api. I'm totally out of ideas. David

    C R 2 Replies Last reply
    0
    • L Lost User

      HELLLLLP I need to obtain the name of the graphics card inserted in my PC. I'm using C++ and the Windows Api. I'm totally out of ideas. David

      C Offline
      C Offline
      Colin Bowern
      wrote on last edited by
      #2

      Windows Managment Instrumentation will give you that information. See http://msdn.microsoft.com/library/en-us/wmisdk/wmistart\_5kth.asp Cheers! Colin Bowern, Consultant Enterprise Platform Solutions Microsoft Services (Canada)

      1 Reply Last reply
      0
      • L Lost User

        HELLLLLP I need to obtain the name of the graphics card inserted in my PC. I'm using C++ and the Windows Api. I'm totally out of ideas. David

        R Offline
        R Offline
        Rassman
        wrote on last edited by
        #3

        Search for DISPLAY_DEVICE in your help. Then, BOOL EnumDisplayDevices( PVOID Unused, // not used; must be NULL DWORD iDevNum, // specifies display device PDISPLAY_DEVICE lpDisplayDevice, // pointer to structure to // receive display device information DWORD dwFlags // flags to condition function behavior ); Will fill the structure with device information. typedef struct _DISPLAY_DEVICE { DWORD cb; WCHAR DeviceName[32]; WCHAR DeviceString[128]; DWORD StateFlags; } DISPLAY_DEVICE, *PDISPLAY_DEVICE, *LPDISPLAY_DEVICE; Please note that these are marked as 'Preliminary' on my system so check with the microsoft developers site to ensure there have not changed. Specifically on a Win2000/NT. We do it for the joy of seeing the users struggle.

        R 1 Reply Last reply
        0
        • R Rassman

          Search for DISPLAY_DEVICE in your help. Then, BOOL EnumDisplayDevices( PVOID Unused, // not used; must be NULL DWORD iDevNum, // specifies display device PDISPLAY_DEVICE lpDisplayDevice, // pointer to structure to // receive display device information DWORD dwFlags // flags to condition function behavior ); Will fill the structure with device information. typedef struct _DISPLAY_DEVICE { DWORD cb; WCHAR DeviceName[32]; WCHAR DeviceString[128]; DWORD StateFlags; } DISPLAY_DEVICE, *PDISPLAY_DEVICE, *LPDISPLAY_DEVICE; Please note that these are marked as 'Preliminary' on my system so check with the microsoft developers site to ensure there have not changed. Specifically on a Win2000/NT. We do it for the joy of seeing the users struggle.

          R Offline
          R Offline
          Rassman
          wrote on last edited by
          #4

          I decided I had better add a warning. These 'DisplayDevice' functions will link you to the DEVMODE structure and it's functions. Don't play arround with these unless you really know what you are doing, its quite possible to blow your monitor by using incorrect settings. Though at the same time there is some information contained here that can be used by 'precision graphics' programmers. If you do look at this area then treat it as a source of information rather than a place to change things. We do it for the joy of seeing the users struggle.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups