aithai
18th June 2007, 17:33
Hi,
I cannot get a decent code to detect if there is a DVD in the CDROM. I use WM_DEVICECHANGE - which in fact will correctly detect only when the DVD is inserted or ejected. The two events firing this change, as you know are:
DBT_DEVICEARRIVAL;
DBT_DEVICEREMOVECOMPLETE
I hope to get comments on how to correctly detect if there is or NOT a DVD in the CDROM.
Delphi codings appreciated, but not necessary.
Thank you.
I cannot get a decent code to detect if there is a DVD in the CDROM. I use WM_DEVICECHANGE - which in fact will correctly detect only when the DVD is inserted or ejected. The two events firing this change, as you know are:
DBT_DEVICEARRIVAL;
DBT_DEVICEREMOVECOMPLETE
I hope to get comments on how to correctly detect if there is or NOT a DVD in the CDROM.
Delphi codings appreciated, but not necessary.
Thank you.