title: How to get free space for CD R or CD RV disks?
body: <p>I am writing my extension for burning various kinds of discs. There is a problem with getting free space on CD R or CD RV disks. To get free space, I use DriveInfo from System.I.O. And everything works well, except for the CD R and CD RV formats. I caught an error that tells "incorrect function". How can I read free space from such formats without DriveInfo</p>
  
  <p>I tried to wrap my function in WinApi but the result is negative</p>
  
  <p>long AvailableFreeSpace = driveInfo.AvailableFreeSpace;</p>
  
  <p>Where driveInfo -> DriveInfo class System.I.O.</p>
  
  <p>I wrapped my code in try ketch and caught this error
  "Incorrect function.\r\n "<a href="https://i.stack.imgur.com/ERoyv.jpg" rel="nofollow noreferrer">exaption</a></p>