Changeset 101164 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
- Timestamp:
- Sep 19, 2023 10:01:39 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r101128 r101164 2014 2014 kListRunningVMs, 2015 2015 kListOsTypes, 2016 kListOsVariants, 2016 2017 kListHostDvds, 2017 2018 kListHostFloppies, … … 2175 2176 guestOS->COMGETTER(FamilyDescription)(familyDescription.asOutParam()); 2176 2177 RTPrintf(List::tr("Family Desc: %ls\n"), familyDescription.raw()); 2178 Bstr guestOSVariant; 2179 guestOS->COMGETTER(Variant)(guestOSVariant.asOutParam()); 2180 if (guestOSVariant.isNotEmpty()) 2181 RTPrintf(List::tr("OS Variant: %ls\n"), guestOSVariant.raw()); 2177 2182 BOOL is64Bit; 2178 2183 guestOS->COMGETTER(Is64Bit)(&is64Bit); 2179 2184 RTPrintf(List::tr("64 bit: %RTbool\n"), is64Bit); 2180 2185 RTPrintf("\n"); 2186 } 2187 } 2188 break; 2189 } 2190 2191 case kListOsVariants: 2192 { 2193 com::SafeArray<BSTR> GuestOSFamilies; 2194 CHECK_ERROR(pVirtualBox, COMGETTER(GuestOSFamilies)(ComSafeArrayAsOutParam(GuestOSFamilies))); 2195 if (SUCCEEDED(hrc)) 2196 { 2197 for (size_t i = 0; i < GuestOSFamilies.size(); ++i) 2198 { 2199 const Bstr bstrOSFamily = GuestOSFamilies[i]; 2200 com::SafeArray<BSTR> GuestOSVariants; 2201 CHECK_ERROR(pVirtualBox, 2202 COMGETTER(GuestOSVariantsByFamilyId)(bstrOSFamily.raw(), 2203 ComSafeArrayAsOutParam(GuestOSVariants))); 2204 if (SUCCEEDED(hrc)) 2205 { 2206 RTPrintf("%ls\n", bstrOSFamily.raw()); 2207 for (size_t j = 0; j < GuestOSVariants.size(); ++j) 2208 { 2209 RTPrintf("\t%ls\n", GuestOSVariants[j]); 2210 com::SafeArray<BSTR> GuestOSDescs; 2211 const Bstr bstrOSVariant = GuestOSVariants[j]; 2212 CHECK_ERROR(pVirtualBox, 2213 COMGETTER(GuestOSDescsByVariant)(bstrOSVariant.raw(), 2214 ComSafeArrayAsOutParam(GuestOSDescs))); 2215 if (SUCCEEDED(hrc)) 2216 for (size_t k = 0; k < GuestOSDescs.size(); ++k) 2217 RTPrintf("\t\t%ls\n", GuestOSDescs[k]); 2218 } 2219 } 2181 2220 } 2182 2221 } … … 2420 2459 { "runningvms", kListRunningVMs, RTGETOPT_REQ_NOTHING }, 2421 2460 { "ostypes", kListOsTypes, RTGETOPT_REQ_NOTHING }, 2461 { "osvariants", kListOsVariants, RTGETOPT_REQ_NOTHING }, 2422 2462 { "hostdvds", kListHostDvds, RTGETOPT_REQ_NOTHING }, 2423 2463 { "hostfloppies", kListHostFloppies, RTGETOPT_REQ_NOTHING }, … … 2486 2526 case kListRunningVMs: 2487 2527 case kListOsTypes: 2528 case kListOsVariants: 2488 2529 case kListHostDvds: 2489 2530 case kListHostFloppies:
Note:
See TracChangeset
for help on using the changeset viewer.