title: Getting display device output type with DirectX
body: <p>I need to find out, in code (C++ on Windows 7), whether my video card is using vga, dvi or hdmi output, but from looking through the DirectX documentation I haven't found a way to do this. Using GetAdapterDisplayMode() <a href="http://msdn.microsoft.com/en-us/library/bb174316%28v=VS.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb174316%28v=VS.85%29.aspx</a> I can get the screen size and refresh rate and 'Format' in a D3DDISPLAYMODE structure <a href="http://msdn.microsoft.com/en-us/library/bb172548%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb172548%28v=vs.85%29.aspx</a> but I'm not sure what the 'Format' represents, or whether it's relevant.</p>
  
  <p>Thanks.</p>