Click to See Complete Forum and Search --> : retrieving handle to CD drive
Don Anderson
November 17th, 1998, 06:51 AM
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.
Bgbaster
June 7th, 2001, 09:49 AM
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.
John G Duffy
June 7th, 2001, 02:33 PM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.