儲存庫 vbox 的更動 12202
- 時間撮記:
- 2008-9-8 上午08:05:50 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r12126 r12202 1622 1622 ComPtr<IDisplay> display; 1623 1623 CHECK_ERROR_RET(console, COMGETTER(Display)(display.asOutParam()), rc); 1624 ULONG xRes, yRes, bpp; 1625 CHECK_ERROR_RET(display, COMGETTER(Width)(&xRes), rc); 1626 CHECK_ERROR_RET(display, COMGETTER(Height)(&yRes), rc); 1627 CHECK_ERROR_RET(display, COMGETTER(BitsPerPixel)(&bpp), rc); 1628 if (details == VMINFO_MACHINEREADABLE) 1629 RTPrintf("VideoMode=\"%d,%d,%d\"\n", xRes, yRes, bpp); 1630 else 1631 RTPrintf("Video mode: %dx%dx%d\n", xRes, yRes, bpp); 1624 do 1625 { 1626 ULONG xRes, yRes, bpp; 1627 rc = display->COMGETTER(Width)(&xRes); 1628 if (rc == E_ACCESSDENIED) 1629 break; /* VM not powered up */ 1630 if (FAILED(rc)) 1631 { 1632 com::ErrorInfo info (display); 1633 PRINT_ERROR_INFO (info); 1634 return rc; 1635 } 1636 rc = display->COMGETTER(Height)(&yRes); 1637 if (rc == E_ACCESSDENIED) 1638 break; /* VM not powered up */ 1639 if (FAILED(rc)) 1640 { 1641 com::ErrorInfo info (display); 1642 PRINT_ERROR_INFO (info); 1643 return rc; 1644 } 1645 rc = display->COMGETTER(BitsPerPixel)(&bpp); 1646 if (rc == E_ACCESSDENIED) 1647 break; /* VM not powered up */ 1648 if (FAILED(rc)) 1649 { 1650 com::ErrorInfo info (display); 1651 PRINT_ERROR_INFO (info); 1652 return rc; 1653 } 1654 if (details == VMINFO_MACHINEREADABLE) 1655 RTPrintf("VideoMode=\"%d,%d,%d\"\n", xRes, yRes, bpp); 1656 else 1657 RTPrintf("Video mode: %dx%dx%d\n", xRes, yRes, bpp); 1658 } 1659 while (0); 1632 1660 } 1633 1661
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器