Пример #1
0
HRESULT CIoSupport::ToggleTray()
{
  if (GetTrayState() == TRAY_OPEN || GetTrayState() == DRIVE_OPEN)
    return CloseTray();
  else
    return EjectTray();
}
Пример #2
0
HRESULT CIoSupport::ToggleTray()
{
#if defined(TARGET_WINDOWS)
  return CWIN32Util::ToggleTray();
#else
  if (GetTrayState() == TRAY_OPEN || GetTrayState() == DRIVE_OPEN)
    return CloseTray();
  else
    return EjectTray();
#endif
}