title: In Windows, how can I find out if a GPU is detachable?
body: <p>In Windows, how can I find out if a GPU is detachable?</p>
  
  <p>If I run dxdiag.exe and save a report, it gives me the value:</p>
  
  <p><code>Detachable GPU: Yes</code></p>
  
  <p>How can I get this value programmatically? I want to avoid calling dxdiag.exe and dumping the result to a file and parsing it since it is quite slow, and I only need one value.</p>