title: Windows api for identifying NVMe drive
body: <p>Is there any windows api which returns if the drive is of nvme type? In powershell, when I do</p>
  <pre><code>Get-PhysicalDisk | select Friendlyname, BusType, MediaType 
  </code></pre>
  <p>it gives the MediaType as <code>SSD</code> and the BusType as <code>RAID</code>. Ealier, I was using the <code>STORAGE_BUS_TYPE</code> win32 for checking NVMe by using the BusType, but I have an SSD Nvme device which has BusType as RAID.</p>
  <p>Thanks.</p>