title: Converting LPWSTR to char
body: <p>I'm using the function: <code>GetLogicalDriveStringsW(ARRAYSIZE(myDrives) - 1, myDrives)</code>
  I'm then looping through all the retrieved drives. I need the drive letter when </p>
  
  <pre><code>char driveLetter;
  UINT driveType;
  WCHAR myDrives[105];
  
  for (LPWSTR drive = myDrives; *drive != 0; drive += 4)
  {
      driveType = GetDriveTypeW(drive);
      if (driveType == DRIVE_CDROM)
      {             
          **driveLetter = // (drive) Need just the drive character** 
      }           
  }
  </code></pre>
  
  <p>any ideas how i can get the drive character when using the above mentioned functions?</p>