Hello,
I don’t know it exactly but I think you must use IOCLT commands for doing
this.
Have a look at DeviceIOControl(…).
Reiner
-----Ursprungliche Nachricht-----
Von: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Im Auftrag von Carlos
Gesendet: Freitag, 17. November 2000 17:49
An: File Systems Developers
Betreff: [ntfsd] Problems reading Mode 2 cdrom sectors
Hello,
I need read Mode2 cdrom sectors (2340 bytes), i am
trying read with it:
//sprintf(cdname,“\\.\%C:”,cdrom_letter);
sprintf(cdname,“\\.\Cdrom0”);
hCDW2k = CreateFile(cdname, GENERIC_READ,
FILE_SHARE_READ|FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);
{
RAW_READ_INFO raw_info;
raw_info.DiskOffset.QuadPart = dwStart;
raw_info.SectorCount = 1;
raw_info.TrackMode = XAForm2;
status = DeviceIoControl(hCD, IOCTL_CDROM_RAW_READ,
&raw_info, sizeof(RAW_READ_INFO),
buf, 2352,
&dwNotUsed, NULL);
}
But it isnt working, i get error always in status,
does someone know how read mode2 sectors?
Very thanks.
Regards. Carlos.
–
/ // _ // / / o) calb
/ / / // // / / \ megax.aig.uc3m.es
//// ///_//)
You are currently subscribed to ntfsd as: xxxxx@gmx.net
To unsubscribe send a blank email to $subst(‘Email.Unsub’)