Changeset 14786 in vbox for trunk/src/VBox
- Timestamp:
- Nov 28, 2008 3:17:42 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r14778 r14786 1630 1630 1631 1631 HRESULT rc = VBOX_SUCCESS (vrc) ? S_OK : 1632 setError ( E_FAIL,1632 setError (VBOX_E_PDM_ERROR, 1633 1633 tr ("Checking if the ACPI Power Button event was handled by the " 1634 1634 "guest OS failed (%Rrc)"), vrc); … … 1655 1655 1656 1656 if (mMachineState != MachineState_Running) 1657 return E_FAIL; 1657 return setError (VBOX_E_INVALID_VM_STATE, 1658 tr ("Cannot get guest ACPI mode as it is " 1659 "not running (machine state: %d)"), mMachineState); 1658 1660 1659 1661 /* protect mpVM */ … … 1731 1733 mMachineState != MachineState_Paused) 1732 1734 { 1733 return setError ( E_FAIL,1735 return setError (VBOX_E_INVALID_VM_STATE, 1734 1736 tr ("Cannot save the execution state as the machine " 1735 1737 "is not running (machine state: %d)"), mMachineState); … … 1798 1800 if (VBOX_FAILURE (vrc)) 1799 1801 { 1800 rc = setError ( E_FAIL,1802 rc = setError (VBOX_E_FILE_ERROR, 1801 1803 tr ("Could not create a directory '%s' to save the state to (%Rrc)"), 1802 1804 dir.raw(), vrc); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r14783 r14786 4719 4719 <method name="getPowerButtonHandled"> 4720 4720 <desc>Checks if the last power button event was handled by guest. 4721 <result name="VBOX_E_PDM_ERROR"> 4722 Checking if the event was handled by the guest OS failed. 4723 </result> 4721 4724 </desc> 4722 4725 <param name="handled" type="boolean" dir="return"/> … … 4726 4729 <desc>Checks if the guest entered the ACPI mode G0 (working) or 4727 4730 G1 (sleeping). If this method returns false, the guest will 4728 most likely not respond to external ACPI events.</desc> 4731 most likely not respond to external ACPI events. 4732 <result name="VBOX_E_INVALID_VM_STATE"> 4733 Virtual machine not in Running state. 4734 </result> 4735 </desc> 4729 4736 <param name="entered" type="boolean" dir="return"/> 4730 4737 </method> … … 4751 4758 settings (including runtime changes to the DVD drive, etc.). 4752 4759 Together with the impossibility to change any VM settings when it is 4753 in the Saved state, this guarantees theadequate hardware4760 in the Saved state, this guarantees adequate hardware 4754 4761 configuration of the machine when it is restored from the saved 4755 4762 state file. … … 4760 4767 the operation will fail. 4761 4768 </note> 4769 <result name="VBOX_E_INVALID_VM_STATE"> 4770 Virtual machine state neither Running nor Paused. 4771 </result> 4772 <result name="VBOX_E_FILE_ERROR"> 4773 Failed to create directory for saved state file. 4774 </result> 4762 4775 4763 4776 <see><link to="#takeSnapshot"/></see> … … 4777 4790 created. 4778 4791 4779 The specified saved state file path may be fullor relative to the4792 The specified saved state file path may be absolute or relative to the 4780 4793 folder the VM normally saves the state to (usually, 4781 4794 <link to="IMachine::snapshotFolder"/>). … … 4788 4801 is undefined. 4789 4802 </note> 4803 <result name="VBOX_E_INVALID_VM_STATE"> 4804 Virtual machine state neither PoweredOff nor Aborted. 4805 </result> 4790 4806 </desc> 4791 4807 <param name="savedStateFile" type="wstring" dir="in"> … … 4803 4819 the machine without doing a proper shutdown in the guest OS. 4804 4820 </note> 4821 <result name="VBOX_E_INVALID_VM_STATE"> 4822 Virtual machine not in state Saved. 4823 </result> 4805 4824 </desc> 4806 4825 </method>
Note:
See TracChangeset
for help on using the changeset viewer.