- Timestamp:
- Dec 3, 2008 10:39:39 AM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r14904 r14934 3405 3405 if (mData->mSession.mState == SessionState_Open || 3406 3406 mData->mSession.mState == SessionState_Closing) 3407 return setError ( E_ACCESSDENIED,3407 return setError (VBOX_E_INVALID_OBJECT_STATE, 3408 3408 tr ("A session for the machine '%ls' is currently open " 3409 3409 "(or being closed)"), … … 3413 3413 AssertReturn (mData->mMachineState < MachineState_Running, E_FAIL); 3414 3414 3415 /* get the ses ion PID */3415 /* get the session PID */ 3416 3416 RTPROCESS pid = NIL_RTPROCESS; 3417 3417 AssertCompile (sizeof (ULONG) == sizeof (RTPROCESS)); … … 3473 3473 LogFlowThisFunc (("AssignMachine() returned %08X\n", rc)); 3474 3474 3475 /* The failure may w/o any error info (from RPC), so provide one */3475 /* The failure may occur w/o any error info (from RPC), so provide one */ 3476 3476 if (FAILED (rc)) 3477 setError ( rc,3478 tr ("Failed to assign the machine to the session "));3477 setError (VBOX_E_VM_ERROR, 3478 tr ("Failed to assign the machine to the session (%Rrc)"), rc); 3479 3479 3480 3480 if (SUCCEEDED (rc) && origState == SessionState_Spawning) … … 3493 3493 } 3494 3494 3495 /* assign machine & console to the remote ses ion */3495 /* assign machine & console to the remote session */ 3496 3496 if (SUCCEEDED (rc)) 3497 3497 { … … 3505 3505 LogFlowThisFunc (("AssignRemoteMachine() returned %08X\n", rc)); 3506 3506 3507 /* The failure may w/o any error info (from RPC), so provide one */3507 /* The failure may occur w/o any error info (from RPC), so provide one */ 3508 3508 if (FAILED (rc)) 3509 setError ( rc,3510 tr ("Failed to assign the machine to the remote session "));3509 setError (VBOX_E_VM_ERROR, 3510 tr ("Failed to assign the machine to the remote session (%Rrc)"), rc); 3511 3511 } 3512 3512 … … 3522 3522 } 3523 3523 3524 /* finalize spawning a myway (this is why we don't return on errors above) */3524 /* finalize spawning anyway (this is why we don't return on errors above) */ 3525 3525 if (mData->mSession.mState == SessionState_Spawning) 3526 3526 { … … 3612 3612 mData->mSession.mState == SessionState_Spawning || 3613 3613 mData->mSession.mState == SessionState_Closing) 3614 return setError ( E_ACCESSDENIED,3614 return setError (VBOX_E_INVALID_OBJECT_STATE, 3615 3615 tr ("A session for the machine '%ls' is currently open " 3616 3616 "(or being opened or closed)"), … … 3689 3689 if (type == "gui" || type == "GUI/Qt4") 3690 3690 { 3691 # ifdef RT_OS_DARWIN /* Avoid La nuch Services confusing this with the selector by using a helper app. */3691 # ifdef RT_OS_DARWIN /* Avoid Launch Services confusing this with the selector by using a helper app. */ 3692 3692 const char VirtualBox_exe[] = "../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM"; 3693 3693 # else … … 3794 3794 3795 3795 if (RT_FAILURE (vrc)) 3796 return setError ( E_FAIL,3796 return setError (VBOX_E_IPRT_ERROR, 3797 3797 tr ("Could not launch a process for the machine '%ls' (%Rrc)"), 3798 3798 mUserData->mName.raw(), vrc); … … 3818 3818 /* restore the session state */ 3819 3819 mData->mSession.mState = SessionState_Closed; 3820 /* The failure may w/o any error info (from RPC), so provide one */3821 return setError ( rc,3822 tr ("Failed to assign the machine to the session "));3820 /* The failure may occur w/o any error info (from RPC), so provide one */ 3821 return setError (VBOX_E_VM_ERROR, 3822 tr ("Failed to assign the machine to the session (%Rrc)"), rc); 3823 3823 } 3824 3824 … … 3857 3857 3858 3858 if (mData->mSession.mState != SessionState_Open) 3859 return setError ( E_ACCESSDENIED,3859 return setError (VBOX_E_INVALID_SESSION_STATE, 3860 3860 tr ("The machine '%ls' does not have an open session"), 3861 3861 mUserData->mName.raw()); … … 3872 3872 if (FAILED (rc)) 3873 3873 { 3874 /* The failure may w/o any error info (from RPC), so provide one */3875 return setError ( rc,3876 tr ("Failed to get a console object from the direct session "));3874 /* The failure may occur w/o any error info (from RPC), so provide one */ 3875 return setError (VBOX_E_VM_ERROR, 3876 tr ("Failed to get a console object from the direct session (%Rrc)"), rc); 3877 3877 } 3878 3878 … … 3895 3895 LogFlowThisFunc (("AssignRemoteMachine() returned %08X\n", rc)); 3896 3896 3897 /* The failure may w/o any error info (from RPC), so provide one */3897 /* The failure may occur w/o any error info (from RPC), so provide one */ 3898 3898 if (FAILED (rc)) 3899 return setError ( rc,3900 tr ("Failed to assign the machine to the session "));3899 return setError (VBOX_E_VM_ERROR, 3900 tr ("Failed to assign the machine to the session (%Rrc)"), rc); 3901 3901 3902 3902 alock.enter(); … … 3907 3907 aControl->Uninitialize(); 3908 3908 3909 return setError ( E_ACCESSDENIED,3909 return setError (VBOX_E_INVALID_SESSION_STATE, 3910 3910 tr ("The machine '%ls' does not have an open session"), 3911 3911 mUserData->mName.raw()); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r14931 r14934 1207 1207 CheckComRCReturnRC (autoCaller.rc()); 1208 1208 1209 HRESULT rc = E_FAIL;1209 HRESULT rc = VBOX_E_FILE_ERROR; 1210 1210 1211 1211 Guid id = aId; … … 1281 1281 CheckComRCReturnRC (autoCaller.rc()); 1282 1282 1283 HRESULT rc = E_FAIL;1283 HRESULT rc = VBOX_E_FILE_ERROR; 1284 1284 1285 1285 Guid id = aId; … … 1305 1305 STDMETHODIMP VirtualBox::GetFloppyImage (INPTR GUIDPARAM aId, 1306 1306 IFloppyImage2 **aFloppyImage) 1307 1307 1308 { 1308 1309 if (!aFloppyImage) … … 1487 1488 1488 1489 if (aKey != NULL) 1489 return setError ( E_FAIL,1490 return setError (VBOX_E_OBJECT_NOT_FOUND, 1490 1491 tr ("Could not find the extra data key '%ls'"), aKey); 1491 1492 } … … 1641 1642 else 1642 1643 { 1643 /* an old value does for sure exist here (XML schema1644 * guarantees that "value" may not absent in the1645 * <ExtraDataItem> element) */1644 /* An old value does for sure exist here (XML schema 1645 * guarantees that "value" may not be absent in the 1646 * <ExtraDataItem> element). */ 1646 1647 Assert (!extraDataItemNode.isNull()); 1647 1648 extraDataItemNode.zap(); … … 1689 1690 1690 1691 if (state != SessionState_Closed) 1691 return setError ( E_INVALIDARG,1692 return setError (VBOX_E_INVALID_OBJECT_STATE, 1692 1693 tr ("The given session is already open or being opened")); 1693 1694 … … 1743 1744 1744 1745 if (state != SessionState_Closed) 1745 return setError ( E_INVALIDARG,1746 return setError (VBOX_E_INVALID_OBJECT_STATE, 1746 1747 tr ("The given session is already open or being opened")); 1747 1748 … … 1798 1799 1799 1800 if (state != SessionState_Closed) 1800 return setError ( E_INVALIDARG,1801 return setError (VBOX_E_INVALID_OBJECT_STATE, 1801 1802 tr ("The given session is already open or being opened")); 1802 1803 … … 2603 2604 * 2604 2605 * @return 2605 * S_OK when found or E_INVALIDARGwhen not found2606 * S_OK when found or VBOX_E_OBJECT_NOT_FOUND when not found 2606 2607 * 2607 2608 * @note Locks this object for reading. … … 2632 2633 } 2633 2634 2634 HRESULT rc = found ? S_OK : E_INVALIDARG;2635 HRESULT rc = found ? S_OK : VBOX_E_OBJECT_NOT_FOUND; 2635 2636 2636 2637 if (aSetError && !found) 2637 2638 { 2638 setError (VBOX_E_ FILE_ERROR,2639 setError (VBOX_E_OBJECT_NOT_FOUND, 2639 2640 tr ("Could not find a registered machine with UUID {%RTuuid}"), 2640 2641 aId.raw()); … … 2747 2748 int vrc = calculateFullPath (Utf8Str (aLocation), location); 2748 2749 if (RT_FAILURE (vrc)) 2749 return setError ( E_FAIL,2750 return setError (VBOX_E_FILE_ERROR, 2750 2751 tr ("Invalid image file location '%ls' (%Rrc)"), 2751 2752 aLocation, vrc); … … 2774 2775 } 2775 2776 2776 HRESULT rc = found ? S_OK : E_INVALIDARG;2777 HRESULT rc = found ? S_OK : VBOX_E_OBJECT_NOT_FOUND; 2777 2778 2778 2779 if (aSetError && !found) … … 2819 2820 int vrc = calculateFullPath (Utf8Str (aLocation), location); 2820 2821 if (RT_FAILURE (vrc)) 2821 return setError ( E_FAIL,2822 return setError (VBOX_E_FILE_ERROR, 2822 2823 tr ("Invalid image file location '%ls' (%Rrc)"), 2823 2824 aLocation, vrc); … … 2846 2847 } 2847 2848 2848 HRESULT rc = found ? S_OK : E_INVALIDARG;2849 HRESULT rc = found ? S_OK : VBOX_E_OBJECT_NOT_FOUND; 2849 2850 2850 2851 if (aSetError && !found) … … 3143 3144 HRESULT rc = S_OK; 3144 3145 3145 /* serialize file access (prevent concurrent reads and writes) */3146 /* serialize file access (prevents concurrent reads and writes) */ 3146 3147 AutoWriteLock alock (this); 3147 3148 … … 3470 3471 if (!conflict.isNull()) 3471 3472 { 3472 return setError (VBOX_E_ FILE_ERROR,3473 return setError (VBOX_E_INVALID_OBJECT_STATE, 3473 3474 tr ("Cannot register the CD/DVD image '%ls' with UUID {%RTuuid} " 3474 3475 "because a %s already exists in the media registry ('%ls')"), … … 3571 3572 if (!conflict.isNull()) 3572 3573 { 3573 return setError ( E_INVALIDARG,3574 return setError (VBOX_E_INVALID_OBJECT_STATE, 3574 3575 tr ("Cannot register the floppy image '%ls' with UUID {%RTuuid} " 3575 3576 "because a %s already exists in the media registry ('%ls')"), … … 3809 3810 throw; 3810 3811 3811 return setError ( E_FAIL,3812 return setError (VBOX_E_FILE_ERROR, 3812 3813 tr ("Could not load the settings file '%s' (%Rrc)"), 3813 3814 aFile.uri(), err.rc()); … … 3820 3821 throw; 3821 3822 3822 return setError ( E_FAIL,3823 return setError (VBOX_E_XML_ERROR, 3823 3824 tr ("Could not load the settings file '%s'.\n%s"), 3824 3825 aFile.uri(), … … 3860 3861 { 3861 3862 /* this is the only expected exception for now */ 3862 return setError ( E_FAIL,3863 return setError (VBOX_E_FILE_ERROR, 3863 3864 tr ("Could not save the settings file '%s' (%Rrc)"), 3864 3865 aFile.uri(), err.rc()); … … 3901 3902 3902 3903 if (RT_FAILURE (vrc)) 3903 return setError ( E_FAIL,3904 return setError (VBOX_E_IPRT_ERROR, 3904 3905 tr ("Could not copy the settings file '%s' to '%s' (%Rrc)"), 3905 3906 of.raw(), nf.raw(), vrc); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r14931 r14934 322 322 </result> 323 323 324 <result name="VBOX_E_XML_ERROR" value="0x80BB000A"> 325 <desc> 326 Invalid XML found. 327 </desc> 328 </result> 329 330 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B"> 331 <desc> 332 Current session state prohibits operation. 333 </desc> 334 </result> 335 324 336 <!-- 325 337 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore … … 1787 1799 </note> 1788 1800 1789 <result name="VBOX_E_ FILE_ERROR">1790 Image conflicts with anotherin the media registry.1801 <result name="VBOX_E_INVALID_OBJECT_STATE"> 1802 CD/DVD image already exists in the media registry. 1791 1803 </result> 1792 1804 … … 1816 1828 installation, i.e. it must be previously opened by <link 1817 1829 to="#openDVDImage()"/>, or mounted to some known virtual machine. 1830 1831 <result name="VBOX_E_OBJECT_NOT_FOUND"> 1832 No matching DVD image found in the media registry. 1833 </result> 1834 1818 1835 </desc> 1819 1836 <param name="id" type="uuid" dir="in"> … … 1835 1852 The search is done by comparing the value of the @a location argument to 1836 1853 the <link to="IMedium::location"/> attribute of each known CD/DVD image. 1854 1855 The requested location can be a path relative to the 1856 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If 1857 only a file name without any path is given, the 1858 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk 1859 folder</link> will be prepended to the file name before searching. Note 1860 that on case sensitive file systems, a case sensitive comparison is 1861 performed, otherwise the case in the file path is ignored. 1862 1863 <result name="VBOX_E_FILE_ERROR"> 1864 Invalid image file location. 1865 </result> 1866 <result name="VBOX_E_OBJECT_NOT_FOUND"> 1867 No matching DVD image found in the media registry. 1868 </result> 1869 1870 </desc> 1871 <param name="location" type="wstring" dir="in"> 1872 <desc>CD/DVD image file path to look for.</desc> 1873 </param> 1874 <param name="image" type="IDVDImage2" dir="return"> 1875 <desc>Found CD/DVD image object.</desc> 1876 </param> 1877 </method> 1878 1879 <method name="openFloppyImage"> 1880 <desc> 1881 Opens a floppy image contained in the specified file of the supported 1882 format and assigns it the given UUID. 1883 1884 After the image is successfully opened by this method, it gets 1885 remembered by (known to) this VirtualBox installation and will be 1886 accessible through <link to="#getFloppyImage()"/> and 1887 <link to="#findFloppyImage()"/> methods. Remembered images are also 1888 returned as part of the <link to="#floppyImages"/> array and can be 1889 mounted to virtual machines. See IMedium for more details. 1890 1891 See <link to="IMedium::location"/> to get more details about the format 1892 of the location string. 1893 1894 <result name="VBOX_E_FILE_ERROR"> 1895 Floppy image specified by @a location not accessible. 1896 </result> 1897 <result name="VBOX_E_INVALID_OBJECT_STATE"> 1898 Floppy image already exists in the media registry. 1899 </result> 1900 1901 <note> 1902 Currently, only raw floppy images are supported by VirtualBox. 1903 </note> 1904 </desc> 1905 <param name="location" type="wstring" dir="in"> 1906 <desc> 1907 Full path to the file that contains a valid floppy image. 1908 </desc> 1909 </param> 1910 <param name="id" type="uuid" dir="in"> 1911 <desc> 1912 UUID to assign to the given image file within this VirtualBox 1913 installation. If an empty (null) UUID is specified, the system will 1914 randomly generate a new UUID. 1915 </desc> 1916 </param> 1917 <param name="image" type="IFloppyImage2" dir="return"> 1918 <desc>Opened floppy image object.</desc> 1919 </param> 1920 </method> 1921 1922 <method name="getFloppyImage"> 1923 <desc> 1924 Returns a floppy image with the given UUID. 1925 1926 The image with the given UUID must be known to this VirtualBox 1927 installation, i.e. it must be previously opened by <link 1928 to="#openFloppyImage()"/>, or mounted to some known virtual machine. 1929 1930 <result name="VBOX_E_OBJECT_NOT_FOUND"> 1931 No matching floppy image found in the media registry. 1932 </result> 1933 1934 </desc> 1935 <param name="id" type="uuid" dir="in"> 1936 <desc>UUID of the image to look for.</desc> 1937 </param> 1938 <param name="image" type="IFloppyImage2" dir="return"> 1939 <desc>Found floppy image object.</desc> 1940 </param> 1941 </method> 1942 1943 <method name="findFloppyImage"> 1944 <desc> 1945 Returns a floppy image with the given image location. 1946 1947 The image with the given UUID must be known to this VirtualBox 1948 installation, i.e. it must be previously opened by <link 1949 to="#openFloppyImage()"/>, or mounted to some known virtual machine. 1950 1951 The search is done by comparing the value of the @a location argument to 1952 the <link to="IMedium::location"/> attribute of each known floppy image. 1837 1953 1838 1954 The requested location can be a path relative to the … … 1843 1959 that on case sensitive file systems, a case sensitive comparison is 1844 1960 performed, otherwise the case of symbols in the file path is ignored. 1845 </desc> 1846 <param name="location" type="wstring" dir="in"> 1847 <desc>CD/DVD image file path to look for.</desc> 1848 </param> 1849 <param name="image" type="IDVDImage2" dir="return"> 1850 <desc>Found CD/DVD image object.</desc> 1851 </param> 1852 </method> 1853 1854 <method name="openFloppyImage"> 1855 <desc> 1856 Opens a floppy image contained in the specified file of the supported 1857 format and assigns it the given UUID. 1858 1859 After the image is successfully opened by this method, it gets 1860 remembered by (known to) this VirtualBox installation and will be 1861 accessible through <link to="#getFloppyImage()"/> and 1862 <link to="#findFloppyImage()"/> methods. Remembered images are also 1863 returned as part of the <link to="#floppyImages"/> array and can be 1864 mounted to virtual machines. See IMedium for more details. 1865 1866 See <link to="IMedium::location"/> to get more details about the format 1867 of the location string. 1868 1869 <note> 1870 Currently, only raw floppy images are supported by VirtualBox. 1871 </note> 1872 </desc> 1873 <param name="location" type="wstring" dir="in"> 1874 <desc> 1875 Full path to the file that contains a valid floppy image. 1876 </desc> 1877 </param> 1878 <param name="id" type="uuid" dir="in"> 1879 <desc> 1880 UUID to assign to the given image file within this VirtualBox 1881 installation. If an empty (null) UUID is specified, the system will 1882 randomly generate a new UUID. 1883 </desc> 1884 </param> 1885 <param name="image" type="IFloppyImage2" dir="return"> 1886 <desc>Opened floppy image object.</desc> 1887 </param> 1888 </method> 1889 1890 <method name="getFloppyImage"> 1891 <desc> 1892 Returns a floppy image with the given UUID. 1893 1894 The image with the given UUID must be known to this VirtualBox 1895 installation, i.e. it must be previously opened by <link 1896 to="#openFloppyImage()"/>, or mounted to some known virtual machine. 1897 </desc> 1898 <param name="id" type="uuid" dir="in"> 1899 <desc>UUID of the image to look for.</desc> 1900 </param> 1901 <param name="image" type="IFloppyImage2" dir="return"> 1902 <desc>Found floppy image object.</desc> 1903 </param> 1904 </method> 1905 1906 <method name="findFloppyImage"> 1907 <desc> 1908 Returns a floppy image with the given image location. 1909 1910 The image with the given UUID must be known to this VirtualBox 1911 installation, i.e. it must be previously opened by <link 1912 to="#openFloppyImage()"/>, or mounted to some known virtual machine. 1913 1914 The search is done by comparing the value of the @a location argument to 1915 the <link to="IMedium::location"/> attribute of each known floppy image. 1916 1917 The requested location can be a path relative to the 1918 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If 1919 only a file name without any path is given, the 1920 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk 1921 folder</link> will be prepended to the file name before searching. Note 1922 that on case sensitive file systems, a case sensitive comparison is 1923 performed, otherwise the case of symbols in the file path is ignored. 1961 1962 <result name="VBOX_E_FILE_ERROR"> 1963 Invalid image file location. 1964 </result> 1965 <result name="VBOX_E_OBJECT_NOT_FOUND"> 1966 No matching floppy image found in the media registry. 1967 </result> 1968 1924 1969 </desc> 1925 1970 <param name="location" type="wstring" dir="in"> … … 1945 1990 <link to="IGuestOSType::id"/> attribute which contains an identifier of 1946 1991 the guest OS this object describes. 1992 1993 <result name="E_INVALIDARG"> 1994 @a id is not a valid Guest OS type. 1995 </result> 1996 1947 1997 </desc> 1948 1998 <param name="id" type="wstring" dir="in"> … … 1960 2010 folders and starts sharing it. Refer to the description of 1961 2011 <link to="ISharedFolder"/> to read more about logical names. 2012 <note> 2013 In the current implementation, this operation is not 2014 implemented. 2015 </note> 1962 2016 </desc> 1963 2017 <param name="name" type="wstring" dir="in"> … … 1977 2031 created by <link to="#createSharedFolder"/> from the collection of 1978 2032 shared folders and stops sharing it. 2033 <note> 2034 In the current implementation, this operation is not 2035 implemented. 2036 </note> 1979 2037 </desc> 1980 2038 <param name="name" type="wstring" dir="in"> … … 1992 2050 nextKey (if there is any). @a nextValue is an optional parameter and 1993 2051 if supplied, the next key's value is returned in it. 2052 2053 <result name="VBOX_E_OBJECT_NOT_FOUND"> 2054 Extra data @a key not found. 2055 </result> 2056 1994 2057 </desc> 1995 2058 <param name="key" type="wstring" dir="in"> … … 2010 2073 If the requested data @a key does not exist, this function will 2011 2074 succeed and return @c NULL in the @a value argument. 2075 2076 <result name="VBOX_E_FILE_ERROR"> 2077 Settings file not accessible. 2078 </result> 2079 <result name="VBOX_E_XML_ERROR"> 2080 Could not parse the settings file. 2081 </result> 2082 2012 2083 </desc> 2013 2084 <param name="key" type="wstring" dir="in"> … … 2039 2110 change. 2040 2111 </note> 2112 2113 <result name="VBOX_E_FILE_ERROR"> 2114 Settings file not accessible. 2115 </result> 2116 <result name="VBOX_E_XML_ERROR"> 2117 Could not parse the settings file. 2118 </result> 2119 <result name="E_ACCESSDENIED"> 2120 Modification request refused. 2121 </result> 2122 2041 2123 </desc> 2042 2124 <param name="key" type="wstring" dir="in"> … … 2099 2181 <li>Close the session by calling <link to="ISession::close()"/>.</li> 2100 2182 </ol> 2183 2184 <result name="E_UNEXPECTED"> 2185 Virtual machine not registered. 2186 </result> 2187 <result name="E_ACCESSDENIED"> 2188 Process not started by OpenRemoteSession. 2189 </result> 2190 <result name="VBOX_E_INVALID_OBJECT_STATE"> 2191 Session already open or being opened. 2192 </result> 2193 <result name="VBOX_E_VM_ERROR"> 2194 Failed to assign machine to session. 2195 </result> 2196 2101 2197 </desc> 2102 2198 <param name="session" type="ISession" dir="in"> … … 2127 2223 that such prevent conflicting changes, one cannot open a remote session 2128 2224 for a VM that already has another open session (direct or remote), or 2129 is currently in the process of opening one (see <link to="IMachine::sessionState"/>). 2225 is currently in the process of opening one (see <link 2226 to="IMachine::sessionState"/>). 2130 2227 2131 2228 While the remote session still provides some level of control over the … … 2174 2271 2175 2272 <see>openExistingSession</see> 2273 2274 <result name="E_UNEXPECTED"> 2275 Virtual machine not registered. 2276 </result> 2277 <result name="E_INVALIDARG"> 2278 Invalid session type @a type. 2279 </result> 2280 <result name="VBOX_E_OBJECT_NOT_FOUND"> 2281 No machine matching @a machineId found. 2282 </result> 2283 <result name="VBOX_E_INVALID_OBJECT_STATE"> 2284 Session already open or being opened. 2285 </result> 2286 <result name="VBOX_E_IPRT_ERROR"> 2287 Launching process for machine failed. 2288 </result> 2289 <result name="VBOX_E_VM_ERROR"> 2290 Failed to assign machine to session. 2291 </result> 2292 2176 2293 </desc> 2177 2294 <param name="session" type="ISession" dir="in"> … … 2217 2334 doesn't have an open direct session. 2218 2335 </note> 2336 2337 <result name="E_UNEXPECTED"> 2338 Virtual machine not registered. 2339 </result> 2340 <result name="VBOX_E_OBJECT_NOT_FOUND"> 2341 No machine matching @a machineId found. 2342 </result> 2343 <result name="VBOX_E_INVALID_OBJECT_STATE"> 2344 Session already open or being opened. 2345 </result> 2346 <result name="VBOX_E_INVALID_SESSION_STATE"> 2347 Direct session state not Open. 2348 </result> 2349 <result name="VBOX_E_VM_ERROR"> 2350 Failed to get console object from direct session or assign 2351 machine to session. 2352 </result> 2219 2353 2220 2354 <see>openRemoteSession</see> … … 2241 2375 callback object will be called by VirtualBox when an appropriate 2242 2376 event occurs. 2377 2378 <result name="E_INVALIDARG"> 2379 Registering a @c NULL @a callback is pretty pointless, ain't it? 2380 <!-- See if someone is actually reading this and objects :-) --> 2381 </result> 2382 2243 2383 </desc> 2244 2384 <param name="callback" type="IVirtualBoxCallback" dir="in"> … … 2250 2390 <desc> 2251 2391 Unregisters the previously registered global VirtualBox callback. 2392 2393 <result name="E_INVALIDARG"> 2394 Specified @a callback not registered. 2395 </result> 2396 2252 2397 </desc> 2253 2398 <param name="callback" type="IVirtualBoxCallback" dir="in"> … … 2324 2469 </table> 2325 2470 2471 <note> 2472 This function is not implemented in the current version of the 2473 product. 2474 </note> 2326 2475 </desc> 2327 2476 <param name="what" type="wstring" dir="in"> … … 2355 2504 Normally, the global settings file is implicitly saved when a global 2356 2505 setting is changed. 2506 2507 <result name="VBOX_E_FILE_ERROR"> 2508 Settings file not accessible. 2509 </result> 2510 <result name="VBOX_E_XML_ERROR"> 2511 Could not parse the settings file. 2512 </result> 2513 2357 2514 </desc> 2358 2515 </method> … … 2398 2555 2399 2556 <see>settingsFileVersion</see> 2557 2558 <result name="VBOX_E_FILE_ERROR"> 2559 Settings file not accessible. 2560 </result> 2561 <result name="VBOX_E_XML_ERROR"> 2562 Could not parse the settings file. 2563 </result> 2564 <result name="VBOX_E_IPRT_ERROR"> 2565 Could not copy the settings file. 2566 </result> 2567 2400 2568 </desc> 2401 2569 <param name="bakFileName" type="wstring" dir="return">
Note:
See TracChangeset
for help on using the changeset viewer.