Changeset 2567 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- May 9, 2007 4:38:24 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 21034
- Location:
- trunk/src/VBox/Main/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstAPI.cpp
r2333 r2567 562 562 ComPtr <IGuestOSType> guestOSType; 563 563 Bstr type = L"os2warp45"; 564 CHECK_ERROR_BREAK (virtualBox, FindGuestOSType (type, guestOSType.asOutParam()));564 CHECK_ERROR_BREAK (virtualBox, GetGuestOSType (type, guestOSType.asOutParam())); 565 565 566 566 printf ("Saving new machine settings...\n"); -
trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp
r1 r2567 122 122 printf("\tMemory size: %uMB\n", memorySize); 123 123 124 nsXPIDLString typeId; 125 machine->GetOSTypeId(getter_Copies(typeId)); 124 126 IGuestOSType *osType = nsnull; 125 machine->GetOSType(&osType);127 virtualBox->GetGuestOSType (typeId.get(), &osType); 126 128 nsXPIDLString osName; 127 129 osType->GetDescription(getter_Copies(osName)); … … 178 180 IGuestOSType *osType = nsnull; 179 181 char win2k[] = "win2k"; 180 rc = virtualBox-> FindGuestOSType(NS_ConvertUTF8toUTF16((char*)win2k).get(), &osType);182 rc = virtualBox->GetGuestOSType(NS_ConvertUTF8toUTF16((char*) win2k).get(), &osType); 181 183 if (NS_FAILED(rc) || !osType) 182 184 { … … 185 187 else 186 188 { 187 machine->SetOSType (osType);189 machine->SetOSTypeId (NS_ConvertUTF8toUTF16((char*) win2k).get()); 188 190 osType->Release(); 189 191 }
Note:
See TracChangeset
for help on using the changeset viewer.