   Check if a cd is in a cd-rom...
  Well the title says it all... how do i check (with code) if a cd is inside the cd-rom or if it is empty. thx.   
  That would depend first on OS, then on language and any APIs used.   ;  well im working with windows, doing some c++/delphi stuff, i just need a simple win32 api i guess, or perhaps a simple delphi function?   ;Quote:Original post by Vortezwell im working with windows, doing some c++/delphi stuff, i just need a simple win32 api i guess, or perhaps a simple delphi function?In Delphi you should be able to if you add MMSystem to your uses and call mciSendString('set cdaudio door open wait, nil, 0, 0); to open or mciSendString('set cdaudio door closed wait, nil, 0, 0); to close. You could even wrap this inside a buttons procedure.;  http://msdn.microsoft.com/en-us/library/aa365280(VS.85).aspxBasically you need to obtain the volume information.   