* @return if the specific CD Drive is opened.
*/
public static boolean isDoorOpened(int deviceID)
{
if (deviceID == 0) return false;
MCI_STATUS_PARMS status = new MCI_STATUS_PARMS();
status.dwItem = MCI_STATUS_MODE;
int res = Extension.MciSendCommand(deviceID, MCI_STATUS, MCI_STATUS_ITEM | MCI_WAIT,
status);
if (res != 0) return false;
return status.dwReturn == MCI_MODE_OPEN;