Monitoring CD-rom device for Audio CD's - Please Help

I would like to make an application that does the following :

check every second (with a timer) if an audio-cd is present in the
device, and if not (data disk, CD-tray out, ...) change the caption of a
label-component to "No Audio CD present" or something. How do I check
for this condition ?

I would really appreciate some help in this matter. If you have a
solution, please email it to me ( as I cannot check
this newsgroup every day.


Dirk Verdonck,
Xylos Development NV, Belgium