title: DVD or CD Player?
body: <p>I want to know if my player is a DVD or CD Player, etc ...</p>
  <p>I tried :</p>
  <pre><code>SELECT Drive, MediaType, Caption FROM Win32_CDROMDrive
  </code></pre>
  <p><code>MediaType</code> doesn't work on XP, and not very well on Seven.</p>
  <p>I tried on a computer (with Windows 7) with 1 player (Cd Writer/DVD-ROM) in MediaType I found <code>Cd Writer</code>.</p>
  <p>Second solution :</p>
  <p>I search in &quot;Caption&quot; if I find &quot;DVD&quot;</p>
  <p>I tried a software, (<a href="http://gtopala.com/" rel="nofollow noreferrer">SIW - System Information for Windows</a>) and in my Player properties :</p>
  <blockquote>
  <p>Capabilities :</p>
  <p>CD Reader :    CD ROM, CD R, CD RW</p>
  <p>CD Writer :    CD R, CD RW</p>
  <p>DVD Reader :   DVD ROM, DVD R, DVD RW, DVD RAM</p>
  <p>DVD Writer :   No</p>
  <p>SMART Support : No</p>
  </blockquote>
  <p>So, I want to know : with a WMI query (or other solution, I use C++), can I have the same informations or not?</p>
  <p>It would be awesome if I could! If I can't, I just keep my &quot;String parsing&quot;.</p>