Examples of MCI_STATUS_PARMS


Examples of org.sf.feeling.swt.win32.internal.extension.MCI_STATUS_PARMS

   * @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;
View Full Code Here

Examples of org.sf.feeling.swt.win32.internal.extension.MCI_STATUS_PARMS

   * @return if the specific CD Drive is ready.
   */
  public static boolean isDiscReady(int deviceID)
  {
    if (deviceID == 0) return false;
    MCI_STATUS_PARMS status = new MCI_STATUS_PARMS();
    status.dwItem = MCI_STATUS_READY;
    int res = Extension.MciSendCommand(deviceID, MCI_STATUS, MCI_STATUS_ITEM, status);
    if (res != 0) return false;
    return status.dwReturn != 0;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.