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.
Comments
:
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.
http://www.freepascal.org/sdown.html
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 :
const
LFNSupport=True;
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.
Delljohnb
:
hmmmmm.....have you thought about loading all the files into a ram drive, then accessing them from there? that would make things easier...you could assign a attribute of read-only....that would effectively lock it...
: :
: hmmmmm.....have you thought about loading all the files into a ram drive, then accessing them from there? that would make things easier...you could assign a attribute of read-only....that would effectively lock it...
:
With the lock, unlock, open, close... I mean the door of the CD-ROM. All the code I have found on the web is for TP. I don't even know if windows lets this kind of functions. I know that open and close functions can be done, but others...