Hi,<br>
<br>
Could you please let me know, how to find the total number of sectors for a CD.<br>
<br>
I understand that it has be done using DeviceIoControl of VC++.<br>
<br>
But, could you please give me the exact parameters with its value which works for<br>
Win 9x and just not for NT alone.<br>
<br>
The following piece of code works fine for a floppy drive but not for a CD.<br>
<br>
treg.reg_EBX = iDrive;<br>
treg.reg_EDX = (DWORD) &dbp;<br>
treg.reg_ECX = MAKEWORD(0x60,0x8);<br>
treg.reg_EAX = 0x440D;<br>
treg.reg_Flags = CARRY_FLAG;<br>
<br>
if ( DeviceIoControl(h , VWIN32_DIOC_DOS_IOCTL,<br>
&treg,<br>
sizeof(treg),<br>
&treg,<br>
sizeof(treg),<br>
&cb,0) )<br>
<br>
Please let me know if you have a solution.<br>
<br>
Regards<br>
<br>
Siva<br>
Email: siva@indusaglobal.com<br>
<br>
Programming is always a learning process <br>
<br>
Could you please let me know, how to find the total number of sectors for a CD.<br>
<br>
I understand that it has be done using DeviceIoControl of VC++.<br>
<br>
But, could you please give me the exact parameters with its value which works for<br>
Win 9x and just not for NT alone.<br>
<br>
The following piece of code works fine for a floppy drive but not for a CD.<br>
<br>
treg.reg_EBX = iDrive;<br>
treg.reg_EDX = (DWORD) &dbp;<br>
treg.reg_ECX = MAKEWORD(0x60,0x8);<br>
treg.reg_EAX = 0x440D;<br>
treg.reg_Flags = CARRY_FLAG;<br>
<br>
if ( DeviceIoControl(h , VWIN32_DIOC_DOS_IOCTL,<br>
&treg,<br>
sizeof(treg),<br>
&treg,<br>
sizeof(treg),<br>
&cb,0) )<br>
<br>
Please let me know if you have a solution.<br>
<br>
Regards<br>
<br>
Siva<br>
Email: siva@indusaglobal.com<br>
<br>
Programming is always a learning process <br>