- Timestamp:
- Dec 1, 2008 11:09:19 AM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r14846 r14849 2264 2264 if (mMachineState > MachineState_Paused) 2265 2265 { 2266 return setError ( E_FAIL,2266 return setError (VBOX_E_INVALID_VM_STATE, 2267 2267 tr ("Cannot take a snapshot of the machine " 2268 2268 "while it is changing the state (machine state: %d)"), … … 2434 2434 2435 2435 if (mMachineState >= MachineState_Running) 2436 return setError ( E_FAIL,2436 return setError (VBOX_E_INVALID_VM_STATE, 2437 2437 tr ("Cannot discard a snapshot of the running machine " 2438 2438 "(machine state: %d)"), … … 2455 2455 2456 2456 if (mMachineState >= MachineState_Running) 2457 return setError ( E_FAIL,2457 return setError (VBOX_E_INVALID_VM_STATE, 2458 2458 tr ("Cannot discard the current state of the running machine " 2459 2459 "(nachine state: %d)"), … … 2476 2476 2477 2477 if (mMachineState >= MachineState_Running) 2478 return setError ( E_FAIL,2478 return setError (VBOX_E_INVALID_VM_STATE, 2479 2479 tr ("Cannot discard the current snapshot and state of the " 2480 2480 "running machine (machine state: %d)"), -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r14846 r14849 4955 4955 4956 4956 <see>ISnapshot, <link to="#saveState"/></see> 4957 <result name="VBOX_E_INVALID_VM_STATE"> 4958 Virtual machine currently changing state. 4959 </result> 4957 4960 </desc> 4958 4961 <param name="name" type="wstring" dir="in"> … … 5049 5052 make all current machine settings permanent. 5050 5053 </note> 5054 <result name="VBOX_E_INVALID_VM_STATE"> 5055 Virtual machine is running. 5056 </result> 5051 5057 </desc> 5052 5058 <param name="id" type="uuid" dir="in"> … … 5085 5091 </note> 5086 5092 5093 <result name="VBOX_E_INVALID_VM_STATE"> 5094 Virtual machine is running. 5095 </result> 5087 5096 </desc> 5088 5097 <param name="progress" type="IProgress" dir="return"> … … 5129 5138 5130 5139 <note> 5131 This method is more efficient than calling twoabove5140 This method is more efficient than calling both of the above 5132 5141 methods separately: it requires less IPC calls and provides 5133 5142 a single progress object. 5134 5143 </note> 5135 5144 5145 <result name="VBOX_E_INVALID_VM_STATE"> 5146 Virtual machine is running. 5147 </result> 5136 5148 </desc> 5137 5149 <param name="progress" type="IProgress" dir="return"> … … 5153 5165 Unregisters the console callback previously registered using 5154 5166 <link to="#registerCallback"/>. 5167 <result name="E_INVALIDARG"> 5168 Given @a callback handler is not registered. 5169 </result> 5155 5170 </desc> 5156 5171 <param name="callback" type="IConsoleCallback" dir="in"/>
Note:
See TracChangeset
for help on using the changeset viewer.