Mail Archives: djgpp/1999/08/25/22:27:41
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.
If you have any idea of what is wrong, please answer into this Hotmail
address.
-Niko Salminen
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
- Raw text -