: Can anyone tell me how to command the cd-rom under Windows. I have the source how to: open, close, lock, unlock... the cd-rom in DOS, but that is 16bit registery, I nead 32bit registery. How do I do this in Windows? Is it posible? Thank you in advance.
I'm not exactly sure what you are looking for, but you will have MAJOR problems writing to a CD, even if it is a "burner." For the 32 bit components, that's an easy one (I even got the answer on this board!!!). Use FreePascal. Here is the link.
The good thing about this compiler, is that I run it from a windows based DOS window, and don't have to work in full DOS mode like TurboPascal. If you have problems locating the documentation for running the editor, let me know, and I'll give you specific instructions.
In the constant declaration section of the code you would add the lines :
This will give you the lone file name support that you will need. I'm assuming that would would use the root directory prefix "d:\filename.ext" for your drive. This drive name should be listed in the boot sector of the computer's registry. You might have to run RegEdit and locate a notation there. Remember...you might have problems if you have some NTFS formatted sectors. You will need to extensively run-time debug this program if I was to guess. Good luck.