How can I open/close CDROM in my program?
Thanks.
Printable View
How can I open/close CDROM in my program?
Thanks.
Hallo .
If you want to write only a console application, you can open a CDROM file
by the function fopen and you can close the file by fclose function .
If you write a windows application, you can use the API function
GetOpenFileName: this allows you (by a dialog window) to select the CDROM file
that you want to open (infact in the structure LPOPENFILENAME
(in field lpstrFile) this function stores the string that contains the path
of chosen file); then you can use the function fopen to open a chosen file,
and the function fclose to close this file .