Lines Matching defs:machine

58 HRESULT readAndChangeMachineSettings(IMachine *machine, IMachine *readonlyMachine = 0)
63 RTPrintf("Getting machine name...\n");
64 CHECK_ERROR_RET(machine, COMGETTER(Name)(name.asOutParam()), rc);
67 RTPrintf("Getting machine GUID...\n");
69 CHECK_ERROR(machine, COMGETTER(Id)(guid.asOutParam()));
78 CHECK_ERROR_RET(machine, COMGETTER(MemorySize)(&memorySize), rc);
82 RTPrintf("Getting machine state...\n");
83 CHECK_ERROR_RET(machine, COMGETTER(State)(&machineState), rc);
88 CHECK_ERROR(machine, COMGETTER(SettingsModified)(&modified));
94 CHECK_ERROR(machine, COMSETTER(MemorySize)(memorySizeBig));
99 CHECK_ERROR_RET(machine, COMGETTER(SettingsModified)(&modified), rc);
105 CHECK_ERROR_RET(machine, COMGETTER(MemorySize)(&memorySizeGot), rc);
111 RTPrintf("Getting memory size of the counterpart readonly machine...\n");
119 CHECK_ERROR_RET(machine, DiscardSettings(), rc);
121 CHECK_ERROR_RET(machine, COMGETTER(SettingsModified)(&modified), rc);
126 CHECK_ERROR_RET(machine, COMGETTER(MemorySize)(&memorySizeGot), rc);
132 CHECK_ERROR_RET(machine, COMSETTER(MemorySize)(memorySize), rc);
137 CHECK_ERROR_RET(machine, COMGETTER(Description)(desc.asOutParam()), rc);
142 CHECK_ERROR_RET(machine, COMSETTER(Description)(desc.raw()), rc);
144 RTPrintf("Saving machine settings...\n");
145 CHECK_ERROR(machine, SaveSettings());
149 CHECK_ERROR_RET(machine, COMGETTER(SettingsModified)(&modified), rc);
154 RTPrintf("Getting memory size of the counterpart readonly machine...\n");
165 CHECK_ERROR_RET(machine, GetExtraData(extraDataKey.raw(), extraData.asOutParam()), rc);
178 CHECK_ERROR(machine, SetExtraData(extraDataKey.raw(), extraData.raw()));
182 CHECK_ERROR_RET(machine, GetExtraData(extraDataKey.raw(), extraData.asOutParam()), rc);
527 ComPtr<IMachine> machine;
528 rc = session->COMGETTER(Machine)(machine.asOutParam());
690 // access the machine in read-only mode
694 ComPtr<IMachine> machine;
696 RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
697 CHECK_ERROR_BREAK(virtualBox, FindMachine(name, machine.asOutParam()));
698 RTPrintf("Accessing the machine in read-only mode:\n");
699 readAndChangeMachineSettings(machine);
708 machine->COMSETTER(ExtraData)(L"VBoxSDL/SecureLabel", secureLabel);
717 // create a new machine (w/o registering it)
721 ComPtr<IMachine> machine;
729 RTPrintf("Creating a new machine object(base dir '%ls', name '%ls')...\n",
733 machine.asOutParam()));
736 CHECK_ERROR_BREAK(machine, COMGETTER(Name)(name.asOutParam()));
741 CHECK_ERROR_BREAK(machine, COMGETTER(SettingsModified)(&modified));
748 CHECK_ERROR_BREAK(machine, COMSETTER(Name)(name));
751 CHECK_ERROR_BREAK(machine, COMSETTER(MemorySize)(111));
755 CHECK_ERROR_BREAK(machine, COMSETTER(Description)(desc));
761 RTPrintf("Saving new machine settings...\n");
762 CHECK_ERROR_BREAK(machine, SaveSettings());
764 RTPrintf("Accessing the newly created machine:\n");
765 readAndChangeMachineSettings(machine);
1021 ComPtr<IMachine> machine;
1023 RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
1024 CHECK_ERROR_BREAK(virtualBox, FindMachine(name, machine.asOutParam()));
1026 CHECK_RC_BREAK(machine->COMGETTER(Id)(guid.asOutParam()));
1027 RTPrintf("Opening a session for this machine...\n");
1031 RTPrintf("Getting machine session object...\n");
1033 RTPrintf("Accessing the machine within the session:\n");
1034 readAndChangeMachineSettings(sessionMachine, machine);
1056 RTPrintf("Discarding the current machine state...\n");
1087 ComPtr<IMachine> machine;
1089 RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
1090 CHECK_RC_BREAK(virtualBox->FindMachine(name, machine.asOutParam()));
1092 CHECK_RC_BREAK(machine->COMGETTER(Id)(guid.asOutParam()));
1093 RTPrintf("Opening a remote session for this machine...\n");
1100 RTPrintf("Getting machine session object...\n");
1121 ComPtr<IMachine> machine;
1123 RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
1124 CHECK_RC_BREAK(virtualBox->FindMachine(name, machine.asOutParam()));
1126 CHECK_RC_BREAK(machine->COMGETTER(Id)(guid.asOutParam()));
1127 RTPrintf("Opening an existing remote session for this machine...\n");
1130 RTPrintf("Getting machine session object...\n");
1261 // Note that one needs to set up metrics after a session is open for a machine.
1297 // Get machine
1298 ComPtr<IMachine> machine;
1301 RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
1302 CHECK_ERROR_BREAK(virtualBox, FindMachine(name.raw(), machine.asOutParam()));
1307 CHECK_ERROR_BREAK(machine, LaunchVMProcess(session, sessionType.raw(),
1313 // RTPrintf("Getting machine session object...\n");
1317 // Note that one needs to set up metrics after a session is open for a machine.
1321 //machine.queryInterfaceTo(&objects[1]);
1360 machine.queryInterfaceTo(&vmObject[0]);
1501 // Get machine
1502 ComPtr<IMachine> machine;
1506 RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
1507 CHECK_ERROR_BREAK(virtualBox, FindMachine(name.raw(), machine.asOutParam()));
1509 CHECK_ERROR_BREAK(machine, LockMachine(session, LockType_Shared));
1518 /* get the mutable session machine */
1519 session->COMGETTER(Machine)(machine.asOutParam());
1520 CHECK_ERROR_BREAK(machine, COMGETTER(BandwidthControl)(bwCtrl.asOutParam()));
1527 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(0, nic.asOutParam()));
1530 CHECK_ERROR_BREAK(machine, SaveSettings());
1536 // Get machine
1537 ComPtr<IMachine> machine;
1542 RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
1543 CHECK_ERROR_BREAK(virtualBox, FindMachine(name.raw(), machine.asOutParam()));
1545 CHECK_ERROR_BREAK(machine, LockMachine(session, LockType_Shared));
1546 /* get the mutable session machine */
1547 session->COMGETTER(Machine)(machine.asOutParam());
1548 CHECK_ERROR_BREAK(machine, COMGETTER(BandwidthControl)(bwCtrl.asOutParam()));
1549 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(0, nic.asOutParam()));
1568 CHECK_ERROR_BREAK(machine, SaveSettings());
1654 ComPtr<IMachine> machine = aObject;
1655 if (!machine.isNull())
1658 CHECK_ERROR(machine, COMGETTER(Name)(name.asOutParam()));