Hi,<br>
<br>
Could you please let me know the method required to read a sector from a CD.<br>
<br>
The following solution works good with a floppy and a hard disk but not with a CD.<br>
<br>
I have already tried the solution referred in the article Q137813 of MSDN and it is not working properly.<br>
<br>
I am using VC++ 6.0 under Windows 98. <br>
<br>
Any help would be greatly appreciated.<br>
<br>
Solution which works for a floppy and a hard disk but not for a CD<br>
<br>
treg.reg_ESI = 0;<br>
treg.reg_ECX = -1;<br>
treg.reg_EBX = (DWORD) §det;<br>
treg.reg_EDX = MAKEWORD(0x3,0x0);<br>
treg.reg_EAX = 0x7305;<br>
<br>
treg.reg_Flags = 0x1;<br>
<br>
hDevice = CreateFile(
<br>
Could you please let me know the method required to read a sector from a CD.<br>
<br>
The following solution works good with a floppy and a hard disk but not with a CD.<br>
<br>
I have already tried the solution referred in the article Q137813 of MSDN and it is not working properly.<br>
<br>
I am using VC++ 6.0 under Windows 98. <br>
<br>
Any help would be greatly appreciated.<br>
<br>
Solution which works for a floppy and a hard disk but not for a CD<br>
<br>
treg.reg_ESI = 0;<br>
treg.reg_ECX = -1;<br>
treg.reg_EBX = (DWORD) §det;<br>
treg.reg_EDX = MAKEWORD(0x3,0x0);<br>
treg.reg_EAX = 0x7305;<br>
<br>
treg.reg_Flags = 0x1;<br>
<br>
hDevice = CreateFile(