Use GetInsertedDiscType(...) equivalent. And check for NO_MODIA (no disc) or other value (other disc). That's is...
DS1 wrote:
I am using StarBurnX Version 10.0.00 ( Build 2008-03-3 ). I would like to know if there is a faster way to detect if there is a cd or a dvd in a specified drive.
At the moment I'm using the Windows API WM_DEVICECHANGE event to detect the media arrival and change event, which works unless there is no disc inserted. If no disc is inserted, but the tray is opened and the disc is removed, it doesn't notify me.
Is there any provision in StarBurnX itself to detect the event?