VirtualBox

source: vbox/trunk/src/VBox/Main/idl/VirtualBox.xidl@ 28675

Last change on this file since 28675 was 28669, checked in by vboxsync, 15 years ago

Main: declare some methods const

  • Property svn:eol-style set to native
File size: 527.0 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2010 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
130
131#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
132# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
133 NS_IMPL_THREADSAFE_ADDREF(_class) \
134 NS_IMPL_THREADSAFE_RELEASE(_class) \
135 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
136 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
137#endif
138
139#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
140# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
141 NS_IMPL_THREADSAFE_ADDREF(_class) \
142 NS_IMPL_THREADSAFE_RELEASE(_class) \
143 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
144 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
145#endif
146
147#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
148# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
149 NS_IMPL_THREADSAFE_ADDREF(_class) \
150 NS_IMPL_THREADSAFE_RELEASE(_class) \
151 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
152 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
157 NS_INTERFACE_MAP_BEGIN(_class) \
158 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
160 NS_IMPL_QUERY_CLASSINFO(_class) \
161 NS_INTERFACE_MAP_END
162#endif
163
164#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
165# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
166 _i2, _ic2) \
167 NS_INTERFACE_MAP_BEGIN(_class) \
168 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
169 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
170 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
171 NS_IMPL_QUERY_CLASSINFO(_class) \
172 NS_INTERFACE_MAP_END
173#endif
174
175#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
176# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
177 _i2, _ic2, _i3, _ic3) \
178 NS_INTERFACE_MAP_BEGIN(_class) \
179 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
180 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
181 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
182 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
183 NS_IMPL_QUERY_CLASSINFO(_class) \
184 NS_INTERFACE_MAP_END
185#endif
186
187#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
188#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
189#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
190
191#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
192# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
193 NS_IMPL_THREADSAFE_ADDREF(_class) \
194 NS_IMPL_THREADSAFE_RELEASE(_class) \
195 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
196 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
197#endif
198
199#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
200# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
201 _i2, _ic2) \
202 NS_IMPL_THREADSAFE_ADDREF(_class) \
203 NS_IMPL_THREADSAFE_RELEASE(_class) \
204 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
205 _i2, _ic2) \
206 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
207#endif
208
209#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
210# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
211 _i2, _ic2, _i3, _ic3) \
212 NS_IMPL_THREADSAFE_ADDREF(_class) \
213 NS_IMPL_THREADSAFE_RELEASE(_class) \
214 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
215 _i2, _ic2, _i3, _ic3) \
216 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
217#endif
218
219 </cpp>
220</if>
221
222<library
223 name="VirtualBox"
224 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
225 version="1.3"
226 desc="VirtualBox Type Library"
227 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
228 supportsErrorInfo="yes"
229>
230
231
232 <!--
233 // COM result codes for VirtualBox
234 /////////////////////////////////////////////////////////////////////////
235 -->
236
237 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
238 <desc>
239 This section describes all VirtualBox-specific COM result codes that may
240 be returned by methods of VirtualBox COM interfaces in addition to
241 standard COM result codes.
242
243 Note that along with the result code, every VirtualBox method returns
244 extended error information through the IVirtualBoxErrorInfo interface on
245 failure. This interface is a preferred way to present the error to the end
246 user because it contains a human readable description of the error. Raw
247 result codes, both standard and described in this section, are intended to
248 be used by programs to analyze the reason of a failure and select an
249 appropriate course of action without involving the end user (for example,
250 retry the operation later or make a different call).
251
252 The standard COM result codes that may originate from our methods include:
253
254 <table>
255 <tr><td>E_INVALIDARG</td>
256 <td>
257 Returned when the value of the method's argument is not within the range
258 of valid values. This should not be confused with situations when the
259 value is within the range but simply doesn't suit the current object
260 state and there is a possibility that it will be accepted later (in such
261 cases VirtualBox-specific codes are returned, for example,
262 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
263 </td>
264 </tr>
265 <tr><td>E_POINTER</td>
266 <td>
267 Returned if a memory pointer for the output argument is invalid (for
268 example, @c null). Note that when pointers representing input
269 arguments (such as strings) are invalid, E_INVALIDARG is returned.
270 </td>
271 </tr>
272 <tr><td>E_ACCESSDENIED</td>
273 <td>
274 Returned when the called object is not ready. Since the lifetime of a
275 public COM object cannot be fully controlled by the implementation,
276 VirtualBox maintains the readiness state for all objects it creates and
277 returns this code in response to any method call on the object that was
278 deactivated by VirtualBox and is not functioning any more.
279 </td>
280 </tr>
281 <tr><td>E_OUTOFMEMORY</td>
282 <td>
283 Returned when a memory allocation operation fails.
284 </td>
285 </tr>
286 </table>
287 </desc>
288 </descGroup>
289
290 <!--
291 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
292 everything in <result>/<desc> after (and including) the first dot, so express
293 the matter of the error code in the first sentence and keep it short.
294 -->
295
296 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
297 <desc>
298 Object corresponding to the supplied arguments does not exist.
299 </desc>
300 </result>
301
302 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
303 <desc>
304 Current virtual machine state prevents the operation.
305 </desc>
306 </result>
307
308 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
309 <desc>
310 Virtual machine error occurred attempting the operation.
311 </desc>
312 </result>
313
314 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
315 <desc>
316 File not accessible or erroneous file contents.
317 </desc>
318 </result>
319
320 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
321 <desc>
322 Runtime subsystem error.
323 </desc>
324 </result>
325
326 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
327 <desc>
328 Pluggable Device Manager error.
329 </desc>
330 </result>
331
332 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
333 <desc>
334 Current object state prohibits operation.
335 </desc>
336 </result>
337
338 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
339 <desc>
340 Host operating system related error.
341 </desc>
342 </result>
343
344 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
345 <desc>
346 Requested operation is not supported.
347 </desc>
348 </result>
349
350 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
351 <desc>
352 Invalid XML found.
353 </desc>
354 </result>
355
356 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
357 <desc>
358 Current session state prohibits operation.
359 </desc>
360 </result>
361
362 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
363 <desc>
364 Object being in use prohibits operation.
365 </desc>
366 </result>
367
368 <!--
369 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
370 everything in <result>/<desc> after (and including) the first dot, so express
371 the matter of the error code in the first sentence and keep it short.
372 -->
373
374 <descGroup/>
375
376 <!--
377 // all common enums
378 /////////////////////////////////////////////////////////////////////////
379 -->
380
381 <enum name="SettingsVersion"
382 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
383 >
384 <desc>Settings version of VirtualBox settings files. This is written to
385 the "version" attribute of the root "VirtualBox" element in the settings
386 file XML and indicates which VirtualBox version wrote the file.
387 </desc>
388
389 <const name="Null" value="0">
390 <desc>Null value, indicates invalid version.</desc>
391 </const>
392 <const name="v1_0" value="1">
393 <desc>Legacy settings version, not currently supported.</desc>
394 </const>
395 <const name="v1_1" value="2">
396 <desc>Legacy settings version, not currently supported.</desc>
397 </const>
398 <const name="v1_2" value="3">
399 <desc>Legacy settings version, not currently supported.</desc>
400 </const>
401 <const name="v1_3pre" value="4">
402 <desc>Legacy settings version, not currently supported.</desc>
403 </const>
404 <const name="v1_3" value="5">
405 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
406 <!--
407 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
408 -->
409 </const>
410 <const name="v1_4" value="6">
411 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
412 <!--
413 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
414 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
415 -->
416 </const>
417 <const name="v1_5" value="7">
418 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
419 <!-- 2008-09-04: 2.0.0 released
420 2008-11-20: settings version 1.5 introduced
421 2008-12-17: 2.1.0 released
422 Machine changes:
423 guest OS identifiers changed;
424 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
425 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
426 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
427 -->
428 </const>
429 <const name="v1_6" value="8">
430 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
431 <!-- 2008-12-17: 2.1.0 released
432 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
433 2009-04-08: 2.2.0 released
434 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
435 -->
436 </const>
437 <const name="v1_7" value="9">
438 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
439 <!-- 2008-12-17: 2.1.0 released
440 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
441 2009-04-08: 2.2.0 released
442 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
443 Machine changes: HardDiskAttachments is now StorageControllers (done)
444 -->
445 </const>
446 <const name="v1_8" value="10">
447 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
448 <!-- Machine additions: Display/@accelerate2DVideo (done)
449 -->
450 </const>
451 <const name="v1_9" value="11">
452 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
453 <!-- The big storage controller / DVD / Floppy rework (done)
454 -->
455 </const>
456 <const name="v1_10" value="12">
457 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
458 <!-- Machine changes: RTC localOrUTC (done)
459 CPU hot-plug support
460 -->
461 </const>
462 <const name="Future" value="13">
463 <desc>Settings version greater than "1.10", written by a future VirtualBox version.</desc>
464 </const>
465 </enum>
466
467 <enum
468 name="AccessMode"
469 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
470 >
471 <desc>
472 Access mode for opening files.
473 </desc>
474
475 <const name="ReadOnly" value="1"/>
476 <const name="ReadWrite" value="2"/>
477 </enum>
478
479 <enum
480 name="MachineState"
481 uuid="36518cf6-cdf0-4d0d-ad2a-5ee9c60c7494"
482 >
483 <desc>
484 Virtual machine execution state.
485
486 This enumeration represents possible values of the <link
487 to="IMachine::state"/> attribute.
488
489 Below is the basic virtual machine state diagram. It shows how the state
490 changes during virtual machine execution. The text in square braces shows
491 a method of the IConsole interface that performs the given state
492 transition.
493
494 <pre>
495 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
496 V |
497 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
498 | | | | V |
499 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
500 | | ^ | ^ |
501 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
502 | ^ | | | |
503 | | +-----------------------------------------+-|-------------------+ +
504 | | | | |
505 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
506 | | | |
507 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
508 | | |
509 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
510 </pre>
511
512 Note that states to the right from PoweredOff, Aborted and Saved in the
513 above diagram are called <i>online VM states</i>. These states
514 represent the virtual machine which is being executed in a dedicated
515 process (usually with a GUI window attached to it where you can see the
516 activity of the virtual machine and interact with it). There are two
517 special pseudo-states, FirstOnline and LastOnline, that can be used in
518 relational expressions to detect if the given machine state is online or
519 not:
520
521 <pre>
522 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
523 machine.GetState() &lt;= MachineState_LastOnline)
524 {
525 ...the machine is being executed...
526 }
527 </pre>
528
529 When the virtual machine is in one of the online VM states (that is, being
530 executed), only a few machine settings can be modified. Methods working
531 with such settings contain an explicit note about that. An attempt to
532 change any oter setting or perform a modifying operation during this time
533 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
534
535 All online states except Running, Paused and Stuck are transitional: they
536 represent temporary conditions of the virtual machine that will last as
537 long as the operation that initiated such a condition.
538
539 The Stuck state is a special case. It means that execution of the machine
540 has reached the "Guru Meditation" condition. This condition indicates an
541 internal VMM (virtual machine manager) failure which may happen as a
542 result of either an unhandled low-level virtual hardware exception or one
543 of the recompiler exceptions (such as the <i>too-many-traps</i>
544 condition).
545
546 Note also that any online VM state may transit to the Aborted state. This
547 happens if the process that is executing the virtual machine terminates
548 unexpectedly (for example, crashes). Other than that, the Aborted state is
549 equivalent to PoweredOff.
550
551 There are also a few additional state diagrams that do not deal with
552 virtual machine execution and therefore are shown separately. The states
553 shown on these diagrams are called <i>offline VM states</i> (this includes
554 PoweredOff, Aborted and Saved too).
555
556 The first diagram shows what happens when a lengthy setup operation is
557 being executed (such as <link to="IMachine::attachDevice"/>).
558
559 <pre>
560 +----------------------------------(same state as before the call)------+
561 | |
562 +-&gt; PoweredOff --+ |
563 | | |
564 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
565 | |
566 +-&gt; Saved -------+
567 </pre>
568
569 The next two diagrams demonstrate the process of taking a snapshot of a
570 powered off virtual machine, restoring the state to that as of a snapshot
571 or deleting a snapshot, respectively.
572
573 <pre>
574 +----------------------------------(same state as before the call)------+
575 | |
576 +-&gt; PoweredOff --+ |
577 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
578 +-&gt; Aborted -----+
579
580 +-&gt; PoweredOff --+
581 | |
582 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
583 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
584 +-&gt; Saved -------+ |
585 | |
586 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
587 </pre>
588
589 Note that the Saving state is present in both the offline state group and
590 online state group. Currently, the only way to determine what group is
591 assumed in a particular case is to remember the previous machine state: if
592 it was Running or Paused, then Saving is an online state, otherwise it is
593 an offline state. This inconsistency may be removed in one of the future
594 versions of VirtualBox by adding a new state.
595
596 <note internal="yes">
597 For whoever decides to touch this enum: In order to keep the
598 comparisons involving FirstOnline and LastOnline pseudo-states valid,
599 the numeric values of these states must be correspondingly updated if
600 needed: for any online VM state, the condition
601 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
602 @c true. The same relates to transient states for which
603 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
604 @c true.
605 </note>
606 </desc>
607
608 <const name="Null" value="0">
609 <desc>Null value (never used by the API).</desc>
610 </const>
611 <const name="PoweredOff" value="1">
612 <desc>
613 The machine is not running and has no saved execution state; it has
614 either never been started or been shut down successfully.
615 </desc>
616 </const>
617 <const name="Saved" value="2">
618 <desc>
619 The machine is not currently running, but the execution state of the machine
620 has been saved to an external file when it was running, from where
621 it can be resumed.
622 </desc>
623 </const>
624 <const name="Teleported" value="3">
625 <desc>
626 The machine was teleported to a different host (or process) and then
627 powered off. Take care when powering it on again may corrupt resources
628 it shares with the teleportation target (e.g. disk and network).
629 </desc>
630 </const>
631 <const name="Aborted" value="4">
632 <desc>
633 The process running the machine has terminated abnormally. This may
634 indicate a crash of the VM process in host execution context, or
635 the VM process has been terminated externally.
636 </desc>
637 </const>
638 <const name="Running" value="5">
639 <desc>
640 The machine is currently being executed.
641 <note internal="yes">
642 For whoever decides to touch this enum: In order to keep the
643 comparisons in the old source code valid, this state must immediately
644 precede the Paused state.
645 TODO: Lift this spectacularly wonderful restriction.
646 </note>
647 </desc>
648 </const>
649 <const name="Paused" value="6">
650 <desc>
651 Execution of the machine has been paused.
652 <note internal="yes">
653 For whoever decides to touch this enum: In order to keep the
654 comparisons in the old source code valid, this state must immediately
655 follow the Running state.
656 TODO: Lift this spectacularly wonderful restriction.
657 </note>
658 </desc>
659 </const>
660 <const name="Stuck" value="7">
661 <desc>
662 Execution of the machine has reached the "Guru Meditation"
663 condition. This indicates a severe error in the hypervisor itself.
664 <note internal="yes">
665 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
666 "Guru", perhaps? Or are there some other VMM states that are
667 intended to be lumped in here as well?
668 </note>
669 </desc>
670 </const>
671 <const name="Teleporting" value="8">
672 <desc>
673 The machine is about to be teleported to a different host or process.
674 It is possible to pause a machine in this state, but it will go to the
675 <link to="MachineState::PausedTeleporting"/> state and it will not be
676 possible to resume it again unless the teleportation fails.
677 </desc>
678 </const>
679 <const name="LiveSnapshotting" value="9">
680 <desc>
681 A live snapshot is being taken. The machine is running normally, but
682 some of the runtime configuration options are inaccessible. Also, if
683 paused while in this state it will transition to
684 <link to="MachineState::Saving"/> and it will not be resume the
685 execution until the snapshot operation has completed.
686 </desc>
687 </const>
688 <const name="Starting" value="10">
689 <desc>
690 Machine is being started after powering it on from a
691 zero execution state.
692 </desc>
693 </const>
694 <const name="Stopping" value="11">
695 <desc>
696 Machine is being normally stopped powering it off, or after the guest OS
697 has initiated a shutdown sequence.
698 </desc>
699 </const>
700 <const name="Saving" value="12">
701 <desc>
702 Machine is saving its execution state to a file, or an online
703 snapshot of the machine is being taken.
704 </desc>
705 </const>
706 <const name="Restoring" value="13">
707 <desc>
708 Execution state of the machine is being restored from a file
709 after powering it on from the saved execution state.
710 </desc>
711 </const>
712 <const name="TeleportingPausedVM" value="14">
713 <desc>
714 The machine is being teleported to another host or process, but it is
715 not running. This is the paused variant of the
716 <link to="MachineState::Teleporting"/> state.
717 </desc>
718 </const>
719 <const name="TeleportingIn" value="15">
720 <desc>
721 Teleporting the machine state in from another host or process.
722 </desc>
723 </const>
724 <const name="RestoringSnapshot" value="16">
725 <desc>
726 A machine snapshot is being restored; this typically does not take long.
727 </desc>
728 </const>
729 <const name="DeletingSnapshot" value="17">
730 <desc>
731 A machine snapshot is being deleted; this can take a long time since this
732 may require merging differencing media.
733 </desc>
734 </const>
735 <const name="SettingUp" value="18">
736 <desc>
737 Lengthy setup operation is in progress.
738 </desc>
739 </const>
740
741 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
742 <desc>
743 Pseudo-state: first online state (for use in relational expressions).
744 </desc>
745 </const>
746 <const name="LastOnline" value="13" wsmap="suppress"> <!-- TeleportingIn -->
747 <desc>
748 Pseudo-state: last online state (for use in relational expressions).
749 </desc>
750 </const>
751
752 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
753 <desc>
754 Pseudo-state: first transient state (for use in relational expressions).
755 </desc>
756 </const>
757 <const name="LastTransient" value="18" wsmap="suppress"> <!-- SettingUp -->
758 <desc>
759 Pseudo-state: last transient state (for use in relational expressions).
760 </desc>
761 </const>
762
763 </enum>
764
765 <enum
766 name="SessionState"
767 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
768 >
769 <desc>
770 Session state. This enumeration represents possible values of
771 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
772 attributes. See individual enumerator descriptions for the meaning for
773 every value.
774 </desc>
775
776 <const name="Null" value="0">
777 <desc>Null value (never used by the API).</desc>
778 </const>
779 <const name="Closed" value="1">
780 <desc>
781 The machine has no open sessions (<link to="IMachine::sessionState"/>);
782 the session is closed (<link to="ISession::state"/>)
783 </desc>
784 </const>
785 <const name="Open" value="2">
786 <desc>
787 The machine has an open direct session (<link to="IMachine::sessionState"/>);
788 the session is open (<link to="ISession::state"/>)
789 </desc>
790 </const>
791 <const name="Spawning" value="3">
792 <desc>
793 A new (direct) session is being opened for the machine as a result of
794 <link to="IVirtualBox::openRemoteSession"/> call
795 (<link to="IMachine::sessionState"/> or <link to="ISession::state"/>).
796 This state also occurs as a short transient state when a new direct
797 session is opened by calling <link to="IVirtualBox::openSession"/>.
798 </desc>
799 </const>
800 <const name="Closing" value="4">
801 <desc>
802 The direct session is being closed (<link to="IMachine::sessionState"/>);
803 the session is being closed (<link to="ISession::state"/>)
804 </desc>
805 </const>
806 </enum>
807
808 <enum
809 name="CPUPropertyType"
810 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
811 >
812 <desc>
813 Virtual CPU property type. This enumeration represents possible values of the
814 IMachine get- and setCPUProperty methods.
815 </desc>
816 <const name="Null" value="0">
817 <desc>Null value (never used by the API).</desc>
818 </const>
819 <const name="PAE" value="1">
820 <desc>
821 This setting determines whether VirtualBox will expose the Physical Address
822 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
823 is not available, it will not be reported.
824 </desc>
825 </const>
826 <const name="Synthetic" value="2">
827 <desc>
828 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
829 teleporting between host systems that differ significantly.
830 </desc>
831 </const>
832 </enum>
833
834
835 <enum
836 name="HWVirtExPropertyType"
837 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
838 >
839 <desc>
840 Hardware virtualization property type. This enumeration represents possible values
841 for the <link to="IMachine::getHWVirtExProperty"/> and
842 <link to="IMachine::setHWVirtExProperty"/> methods.
843 </desc>
844 <const name="Null" value="0">
845 <desc>Null value (never used by the API).</desc>
846 </const>
847 <const name="Enabled" value="1">
848 <desc>
849 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
850 such extensions are not available, they will not be used.
851 </desc>
852 </const>
853 <const name="Exclusive" value="2">
854 <desc>
855 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
856 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
857 feature of the host. To share these with other hypervisors, you must disable this property.
858 </desc>
859 </const>
860 <const name="VPID" value="3">
861 <desc>
862 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
863 </desc>
864 </const>
865 <const name="NestedPaging" value="4">
866 <desc>
867 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
868 </desc>
869 </const>
870 <const name="LargePages" value="5">
871 <desc>
872 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
873 </desc>
874 </const>
875 </enum>
876
877 <enum
878 name="SessionType"
879 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
880 >
881 <desc>
882 Session type. This enumeration represents possible values of the
883 <link to="ISession::type"/> attribute.
884 </desc>
885
886 <const name="Null" value="0">
887 <desc>Null value (never used by the API).</desc>
888 </const>
889 <const name="Direct" value="1">
890 <desc>
891 Direct session
892 (opened by <link to="IVirtualBox::openSession"/>)
893 </desc>
894 </const>
895 <const name="Remote" value="2">
896 <desc>
897 Remote session
898 (opened by <link to="IVirtualBox::openRemoteSession"/>)
899 </desc>
900 </const>
901 <const name="Existing" value="3">
902 <desc>
903 Existing session
904 (opened by <link to="IVirtualBox::openExistingSession"/>)
905 </desc>
906 </const>
907 </enum>
908
909 <enum
910 name="DeviceType"
911 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
912 >
913 <desc>
914 Device type.
915 </desc>
916 <const name="Null" value="0">
917 <desc>
918 Null value, may also mean "no device" (not allowed for
919 <link to="IConsole::getDeviceActivity"/>).
920 </desc>
921 </const>
922 <const name="Floppy" value="1">
923 <desc>Floppy device.</desc>
924 </const>
925 <const name="DVD" value="2">
926 <desc>CD/DVD-ROM device.</desc>
927 </const>
928 <const name="HardDisk" value="3">
929 <desc>Hard disk device.</desc>
930 </const>
931 <const name="Network" value="4">
932 <desc>Network device.</desc>
933 </const>
934 <const name="USB" value="5">
935 <desc>USB device.</desc>
936 </const>
937 <const name="SharedFolder" value="6">
938 <desc>Shared folder device.</desc>
939 </const>
940 </enum>
941
942 <enum
943 name="DeviceActivity"
944 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
945 >
946 <desc>
947 Device activity for <link to="IConsole::getDeviceActivity"/>.
948 </desc>
949
950 <const name="Null" value="0"/>
951 <const name="Idle" value="1"/>
952 <const name="Reading" value="2"/>
953 <const name="Writing" value="3"/>
954 </enum>
955
956 <enum
957 name="ClipboardMode"
958 uuid="33364716-4008-4701-8f14-be0fa3d62950"
959 >
960 <desc>
961 Host-Guest clipboard interchange mode.
962 </desc>
963
964 <const name="Disabled" value="0"/>
965 <const name="HostToGuest" value="1"/>
966 <const name="GuestToHost" value="2"/>
967 <const name="Bidirectional" value="3"/>
968 </enum>
969
970 <enum
971 name="Scope"
972 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
973 >
974 <desc>
975 Scope of the operation.
976
977 A generic enumeration used in various methods to define the action or
978 argument scope.
979 </desc>
980
981 <const name="Global" value="0"/>
982 <const name="Machine" value="1"/>
983 <const name="Session" value="2"/>
984 </enum>
985
986 <enum
987 name="BIOSBootMenuMode"
988 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
989 >
990 <desc>
991 BIOS boot menu mode.
992 </desc>
993
994 <const name="Disabled" value="0"/>
995 <const name="MenuOnly" value="1"/>
996 <const name="MessageAndMenu" value="2"/>
997 </enum>
998
999 <enum
1000 name="ProcessorFeature"
1001 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1002 >
1003 <desc>
1004 CPU features.
1005 </desc>
1006
1007 <const name="HWVirtEx" value="0"/>
1008 <const name="PAE" value="1"/>
1009 <const name="LongMode" value="2"/>
1010 <const name="NestedPaging" value="3"/>
1011 </enum>
1012
1013 <enum
1014 name="FirmwareType"
1015 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1016 >
1017 <desc>
1018 Firmware type.
1019 </desc>
1020 <const name="BIOS" value="1">
1021 <desc>BIOS Firmware.</desc>
1022 </const>
1023 <const name="EFI" value="2">
1024 <desc>EFI Firmware, bitness detetced basing on OS type.</desc>
1025 </const>
1026 <const name="EFI32" value="3">
1027 <desc>Efi firmware, 32-bit.</desc>
1028 </const>
1029 <const name="EFI64" value="4">
1030 <desc>Efi firmware, 64-bit.</desc>
1031 </const>
1032 <const name="EFIDUAL" value="5">
1033 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1034 </const>
1035 </enum>
1036
1037 <enum
1038 name="PointingHidType"
1039 uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
1040 >
1041 <desc>
1042 Type of pointing device used in a virtual machine.
1043 </desc>
1044 <const name="None" value="1">
1045 <desc>No mouse.</desc>
1046 </const>
1047 <const name="PS2Mouse" value="2">
1048 <desc>PS/2 auxillary device, a.k.a. mouse.</desc>
1049 </const>
1050 <const name="USBMouse" value="3">
1051 <desc>USB mouse (relative pointer).</desc>
1052 </const>
1053 <const name="USBTablet" value="4">
1054 <desc>USB tablet (absolute pointer).</desc>
1055 </const>
1056 <const name="ComboMouse" value="5">
1057 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1058 Using of such device can have negative performance implications. </desc>
1059 </const>
1060 </enum>
1061
1062 <enum
1063 name="KeyboardHidType"
1064 uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
1065 >
1066 <desc>
1067 Type of keyboard device used in a virtual machine.
1068 </desc>
1069 <const name="None" value="1">
1070 <desc>No keyboard.</desc>
1071 </const>
1072 <const name="PS2Keyboard" value="2">
1073 <desc>PS/2 keyboard.</desc>
1074 </const>
1075 <const name="USBKeyboard" value="3">
1076 <desc>USB keyboard.</desc>
1077 </const>
1078 <const name="ComboKeyboard" value="4">
1079 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1080 Using of such device can have negative performance implications. </desc>
1081 </const>
1082 </enum>
1083
1084 <enum
1085 name="IoMgrType"
1086 uuid="35567419-4d2a-4256-a74e-efcae33493a2"
1087 >
1088 <desc>
1089 Type of the I/O manager used for the image files in a virtual machine.
1090 </desc>
1091 <const name="Simple" value="1">
1092 <desc>Simple manager. Normally only used if the default one runs into an
1093 error. </desc>
1094 </const>
1095 <const name="Async" value="2">
1096 <desc>Asynchronous manager using the async I/O API on the host if present.
1097 This is the default manager.</desc>
1098 </const>
1099 </enum>
1100
1101 <enum
1102 name="IoBackendType"
1103 uuid="2a7e16d1-4e6b-4d5d-b0c9-b9bbe6c5b2ad"
1104 >
1105 <desc>
1106 Type of I/O backend used for the image files in a virtual machine.
1107 </desc>
1108 <const name="Buffered" value="1">
1109 <desc>Image files will use the host cache if possible.
1110 This type does not work with the Async I/O manager on Linux hosts.
1111 Default on all hosts except Linux.</desc>
1112 </const>
1113 <const name="Unbuffered" value="2">
1114 <desc>Image files will not use the host cache.
1115 This should be used on OS X and Linux hosts if a high I/O load is expected
1116 or many virtual machines are running to prevent I/O cache
1117 related hangs. Default on Linux hosts.</desc>
1118 </const>
1119 </enum>
1120
1121 <!--
1122 // IVirtualBoxErrorInfo
1123 /////////////////////////////////////////////////////////////////////////
1124 -->
1125
1126 <interface
1127 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1128 uuid="4b86d186-407e-4f9e-8be8-e50061be8725"
1129 supportsErrorInfo="no"
1130 wsmap="managed"
1131 >
1132 <desc>
1133 The IVirtualBoxErrorInfo interface represents extended error information.
1134
1135 Extended error information can be set by VirtualBox components after
1136 unsuccessful or partially successful method invocation. This information
1137 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1138 and then shown to the client in addition to the plain 32-bit result code.
1139
1140 In MS COM, this interface extends the IErrorInfo interface,
1141 in XPCOM, it extends the nsIException interface. In both cases,
1142 it provides a set of common attributes to retrieve error
1143 information.
1144
1145 Sometimes invocation of some component's method may involve methods of
1146 other components that may also fail (independently of this method's
1147 failure), or a series of non-fatal errors may precede a fatal error that
1148 causes method failure. In cases like that, it may be desirable to preserve
1149 information about all errors happened during method invocation and deliver
1150 it to the caller. The <link to="#next"/> attribute is intended
1151 specifically for this purpose and allows to represent a chain of errors
1152 through a single IVirtualBoxErrorInfo object set after method invocation.
1153
1154 Note that errors are stored to a chain in the reverse order, i.e. the
1155 initial error object you query right after method invocation is the last
1156 error set by the callee, the object it points to in the @a next attribute
1157 is the previous error and so on, up to the first error (which is the last
1158 in the chain).
1159 </desc>
1160
1161 <attribute name="resultCode" type="long" readonly="yes">
1162 <desc>
1163 Result code of the error.
1164 Usually, it will be the same as the result code returned
1165 by the method that provided this error information, but not
1166 always. For example, on Win32, CoCreateInstance() will most
1167 likely return E_NOINTERFACE upon unsuccessful component
1168 instantiation attempt, but not the value the component factory
1169 returned. Value is typed 'long', not 'result',
1170 to make interface usable from scripting languages.
1171 <note>
1172 In MS COM, there is no equivalent.
1173 In XPCOM, it is the same as nsIException::result.
1174 </note>
1175 </desc>
1176 </attribute>
1177
1178 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1179 <desc>
1180 UUID of the interface that defined the error.
1181 <note>
1182 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1183 data type.
1184 In XPCOM, there is no equivalent.
1185 </note>
1186 </desc>
1187 </attribute>
1188
1189 <attribute name="component" type="wstring" readonly="yes">
1190 <desc>
1191 Name of the component that generated the error.
1192 <note>
1193 In MS COM, it is the same as IErrorInfo::GetSource.
1194 In XPCOM, there is no equivalent.
1195 </note>
1196 </desc>
1197 </attribute>
1198
1199 <attribute name="text" type="wstring" readonly="yes">
1200 <desc>
1201 Text description of the error.
1202 <note>
1203 In MS COM, it is the same as IErrorInfo::GetDescription.
1204 In XPCOM, it is the same as nsIException::message.
1205 </note>
1206 </desc>
1207 </attribute>
1208
1209 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1210 <desc>
1211 Next error object if there is any, or @c null otherwise.
1212 <note>
1213 In MS COM, there is no equivalent.
1214 In XPCOM, it is the same as nsIException::inner.
1215 </note>
1216 </desc>
1217 </attribute>
1218
1219 </interface>
1220
1221 <interface
1222 name="ILocalOwner" extends="$unknown"
1223 uuid="308FF42A-DC45-49D4-A950-B1EEE5E00BB5" wsmap="suppress"
1224 >
1225 <desc>
1226 The ILocalOwner interface allows to register local objects
1227 (created without COM calls, but with new()).
1228 Once registered, calls to methods of such objects can be made
1229 from remote COM processes.
1230 The main usecase is the event callback implementation where
1231 API clients provide callback objects.
1232 </desc>
1233 <method name="setLocalObject">
1234 <desc>
1235 Set local object.
1236 </desc>
1237 <param name="object" type="$unknown" dir="in">
1238 <desc>Local object to forward requests to.
1239 If null, clears currently set local object.</desc>
1240 </param>
1241 </method>
1242 </interface>
1243
1244 <!--
1245 // IVirtualBox
1246 /////////////////////////////////////////////////////////////////////////
1247 -->
1248
1249 <interface
1250 name="IVirtualBoxCallback" extends="$unknown"
1251 uuid="7f6a65b6-ad5d-4a67-8872-0b11cb7ea95c"
1252 wsmap="suppress"
1253 >
1254
1255 <method name="onMachineStateChange">
1256 <desc>
1257 The execution state of the given machine has changed.
1258 <see>IMachine::state</see>
1259 </desc>
1260 <param name="machineId" type="uuid" mod="string" dir="in">
1261 <desc>ID of the machine this event relates to.</desc>
1262 </param>
1263 <param name="state" type="MachineState" dir="in">
1264 <desc>New execution state.</desc>
1265 </param>
1266 </method>
1267
1268 <method name="onMachineDataChange">
1269 <desc>
1270 Any of the settings of the given machine has changed.
1271 </desc>
1272 <param name="machineId" type="uuid" mod="string" dir="in">
1273 <desc>ID of the machine this event relates to.</desc>
1274 </param>
1275 </method>
1276
1277 <method name="onExtraDataCanChange">
1278 <desc>
1279 Notification when someone tries to change extra data for
1280 either the given machine or (if @c null) global extra data.
1281 This gives the chance to veto against changes.
1282 </desc>
1283 <param name="machineId" type="uuid" mod="string" dir="in">
1284 <desc>
1285 ID of the machine this event relates to
1286 (@c null ID for global extra data change requests).
1287 </desc>
1288 </param>
1289 <param name="key" type="wstring" dir="in">
1290 <desc>
1291 Extra data key for the attempted write.
1292 </desc>
1293 </param>
1294 <param name="value" type="wstring" dir="in">
1295 <desc>
1296 Extra data value for the given key.
1297 </desc>
1298 </param>
1299 <param name="error" type="wstring" dir="out">
1300 <desc>
1301 Optional error message describing the reason of the
1302 veto (ignored if this notification returns @c true).
1303 </desc>
1304 </param>
1305 <param name="allowChange" type="boolean" dir="return">
1306 <desc>
1307 Flag to indicate whether the callee agrees (@c true)
1308 or vetoes against the change (@c false).
1309 </desc>
1310 </param>
1311 </method>
1312
1313 <method name="onExtraDataChange">
1314 <desc>
1315 Notification when machine specific or global extra data
1316 has changed.
1317 </desc>
1318 <param name="machineId" type="uuid" mod="string" dir="in">
1319 <desc>
1320 ID of the machine this event relates to.
1321 Null for global extra data changes.
1322 </desc>
1323 </param>
1324 <param name="key" type="wstring" dir="in">
1325 <desc>
1326 Extra data key that has changed.
1327 </desc>
1328 </param>
1329 <param name="value" type="wstring" dir="in">
1330 <desc>
1331 Extra data value for the given key.
1332 </desc>
1333 </param>
1334 </method>
1335
1336 <method name="onMediumRegistered">
1337 <desc>
1338 The given medium was registered or unregistered
1339 within this VirtualBox installation.
1340
1341 The @a mediumType parameter describes what type of
1342 medium the specified @a mediumId refers to. Possible
1343 values are:
1344
1345 <ul>
1346 <li><link to="DeviceType_HardDisk"/>: the medium is a hard disk
1347 that, if registered, can be obtained using the
1348 <link to="IVirtualBox::getHardDisk"/> call.</li>
1349 <li><link to="DeviceType_DVD"/>: the medium is a CD/DVD image
1350 that, if registered, can be obtained using the
1351 <link to="IVirtualBox::getDVDImage"/> call.</li>
1352 <li><link to="DeviceType_Floppy"/>: the medium is a Floppy image
1353 that, if registered, can be obtained using the
1354 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1355 </ul>
1356
1357 Note that if this is a deregistration notification,
1358 there is no way to access the object representing the
1359 unregistered medium. It is supposed that the
1360 application will do required cleanup based on the
1361 @a mediumId value.
1362 </desc>
1363 <param name="mediumId" type="uuid" mod="string" dir="in">
1364 <desc>ID of the medium this event relates to.</desc>
1365 </param>
1366 <param name="mediumType" type="DeviceType" dir="in">
1367 <desc>Type of the medium this event relates to.</desc>
1368 </param>
1369 <param name="registered" type="boolean" dir="in">
1370 <desc>
1371 If @c true, the medium was registered, otherwise it was
1372 unregistered.
1373 </desc>
1374 </param>
1375 </method>
1376
1377 <method name="onMachineRegistered">
1378 <desc>
1379 The given machine was registered or unregistered
1380 within this VirtualBox installation.
1381 </desc>
1382 <param name="machineId" type="uuid" mod="string" dir="in">
1383 <desc>ID of the machine this event relates to.</desc>
1384 </param>
1385 <param name="registered" type="boolean" dir="in">
1386 <desc>
1387 If @c true, the machine was registered, otherwise it was
1388 unregistered.
1389 </desc>
1390 </param>
1391 </method>
1392
1393 <method name="onSessionStateChange">
1394 <desc>
1395 The state of the session for the given machine was changed.
1396 <see>IMachine::sessionState</see>
1397 </desc>
1398 <param name="machineId" type="uuid" mod="string" dir="in">
1399 <desc>ID of the machine this event relates to.</desc>
1400 </param>
1401 <param name="state" type="SessionState" dir="in">
1402 <desc>New session state.</desc>
1403 </param>
1404 </method>
1405
1406 <method name="onSnapshotTaken">
1407 <desc>
1408 A new snapshot of the machine has been taken.
1409 <see>ISnapshot</see>
1410 </desc>
1411 <param name="machineId" type="uuid" mod="string" dir="in">
1412 <desc>ID of the machine this event relates to.</desc>
1413 </param>
1414 <param name="snapshotId" type="uuid" mod="string" dir="in">
1415 <desc>ID of the new snapshot.</desc>
1416 </param>
1417 </method>
1418
1419 <method name="onSnapshotDeleted">
1420 <desc>
1421 Snapshot of the given machine has been deleted.
1422
1423 <note>
1424 This notification is delivered <b>after</b> the snapshot
1425 object has been uninitialized on the server (so that any
1426 attempt to call its methods will return an error).
1427 </note>
1428
1429 <see>ISnapshot</see>
1430 </desc>
1431 <param name="machineId" type="uuid" mod="string" dir="in">
1432 <desc>ID of the machine this event relates to.</desc>
1433 </param>
1434 <param name="snapshotId" type="uuid" mod="string" dir="in">
1435 <desc>
1436 ID of the deleted snapshot. @c null means the current machine
1437 state has been deleted (restored from the current snapshot).
1438 </desc>
1439 </param>
1440 </method>
1441
1442 <method name="onSnapshotChange">
1443 <desc>
1444 Snapshot properties (name and/or description) have been changed.
1445 <see>ISnapshot</see>
1446 </desc>
1447 <param name="machineId" type="uuid" mod="string" dir="in">
1448 <desc>ID of the machine this event relates to.</desc>
1449 </param>
1450 <param name="snapshotId" type="uuid" mod="string" dir="in">
1451 <desc>ID of the changed snapshot.</desc>
1452 </param>
1453 </method>
1454
1455 <method name="onGuestPropertyChange">
1456 <desc>
1457 Notification when a guest property has changed.
1458 </desc>
1459 <param name="machineId" type="uuid" mod="string" dir="in">
1460 <desc>
1461 ID of the machine this event relates to.
1462 </desc>
1463 </param>
1464 <param name="name" type="wstring" dir="in">
1465 <desc>
1466 The name of the property that has changed.
1467 </desc>
1468 </param>
1469 <param name="value" type="wstring" dir="in">
1470 <desc>
1471 The new property value.
1472 </desc>
1473 </param>
1474 <param name="flags" type="wstring" dir="in">
1475 <desc>
1476 The new property flags.
1477 </desc>
1478 </param>
1479 </method>
1480
1481 </interface>
1482
1483 <interface
1484 name="IDHCPServer" extends="$unknown"
1485 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1486 wsmap="managed"
1487 >
1488 <desc>
1489 The IDHCPServer interface represents the vbox dhcp server configuration.
1490
1491 To enumerate all the dhcp servers on the host, use the
1492 <link to="IVirtualBox::DHCPServers"/> attribute.
1493 </desc>
1494
1495 <attribute name="enabled" type="boolean">
1496 <desc>
1497 specifies if the dhcp server is enabled
1498 </desc>
1499 </attribute>
1500
1501 <attribute name="IPAddress" type="wstring" readonly="yes">
1502 <desc>
1503 specifies server IP
1504 </desc>
1505 </attribute>
1506
1507 <attribute name="networkMask" type="wstring" readonly="yes">
1508 <desc>
1509 specifies server network mask
1510 </desc>
1511 </attribute>
1512
1513 <attribute name="networkName" type="wstring" readonly="yes">
1514 <desc>
1515 specifies internal network name the server is used for
1516 </desc>
1517 </attribute>
1518
1519 <attribute name="lowerIP" type="wstring" readonly="yes">
1520 <desc>
1521 specifies from IP adrres in server address range
1522 </desc>
1523 </attribute>
1524
1525 <attribute name="upperIP" type="wstring" readonly="yes">
1526 <desc>
1527 specifies to IP adrres in server address range
1528 </desc>
1529 </attribute>
1530
1531 <method name="setConfiguration">
1532 <desc>
1533 configures the server
1534 <result name="E_INVALIDARG">
1535 invalid configuration supplied
1536 </result>
1537 </desc>
1538 <param name="IPAddress" type="wstring" dir="in">
1539 <desc>
1540 server IP address
1541 </desc>
1542 </param>
1543 <param name="networkMask" type="wstring" dir="in">
1544 <desc>
1545 server network mask
1546 </desc>
1547 </param>
1548 <param name="FromIPAddress" type="wstring" dir="in">
1549 <desc>
1550 server From IP address for address range
1551 </desc>
1552 </param>
1553 <param name="ToIPAddress" type="wstring" dir="in">
1554 <desc>
1555 server To IP address for address range
1556 </desc>
1557 </param>
1558 </method>
1559
1560 <method name="start">
1561 <desc>
1562 Starts DHCP server process.
1563 <result name="E_FAIL">
1564 Failed to start the process.
1565 </result>
1566 </desc>
1567 <param name="networkName" type="wstring" dir="in">
1568 <desc>
1569 Name of internal network DHCP server should attach to.
1570 </desc>
1571 </param>
1572 <param name="trunkName" type="wstring" dir="in">
1573 <desc>
1574 Name of internal network trunk.
1575 </desc>
1576 </param>
1577 <param name="trunkType" type="wstring" dir="in">
1578 <desc>
1579 Type of internal network trunk.
1580 </desc>
1581 </param>
1582 </method>
1583
1584 <method name="stop">
1585 <desc>
1586 Stops DHCP server process.
1587 <result name="E_FAIL">
1588 Failed to stop the process.
1589 </result>
1590 </desc>
1591 </method>
1592 </interface>
1593
1594 <interface
1595 name="IVirtualBox" extends="$unknown"
1596 uuid="3f36e024-7fed-4f20-a02c-9158a82b44e6"
1597 wsmap="managed"
1598 >
1599 <desc>
1600 The IVirtualBox interface represents the main interface exposed by the
1601 product that provides virtual machine management.
1602
1603 An instance of IVirtualBox is required for the product to do anything
1604 useful. Even though the interface does not expose this, internally,
1605 IVirtualBox is implemented as a singleton and actually lives in the
1606 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1607 IVirtualBox can track the state of all virtual machines on a particular
1608 host, regardless of which frontend started them.
1609
1610 To enumerate all the virtual machines on the host, use the
1611 <link to="IVirtualBox::machines"/> attribute.
1612 </desc>
1613
1614 <attribute name="version" type="wstring" readonly="yes">
1615 <desc>
1616 A string representing the version number of the product. The
1617 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1618 last number represents the build number and will frequently change.
1619 </desc>
1620 </attribute>
1621
1622 <attribute name="revision" type="unsigned long" readonly="yes">
1623 <desc>
1624 The internal build revision number of the product.
1625 </desc>
1626 </attribute>
1627
1628 <attribute name="packageType" type="wstring" readonly="yes">
1629 <desc>
1630 A string representing the package type of this product. The
1631 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1632 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1633 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1634 this.
1635 </desc>
1636 </attribute>
1637
1638 <attribute name="homeFolder" type="wstring" readonly="yes">
1639 <desc>
1640 Full path to the directory where the global settings file,
1641 <tt>VirtualBox.xml</tt>, is stored.
1642
1643 In this version of VirtualBox, the value of this property is
1644 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1645 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1646 as determined by the host OS), and cannot be changed.
1647
1648 This path is also used as the base to resolve relative paths in
1649 places where relative paths are allowed (unless otherwise
1650 expressly indicated).
1651 </desc>
1652 </attribute>
1653
1654 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1655 <desc>
1656 Full name of the global settings file.
1657 The value of this property corresponds to the value of
1658 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1659 </desc>
1660 </attribute>
1661
1662 <attribute name="host" type="IHost" readonly="yes">
1663 <desc>Associated host object.</desc>
1664 </attribute>
1665
1666 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1667 <desc>Associated system information object.</desc>
1668 </attribute>
1669
1670 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1671 <desc>
1672 Array of machine objects registered within this VirtualBox instance.
1673 </desc>
1674 </attribute>
1675
1676 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1677 <desc>
1678 Array of medium objects known to this VirtualBox installation.
1679
1680 This array contains only base media. All differencing
1681 media of the given base medium can be enumerated using
1682 <link to="IMedium::children"/>.
1683 </desc>
1684 </attribute>
1685
1686 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1687 <desc>
1688 Array of CD/DVD image objects registered with this VirtualBox instance.
1689 </desc>
1690 </attribute>
1691
1692 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1693 <desc>
1694 Array of floppy image objects registered with this VirtualBox instance.
1695 </desc>
1696 </attribute>
1697
1698 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1699
1700 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1701
1702 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1703 <desc>
1704 Collection of global shared folders. Global shared folders are
1705 available to all virtual machines.
1706
1707 New shared folders are added to the collection using
1708 <link to="#createSharedFolder"/>. Existing shared folders can be
1709 removed using <link to="#removeSharedFolder"/>.
1710
1711 <note>
1712 In the current version of the product, global shared folders are not
1713 implemented and therefore this collection is always empty.
1714 </note>
1715 </desc>
1716 </attribute>
1717
1718 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1719 <desc>
1720 Associated performance collector object.
1721 </desc>
1722 </attribute>
1723
1724 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1725 <desc>
1726 dhcp server settings.
1727 </desc>
1728 </attribute>
1729
1730 <method name="createMachine">
1731 <desc>
1732 Creates a new virtual machine.
1733
1734 The new machine is created unregistered, with the initial configuration
1735 set according to the specified guest OS type. A typical sequence of
1736 actions to create a new virtual machine is as follows:
1737
1738 <ol>
1739 <li>
1740 Call this method to have a new machine created. The returned machine
1741 object will be "mutable" allowing to change any machine property.
1742 </li>
1743
1744 <li>
1745 Configure the machine using the appropriate attributes and methods.
1746 </li>
1747
1748 <li>
1749 Call <link to="IMachine::saveSettings" /> to write the settings
1750 to the machine's XML settings file. The configuration of the newly
1751 created machine will not be saved to disk until this method is
1752 called.
1753 </li>
1754
1755 <li>
1756 Call <link to="#registerMachine" /> to add the machine to the list
1757 of machines known to VirtualBox.
1758 </li>
1759 </ol>
1760
1761 You should specify valid name for the newly created machine when calling
1762 this method. See the <link to="IMachine::name"/> attribute description
1763 for more details about the machine name.
1764
1765 The specified guest OS type identifier must match an ID of one of known
1766 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1767 array.
1768
1769 Every machine has a <i>settings file</i> that is used to store
1770 the machine configuration. This file is stored in a directory called the
1771 <i>machine settings subfolder</i>. Both the settings subfolder and file
1772 will have a name that corresponds to the name of the virtual machine.
1773 You can specify where to create the machine setting subfolder using the
1774 @a baseFolder argument. The base folder can be absolute (full path) or
1775 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1776 directory</link>.
1777
1778 If @a baseFolder is a @c null or empty string (which is recommended), the
1779 <link to="ISystemProperties::defaultMachineFolder">default machine
1780 settings folder</link> will be used as a base folder for the created
1781 machine. Otherwise the given base folder will be used. In either case,
1782 the full path to the resulting settings file has the following
1783 structure:
1784 <pre>
1785 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1786 </pre>
1787
1788 Note that if the resulting settings file already exists, this method
1789 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1790
1791 Optionally, you may specify an UUID of to assign to the created machine.
1792 However, this is not recommended and you should normally pass an empty
1793 (@c null) UUID to this method so that a new UUID will be automatically
1794 generated for every created machine. You can use UUID
1795 00000000-0000-0000-0000-000000000000 as @c null value.
1796
1797 <note>
1798 There is no way to change the name of the settings file or
1799 subfolder of the created machine directly.
1800 </note>
1801
1802 <result name="VBOX_E_OBJECT_NOT_FOUND">
1803 @a osTypeId is invalid.
1804 </result>
1805 <result name="VBOX_E_FILE_ERROR">
1806 Resulting settings file name is invalid or the settings file already
1807 exists or could not be created due to an I/O error.
1808 </result>
1809 <result name="E_INVALIDARG">
1810 @a name is empty or @c null.
1811 </result>
1812 </desc>
1813
1814 <param name="name" type="wstring" dir="in">
1815 <desc>Machine name.</desc>
1816 </param>
1817 <param name="osTypeId" type="wstring" dir="in">
1818 <desc>Guest OS Type ID.</desc>
1819 </param>
1820 <param name="baseFolder" type="wstring" dir="in">
1821 <desc>Base machine folder (optional).</desc>
1822 </param>
1823 <param name="id" type="uuid" mod="string" dir="in">
1824 <desc>Machine UUID (optional).</desc>
1825 </param>
1826 <param name="override" type="boolean" dir="in">
1827 <desc>Create the VM even if there are conflicting files.</desc>
1828 </param>
1829 <param name="machine" type="IMachine" dir="return">
1830 <desc>Created machine object.</desc>
1831 </param>
1832 </method>
1833
1834 <method name="createLegacyMachine">
1835 <desc>
1836 Creates a new virtual machine in "legacy" mode, using the specified
1837 settings file to store machine settings.
1838
1839 As opposed to machines created by <link to="#createMachine"/>,
1840 the settings file of the machine created in "legacy" mode is not
1841 automatically renamed when the machine name is changed -- it will always
1842 remain the same as specified in this method call.
1843
1844 The specified settings file name can be absolute (full path) or relative
1845 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1846 directory</link>. If the file name doesn't contain an extension, the
1847 default extension (.xml) will be appended.
1848
1849 Note that the configuration of the newly created machine is not
1850 saved to disk (and therefore no settings file is created)
1851 until <link to="IMachine::saveSettings"/> is called. If the
1852 specified settings file already exists, this method
1853 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1854
1855 See <link to="#createMachine"/> for more information.
1856
1857 @deprecated This method may be removed later. Use <link
1858 to="IVirtualBox::createMachine"/> instead.
1859
1860 <note>
1861 There is no way to change the name of the settings file
1862 of the machine created in "legacy" mode.
1863 </note>
1864
1865 <result name="VBOX_E_OBJECT_NOT_FOUND">
1866 @a osTypeId is invalid.
1867 </result>
1868 <result name="VBOX_E_FILE_ERROR">
1869 @a settingsFile is invalid or the settings file already exists or
1870 could not be created due to an I/O error.
1871 </result>
1872 <result name="E_INVALIDARG">
1873 @a name or @a settingsFile is empty or @c null.
1874 </result>
1875 </desc>
1876
1877 <param name="name" type="wstring" dir="in">
1878 <desc>Machine name.</desc>
1879 </param>
1880 <param name="osTypeId" type="wstring" dir="in">
1881 <desc>Machine OS Type ID.</desc>
1882 </param>
1883 <param name="settingsFile" type="wstring" dir="in">
1884 <desc>Name of the machine settings file.</desc>
1885 </param>
1886 <param name="id" type="uuid" mod="string" dir="in">
1887 <desc>Machine UUID (optional).</desc>
1888 </param>
1889 <param name="machine" type="IMachine" dir="return">
1890 <desc>Created machine object.</desc>
1891 </param>
1892 </method>
1893
1894 <method name="openMachine">
1895 <desc>
1896 Opens a virtual machine from the existing settings file.
1897 The opened machine remains unregistered until you call
1898 <link to="#registerMachine"/>.
1899
1900 The specified settings file name can be absolute
1901 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1902 VirtualBox home directory</link>. This file must exist
1903 and must be a valid machine settings file whose contents
1904 will be used to construct the machine object.
1905
1906 @deprecated Will be removed soon.
1907 <result name="VBOX_E_FILE_ERROR">
1908 Settings file name invalid, not found or sharing violation.
1909 </result>
1910 </desc>
1911 <param name="settingsFile" type="wstring" dir="in">
1912 <desc>
1913 Name of the machine settings file.
1914 </desc>
1915 </param>
1916 <param name="machine" type="IMachine" dir="return">
1917 <desc>Opened machine object.</desc>
1918 </param>
1919 <note>
1920 <link to="IMachine::settingsModified"/> will return
1921 @c false for the created machine, until any of machine settings
1922 are changed.
1923 </note>
1924 </method>
1925
1926 <method name="registerMachine">
1927 <desc>
1928
1929 Registers the machine previously created using
1930 <link to="#createMachine"/> or opened using
1931 <link to="#openMachine"/> within this VirtualBox installation. After
1932 successful method invocation, the
1933 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1934 to all registered callbacks.
1935
1936 <note>
1937 This method implicitly calls <link to="IMachine::saveSettings"/>
1938 to save all current machine settings before registering it.
1939 </note>
1940
1941 <result name="VBOX_E_OBJECT_NOT_FOUND">
1942 No matching virtual machine found.
1943 </result>
1944 <result name="VBOX_E_INVALID_OBJECT_STATE">
1945 Virtual machine was not created within this VirtualBox instance.
1946 </result>
1947
1948 </desc>
1949 <param name="machine" type="IMachine" dir="in"/>
1950 </method>
1951
1952 <method name="getMachine">
1953 <desc>
1954 Attempts to find a virtual machine given its UUID.
1955 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1956 instead.
1957
1958 <result name="VBOX_E_OBJECT_NOT_FOUND">
1959 Could not find registered machine matching @a id.
1960 </result>
1961
1962 </desc>
1963 <param name="id" type="uuid" mod="string" dir="in"/>
1964 <param name="machine" type="IMachine" dir="return"/>
1965 </method>
1966
1967 <method name="findMachine">
1968 <desc>
1969 Attempts to find a virtual machine given its name.
1970 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1971 instead.
1972
1973 <result name="VBOX_E_OBJECT_NOT_FOUND">
1974 Could not find registered machine matching @a name.
1975 </result>
1976
1977 </desc>
1978 <param name="name" type="wstring" dir="in"/>
1979 <param name="machine" type="IMachine" dir="return"/>
1980 </method>
1981
1982 <method name="unregisterMachine">
1983 <desc>
1984
1985 Unregisters the machine previously registered using
1986 <link to="#registerMachine"/>. After successful method invocation, the
1987 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1988 to all registered callbacks.
1989
1990 <note>
1991 The specified machine must not be in the Saved state, have an open
1992 (or a spawning) direct session associated with it, have snapshots or
1993 have any medium attached.
1994 </note>
1995
1996 <note>
1997 This method implicitly calls <link to="IMachine::saveSettings"/> to
1998 save all current machine settings before unregistering it.
1999 </note>
2000
2001 <note>
2002 If the given machine is inaccessible (see
2003 <link to="IMachine::accessible"/>), it will be unregistered and
2004 fully uninitialized right afterwards. As a result, the returned
2005 machine object will be unusable and an attempt to call
2006 <b>any</b> method will return the "Object not ready" error.
2007 </note>
2008
2009 <result name="VBOX_E_OBJECT_NOT_FOUND">
2010 Could not find registered machine matching @a id.
2011 </result>
2012 <result name="VBOX_E_INVALID_VM_STATE">
2013 Machine is in Saved state.
2014 </result>
2015 <result name="VBOX_E_INVALID_OBJECT_STATE">
2016 Machine has snapshot or open session or medium attached.
2017 </result>
2018
2019 </desc>
2020 <param name="id" type="uuid" mod="string" dir="in">
2021 <desc>UUID of the machine to unregister.</desc>
2022 </param>
2023 <param name="machine" type="IMachine" dir="return">
2024 <desc>Unregistered machine object.</desc>
2025 </param>
2026 </method>
2027
2028 <method name="createAppliance">
2029 <desc>
2030 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
2031 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
2032 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
2033 </desc>
2034 <param name="appliance" type="IAppliance" dir="return">
2035 <desc>New appliance.</desc>
2036 </param>
2037 </method>
2038
2039 <method name="createHardDisk">
2040 <desc>
2041 Creates a new base medium object that will use the given storage
2042 format and location for medium data.
2043
2044 Note that the actual storage unit is not created by this method. In
2045 order to do it, and before you are able to attach the created medium
2046 to virtual machines, you must call one of the following methods to
2047 allocate a format-specific storage unit at the specified location:
2048 <ul>
2049 <li><link to="IMedium::createBaseStorage"/></li>
2050 <li><link to="IMedium::createDiffStorage"/></li>
2051 </ul>
2052
2053 Some medium attributes, such as <link to="IMedium::id"/>, may
2054 remain uninitialized until the medium storage unit is successfully
2055 created by one of the above methods.
2056
2057 After the storage unit is successfully created, the medium gets
2058 remembered by this VirtualBox installation and will be accessible
2059 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
2060 methods. Remembered base medium are also returned as part of
2061 the <link to="#hardDisks"/> array. See IMedium for more details.
2062
2063 The list of all storage formats supported by this VirtualBox
2064 installation can be obtained using
2065 <link to="ISystemProperties::mediumFormats"/>. If the @a format
2066 attribute is empty or @c null then the default storage format
2067 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
2068 be used for creating a storage unit of the medium.
2069
2070 Note that the format of the location string is storage format specific.
2071 See <link to="IMedium::location"/>, IMedium and
2072 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
2073
2074 <result name="VBOX_E_OBJECT_NOT_FOUND">
2075 @a format identifier is invalid. See
2076 <link to="ISystemProperties::mediumFormats"/>.
2077 </result>
2078 <result name="VBOX_E_FILE_ERROR">
2079 @a location is a not valid file name (for file-based formats only).
2080 </result>
2081 </desc>
2082 <param name="format" type="wstring" dir="in">
2083 <desc>
2084 Identifier of the storage format to use for the new medium.
2085 </desc>
2086 </param>
2087 <param name="location" type="wstring" dir="in">
2088 <desc>
2089 Location of the storage unit for the new medium.
2090 </desc>
2091 </param>
2092 <param name="medium" type="IMedium" dir="return">
2093 <desc>Created medium object.</desc>
2094 </param>
2095 </method>
2096
2097 <method name="openHardDisk">
2098 <desc>
2099 Opens a medium from an existing location, optionally replacing
2100 the image UUID and/or parent UUID.
2101
2102 After the medium is successfully opened by this method, it gets
2103 remembered by (known to) this VirtualBox installation and will be
2104 accessible through <link to="#getHardDisk"/> and
2105 <link to="#findHardDisk"/> methods. Remembered base media
2106 are also returned as part of the <link to="#hardDisks"/> array and can
2107 be attached to virtual machines. See IMedium for more details.
2108
2109 If a differencing medium is to be opened by this method, the
2110 operation will succeed only if its parent medium and all ancestors,
2111 if any, are already known to this VirtualBox installation (for example,
2112 were opened by this method before).
2113
2114 This method tries to guess the storage format of the specified medium
2115 by reading medium data at the specified location.
2116
2117 If @a accessMode is ReadWrite (which it should be), the image is opened
2118 for read/write access and must have according permissions, as VirtualBox
2119 may actually write status information into the disk's metadata sections.
2120
2121 Note that write access is required for all typical image usage in VirtualBox,
2122 since VirtualBox may need to write metadata such as a UUID into the image.
2123 The only exception is opening a source image temporarily for copying and
2124 cloning when the image will quickly be closed again.
2125
2126 Note that the format of the location string is storage format specific.
2127 See <link to="IMedium::location"/>, IMedium and
2128 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
2129
2130 <result name="VBOX_E_FILE_ERROR">
2131 Invalid medium storage file location or could not find the medium
2132 at the specified location.
2133 </result>
2134 <result name="VBOX_E_IPRT_ERROR">
2135 Could not get medium storage format.
2136 </result>
2137 <result name="E_INVALIDARG">
2138 Invalid medium storage format.
2139 </result>
2140
2141 </desc>
2142 <param name="location" type="wstring" dir="in">
2143 <desc>
2144 Location of the storage unit that contains medium data in one of
2145 the supported storage formats.
2146 </desc>
2147 </param>
2148 <param name="accessMode" type="AccessMode" dir="in">
2149 <desc>
2150 Determines whether to open the image in read/write or read-only mode.
2151 </desc>
2152 </param>
2153 <param name="setImageId" type="boolean" dir="in">
2154 <desc>
2155 Select whether a new image UUID is set or not.
2156 </desc>
2157 </param>
2158 <param name="imageId" type="uuid" mod="string" dir="in">
2159 <desc>
2160 New UUID for the image. If an empty string is passed, then a new
2161 UUID is automatically created. Specifying a zero UUIDs is not valid.
2162 </desc>
2163 </param>
2164 <param name="setParentId" type="boolean" dir="in">
2165 <desc>
2166 Select whether a new parent UUID is set or not.
2167 </desc>
2168 </param>
2169 <param name="parentId" type="uuid" mod="string" dir="in">
2170 <desc>
2171 New parent UUID for the image. If an empty string is passed, then a
2172 new UUID is automatically created, provided @a setParentId is
2173 @c true. A zero UUID is valid.
2174 </desc>
2175 </param>
2176 <param name="medium" type="IMedium" dir="return">
2177 <desc>Opened medium object.</desc>
2178 </param>
2179 </method>
2180
2181 <method name="getHardDisk" const="yes">
2182 <desc>
2183 Returns a medium with the given UUID.
2184
2185 The medium with the given UUID must be known to this VirtualBox
2186 installation, i.e. it must be previously created by
2187 <link to="#createHardDisk"/> or opened by <link
2188 to="#openHardDisk"/>, or attached to some known virtual machine.
2189
2190 <result name="VBOX_E_OBJECT_NOT_FOUND">
2191 No medium object matching @a id found.
2192 </result>
2193
2194 </desc>
2195 <param name="id" type="uuid" mod="string" dir="in">
2196 <desc>UUID of the medium to look for.</desc>
2197 </param>
2198 <param name="medium" type="IMedium" dir="return">
2199 <desc>Found medium object.</desc>
2200 </param>
2201 </method>
2202
2203 <method name="findHardDisk">
2204 <desc>
2205 Returns a medium that uses the given location to store medium data.
2206
2207 The given medium must be known to this VirtualBox installation, i.e.
2208 it must be previously created by
2209 <link to="#createHardDisk"/> or opened by <link
2210 to="#openHardDisk"/>, or attached to some known virtual machine.
2211
2212 The search is done by comparing the value of the @a location argument to
2213 the <link to="IMedium::location"/> attribute of each known medium.
2214
2215 For locations represented by file names in the host's file system, the
2216 requested location can be a path relative to the
2217 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2218 only a file name without any path is given, the
2219 <link to="ISystemProperties::defaultHardDiskFolder"> default medium
2220 folder</link> will be prepended to the file name before searching. Note
2221 that on case sensitive file systems, a case sensitive comparison is
2222 performed, otherwise the case of symbols in the file path is ignored.
2223
2224 <result name="VBOX_E_OBJECT_NOT_FOUND">
2225 No medium object matching @a location found.
2226 </result>
2227
2228 </desc>
2229 <param name="location" type="wstring" dir="in">
2230 <desc>Location string to search for.</desc>
2231 </param>
2232 <param name="medium" type="IMedium" dir="return">
2233 <desc>Found medium object.</desc>
2234 </param>
2235 </method>
2236
2237 <method name="openDVDImage">
2238 <desc>
2239 Opens a CD/DVD image contained in the specified file of the supported
2240 format and assigns it the given UUID.
2241
2242 After the image is successfully opened by this method, it gets
2243 remembered by (known to) this VirtualBox installation and will be
2244 accessible through <link to="#getDVDImage"/> and
2245 <link to="#findDVDImage"/> methods. Remembered images are also
2246 returned as part of the <link to="#DVDImages"/> array and can be mounted
2247 to virtual machines. See IMedium for more details.
2248
2249 See <link to="IMedium::location"/> to get more details about the format
2250 of the location string.
2251
2252 <note>
2253 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2254 </note>
2255
2256 <result name="VBOX_E_FILE_ERROR">
2257 Invalid CD/DVD image file location or could not find the CD/DVD
2258 image at the specified location.
2259 </result>
2260 <result name="VBOX_E_INVALID_OBJECT_STATE">
2261 CD/DVD image already exists in the media registry.
2262 </result>
2263
2264 </desc>
2265 <param name="location" type="wstring" dir="in">
2266 <desc>
2267 Full path to the file that contains a valid CD/DVD image.
2268 </desc>
2269 </param>
2270 <param name="id" type="uuid" mod="string" dir="in">
2271 <desc>
2272 UUID to assign to the given image within this VirtualBox installation.
2273 If an empty (@c null) UUID is specified, the system will randomly
2274 generate a new UUID.
2275 </desc>
2276 </param>
2277 <param name="image" type="IMedium" dir="return">
2278 <desc>Opened CD/DVD image object.</desc>
2279 </param>
2280 </method>
2281
2282 <method name="getDVDImage">
2283 <desc>
2284 Returns a CD/DVD image with the given UUID.
2285
2286 The image with the given UUID must be known to this VirtualBox
2287 installation, i.e. it must be previously opened by <link
2288 to="#openDVDImage"/>, or mounted to some known virtual machine.
2289
2290 <result name="VBOX_E_OBJECT_NOT_FOUND">
2291 No matching DVD image found in the media registry.
2292 </result>
2293
2294 </desc>
2295 <param name="id" type="uuid" mod="string" dir="in">
2296 <desc>UUID of the image to look for.</desc>
2297 </param>
2298 <param name="image" type="IMedium" dir="return">
2299 <desc>Found CD/DVD image object.</desc>
2300 </param>
2301 </method>
2302
2303 <method name="findDVDImage">
2304 <desc>
2305 Returns a CD/DVD image with the given image location.
2306
2307 The image with the given UUID must be known to this VirtualBox
2308 installation, i.e. it must be previously opened by <link
2309 to="#openDVDImage"/>, or mounted to some known virtual machine.
2310
2311 The search is done by comparing the value of the @a location argument to
2312 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2313
2314 The requested location can be a path relative to the
2315 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2316 only a file name without any path is given, the
2317 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2318 folder</link> will be prepended to the file name before searching. Note
2319 that on case sensitive file systems, a case sensitive comparison is
2320 performed, otherwise the case in the file path is ignored.
2321
2322 <result name="VBOX_E_FILE_ERROR">
2323 Invalid image file location.
2324 </result>
2325 <result name="VBOX_E_OBJECT_NOT_FOUND">
2326 No matching DVD image found in the media registry.
2327 </result>
2328
2329 </desc>
2330 <param name="location" type="wstring" dir="in">
2331 <desc>CD/DVD image file path to look for.</desc>
2332 </param>
2333 <param name="image" type="IMedium" dir="return">
2334 <desc>Found CD/DVD image object.</desc>
2335 </param>
2336 </method>
2337
2338 <method name="openFloppyImage">
2339 <desc>
2340 Opens a floppy image contained in the specified file of the supported
2341 format and assigns it the given UUID.
2342
2343 After the image is successfully opened by this method, it gets
2344 remembered by (known to) this VirtualBox installation and will be
2345 accessible through <link to="#getFloppyImage"/> and
2346 <link to="#findFloppyImage"/> methods. Remembered images are also
2347 returned as part of the <link to="#floppyImages"/> array and can be
2348 mounted to virtual machines. See IMedium for more details.
2349
2350 See <link to="IMedium::location"/> to get more details about the format
2351 of the location string.
2352
2353 <result name="VBOX_E_FILE_ERROR">
2354 Invalid floppy image file location or could not find the floppy
2355 image at the specified location.
2356 </result>
2357 <result name="VBOX_E_INVALID_OBJECT_STATE">
2358 Floppy image already exists in the media registry.
2359 </result>
2360
2361 <note>
2362 Currently, only raw floppy images are supported by VirtualBox.
2363 </note>
2364 </desc>
2365 <param name="location" type="wstring" dir="in">
2366 <desc>
2367 Full path to the file that contains a valid floppy image.
2368 </desc>
2369 </param>
2370 <param name="id" type="uuid" mod="string" dir="in">
2371 <desc>
2372 UUID to assign to the given image file within this VirtualBox
2373 installation. If an empty (@c null) UUID is specified, the system will
2374 randomly generate a new UUID.
2375 </desc>
2376 </param>
2377 <param name="image" type="IMedium" dir="return">
2378 <desc>Opened floppy image object.</desc>
2379 </param>
2380 </method>
2381
2382 <method name="getFloppyImage">
2383 <desc>
2384 Returns a floppy image with the given UUID.
2385
2386 The image with the given UUID must be known to this VirtualBox
2387 installation, i.e. it must be previously opened by <link
2388 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2389
2390 <result name="VBOX_E_OBJECT_NOT_FOUND">
2391 No matching floppy image found in the media registry.
2392 </result>
2393
2394 </desc>
2395 <param name="id" type="uuid" mod="string" dir="in">
2396 <desc>UUID of the image to look for.</desc>
2397 </param>
2398 <param name="image" type="IMedium" dir="return">
2399 <desc>Found floppy image object.</desc>
2400 </param>
2401 </method>
2402
2403 <method name="findFloppyImage">
2404 <desc>
2405 Returns a floppy image with the given image location.
2406
2407 The image with the given UUID must be known to this VirtualBox
2408 installation, i.e. it must be previously opened by <link
2409 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2410
2411 The search is done by comparing the value of the @a location argument to
2412 the <link to="IMedium::location"/> attribute of each known floppy image.
2413
2414 The requested location can be a path relative to the
2415 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2416 only a file name without any path is given, the
2417 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2418 folder</link> will be prepended to the file name before searching. Note
2419 that on case sensitive file systems, a case sensitive comparison is
2420 performed, otherwise the case of symbols in the file path is ignored.
2421
2422 <result name="VBOX_E_FILE_ERROR">
2423 Invalid image file location.
2424 </result>
2425 <result name="VBOX_E_OBJECT_NOT_FOUND">
2426 No matching floppy image found in the media registry.
2427 </result>
2428
2429 </desc>
2430 <param name="location" type="wstring" dir="in">
2431 <desc>Floppy image file path to look for.</desc>
2432 </param>
2433 <param name="image" type="IMedium" dir="return">
2434 <desc>Found floppy image object.</desc>
2435 </param>
2436 </method>
2437
2438 <method name="getGuestOSType">
2439 <desc>
2440 Returns an object describing the specified guest OS type.
2441
2442 The requested guest OS type is specified using a string which is a
2443 mnemonic identifier of the guest operating system, such as
2444 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2445 particular virtual machine can be read or set using the
2446 <link to="IMachine::OSTypeId"/> attribute.
2447
2448 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2449 available guest OS type objects. Each object has an
2450 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2451 the guest OS this object describes.
2452
2453 <result name="E_INVALIDARG">
2454 @a id is not a valid Guest OS type.
2455 </result>
2456
2457 </desc>
2458 <param name="id" type="uuid" mod="string" dir="in">
2459 <desc>Guest OS type ID string.</desc>
2460 </param>
2461 <param name="type" type="IGuestOSType" dir="return">
2462 <desc>Guest OS type object.</desc>
2463 </param>
2464 </method>
2465
2466 <method name="createSharedFolder">
2467 <desc>
2468 Creates a new global shared folder by associating the given logical
2469 name with the given host path, adds it to the collection of shared
2470 folders and starts sharing it. Refer to the description of
2471 <link to="ISharedFolder"/> to read more about logical names.
2472 <note>
2473 In the current implementation, this operation is not
2474 implemented.
2475 </note>
2476 </desc>
2477 <param name="name" type="wstring" dir="in">
2478 <desc>Unique logical name of the shared folder.</desc>
2479 </param>
2480 <param name="hostPath" type="wstring" dir="in">
2481 <desc>Full path to the shared folder in the host file system.</desc>
2482 </param>
2483 <param name="writable" type="boolean" dir="in">
2484 <desc>Whether the share is writable or readonly</desc>
2485 </param>
2486 </method>
2487
2488 <method name="removeSharedFolder">
2489 <desc>
2490 Removes the global shared folder with the given name previously
2491 created by <link to="#createSharedFolder"/> from the collection of
2492 shared folders and stops sharing it.
2493 <note>
2494 In the current implementation, this operation is not
2495 implemented.
2496 </note>
2497 </desc>
2498 <param name="name" type="wstring" dir="in">
2499 <desc>Logical name of the shared folder to remove.</desc>
2500 </param>
2501 </method>
2502
2503 <method name="getExtraDataKeys">
2504 <desc>
2505 Returns an array representing the global extra data keys which currently
2506 have values defined.
2507 </desc>
2508 <param name="value" type="wstring" dir="return" safearray="yes">
2509 <desc>Array of extra data keys.</desc>
2510 </param>
2511 </method>
2512
2513 <method name="getExtraData">
2514 <desc>
2515 Returns associated global extra data.
2516
2517 If the requested data @a key does not exist, this function will
2518 succeed and return an empty string in the @a value argument.
2519
2520 <result name="VBOX_E_FILE_ERROR">
2521 Settings file not accessible.
2522 </result>
2523 <result name="VBOX_E_XML_ERROR">
2524 Could not parse the settings file.
2525 </result>
2526
2527 </desc>
2528 <param name="key" type="wstring" dir="in">
2529 <desc>Name of the data key to get.</desc>
2530 </param>
2531 <param name="value" type="wstring" dir="return">
2532 <desc>Value of the requested data key.</desc>
2533 </param>
2534 </method>
2535
2536 <method name="setExtraData">
2537 <desc>
2538 Sets associated global extra data.
2539
2540 If you pass @c null or empty string as a key @a value, the given @a key
2541 will be deleted.
2542
2543 <note>
2544 Before performing the actual data change, this method will ask all
2545 registered callbacks using the
2546 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2547 notification for a permission. If one of the callbacks refuses the
2548 new value, the change will not be performed.
2549 </note>
2550 <note>
2551 On success, the
2552 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2553 is called to inform all registered callbacks about a successful data
2554 change.
2555 </note>
2556
2557 <result name="VBOX_E_FILE_ERROR">
2558 Settings file not accessible.
2559 </result>
2560 <result name="VBOX_E_XML_ERROR">
2561 Could not parse the settings file.
2562 </result>
2563 <result name="E_ACCESSDENIED">
2564 Modification request refused.
2565 </result>
2566
2567 </desc>
2568 <param name="key" type="wstring" dir="in">
2569 <desc>Name of the data key to set.</desc>
2570 </param>
2571 <param name="value" type="wstring" dir="in">
2572 <desc>Value to assign to the key.</desc>
2573 </param>
2574 </method>
2575
2576 <method name="openSession">
2577 <desc>
2578 Opens a new direct session with the given virtual machine.
2579
2580 A direct session acts as a local lock on the given VM.
2581 There can be only one direct session open at a time for every
2582 virtual machine, protecting the VM from being manipulated by
2583 conflicting actions from different processes. Only after a
2584 direct session has been opened, one can change all VM settings
2585 and execute the VM in the process space of the session object.
2586
2587 Sessions therefore can be compared to mutex semaphores that
2588 lock a given VM for modification and execution.
2589 See <link to="ISession">ISession</link> for details.
2590
2591 <note>Unless you are writing a new VM frontend, you will not
2592 want to execute a VM in the current process. To spawn a new
2593 process that executes a VM, use
2594 <link to="IVirtualBox::openRemoteSession" />
2595 instead.</note>
2596
2597 Upon successful return, the session object can be used to
2598 get access to the machine and to the VM console.
2599
2600 In VirtualBox terminology, the machine becomes "mutable" after
2601 a session has been opened. Note that the "mutable" machine
2602 object, on which you may invoke IMachine methods to change its
2603 settings, will be a different object from the immutable IMachine
2604 objects returned by various IVirtualBox methods. To obtain a
2605 mutable IMachine object (upon which you can invoke settings methods),
2606 use the <link to="ISession::machine" /> attribute.
2607
2608 One must always call <link to="ISession::close" /> to release the
2609 lock on the machine, or the machine's state will eventually be
2610 set to "Aborted".
2611
2612 In other words, to change settings on a machine, the following
2613 sequence is typically performed:
2614
2615 <ol>
2616 <li>Call this method (openSession) to have a machine locked for
2617 the current session.</li>
2618
2619 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2620
2621 <li>Change the settings of the machine.</li>
2622
2623 <li>Call <link to="IMachine::saveSettings" />.</li>
2624
2625 <li>Close the session by calling <link to="ISession::close"/>.</li>
2626 </ol>
2627
2628 <result name="E_UNEXPECTED">
2629 Virtual machine not registered.
2630 </result>
2631 <result name="E_ACCESSDENIED">
2632 Process not started by OpenRemoteSession.
2633 </result>
2634 <result name="VBOX_E_OBJECT_NOT_FOUND">
2635 No matching virtual machine found.
2636 </result>
2637 <result name="VBOX_E_INVALID_OBJECT_STATE">
2638 Session already open or being opened.
2639 </result>
2640 <result name="VBOX_E_VM_ERROR">
2641 Failed to assign machine to session.
2642 </result>
2643
2644 </desc>
2645 <param name="session" type="ISession" dir="in">
2646 <desc>
2647 Session object that will represent the opened session after
2648 successful method invocation. This object must not represent
2649 the already open session.
2650 <note>
2651 This session will be automatically closed if the
2652 VirtualBox server is terminated for some reason.
2653 </note>
2654 </desc>
2655 </param>
2656 <param name="machineId" type="uuid" mod="string" dir="in">
2657 <desc>ID of the virtual machine to open a session with.</desc>
2658 </param>
2659 </method>
2660
2661 <method name="openRemoteSession">
2662 <desc>
2663 Spawns a new process that executes a virtual machine (called a
2664 "remote session").
2665
2666 Opening a remote session causes the VirtualBox server to start a new
2667 process that opens a direct session with the given VM. As a result, the
2668 VM is locked by that direct session in the new process, preventing
2669 conflicting changes from other processes. Since sessions act as locks
2670 that prevent conflicting changes, one cannot open a remote session
2671 for a VM that already has another open session (direct or remote), or
2672 is currently in the process of opening one (see <link
2673 to="IMachine::sessionState"/>).
2674
2675 While the remote session still provides some level of control over the
2676 VM execution to the caller (using the <link to="IConsole" /> interface),
2677 not all VM settings are available for modification within the remote
2678 session context.
2679
2680 This operation can take some time (a new VM is started in a new process,
2681 for which memory and other resources need to be set up). Because of this,
2682 an <link to="IProgress" /> is returned to allow the caller to wait for this
2683 asynchronous operation to be completed. Until then, the remote session
2684 object remains in the closed state, and accessing the machine or its
2685 console through it is invalid. It is recommended to use
2686 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2687 completion. Completion is signalled when the VM is powered on. Error
2688 messages etc. can be queried via the progress object, if available.
2689
2690 As with all <link to="ISession" /> objects, it is recommended to call
2691 <link to="ISession::close" /> on the local session object once openRemoteSession()
2692 has been called. However, the session's state (see <link to="ISession::state" />)
2693 will not return to "Closed" until the remote session has also closed (i.e.
2694 until the VM is no longer running). In that case, however, the state of
2695 the session will automatically change back to "Closed".
2696
2697 Currently supported session types (values of the @a type
2698 argument) are:
2699 <ul>
2700 <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
2701 <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
2702 <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
2703 </ul>
2704
2705 The @a environment argument is a string containing definitions of
2706 environment variables in the following format:
2707 @code
2708 NAME[=VALUE]\n
2709 NAME[=VALUE]\n
2710 ...
2711 @endcode
2712 where <tt>\\n</tt> is the new line character. These environment
2713 variables will be appended to the environment of the VirtualBox server
2714 process. If an environment variable exists both in the server process
2715 and in this list, the value from this list takes precedence over the
2716 server's variable. If the value of the environment variable is
2717 omitted, this variable will be removed from the resulting environment.
2718 If the environment string is @c null or empty, the server environment
2719 is inherited by the started process as is.
2720
2721 <see>openExistingSession</see>
2722
2723 <result name="E_UNEXPECTED">
2724 Virtual machine not registered.
2725 </result>
2726 <result name="E_INVALIDARG">
2727 Invalid session type @a type.
2728 </result>
2729 <result name="VBOX_E_OBJECT_NOT_FOUND">
2730 No machine matching @a machineId found.
2731 </result>
2732 <result name="VBOX_E_INVALID_OBJECT_STATE">
2733 Session already open or being opened.
2734 </result>
2735 <result name="VBOX_E_IPRT_ERROR">
2736 Launching process for machine failed.
2737 </result>
2738 <result name="VBOX_E_VM_ERROR">
2739 Failed to assign machine to session.
2740 </result>
2741
2742 </desc>
2743 <param name="session" type="ISession" dir="in">
2744 <desc>
2745 Session object that will represent the opened remote session
2746 after successful method invocation (this object must not
2747 represent an already open session).
2748 </desc>
2749 </param>
2750 <param name="machineId" type="uuid" mod="string" dir="in">
2751 <desc>ID of the virtual machine to open a session with.</desc>
2752 </param>
2753 <param name="type" type="wstring" dir="in">
2754 <desc>
2755 Type of the remote session (case sensitive).
2756 </desc>
2757 </param>
2758 <param name="environment" type="wstring" dir="in">
2759 <desc>
2760 Environment to pass to the opened session.
2761 </desc>
2762 </param>
2763 <param name="progress" type="IProgress" dir="return">
2764 <desc>Progress object to track the operation completion.</desc>
2765 </param>
2766 </method>
2767
2768 <method name="openExistingSession">
2769 <desc>
2770 Opens a new remote session with the virtual machine for
2771 which a direct session is already open.
2772
2773 The remote session provides some level of control over the VM
2774 execution (using the IConsole interface) to the caller; however,
2775 within the remote session context, not all VM settings are available
2776 for modification.
2777
2778 As opposed to <link to="#openRemoteSession"/>, the number of
2779 remote sessions opened this way is not limited by the API
2780
2781 <note>
2782 It is an error to open a remote session with the machine that
2783 doesn't have an open direct session.
2784 </note>
2785
2786 <result name="E_UNEXPECTED">
2787 Virtual machine not registered.
2788 </result>
2789 <result name="VBOX_E_OBJECT_NOT_FOUND">
2790 No machine matching @a machineId found.
2791 </result>
2792 <result name="VBOX_E_INVALID_OBJECT_STATE">
2793 Session already open or being opened.
2794 </result>
2795 <result name="VBOX_E_INVALID_SESSION_STATE">
2796 Direct session state not Open.
2797 </result>
2798 <result name="VBOX_E_VM_ERROR">
2799 Failed to get console object from direct session or assign
2800 machine to session.
2801 </result>
2802
2803 <see>openRemoteSession</see>
2804 </desc>
2805 <param name="session" type="ISession" dir="in">
2806 <desc>
2807 Session object that will represent the open remote session
2808 after successful method invocation. This object must not
2809 represent an already open session.
2810 <note>
2811 This session will be automatically closed when the peer
2812 (direct) session dies or gets closed.
2813 </note>
2814 </desc>
2815 </param>
2816 <param name="machineId" type="uuid" mod="string" dir="in">
2817 <desc>ID of the virtual machine to open a session with.</desc>
2818 </param>
2819 </method>
2820
2821 <method name="registerCallback">
2822 <desc>
2823 Registers a new global VirtualBox callback. The methods of the given
2824 callback object will be called by VirtualBox when an appropriate
2825 event occurs.
2826
2827 <result name="E_INVALIDARG">
2828 A @c null callback cannot be registered.
2829 </result>
2830
2831 </desc>
2832 <param name="callback" type="IVirtualBoxCallback" dir="in">
2833 <desc>Callback object to register.</desc>
2834 </param>
2835 </method>
2836
2837 <method name="unregisterCallback">
2838 <desc>
2839 Unregisters the previously registered global VirtualBox callback.
2840
2841 <result name="E_INVALIDARG">
2842 Specified @a callback not registered.
2843 </result>
2844
2845 </desc>
2846 <param name="callback" type="IVirtualBoxCallback" dir="in">
2847 <desc>Callback object to unregister.</desc>
2848 </param>
2849 </method>
2850
2851 <method name="waitForPropertyChange">
2852 <desc>
2853 Blocks the caller until any of the properties represented by the
2854 @a what argument changes the value or until the given timeout interval
2855 expires.
2856
2857 The @a what argument is a comma separated list of property masks that
2858 describe properties the caller is interested in. The property mask is
2859 a string in the following format:
2860
2861 <pre>
2862 [[group.]subgroup.]name
2863 </pre>
2864
2865 where @c name is the property name and @c group, @c subgroup are zero
2866 or more property group specifiers. Each element (group or name) in
2867 the property mask may be either a Latin string or an asterisk symbol
2868 (@c "*") which is used to match any string for the given element. A
2869 property mask that doesn't contain asterisk symbols represents a
2870 single fully qualified property name.
2871
2872 Groups in the fully qualified property name go from more generic (the
2873 left-most part) to more specific (the right-most part). The first
2874 element is usually a name of the object the property belongs to. The
2875 second element may be either a property name, or a child object name,
2876 or an index if the preceding element names an object which is one of
2877 many objects of the same type. This way, property names form a
2878 hierarchy of properties. Here are some examples of property names:
2879
2880 <table>
2881 <tr>
2882 <td><tt>VirtualBox.version</tt></td>
2883 <td><link to="IVirtualBox::version"/> property</td>
2884 </tr>
2885 <tr>
2886 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2887 <td><link to="IMachine::name"/> property of the machine with the
2888 given UUID</td>
2889 </tr>
2890 </table>
2891
2892 Most property names directly correspond to the properties of objects
2893 (components) provided by the VirtualBox library and may be used to
2894 track changes to these properties. However, there may be
2895 pseudo-property names that don't correspond to any existing object's
2896 property directly, as well as there may be object properties that
2897 don't have a corresponding property name that is understood by this
2898 method, and therefore changes to such properties cannot be
2899 tracked. See individual object's property descriptions to get a
2900 fully qualified property name that can be used with this method (if
2901 any).
2902
2903 There is a special property mask @c "*" (i.e. a string consisting of a
2904 single asterisk symbol) that can be used to match all properties.
2905 Below are more examples of property masks:
2906
2907 <table>
2908 <tr>
2909 <td><tt>VirtualBox.*</tt></td>
2910 <td>Track all properties of the VirtualBox object</td>
2911 </tr>
2912 <tr>
2913 <td><tt>Machine.*.name</tt></td>
2914 <td>Track changes to the <link to="IMachine::name"/> property of
2915 all registered virtual machines</td>
2916 </tr>
2917 </table>
2918
2919 <note>
2920 This function is not implemented in the current version of the
2921 product.
2922 </note>
2923 </desc>
2924 <param name="what" type="wstring" dir="in">
2925 <desc>Comma separated list of property masks.</desc>
2926 </param>
2927 <param name="timeout" type="unsigned long" dir="in">
2928 <desc>
2929 Wait timeout in milliseconds.
2930 Specify -1 for an indefinite wait.
2931 </desc>
2932 </param>
2933 <param name="changed" type="wstring" dir="out">
2934 <desc>
2935 Comma separated list of properties that have been changed and caused
2936 this method to return to the caller.
2937 </desc>
2938 </param>
2939 <param name="values" type="wstring" dir="out">
2940 <desc>Reserved, not currently used.</desc>
2941 </param>
2942 </method>
2943
2944 <!--method name="createDHCPServerForInterface">
2945 <desc>
2946 Creates a dhcp server settings to be used for the given interface
2947 <result name="E_INVALIDARG">
2948 Host network interface @a name already exists.
2949 </result>
2950 </desc>
2951 <param name="interface" type="IHostNetworkInterface" dir="in">
2952 <desc>Network Interface</desc>
2953 </param>
2954 <param name="server" type="IDHCPServer" dir="out">
2955 <desc>Dhcp server settings</desc>
2956 </param>
2957 </method-->
2958
2959 <method name="createDHCPServer">
2960 <desc>
2961 Creates a dhcp server settings to be used for the given internal network name
2962 <result name="E_INVALIDARG">
2963 Host network interface @a name already exists.
2964 </result>
2965 </desc>
2966 <param name="name" type="wstring" dir="in">
2967 <desc>server name</desc>
2968 </param>
2969 <param name="server" type="IDHCPServer" dir="return">
2970 <desc>Dhcp server settings</desc>
2971 </param>
2972 </method>
2973
2974 <method name="findDHCPServerByNetworkName">
2975 <desc>
2976 Searches a dhcp server settings to be used for the given internal network name
2977 <result name="E_INVALIDARG">
2978 Host network interface @a name already exists.
2979 </result>
2980
2981 </desc>
2982 <param name="name" type="wstring" dir="in">
2983 <desc>server name</desc>
2984 </param>
2985 <param name="server" type="IDHCPServer" dir="return">
2986 <desc>Dhcp server settings</desc>
2987 </param>
2988 </method>
2989
2990 <!--method name="findDHCPServerForInterface">
2991 <desc>
2992 Searches a dhcp server settings to be used for the given interface
2993 <result name="E_INVALIDARG">
2994 Host network interface @a name already exists.
2995 </result>
2996 </desc>
2997 <param name="interface" type="IHostNetworkInterface" dir="in">
2998 <desc>Network Interface</desc>
2999 </param>
3000 <param name="server" type="IDHCPServer" dir="out">
3001 <desc>Dhcp server settings</desc>
3002 </param>
3003 </method-->
3004
3005 <method name="removeDHCPServer">
3006 <desc>
3007 Removes the dhcp server settings
3008 <result name="E_INVALIDARG">
3009 Host network interface @a name already exists.
3010 </result>
3011 </desc>
3012 <param name="server" type="IDHCPServer" dir="in">
3013 <desc>Dhcp server settings to be removed</desc>
3014 </param>
3015 </method>
3016
3017
3018 <method name="checkFirmwarePresent">
3019 <desc>
3020 Check if this VirtualBox installation has a firmware
3021 of the given type available, either system-wide or per-user.
3022 Optionally, this may return a hint where this firmware can be
3023 downloaded from.
3024 </desc>
3025 <param name="firmwareType" type="FirmwareType" dir="in">
3026 <desc>
3027 Type of firmware to check.
3028 </desc>
3029 </param>
3030 <param name="version" type="wstring" dir="in">
3031 <desc>Expected version number, usually empty string (presently ignored).</desc>
3032 </param>
3033
3034 <param name="url" type="wstring" dir="out">
3035 <desc>
3036 Suggested URL to download this firmware from.
3037 </desc>
3038 </param>
3039
3040 <param name="file" type="wstring" dir="out">
3041 <desc>
3042 Filename of firmware, only valid if result == TRUE.
3043 </desc>
3044 </param>
3045
3046 <param name="result" type="boolean" dir="return">
3047 <desc>If firmware of this type and version is available.</desc>
3048 </param>
3049 </method>
3050
3051 </interface>
3052
3053 <!--
3054 // IVFSExplorer
3055 /////////////////////////////////////////////////////////////////////////
3056 -->
3057
3058 <enum
3059 name="VFSType"
3060 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
3061 >
3062 <desc>
3063 Virtual file systems supported by VFSExplorer.
3064 </desc>
3065
3066 <const name="File" value="1" />
3067 <const name="Cloud" value="2" />
3068 <const name="S3" value="3" />
3069 <const name="WebDav" value="4" />
3070 </enum>
3071
3072 <enum
3073 name="VFSFileType"
3074 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
3075 >
3076 <desc>
3077 File types known by VFSExplorer.
3078 </desc>
3079
3080 <const name="Unknown" value="1" />
3081 <const name="Fifo" value="2" />
3082 <const name="DevChar" value="3" />
3083 <const name="Directory" value="4" />
3084 <const name="DevBlock" value="5" />
3085 <const name="File" value="6" />
3086 <const name="SymLink" value="7" />
3087 <const name="Socket" value="8" />
3088 <const name="WhiteOut" value="9" />
3089 </enum>
3090
3091 <interface
3092 name="IVFSExplorer" extends="$unknown"
3093 uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
3094 wsmap="managed"
3095 >
3096 <desc>
3097 The VFSExplorer interface unifies access to different file system
3098 types. This includes local file systems as well remote file systems like
3099 S3. For a list of supported types see <link to="VFSType" />.
3100 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
3101 </desc>
3102
3103 <attribute name="path" type="wstring" readonly="yes">
3104 <desc>Returns the current path in the virtual file system.</desc>
3105 </attribute>
3106
3107 <attribute name="type" type="VFSType" readonly="yes">
3108 <desc>Returns the file system type which is currently in use.</desc>
3109 </attribute>
3110
3111 <method name="update">
3112 <desc>Updates the internal list of files/directories from the
3113 current directory level. Use <link to="#entryList" /> to get the full list
3114 after a call to this method.</desc>
3115
3116 <param name="aProgress" type="IProgress" dir="return">
3117 <desc>Progress object to track the operation completion.</desc>
3118 </param>
3119 </method>
3120
3121 <method name="cd">
3122 <desc>Change the current directory level.</desc>
3123
3124 <param name="aDir" type="wstring" dir="in">
3125 <desc>The name of the directory to go in.</desc>
3126 </param>
3127
3128 <param name="aProgress" type="IProgress" dir="return">
3129 <desc>Progress object to track the operation completion.</desc>
3130 </param>
3131 </method>
3132
3133 <method name="cdUp">
3134 <desc>Go one directory upwards from the current directory level.</desc>
3135
3136 <param name="aProgress" type="IProgress" dir="return">
3137 <desc>Progress object to track the operation completion.</desc>
3138 </param>
3139 </method>
3140
3141 <method name="entryList">
3142 <desc>Returns a list of files/directories after a call to <link
3143 to="#update" />. The user is responsible for keeping this internal
3144 list up do date.</desc>
3145
3146 <param name="aNames" type="wstring" safearray="yes" dir="out">
3147 <desc>The list of names for the entries.</desc>
3148 </param>
3149
3150 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
3151 <desc>The list of types for the entries.</desc>
3152 </param>
3153 </method>
3154
3155 <method name="exists">
3156 <desc>Checks if the given file list exists in the current directory
3157 level.</desc>
3158
3159 <param name="aNames" type="wstring" safearray="yes" dir="in">
3160 <desc>The names to check.</desc>
3161 </param>
3162
3163 <param name="aExists" type="wstring" safearray="yes" dir="return">
3164 <desc>The names which exist.</desc>
3165 </param>
3166 </method>
3167
3168 <method name="remove">
3169 <desc>Deletes the given files in the current directory level.</desc>
3170
3171 <param name="aNames" type="wstring" safearray="yes" dir="in">
3172 <desc>The names to remove.</desc>
3173 </param>
3174
3175 <param name="aProgress" type="IProgress" dir="return">
3176 <desc>Progress object to track the operation completion.</desc>
3177 </param>
3178 </method>
3179
3180 </interface>
3181
3182 <!--
3183 // IAppliance
3184 /////////////////////////////////////////////////////////////////////////
3185 -->
3186
3187 <interface
3188 name="IAppliance" extends="$unknown"
3189 uuid="e3ba9ab9-ac2c-4266-8bd2-91c4bf721ceb"
3190 wsmap="managed"
3191 >
3192 <desc>
3193 Represents a platform-independent appliance in OVF format. An instance of this is returned
3194 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3195 virtual machines within an appliance with VirtualBox.
3196
3197 The OVF standard suggests two different physical file formats:
3198
3199 <ol>
3200 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
3201 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
3202 this descriptor file references other files such as disk images, as OVF appliances typically
3203 do, those additional files must be in the same directory as the descriptor file.</li>
3204
3205 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
3206 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3207 files and optionally other files.
3208
3209 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3210 be added with a later version.</li>
3211 </ol>
3212
3213 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3214 <link to="IMachine" /> involves the following sequence of API calls:
3215
3216 <ol>
3217 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3218 </li>
3219
3220 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3221 would like to import. So long as this file is syntactically valid, this will succeed
3222 and fill the appliance object with the parsed data from the OVF file.
3223 </li>
3224
3225 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3226 contents of the IAppliance attributes accordingly. These can be inspected by a
3227 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3228 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3229 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3230 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3231 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3232 The GUI can then give the user the option to confirm and/or change these suggestions.
3233 </li>
3234
3235 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3236 virtual system to override the suggestions made by the interpret() routine.
3237 </li>
3238
3239 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3240 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3241 virtual system descriptions.
3242 </li>
3243 </ol>
3244
3245 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3246
3247 <ol>
3248 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3249 an empty IAppliance object.
3250 </li>
3251
3252 <li>For each machine you would like to export, call <link to="IMachine::export" />
3253 with the IAppliance object you just created. This creates an instance of
3254 <link to="IVirtualSystemDescription" /> inside the appliance.
3255 </li>
3256
3257 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3258 virtual system to override the suggestions made by the export() routine.
3259 </li>
3260
3261 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3262 file written.</li>
3263 </ol>
3264
3265 </desc>
3266
3267 <attribute name="path" type="wstring" readonly="yes">
3268 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3269 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3270 <link to="#write" /> (for export).
3271 This attribute is empty until one of these methods has been called.
3272 </desc>
3273 </attribute>
3274
3275 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3276 <desc>
3277 Array of virtual disk definitions. One such description exists for each
3278 disk definition in the OVF; each string array item represents one such piece of
3279 disk information, with the information fields separated by tab (\t) characters.
3280
3281 The caller should be prepared for additional fields being appended to
3282 this string in future versions of VirtualBox and therefore check for
3283 the number of tabs in the strings returned.
3284
3285 In the current version, the following eight fields are returned per string
3286 in the array:
3287
3288 <ol>
3289 <li>Disk ID (unique string identifier given to disk)</li>
3290
3291 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3292
3293 <li>Populated size (optional unsigned integer indicating the current size of the
3294 disk; can be approximate; -1 if unspecified)</li>
3295
3296 <li>Format (string identifying the disk format, typically
3297 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3298
3299 <li>Reference (where to find the disk image, typically a file name; if empty,
3300 then the disk should be created on import)</li>
3301
3302 <li>Image size (optional unsigned integer indicating the size of the image,
3303 which need not necessarily be the same as the values specified above, since
3304 the image may be compressed or sparse; -1 if not specified)</li>
3305
3306 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3307 presently unsupported and always -1)</li>
3308
3309 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3310 </ol>
3311 </desc>
3312 </attribute>
3313
3314 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3315 <desc> Array of virtual system descriptions. One such description is created
3316 for each virtual system found in the OVF.
3317 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3318 (for export) has been called.
3319 </desc>
3320 </attribute>
3321
3322 <method name="read">
3323 <desc>
3324 Reads an OVF file into the appliance object.
3325
3326 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3327 mere fact that this method returns successfully does not mean that VirtualBox supports all
3328 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3329 </desc>
3330 <param name="file" type="wstring" dir="in">
3331 <desc>
3332 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3333 on whether the appliance is distributed as a set of files or as a single file, respectively).
3334 </desc>
3335 </param>
3336 <param name="aProgress" type="IProgress" dir="return">
3337 <desc></desc>
3338 </param>
3339 </method>
3340
3341 <method name="interpret">
3342 <desc>
3343 Interprets the OVF data that was read when the appliance was constructed. After
3344 calling this method, one can inspect the
3345 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3346 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3347 the appliance.
3348
3349 Calling this method is the second step of importing an appliance into VirtualBox;
3350 see <link to="IAppliance" /> for an overview.
3351
3352 After calling this method, one should call <link to="#getWarnings" /> to find out
3353 if problems were encountered during the processing which might later lead to
3354 errors.
3355 </desc>
3356 </method>
3357
3358 <method name="importMachines">
3359 <desc>
3360 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3361 and other interfaces that match the information contained in the appliance as
3362 closely as possible, as represented by the import instructions in the
3363 <link to="#virtualSystemDescriptions" /> array.
3364
3365 Calling this method is the final step of importing an appliance into VirtualBox;
3366 see <link to="IAppliance" /> for an overview.
3367
3368 Since importing the appliance will most probably involve copying and converting
3369 disk images, which can take a long time, this method operates asynchronously and
3370 returns an IProgress object to allow the caller to monitor the progress.
3371 </desc>
3372
3373 <param name="aProgress" type="IProgress" dir="return">
3374 <desc></desc>
3375 </param>
3376 </method>
3377
3378 <method name="createVFSExplorer">
3379 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
3380
3381 <param name="aUri" type="wstring" dir="in">
3382 <desc>The URI describing the file system to use.</desc>
3383 </param>
3384
3385 <param name="aExplorer" type="IVFSExplorer" dir="return">
3386 <desc></desc>
3387 </param>
3388 </method>
3389
3390 <method name="write">
3391 <desc>
3392 Writes the contents of the appliance exports into a new OVF file.
3393
3394 Calling this method is the final step of exporting an appliance from VirtualBox;
3395 see <link to="IAppliance" /> for an overview.
3396
3397 Since exporting the appliance will most probably involve copying and converting
3398 disk images, which can take a long time, this method operates asynchronously and
3399 returns an IProgress object to allow the caller to monitor the progress.
3400 </desc>
3401 <param name="format" type="wstring" dir="in">
3402 <desc>
3403 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3404 future versions of VirtualBox may support additional formats.
3405 </desc>
3406 </param>
3407 <param name="path" type="wstring" dir="in">
3408 <desc>
3409 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3410 on whether the appliance is distributed as a set of files or as a single file, respectively).
3411 </desc>
3412 </param>
3413 <param name="aProgress" type="IProgress" dir="return">
3414 <desc>Progress object to track the operation completion.</desc>
3415 </param>
3416 </method>
3417
3418 <method name="getWarnings">
3419 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3420
3421 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3422 <desc></desc>
3423 </param>
3424 </method>
3425
3426 </interface>
3427
3428 <enum
3429 name="VirtualSystemDescriptionType"
3430 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3431 >
3432 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3433 a configuration value.</desc>
3434
3435 <const name="Ignore" value="1" />
3436 <const name="OS" value="2" />
3437 <const name="Name" value="3" />
3438 <const name="Product" value="4" />
3439 <const name="Vendor" value="5" />
3440 <const name="Version" value="6" />
3441 <const name="ProductUrl" value="7" />
3442 <const name="VendorUrl" value="8" />
3443 <const name="Description" value="9" />
3444 <const name="License" value="10" />
3445 <const name="Miscellaneous" value="11" />
3446 <const name="CPU" value="12" />
3447 <const name="Memory" value="13" />
3448 <const name="HardDiskControllerIDE" value="14" />
3449 <const name="HardDiskControllerSATA" value="15" />
3450 <const name="HardDiskControllerSCSI" value="16" />
3451 <const name="HardDiskImage" value="17" />
3452 <const name="Floppy" value="18" />
3453 <const name="CDROM" value="19" />
3454 <const name="NetworkAdapter" value="20" />
3455 <const name="USBController" value="21" />
3456 <const name="SoundCard" value="22" />
3457
3458 </enum>
3459
3460 <enum
3461 name="VirtualSystemDescriptionValueType"
3462 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3463 >
3464 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3465 type to fetch.</desc>
3466
3467 <const name="Reference" value="1" />
3468 <const name="Original" value="2" />
3469 <const name="Auto" value="3" />
3470 <const name="ExtraConfig" value="4" />
3471
3472 </enum>
3473
3474 <interface
3475 name="IVirtualSystemDescription" extends="$unknown"
3476 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3477 wsmap="managed"
3478 >
3479
3480 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3481 After <link to="IAppliance::interpret" /> has been called, that array contains
3482 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3483 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3484 into VirtualBox.
3485 </desc>
3486
3487 <attribute name="count" type="unsigned long" readonly="yes">
3488 <desc>Return the number of virtual system description entries.</desc>
3489 </attribute>
3490
3491 <method name="getDescription">
3492 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3493 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3494
3495 The list below identifies the value sets that are possible depending on the
3496 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
3497 the array item with the same index in @a aOvfValues[] will contain the original value as contained
3498 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
3499 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3500 the @a aExtraConfigValues[] array item may also be used.
3501
3502 <ul>
3503 <li>
3504 "OS": the guest operating system type. There must be exactly one such array item on import. The
3505 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3506 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3507 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
3508 </li>
3509 <li>
3510 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3511 if none is present on import, then an automatic name will be created from the operating system
3512 type. The correponding item im @a aOvfValues[] will contain the suggested virtual machine name
3513 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
3514 <link to="IMachine" /> name that does not exist yet.
3515 </li>
3516 <li>
3517 "Description": an arbitrary description.
3518 </li>
3519 <li>
3520 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3521 code to display such a license for agreement; the Main API does not enforce any such policy.
3522 </li>
3523 <li>
3524 Miscellaneous: reserved for future use.
3525 </li>
3526 <li>
3527 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3528 </li>
3529 <li>
3530 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3531 is present on import, then VirtualBox will set a meaningful default based on the operating system
3532 type.
3533 </li>
3534 <li>
3535 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
3536 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
3537 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
3538 writes into the OVF.
3539 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
3540 type can use to specify which hard disk controller a virtual disk should be connected to.
3541 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
3542 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
3543 its virtual machines supports four channels (primary master, primary slave, secondary master,
3544 secondary slave) and thus maps to two IDE controllers in the OVF sense.
3545 </li>
3546 <li>
3547 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3548 has no value in @a aOvfValues[] or @a aVBoxValues[].
3549 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
3550 </li>
3551 <li>
3552 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3553 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3554 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
3555 </li>
3556 <li>
3557 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3558 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3559
3560 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
3561 a path since the image file should be in the same location as the OVF file itself), whereas the
3562 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3563 hard disk image. This means that on import the image will be copied and converted from the
3564 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3565 On import, the target image will also be registered with VirtualBox.
3566
3567 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
3568 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3569 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3570 the image to. That number must be the index of an array item with one of the hard disk controller
3571 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
3572 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3573 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
3574 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
3575 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
3576 </li>
3577 <li>
3578 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
3579 attachment information as with "HardDiskImage" items.
3580 </li>
3581 <li>
3582 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
3583 attachment information as with "HardDiskImage" items.
3584 </li>
3585 <li>
3586 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
3587 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
3588 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3589 </li>
3590 <li>
3591 "USBController": a USB controller. There can be at most one such item. If and only if such an
3592 item ispresent, USB support will be enabled for the new virtual machine.
3593 </li>
3594 <li>
3595 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3596 present, sound support will be enabled for the new virtual machine. Note that the virtual
3597 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3598 may be different from the virtual soundcard expected by the appliance.
3599 </li>
3600 </ul>
3601
3602 </desc>
3603
3604 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3605 <desc></desc>
3606 </param>
3607
3608 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3609 <desc></desc>
3610 </param>
3611
3612 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3613 <desc></desc>
3614 </param>
3615
3616 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3617 <desc></desc>
3618 </param>
3619
3620 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3621 <desc></desc>
3622 </param>
3623
3624 </method>
3625
3626 <method name="getDescriptionByType">
3627 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3628 should be returned.</desc>
3629
3630 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3631 <desc></desc>
3632 </param>
3633
3634 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3635 <desc></desc>
3636 </param>
3637
3638 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3639 <desc></desc>
3640 </param>
3641
3642 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3643 <desc></desc>
3644 </param>
3645
3646 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3647 <desc></desc>
3648 </param>
3649
3650 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3651 <desc></desc>
3652 </param>
3653
3654 </method>
3655
3656 <method name="getValuesByType">
3657 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3658 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3659 values.</desc>
3660
3661 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3662 <desc></desc>
3663 </param>
3664
3665 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3666 <desc></desc>
3667 </param>
3668
3669 <param name="aValues" type="wstring" dir="return" safearray="yes">
3670 <desc></desc>
3671 </param>
3672
3673 </method>
3674
3675 <method name="setFinalValues">
3676 <desc>
3677 This method allows the appliance's user to change the configuration for the virtual
3678 system descriptions. For each array item returned from <link to="#getDescription" />,
3679 you must pass in one boolean value and one configuration value.
3680
3681 Each item in the boolean array determines whether the particular configuration item
3682 should be enabled.
3683 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3684 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3685 and SoundCard.
3686
3687 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3688 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3689 the configuration remains unchanged. Please see the documentation for getDescription()
3690 for valid configuration values for the individual array item types. If the
3691 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3692 </desc>
3693
3694 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3695 <desc></desc>
3696 </param>
3697
3698 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3699 <desc></desc>
3700 </param>
3701
3702 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3703 <desc></desc>
3704 </param>
3705 </method>
3706
3707 <method name="addDescription">
3708 <desc>
3709 This method adds an additional description entry to the stack of already
3710 available descriptions for this virtual system. This is handy for writing
3711 values which aren't directly supported by VirtualBox. One example would
3712 be the License type of <link to="VirtualSystemDescriptionType" />.
3713 </desc>
3714
3715 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3716 <desc></desc>
3717 </param>
3718
3719 <param name="aVBoxValue" type="wstring" dir="in">
3720 <desc></desc>
3721 </param>
3722
3723 <param name="aExtraConfigValue" type="wstring" dir="in">
3724 <desc></desc>
3725 </param>
3726 </method>
3727 </interface>
3728
3729
3730 <!--
3731 // IMachine
3732 /////////////////////////////////////////////////////////////////////////
3733 -->
3734
3735 <interface
3736 name="IInternalMachineControl" extends="$unknown"
3737 uuid="1b61599c-0686-451c-a7b6-96761f3f0ac5"
3738 internal="yes"
3739 wsmap="suppress"
3740 >
3741 <method name="setRemoveSavedState">
3742 <desc>
3743 Updates the flag whether saved state is removed on a machine state
3744 change from Saved to PoweredOff.
3745 </desc>
3746 <param name="aRemove" type="boolean" dir="in"/>
3747 </method>
3748
3749 <method name="updateState">
3750 <desc>
3751 Updates the VM state.
3752 <note>
3753 This operation will also update the settings file with
3754 the correct information about the saved state file
3755 and delete this file from disk when appropriate.
3756 </note>
3757 </desc>
3758 <param name="state" type="MachineState" dir="in"/>
3759 </method>
3760
3761 <method name="getIPCId">
3762 <param name="id" type="wstring" dir="return"/>
3763 </method>
3764
3765 <method name="setPowerUpInfo">
3766 <desc>
3767 Transfers success (@c null) or error information for this session.
3768 This method updates the progress object to signal completion of the
3769 <link to="IVirtualBox::openRemoteSession"/> method if appropriate,
3770 which means that the progress object returned by
3771 <link to="IConsole::powerUp"/>.
3772 </desc>
3773 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
3774 </method>
3775
3776 <method name="runUSBDeviceFilters">
3777 <desc>
3778 Asks the server to run USB devices filters of the associated
3779 machine against the given USB device and tell if there is
3780 a match.
3781 <note>
3782 Intended to be used only for remote USB devices. Local
3783 ones don't require to call this method (this is done
3784 implicitly by the Host and USBProxyService).
3785 </note>
3786 </desc>
3787 <param name="device" type="IUSBDevice" dir="in"/>
3788 <param name="matched" type="boolean" dir="out"/>
3789 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3790 </method>
3791
3792 <method name="captureUSBDevice">
3793 <desc>
3794 Requests a capture of the given host USB device.
3795 When the request is completed, the VM process will
3796 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3797 notification.
3798 </desc>
3799 <param name="id" type="uuid" mod="string" dir="in"/>
3800 </method>
3801
3802 <method name="detachUSBDevice">
3803 <desc>
3804 Notification that a VM is going to detach (@a done = @c false) or has
3805 already detached (@a done = @c true) the given USB device.
3806 When the @a done = @c true request is completed, the VM process will
3807 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3808 notification.
3809 <note>
3810 In the @a done = @c true case, the server must run its own filters
3811 and filters of all VMs but this one on the detached device
3812 as if it were just attached to the host computer.
3813 </note>
3814 </desc>
3815 <param name="id" type="uuid" mod="string" dir="in"/>
3816 <param name="done" type="boolean" dir="in"/>
3817 </method>
3818
3819 <method name="autoCaptureUSBDevices">
3820 <desc>
3821 Requests a capture all matching USB devices attached to the host.
3822 When the request is completed, the VM process will
3823 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3824 notification per every captured device.
3825 </desc>
3826 </method>
3827
3828 <method name="detachAllUSBDevices">
3829 <desc>
3830 Notification that a VM that is being powered down. The done
3831 parameter indicates whether which stage of the power down
3832 we're at. When @a done = @c false the VM is announcing its
3833 intentions, while when @a done = @c true the VM is reporting
3834 what it has done.
3835 <note>
3836 In the @a done = @c true case, the server must run its own filters
3837 and filters of all VMs but this one on all detach devices as
3838 if they were just attached to the host computer.
3839 </note>
3840 </desc>
3841 <param name="done" type="boolean" dir="in"/>
3842 </method>
3843
3844 <method name="onSessionEnd">
3845 <desc>
3846 Triggered by the given session object when the session is about
3847 to close normally.
3848 </desc>
3849 <param name="session" type="ISession" dir="in">
3850 <desc>Session that is being closed</desc>
3851 </param>
3852 <param name="progress" type="IProgress" dir="return">
3853 <desc>
3854 Used to wait until the corresponding machine is actually
3855 dissociated from the given session on the server.
3856 Returned only when this session is a direct one.
3857 </desc>
3858 </param>
3859 </method>
3860
3861 <method name="beginSavingState">
3862 <desc>
3863 Called by the VM process to inform the server it wants to
3864 save the current state and stop the VM execution.
3865 </desc>
3866 <param name="progress" type="IProgress" dir="in">
3867 <desc>
3868 Progress object created by the VM process to wait until
3869 the state is saved.
3870 </desc>
3871 </param>
3872 <param name="stateFilePath" type="wstring" dir="out">
3873 <desc>
3874 File path the VM process must save the execution state to.
3875 </desc>
3876 </param>
3877 </method>
3878
3879 <method name="endSavingState">
3880 <desc>
3881 Called by the VM process to inform the server that saving
3882 the state previously requested by #beginSavingState is either
3883 successfully finished or there was a failure.
3884
3885 <result name="VBOX_E_FILE_ERROR">
3886 Settings file not accessible.
3887 </result>
3888 <result name="VBOX_E_XML_ERROR">
3889 Could not parse the settings file.
3890 </result>
3891
3892 </desc>
3893
3894 <param name="success" type="boolean" dir="in">
3895 <desc>@c true to indicate success and @c false otherwise.
3896 </desc>
3897 </param>
3898 </method>
3899
3900 <method name="adoptSavedState">
3901 <desc>
3902 Gets called by IConsole::adoptSavedState.
3903 <result name="VBOX_E_FILE_ERROR">
3904 Invalid saved state file path.
3905 </result>
3906 </desc>
3907 <param name="savedStateFile" type="wstring" dir="in">
3908 <desc>Path to the saved state file to adopt.</desc>
3909 </param>
3910 </method>
3911
3912 <method name="beginTakingSnapshot">
3913 <desc>
3914 Called from the VM process to request from the server to perform the
3915 server-side actions of creating a snapshot (creating differencing images
3916 and the snapshot object).
3917
3918 <result name="VBOX_E_FILE_ERROR">
3919 Settings file not accessible.
3920 </result>
3921 <result name="VBOX_E_XML_ERROR">
3922 Could not parse the settings file.
3923 </result>
3924 </desc>
3925 <param name="initiator" type="IConsole" dir="in">
3926 <desc>The console object that initiated this call.</desc>
3927 </param>
3928 <param name="name" type="wstring" dir="in">
3929 <desc>Snapshot name.</desc>
3930 </param>
3931 <param name="description" type="wstring" dir="in">
3932 <desc>Snapshot description.</desc>
3933 </param>
3934 <param name="consoleProgress" type="IProgress" dir="in">
3935 <desc>
3936 Progress object created by the VM process tracking the
3937 snapshot's progress. This has the following sub-operations:
3938 <ul>
3939 <li>setting up (weight 1);</li>
3940 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3941 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3942 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3943 <li>finishing up (weight 1)</li>
3944 </ul>
3945 </desc>
3946 </param>
3947 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3948 <desc>
3949 Whether this is an online snapshot (i.e. the machine is running).
3950 </desc>
3951 </param>
3952 <param name="stateFilePath" type="wstring" dir="out">
3953 <desc>
3954 File path the VM process must save the execution state to.
3955 </desc>
3956 </param>
3957 </method>
3958
3959 <method name="endTakingSnapshot">
3960 <desc>
3961 Called by the VM process to inform the server that the snapshot
3962 previously requested by #beginTakingSnapshot is either
3963 successfully taken or there was a failure.
3964 </desc>
3965
3966 <param name="success" type="boolean" dir="in">
3967 <desc>@c true to indicate success and @c false otherwise</desc>
3968 </param>
3969 </method>
3970
3971 <method name="deleteSnapshot">
3972 <desc>
3973 Gets called by IConsole::deleteSnapshot.
3974 <result name="VBOX_E_INVALID_OBJECT_STATE">
3975 Snapshot has more than one child snapshot.
3976 </result>
3977 </desc>
3978 <param name="initiator" type="IConsole" dir="in">
3979 <desc>The console object that initiated this call.</desc>
3980 </param>
3981 <param name="id" type="uuid" mod="string" dir="in">
3982 <desc>UUID of the snapshot to delete.</desc>
3983 </param>
3984 <param name="machineState" type="MachineState" dir="out">
3985 <desc>New machine state after this operation is started.</desc>
3986 </param>
3987 <param name="progress" type="IProgress" dir="return">
3988 <desc>Progress object to track the operation completion.</desc>
3989 </param>
3990 </method>
3991
3992 <method name="restoreSnapshot">
3993 <desc>
3994 Gets called by IConsole::RestoreSnapshot.
3995 </desc>
3996 <param name="initiator" type="IConsole" dir="in">
3997 <desc>The console object that initiated this call.</desc>
3998 </param>
3999 <param name="snapshot" type="ISnapshot" dir="in">
4000 <desc>The snapshot to restore the VM state from.</desc>
4001 </param>
4002 <param name="machineState" type="MachineState" dir="out">
4003 <desc>New machine state after this operation is started.</desc>
4004 </param>
4005 <param name="progress" type="IProgress" dir="return">
4006 <desc>Progress object to track the operation completion.</desc>
4007 </param>
4008 </method>
4009
4010 <method name="pullGuestProperties">
4011 <desc>
4012 Get the list of the guest properties matching a set of patterns along
4013 with their values, time stamps and flags and give responsibility for
4014 managing properties to the console.
4015 </desc>
4016 <param name="name" type="wstring" dir="out" safearray="yes">
4017 <desc>
4018 The names of the properties returned.
4019 </desc>
4020 </param>
4021 <param name="value" type="wstring" dir="out" safearray="yes">
4022 <desc>
4023 The values of the properties returned. The array entries match the
4024 corresponding entries in the @a name array.
4025 </desc>
4026 </param>
4027 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
4028 <desc>
4029 The time stamps of the properties returned. The array entries match
4030 the corresponding entries in the @a name array.
4031 </desc>
4032 </param>
4033 <param name="flags" type="wstring" dir="out" safearray="yes">
4034 <desc>
4035 The flags of the properties returned. The array entries match the
4036 corresponding entries in the @a name array.
4037 </desc>
4038 </param>
4039 </method>
4040
4041 <method name="pushGuestProperty">
4042 <desc>
4043 Update a single guest property in IMachine.
4044 </desc>
4045 <param name="name" type="wstring" dir="in">
4046 <desc>
4047 The name of the property to be updated.
4048 </desc>
4049 </param>
4050 <param name="value" type="wstring" dir="in">
4051 <desc>
4052 The value of the property.
4053 </desc>
4054 </param>
4055 <param name="timestamp" type="unsigned long long" dir="in">
4056 <desc>
4057 The timestamp of the property.
4058 </desc>
4059 </param>
4060 <param name="flags" type="wstring" dir="in">
4061 <desc>
4062 The flags of the property.
4063 </desc>
4064 </param>
4065 </method>
4066
4067 <method name="lockMedia">
4068 <desc>
4069 Locks all media attached to the machine for writing and parents of
4070 attached differencing media (if any) for reading. This operation is
4071 atomic so that if it fails no media is actually locked.
4072
4073 This method is intended to be called when the machine is in Starting or
4074 Restoring state. The locked media will be automatically unlocked when
4075 the machine is powered off or crashed.
4076 </desc>
4077 </method>
4078 <method name="unlockMedia">
4079 <desc>
4080 Unlocks all media previously locked using
4081 <link to="IInternalMachineControl::lockMedia"/>.
4082
4083 This method is intended to be used with teleportation so that it is
4084 possible to teleport between processes on the same machine.
4085 </desc>
4086 </method>
4087 </interface>
4088
4089 <interface
4090 name="IBIOSSettings" extends="$unknown"
4091 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
4092 wsmap="managed"
4093 >
4094 <desc>
4095 The IBIOSSettings interface represents BIOS settings of the virtual
4096 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
4097 </desc>
4098 <attribute name="logoFadeIn" type="boolean">
4099 <desc>Fade in flag for BIOS logo animation.</desc>
4100 </attribute>
4101
4102 <attribute name="logoFadeOut" type="boolean">
4103 <desc>Fade out flag for BIOS logo animation.</desc>
4104 </attribute>
4105
4106 <attribute name="logoDisplayTime" type="unsigned long">
4107 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
4108 </attribute>
4109
4110 <attribute name="logoImagePath" type="wstring">
4111 <desc>
4112 Local file system path for external BIOS splash image. Empty string
4113 means the default image is shown on boot.
4114 </desc>
4115 </attribute>
4116
4117 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
4118 <desc>Mode of the BIOS boot device menu.</desc>
4119 </attribute>
4120
4121 <attribute name="ACPIEnabled" type="boolean">
4122 <desc>ACPI support flag.</desc>
4123 </attribute>
4124
4125 <attribute name="IOAPICEnabled" type="boolean">
4126 <desc>
4127 IO APIC support flag. If set, VirtualBox will provide an IO APIC
4128 and support IRQs above 15.
4129 </desc>
4130 </attribute>
4131
4132 <attribute name="timeOffset" type="long long">
4133 <desc>
4134 Offset in milliseconds from the host system time. This allows for
4135 guests running with a different system date/time than the host.
4136 It is equivalent to setting the system date/time in the BIOS except
4137 it is not an absolute value but a relative one. Guest Additions
4138 time synchronization honors this offset.
4139 </desc>
4140 </attribute>
4141
4142 <attribute name="PXEDebugEnabled" type="boolean">
4143 <desc>
4144 PXE debug logging flag. If set, VirtualBox will write extensive
4145 PXE trace information to the release log.
4146 </desc>
4147 </attribute>
4148
4149 </interface>
4150
4151 <interface
4152 name="IMachine" extends="$unknown"
4153 uuid="fe51e0c8-7e48-4847-95f0-fc8532f3b480"
4154 wsmap="managed"
4155 >
4156 <desc>
4157 The IMachine interface represents a virtual machine, or guest, created
4158 in VirtualBox.
4159
4160 This interface is used in two contexts. First of all, a collection of
4161 objects implementing this interface is stored in the
4162 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4163 machines that are currently registered with this VirtualBox
4164 installation. Also, once a session has been opened for the given virtual
4165 machine (e.g. the virtual machine is running), the machine object
4166 associated with the open session can be queried from the session object;
4167 see <link to="ISession"/> for details.
4168
4169 The main role of this interface is to expose the settings of the virtual
4170 machine and provide methods to change various aspects of the virtual
4171 machine's configuration. For machine objects stored in the
4172 <link to="IVirtualBox::machines"/> collection, all attributes are
4173 read-only unless explicitly stated otherwise in individual attribute
4174 and method descriptions. In order to change a machine setting, a session
4175 for this machine must be opened using one of
4176 <link to="IVirtualBox::openSession"/>,
4177 <link to="IVirtualBox::openRemoteSession"/> or
4178 <link to="IVirtualBox::openExistingSession"/> methods. After the
4179 session has been successfully opened, a mutable machine object needs to
4180 be queried from the session object and then the desired settings changes
4181 can be applied to the returned object using IMachine attributes and
4182 methods. See the <link to="ISession"/> interface description for more
4183 information about sessions.
4184
4185 Note that IMachine does not provide methods to control virtual machine
4186 execution (such as start the machine, or power it down) -- these methods
4187 are grouped in a separate interface called <link to="IConsole" />.
4188
4189 <see>ISession, IConsole</see>
4190 </desc>
4191
4192 <attribute name="parent" type="IVirtualBox" readonly="yes">
4193 <desc>Associated parent object.</desc>
4194 </attribute>
4195
4196 <attribute name="accessible" type="boolean" readonly="yes">
4197 <desc>
4198 Whether this virtual machine is currently accessible or not.
4199
4200 A machine is always deemed accessible unless it is registered <i>and</i>
4201 its settings file cannot be read or parsed (either because the file itself
4202 is unavailable or has invalid XML contents).
4203
4204 Every time this property is read, the accessibility state of
4205 this machine is re-evaluated. If the returned value is @c false,
4206 the <link to="#accessError"/> property may be used to get the
4207 detailed error information describing the reason of
4208 inaccessibility, including XML error messages.
4209
4210 When the machine is inaccessible, only the following properties
4211 can be used on it:
4212 <ul>
4213 <li><link to="#parent"/></li>
4214 <li><link to="#id"/></li>
4215 <li><link to="#settingsFilePath"/></li>
4216 <li><link to="#accessible"/></li>
4217 <li><link to="#accessError"/></li>
4218 </ul>
4219
4220 An attempt to access any other property or method will return
4221 an error.
4222
4223 The only possible action you can perform on an inaccessible
4224 machine is to unregister it using the
4225 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4226 for the accessibility state once more by querying this
4227 property).
4228
4229 <note>
4230 In the current implementation, once this property returns
4231 @c true, the machine will never become inaccessible
4232 later, even if its settings file cannot be successfully
4233 read/written any more (at least, until the VirtualBox
4234 server is restarted). This limitation may be removed in
4235 future releases.
4236 </note>
4237 </desc>
4238 </attribute>
4239
4240 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4241 <desc>
4242 Error information describing the reason of machine
4243 inaccessibility.
4244
4245 Reading this property is only valid after the last call to
4246 <link to="#accessible"/> returned @c false (i.e. the
4247 machine is currently unaccessible). Otherwise, a @c null
4248 IVirtualBoxErrorInfo object will be returned.
4249 </desc>
4250 </attribute>
4251
4252 <attribute name="name" type="wstring">
4253 <desc>
4254 Name of the virtual machine.
4255
4256 Besides being used for human-readable identification purposes
4257 everywhere in VirtualBox, the virtual machine name is also used
4258 as a name of the machine's settings file and as a name of the
4259 subdirectory this settings file resides in. Thus, every time you
4260 change the value of this property, the settings file will be
4261 renamed once you call <link to="#saveSettings"/> to confirm the
4262 change. The containing subdirectory will be also renamed, but
4263 only if it has exactly the same name as the settings file
4264 itself prior to changing this property (for backward compatibility
4265 with previous API releases). The above implies the following
4266 limitations:
4267 <ul>
4268 <li>The machine name cannot be empty.</li>
4269 <li>The machine name can contain only characters that are valid
4270 file name characters according to the rules of the file
4271 system used to store VirtualBox configuration.</li>
4272 <li>You cannot have two or more machines with the same name
4273 if they use the same subdirectory for storing the machine
4274 settings files.</li>
4275 <li>You cannot change the name of the machine if it is running,
4276 or if any file in the directory containing the settings file
4277 is being used by another running machine or by any other
4278 process in the host operating system at a time when
4279 <link to="#saveSettings"/> is called.
4280 </li>
4281 </ul>
4282 If any of the above limitations are hit, <link to="#saveSettings"/>
4283 will return an appropriate error message explaining the exact
4284 reason and the changes you made to this machine will not be
4285 saved.
4286 <note>
4287 For "legacy" machines created using the
4288 <link to="IVirtualBox::createLegacyMachine"/> call,
4289 the above naming limitations do not apply because the
4290 machine name does not affect the settings file name.
4291 The settings file name remains the same as it was specified
4292 during machine creation and never changes.
4293 </note>
4294 </desc>
4295 </attribute>
4296
4297 <attribute name="description" type="wstring">
4298 <desc>
4299 Description of the virtual machine.
4300
4301 The description attribute can contain any text and is
4302 typically used to describe the hardware and software
4303 configuration of the virtual machine in detail (i.e. network
4304 settings, versions of the installed software and so on).
4305 </desc>
4306 </attribute>
4307
4308 <attribute name="id" type="uuid" mod="string" readonly="yes">
4309 <desc>UUID of the virtual machine.</desc>
4310 </attribute>
4311
4312 <attribute name="OSTypeId" type="wstring">
4313 <desc>
4314 User-defined identifier of the Guest OS type.
4315 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4316 an IGuestOSType object representing details about the given
4317 Guest OS type.
4318 <note>
4319 This value may differ from the value returned by
4320 <link to="IGuest::OSTypeId"/> if Guest Additions are
4321 installed to the guest OS.
4322 </note>
4323 </desc>
4324 </attribute>
4325
4326 <attribute name="HardwareVersion" type="wstring">
4327 <desc>Hardware version identifier. Internal use only for now.</desc>
4328 </attribute>
4329
4330 <attribute name="hardwareUUID" type="uuid" mod="string">
4331 <desc>
4332 The UUID presented to the guest via memory tables, hardware and guest
4333 properties. For most VMs this is the same as the @a id, but for VMs
4334 which have been cloned or teleported it may be the same as the source
4335 VM. This latter is because the guest shouldn't notice that it was
4336 cloned or teleported.
4337 </desc>
4338 </attribute>
4339
4340 <attribute name="CPUCount" type="unsigned long">
4341 <desc>Number of virtual CPUs in the VM.</desc>
4342 </attribute>
4343
4344 <attribute name="CPUHotPlugEnabled" type="boolean">
4345 <desc>
4346 This setting determines whether VirtualBox allows CPU
4347 hotplugging for this machine.</desc>
4348 </attribute>
4349
4350 <attribute name="memorySize" type="unsigned long">
4351 <desc>System memory size in megabytes.</desc>
4352 </attribute>
4353
4354 <attribute name="memoryBalloonSize" type="unsigned long">
4355 <desc>Memory balloon size in megabytes.</desc>
4356 </attribute>
4357
4358 <attribute name="VRAMSize" type="unsigned long">
4359 <desc>Video memory size in megabytes.</desc>
4360 </attribute>
4361
4362 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4363 <desc>
4364 This setting determines whether VirtualBox allows this machine to make
4365 use of the 3D graphics support available on the host.</desc>
4366 </attribute>
4367
4368 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4369 <desc>
4370 This setting determines whether VirtualBox allows this machine to make
4371 use of the 2D video acceleration support available on the host.</desc>
4372 </attribute>
4373
4374 <attribute name="monitorCount" type="unsigned long">
4375 <desc>
4376 Number of virtual monitors.
4377 <note>
4378 Only effective on Windows XP and later guests with
4379 Guest Additions installed.
4380 </note>
4381 </desc>
4382 </attribute>
4383
4384 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4385 <desc>Object containing all BIOS settings.</desc>
4386 </attribute>
4387
4388 <attribute name="firmwareType" type="FirmwareType">
4389 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4390 bootstrap in this VM.</desc>
4391 </attribute>
4392
4393 <attribute name="pointingHidType" type="PointingHidType">
4394 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4395 The default is typically "PS2Mouse" but can vary depending on the
4396 requirements of the guest operating system.</desc>
4397 </attribute>
4398
4399 <attribute name="keyboardHidType" type="KeyboardHidType">
4400 <desc>Type of keyboard HID used in this VM.
4401 The default is typically "PS2Keyboard" but can vary depending on the
4402 requirements of the guest operating system.</desc>
4403 </attribute>
4404
4405 <attribute name="hpetEnabled" type="boolean">
4406 <desc>This attribute controls if High Precision Event Timer (HPET) is
4407 enabled in this VM. Use this property if you want to provide guests
4408 with additional time source, or if guest requires HPET to function correctly.
4409 Default is false.</desc>
4410 </attribute>
4411
4412 <attribute name="snapshotFolder" type="wstring">
4413 <desc>
4414 Full path to the directory used to store snapshot data
4415 (differencing media and saved state files) of this machine.
4416
4417 The initial value of this property is
4418 <tt>&lt;</tt><link to="#settingsFilePath">
4419 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4420 <link to="#id">machine_uuid</link>
4421 <tt>&gt;</tt>.
4422
4423 Currently, it is an error to try to change this property on
4424 a machine that has snapshots (because this would require to
4425 move possibly large files to a different location).
4426 A separate method will be available for this purpose later.
4427
4428 <note>
4429 Setting this property to @c null or to an empty string will restore
4430 the initial value.
4431 </note>
4432 <note>
4433 When setting this property, the specified path can be
4434 absolute (full path) or relative to the directory where the
4435 <link to="#settingsFilePath">machine settings file</link>
4436 is located. When reading this property, a full path is
4437 always returned.
4438 </note>
4439 <note>
4440 The specified path may not exist, it will be created
4441 when necessary.
4442 </note>
4443 </desc>
4444 </attribute>
4445
4446 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4447 <desc>VRDP server object.</desc>
4448 </attribute>
4449
4450 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4451 <desc>Array of media attached to this machine.</desc>
4452 </attribute>
4453
4454 <attribute name="USBController" type="IUSBController" readonly="yes">
4455 <desc>
4456 Associated USB controller object.
4457
4458 <note>
4459 If USB functionality is not available in the given edition of
4460 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4461 </note>
4462 </desc>
4463 </attribute>
4464
4465 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4466 <desc>Associated audio adapter, always present.</desc>
4467 </attribute>
4468
4469 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4470 <desc>Array of storage controllers attached to this machine.</desc>
4471 </attribute>
4472
4473 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4474 <desc>
4475 Full name of the file containing machine settings data.
4476 </desc>
4477 </attribute>
4478
4479 <attribute name="settingsModified" type="boolean" readonly="yes">
4480 <desc>
4481 Whether the settings of this machine have been modified
4482 (but neither yet saved nor discarded).
4483 <note>
4484 Reading this property is only valid on instances returned
4485 by <link to="ISession::machine"/> and on new machines
4486 created by <link to="IVirtualBox::createMachine"/> or opened
4487 by <link to="IVirtualBox::openMachine"/> but not
4488 yet registered, or on unregistered machines after calling
4489 <link to="IVirtualBox::unregisterMachine"/>. For all other
4490 cases, the settings can never be modified.
4491 </note>
4492 <note>
4493 For newly created unregistered machines, the value of this
4494 property is always @c true until <link to="#saveSettings"/>
4495 is called (no matter if any machine settings have been
4496 changed after the creation or not). For opened machines
4497 the value is set to @c false (and then follows to normal rules).
4498 </note>
4499 </desc>
4500 </attribute>
4501
4502 <attribute name="sessionState" type="SessionState" readonly="yes">
4503 <desc>Current session state for this machine.</desc>
4504 </attribute>
4505
4506 <attribute name="sessionType" type="wstring" readonly="yes">
4507 <desc>
4508 Type of the session. If <link to="#sessionState"/> is
4509 SessionSpawning or SessionOpen, this attribute contains the
4510 same value as passed to the
4511 <link to="IVirtualBox::openRemoteSession"/> method in the
4512 @a type parameter. If the session was opened directly using
4513 <link to="IVirtualBox::openSession"/>, or if
4514 <link to="#sessionState"/> is SessionClosed, the value of this
4515 attribute is an empty string.
4516 </desc>
4517 </attribute>
4518
4519 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4520 <desc>
4521 Identifier of the session process. This attribute contains the
4522 platform-dependent identifier of the process that has opened a
4523 direct session for this machine using the
4524 <link to="IVirtualBox::openSession"/> call. The returned value
4525 is only valid if <link to="#sessionState"/> is SessionOpen or
4526 SessionClosing (i.e. a session is currently open or being
4527 closed) by the time this property is read.
4528 </desc>
4529 </attribute>
4530
4531 <attribute name="state" type="MachineState" readonly="yes">
4532 <desc>Current execution state of this machine.</desc>
4533 </attribute>
4534
4535 <attribute name="lastStateChange" type="long long" readonly="yes">
4536 <desc>
4537 Time stamp of the last execution state change,
4538 in milliseconds since 1970-01-01 UTC.
4539 </desc>
4540 </attribute>
4541
4542 <attribute name="stateFilePath" type="wstring" readonly="yes">
4543 <desc>
4544 Full path to the file that stores the execution state of
4545 the machine when it is in the <link to="MachineState_Saved"/> state.
4546 <note>
4547 When the machine is not in the Saved state, this attribute is
4548 an empty string.
4549 </note>
4550 </desc>
4551 </attribute>
4552
4553 <attribute name="logFolder" type="wstring" readonly="yes">
4554 <desc>
4555 Full path to the folder that stores a set of rotated log files
4556 recorded during machine execution. The most recent log file is
4557 named <tt>VBox.log</tt>, the previous log file is
4558 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4559 in the current version).
4560 </desc>
4561 </attribute>
4562
4563 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4564 <desc>
4565 Current snapshot of this machine. This is @c null if the machine
4566 currently has no snapshots. If it is not @c null, then it was
4567 set by one of <link to="Console::takeSnapshot" />,
4568 <link to="Console::deleteSnapshot" />
4569 or <link to="Console::restoreSnapshot" />, depending on which
4570 was called last. See <link to="ISnapshot"/> for details.
4571 </desc>
4572 </attribute>
4573
4574 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4575 <desc>
4576 Number of snapshots taken on this machine. Zero means the
4577 machine doesn't have any snapshots.
4578 </desc>
4579 </attribute>
4580
4581 <attribute name="currentStateModified" type="boolean" readonly="yes">
4582 <desc>
4583 Returns @c true if the current state of the machine is not
4584 identical to the state stored in the current snapshot.
4585
4586 The current state is identical to the current snapshot only
4587 directly after one of the following calls are made:
4588
4589 <ul>
4590 <li><link to="IConsole::restoreSnapshot"/>
4591 </li>
4592 <li><link to="IConsole::takeSnapshot"/> (issued on a
4593 "powered off" or "saved" machine, for which
4594 <link to="#settingsModified"/> returns @c false)
4595 </li>
4596 <li><link to="IMachine::setCurrentSnapshot"/>
4597 </li>
4598 </ul>
4599
4600 The current state remains identical until one of the following
4601 happens:
4602 <ul>
4603 <li>settings of the machine are changed</li>
4604 <li>the saved state is deleted</li>
4605 <li>the current snapshot is deleted</li>
4606 <li>an attempt to execute the machine is made</li>
4607 </ul>
4608
4609 <note>
4610 For machines that don't have snapshots, this property is
4611 always @c false.
4612 </note>
4613 </desc>
4614 </attribute>
4615
4616 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4617 <desc>
4618 Collection of shared folders for this machine (permanent shared
4619 folders). These folders are shared automatically at machine startup
4620 and available only to the guest OS installed within this machine.
4621
4622 New shared folders are added to the collection using
4623 <link to="#createSharedFolder"/>. Existing shared folders can be
4624 removed using <link to="#removeSharedFolder"/>.
4625 </desc>
4626 </attribute>
4627
4628 <attribute name="clipboardMode" type="ClipboardMode">
4629 <desc>
4630 Synchronization mode between the host OS clipboard
4631 and the guest OS clipboard.
4632 </desc>
4633 </attribute>
4634
4635 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4636 <desc>
4637 A comma-separated list of simple glob patterns. Changes to guest
4638 properties whose name matches one of the patterns will generate an
4639 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4640 </desc>
4641 </attribute>
4642
4643 <attribute name="teleporterEnabled" type="boolean">
4644 <desc>
4645 When set to @a true, the virtual machine becomes a target teleporter
4646 the next time it is powered on. This can only set to @a true when the
4647 VM is in the @a PoweredOff or @a Aborted state.
4648
4649 <!-- This property is automatically set to @a false when the VM is powered
4650 on. (bird: This doesn't work yet ) -->
4651 </desc>
4652 </attribute>
4653
4654 <attribute name="teleporterPort" type="unsigned long">
4655 <desc>
4656 The TCP port the target teleporter will listen for incoming
4657 teleportations on.
4658
4659 0 means the port is automatically selected upon power on. The actual
4660 value can be read from this property while the machine is waiting for
4661 incoming teleportations.
4662 </desc>
4663 </attribute>
4664
4665 <attribute name="teleporterAddress" type="wstring">
4666 <desc>
4667 The address the target teleporter will listen on. If set to an empty
4668 string, it will listen on all addresses.
4669 </desc>
4670 </attribute>
4671
4672 <attribute name="teleporterPassword" type="wstring">
4673 <desc>
4674 The password the to check for on the target teleporter. This is just a
4675 very basic measure to prevent simple hacks and operators accidentally
4676 beaming a virtual machine to the wrong place.
4677 </desc>
4678 </attribute>
4679
4680 <attribute name="RTCUseUTC" type="boolean">
4681 <desc>
4682 When set to @a true, the RTC device of the virtual machine will run
4683 in UTC time, otherwise in local time. Especially Unix guests prefer
4684 the time in UTC.
4685 </desc>
4686 </attribute>
4687
4688 <attribute name="ioMgr" type="IoMgrType">
4689 <desc>
4690 Selects the I/O manager to use for the virtual machine.
4691 </desc>
4692 </attribute>
4693
4694 <attribute name="ioBackend" type="IoBackendType">
4695 <desc>
4696 Selects the I/O backend to use for the virtual machine.
4697 </desc>
4698 </attribute>
4699
4700 <attribute name="ioCacheEnabled" type="boolean">
4701 <desc>
4702 When set to @a true, the builtin I/O cache of the virtual machine
4703 will be enabled.
4704 </desc>
4705 </attribute>
4706
4707 <attribute name="ioCacheSize" type="unsigned long">
4708 <desc>
4709 Maximum size of the I/O cache in MB.
4710 </desc>
4711 </attribute>
4712
4713 <attribute name="ioBandwidthMax" type="unsigned long">
4714 <desc>
4715 The maximum number of MB the VM is allowed to transfer per second.
4716 0 means unlimited bandwidth.
4717 </desc>
4718 </attribute>
4719
4720 <method name="setBootOrder">
4721 <desc>
4722 Puts the given device to the specified position in
4723 the boot order.
4724
4725 To indicate that no device is associated with the given position,
4726 <link to="DeviceType_Null"/> should be used.
4727
4728 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4729
4730 <result name="E_INVALIDARG">
4731 Boot @a position out of range.
4732 </result>
4733 <result name="E_NOTIMPL">
4734 Booting from USB @a device currently not supported.
4735 </result>
4736
4737 </desc>
4738 <param name="position" type="unsigned long" dir="in">
4739 <desc>
4740 Position in the boot order (@c 1 to the total number of
4741 devices the machine can boot from, as returned by
4742 <link to="ISystemProperties::maxBootPosition"/>).
4743 </desc>
4744 </param>
4745 <param name="device" type="DeviceType" dir="in">
4746 <desc>
4747 The type of the device used to boot at the given position.
4748 </desc>
4749 </param>
4750 </method>
4751
4752 <method name="getBootOrder" const="yes">
4753 <desc>
4754 Returns the device type that occupies the specified
4755 position in the boot order.
4756
4757 @todo [remove?]
4758 If the machine can have more than one device of the returned type
4759 (such as hard disks), then a separate method should be used to
4760 retrieve the individual device that occupies the given position.
4761
4762 If here are no devices at the given position, then
4763 <link to="DeviceType_Null"/> is returned.
4764
4765 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4766
4767 <result name="E_INVALIDARG">
4768 Boot @a position out of range.
4769 </result>
4770
4771 </desc>
4772 <param name="position" type="unsigned long" dir="in">
4773 <desc>
4774 Position in the boot order (@c 1 to the total number of
4775 devices the machine can boot from, as returned by
4776 <link to="ISystemProperties::maxBootPosition"/>).
4777 </desc>
4778 </param>
4779 <param name="device" type="DeviceType" dir="return">
4780 <desc>
4781 Device at the given position.
4782 </desc>
4783 </param>
4784 </method>
4785
4786 <method name="attachDevice">
4787 <desc>
4788 Attaches a device and optionally mounts a medium to the given storage
4789 controller (<link to="IStorageController" />, identified by @a name),
4790 at the indicated port and device.
4791
4792 This method is intended for managing storage devices in general (it works
4793 for both fixed and removable media). For storage devices supporting removable
4794 media (such as DVDs and floppies), you can also use <link to="IMedium::mountMedium"/>
4795 for changing the media while the machine is running.
4796
4797 For the IDE bus, the @a controllerPort parameter can be either
4798 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4799 respectively. For each of these, @a device can then be either @c 0 or @c 1,
4800 to specify the master or the slave device, respectively. (In the
4801 default configuration of virtual machines, the secondary master is
4802 used for a CD/DVD drive.)
4803
4804 For an SATA controller, @a controllerPort must be a number ranging
4805 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4806 be a number ranging from @c 0 to @c 15.
4807
4808 For both SCSI and SATA, the @a device parameter is unused and must
4809 be @c 0.
4810
4811 For fixed media such as hard disks, the given medium identifier cannot
4812 be a zero UUID. It may be a zero UUID for removable media such as DVDs
4813 and floppies.
4814
4815 After calling this returns successfully, a new instance of
4816 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4817 attachments (<link to="IMachine::mediumAttachments"/>).
4818
4819 The specified device slot must not have a device attached to it,
4820 or this method will fail.
4821
4822 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4823 information about attaching media.
4824
4825 <note>
4826 You cannot attach a device to a running machine. Also, you cannot
4827 attach a device to a newly created machine until this machine's
4828 settings are saved to disk using <link to="#saveSettings"/>.
4829 </note>
4830 <note>
4831 If the medium is being attached indirectly, a new differencing medium
4832 will implicitly be created for it and attached instead. If the
4833 changes made to the machine settings (including this indirect
4834 attachment) are later cancelled using <link to="#discardSettings"/>,
4835 this implicitly created differencing medium will implicitly
4836 be deleted.
4837 </note>
4838
4839 <result name="E_INVALIDARG">
4840 SATA device, SATA port, IDE port or IDE slot out of range.
4841 </result>
4842 <result name="VBOX_E_INVALID_OBJECT_STATE">
4843 Attempt to attach medium to an unregistered virtual machine.
4844 </result>
4845 <result name="VBOX_E_INVALID_VM_STATE">
4846 Invalid machine state.
4847 </result>
4848 <result name="VBOX_E_OBJECT_IN_USE">
4849 Hard disk already attached to this or another virtual machine.
4850 </result>
4851
4852 </desc>
4853 <param name="name" type="wstring" dir="in">
4854 <desc>Name of the storage controller to attach the device to.</desc>
4855 </param>
4856 <param name="controllerPort" type="long" dir="in">
4857 <desc>Port to attach the device to.</desc>
4858 </param>
4859 <param name="device" type="long" dir="in">
4860 <desc>Device slot in the given port to attach the device to.</desc>
4861 </param>
4862 <param name="type" type="DeviceType" dir="in">
4863 <desc>Device type of the attached device.</desc>
4864 </param>
4865 <param name="id" type="uuid" mod="string" dir="in">
4866 <desc>UUID of the medium to mount. Zero UUID means do not mount any
4867 medium.</desc>
4868 </param>
4869 </method>
4870
4871 <method name="detachDevice">
4872 <desc>
4873 Detaches the device attached to a device slot of the specified bus.
4874
4875 Detaching the device from the virtual machine is deferred. This means
4876 that the medium remains associated with the machine when this method
4877 returns and gets actually de-associated only after a successful
4878 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4879 for more detailed information about attaching media.
4880
4881 <note>
4882 You cannot detach a device from a running machine.
4883 </note>
4884 <note>
4885 Detaching differencing media implicitly created by <link
4886 to="#attachDevice"/> for the indirect attachment using this
4887 method will <b>not</b> implicitly delete them. The
4888 <link to="IMedium::deleteStorage"/> operation should be
4889 explicitly performed by the caller after the medium is successfully
4890 detached and the settings are saved with
4891 <link to="#saveSettings"/>, if it is the desired action.
4892 </note>
4893
4894 <result name="VBOX_E_INVALID_VM_STATE">
4895 Attempt to detach medium from a running virtual machine.
4896 </result>
4897 <result name="VBOX_E_OBJECT_NOT_FOUND">
4898 No medium attached to given slot/bus.
4899 </result>
4900 <result name="VBOX_E_NOT_SUPPORTED">
4901 Medium format does not support storage deletion.
4902 </result>
4903
4904 </desc>
4905 <param name="name" type="wstring" dir="in">
4906 <desc>Name of the storage controller to detach the medium from.</desc>
4907 </param>
4908 <param name="controllerPort" type="long" dir="in">
4909 <desc>Port number to detach the medium from.</desc>
4910 </param>
4911 <param name="device" type="long" dir="in">
4912 <desc>Device slot number to detach the medium from.</desc>
4913 </param>
4914 </method>
4915
4916 <method name="passthroughDevice">
4917 <desc>
4918 Sets the passthrough mode of an existing DVD device. Changing the
4919 setting while the VM is running is forbidden. The setting is only used
4920 if at VM start the device is configured as a host DVD drive, in all
4921 other cases it is ignored. The device must already exist; see
4922 <link to="IMachine::attachDevice"/> for how to attach a new device.
4923
4924 The @a controllerPort and @a device parameters specify the device slot and
4925 have have the same meaning as with <link to="IMachine::attachDevice" />.
4926
4927 <result name="E_INVALIDARG">
4928 SATA device, SATA port, IDE port or IDE slot out of range.
4929 </result>
4930 <result name="VBOX_E_INVALID_OBJECT_STATE">
4931 Attempt to modify an unregistered virtual machine.
4932 </result>
4933 <result name="VBOX_E_INVALID_VM_STATE">
4934 Invalid machine state.
4935 </result>
4936
4937 </desc>
4938 <param name="name" type="wstring" dir="in">
4939 <desc>Name of the storage controller.</desc>
4940 </param>
4941 <param name="controllerPort" type="long" dir="in">
4942 <desc>Storage controller port.</desc>
4943 </param>
4944 <param name="device" type="long" dir="in">
4945 <desc>Device slot in the given port.</desc>
4946 </param>
4947 <param name="passthrough" type="boolean" dir="in">
4948 <desc>New value for the passthrough setting.</desc>
4949 </param>
4950 </method>
4951
4952 <method name="mountMedium">
4953 <desc>
4954 Mounts a medium (<link to="IMedium" />, identified
4955 by the given UUID @a id) to the given storage controller
4956 (<link to="IStorageController" />, identified by @a name),
4957 at the indicated port and device. The device must already exist;
4958 see <link to="IMachine::attachDevice"/> for how to attach a new device.
4959
4960 This method is intended only for managing removable media, where the
4961 device is fixed but media is changeable at runtime (such as DVDs
4962 and floppies). It cannot be used for fixed media such as hard disks.
4963
4964 The @a controllerPort and @a device parameters specify the device slot and
4965 have have the same meaning as with <link to="IMachine::attachDevice" />.
4966
4967 The specified device slot can have a medium mounted, which will be
4968 unmounted first. Specifying a zero UUID (or an empty string) for
4969 @a medium does just an unmount.
4970
4971 See <link to="IMedium"/> for more detailed information about
4972 attaching media.
4973
4974 <result name="E_INVALIDARG">
4975 SATA device, SATA port, IDE port or IDE slot out of range.
4976 </result>
4977 <result name="VBOX_E_INVALID_OBJECT_STATE">
4978 Attempt to attach medium to an unregistered virtual machine.
4979 </result>
4980 <result name="VBOX_E_INVALID_VM_STATE">
4981 Invalid machine state.
4982 </result>
4983 <result name="VBOX_E_OBJECT_IN_USE">
4984 Medium already attached to this or another virtual machine.
4985 </result>
4986
4987 </desc>
4988 <param name="name" type="wstring" dir="in">
4989 <desc>Name of the storage controller to attach the medium to.</desc>
4990 </param>
4991 <param name="controllerPort" type="long" dir="in">
4992 <desc>Port to attach the medium to.</desc>
4993 </param>
4994 <param name="device" type="long" dir="in">
4995 <desc>Device slot in the given port to attach the medium to.</desc>
4996 </param>
4997 <param name="medium" type="uuid" mod="string" dir="in">
4998 <desc>UUID of the medium to attach. A zero UUID means unmount the
4999 currently mounted medium.</desc>
5000 </param>
5001 <param name="force" type="boolean" dir="in">
5002 <desc>Allows to force unmount/mount of a medium which is locked by
5003 theDevice slot in the given port to attach the medium to.</desc>
5004 </param>
5005 </method>
5006
5007 <method name="getMedium" const="yes">
5008 <desc>
5009 Returns the virtual medium attached to a device slot of the specified
5010 bus.
5011
5012 Note that if the medium was indirectly attached by
5013 <link to="#mountMedium"/> to the given device slot then this
5014 method will return not the same object as passed to the
5015 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5016 more detailed information about mounting a medium.
5017
5018 <result name="VBOX_E_OBJECT_NOT_FOUND">
5019 No medium attached to given slot/bus.
5020 </result>
5021
5022 </desc>
5023 <param name="name" type="wstring" dir="in">
5024 <desc>Name of the storage controller the medium is attached to.</desc>
5025 </param>
5026 <param name="controllerPort" type="long" dir="in">
5027 <desc>Port to query.</desc>
5028 </param>
5029 <param name="device" type="long" dir="in">
5030 <desc>Device slot in the given port to query.</desc>
5031 </param>
5032 <param name="medium" type="IMedium" dir="return">
5033 <desc>Attached medium object.</desc>
5034 </param>
5035 </method>
5036
5037 <method name="getMediumAttachmentsOfController" const="yes">
5038 <desc>
5039 Returns an array of medium attachments which are attached to the
5040 the controller with the given name.
5041
5042 <result name="VBOX_E_OBJECT_NOT_FOUND">
5043 A storage controller with given name doesn't exist.
5044 </result>
5045 </desc>
5046 <param name="name" type="wstring" dir="in"/>
5047 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5048 </method>
5049
5050 <method name="getMediumAttachment" const="yes">
5051 <desc>
5052 Returns a medium attachment which corresponds to the controller with
5053 the given name, on the given port and device slot.
5054
5055 <result name="VBOX_E_OBJECT_NOT_FOUND">
5056 No attachment exists for the given controller/port/device combination.
5057 </result>
5058 </desc>
5059 <param name="name" type="wstring" dir="in"/>
5060 <param name="controllerPort" type="long" dir="in"/>
5061 <param name="device" type="long" dir="in"/>
5062 <param name="attachment" type="IMediumAttachment" dir="return"/>
5063 </method>
5064
5065 <method name="getNetworkAdapter" const="yes">
5066 <desc>
5067 Returns the network adapter associated with the given slot.
5068 Slots are numbered sequentially, starting with zero. The total
5069 number of adapters per machine is defined by the
5070 <link to="ISystemProperties::networkAdapterCount"/> property,
5071 so the maximum slot number is one less than that property's value.
5072
5073 <result name="E_INVALIDARG">
5074 Invalid @a slot number.
5075 </result>
5076
5077 </desc>
5078 <param name="slot" type="unsigned long" dir="in"/>
5079 <param name="adapter" type="INetworkAdapter" dir="return"/>
5080 </method>
5081
5082 <method name="addStorageController">
5083 <desc>
5084 Adds a new storage controller (SCSI or SATA controller) to the
5085 machine and returns it as an instance of
5086 <link to="IStorageController" />.
5087
5088 @a name identifies the controller for subsequent calls such as
5089 <link to="#getStorageControllerByName" />,
5090 <link to="#getStorageControllerByInstance" />,
5091 <link to="#removeStorageController" />,
5092 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5093
5094 After the controller has been added, you can set its exact
5095 type by setting the <link to="IStorageController::controllerType" />.
5096
5097 <result name="VBOX_E_OBJECT_IN_USE">
5098 A storage controller with given name exists already.
5099 </result>
5100 <result name="E_INVALIDARG">
5101 Invalid @a controllerType.
5102 </result>
5103 </desc>
5104 <param name="name" type="wstring" dir="in"/>
5105 <param name="connectionType" type="StorageBus" dir="in"/>
5106 <param name="controller" type="IStorageController" dir="return"/>
5107 </method>
5108
5109 <method name="getStorageControllerByName" const="yes">
5110 <desc>
5111 Returns a storage controller with the given name.
5112
5113 <result name="VBOX_E_OBJECT_NOT_FOUND">
5114 A storage controller with given name doesn't exist.
5115 </result>
5116 </desc>
5117 <param name="name" type="wstring" dir="in"/>
5118 <param name="storageController" type="IStorageController" dir="return"/>
5119 </method>
5120
5121 <method name="getStorageControllerByInstance" const="yes">
5122 <desc>
5123 Returns a storage controller with the given instance number.
5124
5125 <result name="VBOX_E_OBJECT_NOT_FOUND">
5126 A storage controller with given instance number doesn't exist.
5127 </result>
5128 </desc>
5129 <param name="instance" type="unsigned long" dir="in"/>
5130 <param name="storageController" type="IStorageController" dir="return"/>
5131 </method>
5132
5133 <method name="removeStorageController">
5134 <desc>
5135 Removes a storage controller from the machine.
5136
5137 <result name="VBOX_E_OBJECT_NOT_FOUND">
5138 A storage controller with given name doesn't exist.
5139 </result>
5140 </desc>
5141 <param name="name" type="wstring" dir="in"/>
5142 </method>
5143
5144 <method name="getSerialPort" const="yes">
5145 <desc>
5146 Returns the serial port associated with the given slot.
5147 Slots are numbered sequentially, starting with zero. The total
5148 number of serial ports per machine is defined by the
5149 <link to="ISystemProperties::serialPortCount"/> property,
5150 so the maximum slot number is one less than that property's value.
5151
5152 <result name="E_INVALIDARG">
5153 Invalid @a slot number.
5154 </result>
5155
5156 </desc>
5157 <param name="slot" type="unsigned long" dir="in"/>
5158 <param name="port" type="ISerialPort" dir="return"/>
5159 </method>
5160
5161 <method name="getParallelPort" const="yes">
5162 <desc>
5163 Returns the parallel port associated with the given slot.
5164 Slots are numbered sequentially, starting with zero. The total
5165 number of parallel ports per machine is defined by the
5166 <link to="ISystemProperties::parallelPortCount"/> property,
5167 so the maximum slot number is one less than that property's value.
5168
5169 <result name="E_INVALIDARG">
5170 Invalid @a slot number.
5171 </result>
5172
5173 </desc>
5174 <param name="slot" type="unsigned long" dir="in"/>
5175 <param name="port" type="IParallelPort" dir="return"/>
5176 </method>
5177
5178 <method name="getExtraDataKeys">
5179 <desc>
5180 Returns an array representing the machine-specific extra data keys
5181 which currently have values defined.
5182 </desc>
5183 <param name="value" type="wstring" dir="return" safearray="yes">
5184 <desc>Array of extra data keys.</desc>
5185 </param>
5186 </method>
5187
5188 <method name="getExtraData">
5189 <desc>
5190 Returns associated machine-specific extra data.
5191
5192 If the requested data @a key does not exist, this function will
5193 succeed and return an empty string in the @a value argument.
5194
5195 <result name="VBOX_E_FILE_ERROR">
5196 Settings file not accessible.
5197 </result>
5198 <result name="VBOX_E_XML_ERROR">
5199 Could not parse the settings file.
5200 </result>
5201
5202 </desc>
5203 <param name="key" type="wstring" dir="in">
5204 <desc>Name of the data key to get.</desc>
5205 </param>
5206 <param name="value" type="wstring" dir="return">
5207 <desc>Value of the requested data key.</desc>
5208 </param>
5209 </method>
5210
5211 <method name="setExtraData">
5212 <desc>
5213 Sets associated machine-specific extra data.
5214
5215 If you pass @c null or an empty string as a key @a value, the given
5216 @a key will be deleted.
5217
5218 <note>
5219 Before performing the actual data change, this method will ask all
5220 registered callbacks using the
5221 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
5222 notification for a permission. If one of the callbacks refuses the
5223 new value, the change will not be performed.
5224 </note>
5225 <note>
5226 On success, the
5227 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
5228 is called to inform all registered callbacks about a successful data
5229 change.
5230 </note>
5231 <note>
5232 This method can be called outside the machine session and therefore
5233 it's a caller's responsibility to handle possible race conditions
5234 when several clients change the same key at the same time.
5235 </note>
5236
5237 <result name="VBOX_E_FILE_ERROR">
5238 Settings file not accessible.
5239 </result>
5240 <result name="VBOX_E_XML_ERROR">
5241 Could not parse the settings file.
5242 </result>
5243
5244 </desc>
5245 <param name="key" type="wstring" dir="in">
5246 <desc>Name of the data key to set.</desc>
5247 </param>
5248 <param name="value" type="wstring" dir="in">
5249 <desc>Value to assign to the key.</desc>
5250 </param>
5251 </method>
5252
5253 <method name="getCPUProperty" const="yes">
5254 <desc>
5255 Returns the virtual CPU boolean value of the specified property.
5256
5257 <result name="E_INVALIDARG">
5258 Invalid property.
5259 </result>
5260
5261 </desc>
5262 <param name="property" type="CPUPropertyType" dir="in">
5263 <desc>
5264 Property type to query.
5265 </desc>
5266 </param>
5267 <param name="value" type="boolean" dir="return">
5268 <desc>
5269 Property value.
5270 </desc>
5271 </param>
5272 </method>
5273
5274 <method name="setCPUProperty">
5275 <desc>
5276 Sets the virtual CPU boolean value of the specified property.
5277
5278 <result name="E_INVALIDARG">
5279 Invalid property.
5280 </result>
5281
5282 </desc>
5283 <param name="property" type="CPUPropertyType" dir="in">
5284 <desc>
5285 Property type to query.
5286 </desc>
5287 </param>
5288 <param name="value" type="boolean" dir="in">
5289 <desc>
5290 Property value.
5291 </desc>
5292 </param>
5293 </method>
5294
5295 <method name="getCPUIDLeaf" const="yes">
5296 <desc>
5297 Returns the virtual CPU cpuid information for the specified leaf.
5298
5299 Currently supported index values for cpuid:
5300 Standard CPUID leafs: 0 - 0xA
5301 Extended CPUID leafs: 0x80000000 - 0x8000000A
5302
5303 See the Intel and AMD programmer's manuals for detailed information
5304 about the cpuid instruction and its leafs.
5305 <result name="E_INVALIDARG">
5306 Invalid id.
5307 </result>
5308
5309 </desc>
5310 <param name="id" type="unsigned long" dir="in">
5311 <desc>
5312 CPUID leaf index.
5313 </desc>
5314 </param>
5315 <param name="valEax" type="unsigned long" dir="out">
5316 <desc>
5317 CPUID leaf value for register eax.
5318 </desc>
5319 </param>
5320 <param name="valEbx" type="unsigned long" dir="out">
5321 <desc>
5322 CPUID leaf value for register ebx.
5323 </desc>
5324 </param>
5325 <param name="valEcx" type="unsigned long" dir="out">
5326 <desc>
5327 CPUID leaf value for register ecx.
5328 </desc>
5329 </param>
5330 <param name="valEdx" type="unsigned long" dir="out">
5331 <desc>
5332 CPUID leaf value for register edx.
5333 </desc>
5334 </param>
5335 </method>
5336
5337 <method name="setCPUIDLeaf" const="yes">
5338 <desc>
5339 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5340 are not passed unmodified. VirtualBox clears features that it doesn't support.
5341
5342 Currently supported index values for cpuid:
5343 Standard CPUID leafs: 0 - 0xA
5344 Extended CPUID leafs: 0x80000000 - 0x8000000A
5345
5346 See the Intel and AMD programmer's manuals for detailed information
5347 about the cpuid instruction and its leafs.
5348
5349 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5350 random crashes inside VMs.
5351 <result name="E_INVALIDARG">
5352 Invalid id.
5353 </result>
5354
5355 </desc>
5356 <param name="id" type="unsigned long" dir="in">
5357 <desc>
5358 CPUID leaf index.
5359 </desc>
5360 </param>
5361 <param name="valEax" type="unsigned long" dir="in">
5362 <desc>
5363 CPUID leaf value for register eax.
5364 </desc>
5365 </param>
5366 <param name="valEbx" type="unsigned long" dir="in">
5367 <desc>
5368 CPUID leaf value for register ebx.
5369 </desc>
5370 </param>
5371 <param name="valEcx" type="unsigned long" dir="in">
5372 <desc>
5373 CPUID leaf value for register ecx.
5374 </desc>
5375 </param>
5376 <param name="valEdx" type="unsigned long" dir="in">
5377 <desc>
5378 CPUID leaf value for register edx.
5379 </desc>
5380 </param>
5381 </method>
5382
5383 <method name="removeCPUIDLeaf" const="yes">
5384 <desc>
5385 Removes the virtual CPU cpuid leaf for the specified index
5386
5387 <result name="E_INVALIDARG">
5388 Invalid id.
5389 </result>
5390
5391 </desc>
5392 <param name="id" type="unsigned long" dir="in">
5393 <desc>
5394 CPUID leaf index.
5395 </desc>
5396 </param>
5397 </method>
5398
5399 <method name="removeAllCPUIDLeaves" const="yes">
5400 <desc>
5401 Removes all the virtual CPU cpuid leaves
5402 </desc>
5403 </method>
5404
5405 <method name="getHWVirtExProperty" const="yes">
5406 <desc>
5407 Returns the value of the specified hardware virtualization boolean property.
5408
5409 <result name="E_INVALIDARG">
5410 Invalid property.
5411 </result>
5412
5413 </desc>
5414 <param name="property" type="HWVirtExPropertyType" dir="in">
5415 <desc>
5416 Property type to query.
5417 </desc>
5418 </param>
5419 <param name="value" type="boolean" dir="return">
5420 <desc>
5421 Property value.
5422 </desc>
5423 </param>
5424 </method>
5425
5426 <method name="setHWVirtExProperty">
5427 <desc>
5428 Sets a new value for the specified hardware virtualization boolean property.
5429
5430 <result name="E_INVALIDARG">
5431 Invalid property.
5432 </result>
5433
5434 </desc>
5435 <param name="property" type="HWVirtExPropertyType" dir="in">
5436 <desc>
5437 Property type to set.
5438 </desc>
5439 </param>
5440 <param name="value" type="boolean" dir="in">
5441 <desc>
5442 New property value.
5443 </desc>
5444 </param>
5445 </method>
5446
5447 <method name="saveSettings">
5448 <desc>
5449 Saves any changes to machine settings made since the session
5450 has been opened or a new machine has been created, or since the
5451 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5452 For registered machines, new settings become visible to all
5453 other VirtualBox clients after successful invocation of this
5454 method.
5455 <note>
5456 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
5457 notification event after the configuration has been successfully
5458 saved (only for registered machines).
5459 </note>
5460 <note>
5461 Calling this method is only valid on instances returned
5462 by <link to="ISession::machine"/> and on new machines
5463 created by <link to="IVirtualBox::createMachine"/> but not
5464 yet registered, or on unregistered machines after calling
5465 <link to="IVirtualBox::unregisterMachine"/>.
5466 </note>
5467
5468 <result name="VBOX_E_FILE_ERROR">
5469 Settings file not accessible.
5470 </result>
5471 <result name="VBOX_E_XML_ERROR">
5472 Could not parse the settings file.
5473 </result>
5474 <result name="E_ACCESSDENIED">
5475 Modification request refused.
5476 </result>
5477
5478 </desc>
5479 </method>
5480
5481 <method name="discardSettings">
5482 <desc>
5483 Discards any changes to the machine settings made since the session
5484 has been opened or since the last call to <link to="#saveSettings"/>
5485 or <link to="#discardSettings"/>.
5486 <note>
5487 Calling this method is only valid on instances returned
5488 by <link to="ISession::machine"/> and on new machines
5489 created by <link to="IVirtualBox::createMachine"/> or
5490 opened by <link to="IVirtualBox::openMachine"/> but not
5491 yet registered, or on unregistered machines after calling
5492 <link to="IVirtualBox::unregisterMachine"/>.
5493 </note>
5494
5495 <result name="VBOX_E_INVALID_VM_STATE">
5496 Virtual machine is not mutable.
5497 </result>
5498
5499 </desc>
5500 </method>
5501
5502 <method name="deleteSettings">
5503 <desc>
5504 Deletes the settings file of this machine from disk.
5505 The machine must not be registered in order for this operation
5506 to succeed.
5507 <note>
5508 <link to="#settingsModified"/> will return @c true after this
5509 method successfully returns.
5510 </note>
5511 <note>
5512 Calling this method is only valid on instances returned
5513 by <link to="ISession::machine"/> and on new machines
5514 created by <link to="IVirtualBox::createMachine"/> or
5515 opened by <link to="IVirtualBox::openMachine"/> but not
5516 yet registered, or on unregistered machines after calling
5517 <link to="IVirtualBox::unregisterMachine"/>.
5518 </note>
5519 <note>
5520 The deleted machine settings file can be restored (saved again)
5521 by calling <link to="#saveSettings"/>.
5522 </note>
5523
5524 <result name="VBOX_E_INVALID_VM_STATE">
5525 Cannot delete settings of a registered machine or
5526 machine not mutable.
5527 </result>
5528 <result name="VBOX_E_IPRT_ERROR">
5529 Could not delete the settings file.
5530 </result>
5531
5532 </desc>
5533 </method>
5534
5535 <method name="export">
5536 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5537 steps required to export VirtualBox machines to OVF.
5538 </desc>
5539
5540 <param name="aAppliance" type="IAppliance" dir="in">
5541 <desc>Appliance to export this machine to.</desc>
5542 </param>
5543 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5544 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5545 </param>
5546 </method >
5547
5548 <method name="getSnapshot">
5549 <desc>
5550 Returns a snapshot of this machine with the given UUID.
5551 A @c null UUID can be used to obtain the first snapshot
5552 taken on this machine. This is useful if you want to traverse
5553 the whole tree of snapshots starting from the root.
5554
5555 <result name="VBOX_E_OBJECT_NOT_FOUND">
5556 Virtual machine has no snapshots or snapshot not found.
5557 </result>
5558
5559 </desc>
5560 <param name="id" type="uuid" mod="string" dir="in">
5561 <desc>UUID of the snapshot to get</desc>
5562 </param>
5563 <param name="snapshot" type="ISnapshot" dir="return">
5564 <desc>Snapshot object with the given UUID.</desc>
5565 </param>
5566 </method>
5567
5568 <method name="findSnapshot">
5569 <desc>
5570 Returns a snapshot of this machine with the given name.
5571
5572 <result name="VBOX_E_OBJECT_NOT_FOUND">
5573 Virtual machine has no snapshots or snapshot not found.
5574 </result>
5575
5576 </desc>
5577 <param name="name" type="wstring" dir="in">
5578 <desc>Name of the snapshot to find</desc>
5579 </param>
5580 <param name="snapshot" type="ISnapshot" dir="return">
5581 <desc>Snapshot object with the given name.</desc>
5582 </param>
5583 </method>
5584
5585 <method name="setCurrentSnapshot">
5586 <desc>
5587 Sets the current snapshot of this machine.
5588 <note>
5589 In the current implementation, this operation is not
5590 implemented.
5591 </note>
5592 </desc>
5593 <param name="id" type="uuid" mod="string" dir="in">
5594 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5595 </param>
5596 </method>
5597
5598 <method name="createSharedFolder">
5599 <desc>
5600 Creates a new permanent shared folder by associating the given logical
5601 name with the given host path, adds it to the collection of shared
5602 folders and starts sharing it. Refer to the description of
5603 <link to="ISharedFolder"/> to read more about logical names.
5604
5605 <result name="VBOX_E_OBJECT_IN_USE">
5606 Shared folder already exists.
5607 </result>
5608 <result name="VBOX_E_FILE_ERROR">
5609 Shared folder @a hostPath not accessible.
5610 </result>
5611
5612 </desc>
5613 <param name="name" type="wstring" dir="in">
5614 <desc>Unique logical name of the shared folder.</desc>
5615 </param>
5616 <param name="hostPath" type="wstring" dir="in">
5617 <desc>Full path to the shared folder in the host file system.</desc>
5618 </param>
5619 <param name="writable" type="boolean" dir="in">
5620 <desc>Whether the share is writable or readonly</desc>
5621 </param>
5622 </method>
5623
5624 <method name="removeSharedFolder">
5625 <desc>
5626 Removes the permanent shared folder with the given name previously
5627 created by <link to="#createSharedFolder"/> from the collection of
5628 shared folders and stops sharing it.
5629
5630 <result name="VBOX_E_INVALID_VM_STATE">
5631 Virtual machine is not mutable.
5632 </result>
5633 <result name="VBOX_E_OBJECT_NOT_FOUND">
5634 Shared folder @a name does not exist.
5635 </result>
5636
5637 </desc>
5638 <param name="name" type="wstring" dir="in">
5639 <desc>Logical name of the shared folder to remove.</desc>
5640 </param>
5641 </method>
5642
5643 <method name="canShowConsoleWindow">
5644 <desc>
5645 Returns @c true if the VM console process can activate the
5646 console window and bring it to foreground on the desktop of
5647 the host PC.
5648 <note>
5649 This method will fail if a session for this machine is not
5650 currently open.
5651 </note>
5652
5653 <result name="VBOX_E_INVALID_VM_STATE">
5654 Machine session is not open.
5655 </result>
5656
5657 </desc>
5658 <param name="canShow" type="boolean" dir="return">
5659 <desc>
5660 @c true if the console window can be shown and @c false otherwise.
5661 </desc>
5662 </param>
5663 </method>
5664
5665 <method name="showConsoleWindow">
5666 <desc>
5667 Activates the console window and brings it to foreground on
5668 the desktop of the host PC. Many modern window managers on
5669 many platforms implement some sort of focus stealing
5670 prevention logic, so that it may be impossible to activate
5671 a window without the help of the currently active
5672 application. In this case, this method will return a non-zero
5673 identifier that represents the top-level window of the VM
5674 console process. The caller, if it represents a currently
5675 active process, is responsible to use this identifier (in a
5676 platform-dependent manner) to perform actual window
5677 activation.
5678 <note>
5679 This method will fail if a session for this machine is not
5680 currently open.
5681 </note>
5682
5683 <result name="VBOX_E_INVALID_VM_STATE">
5684 Machine session is not open.
5685 </result>
5686
5687 </desc>
5688 <param name="winId" type="unsigned long long" dir="return">
5689 <desc>
5690 Platform-dependent identifier of the top-level VM console
5691 window, or zero if this method has performed all actions
5692 necessary to implement the <i>show window</i> semantics for
5693 the given platform and/or VirtualBox front-end.
5694 </desc>
5695 </param>
5696 </method>
5697
5698 <method name="getGuestProperty" const="yes">
5699 <desc>
5700 Reads an entry from the machine's guest property store.
5701
5702 <result name="VBOX_E_INVALID_VM_STATE">
5703 Machine session is not open.
5704 </result>
5705
5706 </desc>
5707 <param name="name" type="wstring" dir="in">
5708 <desc>
5709 The name of the property to read.
5710 </desc>
5711 </param>
5712 <param name="value" type="wstring" dir="out">
5713 <desc>
5714 The value of the property. If the property does not exist then this
5715 will be empty.
5716 </desc>
5717 </param>
5718 <param name="timestamp" type="unsigned long long" dir="out">
5719 <desc>
5720 The time at which the property was last modified, as seen by the
5721 server process.
5722 </desc>
5723 </param>
5724 <param name="flags" type="wstring" dir="out">
5725 <desc>
5726 Additional property parameters, passed as a comma-separated list of
5727 "name=value" type entries.
5728 </desc>
5729 </param>
5730 </method>
5731
5732 <method name="getGuestPropertyValue" const="yes">
5733 <desc>
5734 Reads a value from the machine's guest property store.
5735
5736 <result name="VBOX_E_INVALID_VM_STATE">
5737 Machine session is not open.
5738 </result>
5739
5740 </desc>
5741 <param name="property" type="wstring" dir="in">
5742 <desc>
5743 The name of the property to read.
5744 </desc>
5745 </param>
5746 <param name="value" type="wstring" dir="return">
5747 <desc>
5748 The value of the property. If the property does not exist then this
5749 will be empty.
5750 </desc>
5751 </param>
5752 </method>
5753
5754 <method name="getGuestPropertyTimestamp" const="yes">
5755 <desc>
5756 Reads a property timestamp from the machine's guest property store.
5757
5758 <result name="VBOX_E_INVALID_VM_STATE">
5759 Machine session is not open.
5760 </result>
5761
5762 </desc>
5763 <param name="property" type="wstring" dir="in">
5764 <desc>
5765 The name of the property to read.
5766 </desc>
5767 </param>
5768 <param name="value" type="unsigned long long" dir="return">
5769 <desc>
5770 The timestamp. If the property does not exist then this will be
5771 empty.
5772 </desc>
5773 </param>
5774 </method>
5775
5776 <method name="setGuestProperty">
5777 <desc>
5778 Sets, changes or deletes an entry in the machine's guest property
5779 store.
5780
5781 <result name="E_ACCESSDENIED">
5782 Property cannot be changed.
5783 </result>
5784 <result name="E_INVALIDARG">
5785 Invalid @a flags.
5786 </result>
5787 <result name="VBOX_E_INVALID_VM_STATE">
5788 Virtual machine is not mutable or session not open.
5789 </result>
5790 <result name="VBOX_E_INVALID_OBJECT_STATE">
5791 Cannot set transient property when machine not running.
5792 </result>
5793
5794 </desc>
5795 <param name="property" type="wstring" dir="in">
5796 <desc>
5797 The name of the property to set, change or delete.
5798 </desc>
5799 </param>
5800 <param name="value" type="wstring" dir="in">
5801 <desc>
5802 The new value of the property to set, change or delete. If the
5803 property does not yet exist and value is non-empty, it will be
5804 created. If the value is @c null or empty, the property will be
5805 deleted if it exists.
5806 </desc>
5807 </param>
5808 <param name="flags" type="wstring" dir="in">
5809 <desc>
5810 Additional property parameters, passed as a comma-separated list of
5811 "name=value" type entries.
5812 </desc>
5813 </param>
5814 </method>
5815
5816 <method name="setGuestPropertyValue">
5817 <desc>
5818 Sets, changes or deletes a value in the machine's guest property
5819 store. The flags field will be left unchanged or created empty for a
5820 new property.
5821
5822 <result name="E_ACCESSDENIED">
5823 Property cannot be changed.
5824 </result>
5825 <result name="VBOX_E_INVALID_VM_STATE">
5826 Virtual machine is not mutable or session not open.
5827 </result>
5828 <result name="VBOX_E_INVALID_OBJECT_STATE">
5829 Cannot set transient property when machine not running.
5830 </result>
5831 </desc>
5832
5833 <param name="property" type="wstring" dir="in">
5834 <desc>
5835 The name of the property to set, change or delete.
5836 </desc>
5837 </param>
5838 <param name="value" type="wstring" dir="in">
5839 <desc>
5840 The new value of the property to set, change or delete. If the
5841 property does not yet exist and value is non-empty, it will be
5842 created. If the value is @c null or empty, the property will be
5843 deleted if it exists.
5844 </desc>
5845 </param>
5846 </method>
5847
5848 <method name="enumerateGuestProperties">
5849 <desc>
5850 Return a list of the guest properties matching a set of patterns along
5851 with their values, time stamps and flags.
5852 </desc>
5853 <param name="patterns" type="wstring" dir="in">
5854 <desc>
5855 The patterns to match the properties against, separated by '|'
5856 characters. If this is empty or @c null, all properties will match.
5857 </desc>
5858 </param>
5859 <param name="name" type="wstring" dir="out" safearray="yes">
5860 <desc>
5861 The names of the properties returned.
5862 </desc>
5863 </param>
5864 <param name="value" type="wstring" dir="out" safearray="yes">
5865 <desc>
5866 The values of the properties returned. The array entries match the
5867 corresponding entries in the @a name array.
5868 </desc>
5869 </param>
5870 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5871 <desc>
5872 The time stamps of the properties returned. The array entries match
5873 the corresponding entries in the @a name array.
5874 </desc>
5875 </param>
5876 <param name="flags" type="wstring" dir="out" safearray="yes">
5877 <desc>
5878 The flags of the properties returned. The array entries match the
5879 corresponding entries in the @a name array.
5880 </desc>
5881 </param>
5882 </method>
5883
5884 <method name="querySavedThumbnailSize">
5885 <desc>
5886 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
5887 </desc>
5888 <param name="size" type="unsigned long" dir="out">
5889 <desc>
5890 Size of buffer required to store the bitmap.
5891 </desc>
5892 </param>
5893 <param name="width" type="unsigned long" dir="out">
5894 <desc>
5895 Bitmap width.
5896 </desc>
5897 </param>
5898 <param name="height" type="unsigned long" dir="out">
5899 <desc>
5900 Bitmap height.
5901 </desc>
5902 </param>
5903 </method>
5904
5905 <method name="readSavedThumbnailToArray">
5906 <desc>
5907 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
5908 </desc>
5909 <param name="BGR" type="boolean" dir="in">
5910 <desc>
5911 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
5912 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
5913 </desc>
5914 </param>
5915 <param name="width" type="unsigned long" dir="out">
5916 <desc>
5917 Bitmap width.
5918 </desc>
5919 </param>
5920 <param name="height" type="unsigned long" dir="out">
5921 <desc>
5922 Bitmap height.
5923 </desc>
5924 </param>
5925 <param name="data" type="octet" dir="return" safearray="yes">
5926 <desc>
5927 Array with resulting bitmap data.
5928 </desc>
5929 </param>
5930 </method>
5931
5932 <method name="querySavedScreenshotPNGSize">
5933 <desc>
5934 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
5935 </desc>
5936 <param name="size" type="unsigned long" dir="out">
5937 <desc>
5938 Size of buffer required to store the PNG binary data.
5939 </desc>
5940 </param>
5941 <param name="width" type="unsigned long" dir="out">
5942 <desc>
5943 Image width.
5944 </desc>
5945 </param>
5946 <param name="height" type="unsigned long" dir="out">
5947 <desc>
5948 Image height.
5949 </desc>
5950 </param>
5951 </method>
5952
5953 <method name="readSavedScreenshotPNGToArray">
5954 <desc>
5955 Screenshot in PNG format is retrieved to an array of bytes.
5956 </desc>
5957 <param name="width" type="unsigned long" dir="out">
5958 <desc>
5959 Image width.
5960 </desc>
5961 </param>
5962 <param name="height" type="unsigned long" dir="out">
5963 <desc>
5964 Image height.
5965 </desc>
5966 </param>
5967 <param name="data" type="octet" dir="return" safearray="yes">
5968 <desc>
5969 Array with resulting PNG data.
5970 </desc>
5971 </param>
5972 </method>
5973
5974 <method name="hotPlugCPU">
5975 <desc>
5976 Plugs a CPU into the machine.
5977 </desc>
5978 <param name="cpu" type="unsigned long" dir="in">
5979 <desc>
5980 The CPU id to insert.
5981 </desc>
5982 </param>
5983 </method>
5984
5985 <method name="hotUnplugCPU">
5986 <desc>
5987 Removes a CPU from the machine.
5988 </desc>
5989 <param name="cpu" type="unsigned long" dir="in">
5990 <desc>
5991 The CPU id to remove.
5992 </desc>
5993 </param>
5994 </method>
5995
5996 <method name="getCPUStatus">
5997 <desc>
5998 Returns the current status of the given CPU.
5999 </desc>
6000 <param name="cpu" type="unsigned long" dir="in">
6001 <desc>
6002 The CPU id to check for.
6003 </desc>
6004 </param>
6005 <param name="attached" type="boolean" dir="return">
6006 <desc>
6007 Status of the CPU.
6008 </desc>
6009 </param>
6010 </method>
6011
6012 <method name="queryLogFilename">
6013 <desc>
6014 Queries for the VM log file name of an given index. Returns an empty
6015 string if a log file with that index doesn't exists.
6016 </desc>
6017 <param name="idx" type="unsigned long" dir="in">
6018 <desc>
6019 Which log file name to query. 0=current log file.
6020 </desc>
6021 </param>
6022 <param name="filename" type="wstring" dir="return">
6023 <desc>
6024 On return the full path to the log file or an empty string on error.
6025 </desc>
6026 </param>
6027 </method>
6028
6029 <method name="readLog">
6030 <desc>
6031 Reads the VM log file. The chunk size is limited, so even if you
6032 ask for a big piece there might be less data returned.
6033 </desc>
6034 <param name="idx" type="unsigned long" dir="in">
6035 <desc>
6036 Which log file to read. 0=current log file.
6037 </desc>
6038 </param>
6039 <param name="offset" type="unsigned long long" dir="in">
6040 <desc>
6041 Offset in the log file.
6042 </desc>
6043 </param>
6044 <param name="size" type="unsigned long long" dir="in">
6045 <desc>
6046 Chunk size to read in the log file.
6047 </desc>
6048 </param>
6049 <param name="data" type="octet" dir="return" safearray="yes">
6050 <desc>
6051 Data read from the log file. A data size of 0 means end of file
6052 if the requested chunk size was not 0. This is the unprocessed
6053 file data, i.e. the line ending style depends on the platform of
6054 the system the server is running on.
6055 </desc>
6056 </param>
6057 </method>
6058 </interface>
6059
6060 <!--
6061 // IConsole
6062 /////////////////////////////////////////////////////////////////////////
6063 -->
6064
6065 <interface
6066 name="IConsoleCallback" extends="$unknown"
6067 uuid="60703f8d-81e4-4b45-a147-dcfd07692b19"
6068 wsmap="suppress"
6069 >
6070
6071 <desc>
6072 This interface is used by a client of the Main API that need to
6073 be notified of events. For example, a graphical user interface
6074 can use this to learn about machine state changes so they can
6075 update the list of virtual machines without having to rely
6076 on polling.
6077
6078 Whenever relevant events occur in VirtualBox, the callbacks in
6079 objects of this interface are called. In order for this to be
6080 useful, a client needs to create its own subclass that implements
6081 this interface in which the methods for the relevant callbacks
6082 are overridden. An instance of this subclass interface can then
6083 be passed to <link to="IConsole::registerCallback" />.
6084 </desc>
6085
6086 <method name="onMousePointerShapeChange">
6087 <desc>
6088 Notification when the guest mouse pointer shape has
6089 changed. The new shape data is given.
6090 </desc>
6091 <param name="visible" type="boolean" dir="in">
6092 <desc>
6093 Flag whether the pointer is visible.
6094 </desc>
6095 </param>
6096 <param name="alpha" type="boolean" dir="in">
6097 <desc>
6098 Flag whether the pointer has an alpha channel.
6099 </desc>
6100 </param>
6101 <param name="xHot" type="unsigned long" dir="in">
6102 <desc>
6103 The pointer hot spot x coordinate.
6104 </desc>
6105 </param>
6106 <param name="yHot" type="unsigned long" dir="in">
6107 <desc>
6108 The pointer hot spot y coordinate.
6109 </desc>
6110 </param>
6111 <param name="width" type="unsigned long" dir="in">
6112 <desc>
6113 Width of the pointer shape in pixels.
6114 </desc>
6115 </param>
6116 <param name="height" type="unsigned long" dir="in">
6117 <desc>
6118 Height of the pointer shape in pixels.
6119 </desc>
6120 </param>
6121 <param name="shape" type="octet" mod="ptr" dir="in">
6122 <desc>
6123 Address of the shape buffer.
6124
6125 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
6126 followed by a 32-bpp XOR (color) mask.
6127
6128 For pointers without alpha channel the XOR mask pixels are 32
6129 bit values: (lsb)BGR0(msb). For pointers with alpha channel
6130 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
6131
6132 An AND mask is used for pointers with alpha channel, so if the
6133 callback does not support alpha, the pointer could be
6134 displayed as a normal color pointer.
6135
6136 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
6137 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
6138 height</tt>. The padding bits at the end of each scanline are
6139 undefined.
6140
6141 The XOR mask follows the AND mask on the next 4-byte aligned
6142 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
6143 Bytes in the gap between the AND and the XOR mask are undefined.
6144 The XOR mask scanlines have no gap between them and the size of
6145 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
6146
6147 <note>
6148 If @a shape is 0, only the pointer visibility is changed.
6149 </note>
6150 </desc>
6151 </param>
6152 </method>
6153
6154 <method name="onMouseCapabilityChange">
6155 <desc>
6156 Notification when the mouse capabilities reported by the
6157 guest have changed. The new capabilities are passed.
6158 </desc>
6159 <param name="supportsAbsolute" type="boolean" dir="in"/>
6160 <param name="supportsRelative" type="boolean" dir="in"/>
6161 <param name="needsHostCursor" type="boolean" dir="in"/>
6162 </method>
6163
6164 <method name="onKeyboardLedsChange">
6165 <desc>
6166 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
6167 to alter the state of the keyboard LEDs.
6168 </desc>
6169 <param name="numLock" type="boolean" dir="in"/>
6170 <param name="capsLock" type="boolean" dir="in"/>
6171 <param name="scrollLock" type="boolean" dir="in"/>
6172 </method>
6173
6174 <method name="onStateChange">
6175 <desc>
6176 Notification when the execution state of the machine has changed.
6177 The new state will be given.
6178 </desc>
6179 <param name="state" type="MachineState" dir="in"/>
6180 </method>
6181
6182 <method name="onAdditionsStateChange">
6183 <desc>
6184 Notification when a Guest Additions property changes.
6185 Interested callees should query IGuest attributes to
6186 find out what has changed.
6187 </desc>
6188 </method>
6189
6190 <method name="onNetworkAdapterChange">
6191 <desc>
6192 Notification when a property of one of the
6193 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
6194 changes. Interested callees should use INetworkAdapter methods and
6195 attributes to find out what has changed.
6196 </desc>
6197 <param name="networkAdapter" type="INetworkAdapter" dir="in">
6198 <desc>Network adapter that is subject to change.</desc>
6199 </param>
6200 </method>
6201
6202 <method name="onSerialPortChange">
6203 <desc>
6204 Notification when a property of one of the
6205 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
6206 Interested callees should use ISerialPort methods and attributes
6207 to find out what has changed.
6208 </desc>
6209 <param name="serialPort" type="ISerialPort" dir="in">
6210 <desc>Serial port that is subject to change.</desc>
6211 </param>
6212 </method>
6213
6214 <method name="onParallelPortChange">
6215 <desc>
6216 Notification when a property of one of the
6217 virtual <link to="IMachine::getParallelPort">parallel ports</link>
6218 changes. Interested callees should use ISerialPort methods and
6219 attributes to find out what has changed.
6220 </desc>
6221 <param name="parallelPort" type="IParallelPort" dir="in">
6222 <desc>Parallel port that is subject to change.</desc>
6223 </param>
6224 </method>
6225
6226 <method name="onStorageControllerChange">
6227 <desc>
6228 Notification when a property of one of the
6229 virtual <link to="IMachine::storageControllers">storage controllers</link>
6230 changes. Interested callees should query the corresponding collections
6231 to find out what has changed.
6232 </desc>
6233 </method>
6234
6235 <method name="onMediumChange">
6236 <desc>
6237 Notification when a
6238 <link to="IMachine::mediumAttachments">medium attachment</link>
6239 changes.
6240 </desc>
6241 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
6242 <desc>Medium attachment that is subject to change.</desc>
6243 </param>
6244 </method>
6245
6246 <method name="onCPUChange">
6247 <desc>
6248 Notification when a CPU changes.
6249 </desc>
6250 <param name="cpu" type="unsigned long" dir="in">
6251 <desc>The CPU which changed</desc>
6252 </param>
6253 <param name="add" type="boolean" dir="in">
6254 <desc>Flag whether the CPU was added or removed</desc>
6255 </param>
6256 </method>
6257
6258 <method name="onVRDPServerChange">
6259 <desc>
6260 Notification when a property of the
6261 <link to="IMachine::VRDPServer">VRDP server</link> changes.
6262 Interested callees should use IVRDPServer methods and attributes to
6263 find out what has changed.
6264 </desc>
6265 </method>
6266
6267 <method name="onRemoteDisplayInfoChange">
6268 <desc>
6269 Notification when the status of the VRDP server changes. Interested callees
6270 should use <link to="IConsole::RemoteDisplayInfo">IRemoteDisplayInfo</link>
6271 attributes to find out what is the current status.
6272 </desc>
6273 </method>
6274
6275 <method name="onUSBControllerChange">
6276 <desc>
6277 Notification when a property of the virtual
6278 <link to="IMachine::USBController">USB controller</link> changes.
6279 Interested callees should use IUSBController methods and attributes to
6280 find out what has changed.
6281 </desc>
6282 </method>
6283
6284 <method name="onUSBDeviceStateChange">
6285 <desc>
6286 Notification when a USB device is attached to or detached from
6287 the virtual USB controller.
6288
6289 This notification is sent as a result of the indirect
6290 request to attach the device because it matches one of the
6291 machine USB filters, or as a result of the direct request
6292 issued by <link to="IConsole::attachUSBDevice"/> or
6293 <link to="IConsole::detachUSBDevice"/>.
6294
6295 This notification is sent in case of both a succeeded and a
6296 failed request completion. When the request succeeds, the
6297 @a error parameter is @c null, and the given device has been
6298 already added to (when @a attached is @c true) or removed from
6299 (when @a attached is @c false) the collection represented by
6300 <link to="IConsole::USBDevices"/>. On failure, the collection
6301 doesn't change and the @a error parameter represents the error
6302 message describing the failure.
6303
6304 </desc>
6305 <param name="device" type="IUSBDevice" dir="in">
6306 <desc>Device that is subject to state change.</desc>
6307 </param>
6308 <param name="attached" type="boolean" dir="in">
6309 <desc>
6310 @c true if the device was attached and @c false otherwise.
6311 </desc>
6312 </param>
6313 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
6314 <desc>
6315 @c null on success or an error message object on failure.
6316 </desc>
6317 </param>
6318 </method>
6319
6320 <method name="onSharedFolderChange">
6321 <desc>
6322 Notification when a shared folder is added or removed.
6323 The @a scope argument defines one of three scopes:
6324 <link to="IVirtualBox::sharedFolders">global shared folders</link>
6325 (<link to="Scope_Global">Global</link>),
6326 <link to="IMachine::sharedFolders">permanent shared folders</link> of
6327 the machine (<link to="Scope_Machine">Machine</link>) or <link
6328 to="IConsole::sharedFolders">transient shared folders</link> of the
6329 machine (<link to="Scope_Session">Session</link>). Interested callees
6330 should use query the corresponding collections to find out what has
6331 changed.
6332 </desc>
6333 <param name="scope" type="Scope" dir="in">
6334 <desc>Scope of the notification.</desc>
6335 </param>
6336 </method>
6337
6338 <method name="onRuntimeError">
6339 <desc>
6340 Notification when an error happens during the virtual
6341 machine execution.
6342
6343 There are three kinds of runtime errors:
6344 <ul>
6345 <li><i>fatal</i></li>
6346 <li><i>non-fatal with retry</i></li>
6347 <li><i>non-fatal warnings</i></li>
6348 </ul>
6349
6350 <b>Fatal</b> errors are indicated by the @a fatal parameter set
6351 to @c true. In case of fatal errors, the virtual machine
6352 execution is always paused before calling this notification, and
6353 the notification handler is supposed either to immediately save
6354 the virtual machine state using <link to="IConsole::saveState"/>
6355 or power it off using <link to="IConsole::powerDown"/>.
6356 Resuming the execution can lead to unpredictable results.
6357
6358 <b>Non-fatal</b> errors and warnings are indicated by the
6359 @a fatal parameter set to @c false. If the virtual machine
6360 is in the Paused state by the time the error notification is
6361 received, it means that the user can <i>try to resume</i> the machine
6362 execution after attempting to solve the problem that caused the
6363 error. In this case, the notification handler is supposed
6364 to show an appropriate message to the user (depending on the
6365 value of the @a id parameter) that offers several actions such
6366 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
6367 wants to retry, the notification handler should continue
6368 the machine execution using the <link to="IConsole::resume"/>
6369 call. If the machine execution is not Paused during this
6370 notification, then it means this notification is a <i>warning</i>
6371 (for example, about a fatal condition that can happen very soon);
6372 no immediate action is required from the user, the machine
6373 continues its normal execution.
6374
6375 Note that in either case the notification handler
6376 <b>must not</b> perform any action directly on a thread
6377 where this notification is called. Everything it is allowed to
6378 do is to post a message to another thread that will then talk
6379 to the user and take the corresponding action.
6380
6381 Currently, the following error identifiers are known:
6382 <ul>
6383 <li><tt>"HostMemoryLow"</tt></li>
6384 <li><tt>"HostAudioNotResponding"</tt></li>
6385 <li><tt>"VDIStorageFull"</tt></li>
6386 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
6387 </ul>
6388
6389 <note>
6390 This notification is not designed to be implemented by
6391 more than one callback at a time. If you have multiple
6392 IConsoleCallback instances registered on the given
6393 IConsole object, make sure you simply do nothing but
6394 return @c S_OK from all but one of them that does actual
6395 user notification and performs necessary actions.
6396 </note>
6397
6398 </desc>
6399 <param name="fatal" type="boolean" dir="in">
6400 <desc>Whether the error is fatal or not</desc>
6401 </param>
6402 <param name="id" type="wstring" dir="in">
6403 <desc>Error identifier</desc>
6404 </param>
6405 <param name="message" type="wstring" dir="in">
6406 <desc>Optional error message</desc>
6407 </param>
6408 </method>
6409
6410 <method name="onCanShowWindow">
6411 <desc>
6412 Notification when a call to
6413 <link to="IMachine::canShowConsoleWindow"/> is made by a
6414 front-end to check if a subsequent call to
6415 <link to="IMachine::showConsoleWindow"/> can succeed.
6416
6417 The callee should give an answer appropriate to the current
6418 machine state in the @a canShow argument. This answer must
6419 remain valid at least until the next
6420 <link to="IConsole::state">machine state</link> change.
6421
6422 <note>
6423 This notification is not designed to be implemented by
6424 more than one callback at a time. If you have multiple
6425 IConsoleCallback instances registered on the given
6426 IConsole object, make sure you simply do nothing but
6427 return @c true and @c S_OK from all but one of them that
6428 actually manages console window activation.
6429 </note>
6430 </desc>
6431 <param name="canShow" type="boolean" dir="return">
6432 <desc>
6433 @c true if the console window can be shown and @c false otherwise.
6434 </desc>
6435 </param>
6436 </method>
6437
6438 <method name="onShowWindow">
6439 <desc>
6440 Notification when a call to
6441 <link to="IMachine::showConsoleWindow"/>
6442 requests the console window to be activated and brought to
6443 foreground on the desktop of the host PC.
6444
6445 This notification should cause the VM console process to
6446 perform the requested action as described above. If it is
6447 impossible to do it at a time of this notification, this
6448 method should return a failure.
6449
6450 Note that many modern window managers on many platforms
6451 implement some sort of focus stealing prevention logic, so
6452 that it may be impossible to activate a window without the
6453 help of the currently active application (which is supposedly
6454 an initiator of this notification). In this case, this method
6455 must return a non-zero identifier that represents the
6456 top-level window of the VM console process. The caller, if it
6457 represents a currently active process, is responsible to use
6458 this identifier (in a platform-dependent manner) to perform
6459 actual window activation.
6460
6461 This method must set @a winId to zero if it has performed all
6462 actions necessary to complete the request and the console
6463 window is now active and in foreground, to indicate that no
6464 further action is required on the caller's side.
6465
6466 <note>
6467 This notification is not designed to be implemented by
6468 more than one callback at a time. If you have multiple
6469 IConsoleCallback instances registered on the given
6470 IConsole object, make sure you simply do nothing but
6471 return @c S_OK from all but one of them that actually
6472 manages console window activation.
6473 </note>
6474 </desc>
6475 <param name="winId" type="unsigned long long" dir="return">
6476 <desc>
6477 Platform-dependent identifier of the top-level VM console
6478 window, or zero if this method has performed all actions
6479 necessary to implement the <i>show window</i> semantics for
6480 the given platform and/or this VirtualBox front-end.
6481 </desc>
6482 </param>
6483 </method>
6484
6485 </interface>
6486
6487 <interface
6488 name="IRemoteDisplayInfo" extends="$unknown"
6489 uuid="b3741084-806f-4c3b-8c42-ebad1a81e45a"
6490 wsmap="struct"
6491 >
6492 <desc>
6493 Contains information about the remote display (VRDP) capabilities and status.
6494 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
6495 </desc>
6496
6497 <attribute name="active" type="boolean" readonly="yes">
6498 <desc>
6499 Whether the remote display connection is active.
6500 </desc>
6501 </attribute>
6502
6503 <attribute name="port" type="long" readonly="yes">
6504 <desc>
6505 VRDP server port number. If this property is equal to <tt>0</tt>, then
6506 the VRDP server failed to start, usually because there are no free TCP
6507 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDP
6508 server has not yet been started.
6509 </desc>
6510 </attribute>
6511
6512 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6513 <desc>
6514 How many times a client connected.
6515 </desc>
6516 </attribute>
6517
6518 <attribute name="beginTime" type="long long" readonly="yes">
6519 <desc>
6520 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6521 </desc>
6522 </attribute>
6523
6524 <attribute name="endTime" type="long long" readonly="yes">
6525 <desc>
6526 When the last connection was terminated or the current time, if
6527 connection is still active, in milliseconds since 1970-01-01 UTC.
6528 </desc>
6529 </attribute>
6530
6531 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
6532 <desc>
6533 How many bytes were sent in last or current, if still active, connection.
6534 </desc>
6535 </attribute>
6536
6537 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
6538 <desc>
6539 How many bytes were sent in all connections.
6540 </desc>
6541 </attribute>
6542
6543 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
6544 <desc>
6545 How many bytes were received in last or current, if still active, connection.
6546 </desc>
6547 </attribute>
6548
6549 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
6550 <desc>
6551 How many bytes were received in all connections.
6552 </desc>
6553 </attribute>
6554
6555 <attribute name="user" type="wstring" readonly="yes">
6556 <desc>
6557 Login user name supplied by the client.
6558 </desc>
6559 </attribute>
6560
6561 <attribute name="domain" type="wstring" readonly="yes">
6562 <desc>
6563 Login domain name supplied by the client.
6564 </desc>
6565 </attribute>
6566
6567 <attribute name="clientName" type="wstring" readonly="yes">
6568 <desc>
6569 The client name supplied by the client.
6570 </desc>
6571 </attribute>
6572
6573 <attribute name="clientIP" type="wstring" readonly="yes">
6574 <desc>
6575 The IP address of the client.
6576 </desc>
6577 </attribute>
6578
6579 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6580 <desc>
6581 The client software version number.
6582 </desc>
6583 </attribute>
6584
6585 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6586 <desc>
6587 Public key exchange method used when connection was established.
6588 Values: 0 - RDP4 public key exchange scheme.
6589 1 - X509 certificates were sent to client.
6590 </desc>
6591 </attribute>
6592
6593 </interface>
6594
6595 <interface
6596 name="IConsole" extends="$unknown"
6597 uuid="6375231a-c17c-464b-92cb-ae9e128d71c3"
6598 wsmap="managed"
6599 >
6600 <desc>
6601 The IConsole interface represents an interface to control virtual
6602 machine execution.
6603
6604 The console object that implements the IConsole interface is obtained
6605 from a session object after the session for the given machine has been
6606 opened using one of <link to="IVirtualBox::openSession"/>,
6607 <link to="IVirtualBox::openRemoteSession"/> or
6608 <link to="IVirtualBox::openExistingSession"/> methods.
6609
6610 Methods of the IConsole interface allow the caller to query the current
6611 virtual machine execution state, pause the machine or power it down, save
6612 the machine state or take a snapshot, attach and detach removable media
6613 and so on.
6614
6615 <see>ISession</see>
6616 </desc>
6617
6618 <attribute name="machine" type="IMachine" readonly="yes">
6619 <desc>
6620 Machine object this console is sessioned with.
6621 <note>
6622 This is a convenience property, it has the same value as
6623 <link to="ISession::machine"/> of the corresponding session
6624 object.
6625 </note>
6626 </desc>
6627 </attribute>
6628
6629 <attribute name="state" type="MachineState" readonly="yes">
6630 <desc>
6631 Current execution state of the machine.
6632 <note>
6633 This property always returns the same value as the corresponding
6634 property of the IMachine object this console is sessioned with.
6635 For the process that owns (executes) the VM, this is the
6636 preferable way of querying the VM state, because no IPC
6637 calls are made.
6638 </note>
6639 </desc>
6640 </attribute>
6641
6642 <attribute name="guest" type="IGuest" readonly="yes">
6643 <desc>Guest object.</desc>
6644 </attribute>
6645
6646 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6647 <desc>
6648 Virtual keyboard object.
6649 <note>
6650 If the machine is not running, any attempt to use
6651 the returned object will result in an error.
6652 </note>
6653 </desc>
6654 </attribute>
6655
6656 <attribute name="mouse" type="IMouse" readonly="yes">
6657 <desc>
6658 Virtual mouse object.
6659 <note>
6660 If the machine is not running, any attempt to use
6661 the returned object will result in an error.
6662 </note>
6663 </desc>
6664 </attribute>
6665
6666 <attribute name="display" type="IDisplay" readonly="yes">
6667 <desc>Virtual display object.
6668 <note>
6669 If the machine is not running, any attempt to use
6670 the returned object will result in an error.
6671 </note>
6672 </desc>
6673 </attribute>
6674
6675 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6676 <desc>Debugging interface.</desc>
6677 </attribute>
6678
6679 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6680 <desc>
6681 Collection of USB devices currently attached to the virtual
6682 USB controller.
6683 <note>
6684 The collection is empty if the machine is not running.
6685 </note>
6686 </desc>
6687 </attribute>
6688
6689 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6690 <desc>
6691 List of USB devices currently attached to the remote VRDP client.
6692 Once a new device is physically attached to the remote host computer,
6693 it appears in this list and remains there until detached.
6694 </desc>
6695 </attribute>
6696
6697 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6698 <desc>
6699 Collection of shared folders for the current session. These folders
6700 are called transient shared folders because they are available to the
6701 guest OS running inside the associated virtual machine only for the
6702 duration of the session (as opposed to
6703 <link to="IMachine::sharedFolders"/> which represent permanent shared
6704 folders). When the session is closed (e.g. the machine is powered down),
6705 these folders are automatically discarded.
6706
6707 New shared folders are added to the collection using
6708 <link to="#createSharedFolder"/>. Existing shared folders can be
6709 removed using <link to="#removeSharedFolder"/>.
6710 </desc>
6711 </attribute>
6712
6713 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6714 <desc>
6715 Interface that provides information on Remote Display (VRDP) connection.
6716 </desc>
6717 </attribute>
6718
6719 <method name="powerUp">
6720 <desc>
6721 Starts the virtual machine execution using the current machine
6722 state (that is, its current execution state, current settings and
6723 current storage devices).
6724
6725 If the machine is powered off or aborted, the execution will
6726 start from the beginning (as if the real hardware were just
6727 powered on).
6728
6729 If the machine is in the <link to="MachineState_Saved"/> state,
6730 it will continue its execution the point where the state has
6731 been saved.
6732
6733 <note>
6734 Unless you are trying to write a new VirtualBox front-end that
6735 performs direct machine execution (like the VirtualBox or VBoxSDL
6736 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6737 session opened by <link to="IVirtualBox::openSession"/> and use this
6738 session only to change virtual machine settings. If you simply want to
6739 start virtual machine execution using one of the existing front-ends
6740 (for example the VirtualBox GUI or headless server), simply use
6741 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6742 power up the machine automatically for you.
6743 </note>
6744
6745 <see>#saveState</see>
6746 <result name="VBOX_E_INVALID_VM_STATE">
6747 Virtual machine already running.
6748 </result>
6749 <result name="VBOX_E_HOST_ERROR">
6750 Host interface does not exist or name not set.
6751 </result>
6752 <result name="VBOX_E_FILE_ERROR">
6753 Invalid saved state file.
6754 </result>
6755 </desc>
6756 <param name="progress" type="IProgress" dir="return">
6757 <desc>Progress object to track the operation completion.</desc>
6758 </param>
6759 </method>
6760
6761 <method name="powerUpPaused">
6762 <desc>
6763 Identical to powerUp except that the VM will enter the
6764 <link to="MachineState_Paused"/> state, instead of
6765 <link to="MachineState_Running"/>.
6766
6767 <see>#powerUp</see>
6768 <result name="VBOX_E_INVALID_VM_STATE">
6769 Virtual machine already running.
6770 </result>
6771 <result name="VBOX_E_HOST_ERROR">
6772 Host interface does not exist or name not set.
6773 </result>
6774 <result name="VBOX_E_FILE_ERROR">
6775 Invalid saved state file.
6776 </result>
6777 </desc>
6778 <param name="progress" type="IProgress" dir="return">
6779 <desc>Progress object to track the operation completion.</desc>
6780 </param>
6781 </method>
6782
6783 <method name="powerDown">
6784 <desc>
6785 Initiates the power down procedure to stop the virtual machine
6786 execution.
6787
6788 The completion of the power down procedure is tracked using the returned
6789 IProgress object. After the operation is complete, the machine will go
6790 to the PoweredOff state.
6791 <result name="VBOX_E_INVALID_VM_STATE">
6792 Virtual machine must be Running, Paused or Stuck to be powered down.
6793 </result>
6794 </desc>
6795 <param name="progress" type="IProgress" dir="return">
6796 <desc>Progress object to track the operation completion.</desc>
6797 </param>
6798 </method>
6799
6800 <method name="reset">
6801 <desc>Resets the virtual machine.
6802 <result name="VBOX_E_INVALID_VM_STATE">
6803 Virtual machine not in Running state.
6804 </result>
6805 <result name="VBOX_E_VM_ERROR">
6806 Virtual machine error in reset operation.
6807 </result>
6808 </desc>
6809 </method>
6810
6811 <method name="pause">
6812 <desc>Pauses the virtual machine execution.
6813 <result name="VBOX_E_INVALID_VM_STATE">
6814 Virtual machine not in Running state.
6815 </result>
6816 <result name="VBOX_E_VM_ERROR">
6817 Virtual machine error in suspend operation.
6818 </result>
6819 </desc>
6820 </method>
6821
6822 <method name="resume">
6823 <desc>Resumes the virtual machine execution.
6824 <result name="VBOX_E_INVALID_VM_STATE">
6825 Virtual machine not in Paused state.
6826 </result>
6827 <result name="VBOX_E_VM_ERROR">
6828 Virtual machine error in resume operation.
6829 </result>
6830 </desc>
6831 </method>
6832
6833 <method name="powerButton">
6834 <desc>Sends the ACPI power button event to the guest.
6835 <result name="VBOX_E_INVALID_VM_STATE">
6836 Virtual machine not in Running state.
6837 </result>
6838 <result name="VBOX_E_PDM_ERROR">
6839 Controlled power off failed.
6840 </result>
6841 </desc>
6842 </method>
6843
6844 <method name="sleepButton">
6845 <desc>Sends the ACPI sleep button event to the guest.
6846 <result name="VBOX_E_INVALID_VM_STATE">
6847 Virtual machine not in Running state.
6848 </result>
6849 <result name="VBOX_E_PDM_ERROR">
6850 Sending sleep button event failed.
6851 </result>
6852 </desc>
6853 </method>
6854
6855 <method name="getPowerButtonHandled">
6856 <desc>Checks if the last power button event was handled by guest.
6857 <result name="VBOX_E_PDM_ERROR">
6858 Checking if the event was handled by the guest OS failed.
6859 </result>
6860 </desc>
6861 <param name="handled" type="boolean" dir="return"/>
6862 </method>
6863
6864 <method name="getGuestEnteredACPIMode">
6865 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6866 G1 (sleeping). If this method returns @c false, the guest will
6867 most likely not respond to external ACPI events.
6868 <result name="VBOX_E_INVALID_VM_STATE">
6869 Virtual machine not in Running state.
6870 </result>
6871 </desc>
6872 <param name="entered" type="boolean" dir="return"/>
6873 </method>
6874
6875 <method name="saveState">
6876 <desc>
6877 Saves the current execution state of a running virtual machine
6878 and stops its execution.
6879
6880 After this operation completes, the machine will go to the
6881 Saved state. Next time it is powered up, this state will
6882 be restored and the machine will continue its execution from
6883 the place where it was saved.
6884
6885 This operation differs from taking a snapshot to the effect
6886 that it doesn't create new differencing media. Also, once
6887 the machine is powered up from the state saved using this method,
6888 the saved state is deleted, so it will be impossible to return
6889 to this state later.
6890
6891 <note>
6892 On success, this method implicitly calls
6893 <link to="IMachine::saveSettings"/> to save all current machine
6894 settings (including runtime changes to the DVD medium, etc.).
6895 Together with the impossibility to change any VM settings when it is
6896 in the Saved state, this guarantees adequate hardware
6897 configuration of the machine when it is restored from the saved
6898 state file.
6899 </note>
6900
6901 <note>
6902 The machine must be in the Running or Paused state, otherwise
6903 the operation will fail.
6904 </note>
6905 <result name="VBOX_E_INVALID_VM_STATE">
6906 Virtual machine state neither Running nor Paused.
6907 </result>
6908 <result name="VBOX_E_FILE_ERROR">
6909 Failed to create directory for saved state file.
6910 </result>
6911
6912 <see><link to="#takeSnapshot"/></see>
6913 </desc>
6914 <param name="progress" type="IProgress" dir="return">
6915 <desc>Progress object to track the operation completion.</desc>
6916 </param>
6917 </method>
6918
6919 <method name="adoptSavedState">
6920 <desc>
6921 Associates the given saved state file to the virtual machine.
6922
6923 On success, the machine will go to the Saved state. Next time it is
6924 powered up, it will be restored from the adopted saved state and
6925 continue execution from the place where the saved state file was
6926 created.
6927
6928 The specified saved state file path may be absolute or relative to the
6929 folder the VM normally saves the state to (usually,
6930 <link to="IMachine::snapshotFolder"/>).
6931
6932 <note>
6933 It's a caller's responsibility to make sure the given saved state
6934 file is compatible with the settings of this virtual machine that
6935 represent its virtual hardware (memory size, storage disk configuration
6936 etc.). If there is a mismatch, the behavior of the virtual machine
6937 is undefined.
6938 </note>
6939 <result name="VBOX_E_INVALID_VM_STATE">
6940 Virtual machine state neither PoweredOff nor Aborted.
6941 </result>
6942 </desc>
6943 <param name="savedStateFile" type="wstring" dir="in">
6944 <desc>Path to the saved state file to adopt.</desc>
6945 </param>
6946 </method>
6947
6948 <method name="forgetSavedState">
6949 <desc>
6950 Forgets the saved state of the virtual machine previously created
6951 by <link to="#saveState"/>. Next time the machine is powered up, a
6952 clean boot will occur. If @a remove is @c true the saved state file
6953 is deleted.
6954 <note>
6955 This operation is equivalent to resetting or powering off
6956 the machine without doing a proper shutdown in the guest OS.
6957 </note>
6958 <result name="VBOX_E_INVALID_VM_STATE">
6959 Virtual machine not in state Saved.
6960 </result>
6961 </desc>
6962 <param name="remove" type="boolean" dir="in">
6963 <desc>If @c true remove the saved state file.</desc>
6964 </param>
6965 </method>
6966
6967 <method name="getDeviceActivity">
6968 <desc>
6969 Gets the current activity type of a given device or device group.
6970 <result name="E_INVALIDARG">
6971 Invalid device type.
6972 </result>
6973 </desc>
6974 <param name="type" type="DeviceType" dir="in"/>
6975 <param name="activity" type="DeviceActivity" dir="return"/>
6976 </method>
6977
6978 <method name="attachUSBDevice">
6979 <desc>
6980 Attaches a host USB device with the given UUID to the
6981 USB controller of the virtual machine.
6982
6983 The device needs to be in one of the following states:
6984 <link to="USBDeviceState_Busy"/>,
6985 <link to="USBDeviceState_Available"/> or
6986 <link to="USBDeviceState_Held"/>,
6987 otherwise an error is immediately returned.
6988
6989 When the device state is
6990 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6991 be returned if the host computer refuses to release it for some reason.
6992
6993 <see>IUSBController::deviceFilters, USBDeviceState</see>
6994 <result name="VBOX_E_INVALID_VM_STATE">
6995 Virtual machine state neither Running nor Paused.
6996 </result>
6997 <result name="VBOX_E_PDM_ERROR">
6998 Virtual machine does not have a USB controller.
6999 </result>
7000 </desc>
7001 <param name="id" type="uuid" mod="string" dir="in">
7002 <desc>UUID of the host USB device to attach.</desc>
7003 </param>
7004 </method>
7005
7006 <method name="detachUSBDevice">
7007 <desc>
7008 Detaches an USB device with the given UUID from the USB controller
7009 of the virtual machine.
7010
7011 After this method succeeds, the VirtualBox server re-initiates
7012 all USB filters as if the device were just physically attached
7013 to the host, but filters of this machine are ignored to avoid
7014 a possible automatic re-attachment.
7015
7016 <see>IUSBController::deviceFilters, USBDeviceState</see>
7017
7018 <result name="VBOX_E_PDM_ERROR">
7019 Virtual machine does not have a USB controller.
7020 </result>
7021 <result name="E_INVALIDARG">
7022 USB device not attached to this virtual machine.
7023 </result>
7024 </desc>
7025 <param name="id" type="uuid" mod="string" dir="in">
7026 <desc>UUID of the USB device to detach.</desc>
7027 </param>
7028 <param name="device" type="IUSBDevice" dir="return">
7029 <desc>Detached USB device.</desc>
7030 </param>
7031 </method>
7032
7033 <method name="findUSBDeviceByAddress">
7034 <desc>
7035 Searches for a USB device with the given host address.
7036
7037 <result name="VBOX_E_OBJECT_NOT_FOUND">
7038 Given @c name does not correspond to any USB device.
7039 </result>
7040
7041 <see>IUSBDevice::address</see>
7042 </desc>
7043 <param name="name" type="wstring" dir="in">
7044 <desc>
7045 Address of the USB device (as assigned by the host) to
7046 search for.
7047 </desc>
7048 </param>
7049 <param name="device" type="IUSBDevice" dir="return">
7050 <desc>Found USB device object.</desc>
7051 </param>
7052 </method>
7053
7054 <method name="findUSBDeviceById">
7055 <desc>
7056 Searches for a USB device with the given UUID.
7057
7058 <result name="VBOX_E_OBJECT_NOT_FOUND">
7059 Given @c id does not correspond to any USB device.
7060 </result>
7061
7062 <see>IUSBDevice::id</see>
7063 </desc>
7064 <param name="id" type="uuid" mod="string" dir="in">
7065 <desc>UUID of the USB device to search for.</desc>
7066 </param>
7067 <param name="device" type="IUSBDevice" dir="return">
7068 <desc>Found USB device object.</desc>
7069 </param>
7070 </method>
7071
7072 <method name="createSharedFolder">
7073 <desc>
7074 Creates a transient new shared folder by associating the given logical
7075 name with the given host path, adds it to the collection of shared
7076 folders and starts sharing it. Refer to the description of
7077 <link to="ISharedFolder"/> to read more about logical names.
7078
7079 <result name="VBOX_E_INVALID_VM_STATE">
7080 Virtual machine in Saved state or currently changing state.
7081 </result>
7082 <result name="VBOX_E_FILE_ERROR">
7083 Shared folder already exists or not accessible.
7084 </result>
7085 </desc>
7086 <param name="name" type="wstring" dir="in">
7087 <desc>Unique logical name of the shared folder.</desc>
7088 </param>
7089 <param name="hostPath" type="wstring" dir="in">
7090 <desc>Full path to the shared folder in the host file system.</desc>
7091 </param>
7092 <param name="writable" type="boolean" dir="in">
7093 <desc>Whether the share is writable or readonly</desc>
7094 </param>
7095 </method>
7096
7097 <method name="removeSharedFolder">
7098 <desc>
7099 Removes a transient shared folder with the given name previously
7100 created by <link to="#createSharedFolder"/> from the collection of
7101 shared folders and stops sharing it.
7102 <result name="VBOX_E_INVALID_VM_STATE">
7103 Virtual machine in Saved state or currently changing state.
7104 </result>
7105 <result name="VBOX_E_FILE_ERROR">
7106 Shared folder does not exists.
7107 </result>
7108 </desc>
7109 <param name="name" type="wstring" dir="in">
7110 <desc>Logical name of the shared folder to remove.</desc>
7111 </param>
7112 </method>
7113
7114 <method name="takeSnapshot">
7115 <desc>
7116 Saves the current execution state
7117 and all settings of the machine and creates differencing images
7118 for all normal (non-independent) media.
7119 See <link to="ISnapshot" /> for an introduction to snapshots.
7120
7121 This method can be called for a PoweredOff, Saved (see
7122 <link to="#saveState"/>), Running or
7123 Paused virtual machine. When the machine is PoweredOff, an
7124 offline snapshot is created. When the machine is Running a live
7125 snapshot is created, and an online snapshot is is created when Paused.
7126
7127 The taken snapshot is always based on the
7128 <link to="IMachine::currentSnapshot">current snapshot</link>
7129 of the associated virtual machine and becomes a new current snapshot.
7130
7131 <note>
7132 This method implicitly calls <link to="IMachine::saveSettings"/> to
7133 save all current machine settings before taking an offline snapshot.
7134 </note>
7135
7136 <result name="VBOX_E_INVALID_VM_STATE">
7137 Virtual machine currently changing state.
7138 </result>
7139 </desc>
7140 <param name="name" type="wstring" dir="in">
7141 <desc>Short name for the snapshot.</desc>
7142 </param>
7143 <param name="description" type="wstring" dir="in">
7144 <desc>Optional description of the snapshot.</desc>
7145 </param>
7146 <param name="progress" type="IProgress" dir="return">
7147 <desc>Progress object to track the operation completion.</desc>
7148 </param>
7149 </method>
7150
7151 <method name="deleteSnapshot">
7152 <desc>
7153 Starts deleting the specified snapshot asynchronously.
7154 See <link to="ISnapshot" /> for an introduction to snapshots.
7155
7156 The execution state and settings of the associated machine stored in
7157 the snapshot will be deleted. The contents of all differencing media of
7158 this snapshot will be merged with the contents of their dependent child
7159 media to keep the medium chain valid (in other words, all changes
7160 represented by media being deleted will be propagated to their child
7161 medium). After that, this snapshot's differencing medium will be
7162 deleted. The parent of this snapshot will become a new parent for all
7163 its child snapshots.
7164
7165 If the deleted snapshot is the current one, its parent snapshot will
7166 become a new current snapshot. The current machine state is not directly
7167 affected in this case, except that currently attached differencing
7168 media based on media of the deleted snapshot will be also merged as
7169 described above.
7170
7171 If the deleted snapshot is the first or current snapshot, then the
7172 respective IMachine attributes will be adjusted. Deleting the current
7173 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7174 to make all current machine settings permanent.
7175
7176 Deleting a snapshot has the following preconditions:
7177
7178 <ul>
7179 <li>Child media of all normal media of the deleted snapshot
7180 must be accessible (see <link to="IMedium::state"/>) for this
7181 operation to succeed. In particular, this means that all virtual
7182 machines, whose media are directly or indirectly based on the
7183 media of deleted snapshot, must be powered off.</li>
7184
7185 <li>You cannot delete the snapshot if a medium attached to it has
7186 more than once child medium (differencing images) because otherwise
7187 merging would be impossible. This might be the case if there is
7188 more than one child snapshot or differencing images were created
7189 for other reason (e.g. implicitly because of multiple machine
7190 attachments).</li>
7191 </ul>
7192
7193
7194 The virtual machine's <link to="IMachine::state">state</link> is changed to "DeletingSnapshot"
7195 while this operation is in progress.
7196
7197 <note>
7198 Merging medium contents can be very time and disk space
7199 consuming, if these media are big in size and have many
7200 children. However, if the snapshot being deleted is the last
7201 (head) snapshot on the branch, the operation will be rather
7202 quick.
7203 </note>
7204 <result name="VBOX_E_INVALID_VM_STATE">
7205 Virtual machine is running.
7206 </result>
7207 </desc>
7208 <param name="id" type="uuid" mod="string" dir="in">
7209 <desc>UUID of the snapshot to delete.</desc>
7210 </param>
7211 <param name="progress" type="IProgress" dir="return">
7212 <desc>Progress object to track the operation completion.</desc>
7213 </param>
7214 </method>
7215
7216 <method name="restoreSnapshot">
7217 <desc>
7218 Starts resetting the machine's current state to the state contained
7219 in the given snapshot, asynchronously. All current settings of the
7220 machine will be reset and changes stored in differencing media
7221 will be lost.
7222 See <link to="ISnapshot" /> for an introduction to snapshots.
7223
7224 After this operation is successfully completed, new empty differencing
7225 media are created for all normal media of the machine.
7226
7227 If the given snapshot is an online snapshot, the machine will go to
7228 the <link to="MachineState_Saved"> saved state</link>, so that the
7229 next time it is powered on, the execution state will be restored
7230 from the state of the snapshot.
7231
7232 <note>
7233 The machine must not be running, otherwise the operation will fail.
7234 </note>
7235
7236 <note>
7237 If the machine state is <link to="MachineState_Saved">Saved</link>
7238 prior to this operation, the saved state file will be implicitly
7239 deleted (as if <link to="IConsole::forgetSavedState"/> were
7240 called).
7241 </note>
7242
7243 <result name="VBOX_E_INVALID_VM_STATE">
7244 Virtual machine is running.
7245 </result>
7246 </desc>
7247 <param name="snapshot" type="ISnapshot" dir="in">
7248 <desc>The snapshot to restore the VM state from.</desc>
7249 </param>
7250 <param name="progress" type="IProgress" dir="return">
7251 <desc>Progress object to track the operation completion.</desc>
7252 </param>
7253 </method>
7254
7255 <method name="teleport">
7256 <desc>
7257 Teleport the VM to a different host machine or process.
7258
7259 TODO explain the details.
7260
7261 <result name="VBOX_E_INVALID_VM_STATE">
7262 Virtual machine not running or paused.
7263 </result>
7264 </desc>
7265 <param name="hostname" type="wstring" dir="in">
7266 <desc>The name or IP of the host to teleport to.</desc>
7267 </param>
7268 <param name="tcpport" type="unsigned long" dir="in">
7269 <desc>The TCP port to connect to (1..65535).</desc>
7270 </param>
7271 <param name="password" type="wstring" dir="in">
7272 <desc>The password.</desc>
7273 </param>
7274 <param name="maxDowntime" type="unsigned long" dir="in">
7275 <desc>
7276 The maximum allowed downtime given as milliseconds. 0 is not a valid
7277 value. Recommended value: 250 ms.
7278
7279 The higher the value is, the greater the chance for a successful
7280 teleportation. A small value may easily result in the teleportation
7281 process taking hours and eventually fail.
7282
7283 <note>
7284 The current implementation treats this a guideline, not as an
7285 absolute rule.
7286 </note>
7287 </desc>
7288 </param>
7289 <param name="progress" type="IProgress" dir="return">
7290 <desc>Progress object to track the operation completion.</desc>
7291 </param>
7292 </method>
7293
7294 <method name="registerCallback">
7295 <desc>
7296 Registers a new console callback on this instance. The methods of the
7297 callback interface will be called by this instance when the appropriate
7298 event occurs.
7299 </desc>
7300 <param name="callback" type="IConsoleCallback" dir="in"/>
7301 </method>
7302
7303 <method name="unregisterCallback">
7304 <desc>
7305 Unregisters the console callback previously registered using
7306 <link to="#registerCallback"/>.
7307 <result name="E_INVALIDARG">
7308 Given @a callback handler is not registered.
7309 </result>
7310 </desc>
7311 <param name="callback" type="IConsoleCallback" dir="in"/>
7312 </method>
7313 </interface>
7314
7315 <!--
7316 // IHost
7317 /////////////////////////////////////////////////////////////////////////
7318 -->
7319
7320 <enum
7321 name="HostNetworkInterfaceMediumType"
7322 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7323 >
7324 <desc>
7325 Type of encapsulation. Ethernet encapsulation includes both wired and
7326 wireless Ethernet connections.
7327 <see>IHostNetworkInterface</see>
7328 </desc>
7329
7330 <const name="Unknown" value="0">
7331 <desc>
7332 The type of interface cannot be determined.
7333 </desc>
7334 </const>
7335 <const name="Ethernet" value="1">
7336 <desc>
7337 Ethernet frame encapsulation.
7338 </desc>
7339 </const>
7340 <const name="PPP" value="2">
7341 <desc>
7342 Point-to-point protocol encapsulation.
7343 </desc>
7344 </const>
7345 <const name="SLIP" value="3">
7346 <desc>
7347 Serial line IP encapsulation.
7348 </desc>
7349 </const>
7350 </enum>
7351
7352 <enum
7353 name="HostNetworkInterfaceStatus"
7354 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7355 >
7356 <desc>
7357 Current status of the interface.
7358 <see>IHostNetworkInterface</see>
7359 </desc>
7360
7361 <const name="Unknown" value="0">
7362 <desc>
7363 The state of interface cannot be determined.
7364 </desc>
7365 </const>
7366 <const name="Up" value="1">
7367 <desc>
7368 The interface is fully operational.
7369 </desc>
7370 </const>
7371 <const name="Down" value="2">
7372 <desc>
7373 The interface is not functioning.
7374 </desc>
7375 </const>
7376 </enum>
7377
7378 <enum
7379 name="HostNetworkInterfaceType"
7380 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7381 >
7382 <desc>
7383 Network interface type.
7384 </desc>
7385 <const name="Bridged" value="1"/>
7386 <const name="HostOnly" value="2"/>
7387 </enum>
7388
7389 <interface
7390 name="IHostNetworkInterface" extends="$unknown"
7391 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7392 wsmap="managed"
7393 >
7394 <desc>
7395 Represents one of host's network interfaces. IP V6 address and network
7396 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7397 separated by colons.
7398 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7399 </desc>
7400 <attribute name="name" type="wstring" readonly="yes">
7401 <desc>Returns the host network interface name.</desc>
7402 </attribute>
7403
7404 <attribute name="id" type="uuid" mod="string" readonly="yes">
7405 <desc>Returns the interface UUID.</desc>
7406 </attribute>
7407
7408 <attribute name="networkName" type="wstring" readonly="yes">
7409 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7410 </attribute>
7411
7412 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7413 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7414 </attribute>
7415
7416 <attribute name="IPAddress" type="wstring" readonly="yes">
7417 <desc>Returns the IP V4 address of the interface.</desc>
7418 </attribute>
7419
7420 <attribute name="networkMask" type="wstring" readonly="yes">
7421 <desc>Returns the network mask of the interface.</desc>
7422 </attribute>
7423
7424 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7425 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7426 </attribute>
7427
7428 <attribute name="IPV6Address" type="wstring" readonly="yes">
7429 <desc>Returns the IP V6 address of the interface.</desc>
7430 </attribute>
7431
7432 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7433 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7434 </attribute>
7435
7436 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7437 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7438 </attribute>
7439
7440 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7441 <desc>Type of protocol encapsulation used.</desc>
7442 </attribute>
7443
7444 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7445 <desc>Status of the interface.</desc>
7446 </attribute>
7447
7448 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7449 <desc>specifies the host interface type.</desc>
7450 </attribute>
7451
7452 <method name="enableStaticIpConfig">
7453 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7454 <param name="IPAddress" type="wstring" dir="in">
7455 <desc>
7456 IP address.
7457 </desc>
7458 </param>
7459 <param name="networkMask" type="wstring" dir="in">
7460 <desc>
7461 network mask.
7462 </desc>
7463 </param>
7464 </method>
7465
7466 <method name="enableStaticIpConfigV6">
7467 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7468 <param name="IPV6Address" type="wstring" dir="in">
7469 <desc>
7470 IP address.
7471 </desc>
7472 </param>
7473 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7474 <desc>
7475 network mask.
7476 </desc>
7477 </param>
7478 </method>
7479
7480 <method name="enableDynamicIpConfig">
7481 <desc>enables the dynamic IP configuration.</desc>
7482 </method>
7483
7484 <method name="dhcpRediscover">
7485 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7486 </method>
7487
7488 </interface>
7489
7490 <interface
7491 name="IHost" extends="$unknown"
7492 uuid="e380cbfc-ae65-4fa6-899e-45ded6b3132a"
7493 wsmap="managed"
7494 >
7495 <desc>
7496 The IHost interface represents the physical machine that this VirtualBox
7497 installation runs on.
7498
7499 An object implementing this interface is returned by the
7500 <link to="IVirtualBox::host" /> attribute. This interface contains
7501 read-only information about the host's physical hardware (such as what
7502 processors and disks are available, what the host operating system is,
7503 and so on) and also allows for manipulating some of the host's hardware,
7504 such as global USB device filters and host interface networking.
7505
7506 </desc>
7507 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7508 <desc>List of DVD drives available on the host.</desc>
7509 </attribute>
7510
7511 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7512 <desc>List of floppy drives available on the host.</desc>
7513 </attribute>
7514
7515 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7516 <desc>
7517 List of USB devices currently attached to the host.
7518 Once a new device is physically attached to the host computer,
7519 it appears in this list and remains there until detached.
7520
7521 <note>
7522 If USB functionality is not available in the given edition of
7523 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7524 </note>
7525 </desc>
7526 </attribute>
7527
7528 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7529 <desc>
7530 List of USB device filters in action.
7531 When a new device is physically attached to the host computer,
7532 filters from this list are applied to it (in order they are stored
7533 in the list). The first matched filter will determine the
7534 <link to="IHostUSBDeviceFilter::action">action</link>
7535 performed on the device.
7536
7537 Unless the device is ignored by these filters, filters of all
7538 currently running virtual machines
7539 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7540
7541 <note>
7542 If USB functionality is not available in the given edition of
7543 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7544 </note>
7545
7546 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7547 </desc>
7548 </attribute>
7549
7550 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7551 <desc>List of host network interfaces currently defined on the host.</desc>
7552 </attribute>
7553
7554 <attribute name="processorCount" type="unsigned long" readonly="yes">
7555 <desc>Number of (logical) CPUs installed in the host system.</desc>
7556 </attribute>
7557
7558 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7559 <desc>Number of (logical) CPUs online in the host system.</desc>
7560 </attribute>
7561
7562 <method name="getProcessorSpeed">
7563 <desc>Query the (approximate) maximum speed of a specified host CPU in
7564 Megahertz.
7565 </desc>
7566 <param name="cpuId" type="unsigned long" dir="in">
7567 <desc>
7568 Identifier of the CPU.
7569 </desc>
7570 </param>
7571 <param name="speed" type="unsigned long" dir="return">
7572 <desc>
7573 Speed value. 0 is returned if value is not known or @a cpuId is
7574 invalid.
7575 </desc>
7576 </param>
7577 </method>
7578
7579 <method name="getProcessorFeature">
7580 <desc>Query whether a CPU feature is supported or not.</desc>
7581 <param name="feature" type="ProcessorFeature" dir="in">
7582 <desc>
7583 CPU Feature identifier.
7584 </desc>
7585 </param>
7586 <param name="supported" type="boolean" dir="return">
7587 <desc>
7588 Feature is supported or not.
7589 </desc>
7590 </param>
7591 </method>
7592
7593 <method name="getProcessorDescription">
7594 <desc>Query the model string of a specified host CPU.
7595 </desc>
7596 <param name="cpuId" type="unsigned long" dir="in">
7597 <desc>
7598 Identifier of the CPU.
7599 <note>
7600 The current implementation might not necessarily return the
7601 description for this exact CPU.
7602 </note>
7603 </desc>
7604 </param>
7605 <param name="description" type="wstring" dir="return">
7606 <desc>
7607 Model string. An empty string is returned if value is not known or
7608 @a cpuId is invalid.
7609 </desc>
7610 </param>
7611 </method>
7612
7613 <method name="getProcessorCPUIDLeaf">
7614 <desc>
7615 Returns the CPU cpuid information for the specified leaf.
7616 </desc>
7617 <param name="cpuId" type="unsigned long" dir="in">
7618 <desc>
7619 Identifier of the CPU. The CPU most be online.
7620 <note>
7621 The current implementation might not necessarily return the
7622 description for this exact CPU.
7623 </note>
7624 </desc>
7625 </param>
7626 <param name="leaf" type="unsigned long" dir="in">
7627 <desc>
7628 CPUID leaf index (eax).
7629 </desc>
7630 </param>
7631 <param name="subLeaf" type="unsigned long" dir="in">
7632 <desc>
7633 CPUID leaf sub index (ecx). This currently only applies to cache
7634 information on Intel CPUs. Use 0 if retriving values for
7635 <link to="IMachine::setCPUIDLeaf"/>.
7636 </desc>
7637 </param>
7638 <param name="valEax" type="unsigned long" dir="out">
7639 <desc>
7640 CPUID leaf value for register eax.
7641 </desc>
7642 </param>
7643 <param name="valEbx" type="unsigned long" dir="out">
7644 <desc>
7645 CPUID leaf value for register ebx.
7646 </desc>
7647 </param>
7648 <param name="valEcx" type="unsigned long" dir="out">
7649 <desc>
7650 CPUID leaf value for register ecx.
7651 </desc>
7652 </param>
7653 <param name="valEdx" type="unsigned long" dir="out">
7654 <desc>
7655 CPUID leaf value for register edx.
7656 </desc>
7657 </param>
7658 </method>
7659
7660 <attribute name="memorySize" type="unsigned long" readonly="yes">
7661 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7662 </attribute>
7663
7664 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7665 <desc>Available system memory in the host system.</desc>
7666 </attribute>
7667
7668 <attribute name="operatingSystem" type="wstring" readonly="yes">
7669 <desc>Name of the host system's operating system.</desc>
7670 </attribute>
7671
7672 <attribute name="OSVersion" type="wstring" readonly="yes">
7673 <desc>Host operating system's version string.</desc>
7674 </attribute>
7675
7676 <attribute name="UTCTime" type="long long" readonly="yes">
7677 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7678 </attribute>
7679
7680 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7681 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7682 </attribute>
7683
7684 <method name="createHostOnlyNetworkInterface">
7685 <desc>
7686 Creates a new adapter for Host Only Networking.
7687 <result name="E_INVALIDARG">
7688 Host network interface @a name already exists.
7689 </result>
7690 </desc>
7691 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7692 <desc>
7693 Created host interface object.
7694 </desc>
7695 </param>
7696 <param name="progress" type="IProgress" dir="return">
7697 <desc>
7698 Progress object to track the operation completion.
7699 </desc>
7700 </param>
7701 </method>
7702
7703 <method name="removeHostOnlyNetworkInterface">
7704 <desc>
7705 Removes the given Host Only Networking interface.
7706 <result name="VBOX_E_OBJECT_NOT_FOUND">
7707 No host network interface matching @a id found.
7708 </result>
7709 </desc>
7710 <param name="id" type="uuid" mod="string" dir="in">
7711 <desc>
7712 Adapter GUID.
7713 </desc>
7714 </param>
7715 <param name="progress" type="IProgress" dir="return">
7716 <desc>
7717 Progress object to track the operation completion.
7718 </desc>
7719 </param>
7720 </method>
7721
7722 <method name="createUSBDeviceFilter">
7723 <desc>
7724 Creates a new USB device filter. All attributes except
7725 the filter name are set to empty (any match),
7726 <i>active</i> is @c false (the filter is not active).
7727
7728 The created filter can be added to the list of filters using
7729 <link to="#insertUSBDeviceFilter"/>.
7730
7731 <see>#USBDeviceFilters</see>
7732 </desc>
7733 <param name="name" type="wstring" dir="in">
7734 <desc>
7735 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7736 for more info.
7737 </desc>
7738 </param>
7739 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7740 <desc>Created filter object.</desc>
7741 </param>
7742 </method>
7743
7744 <method name="insertUSBDeviceFilter">
7745 <desc>
7746 Inserts the given USB device to the specified position
7747 in the list of filters.
7748
7749 Positions are numbered starting from @c 0. If the specified
7750 position is equal to or greater than the number of elements in
7751 the list, the filter is added at the end of the collection.
7752
7753 <note>
7754 Duplicates are not allowed, so an attempt to insert a
7755 filter already in the list is an error.
7756 </note>
7757 <note>
7758 If USB functionality is not available in the given edition of
7759 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7760 </note>
7761
7762 <see>#USBDeviceFilters</see>
7763
7764 <result name="VBOX_E_INVALID_OBJECT_STATE">
7765 USB device filter is not created within this VirtualBox instance.
7766 </result>
7767 <result name="E_INVALIDARG">
7768 USB device filter already in list.
7769 </result>
7770
7771 </desc>
7772 <param name="position" type="unsigned long" dir="in">
7773 <desc>Position to insert the filter to.</desc>
7774 </param>
7775 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7776 <desc>USB device filter to insert.</desc>
7777 </param>
7778 </method>
7779
7780 <method name="removeUSBDeviceFilter">
7781 <desc>
7782 Removes a USB device filter from the specified position in the
7783 list of filters.
7784
7785 Positions are numbered starting from @c 0. Specifying a
7786 position equal to or greater than the number of elements in
7787 the list will produce an error.
7788
7789 <note>
7790 If USB functionality is not available in the given edition of
7791 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7792 </note>
7793
7794 <see>#USBDeviceFilters</see>
7795
7796 <result name="E_INVALIDARG">
7797 USB device filter list empty or invalid @a position.
7798 </result>
7799
7800 </desc>
7801 <param name="position" type="unsigned long" dir="in">
7802 <desc>Position to remove the filter from.</desc>
7803 </param>
7804 </method>
7805
7806 <method name="findHostDVDDrive">
7807 <desc>
7808 Searches for a host DVD drive with the given @c name.
7809
7810 <result name="VBOX_E_OBJECT_NOT_FOUND">
7811 Given @c name does not correspond to any host drive.
7812 </result>
7813
7814 </desc>
7815 <param name="name" type="wstring" dir="in">
7816 <desc>Name of the host drive to search for</desc>
7817 </param>
7818 <param name="drive" type="IMedium" dir="return">
7819 <desc>Found host drive object</desc>
7820 </param>
7821 </method>
7822
7823 <method name="findHostFloppyDrive">
7824 <desc>
7825 Searches for a host floppy drive with the given @c name.
7826
7827 <result name="VBOX_E_OBJECT_NOT_FOUND">
7828 Given @c name does not correspond to any host floppy drive.
7829 </result>
7830
7831 </desc>
7832 <param name="name" type="wstring" dir="in">
7833 <desc>Name of the host floppy drive to search for</desc>
7834 </param>
7835 <param name="drive" type="IMedium" dir="return">
7836 <desc>Found host floppy drive object</desc>
7837 </param>
7838 </method>
7839
7840 <method name="findHostNetworkInterfaceByName">
7841 <desc>
7842 Searches through all host network interfaces for an interface with
7843 the given @c name.
7844 <note>
7845 The method returns an error if the given @c name does not
7846 correspond to any host network interface.
7847 </note>
7848 </desc>
7849 <param name="name" type="wstring" dir="in">
7850 <desc>Name of the host network interface to search for.</desc>
7851 </param>
7852 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7853 <desc>Found host network interface object.</desc>
7854 </param>
7855 </method>
7856 <method name="findHostNetworkInterfaceById">
7857 <desc>
7858 Searches through all host network interfaces for an interface with
7859 the given GUID.
7860 <note>
7861 The method returns an error if the given GUID does not
7862 correspond to any host network interface.
7863 </note>
7864 </desc>
7865 <param name="id" type="uuid" mod="string" dir="in">
7866 <desc>GUID of the host network interface to search for.</desc>
7867 </param>
7868 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7869 <desc>Found host network interface object.</desc>
7870 </param>
7871 </method>
7872 <method name="findHostNetworkInterfacesOfType">
7873 <desc>
7874 Searches through all host network interfaces and returns a list of interfaces of the specified type
7875 </desc>
7876 <param name="type" type="HostNetworkInterfaceType" dir="in">
7877 <desc>type of the host network interfaces to search for.</desc>
7878 </param>
7879 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7880 <desc>Found host network interface objects.</desc>
7881 </param>
7882 </method>
7883
7884 <method name="findUSBDeviceById">
7885 <desc>
7886 Searches for a USB device with the given UUID.
7887
7888 <result name="VBOX_E_OBJECT_NOT_FOUND">
7889 Given @c id does not correspond to any USB device.
7890 </result>
7891
7892 <see>IHostUSBDevice::id</see>
7893 </desc>
7894 <param name="id" type="uuid" mod="string" dir="in">
7895 <desc>UUID of the USB device to search for.</desc>
7896 </param>
7897 <param name="device" type="IHostUSBDevice" dir="return">
7898 <desc>Found USB device object.</desc>
7899 </param>
7900 </method>
7901
7902 <method name="findUSBDeviceByAddress">
7903 <desc>
7904 Searches for a USB device with the given host address.
7905
7906 <result name="VBOX_E_OBJECT_NOT_FOUND">
7907 Given @c name does not correspond to any USB device.
7908 </result>
7909
7910 <see>IHostUSBDevice::address</see>
7911 </desc>
7912 <param name="name" type="wstring" dir="in">
7913 <desc>
7914 Address of the USB device (as assigned by the host) to
7915 search for.
7916 </desc>
7917 </param>
7918 <param name="device" type="IHostUSBDevice" dir="return">
7919 <desc>Found USB device object.</desc>
7920 </param>
7921 </method>
7922
7923 </interface>
7924
7925 <!--
7926 // ISystemProperties
7927 /////////////////////////////////////////////////////////////////////////
7928 -->
7929
7930 <interface
7931 name="ISystemProperties"
7932 extends="$unknown"
7933 uuid="07c3ffd8-8f59-49cc-b608-53a332e85cc3"
7934 wsmap="managed"
7935 >
7936 <desc>
7937 The ISystemProperties interface represents global properties of the given
7938 VirtualBox installation.
7939
7940 These properties define limits and default values for various attributes
7941 and parameters. Most of the properties are read-only, but some can be
7942 changed by a user.
7943 </desc>
7944
7945 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7946 <desc>Minimum guest system memory in Megabytes.</desc>
7947 </attribute>
7948
7949 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7950 <desc>Maximum guest system memory in Megabytes.</desc>
7951 </attribute>
7952
7953 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7954 <desc>Minimum guest video memory in Megabytes.</desc>
7955 </attribute>
7956
7957 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7958 <desc>Maximum guest video memory in Megabytes.</desc>
7959 </attribute>
7960
7961 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7962 <desc>Minimum CPU count.</desc>
7963 </attribute>
7964
7965 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7966 <desc>Maximum CPU count.</desc>
7967 </attribute>
7968
7969 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
7970 <desc>Maximum of monitors which could be connected.</desc>
7971 </attribute>
7972
7973 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7974 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7975 </attribute>
7976
7977 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7978 <desc>
7979 Number of network adapters associated with every
7980 <link to="IMachine"/> instance.
7981 </desc>
7982 </attribute>
7983
7984 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7985 <desc>
7986 Number of serial ports associated with every
7987 <link to="IMachine"/> instance.
7988 </desc>
7989 </attribute>
7990
7991 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7992 <desc>
7993 Number of parallel ports associated with every
7994 <link to="IMachine"/> instance.
7995 </desc>
7996 </attribute>
7997
7998 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7999 <desc>
8000 Maximum device position in the boot order. This value corresponds
8001 to the total number of devices a machine can boot from, to make it
8002 possible to include all possible devices to the boot list.
8003 <see><link to="IMachine::setBootOrder"/></see>
8004 </desc>
8005 </attribute>
8006
8007 <attribute name="defaultMachineFolder" type="wstring">
8008 <desc>
8009 Full path to the default directory used to create new or open
8010 existing machines when a settings file name contains no
8011 path.
8012
8013 The initial value of this property is
8014 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
8015 VirtualBox_home</link><tt>&gt;/Machines</tt>.
8016
8017 <note>
8018 Setting this property to @c null or an empty string will restore the
8019 initial value.
8020 </note>
8021 <note>
8022 When settings this property, the specified path can be
8023 absolute (full path) or relative
8024 to the <link to="IVirtualBox::homeFolder">
8025 VirtualBox home directory</link>.
8026 When reading this property, a full path is
8027 always returned.
8028 </note>
8029 <note>
8030 The specified path may not exist, it will be created
8031 when necessary.
8032 </note>
8033
8034 <see>
8035 <link to="IVirtualBox::createMachine"/>,
8036 <link to="IVirtualBox::openMachine"/>
8037 </see>
8038 </desc>
8039 </attribute>
8040
8041 <attribute name="defaultHardDiskFolder" type="wstring">
8042 <desc>
8043 Full path to the default directory used to create new or open existing
8044 virtual disks.
8045
8046 This path is used when the storage unit of a hard disk is a regular file
8047 in the host's file system and only a file name that contains no path is
8048 given.
8049
8050 The initial value of this property is
8051 <tt>&lt;</tt>
8052 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
8053 <tt>&gt;/HardDisks</tt>.
8054
8055 <note>
8056 Setting this property to @c null or empty string will restore the
8057 initial value.
8058 </note>
8059 <note>
8060 When settings this property, the specified path can be relative
8061 to the
8062 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
8063 absolute. When reading this property, a full path is
8064 always returned.
8065 </note>
8066 <note>
8067 The specified path may not exist, it will be created
8068 when necessary.
8069 </note>
8070
8071 <see>
8072 IMedium,
8073 <link to="IVirtualBox::createHardDisk"/>,
8074 <link to="IVirtualBox::openHardDisk"/>,
8075 <link to="IMedium::location"/>
8076 </see>
8077 </desc>
8078 </attribute>
8079
8080 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8081 <desc>
8082 List of all medium storage formats supported by this VirtualBox
8083 installation.
8084
8085 Keep in mind that the medium format identifier
8086 (<link to="IMediumFormat::id"/>) used in other API calls like
8087 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8088 medium format is a case-insensitive string. This means that, for
8089 example, all of the following strings:
8090 <pre>
8091 "VDI"
8092 "vdi"
8093 "VdI"</pre>
8094 refer to the same medium format.
8095
8096 Note that the virtual medium framework is backend-based, therefore
8097 the list of supported formats depends on what backends are currently
8098 installed.
8099
8100 <see>
8101 <link to="IMediumFormat"/>,
8102 </see>
8103 </desc>
8104 </attribute>
8105
8106 <attribute name="defaultHardDiskFormat" type="wstring">
8107 <desc>
8108 Identifier of the default medium format used by VirtualBox.
8109
8110 The medium format set by this attribute is used by VirtualBox
8111 when the medium format was not specified explicitly. One example is
8112 <link to="IVirtualBox::createHardDisk"/> with the empty
8113 format argument. A more complex example is implicit creation of
8114 differencing media when taking a snapshot of a virtual machine:
8115 this operation will try to use a format of the parent medium first
8116 and if this format does not support differencing media the default
8117 format specified by this argument will be used.
8118
8119 The list of supported medium formats may be obtained by the
8120 <link to="#mediaFormats"/> call. Note that the default medium
8121 format must have a capability to create differencing media;
8122 otherwise operations that create media implicitly may fail
8123 unexpectedly.
8124
8125 The initial value of this property is <tt>"VDI"</tt> in the current
8126 version of the VirtualBox product, but may change in the future.
8127
8128 <note>
8129 Setting this property to @c null or empty string will restore the
8130 initial value.
8131 </note>
8132
8133 <see>
8134 <link to="#mediaFormats"/>,
8135 <link to="IMediumFormat::id"/>,
8136 <link to="IVirtualBox::createHardDisk"/>
8137 </see>
8138 </desc>
8139 </attribute>
8140
8141 <attribute name="freeDiskSpaceWarning" type="unsigned long long">
8142 <desc>Issue a warning if the free disk space is below (or in some disk
8143 intensive operation is expected to go below) the given size in
8144 Megabytes.</desc>
8145 </attribute>
8146
8147 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8148 <desc>Issue a warning if the free disk space is below (or in some disk
8149 intensive operation is expected to go below) the given percentage.</desc>
8150 </attribute>
8151
8152 <attribute name="freeDiskSpaceError" type="unsigned long long">
8153 <desc>Issue an error if the free disk space is below (or in some disk
8154 intensive operation is expected to go below) the given size in
8155 Megabytes.</desc>
8156 </attribute>
8157
8158 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8159 <desc>Issue an error if the free disk space is below (or in some disk
8160 intensive operation is expected to go below) the given percentage.</desc>
8161 </attribute>
8162
8163 <attribute name="remoteDisplayAuthLibrary" type="wstring">
8164 <desc>
8165 Library that provides authentication for VRDP clients. The library
8166 is used if a virtual machine's authentication type is set to "external"
8167 in the VM RemoteDisplay configuration.
8168
8169 The system library extension (".DLL" or ".so") must be omitted.
8170 A full path can be specified; if not, then the library must reside on the
8171 system's default library path.
8172
8173 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
8174 of that name in one of the default VirtualBox library directories.
8175
8176 For details about VirtualBox authentication libraries and how to implement
8177 them, please refer to the VirtualBox manual.
8178
8179 <note>
8180 Setting this property to @c null or empty string will restore the
8181 initial value.
8182 </note>
8183 </desc>
8184 </attribute>
8185
8186 <attribute name="webServiceAuthLibrary" type="wstring">
8187 <desc>
8188 Library that provides authentication for webservice clients. The library
8189 is used if a virtual machine's authentication type is set to "external"
8190 in the VM RemoteDisplay configuration and will be called from
8191 within the <link to="IWebsessionManager::logon" /> implementation.
8192
8193 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
8194 there is no per-VM setting for this, as the webservice is a global
8195 resource (if it is running). Only for this setting (for the webservice),
8196 setting this value to a literal <tt>"null"</tt> string disables authentication,
8197 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8198 no matter what user name and password are supplied.
8199
8200 The initial value of this property is <tt>"VRDPAuth"</tt>,
8201 meaning that the webservice will use the same authentication
8202 library that is used by default for VBoxVRDP (again, see
8203 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
8204 The format and calling convention of authentication libraries
8205 is the same for the webservice as it is for VBoxVRDP.
8206
8207 <note>
8208 Setting this property to @c null or empty string will restore the
8209 initial value.
8210 </note>
8211 </desc>
8212 </attribute>
8213
8214 <attribute name="LogHistoryCount" type="unsigned long">
8215 <desc>
8216 This value specifies how many old release log files are kept.
8217 </desc>
8218 </attribute>
8219
8220 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8221 <desc>This value hold the default audio driver for the current
8222 system.</desc>
8223 </attribute>
8224
8225 <method name="getMaxDevicesPerPortForStorageBus">
8226 <desc>Returns the maximum number of devices which can be attached to a port
8227 for the given storage bus.</desc>
8228
8229 <param name="bus" type="StorageBus" dir="in">
8230 <desc>The storage bus type to get the value for.</desc>
8231 </param>
8232
8233 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8234 <desc>The maximum number of devices which can eb attached to the port for the given
8235 storage bus.</desc>
8236 </param>
8237 </method>
8238
8239 <method name="getMinPortCountForStorageBus">
8240 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8241
8242 <param name="bus" type="StorageBus" dir="in">
8243 <desc>The storage bus type to get the value for.</desc>
8244 </param>
8245
8246 <param name="minPortCount" type="unsigned long" dir="return">
8247 <desc>The minimum number of ports for the given storage bus.</desc>
8248 </param>
8249 </method>
8250
8251 <method name="getMaxPortCountForStorageBus">
8252 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8253
8254 <param name="bus" type="StorageBus" dir="in">
8255 <desc>The storage bus type to get the value for.</desc>
8256 </param>
8257
8258 <param name="maxPortCount" type="unsigned long" dir="return">
8259 <desc>The maximum number of ports for the given storage bus.</desc>
8260 </param>
8261 </method>
8262
8263 <method name="getMaxInstancesOfStorageBus">
8264 <desc>Returns the maximum number of storage bus instances which
8265 can be configured for each VM. This corresponds to the number of
8266 storage controllers one can have.</desc>
8267
8268 <param name="bus" type="StorageBus" dir="in">
8269 <desc>The storage bus type to get the value for.</desc>
8270 </param>
8271
8272 <param name="maxInstances" type="unsigned long" dir="return">
8273 <desc>The maximum number of instances for the given storage bus.</desc>
8274 </param>
8275 </method>
8276
8277 <method name="getDeviceTypesForStorageBus">
8278 <desc>Returns list of all the supported device types
8279 (<link to="DeviceType"/>) for the given type of storage
8280 bus.</desc>
8281
8282 <param name="bus" type="StorageBus" dir="in">
8283 <desc>The storage bus type to get the value for.</desc>
8284 </param>
8285
8286 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8287 <desc>The list of all supported device types for the given storage bus.</desc>
8288 </param>
8289 </method>
8290 </interface>
8291
8292 <!--
8293 // IGuest
8294 /////////////////////////////////////////////////////////////////////////
8295 -->
8296
8297 <interface
8298 name="IGuestOSType" extends="$unknown"
8299 uuid="3fcf2078-3c69-45ca-bd5c-79c3e3c15362"
8300 wsmap="struct"
8301 >
8302 <desc>
8303 </desc>
8304
8305 <attribute name="familyId" type="wstring" readonly="yes">
8306 <desc>Guest OS family identifier string.</desc>
8307 </attribute>
8308
8309 <attribute name="familyDescription" type="wstring" readonly="yes">
8310 <desc>Human readable description of the guest OS family.</desc>
8311 </attribute>
8312
8313 <attribute name="id" type="wstring" readonly="yes">
8314 <desc>Guest OS identifier string.</desc>
8315 </attribute>
8316
8317 <attribute name="description" type="wstring" readonly="yes">
8318 <desc>Human readable description of the guest OS.</desc>
8319 </attribute>
8320
8321 <attribute name="is64Bit" type="boolean" readonly="yes">
8322 <desc>Returns @c true if the given OS is 64-bit</desc>
8323 </attribute>
8324
8325 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8326 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8327 </attribute>
8328
8329 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8330 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8331 </attribute>
8332
8333 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8334 <desc>Recommended RAM size in Megabytes.</desc>
8335 </attribute>
8336
8337 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8338 <desc>Recommended video RAM size in Megabytes.</desc>
8339 </attribute>
8340
8341 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
8342 <desc>Recommended hard disk size in Megabytes.</desc>
8343 </attribute>
8344
8345 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8346 <desc>Returns recommended network adapter for this OS type.</desc>
8347 </attribute>
8348
8349 <attribute name="recommendedPae" type="boolean" readonly="yes">
8350 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8351 </attribute>
8352
8353 <attribute name="recommendedStorageController" type="StorageControllerType" readonly="yes">
8354 <desc>Recommended storage controller type.</desc>
8355 </attribute>
8356
8357 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8358 <desc>Recommended firmware type.</desc>
8359 </attribute>
8360
8361 <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
8362 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8363 </attribute>
8364
8365 <attribute name="recommendedHpet" type="boolean" readonly="yes">
8366 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8367 </attribute>
8368
8369 <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
8370 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8371 </attribute>
8372
8373 <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
8374 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8375 </attribute>
8376
8377 </interface>
8378
8379 <interface
8380 name="IGuest" extends="$unknown"
8381 uuid="4b8f90ce-e8ef-4f07-af1b-b0b85bc07e37"
8382 wsmap="managed"
8383 >
8384 <desc>
8385 The IGuest interface represents information about the operating system
8386 running inside the virtual machine. Used in
8387 <link to="IConsole::guest"/>.
8388
8389 IGuest provides information about the guest operating system, whether
8390 Guest Additions are installed and other OS-specific virtual machine
8391 properties.
8392 </desc>
8393
8394 <attribute name="OSTypeId" type="wstring" readonly="yes">
8395 <desc>
8396 Identifier of the Guest OS type as reported by the Guest
8397 Additions.
8398 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
8399 an IGuestOSType object representing details about the given
8400 Guest OS type.
8401 <note>
8402 If Guest Additions are not installed, this value will be
8403 the same as <link to="IMachine::OSTypeId"/>.
8404 </note>
8405 </desc>
8406 </attribute>
8407
8408 <attribute name="additionsActive" type="boolean" readonly="yes">
8409 <desc>
8410 Flag whether the Guest Additions are installed and active
8411 in which case their version will be returned by the
8412 <link to="#additionsVersion"/> property.
8413 </desc>
8414 </attribute>
8415
8416 <attribute name="additionsVersion" type="wstring" readonly="yes">
8417 <desc>
8418 Version of the Guest Additions (3 decimal numbers separated
8419 by dots) or empty when the Additions are not installed. The
8420 Additions may also report a version but yet not be active as
8421 the version might be refused by VirtualBox (incompatible) or
8422 other failures occurred.
8423 </desc>
8424 </attribute>
8425
8426 <attribute name="supportsSeamless" type="boolean" readonly="yes">
8427 <desc>
8428 Flag whether seamless guest display rendering (seamless desktop
8429 integration) is supported.
8430 </desc>
8431 </attribute>
8432
8433 <attribute name="supportsGraphics" type="boolean" readonly="yes">
8434 <desc>
8435 Flag whether the guest is in graphics mode. If it is not, then
8436 seamless rendering will not work, resize hints are not immediately
8437 acted on and guest display resizes are probably not initiated by
8438 the guest additions.
8439 </desc>
8440 </attribute>
8441
8442 <attribute name="memoryBalloonSize" type="unsigned long">
8443 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
8444 </attribute>
8445
8446 <attribute name="statisticsUpdateInterval" type="unsigned long">
8447 <desc>Interval to update guest statistics in seconds.</desc>
8448 </attribute>
8449
8450 <method name="internalGetStatistics">
8451 <desc>
8452 Internal method; do not use as it might change at any time
8453 </desc>
8454 <param name="cpuUser" type="unsigned long" dir="out">
8455 <desc>Percentage of processor time spent in user mode as seen by the guest</desc>
8456 </param>
8457 <param name="cpuKernel" type="unsigned long" dir="out">
8458 <desc>Percentage of processor time spent in kernel mode as seen by the guest</desc>
8459 </param>
8460 <param name="cpuIdle" type="unsigned long" dir="out">
8461 <desc>Percentage of processor time spent idling as seen by the guest</desc>
8462 </param>
8463 <param name="memTotal" type="unsigned long" dir="out">
8464 <desc>Total amount of physical guest RAM</desc>
8465 </param>
8466 <param name="memFree" type="unsigned long" dir="out">
8467 <desc>Free amount of physical guest RAM</desc>
8468 </param>
8469 <param name="memBalloon" type="unsigned long" dir="out">
8470 <desc>Amount of ballooned physical guest RAM</desc>
8471 </param>
8472 <param name="memCache" type="unsigned long" dir="out">
8473 <desc>Total amount of guest (disk) cache memory</desc>
8474 </param>
8475 <param name="pagedTotal" type="unsigned long" dir="out">
8476 <desc>Total amount of space in the page file</desc>
8477 </param>
8478 <param name="memAllocTotal" type="unsigned long" dir="out">
8479 <desc>Total amount of memory allocated by the hypervisor</desc>
8480 </param>
8481 <param name="memFreeTotal" type="unsigned long" dir="out">
8482 <desc>Total amount of free memory available in the hypervisor</desc>
8483 </param>
8484 <param name="memBalloonTotal" type="unsigned long" dir="out">
8485 <desc>Total amount of memory ballooned by the hypervisor</desc>
8486 </param>
8487 </method>
8488
8489 <method name="setCredentials">
8490 <desc>
8491 Store login credentials that can be queried by guest operating
8492 systems with Additions installed. The credentials are transient
8493 to the session and the guest may also choose to erase them. Note
8494 that the caller cannot determine whether the guest operating system
8495 has queried or made use of the credentials.
8496
8497 <result name="VBOX_E_VM_ERROR">
8498 VMM device is not available.
8499 </result>
8500
8501 </desc>
8502 <param name="userName" type="wstring" dir="in">
8503 <desc>User name string, can be empty</desc>
8504 </param>
8505 <param name="password" type="wstring" dir="in">
8506 <desc>Password string, can be empty</desc>
8507 </param>
8508 <param name="domain" type="wstring" dir="in">
8509 <desc>Domain name (guest logon scheme specific), can be empty</desc>
8510 </param>
8511 <param name="allowInteractiveLogon" type="boolean" dir="in">
8512 <desc>
8513 Flag whether the guest should alternatively allow the user to
8514 interactively specify different credentials. This flag might
8515 not be supported by all versions of the Additions.
8516 </desc>
8517 </param>
8518 </method>
8519
8520 <method name="executeProcess">
8521 <desc>
8522 Executes an existing program inside the guest VM.
8523
8524 <result name="VBOX_E_IPRT_ERROR">
8525 Could not execute process.
8526 </result>
8527
8528 </desc>
8529 <param name="execName" type="wstring" dir="in">
8530 <desc>
8531 Full path name of the command to execute on the guest; the
8532 commands has to exists in the guest VM in order to be executed.
8533 </desc>
8534 </param>
8535 <param name="flags" type="unsigned long" dir="in">
8536 <desc>
8537 Execution flags - currently not supported and therefore
8538 has to be set to 0.
8539 </desc>
8540 </param>
8541 <param name="arguments" type="wstring" safearray="yes" dir="in">
8542 <desc>
8543 Array of arguments passed to the execution command.
8544 </desc>
8545 </param>
8546 <param name="environment" type="wstring" safearray="yes" dir="in">
8547 <desc>
8548 Environment variables that can be set while the command is being
8549 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
8550 variable just set its name ("NAME") without a value.
8551 </desc>
8552 </param>
8553 <param name="stdIn" type="wstring" dir="in">
8554 <desc>
8555 What to do with the standard input (stdin) of the command being
8556 executed. Currently not used and has to be set to an empty value.
8557 </desc>
8558 </param>
8559 <param name="stdOut" type="wstring" dir="in">
8560 <desc>
8561 What to do with the standard output (stdout) of the command being
8562 executed. Currently not used and has to be set to an empty value.
8563 </desc>
8564 </param>
8565 <param name="stdErr" type="wstring" dir="in">
8566 <desc>
8567 What to do with the standard error (stderr) of the command being
8568 executed. Currently not used and has to be set to an empty value.
8569 </desc>
8570 </param>
8571 <param name="userName" type="wstring" dir="in">
8572 <desc>
8573 User name under which the command will be executed; has to exist
8574 and have the appropriate rights to execute programs in the VM.
8575 </desc>
8576 </param>
8577 <param name="password" type="wstring" dir="in">
8578 <desc>
8579 Password of the user account specified.
8580 </desc>
8581 </param>
8582 <param name="timeoutMS" type="unsigned long" dir="in">
8583 <desc>
8584 The maximum timeout value (in msec) to wait for finished program
8585 execution. Pass 0 for an infinite timeout.
8586 </desc>
8587 </param>
8588 <param name="pid" type="unsigned long" dir="out">
8589 <desc>
8590 The PID (process ID) of the started command for later reference.
8591 </desc>
8592 </param>
8593 <param name="progress" type="IProgress" dir="return">
8594 <desc>Progress object to track the operation completion.</desc>
8595 </param>
8596 </method>
8597
8598 <method name="getProcessOutput">
8599 <desc>
8600 Retrieves output of a formerly started process.
8601
8602 <result name="VBOX_E_IPRT_ERROR">
8603 Could not retrieve output.
8604 </result>
8605
8606 </desc>
8607 <param name="pid" type="unsigned long" dir="in">
8608 <desc>
8609 Process id returned by earlier executeProcess() call.
8610 </desc>
8611 </param>
8612 <param name="flags" type="unsigned long" dir="in">
8613 <desc>
8614 Flags describing which output to retrieve.
8615 </desc>
8616 </param>
8617 <param name="timeoutMS" type="unsigned long" dir="in">
8618 <desc>
8619 The maximum timeout value (in msec) to wait for output
8620 data. Pass 0 for an infinite timeout.
8621 </desc>
8622 </param>
8623 <param name="size" type="unsigned long long" dir="in">
8624 <desc>
8625 Size in bytes to read in the buffer.
8626 </desc>
8627 </param>
8628 <param name="data" type="octet" dir="return" safearray="yes">
8629 <desc>
8630 Buffer for retrieving the actual output. A data size of 0 means end of file
8631 if the requested size was not 0. This is the unprocessed
8632 output data, i.e. the line ending style depends on the platform of
8633 the system the server is running on.
8634 </desc>
8635 </param>
8636 </method>
8637
8638 </interface>
8639
8640
8641 <!--
8642 // IProgress
8643 /////////////////////////////////////////////////////////////////////////
8644 -->
8645
8646 <interface
8647 name="IProgress" extends="$unknown"
8648 uuid="856aa038-853f-42e2-acf7-6e7b02dbe294"
8649 wsmap="managed"
8650 >
8651 <desc>
8652 The IProgress interface is used to track and control
8653 asynchronous tasks within VirtualBox.
8654
8655 An instance of this is returned every time VirtualBox starts
8656 an asynchronous task (in other words, a separate thread) which
8657 continues to run after a method call returns. For example,
8658 <link to="IConsole::saveState" />, which saves the state of
8659 a running virtual machine, can take a long time to complete.
8660 To be able to display a progress bar, a user interface such as
8661 the VirtualBox graphical user interface can use the IProgress
8662 object returned by that method.
8663
8664 Note that IProgress is a "read-only" interface in the sense
8665 that only the VirtualBox internals behind the Main API can
8666 create and manipulate progress objects, whereas client code
8667 can only use the IProgress object to monitor a task's
8668 progress and, if <link to="#cancelable" /> is @c true,
8669 cancel the task by calling <link to="#cancel" />.
8670
8671 A task represented by IProgress consists of either one or
8672 several sub-operations that run sequentially, one by one (see
8673 <link to="#operation" /> and <link to="#operationCount" />).
8674 Every operation is identified by a number (starting from 0)
8675 and has a separate description.
8676
8677 You can find the individual percentage of completion of the current
8678 operation in <link to="#operationPercent" /> and the
8679 percentage of completion of the task as a whole
8680 in <link to="#percent" />.
8681
8682 Similarly, you can wait for the completion of a particular
8683 operation via <link to="#waitForOperationCompletion" /> or
8684 for the completion of the whole task via
8685 <link to="#waitForCompletion" />.
8686 </desc>
8687
8688 <attribute name="id" type="uuid" mod="string" readonly="yes">
8689 <desc>ID of the task.</desc>
8690 </attribute>
8691
8692 <attribute name="description" type="wstring" readonly="yes">
8693 <desc>Description of the task.</desc>
8694 </attribute>
8695
8696 <attribute name="initiator" type="$unknown" readonly="yes">
8697 <desc>Initiator of the task.</desc>
8698 </attribute>
8699
8700 <attribute name="cancelable" type="boolean" readonly="yes">
8701 <desc>Whether the task can be interrupted.</desc>
8702 </attribute>
8703
8704 <attribute name="percent" type="unsigned long" readonly="yes">
8705 <desc>
8706 Current progress value of the task as a whole, in percent.
8707 This value depends on how many operations are already complete.
8708 Returns 100 if <link to="#completed" /> is @c true.
8709 </desc>
8710 </attribute>
8711
8712 <attribute name="timeRemaining" type="long" readonly="yes">
8713 <desc>
8714 Estimated remaining time until the task completes, in
8715 seconds. Returns 0 once the task has completed; returns -1
8716 if the remaining time cannot be computed, in particular if
8717 the current progress is 0.
8718
8719 Even if a value is returned, the estimate will be unreliable
8720 for low progress values. It will become more reliable as the
8721 task progresses; it is not recommended to display an ETA
8722 before at least 20% of a task have completed.
8723 </desc>
8724 </attribute>
8725
8726 <attribute name="completed" type="boolean" readonly="yes">
8727 <desc>Whether the task has been completed.</desc>
8728 </attribute>
8729
8730 <attribute name="canceled" type="boolean" readonly="yes">
8731 <desc>Whether the task has been canceled.</desc>
8732 </attribute>
8733
8734 <attribute name="resultCode" type="long" readonly="yes">
8735 <desc>
8736 Result code of the progress task.
8737 Valid only if <link to="#completed"/> is @c true.
8738 </desc>
8739 </attribute>
8740
8741 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8742 <desc>
8743 Extended information about the unsuccessful result of the
8744 progress operation. May be @c null if no extended information
8745 is available.
8746 Valid only if <link to="#completed"/> is @c true and
8747 <link to="#resultCode"/> indicates a failure.
8748 </desc>
8749 </attribute>
8750
8751 <attribute name="operationCount" type="unsigned long" readonly="yes">
8752 <desc>
8753 Number of sub-operations this task is divided into.
8754 Every task consists of at least one suboperation.
8755 </desc>
8756 </attribute>
8757
8758 <attribute name="operation" type="unsigned long" readonly="yes">
8759 <desc>Number of the sub-operation being currently executed.</desc>
8760 </attribute>
8761
8762 <attribute name="operationDescription" type="wstring" readonly="yes">
8763 <desc>
8764 Description of the sub-operation being currently executed.
8765 </desc>
8766 </attribute>
8767
8768 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8769 <desc>Progress value of the current sub-operation only, in percent.</desc>
8770 </attribute>
8771
8772 <attribute name="timeout" type="unsigned long">
8773 <desc>
8774 When non-zero, this specifies the number of milliseconds after which
8775 the operation will automatically be canceled. This can only be set on
8776 cancelable objects.
8777 </desc>
8778 </attribute>
8779
8780 <method name="setCurrentOperationProgress">
8781 <desc>Internal method, not to be called externally.</desc>
8782 <param name="percent" type="unsigned long" dir="in" />
8783 </method>
8784 <method name="setNextOperation">
8785 <desc>Internal method, not to be called externally.</desc>
8786 <param name="nextOperationDescription" type="wstring" dir="in" />
8787 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
8788 </method>
8789
8790 <method name="waitForCompletion">
8791 <desc>
8792 Waits until the task is done (including all sub-operations)
8793 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8794
8795 <result name="VBOX_E_IPRT_ERROR">
8796 Failed to wait for task completion.
8797 </result>
8798 </desc>
8799
8800 <param name="timeout" type="long" dir="in">
8801 <desc>
8802 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8803 </desc>
8804 </param>
8805 </method>
8806
8807 <method name="waitForOperationCompletion">
8808 <desc>
8809 Waits until the given operation is done with a given timeout in
8810 milliseconds; specify -1 for an indefinite wait.
8811
8812 <result name="VBOX_E_IPRT_ERROR">
8813 Failed to wait for operation completion.
8814 </result>
8815
8816 </desc>
8817 <param name="operation" type="unsigned long" dir="in">
8818 <desc>
8819 Number of the operation to wait for.
8820 Must be less than <link to="#operationCount"/>.
8821 </desc>
8822 </param>
8823 <param name="timeout" type="long" dir="in">
8824 <desc>
8825 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8826 </desc>
8827 </param>
8828 </method>
8829
8830 <method name="cancel">
8831 <desc>
8832 Cancels the task.
8833 <note>
8834 If <link to="#cancelable"/> is @c false, then this method will fail.
8835 </note>
8836
8837 <result name="VBOX_E_INVALID_OBJECT_STATE">
8838 Operation cannot be canceled.
8839 </result>
8840
8841 </desc>
8842 </method>
8843
8844 </interface>
8845
8846
8847 <!--
8848 // ISnapshot
8849 /////////////////////////////////////////////////////////////////////////
8850 -->
8851
8852 <interface
8853 name="ISnapshot" extends="$unknown"
8854 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8855 wsmap="managed"
8856 >
8857 <desc>
8858 The ISnapshot interface represents a snapshot of the virtual
8859 machine.
8860
8861 Together with the differencing media that are created
8862 when a snapshot is taken, a machine can be brought back to
8863 the exact state it was in when the snapshot was taken.
8864
8865 The ISnapshot interface has no methods, only attributes; snapshots
8866 are controlled through methods of the <link to="IConsole" /> interface
8867 which also manage the media associated with the snapshot.
8868 The following operations exist:
8869
8870 <ul>
8871 <li><link to="IConsole::takeSnapshot"/>: creates a new snapshot
8872 by creating new, empty differencing images for the machine's
8873 media and saving the VM settings and (if the VM is running)
8874 the current VM state in the snapshot.
8875
8876 The differencing images will then receive all data written to
8877 the machine's media, while their parent (base) images
8878 remain unmodified after the snapshot has been taken (see
8879 <link to="IMedium" /> for details about differencing images).
8880 This simplifies restoring a machine to the state of a snapshot:
8881 only the differencing images need to be deleted.
8882
8883 The current machine state is not changed by taking a snapshot.
8884 If the machine is running, it will resume execution after the
8885 snapshot has been taken.
8886 </li>
8887
8888 <li><link to="IConsole::restoreSnapshot"/>: this goes back to
8889 a previous snapshot. This resets the machine's state to that of
8890 the previous snapshot by deleting the differencing image of each
8891 of the machine's media and setting the machine's settings
8892 and state to the state that was saved in the snapshot (if any).
8893
8894 This destroys the machine's current state.
8895 </li>
8896
8897 <li><link to="IConsole::deleteSnapshot"/>: deletes a snapshot
8898 without affecting the current machine state.
8899
8900 This does not change the machine, but instead frees the resources
8901 allocated when the snapshot was taken: the settings and machine state
8902 is deleted (if any), and the snapshot's differencing image for each
8903 of the machine's media gets merged with its parent image.
8904
8905 Neither the current machine state nor other snapshots are affected
8906 by this operation, except that parent media will be modified
8907 to contain the disk data associated with the snapshot being deleted.
8908 </li>
8909 </ul>
8910
8911 Each snapshot contains the settings of the virtual machine (hardware
8912 configuration etc.). In addition, if the machine was running when the
8913 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
8914 the current VM state is saved in the snapshot (similarly to what happens
8915 when a VM's state is saved). The snapshot is then said to
8916 be <i>online</i> because when restoring it, the VM will be running.
8917
8918 If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
8919 receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
8920
8921 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
8922 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
8923 it then contains a so-called "zero execution state", representing a
8924 machine that is powered off.
8925
8926 <h3>Snapshot branches and the "current" snapshot</h3>
8927
8928 Snapshots can be chained, whereby every next snapshot is based on the
8929 previous one. This chaining is related to medium branching
8930 (see the <link to="IMedium"/> description) in that every time
8931 a new snapshot is created, a new differencing medium is implicitly
8932 created for all normal media attached to the machine.
8933
8934 Each virtual machine has a "current snapshot", identified by
8935 <link to="IMachine::currentSnapshot"/>. Presently, this is always set
8936 to the last snapshot in the chain. In a future version of VirtualBox,
8937 it will be possible to reset a machine's current state to that of an
8938 earlier snapshot without deleting the current state so that it will be
8939 possible to create alternative snapshot paths in a snapshot tree.
8940
8941 In the current implementation, multiple snapshot branches within one
8942 virtual machine are not allowed. Every machine has a single branch,
8943 and <link to="IConsole::takeSnapshot"/> operation adds a new
8944 snapshot to the top of that branch.
8945 </desc>
8946
8947 <attribute name="id" type="uuid" mod="string" readonly="yes">
8948 <desc>UUID of the snapshot.</desc>
8949 </attribute>
8950
8951 <attribute name="name" type="wstring">
8952 <desc>Short name of the snapshot.</desc>
8953 </attribute>
8954
8955 <attribute name="description" type="wstring">
8956 <desc>Optional description of the snapshot.</desc>
8957 </attribute>
8958
8959 <attribute name="timeStamp" type="long long" readonly="yes">
8960 <desc>
8961 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8962 </desc>
8963 </attribute>
8964
8965 <attribute name="online" type="boolean" readonly="yes">
8966 <desc>
8967 @c true if this snapshot is an online snapshot and @c false otherwise.
8968
8969 When this attribute is @c true, the
8970 <link to="IMachine::stateFilePath"/> attribute of the
8971 <link to="#machine"/> object associated with this snapshot
8972 will point to the saved state file. Otherwise, it will be
8973 an empty string.
8974 </desc>
8975 </attribute>
8976
8977 <attribute name="machine" type="IMachine" readonly="yes">
8978 <desc>
8979 Virtual machine this snapshot is taken on. This object
8980 stores all settings the machine had when taking this snapshot.
8981 <note>
8982 The returned machine object is immutable, i.e. no
8983 any settings can be changed.
8984 </note>
8985 </desc>
8986 </attribute>
8987
8988 <attribute name="parent" type="ISnapshot" readonly="yes">
8989 <desc>
8990 Parent snapshot (a snapshot this one is based on), or
8991 @c null if the snapshot has no parent (i.e. is the first snapshot).
8992 </desc>
8993 </attribute>
8994
8995 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8996 <desc>
8997 Child snapshots (all snapshots having this one as a parent).
8998 </desc>
8999 </attribute>
9000
9001 </interface>
9002
9003
9004 <!--
9005 // IMedium
9006 /////////////////////////////////////////////////////////////////////////
9007 -->
9008
9009 <enum
9010 name="MediumState"
9011 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
9012 >
9013 <desc>
9014 Virtual medium state.
9015 <see>IMedium</see>
9016 </desc>
9017
9018 <const name="NotCreated" value="0">
9019 <desc>
9020 Associated medium storage does not exist (either was not created yet or
9021 was deleted).
9022 </desc>
9023 </const>
9024 <const name="Created" value="1">
9025 <desc>
9026 Associated storage exists and accessible; this gets set if the
9027 accessibility check performed by <link to="IMedium::refreshState" />
9028 was successful.
9029 </desc>
9030 </const>
9031 <const name="LockedRead" value="2">
9032 <desc>
9033 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
9034 no data modification is possible.
9035 </desc>
9036 </const>
9037 <const name="LockedWrite" value="3">
9038 <desc>
9039 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
9040 no concurrent data reading or modification is possible.
9041 </desc>
9042 </const>
9043 <const name="Inaccessible" value="4">
9044 <desc>
9045 Medium accessiblity check (see <link to="IMedium::refreshState" />) has
9046 not yet been performed, or else, associated medium storage is not
9047 accessible. In the first case, <link to="IMedium::lastAccessError"/>
9048 is empty, in the second case, it describes the error that occured.
9049 </desc>
9050 </const>
9051 <const name="Creating" value="5">
9052 <desc>
9053 Associated medium storage is being created.
9054 </desc>
9055 </const>
9056 <const name="Deleting" value="6">
9057 <desc>
9058 Associated medium storage is being deleted.
9059 </desc>
9060 </const>
9061 </enum>
9062
9063 <enum
9064 name="MediumType"
9065 uuid="11f6f7a5-0327-409a-9d42-7db6a0cec578"
9066 >
9067 <desc>
9068 Virtual medium type.
9069 <see>IMedium</see>
9070 </desc>
9071
9072 <const name="Normal" value="0">
9073 <desc>
9074 Normal medium (attached directly or indirectly, preserved
9075 when taking snapshots).
9076 </desc>
9077 </const>
9078 <const name="Immutable" value="1">
9079 <desc>
9080 Immutable medium (attached indirectly, changes are wiped out
9081 the next time the virtual machine is started).
9082 </desc>
9083 </const>
9084 <const name="Writethrough" value="2">
9085 <desc>
9086 Write through medium (attached directly, ignored when
9087 taking snapshots).
9088 </desc>
9089 </const>
9090 </enum>
9091
9092 <enum
9093 name="MediumVariant"
9094 uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
9095 >
9096 <desc>
9097 Virtual medium image variant. More than one flag may be set.
9098 <see>IMedium</see>
9099 </desc>
9100
9101 <const name="Standard" value="0">
9102 <desc>
9103 No particular variant requested, results in using the backend default.
9104 </desc>
9105 </const>
9106 <const name="VmdkSplit2G" value="0x01">
9107 <desc>
9108 VMDK image split in chunks of less than 2GByte.
9109 </desc>
9110 </const>
9111 <const name="VmdkStreamOptimized" value="0x04">
9112 <desc>
9113 VMDK streamOptimized image. Special import/export format which is
9114 read-only/append-only.
9115 </desc>
9116 </const>
9117 <const name="VmdkESX" value="0x08">
9118 <desc>
9119 VMDK format variant used on ESX products.
9120 </desc>
9121 </const>
9122 <const name="Fixed" value="0x10000">
9123 <desc>
9124 Fixed image. Only allowed for base images.
9125 </desc>
9126 </const>
9127 <const name="Diff" value="0x20000">
9128 <desc>
9129 Fixed image. Only allowed for base images.
9130 </desc>
9131 </const>
9132 </enum>
9133
9134 <interface
9135 name="IMediumAttachment" extends="$unknown"
9136 uuid="e58eb3eb-8627-428b-bdf8-34487c848de5"
9137 wsmap="struct"
9138 >
9139 <desc>
9140 The IMediumAttachment interface represents the attachment
9141 of a storage medium to a virtual machine. Each machine contains
9142 an array of its medium attachments in <link to="IMachine::mediumAttachments"/>.
9143
9144 Each medium attachment specifies a storage controller as well as a port
9145 and device number. Fixed media (hard disks) will always also specify
9146 an instance of IMedium in <link to="#medium" />, referring to the hard disk
9147 medium. For removeable media, the IMedia instance is optional; it can be
9148 @c null if no media is mounted (see <link to="IMachine::mountMedium" />).
9149 </desc>
9150
9151 <attribute name="medium" type="IMedium" readonly="yes">
9152 <desc>Medium object associated with this attachment; it
9153 can be @c null for removable devices.</desc>
9154 </attribute>
9155
9156 <attribute name="controller" type="wstring" readonly="yes">
9157 <desc>Name of the storage controller of this attachment; this
9158 refers to one of the controllers in <link to="IMachine::storageControllers" />
9159 by name.</desc>
9160 </attribute>
9161
9162 <attribute name="port" type="long" readonly="yes">
9163 <desc>Port number of this attachment.</desc>
9164 </attribute>
9165
9166 <attribute name="device" type="long" readonly="yes">
9167 <desc>Device slot number of this attachment.</desc>
9168 </attribute>
9169
9170 <attribute name="type" type="DeviceType" readonly="yes">
9171 <desc>Device type of this attachment.</desc>
9172 </attribute>
9173
9174 <attribute name="passthrough" type="boolean" readonly="yes">
9175 <desc>Pass I/O requests through to a device on the host.</desc>
9176 </attribute>
9177
9178 </interface>
9179
9180 <interface
9181 name="IMedium" extends="$unknown"
9182 uuid="d709160c-303f-4ead-b7ef-53ffa26aa861"
9183 wsmap="managed"
9184 >
9185 <desc>
9186 The IMedium interface represents virtual storage for a machine's
9187 hard disks, CD/DVD or floppy drives. It will typically represent
9188 a disk image on the host, for example a VDI or VMDK file representing
9189 a virtual hard disk, or an ISO or RAW file representing virtual
9190 removable media, but can also point to a network location (e.g.
9191 for iSCSI targets).
9192
9193 Instances of IMedium are connected to virtual machines by way of
9194 medium attachments (see <link to="IMediumAttachment" />), which link
9195 the storage medium to a particular device slot of a storage controller
9196 of the virtual machine.
9197 In the VirtualBox API, virtual storage is therefore always represented
9198 by the following chain of object links:
9199
9200 <ul>
9201 <li><link to="IMachine::storageControllers"/> contains an array of
9202 storage controllers (IDE, SATA, SCSI or a floppy controller;
9203 these are instances of <link to="IStorageController"/>).</li>
9204 <li><link to="IMachine::mediumAttachments"/> contains an array of
9205 medium attachments (instances of <link to="IMediumAttachment"/>),
9206 each containing a storage controller from the above array, a
9207 port/device specification, and an instance of IMedium representing
9208 the medium storage (image file).
9209
9210 For removable media, the storage medium is optional; a medium
9211 attachment with no medium represents a CD/DVD or floppy drive
9212 with no medium inserted. By contrast, hard disk attachments
9213 will always have an IMedium object attached.</li>
9214 <li>Each IMedium in turn points to a storage unit (such as a file
9215 on the host computer or a network resource) that holds actual
9216 data. This location is represented by the <link to="#location"/>
9217 attribute.</li>
9218 </ul>
9219
9220 Existing media are opened using the following methods, depending on the
9221 media type:
9222 <ul>
9223 <li><link to="IVirtualBox::openHardDisk"/></li>
9224 <li><link to="IVirtualBox::openDVDImage"/></li>
9225 <li><link to="IVirtualBox::openFloppyImage"/></li>
9226 </ul>
9227
9228 New hard disk media can be created with the VirtualBox API using the
9229 <link to="IVirtualBox::createHardDisk"/> method.
9230
9231 CD/DVD and floppy images (ISO and RAW files) are usually created outside
9232 VirtualBox, e.g. by storing a copy of the real medium of the corresponding
9233 type in a regular file.
9234
9235 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
9236 drive; in that case the <link to="#id" /> attribute contains the UUID of
9237 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
9238
9239 <h3>Known media</h3>
9240
9241 When an existing medium is opened for the first time, it is automatically
9242 remembered by the given VirtualBox installation or, in other words, becomes
9243 a <i>known medium</i>. Known media are stored in the media
9244 registry transparently maintained by VirtualBox and stored in settings
9245 files so that this registry is preserved when VirtualBox is not running.
9246
9247 Newly created virtual media are remembered only when the associated
9248 storage unit is actually created.
9249
9250 All known media can be enumerated using
9251 <link to="IVirtualBox::hardDisks"/>,
9252 <link to="IVirtualBox::DVDImages"/> and
9253 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
9254 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
9255 and similar methods or by location using
9256 <link to="IVirtualBox::findHardDisk"/> and similar methods.
9257
9258 Only known media can be attached to virtual machines.
9259
9260 Removing known media from the media registry is performed when the given
9261 medium is closed using the <link to="#close"/> method or when its
9262 associated storage unit is deleted.
9263
9264 <h3>Accessibility checks</h3>
9265
9266 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
9267 method is called explicitly on a medium. This is done to make the VirtualBox object
9268 ready for serving requests as fast as possible and let the end-user
9269 application decide if it needs to check media accessibility right away or not.
9270
9271 As a result, when VirtualBox starts up (e.g. the VirtualBox
9272 object gets created for the first time), all known media are in the
9273 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
9274 attribute is an empty string because no actual accessibility check has
9275 been made yet.
9276
9277 After calling <link to="#refreshState" />, a medium is considered
9278 <i>accessible</i> if its storage unit can be read. In that case, the
9279 <link to="#state"/> attribute has a value of "Created". If the storage
9280 unit cannot be read (for example, because it is located on a disconnected
9281 network resource, or was accidentally deleted outside VirtualBox),
9282 the medium is considered <i>inaccessible</i>, which is indicated by the
9283 "Inaccessible" state. The exact reason why the medium is inaccessible can be
9284 obtained by reading the <link to="#lastAccessError"/> attribute.
9285
9286 <h3>Medium types</h3>
9287
9288 There are three types of medium behavior (see <link to="MediumType" />):
9289 "normal", "immutable" and "writethrough", represented by the
9290 <link to="#type"/> attribute. The type of the medium defines how the
9291 medium is attached to a virtual machine and what happens when a
9292 <link to="ISnapshot">snapshot</link> of the virtual machine with the
9293 attached medium is taken. At the moment DVD and floppy media are always
9294 of type "writethrough".
9295
9296 All media can be also divided in two groups: <i>base</i> media and
9297 <i>differencing</i> media. A base medium contains all sectors of the
9298 medium data in its own storage and therefore can be used independently.
9299 In contrast, a differencing mediun is a "delta" to some other medium and
9300 contains only those sectors which differ from that other medium, which is
9301 then called a <i>parent</i>. The differencing medium is said to be
9302 <i>linked to</i> that parent. The parent may be itself a differencing
9303 medium, thus forming a chain of linked media. The last element in that
9304 chain must always be a base medium. Note that several differencing
9305 media may be linked to the same parent medium.
9306
9307 Differencing media can be distinguished from base media by querying the
9308 <link to="#parent"/> attribute: base media do not have parents they would
9309 depend on, so the value of this attribute is always @c null for them.
9310 Using this attribute, it is possible to walk up the medium tree (from the
9311 child medium to its parent). It is also possible to walk down the tree
9312 using the <link to="#children"/> attribute.
9313
9314 Note that the type of all differencing media is "Normal"; all other
9315 values are meaningless for them. Base media may be of any type.
9316
9317 <h3>Creating hard disks</h3>
9318
9319 New base hard disks are created using
9320 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
9321 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
9322 disks are usually implicitly created by VirtualBox when needed but may
9323 also be created explicitly using <link to="#createDiffStorage"/>.
9324
9325 After the hard disk is successfully created (including the storage unit)
9326 or opened, it becomes a known hard disk (remembered in the internal media
9327 registry). Known hard disks can be attached to a virtual machine, accessed
9328 through <link to="IVirtualBox::getHardDisk"/> and
9329 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
9330 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
9331
9332 The following methods, besides <link to="IMedium::close"/>,
9333 automatically remove the hard disk from the media registry:
9334 <ul>
9335 <li><link to="#deleteStorage"/></li>
9336 <li><link to="#mergeTo"/></li>
9337 </ul>
9338
9339 If the storage unit of the hard disk is a regular file in the host's
9340 file system then the rules stated in the description of the
9341 <link to="IMedium::location"/> attribute apply when setting its value. In
9342 addition, a plain file name without any path may be given, in which case
9343 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
9344 folder</link> will be prepended to it.
9345
9346 <h4>Automatic composition of the file name part</h4>
9347
9348 Another extension to the <link to="IMedium::location"/> attribute is that
9349 there is a possibility to cause VirtualBox to compose a unique value for
9350 the file name part of the location using the UUID of the hard disk. This
9351 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
9352 e.g. before the storage unit is created, and works as follows. You set the
9353 value of the <link to="IMedium::location"/> attribute to a location
9354 specification which only contains the path specification but not the file
9355 name part and ends with either a forward slash or a backslash character.
9356 In response, VirtualBox will generate a new UUID for the hard disk and
9357 compose the file name using the following pattern:
9358 <pre>
9359 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9360 </pre>
9361 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9362 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9363 is the default extension for the storage format of this hard disk. After
9364 that, you may call any of the methods that create a new hard disk storage
9365 unit and they will use the generated UUID and file name.
9366
9367 <h3>Attaching Hard Disks</h3>
9368
9369 Hard disks are attached to virtual machines using the
9370 <link to="IMachine::attachDevice"/> method and detached using the
9371 <link to="IMachine::detachDevice"/> method. Depending on their
9372 <link to="#type"/>, hard disks are attached either
9373 <i>directly</i> or <i>indirectly</i>.
9374
9375 When a hard disk is being attached directly, it is associated with the
9376 virtual machine and used for hard disk operations when the machine is
9377 running. When a hard disk is being attached indirectly, a new differencing
9378 hard disk linked to it is implicitly created and this differencing hard
9379 disk is associated with the machine and used for hard disk operations.
9380 This also means that if <link to="IMachine::attachDevice"/> performs
9381 a direct attachment then the same hard disk will be returned in response
9382 to the subsequent <link to="IMachine::getMedium"/> call; however if
9383 an indirect attachment is performed then
9384 <link to="IMachine::getMedium"/> will return the implicitly created
9385 differencing hard disk, not the original one passed to <link
9386 to="IMachine::attachDevice"/>. In detail:
9387
9388 <ul>
9389 <li><b>Normal base</b> hard disks that do not have children (i.e.
9390 differencing hard disks linked to them) and that are not already
9391 attached to virtual machines in snapshots are attached <b>directly</b>.
9392 Otherwise, they are attached <b>indirectly</b> because having
9393 dependent children or being part of the snapshot makes it impossible
9394 to modify hard disk contents without breaking the integrity of the
9395 dependent party. The <link to="#readOnly"/> attribute allows to
9396 quickly determine the kind of the attachment for the given hard
9397 disk. Note that if a normal base hard disk is to be indirectly
9398 attached to a virtual machine with snapshots then a special
9399 procedure called <i>smart attachment</i> is performed (see below).</li>
9400 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
9401 they are attached <b>directly</b> if they do not have children and are
9402 not attached to virtual machines in snapshots, and <b>indirectly</b>
9403 otherwise. Note that the smart attachment procedure is never performed
9404 for differencing hard disks.</li>
9405 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
9406 they are designed to be non-writable. If an immutable hard disk is
9407 attached to a virtual machine with snapshots then a special
9408 procedure called smart attachment is performed (see below).</li>
9409 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
9410 also as designed. This also means that writethrough hard disks cannot
9411 have other hard disks linked to them at all.</li>
9412 </ul>
9413
9414 Note that the same hard disk, regardless of its type, may be attached to
9415 more than one virtual machine at a time. In this case, the machine that is
9416 started first gains exclusive access to the hard disk and attempts to
9417 start other machines having this hard disk attached will fail until the
9418 first machine is powered down.
9419
9420 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9421 that the given hard disk remains associated with the given machine after a
9422 successful <link to="IMachine::detachDevice"/> call until
9423 <link to="IMachine::saveSettings"/> is called to save all changes to
9424 machine settings to disk. This deferring is necessary to guarantee that
9425 the hard disk configuration may be restored at any time by a call to
9426 <link to="IMachine::discardSettings"/> before the settings
9427 are saved (committed).
9428
9429 Note that if <link to="IMachine::discardSettings"/> is called after
9430 indirectly attaching some hard disks to the machine but before a call to
9431 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9432 all differencing hard disks implicitly created by
9433 <link to="IMachine::attachDevice"/> for these indirect attachments.
9434 Such implicitly created hard disks will also be immediately deleted when
9435 detached explicitly using the <link to="IMachine::detachDevice"/>
9436 call if it is made before <link to="IMachine::saveSettings"/>. This
9437 implicit deletion is safe because newly created differencing hard
9438 disks do not contain any user data.
9439
9440 However, keep in mind that detaching differencing hard disks that were
9441 implicitly created by <link to="IMachine::attachDevice"/>
9442 before the last <link to="IMachine::saveSettings"/> call will
9443 <b>not</b> implicitly delete them as they may already contain some data
9444 (for example, as a result of virtual machine execution). If these hard
9445 disks are no more necessary, the caller can always delete them explicitly
9446 using <link to="#deleteStorage"/> after they are actually de-associated
9447 from this machine by the <link to="IMachine::saveSettings"/> call.
9448
9449 <h3>Smart Attachment</h3>
9450
9451 When normal base or immutable hard disks are indirectly attached to a
9452 virtual machine then some additional steps are performed to make sure the
9453 virtual machine will have the most recent "view" of the hard disk being
9454 attached. These steps include walking through the machine's snapshots
9455 starting from the current one and going through ancestors up to the first
9456 snapshot. Hard disks attached to the virtual machine in all
9457 of the encountered snapshots are checked whether they are descendants of
9458 the given normal base or immutable hard disk. The first found child (which
9459 is the differencing hard disk) will be used instead of the normal base or
9460 immutable hard disk as a parent for creating a new differencing hard disk
9461 that will be actually attached to the machine. And only if no descendants
9462 are found or if the virtual machine does not have any snapshots then the
9463 normal base or immutable hard disk will be used itself as a parent for
9464 this differencing hard disk.
9465
9466 It is easier to explain what smart attachment does using the
9467 following example:
9468 <pre>
9469BEFORE attaching B.vdi: AFTER attaching B.vdi:
9470
9471Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9472 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9473 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9474 Snapshot 4 (none) Snapshot 4 (none)
9475 CurState (none) CurState (D3->D2.vdi)
9476
9477 NOT
9478 ...
9479 CurState (D3->B.vdi)
9480 </pre>
9481 The first column is the virtual machine configuration before the base hard
9482 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9483 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9484 mean that the hard disk that is actually attached to the machine is a
9485 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9486 another hard disk, <tt>B.vdi</tt>.
9487
9488 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9489 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9490 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9491 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9492 it cannot be attached directly and needs an indirect attachment (i.e.
9493 implicit creation of a new differencing hard disk). Due to the smart
9494 attachment procedure, the new differencing hard disk
9495 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9496 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9497 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9498 machine.
9499
9500 Note that if there is more than one descendant hard disk of the given base
9501 hard disk found in a snapshot, and there is an exact device, channel and
9502 bus match, then this exact match will be used. Otherwise, the youngest
9503 descendant will be picked up.
9504
9505 There is one more important aspect of the smart attachment procedure which
9506 is not related to snapshots at all. Before walking through the snapshots
9507 as described above, the backup copy of the current list of hard disk
9508 attachment is searched for descendants. This backup copy is created when
9509 the hard disk configuration is changed for the first time after the last
9510 <link to="IMachine::saveSettings"/> call and used by
9511 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9512 changes. When such a descendant is found in this backup copy, it will be
9513 simply re-attached back, without creating a new differencing hard disk for
9514 it. This optimization is necessary to make it possible to re-attach the
9515 base or immutable hard disk to a different bus, channel or device slot
9516 without losing the contents of the differencing hard disk actually
9517 attached to the machine in place of it.
9518 </desc>
9519
9520 <attribute name="id" type="uuid" mod="string" readonly="yes">
9521 <desc>
9522 UUID of the medium. For a newly created medium, this value is a randomly
9523 generated UUID.
9524
9525 <note>
9526 For media in one of MediumState_NotCreated, MediumState_Creating or
9527 MediumState_Deleting states, the value of this property is undefined
9528 and will most likely be an empty UUID.
9529 </note>
9530 </desc>
9531 </attribute>
9532
9533 <attribute name="description" type="wstring">
9534 <desc>
9535 Optional description of the medium. For a newly created medium the value
9536 of this attribute is an empty string.
9537
9538 Medium types that don't support this attribute will return E_NOTIMPL in
9539 attempt to get or set this attribute's value.
9540
9541 <note>
9542 For some storage types, reading this attribute may return an outdated
9543 (last known) value when <link to="#state"/> is <link
9544 to="MediumState_Inaccessible"/> or <link
9545 to="MediumState_LockedWrite"/> because the value of this attribute is
9546 stored within the storage unit itself. Also note that changing the
9547 attribute value is not possible in such case, as well as when the
9548 medium is the <link to="MediumState_LockedRead"/> state.
9549 </note>
9550 </desc>
9551 </attribute>
9552
9553 <attribute name="state" type="MediumState" readonly="yes">
9554 <desc>
9555 Returns the current medium state, which is the last state set by
9556 the accessibility check performed by <link to="#refreshState"/>.
9557 If that method has not yet been called on the medium, the state
9558 is "Inaccessible"; as opposed to truly inaccessible media, the
9559 value of <link to="#lastAccessError"/> will be an empty string in
9560 that case.
9561
9562 <note>As of version 3.1, this no longer performs an accessibility check
9563 automatically; call <link to="#refreshState"/> for that.
9564 </note>
9565 </desc>
9566 </attribute>
9567
9568 <attribute name="location" type="wstring">
9569 <desc>
9570 Location of the storage unit holding medium data.
9571
9572 The format of the location string is medium type specific. For medium
9573 types using regular files in a host's file system, the location
9574 string is the full file name.
9575
9576 Some medium types may support changing the storage unit location by
9577 simply changing the value of this property. If this operation is not
9578 supported, the implementation will return E_NOTIMPL in attempt to set
9579 this attribute's value.
9580
9581 When setting a value of the location attribute which is a regular file
9582 in the host's file system, the given file name may be either relative to
9583 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
9584 absolute. Note that if the given location specification does not contain
9585 the file extension part then a proper default extension will be
9586 automatically appended by the implementation depending on the medium type.
9587 </desc>
9588 </attribute>
9589
9590 <attribute name="name" type="wstring" readonly="yes">
9591 <desc>
9592 Name of the storage unit holding medium data.
9593
9594 The returned string is a short version of the <link to="#location"/>
9595 attribute that is suitable for representing the medium in situations
9596 where the full location specification is too long (such as lists
9597 and comboboxes in GUI frontends). This string is also used by frontends
9598 to sort the media list alphabetically when needed.
9599
9600 For example, for locations that are regular files in the host's file
9601 system, the value of this attribute is just the file name (+ extension),
9602 without the path specification.
9603
9604 Note that as opposed to the <link to="#location"/> attribute, the name
9605 attribute will not necessary be unique for a list of media of the
9606 given type and format.
9607 </desc>
9608 </attribute>
9609
9610 <attribute name="deviceType" type="DeviceType" readonly="yes">
9611 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
9612 medium.</desc>
9613 </attribute>
9614
9615 <attribute name="hostDrive" type="boolean" readonly="yes">
9616 <desc>True if this corresponds to a drive on the host.</desc>
9617 </attribute>
9618
9619 <attribute name="size" type="unsigned long long" readonly="yes">
9620 <desc>
9621 Physical size of the storage unit used to hold medium data (in bytes).
9622
9623 <note>
9624 For media whose <link to="#state"/> is <link
9625 to="MediumState_Inaccessible"/>, the value of this property is the
9626 last known size. For <link to="MediumState_NotCreated"/> media,
9627 the returned value is zero.
9628 </note>
9629 </desc>
9630 </attribute>
9631
9632 <attribute name="format" type="wstring" readonly="yes">
9633 <desc>
9634 Storage format of this medium.
9635
9636 The value of this attribute is a string that specifies a backend used
9637 to store medium data. The storage format is defined when you create a
9638 new medium or automatically detected when you open an existing medium,
9639 and cannot be changed later.
9640
9641 The list of all storage formats supported by this VirtualBox
9642 installation can be obtained using
9643 <link to="ISystemProperties::mediumFormats"/>.
9644 </desc>
9645 </attribute>
9646
9647 <attribute name="type" type="MediumType">
9648 <desc>
9649 Type (role) of this medium.
9650
9651 The following constraints apply when changing the value of this
9652 attribute:
9653 <ul>
9654 <li>If a medium is attached to a virtual machine (either in the
9655 current state or in one of the snapshots), its type cannot be
9656 changed.
9657 </li>
9658 <li>As long as the medium has children, its type cannot be set
9659 to <link to="MediumType_Writethrough"/>.
9660 </li>
9661 <li>The type of all differencing media is
9662 <link to="MediumType_Normal"/> and cannot be changed.
9663 </li>
9664 </ul>
9665
9666 The type of a newly created or opened medium is set to
9667 <link to="MediumType_Normal"/>, except for DVD and floppy media,
9668 which have a type of <link to="MediumType_Writethrough"/>.
9669 </desc>
9670 </attribute>
9671
9672 <attribute name="parent" type="IMedium" readonly="yes">
9673 <desc>
9674 Parent of this medium (the medium this medium is directly based
9675 on).
9676
9677 Only differencing media have parents. For base (non-differencing)
9678 media, @c null is returned.
9679 </desc>
9680 </attribute>
9681
9682 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
9683 <desc>
9684 Children of this medium (all differencing media directly based
9685 on this medium). A @c null array is returned if this medium
9686 does not have any children.
9687 </desc>
9688 </attribute>
9689
9690 <attribute name="base" type="IMedium" readonly="yes">
9691 <desc>
9692 Base medium of this medium.
9693
9694 If this is a differencing medium, its base medium is the medium
9695 the given medium branch starts from. For all other types of media, this
9696 property returns the medium object itself (i.e. the same object this
9697 property is read on).
9698 </desc>
9699 </attribute>
9700
9701 <attribute name="readOnly" type="boolean" readonly="yes">
9702 <desc>
9703 Returns @c true if this medium is read-only and @c false otherwise.
9704
9705 A medium is considered to be read-only when its contents cannot be
9706 modified without breaking the integrity of other parties that depend on
9707 this medium such as its child media or snapshots of virtual machines
9708 where this medium is attached to these machines. If there are no
9709 children and no such snapshots then there is no dependency and the
9710 medium is not read-only.
9711
9712 The value of this attribute can be used to determine the kind of the
9713 attachment that will take place when attaching this medium to a
9714 virtual machine. If the value is @c false then the medium will
9715 be attached directly. If the value is @c true then the medium
9716 will be attached indirectly by creating a new differencing child
9717 medium for that. See the interface description for more information.
9718
9719 Note that all <link to="MediumType_Immutable">Immutable</link> media
9720 are always read-only while all
9721 <link to="MediumType_Writethrough">Writethrough</link> media are
9722 always not.
9723
9724 <note>
9725 The read-only condition represented by this attribute is related to
9726 the medium type and usage, not to the current
9727 <link to="IMedium::state">medium state</link> and not to the read-only
9728 state of the storage unit.
9729 </note>
9730 </desc>
9731 </attribute>
9732
9733 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9734 <desc>
9735 Logical size of this medium (in megabytes), as reported to the
9736 guest OS running inside the virtual machine this medium is
9737 attached to. The logical size is defined when the medium is created
9738 and cannot be changed later.
9739
9740 <note>
9741 Reading this property on a differencing medium will return the size
9742 of its <link to="#base"/> medium.
9743 </note>
9744 <note>
9745 For media whose state is <link to="#state"/> is <link
9746 to="MediumState_Inaccessible"/>, the value of this property is the
9747 last known logical size. For <link to="MediumaState_NotCreated"/>
9748 media, the returned value is zero.
9749 </note>
9750 </desc>
9751 </attribute>
9752
9753 <attribute name="autoReset" type="boolean">
9754 <desc>
9755 Whether this differencing medium will be automatically reset each
9756 time a virtual machine it is attached to is powered up. This
9757 attribute is automatically set to @c true for the last
9758 differencing image of an "immutable" medium (see
9759 <link to="MediumType" />).
9760
9761 See <link to="#reset"/> for more information about resetting
9762 differencing media.
9763
9764 <note>
9765 Reading this property on a base (non-differencing) medium will
9766 always @c false. Changing the value of this property in this
9767 case is not supported.
9768 </note>
9769
9770 <result name="VBOX_E_NOT_SUPPORTED">
9771 This is not a differencing medium (when changing the attribute
9772 value).
9773 </result>
9774 </desc>
9775 </attribute>
9776
9777 <attribute name="lastAccessError" type="wstring" readonly="yes">
9778 <desc>
9779 Text message that represents the result of the last accessibility
9780 check performed by <link to="#refreshState"/>.
9781
9782 An empty string is returned if the last accessibility check
9783 was successful or has not yet been called. As a result, if
9784 <link to="#state" /> is "Inaccessible" and this attribute is empty,
9785 then <link to="#refreshState"/> has yet to be called; this is the
9786 default value of media after VirtualBox initialization.
9787 A non-empty string indicates a failure and should normally describe
9788 a reason of the failure (for example, a file read error).
9789 </desc>
9790 </attribute>
9791
9792 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
9793 <desc>
9794 Array of UUIDs of all machines this medium is attached to.
9795
9796 A @c null array is returned if this medium is not attached to any
9797 machine or to any machine's snapshot.
9798
9799 <note>
9800 The returned array will include a machine even if this medium is not
9801 attached to that machine in the current state but attached to it in
9802 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
9803 details.
9804 </note>
9805 </desc>
9806 </attribute>
9807
9808 <method name="refreshState">
9809 <desc>
9810 If the current medium state (see <link to="MediumState"/>) is one of
9811 "Created", "Inaccessible" or "LockedRead", then this performs an
9812 accessibility check on the medium and sets the value of the <link to="#state"/>
9813 attribute accordingly; that value is also returned for convenience.
9814
9815 For all other state values, this does not perform a refresh but returns
9816 the state only.
9817
9818 The refresh, if performed, may take a long time (several seconds or even
9819 minutes, depending on the storage unit location and format) because it performs an
9820 accessibility check of the storage unit. This check may cause a significant
9821 delay if the storage unit of the given medium is, for example, a file located
9822 on a network share which is not currently accessible due to connectivity
9823 problems. In that case, the call will not return until a timeout
9824 interval defined by the host OS for this operation expires. For this reason,
9825 it is recommended to never read this attribute on the main UI thread to avoid
9826 making the UI unresponsive.
9827
9828 If the last known state of the medium is "Created" and the accessibility
9829 check fails, then the state would be set to "Inaccessible", and
9830 <link to="#lastAccessError"/> may be used to get more details about the
9831 failure. If the state of the medium is "LockedRead", then it remains the
9832 same, and a non-empty value of <link to="#lastAccessError"/> will
9833 indicate a failed accessibility check in this case.
9834
9835 Note that not all medium states are applicable to all medium types.
9836 </desc>
9837 <param name="state" type="MediumState" dir="return">
9838 <desc>
9839 New medium state.
9840 </desc>
9841 </param>
9842 </method>
9843
9844 <method name="getSnapshotIds">
9845 <desc>
9846 Returns an array of UUIDs of all snapshots of the given machine where
9847 this medium is attached to.
9848
9849 If the medium is attached to the machine in the current state, then the
9850 first element in the array will always be the ID of the queried machine
9851 (i.e. the value equal to the @c machineId argument), followed by
9852 snapshot IDs (if any).
9853
9854 If the medium is not attached to the machine in the current state, then
9855 the array will contain only snapshot IDs.
9856
9857 The returned array may be @c null if this medium is not attached
9858 to the given machine at all, neither in the current state nor in one of
9859 the snapshots.
9860 </desc>
9861 <param name="machineId" type="uuid" mod="string" dir="in">
9862 <desc>
9863 UUID of the machine to query.
9864 </desc>
9865 </param>
9866 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
9867 <desc>
9868 Array of snapshot UUIDs of the given machine using this medium.
9869 </desc>
9870 </param>
9871 </method>
9872
9873 <method name="lockRead">
9874 <desc>
9875 Locks this medium for reading.
9876
9877 A read lock is shared: many clients can simultaneously lock the
9878 same medium for reading unless it is already locked for writing (see
9879 <link to="#lockWrite"/>) in which case an error is returned.
9880
9881 When the medium is locked for reading, it cannot be modified
9882 from within VirtualBox. This means that any method that changes
9883 the properties of this medium or contents of the storage unit
9884 will return an error (unless explicitly stated otherwise). That
9885 includes an attempt to start a virtual machine that wants to
9886 write to the the medium.
9887
9888 When the virtual machine is started up, it locks for reading all
9889 media it uses in read-only mode. If some medium cannot be locked
9890 for reading, the startup procedure will fail.
9891 A medium is typically locked for reading while it is used by a running
9892 virtual machine but has a depending differencing image that receives
9893 the actual write operations. This way one base medium can have
9894 multiple child differencing images which can be written to
9895 simultaneously. Read-only media such as DVD and floppy images are
9896 also locked for reading only (so they can be in use by multiple
9897 machines simultaneously).
9898
9899 A medium is also locked for reading when it is the source of a
9900 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9901
9902 The medium locked for reading must be unlocked using the <link
9903 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
9904 can be nested and must be followed by the same number of paired
9905 <link to="#unlockRead"/> calls.
9906
9907 This method sets the medium state (see <link to="#state"/>) to
9908 "LockedRead" on success. The medium's previous state must be
9909 one of "Created", "Inaccessible" or "LockedRead".
9910
9911 Locking an inaccessible medium is not an error; this method performs
9912 a logical lock that prevents modifications of this medium through
9913 the VirtualBox API, not a physical file-system lock of the underlying
9914 storage unit.
9915
9916 This method returns the current state of the medium
9917 <i>before</i> the operation.
9918
9919 <result name="VBOX_E_INVALID_OBJECT_STATE">
9920 Invalid medium state (e.g. not created, locked, inaccessible,
9921 creating, deleting).
9922 </result>
9923
9924 </desc>
9925 <param name="state" type="MediumState" dir="return">
9926 <desc>
9927 State of the medium after the operation.
9928 </desc>
9929 </param>
9930 </method>
9931
9932 <method name="unlockRead">
9933 <desc>
9934 Cancels the read lock previously set by <link to="#lockRead"/>.
9935
9936 For both success and failure, this method returns the current state
9937 of the medium <i>after</i> the operation.
9938
9939 See <link to="#lockRead"/> for more details.
9940
9941 <result name="VBOX_E_INVALID_OBJECT_STATE">
9942 Medium not locked for reading.
9943 </result>
9944
9945 </desc>
9946 <param name="state" type="MediumState" dir="return">
9947 <desc>
9948 State of the medium after the operation.
9949 </desc>
9950 </param>
9951 </method>
9952
9953 <method name="lockWrite">
9954 <desc>
9955 Locks this medium for writing.
9956
9957 A write lock, as opposed to <link to="#lockRead"/>, is
9958 exclusive: there may be only one client holding a write lock,
9959 and there may be no read locks while the write lock is held.
9960 As a result, read-locking fails if a write lock is held, and
9961 write-locking fails if either a read or another write lock is held.
9962
9963 When a medium is locked for writing, it cannot be modified
9964 from within VirtualBox, and it is not guaranteed that the values
9965 of its properties are up-to-date. Any method that changes the
9966 properties of this medium or contents of the storage unit will
9967 return an error (unless explicitly stated otherwise).
9968
9969 When a virtual machine is started up, it locks for writing all
9970 media it uses to write data to. If any medium could not be locked
9971 for writing, the startup procedure will fail. If a medium has
9972 differencing images, then while the machine is running, only
9973 the last ("leaf") differencing image is locked for writing,
9974 whereas its parents are locked for reading only.
9975
9976 A medium is also locked for writing when it is the target of a
9977 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9978
9979 The medium locked for writing must be unlocked using the <link
9980 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
9981
9982 This method sets the medium state (see <link to="#state"/>) to
9983 "LockedWrite" on success. The medium's previous state must be
9984 either "Created" or "Inaccessible".
9985
9986 Locking an inaccessible medium is not an error; this method performs
9987 a logical lock that prevents modifications of this medium through
9988 the VirtualBox API, not a physical file-system lock of the underlying
9989 storage unit.
9990
9991 For both, success and failure, this method returns the current
9992 state of the medium <i>before</i> the operation.
9993
9994 <result name="VBOX_E_INVALID_OBJECT_STATE">
9995 Invalid medium state (e.g. not created, locked, inaccessible,
9996 creating, deleting).
9997 </result>
9998
9999 </desc>
10000 <param name="state" type="MediumState" dir="return">
10001 <desc>
10002 State of the medium after the operation.
10003 </desc>
10004 </param>
10005 </method>
10006
10007 <method name="unlockWrite">
10008 <desc>
10009 Cancels the write lock previously set by <link to="#lockWrite"/>.
10010
10011 For both success and failure, this method returns the current
10012 state of the medium <i>after</i> the operation.
10013
10014 See <link to="#lockWrite"/> for more details.
10015
10016 <result name="VBOX_E_INVALID_OBJECT_STATE">
10017 Medium not locked for writing.
10018 </result>
10019
10020 </desc>
10021 <param name="state" type="MediumState" dir="return">
10022 <desc>
10023 State of the medium after the operation.
10024 </desc>
10025 </param>
10026 </method>
10027
10028 <method name="close">
10029 <desc>
10030 Closes this medium.
10031
10032 The medium must not be attached to any known virtual machine
10033 and must not have any known child media, otherwise the
10034 operation will fail.
10035
10036 When the medium is successfully closed, it gets removed from
10037 the list of remembered media, but its storage unit is not
10038 deleted. In particular, this means that this medium can be
10039 later opened again using the <link
10040 to="IVirtualBox::openHardDisk"/> call.
10041
10042 Note that after this method successfully returns, the given medium
10043 object becomes uninitialized. This means that any attempt
10044 to call any of its methods or attributes will fail with the
10045 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
10046
10047 <result name="VBOX_E_INVALID_OBJECT_STATE">
10048 Invalid medium state (other than not created, created or
10049 inaccessible).
10050 </result>
10051 <result name="VBOX_E_OBJECT_IN_USE">
10052 Medium attached to virtual machine.
10053 </result>
10054 <result name="VBOX_E_FILE_ERROR">
10055 Settings file not accessible.
10056 </result>
10057 <result name="VBOX_E_XML_ERROR">
10058 Could not parse the settings file.
10059 </result>
10060
10061 </desc>
10062 </method>
10063
10064 <!-- storage methods -->
10065
10066 <method name="getProperty">
10067 <desc>
10068 Returns the value of the custom medium property with the given name.
10069
10070 The list of all properties supported by the given medium format can
10071 be obtained with <link to="IMediumFormat::describeProperties"/>.
10072
10073 Note that if this method returns an empty string in @a value, the
10074 requested property is supported but currently not assigned any value.
10075
10076 <result name="VBOX_E_OBJECT_NOT_FOUND">
10077 Requested property does not exist (not supported by the format).
10078 </result>
10079 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10080 </desc>
10081 <param name="name" type="wstring" dir="in">
10082 <desc>Name of the property to get.</desc>
10083 </param>
10084 <param name="value" type="wstring" dir="return">
10085 <desc>Current property value.</desc>
10086 </param>
10087 </method>
10088
10089 <method name="setProperty">
10090 <desc>
10091 Sets the value of the custom medium property with the given name.
10092
10093 The list of all properties supported by the given medium format can
10094 be obtained with <link to="IMediumFormat::describeProperties"/>.
10095
10096 Note that setting the property value to @c null or an empty string is
10097 equivalent to deleting the existing value. A default value (if it is
10098 defined for this property) will be used by the format backend in this
10099 case.
10100
10101 <result name="VBOX_E_OBJECT_NOT_FOUND">
10102 Requested property does not exist (not supported by the format).
10103 </result>
10104 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10105 </desc>
10106 <param name="name" type="wstring" dir="in">
10107 <desc>Name of the property to set.</desc>
10108 </param>
10109 <param name="value" type="wstring" dir="in">
10110 <desc>Property value to set.</desc>
10111 </param>
10112 </method>
10113
10114 <method name="getProperties">
10115 <desc>
10116 Returns values for a group of properties in one call.
10117
10118 The names of the properties to get are specified using the @a names
10119 argument which is a list of comma-separated property names or
10120 an empty string if all properties are to be returned. Note that currently
10121 the value of this argument is ignored and the method always returns all
10122 existing properties.
10123
10124 The list of all properties supported by the given medium format can
10125 be obtained with <link to="IMediumFormat::describeProperties"/>.
10126
10127 The method returns two arrays, the array of property names corresponding
10128 to the @a names argument and the current values of these properties.
10129 Both arrays have the same number of elements with each elemend at the
10130 given index in the first array corresponds to an element at the same
10131 index in the second array.
10132
10133 Note that for properties that do not have assigned values,
10134 an empty string is returned at the appropriate index in the
10135 @a returnValues array.
10136
10137 </desc>
10138 <param name="names" type="wstring" dir="in">
10139 <desc>
10140 Names of properties to get.
10141 </desc>
10142 </param>
10143 <param name="returnNames" type="wstring" safearray="yes" dir="out">
10144 <desc>Names of returned properties.</desc>
10145 </param>
10146 <param name="returnValues" type="wstring" safearray="yes" dir="return">
10147 <desc>Values of returned properties.</desc>
10148 </param>
10149 </method>
10150
10151 <method name="setProperties">
10152 <desc>
10153 Sets values for a group of properties in one call.
10154
10155 The names of the properties to set are passed in the @a names
10156 array along with the new values for them in the @a values array. Both
10157 arrays have the same number of elements with each elemend at the given
10158 index in the first array corresponding to an element at the same index
10159 in the second array.
10160
10161 If there is at least one property name in @a names that is not valid,
10162 the method will fail before changing the values of any other properties
10163 from the @a names array.
10164
10165 Using this method over <link to="#setProperty"/> is preferred if you
10166 need to set several properties at once since it will result into less
10167 IPC calls.
10168
10169 The list of all properties supported by the given medium format can
10170 be obtained with <link to="IMediumFormat::describeProperties"/>.
10171
10172 Note that setting the property value to @c null or an empty string is
10173 equivalent to deleting the existing value. A default value (if it is
10174 defined for this property) will be used by the format backend in this
10175 case.
10176 </desc>
10177 <param name="names" type="wstring" safearray="yes" dir="in">
10178 <desc>Names of properties to set.</desc>
10179 </param>
10180 <param name="values" type="wstring" safearray="yes" dir="in">
10181 <desc>Values of properties to set.</desc>
10182 </param>
10183 </method>
10184
10185 <!-- storage methods -->
10186
10187 <method name="createBaseStorage">
10188 <desc>
10189 Starts creating a hard disk storage unit (fixed/dynamic, according
10190 to the variant flags) in in the background. The previous storage unit
10191 created for this object, if any, must first be deleted using
10192 <link to="#deleteStorage"/>, otherwise the operation will fail.
10193
10194 Before the operation starts, the medium is placed in
10195 <link to="MediumState_Creating"/> state. If the create operation
10196 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
10197 state.
10198
10199 After the returned progress object reports that the operation has
10200 successfully completed, the medium state will be set to <link
10201 to="MediumState_Created"/>, the medium will be remembered by this
10202 VirtualBox installation and may be attached to virtual machines.
10203
10204 <result name="VBOX_E_NOT_SUPPORTED">
10205 The variant of storage creation operation is not supported. See <link
10206 to="IMediumFormat::capabilities"/>.
10207 </result>
10208 </desc>
10209 <param name="logicalSize" type="unsigned long long" dir="in">
10210 <desc>Maximum logical size of the medium in megabytes.</desc>
10211 </param>
10212 <param name="variant" type="MediumVariant" dir="in">
10213 <desc>Exact image variant which should be created.</desc>
10214 </param>
10215 <param name="progress" type="IProgress" dir="return">
10216 <desc>Progress object to track the operation completion.</desc>
10217 </param>
10218 </method>
10219
10220 <method name="deleteStorage">
10221 <desc>
10222 Starts deleting the storage unit of this medium.
10223
10224 The medium must not be attached to any known virtual machine and must
10225 not have any known child media, otherwise the operation will fail.
10226 It will also fail if there is no storage unit to delete or if deletion
10227 is already in progress, or if the medium is being in use (locked for
10228 read or for write) or inaccessible. Therefore, the only valid state for
10229 this operation to succeed is <link to="MediumState_Created"/>.
10230
10231 Before the operation starts, the medium is placed in
10232 <link to="MediumState_Deleting"/> state and gets removed from the list
10233 of remembered hard disks (media registry). If the delete operation
10234 fails, the medium will be remembered again and placed back to
10235 <link to="MediumState_Created"/> state.
10236
10237 After the returned progress object reports that the operation is
10238 complete, the medium state will be set to
10239 <link to="MediumState_NotCreated"/> and you will be able to use one of
10240 the storage creation methods to create it again.
10241
10242 <see>#close()</see>
10243
10244 <result name="VBOX_E_OBJECT_IN_USE">
10245 Medium is attached to a virtual machine.
10246 </result>
10247 <result name="VBOX_E_NOT_SUPPORTED">
10248 Storage deletion is not allowed because neither of storage creation
10249 operations are supported. See
10250 <link to="IMediumFormat::capabilities"/>.
10251 </result>
10252
10253 <note>
10254 If the deletion operation fails, it is not guaranteed that the storage
10255 unit still exists. You may check the <link to="IMedium::state"/> value
10256 to answer this question.
10257 </note>
10258 </desc>
10259 <param name="progress" type="IProgress" dir="return">
10260 <desc>Progress object to track the operation completion.</desc>
10261 </param>
10262 </method>
10263
10264 <!-- diff methods -->
10265
10266 <method name="createDiffStorage">
10267 <desc>
10268 Starts creating an empty differencing storage unit based on this
10269 medium in the format and at the location defined by the @a target
10270 argument.
10271
10272 The target medium must be in <link to="MediumState_NotCreated"/>
10273 state (i.e. must not have an existing storage unit). Upon successful
10274 completion, this operation will set the type of the target medium to
10275 <link to="MediumType_Normal"/> and create a storage unit necessary to
10276 represent the differencing medium data in the given format (according
10277 to the storage format of the target object).
10278
10279 After the returned progress object reports that the operation is
10280 successfully complete, the target medium gets remembered by this
10281 VirtualBox installation and may be attached to virtual machines.
10282
10283 <note>
10284 The medium will be set to <link to="MediumState_LockedRead"/>
10285 state for the duration of this operation.
10286 </note>
10287 <result name="VBOX_E_OBJECT_IN_USE">
10288 Medium not in @c NotCreated state.
10289 </result>
10290 </desc>
10291 <param name="target" type="IMedium" dir="in">
10292 <desc>Target medium.</desc>
10293 </param>
10294 <param name="variant" type="MediumVariant" dir="in">
10295 <desc>Exact image variant which should be created.</desc>
10296 </param>
10297 <param name="progress" type="IProgress" dir="return">
10298 <desc>Progress object to track the operation completion.</desc>
10299 </param>
10300 </method>
10301
10302 <method name="mergeTo">
10303 <desc>
10304 Starts merging the contents of this medium and all intermediate
10305 differencing media in the chain to the given target medium.
10306
10307 The target medium must be either a descendant of this medium or
10308 its ancestor (otherwise this method will immediately return a failure).
10309 It follows that there are two logical directions of the merge operation:
10310 from ancestor to descendant (<i>forward merge</i>) and from descendant to
10311 ancestor (<i>backward merge</i>). Let us consider the following medium
10312 chain:
10313
10314 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
10315
10316 Here, calling this method on the <tt>Base</tt> medium object with
10317 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
10318 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
10319 merge. Note that in both cases the contents of the resulting medium
10320 will be the same, the only difference is the medium object that takes
10321 the result of the merge operation. In case of the forward merge in the
10322 above example, the result will be written to <tt>Diff_2</tt>; in case of
10323 the backward merge, the result will be written to <tt>Base</tt>. In
10324 other words, the result of the operation is always stored in the target
10325 medium.
10326
10327 Upon successful operation completion, the storage units of all media in
10328 the chain between this (source) medium and the target medium, including
10329 the source medium itself, will be automatically deleted and the
10330 relevant medium objects (including this medium) will become
10331 uninitialized. This means that any attempt to call any of
10332 their methods or attributes will fail with the
10333 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
10334 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
10335 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
10336 Note that <tt>Diff_2</tt> in this case will become a base medium
10337 itself since it will no longer be based on any other medium.
10338
10339 Considering the above, all of the following conditions must be met in
10340 order for the merge operation to succeed:
10341 <ul>
10342 <li>
10343 Neither this (source) medium nor any intermediate
10344 differencing medium in the chain between it and the target
10345 medium is attached to any virtual machine.
10346 </li>
10347 <li>
10348 Neither the source medium nor the target medium is an
10349 <link to="MediumType_Immutable"/> medium.
10350 </li>
10351 <li>
10352 The part of the medium tree from the source medium to the
10353 target medium is a linear chain, i.e. all medium in this
10354 chain have exactly one child which is the next medium in this
10355 chain. The only exception from this rule is the target medium in
10356 the forward merge operation; it is allowed to have any number of
10357 child media because the merge operation will not change its
10358 logical contents (as it is seen by the guest OS or by children).
10359 </li>
10360 <li>
10361 None of the involved media are in
10362 <link to="MediumState_LockedRead"/> or
10363 <link to="MediumState_LockedWrite"/> state.
10364 </li>
10365 </ul>
10366
10367 <note>
10368 This (source) medium and all intermediates will be placed to <link
10369 to="MediumState_Deleting"/> state and the target medium will be
10370 placed to <link to="MediumState_LockedWrite"/> state and for the
10371 duration of this operation.
10372 </note>
10373 </desc>
10374 <param name="target" type="IMedium" dir="in">
10375 <desc>Target medium.</desc>
10376 </param>
10377 <param name="progress" type="IProgress" dir="return">
10378 <desc>Progress object to track the operation completion.</desc>
10379 </param>
10380 </method>
10381
10382 <!-- clone method -->
10383
10384 <method name="cloneTo">
10385 <desc>
10386 Starts creating a clone of this medium in the format and at the
10387 location defined by the @a target argument.
10388
10389 The target medium must be either in <link to="MediumState_NotCreated"/>
10390 state (i.e. must not have an existing storage unit) or in
10391 <link to="MediumState_Created"/> state (i.e. created and not locked, and
10392 big enough to hold the data or else the copy will be partial). Upon
10393 successful completion, the cloned medium will contain exactly the
10394 same sector data as the medium being cloned, except that in the
10395 first case a new UUID for the clone will be randomly generated, and in
10396 the second case the UUID will remain unchanged.
10397
10398 The @a parent argument defines which medium will be the parent
10399 of the clone. Passing a @c null reference indicates that the clone will
10400 be a base image, i.e. completely independent. It is possible to specify
10401 an arbitrary medium for this parameter, including the parent of the
10402 medium which is being cloned. Even cloning to a child of the source
10403 medium is possible. Note that when cloning to an existing image, the
10404 @a parent irgument is ignored.
10405
10406 After the returned progress object reports that the operation is
10407 successfully complete, the target medium gets remembered by this
10408 VirtualBox installation and may be attached to virtual machines.
10409
10410 <note>
10411 This medium will be placed to <link to="MediumState_LockedRead"/>
10412 state for the duration of this operation.
10413 </note>
10414 <result name="E_NOTIMPL">
10415 The specified cloning variant is not supported at the moment.
10416 </result>
10417 </desc>
10418 <param name="target" type="IMedium" dir="in">
10419 <desc>Target medium.</desc>
10420 </param>
10421 <param name="variant" type="MediumVariant" dir="in">
10422 <desc>Exact image variant which should be created.</desc>
10423 </param>
10424 <param name="parent" type="IMedium" dir="in">
10425 <desc>Parent of the cloned medium.</desc>
10426 </param>
10427 <param name="progress" type="IProgress" dir="return">
10428 <desc>Progress object to track the operation completion.</desc>
10429 </param>
10430 </method>
10431
10432 <!-- other methods -->
10433
10434 <method name="compact">
10435 <desc>
10436 Starts compacting of this medium. This means that the medium is
10437 transformed into a possibly more compact storage representation.
10438 This potentially creates temporary images, which can require a
10439 substantial amount of additional disk space.
10440
10441 This medium will be placed to <link to="MediumState_LockedWrite"/>
10442 state and all its parent media (if any) will be placed to
10443 <link to="MediumState_LockedRead"/> state for the duration of this
10444 operation.
10445
10446 Please note that the results can be either returned straight away,
10447 or later as the result of the background operation via the object
10448 returned via the @a progress parameter.
10449
10450 <result name="VBOX_E_NOT_SUPPORTED">
10451 Medium format does not support compacting (but potentially
10452 needs it).
10453 </result>
10454 </desc>
10455 <param name="progress" type="IProgress" dir="return">
10456 <desc>Progress object to track the operation completion.</desc>
10457 </param>
10458 </method>
10459
10460 <method name="resize">
10461 <desc>
10462 Starts resizing this medium. This means that the nominal size of the
10463 medium is set to the new value. Both increasing and decreasing the
10464 size is possible, and there are no safety checks, since VirtualBox
10465 does not make any assumptions about the medium contents.
10466
10467 Resizing usually needs additional disk space, and possibly also
10468 some temporary disk space. Note that resize does not create a full
10469 temporary copy of the medium, so the additional disk space requirement
10470 is usually much lower than using the clone operation.
10471
10472 This medium will be placed to <link to="MediumState_LockedWrite"/>
10473 state for the duration of this operation.
10474
10475 Please note that the results can be either returned straight away,
10476 or later as the result of the background operation via the object
10477 returned via the @a progress parameter.
10478
10479 <result name="VBOX_E_NOT_SUPPORTED">
10480 Medium format does not support resizing.
10481 </result>
10482 </desc>
10483 <param name="logicalSize" type="unsigned long long" dir="in">
10484 <desc>New nominal capacity of the medium in megabytes.</desc>
10485 </param>
10486 <param name="progress" type="IProgress" dir="return">
10487 <desc>Progress object to track the operation completion.</desc>
10488 </param>
10489 </method>
10490
10491 <method name="reset">
10492 <desc>
10493 Starts erasing the contents of this differencing medium.
10494
10495 This operation will reset the differencing medium to its initial
10496 state when it does not contain any sector data and any read operation is
10497 redirected to its parent medium. This automatically gets called
10498 during VM power-up for every medium whose <link to="#autoReset" />
10499 attribute is @c true.
10500
10501 The medium will be write-locked for the duration of this operation (see
10502 <link to="#lockWrite" />).
10503
10504 <result name="VBOX_E_NOT_SUPPORTED">
10505 This is not a differencing medium.
10506 </result>
10507 <result name="VBOX_E_INVALID_OBJECT_STATE">
10508 Medium is not in <link to="MediumState_Created"/> or
10509 <link to="MediumState_Inaccessible"/> state.
10510 </result>
10511 </desc>
10512 <param name="progress" type="IProgress" dir="return">
10513 <desc>Progress object to track the operation completion.</desc>
10514 </param>
10515 </method>
10516
10517 </interface>
10518
10519
10520 <!--
10521 // IMediumFormat
10522 /////////////////////////////////////////////////////////////////////////
10523 -->
10524
10525 <enum
10526 name="DataType"
10527 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
10528 >
10529 <const name="Int32" value="0"/>
10530 <const name="Int8" value="1"/>
10531 <const name="String" value="2"/>
10532 </enum>
10533
10534 <enum
10535 name="DataFlags"
10536 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
10537 >
10538 <const name="None" value="0x00"/>
10539 <const name="Mandatory" value="0x01"/>
10540 <const name="Expert" value="0x02"/>
10541 <const name="Array" value="0x04"/>
10542 <const name="FlagMask" value="0x07"/>
10543 </enum>
10544
10545 <enum
10546 name="MediumFormatCapabilities"
10547 uuid="70fcf810-99e8-4edc-aee4-7f51d489e657"
10548 >
10549 <desc>
10550 Medium format capability flags.
10551 </desc>
10552
10553 <const name="Uuid" value="0x01">
10554 <desc>
10555 Supports UUIDs as expected by VirtualBox code.
10556 </desc>
10557 </const>
10558
10559 <const name="CreateFixed" value="0x02">
10560 <desc>
10561 Supports creating fixed size images, allocating all space instantly.
10562 </desc>
10563 </const>
10564
10565 <const name="CreateDynamic" value="0x04">
10566 <desc>
10567 Supports creating dynamically growing images, allocating space on
10568 demand.
10569 </desc>
10570 </const>
10571
10572 <const name="CreateSplit2G" value="0x08">
10573 <desc>
10574 Supports creating images split in chunks of a bit less than 2 GBytes.
10575 </desc>
10576 </const>
10577
10578 <const name="Differencing" value="0x10">
10579 <desc>
10580 Supports being used as a format for differencing media (see <link
10581 to="IMedium::createDiffStorage"/>).
10582 </desc>
10583 </const>
10584
10585 <const name="Asynchronous" value="0x20">
10586 <desc>
10587 Supports asynchronous I/O operations for at least some configurations.
10588 </desc>
10589 </const>
10590
10591 <const name="File" value="0x40">
10592 <desc>
10593 The format backend operates on files (the <link to="IMedium::location"/>
10594 attribute of the medium specifies a file used to store medium
10595 data; for a list of supported file extensions see
10596 <link to="IMediumFormat::fileExtensions"/>).
10597 </desc>
10598 </const>
10599
10600 <const name="Properties" value="0x80">
10601 <desc>
10602 The format backend uses the property interface to configure the storage
10603 location and properties (the <link to="IMediumFormat::describeProperties"/>
10604 method is used to get access to properties supported by the given medium format).
10605 </desc>
10606 </const>
10607
10608 <const name="CapabilityMask" value="0xFF"/>
10609 </enum>
10610
10611 <interface
10612 name="IMediumFormat" extends="$unknown"
10613 uuid="89f52554-d469-4799-9fad-1705e86a08b1"
10614 wsmap="managed"
10615 >
10616 <desc>
10617 The IMediumFormat interface represents a medium format.
10618
10619 Each medium format has an associated backend which is used to handle
10620 media stored in this format. This interface provides information
10621 about the properties of the associated backend.
10622
10623 Each medium format is identified by a string represented by the
10624 <link to="#id"/> attribute. This string is used in calls like
10625 <link to="IVirtualBox::createHardDisk"/> to specify the desired
10626 format.
10627
10628 The list of all supported medium formats can be obtained using
10629 <link to="ISystemProperties::mediaFormats"/>.
10630
10631 <see>IMedium</see>
10632 </desc>
10633
10634 <attribute name="id" type="wstring" readonly="yes">
10635 <desc>
10636 Identifier of this format.
10637
10638 The format identifier is a non-@c null non-empty ASCII string. Note that
10639 this string is case-insensitive. This means that, for example, all of
10640 the following strings:
10641 <pre>
10642 "VDI"
10643 "vdi"
10644 "VdI"</pre>
10645 refer to the same medium format.
10646
10647 This string is used in methods of other interfaces where it is necessary
10648 to specify a medium format, such as
10649 <link to="IVirtualBox::createHardDisk"/>.
10650 </desc>
10651 </attribute>
10652
10653 <attribute name="name" type="wstring" readonly="yes">
10654 <desc>
10655 Human readable description of this format.
10656
10657 Mainly for use in file open dialogs.
10658 </desc>
10659 </attribute>
10660
10661 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
10662 <desc>
10663 Array of strings containing the supported file extensions.
10664
10665 The first extension in the array is the extension preferred by the
10666 backend. It is recommended to use this extension when specifying a
10667 location of the storage unit for a new medium.
10668
10669 Note that some backends do not work on files, so this array may be
10670 empty.
10671
10672 <see>IMediumFormat::capabilities</see>
10673 </desc>
10674 </attribute>
10675
10676 <attribute name="capabilities" type="unsigned long" readonly="yes">
10677 <desc>
10678 Capabilities of the format as a set of bit flags.
10679
10680 For the meaning of individual capability flags see
10681 <link to="MediumFormatCapabilities"/>.
10682 </desc>
10683 </attribute>
10684
10685 <method name="describeProperties">
10686 <desc>
10687 Returns several arrays describing the properties supported by this
10688 format.
10689
10690 An element with the given index in each array describes one
10691 property. Thus, the number of elements in each returned array is the
10692 same and corresponds to the number of supported properties.
10693
10694 The returned arrays are filled in only if the
10695 <link to="MediumFormatCapabilities_Properties"/> flag is set.
10696 All arguments must be non-@c null.
10697
10698 <see>DataType</see>
10699 <see>DataFlags</see>
10700 </desc>
10701
10702 <param name="names" type="wstring" safearray="yes" dir="out">
10703 <desc>Array of property names.</desc>
10704 </param>
10705 <param name="description" type="wstring" safearray="yes" dir="out">
10706 <desc>Array of property descriptions.</desc>
10707 </param>
10708 <param name="types" type="DataType" safearray="yes" dir="out">
10709 <desc>Array of property types.</desc>
10710 </param>
10711 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10712 <desc>Array of property flags.</desc>
10713 </param>
10714 <param name="defaults" type="wstring" safearray="yes" dir="out">
10715 <desc>Array of default property values.</desc>
10716 </param>
10717 </method>
10718
10719 </interface>
10720
10721
10722 <!--
10723 // IKeyboard
10724 /////////////////////////////////////////////////////////////////////////
10725 -->
10726
10727 <interface
10728 name="IKeyboard" extends="$unknown"
10729 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10730 wsmap="managed"
10731 >
10732 <desc>
10733 The IKeyboard interface represents the virtual machine's keyboard. Used
10734 in <link to="IConsole::keyboard"/>.
10735
10736 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10737 to the virtual machine.
10738
10739 </desc>
10740 <method name="putScancode">
10741 <desc>Sends a scancode to the keyboard.
10742
10743 <result name="VBOX_E_IPRT_ERROR">
10744 Could not send scan code to virtual keyboard.
10745 </result>
10746
10747 </desc>
10748 <param name="scancode" type="long" dir="in"/>
10749 </method>
10750
10751 <method name="putScancodes">
10752 <desc>Sends an array of scancodes to the keyboard.
10753
10754 <result name="VBOX_E_IPRT_ERROR">
10755 Could not send all scan codes to virtual keyboard.
10756 </result>
10757
10758 </desc>
10759 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10760 <param name="codesStored" type="unsigned long" dir="return"/>
10761 </method>
10762
10763 <method name="putCAD">
10764 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10765 function is nothing special, it is just a convenience function
10766 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10767
10768 <result name="VBOX_E_IPRT_ERROR">
10769 Could not send all scan codes to virtual keyboard.
10770 </result>
10771
10772 </desc>
10773 </method>
10774
10775 </interface>
10776
10777
10778 <!--
10779 // IMouse
10780 /////////////////////////////////////////////////////////////////////////
10781 -->
10782
10783 <enum
10784 name="MouseButtonState"
10785 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
10786 >
10787 <desc>
10788 Mouse button state.
10789 </desc>
10790
10791 <const name="LeftButton" value="0x01"/>
10792 <const name="RightButton" value="0x02"/>
10793 <const name="MiddleButton" value="0x04"/>
10794 <const name="WheelUp" value="0x08"/>
10795 <const name="WheelDown" value="0x10"/>
10796 <const name="XButton1" value="0x20"/>
10797 <const name="XButton2" value="0x40"/>
10798 <const name="MouseStateMask" value="0x7F"/>
10799 </enum>
10800
10801 <interface
10802 name="IMouse" extends="$unknown"
10803 uuid="7c0f2eae-f92d-498c-b802-e1a3763774dc"
10804 wsmap="managed"
10805 >
10806 <desc>
10807 The IMouse interface represents the virtual machine's mouse. Used in
10808 <link to="IConsole::mouse"/>.
10809
10810 Through this interface, the virtual machine's virtual mouse can be
10811 controlled.
10812 </desc>
10813
10814 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10815 <desc>
10816 Whether the guest OS supports absolute mouse pointer positioning
10817 or not.
10818 <note>
10819 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10820 callback to be instantly informed about changes of this attribute
10821 during virtual machine execution.
10822 </note>
10823 <see><link to="#putMouseEventAbsolute"/></see>
10824 </desc>
10825 </attribute>
10826
10827 <attribute name="relativeSupported" type="boolean" readonly="yes">
10828 <desc>
10829 Whether the guest OS supports relative mouse pointer positioning
10830 or not.
10831 <note>
10832 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10833 callback to be instantly informed about changes of this attribute
10834 during virtual machine execution.
10835 </note>
10836 <see><link to="#putMouseEvent"/></see>
10837 </desc>
10838 </attribute>
10839
10840 <attribute name="needsHostCursor" type="boolean" readonly="yes">
10841 <desc>
10842 Whether the guest OS can currently switch to drawing it's own mouse
10843 cursor on demand.
10844 <note>
10845 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10846 callback to be instantly informed about changes of this attribute
10847 during virtual machine execution.
10848 </note>
10849 <see><link to="#putMouseEvent"/></see>
10850 </desc>
10851 </attribute>
10852
10853 <method name="putMouseEvent">
10854 <desc>
10855 Initiates a mouse event using relative pointer movements
10856 along x and y axis.
10857
10858 <result name="E_ACCESSDENIED">
10859 Console not powered up.
10860 </result>
10861 <result name="VBOX_E_IPRT_ERROR">
10862 Could not send mouse event to virtual mouse.
10863 </result>
10864
10865 </desc>
10866
10867 <param name="dx" type="long" dir="in">
10868 <desc>
10869 Amount of pixels the mouse should move to the right.
10870 Negative values move the mouse to the left.
10871 </desc>
10872 </param>
10873 <param name="dy" type="long" dir="in">
10874 <desc>
10875 Amount of pixels the mouse should move downwards.
10876 Negative values move the mouse upwards.
10877 </desc>
10878 </param>
10879 <param name="dz" type="long" dir="in">
10880 <desc>
10881 Amount of mouse wheel moves.
10882 Positive values describe clockwise wheel rotations,
10883 negative values describe counterclockwise rotations.
10884 </desc>
10885 </param>
10886 <param name="dw" type="long" dir="in">
10887 <desc>
10888 Amount of horizontal mouse wheel moves.
10889 Positive values describe a movement to the left,
10890 negative values describe a movement to the right.
10891 </desc>
10892 </param>
10893 <param name="buttonState" type="long" dir="in">
10894 <desc>
10895 The current state of mouse buttons. Every bit represents
10896 a mouse button as follows:
10897 <table>
10898 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10899 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10900 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10901 </table>
10902 A value of <tt>1</tt> means the corresponding button is pressed.
10903 otherwise it is released.
10904 </desc>
10905 </param>
10906 </method>
10907
10908 <method name="putMouseEventAbsolute">
10909 <desc>
10910 Positions the mouse pointer using absolute x and y coordinates.
10911 These coordinates are expressed in pixels and
10912 start from <tt>[1,1]</tt> which corresponds to the top left
10913 corner of the virtual display.
10914
10915 <result name="E_ACCESSDENIED">
10916 Console not powered up.
10917 </result>
10918 <result name="VBOX_E_IPRT_ERROR">
10919 Could not send mouse event to virtual mouse.
10920 </result>
10921
10922 <note>
10923 This method will have effect only if absolute mouse
10924 positioning is supported by the guest OS.
10925 </note>
10926
10927 <see><link to="#absoluteSupported"/></see>
10928 </desc>
10929
10930 <param name="x" type="long" dir="in">
10931 <desc>
10932 X coordinate of the pointer in pixels, starting from @c 1.
10933 </desc>
10934 </param>
10935 <param name="y" type="long" dir="in">
10936 <desc>
10937 Y coordinate of the pointer in pixels, starting from @c 1.
10938 </desc>
10939 </param>
10940 <param name="dz" type="long" dir="in">
10941 <desc>
10942 Amount of mouse wheel moves.
10943 Positive values describe clockwise wheel rotations,
10944 negative values describe counterclockwise rotations.
10945 </desc>
10946 </param>
10947 <param name="dw" type="long" dir="in">
10948 <desc>
10949 Amount of horizontal mouse wheel moves.
10950 Positive values describe a movement to the left,
10951 negative values describe a movement to the right.
10952 </desc>
10953 </param>
10954 <param name="buttonState" type="long" dir="in">
10955 <desc>
10956 The current state of mouse buttons. Every bit represents
10957 a mouse button as follows:
10958 <table>
10959 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10960 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10961 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10962 </table>
10963 A value of @c 1 means the corresponding button is pressed.
10964 otherwise it is released.
10965 </desc>
10966 </param>
10967 </method>
10968
10969 </interface>
10970
10971 <!--
10972 // IDisplay
10973 /////////////////////////////////////////////////////////////////////////
10974 -->
10975
10976 <enum
10977 name="FramebufferPixelFormat"
10978 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10979 >
10980 <desc>
10981 Format of the video memory buffer. Constants represented by this enum can
10982 be used to test for particular values of <link
10983 to="IFramebuffer::pixelFormat"/>. See also <link
10984 to="IFramebuffer::requestResize"/>.
10985
10986 See also www.fourcc.org for more information about FOURCC pixel formats.
10987 </desc>
10988
10989 <const name="Opaque" value="0">
10990 <desc>
10991 Unknown buffer format (the user may not assume any particular format of
10992 the buffer).
10993 </desc>
10994 </const>
10995 <const name="FOURCC_RGB" value="0x32424752">
10996 <desc>
10997 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10998 bit layout).
10999 </desc>
11000 </const>
11001 </enum>
11002
11003 <interface
11004 name="IFramebuffer" extends="$unknown"
11005 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
11006 wsmap="suppress"
11007 >
11008 <attribute name="address" type="octet" mod="ptr" readonly="yes">
11009 <desc>Address of the start byte of the frame buffer.</desc>
11010 </attribute>
11011
11012 <attribute name="width" type="unsigned long" readonly="yes">
11013 <desc>Frame buffer width, in pixels.</desc>
11014 </attribute>
11015
11016 <attribute name="height" type="unsigned long" readonly="yes">
11017 <desc>Frame buffer height, in pixels.</desc>
11018 </attribute>
11019
11020 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
11021 <desc>
11022 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
11023 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
11024 are: 8, 15, 16, 24 and 32.
11025 </desc>
11026 </attribute>
11027
11028 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
11029 <desc>
11030 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
11031 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
11032 size of the scan line must be aligned to 32 bits.
11033 </desc>
11034 </attribute>
11035
11036 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
11037 <desc>
11038 Frame buffer pixel format. It's either one of the values defined by <link
11039 to="FramebufferPixelFormat"/> or a raw FOURCC code.
11040 <note>
11041 This attribute must never return <link
11042 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
11043 <link to="#address"/> points to must be always known.
11044 </note>
11045 </desc>
11046 </attribute>
11047
11048 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
11049 <desc>
11050 Defines whether this frame buffer uses the virtual video card's memory
11051 buffer (guest VRAM) directly or not. See <link
11052 to="IFramebuffer::requestResize"/> for more information.
11053 </desc>
11054 </attribute>
11055
11056 <attribute name="heightReduction" type="unsigned long" readonly="yes">
11057 <desc>
11058 Hint from the frame buffer about how much of the standard
11059 screen height it wants to use for itself. This information is
11060 exposed to the guest through the VESA BIOS and VMMDev interface
11061 so that it can use it for determining its video mode table. It
11062 is not guaranteed that the guest respects the value.
11063 </desc>
11064 </attribute>
11065
11066 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
11067 <desc>
11068 An alpha-blended overlay which is superposed over the frame buffer.
11069 The initial purpose is to allow the display of icons providing
11070 information about the VM state, including disk activity, in front
11071 ends which do not have other means of doing that. The overlay is
11072 designed to controlled exclusively by IDisplay. It has no locking
11073 of its own, and any changes made to it are not guaranteed to be
11074 visible until the affected portion of IFramebuffer is updated. The
11075 overlay can be created lazily the first time it is requested. This
11076 attribute can also return @c null to signal that the overlay is not
11077 implemented.
11078 </desc>
11079 </attribute>
11080
11081 <attribute name="winId" type="unsigned long long" readonly="yes">
11082 <desc>
11083 Platform-dependent identifier of the window where context of this
11084 frame buffer is drawn, or zero if there's no such window.
11085 </desc>
11086 </attribute>
11087
11088 <method name="lock">
11089 <desc>
11090 Locks the frame buffer.
11091 Gets called by the IDisplay object where this frame buffer is
11092 bound to.
11093 </desc>
11094 </method>
11095
11096 <method name="unlock">
11097 <desc>
11098 Unlocks the frame buffer.
11099 Gets called by the IDisplay object where this frame buffer is
11100 bound to.
11101 </desc>
11102 </method>
11103
11104 <method name="notifyUpdate">
11105 <desc>
11106 Informs about an update.
11107 Gets called by the display object where this buffer is
11108 registered.
11109 </desc>
11110 <param name="x" type="unsigned long" dir="in"/>
11111 <param name="y" type="unsigned long" dir="in"/>
11112 <param name="width" type="unsigned long" dir="in"/>
11113 <param name="height" type="unsigned long" dir="in"/>
11114 </method>
11115
11116 <method name="requestResize">
11117 <desc>
11118 Requests a size and pixel format change.
11119
11120 There are two modes of working with the video buffer of the virtual
11121 machine. The <i>indirect</i> mode implies that the IFramebuffer
11122 implementation allocates a memory buffer for the requested display mode
11123 and provides it to the virtual machine. In <i>direct</i> mode, the
11124 IFramebuffer implementation uses the memory buffer allocated and owned
11125 by the virtual machine. This buffer represents the video memory of the
11126 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
11127 usually faster because the implementation gets a raw pointer to the
11128 guest VRAM buffer which it can directly use for visualizing the contents
11129 of the virtual display, as opposed to the indirect mode where the
11130 contents of guest VRAM are copied to the memory buffer provided by
11131 the implementation every time a display update occurs.
11132
11133 It is important to note that the direct mode is really fast only when
11134 the implementation uses the given guest VRAM buffer directly, for
11135 example, by blitting it to the window representing the virtual machine's
11136 display, which saves at least one copy operation comparing to the
11137 indirect mode. However, using the guest VRAM buffer directly is not
11138 always possible: the format and the color depth of this buffer may be
11139 not supported by the target window, or it may be unknown (opaque) as in
11140 case of text or non-linear multi-plane VGA video modes. In this case,
11141 the indirect mode (that is always available) should be used as a
11142 fallback: when the guest VRAM contents are copied to the
11143 implementation-provided memory buffer, color and format conversion is
11144 done automatically by the underlying code.
11145
11146 The @a pixelFormat parameter defines whether the direct mode is
11147 available or not. If @a pixelFormat is <link
11148 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
11149 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
11150 @a bytesPerLine parameters must be ignored and the implementation must use
11151 the indirect mode (where it provides its own buffer in one of the
11152 supported formats). In all other cases, @a pixelFormat together with
11153 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
11154 buffer pointed to by the @a VRAM parameter and the implementation is
11155 free to choose which mode to use. To indicate that this frame buffer uses
11156 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
11157 attribute must return @c true and <link to="#address"/> must
11158 return exactly the same address that is passed in the @a VRAM parameter
11159 of this method; otherwise it is assumed that the indirect strategy is
11160 chosen.
11161
11162 The @a width and @a height parameters represent the size of the
11163 requested display mode in both modes. In case of indirect mode, the
11164 provided memory buffer should be big enough to store data of the given
11165 display mode. In case of direct mode, it is guaranteed that the given
11166 @a VRAM buffer contains enough space to represent the display mode of the
11167 given size. Note that this frame buffer's <link to="#width"/> and <link
11168 to="#height"/> attributes must return exactly the same values as
11169 passed to this method after the resize is completed (see below).
11170
11171 The @a finished output parameter determines if the implementation has
11172 finished resizing the frame buffer or not. If, for some reason, the
11173 resize cannot be finished immediately during this call, @a finished
11174 must be set to @c false, and the implementation must call
11175 <link to="IDisplay::resizeCompleted"/> after it has returned from
11176 this method as soon as possible. If @a finished is @c false, the
11177 machine will not call any frame buffer methods until
11178 <link to="IDisplay::resizeCompleted"/> is called.
11179
11180 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
11181 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
11182 this frame buffer must return exactly the same values as specified in the
11183 parameters of this method, after the resize is completed. If the
11184 indirect mode is chosen, these attributes must return values describing
11185 the format of the implementation's own memory buffer <link
11186 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
11187 value must always correlate with <link to="#pixelFormat"/>. Note that
11188 the <link to="#pixelFormat"/> attribute must never return <link
11189 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
11190
11191 <note>
11192 This method is called by the IDisplay object under the
11193 <link to="#lock"/> provided by this IFramebuffer
11194 implementation. If this method returns @c false in @a finished, then
11195 this lock is not released until
11196 <link to="IDisplay::resizeCompleted"/> is called.
11197 </note>
11198 </desc>
11199 <param name="screenId" type="unsigned long" dir="in">
11200 <desc>
11201 Logical screen number. Must be used in the corresponding call to
11202 <link to="IDisplay::resizeCompleted"/> if this call is made.
11203 </desc>
11204 </param>
11205 <param name="pixelFormat" type="unsigned long" dir="in">
11206 <desc>
11207 Pixel format of the memory buffer pointed to by @a VRAM.
11208 See also <link to="FramebufferPixelFormat"/>.
11209 </desc>
11210 </param>
11211 <param name="VRAM" type="octet" mod="ptr" dir="in">
11212 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
11213 </param>
11214 <param name="bitsPerPixel" type="unsigned long" dir="in">
11215 <desc>Color depth, bits per pixel.</desc>
11216 </param>
11217 <param name="bytesPerLine" type="unsigned long" dir="in">
11218 <desc>Size of one scan line, in bytes.</desc>
11219 </param>
11220 <param name="width" type="unsigned long" dir="in">
11221 <desc>Width of the guest display, in pixels.</desc>
11222 </param>
11223 <param name="height" type="unsigned long" dir="in">
11224 <desc>Height of the guest display, in pixels.</desc>
11225 </param>
11226 <param name="finished" type="boolean" dir="return">
11227 <desc>
11228 Can the VM start using the new frame buffer immediately
11229 after this method returns or it should wait for
11230 <link to="IDisplay::resizeCompleted"/>.
11231 </desc>
11232 </param>
11233 </method>
11234
11235 <method name="videoModeSupported">
11236 <desc>
11237 Returns whether the frame buffer implementation is willing to
11238 support a given video mode. In case it is not able to render
11239 the video mode (or for some reason not willing), it should
11240 return @c false. Usually this method is called when the guest
11241 asks the VMM device whether a given video mode is supported
11242 so the information returned is directly exposed to the guest.
11243 It is important that this method returns very quickly.
11244 </desc>
11245 <param name="width" type="unsigned long" dir="in"/>
11246 <param name="height" type="unsigned long" dir="in"/>
11247 <param name="bpp" type="unsigned long" dir="in"/>
11248 <param name="supported" type="boolean" dir="return"/>
11249 </method>
11250
11251 <method name="getVisibleRegion">
11252 <desc>
11253 Returns the visible region of this frame buffer.
11254
11255 If the @a rectangles parameter is @c null then the value of the
11256 @a count parameter is ignored and the number of elements necessary to
11257 describe the current visible region is returned in @a countCopied.
11258
11259 If @a rectangles is not @c null but @a count is less
11260 than the required number of elements to store region data, the method
11261 will report a failure. If @a count is equal or greater than the
11262 required number of elements, then the actual number of elements copied
11263 to the provided array will be returned in @a countCopied.
11264
11265 <note>
11266 The address of the provided array must be in the process space of
11267 this IFramebuffer object.
11268 </note>
11269 <note>
11270 Method not yet implemented.
11271 </note>
11272 </desc>
11273 <param name="rectangles" type="octet" mod="ptr" dir="in">
11274 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
11275 </param>
11276 <param name="count" type="unsigned long" dir="in">
11277 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
11278 </param>
11279 <param name="countCopied" type="unsigned long" dir="return">
11280 <desc>Number of elements copied to the @a rectangles array.</desc>
11281 </param>
11282 </method>
11283
11284 <method name="setVisibleRegion">
11285 <desc>
11286 Suggests a new visible region to this frame buffer. This region
11287 represents the area of the VM display which is a union of regions of
11288 all top-level windows of the guest operating system running inside the
11289 VM (if the Guest Additions for this system support this
11290 functionality). This information may be used by the frontends to
11291 implement the seamless desktop integration feature.
11292
11293 <note>
11294 The address of the provided array must be in the process space of
11295 this IFramebuffer object.
11296 </note>
11297 <note>
11298 The IFramebuffer implementation must make a copy of the provided
11299 array of rectangles.
11300 </note>
11301 <note>
11302 Method not yet implemented.
11303 </note>
11304 </desc>
11305 <param name="rectangles" type="octet" mod="ptr" dir="in">
11306 <desc>Pointer to the @c RTRECT array.</desc>
11307 </param>
11308 <param name="count" type="unsigned long" dir="in">
11309 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
11310 </param>
11311 </method>
11312
11313 <method name="processVHWACommand">
11314 <desc>
11315 Posts a Video HW Acceleration Command to the frame buffer for processing.
11316 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
11317 are posted from quest to the host to be processed by the host hardware.
11318
11319 <note>
11320 The address of the provided command must be in the process space of
11321 this IFramebuffer object.
11322 </note>
11323 </desc>
11324
11325 <param name="command" type="octet" mod="ptr" dir="in">
11326 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
11327 </param>
11328 </method>
11329
11330 </interface>
11331
11332 <interface
11333 name="IFramebufferOverlay" extends="IFramebuffer"
11334 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
11335 wsmap="suppress"
11336 >
11337 <desc>
11338 The IFramebufferOverlay interface represents an alpha blended overlay
11339 for displaying status icons above an IFramebuffer. It is always created
11340 not visible, so that it must be explicitly shown. It only covers a
11341 portion of the IFramebuffer, determined by its width, height and
11342 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
11343 that order) format, and may be written to directly. Do re-read the
11344 width though, after setting it, as it may be adjusted (increased) to
11345 make it more suitable for the front end.
11346 </desc>
11347 <attribute name="x" type="unsigned long" readonly="yes">
11348 <desc>X position of the overlay, relative to the frame buffer.</desc>
11349 </attribute>
11350
11351 <attribute name="y" type="unsigned long" readonly="yes">
11352 <desc>Y position of the overlay, relative to the frame buffer.</desc>
11353 </attribute>
11354
11355 <attribute name="visible" type="boolean" readonly="no">
11356 <desc>
11357 Whether the overlay is currently visible.
11358 </desc>
11359 </attribute>
11360
11361 <attribute name="alpha" type="unsigned long" readonly="no">
11362 <desc>
11363 The global alpha value for the overlay. This may or may not be
11364 supported by a given front end.
11365 </desc>
11366 </attribute>
11367
11368 <method name="move">
11369 <desc>
11370 Changes the overlay's position relative to the IFramebuffer.
11371 </desc>
11372 <param name="x" type="unsigned long" dir="in"/>
11373 <param name="y" type="unsigned long" dir="in"/>
11374 </method>
11375
11376 </interface>
11377
11378 <interface
11379 name="IDisplay" extends="$unknown"
11380 uuid="1fa79e39-0cc9-4ab3-9df3-ed3e96b42496"
11381 wsmap="managed"
11382 >
11383 <desc>
11384 The IDisplay interface represents the virtual machine's display.
11385
11386 The object implementing this interface is contained in each
11387 <link to="IConsole::display"/> attribute and represents the visual
11388 output of the virtual machine.
11389
11390 The virtual display supports pluggable output targets represented by the
11391 IFramebuffer interface. Examples of the output target are a window on
11392 the host computer or an RDP session's display on a remote computer.
11393 </desc>
11394 <method name="getScreenResolution">
11395 <desc>Queries display width, height and color depth for given screen.</desc>
11396 <param name="screenId" type="unsigned long" dir="in"/>
11397 <param name="width" type="unsigned long" dir="out"/>
11398 <param name="height" type="unsigned long" dir="out"/>
11399 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
11400 </method>
11401
11402 <method name="setFramebuffer">
11403 <desc>
11404 Sets the framebuffer for given screen.
11405 </desc>
11406 <param name="screenId" type="unsigned long" dir="in"/>
11407 <param name="framebuffer" type="IFramebuffer" dir="in"/>
11408 </method>
11409
11410 <method name="getFramebuffer">
11411 <desc>
11412 Queries the framebuffer for given screen.
11413 </desc>
11414 <param name="screenId" type="unsigned long" dir="in"/>
11415 <param name="framebuffer" type="IFramebuffer" dir="out"/>
11416 <param name="xOrigin" type="long" dir="out"/>
11417 <param name="yOrigin" type="long" dir="out"/>
11418 </method>
11419
11420 <method name="setVideoModeHint">
11421 <desc>
11422 Asks VirtualBox to request the given video mode from
11423 the guest. This is just a hint and it cannot be guaranteed
11424 that the requested resolution will be used. Guest Additions
11425 are required for the request to be seen by guests. The caller
11426 should issue the request and wait for a resolution change and
11427 after a timeout retry.
11428
11429 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
11430 parameters means that the corresponding values should be taken from the
11431 current video mode (i.e. left unchanged).
11432
11433 If the guest OS supports multi-monitor configuration then the @a display
11434 parameter specifies the number of the guest display to send the hint to:
11435 @c 0 is the primary display, @c 1 is the first secondary and
11436 so on. If the multi-monitor configuration is not supported, @a display
11437 must be @c 0.
11438
11439 <result name="E_INVALIDARG">
11440 The @a display is not associated with any monitor.
11441 </result>
11442
11443 </desc>
11444 <param name="width" type="unsigned long" dir="in"/>
11445 <param name="height" type="unsigned long" dir="in"/>
11446 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
11447 <param name="display" type="unsigned long" dir="in"/>
11448 </method>
11449
11450 <method name="setSeamlessMode">
11451 <desc>
11452 Enables or disables seamless guest display rendering (seamless desktop
11453 integration) mode.
11454 <note>
11455 Calling this method has no effect if <link
11456 to="IGuest::supportsSeamless"/> returns @c false.
11457 </note>
11458 </desc>
11459 <param name="enabled" type="boolean" dir="in"/>
11460 </method>
11461
11462 <method name="takeScreenShot">
11463 <desc>
11464 Takes a screen shot of the requested size and copies it to the
11465 32-bpp buffer allocated by the caller and pointed to by @a address.
11466 A pixel consists of 4 bytes in order: B, G, R, 0.
11467
11468 <note>This API can be used only by the COM/XPCOM C++ API as it
11469 requires pointer support. Use <link to="#takeScreenShotToArray" />
11470 with other language bindings.
11471 </note>
11472
11473 <result name="E_NOTIMPL">
11474 Feature not implemented.
11475 </result>
11476 <result name="VBOX_E_IPRT_ERROR">
11477 Could not take a screenshot.
11478 </result>
11479
11480 </desc>
11481 <param name="screenId" type="unsigned long" dir="in"/>
11482 <param name="address" type="octet" mod="ptr" dir="in"/>
11483 <param name="width" type="unsigned long" dir="in"/>
11484 <param name="height" type="unsigned long" dir="in"/>
11485 </method>
11486
11487 <method name="takeScreenShotToArray">
11488 <desc>
11489 Takes a guest screen shot of the requested size and returns it as
11490 an array of bytes in uncompressed 32-bit RGBA format.
11491 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
11492
11493 This API is slow, but could be the only option to get guest screenshot
11494 for scriptable languages not allowed to manipulate with addresses
11495 directly.
11496
11497 <result name="E_NOTIMPL">
11498 Feature not implemented.
11499 </result>
11500 <result name="VBOX_E_IPRT_ERROR">
11501 Could not take a screenshot.
11502 </result>
11503 </desc>
11504 <param name="screenId" type="unsigned long" dir="in">
11505 <desc>
11506 Monitor to take screenshot from.
11507 </desc>
11508 </param>
11509 <param name="width" type="unsigned long" dir="in">
11510 <desc>
11511 Desired image width.
11512 </desc>
11513 </param>
11514 <param name="height" type="unsigned long" dir="in">
11515 <desc>
11516 Desired image height.
11517 </desc>
11518 </param>
11519 <param name="screenData" type="octet" dir="return" safearray="yes">
11520 <desc>
11521 Array with resulting screen data.
11522 </desc>
11523 </param>
11524 </method>
11525
11526 <method name="drawToScreen">
11527 <desc>
11528 Draws a 32-bpp image of the specified size from the given buffer
11529 to the given point on the VM display.
11530
11531 <result name="E_NOTIMPL">
11532 Feature not implemented.
11533 </result>
11534 <result name="VBOX_E_IPRT_ERROR">
11535 Could not draw to screen.
11536 </result>
11537
11538 </desc>
11539 <param name="screenId" type="unsigned long" dir="in"/>
11540 <param name="address" type="octet" mod="ptr" dir="in"/>
11541 <param name="x" type="unsigned long" dir="in">
11542 <desc>Relative to the screen top left corner.</desc>
11543 </param>
11544 <param name="y" type="unsigned long" dir="in">
11545 <desc>Relative to the screen top left corner.</desc>
11546 </param>
11547 <param name="width" type="unsigned long" dir="in"/>
11548 <param name="height" type="unsigned long" dir="in"/>
11549 </method>
11550
11551 <method name="invalidateAndUpdate">
11552 <desc>
11553 Does a full invalidation of the VM display and instructs the VM
11554 to update it.
11555
11556 <result name="VBOX_E_IPRT_ERROR">
11557 Could not invalidate and update screen.
11558 </result>
11559
11560 </desc>
11561 </method>
11562
11563 <method name="resizeCompleted">
11564 <desc>
11565 Signals that a framebuffer has completed the resize operation.
11566
11567 <result name="VBOX_E_NOT_SUPPORTED">
11568 Operation only valid for external frame buffers.
11569 </result>
11570
11571 </desc>
11572 <param name="screenId" type="unsigned long" dir="in"/>
11573 </method>
11574
11575 <method name="completeVHWACommand">
11576 <desc>
11577 Signals that the Video HW Acceleration command has completed.
11578 </desc>
11579
11580 <param name="command" type="octet" mod="ptr" dir="in">
11581 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11582 </param>
11583 </method>
11584
11585 </interface>
11586
11587 <!--
11588 // INetworkAdapter
11589 /////////////////////////////////////////////////////////////////////////
11590 -->
11591
11592 <enum
11593 name="NetworkAttachmentType"
11594 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11595 >
11596 <desc>
11597 Network attachment type.
11598 </desc>
11599
11600 <const name="Null" value="0">
11601 <desc>Null value, also means "not attached".</desc>
11602 </const>
11603 <const name="NAT" value="1"/>
11604 <const name="Bridged" value="2"/>
11605 <const name="Internal" value="3"/>
11606 <const name="HostOnly" value="4"/>
11607 <const name="VDE" value="5"/>
11608 </enum>
11609
11610 <enum
11611 name="NetworkAdapterType"
11612 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
11613 >
11614 <desc>
11615 Network adapter type.
11616 </desc>
11617
11618 <const name="Null" value="0">
11619 <desc>Null value (never used by the API).</desc>
11620 </const>
11621 <const name="Am79C970A" value="1">
11622 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11623 </const>
11624 <const name="Am79C973" value="2">
11625 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11626 </const>
11627 <const name="I82540EM" value="3">
11628 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11629 </const>
11630 <const name="I82543GC" value="4">
11631 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11632 </const>
11633 <const name="I82545EM" value="5">
11634 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11635 </const>
11636 <const name="Virtio" value="6">
11637 <desc>Virtio network device.</desc>
11638 </const>
11639 </enum>
11640
11641 <interface
11642 name="INetworkAdapter" extends="$unknown"
11643 uuid="5bdb9df8-a5e1-4322-a139-b7a4a734c790"
11644 wsmap="managed"
11645 >
11646 <desc>
11647 Represents a virtual network adapter that is attached to a virtual machine.
11648 Each virtual machine has a fixed number of network adapter slots with one
11649 instance of this attached to each of them. Call
11650 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11651 is attached to a given slot in a given machine.
11652
11653 Each network adapter can be in one of five attachment modes, which are
11654 represented by the <link to="NetworkAttachmentType" /> enumeration;
11655 see the <link to="#attachmentType" /> attribute.
11656 </desc>
11657
11658 <attribute name="adapterType" type="NetworkAdapterType">
11659 <desc>
11660 Type of the virtual network adapter. Depending on this value,
11661 VirtualBox will provide a different virtual network hardware
11662 to the guest.
11663 </desc>
11664 </attribute>
11665
11666 <attribute name="slot" type="unsigned long" readonly="yes">
11667 <desc>
11668 Slot number this adapter is plugged into. Corresponds to
11669 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11670 to obtain this instance.
11671 </desc>
11672 </attribute>
11673
11674 <attribute name="enabled" type="boolean">
11675 <desc>
11676 Flag whether the network adapter is present in the
11677 guest system. If disabled, the virtual guest hardware will
11678 not contain this network adapter. Can only be changed when
11679 the VM is not running.
11680 </desc>
11681 </attribute>
11682
11683 <attribute name="MACAddress" type="wstring">
11684 <desc>
11685 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11686 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11687 </desc>
11688 </attribute>
11689
11690 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11691
11692 <attribute name="hostInterface" type="wstring">
11693 <desc>
11694 Name of the host network interface the VM is attached to.
11695 </desc>
11696 </attribute>
11697
11698 <attribute name="internalNetwork" type="wstring">
11699 <desc>
11700 Name of the internal network the VM is attached to.
11701 </desc>
11702 </attribute>
11703
11704 <attribute name="NATNetwork" type="wstring">
11705 <desc>
11706 Name of the NAT network the VM is attached to.
11707 </desc>
11708 </attribute>
11709
11710 <attribute name="VDENetwork" type="wstring">
11711 <desc>
11712 Name of the VDE switch the VM is attached to.
11713 </desc>
11714 </attribute>
11715
11716 <attribute name="cableConnected" type="boolean">
11717 <desc>
11718 Flag whether the adapter reports the cable as connected or not.
11719 It can be used to report offline situations to a VM.
11720 </desc>
11721 </attribute>
11722
11723 <attribute name="lineSpeed" type="unsigned long">
11724 <desc>
11725 Line speed reported by custom drivers, in units of 1 kbps.
11726 </desc>
11727 </attribute>
11728
11729 <attribute name="traceEnabled" type="boolean">
11730 <desc>
11731 Flag whether network traffic from/to the network card should be traced.
11732 Can only be toggled when the VM is turned off.
11733 </desc>
11734 </attribute>
11735
11736 <attribute name="traceFile" type="wstring">
11737 <desc>
11738 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11739 will be used.
11740 </desc>
11741 </attribute>
11742
11743 <attribute name="natDriver" type="INATEngine" readonly="yes">
11744 <desc>
11745 Points to the NAT engine which handles the network address translation
11746 for this interface. This is active only when the interface actually uses
11747 NAT (see <link to="#attachToNAT" />).
11748 </desc>
11749 </attribute>
11750
11751 <attribute name="bootPriority" type="unsigned long">
11752 <desc>
11753 Network boot priority of the adapter. Priority 1 is highest. If not set,
11754 the priority is considered to be at the lowest possible setting.
11755 </desc>
11756 </attribute>
11757
11758 <method name="attachToNAT">
11759 <desc>
11760 Attach the network adapter to the Network Address Translation (NAT) interface.
11761 </desc>
11762 </method>
11763
11764 <method name="attachToBridgedInterface">
11765 <desc>
11766 Attach the network adapter to a bridged host interface.
11767 </desc>
11768 </method>
11769
11770 <method name="attachToInternalNetwork">
11771 <desc>
11772 Attach the network adapter to an internal network.
11773 </desc>
11774 </method>
11775
11776 <method name="attachToHostOnlyInterface">
11777 <desc>
11778 Attach the network adapter to the host-only network.
11779 </desc>
11780 </method>
11781
11782 <method name="attachToVDE">
11783 <desc>
11784 Attach the network adapter to a VDE network.
11785 </desc>
11786 </method>
11787
11788 <method name="detach">
11789 <desc>
11790 Detach the network adapter
11791 </desc>
11792 </method>
11793 </interface>
11794
11795
11796 <!--
11797 // ISerialPort
11798 /////////////////////////////////////////////////////////////////////////
11799 -->
11800
11801 <enum
11802 name="PortMode"
11803 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11804 >
11805 <desc>
11806 The PortMode enumeration represents possible communication modes for
11807 the virtual serial port device.
11808 </desc>
11809
11810 <const name="Disconnected" value="0">
11811 <desc>Virtual device is not attached to any real host device.</desc>
11812 </const>
11813 <const name="HostPipe" value="1">
11814 <desc>Virtual device is attached to a host pipe.</desc>
11815 </const>
11816 <const name="HostDevice" value="2">
11817 <desc>Virtual device is attached to a host device.</desc>
11818 </const>
11819 <const name="RawFile" value="3">
11820 <desc>Virtual device is attached to a raw file.</desc>
11821 </const>
11822 </enum>
11823
11824 <interface
11825 name="ISerialPort" extends="$unknown"
11826 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11827 wsmap="managed"
11828 >
11829
11830 <desc>
11831 The ISerialPort interface represents the virtual serial port device.
11832
11833 The virtual serial port device acts like an ordinary serial port
11834 inside the virtual machine. This device communicates to the real
11835 serial port hardware in one of two modes: host pipe or host device.
11836
11837 In host pipe mode, the #path attribute specifies the path to the pipe on
11838 the host computer that represents a serial port. The #server attribute
11839 determines if this pipe is created by the virtual machine process at
11840 machine startup or it must already exist before starting machine
11841 execution.
11842
11843 In host device mode, the #path attribute specifies the name of the
11844 serial port device on the host computer.
11845
11846 There is also a third communication mode: the disconnected mode. In this
11847 mode, the guest OS running inside the virtual machine will be able to
11848 detect the serial port, but all port write operations will be discarded
11849 and all port read operations will return no data.
11850
11851 <see>IMachine::getSerialPort</see>
11852 </desc>
11853
11854 <attribute name="slot" type="unsigned long" readonly="yes">
11855 <desc>
11856 Slot number this serial port is plugged into. Corresponds to
11857 the value you pass to <link to="IMachine::getSerialPort"/>
11858 to obtain this instance.
11859 </desc>
11860 </attribute>
11861
11862 <attribute name="enabled" type="boolean">
11863 <desc>
11864 Flag whether the serial port is enabled. If disabled,
11865 the serial port will not be reported to the guest OS.
11866 </desc>
11867 </attribute>
11868
11869 <attribute name="IOBase" type="unsigned long">
11870 <desc>Base I/O address of the serial port.</desc>
11871 </attribute>
11872
11873 <attribute name="IRQ" type="unsigned long">
11874 <desc>IRQ number of the serial port.</desc>
11875 </attribute>
11876
11877 <attribute name="hostMode" type="PortMode">
11878 <desc>
11879 How is this port connected to the host.
11880 <note>
11881 Changing this attribute may fail if the conditions for
11882 <link to="#path"/> are not met.
11883 </note>
11884 </desc>
11885 </attribute>
11886
11887 <attribute name="server" type="boolean">
11888 <desc>
11889 Flag whether this serial port acts as a server (creates a new pipe on
11890 the host) or as a client (uses the existing pipe). This attribute is
11891 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11892 </desc>
11893 </attribute>
11894
11895 <attribute name="path" type="wstring">
11896 <desc>
11897 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11898 PortMode_HostPipe, or the host serial device name when
11899 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11900 cases, setting a @c null or empty string as the attribute's value
11901 is an error. Otherwise, the value of this property is ignored.
11902 </desc>
11903 </attribute>
11904
11905 </interface>
11906
11907 <!--
11908 // IParallelPort
11909 /////////////////////////////////////////////////////////////////////////
11910 -->
11911
11912 <interface
11913 name="IParallelPort" extends="$unknown"
11914 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11915 wsmap="managed"
11916 >
11917
11918 <desc>
11919 The IParallelPort interface represents the virtual parallel port device.
11920
11921 The virtual parallel port device acts like an ordinary parallel port
11922 inside the virtual machine. This device communicates to the real
11923 parallel port hardware using the name of the parallel device on the host
11924 computer specified in the #path attribute.
11925
11926 Each virtual parallel port device is assigned a base I/O address and an
11927 IRQ number that will be reported to the guest operating system and used
11928 to operate the given parallel port from within the virtual machine.
11929
11930 <see>IMachine::getParallelPort</see>
11931 </desc>
11932
11933 <attribute name="slot" type="unsigned long" readonly="yes">
11934 <desc>
11935 Slot number this parallel port is plugged into. Corresponds to
11936 the value you pass to <link to="IMachine::getParallelPort"/>
11937 to obtain this instance.
11938 </desc>
11939 </attribute>
11940
11941 <attribute name="enabled" type="boolean">
11942 <desc>
11943 Flag whether the parallel port is enabled. If disabled,
11944 the parallel port will not be reported to the guest OS.
11945 </desc>
11946 </attribute>
11947
11948 <attribute name="IOBase" type="unsigned long">
11949 <desc>Base I/O address of the parallel port.</desc>
11950 </attribute>
11951
11952 <attribute name="IRQ" type="unsigned long">
11953 <desc>IRQ number of the parallel port.</desc>
11954 </attribute>
11955
11956 <attribute name="path" type="wstring">
11957 <desc>
11958 Host parallel device name. If this parallel port is enabled, setting a
11959 @c null or an empty string as this attribute's value will result into
11960 an error.
11961 </desc>
11962 </attribute>
11963
11964 </interface>
11965
11966
11967 <!--
11968 // IMachineDebugger
11969 /////////////////////////////////////////////////////////////////////////
11970 -->
11971
11972 <interface
11973 name="IMachineDebugger" extends="$unknown"
11974 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11975 wsmap="suppress"
11976 >
11977 <method name="resetStats">
11978 <desc>
11979 Reset VM statistics.
11980 </desc>
11981 <param name="pattern" type="wstring" dir="in">
11982 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11983 </param>
11984 </method>
11985
11986 <method name="dumpStats">
11987 <desc>
11988 Dumps VM statistics.
11989 </desc>
11990 <param name="pattern" type="wstring" dir="in">
11991 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11992 </param>
11993 </method>
11994
11995 <method name="getStats">
11996 <desc>
11997 Get the VM statistics in a XMLish format.
11998 </desc>
11999 <param name="pattern" type="wstring" dir="in">
12000 <desc>The selection pattern. A bit similar to filename globbing.</desc>
12001 </param>
12002 <param name="withDescriptions" type="boolean" dir="in">
12003 <desc>Whether to include the descriptions.</desc>
12004 </param>
12005 <param name="stats" type="wstring" dir="out">
12006 <desc>The XML document containing the statistics.</desc>
12007 </param>
12008 </method>
12009
12010 <method name="injectNMI">
12011 <desc>
12012 Inject an NMI into a running VT-x/AMD-V VM.
12013 </desc>
12014 </method>
12015
12016 <attribute name="singlestep" type="boolean">
12017 <desc>Switch for enabling singlestepping.</desc>
12018 </attribute>
12019
12020 <attribute name="recompileUser" type="boolean">
12021 <desc>Switch for forcing code recompilation for user mode code.</desc>
12022 </attribute>
12023
12024 <attribute name="recompileSupervisor" type="boolean">
12025 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
12026 </attribute>
12027
12028 <attribute name="PATMEnabled" type="boolean">
12029 <desc>Switch for enabling and disabling the PATM component.</desc>
12030 </attribute>
12031
12032 <attribute name="CSAMEnabled" type="boolean">
12033 <desc>Switch for enabling and disabling the CSAM component.</desc>
12034 </attribute>
12035
12036 <attribute name="logEnabled" type="boolean">
12037 <desc>Switch for enabling and disabling logging.</desc>
12038 </attribute>
12039
12040 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
12041 <desc>
12042 Flag indicating whether the VM is currently making use of CPU hardware
12043 virtualization extensions.
12044 </desc>
12045 </attribute>
12046
12047 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
12048 <desc>
12049 Flag indicating whether the VM is currently making use of the nested paging
12050 CPU hardware virtualization extension.
12051 </desc>
12052 </attribute>
12053
12054 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
12055 <desc>
12056 Flag indicating whether the VM is currently making use of the VPID
12057 VT-x extension.
12058 </desc>
12059 </attribute>
12060
12061 <attribute name="PAEEnabled" type="boolean" readonly="yes">
12062 <desc>
12063 Flag indicating whether the VM is currently making use of the Physical
12064 Address Extension CPU feature.
12065 </desc>
12066 </attribute>
12067
12068 <attribute name="virtualTimeRate" type="unsigned long">
12069 <desc>
12070 The rate at which the virtual time runs expressed as a percentage.
12071 The accepted range is 2% to 20000%.
12072 </desc>
12073 </attribute>
12074
12075 <!-- @todo method for setting log flags, groups and destination! -->
12076
12077 <attribute name="VM" type="unsigned long long" readonly="yes">
12078 <desc>
12079 Gets the VM handle. This is only for internal use while
12080 we carve the details of this interface.
12081 </desc>
12082 </attribute>
12083
12084 </interface>
12085
12086 <!--
12087 // IUSBController
12088 /////////////////////////////////////////////////////////////////////////
12089 -->
12090
12091 <interface
12092 name="IUSBController" extends="$unknown"
12093 uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
12094 wsmap="managed"
12095 >
12096 <attribute name="enabled" type="boolean">
12097 <desc>
12098 Flag whether the USB controller is present in the
12099 guest system. If disabled, the virtual guest hardware will
12100 not contain any USB controller. Can only be changed when
12101 the VM is powered off.
12102 </desc>
12103 </attribute>
12104
12105 <attribute name="enabledEhci" type="boolean">
12106 <desc>
12107 Flag whether the USB EHCI controller is present in the
12108 guest system. If disabled, the virtual guest hardware will
12109 not contain a USB EHCI controller. Can only be changed when
12110 the VM is powered off.
12111 </desc>
12112 </attribute>
12113
12114 <attribute name="proxyAvailable" type="boolean" readonly="yes">
12115 <desc>
12116 Flag whether there is an USB proxy available.
12117 </desc>
12118 </attribute>
12119
12120 <attribute name="USBStandard" type="unsigned short" readonly="yes">
12121 <desc>
12122 USB standard version which the controller implements.
12123 This is a BCD which means that the major version is in the
12124 high byte and minor version is in the low byte.
12125 </desc>
12126 </attribute>
12127
12128 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
12129 <desc>
12130 List of USB device filters associated with the machine.
12131
12132 If the machine is currently running, these filters are activated
12133 every time a new (supported) USB device is attached to the host
12134 computer that was not ignored by global filters
12135 (<link to="IHost::USBDeviceFilters"/>).
12136
12137 These filters are also activated when the machine is powered up.
12138 They are run against a list of all currently available USB
12139 devices (in states
12140 <link to="USBDeviceState_Available"/>,
12141 <link to="USBDeviceState_Busy"/>,
12142 <link to="USBDeviceState_Held"/>) that were not previously
12143 ignored by global filters.
12144
12145 If at least one filter matches the USB device in question, this
12146 device is automatically captured (attached to) the virtual USB
12147 controller of this machine.
12148
12149 <see>IUSBDeviceFilter, ::IUSBController</see>
12150 </desc>
12151 </attribute>
12152
12153 <method name="createDeviceFilter">
12154 <desc>
12155 Creates a new USB device filter. All attributes except
12156 the filter name are set to empty (any match),
12157 <i>active</i> is @c false (the filter is not active).
12158
12159 The created filter can then be added to the list of filters using
12160 <link to="#insertDeviceFilter"/>.
12161
12162 <result name="VBOX_E_INVALID_VM_STATE">
12163 The virtual machine is not mutable.
12164 </result>
12165
12166 <see>#deviceFilters</see>
12167 </desc>
12168 <param name="name" type="wstring" dir="in">
12169 <desc>
12170 Filter name. See <link to="IUSBDeviceFilter::name"/>
12171 for more info.
12172 </desc>
12173 </param>
12174 <param name="filter" type="IUSBDeviceFilter" dir="return">
12175 <desc>Created filter object.</desc>
12176 </param>
12177 </method>
12178
12179 <method name="insertDeviceFilter">
12180 <desc>
12181 Inserts the given USB device to the specified position
12182 in the list of filters.
12183
12184 Positions are numbered starting from <tt>0</tt>. If the specified
12185 position is equal to or greater than the number of elements in
12186 the list, the filter is added to the end of the collection.
12187
12188 <note>
12189 Duplicates are not allowed, so an attempt to insert a
12190 filter that is already in the collection, will return an
12191 error.
12192 </note>
12193
12194 <result name="VBOX_E_INVALID_VM_STATE">
12195 Virtual machine is not mutable.
12196 </result>
12197 <result name="E_INVALIDARG">
12198 USB device filter not created within this VirtualBox instance.
12199 </result>
12200 <result name="VBOX_E_INVALID_OBJECT_STATE">
12201 USB device filter already in list.
12202 </result>
12203
12204 <see>#deviceFilters</see>
12205 </desc>
12206 <param name="position" type="unsigned long" dir="in">
12207 <desc>Position to insert the filter to.</desc>
12208 </param>
12209 <param name="filter" type="IUSBDeviceFilter" dir="in">
12210 <desc>USB device filter to insert.</desc>
12211 </param>
12212 </method>
12213
12214 <method name="removeDeviceFilter">
12215 <desc>
12216 Removes a USB device filter from the specified position in the
12217 list of filters.
12218
12219 Positions are numbered starting from <tt>0</tt>. Specifying a
12220 position equal to or greater than the number of elements in
12221 the list will produce an error.
12222
12223 <see>#deviceFilters</see>
12224
12225 <result name="VBOX_E_INVALID_VM_STATE">
12226 Virtual machine is not mutable.
12227 </result>
12228 <result name="E_INVALIDARG">
12229 USB device filter list empty or invalid @a position.
12230 </result>
12231
12232 </desc>
12233 <param name="position" type="unsigned long" dir="in">
12234 <desc>Position to remove the filter from.</desc>
12235 </param>
12236 <param name="filter" type="IUSBDeviceFilter" dir="return">
12237 <desc>Removed USB device filter.</desc>
12238 </param>
12239 </method>
12240
12241 </interface>
12242
12243
12244 <!--
12245 // IUSBDevice
12246 /////////////////////////////////////////////////////////////////////////
12247 -->
12248
12249 <interface
12250 name="IUSBDevice" extends="$unknown"
12251 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
12252 wsmap="managed"
12253 >
12254 <desc>
12255 The IUSBDevice interface represents a virtual USB device attached to the
12256 virtual machine.
12257
12258 A collection of objects implementing this interface is stored in the
12259 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
12260 attached to a running virtual machine's USB controller.
12261 </desc>
12262
12263 <attribute name="id" type="uuid" mod="string" readonly="yes">
12264 <desc>
12265 Unique USB device ID. This ID is built from #vendorId,
12266 #productId, #revision and #serialNumber.
12267 </desc>
12268 </attribute>
12269
12270 <attribute name="vendorId" type="unsigned short" readonly="yes">
12271 <desc>Vendor ID.</desc>
12272 </attribute>
12273
12274 <attribute name="productId" type="unsigned short" readonly="yes">
12275 <desc>Product ID.</desc>
12276 </attribute>
12277
12278 <attribute name="revision" type="unsigned short" readonly="yes">
12279 <desc>
12280 Product revision number. This is a packed BCD represented as
12281 unsigned short. The high byte is the integer part and the low
12282 byte is the decimal.
12283 </desc>
12284 </attribute>
12285
12286 <attribute name="manufacturer" type="wstring" readonly="yes">
12287 <desc>Manufacturer string.</desc>
12288 </attribute>
12289
12290 <attribute name="product" type="wstring" readonly="yes">
12291 <desc>Product string.</desc>
12292 </attribute>
12293
12294 <attribute name="serialNumber" type="wstring" readonly="yes">
12295 <desc>Serial number string.</desc>
12296 </attribute>
12297
12298 <attribute name="address" type="wstring" readonly="yes">
12299 <desc>Host specific address of the device.</desc>
12300 </attribute>
12301
12302 <attribute name="port" type="unsigned short" readonly="yes">
12303 <desc>
12304 Host USB port number the device is physically
12305 connected to.
12306 </desc>
12307 </attribute>
12308
12309 <attribute name="version" type="unsigned short" readonly="yes">
12310 <desc>
12311 The major USB version of the device - 1 or 2.
12312 </desc>
12313 </attribute>
12314
12315 <attribute name="portVersion" type="unsigned short" readonly="yes">
12316 <desc>
12317 The major USB version of the host USB port the device is
12318 physically connected to - 1 or 2. For devices not connected to
12319 anything this will have the same value as the version attribute.
12320 </desc>
12321 </attribute>
12322
12323 <attribute name="remote" type="boolean" readonly="yes">
12324 <desc>
12325 Whether the device is physically connected to a remote VRDP
12326 client or to a local host machine.
12327 </desc>
12328 </attribute>
12329
12330 </interface>
12331
12332
12333 <!--
12334 // IUSBDeviceFilter
12335 /////////////////////////////////////////////////////////////////////////
12336 -->
12337
12338 <interface
12339 name="IUSBDeviceFilter" extends="$unknown"
12340 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
12341 wsmap="managed"
12342 >
12343 <desc>
12344 The IUSBDeviceFilter interface represents an USB device filter used
12345 to perform actions on a group of USB devices.
12346
12347 This type of filters is used by running virtual machines to
12348 automatically capture selected USB devices once they are physically
12349 attached to the host computer.
12350
12351 A USB device is matched to the given device filter if and only if all
12352 attributes of the device match the corresponding attributes of the
12353 filter (that is, attributes are joined together using the logical AND
12354 operation). On the other hand, all together, filters in the list of
12355 filters carry the semantics of the logical OR operation. So if it is
12356 desirable to create a match like "this vendor id OR this product id",
12357 one needs to create two filters and specify "any match" (see below)
12358 for unused attributes.
12359
12360 All filter attributes used for matching are strings. Each string
12361 is an expression representing a set of values of the corresponding
12362 device attribute, that will match the given filter. Currently, the
12363 following filtering expressions are supported:
12364
12365 <ul>
12366 <li><i>Interval filters</i>. Used to specify valid intervals for
12367 integer device attributes (Vendor ID, Product ID and Revision).
12368 The format of the string is:
12369
12370 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
12371
12372 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
12373 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
12374 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
12375 is omitted before a dash (<tt>-</tt>), the minimum possible integer
12376 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
12377 possible integer is assumed.
12378 </li>
12379 <li><i>Boolean filters</i>. Used to specify acceptable values for
12380 boolean device attributes. The format of the string is:
12381
12382 <tt>true|false|yes|no|0|1</tt>
12383
12384 </li>
12385 <li><i>Exact match</i>. Used to specify a single value for the given
12386 device attribute. Any string that doesn't start with <tt>int:</tt>
12387 represents the exact match. String device attributes are compared to
12388 this string including case of symbols. Integer attributes are first
12389 converted to a string (see individual filter attributes) and then
12390 compared ignoring case.
12391
12392 </li>
12393 <li><i>Any match</i>. Any value of the corresponding device attribute
12394 will match the given filter. An empty or @c null string is
12395 used to construct this type of filtering expressions.
12396
12397 </li>
12398 </ul>
12399
12400 <note>
12401 On the Windows host platform, interval filters are not currently
12402 available. Also all string filter attributes
12403 (<link to="#manufacturer"/>, <link to="#product"/>,
12404 <link to="#serialNumber"/>) are ignored, so they behave as
12405 <i>any match</i> no matter what string expression is specified.
12406 </note>
12407
12408 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
12409 </desc>
12410
12411 <attribute name="name" type="wstring">
12412 <desc>
12413 Visible name for this filter.
12414 This name is used to visually distinguish one filter from another,
12415 so it can neither be @c null nor an empty string.
12416 </desc>
12417 </attribute>
12418
12419 <attribute name="active" type="boolean">
12420 <desc>Whether this filter active or has been temporarily disabled.</desc>
12421 </attribute>
12422
12423 <attribute name="vendorId" type="wstring">
12424 <desc>
12425 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
12426 The string representation for the <i>exact matching</i>
12427 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12428 (including leading zeroes).
12429 </desc>
12430 </attribute>
12431
12432 <attribute name="productId" type="wstring">
12433 <desc>
12434 <link to="IUSBDevice::productId">Product ID</link> filter.
12435 The string representation for the <i>exact matching</i>
12436 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12437 (including leading zeroes).
12438 </desc>
12439 </attribute>
12440
12441 <attribute name="revision" type="wstring">
12442 <desc>
12443 <link to="IUSBDevice::productId">Product revision number</link>
12444 filter. The string representation for the <i>exact matching</i>
12445 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
12446 of the integer part of the revision, and <tt>F</tt> is the
12447 decimal digit of its fractional part (including leading and
12448 trailing zeros).
12449 Note that for interval filters, it's best to use the hexadecimal
12450 form, because the revision is stored as a 16 bit packed BCD value;
12451 so the expression <tt>int:0x0100-0x0199</tt> will match any
12452 revision from <tt>1.0</tt> to <tt>1.99</tt>.
12453 </desc>
12454 </attribute>
12455
12456 <attribute name="manufacturer" type="wstring">
12457 <desc>
12458 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
12459 </desc>
12460 </attribute>
12461
12462 <attribute name="product" type="wstring">
12463 <desc>
12464 <link to="IUSBDevice::product">Product</link> filter.
12465 </desc>
12466 </attribute>
12467
12468 <attribute name="serialNumber" type="wstring">
12469 <desc>
12470 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
12471 </desc>
12472 </attribute>
12473
12474 <attribute name="port" type="wstring">
12475 <desc>
12476 <link to="IUSBDevice::port">Host USB port</link> filter.
12477 </desc>
12478 </attribute>
12479
12480 <attribute name="remote" type="wstring">
12481 <desc>
12482 <link to="IUSBDevice::remote">Remote state</link> filter.
12483 <note>
12484 This filter makes sense only for machine USB filters,
12485 i.e. it is ignored by IHostUSBDeviceFilter objects.
12486 </note>
12487 </desc>
12488 </attribute>
12489
12490 <attribute name="maskedInterfaces" type="unsigned long">
12491 <desc>
12492 This is an advanced option for hiding one or more USB interfaces
12493 from the guest. The value is a bit mask where the bits that are set
12494 means the corresponding USB interface should be hidden, masked off
12495 if you like.
12496 This feature only works on Linux hosts.
12497 </desc>
12498 </attribute>
12499
12500 </interface>
12501
12502
12503 <!--
12504 // IHostUSBDevice
12505 /////////////////////////////////////////////////////////////////////////
12506 -->
12507
12508 <enum
12509 name="USBDeviceState"
12510 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
12511 >
12512 <desc>
12513 USB device state. This enumeration represents all possible states
12514 of the USB device physically attached to the host computer regarding
12515 its state on the host computer and availability to guest computers
12516 (all currently running virtual machines).
12517
12518 Once a supported USB device is attached to the host, global USB
12519 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
12520 either ignore the device, or put it to USBDeviceState_Held state, or do
12521 nothing. Unless the device is ignored by global filters, filters of all
12522 currently running guests (<link to="IUSBController::deviceFilters"/>) are
12523 activated that can put it to USBDeviceState_Captured state.
12524
12525 If the device was ignored by global filters, or didn't match
12526 any filters at all (including guest ones), it is handled by the host
12527 in a normal way. In this case, the device state is determined by
12528 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
12529 or USBDeviceState_Available, depending on the current device usage.
12530
12531 Besides auto-capturing based on filters, the device can be manually
12532 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
12533 state is USBDeviceState_Busy, USBDeviceState_Available or
12534 USBDeviceState_Held.
12535
12536 <note>
12537 Due to differences in USB stack implementations in Linux and Win32,
12538 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
12539 only to the Linux version of the product. This also means that (<link
12540 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
12541 device state is USBDeviceState_Held.
12542 </note>
12543
12544 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
12545 </desc>
12546
12547 <const name="NotSupported" value="0">
12548 <desc>
12549 Not supported by the VirtualBox server, not available to guests.
12550 </desc>
12551 </const>
12552 <const name="Unavailable" value="1">
12553 <desc>
12554 Being used by the host computer exclusively,
12555 not available to guests.
12556 </desc>
12557 </const>
12558 <const name="Busy" value="2">
12559 <desc>
12560 Being used by the host computer, potentially available to guests.
12561 </desc>
12562 </const>
12563 <const name="Available" value="3">
12564 <desc>
12565 Not used by the host computer, available to guests (the host computer
12566 can also start using the device at any time).
12567 </desc>
12568 </const>
12569 <const name="Held" value="4">
12570 <desc>
12571 Held by the VirtualBox server (ignored by the host computer),
12572 available to guests.
12573 </desc>
12574 </const>
12575 <const name="Captured" value="5">
12576 <desc>
12577 Captured by one of the guest computers, not available
12578 to anybody else.
12579 </desc>
12580 </const>
12581 </enum>
12582
12583 <interface
12584 name="IHostUSBDevice" extends="IUSBDevice"
12585 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
12586 wsmap="managed"
12587 >
12588 <desc>
12589 The IHostUSBDevice interface represents a physical USB device attached
12590 to the host computer.
12591
12592 Besides properties inherited from IUSBDevice, this interface adds the
12593 <link to="#state"/> property that holds the current state of the USB
12594 device.
12595
12596 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
12597 </desc>
12598
12599 <attribute name="state" type="USBDeviceState" readonly="yes">
12600 <desc>
12601 Current state of the device.
12602 </desc>
12603 </attribute>
12604
12605 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
12606
12607 </interface>
12608
12609
12610 <!--
12611 // IHostUSBDeviceFilter
12612 /////////////////////////////////////////////////////////////////////////
12613 -->
12614
12615 <enum
12616 name="USBDeviceFilterAction"
12617 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12618 >
12619 <desc>
12620 Actions for host USB device filters.
12621 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12622 </desc>
12623
12624 <const name="Null" value="0">
12625 <desc>Null value (never used by the API).</desc>
12626 </const>
12627 <const name="Ignore" value="1">
12628 <desc>Ignore the matched USB device.</desc>
12629 </const>
12630 <const name="Hold" value="2">
12631 <desc>Hold the matched USB device.</desc>
12632 </const>
12633 </enum>
12634
12635 <interface
12636 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12637 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12638 wsmap="managed"
12639 >
12640 <desc>
12641 The IHostUSBDeviceFilter interface represents a global filter for a
12642 physical USB device used by the host computer. Used indirectly in
12643 <link to="IHost::USBDeviceFilters"/>.
12644
12645 Using filters of this type, the host computer determines the initial
12646 state of the USB device after it is physically attached to the
12647 host's USB controller.
12648
12649 <note>
12650 The <link to="#remote"/> attribute is ignored by this type of
12651 filters, because it makes sense only for
12652 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12653 </note>
12654
12655 <see>IHost::USBDeviceFilters</see>
12656 </desc>
12657
12658 <attribute name="action" type="USBDeviceFilterAction">
12659 <desc>
12660 Action performed by the host when an attached USB device
12661 matches this filter.
12662 </desc>
12663 </attribute>
12664
12665 </interface>
12666
12667 <!--
12668 // IAudioAdapter
12669 /////////////////////////////////////////////////////////////////////////
12670 -->
12671
12672 <enum
12673 name="AudioDriverType"
12674 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12675 >
12676 <desc>
12677 Host audio driver type.
12678 </desc>
12679
12680 <const name="Null" value="0">
12681 <desc>Null value, also means "dummy audio driver".</desc>
12682 </const>
12683 <const name="WinMM" value="1">
12684 <desc>Windows multimedia (Windows hosts only).</desc>
12685 </const>
12686 <const name="OSS" value="2">
12687 <desc>Open Sound System (Linux hosts only).</desc>
12688 </const>
12689 <const name="ALSA" value="3">
12690 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
12691 </const>
12692 <const name="DirectSound" value="4">
12693 <desc>DirectSound (Windows hosts only).</desc>
12694 </const>
12695 <const name="CoreAudio" value="5">
12696 <desc>CoreAudio (Mac hosts only).</desc>
12697 </const>
12698 <const name="MMPM" value="6">
12699 <desc>Reserved for historical reasons.</desc>
12700 </const>
12701 <const name="Pulse" value="7">
12702 <desc>PulseAudio (Linux hosts only).</desc>
12703 </const>
12704 <const name="SolAudio" value="8">
12705 <desc>Solaris audio (Solaris hosts only).</desc>
12706 </const>
12707 </enum>
12708
12709 <enum
12710 name="AudioControllerType"
12711 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12712 >
12713 <desc>
12714 Virtual audio controller type.
12715 </desc>
12716
12717 <const name="AC97" value="0"/>
12718 <const name="SB16" value="1"/>
12719 </enum>
12720
12721 <interface
12722 name="IAudioAdapter" extends="$unknown"
12723 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12724 wsmap="managed"
12725 >
12726 <desc>
12727 The IAudioAdapter interface represents the virtual audio adapter of
12728 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12729 </desc>
12730 <attribute name="enabled" type="boolean">
12731 <desc>
12732 Flag whether the audio adapter is present in the
12733 guest system. If disabled, the virtual guest hardware will
12734 not contain any audio adapter. Can only be changed when
12735 the VM is not running.
12736 </desc>
12737 </attribute>
12738 <attribute name="audioController" type="AudioControllerType">
12739 <desc>
12740 The audio hardware we emulate.
12741 </desc>
12742 </attribute>
12743 <attribute name="audioDriver" type="AudioDriverType">
12744 <desc>
12745 Audio driver the adapter is connected to. This setting
12746 can only be changed when the VM is not running.
12747 </desc>
12748 </attribute>
12749 </interface>
12750
12751 <!--
12752 // IVRDPServer
12753 /////////////////////////////////////////////////////////////////////////
12754 -->
12755
12756 <enum
12757 name="VRDPAuthType"
12758 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
12759 >
12760 <desc>
12761 VRDP authentication type.
12762 </desc>
12763
12764 <const name="Null" value="0">
12765 <desc>Null value, also means "no authentication".</desc>
12766 </const>
12767 <const name="External" value="1"/>
12768 <const name="Guest" value="2"/>
12769 </enum>
12770
12771 <interface
12772 name="IVRDPServer" extends="$unknown"
12773 uuid="72e671bc-1712-4052-ad6b-e45e76d9d3e4"
12774 wsmap="managed"
12775 >
12776 <attribute name="enabled" type="boolean">
12777 <desc>VRDP server status.</desc>
12778 </attribute>
12779
12780 <attribute name="ports" type="wstring">
12781 <desc>
12782 VRDP server port numbers. The server will try to bind to one of free ports from the list.
12783 <note>
12784 This is a string of comma separated TCP port numbers or port number ranges.
12785 Example <tt>5000,5010-5012,5015</tt>
12786 </note>
12787 </desc>
12788 </attribute>
12789
12790 <attribute name="netAddress" type="wstring">
12791 <desc>VRDP server address.</desc>
12792 </attribute>
12793
12794 <attribute name="authType" type="VRDPAuthType">
12795 <desc>VRDP authentication method.</desc>
12796 </attribute>
12797
12798 <attribute name="authTimeout" type="unsigned long">
12799 <desc>Timeout for guest authentication. Milliseconds.</desc>
12800 </attribute>
12801
12802 <attribute name="allowMultiConnection" type="boolean">
12803 <desc>
12804 Flag whether multiple simultaneous connections to the VM are permitted.
12805 Note that this will be replaced by a more powerful mechanism in the future.
12806 </desc>
12807 </attribute>
12808
12809 <attribute name="reuseSingleConnection" type="boolean">
12810 <desc>
12811 Flag whether the existing connection must be dropped and a new connection
12812 must be established by the VRDP server, when a new client connects in single
12813 connection mode.
12814 </desc>
12815 </attribute>
12816
12817 </interface>
12818
12819
12820 <!--
12821 // ISharedFolder
12822 /////////////////////////////////////////////////////////////////////////
12823 -->
12824
12825 <interface
12826 name="ISharedFolder" extends="$unknown"
12827 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12828 wsmap="struct"
12829 >
12830 <desc>
12831 The ISharedFolder interface represents a folder in the host computer's
12832 file system accessible from the guest OS running inside a virtual
12833 machine using an associated logical name.
12834
12835 There are three types of shared folders:
12836 <ul>
12837 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12838 folders available to all virtual machines.</li>
12839 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12840 VM-specific shared folders available to the given virtual machine at
12841 startup.</li>
12842 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12843 VM-specific shared folders created in the session context (for
12844 example, when the virtual machine is running) and automatically
12845 discarded when the session is closed (the VM is powered off).</li>
12846 </ul>
12847
12848 Logical names of shared folders must be unique within the given scope
12849 (global, permanent or transient). However, they do not need to be unique
12850 across scopes. In this case, the definition of the shared folder in a
12851 more specific scope takes precedence over definitions in all other
12852 scopes. The order of precedence is (more specific to more general):
12853 <ol>
12854 <li>Transient definitions</li>
12855 <li>Permanent definitions</li>
12856 <li>Global definitions</li>
12857 </ol>
12858
12859 For example, if MyMachine has a shared folder named
12860 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12861 transient shared folder named <tt>C_DRIVE</tt> (that points
12862 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12863 of <tt>C_DRIVE</tt> in the guest OS so
12864 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12865 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12866 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12867 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12868 to <tt>C:\\</tt> if it still exists.
12869
12870 Note that permanent and transient shared folders of different machines
12871 are in different name spaces, so they don't overlap and don't need to
12872 have unique logical names.
12873
12874 <note>
12875 Global shared folders are not implemented in the current version of the
12876 product.
12877 </note>
12878 </desc>
12879
12880 <attribute name="name" type="wstring" readonly="yes">
12881 <desc>Logical name of the shared folder.</desc>
12882 </attribute>
12883
12884 <attribute name="hostPath" type="wstring" readonly="yes">
12885 <desc>Full path to the shared folder in the host file system.</desc>
12886 </attribute>
12887
12888 <attribute name="accessible" type="boolean" readonly="yes">
12889 <desc>
12890 Whether the folder defined by the host path is currently
12891 accessible or not.
12892 For example, the folder can be unaccessible if it is placed
12893 on the network share that is not available by the time
12894 this property is read.
12895 </desc>
12896 </attribute>
12897
12898 <attribute name="writable" type="boolean" readonly="yes">
12899 <desc>
12900 Whether the folder defined by the host path is writable or
12901 not.
12902 </desc>
12903 </attribute>
12904
12905 <attribute name="lastAccessError" type="wstring" readonly="yes">
12906 <desc>
12907 Text message that represents the result of the last accessibility
12908 check.
12909
12910 Accessibility checks are performed each time the <link to="#accessible"/>
12911 attribute is read. An empty string is returned if the last
12912 accessibility check was successful. A non-empty string indicates a
12913 failure and should normally describe a reason of the failure (for
12914 example, a file read error).
12915 </desc>
12916 </attribute>
12917
12918 </interface>
12919
12920 <!--
12921 // ISession
12922 /////////////////////////////////////////////////////////////////////////
12923 -->
12924
12925 <interface
12926 name="IInternalSessionControl" extends="$unknown"
12927 uuid="f9aac6d0-41b3-46b7-bea4-6370b4036de6"
12928 internal="yes"
12929 wsmap="suppress"
12930 >
12931 <method name="getPID">
12932 <desc>PID of the process that has created this Session object.
12933 </desc>
12934 <param name="pid" type="unsigned long" dir="return"/>
12935 </method>
12936
12937 <method name="getRemoteConsole">
12938 <desc>
12939 Returns the console object suitable for remote control.
12940
12941 <result name="VBOX_E_INVALID_VM_STATE">
12942 Session state prevents operation.
12943 </result>
12944 <result name="VBOX_E_INVALID_OBJECT_STATE">
12945 Session type prevents operation.
12946 </result>
12947
12948 </desc>
12949 <param name="console" type="IConsole" dir="return"/>
12950 </method>
12951
12952 <method name="assignMachine">
12953 <desc>
12954 Assigns the machine object associated with this direct-type
12955 session or informs the session that it will be a remote one
12956 (if @a machine == @c null).
12957
12958 <result name="VBOX_E_INVALID_VM_STATE">
12959 Session state prevents operation.
12960 </result>
12961 <result name="VBOX_E_INVALID_OBJECT_STATE">
12962 Session type prevents operation.
12963 </result>
12964
12965 </desc>
12966 <param name="machine" type="IMachine" dir="in"/>
12967 </method>
12968
12969 <method name="assignRemoteMachine">
12970 <desc>
12971 Assigns the machine and the (remote) console object associated with
12972 this remote-type session.
12973
12974 <result name="VBOX_E_INVALID_VM_STATE">
12975 Session state prevents operation.
12976 </result>
12977
12978 </desc>
12979 <param name="machine" type="IMachine" dir="in"/>
12980 <param name="console" type="IConsole" dir="in"/>
12981 </method>
12982
12983 <method name="updateMachineState">
12984 <desc>
12985 Updates the machine state in the VM process.
12986 Must be called only in certain cases
12987 (see the method implementation).
12988
12989 <result name="VBOX_E_INVALID_VM_STATE">
12990 Session state prevents operation.
12991 </result>
12992 <result name="VBOX_E_INVALID_OBJECT_STATE">
12993 Session type prevents operation.
12994 </result>
12995
12996 </desc>
12997 <param name="aMachineState" type="MachineState" dir="in"/>
12998 </method>
12999
13000 <method name="uninitialize">
13001 <desc>
13002 Uninitializes (closes) this session. Used by VirtualBox to close
13003 the corresponding remote session when the direct session dies
13004 or gets closed.
13005
13006 <result name="VBOX_E_INVALID_VM_STATE">
13007 Session state prevents operation.
13008 </result>
13009
13010 </desc>
13011 </method>
13012
13013 <method name="onNetworkAdapterChange">
13014 <desc>
13015 Triggered when settings of a network adapter of the
13016 associated virtual machine have changed.
13017
13018 <result name="VBOX_E_INVALID_VM_STATE">
13019 Session state prevents operation.
13020 </result>
13021 <result name="VBOX_E_INVALID_OBJECT_STATE">
13022 Session type prevents operation.
13023 </result>
13024
13025 </desc>
13026 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
13027 <param name="changeAdapter" type="boolean" dir="in"/>
13028 </method>
13029
13030 <method name="onSerialPortChange">
13031 <desc>
13032 Triggered when settings of a serial port of the
13033 associated virtual machine have changed.
13034
13035 <result name="VBOX_E_INVALID_VM_STATE">
13036 Session state prevents operation.
13037 </result>
13038 <result name="VBOX_E_INVALID_OBJECT_STATE">
13039 Session type prevents operation.
13040 </result>
13041
13042 </desc>
13043 <param name="serialPort" type="ISerialPort" dir="in"/>
13044 </method>
13045
13046 <method name="onParallelPortChange">
13047 <desc>
13048 Triggered when settings of a parallel port of the
13049 associated virtual machine have changed.
13050
13051 <result name="VBOX_E_INVALID_VM_STATE">
13052 Session state prevents operation.
13053 </result>
13054 <result name="VBOX_E_INVALID_OBJECT_STATE">
13055 Session type prevents operation.
13056 </result>
13057
13058 </desc>
13059 <param name="parallelPort" type="IParallelPort" dir="in"/>
13060 </method>
13061
13062 <method name="onStorageControllerChange">
13063 <desc>
13064 Triggered when settings of a storage controller of the
13065 associated virtual machine have changed.
13066
13067 <result name="VBOX_E_INVALID_VM_STATE">
13068 Session state prevents operation.
13069 </result>
13070 <result name="VBOX_E_INVALID_OBJECT_STATE">
13071 Session type prevents operation.
13072 </result>
13073
13074 </desc>
13075 </method>
13076
13077 <method name="onMediumChange">
13078 <desc>
13079 Triggered when attached media of the
13080 associated virtual machine have changed.
13081
13082 <result name="VBOX_E_INVALID_VM_STATE">
13083 Session state prevents operation.
13084 </result>
13085 <result name="VBOX_E_INVALID_OBJECT_STATE">
13086 Session type prevents operation.
13087 </result>
13088
13089 </desc>
13090
13091 <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
13092 <param name="force" type="boolean" dir="in"/>
13093 </method>
13094
13095 <method name="onCPUChange">
13096 <desc>
13097 Notification when a CPU changes.
13098 </desc>
13099 <param name="cpu" type="unsigned long" dir="in">
13100 <desc>The CPU which changed</desc>
13101 </param>
13102 <param name="add" type="boolean" dir="in">
13103 <desc>Flag whether the CPU was added or removed</desc>
13104 </param>
13105 </method>
13106
13107 <method name="onVRDPServerChange">
13108 <desc>
13109 Triggered when settings of the VRDP server object of the
13110 associated virtual machine have changed.
13111
13112 <result name="VBOX_E_INVALID_VM_STATE">
13113 Session state prevents operation.
13114 </result>
13115 <result name="VBOX_E_INVALID_OBJECT_STATE">
13116 Session type prevents operation.
13117 </result>
13118
13119 </desc>
13120 </method>
13121
13122 <method name="onUSBControllerChange">
13123 <desc>
13124 Triggered when settings of the USB controller object of the
13125 associated virtual machine have changed.
13126
13127 <result name="VBOX_E_INVALID_VM_STATE">
13128 Session state prevents operation.
13129 </result>
13130 <result name="VBOX_E_INVALID_OBJECT_STATE">
13131 Session type prevents operation.
13132 </result>
13133
13134 </desc>
13135 </method>
13136
13137 <method name="onSharedFolderChange">
13138 <desc>
13139 Triggered when a permanent (global or machine) shared folder has been
13140 created or removed.
13141 <note>
13142 We don't pass shared folder parameters in this notification because
13143 the order in which parallel notifications are delivered is not defined,
13144 therefore it could happen that these parameters were outdated by the
13145 time of processing this notification.
13146 </note>
13147
13148 <result name="VBOX_E_INVALID_VM_STATE">
13149 Session state prevents operation.
13150 </result>
13151 <result name="VBOX_E_INVALID_OBJECT_STATE">
13152 Session type prevents operation.
13153 </result>
13154
13155 </desc>
13156 <param name="global" type="boolean" dir="in"/>
13157 </method>
13158
13159 <method name="onUSBDeviceAttach">
13160 <desc>
13161 Triggered when a request to capture a USB device (as a result
13162 of matched USB filters or direct call to
13163 <link to="IConsole::attachUSBDevice"/>) has completed.
13164 A @c null @a error object means success, otherwise it
13165 describes a failure.
13166
13167 <result name="VBOX_E_INVALID_VM_STATE">
13168 Session state prevents operation.
13169 </result>
13170 <result name="VBOX_E_INVALID_OBJECT_STATE">
13171 Session type prevents operation.
13172 </result>
13173
13174 </desc>
13175 <param name="device" type="IUSBDevice" dir="in"/>
13176 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
13177 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
13178 </method>
13179
13180 <method name="onUSBDeviceDetach">
13181 <desc>
13182 Triggered when a request to release the USB device (as a result
13183 of machine termination or direct call to
13184 <link to="IConsole::detachUSBDevice"/>) has completed.
13185 A @c null @a error object means success, otherwise it
13186 describes a failure.
13187
13188 <result name="VBOX_E_INVALID_VM_STATE">
13189 Session state prevents operation.
13190 </result>
13191 <result name="VBOX_E_INVALID_OBJECT_STATE">
13192 Session type prevents operation.
13193 </result>
13194
13195 </desc>
13196 <param name="id" type="uuid" mod="string" dir="in"/>
13197 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
13198 </method>
13199
13200 <method name="onShowWindow">
13201 <desc>
13202 Called by <link to="IMachine::canShowConsoleWindow"/> and by
13203 <link to="IMachine::showConsoleWindow"/> in order to notify
13204 console callbacks
13205 <link to="IConsoleCallback::onCanShowWindow"/>
13206 and <link to="IConsoleCallback::onShowWindow"/>.
13207
13208 <result name="VBOX_E_INVALID_OBJECT_STATE">
13209 Session type prevents operation.
13210 </result>
13211
13212 </desc>
13213 <param name="check" type="boolean" dir="in"/>
13214 <param name="canShow" type="boolean" dir="out"/>
13215 <param name="winId" type="unsigned long long" dir="out"/>
13216 </method>
13217
13218 <method name="accessGuestProperty">
13219 <desc>
13220 Called by <link to="IMachine::getGuestProperty"/> and by
13221 <link to="IMachine::setGuestProperty"/> in order to read and
13222 modify guest properties.
13223
13224 <result name="VBOX_E_INVALID_VM_STATE">
13225 Machine session is not open.
13226 </result>
13227 <result name="VBOX_E_INVALID_OBJECT_STATE">
13228 Session type is not direct.
13229 </result>
13230
13231 </desc>
13232 <param name="name" type="wstring" dir="in"/>
13233 <param name="value" type="wstring" dir="in"/>
13234 <param name="flags" type="wstring" dir="in"/>
13235 <param name="isSetter" type="boolean" dir="in"/>
13236 <param name="retValue" type="wstring" dir="out"/>
13237 <param name="retTimestamp" type="unsigned long long" dir="out"/>
13238 <param name="retFlags" type="wstring" dir="out"/>
13239 </method>
13240
13241 <method name="enumerateGuestProperties">
13242 <desc>
13243 Return a list of the guest properties matching a set of patterns along
13244 with their values, time stamps and flags.
13245
13246 <result name="VBOX_E_INVALID_VM_STATE">
13247 Machine session is not open.
13248 </result>
13249 <result name="VBOX_E_INVALID_OBJECT_STATE">
13250 Session type is not direct.
13251 </result>
13252
13253 </desc>
13254 <param name="patterns" type="wstring" dir="in">
13255 <desc>
13256 The patterns to match the properties against as a comma-separated
13257 string. If this is empty, all properties currently set will be
13258 returned.
13259 </desc>
13260 </param>
13261 <param name="key" type="wstring" dir="out" safearray="yes">
13262 <desc>
13263 The key names of the properties returned.
13264 </desc>
13265 </param>
13266 <param name="value" type="wstring" dir="out" safearray="yes">
13267 <desc>
13268 The values of the properties returned. The array entries match the
13269 corresponding entries in the @a key array.
13270 </desc>
13271 </param>
13272 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
13273 <desc>
13274 The time stamps of the properties returned. The array entries match
13275 the corresponding entries in the @a key array.
13276 </desc>
13277 </param>
13278 <param name="flags" type="wstring" dir="out" safearray="yes">
13279 <desc>
13280 The flags of the properties returned. The array entries match the
13281 corresponding entries in the @a key array.
13282 </desc>
13283 </param>
13284 </method>
13285
13286 </interface>
13287
13288 <interface
13289 name="ISession" extends="$unknown"
13290 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
13291 wsmap="managed"
13292 >
13293 <desc>
13294 The ISession interface represents a serialization primitive for virtual
13295 machines.
13296
13297 With VirtualBox, every time one wishes to manipulate a virtual machine
13298 (e.g. change its settings or start execution), a session object is
13299 required. Such an object must be passed to one of the session methods
13300 that open the given session, which then initiates the machine manipulation.
13301
13302 A session serves several purposes: it identifies to the inter-process VirtualBox
13303 code which process is currently working with the virtual machine, and it ensures
13304 that there are no incompatible requests from several processes for the
13305 same virtual machine. Session objects can therefore be thought of as mutex
13306 semaphores that lock virtual machines to prevent conflicting accesses from
13307 several processes.
13308
13309 How sessions objects are used depends on whether you use the Main API
13310 via COM or via the webservice:
13311
13312 <ul>
13313 <li>When using the COM API directly, an object of the Session class from the
13314 VirtualBox type library needs to be created. In regular COM C++ client code,
13315 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
13316 This object will then act as a local session object in further calls to open
13317 a session.
13318 </li>
13319
13320 <li>In the webservice, the session manager (IWebsessionManager) instead creates
13321 one session object automatically when <link to="IWebsessionManager::logon" />
13322 is called. A managed object reference to that session object can be retrieved by
13323 calling <link to="IWebsessionManager::getSessionObject" />. This session object
13324 reference can then be used to open sessions.
13325 </li>
13326 </ul>
13327
13328 Sessions are mainly used in two variations:
13329
13330 <ul>
13331 <li>
13332 To start a virtual machine in a separate process, one would call
13333 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
13334 object as its first parameter. This session then identifies the caller
13335 and lets him control the started machine (for example, pause machine
13336 execution or power it down) as well as be notified about machine
13337 execution state changes.
13338 </li>
13339
13340 <li>To alter machine settings, or to start machine execution within the
13341 current process, one needs to open a direct session for the machine first by
13342 calling <link to="IVirtualBox::openSession"/>. While a direct session
13343 is open within one process, no any other process may open another direct
13344 session for the same machine. This prevents the machine from being changed
13345 by other processes while it is running or while the machine is being configured.
13346 </li>
13347 </ul>
13348
13349 One also can attach to an existing direct session already opened by
13350 another process (for example, in order to send a control request to the
13351 virtual machine such as the pause or the reset request). This is done by
13352 calling <link to="IVirtualBox::openExistingSession"/>.
13353
13354 <note>
13355 Unless you are trying to write a new VirtualBox front-end that
13356 performs direct machine execution (like the VirtualBox or VBoxSDL
13357 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
13358 session opened by <link to="IVirtualBox::openSession"/> and use this
13359 session only to change virtual machine settings. If you simply want to
13360 start virtual machine execution using one of the existing front-ends
13361 (for example the VirtualBox GUI or headless server), simply use
13362 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
13363 will power up the machine automatically for you.
13364 </note>
13365 </desc>
13366
13367 <attribute name="state" type="SessionState" readonly="yes">
13368 <desc>Current state of this session.</desc>
13369 </attribute>
13370
13371 <attribute name="type" type="SessionType" readonly="yes">
13372 <desc>
13373 Type of this session. The value of this attribute is valid only
13374 if the session is currently open (i.e. its #state is
13375 SessionType_SessionOpen), otherwise an error will be returned.
13376 </desc>
13377 </attribute>
13378
13379 <attribute name="machine" type="IMachine" readonly="yes">
13380 <desc>Machine object associated with this session.</desc>
13381 </attribute>
13382
13383 <attribute name="console" type="IConsole" readonly="yes">
13384 <desc>Console object associated with this session.</desc>
13385 </attribute>
13386
13387 <method name="close">
13388 <desc>
13389 Closes a session that was previously opened.
13390
13391 It is recommended that every time an "open session" method (such as
13392 <link to="IVirtualBox::openRemoteSession" /> or
13393 <link to="IVirtualBox::openSession" />) has been called to
13394 manipulate a virtual machine, the caller invoke
13395 ISession::close() when it's done doing so. Since sessions are
13396 serialization primitives much like ordinary mutexes, they are
13397 best used the same way: for each "open" call, there should be
13398 a matching "close" call, even when errors occur.
13399
13400 Otherwise, if a direct session for a machine opened with
13401 <link to="IVirtualBox::openSession"/> is not explicitly closed
13402 when the application terminates, the state of the machine will
13403 be set to <link to="MachineState_Aborted" /> on the server.
13404
13405 Generally, it is recommended to close all open sessions explicitly
13406 before terminating the application (regardless of the reason for
13407 the termination).
13408
13409 <note>
13410 Do not expect the session state (<link to="ISession::state" />
13411 to return to "Closed" immediately after you invoke
13412 ISession::close(), particularly if you have started a remote
13413 session to execute the VM in a new process. The session state will
13414 automatically return to "Closed" once the VM is no longer executing,
13415 which can of course take a very long time.
13416 </note>
13417
13418 <result name="E_UNEXPECTED">
13419 Session is not open.
13420 </result>
13421
13422 </desc>
13423 </method>
13424
13425 </interface>
13426
13427 <!--
13428 // IStorageController
13429 /////////////////////////////////////////////////////////////////////////
13430 -->
13431
13432 <enum
13433 name="StorageBus"
13434 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
13435 >
13436 <desc>
13437 The bus type of the storage controller (IDE, SATA, SCSI or Floppy);
13438 see <link to="IStorageController::bus" />.
13439 </desc>
13440 <const name="Null" value="0">
13441 <desc>@c null value. Never used by the API.</desc>
13442 </const>
13443 <const name="IDE" value="1"/>
13444 <const name="SATA" value="2"/>
13445 <const name="SCSI" value="3"/>
13446 <const name="Floppy" value="4"/>
13447 <const name="SAS" value="5"/>
13448 </enum>
13449
13450 <enum
13451 name="StorageControllerType"
13452 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
13453 >
13454 <desc>
13455 The exact variant of storage controller hardware presented
13456 to the guest; see <link to="IStorageController::controllerType" />.
13457 </desc>
13458
13459 <const name="Null" value="0">
13460 <desc>@c null value. Never used by the API.</desc>
13461 </const>
13462 <const name="LsiLogic" value="1">
13463 <desc>A SCSI controller of the LsiLogic variant.</desc>
13464 </const>
13465 <const name="BusLogic" value="2">
13466 <desc>A SCSI controller of the BusLogic variant.</desc>
13467 </const>
13468 <const name="IntelAhci" value="3">
13469 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
13470 </const>
13471 <const name="PIIX3" value="4">
13472 <desc>An IDE controller of the PIIX3 variant.</desc>
13473 </const>
13474 <const name="PIIX4" value="5">
13475 <desc>An IDE controller of the PIIX4 variant.</desc>
13476 </const>
13477 <const name="ICH6" value="6">
13478 <desc>An IDE controller of the ICH6 variant.</desc>
13479 </const>
13480 <const name="I82078" value="7">
13481 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
13482 </const>
13483 <const name="LsiLogicSas" value="8">
13484 <desc>A variant of the LsiLogic controller using SAS.</desc>
13485 </const>
13486 </enum>
13487
13488 <interface
13489 name="IStorageController" extends="$unknown"
13490 uuid="ce37b7a9-d895-4ee8-b9f8-9579bfc85813"
13491 wsmap="managed"
13492 >
13493 <desc>
13494 Represents a storage controller that is attached to a virtual machine
13495 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
13496 attached to storage controllers in a real computer, virtual drives
13497 (represented by <link to="IMediumAttachment" />) are attached to virtual
13498 storage controllers, represented by this interface.
13499
13500 As opposed to physical hardware, VirtualBox has a very generic concept
13501 of a storage controller, and for purposes of the Main API, all virtual
13502 storage is attached to virtual machines via instances of this interface.
13503 There are four types of such virtual storage controllers: IDE, SCSI, SATA
13504 and Floppy (see <link to="#bus" />). Depending on which of these four is
13505 used, certain sub-types may be available and can be selected in
13506 <link to="#controllerType" />.
13507
13508 Depending on these settings, the guest operating system might see
13509 significantly different virtual hardware.
13510 </desc>
13511
13512 <attribute name="name" type="wstring" readonly="yes">
13513 <desc>
13514 Name of the storage controller, as originally specified with
13515 <link to="IMachine::addStorageController" />. This then uniquely
13516 identifies this controller with other method calls such as
13517 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
13518 </desc>
13519 </attribute>
13520
13521 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
13522 <desc>
13523 Maximum number of devices which can be attached to one port.
13524 </desc>
13525 </attribute>
13526
13527 <attribute name="minPortCount" type="unsigned long" readonly="yes">
13528 <desc>
13529 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
13530 </desc>
13531 </attribute>
13532
13533 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
13534 <desc>
13535 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
13536 </desc>
13537 </attribute>
13538
13539 <attribute name="instance" type="unsigned long">
13540 <desc>
13541 The instance number of the device in the running VM.
13542 </desc>
13543 </attribute>
13544
13545 <attribute name="portCount" type="unsigned long">
13546 <desc>
13547 The number of currently usable ports on the controller.
13548 The minimum and maximum number of ports for one controller are
13549 stored in <link to="IStorageController::minPortCount"/>
13550 and <link to="IStorageController::maxPortCount"/>.
13551 </desc>
13552 </attribute>
13553
13554 <attribute name="bus" type="StorageBus" readonly="yes">
13555 <desc>
13556 The bus type of the storage controller (IDE, SATA, SCSI or Floppy).
13557 </desc>
13558 </attribute>
13559
13560 <attribute name="controllerType" type="StorageControllerType">
13561 <desc>
13562 The exact variant of storage controller hardware presented
13563 to the guest.
13564 Depending on this value, VirtualBox will provide a different
13565 virtual storage controller hardware to the guest.
13566 For SATA and floppy controllers, only one variant is available,
13567 but for IDE and SCSI, there are several.
13568
13569 For SCSI controllers, the default type is LsiLogic.
13570 </desc>
13571 </attribute>
13572
13573 <method name="getIDEEmulationPort">
13574 <desc>
13575 Gets the corresponding port number which is emulated as an IDE device.
13576 Works only with SATA controllers.
13577
13578 <result name="E_INVALIDARG">
13579 The @a devicePosition is not in the range 0 to 3.
13580 </result>
13581 <result name="E_NOTIMPL">
13582 The storage controller type is not SATAIntelAhci.
13583 </result>
13584
13585 </desc>
13586 <param name="devicePosition" type="long" dir="in"/>
13587 <param name="portNumber" type="long" dir="return"/>
13588 </method>
13589
13590 <method name="setIDEEmulationPort">
13591 <desc>
13592 Sets the port number which is emulated as an IDE device.
13593 Works only with SATA controllers.
13594
13595 <result name="E_INVALIDARG">
13596 The @a devicePosition is not in the range 0 to 3 or the
13597 @a portNumber is not in the range 0 to 29.
13598 </result>
13599 <result name="E_NOTIMPL">
13600 The storage controller type is not SATAIntelAhci.
13601 </result>
13602
13603 </desc>
13604 <param name="devicePosition" type="long" dir="in"/>
13605 <param name="portNumber" type="long" dir="in"/>
13606 </method>
13607
13608 </interface>
13609
13610<if target="wsdl">
13611
13612 <!--
13613 // IManagedObjectRef
13614 /////////////////////////////////////////////////////////////////////////
13615 -->
13616
13617 <interface
13618 name="IManagedObjectRef" extends="$unknown"
13619 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
13620 internal="yes"
13621 wsmap="managed"
13622 wscpp="hardcoded"
13623 >
13624 <desc>
13625 Managed object reference.
13626
13627 Only within the webservice, a managed object reference (which is really
13628 an opaque number) allows a webservice client to address an object
13629 that lives in the address space of the webservice server.
13630
13631 Behind each managed object reference, there is a COM object that lives
13632 in the webservice server's address space. The COM object is not freed
13633 until the managed object reference is released, either by an explicit
13634 call to <link to="IManagedObjectRef::release" /> or by logging off from
13635 the webservice (<link to="IWebsessionManager::logoff" />), which releases
13636 all objects created during the webservice session.
13637
13638 Whenever a method call of the VirtualBox API returns a COM object, the
13639 webservice representation of that method will instead return a
13640 managed object reference, which can then be used to invoke methods
13641 on that object.
13642 </desc>
13643
13644 <method name="getInterfaceName">
13645 <desc>
13646 Returns the name of the interface that this managed object represents,
13647 for example, "IMachine", as a string.
13648 </desc>
13649 <param name="return" type="wstring" dir="return"/>
13650 </method>
13651
13652 <method name="release">
13653 <desc>
13654 Releases this managed object reference and frees the resources that
13655 were allocated for it in the webservice server process. After calling
13656 this method, the identifier of the reference can no longer be used.
13657 </desc>
13658 </method>
13659
13660 </interface>
13661
13662 <!--
13663 // IWebsessionManager
13664 /////////////////////////////////////////////////////////////////////////
13665 -->
13666
13667 <interface
13668 name="IWebsessionManager" extends="$unknown"
13669 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13670 internal="yes"
13671 wsmap="global"
13672 wscpp="hardcoded"
13673 >
13674 <desc>
13675 Websession manager. This provides essential services
13676 to webservice clients.
13677 </desc>
13678 <method name="logon">
13679 <desc>
13680 Logs a new client onto the webservice and returns a managed object reference to
13681 the IVirtualBox instance, which the client can then use as a basis to further
13682 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13683 interface, in one way or the other.
13684 </desc>
13685 <param name="username" type="wstring" dir="in"/>
13686 <param name="password" type="wstring" dir="in"/>
13687 <param name="return" type="IVirtualBox" dir="return"/>
13688 </method>
13689
13690 <method name="getSessionObject">
13691 <desc>
13692 Returns a managed object reference to the internal ISession object that was created
13693 for this web service session when the client logged on.
13694
13695 <see>ISession</see>
13696 </desc>
13697 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13698 <param name="return" type="ISession" dir="return"/>
13699 </method>
13700
13701 <method name="logoff">
13702 <desc>
13703 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13704 and destroys all resources associated with the session (most importantly, all
13705 managed objects created in the server while the session was active).
13706 </desc>
13707 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13708 </method>
13709
13710 </interface>
13711
13712</if>
13713
13714 <!--
13715 // IPerformanceCollector & friends
13716 /////////////////////////////////////////////////////////////////////////
13717 -->
13718
13719 <interface
13720 name="IPerformanceMetric" extends="$unknown"
13721 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13722 >
13723 <desc>
13724 The IPerformanceMetric interface represents parameters of the given
13725 performance metric.
13726 </desc>
13727
13728 <attribute name="metricName" type="wstring" readonly="yes">
13729 <desc>
13730 Name of the metric.
13731 </desc>
13732 </attribute>
13733
13734 <attribute name="object" type="$unknown" readonly="yes">
13735 <desc>
13736 Object this metric belongs to.
13737 </desc>
13738 </attribute>
13739
13740 <attribute name="description" type="wstring" readonly="yes">
13741 <desc>
13742 Textual description of the metric.
13743 </desc>
13744 </attribute>
13745
13746 <attribute name="period" type="unsigned long" readonly="yes">
13747 <desc>
13748 Time interval between samples, measured in seconds.
13749 </desc>
13750 </attribute>
13751
13752 <attribute name="count" type="unsigned long" readonly="yes">
13753 <desc>
13754 Number of recent samples retained by the performance collector for this
13755 metric.
13756
13757 When the collected sample count exceeds this number, older samples
13758 are discarded.
13759 </desc>
13760 </attribute>
13761
13762 <attribute name="unit" type="wstring" readonly="yes">
13763 <desc>
13764 Unit of measurement.
13765 </desc>
13766 </attribute>
13767
13768 <attribute name="minimumValue" type="long" readonly="yes">
13769 <desc>
13770 Minimum possible value of this metric.
13771 </desc>
13772 </attribute>
13773
13774 <attribute name="maximumValue" type="long" readonly="yes">
13775 <desc>
13776 Maximum possible value of this metric.
13777 </desc>
13778 </attribute>
13779 </interface>
13780
13781 <interface
13782 name="IPerformanceCollector" extends="$unknown"
13783 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13784 wsmap="managed"
13785 >
13786 <desc>
13787 The IPerformanceCollector interface represents a service that collects
13788 and stores performance metrics data.
13789
13790 Performance metrics are associated with objects of interfaces like IHost
13791 and IMachine. Each object has a distinct set of performance metrics. The
13792 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13793
13794 Metric data is collected at the specified intervals and is retained
13795 internally. The interval and the number of retained samples can be set
13796 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
13797 and collection settings are not persistent, they are discarded as soon as
13798 VBoxSVC process terminates. Moreover, metric settings and data associated
13799 with a particular VM only exist while VM is running. They disappear as
13800 soon as VM shuts down. It is not possible to set up metrics for machines
13801 that are powered off. One needs to start VM first, then set up metric
13802 collection parameters.
13803
13804 Metrics are organized hierarchically, with each level separated by a
13805 slash (/) character. Generally, the scheme for metric names is like this:
13806
13807 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13808
13809 "Category/Metric" together form the base metric name. A base metric is
13810 the smallest unit for which a sampling interval and the number of
13811 retained samples can be set. Only base metrics can be enabled and
13812 disabled. All sub-metrics are collected when their base metric is
13813 collected. Collected values for any set of sub-metrics can be queried
13814 with <link to="IPerformanceCollector::queryMetricsData" />.
13815
13816 For example "CPU/Load/User:avg" metric name stands for the "CPU"
13817 category, "Load" metric, "User" submetric, "average" aggregate. An
13818 aggregate function is computed over all retained data. Valid aggregate
13819 functions are:
13820
13821 <ul>
13822 <li>avg -- average</li>
13823 <li>min -- minimum</li>
13824 <li>max -- maximum</li>
13825 </ul>
13826
13827 When setting up metric parameters, querying metric data, enabling or
13828 disabling metrics wildcards can be used in metric names to specify a
13829 subset of metrics. For example, to select all CPU-related metrics
13830 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
13831 so on. To query metric values without aggregates <tt>*:</tt> can be used.
13832
13833 The valid names for base metrics are:
13834
13835 <ul>
13836 <li>CPU/Load</li>
13837 <li>CPU/MHz</li>
13838 <li>RAM/Usage</li>
13839 </ul>
13840
13841 The general sequence for collecting and retrieving the metrics is:
13842 <ul>
13843 <li>
13844 Obtain an instance of IPerformanceCollector with
13845 <link to="IVirtualBox::performanceCollector" />
13846 </li>
13847 <li>
13848 Allocate and populate an array with references to objects the metrics
13849 will be collected for. Use references to IHost and IMachine objects.
13850 </li>
13851 <li>
13852 Allocate and populate an array with base metric names the data will
13853 be collected for.
13854 </li>
13855 <li>
13856 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
13857 the metric data will be collected and stored.
13858 </li>
13859 <li>
13860 Wait for the data to get collected.
13861 </li>
13862 <li>
13863 Allocate and populate an array with references to objects the metric
13864 values will be queried for. You can re-use the object array used for
13865 setting base metrics.
13866 </li>
13867 <li>
13868 Allocate and populate an array with metric names the data will be
13869 collected for. Note that metric names differ from base metric names.
13870 </li>
13871 <li>
13872 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
13873 that have been collected so far are returned. Note that the values
13874 are still retained internally and data collection continues.
13875 </li>
13876 </ul>
13877
13878 For an example of usage refer to the following files in VirtualBox SDK:
13879 <ul>
13880 <li>
13881 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13882 </li>
13883 <li>
13884 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13885 </li>
13886 </ul>
13887 </desc>
13888
13889 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13890 <desc>
13891 Array of unique names of metrics.
13892
13893 This array represents all metrics supported by the performance
13894 collector. Individual objects do not necessarily support all of them.
13895 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13896 list of supported metrics for a particular object.
13897 </desc>
13898 </attribute>
13899
13900 <method name="getMetrics">
13901 <desc>
13902 Returns parameters of specified metrics for a set of objects.
13903 <note>
13904 @c Null metrics array means all metrics. @c Null object array means
13905 all existing objects.
13906 </note>
13907 </desc>
13908 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13909 <desc>
13910 Metric name filter. Currently, only a comma-separated list of metrics
13911 is supported.
13912 </desc>
13913 </param>
13914 <param name="objects" type="$unknown" dir="in" safearray="yes">
13915 <desc>
13916 Set of objects to return metric parameters for.
13917 </desc>
13918 </param>
13919 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13920 <desc>
13921 Array of returned metric parameters.
13922 </desc>
13923 </param>
13924 </method>
13925
13926 <method name="setupMetrics">
13927 <desc>
13928 Sets parameters of specified base metrics for a set of objects. Returns
13929 an array of <link to="IPerformanceMetric" /> describing the metrics
13930 have been affected.
13931 <note>
13932 @c Null or empty metric name array means all metrics. @c Null or
13933 empty object array means all existing objects. If metric name array
13934 contains a single element and object array contains many, the single
13935 metric name array element is applied to each object array element to
13936 form metric/object pairs.
13937 </note>
13938 </desc>
13939 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13940 <desc>
13941 Metric name filter. Comma-separated list of metrics with wildcard
13942 support.
13943 </desc>
13944 </param>
13945 <param name="objects" type="$unknown" dir="in" safearray="yes">
13946 <desc>
13947 Set of objects to setup metric parameters for.
13948 </desc>
13949 </param>
13950 <param name="period" type="unsigned long" dir="in">
13951 <desc>
13952 Time interval in seconds between two consecutive samples of
13953 performance data.
13954 </desc>
13955 </param>
13956 <param name="count" type="unsigned long" dir="in">
13957 <desc>
13958 Number of samples to retain in performance data history. Older
13959 samples get discarded.
13960 </desc>
13961 </param>
13962 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13963 <desc>
13964 Array of metrics that have been modified by the call to this method.
13965 </desc>
13966 </param>
13967 </method>
13968
13969 <method name="enableMetrics">
13970 <desc>
13971 Turns on collecting specified base metrics. Returns an array of
13972 <link to="IPerformanceMetric" /> describing the metrics have been
13973 affected.
13974 <note>
13975 @c Null or empty metric name array means all metrics. @c Null or
13976 empty object array means all existing objects. If metric name array
13977 contains a single element and object array contains many, the single
13978 metric name array element is applied to each object array element to
13979 form metric/object pairs.
13980 </note>
13981 </desc>
13982 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13983 <desc>
13984 Metric name filter. Comma-separated list of metrics with wildcard
13985 support.
13986 </desc>
13987 </param>
13988 <param name="objects" type="$unknown" dir="in" safearray="yes">
13989 <desc>
13990 Set of objects to enable metrics for.
13991 </desc>
13992 </param>
13993 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13994 <desc>
13995 Array of metrics that have been modified by the call to this method.
13996 </desc>
13997 </param>
13998 </method>
13999
14000 <method name="disableMetrics">
14001 <desc>
14002 Turns off collecting specified base metrics. Returns an array of
14003 <link to="IPerformanceMetric" /> describing the metrics have been
14004 affected.
14005 <note>
14006 @c Null or empty metric name array means all metrics. @c Null or
14007 empty object array means all existing objects. If metric name array
14008 contains a single element and object array contains many, the single
14009 metric name array element is applied to each object array element to
14010 form metric/object pairs.
14011 </note>
14012 </desc>
14013 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14014 <desc>
14015 Metric name filter. Comma-separated list of metrics with wildcard
14016 support.
14017 </desc>
14018 </param>
14019 <param name="objects" type="$unknown" dir="in" safearray="yes">
14020 <desc>
14021 Set of objects to disable metrics for.
14022 </desc>
14023 </param>
14024 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
14025 <desc>
14026 Array of metrics that have been modified by the call to this method.
14027 </desc>
14028 </param>
14029 </method>
14030
14031 <method name="queryMetricsData">
14032 <desc>
14033 Queries collected metrics data for a set of objects.
14034
14035 The data itself and related metric information are returned in seven
14036 parallel and one flattened array of arrays. Elements of
14037 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
14038 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
14039 the same index describe one set of values corresponding to a single
14040 metric.
14041
14042 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
14043 start and length of a sub-array is indicated by
14044 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
14045 value for metric <tt>metricNames[i]</tt> is at
14046 <tt>returnData[returnIndices[i]]</tt>.
14047
14048 <note>
14049 @c Null or empty metric name array means all metrics. @c Null or
14050 empty object array means all existing objects. If metric name array
14051 contains a single element and object array contains many, the single
14052 metric name array element is applied to each object array element to
14053 form metric/object pairs.
14054 </note>
14055 <note>
14056 Data collection continues behind the scenes after call to @c
14057 queryMetricsData. The return data can be seen as the snapshot of the
14058 current state at the time of @c queryMetricsData call. The internally
14059 kept metric values are not cleared by the call. This makes possible
14060 querying different subsets of metrics or aggregates with subsequent
14061 calls. If periodic querying is needed it is highly suggested to query
14062 the values with @c interval*count period to avoid confusion. This way
14063 a completely new set of data values will be provided by each query.
14064 </note>
14065 </desc>
14066 <param name="metricNames" type="wstring" dir="in" safearray="yes">
14067 <desc>
14068 Metric name filter. Comma-separated list of metrics with wildcard
14069 support.
14070 </desc>
14071 </param>
14072 <param name="objects" type="$unknown" dir="in" safearray="yes">
14073 <desc>
14074 Set of objects to query metrics for.
14075 </desc>
14076 </param>
14077 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
14078 <desc>
14079 Names of metrics returned in @c returnData.
14080 </desc>
14081 </param>
14082 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
14083 <desc>
14084 Objects associated with metrics returned in @c returnData.
14085 </desc>
14086 </param>
14087 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
14088 <desc>
14089 Units of measurement for each returned metric.
14090 </desc>
14091 </param>
14092 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
14093 <desc>
14094 Divisor that should be applied to return values in order to get
14095 floating point values. For example:
14096 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
14097 will retrieve the floating point value of i-th sample of the first
14098 metric.
14099 </desc>
14100 </param>
14101 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
14102 <desc>
14103 Sequence numbers of the first elements of value sequences of
14104 particular metrics returned in @c returnData. For aggregate metrics
14105 it is the sequence number of the sample the aggregate started
14106 calculation from.
14107 </desc>
14108 </param>
14109 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
14110 <desc>
14111 Indices of the first elements of value sequences of particular
14112 metrics returned in @c returnData.
14113 </desc>
14114 </param>
14115 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
14116 <desc>
14117 Lengths of value sequences of particular metrics.
14118 </desc>
14119 </param>
14120 <param name="returnData" type="long" dir="return" safearray="yes">
14121 <desc>
14122 Flattened array of all metric data containing sequences of values for
14123 each metric.
14124 </desc>
14125 </param>
14126 </method>
14127
14128 </interface>
14129
14130 <enum
14131 name="NATProtocol"
14132 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
14133 >
14134 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
14135 <const name="UDP" value="0">
14136 <desc>Port-forwarding uses UDP protocol.</desc>
14137 </const>
14138 <const name="TCP" value="1">
14139 <desc>Port-forwarding uses TCP protocol.</desc>
14140 </const>
14141 </enum>
14142
14143 <interface
14144 name="INATEngine" extends="$unknown"
14145 uuid="4b286616-eb03-11de-b0fb-1701eca42246"
14146 wsmap="managed"
14147 >
14148 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
14149 allows for changing NAT behavior such as port-forwarding rules. This interface is
14150 used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
14151 <attribute name="network" type="wstring">
14152 <desc>The network attribute of the NAT engine (the same value is used with built-in
14153 DHCP server to fill corresponding fields of DHCP leases).</desc>
14154 </attribute>
14155 <attribute name="hostIP" type="wstring">
14156 <desc>IP of host interface to bind all opened sockets to.
14157 <note>Changing this does not change binding of port forwarding.</note>
14158 </desc>
14159 </attribute>
14160 <attribute name="tftpPrefix" type="wstring">
14161 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
14162 the corresponding fields of DHCP leases.</desc>
14163 </attribute>
14164 <attribute name="tftpBootFile" type="wstring">
14165 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
14166 the corresponding fields of DHCP leases.</desc>
14167 </attribute>
14168 <attribute name="tftpNextServer" type="wstring">
14169 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
14170 the corresponding fields of DHCP leases.
14171 <note>The preferred form is IPv4 addresses.</note>
14172 </desc>
14173 </attribute>
14174 <attribute name="dnsPassDomain" type="boolean">
14175 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
14176 </attribute>
14177 <attribute name="dnsProxy" type="boolean">
14178 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
14179 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
14180 </attribute>
14181 <attribute name="dnsUseHostResolver" type="boolean">
14182 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
14183 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
14184 </attribute>
14185 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
14186 <desc>Array of NAT port-forwarding rules in string representation, in the following
14187 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
14188 </attribute>
14189 <method name="setNetworkSettings">
14190 <desc>Sets network configuration of the NAT engine.</desc>
14191 <param name="mtu" type="unsigned long" dir="in">
14192 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
14193 </param>
14194 <param name="sockSnd" type="unsigned long" dir="in">
14195 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
14196 </param>
14197 <param name="sockRcv" type="unsigned long" dir="in">
14198 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
14199 </param>
14200 <param name="TcpWndSnd" type="unsigned long" dir="in">
14201 <desc>Initial size of the NAT engine's sending TCP window in bytes when
14202 establishing a new TCP connection.</desc>
14203 </param>
14204 <param name="TcpWndRcv" type="unsigned long" dir="in">
14205 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
14206 establishing a new TCP connection.</desc>
14207 </param>
14208 </method>
14209 <method name="getNetworkSettings">
14210 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
14211 for parameter descriptions.</desc>
14212 <param name="mtu" type="unsigned long" dir="out" />
14213 <param name="sockSnd" type="unsigned long" dir="out" />
14214 <param name="sockRcv" type="unsigned long" dir="out" />
14215 <param name="TcpWndSnd" type="unsigned long" dir="out" />
14216 <param name="TcpWndRcv" type="unsigned long" dir="out" />
14217 </method>
14218 <method name="addRedirect">
14219 <desc>Adds a new NAT port-forwarding rule.</desc>
14220 <param name="name" type="wstring" dir="in">
14221 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
14222 auto-generates one using the other parameters.</desc>
14223 </param>
14224 <param name="proto" type="NATProtocol" dir="in">
14225 <desc>Protocol handled with the rule.</desc>
14226 </param>
14227 <param name="hostIp" type="wstring" dir="in">
14228 <desc>IP of the host interface to which the rule should apply. An empty ip address is
14229 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
14230 </param>
14231 <param name="hostPort" type="unsigned short" dir="in">
14232 <desc>The port number to listen on.</desc>
14233 </param>
14234 <param name="guestIp" type="wstring" dir="in">
14235 <desc>The IP address of the guest which the NAT engine will forward matching packets
14236 to. An empty IP address is acceptable, in which case the NAT engine will forward
14237 packets to the first DHCP lease (x.x.x.15).</desc>
14238 </param>
14239 <param name="guestPort" type="unsigned short" dir="in">
14240 <desc>The port number to forward.</desc>
14241 </param>
14242 </method>
14243 <method name="removeRedirect">
14244 <desc>Removes a port-forwarding rule that was previously registered.</desc>
14245 <param name="name" type="wstring" dir="in">
14246 <desc>The name of the rule to delete.</desc>
14247 </param>
14248 </method>
14249 </interface>
14250
14251 <module name="VBoxSVC" context="LocalServer">
14252 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
14253 namespace="virtualbox.org">
14254 <interface name="IVirtualBox" default="yes"/>
14255 </class>
14256 </module>
14257
14258 <module name="VBoxC" context="InprocServer" threadingModel="Free">
14259 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
14260 namespace="virtualbox.org">
14261 <interface name="ISession" default="yes"/>
14262 </class>
14263 <class name="CallbackWrapper" uuid="49EE8561-5563-4715-B18C-A4B1A490DAFE"
14264 namespace="virtualbox.org">
14265 <interface name="ILocalOwner" default="yes"/>
14266 <interface name="IVirtualBoxCallback"/>
14267 <interface name="IConsoleCallback"/>
14268 </class>
14269 </module>
14270
14271</library>
14272
14273</idl>
14274
14275<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette