Changeset 40548 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 20, 2012 9:20:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r40470 r40548 1166 1166 RTPrintf("Keyboard Device: %s\n", pszHid); 1167 1167 1168 /* get the maximum amount of UARTs */1169 1168 ComPtr<ISystemProperties> sysProps; 1170 1169 virtualBox->COMGETTER(SystemProperties)(sysProps.asOutParam()); 1171 1170 1171 /* get the maximum amount of UARTs */ 1172 1172 ULONG maxUARTs = 0; 1173 1173 sysProps->COMGETTER(SerialPortCount)(&maxUARTs); … … 1178 1178 if (SUCCEEDED(rc) && uart) 1179 1179 { 1180 /* show the config of this UART */ 1180 1181 BOOL fEnabled; 1181 1182 uart->COMGETTER(Enabled)(&fEnabled); … … 1242 1243 } 1243 1244 1245 /* get the maximum amount of LPTs */ 1246 ULONG maxLPTs = 0; 1247 sysProps->COMGETTER(ParallelPortCount)(&maxLPTs); 1248 for (ULONG currentLPT = 0; currentLPT < maxLPTs; currentLPT++) 1249 { 1250 ComPtr<IParallelPort> lpt; 1251 rc = machine->GetParallelPort(currentLPT, lpt.asOutParam()); 1252 if (SUCCEEDED(rc) && lpt) 1253 { 1254 /* show the config of this LPT */ 1255 BOOL fEnabled; 1256 lpt->COMGETTER(Enabled)(&fEnabled); 1257 if (!fEnabled) 1258 { 1259 if (details == VMINFO_MACHINEREADABLE) 1260 RTPrintf("lpt%d=\"off\"\n", currentLPT + 1); 1261 else 1262 RTPrintf("LPT %d: disabled\n", currentLPT + 1); 1263 } 1264 else 1265 { 1266 ULONG ulIRQ, ulIOBase; 1267 PortMode_T HostMode; 1268 Bstr path; 1269 BOOL fServer; 1270 lpt->COMGETTER(IRQ)(&ulIRQ); 1271 lpt->COMGETTER(IOBase)(&ulIOBase); 1272 lpt->COMGETTER(Path)(path.asOutParam()); 1273 1274 if (details == VMINFO_MACHINEREADABLE) 1275 RTPrintf("lpt%d=\"%#06x,%d\"\n", currentLPT + 1, 1276 ulIOBase, ulIRQ); 1277 else 1278 RTPrintf("LPT %d: I/O base: %#06x, IRQ: %d", 1279 currentLPT + 1, ulIOBase, ulIRQ); 1280 if (details == VMINFO_MACHINEREADABLE) 1281 RTPrintf("lptmode%d=\"%ls\"\n", currentLPT + 1, 1282 path.raw()); 1283 else 1284 RTPrintf(", attached to device '%ls'\n", path.raw()); 1285 } 1286 } 1287 } 1288 1244 1289 ComPtr<IAudioAdapter> AudioAdapter; 1245 1290 rc = machine->COMGETTER(AudioAdapter)(AudioAdapter.asOutParam());
Note:
See TracChangeset
for help on using the changeset viewer.