From: arunm231075 on
Hi,

CString str = \\\\.\\CdRom0;

hCD = CreateFile (str, GENERIC_READ| GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);

status = DeviceIoControl(hCD,
FSCTL_ALLOW_EXTENDED_DASD_IO ,
NULL,
0,
NULL,
0,
&returned,
NULL);

The above DeviceIoControl returns false. Any one knows what , I am doing
wrong.?

I tried this above after ReadFile failed for some sectors of a file in a
single file CDROM. This happened when I tried to copy the file, it gave
device I/O error.