Mail Archives: djgpp/1999/08/26/19:54:06
Niko Salminen wrote:
> I have a piece of code which uses IOCTL functions at the CDRom drive, but
> for some reason, when I pass the data block's transfer address with the
> in/output call, MSCDEX keeps finding only zeros at that location.
>
> For example, if I want to close the tray, I send MSCDEX my IOCTL output
> block with a pointer to an unsigned char which contains the value 5
> (CLOSE_TRAY). The result is that the tray opens.
>
> The transfer address expects a far pointer (the original routine was
> real-mode) but I just pass the protected mode address as-is. I even tried
> reserving mem from the first 640kB and passing it's address, but then even
> the tray didn't open with the proper function.
The FAQ tells how to transfer addresses to a real-mode driver.
--
-Rolf Campbell (39)3-6318
- Raw text -