retrieving handle to CD drive
I am writing an application for a system that has two CDs, one of which is a CD-RW. I need to tell which one I am looking at. I believe DeviceIOControl can give the information I need but I need the handle to the CD. I tried using CreateFile to get the handle but I keep getting a -1 returned. How do I use CreateFile correctly to retrive the handle of the CD?
Thanks, Don.
Re: retrieving handle to CD drive
You can use PhysicalDrive[X] (where X could be any of 0-9 numbers)
However this will not give you access to SCSI miniport ,if you famous will
wnaspi32.dll adaptec tech.
Re: retrieving handle to CD drive
I went this route some time back trying to manipulate my Zip drive and after much consternation, discovered a documetn at MSDN.MIcrosoft.com stating the CreateFile API is not supported under VB ......period.
John G