Discussion Locked

CD Status

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi!
How can I know status of CD-ROM. I mean is it ejected or closed?
Please... :)

WinAPI or Delphi is prefered

2 replies

by jpitts

Delphi 5, using MCI
TMediaPlayer.Mode gives the current status of an open multimedia device. - not ready, seeking, playing, recording, paused, open, or stopped.

by igp

Thanks, but I need low level suggestion.
I need to use some commands like GetDriveStatus(x,x,x).
I won't use MediaPlayer for only on function.

This discussion is closed to new replies.