Hi,
I am trying to read YellowMode2 sectors, and am having problems. I have
been able to successfully read CDDA sectors. Here is a code snippet
raw_info.DiskOffset.QuadPart = 2048 * 16;
raw_info.SectorCount = 1;
raw_info.TrackMode = YellowMode2;
nRetVal = DeviceIoControl(cdReadPtr->cdHandle,
IOCTL_CDROM_RAW_READ, &raw_info, sizeof(RAW_READ_INFO),
cdReadPtr->readBuffer, 1 * 2048,&dwNotUsed, NULL);
If fails with error code 87, invalid parameter
Regards,
Ceri
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
I think you must specify the entire sector length, not 2048. Check the
CD-ROM driver source in the DDK and see what it is expecting.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ceri Coburn
Sent: Tuesday, June 11, 2002 4:33 AM
To: File Systems Developers
Subject: [ntfsd] IOCTL_CDROM_RAW_READ problems reading YellowMode2
Hi,
I am trying to read YellowMode2 sectors, and am having problems. I have
been able to successfully read CDDA sectors. Here is a code snippet
raw_info.DiskOffset.QuadPart = 2048 * 16;
raw_info.SectorCount = 1;
raw_info.TrackMode = YellowMode2;
nRetVal = DeviceIoControl(cdReadPtr->cdHandle,
IOCTL_CDROM_RAW_READ, &raw_info, sizeof(RAW_READ_INFO),
cdReadPtr->readBuffer, 1 * 2048,&dwNotUsed, NULL);
If fails with error code 87, invalid parameter
Regards,
Ceri
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%