Changeset 20251 in vbox
- Timestamp:
- Jun 4, 2009 7:51:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r20250 r20251 255 255 else 256 256 RTPrintf("Boot menu mode: %s\n", pszBootMenu); 257 258 ULONG maxBootPosition = 0;259 ComPtr<ISystemProperties> systemProperties;260 virtualBox->COMGETTER(SystemProperties)(systemProperties.asOutParam());261 systemProperties->COMGETTER(MaxBootPosition)(&maxBootPosition);262 for (ULONG i = 1; i <= maxBootPosition; i++)263 {264 ULONG bootOrder;265 machine->GetBootOrder(i, &bootOrder);266 if (bootOrder == DeviceType_Floppy)267 {268 if (details == VMINFO_MACHINEREADABLE)269 RTPrintf("bootdevice-%d=\"floppy\"\n", i);270 else271 RTPrintf("Boot Device (%d): Floppy\n", i);272 }273 else if (bootOrder == DeviceType_DVD)274 {275 if (details == VMINFO_MACHINEREADABLE)276 RTPrintf("bootdevice-%d=\"dvd\"\n", i);277 else278 RTPrintf("Boot Device (%d): DVD\n", i);279 }280 else if (bootOrder == DeviceType_HardDisk)281 {282 if (details == VMINFO_MACHINEREADABLE)283 RTPrintf("bootdevice-%d=\"harddisk\"\n", i);284 else285 RTPrintf("Boot Device (%d): HardDisk\n", i);286 }287 else if (bootOrder == DeviceType_Network)288 {289 if (details == VMINFO_MACHINEREADABLE)290 RTPrintf("bootdevice-%d=\"network\"\n", i);291 else292 RTPrintf("Boot Device (%d): Network\n", i);293 }294 else if (bootOrder == DeviceType_USB)295 {296 if (details == VMINFO_MACHINEREADABLE)297 RTPrintf("bootdevice-%d=\"usb\"\n", i);298 else299 RTPrintf("Boot Device (%d): USB\n", i);300 }301 else if (bootOrder == DeviceType_SharedFolder)302 {303 if (details == VMINFO_MACHINEREADABLE)304 RTPrintf("bootdevice-%d=\"sharedfolder\"\n", i);305 else306 RTPrintf("Boot Device (%d): Shared Folder\n", i);307 }308 else309 {310 if (details == VMINFO_MACHINEREADABLE)311 RTPrintf("bootdevice-%d=\"null\"\n", i);312 else313 RTPrintf("Boot Device (%d): Not Assigned\n", i);314 }315 }316 257 317 258 BOOL acpiEnabled;
Note:
See TracChangeset
for help on using the changeset viewer.