Changeset 2029 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Apr 11, 2007 1:23:03 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 20321
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstAPI.cpp
r1471 r2029 448 448 vdi->COMGETTER(FilePath) (dst.asOutParam()); 449 449 RTPrintf ("Actual clone path is '%ls'\n", dst.raw()); 450 } 451 } 452 while (FALSE); 453 printf ("\n"); 454 #endif 455 456 #if 1 457 // find a registered hard disk by location 458 /////////////////////////////////////////////////////////////////////////// 459 do 460 { 461 ComPtr <IHardDisk> hd; 462 static wchar_t *Names[] = 463 { 464 #ifndef __LINUX__ 465 L"E:/Develop/innotek/images/thinker/freedos.vdi", 466 L"E:/Develop/innotek/images/thinker/fReeDoS.vDI", 467 L"E:/Develop/innotek/images/vmdk/haiku.vmdk", 468 #else 469 L"/mnt/host/common/Develop/innotek/images/maggot/freedos.vdi", 470 L"/mnt/host/common/Develop/innotek/images/maggot/fReeDoS.vDI", 471 #endif 472 }; 473 for (size_t i = 0; i < ELEMENTS (Names); ++ i) 474 { 475 Bstr src = Names [i]; 476 printf ("Searching for hard disk '%ls'...\n", src.raw()); 477 rc = virtualBox->FindHardDisk (src, hd.asOutParam()); 478 if (SUCCEEDED (rc)) 479 { 480 Guid id; 481 Bstr location; 482 CHECK_ERROR_BREAK (hd, COMGETTER(Id) (id.asOutParam())); 483 CHECK_ERROR_BREAK (hd, COMGETTER(Location) (location.asOutParam())); 484 printf ("Found, UUID={%Vuuid}, location='%ls'.\n", 485 id.raw(), location.raw()); 486 } 487 else 488 { 489 PRINT_ERROR_INFO (com::ErrorInfo (virtualBox)); 490 } 450 491 } 451 492 }
Note:
See TracChangeset
for help on using the changeset viewer.