Win 32 Api
-
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
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)
-
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
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.
-
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.
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.