Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 21 Aug 2007 20:14:32 -0700,    group: microsoft.public.win32.programmer.tools        back       


how to determine free space on a specific CD drive ?   
I know the drive letter of the CD drive, and am trying to figure out how 
much free space is on the CD in that drive.  How can I do this?

For example, I know the drive is D:.  I know I can use the IDiscMaster 
interface to enumerate through all of the individual recorders, and then use 
IDiscRecorder::QueryMediaInfo to get the free space on the disk in each 
recorder, but how do I know which recorder goes with my D: drive?

Thanks,
Mark
--
Beiley Software
http://www.beiley.com
date: Tue, 21 Aug 2007 20:14:32 -0700   author:   Mark Beiley nowhere AT donotuse.com

Re: how to determine free space on a specific CD drive ?   
I found a solution to my own question, so am posting the answer here...

You can use CreateFile() on the drive letter, and then use that handle in 
DeviceIoControl() with IOCTL_SCSI_PASS_THROUGH, to get the 
vendor/product/revision of the physical drive for this drive letter.  Now 
use IDiscMaster to enumerate through all of the IDiscRecorder's, comparing 
the vendor/product/revision, until you find a match.  Once you have the 
right IDiscRecorder, you can use QueryMediaInfo to find the free space.

Thanks,
Mark
--
Beiley Software
http://www.beiley.com



"Mark Beiley" <nowhere AT donotuse.com> wrote in message 
news:exaRRqG5HHA.2108@TK2MSFTNGP02.phx.gbl...
>I know the drive letter of the CD drive, and am trying to figure out how 
>much free space is on the CD in that drive.  How can I do this?
>
> For example, I know the drive is D:.  I know I can use the IDiscMaster 
> interface to enumerate through all of the individual recorders, and then 
> use IDiscRecorder::QueryMediaInfo to get the free space on the disk in 
> each recorder, but how do I know which recorder goes with my D: drive?
>
> Thanks,
> Mark
> --
> Beiley Software
> http://www.beiley.com
>
date: Thu, 23 Aug 2007 08:59:11 -0700   author:   Mark Beiley nowhere AT donotuse.com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us