VirtualBox

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

Last change on this file since 43041 was 43041, checked in by vboxsync, 12 years ago

Main/VirtualBox: final API change, cleans up optional parameters to IVirtualBox::createMachine, preparing for adding more flags.

  • Property svn:eol-style set to native
File size: 722.6 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2012 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109
110 The naming of methods and attributes is very clearly defined: they all start
111 with a lowercase letter (except if they start with an acronym), and are using
112 CamelCase style otherwise. This naming only applies to the IDL description,
113 and is modified by the various language bindings (some convert the first
114 character to upper case, some not). See the SDK reference for more details
115 about how to call a method or attribute from a specific programming language.
116</desc>
117
118<if target="midl">
119 <cpp line="enum {"/>
120 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
121 <cpp line=" kTypeLibraryMinorVersion = 0"/>
122 <cpp line="};"/>
123</if>
124
125<if target="xpidl">
126 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
127 <cpp>
128/* currently, nsISupportsImpl.h lacks the below-like macros */
129
130#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
131#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
132#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
133#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
134
135
136#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
137# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
138 NS_IMPL_THREADSAFE_ADDREF(_class) \
139 NS_IMPL_THREADSAFE_RELEASE(_class) \
140 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
141 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
142#endif
143
144#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
145# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
146 NS_IMPL_THREADSAFE_ADDREF(_class) \
147 NS_IMPL_THREADSAFE_RELEASE(_class) \
148 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
149 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
150#endif
151
152#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
153# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
154 NS_IMPL_THREADSAFE_ADDREF(_class) \
155 NS_IMPL_THREADSAFE_RELEASE(_class) \
156 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
157 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
158#endif
159
160#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
161# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
162 NS_IMPL_THREADSAFE_ADDREF(_class) \
163 NS_IMPL_THREADSAFE_RELEASE(_class) \
164 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
165 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
166#endif
167
168#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
169# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
170 NS_INTERFACE_MAP_BEGIN(_class) \
171 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
172 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
173 NS_IMPL_QUERY_CLASSINFO(_class) \
174 NS_INTERFACE_MAP_END
175#endif
176
177#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
178# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_INTERFACE_MAP_BEGIN(_class) \
181 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
182 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
183 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
184 NS_IMPL_QUERY_CLASSINFO(_class) \
185 NS_INTERFACE_MAP_END
186#endif
187
188#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
189# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
190 _i2, _ic2, _i3, _ic3) \
191 NS_INTERFACE_MAP_BEGIN(_class) \
192 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
193 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
194 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
195 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
196 NS_IMPL_QUERY_CLASSINFO(_class) \
197 NS_INTERFACE_MAP_END
198#endif
199
200#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
201#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
202#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
203
204#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
205# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
206 NS_IMPL_THREADSAFE_ADDREF(_class) \
207 NS_IMPL_THREADSAFE_RELEASE(_class) \
208 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
209 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
210#endif
211
212#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
213# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
214 _i2, _ic2) \
215 NS_IMPL_THREADSAFE_ADDREF(_class) \
216 NS_IMPL_THREADSAFE_RELEASE(_class) \
217 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
218 _i2, _ic2) \
219 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
220#endif
221
222#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
223# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
224 _i2, _ic2, _i3, _ic3) \
225 NS_IMPL_THREADSAFE_ADDREF(_class) \
226 NS_IMPL_THREADSAFE_RELEASE(_class) \
227 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
228 _i2, _ic2, _i3, _ic3) \
229 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
230#endif
231
232 </cpp>
233</if>
234
235<library
236 name="VirtualBox"
237 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
238 version="1.3"
239 desc="VirtualBox Type Library"
240 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
241 supportsErrorInfo="yes"
242>
243
244
245 <!--
246 // COM result codes for VirtualBox
247 /////////////////////////////////////////////////////////////////////////
248 -->
249
250 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
251 <desc>
252 This section describes all VirtualBox-specific COM result codes that may
253 be returned by methods of VirtualBox COM interfaces in addition to
254 standard COM result codes.
255
256 Note that along with the result code, every VirtualBox method returns
257 extended error information through the IVirtualBoxErrorInfo interface on
258 failure. This interface is a preferred way to present the error to the end
259 user because it contains a human readable description of the error. Raw
260 result codes, both standard and described in this section, are intended to
261 be used by programs to analyze the reason of a failure and select an
262 appropriate course of action without involving the end user (for example,
263 retry the operation later or make a different call).
264
265 The standard COM result codes that may originate from our methods include:
266
267 <table>
268 <tr><td>E_INVALIDARG</td>
269 <td>
270 Returned when the value of the method's argument is not within the range
271 of valid values. This should not be confused with situations when the
272 value is within the range but simply doesn't suit the current object
273 state and there is a possibility that it will be accepted later (in such
274 cases VirtualBox-specific codes are returned, for example,
275 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
276 </td>
277 </tr>
278 <tr><td>E_POINTER</td>
279 <td>
280 Returned if a memory pointer for the output argument is invalid (for
281 example, @c null). When pointers representing input arguments (such
282 as strings) are invalid, E_INVALIDARG is returned.
283 </td>
284 </tr>
285 <tr><td>E_ACCESSDENIED</td>
286 <td>
287 Returned when the called object is not ready. Since the lifetime of a
288 public COM object cannot be fully controlled by the implementation,
289 VirtualBox maintains the readiness state for all objects it creates and
290 returns this code in response to any method call on the object that was
291 deactivated by VirtualBox and is not functioning any more.
292 </td>
293 </tr>
294 <tr><td>E_OUTOFMEMORY</td>
295 <td>
296 Returned when a memory allocation operation fails.
297 </td>
298 </tr>
299 </table>
300 </desc>
301 </descGroup>
302
303 <!--
304 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
305 everything in <result>/<desc> after (and including) the first dot, so express
306 the matter of the error code in the first sentence and keep it short.
307 -->
308
309 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
310 <desc>
311 Object corresponding to the supplied arguments does not exist.
312 </desc>
313 </result>
314
315 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
316 <desc>
317 Current virtual machine state prevents the operation.
318 </desc>
319 </result>
320
321 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
322 <desc>
323 Virtual machine error occurred attempting the operation.
324 </desc>
325 </result>
326
327 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
328 <desc>
329 File not accessible or erroneous file contents.
330 </desc>
331 </result>
332
333 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
334 <desc>
335 Runtime subsystem error.
336 </desc>
337 </result>
338
339 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
340 <desc>
341 Pluggable Device Manager error.
342 </desc>
343 </result>
344
345 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
346 <desc>
347 Current object state prohibits operation.
348 </desc>
349 </result>
350
351 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
352 <desc>
353 Host operating system related error.
354 </desc>
355 </result>
356
357 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
358 <desc>
359 Requested operation is not supported.
360 </desc>
361 </result>
362
363 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
364 <desc>
365 Invalid XML found.
366 </desc>
367 </result>
368
369 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
370 <desc>
371 Current session state prohibits operation.
372 </desc>
373 </result>
374
375 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
376 <desc>
377 Object being in use prohibits operation.
378 </desc>
379 </result>
380
381 <!--
382 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
383 everything in <result>/<desc> after (and including) the first dot, so express
384 the matter of the error code in the first sentence and keep it short.
385 -->
386
387 <descGroup/>
388
389 <!--
390 // all common enums
391 /////////////////////////////////////////////////////////////////////////
392 -->
393
394 <enum
395 name="SettingsVersion"
396 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
397 >
398 <desc>
399 Settings version of VirtualBox settings files. This is written to
400 the "version" attribute of the root "VirtualBox" element in the settings
401 file XML and indicates which VirtualBox version wrote the file.
402 </desc>
403
404 <const name="Null" value="0">
405 <desc>Null value, indicates invalid version.</desc>
406 </const>
407 <const name="v1_0" value="1">
408 <desc>Legacy settings version, not currently supported.</desc>
409 </const>
410 <const name="v1_1" value="2">
411 <desc>Legacy settings version, not currently supported.</desc>
412 </const>
413 <const name="v1_2" value="3">
414 <desc>Legacy settings version, not currently supported.</desc>
415 </const>
416 <const name="v1_3pre" value="4">
417 <desc>Legacy settings version, not currently supported.</desc>
418 </const>
419 <const name="v1_3" value="5">
420 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
421 <!--
422 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
423 -->
424 </const>
425 <const name="v1_4" value="6">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
429 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
430 -->
431 </const>
432 <const name="v1_5" value="7">
433 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
434 <!--
435 2008-09-04: 2.0.0 released
436 2008-11-20: settings version 1.5 introduced
437 2008-12-17: 2.1.0 released
438 Machine changes:
439 guest OS identifiers changed;
440 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
441 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
442 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
443 -->
444 </const>
445 <const name="v1_6" value="8">
446 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
447 <!--
448 2008-12-17: 2.1.0 released
449 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
450 2009-04-08: 2.2.0 released
451 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
452 -->
453 </const>
454 <const name="v1_7" value="9">
455 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
456 <!--
457 2008-12-17: 2.1.0 released
458 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
459 2009-04-08: 2.2.0 released
460 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
461 Machine changes: HardDiskAttachments is now StorageControllers (done)
462 -->
463 </const>
464 <const name="v1_8" value="10">
465 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
466 <!--
467 Machine additions: Display/@accelerate2DVideo (done)
468 -->
469 </const>
470 <const name="v1_9" value="11">
471 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
472 <!--
473 The big storage controller / DVD / Floppy rework (done)
474 -->
475 </const>
476 <const name="v1_10" value="12">
477 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
478 <!--
479 Machine changes: RTC localOrUTC (done)
480 CPU hot-plug support
481 -->
482 </const>
483 <const name="v1_11" value="13">
484 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
485 <!--
486 Machine changes: HD Audio controller, per-machine disk registries,
487 /@format attribute for DVD and floppy images.
488 -->
489 </const>
490 <const name="v1_12" value="14">
491 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
492 <!--
493 Machine changes: raw PCI device attachment;
494 NetworkAdapter changes: bandwidth group.
495 -->
496 </const>
497 <const name="v1_13" value="15">
498 <desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
499 <!--
500 Machine changes: tracing config, groups, autostart;
501 NetworkAdapter changes: unit for bandwidth group limits.
502 -->
503 </const>
504
505 <const name="Future" value="99999">
506 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
507 </const>
508 </enum>
509
510 <enum
511 name="AccessMode"
512 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
513 >
514 <desc>
515 Access mode for opening files.
516 </desc>
517
518 <const name="ReadOnly" value="1"/>
519 <const name="ReadWrite" value="2"/>
520 </enum>
521
522 <enum
523 name="MachineState"
524 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
525 >
526 <desc>
527 Virtual machine execution state.
528
529 This enumeration represents possible values of the <link
530 to="IMachine::state"/> attribute.
531
532 Below is the basic virtual machine state diagram. It shows how the state
533 changes during virtual machine execution. The text in square braces shows
534 a method of the IConsole interface that performs the given state
535 transition.
536
537 <pre>
538 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
539 V |
540 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
541 | | | | V |
542 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
543 | | ^ | ^ |
544 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
545 | ^ | | | |
546 | | +-----------------------------------------+-|-------------------+ +
547 | | | | |
548 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
549 | | | |
550 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
551 | | |
552 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
553 </pre>
554
555 Note that states to the right from PoweredOff, Aborted and Saved in the
556 above diagram are called <i>online VM states</i>. These states
557 represent the virtual machine which is being executed in a dedicated
558 process (usually with a GUI window attached to it where you can see the
559 activity of the virtual machine and interact with it). There are two
560 special pseudo-states, FirstOnline and LastOnline, that can be used in
561 relational expressions to detect if the given machine state is online or
562 not:
563
564 <pre>
565 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
566 machine.GetState() &lt;= MachineState_LastOnline)
567 {
568 ...the machine is being executed...
569 }
570 </pre>
571
572 When the virtual machine is in one of the online VM states (that is, being
573 executed), only a few machine settings can be modified. Methods working
574 with such settings contain an explicit note about that. An attempt to
575 change any other setting or perform a modifying operation during this time
576 will result in the @c VBOX_E_INVALID_VM_STATE error.
577
578 All online states except Running, Paused and Stuck are transitional: they
579 represent temporary conditions of the virtual machine that will last as
580 long as the operation that initiated such a condition.
581
582 The Stuck state is a special case. It means that execution of the machine
583 has reached the "Guru Meditation" condition. This condition indicates an
584 internal VMM (virtual machine manager) failure which may happen as a
585 result of either an unhandled low-level virtual hardware exception or one
586 of the recompiler exceptions (such as the <i>too-many-traps</i>
587 condition).
588
589 Note also that any online VM state may transit to the Aborted state. This
590 happens if the process that is executing the virtual machine terminates
591 unexpectedly (for example, crashes). Other than that, the Aborted state is
592 equivalent to PoweredOff.
593
594 There are also a few additional state diagrams that do not deal with
595 virtual machine execution and therefore are shown separately. The states
596 shown on these diagrams are called <i>offline VM states</i> (this includes
597 PoweredOff, Aborted and Saved too).
598
599 The first diagram shows what happens when a lengthy setup operation is
600 being executed (such as <link to="IMachine::attachDevice"/>).
601
602 <pre>
603 +----------------------------------(same state as before the call)------+
604 | |
605 +-&gt; PoweredOff --+ |
606 | | |
607 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
608 | |
609 +-&gt; Saved -------+
610 </pre>
611
612 The next two diagrams demonstrate the process of taking a snapshot of a
613 powered off virtual machine, restoring the state to that as of a snapshot
614 or deleting a snapshot, respectively.
615
616 <pre>
617 +----------------------------------(same state as before the call)------+
618 | |
619 +-&gt; PoweredOff --+ |
620 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
621 +-&gt; Aborted -----+
622
623 +-&gt; PoweredOff --+
624 | |
625 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
626 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
627 +-&gt; Saved -------+ |
628 | |
629 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
630 </pre>
631
632 Note that the Saving state is present in both the offline state group and
633 online state group. Currently, the only way to determine what group is
634 assumed in a particular case is to remember the previous machine state: if
635 it was Running or Paused, then Saving is an online state, otherwise it is
636 an offline state. This inconsistency may be removed in one of the future
637 versions of VirtualBox by adding a new state.
638
639 <note internal="yes">
640 For whoever decides to touch this enum: In order to keep the
641 comparisons involving FirstOnline and LastOnline pseudo-states valid,
642 the numeric values of these states must be correspondingly updated if
643 needed: for any online VM state, the condition
644 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
645 @c true. The same relates to transient states for which
646 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
647 @c true.
648 </note>
649 </desc>
650
651 <const name="Null" value="0">
652 <desc>Null value (never used by the API).</desc>
653 </const>
654 <const name="PoweredOff" value="1">
655 <desc>
656 The machine is not running and has no saved execution state; it has
657 either never been started or been shut down successfully.
658 </desc>
659 </const>
660 <const name="Saved" value="2">
661 <desc>
662 The machine is not currently running, but the execution state of the machine
663 has been saved to an external file when it was running, from where
664 it can be resumed.
665 </desc>
666 </const>
667 <const name="Teleported" value="3">
668 <desc>
669 The machine was teleported to a different host (or process) and then
670 powered off. Take care when powering it on again may corrupt resources
671 it shares with the teleportation target (e.g. disk and network).
672 </desc>
673 </const>
674 <const name="Aborted" value="4">
675 <desc>
676 The process running the machine has terminated abnormally. This may
677 indicate a crash of the VM process in host execution context, or
678 the VM process has been terminated externally.
679 </desc>
680 </const>
681 <const name="Running" value="5">
682 <desc>
683 The machine is currently being executed.
684 <note internal="yes">
685 For whoever decides to touch this enum: In order to keep the
686 comparisons in the old source code valid, this state must immediately
687 precede the Paused state.
688 TODO: Lift this spectacularly wonderful restriction.
689 </note>
690 </desc>
691 </const>
692 <const name="Paused" value="6">
693 <desc>
694 Execution of the machine has been paused.
695 <note internal="yes">
696 For whoever decides to touch this enum: In order to keep the
697 comparisons in the old source code valid, this state must immediately
698 follow the Running state.
699 TODO: Lift this spectacularly wonderful restriction.
700 </note>
701 </desc>
702 </const>
703 <const name="Stuck" value="7">
704 <desc>
705 Execution of the machine has reached the "Guru Meditation"
706 condition. This indicates a severe error in the hypervisor itself.
707 <note internal="yes">
708 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
709 "Guru", perhaps? Or are there some other VMM states that are
710 intended to be lumped in here as well?
711 </note>
712 </desc>
713 </const>
714 <const name="Teleporting" value="8">
715 <desc>
716 The machine is about to be teleported to a different host or process.
717 It is possible to pause a machine in this state, but it will go to the
718 @c TeleportingPausedVM state and it will not be
719 possible to resume it again unless the teleportation fails.
720 </desc>
721 </const>
722 <const name="LiveSnapshotting" value="9">
723 <desc>
724 A live snapshot is being taken. The machine is running normally, but
725 some of the runtime configuration options are inaccessible. Also, if
726 paused while in this state it will transition to
727 @c Saving and it will not be resume the
728 execution until the snapshot operation has completed.
729 </desc>
730 </const>
731 <const name="Starting" value="10">
732 <desc>
733 Machine is being started after powering it on from a
734 zero execution state.
735 </desc>
736 </const>
737 <const name="Stopping" value="11">
738 <desc>
739 Machine is being normally stopped powering it off, or after the guest OS
740 has initiated a shutdown sequence.
741 </desc>
742 </const>
743 <const name="Saving" value="12">
744 <desc>
745 Machine is saving its execution state to a file, or an online
746 snapshot of the machine is being taken.
747 </desc>
748 </const>
749 <const name="Restoring" value="13">
750 <desc>
751 Execution state of the machine is being restored from a file
752 after powering it on from the saved execution state.
753 </desc>
754 </const>
755 <const name="TeleportingPausedVM" value="14">
756 <desc>
757 The machine is being teleported to another host or process, but it is
758 not running. This is the paused variant of the
759 @c state.
760 </desc>
761 </const>
762 <const name="TeleportingIn" value="15">
763 <desc>
764 Teleporting the machine state in from another host or process.
765 </desc>
766 </const>
767 <const name="FaultTolerantSyncing" value="16">
768 <desc>
769 The machine is being synced with a fault tolerant VM running elsewhere.
770 </desc>
771 </const>
772 <const name="DeletingSnapshotOnline" value="17">
773 <desc>
774 Like @c DeletingSnapshot, but the merging of media is ongoing in
775 the background while the machine is running.
776 </desc>
777 </const>
778 <const name="DeletingSnapshotPaused" value="18">
779 <desc>
780 Like @c DeletingSnapshotOnline, but the machine was paused when the
781 merging of differencing media was started.
782 </desc>
783 </const>
784 <const name="RestoringSnapshot" value="19">
785 <desc>
786 A machine snapshot is being restored; this typically does not take long.
787 </desc>
788 </const>
789 <const name="DeletingSnapshot" value="20">
790 <desc>
791 A machine snapshot is being deleted; this can take a long time since this
792 may require merging differencing media. This value indicates that the
793 machine is not running while the snapshot is being deleted.
794 </desc>
795 </const>
796 <const name="SettingUp" value="21">
797 <desc>
798 Lengthy setup operation is in progress.
799 </desc>
800 </const>
801
802 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
803 <desc>
804 Pseudo-state: first online state (for use in relational expressions).
805 </desc>
806 </const>
807 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
808 <desc>
809 Pseudo-state: last online state (for use in relational expressions).
810 </desc>
811 </const>
812
813 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
814 <desc>
815 Pseudo-state: first transient state (for use in relational expressions).
816 </desc>
817 </const>
818 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
819 <desc>
820 Pseudo-state: last transient state (for use in relational expressions).
821 </desc>
822 </const>
823
824 </enum>
825
826 <enum
827 name="SessionState"
828 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
829 >
830 <desc>
831 Session state. This enumeration represents possible values of
832 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
833 attributes.
834 </desc>
835
836 <const name="Null" value="0">
837 <desc>Null value (never used by the API).</desc>
838 </const>
839 <const name="Unlocked" value="1">
840 <desc>
841 In <link to="IMachine::sessionState"/>, this means that the machine
842 is not locked for any sessions.
843
844 In <link to="ISession::state"/>, this means that no machine is
845 currently locked for this session.
846 </desc>
847 </const>
848 <const name="Locked" value="2">
849 <desc>
850 In <link to="IMachine::sessionState"/>, this means that the machine
851 is currently locked for a session, whose process identifier can
852 then be found in the <link to="IMachine::sessionPID" /> attribute.
853
854 In <link to="ISession::state"/>, this means that a machine is
855 currently locked for this session, and the mutable machine object
856 can be found in the <link to="ISession::machine"/> attribute
857 (see <link to="IMachine::lockMachine" /> for details).
858 </desc>
859 </const>
860 <const name="Spawning" value="3">
861 <desc>
862 A new process is being spawned for the machine as a result of
863 <link to="IMachine::launchVMProcess"/> call. This state also occurs
864 as a short transient state during an <link to="IMachine::lockMachine"/>
865 call.
866 </desc>
867 </const>
868 <const name="Unlocking" value="4">
869 <desc>
870 The session is being unlocked.
871 </desc>
872 </const>
873 </enum>
874
875 <enum
876 name="CPUPropertyType"
877 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
878 >
879 <desc>
880 Virtual CPU property type. This enumeration represents possible values of the
881 IMachine get- and setCPUProperty methods.
882 </desc>
883 <const name="Null" value="0">
884 <desc>Null value (never used by the API).</desc>
885 </const>
886 <const name="PAE" value="1">
887 <desc>
888 This setting determines whether VirtualBox will expose the Physical Address
889 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
890 is not available, it will not be reported.
891 </desc>
892 </const>
893 <const name="Synthetic" value="2">
894 <desc>
895 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
896 teleporting between host systems that differ significantly.
897 </desc>
898 </const>
899 </enum>
900
901
902 <enum
903 name="HWVirtExPropertyType"
904 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
905 >
906 <desc>
907 Hardware virtualization property type. This enumeration represents possible values
908 for the <link to="IMachine::getHWVirtExProperty"/> and
909 <link to="IMachine::setHWVirtExProperty"/> methods.
910 </desc>
911 <const name="Null" value="0">
912 <desc>Null value (never used by the API).</desc>
913 </const>
914 <const name="Enabled" value="1">
915 <desc>
916 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
917 such extensions are not available, they will not be used.
918 </desc>
919 </const>
920 <const name="Exclusive" value="2">
921 <desc>
922 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
923 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
924 feature of the host. To share these with other hypervisors, you must disable this property.
925 </desc>
926 </const>
927 <const name="VPID" value="3">
928 <desc>
929 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
930 </desc>
931 </const>
932 <const name="NestedPaging" value="4">
933 <desc>
934 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
935 </desc>
936 </const>
937 <const name="LargePages" value="5">
938 <desc>
939 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
940 </desc>
941 </const>
942 <const name="Force" value="6">
943 <desc>
944 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
945 not set, there will be an automatic fallback to software virtualization.
946 </desc>
947 </const>
948 </enum>
949
950 <enum
951 name="FaultToleranceState"
952 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
953 >
954 <desc>
955 Used with <link to="IMachine::faultToleranceState" />.
956 </desc>
957 <const name="Inactive" value="1">
958 <desc>No fault tolerance enabled.</desc>
959 </const>
960 <const name="Master" value="2">
961 <desc>Fault tolerant master VM.</desc>
962 </const>
963 <const name="Standby" value="3">
964 <desc>Fault tolerant standby VM.</desc>
965 </const>
966 </enum>
967
968 <enum
969 name="LockType"
970 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
971 >
972 <desc>
973 Used with <link to="IMachine::lockMachine" />.
974 </desc>
975 <const name="Write" value="2">
976 <desc>Lock the machine for writing.</desc>
977 </const>
978 <const name="Shared" value="1">
979 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
980 </const>
981 <const name="VM" value="3">
982 <desc>Lock the machine for writing, and create objects necessary for
983 running a VM in this process.</desc>
984 </const>
985 </enum>
986
987 <enum
988 name="SessionType"
989 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
990 >
991 <desc>
992 Session type. This enumeration represents possible values of the
993 <link to="ISession::type"/> attribute.
994 </desc>
995
996 <const name="Null" value="0">
997 <desc>Null value (never used by the API).</desc>
998 </const>
999 <const name="WriteLock" value="1">
1000 <desc>
1001 Session has acquired an exclusive write lock on a machine
1002 using <link to="IMachine::lockMachine"/>.
1003 </desc>
1004 </const>
1005 <const name="Remote" value="2">
1006 <desc>
1007 Session has launched a VM process using
1008 <link to="IMachine::launchVMProcess"/>
1009 </desc>
1010 </const>
1011 <const name="Shared" value="3">
1012 <desc>
1013 Session has obtained a link to another session using
1014 <link to="IMachine::lockMachine"/>
1015 </desc>
1016 </const>
1017 </enum>
1018
1019 <enum
1020 name="DeviceType"
1021 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1022 >
1023 <desc>
1024 Device type.
1025 </desc>
1026 <const name="Null" value="0">
1027 <desc>
1028 Null value, may also mean "no device" (not allowed for
1029 <link to="IConsole::getDeviceActivity"/>).
1030 </desc>
1031 </const>
1032 <const name="Floppy" value="1">
1033 <desc>Floppy device.</desc>
1034 </const>
1035 <const name="DVD" value="2">
1036 <desc>CD/DVD-ROM device.</desc>
1037 </const>
1038 <const name="HardDisk" value="3">
1039 <desc>Hard disk device.</desc>
1040 </const>
1041 <const name="Network" value="4">
1042 <desc>Network device.</desc>
1043 </const>
1044 <const name="USB" value="5">
1045 <desc>USB device.</desc>
1046 </const>
1047 <const name="SharedFolder" value="6">
1048 <desc>Shared folder device.</desc>
1049 </const>
1050 </enum>
1051
1052 <enum
1053 name="DeviceActivity"
1054 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1055 >
1056 <desc>
1057 Device activity for <link to="IConsole::getDeviceActivity"/>.
1058 </desc>
1059
1060 <const name="Null" value="0"/>
1061 <const name="Idle" value="1"/>
1062 <const name="Reading" value="2"/>
1063 <const name="Writing" value="3"/>
1064 </enum>
1065
1066 <enum
1067 name="ClipboardMode"
1068 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1069 >
1070 <desc>
1071 Host-Guest clipboard interchange mode.
1072 </desc>
1073
1074 <const name="Disabled" value="0"/>
1075 <const name="HostToGuest" value="1"/>
1076 <const name="GuestToHost" value="2"/>
1077 <const name="Bidirectional" value="3"/>
1078 </enum>
1079
1080 <enum
1081 name="DragAndDropMode"
1082 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1083 >
1084 <desc>
1085 Drag'n'Drop interchange mode.
1086 </desc>
1087
1088 <const name="Disabled" value="0"/>
1089 <const name="HostToGuest" value="1"/>
1090 <const name="GuestToHost" value="2"/>
1091 <const name="Bidirectional" value="3"/>
1092 </enum>
1093
1094 <enum
1095 name="Scope"
1096 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1097 >
1098 <desc>
1099 Scope of the operation.
1100
1101 A generic enumeration used in various methods to define the action or
1102 argument scope.
1103 </desc>
1104
1105 <const name="Global" value="0"/>
1106 <const name="Machine" value="1"/>
1107 <const name="Session" value="2"/>
1108 </enum>
1109
1110 <enum
1111 name="BIOSBootMenuMode"
1112 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1113 >
1114 <desc>
1115 BIOS boot menu mode.
1116 </desc>
1117
1118 <const name="Disabled" value="0"/>
1119 <const name="MenuOnly" value="1"/>
1120 <const name="MessageAndMenu" value="2"/>
1121 </enum>
1122
1123 <enum
1124 name="ProcessorFeature"
1125 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1126 >
1127 <desc>
1128 CPU features.
1129 </desc>
1130
1131 <const name="HWVirtEx" value="0"/>
1132 <const name="PAE" value="1"/>
1133 <const name="LongMode" value="2"/>
1134 <const name="NestedPaging" value="3"/>
1135 </enum>
1136
1137 <enum
1138 name="FirmwareType"
1139 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1140 >
1141 <desc>
1142 Firmware type.
1143 </desc>
1144 <const name="BIOS" value="1">
1145 <desc>BIOS Firmware.</desc>
1146 </const>
1147 <const name="EFI" value="2">
1148 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1149 </const>
1150 <const name="EFI32" value="3">
1151 <desc>Efi firmware, 32-bit.</desc>
1152 </const>
1153 <const name="EFI64" value="4">
1154 <desc>Efi firmware, 64-bit.</desc>
1155 </const>
1156 <const name="EFIDUAL" value="5">
1157 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1158 </const>
1159 </enum>
1160
1161 <enum
1162 name="PointingHIDType"
1163 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1164 >
1165 <desc>
1166 Type of pointing device used in a virtual machine.
1167 </desc>
1168 <const name="None" value="1">
1169 <desc>No mouse.</desc>
1170 </const>
1171 <const name="PS2Mouse" value="2">
1172 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1173 </const>
1174 <const name="USBMouse" value="3">
1175 <desc>USB mouse (relative pointer).</desc>
1176 </const>
1177 <const name="USBTablet" value="4">
1178 <desc>USB tablet (absolute pointer).</desc>
1179 </const>
1180 <const name="ComboMouse" value="5">
1181 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1182 Using of such device can have negative performance implications. </desc>
1183 </const>
1184 </enum>
1185
1186 <enum
1187 name="KeyboardHIDType"
1188 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1189 >
1190 <desc>
1191 Type of keyboard device used in a virtual machine.
1192 </desc>
1193 <const name="None" value="1">
1194 <desc>No keyboard.</desc>
1195 </const>
1196 <const name="PS2Keyboard" value="2">
1197 <desc>PS/2 keyboard.</desc>
1198 </const>
1199 <const name="USBKeyboard" value="3">
1200 <desc>USB keyboard.</desc>
1201 </const>
1202 <const name="ComboKeyboard" value="4">
1203 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1204 Using of such device can have negative performance implications. </desc>
1205 </const>
1206 </enum>
1207
1208 <!--
1209 // IVirtualBoxErrorInfo
1210 /////////////////////////////////////////////////////////////////////////
1211 -->
1212
1213 <interface
1214 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1215 uuid="f91e6e91-49e1-4fd2-b21e-269003350d06"
1216 supportsErrorInfo="no"
1217 wsmap="managed"
1218 >
1219 <desc>
1220 The IVirtualBoxErrorInfo interface represents extended error information.
1221
1222 Extended error information can be set by VirtualBox components after
1223 unsuccessful or partially successful method invocation. This information
1224 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1225 and then shown to the client in addition to the plain 32-bit result code.
1226
1227 In MS COM, this interface extends the IErrorInfo interface,
1228 in XPCOM, it extends the nsIException interface. In both cases,
1229 it provides a set of common attributes to retrieve error
1230 information.
1231
1232 Sometimes invocation of some component's method may involve methods of
1233 other components that may also fail (independently of this method's
1234 failure), or a series of non-fatal errors may precede a fatal error that
1235 causes method failure. In cases like that, it may be desirable to preserve
1236 information about all errors happened during method invocation and deliver
1237 it to the caller. The <link to="#next"/> attribute is intended
1238 specifically for this purpose and allows to represent a chain of errors
1239 through a single IVirtualBoxErrorInfo object set after method invocation.
1240
1241 <note>errors are stored to a chain in the reverse order, i.e. the
1242 initial error object you query right after method invocation is the last
1243 error set by the callee, the object it points to in the @a next attribute
1244 is the previous error and so on, up to the first error (which is the last
1245 in the chain).</note>
1246 </desc>
1247
1248 <attribute name="resultCode" type="long" readonly="yes">
1249 <desc>
1250 Result code of the error.
1251 Usually, it will be the same as the result code returned
1252 by the method that provided this error information, but not
1253 always. For example, on Win32, CoCreateInstance() will most
1254 likely return E_NOINTERFACE upon unsuccessful component
1255 instantiation attempt, but not the value the component factory
1256 returned. Value is typed 'long', not 'result',
1257 to make interface usable from scripting languages.
1258 <note>
1259 In MS COM, there is no equivalent.
1260 In XPCOM, it is the same as nsIException::result.
1261 </note>
1262 </desc>
1263 </attribute>
1264
1265 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1266 <desc>
1267 UUID of the interface that defined the error.
1268 <note>
1269 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1270 data type.
1271 In XPCOM, there is no equivalent.
1272 </note>
1273 </desc>
1274 </attribute>
1275
1276 <attribute name="component" type="wstring" readonly="yes">
1277 <desc>
1278 Name of the component that generated the error.
1279 <note>
1280 In MS COM, it is the same as IErrorInfo::GetSource.
1281 In XPCOM, there is no equivalent.
1282 </note>
1283 </desc>
1284 </attribute>
1285
1286 <attribute name="text" type="wstring" readonly="yes">
1287 <desc>
1288 Text description of the error.
1289 <note>
1290 In MS COM, it is the same as IErrorInfo::GetDescription.
1291 In XPCOM, it is the same as nsIException::message.
1292 </note>
1293 </desc>
1294 </attribute>
1295
1296 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1297 <desc>
1298 Next error object if there is any, or @c null otherwise.
1299 <note>
1300 In MS COM, there is no equivalent.
1301 In XPCOM, it is the same as nsIException::inner.
1302 </note>
1303 </desc>
1304 </attribute>
1305
1306 </interface>
1307
1308 <!--
1309 // IVirtualBox
1310 /////////////////////////////////////////////////////////////////////////
1311 -->
1312
1313 <interface
1314 name="IDHCPServer" extends="$unknown"
1315 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1316 wsmap="managed"
1317 >
1318 <desc>
1319 The IDHCPServer interface represents the vbox DHCP server configuration.
1320
1321 To enumerate all the DHCP servers on the host, use the
1322 <link to="IVirtualBox::DHCPServers"/> attribute.
1323 </desc>
1324
1325 <attribute name="enabled" type="boolean">
1326 <desc>
1327 specifies if the DHCP server is enabled
1328 </desc>
1329 </attribute>
1330
1331 <attribute name="IPAddress" type="wstring" readonly="yes">
1332 <desc>
1333 specifies server IP
1334 </desc>
1335 </attribute>
1336
1337 <attribute name="networkMask" type="wstring" readonly="yes">
1338 <desc>
1339 specifies server network mask
1340 </desc>
1341 </attribute>
1342
1343 <attribute name="networkName" type="wstring" readonly="yes">
1344 <desc>
1345 specifies internal network name the server is used for
1346 </desc>
1347 </attribute>
1348
1349 <attribute name="lowerIP" type="wstring" readonly="yes">
1350 <desc>
1351 specifies from IP address in server address range
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="upperIP" type="wstring" readonly="yes">
1356 <desc>
1357 specifies to IP address in server address range
1358 </desc>
1359 </attribute>
1360
1361 <method name="setConfiguration">
1362 <desc>
1363 configures the server
1364 <result name="E_INVALIDARG">
1365 invalid configuration supplied
1366 </result>
1367 </desc>
1368 <param name="IPAddress" type="wstring" dir="in">
1369 <desc>
1370 server IP address
1371 </desc>
1372 </param>
1373 <param name="networkMask" type="wstring" dir="in">
1374 <desc>
1375 server network mask
1376 </desc>
1377 </param>
1378 <param name="FromIPAddress" type="wstring" dir="in">
1379 <desc>
1380 server From IP address for address range
1381 </desc>
1382 </param>
1383 <param name="ToIPAddress" type="wstring" dir="in">
1384 <desc>
1385 server To IP address for address range
1386 </desc>
1387 </param>
1388 </method>
1389
1390 <method name="start">
1391 <desc>
1392 Starts DHCP server process.
1393 <result name="E_FAIL">
1394 Failed to start the process.
1395 </result>
1396 </desc>
1397 <param name="networkName" type="wstring" dir="in">
1398 <desc>
1399 Name of internal network DHCP server should attach to.
1400 </desc>
1401 </param>
1402 <param name="trunkName" type="wstring" dir="in">
1403 <desc>
1404 Name of internal network trunk.
1405 </desc>
1406 </param>
1407 <param name="trunkType" type="wstring" dir="in">
1408 <desc>
1409 Type of internal network trunk.
1410 </desc>
1411 </param>
1412 </method>
1413
1414 <method name="stop">
1415 <desc>
1416 Stops DHCP server process.
1417 <result name="E_FAIL">
1418 Failed to stop the process.
1419 </result>
1420 </desc>
1421 </method>
1422 </interface>
1423
1424 <interface
1425 name="IVirtualBox" extends="$unknown"
1426 uuid="3b2f08eb-b810-4715-bee0-bb06b9880ad2"
1427 wsmap="managed"
1428 >
1429 <desc>
1430 The IVirtualBox interface represents the main interface exposed by the
1431 product that provides virtual machine management.
1432
1433 An instance of IVirtualBox is required for the product to do anything
1434 useful. Even though the interface does not expose this, internally,
1435 IVirtualBox is implemented as a singleton and actually lives in the
1436 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1437 IVirtualBox can track the state of all virtual machines on a particular
1438 host, regardless of which frontend started them.
1439
1440 To enumerate all the virtual machines on the host, use the
1441 <link to="IVirtualBox::machines"/> attribute.
1442 </desc>
1443
1444 <attribute name="version" type="wstring" readonly="yes">
1445 <desc>
1446 A string representing the version number of the product. The
1447 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1448 last number represents the build number and will frequently change.
1449
1450 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1451 in prerelease builds. Non-Oracle builds may (/shall) also have a
1452 publisher tag, at the end. The publisher tag starts with an underscore
1453 just like the prerelease build type tag.
1454 </desc>
1455 </attribute>
1456
1457 <attribute name="versionNormalized" type="wstring" readonly="yes">
1458 <desc>
1459 A string representing the version number of the product,
1460 without the publisher information (but still with other tags).
1461 See <link to="#version" />.
1462 </desc>
1463 </attribute>
1464
1465 <attribute name="revision" type="unsigned long" readonly="yes">
1466 <desc>
1467 The internal build revision number of the product.
1468 </desc>
1469 </attribute>
1470
1471 <attribute name="packageType" type="wstring" readonly="yes">
1472 <desc>
1473 A string representing the package type of this product. The
1474 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1475 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1476 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1477 this.
1478 </desc>
1479 </attribute>
1480
1481 <attribute name="APIVersion" type="wstring" readonly="yes">
1482 <desc>
1483 A string representing the VirtualBox API version number. The format is
1484 2 integer numbers divided by an underscore (e.g. 1_0). After the
1485 first public release of packages with a particular API version the
1486 API will not be changed in an incompatible way. Note that this
1487 guarantee does not apply to development builds, and also there is no
1488 guarantee that this version is identical to the first two integer
1489 numbers of the package version.
1490 </desc>
1491 </attribute>
1492
1493 <attribute name="homeFolder" type="wstring" readonly="yes">
1494 <desc>
1495 Full path to the directory where the global settings file,
1496 <tt>VirtualBox.xml</tt>, is stored.
1497
1498 In this version of VirtualBox, the value of this property is
1499 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1500 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1501 as determined by the host OS), and cannot be changed.
1502
1503 This path is also used as the base to resolve relative paths in
1504 places where relative paths are allowed (unless otherwise
1505 expressly indicated).
1506 </desc>
1507 </attribute>
1508
1509 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1510 <desc>
1511 Full name of the global settings file.
1512 The value of this property corresponds to the value of
1513 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1514 </desc>
1515 </attribute>
1516
1517 <attribute name="host" type="IHost" readonly="yes">
1518 <desc>Associated host object.</desc>
1519 </attribute>
1520
1521 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1522 <desc>Associated system information object.</desc>
1523 </attribute>
1524
1525 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1526 <desc>
1527 Array of machine objects registered within this VirtualBox instance.
1528 </desc>
1529 </attribute>
1530
1531 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1532 <desc>
1533 Array of all machine group names which are used by the machines which
1534 are accessible. Each group is only listed once, however they are listed
1535 in no particular order and there is no guarantee that there are no gaps
1536 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1537 is a valid result).
1538 </desc>
1539 </attribute>
1540
1541 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1542 <desc>
1543 Array of medium objects known to this VirtualBox installation.
1544
1545 This array contains only base media. All differencing
1546 media of the given base medium can be enumerated using
1547 <link to="IMedium::children"/>.
1548 </desc>
1549 </attribute>
1550
1551 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1552 <desc>
1553 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1554 </desc>
1555 </attribute>
1556
1557 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1558 <desc>
1559 Array of floppy image objects currently in use by this VirtualBox instance.
1560 </desc>
1561 </attribute>
1562
1563 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1564
1565 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1566
1567 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1568 <desc>
1569 Collection of global shared folders. Global shared folders are
1570 available to all virtual machines.
1571
1572 New shared folders are added to the collection using
1573 <link to="#createSharedFolder"/>. Existing shared folders can be
1574 removed using <link to="#removeSharedFolder"/>.
1575
1576 <note>
1577 In the current version of the product, global shared folders are not
1578 implemented and therefore this collection is always empty.
1579 </note>
1580 </desc>
1581 </attribute>
1582
1583 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1584 <desc>
1585 Associated performance collector object.
1586 </desc>
1587 </attribute>
1588
1589 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1590 <desc>
1591 DHCP servers.
1592 </desc>
1593 </attribute>
1594
1595 <attribute name="eventSource" type="IEventSource" readonly="yes">
1596 <desc>
1597 Event source for VirtualBox events.
1598 </desc>
1599 </attribute>
1600
1601 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1602 <desc>
1603 The extension pack manager.
1604 </desc>
1605 </attribute>
1606
1607
1608 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1609 <desc>
1610 Names of all internal networks.
1611 </desc>
1612 </attribute>
1613
1614 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1615 <desc>
1616 Names of all generic network drivers.
1617 </desc>
1618 </attribute>
1619
1620 <method name="composeMachineFilename">
1621 <desc>
1622 Returns a recommended full path of the settings file name for a new virtual
1623 machine.
1624
1625 This API serves two purposes:
1626
1627 <ul>
1628 <li>It gets called by <link to="#createMachine" /> if @c null or
1629 empty string (which is recommended) is specified for the
1630 @a settingsFile argument there, which means that API should use
1631 a recommended default file name.</li>
1632
1633 <li>It can be called manually by a client software before creating a machine,
1634 e.g. if that client wants to pre-create the machine directory to create
1635 virtual hard disks in that directory together with the new machine
1636 settings file. In that case, the file name should be stripped from the
1637 full settings file path returned by this function to obtain the
1638 machine directory.</li>
1639 </ul>
1640
1641 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1642 details about the machine name.
1643
1644 @a groupName defines which additional subdirectory levels should be
1645 included. It must be either a valid group name or @c null or empty
1646 string which designates that the machine will not be related to a
1647 machine group.
1648
1649 If @a baseFolder is a @c null or empty string (which is recommended), the
1650 default machine settings folder
1651 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1652 a base folder for the created machine, resulting in a file name like
1653 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1654 will be used.
1655
1656 This method does not access the host disks. In particular, it does not check
1657 for whether a machine with this name already exists.
1658 </desc>
1659 <param name="name" type="wstring" dir="in">
1660 <desc>Suggested machine name.</desc>
1661 </param>
1662 <param name="group" type="wstring" dir="in">
1663 <desc>Machine group name for the new machine or machine group. It is
1664 used to determine the right subdirectory.</desc>
1665 </param>
1666 <param name="createFlags" type="wstring" dir="in">
1667 <desc>Machine creation flags, see <link to="#createMachine" /> (optional).</desc>
1668 </param>
1669 <param name="baseFolder" type="wstring" dir="in">
1670 <desc>Base machine folder (optional).</desc>
1671 </param>
1672 <param name="file" type="wstring" dir="return">
1673 <desc>Fully qualified path where the machine would be created.</desc>
1674 </param>
1675 </method>
1676
1677 <method name="createMachine">
1678 <desc>
1679 Creates a new virtual machine by creating a machine settings file at
1680 the given location.
1681
1682 VirtualBox machine settings files use a custom XML dialect. Starting
1683 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1684 and machine files can be created at arbitrary locations.
1685
1686 However, it is recommended that machines are created in the default
1687 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1688 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1689 @c null or empty string (which is recommended) for the @a settingsFile
1690 argument, <link to="#composeMachineFilename" /> is called automatically
1691 to have such a recommended name composed based on the machine name
1692 given in the @a name argument and the primary group.
1693
1694 If the resulting settings file already exists, this method will fail,
1695 unless @a forceOverwrite is set.
1696
1697 The new machine is created unregistered, with the initial configuration
1698 set according to the specified guest OS type. A typical sequence of
1699 actions to create a new virtual machine is as follows:
1700
1701 <ol>
1702 <li>
1703 Call this method to have a new machine created. The returned machine
1704 object will be "mutable" allowing to change any machine property.
1705 </li>
1706
1707 <li>
1708 Configure the machine using the appropriate attributes and methods.
1709 </li>
1710
1711 <li>
1712 Call <link to="IMachine::saveSettings" /> to write the settings
1713 to the machine's XML settings file. The configuration of the newly
1714 created machine will not be saved to disk until this method is
1715 called.
1716 </li>
1717
1718 <li>
1719 Call <link to="#registerMachine" /> to add the machine to the list
1720 of machines known to VirtualBox.
1721 </li>
1722 </ol>
1723
1724 The specified guest OS type identifier must match an ID of one of known
1725 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1726 array.
1727
1728 <note>
1729 There is no way to change the name of the settings file or
1730 subfolder of the created machine directly.
1731 </note>
1732
1733 <result name="VBOX_E_OBJECT_NOT_FOUND">
1734 @a osTypeId is invalid.
1735 </result>
1736 <result name="VBOX_E_FILE_ERROR">
1737 Resulting settings file name is invalid or the settings file already
1738 exists or could not be created due to an I/O error.
1739 </result>
1740 <result name="E_INVALIDARG">
1741 @a name is empty or @c null.
1742 </result>
1743 </desc>
1744
1745 <param name="settingsFile" type="wstring" dir="in">
1746 <desc>Fully qualified path where the settings file should be created,
1747 empty string or @c null for a default folder and file based on the
1748 @a name argument and the primary group.
1749 (see <link to="#composeMachineFilename" />).</desc>
1750 </param>
1751 <param name="name" type="wstring" dir="in">
1752 <desc>Machine name.</desc>
1753 </param>
1754 <param name="groups" type="wstring" safearray="yes" dir="in">
1755 <desc>Array of group names. @c null or an empty array have the same
1756 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1757 create a machine without group association.</desc>
1758 </param>
1759 <param name="osTypeId" type="wstring" dir="in">
1760 <desc>Guest OS Type ID.</desc>
1761 </param>
1762 <param name="flags" type="wstring" dir="in">
1763 <desc>
1764 Additional property parameters, passed as a comma-separated list of
1765 "name=value" type entries. The following ones are recognized:
1766 <tt>forceOverwrite=1</tt> to overwrite an existing machine settings
1767 file, and <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID.
1768 </desc>
1769 </param>
1770 <param name="machine" type="IMachine" dir="return">
1771 <desc>Created machine object.</desc>
1772 </param>
1773 </method>
1774
1775 <method name="openMachine">
1776 <desc>
1777 Opens a virtual machine from the existing settings file.
1778 The opened machine remains unregistered until you call
1779 <link to="#registerMachine"/>.
1780
1781 The specified settings file name must be fully qualified.
1782 The file must exist and be a valid machine XML settings file
1783 whose contents will be used to construct the machine object.
1784
1785 <result name="VBOX_E_FILE_ERROR">
1786 Settings file name invalid, not found or sharing violation.
1787 </result>
1788 </desc>
1789 <param name="settingsFile" type="wstring" dir="in">
1790 <desc>
1791 Name of the machine settings file.
1792 </desc>
1793 </param>
1794 <param name="machine" type="IMachine" dir="return">
1795 <desc>Opened machine object.</desc>
1796 </param>
1797 <note>
1798 <link to="IMachine::settingsModified"/> will return
1799 @c false for the created machine, until any of machine settings
1800 are changed.
1801 </note>
1802 </method>
1803
1804 <method name="registerMachine">
1805 <desc>
1806
1807 Registers the machine previously created using
1808 <link to="#createMachine"/> or opened using
1809 <link to="#openMachine"/> within this VirtualBox installation. After
1810 successful method invocation, the
1811 <link to="IMachineRegisteredEvent"/> event is fired.
1812
1813 <note>
1814 This method implicitly calls <link to="IMachine::saveSettings"/>
1815 to save all current machine settings before registering it.
1816 </note>
1817
1818 <result name="VBOX_E_OBJECT_NOT_FOUND">
1819 No matching virtual machine found.
1820 </result>
1821 <result name="VBOX_E_INVALID_OBJECT_STATE">
1822 Virtual machine was not created within this VirtualBox instance.
1823 </result>
1824
1825 </desc>
1826 <param name="machine" type="IMachine" dir="in"/>
1827 </method>
1828
1829 <method name="findMachine">
1830 <desc>
1831 Attempts to find a virtual machine given its name or UUID.
1832
1833 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1834 cannot safely be determined.</note>
1835
1836 <result name="VBOX_E_OBJECT_NOT_FOUND">
1837 Could not find registered machine matching @a nameOrId.
1838 </result>
1839
1840 </desc>
1841 <param name="nameOrId" type="wstring" dir="in">
1842 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1843 </param>
1844 <param name="machine" type="IMachine" dir="return">
1845 <desc>Machine object, if found.</desc>
1846 </param>
1847 </method>
1848
1849 <method name="getMachinesByGroups">
1850 <desc>
1851 Gets all machine references which are in one of the specified groups.
1852 </desc>
1853 <param name="groups" type="wstring" dir="in" safearray="yes">
1854 <desc>What groups to match. The usual group list rules apply, i.e.
1855 passing an empty list will match VMs in the toplevel group, likewise
1856 the empty string.</desc>
1857 </param>
1858 <param name="machines" type="IMachine" dir="return" safearray="yes">
1859 <desc>All machines which matched.</desc>
1860 </param>
1861 </method>
1862
1863 <method name="getMachineStates">
1864 <desc>
1865 Gets the state of several machines in a single operation.
1866 </desc>
1867 <param name="machines" type="IMachine" dir="in" safearray="yes">
1868 <desc>Array with the machine references.</desc>
1869 </param>
1870 <param name="states" type="MachineState" dir="return" safearray="yes">
1871 <desc>Machine states, corresponding to the machines.</desc>
1872 </param>
1873 </method>
1874
1875 <method name="createAppliance">
1876 <desc>
1877 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1878 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1879 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1880 </desc>
1881 <param name="appliance" type="IAppliance" dir="return">
1882 <desc>New appliance.</desc>
1883 </param>
1884 </method>
1885
1886 <method name="createHardDisk">
1887 <desc>
1888 Creates a new base medium object that will use the given storage
1889 format and location for medium data.
1890
1891 The actual storage unit is not created by this method. In order to
1892 do it, and before you are able to attach the created medium to
1893 virtual machines, you must call one of the following methods to
1894 allocate a format-specific storage unit at the specified location:
1895 <ul>
1896 <li><link to="IMedium::createBaseStorage"/></li>
1897 <li><link to="IMedium::createDiffStorage"/></li>
1898 </ul>
1899
1900 Some medium attributes, such as <link to="IMedium::id"/>, may
1901 remain uninitialized until the medium storage unit is successfully
1902 created by one of the above methods.
1903
1904 After the storage unit is successfully created, it will be
1905 accessible through the <link to="#openMedium"/> method and can
1906 be found in the <link to="#hardDisks"/> array.
1907
1908 The list of all storage formats supported by this VirtualBox
1909 installation can be obtained using
1910 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1911 attribute is empty or @c null then the default storage format
1912 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1913 be used for creating a storage unit of the medium.
1914
1915 Note that the format of the location string is storage format specific.
1916 See <link to="IMedium::location"/> and IMedium for more details.
1917
1918 <result name="VBOX_E_OBJECT_NOT_FOUND">
1919 @a format identifier is invalid. See
1920 <link to="ISystemProperties::mediumFormats"/>.
1921 </result>
1922 <result name="VBOX_E_FILE_ERROR">
1923 @a location is a not valid file name (for file-based formats only).
1924 </result>
1925 </desc>
1926 <param name="format" type="wstring" dir="in">
1927 <desc>
1928 Identifier of the storage format to use for the new medium.
1929 </desc>
1930 </param>
1931 <param name="location" type="wstring" dir="in">
1932 <desc>
1933 Location of the storage unit for the new medium.
1934 </desc>
1935 </param>
1936 <param name="medium" type="IMedium" dir="return">
1937 <desc>Created medium object.</desc>
1938 </param>
1939 </method>
1940
1941 <method name="openMedium">
1942 <desc>
1943 Finds existing media or opens a medium from an existing storage location.
1944
1945 Once a medium has been opened, it can be passed to other VirtualBox
1946 methods, in particular to <link to="IMachine::attachDevice" />.
1947
1948 Depending on the given device type, the file at the storage location
1949 must be in one of the media formats understood by VirtualBox:
1950
1951 <ul>
1952 <li>With a "HardDisk" device type, the file must be a hard disk image
1953 in one of the formats supported by VirtualBox (see
1954 <link to="ISystemProperties::mediumFormats" />).
1955 After this method succeeds, if the medium is a base medium, it
1956 will be added to the <link to="#hardDisks"/> array attribute. </li>
1957 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1958 After this method succeeds, the medium will be added to the
1959 <link to="#DVDImages"/> array attribute.</li>
1960 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1961 After this method succeeds, the medium will be added to the
1962 <link to="#floppyImages"/> array attribute.</li>
1963 </ul>
1964
1965 After having been opened, the medium can be re-found by this method
1966 and can be attached to virtual machines. See <link to="IMedium" /> for
1967 more details.
1968
1969 The UUID of the newly opened medium will either be retrieved from the
1970 storage location, if the format supports it (e.g. for hard disk images),
1971 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1972 If for some reason you need to change the medium's UUID, use
1973 <link to="IMedium::setIds" />.
1974
1975 If a differencing hard disk medium is to be opened by this method, the
1976 operation will succeed only if its parent medium and all ancestors,
1977 if any, are already known to this VirtualBox installation (for example,
1978 were opened by this method before).
1979
1980 This method attempts to guess the storage format of the specified medium
1981 by reading medium data at the specified location.
1982
1983 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1984 the image is opened for read/write access and must have according permissions,
1985 as VirtualBox may actually write status information into the disk's metadata
1986 sections.
1987
1988 Note that write access is required for all typical hard disk usage in VirtualBox,
1989 since VirtualBox may need to write metadata such as a UUID into the image.
1990 The only exception is opening a source image temporarily for copying and
1991 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1992 again soon.
1993
1994 The format of the location string is storage format specific. See
1995 <link to="IMedium::location"/> and IMedium for more details.
1996
1997 <result name="VBOX_E_FILE_ERROR">
1998 Invalid medium storage file location or could not find the medium
1999 at the specified location.
2000 </result>
2001 <result name="VBOX_E_IPRT_ERROR">
2002 Could not get medium storage format.
2003 </result>
2004 <result name="E_INVALIDARG">
2005 Invalid medium storage format.
2006 </result>
2007 <result name="VBOX_E_INVALID_OBJECT_STATE">
2008 Medium has already been added to a media registry.
2009 </result>
2010 </desc>
2011 <param name="location" type="wstring" dir="in">
2012 <desc>
2013 Location of the storage unit that contains medium data in one of
2014 the supported storage formats.
2015 </desc>
2016 </param>
2017 <param name="deviceType" type="DeviceType" dir="in">
2018 <desc>
2019 Must be one of "HardDisk", "DVD" or "Floppy".
2020 </desc>
2021 </param>
2022 <param name="accessMode" type="AccessMode" dir="in">
2023 <desc>Whether to open the image in read/write or read-only mode. For
2024 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2025 </param>
2026 <param name="forceNewUuid" type="boolean" dir="in">
2027 <desc>Allows the caller to request a completely new medium UUID for
2028 the image which is to be opened. Useful if one intends to open an exact
2029 copy of a previously opened image, as this would normally fail due to
2030 the duplicate UUID.</desc>
2031 </param>
2032 <param name="medium" type="IMedium" dir="return">
2033 <desc>Opened medium object.</desc>
2034 </param>
2035 </method>
2036
2037 <method name="getGuestOSType">
2038 <desc>
2039 Returns an object describing the specified guest OS type.
2040
2041 The requested guest OS type is specified using a string which is a
2042 mnemonic identifier of the guest operating system, such as
2043 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2044 particular virtual machine can be read or set using the
2045 <link to="IMachine::OSTypeId"/> attribute.
2046
2047 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2048 available guest OS type objects. Each object has an
2049 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2050 the guest OS this object describes.
2051
2052 <result name="E_INVALIDARG">
2053 @a id is not a valid Guest OS type.
2054 </result>
2055
2056 </desc>
2057 <param name="id" type="uuid" mod="string" dir="in">
2058 <desc>Guest OS type ID string.</desc>
2059 </param>
2060 <param name="type" type="IGuestOSType" dir="return">
2061 <desc>Guest OS type object.</desc>
2062 </param>
2063 </method>
2064
2065 <method name="createSharedFolder">
2066 <desc>
2067 Creates a new global shared folder by associating the given logical
2068 name with the given host path, adds it to the collection of shared
2069 folders and starts sharing it. Refer to the description of
2070 <link to="ISharedFolder"/> to read more about logical names.
2071 <note>
2072 In the current implementation, this operation is not
2073 implemented.
2074 </note>
2075 </desc>
2076 <param name="name" type="wstring" dir="in">
2077 <desc>Unique logical name of the shared folder.</desc>
2078 </param>
2079 <param name="hostPath" type="wstring" dir="in">
2080 <desc>Full path to the shared folder in the host file system.</desc>
2081 </param>
2082 <param name="writable" type="boolean" dir="in">
2083 <desc>Whether the share is writable or readonly</desc>
2084 </param>
2085 <param name="automount" type="boolean" dir="in">
2086 <desc>Whether the share gets automatically mounted by the guest
2087 or not.</desc>
2088 </param>
2089 </method>
2090
2091 <method name="removeSharedFolder">
2092 <desc>
2093 Removes the global shared folder with the given name previously
2094 created by <link to="#createSharedFolder"/> from the collection of
2095 shared folders and stops sharing it.
2096 <note>
2097 In the current implementation, this operation is not
2098 implemented.
2099 </note>
2100 </desc>
2101 <param name="name" type="wstring" dir="in">
2102 <desc>Logical name of the shared folder to remove.</desc>
2103 </param>
2104 </method>
2105
2106 <method name="getExtraDataKeys">
2107 <desc>
2108 Returns an array representing the global extra data keys which currently
2109 have values defined.
2110 </desc>
2111 <param name="value" type="wstring" dir="return" safearray="yes">
2112 <desc>Array of extra data keys.</desc>
2113 </param>
2114 </method>
2115
2116 <method name="getExtraData">
2117 <desc>
2118 Returns associated global extra data.
2119
2120 If the requested data @a key does not exist, this function will
2121 succeed and return an empty string in the @a value argument.
2122
2123 <result name="VBOX_E_FILE_ERROR">
2124 Settings file not accessible.
2125 </result>
2126 <result name="VBOX_E_XML_ERROR">
2127 Could not parse the settings file.
2128 </result>
2129
2130 </desc>
2131 <param name="key" type="wstring" dir="in">
2132 <desc>Name of the data key to get.</desc>
2133 </param>
2134 <param name="value" type="wstring" dir="return">
2135 <desc>Value of the requested data key.</desc>
2136 </param>
2137 </method>
2138
2139 <method name="setExtraData">
2140 <desc>
2141 Sets associated global extra data.
2142
2143 If you pass @c null or empty string as a key @a value, the given @a key
2144 will be deleted.
2145
2146 <note>
2147 Before performing the actual data change, this method will ask all
2148 registered event listener using the
2149 <link to="IExtraDataCanChangeEvent"/>
2150 notification for a permission. If one of the listeners refuses the
2151 new value, the change will not be performed.
2152 </note>
2153 <note>
2154 On success, the
2155 <link to="IExtraDataChangedEvent"/> notification
2156 is called to inform all registered listeners about a successful data
2157 change.
2158 </note>
2159
2160 <result name="VBOX_E_FILE_ERROR">
2161 Settings file not accessible.
2162 </result>
2163 <result name="VBOX_E_XML_ERROR">
2164 Could not parse the settings file.
2165 </result>
2166 <result name="E_ACCESSDENIED">
2167 Modification request refused.
2168 </result>
2169
2170 </desc>
2171 <param name="key" type="wstring" dir="in">
2172 <desc>Name of the data key to set.</desc>
2173 </param>
2174 <param name="value" type="wstring" dir="in">
2175 <desc>Value to assign to the key.</desc>
2176 </param>
2177 </method>
2178
2179 <method name="setSettingsSecret">
2180 <desc>
2181 Unlocks the secret data by passing the unlock password to the
2182 server. The server will cache the password for that machine.
2183
2184 <result name="VBOX_E_INVALID_VM_STATE">
2185 Virtual machine is not mutable.
2186 </result>
2187
2188 </desc>
2189 <param name="password" type="wstring" dir="in">
2190 <desc>
2191 The cipher key.
2192 </desc>
2193 </param>
2194 </method>
2195
2196 <!--method name="createDHCPServerForInterface">
2197 <desc>
2198 Creates a DHCP server settings to be used for the given interface
2199 <result name="E_INVALIDARG">
2200 Host network interface @a name already exists.
2201 </result>
2202 </desc>
2203 <param name="interface" type="IHostNetworkInterface" dir="in">
2204 <desc>Network Interface</desc>
2205 </param>
2206 <param name="server" type="IDHCPServer" dir="out">
2207 <desc>DHCP server settings</desc>
2208 </param>
2209 </method-->
2210
2211 <method name="createDHCPServer">
2212 <desc>
2213 Creates a DHCP server settings to be used for the given internal network name
2214 <result name="E_INVALIDARG">
2215 Host network interface @a name already exists.
2216 </result>
2217 </desc>
2218 <param name="name" type="wstring" dir="in">
2219 <desc>server name</desc>
2220 </param>
2221 <param name="server" type="IDHCPServer" dir="return">
2222 <desc>DHCP server settings</desc>
2223 </param>
2224 </method>
2225
2226 <method name="findDHCPServerByNetworkName">
2227 <desc>
2228 Searches a DHCP server settings to be used for the given internal network name
2229 <result name="E_INVALIDARG">
2230 Host network interface @a name already exists.
2231 </result>
2232
2233 </desc>
2234 <param name="name" type="wstring" dir="in">
2235 <desc>server name</desc>
2236 </param>
2237 <param name="server" type="IDHCPServer" dir="return">
2238 <desc>DHCP server settings</desc>
2239 </param>
2240 </method>
2241
2242 <!--method name="findDHCPServerForInterface">
2243 <desc>
2244 Searches a DHCP server settings to be used for the given interface
2245 <result name="E_INVALIDARG">
2246 Host network interface @a name already exists.
2247 </result>
2248 </desc>
2249 <param name="interface" type="IHostNetworkInterface" dir="in">
2250 <desc>Network Interface</desc>
2251 </param>
2252 <param name="server" type="IDHCPServer" dir="out">
2253 <desc>DHCP server settings</desc>
2254 </param>
2255 </method-->
2256
2257 <method name="removeDHCPServer">
2258 <desc>
2259 Removes the DHCP server settings
2260 <result name="E_INVALIDARG">
2261 Host network interface @a name already exists.
2262 </result>
2263 </desc>
2264 <param name="server" type="IDHCPServer" dir="in">
2265 <desc>DHCP server settings to be removed</desc>
2266 </param>
2267 </method>
2268
2269
2270 <method name="checkFirmwarePresent">
2271 <desc>
2272 Check if this VirtualBox installation has a firmware
2273 of the given type available, either system-wide or per-user.
2274 Optionally, this may return a hint where this firmware can be
2275 downloaded from.
2276 </desc>
2277 <param name="firmwareType" type="FirmwareType" dir="in">
2278 <desc>
2279 Type of firmware to check.
2280 </desc>
2281 </param>
2282 <param name="version" type="wstring" dir="in">
2283 <desc>Expected version number, usually empty string (presently ignored).</desc>
2284 </param>
2285
2286 <param name="url" type="wstring" dir="out">
2287 <desc>
2288 Suggested URL to download this firmware from.
2289 </desc>
2290 </param>
2291
2292 <param name="file" type="wstring" dir="out">
2293 <desc>
2294 Filename of firmware, only valid if result == TRUE.
2295 </desc>
2296 </param>
2297
2298 <param name="result" type="boolean" dir="return">
2299 <desc>If firmware of this type and version is available.</desc>
2300 </param>
2301 </method>
2302
2303 </interface>
2304
2305 <!--
2306 // IVFSExplorer
2307 /////////////////////////////////////////////////////////////////////////
2308 -->
2309
2310 <enum
2311 name="VFSType"
2312 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2313 >
2314 <desc>
2315 Virtual file systems supported by VFSExplorer.
2316 </desc>
2317
2318 <const name="File" value="1" />
2319 <const name="Cloud" value="2" />
2320 <const name="S3" value="3" />
2321 <const name="WebDav" value="4" />
2322 </enum>
2323
2324 <enum
2325 name="VFSFileType"
2326 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2327 >
2328 <desc>
2329 File types known by VFSExplorer.
2330 </desc>
2331
2332 <const name="Unknown" value="1" />
2333 <const name="Fifo" value="2" />
2334 <const name="DevChar" value="3" />
2335 <const name="Directory" value="4" />
2336 <const name="DevBlock" value="5" />
2337 <const name="File" value="6" />
2338 <const name="SymLink" value="7" />
2339 <const name="Socket" value="8" />
2340 <const name="WhiteOut" value="9" />
2341 </enum>
2342
2343 <interface
2344 name="IVFSExplorer" extends="$unknown"
2345 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2346 wsmap="managed"
2347 >
2348 <desc>
2349 The VFSExplorer interface unifies access to different file system
2350 types. This includes local file systems as well remote file systems like
2351 S3. For a list of supported types see <link to="VFSType" />.
2352 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2353 </desc>
2354
2355 <attribute name="path" type="wstring" readonly="yes">
2356 <desc>Returns the current path in the virtual file system.</desc>
2357 </attribute>
2358
2359 <attribute name="type" type="VFSType" readonly="yes">
2360 <desc>Returns the file system type which is currently in use.</desc>
2361 </attribute>
2362
2363 <method name="update">
2364 <desc>Updates the internal list of files/directories from the
2365 current directory level. Use <link to="#entryList" /> to get the full list
2366 after a call to this method.</desc>
2367
2368 <param name="aProgress" type="IProgress" dir="return">
2369 <desc>Progress object to track the operation completion.</desc>
2370 </param>
2371 </method>
2372
2373 <method name="cd">
2374 <desc>Change the current directory level.</desc>
2375
2376 <param name="aDir" type="wstring" dir="in">
2377 <desc>The name of the directory to go in.</desc>
2378 </param>
2379
2380 <param name="aProgress" type="IProgress" dir="return">
2381 <desc>Progress object to track the operation completion.</desc>
2382 </param>
2383 </method>
2384
2385 <method name="cdUp">
2386 <desc>Go one directory upwards from the current directory level.</desc>
2387
2388 <param name="aProgress" type="IProgress" dir="return">
2389 <desc>Progress object to track the operation completion.</desc>
2390 </param>
2391 </method>
2392
2393 <method name="entryList">
2394 <desc>Returns a list of files/directories after a call to <link
2395 to="#update" />. The user is responsible for keeping this internal
2396 list up do date.</desc>
2397
2398 <param name="aNames" type="wstring" safearray="yes" dir="out">
2399 <desc>The list of names for the entries.</desc>
2400 </param>
2401
2402 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2403 <desc>The list of types for the entries.</desc>
2404 </param>
2405
2406 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2407 <desc>The list of sizes (in bytes) for the entries.</desc>
2408 </param>
2409
2410 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2411 <desc>The list of file modes (in octal form) for the entries.</desc>
2412 </param>
2413 </method>
2414
2415 <method name="exists">
2416 <desc>Checks if the given file list exists in the current directory
2417 level.</desc>
2418
2419 <param name="aNames" type="wstring" safearray="yes" dir="in">
2420 <desc>The names to check.</desc>
2421 </param>
2422
2423 <param name="aExists" type="wstring" safearray="yes" dir="return">
2424 <desc>The names which exist.</desc>
2425 </param>
2426 </method>
2427
2428 <method name="remove">
2429 <desc>Deletes the given files in the current directory level.</desc>
2430
2431 <param name="aNames" type="wstring" safearray="yes" dir="in">
2432 <desc>The names to remove.</desc>
2433 </param>
2434
2435 <param name="aProgress" type="IProgress" dir="return">
2436 <desc>Progress object to track the operation completion.</desc>
2437 </param>
2438 </method>
2439
2440 </interface>
2441
2442 <enum
2443 name="ImportOptions" extends="$unknown"
2444 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2445 >
2446
2447 <desc>
2448 Import options, used with <link to="IAppliance::importMachines" />.
2449 </desc>
2450
2451 <const name="KeepAllMACs" value="1">
2452 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2453 </const>
2454 <const name="KeepNATMACs" value="2">
2455 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2456 </const>
2457
2458 </enum>
2459
2460
2461 <!--
2462 // IAppliance
2463 /////////////////////////////////////////////////////////////////////////
2464 -->
2465
2466 <interface
2467 name="IAppliance" extends="$unknown"
2468 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2469 wsmap="managed"
2470 >
2471 <desc>
2472 Represents a platform-independent appliance in OVF format. An instance of this is returned
2473 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2474 virtual machines within an appliance with VirtualBox.
2475
2476 The OVF standard suggests two different physical file formats:
2477
2478 <ol>
2479 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2480 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2481 this descriptor file references other files such as disk images, as OVF appliances typically
2482 do, those additional files must be in the same directory as the descriptor file.</li>
2483
2484 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2485 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2486 files and optionally other files.
2487
2488 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2489 be added with a later version.</li>
2490 </ol>
2491
2492 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2493 <link to="IMachine" /> involves the following sequence of API calls:
2494
2495 <ol>
2496 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2497 </li>
2498
2499 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2500 would like to import. So long as this file is syntactically valid, this will succeed
2501 and fill the appliance object with the parsed data from the OVF file.
2502 </li>
2503
2504 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2505 contents of the IAppliance attributes accordingly. These can be inspected by a
2506 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2507 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2508 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2509 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2510 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2511 The GUI can then give the user the option to confirm and/or change these suggestions.
2512 </li>
2513
2514 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2515 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2516 </li>
2517
2518 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2519 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2520 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2521 can be found in the <link to="#machines" /> array attribute.
2522 </li>
2523 </ol>
2524
2525 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2526
2527 <ol>
2528 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2529 an empty IAppliance object.
2530 </li>
2531
2532 <li>For each machine you would like to export, call <link to="IMachine::export" />
2533 with the IAppliance object you just created. Each such call creates one instance of
2534 <link to="IVirtualSystemDescription" /> inside the appliance.
2535 </li>
2536
2537 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2538 virtual system (machine) to override the suggestions made by the <link to="IMachine::export"/> routine.
2539 </li>
2540
2541 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2542 file written.</li>
2543 </ol>
2544
2545 </desc>
2546
2547 <attribute name="path" type="wstring" readonly="yes">
2548 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2549 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2550 <link to="#write" /> (for export).
2551 This attribute is empty until one of these methods has been called.
2552 </desc>
2553 </attribute>
2554
2555 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2556 <desc>
2557 Array of virtual disk definitions. One such description exists for each
2558 disk definition in the OVF; each string array item represents one such piece of
2559 disk information, with the information fields separated by tab (\\t) characters.
2560
2561 The caller should be prepared for additional fields being appended to
2562 this string in future versions of VirtualBox and therefore check for
2563 the number of tabs in the strings returned.
2564
2565 In the current version, the following eight fields are returned per string
2566 in the array:
2567
2568 <ol>
2569 <li>Disk ID (unique string identifier given to disk)</li>
2570
2571 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2572
2573 <li>Populated size (optional unsigned integer indicating the current size of the
2574 disk; can be approximate; -1 if unspecified)</li>
2575
2576 <li>Format (string identifying the disk format, typically
2577 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2578
2579 <li>Reference (where to find the disk image, typically a file name; if empty,
2580 then the disk should be created on import)</li>
2581
2582 <li>Image size (optional unsigned integer indicating the size of the image,
2583 which need not necessarily be the same as the values specified above, since
2584 the image may be compressed or sparse; -1 if not specified)</li>
2585
2586 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2587 presently unsupported and always -1)</li>
2588
2589 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2590 </ol>
2591 </desc>
2592 </attribute>
2593
2594 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2595 <desc> Array of virtual system descriptions. One such description is created
2596 for each virtual system (machine) found in the OVF.
2597 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2598 (for export) has been called.
2599 </desc>
2600 </attribute>
2601
2602 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2603 <desc>
2604 Contains the UUIDs of the machines created from the information in this appliances. This is only
2605 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2606 succeeded.
2607 </desc>
2608 </attribute>
2609
2610 <method name="read">
2611 <desc>
2612 Reads an OVF file into the appliance object.
2613
2614 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2615 mere fact that this method returns successfully does not mean that VirtualBox supports all
2616 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2617 </desc>
2618 <param name="file" type="wstring" dir="in">
2619 <desc>
2620 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2621 on whether the appliance is distributed as a set of files or as a single file, respectively).
2622 </desc>
2623 </param>
2624 <param name="aProgress" type="IProgress" dir="return">
2625 <desc>Progress object to track the operation completion.</desc>
2626 </param>
2627 </method>
2628
2629 <method name="interpret">
2630 <desc>
2631 Interprets the OVF data that was read when the appliance was constructed. After
2632 calling this method, one can inspect the
2633 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2634 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2635 the appliance.
2636
2637 Calling this method is the second step of importing an appliance into VirtualBox;
2638 see <link to="IAppliance" /> for an overview.
2639
2640 After calling this method, one should call <link to="#getWarnings" /> to find out
2641 if problems were encountered during the processing which might later lead to
2642 errors.
2643 </desc>
2644 </method>
2645
2646 <method name="importMachines">
2647 <desc>
2648 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2649 and other interfaces that match the information contained in the appliance as
2650 closely as possible, as represented by the import instructions in the
2651 <link to="#virtualSystemDescriptions" /> array.
2652
2653 Calling this method is the final step of importing an appliance into VirtualBox;
2654 see <link to="IAppliance" /> for an overview.
2655
2656 Since importing the appliance will most probably involve copying and converting
2657 disk images, which can take a long time, this method operates asynchronously and
2658 returns an IProgress object to allow the caller to monitor the progress.
2659
2660 After the import succeeded, the UUIDs of the IMachine instances created can be
2661 retrieved from the <link to="#machines" /> array attribute.
2662 </desc>
2663
2664 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2665 <desc>Options for the importing operation.</desc>
2666 </param>
2667
2668 <param name="aProgress" type="IProgress" dir="return">
2669 <desc>Progress object to track the operation completion.</desc>
2670 </param>
2671 </method>
2672
2673 <method name="createVFSExplorer">
2674 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2675
2676 <param name="aUri" type="wstring" dir="in">
2677 <desc>The URI describing the file system to use.</desc>
2678 </param>
2679
2680 <param name="aExplorer" type="IVFSExplorer" dir="return">
2681 <desc></desc>
2682 </param>
2683 </method>
2684
2685 <method name="write">
2686 <desc>
2687 Writes the contents of the appliance exports into a new OVF file.
2688
2689 Calling this method is the final step of exporting an appliance from VirtualBox;
2690 see <link to="IAppliance" /> for an overview.
2691
2692 Since exporting the appliance will most probably involve copying and converting
2693 disk images, which can take a long time, this method operates asynchronously and
2694 returns an IProgress object to allow the caller to monitor the progress.
2695 </desc>
2696 <param name="format" type="wstring" dir="in">
2697 <desc>
2698 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2699 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2700 </desc>
2701 </param>
2702 <param name="manifest" type="boolean" dir="in">
2703 <desc>
2704 Indicate if the optional manifest file (.mf) should be written. The manifest file
2705 is used for integrity checks prior import.
2706 </desc>
2707 </param>
2708 <param name="path" type="wstring" dir="in">
2709 <desc>
2710 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2711 on whether the appliance is distributed as a set of files or as a single file, respectively).
2712 </desc>
2713 </param>
2714 <param name="progress" type="IProgress" dir="return">
2715 <desc>Progress object to track the operation completion.</desc>
2716 </param>
2717 </method>
2718
2719 <method name="getWarnings">
2720 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2721
2722 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2723 <desc></desc>
2724 </param>
2725 </method>
2726
2727 </interface>
2728
2729 <enum
2730 name="VirtualSystemDescriptionType"
2731 uuid="303c0900-a746-4612-8c67-79003e91f459"
2732 >
2733 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2734 a configuration value.</desc>
2735
2736 <const name="Ignore" value="1" />
2737 <const name="OS" value="2" />
2738 <const name="Name" value="3" />
2739 <const name="Product" value="4" />
2740 <const name="Vendor" value="5" />
2741 <const name="Version" value="6" />
2742 <const name="ProductUrl" value="7" />
2743 <const name="VendorUrl" value="8" />
2744 <const name="Description" value="9" />
2745 <const name="License" value="10" />
2746 <const name="Miscellaneous" value="11" />
2747 <const name="CPU" value="12" />
2748 <const name="Memory" value="13" />
2749 <const name="HardDiskControllerIDE" value="14" />
2750 <const name="HardDiskControllerSATA" value="15" />
2751 <const name="HardDiskControllerSCSI" value="16" />
2752 <const name="HardDiskControllerSAS" value="17" />
2753 <const name="HardDiskImage" value="18" />
2754 <const name="Floppy" value="19" />
2755 <const name="CDROM" value="20" />
2756 <const name="NetworkAdapter" value="21" />
2757 <const name="USBController" value="22" />
2758 <const name="SoundCard" value="23" />
2759 <const name="SettingsFile" value="24">
2760 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2761 </const>
2762 </enum>
2763
2764 <enum
2765 name="VirtualSystemDescriptionValueType"
2766 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2767 >
2768 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2769 type to fetch.</desc>
2770
2771 <const name="Reference" value="1" />
2772 <const name="Original" value="2" />
2773 <const name="Auto" value="3" />
2774 <const name="ExtraConfig" value="4" />
2775
2776 </enum>
2777
2778 <interface
2779 name="IVirtualSystemDescription" extends="$unknown"
2780 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2781 wsmap="managed"
2782 >
2783
2784 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2785 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2786 <link to="IAppliance::interpret" /> has been called, that array contains information
2787 about how the virtual systems described in the OVF should best be imported into
2788 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2789 import an OVF into VirtualBox.
2790 </desc>
2791
2792 <attribute name="count" type="unsigned long" readonly="yes">
2793 <desc>Return the number of virtual system description entries.</desc>
2794 </attribute>
2795
2796 <method name="getDescription">
2797 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2798 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2799
2800 The list below identifies the value sets that are possible depending on the
2801 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2802 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2803 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2804 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2805 the @a aExtraConfigValues[] array item may also be used.
2806
2807 <ul>
2808 <li>
2809 "OS": the guest operating system type. There must be exactly one such array item on import. The
2810 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2811 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2812 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2813 </li>
2814 <li>
2815 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2816 if none is present on import, then an automatic name will be created from the operating system
2817 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2818 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2819 <link to="IMachine" /> name that does not exist yet.
2820 </li>
2821 <li>
2822 "Description": an arbitrary description.
2823 </li>
2824 <li>
2825 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2826 code to display such a license for agreement; the Main API does not enforce any such policy.
2827 </li>
2828 <li>
2829 Miscellaneous: reserved for future use.
2830 </li>
2831 <li>
2832 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2833 </li>
2834 <li>
2835 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2836 is present on import, then VirtualBox will set a meaningful default based on the operating system
2837 type.
2838 </li>
2839 <li>
2840 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2841 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2842 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2843 writes into the OVF.
2844 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2845 type can use to specify which hard disk controller a virtual disk should be connected to.
2846 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2847 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2848 its virtual machines supports four channels (primary master, primary slave, secondary master,
2849 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2850 </li>
2851 <li>
2852 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2853 has no value in @a aOvfValues[] or @a aVBoxValues[].
2854 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2855 </li>
2856 <li>
2857 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2858 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2859 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2860 whereas VirtualBox considers it a class of storage controllers of its own; see
2861 <link to="StorageControllerType" />).
2862 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2863 </li>
2864 <li>
2865 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2866 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2867
2868 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2869 a path since the image file should be in the same location as the OVF file itself), whereas the
2870 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2871 hard disk image. This means that on import the image will be copied and converted from the
2872 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2873
2874 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2875 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2876 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2877 the image to. That number must be the index of an array item with one of the hard disk controller
2878 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2879 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2880 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2881 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2882 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2883 </li>
2884 <li>
2885 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2886 attachment information as with "HardDiskImage" items.
2887 </li>
2888 <li>
2889 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2890 attachment information as with "HardDiskImage" items.
2891 </li>
2892 <li>
2893 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2894 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2895 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2896 </li>
2897 <li>
2898 "USBController": a USB controller. There can be at most one such item. If and only if such an
2899 item ispresent, USB support will be enabled for the new virtual machine.
2900 </li>
2901 <li>
2902 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2903 present, sound support will be enabled for the new virtual machine. Note that the virtual
2904 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2905 may be different from the virtual soundcard expected by the appliance.
2906 </li>
2907 </ul>
2908
2909 </desc>
2910
2911 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2912 <desc></desc>
2913 </param>
2914
2915 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2916 <desc></desc>
2917 </param>
2918
2919 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2920 <desc></desc>
2921 </param>
2922
2923 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2924 <desc></desc>
2925 </param>
2926
2927 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2928 <desc></desc>
2929 </param>
2930
2931 </method>
2932
2933 <method name="getDescriptionByType">
2934 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2935 should be returned.</desc>
2936
2937 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2938 <desc></desc>
2939 </param>
2940
2941 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2942 <desc></desc>
2943 </param>
2944
2945 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2946 <desc></desc>
2947 </param>
2948
2949 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2950 <desc></desc>
2951 </param>
2952
2953 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2954 <desc></desc>
2955 </param>
2956
2957 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2958 <desc></desc>
2959 </param>
2960
2961 </method>
2962
2963 <method name="getValuesByType">
2964 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2965 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2966 values.</desc>
2967
2968 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2969 <desc></desc>
2970 </param>
2971
2972 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2973 <desc></desc>
2974 </param>
2975
2976 <param name="aValues" type="wstring" dir="return" safearray="yes">
2977 <desc></desc>
2978 </param>
2979
2980 </method>
2981
2982 <method name="setFinalValues">
2983 <desc>
2984 This method allows the appliance's user to change the configuration for the virtual
2985 system descriptions. For each array item returned from <link to="#getDescription" />,
2986 you must pass in one boolean value and one configuration value.
2987
2988 Each item in the boolean array determines whether the particular configuration item
2989 should be enabled.
2990 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2991 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2992 and SoundCard.
2993
2994 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2995 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
2996 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
2997 for valid configuration values for the individual array item types. If the
2998 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
2999 </desc>
3000
3001 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3002 <desc></desc>
3003 </param>
3004
3005 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3006 <desc></desc>
3007 </param>
3008
3009 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3010 <desc></desc>
3011 </param>
3012 </method>
3013
3014 <method name="addDescription">
3015 <desc>
3016 This method adds an additional description entry to the stack of already
3017 available descriptions for this virtual system. This is handy for writing
3018 values which aren't directly supported by VirtualBox. One example would
3019 be the License type of <link to="VirtualSystemDescriptionType" />.
3020 </desc>
3021
3022 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3023 <desc></desc>
3024 </param>
3025
3026 <param name="aVBoxValue" type="wstring" dir="in">
3027 <desc></desc>
3028 </param>
3029
3030 <param name="aExtraConfigValue" type="wstring" dir="in">
3031 <desc></desc>
3032 </param>
3033 </method>
3034 </interface>
3035
3036
3037 <!--
3038 // IMachine
3039 /////////////////////////////////////////////////////////////////////////
3040 -->
3041
3042 <interface
3043 name="IInternalMachineControl" extends="$unknown"
3044 uuid="ec824977-e43f-479c-81c9-ac6cae1423a5"
3045 internal="yes"
3046 wsmap="suppress"
3047 >
3048 <method name="setRemoveSavedStateFile">
3049 <desc>
3050 Updates the flag whether the saved state file is removed on a
3051 machine state change from Saved to PoweredOff.
3052 </desc>
3053 <param name="aRemove" type="boolean" dir="in"/>
3054 </method>
3055
3056 <method name="updateState">
3057 <desc>
3058 Updates the VM state.
3059 <note>
3060 This operation will also update the settings file with the correct
3061 information about the saved state file and delete this file from disk
3062 when appropriate.
3063 </note>
3064 </desc>
3065 <param name="state" type="MachineState" dir="in"/>
3066 </method>
3067
3068 <method name="getIPCId">
3069 <param name="id" type="wstring" dir="return"/>
3070 </method>
3071
3072 <method name="beginPowerUp">
3073 <desc>
3074 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3075 gives it the progress object that should be part of any pending
3076 <link to="IMachine::launchVMProcess"/> operations. The progress
3077 object may be called back to reflect an early cancelation, so some care
3078 have to be taken with respect to any cancelation callbacks. The console
3079 object will call <link to="IInternalMachineControl::endPowerUp"/>
3080 to signal the completion of the progress object.
3081 </desc>
3082 <param name="aProgress" type="IProgress" dir="in" />
3083 </method>
3084
3085 <method name="endPowerUp">
3086 <desc>
3087 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3088 This method may query status information from the progress object it
3089 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3090 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3091 call in order to complete that progress object.
3092 </desc>
3093 <param name="result" type="long" dir="in"/>
3094 </method>
3095
3096 <method name="beginPoweringDown">
3097 <desc>
3098 Called by the VM process to inform the server it wants to
3099 stop the VM execution and power down.
3100 </desc>
3101 <param name="progress" type="IProgress" dir="out">
3102 <desc>
3103 Progress object created by VBoxSVC to wait until
3104 the VM is powered down.
3105 </desc>
3106 </param>
3107 </method>
3108
3109 <method name="endPoweringDown">
3110 <desc>
3111 Called by the VM process to inform the server that powering
3112 down previously requested by #beginPoweringDown is either
3113 successfully finished or there was a failure.
3114
3115 <result name="VBOX_E_FILE_ERROR">
3116 Settings file not accessible.
3117 </result>
3118 <result name="VBOX_E_XML_ERROR">
3119 Could not parse the settings file.
3120 </result>
3121
3122 </desc>
3123
3124 <param name="result" type="long" dir="in">
3125 <desc>@c S_OK to indicate success.
3126 </desc>
3127 </param>
3128 <param name="errMsg" type="wstring" dir="in">
3129 <desc>@c human readable error message in case of failure.
3130 </desc>
3131 </param>
3132 </method>
3133
3134 <method name="runUSBDeviceFilters">
3135 <desc>
3136 Asks the server to run USB devices filters of the associated
3137 machine against the given USB device and tell if there is
3138 a match.
3139 <note>
3140 Intended to be used only for remote USB devices. Local
3141 ones don't require to call this method (this is done
3142 implicitly by the Host and USBProxyService).
3143 </note>
3144 </desc>
3145 <param name="device" type="IUSBDevice" dir="in"/>
3146 <param name="matched" type="boolean" dir="out"/>
3147 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3148 </method>
3149
3150 <method name="captureUSBDevice">
3151 <desc>
3152 Requests a capture of the given host USB device.
3153 When the request is completed, the VM process will
3154 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3155 notification.
3156 </desc>
3157 <param name="id" type="uuid" mod="string" dir="in"/>
3158 </method>
3159
3160 <method name="detachUSBDevice">
3161 <desc>
3162 Notification that a VM is going to detach (@a done = @c false) or has
3163 already detached (@a done = @c true) the given USB device.
3164 When the @a done = @c true request is completed, the VM process will
3165 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3166 notification.
3167 <note>
3168 In the @a done = @c true case, the server must run its own filters
3169 and filters of all VMs but this one on the detached device
3170 as if it were just attached to the host computer.
3171 </note>
3172 </desc>
3173 <param name="id" type="uuid" mod="string" dir="in"/>
3174 <param name="done" type="boolean" dir="in"/>
3175 </method>
3176
3177 <method name="autoCaptureUSBDevices">
3178 <desc>
3179 Requests a capture all matching USB devices attached to the host.
3180 When the request is completed, the VM process will
3181 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3182 notification per every captured device.
3183 </desc>
3184 </method>
3185
3186 <method name="detachAllUSBDevices">
3187 <desc>
3188 Notification that a VM that is being powered down. The done
3189 parameter indicates whether which stage of the power down
3190 we're at. When @a done = @c false the VM is announcing its
3191 intentions, while when @a done = @c true the VM is reporting
3192 what it has done.
3193 <note>
3194 In the @a done = @c true case, the server must run its own filters
3195 and filters of all VMs but this one on all detach devices as
3196 if they were just attached to the host computer.
3197 </note>
3198 </desc>
3199 <param name="done" type="boolean" dir="in"/>
3200 </method>
3201
3202 <method name="onSessionEnd">
3203 <desc>
3204 Triggered by the given session object when the session is about
3205 to close normally.
3206 </desc>
3207 <param name="session" type="ISession" dir="in">
3208 <desc>Session that is being closed</desc>
3209 </param>
3210 <param name="progress" type="IProgress" dir="return">
3211 <desc>
3212 Used to wait until the corresponding machine is actually
3213 dissociated from the given session on the server.
3214 Returned only when this session is a direct one.
3215 </desc>
3216 </param>
3217 </method>
3218
3219 <method name="beginSavingState">
3220 <desc>
3221 Called by the VM process to inform the server it wants to
3222 save the current state and stop the VM execution.
3223 </desc>
3224 <param name="progress" type="IProgress" dir="out">
3225 <desc>
3226 Progress object created by VBoxSVC to wait until
3227 the state is saved.
3228 </desc>
3229 </param>
3230 <param name="stateFilePath" type="wstring" dir="out">
3231 <desc>
3232 File path the VM process must save the execution state to.
3233 </desc>
3234 </param>
3235 </method>
3236
3237 <method name="endSavingState">
3238 <desc>
3239 Called by the VM process to inform the server that saving
3240 the state previously requested by #beginSavingState is either
3241 successfully finished or there was a failure.
3242
3243 <result name="VBOX_E_FILE_ERROR">
3244 Settings file not accessible.
3245 </result>
3246 <result name="VBOX_E_XML_ERROR">
3247 Could not parse the settings file.
3248 </result>
3249
3250 </desc>
3251
3252 <param name="result" type="long" dir="in">
3253 <desc>@c S_OK to indicate success.
3254 </desc>
3255 </param>
3256 <param name="errMsg" type="wstring" dir="in">
3257 <desc>@c human readable error message in case of failure.
3258 </desc>
3259 </param>
3260 </method>
3261
3262 <method name="adoptSavedState">
3263 <desc>
3264 Gets called by <link to="IConsole::adoptSavedState"/>.
3265 <result name="VBOX_E_FILE_ERROR">
3266 Invalid saved state file path.
3267 </result>
3268 </desc>
3269 <param name="savedStateFile" type="wstring" dir="in">
3270 <desc>Path to the saved state file to adopt.</desc>
3271 </param>
3272 </method>
3273
3274 <method name="beginTakingSnapshot">
3275 <desc>
3276 Called from the VM process to request from the server to perform the
3277 server-side actions of creating a snapshot (creating differencing images
3278 and the snapshot object).
3279
3280 <result name="VBOX_E_FILE_ERROR">
3281 Settings file not accessible.
3282 </result>
3283 <result name="VBOX_E_XML_ERROR">
3284 Could not parse the settings file.
3285 </result>
3286 </desc>
3287 <param name="initiator" type="IConsole" dir="in">
3288 <desc>The console object that initiated this call.</desc>
3289 </param>
3290 <param name="name" type="wstring" dir="in">
3291 <desc>Snapshot name.</desc>
3292 </param>
3293 <param name="description" type="wstring" dir="in">
3294 <desc>Snapshot description.</desc>
3295 </param>
3296 <param name="consoleProgress" type="IProgress" dir="in">
3297 <desc>
3298 Progress object created by the VM process tracking the
3299 snapshot's progress. This has the following sub-operations:
3300 <ul>
3301 <li>setting up (weight 1);</li>
3302 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3303 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3304 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3305 <li>finishing up (weight 1)</li>
3306 </ul>
3307 </desc>
3308 </param>
3309 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3310 <desc>
3311 Whether this is an online snapshot (i.e. the machine is running).
3312 </desc>
3313 </param>
3314 <param name="stateFilePath" type="wstring" dir="out">
3315 <desc>
3316 File path the VM process must save the execution state to.
3317 </desc>
3318 </param>
3319 </method>
3320
3321 <method name="endTakingSnapshot">
3322 <desc>
3323 Called by the VM process to inform the server that the snapshot
3324 previously requested by #beginTakingSnapshot is either
3325 successfully taken or there was a failure.
3326 </desc>
3327
3328 <param name="success" type="boolean" dir="in">
3329 <desc>@c true to indicate success and @c false otherwise</desc>
3330 </param>
3331 </method>
3332
3333 <method name="deleteSnapshot">
3334 <desc>
3335 Gets called by <link to="IConsole::deleteSnapshot"/>,
3336 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3337 <link to="IConsole::deleteSnapshotRange"/>.
3338 <result name="VBOX_E_INVALID_OBJECT_STATE">
3339 Snapshot has more than one child snapshot. Only possible if the
3340 delete operation does not delete all children or the range does
3341 not meet the linearity condition.
3342 </result>
3343 </desc>
3344 <param name="initiator" type="IConsole" dir="in">
3345 <desc>The console object that initiated this call.</desc>
3346 </param>
3347 <param name="startId" type="uuid" mod="string" dir="in">
3348 <desc>UUID of the first snapshot to delete.</desc>
3349 </param>
3350 <param name="endId" type="uuid" mod="string" dir="in">
3351 <desc>UUID of the last snapshot to delete.</desc>
3352 </param>
3353 <param name="deleteAllChildren" type="boolean" dir="in">
3354 <desc>Whether all children should be deleted.</desc>
3355 </param>
3356 <param name="machineState" type="MachineState" dir="out">
3357 <desc>New machine state after this operation is started.</desc>
3358 </param>
3359 <param name="progress" type="IProgress" dir="return">
3360 <desc>Progress object to track the operation completion.</desc>
3361 </param>
3362 </method>
3363
3364 <method name="finishOnlineMergeMedium">
3365 <desc>
3366 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3367 </desc>
3368 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3369 <desc>The medium attachment which needs to be cleaned up.</desc>
3370 </param>
3371 <param name="source" type="IMedium" dir="in">
3372 <desc>Merge source medium.</desc>
3373 </param>
3374 <param name="target" type="IMedium" dir="in">
3375 <desc>Merge target medium.</desc>
3376 </param>
3377 <param name="mergeForward" type="boolean" dir="in">
3378 <desc>Merge direction.</desc>
3379 </param>
3380 <param name="parentForTarget" type="IMedium" dir="in">
3381 <desc>For forward merges: new parent for target medium.</desc>
3382 </param>
3383 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3384 <desc>For backward merges: list of media which need their parent UUID
3385 updated.</desc>
3386 </param>
3387 </method>
3388
3389 <method name="restoreSnapshot">
3390 <desc>
3391 Gets called by <link to="IConsole::restoreSnapshot"/>.
3392 </desc>
3393 <param name="initiator" type="IConsole" dir="in">
3394 <desc>The console object that initiated this call.</desc>
3395 </param>
3396 <param name="snapshot" type="ISnapshot" dir="in">
3397 <desc>The snapshot to restore the VM state from.</desc>
3398 </param>
3399 <param name="machineState" type="MachineState" dir="out">
3400 <desc>New machine state after this operation is started.</desc>
3401 </param>
3402 <param name="progress" type="IProgress" dir="return">
3403 <desc>Progress object to track the operation completion.</desc>
3404 </param>
3405 </method>
3406
3407 <method name="pullGuestProperties">
3408 <desc>
3409 Get the list of the guest properties matching a set of patterns along
3410 with their values, time stamps and flags and give responsibility for
3411 managing properties to the console.
3412 </desc>
3413 <param name="name" type="wstring" dir="out" safearray="yes">
3414 <desc>
3415 The names of the properties returned.
3416 </desc>
3417 </param>
3418 <param name="value" type="wstring" dir="out" safearray="yes">
3419 <desc>
3420 The values of the properties returned. The array entries match the
3421 corresponding entries in the @a name array.
3422 </desc>
3423 </param>
3424 <param name="timestamp" type="long long" dir="out" safearray="yes">
3425 <desc>
3426 The time stamps of the properties returned. The array entries match
3427 the corresponding entries in the @a name array.
3428 </desc>
3429 </param>
3430 <param name="flags" type="wstring" dir="out" safearray="yes">
3431 <desc>
3432 The flags of the properties returned. The array entries match the
3433 corresponding entries in the @a name array.
3434 </desc>
3435 </param>
3436 </method>
3437
3438 <method name="pushGuestProperty">
3439 <desc>
3440 Update a single guest property in IMachine.
3441 </desc>
3442 <param name="name" type="wstring" dir="in">
3443 <desc>
3444 The name of the property to be updated.
3445 </desc>
3446 </param>
3447 <param name="value" type="wstring" dir="in">
3448 <desc>
3449 The value of the property.
3450 </desc>
3451 </param>
3452 <param name="timestamp" type="long long" dir="in">
3453 <desc>
3454 The timestamp of the property.
3455 </desc>
3456 </param>
3457 <param name="flags" type="wstring" dir="in">
3458 <desc>
3459 The flags of the property.
3460 </desc>
3461 </param>
3462 </method>
3463
3464 <method name="lockMedia">
3465 <desc>
3466 Locks all media attached to the machine for writing and parents of
3467 attached differencing media (if any) for reading. This operation is
3468 atomic so that if it fails no media is actually locked.
3469
3470 This method is intended to be called when the machine is in Starting or
3471 Restoring state. The locked media will be automatically unlocked when
3472 the machine is powered off or crashed.
3473 </desc>
3474 </method>
3475 <method name="unlockMedia">
3476 <desc>
3477 Unlocks all media previously locked using
3478 <link to="IInternalMachineControl::lockMedia"/>.
3479
3480 This method is intended to be used with teleportation so that it is
3481 possible to teleport between processes on the same machine.
3482 </desc>
3483 </method>
3484
3485 <method name="ejectMedium">
3486 <desc>
3487 Tells VBoxSVC that the guest has ejected the medium associated with
3488 the medium attachment.
3489 </desc>
3490 <param name="attachment" type="IMediumAttachment" dir="in">
3491 <desc>
3492 The medium attachment where the eject happened.
3493 </desc>
3494 </param>
3495 <param name="newAttachment" type="IMediumAttachment" dir="return">
3496 <desc>
3497 A new reference to the medium attachment, as the config change can
3498 result in the creation of a new instance.
3499 </desc>
3500 </param>
3501 </method>
3502
3503 <method name="reportGuestStatistics">
3504 <desc>
3505 Passes collected guest statistics to VBoxSVC.
3506 </desc>
3507 <param name="validStats" type="unsigned long" dir="in">
3508 <desc>
3509 Mask defining which parameters are valid. For example: 0x11 means
3510 that cpuIdle and XXX are valid. Other parameters should be ignored.
3511 </desc>
3512 </param>
3513 <param name="cpuUser" type="unsigned long" dir="in">
3514 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3515 </param>
3516 <param name="cpuKernel" type="unsigned long" dir="in">
3517 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3518 </param>
3519 <param name="cpuIdle" type="unsigned long" dir="in">
3520 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3521 </param>
3522 <param name="memTotal" type="unsigned long" dir="in">
3523 <desc>Total amount of physical guest RAM.</desc>
3524 </param>
3525 <param name="memFree" type="unsigned long" dir="in">
3526 <desc>Free amount of physical guest RAM.</desc>
3527 </param>
3528 <param name="memBalloon" type="unsigned long" dir="in">
3529 <desc>Amount of ballooned physical guest RAM.</desc>
3530 </param>
3531 <param name="memShared" type="unsigned long" dir="in">
3532 <desc>Amount of shared physical guest RAM.</desc>
3533 </param>
3534 <param name="memCache" type="unsigned long" dir="in">
3535 <desc>Total amount of guest (disk) cache memory.</desc>
3536 </param>
3537 <param name="pagedTotal" type="unsigned long" dir="in">
3538 <desc>Total amount of space in the page file.</desc>
3539 </param>
3540 <param name="memAllocTotal" type="unsigned long" dir="in">
3541 <desc>Total amount of memory allocated by the hypervisor.</desc>
3542 </param>
3543 <param name="memFreeTotal" type="unsigned long" dir="in">
3544 <desc>Total amount of free memory available in the hypervisor.</desc>
3545 </param>
3546 <param name="memBalloonTotal" type="unsigned long" dir="in">
3547 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3548 </param>
3549 <param name="memSharedTotal" type="unsigned long" dir="in">
3550 <desc>Total amount of shared memory in the hypervisor.</desc>
3551 </param>
3552 </method>
3553 </interface>
3554
3555 <interface
3556 name="IBIOSSettings" extends="$unknown"
3557 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3558 wsmap="managed"
3559 >
3560 <desc>
3561 The IBIOSSettings interface represents BIOS settings of the virtual
3562 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3563 </desc>
3564 <attribute name="logoFadeIn" type="boolean">
3565 <desc>Fade in flag for BIOS logo animation.</desc>
3566 </attribute>
3567
3568 <attribute name="logoFadeOut" type="boolean">
3569 <desc>Fade out flag for BIOS logo animation.</desc>
3570 </attribute>
3571
3572 <attribute name="logoDisplayTime" type="unsigned long">
3573 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3574 </attribute>
3575
3576 <attribute name="logoImagePath" type="wstring">
3577 <desc>
3578 Local file system path for external BIOS splash image. Empty string
3579 means the default image is shown on boot.
3580 </desc>
3581 </attribute>
3582
3583 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3584 <desc>Mode of the BIOS boot device menu.</desc>
3585 </attribute>
3586
3587 <attribute name="ACPIEnabled" type="boolean">
3588 <desc>ACPI support flag.</desc>
3589 </attribute>
3590
3591 <attribute name="IOAPICEnabled" type="boolean">
3592 <desc>
3593 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3594 and support IRQs above 15.
3595 </desc>
3596 </attribute>
3597
3598 <attribute name="timeOffset" type="long long">
3599 <desc>
3600 Offset in milliseconds from the host system time. This allows for
3601 guests running with a different system date/time than the host.
3602 It is equivalent to setting the system date/time in the BIOS except
3603 it is not an absolute value but a relative one. Guest Additions
3604 time synchronization honors this offset.
3605 </desc>
3606 </attribute>
3607
3608 <attribute name="PXEDebugEnabled" type="boolean">
3609 <desc>
3610 PXE debug logging flag. If set, VirtualBox will write extensive
3611 PXE trace information to the release log.
3612 </desc>
3613 </attribute>
3614 </interface>
3615
3616 <enum
3617 name="CleanupMode"
3618 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3619 >
3620 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3621 </desc>
3622 <const name="UnregisterOnly" value="1">
3623 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3624 </const>
3625 <const name="DetachAllReturnNone" value="2">
3626 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3627 </const>
3628 <const name="DetachAllReturnHardDisksOnly" value="3">
3629 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3630 </const>
3631 <const name="Full" value="4">
3632 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3633 </const>
3634 </enum>
3635
3636 <interface
3637 name="IPCIAddress" extends="$unknown"
3638 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3639 wsmap="struct"
3640 >
3641
3642 <desc>
3643 Address on the PCI bus.
3644 </desc>
3645
3646 <attribute name="bus" type="short">
3647 <desc>
3648 Bus number.
3649 </desc>
3650 </attribute>
3651
3652 <attribute name="device" type="short">
3653 <desc>
3654 Device number.
3655 </desc>
3656 </attribute>
3657
3658 <attribute name="devFunction" type="short">
3659 <desc>
3660 Device function number.
3661 </desc>
3662 </attribute>
3663
3664 <method name="asLong">
3665 <desc>
3666 Convert PCI address into long.
3667 </desc>
3668 <param name="result" type="long" dir="return" />
3669 </method>
3670
3671 <method name="fromLong">
3672 <desc>
3673 Make PCI address from long.
3674 </desc>
3675 <param name="number" type="long" dir="in" />
3676 </method>
3677 </interface>
3678
3679 <interface
3680 name="IPCIDeviceAttachment" extends="$unknown"
3681 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3682 wsmap="struct"
3683 >
3684
3685 <desc>
3686 Information about PCI attachments.
3687 </desc>
3688
3689 <attribute name="name" type="wstring" readonly="yes">
3690 <desc>
3691 Device name.
3692 </desc>
3693 </attribute>
3694
3695 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3696 <desc>
3697 If this is physical or virtual device.
3698 </desc>
3699 </attribute>
3700
3701 <attribute name="hostAddress" type="long" readonly="yes">
3702 <desc>
3703 Address of device on the host, applicable only to host devices.
3704 </desc>
3705 </attribute>
3706
3707 <attribute name="guestAddress" type="long" readonly="yes">
3708 <desc>
3709 Address of device on the guest.
3710 </desc>
3711 </attribute>
3712
3713 </interface>
3714
3715 <enum
3716 name="CloneMode" extends="$unknown"
3717 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3718 >
3719
3720 <desc>
3721 Clone mode, used with <link to="IMachine::cloneTo" />.
3722 </desc>
3723
3724 <const name="MachineState" value="1">
3725 <desc>Clone the state of the selected machine.</desc>
3726 </const>
3727 <const name="MachineAndChildStates" value="2">
3728 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3729 </const>
3730 <const name="AllStates" value="3">
3731 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3732 </const>
3733
3734 </enum>
3735
3736 <enum
3737 name="CloneOptions" extends="$unknown"
3738 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3739 >
3740
3741 <desc>
3742 Clone options, used with <link to="IMachine::cloneTo" />.
3743 </desc>
3744
3745 <const name="Link" value="1">
3746 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3747 </const>
3748 <const name="KeepAllMACs" value="2">
3749 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3750 </const>
3751 <const name="KeepNATMACs" value="3">
3752 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3753 </const>
3754 <const name="KeepDiskNames" value="4">
3755 <desc>Don't change the disk names.</desc>
3756 </const>
3757
3758 </enum>
3759
3760 <enum
3761 name="AutostopType" extends="$unknown"
3762 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3763 >
3764
3765 <desc>
3766 Autostop types, used with <link to="IMachine::autostopType" />.
3767 </desc>
3768
3769 <const name="Disabled" value="1">
3770 <desc>Stopping the VM during system shutdown is disabled.</desc>
3771 </const>
3772 <const name="SaveState" value="2">
3773 <desc>The state of the VM will be saved when the system shuts down.</desc>
3774 </const>
3775 <const name="PowerOff" value="3">
3776 <desc>The VM is powered off when the system shuts down.</desc>
3777 </const>
3778 <const name="AcpiShutdown" value="4">
3779 <desc>An ACPI shutdown event is generated.</desc>
3780 </const>
3781
3782 </enum>
3783
3784
3785 <interface
3786 name="IMachine" extends="$unknown"
3787 uuid="22781af3-1c96-4126-9edf-67a020e0e858"
3788 wsmap="managed"
3789 >
3790 <desc>
3791 The IMachine interface represents a virtual machine, or guest, created
3792 in VirtualBox.
3793
3794 This interface is used in two contexts. First of all, a collection of
3795 objects implementing this interface is stored in the
3796 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3797 machines that are currently registered with this VirtualBox
3798 installation. Also, once a session has been opened for the given virtual
3799 machine (e.g. the virtual machine is running), the machine object
3800 associated with the open session can be queried from the session object;
3801 see <link to="ISession"/> for details.
3802
3803 The main role of this interface is to expose the settings of the virtual
3804 machine and provide methods to change various aspects of the virtual
3805 machine's configuration. For machine objects stored in the
3806 <link to="IVirtualBox::machines"/> collection, all attributes are
3807 read-only unless explicitly stated otherwise in individual attribute
3808 and method descriptions.
3809
3810 In order to change a machine setting, a session for this machine must be
3811 opened using one of the <link to="IMachine::lockMachine" /> or
3812 <link to="IMachine::launchVMProcess"/> methods. After the
3813 machine has been successfully locked for a session, a mutable machine object
3814 needs to be queried from the session object and then the desired settings
3815 changes can be applied to the returned object using IMachine attributes and
3816 methods. See the <link to="ISession"/> interface description for more
3817 information about sessions.
3818
3819 Note that IMachine does not provide methods to control virtual machine
3820 execution (such as start the machine, or power it down) -- these methods
3821 are grouped in a separate interface called <link to="IConsole" />.
3822
3823 <see><link to="ISession"/>, <link to="IConsole"/></see>
3824 </desc>
3825
3826 <attribute name="parent" type="IVirtualBox" readonly="yes">
3827 <desc>Associated parent object.</desc>
3828 </attribute>
3829
3830 <attribute name="accessible" type="boolean" readonly="yes">
3831 <desc>
3832 Whether this virtual machine is currently accessible or not.
3833
3834 A machine is always deemed accessible unless it is registered <i>and</i>
3835 its settings file cannot be read or parsed (either because the file itself
3836 is unavailable or has invalid XML contents).
3837
3838 Every time this property is read, the accessibility state of
3839 this machine is re-evaluated. If the returned value is @c false,
3840 the <link to="#accessError"/> property may be used to get the
3841 detailed error information describing the reason of
3842 inaccessibility, including XML error messages.
3843
3844 When the machine is inaccessible, only the following properties
3845 can be used on it:
3846 <ul>
3847 <li><link to="#parent"/></li>
3848 <li><link to="#id"/></li>
3849 <li><link to="#settingsFilePath"/></li>
3850 <li><link to="#accessible"/></li>
3851 <li><link to="#accessError"/></li>
3852 </ul>
3853
3854 An attempt to access any other property or method will return
3855 an error.
3856
3857 The only possible action you can perform on an inaccessible
3858 machine is to unregister it using the
3859 <link to="IMachine::unregister"/> call (or, to check
3860 for the accessibility state once more by querying this
3861 property).
3862
3863 <note>
3864 In the current implementation, once this property returns
3865 @c true, the machine will never become inaccessible
3866 later, even if its settings file cannot be successfully
3867 read/written any more (at least, until the VirtualBox
3868 server is restarted). This limitation may be removed in
3869 future releases.
3870 </note>
3871 </desc>
3872 </attribute>
3873
3874 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3875 <desc>
3876 Error information describing the reason of machine
3877 inaccessibility.
3878
3879 Reading this property is only valid after the last call to
3880 <link to="#accessible"/> returned @c false (i.e. the
3881 machine is currently inaccessible). Otherwise, a @c null
3882 IVirtualBoxErrorInfo object will be returned.
3883 </desc>
3884 </attribute>
3885
3886 <attribute name="name" type="wstring">
3887 <desc>
3888 Name of the virtual machine.
3889
3890 Besides being used for human-readable identification purposes
3891 everywhere in VirtualBox, the virtual machine name is also used
3892 as a name of the machine's settings file and as a name of the
3893 subdirectory this settings file resides in. Thus, every time you
3894 change the value of this property, the settings file will be
3895 renamed once you call <link to="#saveSettings"/> to confirm the
3896 change. The containing subdirectory will be also renamed, but
3897 only if it has exactly the same name as the settings file
3898 itself prior to changing this property (for backward compatibility
3899 with previous API releases). The above implies the following
3900 limitations:
3901 <ul>
3902 <li>The machine name cannot be empty.</li>
3903 <li>The machine name can contain only characters that are valid
3904 file name characters according to the rules of the file
3905 system used to store VirtualBox configuration.</li>
3906 <li>You cannot have two or more machines with the same name
3907 if they use the same subdirectory for storing the machine
3908 settings files.</li>
3909 <li>You cannot change the name of the machine if it is running,
3910 or if any file in the directory containing the settings file
3911 is being used by another running machine or by any other
3912 process in the host operating system at a time when
3913 <link to="#saveSettings"/> is called.
3914 </li>
3915 </ul>
3916 If any of the above limitations are hit, <link to="#saveSettings"/>
3917 will return an appropriate error message explaining the exact
3918 reason and the changes you made to this machine will not be saved.
3919
3920 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
3921 file is recommended, but not enforced. (Previous versions always
3922 used a generic ".xml" extension.)
3923 </desc>
3924 </attribute>
3925
3926 <attribute name="description" type="wstring">
3927 <desc>
3928 Description of the virtual machine.
3929
3930 The description attribute can contain any text and is
3931 typically used to describe the hardware and software
3932 configuration of the virtual machine in detail (i.e. network
3933 settings, versions of the installed software and so on).
3934 </desc>
3935 </attribute>
3936
3937 <attribute name="id" type="uuid" mod="string" readonly="yes">
3938 <desc>UUID of the virtual machine.</desc>
3939 </attribute>
3940
3941 <attribute name="groups" type="wstring" safearray="yes">
3942 <desc>
3943 Array of machine group names of which this machine is a member.
3944 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
3945 group is only listed once, however they are listed in no particular
3946 order and there is no guarantee that there are no gaps in the group
3947 hierarchy (i.e. <tt>"/group"</tt>,
3948 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
3949 </desc>
3950 </attribute>
3951
3952 <attribute name="OSTypeId" type="wstring">
3953 <desc>
3954 User-defined identifier of the Guest OS type.
3955 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3956 an IGuestOSType object representing details about the given
3957 Guest OS type.
3958 <note>
3959 This value may differ from the value returned by
3960 <link to="IGuest::OSTypeId"/> if Guest Additions are
3961 installed to the guest OS.
3962 </note>
3963 </desc>
3964 </attribute>
3965
3966 <attribute name="hardwareVersion" type="wstring">
3967 <desc>Hardware version identifier. Internal use only for now.</desc>
3968 </attribute>
3969
3970 <attribute name="hardwareUUID" type="uuid" mod="string">
3971 <desc>
3972 The UUID presented to the guest via memory tables, hardware and guest
3973 properties. For most VMs this is the same as the @a id, but for VMs
3974 which have been cloned or teleported it may be the same as the source
3975 VM. The latter is because the guest shouldn't notice that it was
3976 cloned or teleported.
3977 </desc>
3978 </attribute>
3979
3980 <attribute name="CPUCount" type="unsigned long">
3981 <desc>Number of virtual CPUs in the VM.</desc>
3982 </attribute>
3983
3984 <attribute name="CPUHotPlugEnabled" type="boolean">
3985 <desc>
3986 This setting determines whether VirtualBox allows CPU
3987 hotplugging for this machine.</desc>
3988 </attribute>
3989
3990 <attribute name="CPUExecutionCap" type="unsigned long">
3991 <desc>
3992 Means to limit the number of CPU cycles a guest can use. The unit
3993 is percentage of host CPU cycles per second. The valid range
3994 is 1 - 100. 100 (the default) implies no limit.
3995 </desc>
3996 </attribute>
3997
3998 <attribute name="memorySize" type="unsigned long">
3999 <desc>System memory size in megabytes.</desc>
4000 </attribute>
4001
4002 <attribute name="memoryBalloonSize" type="unsigned long">
4003 <desc>Memory balloon size in megabytes.</desc>
4004 </attribute>
4005
4006 <attribute name="pageFusionEnabled" type="boolean">
4007 <desc>
4008 This setting determines whether VirtualBox allows page
4009 fusion for this machine (64 bits host only).
4010 </desc>
4011 </attribute>
4012
4013 <attribute name="VRAMSize" type="unsigned long">
4014 <desc>Video memory size in megabytes.</desc>
4015 </attribute>
4016
4017 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4018 <desc>
4019 This setting determines whether VirtualBox allows this machine to make
4020 use of the 3D graphics support available on the host.</desc>
4021 </attribute>
4022
4023 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4024 <desc>
4025 This setting determines whether VirtualBox allows this machine to make
4026 use of the 2D video acceleration support available on the host.</desc>
4027 </attribute>
4028
4029 <attribute name="monitorCount" type="unsigned long">
4030 <desc>
4031 Number of virtual monitors.
4032 <note>
4033 Only effective on Windows XP and later guests with
4034 Guest Additions installed.
4035 </note>
4036 </desc>
4037 </attribute>
4038
4039 <attribute name="VideoCaptureEnabled" type="boolean" default="false">
4040 <desc>
4041 This setting determines whether VirtualBox uses video recording to
4042 record VM session.</desc>
4043 </attribute>
4044
4045 <attribute name="VideoCaptureFile" type="wstring" default="Test.webm">
4046 <desc>
4047 This setting determines what filename VirtualBox uses to save
4048 the recorded content.</desc>
4049 </attribute>
4050
4051 <attribute name="VideoCaptureWidth" type="unsigned long" default="640">
4052 <desc>
4053 This setting determines what should be the horizontal resolution of
4054 recorded video.</desc>
4055 </attribute>
4056
4057 <attribute name="VideoCaptureHeight" type="unsigned long" default="480">
4058 <desc>
4059 This setting determines what should be the vertical resolution
4060 of recorded video.</desc>
4061 </attribute>
4062
4063 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4064 <desc>Object containing all BIOS settings.</desc>
4065 </attribute>
4066
4067 <attribute name="firmwareType" type="FirmwareType">
4068 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4069 bootstrap in this VM.</desc>
4070 </attribute>
4071
4072 <attribute name="pointingHIDType" type="PointingHIDType">
4073 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4074 The default is typically "PS2Mouse" but can vary depending on the
4075 requirements of the guest operating system.</desc>
4076 </attribute>
4077
4078 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4079 <desc>Type of keyboard HID used in this VM.
4080 The default is typically "PS2Keyboard" but can vary depending on the
4081 requirements of the guest operating system.</desc>
4082 </attribute>
4083
4084 <attribute name="HPETEnabled" type="boolean">
4085 <desc>This attribute controls if High Precision Event Timer (HPET) is
4086 enabled in this VM. Use this property if you want to provide guests
4087 with additional time source, or if guest requires HPET to function correctly.
4088 Default is false.</desc>
4089 </attribute>
4090
4091 <attribute name="chipsetType" type="ChipsetType">
4092 <desc>Chipset type used in this VM.</desc>
4093 </attribute>
4094
4095 <attribute name="snapshotFolder" type="wstring">
4096 <desc>
4097 Full path to the directory used to store snapshot data
4098 (differencing media and saved state files) of this machine.
4099
4100 The initial value of this property is
4101 <tt>&lt;</tt><link to="#settingsFilePath">
4102 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4103 <link to="#id">machine_uuid</link>
4104 <tt>&gt;</tt>.
4105
4106 Currently, it is an error to try to change this property on
4107 a machine that has snapshots (because this would require to
4108 move possibly large files to a different location).
4109 A separate method will be available for this purpose later.
4110
4111 <note>
4112 Setting this property to @c null or to an empty string will restore
4113 the initial value.
4114 </note>
4115 <note>
4116 When setting this property, the specified path can be
4117 absolute (full path) or relative to the directory where the
4118 <link to="#settingsFilePath">machine settings file</link>
4119 is located. When reading this property, a full path is
4120 always returned.
4121 </note>
4122 <note>
4123 The specified path may not exist, it will be created
4124 when necessary.
4125 </note>
4126 </desc>
4127 </attribute>
4128
4129 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4130 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4131 </attribute>
4132
4133 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4134 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4135
4136 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4137 <desc>Array of media attached to this machine.</desc>
4138 </attribute>
4139
4140 <attribute name="USBController" type="IUSBController" readonly="yes">
4141 <desc>
4142 Associated USB controller object.
4143
4144 <note>
4145 If USB functionality is not available in the given edition of
4146 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4147 </note>
4148 </desc>
4149 </attribute>
4150
4151 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4152 <desc>Associated audio adapter, always present.</desc>
4153 </attribute>
4154
4155 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4156 <desc>Array of storage controllers attached to this machine.</desc>
4157 </attribute>
4158
4159 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4160 <desc>
4161 Full name of the file containing machine settings data.
4162 </desc>
4163 </attribute>
4164
4165 <attribute name="settingsModified" type="boolean" readonly="yes">
4166 <desc>
4167 Whether the settings of this machine have been modified
4168 (but neither yet saved nor discarded).
4169 <note>
4170 Reading this property is only valid on instances returned
4171 by <link to="ISession::machine"/> and on new machines
4172 created by <link to="IVirtualBox::createMachine"/> or opened
4173 by <link to="IVirtualBox::openMachine"/> but not
4174 yet registered, or on unregistered machines after calling
4175 <link to="IMachine::unregister"/>. For all other
4176 cases, the settings can never be modified.
4177 </note>
4178 <note>
4179 For newly created unregistered machines, the value of this
4180 property is always @c true until <link to="#saveSettings"/>
4181 is called (no matter if any machine settings have been
4182 changed after the creation or not). For opened machines
4183 the value is set to @c false (and then follows to normal rules).
4184 </note>
4185 </desc>
4186 </attribute>
4187
4188 <attribute name="sessionState" type="SessionState" readonly="yes">
4189 <desc>Current session state for this machine.</desc>
4190 </attribute>
4191
4192 <attribute name="sessionType" type="wstring" readonly="yes">
4193 <desc>
4194 Type of the session. If <link to="#sessionState"/> is
4195 Spawning or Locked, this attribute contains the
4196 same value as passed to the
4197 <link to="IMachine::launchVMProcess"/> method in the
4198 @a type parameter. If the session was used with
4199 <link to="IMachine::lockMachine" />, or if
4200 <link to="#sessionState"/> is SessionClosed, the value of this
4201 attribute is an empty string.
4202 </desc>
4203 </attribute>
4204
4205 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4206 <desc>
4207 Identifier of the session process. This attribute contains the
4208 platform-dependent identifier of the process whose session was
4209 used with <link to="IMachine::lockMachine" /> call. The returned
4210 value is only valid if <link to="#sessionState"/> is Locked or
4211 Unlocking by the time this property is read.
4212 </desc>
4213 </attribute>
4214
4215 <attribute name="state" type="MachineState" readonly="yes">
4216 <desc>Current execution state of this machine.</desc>
4217 </attribute>
4218
4219 <attribute name="lastStateChange" type="long long" readonly="yes">
4220 <desc>
4221 Time stamp of the last execution state change,
4222 in milliseconds since 1970-01-01 UTC.
4223 </desc>
4224 </attribute>
4225
4226 <attribute name="stateFilePath" type="wstring" readonly="yes">
4227 <desc>
4228 Full path to the file that stores the execution state of
4229 the machine when it is in the <link to="MachineState_Saved"/> state.
4230 <note>
4231 When the machine is not in the Saved state, this attribute is
4232 an empty string.
4233 </note>
4234 </desc>
4235 </attribute>
4236
4237 <attribute name="logFolder" type="wstring" readonly="yes">
4238 <desc>
4239 Full path to the folder that stores a set of rotated log files
4240 recorded during machine execution. The most recent log file is
4241 named <tt>VBox.log</tt>, the previous log file is
4242 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4243 in the current version).
4244 </desc>
4245 </attribute>
4246
4247 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4248 <desc>
4249 Current snapshot of this machine. This is @c null if the machine
4250 currently has no snapshots. If it is not @c null, then it was
4251 set by one of <link to="IConsole::takeSnapshot" />,
4252 <link to="IConsole::deleteSnapshot" />
4253 or <link to="IConsole::restoreSnapshot" />, depending on which
4254 was called last. See <link to="ISnapshot"/> for details.
4255 </desc>
4256 </attribute>
4257
4258 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4259 <desc>
4260 Number of snapshots taken on this machine. Zero means the
4261 machine doesn't have any snapshots.
4262 </desc>
4263 </attribute>
4264
4265 <attribute name="currentStateModified" type="boolean" readonly="yes">
4266 <desc>
4267 Returns @c true if the current state of the machine is not
4268 identical to the state stored in the current snapshot.
4269
4270 The current state is identical to the current snapshot only
4271 directly after one of the following calls are made:
4272
4273 <ul>
4274 <li><link to="IConsole::restoreSnapshot"/>
4275 </li>
4276 <li><link to="IConsole::takeSnapshot"/> (issued on a
4277 "powered off" or "saved" machine, for which
4278 <link to="#settingsModified"/> returns @c false)
4279 </li>
4280 </ul>
4281
4282 The current state remains identical until one of the following
4283 happens:
4284 <ul>
4285 <li>settings of the machine are changed</li>
4286 <li>the saved state is deleted</li>
4287 <li>the current snapshot is deleted</li>
4288 <li>an attempt to execute the machine is made</li>
4289 </ul>
4290
4291 <note>
4292 For machines that don't have snapshots, this property is
4293 always @c false.
4294 </note>
4295 </desc>
4296 </attribute>
4297
4298 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4299 <desc>
4300 Collection of shared folders for this machine (permanent shared
4301 folders). These folders are shared automatically at machine startup
4302 and available only to the guest OS installed within this machine.
4303
4304 New shared folders are added to the collection using
4305 <link to="#createSharedFolder"/>. Existing shared folders can be
4306 removed using <link to="#removeSharedFolder"/>.
4307 </desc>
4308 </attribute>
4309
4310 <attribute name="clipboardMode" type="ClipboardMode">
4311 <desc>
4312 Synchronization mode between the host OS clipboard
4313 and the guest OS clipboard.
4314 </desc>
4315 </attribute>
4316
4317 <attribute name="dragAndDropMode" type="DragAndDropMode">
4318 <desc>
4319 Which mode is allowed for drag'n'drop.
4320 </desc>
4321 </attribute>
4322
4323 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4324 <desc>
4325 A comma-separated list of simple glob patterns. Changes to guest
4326 properties whose name matches one of the patterns will generate an
4327 <link to="IGuestPropertyChangedEvent"/> signal.
4328 </desc>
4329 </attribute>
4330
4331 <attribute name="teleporterEnabled" type="boolean">
4332 <desc>
4333 When set to @a true, the virtual machine becomes a target teleporter
4334 the next time it is powered on. This can only set to @a true when the
4335 VM is in the @a PoweredOff or @a Aborted state.
4336
4337 <!-- This property is automatically set to @a false when the VM is powered
4338 on. (bird: This doesn't work yet ) -->
4339 </desc>
4340 </attribute>
4341
4342 <attribute name="teleporterPort" type="unsigned long">
4343 <desc>
4344 The TCP port the target teleporter will listen for incoming
4345 teleportations on.
4346
4347 0 means the port is automatically selected upon power on. The actual
4348 value can be read from this property while the machine is waiting for
4349 incoming teleportations.
4350 </desc>
4351 </attribute>
4352
4353 <attribute name="teleporterAddress" type="wstring">
4354 <desc>
4355 The address the target teleporter will listen on. If set to an empty
4356 string, it will listen on all addresses.
4357 </desc>
4358 </attribute>
4359
4360 <attribute name="teleporterPassword" type="wstring">
4361 <desc>
4362 The password to check for on the target teleporter. This is just a
4363 very basic measure to prevent simple hacks and operators accidentally
4364 beaming a virtual machine to the wrong place.
4365
4366 Note that you SET a plain text password while reading back a HASHED
4367 password. Setting a hashed password is currently not supported.
4368 </desc>
4369 </attribute>
4370
4371 <attribute name="faultToleranceState" type="FaultToleranceState">
4372 <desc>
4373 Fault tolerance state; disabled, source or target.
4374 This property can be changed at any time. If you change it for a running
4375 VM, then the fault tolerance address and port must be set beforehand.
4376 </desc>
4377 </attribute>
4378
4379 <attribute name="faultTolerancePort" type="unsigned long">
4380 <desc>
4381 The TCP port the fault tolerance source or target will use for
4382 communication.
4383 </desc>
4384 </attribute>
4385
4386 <attribute name="faultToleranceAddress" type="wstring">
4387 <desc>
4388 The address the fault tolerance source or target.
4389 </desc>
4390 </attribute>
4391
4392 <attribute name="faultTolerancePassword" type="wstring">
4393 <desc>
4394 The password to check for on the standby VM. This is just a
4395 very basic measure to prevent simple hacks and operators accidentally
4396 choosing the wrong standby VM.
4397 </desc>
4398 </attribute>
4399
4400 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4401 <desc>
4402 The interval in ms used for syncing the state between source and target.
4403 </desc>
4404 </attribute>
4405
4406 <attribute name="RTCUseUTC" type="boolean">
4407 <desc>
4408 When set to @a true, the RTC device of the virtual machine will run
4409 in UTC time, otherwise in local time. Especially Unix guests prefer
4410 the time in UTC.
4411 </desc>
4412 </attribute>
4413
4414 <attribute name="IOCacheEnabled" type="boolean">
4415 <desc>
4416 When set to @a true, the builtin I/O cache of the virtual machine
4417 will be enabled.
4418 </desc>
4419 </attribute>
4420
4421 <attribute name="IOCacheSize" type="unsigned long">
4422 <desc>
4423 Maximum size of the I/O cache in MB.
4424 </desc>
4425 </attribute>
4426
4427 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4428 <desc>Array of PCI devices assigned to this machine, to get list of all
4429 PCI devices attached to the machine use
4430 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4431 is intended to list only devices additional to what described in
4432 virtual hardware config. Usually, this list keeps host's physical
4433 devices assigned to the particular machine.
4434 </desc>
4435 </attribute>
4436
4437 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4438 <desc>
4439 Bandwidth control manager.
4440 </desc>
4441 </attribute>
4442
4443 <attribute name="tracingEnabled" type="boolean">
4444 <desc>
4445 Enables the tracing facility in the VMM (including PDM devices +
4446 drivers). The VMM will consume about 0.5MB of more memory when
4447 enabled and there may be some extra overhead from tracepoints that are
4448 always enabled.
4449 </desc>
4450 </attribute>
4451
4452 <attribute name="tracingConfig" type="wstring">
4453 <desc>
4454 Tracepoint configuration to apply at startup when
4455 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4456 a space separated of tracepoint group names to enable. The special
4457 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4458 more details on available tracepoint groups and such.
4459
4460 Note that on hosts supporting DTrace (or similar), a lot of the
4461 tracepoints may be implemented exclusivly as DTrace probes. So, the
4462 effect of the same config may differ between Solaris and Windows for
4463 example.
4464 </desc>
4465 </attribute>
4466
4467 <attribute name="allowTracingToAccessVM" type="boolean">
4468 <desc>
4469 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4470 structures when firing off trace points. This is especially useful
4471 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4472 pointer to obtain useful information such as guest register state.
4473
4474 This is disabled by default because devices and drivers normally has no
4475 business accessing the VMCPU or VM structures, and are therefore unable
4476 to get any pointers to these.
4477 </desc>
4478 </attribute>
4479
4480 <attribute name="autostartEnabled" type="boolean">
4481 <desc>
4482 Enables autostart of the VM during system boot.
4483 </desc>
4484 </attribute>
4485
4486 <attribute name="autostartDelay" type="unsigned long">
4487 <desc>
4488 Number of seconds to wait until the VM should be started during system boot.
4489 </desc>
4490 </attribute>
4491
4492 <attribute name="autostopType" type="AutostopType">
4493 <desc>
4494 Action type to do when the system is shutting down.
4495 </desc>
4496 </attribute>
4497
4498 <method name="lockMachine">
4499 <desc>
4500 Locks the machine for the given session to enable the caller
4501 to make changes to the machine or start the VM or control
4502 VM execution.
4503
4504 There are two ways to lock a machine for such uses:
4505
4506 <ul>
4507 <li>If you want to make changes to the machine settings,
4508 you must obtain an exclusive write lock on the machine
4509 by setting @a lockType to @c Write.
4510
4511 This will only succeed if no other process has locked
4512 the machine to prevent conflicting changes. Only after
4513 an exclusive write lock has been obtained using this method, one
4514 can change all VM settings or execute the VM in the process
4515 space of the session object. (Note that the latter is only of
4516 interest if you actually want to write a new front-end for
4517 virtual machines; but this API gets called internally by
4518 the existing front-ends such as VBoxHeadless and the VirtualBox
4519 GUI to acquire a write lock on the machine that they are running.)
4520
4521 On success, write-locking the machine for a session creates
4522 a second copy of the IMachine object. It is this second object
4523 upon which changes can be made; in VirtualBox terminology, the
4524 second copy is "mutable". It is only this second, mutable machine
4525 object upon which you can call methods that change the
4526 machine state. After having called this method, you can
4527 obtain this second, mutable machine object using the
4528 <link to="ISession::machine" /> attribute.
4529 </li>
4530 <li>If you only want to check the machine state or control
4531 machine execution without actually changing machine
4532 settings (e.g. to get access to VM statistics or take
4533 a snapshot or save the machine state), then set the
4534 @a lockType argument to @c Shared.
4535
4536 If no other session has obtained a lock, you will obtain an
4537 exclusive write lock as described above. However, if another
4538 session has already obtained such a lock, then a link to that
4539 existing session will be established which allows you
4540 to control that existing session.
4541
4542 To find out which type of lock was obtained, you can
4543 inspect <link to="ISession::type" />, which will have been
4544 set to either @c WriteLock or @c Shared.
4545 </li>
4546 </ul>
4547
4548 In either case, you can get access to the <link to="IConsole" />
4549 object which controls VM execution.
4550
4551 Also in all of the above cases, one must always call
4552 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4553 the machine's state will eventually be set to "Aborted".
4554
4555 To change settings on a machine, the following sequence is typically
4556 performed:
4557
4558 <ol>
4559 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4560
4561 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4562
4563 <li>Change the settings of the machine by invoking IMachine methods.</li>
4564
4565 <li>Call <link to="IMachine::saveSettings" />.</li>
4566
4567 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4568 </ol>
4569
4570 <result name="E_UNEXPECTED">
4571 Virtual machine not registered.
4572 </result>
4573 <result name="E_ACCESSDENIED">
4574 Process not started by OpenRemoteSession.
4575 </result>
4576 <result name="VBOX_E_INVALID_OBJECT_STATE">
4577 Session already open or being opened.
4578 </result>
4579 <result name="VBOX_E_VM_ERROR">
4580 Failed to assign machine to session.
4581 </result>
4582 </desc>
4583 <param name="session" type="ISession" dir="in">
4584 <desc>
4585 Session object for which the machine will be locked.
4586 </desc>
4587 </param>
4588 <param name="lockType" type="LockType" dir="in">
4589 <desc>
4590 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4591 If set to @c Shared, then either acquire an exclusive write lock or establish
4592 a link to an existing session.
4593 </desc>
4594 </param>
4595 </method>
4596
4597 <method name="launchVMProcess">
4598 <desc>
4599 Spawns a new process that will execute the virtual machine and obtains a shared
4600 lock on the machine for the calling session.
4601
4602 If launching the VM succeeds, the new VM process will create its own session
4603 and write-lock the machine for it, preventing conflicting changes from other
4604 processes. If the machine is already locked (because it is already running or
4605 because another session has a write lock), launching the VM process will therefore
4606 fail. Reversely, future attempts to obtain a write lock will also fail while the
4607 machine is running.
4608
4609 The caller's session object remains separate from the session opened by the new
4610 VM process. It receives its own <link to="IConsole" /> object which can be used
4611 to control machine execution, but it cannot be used to change all VM settings
4612 which would be available after a <link to="#lockMachine" /> call.
4613
4614 The caller must eventually release the session's shared lock by calling
4615 <link to="ISession::unlockMachine" /> on the local session object once this call
4616 has returned. However, the session's state (see <link to="ISession::state" />)
4617 will not return to "Unlocked" until the remote session has also unlocked
4618 the machine (i.e. the machine has stopped running).
4619
4620 Launching a VM process can take some time (a new VM is started in a new process,
4621 for which memory and other resources need to be set up). Because of this,
4622 an <link to="IProgress" /> object is returned to allow the caller to wait
4623 for this asynchronous operation to be completed. Until then, the caller's
4624 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4625 and <link to="ISession::console" /> attributes cannot be accessed.
4626 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4627 similar calls to wait for completion. Completion is signalled when the VM
4628 is powered on. If launching the VM fails, error messages can be queried
4629 via the progress object, if available.
4630
4631 The progress object will have at least 2 sub-operations. The first
4632 operation covers the period up to the new VM process calls powerUp.
4633 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4634 progress object. Because <link to="IConsole::powerUp"/> may require
4635 some extra sub-operations, the <link to="IProgress::operationCount"/>
4636 may change at the completion of operation.
4637
4638 For details on the teleportation progress operation, see
4639 <link to="IConsole::powerUp"/>.
4640
4641 The @a environment argument is a string containing definitions of
4642 environment variables in the following format:
4643 <pre>
4644 NAME[=VALUE]\n
4645 NAME[=VALUE]\n
4646 ...
4647 </pre>
4648 where <tt>\\n</tt> is the new line character. These environment
4649 variables will be appended to the environment of the VirtualBox server
4650 process. If an environment variable exists both in the server process
4651 and in this list, the value from this list takes precedence over the
4652 server's variable. If the value of the environment variable is
4653 omitted, this variable will be removed from the resulting environment.
4654 If the environment string is @c null or empty, the server environment
4655 is inherited by the started process as is.
4656
4657 <result name="E_UNEXPECTED">
4658 Virtual machine not registered.
4659 </result>
4660 <result name="E_INVALIDARG">
4661 Invalid session type @a type.
4662 </result>
4663 <result name="VBOX_E_OBJECT_NOT_FOUND">
4664 No machine matching @a machineId found.
4665 </result>
4666 <result name="VBOX_E_INVALID_OBJECT_STATE">
4667 Session already open or being opened.
4668 </result>
4669 <result name="VBOX_E_IPRT_ERROR">
4670 Launching process for machine failed.
4671 </result>
4672 <result name="VBOX_E_VM_ERROR">
4673 Failed to assign machine to session.
4674 </result>
4675 </desc>
4676 <param name="session" type="ISession" dir="in">
4677 <desc>
4678 Client session object to which the VM process will be connected (this
4679 must be in "Unlocked" state).
4680 </desc>
4681 </param>
4682 <param name="type" type="wstring" dir="in">
4683 <desc>
4684 Front-end to use for the new VM process. The following are currently supported:
4685 <ul>
4686 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4687 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4688 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4689 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4690 the currently running VM or session owner. In this case the
4691 @a session parameter may be @c null (if it is non-null it isn't
4692 used in any way), and the @a progress return value will be always
4693 @c null. The operation completes immediately.</li>
4694 </ul>
4695 </desc>
4696 </param>
4697 <param name="environment" type="wstring" dir="in">
4698 <desc>
4699 Environment to pass to the VM process.
4700 </desc>
4701 </param>
4702 <param name="progress" type="IProgress" dir="return">
4703 <desc>Progress object to track the operation completion.</desc>
4704 </param>
4705 </method>
4706
4707 <method name="setBootOrder">
4708 <desc>
4709 Puts the given device to the specified position in
4710 the boot order.
4711
4712 To indicate that no device is associated with the given position,
4713 <link to="DeviceType_Null"/> should be used.
4714
4715 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4716
4717 <result name="E_INVALIDARG">
4718 Boot @a position out of range.
4719 </result>
4720 <result name="E_NOTIMPL">
4721 Booting from USB @a device currently not supported.
4722 </result>
4723
4724 </desc>
4725 <param name="position" type="unsigned long" dir="in">
4726 <desc>
4727 Position in the boot order (@c 1 to the total number of
4728 devices the machine can boot from, as returned by
4729 <link to="ISystemProperties::maxBootPosition"/>).
4730 </desc>
4731 </param>
4732 <param name="device" type="DeviceType" dir="in">
4733 <desc>
4734 The type of the device used to boot at the given position.
4735 </desc>
4736 </param>
4737 </method>
4738
4739 <method name="getBootOrder" const="yes">
4740 <desc>
4741 Returns the device type that occupies the specified
4742 position in the boot order.
4743
4744 @todo [remove?]
4745 If the machine can have more than one device of the returned type
4746 (such as hard disks), then a separate method should be used to
4747 retrieve the individual device that occupies the given position.
4748
4749 If here are no devices at the given position, then
4750 <link to="DeviceType_Null"/> is returned.
4751
4752 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4753
4754 <result name="E_INVALIDARG">
4755 Boot @a position out of range.
4756 </result>
4757
4758 </desc>
4759 <param name="position" type="unsigned long" dir="in">
4760 <desc>
4761 Position in the boot order (@c 1 to the total number of
4762 devices the machine can boot from, as returned by
4763 <link to="ISystemProperties::maxBootPosition"/>).
4764 </desc>
4765 </param>
4766 <param name="device" type="DeviceType" dir="return">
4767 <desc>
4768 Device at the given position.
4769 </desc>
4770 </param>
4771 </method>
4772
4773 <method name="attachDevice">
4774 <desc>
4775 Attaches a device and optionally mounts a medium to the given storage
4776 controller (<link to="IStorageController" />, identified by @a name),
4777 at the indicated port and device.
4778
4779 This method is intended for managing storage devices in general while a
4780 machine is powered off. It can be used to attach and detach fixed
4781 and removable media. The following kind of media can be attached
4782 to a machine:
4783
4784 <ul>
4785 <li>For fixed and removable media, you can pass in a medium that was
4786 previously opened using <link to="IVirtualBox::openMedium" />.
4787 </li>
4788
4789 <li>Only for storage devices supporting removable media (such as
4790 DVDs and floppies), you can also specify a null pointer to
4791 indicate an empty drive or one of the medium objects listed
4792 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4793 arrays to indicate a host drive.
4794 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4795 to change the media while the machine is running.
4796 </li>
4797 </ul>
4798
4799 In a VM's default configuration of virtual machines, the secondary
4800 master of the IDE controller is used for a CD/DVD drive.
4801
4802 After calling this returns successfully, a new instance of
4803 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4804 attachments (see <link to="IMachine::mediumAttachments"/>).
4805
4806 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4807 information about attaching media.
4808
4809 The specified device slot must not have a device attached to it,
4810 or this method will fail.
4811
4812 <note>
4813 You cannot attach a device to a newly created machine until
4814 this machine's settings are saved to disk using
4815 <link to="#saveSettings"/>.
4816 </note>
4817 <note>
4818 If the medium is being attached indirectly, a new differencing medium
4819 will implicitly be created for it and attached instead. If the
4820 changes made to the machine settings (including this indirect
4821 attachment) are later cancelled using <link to="#discardSettings"/>,
4822 this implicitly created differencing medium will implicitly
4823 be deleted.
4824 </note>
4825
4826 <result name="E_INVALIDARG">
4827 SATA device, SATA port, IDE port or IDE slot out of range, or
4828 file or UUID not found.
4829 </result>
4830 <result name="VBOX_E_INVALID_OBJECT_STATE">
4831 Machine must be registered before media can be attached.
4832 </result>
4833 <result name="VBOX_E_INVALID_VM_STATE">
4834 Invalid machine state.
4835 </result>
4836 <result name="VBOX_E_OBJECT_IN_USE">
4837 A medium is already attached to this or another virtual machine.
4838 </result>
4839
4840 </desc>
4841 <param name="name" type="wstring" dir="in">
4842 <desc>Name of the storage controller to attach the device to.</desc>
4843 </param>
4844 <param name="controllerPort" type="long" dir="in">
4845 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4846 the primary controller and 1 specifies the secondary controller.
4847 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4848 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4849 </param>
4850 <param name="device" type="long" dir="in">
4851 <desc>Device slot in the given port to attach the device to. This is only
4852 relevant for IDE controllers, for which 0 specifies the master device and
4853 1 specifies the slave device. For all other controller types, this must
4854 be 0.</desc>
4855 </param>
4856 <param name="type" type="DeviceType" dir="in">
4857 <desc>Device type of the attached device. For media opened by
4858 <link to="IVirtualBox::openMedium" />, this must match the device type
4859 specified there.</desc>
4860 </param>
4861 <param name="medium" type="IMedium" dir="in">
4862 <desc>Medium to mount or @c null for an empty drive.</desc>
4863 </param>
4864 </method>
4865
4866 <method name="attachDeviceWithoutMedium">
4867 <desc>
4868 Attaches a device and optionally mounts a medium to the given storage
4869 controller (<link to="IStorageController" />, identified by @a name),
4870 at the indicated port and device.
4871
4872 This method is intended for managing storage devices in general while a
4873 machine is powered off. It can be used to attach and detach fixed
4874 and removable media. The following kind of media can be attached
4875 to a machine:
4876 <ul>
4877 <li>
4878 For fixed and removable media, you can pass in a medium that was
4879 previously opened using <link to="IVirtualBox::openMedium" />.
4880 </li>
4881
4882 <li>Only for storage devices supporting removable media (such as
4883 DVDs and floppies) with an empty drive or one of the medium objects listed
4884 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4885 arrays to indicate a host drive.
4886 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4887 to change the media while the machine is running.
4888 </li>
4889 </ul>
4890
4891 In a VM's default configuration of virtual machines, the secondary
4892 master of the IDE controller is used for a CD/DVD drive.
4893 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4894 attachments (see <link to="IMachine::mediumAttachments"/>).
4895
4896 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4897 information about attaching media.
4898
4899 The specified device slot must not have a device attached to it,
4900 or this method will fail.
4901 <note>
4902 You cannot attach a device to a newly created machine until
4903 this machine's settings are saved to disk using
4904 <link to="#saveSettings"/>.
4905 </note>
4906 <note>
4907 If the medium is being attached indirectly, a new differencing medium
4908 will implicitly be created for it and attached instead. If the
4909 changes made to the machine settings (including this indirect
4910 attachment) are later cancelled using <link to="#discardSettings"/>,
4911 this implicitly created differencing medium will implicitly
4912 be deleted.
4913 </note>
4914
4915 <result name="E_INVALIDARG">
4916 SATA device, SATA port, IDE port or IDE slot out of range, or
4917 file or UUID not found.
4918 </result>
4919 <result name="VBOX_E_INVALID_OBJECT_STATE">
4920 Machine must be registered before media can be attached.
4921 </result>
4922 <result name="VBOX_E_INVALID_VM_STATE">
4923 Invalid machine state.
4924 </result>
4925 <result name="VBOX_E_OBJECT_IN_USE">
4926 A medium is already attached to this or another virtual machine.
4927 </result>
4928 </desc>
4929 <param name="name" type="wstring" dir="in">
4930 <desc>Name of the storage controller to attach the device to.</desc>
4931 </param>
4932 <param name="controllerPort" type="long" dir="in">
4933 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4934 the primary controller and 1 specifies the secondary controller.
4935 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4936 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4937 </param>
4938 <param name="device" type="long" dir="in">
4939 <desc>Device slot in the given port to attach the device to. This is only
4940 relevant for IDE controllers, for which 0 specifies the master device and
4941 1 specifies the slave device. For all other controller types, this must
4942 be 0.</desc>
4943 </param>
4944 <param name="type" type="DeviceType" dir="in">
4945 <desc>Device type of the attached device. For media opened by
4946 <link to="IVirtualBox::openMedium" />, this must match the device type
4947 specified there.</desc>
4948 </param>
4949 </method>
4950
4951 <method name="detachDevice">
4952 <desc>
4953 Detaches the device attached to a device slot of the specified bus.
4954
4955 Detaching the device from the virtual machine is deferred. This means
4956 that the medium remains associated with the machine when this method
4957 returns and gets actually de-associated only after a successful
4958 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4959 for more detailed information about attaching media.
4960
4961 <note>
4962 You cannot detach a device from a running machine.
4963 </note>
4964 <note>
4965 Detaching differencing media implicitly created by <link
4966 to="#attachDevice"/> for the indirect attachment using this
4967 method will <b>not</b> implicitly delete them. The
4968 <link to="IMedium::deleteStorage"/> operation should be
4969 explicitly performed by the caller after the medium is successfully
4970 detached and the settings are saved with
4971 <link to="#saveSettings"/>, if it is the desired action.
4972 </note>
4973
4974 <result name="VBOX_E_INVALID_VM_STATE">
4975 Attempt to detach medium from a running virtual machine.
4976 </result>
4977 <result name="VBOX_E_OBJECT_NOT_FOUND">
4978 No medium attached to given slot/bus.
4979 </result>
4980 <result name="VBOX_E_NOT_SUPPORTED">
4981 Medium format does not support storage deletion (only for implicitly
4982 created differencing media, should not happen).
4983 </result>
4984
4985 </desc>
4986 <param name="name" type="wstring" dir="in">
4987 <desc>Name of the storage controller to detach the medium from.</desc>
4988 </param>
4989 <param name="controllerPort" type="long" dir="in">
4990 <desc>Port number to detach the medium from.</desc>
4991 </param>
4992 <param name="device" type="long" dir="in">
4993 <desc>Device slot number to detach the medium from.</desc>
4994 </param>
4995 </method>
4996
4997 <method name="passthroughDevice">
4998 <desc>
4999 Sets the passthrough mode of an existing DVD device. Changing the
5000 setting while the VM is running is forbidden. The setting is only used
5001 if at VM start the device is configured as a host DVD drive, in all
5002 other cases it is ignored. The device must already exist; see
5003 <link to="IMachine::attachDevice"/> for how to attach a new device.
5004
5005 The @a controllerPort and @a device parameters specify the device slot and
5006 have have the same meaning as with <link to="IMachine::attachDevice" />.
5007
5008 <result name="E_INVALIDARG">
5009 SATA device, SATA port, IDE port or IDE slot out of range.
5010 </result>
5011 <result name="VBOX_E_INVALID_OBJECT_STATE">
5012 Attempt to modify an unregistered virtual machine.
5013 </result>
5014 <result name="VBOX_E_INVALID_VM_STATE">
5015 Invalid machine state.
5016 </result>
5017
5018 </desc>
5019 <param name="name" type="wstring" dir="in">
5020 <desc>Name of the storage controller.</desc>
5021 </param>
5022 <param name="controllerPort" type="long" dir="in">
5023 <desc>Storage controller port.</desc>
5024 </param>
5025 <param name="device" type="long" dir="in">
5026 <desc>Device slot in the given port.</desc>
5027 </param>
5028 <param name="passthrough" type="boolean" dir="in">
5029 <desc>New value for the passthrough setting.</desc>
5030 </param>
5031 </method>
5032
5033 <method name="temporaryEjectDevice">
5034 <desc>
5035 Sets the behavior for guest-triggered medium eject. In some situations
5036 it is desirable that such ejects update the VM configuration, and in
5037 others the eject should keep the VM configuration. The device must
5038 already exist; see <link to="IMachine::attachDevice"/> for how to
5039 attach a new device.
5040
5041 The @a controllerPort and @a device parameters specify the device slot and
5042 have have the same meaning as with <link to="IMachine::attachDevice" />.
5043
5044 <result name="E_INVALIDARG">
5045 SATA device, SATA port, IDE port or IDE slot out of range.
5046 </result>
5047 <result name="VBOX_E_INVALID_OBJECT_STATE">
5048 Attempt to modify an unregistered virtual machine.
5049 </result>
5050 <result name="VBOX_E_INVALID_VM_STATE">
5051 Invalid machine state.
5052 </result>
5053
5054 </desc>
5055 <param name="name" type="wstring" dir="in">
5056 <desc>Name of the storage controller.</desc>
5057 </param>
5058 <param name="controllerPort" type="long" dir="in">
5059 <desc>Storage controller port.</desc>
5060 </param>
5061 <param name="device" type="long" dir="in">
5062 <desc>Device slot in the given port.</desc>
5063 </param>
5064 <param name="temporaryEject" type="boolean" dir="in">
5065 <desc>New value for the eject behavior.</desc>
5066 </param>
5067 </method>
5068
5069 <method name="nonRotationalDevice">
5070 <desc>
5071 Sets a flag in the device information which indicates that the medium
5072 is not based on rotational technology, i.e. that the access times are
5073 more or less independent of the position on the medium. This may or may
5074 not be supported by a particular drive, and is silently ignored in the
5075 latter case. At the moment only hard disks (which is a misnomer in this
5076 context) accept this setting. Changing the setting while the VM is
5077 running is forbidden. The device must already exist; see
5078 <link to="IMachine::attachDevice"/> for how to attach a new device.
5079
5080 The @a controllerPort and @a device parameters specify the device slot and
5081 have have the same meaning as with <link to="IMachine::attachDevice" />.
5082
5083 <result name="E_INVALIDARG">
5084 SATA device, SATA port, IDE port or IDE slot out of range.
5085 </result>
5086 <result name="VBOX_E_INVALID_OBJECT_STATE">
5087 Attempt to modify an unregistered virtual machine.
5088 </result>
5089 <result name="VBOX_E_INVALID_VM_STATE">
5090 Invalid machine state.
5091 </result>
5092
5093 </desc>
5094 <param name="name" type="wstring" dir="in">
5095 <desc>Name of the storage controller.</desc>
5096 </param>
5097 <param name="controllerPort" type="long" dir="in">
5098 <desc>Storage controller port.</desc>
5099 </param>
5100 <param name="device" type="long" dir="in">
5101 <desc>Device slot in the given port.</desc>
5102 </param>
5103 <param name="nonRotational" type="boolean" dir="in">
5104 <desc>New value for the non-rotational device flag.</desc>
5105 </param>
5106 </method>
5107
5108 <method name="setAutoDiscardForDevice">
5109 <desc>
5110 Sets a flag in the device information which indicates that the medium
5111 supports discarding unsused blocks (called trimming for SATA or unmap
5112 for SCSI devices) .This may or may not be supported by a particular drive,
5113 and is silently ignored in the latter case. At the moment only hard disks
5114 (which is a misnomer in this context) accept this setting. Changing the
5115 setting while the VM is running is forbidden. The device must already
5116 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5117 device.
5118
5119 The @a controllerPort and @a device parameters specify the device slot and
5120 have have the same meaning as with <link to="IMachine::attachDevice" />.
5121
5122 <result name="E_INVALIDARG">
5123 SATA device, SATA port, SCSI port out of range.
5124 </result>
5125 <result name="VBOX_E_INVALID_OBJECT_STATE">
5126 Attempt to modify an unregistered virtual machine.
5127 </result>
5128 <result name="VBOX_E_INVALID_VM_STATE">
5129 Invalid machine state.
5130 </result>
5131
5132 </desc>
5133 <param name="name" type="wstring" dir="in">
5134 <desc>Name of the storage controller.</desc>
5135 </param>
5136 <param name="controllerPort" type="long" dir="in">
5137 <desc>Storage controller port.</desc>
5138 </param>
5139 <param name="device" type="long" dir="in">
5140 <desc>Device slot in the given port.</desc>
5141 </param>
5142 <param name="discard" type="boolean" dir="in">
5143 <desc>New value for the discard device flag.</desc>
5144 </param>
5145 </method>
5146
5147 <method name="setBandwidthGroupForDevice">
5148 <desc>
5149 Sets the bandwidth group of an existing storage device.
5150 The device must already exist; see <link to="IMachine::attachDevice"/>
5151 for how to attach a new device.
5152
5153 The @a controllerPort and @a device parameters specify the device slot and
5154 have have the same meaning as with <link to="IMachine::attachDevice" />.
5155
5156 <result name="E_INVALIDARG">
5157 SATA device, SATA port, IDE port or IDE slot out of range.
5158 </result>
5159 <result name="VBOX_E_INVALID_OBJECT_STATE">
5160 Attempt to modify an unregistered virtual machine.
5161 </result>
5162 <result name="VBOX_E_INVALID_VM_STATE">
5163 Invalid machine state.
5164 </result>
5165
5166 </desc>
5167 <param name="name" type="wstring" dir="in">
5168 <desc>Name of the storage controller.</desc>
5169 </param>
5170 <param name="controllerPort" type="long" dir="in">
5171 <desc>Storage controller port.</desc>
5172 </param>
5173 <param name="device" type="long" dir="in">
5174 <desc>Device slot in the given port.</desc>
5175 </param>
5176 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5177 <desc>New value for the bandwidth group or @c null for no group.</desc>
5178 </param>
5179 </method>
5180
5181 <method name="setNoBandwidthGroupForDevice">
5182 <desc>
5183 Sets no bandwidth group for an existing storage device.
5184 The device must already exist; see <link to="IMachine::attachDevice"/>
5185 for how to attach a new device.
5186 The @a controllerPort and @a device parameters specify the device slot and
5187 have have the same meaning as with <link to="IMachine::attachDevice" />.
5188 <result name="E_INVALIDARG">
5189 SATA device, SATA port, IDE port or IDE slot out of range.
5190 </result>
5191 <result name="VBOX_E_INVALID_OBJECT_STATE">
5192 Attempt to modify an unregistered virtual machine.
5193 </result>
5194 <result name="VBOX_E_INVALID_VM_STATE">
5195 Invalid machine state.
5196 </result>
5197
5198 </desc>
5199 <param name="name" type="wstring" dir="in">
5200 <desc>Name of the storage controller.</desc>
5201 </param>
5202 <param name="controllerPort" type="long" dir="in">
5203 <desc>Storage controller port.</desc>
5204 </param>
5205 <param name="device" type="long" dir="in">
5206 <desc>Device slot in the given port.</desc>
5207 </param>
5208 </method>
5209
5210
5211 <method name="unmountMedium">
5212 <desc>
5213 Unmounts any currently mounted medium (<link to="IMedium" />,
5214 identified by the given UUID @a id) to the given storage controller
5215 (<link to="IStorageController" />, identified by @a name),
5216 at the indicated port and device. The device must already exist;
5217
5218 This method is intended only for managing removable media, where the
5219 device is fixed but media is changeable at runtime (such as DVDs
5220 and floppies). It cannot be used for fixed media such as hard disks.
5221
5222 The @a controllerPort and @a device parameters specify the device slot
5223 and have have the same meaning as with
5224 <link to="IMachine::attachDevice" />.
5225
5226 The specified device slot must have a medium mounted, which will be
5227 unmounted. If there is no mounted medium it will do nothing.
5228 See <link to="IMedium"/> for more detailed information about
5229 attaching/unmounting media.
5230
5231 <result name="E_INVALIDARG">
5232 SATA device, SATA port, IDE port or IDE slot out of range.
5233 </result>
5234 <result name="VBOX_E_INVALID_OBJECT_STATE">
5235 Attempt to unmount medium that is not removeable - not dvd or floppy.
5236 </result>
5237 <result name="VBOX_E_INVALID_VM_STATE">
5238 Invalid machine state.
5239 </result>
5240 <result name="VBOX_E_OBJECT_IN_USE">
5241 Medium already attached to this or another virtual machine.
5242 </result>
5243 <result name="VBOX_E_OBJECT_NOT_FOUND">
5244 Medium not attached to specified port, device, controller.
5245 </result>
5246
5247 </desc>
5248 <param name="name" type="wstring" dir="in">
5249 <desc>Name of the storage controller to unmount the medium from.</desc>
5250 </param>
5251 <param name="controllerPort" type="long" dir="in">
5252 <desc>Port to unmount the medium from.</desc>
5253 </param>
5254 <param name="device" type="long" dir="in">
5255 <desc>Device slot in the given port to unmount the medium from.</desc>
5256 </param>
5257 <param name="force" type="boolean" dir="in">
5258 <desc>Allows to force unmount of a medium which is locked by
5259 the device slot in the given port medium is attached to.</desc>
5260 </param>
5261 </method>
5262
5263 <method name="mountMedium">
5264 <desc>
5265 Mounts a medium (<link to="IMedium" />, identified
5266 by the given UUID @a id) to the given storage controller
5267 (<link to="IStorageController" />, identified by @a name),
5268 at the indicated port and device. The device must already exist;
5269 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5270
5271 This method is intended only for managing removable media, where the
5272 device is fixed but media is changeable at runtime (such as DVDs
5273 and floppies). It cannot be used for fixed media such as hard disks.
5274
5275 The @a controllerPort and @a device parameters specify the device slot and
5276 have have the same meaning as with <link to="IMachine::attachDevice" />.
5277
5278 The specified device slot can have a medium mounted, which will be
5279 unmounted first. Specifying a zero UUID (or an empty string) for
5280 @a medium does just an unmount.
5281
5282 See <link to="IMedium"/> for more detailed information about
5283 attaching media.
5284
5285 <result name="E_INVALIDARG">
5286 SATA device, SATA port, IDE port or IDE slot out of range.
5287 </result>
5288 <result name="VBOX_E_INVALID_OBJECT_STATE">
5289 Attempt to attach medium to an unregistered virtual machine.
5290 </result>
5291 <result name="VBOX_E_INVALID_VM_STATE">
5292 Invalid machine state.
5293 </result>
5294 <result name="VBOX_E_OBJECT_IN_USE">
5295 Medium already attached to this or another virtual machine.
5296 </result>
5297
5298 </desc>
5299 <param name="name" type="wstring" dir="in">
5300 <desc>Name of the storage controller to attach the medium to.</desc>
5301 </param>
5302 <param name="controllerPort" type="long" dir="in">
5303 <desc>Port to attach the medium to.</desc>
5304 </param>
5305 <param name="device" type="long" dir="in">
5306 <desc>Device slot in the given port to attach the medium to.</desc>
5307 </param>
5308 <param name="medium" type="IMedium" dir="in">
5309 <desc>Medium to mount or @c null for an empty drive.</desc>
5310 </param>
5311 <param name="force" type="boolean" dir="in">
5312 <desc>Allows to force unmount/mount of a medium which is locked by
5313 the device slot in the given port to attach the medium to.</desc>
5314 </param>
5315 </method>
5316
5317 <method name="getMedium" const="yes">
5318 <desc>
5319 Returns the virtual medium attached to a device slot of the specified
5320 bus.
5321
5322 Note that if the medium was indirectly attached by
5323 <link to="#mountMedium"/> to the given device slot then this
5324 method will return not the same object as passed to the
5325 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5326 more detailed information about mounting a medium.
5327
5328 <result name="VBOX_E_OBJECT_NOT_FOUND">
5329 No medium attached to given slot/bus.
5330 </result>
5331
5332 </desc>
5333 <param name="name" type="wstring" dir="in">
5334 <desc>Name of the storage controller the medium is attached to.</desc>
5335 </param>
5336 <param name="controllerPort" type="long" dir="in">
5337 <desc>Port to query.</desc>
5338 </param>
5339 <param name="device" type="long" dir="in">
5340 <desc>Device slot in the given port to query.</desc>
5341 </param>
5342 <param name="medium" type="IMedium" dir="return">
5343 <desc>Attached medium object.</desc>
5344 </param>
5345 </method>
5346
5347 <method name="getMediumAttachmentsOfController" const="yes">
5348 <desc>
5349 Returns an array of medium attachments which are attached to the
5350 the controller with the given name.
5351
5352 <result name="VBOX_E_OBJECT_NOT_FOUND">
5353 A storage controller with given name doesn't exist.
5354 </result>
5355 </desc>
5356 <param name="name" type="wstring" dir="in"/>
5357 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5358 </method>
5359
5360 <method name="getMediumAttachment" const="yes">
5361 <desc>
5362 Returns a medium attachment which corresponds to the controller with
5363 the given name, on the given port and device slot.
5364
5365 <result name="VBOX_E_OBJECT_NOT_FOUND">
5366 No attachment exists for the given controller/port/device combination.
5367 </result>
5368 </desc>
5369 <param name="name" type="wstring" dir="in"/>
5370 <param name="controllerPort" type="long" dir="in"/>
5371 <param name="device" type="long" dir="in"/>
5372 <param name="attachment" type="IMediumAttachment" dir="return"/>
5373 </method>
5374
5375 <method name="attachHostPCIDevice">
5376 <desc>
5377 Attaches host PCI device with the given (host) PCI address to the
5378 PCI bus of the virtual machine. Please note, that this operation
5379 is two phase, as real attachment will happen when VM will start,
5380 and most information will be delivered as IHostPCIDevicePlugEvent
5381 on IVirtualBox event source.
5382
5383 <see><link to="IHostPCIDevicePlugEvent"/></see>
5384
5385 <result name="VBOX_E_INVALID_VM_STATE">
5386 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5387 </result>
5388 <result name="VBOX_E_PDM_ERROR">
5389 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5390 </result>
5391 <result name="VBOX_E_NOT_SUPPORTED">
5392 Hardware or host OS doesn't allow PCI device passthrought.
5393 </result>
5394 </desc>
5395 <param name="hostAddress" type="long" dir="in">
5396 <desc>Address of the host PCI device.</desc>
5397 </param>
5398 <param name="desiredGuestAddress" type="long" dir="in">
5399 <desc>Desired position of this device on guest PCI bus.</desc>
5400 </param>
5401 <param name="tryToUnbind" type="boolean" dir="in">
5402 <desc>If VMM shall try to unbind existing drivers from the
5403 device before attaching it to the guest.</desc>
5404 </param>
5405 </method>
5406
5407 <method name="detachHostPCIDevice">
5408 <desc>
5409 Detach host PCI device from the virtual machine.
5410 Also HostPCIDevicePlugEvent on IVirtualBox event source
5411 will be delivered. As currently we don't support hot device
5412 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5413
5414 <see><link to="IHostPCIDevicePlugEvent"/></see>
5415
5416 <result name="VBOX_E_INVALID_VM_STATE">
5417 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5418 </result>
5419 <result name="VBOX_E_OBJECT_NOT_FOUND">
5420 This host device is not attached to this machine.
5421 </result>
5422 <result name="VBOX_E_PDM_ERROR">
5423 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5424 </result>
5425 <result name="VBOX_E_NOT_SUPPORTED">
5426 Hardware or host OS doesn't allow PCI device passthrought.
5427 </result>
5428 </desc>
5429 <param name="hostAddress" type="long" dir="in">
5430 <desc>Address of the host PCI device.</desc>
5431 </param>
5432 </method>
5433
5434 <method name="getNetworkAdapter" const="yes">
5435 <desc>
5436 Returns the network adapter associated with the given slot.
5437 Slots are numbered sequentially, starting with zero. The total
5438 number of adapters per machine is defined by the
5439 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5440 so the maximum slot number is one less than that property's value.
5441
5442 <result name="E_INVALIDARG">
5443 Invalid @a slot number.
5444 </result>
5445
5446 </desc>
5447 <param name="slot" type="unsigned long" dir="in"/>
5448 <param name="adapter" type="INetworkAdapter" dir="return"/>
5449 </method>
5450
5451 <method name="addStorageController">
5452 <desc>
5453 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5454 machine and returns it as an instance of
5455 <link to="IStorageController" />.
5456
5457 @a name identifies the controller for subsequent calls such as
5458 <link to="#getStorageControllerByName" />,
5459 <link to="#getStorageControllerByInstance" />,
5460 <link to="#removeStorageController" />,
5461 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5462
5463 After the controller has been added, you can set its exact
5464 type by setting the <link to="IStorageController::controllerType" />.
5465
5466 <result name="VBOX_E_OBJECT_IN_USE">
5467 A storage controller with given name exists already.
5468 </result>
5469 <result name="E_INVALIDARG">
5470 Invalid @a controllerType.
5471 </result>
5472 </desc>
5473 <param name="name" type="wstring" dir="in"/>
5474 <param name="connectionType" type="StorageBus" dir="in"/>
5475 <param name="controller" type="IStorageController" dir="return"/>
5476 </method>
5477
5478 <method name="getStorageControllerByName" const="yes">
5479 <desc>
5480 Returns a storage controller with the given name.
5481
5482 <result name="VBOX_E_OBJECT_NOT_FOUND">
5483 A storage controller with given name doesn't exist.
5484 </result>
5485 </desc>
5486 <param name="name" type="wstring" dir="in"/>
5487 <param name="storageController" type="IStorageController" dir="return"/>
5488 </method>
5489
5490 <method name="getStorageControllerByInstance" const="yes">
5491 <desc>
5492 Returns a storage controller with the given instance number.
5493
5494 <result name="VBOX_E_OBJECT_NOT_FOUND">
5495 A storage controller with given instance number doesn't exist.
5496 </result>
5497 </desc>
5498 <param name="instance" type="unsigned long" dir="in"/>
5499 <param name="storageController" type="IStorageController" dir="return"/>
5500 </method>
5501
5502 <method name="removeStorageController">
5503 <desc>
5504 Removes a storage controller from the machine with all devices attached to it.
5505
5506 <result name="VBOX_E_OBJECT_NOT_FOUND">
5507 A storage controller with given name doesn't exist.
5508 </result>
5509 <result name="VBOX_E_NOT_SUPPORTED">
5510 Medium format does not support storage deletion (only for implicitly
5511 created differencing media, should not happen).
5512 </result>
5513 </desc>
5514 <param name="name" type="wstring" dir="in"/>
5515 </method>
5516
5517 <method name="setStorageControllerBootable">
5518 <desc>
5519 Sets the bootable flag of the storage controller with the given name.
5520
5521 <result name="VBOX_E_OBJECT_NOT_FOUND">
5522 A storage controller with given name doesn't exist.
5523 </result>
5524 <result name="VBOX_E_OBJECT_IN_USE">
5525 Another storage controller is marked as bootable already.
5526 </result>
5527 </desc>
5528 <param name="name" type="wstring" dir="in"/>
5529 <param name="bootable" type="boolean" dir="in"/>
5530 </method>
5531
5532 <method name="getSerialPort" const="yes">
5533 <desc>
5534 Returns the serial port associated with the given slot.
5535 Slots are numbered sequentially, starting with zero. The total
5536 number of serial ports per machine is defined by the
5537 <link to="ISystemProperties::serialPortCount"/> property,
5538 so the maximum slot number is one less than that property's value.
5539
5540 <result name="E_INVALIDARG">
5541 Invalid @a slot number.
5542 </result>
5543
5544 </desc>
5545 <param name="slot" type="unsigned long" dir="in"/>
5546 <param name="port" type="ISerialPort" dir="return"/>
5547 </method>
5548
5549 <method name="getParallelPort" const="yes">
5550 <desc>
5551 Returns the parallel port associated with the given slot.
5552 Slots are numbered sequentially, starting with zero. The total
5553 number of parallel ports per machine is defined by the
5554 <link to="ISystemProperties::parallelPortCount"/> property,
5555 so the maximum slot number is one less than that property's value.
5556
5557 <result name="E_INVALIDARG">
5558 Invalid @a slot number.
5559 </result>
5560
5561 </desc>
5562 <param name="slot" type="unsigned long" dir="in"/>
5563 <param name="port" type="IParallelPort" dir="return"/>
5564 </method>
5565
5566 <method name="getExtraDataKeys">
5567 <desc>
5568 Returns an array representing the machine-specific extra data keys
5569 which currently have values defined.
5570 </desc>
5571 <param name="value" type="wstring" dir="return" safearray="yes">
5572 <desc>Array of extra data keys.</desc>
5573 </param>
5574 </method>
5575
5576 <method name="getExtraData">
5577 <desc>
5578 Returns associated machine-specific extra data.
5579
5580 If the requested data @a key does not exist, this function will
5581 succeed and return an empty string in the @a value argument.
5582
5583 <result name="VBOX_E_FILE_ERROR">
5584 Settings file not accessible.
5585 </result>
5586 <result name="VBOX_E_XML_ERROR">
5587 Could not parse the settings file.
5588 </result>
5589
5590 </desc>
5591 <param name="key" type="wstring" dir="in">
5592 <desc>Name of the data key to get.</desc>
5593 </param>
5594 <param name="value" type="wstring" dir="return">
5595 <desc>Value of the requested data key.</desc>
5596 </param>
5597 </method>
5598
5599 <method name="setExtraData">
5600 <desc>
5601 Sets associated machine-specific extra data.
5602
5603 If you pass @c null or an empty string as a key @a value, the given
5604 @a key will be deleted.
5605
5606 <note>
5607 Before performing the actual data change, this method will ask all
5608 registered listeners using the
5609 <link to="IExtraDataCanChangeEvent"/>
5610 notification for a permission. If one of the listeners refuses the
5611 new value, the change will not be performed.
5612 </note>
5613 <note>
5614 On success, the
5615 <link to="IExtraDataChangedEvent"/> notification
5616 is called to inform all registered listeners about a successful data
5617 change.
5618 </note>
5619 <note>
5620 This method can be called outside the machine session and therefore
5621 it's a caller's responsibility to handle possible race conditions
5622 when several clients change the same key at the same time.
5623 </note>
5624
5625 <result name="VBOX_E_FILE_ERROR">
5626 Settings file not accessible.
5627 </result>
5628 <result name="VBOX_E_XML_ERROR">
5629 Could not parse the settings file.
5630 </result>
5631
5632 </desc>
5633 <param name="key" type="wstring" dir="in">
5634 <desc>Name of the data key to set.</desc>
5635 </param>
5636 <param name="value" type="wstring" dir="in">
5637 <desc>Value to assign to the key.</desc>
5638 </param>
5639 </method>
5640
5641 <method name="getCPUProperty" const="yes">
5642 <desc>
5643 Returns the virtual CPU boolean value of the specified property.
5644
5645 <result name="E_INVALIDARG">
5646 Invalid property.
5647 </result>
5648
5649 </desc>
5650 <param name="property" type="CPUPropertyType" dir="in">
5651 <desc>
5652 Property type to query.
5653 </desc>
5654 </param>
5655 <param name="value" type="boolean" dir="return">
5656 <desc>
5657 Property value.
5658 </desc>
5659 </param>
5660 </method>
5661
5662 <method name="setCPUProperty">
5663 <desc>
5664 Sets the virtual CPU boolean value of the specified property.
5665
5666 <result name="E_INVALIDARG">
5667 Invalid property.
5668 </result>
5669
5670 </desc>
5671 <param name="property" type="CPUPropertyType" dir="in">
5672 <desc>
5673 Property type to query.
5674 </desc>
5675 </param>
5676 <param name="value" type="boolean" dir="in">
5677 <desc>
5678 Property value.
5679 </desc>
5680 </param>
5681 </method>
5682
5683 <method name="getCPUIDLeaf" const="yes">
5684 <desc>
5685 Returns the virtual CPU cpuid information for the specified leaf.
5686
5687 Currently supported index values for cpuid:
5688 Standard CPUID leafs: 0 - 0xA
5689 Extended CPUID leafs: 0x80000000 - 0x8000000A
5690
5691 See the Intel and AMD programmer's manuals for detailed information
5692 about the cpuid instruction and its leafs.
5693 <result name="E_INVALIDARG">
5694 Invalid id.
5695 </result>
5696
5697 </desc>
5698 <param name="id" type="unsigned long" dir="in">
5699 <desc>
5700 CPUID leaf index.
5701 </desc>
5702 </param>
5703 <param name="valEax" type="unsigned long" dir="out">
5704 <desc>
5705 CPUID leaf value for register eax.
5706 </desc>
5707 </param>
5708 <param name="valEbx" type="unsigned long" dir="out">
5709 <desc>
5710 CPUID leaf value for register ebx.
5711 </desc>
5712 </param>
5713 <param name="valEcx" type="unsigned long" dir="out">
5714 <desc>
5715 CPUID leaf value for register ecx.
5716 </desc>
5717 </param>
5718 <param name="valEdx" type="unsigned long" dir="out">
5719 <desc>
5720 CPUID leaf value for register edx.
5721 </desc>
5722 </param>
5723 </method>
5724
5725 <method name="setCPUIDLeaf">
5726 <desc>
5727 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5728 are not passed unmodified. VirtualBox clears features that it doesn't support.
5729
5730 Currently supported index values for cpuid:
5731 Standard CPUID leafs: 0 - 0xA
5732 Extended CPUID leafs: 0x80000000 - 0x8000000A
5733
5734 See the Intel and AMD programmer's manuals for detailed information
5735 about the cpuid instruction and its leafs.
5736
5737 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5738 random crashes inside VMs.
5739 <result name="E_INVALIDARG">
5740 Invalid id.
5741 </result>
5742
5743 </desc>
5744 <param name="id" type="unsigned long" dir="in">
5745 <desc>
5746 CPUID leaf index.
5747 </desc>
5748 </param>
5749 <param name="valEax" type="unsigned long" dir="in">
5750 <desc>
5751 CPUID leaf value for register eax.
5752 </desc>
5753 </param>
5754 <param name="valEbx" type="unsigned long" dir="in">
5755 <desc>
5756 CPUID leaf value for register ebx.
5757 </desc>
5758 </param>
5759 <param name="valEcx" type="unsigned long" dir="in">
5760 <desc>
5761 CPUID leaf value for register ecx.
5762 </desc>
5763 </param>
5764 <param name="valEdx" type="unsigned long" dir="in">
5765 <desc>
5766 CPUID leaf value for register edx.
5767 </desc>
5768 </param>
5769 </method>
5770
5771 <method name="removeCPUIDLeaf">
5772 <desc>
5773 Removes the virtual CPU cpuid leaf for the specified index
5774
5775 <result name="E_INVALIDARG">
5776 Invalid id.
5777 </result>
5778
5779 </desc>
5780 <param name="id" type="unsigned long" dir="in">
5781 <desc>
5782 CPUID leaf index.
5783 </desc>
5784 </param>
5785 </method>
5786
5787 <method name="removeAllCPUIDLeaves">
5788 <desc>
5789 Removes all the virtual CPU cpuid leaves
5790 </desc>
5791 </method>
5792
5793 <method name="getHWVirtExProperty" const="yes">
5794 <desc>
5795 Returns the value of the specified hardware virtualization boolean property.
5796
5797 <result name="E_INVALIDARG">
5798 Invalid property.
5799 </result>
5800
5801 </desc>
5802 <param name="property" type="HWVirtExPropertyType" dir="in">
5803 <desc>
5804 Property type to query.
5805 </desc>
5806 </param>
5807 <param name="value" type="boolean" dir="return">
5808 <desc>
5809 Property value.
5810 </desc>
5811 </param>
5812 </method>
5813
5814 <method name="setHWVirtExProperty">
5815 <desc>
5816 Sets a new value for the specified hardware virtualization boolean property.
5817
5818 <result name="E_INVALIDARG">
5819 Invalid property.
5820 </result>
5821
5822 </desc>
5823 <param name="property" type="HWVirtExPropertyType" dir="in">
5824 <desc>
5825 Property type to set.
5826 </desc>
5827 </param>
5828 <param name="value" type="boolean" dir="in">
5829 <desc>
5830 New property value.
5831 </desc>
5832 </param>
5833 </method>
5834
5835 <method name="saveSettings">
5836 <desc>
5837 Saves any changes to machine settings made since the session
5838 has been opened or a new machine has been created, or since the
5839 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5840 For registered machines, new settings become visible to all
5841 other VirtualBox clients after successful invocation of this
5842 method.
5843 <note>
5844 The method sends <link to="IMachineDataChangedEvent"/>
5845 notification event after the configuration has been successfully
5846 saved (only for registered machines).
5847 </note>
5848 <note>
5849 Calling this method is only valid on instances returned
5850 by <link to="ISession::machine"/> and on new machines
5851 created by <link to="IVirtualBox::createMachine"/> but not
5852 yet registered, or on unregistered machines after calling
5853 <link to="IMachine::unregister"/>.
5854 </note>
5855
5856 <result name="VBOX_E_FILE_ERROR">
5857 Settings file not accessible.
5858 </result>
5859 <result name="VBOX_E_XML_ERROR">
5860 Could not parse the settings file.
5861 </result>
5862 <result name="E_ACCESSDENIED">
5863 Modification request refused.
5864 </result>
5865
5866 </desc>
5867 </method>
5868
5869 <method name="discardSettings">
5870 <desc>
5871 Discards any changes to the machine settings made since the session
5872 has been opened or since the last call to <link to="#saveSettings"/>
5873 or <link to="#discardSettings"/>.
5874 <note>
5875 Calling this method is only valid on instances returned
5876 by <link to="ISession::machine"/> and on new machines
5877 created by <link to="IVirtualBox::createMachine"/> or
5878 opened by <link to="IVirtualBox::openMachine"/> but not
5879 yet registered, or on unregistered machines after calling
5880 <link to="IMachine::unregister"/>.
5881 </note>
5882
5883 <result name="VBOX_E_INVALID_VM_STATE">
5884 Virtual machine is not mutable.
5885 </result>
5886
5887 </desc>
5888 </method>
5889
5890 <method name="unregister">
5891 <desc>
5892 Unregisters a machine previously registered with
5893 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5894 cleanup before the machine is unregistered.
5895
5896 This method does not delete any files. It only changes the machine configuration and
5897 the list of registered machines in the VirtualBox object. To delete the files which
5898 belonged to the machine, including the XML file of the machine itself, call
5899 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5900 from this method.
5901
5902 How thoroughly this method cleans up the machine configuration before unregistering
5903 the machine depends on the @a cleanupMode argument.
5904
5905 <ul>
5906 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5907 cleanup will be performed. The call will fail if the machine is in "Saved" state
5908 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5909 It is the responsibility of the caller to delete all such configuration in this mode.
5910 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5911 which it replaces.</li>
5912 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5913 state or if it has snapshots or media attached. All media attached to the current machine
5914 state or in snapshots will be detached. No medium objects will be returned;
5915 all of the machine's media will remain open.</li>
5916 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5917 except that all the hard disk medium objects which were detached from the machine will
5918 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5919 API for closing and deletion.</li>
5920 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5921 that all media will be returned in the array, including removable media like DVDs and
5922 floppies. This might be useful if the user wants to inspect in detail which media were
5923 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5924 in that case because users will typically want to preserve ISO and RAW image files.</li>
5925 </ul>
5926
5927 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5928 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5929 deleted with all its saved states and hard disk images, but images for removable
5930 drives (such as ISO and RAW files) will remain on disk.
5931
5932 This API does not verify whether the media files returned in the array are still
5933 attached to other machines (i.e. shared between several machines). If such a shared
5934 image is passed to <link to="#delete" /> however, closing the image will fail there
5935 and the image will be silently skipped.
5936
5937 This API may, however, move media from this machine's media registry to other media
5938 registries (see <link to="IMedium" /> for details on media registries). For machines
5939 created with VirtualBox 4.0 or later, if media from this machine's media registry
5940 are also attached to another machine (shared attachments), each such medium will be
5941 moved to another machine's registry. This is because without this machine's media
5942 registry, the other machine cannot find its media any more and would become inaccessible.
5943
5944 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5945 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5946 if media are moved to other machines' media registries.
5947
5948 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5949 is fired.
5950
5951 The call will fail if the machine is currently locked (see <link to="ISession" />).
5952
5953 <note>
5954 If the given machine is inaccessible (see <link to="#accessible"/>), it
5955 will be unregistered and fully uninitialized right afterwards. As a result,
5956 the returned machine object will be unusable and an attempt to call
5957 <b>any</b> method will return the "Object not ready" error.
5958 </note>
5959
5960 <result name="VBOX_E_INVALID_OBJECT_STATE">
5961 Machine is currently locked for a session.
5962 </result>
5963 </desc>
5964
5965 <param name="cleanupMode" type="CleanupMode" dir="in">
5966 <desc>How to clean up after the machine has been unregistered.</desc>
5967 </param>
5968 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5969 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5970 </param>
5971 </method>
5972
5973 <method name="delete">
5974 <desc>
5975 Deletes the files associated with this machine from disk. If medium objects are passed
5976 in with the @a aMedia argument, they are closed and, if closing was successful, their
5977 storage files are deleted as well. For convenience, this array of media files can be
5978 the same as the one returned from a previous <link to="#unregister" /> call.
5979
5980 This method must only be called on machines which are either write-locked (i.e. on instances
5981 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5982 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5983 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5984
5985 The following files will be deleted by this method:
5986 <ul>
5987 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5988 argument other than "UnregisterOnly", this will delete all saved state files that
5989 the machine had in use; possibly one if the machine was in "Saved" state and one
5990 for each online snapshot that the machine had.</li>
5991 <li>On each medium object passed in the @a aMedia array, this will call
5992 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5993 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
5994 in use, e.g. because it is still attached to a second machine; in that case the
5995 storage will not be deleted.</li>
5996 <li>Finally, the machine's own XML file will be deleted.</li>
5997 </ul>
5998
5999 Since deleting large disk image files can be a time-consuming I/O operation, this
6000 method operates asynchronously and returns an IProgress object to allow the caller
6001 to monitor the progress. There will be one sub-operation for each file that is
6002 being deleted (saved state or medium storage file).
6003
6004 <note>
6005 <link to="#settingsModified"/> will return @c true after this
6006 method successfully returns.
6007 </note>
6008
6009 <result name="VBOX_E_INVALID_VM_STATE">
6010 Machine is registered but not write-locked.
6011 </result>
6012 <result name="VBOX_E_IPRT_ERROR">
6013 Could not delete the settings file.
6014 </result>
6015 </desc>
6016 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
6017 <desc>List of media to be closed and whose storage files will be deleted.</desc>
6018 </param>
6019 <param name="aProgress" type="IProgress" dir="return">
6020 <desc>Progress object to track the operation completion.</desc>
6021 </param>
6022 </method>
6023
6024 <method name="export">
6025 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6026 steps required to export VirtualBox machines to OVF.
6027 </desc>
6028
6029 <param name="aAppliance" type="IAppliance" dir="in">
6030 <desc>Appliance to export this machine to.</desc>
6031 </param>
6032 <param name="location" type="wstring" dir="in">
6033 <desc>The target location.</desc>
6034 </param>
6035 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
6036 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6037 </param>
6038 </method >
6039
6040 <method name="findSnapshot">
6041 <desc>
6042 Returns a snapshot of this machine with the given name or UUID.
6043
6044 Returns a snapshot of this machine with the given UUID.
6045 A @c null argument can be used to obtain the first snapshot
6046 taken on this machine. To traverse the whole tree of snapshots
6047 starting from the root, inspect the root snapshot's
6048 <link to="ISnapshot::children" /> attribute and recurse over those children.
6049
6050 <result name="VBOX_E_OBJECT_NOT_FOUND">
6051 Virtual machine has no snapshots or snapshot not found.
6052 </result>
6053
6054 </desc>
6055 <param name="nameOrId" type="wstring" dir="in">
6056 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6057 </param>
6058 <param name="snapshot" type="ISnapshot" dir="return">
6059 <desc>Snapshot object with the given name.</desc>
6060 </param>
6061 </method>
6062
6063 <method name="createSharedFolder">
6064 <desc>
6065 Creates a new permanent shared folder by associating the given logical
6066 name with the given host path, adds it to the collection of shared
6067 folders and starts sharing it. Refer to the description of
6068 <link to="ISharedFolder"/> to read more about logical names.
6069
6070 <result name="VBOX_E_OBJECT_IN_USE">
6071 Shared folder already exists.
6072 </result>
6073 <result name="VBOX_E_FILE_ERROR">
6074 Shared folder @a hostPath not accessible.
6075 </result>
6076
6077 </desc>
6078 <param name="name" type="wstring" dir="in">
6079 <desc>Unique logical name of the shared folder.</desc>
6080 </param>
6081 <param name="hostPath" type="wstring" dir="in">
6082 <desc>Full path to the shared folder in the host file system.</desc>
6083 </param>
6084 <param name="writable" type="boolean" dir="in">
6085 <desc>Whether the share is writable or readonly.</desc>
6086 </param>
6087 <param name="automount" type="boolean" dir="in">
6088 <desc>Whether the share gets automatically mounted by the guest
6089 or not.</desc>
6090 </param>
6091 </method>
6092
6093 <method name="removeSharedFolder">
6094 <desc>
6095 Removes the permanent shared folder with the given name previously
6096 created by <link to="#createSharedFolder"/> from the collection of
6097 shared folders and stops sharing it.
6098
6099 <result name="VBOX_E_INVALID_VM_STATE">
6100 Virtual machine is not mutable.
6101 </result>
6102 <result name="VBOX_E_OBJECT_NOT_FOUND">
6103 Shared folder @a name does not exist.
6104 </result>
6105
6106 </desc>
6107 <param name="name" type="wstring" dir="in">
6108 <desc>Logical name of the shared folder to remove.</desc>
6109 </param>
6110 </method>
6111
6112 <method name="canShowConsoleWindow">
6113 <desc>
6114 Returns @c true if the VM console process can activate the
6115 console window and bring it to foreground on the desktop of
6116 the host PC.
6117 <note>
6118 This method will fail if a session for this machine is not
6119 currently open.
6120 </note>
6121
6122 <result name="VBOX_E_INVALID_VM_STATE">
6123 Machine session is not open.
6124 </result>
6125
6126 </desc>
6127 <param name="canShow" type="boolean" dir="return">
6128 <desc>
6129 @c true if the console window can be shown and @c false otherwise.
6130 </desc>
6131 </param>
6132 </method>
6133
6134 <method name="showConsoleWindow">
6135 <desc>
6136 Activates the console window and brings it to foreground on
6137 the desktop of the host PC. Many modern window managers on
6138 many platforms implement some sort of focus stealing
6139 prevention logic, so that it may be impossible to activate
6140 a window without the help of the currently active
6141 application. In this case, this method will return a non-zero
6142 identifier that represents the top-level window of the VM
6143 console process. The caller, if it represents a currently
6144 active process, is responsible to use this identifier (in a
6145 platform-dependent manner) to perform actual window
6146 activation.
6147 <note>
6148 This method will fail if a session for this machine is not
6149 currently open.
6150 </note>
6151
6152 <result name="VBOX_E_INVALID_VM_STATE">
6153 Machine session is not open.
6154 </result>
6155
6156 </desc>
6157 <param name="winId" type="long long" dir="return">
6158 <desc>
6159 Platform-dependent identifier of the top-level VM console
6160 window, or zero if this method has performed all actions
6161 necessary to implement the <i>show window</i> semantics for
6162 the given platform and/or VirtualBox front-end.
6163 </desc>
6164 </param>
6165 </method>
6166
6167 <method name="getGuestProperty" const="yes">
6168 <desc>
6169 Reads an entry from the machine's guest property store.
6170
6171 <result name="VBOX_E_INVALID_VM_STATE">
6172 Machine session is not open.
6173 </result>
6174
6175 </desc>
6176 <param name="name" type="wstring" dir="in">
6177 <desc>
6178 The name of the property to read.
6179 </desc>
6180 </param>
6181 <param name="value" type="wstring" dir="out">
6182 <desc>
6183 The value of the property. If the property does not exist then this
6184 will be empty.
6185 </desc>
6186 </param>
6187 <param name="timestamp" type="long long" dir="out">
6188 <desc>
6189 The time at which the property was last modified, as seen by the
6190 server process.
6191 </desc>
6192 </param>
6193 <param name="flags" type="wstring" dir="out">
6194 <desc>
6195 Additional property parameters, passed as a comma-separated list of
6196 "name=value" type entries.
6197 </desc>
6198 </param>
6199 </method>
6200
6201 <method name="getGuestPropertyValue" const="yes">
6202 <desc>
6203 Reads a value from the machine's guest property store.
6204
6205 <result name="VBOX_E_INVALID_VM_STATE">
6206 Machine session is not open.
6207 </result>
6208
6209 </desc>
6210 <param name="property" type="wstring" dir="in">
6211 <desc>
6212 The name of the property to read.
6213 </desc>
6214 </param>
6215 <param name="value" type="wstring" dir="return">
6216 <desc>
6217 The value of the property. If the property does not exist then this
6218 will be empty.
6219 </desc>
6220 </param>
6221 </method>
6222
6223 <method name="getGuestPropertyTimestamp" const="yes">
6224 <desc>
6225 Reads a property timestamp from the machine's guest property store.
6226
6227 <result name="VBOX_E_INVALID_VM_STATE">
6228 Machine session is not open.
6229 </result>
6230
6231 </desc>
6232 <param name="property" type="wstring" dir="in">
6233 <desc>
6234 The name of the property to read.
6235 </desc>
6236 </param>
6237 <param name="value" type="long long" dir="return">
6238 <desc>
6239 The timestamp. If the property does not exist then this will be
6240 empty.
6241 </desc>
6242 </param>
6243 </method>
6244
6245 <method name="setGuestProperty">
6246 <desc>
6247 Sets, changes or deletes an entry in the machine's guest property
6248 store.
6249
6250 <result name="E_ACCESSDENIED">
6251 Property cannot be changed.
6252 </result>
6253 <result name="E_INVALIDARG">
6254 Invalid @a flags.
6255 </result>
6256 <result name="VBOX_E_INVALID_VM_STATE">
6257 Virtual machine is not mutable or session not open.
6258 </result>
6259 <result name="VBOX_E_INVALID_OBJECT_STATE">
6260 Cannot set transient property when machine not running.
6261 </result>
6262
6263 </desc>
6264 <param name="property" type="wstring" dir="in">
6265 <desc>
6266 The name of the property to set, change or delete.
6267 </desc>
6268 </param>
6269 <param name="value" type="wstring" dir="in">
6270 <desc>
6271 The new value of the property to set, change or delete. If the
6272 property does not yet exist and value is non-empty, it will be
6273 created. If the value is @c null or empty, the property will be
6274 deleted if it exists.
6275 </desc>
6276 </param>
6277 <param name="flags" type="wstring" dir="in">
6278 <desc>
6279 Additional property parameters, passed as a comma-separated list of
6280 "name=value" type entries.
6281 </desc>
6282 </param>
6283 </method>
6284
6285 <method name="setGuestPropertyValue">
6286 <desc>
6287 Sets, changes or deletes a value in the machine's guest property
6288 store. The flags field will be left unchanged or created empty for a
6289 new property.
6290
6291 <result name="E_ACCESSDENIED">
6292 Property cannot be changed.
6293 </result>
6294 <result name="VBOX_E_INVALID_VM_STATE">
6295 Virtual machine is not mutable or session not open.
6296 </result>
6297 <result name="VBOX_E_INVALID_OBJECT_STATE">
6298 Cannot set transient property when machine not running.
6299 </result>
6300 </desc>
6301
6302 <param name="property" type="wstring" dir="in">
6303 <desc>
6304 The name of the property to set, change or delete.
6305 </desc>
6306 </param>
6307 <param name="value" type="wstring" dir="in">
6308 <desc>
6309 The new value of the property to set, change or delete. If the
6310 property does not yet exist and value is non-empty, it will be
6311 created. If the value is @c null or empty, the property will be
6312 deleted if it exists.
6313 </desc>
6314 </param>
6315 </method>
6316
6317 <method name="deleteGuestProperty" const="yes">
6318 <desc>
6319 Deletes an entry from the machine's guest property store.
6320
6321 <result name="VBOX_E_INVALID_VM_STATE">
6322 Machine session is not open.
6323 </result>
6324
6325 </desc>
6326 <param name="name" type="wstring" dir="in">
6327 <desc>
6328 The name of the property to delete.
6329 </desc>
6330 </param>
6331 </method>
6332
6333 <method name="enumerateGuestProperties" const="yes">
6334 <desc>
6335 Return a list of the guest properties matching a set of patterns along
6336 with their values, time stamps and flags.
6337 </desc>
6338 <param name="patterns" type="wstring" dir="in">
6339 <desc>
6340 The patterns to match the properties against, separated by '|'
6341 characters. If this is empty or @c null, all properties will match.
6342 </desc>
6343 </param>
6344 <param name="name" type="wstring" dir="out" safearray="yes">
6345 <desc>
6346 The names of the properties returned.
6347 </desc>
6348 </param>
6349 <param name="value" type="wstring" dir="out" safearray="yes">
6350 <desc>
6351 The values of the properties returned. The array entries match the
6352 corresponding entries in the @a name array.
6353 </desc>
6354 </param>
6355 <param name="timestamp" type="long long" dir="out" safearray="yes">
6356 <desc>
6357 The time stamps of the properties returned. The array entries match
6358 the corresponding entries in the @a name array.
6359 </desc>
6360 </param>
6361 <param name="flags" type="wstring" dir="out" safearray="yes">
6362 <desc>
6363 The flags of the properties returned. The array entries match the
6364 corresponding entries in the @a name array.
6365 </desc>
6366 </param>
6367 </method>
6368
6369 <method name="querySavedGuestScreenInfo" const="yes">
6370 <desc>
6371 Returns the guest dimensions from the saved state.
6372 </desc>
6373 <param name="screenId" type="unsigned long" dir="in">
6374 <desc>
6375 Saved guest screen to query info from.
6376 </desc>
6377 </param>
6378 <param name="originX" type="unsigned long" dir="out">
6379 <desc>
6380 The X position of the guest monitor top left corner.
6381 </desc>
6382 </param>
6383 <param name="originY" type="unsigned long" dir="out">
6384 <desc>
6385 The Y position of the guest monitor top left corner.
6386 </desc>
6387 </param>
6388 <param name="width" type="unsigned long" dir="out">
6389 <desc>
6390 Guest width at the time of the saved state was taken.
6391 </desc>
6392 </param>
6393 <param name="height" type="unsigned long" dir="out">
6394 <desc>
6395 Guest height at the time of the saved state was taken.
6396 </desc>
6397 </param>
6398 <param name="enabled" type="boolean" dir="out">
6399 <desc>
6400 Whether the monitor is enabled in the guest.
6401 </desc>
6402 </param>
6403 </method>
6404
6405 <method name="querySavedThumbnailSize">
6406 <desc>
6407 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6408 </desc>
6409 <param name="screenId" type="unsigned long" dir="in">
6410 <desc>
6411 Saved guest screen to query info from.
6412 </desc>
6413 </param>
6414 <param name="size" type="unsigned long" dir="out">
6415 <desc>
6416 Size of buffer required to store the bitmap.
6417 </desc>
6418 </param>
6419 <param name="width" type="unsigned long" dir="out">
6420 <desc>
6421 Bitmap width.
6422 </desc>
6423 </param>
6424 <param name="height" type="unsigned long" dir="out">
6425 <desc>
6426 Bitmap height.
6427 </desc>
6428 </param>
6429 </method>
6430
6431 <method name="readSavedThumbnailToArray">
6432 <desc>
6433 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6434 </desc>
6435 <param name="screenId" type="unsigned long" dir="in">
6436 <desc>
6437 Saved guest screen to read from.
6438 </desc>
6439 </param>
6440 <param name="BGR" type="boolean" dir="in">
6441 <desc>
6442 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6443 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6444 </desc>
6445 </param>
6446 <param name="width" type="unsigned long" dir="out">
6447 <desc>
6448 Bitmap width.
6449 </desc>
6450 </param>
6451 <param name="height" type="unsigned long" dir="out">
6452 <desc>
6453 Bitmap height.
6454 </desc>
6455 </param>
6456 <param name="data" type="octet" safearray="yes" dir="return">
6457 <desc>
6458 Array with resulting bitmap data.
6459 </desc>
6460 </param>
6461 </method>
6462
6463 <method name="readSavedThumbnailPNGToArray">
6464 <desc>
6465 Thumbnail in PNG format is retrieved to an array of bytes.
6466 </desc>
6467 <param name="screenId" type="unsigned long" dir="in">
6468 <desc>
6469 Saved guest screen to read from.
6470 </desc>
6471 </param>
6472 <param name="width" type="unsigned long" dir="out">
6473 <desc>
6474 Image width.
6475 </desc>
6476 </param>
6477 <param name="height" type="unsigned long" dir="out">
6478 <desc>
6479 Image height.
6480 </desc>
6481 </param>
6482 <param name="data" type="octet" dir="return" safearray="yes">
6483 <desc>
6484 Array with resulting PNG data.
6485 </desc>
6486 </param>
6487 </method>
6488
6489 <method name="querySavedScreenshotPNGSize">
6490 <desc>
6491 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6492 </desc>
6493 <param name="screenId" type="unsigned long" dir="in">
6494 <desc>
6495 Saved guest screen to query info from.
6496 </desc>
6497 </param>
6498 <param name="size" type="unsigned long" dir="out">
6499 <desc>
6500 Size of buffer required to store the PNG binary data.
6501 </desc>
6502 </param>
6503 <param name="width" type="unsigned long" dir="out">
6504 <desc>
6505 Image width.
6506 </desc>
6507 </param>
6508 <param name="height" type="unsigned long" dir="out">
6509 <desc>
6510 Image height.
6511 </desc>
6512 </param>
6513 </method>
6514
6515 <method name="readSavedScreenshotPNGToArray">
6516 <desc>
6517 Screenshot in PNG format is retrieved to an array of bytes.
6518 </desc>
6519 <param name="screenId" type="unsigned long" dir="in">
6520 <desc>
6521 Saved guest screen to read from.
6522 </desc>
6523 </param>
6524 <param name="width" type="unsigned long" dir="out">
6525 <desc>
6526 Image width.
6527 </desc>
6528 </param>
6529 <param name="height" type="unsigned long" dir="out">
6530 <desc>
6531 Image height.
6532 </desc>
6533 </param>
6534 <param name="data" type="octet" dir="return" safearray="yes">
6535 <desc>
6536 Array with resulting PNG data.
6537 </desc>
6538 </param>
6539 </method>
6540
6541 <method name="hotPlugCPU">
6542 <desc>
6543 Plugs a CPU into the machine.
6544 </desc>
6545 <param name="cpu" type="unsigned long" dir="in">
6546 <desc>
6547 The CPU id to insert.
6548 </desc>
6549 </param>
6550 </method>
6551
6552 <method name="hotUnplugCPU">
6553 <desc>
6554 Removes a CPU from the machine.
6555 </desc>
6556 <param name="cpu" type="unsigned long" dir="in">
6557 <desc>
6558 The CPU id to remove.
6559 </desc>
6560 </param>
6561 </method>
6562
6563 <method name="getCPUStatus">
6564 <desc>
6565 Returns the current status of the given CPU.
6566 </desc>
6567 <param name="cpu" type="unsigned long" dir="in">
6568 <desc>
6569 The CPU id to check for.
6570 </desc>
6571 </param>
6572 <param name="attached" type="boolean" dir="return">
6573 <desc>
6574 Status of the CPU.
6575 </desc>
6576 </param>
6577 </method>
6578
6579 <method name="queryLogFilename">
6580 <desc>
6581 Queries for the VM log file name of an given index. Returns an empty
6582 string if a log file with that index doesn't exists.
6583 </desc>
6584 <param name="idx" type="unsigned long" dir="in">
6585 <desc>
6586 Which log file name to query. 0=current log file.
6587 </desc>
6588 </param>
6589 <param name="filename" type="wstring" dir="return">
6590 <desc>
6591 On return the full path to the log file or an empty string on error.
6592 </desc>
6593 </param>
6594 </method>
6595
6596 <method name="readLog">
6597 <desc>
6598 Reads the VM log file. The chunk size is limited, so even if you
6599 ask for a big piece there might be less data returned.
6600 </desc>
6601 <param name="idx" type="unsigned long" dir="in">
6602 <desc>
6603 Which log file to read. 0=current log file.
6604 </desc>
6605 </param>
6606 <param name="offset" type="long long" dir="in">
6607 <desc>
6608 Offset in the log file.
6609 </desc>
6610 </param>
6611 <param name="size" type="long long" dir="in">
6612 <desc>
6613 Chunk size to read in the log file.
6614 </desc>
6615 </param>
6616 <param name="data" type="octet" dir="return" safearray="yes">
6617 <desc>
6618 Data read from the log file. A data size of 0 means end of file
6619 if the requested chunk size was not 0. This is the unprocessed
6620 file data, i.e. the line ending style depends on the platform of
6621 the system the server is running on.
6622 </desc>
6623 </param>
6624 </method>
6625
6626 <method name="cloneTo">
6627 <desc>
6628 Creates a clone of this machine, either as a full clone (which means
6629 creating independent copies of the hard disk media, save states and so
6630 on), or as a linked clone (which uses its own differencing media,
6631 sharing the parent media with the source machine).
6632
6633 The target machine object must have been created previously with <link
6634 to="IVirtualBox::createMachine"/>, and all the settings will be
6635 transferred except the VM name and the hardware UUID. You can set the
6636 VM name and the new hardware UUID when creating the target machine. The
6637 network MAC addresses are newly created for all newtwork adapters. You
6638 can change that behaviour with the options parameter. The operation is
6639 performed asynchronously, so the machine object will be not be usable
6640 until the @a progress object signals completion.
6641
6642 <result name="E_INVALIDARG">
6643 @a target is @c null.
6644 </result>
6645 </desc>
6646
6647 <param name="target" type="IMachine" dir="in">
6648 <desc>Target machine object.</desc>
6649 </param>
6650 <param name="mode" type="CloneMode" dir="in">
6651 <desc>Which states should be cloned.</desc>
6652 </param>
6653 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6654 <desc>Options for the cloning operation.</desc>
6655 </param>
6656 <param name="progress" type="IProgress" dir="return">
6657 <desc>Progress object to track the operation completion.</desc>
6658 </param>
6659 </method>
6660
6661 </interface>
6662
6663 <!--
6664 // IConsole
6665 /////////////////////////////////////////////////////////////////////////
6666 -->
6667
6668 <interface
6669 name="IVRDEServerInfo" extends="$unknown"
6670 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6671 wsmap="struct"
6672 >
6673 <desc>
6674 Contains information about the remote desktop (VRDE) server capabilities and status.
6675 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6676 </desc>
6677
6678 <attribute name="active" type="boolean" readonly="yes">
6679 <desc>
6680 Whether the remote desktop connection is active.
6681 </desc>
6682 </attribute>
6683
6684 <attribute name="port" type="long" readonly="yes">
6685 <desc>
6686 VRDE server port number. If this property is equal to <tt>0</tt>, then
6687 the VRDE server failed to start, usually because there are no free IP
6688 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6689 server has not yet been started.
6690 </desc>
6691 </attribute>
6692
6693 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6694 <desc>
6695 How many times a client connected.
6696 </desc>
6697 </attribute>
6698
6699 <attribute name="beginTime" type="long long" readonly="yes">
6700 <desc>
6701 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6702 </desc>
6703 </attribute>
6704
6705 <attribute name="endTime" type="long long" readonly="yes">
6706 <desc>
6707 When the last connection was terminated or the current time, if
6708 connection is still active, in milliseconds since 1970-01-01 UTC.
6709 </desc>
6710 </attribute>
6711
6712 <attribute name="bytesSent" type="long long" readonly="yes">
6713 <desc>
6714 How many bytes were sent in last or current, if still active, connection.
6715 </desc>
6716 </attribute>
6717
6718 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6719 <desc>
6720 How many bytes were sent in all connections.
6721 </desc>
6722 </attribute>
6723
6724 <attribute name="bytesReceived" type="long long" readonly="yes">
6725 <desc>
6726 How many bytes were received in last or current, if still active, connection.
6727 </desc>
6728 </attribute>
6729
6730 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6731 <desc>
6732 How many bytes were received in all connections.
6733 </desc>
6734 </attribute>
6735
6736 <attribute name="user" type="wstring" readonly="yes">
6737 <desc>
6738 Login user name supplied by the client.
6739 </desc>
6740 </attribute>
6741
6742 <attribute name="domain" type="wstring" readonly="yes">
6743 <desc>
6744 Login domain name supplied by the client.
6745 </desc>
6746 </attribute>
6747
6748 <attribute name="clientName" type="wstring" readonly="yes">
6749 <desc>
6750 The client name supplied by the client.
6751 </desc>
6752 </attribute>
6753
6754 <attribute name="clientIP" type="wstring" readonly="yes">
6755 <desc>
6756 The IP address of the client.
6757 </desc>
6758 </attribute>
6759
6760 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6761 <desc>
6762 The client software version number.
6763 </desc>
6764 </attribute>
6765
6766 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6767 <desc>
6768 Public key exchange method used when connection was established.
6769 Values: 0 - RDP4 public key exchange scheme.
6770 1 - X509 certificates were sent to client.
6771 </desc>
6772 </attribute>
6773
6774 </interface>
6775
6776 <interface
6777 name="IConsole" extends="$unknown"
6778 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6779 wsmap="managed"
6780 >
6781 <desc>
6782 The IConsole interface represents an interface to control virtual
6783 machine execution.
6784
6785 A console object gets created when a machine has been locked for a
6786 particular session (client process) using <link to="IMachine::lockMachine" />
6787 or <link to="IMachine::launchVMProcess"/>. The console object can
6788 then be found in the session's <link to="ISession::console" /> attribute.
6789
6790 Methods of the IConsole interface allow the caller to query the current
6791 virtual machine execution state, pause the machine or power it down, save
6792 the machine state or take a snapshot, attach and detach removable media
6793 and so on.
6794
6795 <see><link to="ISession"/></see>
6796 </desc>
6797
6798 <attribute name="machine" type="IMachine" readonly="yes">
6799 <desc>
6800 Machine object for this console session.
6801 <note>
6802 This is a convenience property, it has the same value as
6803 <link to="ISession::machine"/> of the corresponding session
6804 object.
6805 </note>
6806 </desc>
6807 </attribute>
6808
6809 <attribute name="state" type="MachineState" readonly="yes">
6810 <desc>
6811 Current execution state of the machine.
6812 <note>
6813 This property always returns the same value as the corresponding
6814 property of the IMachine object for this console session.
6815 For the process that owns (executes) the VM, this is the
6816 preferable way of querying the VM state, because no IPC
6817 calls are made.
6818 </note>
6819 </desc>
6820 </attribute>
6821
6822 <attribute name="guest" type="IGuest" readonly="yes">
6823 <desc>Guest object.</desc>
6824 </attribute>
6825
6826 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6827 <desc>
6828 Virtual keyboard object.
6829 <note>
6830 If the machine is not running, any attempt to use
6831 the returned object will result in an error.
6832 </note>
6833 </desc>
6834 </attribute>
6835
6836 <attribute name="mouse" type="IMouse" readonly="yes">
6837 <desc>
6838 Virtual mouse object.
6839 <note>
6840 If the machine is not running, any attempt to use
6841 the returned object will result in an error.
6842 </note>
6843 </desc>
6844 </attribute>
6845
6846 <attribute name="display" type="IDisplay" readonly="yes">
6847 <desc>Virtual display object.
6848 <note>
6849 If the machine is not running, any attempt to use
6850 the returned object will result in an error.
6851 </note>
6852 </desc>
6853 </attribute>
6854
6855 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6856 <desc>Debugging interface.</desc>
6857 </attribute>
6858
6859 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6860 <desc>
6861 Collection of USB devices currently attached to the virtual
6862 USB controller.
6863 <note>
6864 The collection is empty if the machine is not running.
6865 </note>
6866 </desc>
6867 </attribute>
6868
6869 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6870 <desc>
6871 List of USB devices currently attached to the remote VRDE client.
6872 Once a new device is physically attached to the remote host computer,
6873 it appears in this list and remains there until detached.
6874 </desc>
6875 </attribute>
6876
6877 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6878 <desc>
6879 Collection of shared folders for the current session. These folders
6880 are called transient shared folders because they are available to the
6881 guest OS running inside the associated virtual machine only for the
6882 duration of the session (as opposed to
6883 <link to="IMachine::sharedFolders"/> which represent permanent shared
6884 folders). When the session is closed (e.g. the machine is powered down),
6885 these folders are automatically discarded.
6886
6887 New shared folders are added to the collection using
6888 <link to="#createSharedFolder"/>. Existing shared folders can be
6889 removed using <link to="#removeSharedFolder"/>.
6890 </desc>
6891 </attribute>
6892
6893 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6894 <desc>
6895 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6896 </desc>
6897 </attribute>
6898
6899 <attribute name="eventSource" type="IEventSource" readonly="yes">
6900 <desc>
6901 Event source for console events.
6902 </desc>
6903 </attribute>
6904
6905 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
6906 <desc>Array of PCI devices attached to this machine.</desc>
6907 </attribute>
6908
6909 <attribute name="useHostClipboard" type="boolean">
6910 <desc>
6911 Whether the guest clipboard should be connected to the host one or
6912 whether it should only be allowed access to the VRDE clipboard. This
6913 setting may not affect existing guest clipboard connections which
6914 are already connected to the host clipboard.
6915 </desc>
6916 </attribute>
6917
6918 <method name="powerUp">
6919 <desc>
6920 Starts the virtual machine execution using the current machine
6921 state (that is, its current execution state, current settings and
6922 current storage devices).
6923
6924 <note>
6925 This method is only useful for front-ends that want to actually
6926 execute virtual machines in their own process (like the VirtualBox
6927 or VBoxSDL front-ends). Unless you are intending to write such a
6928 front-end, do not call this method. If you simply want to
6929 start virtual machine execution using one of the existing front-ends
6930 (for example the VirtualBox GUI or headless server), use
6931 <link to="IMachine::launchVMProcess"/> instead; these
6932 front-ends will power up the machine automatically for you.
6933 </note>
6934
6935 If the machine is powered off or aborted, the execution will
6936 start from the beginning (as if the real hardware were just
6937 powered on).
6938
6939 If the machine is in the <link to="MachineState_Saved"/> state,
6940 it will continue its execution the point where the state has
6941 been saved.
6942
6943 If the machine <link to="IMachine::teleporterEnabled"/> property is
6944 enabled on the machine being powered up, the machine will wait for an
6945 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6946 state. The returned progress object will have at least three
6947 operations where the last three are defined as: (1) powering up and
6948 starting TCP server, (2) waiting for incoming teleportations, and
6949 (3) perform teleportation. These operations will be reflected as the
6950 last three operations of the progress objected returned by
6951 <link to="IMachine::launchVMProcess"/> as well.
6952
6953 <see><link to="#saveState"/></see>
6954
6955 <result name="VBOX_E_INVALID_VM_STATE">
6956 Virtual machine already running.
6957 </result>
6958 <result name="VBOX_E_HOST_ERROR">
6959 Host interface does not exist or name not set.
6960 </result>
6961 <result name="VBOX_E_FILE_ERROR">
6962 Invalid saved state file.
6963 </result>
6964 </desc>
6965 <param name="progress" type="IProgress" dir="return">
6966 <desc>Progress object to track the operation completion.</desc>
6967 </param>
6968 </method>
6969
6970 <method name="powerUpPaused">
6971 <desc>
6972 Identical to powerUp except that the VM will enter the
6973 <link to="MachineState_Paused"/> state, instead of
6974 <link to="MachineState_Running"/>.
6975
6976 <see><link to="#powerUp"/></see>
6977 <result name="VBOX_E_INVALID_VM_STATE">
6978 Virtual machine already running.
6979 </result>
6980 <result name="VBOX_E_HOST_ERROR">
6981 Host interface does not exist or name not set.
6982 </result>
6983 <result name="VBOX_E_FILE_ERROR">
6984 Invalid saved state file.
6985 </result>
6986 </desc>
6987 <param name="progress" type="IProgress" dir="return">
6988 <desc>Progress object to track the operation completion.</desc>
6989 </param>
6990 </method>
6991
6992 <method name="powerDown">
6993 <desc>
6994 Initiates the power down procedure to stop the virtual machine
6995 execution.
6996
6997 The completion of the power down procedure is tracked using the returned
6998 IProgress object. After the operation is complete, the machine will go
6999 to the PoweredOff state.
7000 <result name="VBOX_E_INVALID_VM_STATE">
7001 Virtual machine must be Running, Paused or Stuck to be powered down.
7002 </result>
7003 </desc>
7004 <param name="progress" type="IProgress" dir="return">
7005 <desc>Progress object to track the operation completion.</desc>
7006 </param>
7007 </method>
7008
7009 <method name="reset">
7010 <desc>Resets the virtual machine.
7011 <result name="VBOX_E_INVALID_VM_STATE">
7012 Virtual machine not in Running state.
7013 </result>
7014 <result name="VBOX_E_VM_ERROR">
7015 Virtual machine error in reset operation.
7016 </result>
7017 </desc>
7018 </method>
7019
7020 <method name="pause">
7021 <desc>Pauses the virtual machine execution.
7022 <result name="VBOX_E_INVALID_VM_STATE">
7023 Virtual machine not in Running state.
7024 </result>
7025 <result name="VBOX_E_VM_ERROR">
7026 Virtual machine error in suspend operation.
7027 </result>
7028 </desc>
7029 </method>
7030
7031 <method name="resume">
7032 <desc>Resumes the virtual machine execution.
7033 <result name="VBOX_E_INVALID_VM_STATE">
7034 Virtual machine not in Paused state.
7035 </result>
7036 <result name="VBOX_E_VM_ERROR">
7037 Virtual machine error in resume operation.
7038 </result>
7039 </desc>
7040 </method>
7041
7042 <method name="powerButton">
7043 <desc>Sends the ACPI power button event to the guest.
7044 <result name="VBOX_E_INVALID_VM_STATE">
7045 Virtual machine not in Running state.
7046 </result>
7047 <result name="VBOX_E_PDM_ERROR">
7048 Controlled power off failed.
7049 </result>
7050 </desc>
7051 </method>
7052
7053 <method name="sleepButton">
7054 <desc>Sends the ACPI sleep button event to the guest.
7055 <result name="VBOX_E_INVALID_VM_STATE">
7056 Virtual machine not in Running state.
7057 </result>
7058 <result name="VBOX_E_PDM_ERROR">
7059 Sending sleep button event failed.
7060 </result>
7061 </desc>
7062 </method>
7063
7064 <method name="getPowerButtonHandled">
7065 <desc>Checks if the last power button event was handled by guest.
7066 <result name="VBOX_E_PDM_ERROR">
7067 Checking if the event was handled by the guest OS failed.
7068 </result>
7069 </desc>
7070 <param name="handled" type="boolean" dir="return"/>
7071 </method>
7072
7073 <method name="getGuestEnteredACPIMode">
7074 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7075 G1 (sleeping). If this method returns @c false, the guest will
7076 most likely not respond to external ACPI events.
7077 <result name="VBOX_E_INVALID_VM_STATE">
7078 Virtual machine not in Running state.
7079 </result>
7080 </desc>
7081 <param name="entered" type="boolean" dir="return"/>
7082 </method>
7083
7084 <method name="saveState">
7085 <desc>
7086 Saves the current execution state of a running virtual machine
7087 and stops its execution.
7088
7089 After this operation completes, the machine will go to the
7090 Saved state. Next time it is powered up, this state will
7091 be restored and the machine will continue its execution from
7092 the place where it was saved.
7093
7094 This operation differs from taking a snapshot to the effect
7095 that it doesn't create new differencing media. Also, once
7096 the machine is powered up from the state saved using this method,
7097 the saved state is deleted, so it will be impossible to return
7098 to this state later.
7099
7100 <note>
7101 On success, this method implicitly calls
7102 <link to="IMachine::saveSettings"/> to save all current machine
7103 settings (including runtime changes to the DVD medium, etc.).
7104 Together with the impossibility to change any VM settings when it is
7105 in the Saved state, this guarantees adequate hardware
7106 configuration of the machine when it is restored from the saved
7107 state file.
7108 </note>
7109
7110 <note>
7111 The machine must be in the Running or Paused state, otherwise
7112 the operation will fail.
7113 </note>
7114 <result name="VBOX_E_INVALID_VM_STATE">
7115 Virtual machine state neither Running nor Paused.
7116 </result>
7117 <result name="VBOX_E_FILE_ERROR">
7118 Failed to create directory for saved state file.
7119 </result>
7120
7121 <see><link to="#takeSnapshot"/></see>
7122 </desc>
7123 <param name="progress" type="IProgress" dir="return">
7124 <desc>Progress object to track the operation completion.</desc>
7125 </param>
7126 </method>
7127
7128 <method name="adoptSavedState">
7129 <desc>
7130 Associates the given saved state file to the virtual machine.
7131
7132 On success, the machine will go to the Saved state. Next time it is
7133 powered up, it will be restored from the adopted saved state and
7134 continue execution from the place where the saved state file was
7135 created.
7136
7137 The specified saved state file path may be absolute or relative to the
7138 folder the VM normally saves the state to (usually,
7139 <link to="IMachine::snapshotFolder"/>).
7140
7141 <note>
7142 It's a caller's responsibility to make sure the given saved state
7143 file is compatible with the settings of this virtual machine that
7144 represent its virtual hardware (memory size, storage disk configuration
7145 etc.). If there is a mismatch, the behavior of the virtual machine
7146 is undefined.
7147 </note>
7148 <result name="VBOX_E_INVALID_VM_STATE">
7149 Virtual machine state neither PoweredOff nor Aborted.
7150 </result>
7151 </desc>
7152 <param name="savedStateFile" type="wstring" dir="in">
7153 <desc>Path to the saved state file to adopt.</desc>
7154 </param>
7155 </method>
7156
7157 <method name="discardSavedState">
7158 <desc>
7159 Forcibly resets the machine to "Powered Off" state if it is
7160 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7161 Next time the machine is powered up, a clean boot will occur.
7162 <note>
7163 This operation is equivalent to resetting or powering off
7164 the machine without doing a proper shutdown of the guest
7165 operating system; as with resetting a running phyiscal
7166 computer, it can can lead to data loss.
7167 </note>
7168 If @a fRemoveFile is @c true, the file in the machine directory
7169 into which the machine state was saved is also deleted. If
7170 this is @c false, then the state can be recovered and later
7171 re-inserted into a machine using <link to="#adoptSavedState" />.
7172 The location of the file can be found in the
7173 <link to="IMachine::stateFilePath" /> attribute.
7174 <result name="VBOX_E_INVALID_VM_STATE">
7175 Virtual machine not in state Saved.
7176 </result>
7177 </desc>
7178 <param name="fRemoveFile" type="boolean" dir="in" >
7179 <desc>Whether to also remove the saved state file.</desc>
7180 </param>
7181 </method>
7182
7183 <method name="getDeviceActivity">
7184 <desc>
7185 Gets the current activity type of a given device or device group.
7186 <result name="E_INVALIDARG">
7187 Invalid device type.
7188 </result>
7189 </desc>
7190 <param name="type" type="DeviceType" dir="in"/>
7191 <param name="activity" type="DeviceActivity" dir="return"/>
7192 </method>
7193
7194 <method name="attachUSBDevice">
7195 <desc>
7196 Attaches a host USB device with the given UUID to the
7197 USB controller of the virtual machine.
7198
7199 The device needs to be in one of the following states:
7200 <link to="USBDeviceState_Busy"/>,
7201 <link to="USBDeviceState_Available"/> or
7202 <link to="USBDeviceState_Held"/>,
7203 otherwise an error is immediately returned.
7204
7205 When the device state is
7206 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7207 be returned if the host computer refuses to release it for some reason.
7208
7209 <see><link to="IUSBController::deviceFilters"/>,
7210 <link to="USBDeviceState"/></see>
7211 <result name="VBOX_E_INVALID_VM_STATE">
7212 Virtual machine state neither Running nor Paused.
7213 </result>
7214 <result name="VBOX_E_PDM_ERROR">
7215 Virtual machine does not have a USB controller.
7216 </result>
7217 </desc>
7218 <param name="id" type="uuid" mod="string" dir="in">
7219 <desc>UUID of the host USB device to attach.</desc>
7220 </param>
7221 </method>
7222
7223 <method name="detachUSBDevice">
7224 <desc>
7225 Detaches an USB device with the given UUID from the USB controller
7226 of the virtual machine.
7227
7228 After this method succeeds, the VirtualBox server re-initiates
7229 all USB filters as if the device were just physically attached
7230 to the host, but filters of this machine are ignored to avoid
7231 a possible automatic re-attachment.
7232
7233 <see><link to="IUSBController::deviceFilters"/>,
7234 <link to="USBDeviceState"/></see>
7235
7236 <result name="VBOX_E_PDM_ERROR">
7237 Virtual machine does not have a USB controller.
7238 </result>
7239 <result name="E_INVALIDARG">
7240 USB device not attached to this virtual machine.
7241 </result>
7242 </desc>
7243 <param name="id" type="uuid" mod="string" dir="in">
7244 <desc>UUID of the USB device to detach.</desc>
7245 </param>
7246 <param name="device" type="IUSBDevice" dir="return">
7247 <desc>Detached USB device.</desc>
7248 </param>
7249 </method>
7250
7251 <method name="findUSBDeviceByAddress">
7252 <desc>
7253 Searches for a USB device with the given host address.
7254
7255 <result name="VBOX_E_OBJECT_NOT_FOUND">
7256 Given @c name does not correspond to any USB device.
7257 </result>
7258
7259 <see><link to="IUSBDevice::address"/></see>
7260 </desc>
7261 <param name="name" type="wstring" dir="in">
7262 <desc>
7263 Address of the USB device (as assigned by the host) to
7264 search for.
7265 </desc>
7266 </param>
7267 <param name="device" type="IUSBDevice" dir="return">
7268 <desc>Found USB device object.</desc>
7269 </param>
7270 </method>
7271
7272 <method name="findUSBDeviceById">
7273 <desc>
7274 Searches for a USB device with the given UUID.
7275
7276 <result name="VBOX_E_OBJECT_NOT_FOUND">
7277 Given @c id does not correspond to any USB device.
7278 </result>
7279
7280 <see><link to="IUSBDevice::id"/></see>
7281 </desc>
7282 <param name="id" type="uuid" mod="string" dir="in">
7283 <desc>UUID of the USB device to search for.</desc>
7284 </param>
7285 <param name="device" type="IUSBDevice" dir="return">
7286 <desc>Found USB device object.</desc>
7287 </param>
7288 </method>
7289
7290 <method name="createSharedFolder">
7291 <desc>
7292 Creates a transient new shared folder by associating the given logical
7293 name with the given host path, adds it to the collection of shared
7294 folders and starts sharing it. Refer to the description of
7295 <link to="ISharedFolder"/> to read more about logical names.
7296
7297 <result name="VBOX_E_INVALID_VM_STATE">
7298 Virtual machine in Saved state or currently changing state.
7299 </result>
7300 <result name="VBOX_E_FILE_ERROR">
7301 Shared folder already exists or not accessible.
7302 </result>
7303 </desc>
7304 <param name="name" type="wstring" dir="in">
7305 <desc>Unique logical name of the shared folder.</desc>
7306 </param>
7307 <param name="hostPath" type="wstring" dir="in">
7308 <desc>Full path to the shared folder in the host file system.</desc>
7309 </param>
7310 <param name="writable" type="boolean" dir="in">
7311 <desc>Whether the share is writable or readonly</desc>
7312 </param>
7313 <param name="automount" type="boolean" dir="in">
7314 <desc>Whether the share gets automatically mounted by the guest
7315 or not.</desc>
7316 </param>
7317 </method>
7318
7319 <method name="removeSharedFolder">
7320 <desc>
7321 Removes a transient shared folder with the given name previously
7322 created by <link to="#createSharedFolder"/> from the collection of
7323 shared folders and stops sharing it.
7324 <result name="VBOX_E_INVALID_VM_STATE">
7325 Virtual machine in Saved state or currently changing state.
7326 </result>
7327 <result name="VBOX_E_FILE_ERROR">
7328 Shared folder does not exists.
7329 </result>
7330 </desc>
7331 <param name="name" type="wstring" dir="in">
7332 <desc>Logical name of the shared folder to remove.</desc>
7333 </param>
7334 </method>
7335
7336 <method name="takeSnapshot">
7337 <desc>
7338 Saves the current execution state
7339 and all settings of the machine and creates differencing images
7340 for all normal (non-independent) media.
7341 See <link to="ISnapshot" /> for an introduction to snapshots.
7342
7343 This method can be called for a PoweredOff, Saved (see
7344 <link to="#saveState"/>), Running or
7345 Paused virtual machine. When the machine is PoweredOff, an
7346 offline snapshot is created. When the machine is Running a live
7347 snapshot is created, and an online snapshot is created when Paused.
7348
7349 The taken snapshot is always based on the
7350 <link to="IMachine::currentSnapshot">current snapshot</link>
7351 of the associated virtual machine and becomes a new current snapshot.
7352
7353 <note>
7354 This method implicitly calls <link to="IMachine::saveSettings"/> to
7355 save all current machine settings before taking an offline snapshot.
7356 </note>
7357
7358 <result name="VBOX_E_INVALID_VM_STATE">
7359 Virtual machine currently changing state.
7360 </result>
7361 </desc>
7362 <param name="name" type="wstring" dir="in">
7363 <desc>Short name for the snapshot.</desc>
7364 </param>
7365 <param name="description" type="wstring" dir="in">
7366 <desc>Optional description of the snapshot.</desc>
7367 </param>
7368 <param name="progress" type="IProgress" dir="return">
7369 <desc>Progress object to track the operation completion.</desc>
7370 </param>
7371 </method>
7372
7373 <method name="deleteSnapshot">
7374 <desc>
7375 Starts deleting the specified snapshot asynchronously.
7376 See <link to="ISnapshot" /> for an introduction to snapshots.
7377
7378 The execution state and settings of the associated machine stored in
7379 the snapshot will be deleted. The contents of all differencing media of
7380 this snapshot will be merged with the contents of their dependent child
7381 media to keep the medium chain valid (in other words, all changes
7382 represented by media being deleted will be propagated to their child
7383 medium). After that, this snapshot's differencing medium will be
7384 deleted. The parent of this snapshot will become a new parent for all
7385 its child snapshots.
7386
7387 If the deleted snapshot is the current one, its parent snapshot will
7388 become a new current snapshot. The current machine state is not directly
7389 affected in this case, except that currently attached differencing
7390 media based on media of the deleted snapshot will be also merged as
7391 described above.
7392
7393 If the deleted snapshot is the first or current snapshot, then the
7394 respective IMachine attributes will be adjusted. Deleting the current
7395 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7396 to make all current machine settings permanent.
7397
7398 Deleting a snapshot has the following preconditions:
7399
7400 <ul>
7401 <li>Child media of all normal media of the deleted snapshot
7402 must be accessible (see <link to="IMedium::state"/>) for this
7403 operation to succeed. If only one running VM refers to all images
7404 which participates in merging the operation can be performed while
7405 the VM is running. Otherwise all virtual machines whose media are
7406 directly or indirectly based on the media of deleted snapshot must
7407 be powered off. In any case, online snapshot deleting usually is
7408 slower than the same operation without any running VM.</li>
7409
7410 <li>You cannot delete the snapshot if a medium attached to it has
7411 more than one child medium (differencing images) because otherwise
7412 merging would be impossible. This might be the case if there is
7413 more than one child snapshot or differencing images were created
7414 for other reason (e.g. implicitly because of multiple machine
7415 attachments).</li>
7416 </ul>
7417
7418 The virtual machine's <link to="IMachine::state">state</link> is
7419 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7420 "DeletingSnapshotPaused" while this operation is in progress.
7421
7422 <note>
7423 Merging medium contents can be very time and disk space
7424 consuming, if these media are big in size and have many
7425 children. However, if the snapshot being deleted is the last
7426 (head) snapshot on the branch, the operation will be rather
7427 quick.
7428 </note>
7429 <result name="VBOX_E_INVALID_VM_STATE">
7430 The running virtual machine prevents deleting this snapshot. This
7431 happens only in very specific situations, usually snapshots can be
7432 deleted without trouble while a VM is running. The error message
7433 text explains the reason for the failure.
7434 </result>
7435 </desc>
7436 <param name="id" type="uuid" mod="string" dir="in">
7437 <desc>UUID of the snapshot to delete.</desc>
7438 </param>
7439 <param name="progress" type="IProgress" dir="return">
7440 <desc>Progress object to track the operation completion.</desc>
7441 </param>
7442 </method>
7443
7444 <method name="deleteSnapshotAndAllChildren">
7445 <desc>
7446 Starts deleting the specified snapshot and all its children
7447 asynchronously. See <link to="ISnapshot" /> for an introduction to
7448 snapshots. The conditions and many details are the same as with
7449 <link to="#deleteSnapshot"/>.
7450
7451 This operation is very fast if the snapshot subtree does not include
7452 the current state. It is still significantly faster than deleting the
7453 snapshots one by one if the current state is in the subtree and there
7454 are more than one snapshots from current state to the snapshot which
7455 marks the subtree, since it eliminates the incremental image merging.
7456
7457 <note>This API method is right now not implemented!</note>
7458
7459 <result name="VBOX_E_INVALID_VM_STATE">
7460 The running virtual machine prevents deleting this snapshot. This
7461 happens only in very specific situations, usually snapshots can be
7462 deleted without trouble while a VM is running. The error message
7463 text explains the reason for the failure.
7464 </result>
7465 <result name="E_NOTIMPL">
7466 The method is not implemented yet.
7467 </result>
7468 </desc>
7469 <param name="id" type="uuid" mod="string" dir="in">
7470 <desc>UUID of the snapshot to delete, including all its children.</desc>
7471 </param>
7472 <param name="progress" type="IProgress" dir="return">
7473 <desc>Progress object to track the operation completion.</desc>
7474 </param>
7475 </method>
7476
7477 <method name="deleteSnapshotRange">
7478 <desc>
7479 Starts deleting the specified snapshot range. This is limited to
7480 linear snapshot lists, which means there may not be any other child
7481 snapshots other than the direct sequence between the start and end
7482 snapshot. If the start and end snapshot point to the same snapshot this
7483 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7484 <link to="ISnapshot" /> for an introduction to snapshots. The
7485 conditions and many details are the same as with
7486 <link to="#deleteSnapshot"/>.
7487
7488 This operation is generally faster than deleting snapshots one by one
7489 and often also needs less extra disk space before freeing up disk space
7490 by deleting the removed disk images corresponding to the snapshot.
7491
7492 <note>This API method is right now not implemented!</note>
7493
7494 <result name="VBOX_E_INVALID_VM_STATE">
7495 The running virtual machine prevents deleting this snapshot. This
7496 happens only in very specific situations, usually snapshots can be
7497 deleted without trouble while a VM is running. The error message
7498 text explains the reason for the failure.
7499 </result>
7500 <result name="E_NOTIMPL">
7501 The method is not implemented yet.
7502 </result>
7503 </desc>
7504 <param name="startId" type="uuid" mod="string" dir="in">
7505 <desc>UUID of the first snapshot to delete.</desc>
7506 </param>
7507 <param name="endId" type="uuid" mod="string" dir="in">
7508 <desc>UUID of the last snapshot to delete.</desc>
7509 </param>
7510 <param name="progress" type="IProgress" dir="return">
7511 <desc>Progress object to track the operation completion.</desc>
7512 </param>
7513 </method>
7514
7515 <method name="restoreSnapshot">
7516 <desc>
7517 Starts resetting the machine's current state to the state contained
7518 in the given snapshot, asynchronously. All current settings of the
7519 machine will be reset and changes stored in differencing media
7520 will be lost.
7521 See <link to="ISnapshot" /> for an introduction to snapshots.
7522
7523 After this operation is successfully completed, new empty differencing
7524 media are created for all normal media of the machine.
7525
7526 If the given snapshot is an online snapshot, the machine will go to
7527 the <link to="MachineState_Saved"> saved state</link>, so that the
7528 next time it is powered on, the execution state will be restored
7529 from the state of the snapshot.
7530
7531 <note>
7532 The machine must not be running, otherwise the operation will fail.
7533 </note>
7534
7535 <note>
7536 If the machine state is <link to="MachineState_Saved">Saved</link>
7537 prior to this operation, the saved state file will be implicitly
7538 deleted (as if <link to="IConsole::discardSavedState"/> were
7539 called).
7540 </note>
7541
7542 <result name="VBOX_E_INVALID_VM_STATE">
7543 Virtual machine is running.
7544 </result>
7545 </desc>
7546 <param name="snapshot" type="ISnapshot" dir="in">
7547 <desc>The snapshot to restore the VM state from.</desc>
7548 </param>
7549 <param name="progress" type="IProgress" dir="return">
7550 <desc>Progress object to track the operation completion.</desc>
7551 </param>
7552 </method>
7553
7554 <method name="teleport">
7555 <desc>
7556 Teleport the VM to a different host machine or process.
7557
7558 TODO explain the details.
7559
7560 <result name="VBOX_E_INVALID_VM_STATE">
7561 Virtual machine not running or paused.
7562 </result>
7563 </desc>
7564 <param name="hostname" type="wstring" dir="in">
7565 <desc>The name or IP of the host to teleport to.</desc>
7566 </param>
7567 <param name="tcpport" type="unsigned long" dir="in">
7568 <desc>The TCP port to connect to (1..65535).</desc>
7569 </param>
7570 <param name="password" type="wstring" dir="in">
7571 <desc>The password.</desc>
7572 </param>
7573 <param name="maxDowntime" type="unsigned long" dir="in">
7574 <desc>
7575 The maximum allowed downtime given as milliseconds. 0 is not a valid
7576 value. Recommended value: 250 ms.
7577
7578 The higher the value is, the greater the chance for a successful
7579 teleportation. A small value may easily result in the teleportation
7580 process taking hours and eventually fail.
7581
7582 <note>
7583 The current implementation treats this a guideline, not as an
7584 absolute rule.
7585 </note>
7586 </desc>
7587 </param>
7588 <param name="progress" type="IProgress" dir="return">
7589 <desc>Progress object to track the operation completion.</desc>
7590 </param>
7591 </method>
7592
7593 </interface>
7594
7595 <!--
7596 // IHost
7597 /////////////////////////////////////////////////////////////////////////
7598 -->
7599
7600 <enum
7601 name="HostNetworkInterfaceMediumType"
7602 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7603 >
7604 <desc>
7605 Type of encapsulation. Ethernet encapsulation includes both wired and
7606 wireless Ethernet connections.
7607 <see><link to="IHostNetworkInterface"/></see>
7608 </desc>
7609
7610 <const name="Unknown" value="0">
7611 <desc>
7612 The type of interface cannot be determined.
7613 </desc>
7614 </const>
7615 <const name="Ethernet" value="1">
7616 <desc>
7617 Ethernet frame encapsulation.
7618 </desc>
7619 </const>
7620 <const name="PPP" value="2">
7621 <desc>
7622 Point-to-point protocol encapsulation.
7623 </desc>
7624 </const>
7625 <const name="SLIP" value="3">
7626 <desc>
7627 Serial line IP encapsulation.
7628 </desc>
7629 </const>
7630 </enum>
7631
7632 <enum
7633 name="HostNetworkInterfaceStatus"
7634 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7635 >
7636 <desc>
7637 Current status of the interface.
7638 <see><link to="IHostNetworkInterface"/></see>
7639 </desc>
7640
7641 <const name="Unknown" value="0">
7642 <desc>
7643 The state of interface cannot be determined.
7644 </desc>
7645 </const>
7646 <const name="Up" value="1">
7647 <desc>
7648 The interface is fully operational.
7649 </desc>
7650 </const>
7651 <const name="Down" value="2">
7652 <desc>
7653 The interface is not functioning.
7654 </desc>
7655 </const>
7656 </enum>
7657
7658 <enum
7659 name="HostNetworkInterfaceType"
7660 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7661 >
7662 <desc>
7663 Network interface type.
7664 </desc>
7665 <const name="Bridged" value="1"/>
7666 <const name="HostOnly" value="2"/>
7667 </enum>
7668
7669 <interface
7670 name="IHostNetworkInterface" extends="$unknown"
7671 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7672 wsmap="managed"
7673 >
7674 <desc>
7675 Represents one of host's network interfaces. IP V6 address and network
7676 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7677 separated by colons.
7678 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7679 </desc>
7680 <attribute name="name" type="wstring" readonly="yes">
7681 <desc>Returns the host network interface name.</desc>
7682 </attribute>
7683
7684 <attribute name="id" type="uuid" mod="string" readonly="yes">
7685 <desc>Returns the interface UUID.</desc>
7686 </attribute>
7687
7688 <attribute name="networkName" type="wstring" readonly="yes">
7689 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7690 </attribute>
7691
7692 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7693 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7694 </attribute>
7695
7696 <attribute name="IPAddress" type="wstring" readonly="yes">
7697 <desc>Returns the IP V4 address of the interface.</desc>
7698 </attribute>
7699
7700 <attribute name="networkMask" type="wstring" readonly="yes">
7701 <desc>Returns the network mask of the interface.</desc>
7702 </attribute>
7703
7704 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7705 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7706 </attribute>
7707
7708 <attribute name="IPV6Address" type="wstring" readonly="yes">
7709 <desc>Returns the IP V6 address of the interface.</desc>
7710 </attribute>
7711
7712 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7713 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7714 </attribute>
7715
7716 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7717 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7718 </attribute>
7719
7720 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7721 <desc>Type of protocol encapsulation used.</desc>
7722 </attribute>
7723
7724 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7725 <desc>Status of the interface.</desc>
7726 </attribute>
7727
7728 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7729 <desc>specifies the host interface type.</desc>
7730 </attribute>
7731
7732 <method name="enableStaticIPConfig">
7733 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7734 <param name="IPAddress" type="wstring" dir="in">
7735 <desc>
7736 IP address.
7737 </desc>
7738 </param>
7739 <param name="networkMask" type="wstring" dir="in">
7740 <desc>
7741 network mask.
7742 </desc>
7743 </param>
7744 </method>
7745
7746 <method name="enableStaticIPConfigV6">
7747 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7748 <param name="IPV6Address" type="wstring" dir="in">
7749 <desc>
7750 IP address.
7751 </desc>
7752 </param>
7753 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7754 <desc>
7755 network mask.
7756 </desc>
7757 </param>
7758 </method>
7759
7760 <method name="enableDynamicIPConfig">
7761 <desc>enables the dynamic IP configuration.</desc>
7762 </method>
7763
7764 <method name="DHCPRediscover">
7765 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7766 </method>
7767
7768 </interface>
7769
7770 <interface
7771 name="IHost" extends="$unknown"
7772 uuid="30678943-32df-4830-b413-931b25ac86a0"
7773 wsmap="managed"
7774 >
7775 <desc>
7776 The IHost interface represents the physical machine that this VirtualBox
7777 installation runs on.
7778
7779 An object implementing this interface is returned by the
7780 <link to="IVirtualBox::host" /> attribute. This interface contains
7781 read-only information about the host's physical hardware (such as what
7782 processors and disks are available, what the host operating system is,
7783 and so on) and also allows for manipulating some of the host's hardware,
7784 such as global USB device filters and host interface networking.
7785
7786 </desc>
7787 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7788 <desc>List of DVD drives available on the host.</desc>
7789 </attribute>
7790
7791 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7792 <desc>List of floppy drives available on the host.</desc>
7793 </attribute>
7794
7795 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7796 <desc>
7797 List of USB devices currently attached to the host.
7798 Once a new device is physically attached to the host computer,
7799 it appears in this list and remains there until detached.
7800
7801 <note>
7802 If USB functionality is not available in the given edition of
7803 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7804 </note>
7805 </desc>
7806 </attribute>
7807
7808 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7809 <desc>
7810 List of USB device filters in action.
7811 When a new device is physically attached to the host computer,
7812 filters from this list are applied to it (in order they are stored
7813 in the list). The first matched filter will determine the
7814 <link to="IHostUSBDeviceFilter::action">action</link>
7815 performed on the device.
7816
7817 Unless the device is ignored by these filters, filters of all
7818 currently running virtual machines
7819 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7820
7821 <note>
7822 If USB functionality is not available in the given edition of
7823 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7824 </note>
7825
7826 <see><link to="IHostUSBDeviceFilter"/>,
7827 <link to="USBDeviceState"/></see>
7828 </desc>
7829 </attribute>
7830
7831 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7832 <desc>List of host network interfaces currently defined on the host.</desc>
7833 </attribute>
7834
7835 <attribute name="processorCount" type="unsigned long" readonly="yes">
7836 <desc>Number of (logical) CPUs installed in the host system.</desc>
7837 </attribute>
7838
7839 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7840 <desc>Number of (logical) CPUs online in the host system.</desc>
7841 </attribute>
7842
7843 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7844 <desc>Number of physical processor cores installed in the host system.</desc>
7845 </attribute>
7846
7847 <method name="getProcessorSpeed">
7848 <desc>Query the (approximate) maximum speed of a specified host CPU in
7849 Megahertz.
7850 </desc>
7851 <param name="cpuId" type="unsigned long" dir="in">
7852 <desc>
7853 Identifier of the CPU.
7854 </desc>
7855 </param>
7856 <param name="speed" type="unsigned long" dir="return">
7857 <desc>
7858 Speed value. 0 is returned if value is not known or @a cpuId is
7859 invalid.
7860 </desc>
7861 </param>
7862 </method>
7863
7864 <method name="getProcessorFeature">
7865 <desc>Query whether a CPU feature is supported or not.</desc>
7866 <param name="feature" type="ProcessorFeature" dir="in">
7867 <desc>
7868 CPU Feature identifier.
7869 </desc>
7870 </param>
7871 <param name="supported" type="boolean" dir="return">
7872 <desc>
7873 Feature is supported or not.
7874 </desc>
7875 </param>
7876 </method>
7877
7878 <method name="getProcessorDescription">
7879 <desc>Query the model string of a specified host CPU.
7880 </desc>
7881 <param name="cpuId" type="unsigned long" dir="in">
7882 <desc>
7883 Identifier of the CPU.
7884 <note>
7885 The current implementation might not necessarily return the
7886 description for this exact CPU.
7887 </note>
7888 </desc>
7889 </param>
7890 <param name="description" type="wstring" dir="return">
7891 <desc>
7892 Model string. An empty string is returned if value is not known or
7893 @a cpuId is invalid.
7894 </desc>
7895 </param>
7896 </method>
7897
7898 <method name="getProcessorCPUIDLeaf">
7899 <desc>
7900 Returns the CPU cpuid information for the specified leaf.
7901 </desc>
7902 <param name="cpuId" type="unsigned long" dir="in">
7903 <desc>
7904 Identifier of the CPU. The CPU most be online.
7905 <note>
7906 The current implementation might not necessarily return the
7907 description for this exact CPU.
7908 </note>
7909 </desc>
7910 </param>
7911 <param name="leaf" type="unsigned long" dir="in">
7912 <desc>
7913 CPUID leaf index (eax).
7914 </desc>
7915 </param>
7916 <param name="subLeaf" type="unsigned long" dir="in">
7917 <desc>
7918 CPUID leaf sub index (ecx). This currently only applies to cache
7919 information on Intel CPUs. Use 0 if retrieving values for
7920 <link to="IMachine::setCPUIDLeaf"/>.
7921 </desc>
7922 </param>
7923 <param name="valEax" type="unsigned long" dir="out">
7924 <desc>
7925 CPUID leaf value for register eax.
7926 </desc>
7927 </param>
7928 <param name="valEbx" type="unsigned long" dir="out">
7929 <desc>
7930 CPUID leaf value for register ebx.
7931 </desc>
7932 </param>
7933 <param name="valEcx" type="unsigned long" dir="out">
7934 <desc>
7935 CPUID leaf value for register ecx.
7936 </desc>
7937 </param>
7938 <param name="valEdx" type="unsigned long" dir="out">
7939 <desc>
7940 CPUID leaf value for register edx.
7941 </desc>
7942 </param>
7943 </method>
7944
7945 <attribute name="memorySize" type="unsigned long" readonly="yes">
7946 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7947 </attribute>
7948
7949 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7950 <desc>Available system memory in the host system.</desc>
7951 </attribute>
7952
7953 <attribute name="operatingSystem" type="wstring" readonly="yes">
7954 <desc>Name of the host system's operating system.</desc>
7955 </attribute>
7956
7957 <attribute name="OSVersion" type="wstring" readonly="yes">
7958 <desc>Host operating system's version string.</desc>
7959 </attribute>
7960
7961 <attribute name="UTCTime" type="long long" readonly="yes">
7962 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7963 </attribute>
7964
7965 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
7966 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7967 </attribute>
7968
7969 <method name="createHostOnlyNetworkInterface">
7970 <desc>
7971 Creates a new adapter for Host Only Networking.
7972 <result name="E_INVALIDARG">
7973 Host network interface @a name already exists.
7974 </result>
7975 </desc>
7976 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7977 <desc>
7978 Created host interface object.
7979 </desc>
7980 </param>
7981 <param name="progress" type="IProgress" dir="return">
7982 <desc>
7983 Progress object to track the operation completion.
7984 </desc>
7985 </param>
7986 </method>
7987
7988 <method name="removeHostOnlyNetworkInterface">
7989 <desc>
7990 Removes the given Host Only Networking interface.
7991 <result name="VBOX_E_OBJECT_NOT_FOUND">
7992 No host network interface matching @a id found.
7993 </result>
7994 </desc>
7995 <param name="id" type="uuid" mod="string" dir="in">
7996 <desc>
7997 Adapter GUID.
7998 </desc>
7999 </param>
8000 <param name="progress" type="IProgress" dir="return">
8001 <desc>
8002 Progress object to track the operation completion.
8003 </desc>
8004 </param>
8005 </method>
8006
8007 <method name="createUSBDeviceFilter">
8008 <desc>
8009 Creates a new USB device filter. All attributes except
8010 the filter name are set to empty (any match),
8011 <i>active</i> is @c false (the filter is not active).
8012
8013 The created filter can be added to the list of filters using
8014 <link to="#insertUSBDeviceFilter"/>.
8015
8016 <see><link to="#USBDeviceFilters"/></see>
8017 </desc>
8018 <param name="name" type="wstring" dir="in">
8019 <desc>
8020 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
8021 </desc>
8022 </param>
8023 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8024 <desc>Created filter object.</desc>
8025 </param>
8026 </method>
8027
8028 <method name="insertUSBDeviceFilter">
8029 <desc>
8030 Inserts the given USB device to the specified position
8031 in the list of filters.
8032
8033 Positions are numbered starting from @c 0. If the specified
8034 position is equal to or greater than the number of elements in
8035 the list, the filter is added at the end of the collection.
8036
8037 <note>
8038 Duplicates are not allowed, so an attempt to insert a
8039 filter already in the list is an error.
8040 </note>
8041 <note>
8042 If USB functionality is not available in the given edition of
8043 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8044 </note>
8045
8046 <see><link to="#USBDeviceFilters"/></see>
8047
8048 <result name="VBOX_E_INVALID_OBJECT_STATE">
8049 USB device filter is not created within this VirtualBox instance.
8050 </result>
8051 <result name="E_INVALIDARG">
8052 USB device filter already in list.
8053 </result>
8054
8055 </desc>
8056 <param name="position" type="unsigned long" dir="in">
8057 <desc>Position to insert the filter to.</desc>
8058 </param>
8059 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8060 <desc>USB device filter to insert.</desc>
8061 </param>
8062 </method>
8063
8064 <method name="removeUSBDeviceFilter">
8065 <desc>
8066 Removes a USB device filter from the specified position in the
8067 list of filters.
8068
8069 Positions are numbered starting from @c 0. Specifying a
8070 position equal to or greater than the number of elements in
8071 the list will produce an error.
8072
8073 <note>
8074 If USB functionality is not available in the given edition of
8075 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8076 </note>
8077
8078 <see><link to="#USBDeviceFilters"/></see>
8079
8080 <result name="E_INVALIDARG">
8081 USB device filter list empty or invalid @a position.
8082 </result>
8083
8084 </desc>
8085 <param name="position" type="unsigned long" dir="in">
8086 <desc>Position to remove the filter from.</desc>
8087 </param>
8088 </method>
8089
8090 <method name="findHostDVDDrive">
8091 <desc>
8092 Searches for a host DVD drive with the given @c name.
8093
8094 <result name="VBOX_E_OBJECT_NOT_FOUND">
8095 Given @c name does not correspond to any host drive.
8096 </result>
8097
8098 </desc>
8099 <param name="name" type="wstring" dir="in">
8100 <desc>Name of the host drive to search for</desc>
8101 </param>
8102 <param name="drive" type="IMedium" dir="return">
8103 <desc>Found host drive object</desc>
8104 </param>
8105 </method>
8106
8107 <method name="findHostFloppyDrive">
8108 <desc>
8109 Searches for a host floppy drive with the given @c name.
8110
8111 <result name="VBOX_E_OBJECT_NOT_FOUND">
8112 Given @c name does not correspond to any host floppy drive.
8113 </result>
8114
8115 </desc>
8116 <param name="name" type="wstring" dir="in">
8117 <desc>Name of the host floppy drive to search for</desc>
8118 </param>
8119 <param name="drive" type="IMedium" dir="return">
8120 <desc>Found host floppy drive object</desc>
8121 </param>
8122 </method>
8123
8124 <method name="findHostNetworkInterfaceByName">
8125 <desc>
8126 Searches through all host network interfaces for an interface with
8127 the given @c name.
8128 <note>
8129 The method returns an error if the given @c name does not
8130 correspond to any host network interface.
8131 </note>
8132 </desc>
8133 <param name="name" type="wstring" dir="in">
8134 <desc>Name of the host network interface to search for.</desc>
8135 </param>
8136 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8137 <desc>Found host network interface object.</desc>
8138 </param>
8139 </method>
8140 <method name="findHostNetworkInterfaceById">
8141 <desc>
8142 Searches through all host network interfaces for an interface with
8143 the given GUID.
8144 <note>
8145 The method returns an error if the given GUID does not
8146 correspond to any host network interface.
8147 </note>
8148 </desc>
8149 <param name="id" type="uuid" mod="string" dir="in">
8150 <desc>GUID of the host network interface to search for.</desc>
8151 </param>
8152 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8153 <desc>Found host network interface object.</desc>
8154 </param>
8155 </method>
8156 <method name="findHostNetworkInterfacesOfType">
8157 <desc>
8158 Searches through all host network interfaces and returns a list of interfaces of the specified type
8159 </desc>
8160 <param name="type" type="HostNetworkInterfaceType" dir="in">
8161 <desc>type of the host network interfaces to search for.</desc>
8162 </param>
8163 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8164 <desc>Found host network interface objects.</desc>
8165 </param>
8166 </method>
8167
8168 <method name="findUSBDeviceById">
8169 <desc>
8170 Searches for a USB device with the given UUID.
8171
8172 <result name="VBOX_E_OBJECT_NOT_FOUND">
8173 Given @c id does not correspond to any USB device.
8174 </result>
8175
8176 <see><link to="IUSBDevice::id"/></see>
8177 </desc>
8178 <param name="id" type="uuid" mod="string" dir="in">
8179 <desc>UUID of the USB device to search for.</desc>
8180 </param>
8181 <param name="device" type="IHostUSBDevice" dir="return">
8182 <desc>Found USB device object.</desc>
8183 </param>
8184 </method>
8185
8186 <method name="findUSBDeviceByAddress">
8187 <desc>
8188 Searches for a USB device with the given host address.
8189
8190 <result name="VBOX_E_OBJECT_NOT_FOUND">
8191 Given @c name does not correspond to any USB device.
8192 </result>
8193
8194 <see><link to="IUSBDevice::address"/></see>
8195 </desc>
8196 <param name="name" type="wstring" dir="in">
8197 <desc>
8198 Address of the USB device (as assigned by the host) to
8199 search for.
8200 </desc>
8201 </param>
8202 <param name="device" type="IHostUSBDevice" dir="return">
8203 <desc>Found USB device object.</desc>
8204 </param>
8205 </method>
8206
8207 <method name="generateMACAddress">
8208 <desc>
8209 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8210 </desc>
8211 <param name="address" type="wstring" dir="return">
8212 <desc>New Ethernet MAC address.</desc>
8213 </param>
8214 </method>
8215
8216 </interface>
8217
8218 <!--
8219 // ISystemProperties
8220 /////////////////////////////////////////////////////////////////////////
8221 -->
8222
8223 <interface
8224 name="ISystemProperties"
8225 extends="$unknown"
8226 uuid="1d7aca29-97f0-4287-9874-a60ec4f80ea6"
8227 wsmap="managed"
8228 >
8229 <desc>
8230 The ISystemProperties interface represents global properties of the given
8231 VirtualBox installation.
8232
8233 These properties define limits and default values for various attributes
8234 and parameters. Most of the properties are read-only, but some can be
8235 changed by a user.
8236 </desc>
8237
8238 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8239 <desc>Minimum guest system memory in Megabytes.</desc>
8240 </attribute>
8241
8242 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8243 <desc>Maximum guest system memory in Megabytes.</desc>
8244 </attribute>
8245
8246 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8247 <desc>Minimum guest video memory in Megabytes.</desc>
8248 </attribute>
8249
8250 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8251 <desc>Maximum guest video memory in Megabytes.</desc>
8252 </attribute>
8253
8254 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8255 <desc>Minimum CPU count.</desc>
8256 </attribute>
8257
8258 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8259 <desc>Maximum CPU count.</desc>
8260 </attribute>
8261
8262 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8263 <desc>Maximum of monitors which could be connected.</desc>
8264 </attribute>
8265
8266 <attribute name="infoVDSize" type="long long" readonly="yes">
8267 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8268 does not reflect the limits of any virtual disk image format.</desc>
8269 </attribute>
8270
8271 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8272 <desc>
8273 Maximum number of serial ports associated with every
8274 <link to="IMachine"/> instance.
8275 </desc>
8276 </attribute>
8277
8278 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8279 <desc>
8280 Maximum number of parallel ports associated with every
8281 <link to="IMachine"/> instance.
8282 </desc>
8283 </attribute>
8284
8285 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8286 <desc>
8287 Maximum device position in the boot order. This value corresponds
8288 to the total number of devices a machine can boot from, to make it
8289 possible to include all possible devices to the boot list.
8290 <see><link to="IMachine::setBootOrder"/></see>
8291 </desc>
8292 </attribute>
8293
8294 <attribute name="defaultMachineFolder" type="wstring">
8295 <desc>
8296 Full path to the default directory used to create new or open
8297 existing machines when a machine settings file name contains no
8298 path.
8299
8300 Starting with VirtualBox 4.0, by default, this attribute contains
8301 the full path of folder named "VirtualBox VMs" in the user's
8302 home directory, which depends on the host platform.
8303
8304 When setting this attribute, a full path must be specified.
8305 Setting this property to @c null or an empty string or the
8306 special value "Machines" (for compatibility reasons) will restore
8307 that default value.
8308
8309 If the folder specified herein does not exist, it will be created
8310 automatically as needed.
8311
8312 <see>
8313 <link to="IVirtualBox::createMachine"/>,
8314 <link to="IVirtualBox::openMachine"/>
8315 </see>
8316 </desc>
8317 </attribute>
8318
8319 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8320 <desc>
8321 List of all medium storage formats supported by this VirtualBox
8322 installation.
8323
8324 Keep in mind that the medium format identifier
8325 (<link to="IMediumFormat::id"/>) used in other API calls like
8326 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8327 medium format is a case-insensitive string. This means that, for
8328 example, all of the following strings:
8329 <pre>
8330 "VDI"
8331 "vdi"
8332 "VdI"</pre>
8333 refer to the same medium format.
8334
8335 Note that the virtual medium framework is backend-based, therefore
8336 the list of supported formats depends on what backends are currently
8337 installed.
8338
8339 <see><link to="IMediumFormat"/></see>
8340 </desc>
8341 </attribute>
8342
8343 <attribute name="defaultHardDiskFormat" type="wstring">
8344 <desc>
8345 Identifier of the default medium format used by VirtualBox.
8346
8347 The medium format set by this attribute is used by VirtualBox
8348 when the medium format was not specified explicitly. One example is
8349 <link to="IVirtualBox::createHardDisk"/> with the empty
8350 format argument. A more complex example is implicit creation of
8351 differencing media when taking a snapshot of a virtual machine:
8352 this operation will try to use a format of the parent medium first
8353 and if this format does not support differencing media the default
8354 format specified by this argument will be used.
8355
8356 The list of supported medium formats may be obtained by the
8357 <link to="#mediumFormats"/> call. Note that the default medium
8358 format must have a capability to create differencing media;
8359 otherwise operations that create media implicitly may fail
8360 unexpectedly.
8361
8362 The initial value of this property is <tt>"VDI"</tt> in the current
8363 version of the VirtualBox product, but may change in the future.
8364
8365 <note>
8366 Setting this property to @c null or empty string will restore the
8367 initial value.
8368 </note>
8369
8370 <see>
8371 <link to="#mediumFormats"/>,
8372 <link to="IMediumFormat::id"/>,
8373 <link to="IVirtualBox::createHardDisk"/>
8374 </see>
8375 </desc>
8376 </attribute>
8377
8378 <attribute name="freeDiskSpaceWarning" type="long long">
8379 <desc>Issue a warning if the free disk space is below (or in some disk
8380 intensive operation is expected to go below) the given size in
8381 bytes.</desc>
8382 </attribute>
8383
8384 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8385 <desc>Issue a warning if the free disk space is below (or in some disk
8386 intensive operation is expected to go below) the given percentage.</desc>
8387 </attribute>
8388
8389 <attribute name="freeDiskSpaceError" type="long long">
8390 <desc>Issue an error if the free disk space is below (or in some disk
8391 intensive operation is expected to go below) the given size in
8392 bytes.</desc>
8393 </attribute>
8394
8395 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8396 <desc>Issue an error if the free disk space is below (or in some disk
8397 intensive operation is expected to go below) the given percentage.</desc>
8398 </attribute>
8399
8400 <attribute name="VRDEAuthLibrary" type="wstring">
8401 <desc>
8402 Library that provides authentication for Remote Desktop clients. The library
8403 is used if a virtual machine's authentication type is set to "external"
8404 in the VM RemoteDisplay configuration.
8405
8406 The system library extension (".DLL" or ".so") must be omitted.
8407 A full path can be specified; if not, then the library must reside on the
8408 system's default library path.
8409
8410 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8411 of that name in one of the default VirtualBox library directories.
8412
8413 For details about VirtualBox authentication libraries and how to implement
8414 them, please refer to the VirtualBox manual.
8415
8416 <note>
8417 Setting this property to @c null or empty string will restore the
8418 initial value.
8419 </note>
8420 </desc>
8421 </attribute>
8422
8423 <attribute name="webServiceAuthLibrary" type="wstring">
8424 <desc>
8425 Library that provides authentication for webservice clients. The library
8426 is used if a virtual machine's authentication type is set to "external"
8427 in the VM RemoteDisplay configuration and will be called from
8428 within the <link to="IWebsessionManager::logon" /> implementation.
8429
8430 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8431 there is no per-VM setting for this, as the webservice is a global
8432 resource (if it is running). Only for this setting (for the webservice),
8433 setting this value to a literal <tt>"null"</tt> string disables authentication,
8434 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8435 no matter what user name and password are supplied.
8436
8437 The initial value of this property is <tt>"VBoxAuth"</tt>,
8438 meaning that the webservice will use the same authentication
8439 library that is used by default for VRDE (again, see
8440 <link to="ISystemProperties::VRDEAuthLibrary" />).
8441 The format and calling convention of authentication libraries
8442 is the same for the webservice as it is for VRDE.
8443
8444 <note>
8445 Setting this property to @c null or empty string will restore the
8446 initial value.
8447 </note>
8448 </desc>
8449 </attribute>
8450
8451 <attribute name="defaultVRDEExtPack" type="wstring">
8452 <desc>
8453 The name of the extension pack providing the default VRDE.
8454
8455 This attribute is for choosing between multiple extension packs
8456 providing VRDE. If only one is installed, it will automatically be the
8457 default one. The attribute value can be empty if no VRDE extension
8458 pack is installed.
8459
8460 For details about VirtualBox Remote Desktop Extension and how to
8461 implement one, please refer to the VirtualBox SDK.
8462 </desc>
8463 </attribute>
8464
8465 <attribute name="logHistoryCount" type="unsigned long">
8466 <desc>
8467 This value specifies how many old release log files are kept.
8468 </desc>
8469 </attribute>
8470
8471 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8472 <desc>This value hold the default audio driver for the current
8473 system.</desc>
8474 </attribute>
8475
8476 <attribute name="autostartDatabasePath" type="wstring">
8477 <desc>
8478 The path to the autostart database. Depending on the host this might
8479 be a filesystem path or something else.
8480 </desc>
8481 </attribute>
8482
8483 <attribute name="defaultAdditionsISO" type="wstring">
8484 <desc>
8485 The path to the default Guest Additions ISO image. Can be empty if
8486 the location is not known in this installation.
8487 </desc>
8488 </attribute>
8489
8490 <method name="getMaxNetworkAdapters">
8491 <desc>
8492 Maximum total number of network adapters associated with every
8493 <link to="IMachine"/> instance.
8494 </desc>
8495
8496 <param name="chipset" type="ChipsetType" dir="in">
8497 <desc>The chipset type to get the value for.</desc>
8498 </param>
8499
8500
8501 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8502 <desc>The maximum total number of network adapters allowed.</desc>
8503 </param>
8504
8505 </method>
8506
8507 <method name="getMaxNetworkAdaptersOfType">
8508 <desc>
8509 Maximum number of network adapters of a given attachment type,
8510 associated with every <link to="IMachine"/> instance.
8511 </desc>
8512
8513 <param name="chipset" type="ChipsetType" dir="in">
8514 <desc>The chipset type to get the value for.</desc>
8515 </param>
8516
8517 <param name="type" type="NetworkAttachmentType" dir="in">
8518 <desc>Type of attachment.</desc>
8519 </param>
8520
8521 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8522 <desc>The maximum number of network adapters allowed for
8523 particular chipset and attachment type.</desc>
8524 </param>
8525
8526 </method>
8527
8528
8529 <method name="getMaxDevicesPerPortForStorageBus">
8530 <desc>Returns the maximum number of devices which can be attached to a port
8531 for the given storage bus.</desc>
8532
8533 <param name="bus" type="StorageBus" dir="in">
8534 <desc>The storage bus type to get the value for.</desc>
8535 </param>
8536
8537 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8538 <desc>The maximum number of devices which can be attached to the port for the given
8539 storage bus.</desc>
8540 </param>
8541 </method>
8542
8543 <method name="getMinPortCountForStorageBus">
8544 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8545
8546 <param name="bus" type="StorageBus" dir="in">
8547 <desc>The storage bus type to get the value for.</desc>
8548 </param>
8549
8550 <param name="minPortCount" type="unsigned long" dir="return">
8551 <desc>The minimum number of ports for the given storage bus.</desc>
8552 </param>
8553 </method>
8554
8555 <method name="getMaxPortCountForStorageBus">
8556 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8557
8558 <param name="bus" type="StorageBus" dir="in">
8559 <desc>The storage bus type to get the value for.</desc>
8560 </param>
8561
8562 <param name="maxPortCount" type="unsigned long" dir="return">
8563 <desc>The maximum number of ports for the given storage bus.</desc>
8564 </param>
8565 </method>
8566
8567 <method name="getMaxInstancesOfStorageBus">
8568 <desc>Returns the maximum number of storage bus instances which
8569 can be configured for each VM. This corresponds to the number of
8570 storage controllers one can have. Value may depend on chipset type
8571 used.</desc>
8572
8573 <param name="chipset" type="ChipsetType" dir="in">
8574 <desc>The chipset type to get the value for.</desc>
8575 </param>
8576
8577 <param name="bus" type="StorageBus" dir="in">
8578 <desc>The storage bus type to get the value for.</desc>
8579 </param>
8580
8581 <param name="maxInstances" type="unsigned long" dir="return">
8582 <desc>The maximum number of instances for the given storage bus.</desc>
8583 </param>
8584 </method>
8585
8586 <method name="getDeviceTypesForStorageBus">
8587 <desc>Returns list of all the supported device types
8588 (<link to="DeviceType"/>) for the given type of storage
8589 bus.</desc>
8590
8591 <param name="bus" type="StorageBus" dir="in">
8592 <desc>The storage bus type to get the value for.</desc>
8593 </param>
8594
8595 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8596 <desc>The list of all supported device types for the given storage bus.</desc>
8597 </param>
8598 </method>
8599
8600 <method name="getDefaultIoCacheSettingForStorageController">
8601 <desc>Returns the default I/O cache setting for the
8602 given storage controller</desc>
8603
8604 <param name="controllerType" type="StorageControllerType" dir="in">
8605 <desc>The storage controller to the setting for.</desc>
8606 </param>
8607
8608 <param name="enabled" type="boolean" dir="return">
8609 <desc>Returned flag indicating the default value</desc>
8610 </param>
8611 </method>
8612 </interface>
8613
8614 <!--
8615 // IGuest
8616 /////////////////////////////////////////////////////////////////////////
8617 -->
8618
8619 <interface
8620 name="IGuestOSType" extends="$unknown"
8621 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8622 wsmap="struct"
8623 >
8624 <desc>
8625 </desc>
8626
8627 <attribute name="familyId" type="wstring" readonly="yes">
8628 <desc>Guest OS family identifier string.</desc>
8629 </attribute>
8630
8631 <attribute name="familyDescription" type="wstring" readonly="yes">
8632 <desc>Human readable description of the guest OS family.</desc>
8633 </attribute>
8634
8635 <attribute name="id" type="wstring" readonly="yes">
8636 <desc>Guest OS identifier string.</desc>
8637 </attribute>
8638
8639 <attribute name="description" type="wstring" readonly="yes">
8640 <desc>Human readable description of the guest OS.</desc>
8641 </attribute>
8642
8643 <attribute name="is64Bit" type="boolean" readonly="yes">
8644 <desc>Returns @c true if the given OS is 64-bit</desc>
8645 </attribute>
8646
8647 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8648 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8649 </attribute>
8650
8651 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8652 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8653 </attribute>
8654
8655 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8656 <desc>Recommended RAM size in Megabytes.</desc>
8657 </attribute>
8658
8659 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8660 <desc>Recommended video RAM size in Megabytes.</desc>
8661 </attribute>
8662
8663 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8664 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8665 </attribute>
8666
8667 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8668 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8669 </attribute>
8670
8671 <attribute name="recommendedHDD" type="long long" readonly="yes">
8672 <desc>Recommended hard disk size in bytes.</desc>
8673 </attribute>
8674
8675 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8676 <desc>Returns recommended network adapter for this OS type.</desc>
8677 </attribute>
8678
8679 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8680 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8681 </attribute>
8682
8683 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8684 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8685 </attribute>
8686
8687 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8688 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8689 </attribute>
8690
8691 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8692 <desc>Recommended storage controller type for HD drives.</desc>
8693 </attribute>
8694
8695 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8696 <desc>Recommended storage bus type for HD drives.</desc>
8697 </attribute>
8698
8699 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8700 <desc>Recommended firmware type.</desc>
8701 </attribute>
8702
8703 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8704 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8705 </attribute>
8706
8707 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8708 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8709 </attribute>
8710
8711 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8712 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8713 </attribute>
8714
8715 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8716 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8717 </attribute>
8718
8719 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8720 <desc>Recommended chipset type.</desc>
8721 </attribute>
8722
8723 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8724 <desc>Recommended audio type.</desc>
8725 </attribute>
8726
8727 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8728 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8729 </attribute>
8730
8731 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8732 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8733 </attribute>
8734
8735 </interface>
8736
8737 <enum
8738 name="AdditionsFacilityType"
8739 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8740 >
8741 <desc>
8742 Guest Additions facility IDs.
8743 </desc>
8744
8745 <const name="None" value="0">
8746 <desc>No/invalid facility.</desc>
8747 </const>
8748 <const name="VBoxGuestDriver" value="20">
8749 <desc>VirtualBox base driver (VBoxGuest).</desc>
8750 </const>
8751 <const name="AutoLogon" value="90">
8752 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8753 </const>
8754 <const name="VBoxService" value="100">
8755 <desc>VirtualBox system service (VBoxService).</desc>
8756 </const>
8757 <const name="VBoxTrayClient" value="101">
8758 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8759 </const>
8760 <const name="Seamless" value="1000">
8761 <desc>Seamless guest desktop integration.</desc>
8762 </const>
8763 <const name="Graphics" value="1100">
8764 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8765 are not immediately acted on and guest display resizes are probably not initiated by
8766 the guest additions.
8767 </desc>
8768 </const>
8769 <const name="All" value="2147483646">
8770 <desc>All facilities selected.</desc>
8771 </const>
8772 </enum>
8773
8774 <enum
8775 name="AdditionsFacilityClass"
8776 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8777 >
8778 <desc>
8779 Guest Additions facility classes.
8780 </desc>
8781
8782 <const name="None" value="0">
8783 <desc>No/invalid class.</desc>
8784 </const>
8785 <const name="Driver" value="10">
8786 <desc>Driver.</desc>
8787 </const>
8788 <const name="Service" value="30">
8789 <desc>System service.</desc>
8790 </const>
8791 <const name="Program" value="50">
8792 <desc>Program.</desc>
8793 </const>
8794 <const name="Feature" value="100">
8795 <desc>Feature.</desc>
8796 </const>
8797 <const name="ThirdParty" value="999">
8798 <desc>Third party.</desc>
8799 </const>
8800 <const name="All" value="2147483646">
8801 <desc>All facility classes selected.</desc>
8802 </const>
8803 </enum>
8804
8805 <enum
8806 name="AdditionsFacilityStatus"
8807 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8808 >
8809 <desc>
8810 Guest Additions facility states.
8811 </desc>
8812
8813 <const name="Inactive" value="0">
8814 <desc>Facility is not active.</desc>
8815 </const>
8816 <const name="Paused" value="1">
8817 <desc>Facility has been paused.</desc>
8818 </const>
8819 <const name="PreInit" value="20">
8820 <desc>Facility is preparing to initialize.</desc>
8821 </const>
8822 <const name="Init" value="30">
8823 <desc>Facility is initializing.</desc>
8824 </const>
8825 <const name="Active" value="50">
8826 <desc>Facility is up and running.</desc>
8827 </const>
8828 <const name="Terminating" value="100">
8829 <desc>Facility is shutting down.</desc>
8830 </const>
8831 <const name="Terminated" value="101">
8832 <desc>Facility successfully shut down.</desc>
8833 </const>
8834 <const name="Failed" value="800">
8835 <desc>Facility failed to start.</desc>
8836 </const>
8837 <const name="Unknown" value="999">
8838 <desc>Facility status is unknown.</desc>
8839 </const>
8840 </enum>
8841
8842 <interface
8843 name="IAdditionsFacility" extends="$unknown"
8844 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8845 wsmap="struct"
8846 >
8847 <desc>
8848 Structure representing a Guest Additions facility.
8849 </desc>
8850
8851 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8852 <desc>The class this facility is part of.</desc>
8853 </attribute>
8854
8855 <attribute name="lastUpdated" type="long long" readonly="yes">
8856 <desc>
8857 Time stamp of the last status update,
8858 in milliseconds since 1970-01-01 UTC.
8859 </desc>
8860 </attribute>
8861
8862 <attribute name="name" type="wstring" readonly="yes">
8863 <desc>The facility's friendly name.</desc>
8864 </attribute>
8865
8866 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8867 <desc>The current status.</desc>
8868 </attribute>
8869
8870 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8871 <desc>The facility's type ID.</desc>
8872 </attribute>
8873 </interface>
8874
8875 <enum
8876 name="AdditionsRunLevelType"
8877 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8878 >
8879 <desc>
8880 Guest Additions run level type.
8881 </desc>
8882
8883 <const name="None" value="0">
8884 <desc>Guest Additions are not loaded.</desc>
8885 </const>
8886 <const name="System" value="1">
8887 <desc>Guest drivers are loaded.</desc>
8888 </const>
8889 <const name="Userland" value="2">
8890 <desc>Common components (such as application services) are loaded.</desc>
8891 </const>
8892 <const name="Desktop" value="3">
8893 <desc>Per-user desktop components are loaded.</desc>
8894 </const>
8895 </enum>
8896
8897 <enum
8898 name="AdditionsUpdateFlag"
8899 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8900 >
8901 <desc>
8902 Guest Additions update flags.
8903 </desc>
8904
8905 <const name="None" value="0">
8906 <desc>No flag set.</desc>
8907 </const>
8908 <const name="WaitForUpdateStartOnly" value="1">
8909 <desc>Only wait for the update process being started and do not
8910 wait while peforming the actual update.</desc>
8911 </const>
8912 </enum>
8913
8914 <enum
8915 name="FileSeekType"
8916 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
8917 >
8918 <desc>
8919 File seeking types.
8920 </desc>
8921
8922 <const name="Set" value="0">
8923 <desc>Seek from the start of the file.</desc>
8924 </const>
8925 <const name="Current" value="1">
8926 <desc>Seek from the current file position.</desc>
8927 </const>
8928 </enum>
8929
8930 <enum
8931 name="ProcessInputFlag"
8932 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8933 >
8934 <desc>
8935 Guest process input flags.
8936 </desc>
8937 <const name="None" value="0">
8938 <desc>No flag set.</desc>
8939 </const>
8940 <const name="EndOfFile" value="1">
8941 <desc>End of file (input) reached.</desc>
8942 </const>
8943 </enum>
8944
8945 <enum
8946 name="ProcessOutputFlag"
8947 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
8948 >
8949 <desc>
8950 Guest process output flags for specifying which
8951 type of output to retrieve.
8952 </desc>
8953 <const name="None" value="0">
8954 <desc>No flags set. Get output from stdout.</desc>
8955 </const>
8956 <const name="StdErr" value="1">
8957 <desc>Get output from stderr.</desc>
8958 </const>
8959 </enum>
8960
8961 <enum
8962 name="ProcessWaitForFlag"
8963 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
8964 >
8965 <desc>
8966 Process waiting flags. Multiple flags can be combined.
8967 </desc>
8968
8969 <const name="None" value="0">
8970 <desc>No waiting flags specified. Do not use this.</desc>
8971 </const>
8972 <const name="Start" value="1">
8973 <desc>Wait for the process being started.</desc>
8974 </const>
8975 <const name="Terminate" value="2">
8976 <desc>Wait for the process being terminated.</desc>
8977 </const>
8978 <const name="StdIn" value="4">
8979 <desc>Wait for stdin becoming available.</desc>
8980 </const>
8981 <const name="StdOut" value="8">
8982 <desc>Wait for data becoming available on stdout.</desc>
8983 </const>
8984 <const name="StdErr" value="16">
8985 <desc>Wait for data becoming available on stderr.</desc>
8986 </const>
8987 </enum>
8988
8989 <enum
8990 name="ProcessWaitResult"
8991 uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
8992 >
8993 <desc>
8994 Process waiting results. Depending on the process waiting flags (for
8995 more information see <link to="ProcessWaitForFlag"/>) the waiting result
8996 can vary based on the processes' current status.
8997
8998 To wait for a gust process to terminate after it has been
8999 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9000 one would specify ProcessWaitResult_Terminate.
9001
9002 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9003 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9004 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9005 ProcessWaitResult_StdErr.
9006 </desc>
9007
9008 <const name="None" value="0">
9009 <desc>No result was returned. Not being used.</desc>
9010 </const>
9011 <const name="Start" value="1">
9012 <desc>The process has been started.</desc>
9013 </const>
9014 <const name="Terminate" value="2">
9015 <desc>The process has been terminated.</desc>
9016 </const>
9017 <const name="Status" value="3">
9018 <desc>
9019 The process has changed its status. The status then can
9020 be retrieved via <link to="IProcess::status"/>.
9021 </desc>
9022 </const>
9023 <const name="Error" value="4">
9024 <desc>Error while executing the process.</desc>
9025 </const>
9026 <const name="Timeout" value="5">
9027 <desc>
9028 The waiting operation timed out. This also will happen
9029 when no event has been occured matching the specified the
9030 current waiting flags in the <link to="IProcess::waitFor"/> call.
9031 </desc>
9032 </const>
9033 <const name="StdIn" value="6">
9034 <desc>
9035 The process signalled that stdin became available for writing
9036 and that the process awaits input now.</desc>
9037 </const>
9038 <const name="StdOut" value="7">
9039 <desc>Data on stdout became available for reading.</desc>
9040 </const>
9041 <const name="StdErr" value="8">
9042 <desc>Data on stderr became available for reading.</desc>
9043 </const>
9044 <const name="WaitFlagNotSupported" value="9">
9045 <desc>
9046 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9047 is not supported by the guest.
9048 </desc>
9049 </const>
9050 </enum>
9051
9052 <enum
9053 name="CopyFileFlag"
9054 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9055 >
9056 <desc>
9057 File copying flags.
9058 </desc>
9059 <const name="None" value="0">
9060 <desc>No flag set.</desc>
9061 </const>
9062 <const name="Recursive" value="1">
9063 <desc>Copy directories recursively.</desc>
9064 </const>
9065 <const name="Update" value="2">
9066 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9067 </const>
9068 <const name="FollowLinks" value="4">
9069 <desc>Follow symbolic links.</desc>
9070 </const>
9071 </enum>
9072
9073 <enum
9074 name="DirectoryCreateFlag"
9075 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9076 >
9077 <desc>
9078 Directory creation flags.
9079 </desc>
9080 <const name="None" value="0">
9081 <desc>No flag set.</desc>
9082 </const>
9083 <const name="Parents" value="1">
9084 <desc>No error if existing, make parent directories as needed.</desc>
9085 </const>
9086 </enum>
9087
9088 <enum
9089 name="DirectoryRemoveRecFlag"
9090 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9091 >
9092 <desc>
9093 Directory recursive removement flags.
9094 </desc>
9095
9096 <const name="None" value="0">
9097 <desc>No flag set.</desc>
9098 </const>
9099 <const name="ContentAndDir" value="1">
9100 <desc>Delete the content of the directory and the directory itself.</desc>
9101 </const>
9102 <const name="ContentOnly" value="2">
9103 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9104 </const>
9105 </enum>
9106
9107 <enum
9108 name="PathRenameFlag"
9109 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9110 >
9111 <desc>
9112 Path renaming flags.
9113 </desc>
9114
9115 <const name="None" value="0">
9116 <desc>No flag set.</desc>
9117 </const>
9118 <const name="NoReplace" value="1">
9119 <desc>Do not replace anything.</desc>
9120 </const>
9121 <const name="Replace" value="2">
9122 <desc>This will replace attempt any target which isn't a directory.</desc>
9123 </const>
9124 <const name="NoSymlinks" value="4">
9125 <desc>Don't allow symbolic links as part of the path.</desc>
9126 </const>
9127 </enum>
9128
9129 <enum
9130 name="ProcessCreateFlag"
9131 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9132 >
9133 <desc>
9134 Guest process execution flags.
9135 </desc>
9136
9137 <const name="None" value="0">
9138 <desc>No flag set.</desc>
9139 </const>
9140 <const name="WaitForProcessStartOnly" value="1">
9141 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9142 process itself then uses an infinite timeout.</desc>
9143 </const>
9144 <const name="IgnoreOrphanedProcesses" value="2">
9145 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9146 </const>
9147 <const name="Hidden" value="4">
9148 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9149 </const>
9150 <const name="NoProfile" value="8">
9151 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9152 </const>
9153 <const name="WaitForStdOut" value="16">
9154 <desc>The guest process waits until all data from stdout is read out.</desc>
9155 </const>
9156 <const name="WaitForStdErr" value="32">
9157 <desc>The guest process waits until all data from stderr is read out.</desc>
9158 </const>
9159 <const name="ExpandArguments" value="64">
9160 <desc>Expands environment variables in process arguments.</desc>
9161 </const>
9162 </enum>
9163
9164 <enum
9165 name="ProcessPriority"
9166 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9167 >
9168 <desc>
9169 Process priorities.
9170 </desc>
9171
9172 <const name="Invalid" value="0">
9173 <desc>Invalid priority, do not use.</desc>
9174 </const>
9175 <const name="Default" value="1">
9176 <desc>Default process priority determined by the OS.</desc>
9177 </const>
9178 </enum>
9179
9180 <enum
9181 name="SymlinkType"
9182 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9183 >
9184 <desc>
9185 Symbolic link types.
9186 </desc>
9187
9188 <const name="Unknown" value="0">
9189 <desc>It is not known what is being targeted.</desc>
9190 </const>
9191 <const name="Directory" value="1">
9192 <desc>The link targets a directory.</desc>
9193 </const>
9194 <const name="File" value="2">
9195 <desc>The link targets a file (or whatever else).</desc>
9196 </const>
9197 </enum>
9198
9199 <enum
9200 name="SymlinkReadFlag"
9201 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9202 >
9203 <desc>
9204 Symbolic link reading flags.
9205 </desc>
9206
9207 <const name="None" value="0">
9208 <desc>No flags set.</desc>
9209 </const>
9210 <const name="NoSymlinks" value="1">
9211 <desc>Don't allow symbolic links as part of the path.</desc>
9212 </const>
9213 </enum>
9214
9215 <enum
9216 name="ProcessStatus"
9217 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9218 >
9219 <desc>
9220 Process execution statuses.
9221 </desc>
9222 <const name="Undefined" value="0">
9223 <desc>Process is in an undefined state.</desc>
9224 </const>
9225
9226 <const name="Starting" value="10">
9227 <desc>Process is being started.</desc>
9228 </const>
9229 <const name="Started" value="100">
9230 <desc>Process has been started.</desc>
9231 </const>
9232 <const name="Paused" value="110">
9233 <desc>Process has been paused.</desc>
9234 </const>
9235 <const name="Terminating" value="480">
9236 <desc>Process is being terminated.</desc>
9237 </const>
9238 <const name="TerminatedNormally" value="500">
9239 <desc>Process terminated normally.</desc>
9240 </const>
9241 <const name="TerminatedSignal" value="510">
9242 <desc>Process terminated via signal.</desc>
9243 </const>
9244 <const name="TerminatedAbnormally" value="511">
9245 <desc>Process terminated abnormally.</desc>
9246 </const>
9247 <const name="TimedOutKilled" value="512">
9248 <desc>Process timed out and was killed.</desc>
9249 </const>
9250 <const name="TimedOutAbnormally" value="513">
9251 <desc>Process timed out and was not killed successfully.</desc>
9252 </const>
9253 <const name="Down" value="600">
9254 <desc>Service/OS is stopping, process was killed.</desc>
9255 </const>
9256 <const name="Error" value="800">
9257 <desc>Something went wrong.</desc>
9258 </const>
9259 </enum>
9260
9261 <enum
9262 name="FsObjType"
9263 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9264 >
9265 <desc>
9266 File system object type.
9267 </desc>
9268
9269 <const name="Undefined" value="0">
9270 <desc>Type is undefined / unknown.</desc>
9271 </const>
9272 <const name="FIFO" value="1">
9273 <desc>Named pipe.</desc>
9274 </const>
9275 <const name="DevChar" value="10">
9276 <desc>Character device.</desc>
9277 </const>
9278 <const name="DevBlock" value="11">
9279 <desc>Block device.</desc>
9280 </const>
9281 <const name="Directory" value="50">
9282 <desc>Directory.</desc>
9283 </const>
9284 <const name="File" value="80">
9285 <desc>File.</desc>
9286 </const>
9287 <const name="Symlink" value="100">
9288 <desc>Symlink.</desc>
9289 </const>
9290 <const name="Socket" value="200">
9291 <desc>Socket.</desc>
9292 </const>
9293 <const name="Whiteout" value="400">
9294 <desc>Whiteout.</desc>
9295 </const>
9296 </enum>
9297
9298 <enum
9299 name="DragAndDropAction"
9300 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9301 >
9302 <desc>
9303 Possible actions within an Drag and Drop operation.
9304 </desc>
9305
9306 <const name="Ignore" value="0">
9307 <desc>Do nothing.</desc>
9308 </const>
9309
9310 <const name="Copy" value="1">
9311 <desc>Copy the item to the target.</desc>
9312 </const>
9313
9314 <const name="Move" value="2">
9315 <desc>Move the item to the target.</desc>
9316 </const>
9317
9318 <const name="Link" value="3">
9319 <desc>Link the item from within the target.</desc>
9320 </const>
9321 </enum>
9322
9323 <enum
9324 name="DirectoryOpenFlag"
9325 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9326 >
9327 <desc>
9328 Directory open flags.
9329 </desc>
9330 <const name="None" value="0">
9331 <desc>No flag set.</desc>
9332 </const>
9333 <const name="NoSymlinks" value="1">
9334 <desc>Don't allow symbolic links as part of the path.</desc>
9335 </const>
9336 </enum>
9337
9338 <interface
9339 name="IGuestSession" extends="$unknown"
9340 uuid="57eb82a8-822b-42c1-9d1c-5c54bc3d3250"
9341 wsmap="managed"
9342 >
9343 <desc>
9344 A guest session represents one impersonated user account on the guest, so
9345 every operation will use the same credentials specified when creating
9346 the session object via <link to="IGuest::createSession"/>.
9347
9348 There can be a maximum of 32 sessions at once per VM. Each session keeps
9349 track of its started guest processes, opened guest files or guest directories.
9350 To work on guest files or directories a guest session offers methods to open
9351 or create such objects (see <link to="IGuestSession::fileOpen"/> or
9352 <link to="IGuestSession::directoryOpen"/> for example).
9353
9354 When done with either of these objects, including the guest session itself,
9355 use the appropriate close() method to let the object do its cleanup work.
9356
9357 Every guest session has its own environment variable block which gets
9358 automatically applied when starting a new guest process via
9359 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
9360 To override (or unset) certain environment variables already set by the
9361 guest session, one can specify a per-process environment block when using
9362 one of the both above mentioned process creation calls.
9363 </desc>
9364
9365 <attribute name="user" type="wstring" readonly="yes">
9366 <desc>Returns the user name used by this session to impersonate
9367 users on the guest.
9368 </desc>
9369 </attribute>
9370
9371 <attribute name="domain" type="wstring" readonly="yes">
9372 <desc>Returns the domain name used by this session to impersonate
9373 users on the guest.
9374 </desc>
9375 </attribute>
9376
9377 <attribute name="name" type="wstring" readonly="yes">
9378 <desc>Returns the session's friendly name.</desc>
9379 </attribute>
9380
9381 <attribute name="id" type="unsigned long" readonly="yes">
9382 <desc>Returns the internal session ID.</desc>
9383 </attribute>
9384
9385 <attribute name="timeout" type="unsigned long" readonly="no">
9386 <desc>
9387 Returns the session timeout (in ms).
9388 <result name="E_NOTIMPL">
9389 The method is not implemented yet.
9390 </result>
9391 </desc>
9392 </attribute>
9393
9394 <attribute name="environment" type="wstring" safearray="yes">
9395 <desc>
9396 Returns the current session environment.
9397 </desc>
9398 </attribute>
9399
9400 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9401 <desc>
9402 Returns all current guest processes.
9403 </desc>
9404 </attribute>
9405
9406 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9407 <desc>
9408 Returns all currently opened guest directories.
9409 </desc>
9410 </attribute>
9411
9412 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9413 <desc>
9414 Returns all currently opened guest files.
9415 </desc>
9416 </attribute>
9417
9418 <method name="close">
9419 <desc>
9420 Closes this session. All opened guest directories, files and
9421 processes which are not referenced by clients anymore will be
9422 uninitialized.
9423 </desc>
9424 </method>
9425
9426 <method name="copyFrom">
9427 <desc>
9428 Copies a file from guest to the host.
9429
9430 <result name="VBOX_E_IPRT_ERROR">
9431 Error starting the copy operation.
9432 </result>
9433 </desc>
9434 <param name="source" type="wstring" dir="in">
9435 <desc>Source file on the guest to copy to the host.</desc>
9436 </param>
9437 <param name="dest" type="wstring" dir="in">
9438 <desc>Destination file name on the host.</desc>
9439 </param>
9440 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9441 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9442 </param>
9443 <param name="progress" type="IProgress" dir="return">
9444 <desc>Progress object to track the operation completion.</desc>
9445 </param>
9446 </method>
9447
9448 <method name="copyTo">
9449 <desc>
9450 Copies a file from host to the guest.
9451
9452 <result name="VBOX_E_IPRT_ERROR">
9453 Error starting the copy operation.
9454 </result>
9455 </desc>
9456 <param name="source" type="wstring" dir="in">
9457 <desc>Source file on the host to copy to the guest.</desc>
9458 </param>
9459 <param name="dest" type="wstring" dir="in">
9460 <desc>Destination file name on the guest.</desc>
9461 </param>
9462 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9463 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9464 </param>
9465 <param name="progress" type="IProgress" dir="return">
9466 <desc>Progress object to track the operation completion.</desc>
9467 </param>
9468 </method>
9469
9470 <method name="directoryCreate">
9471 <desc>
9472 Create a directory on the guest.
9473
9474 <result name="VBOX_E_IPRT_ERROR">
9475 Error while creating the directory.
9476 </result>
9477 </desc>
9478 <param name="path" type="wstring" dir="in">
9479 <desc>Full path of directory to create.</desc>
9480 </param>
9481 <param name="mode" type="unsigned long" dir="in">
9482 <desc>File creation mode.</desc>
9483 </param>
9484 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9485 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9486 </param>
9487 </method>
9488
9489 <method name="directoryCreateTemp">
9490 <desc>
9491 Create a temporary directory on the guest.
9492
9493 <result name="VBOX_E_NOT_SUPPORTED">
9494 The operation is not possible as requested on this particular
9495 guest type.
9496 </result>
9497 <result name="E_INVALIDARG">
9498 Invalid argument. This includes an incorrectly formatted template,
9499 or a non-absolute path.
9500 </result>
9501 <result name="VBOX_E_IPRT_ERROR">
9502 The temporary directory could not be created. Possible reasons
9503 include a non-existing path or an insecure path when the secure
9504 option was requested.
9505 </result>
9506 </desc>
9507 <param name="templateName" type="wstring" dir="in">
9508 <desc>Template for the name of the directory to create. This must
9509 contain at least one 'X' character. The first group of consecutive
9510 'X' characters in the template will be replaced by a random
9511 alphanumeric string to produce a unique name.</desc>
9512 </param>
9513 <param name="mode" type="unsigned long" dir="in">
9514 <desc>The mode of the directory to create. Use 0700 unless there are
9515 reasons not to. This parameter is ignored if "secure" is specified.
9516 </desc>
9517 </param>
9518 <param name="path" type="wstring" dir="in">
9519 <desc>The absolute path to create the temporary directory in.</desc>
9520 </param>
9521 <param name="secure" type="boolean" dir="in">
9522 <desc>Whether to fail if the directory can not be securely created.
9523 Currently this means that another unprivileged user cannot
9524 manipulate the path specified or remove the temporary directory
9525 after it has been created. Also causes the mode specified to be
9526 ignored. May not be supported on all guest types.</desc>
9527 </param>
9528 <param name="directory" type="wstring" dir="return">
9529 <desc>On success this will contain the name of the directory created
9530 with full path.</desc>
9531 </param>
9532 </method>
9533
9534 <method name="directoryExists">
9535 <desc>
9536 Checks whether a directory exists on the guest or not.
9537
9538 <result name="VBOX_E_IPRT_ERROR">
9539 Error while checking existence of the directory specified.
9540 </result>
9541 </desc>
9542 <param name="path" type="wstring" dir="in">
9543 <desc>Directory to check existence for.</desc>
9544 </param>
9545 <param name="exists" type="boolean" dir="return">
9546 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9547 </param>
9548 </method>
9549
9550 <method name="directoryOpen">
9551 <desc>
9552 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9553 can be used for further operations.
9554
9555 <result name="VBOX_E_OBJECT_NOT_FOUND">
9556 Directory to open was not found.
9557 </result>
9558 <result name="VBOX_E_IPRT_ERROR">
9559 Error while opening the directory.
9560 </result>
9561 </desc>
9562 <param name="path" type="wstring" dir="in">
9563 <desc>Full path to file to open.</desc>
9564 </param>
9565 <param name="filter" type="wstring" dir="in">
9566 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
9567 </param>
9568 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9569 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
9570 </param>
9571 <param name="directory" type="IGuestDirectory" dir="return">
9572 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
9573 </param>
9574 </method>
9575
9576 <method name="directoryQueryInfo">
9577 <desc>
9578 Queries information of a directory on the guest.
9579
9580 <result name="VBOX_E_OBJECT_NOT_FOUND">
9581 Directory to query information for was not found.
9582 </result>
9583 <result name="VBOX_E_IPRT_ERROR">
9584 Error querying information.
9585 </result>
9586 </desc>
9587 <param name="path" type="wstring" dir="in">
9588 <desc>Directory to query information for.</desc>
9589 </param>
9590 <param name="info" type="IGuestFsObjInfo" dir="return">
9591 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9592 </param>
9593 </method>
9594
9595 <method name="directoryRemove">
9596 <desc>
9597 Removes a guest directory if not empty.
9598
9599 <result name="E_NOTIMPL">
9600 The method is not implemented yet.
9601 </result>
9602 </desc>
9603 <param name="path" type="wstring" dir="in">
9604 <desc>Full path of directory to remove.</desc>
9605 </param>
9606 </method>
9607
9608 <method name="directoryRemoveRecursive">
9609 <desc>
9610 Removes a guest directory recursively.
9611
9612 <result name="E_NOTIMPL">
9613 The method is not implemented yet.
9614 </result>
9615 </desc>
9616 <param name="path" type="wstring" dir="in">
9617 <desc>Full path of directory to remove recursively.</desc>
9618 </param>
9619 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
9620 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
9621 </param>
9622 <param name="progress" type="IProgress" dir="return">
9623 <desc>Progress object to track the operation completion.</desc>
9624 </param>
9625 </method>
9626
9627 <method name="directoryRename">
9628 <desc>
9629 Renames a directory on the guest.
9630
9631 <result name="E_NOTIMPL">
9632 The method is not implemented yet.
9633 </result>
9634 </desc>
9635 <param name="source" type="wstring" dir="in">
9636 <desc>Source directory to rename.</desc>
9637 </param>
9638 <param name="dest" type="wstring" dir="in">
9639 <desc>Destination directory to rename the source to.</desc>
9640 </param>
9641 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9642 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9643 </param>
9644 </method>
9645
9646 <method name="directorySetACL">
9647 <desc>
9648 Sets the ACL (Access Control List) of a guest directory.
9649
9650 <result name="E_NOTIMPL">
9651 The method is not implemented yet.
9652 </result>
9653 </desc>
9654 <param name="path" type="wstring" dir="in">
9655 <desc>Full path of directory to set the ACL for.</desc>
9656 </param>
9657 <param name="acl" type="wstring" dir="in">
9658 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9659 </param>
9660 </method>
9661
9662 <method name="environmentClear">
9663 <desc>
9664 Clears (deletes) all session environment variables.
9665
9666 <result name="VBOX_E_IPRT_ERROR">
9667 Error while clearing the session environment variables.
9668 </result>
9669 </desc>
9670 </method>
9671
9672 <method name="environmentGet">
9673 <desc>
9674 Gets the value of a session environment variable.
9675
9676 <result name="VBOX_E_IPRT_ERROR">
9677 Error while getting the value of the session environment variable.
9678 </result>
9679 </desc>
9680 <param name="name" type="wstring" dir="in">
9681 <desc>Name of session environment variable to get the value for.</desc>
9682 </param>
9683 <param name="value" type="wstring" dir="return">
9684 <desc>
9685 Value of the session environment variable specified. If this variable
9686 does not exist and empty value will be returned.
9687 </desc>
9688 </param>
9689 </method>
9690
9691 <method name="environmentSet">
9692 <desc>
9693 Sets a session environment variable.
9694
9695 <result name="VBOX_E_IPRT_ERROR">
9696 Error while setting the session environment variable.
9697 </result>
9698 </desc>
9699 <param name="name" type="wstring" dir="in">
9700 <desc>Name of session environment variable to set.</desc>
9701 </param>
9702 <param name="value" type="wstring" dir="in">
9703 <desc>Value to set the session environment variable to.</desc>
9704 </param>
9705 </method>
9706
9707 <method name="environmentUnset">
9708 <desc>
9709 Unsets session environment variable.
9710
9711 <result name="VBOX_E_IPRT_ERROR">
9712 Error while unsetting the session environment variable.
9713 </result>
9714 </desc>
9715 <param name="name" type="wstring" dir="in">
9716 <desc>Name of session environment variable to unset (clear).</desc>
9717 </param>
9718 </method>
9719
9720 <method name="fileCreateTemp">
9721 <desc>
9722 Creates a temporary file on the guest.
9723
9724 <result name="VBOX_E_NOT_SUPPORTED">
9725 The operation is not possible as requested on this particular
9726 guest type.
9727 </result>
9728 <result name="E_INVALIDARG">
9729 Invalid argument. This includes an incorrectly formatted template,
9730 or a non-absolute path.
9731 </result>
9732 <result name="VBOX_E_IPRT_ERROR">
9733 The temporary file could not be created. Possible reasons include
9734 a non-existing path or an insecure path when the secure
9735 option was requested.
9736 </result>
9737 </desc>
9738 <param name="templateName" type="wstring" dir="in">
9739 <desc>Template for the name of the file to create. This must contain
9740 at least one 'X' character. The first group of consecutive 'X'
9741 characters in the template will be replaced by a random
9742 alphanumeric string to produce a unique name.
9743 </desc>
9744 </param>
9745 <param name="mode" type="unsigned long" dir="in">
9746 <desc>The mode of the file to create. Use 0700 unless there are
9747 reasons not to. This parameter is ignored if "secure" is specified.
9748 </desc>
9749 </param>
9750 <param name="path" type="wstring" dir="in">
9751 <desc>The absolute path to create the temporary file in.</desc>
9752 </param>
9753 <param name="secure" type="boolean" dir="in">
9754 <desc>Whether to fail if the file can not be securely created.
9755 Currently this means that another unprivileged user cannot
9756 manipulate the path specified or remove the temporary file after
9757 it has been created. Also causes the mode specified to be ignored.
9758 May not be supported on all guest types.</desc>
9759 </param>
9760 <param name="file" type="IGuestFile" dir="return">
9761 <desc>On success this will contain an open file object for the new
9762 temporary file.
9763 </desc>
9764 </param>
9765 </method>
9766
9767 <method name="fileExists">
9768 <desc>
9769 Checks whether a file exists on the guest or not.
9770
9771 <result name="VBOX_E_IPRT_ERROR">
9772 Error while checking existence of the file specified.
9773 </result>
9774 </desc>
9775 <param name="path" type="wstring" dir="in">
9776 <desc>File to check existence for.</desc>
9777 </param>
9778 <param name="exists" type="boolean" dir="return">
9779 <desc>Returns @c true if the file exists, @c false if not.</desc>
9780 </param>
9781 </method>
9782
9783 <method name="fileRemove">
9784 <desc>
9785 Removes a single file on the guest.
9786
9787 <result name="VBOX_E_OBJECT_NOT_FOUND">
9788 File to remove was not found.
9789 </result>
9790 <result name="VBOX_E_IPRT_ERROR">
9791 Error while removing the file.
9792 </result>
9793 </desc>
9794 <param name="path" type="wstring" dir="in">
9795 <desc>Path to the file to remove.</desc>
9796 </param>
9797 </method>
9798
9799 <method name="fileOpen">
9800 <desc>
9801 Opens a file and creates a <link to="IGuestFile"/> object that
9802 can be used for further operations.
9803
9804 <result name="VBOX_E_OBJECT_NOT_FOUND">
9805 File to open was not found.
9806 </result>
9807 <result name="VBOX_E_IPRT_ERROR">
9808 Error while opening the file.
9809 </result>
9810 </desc>
9811 <param name="path" type="wstring" dir="in">
9812 <desc>Full path to file to open.</desc>
9813 </param>
9814 <param name="openMode" type="wstring" dir="in">
9815 <desc>The file open mode.</desc>
9816 </param>
9817 <param name="disposition" type="wstring" dir="in">
9818 <desc>The file disposition.</desc>
9819 </param>
9820 <param name="creationMode" type="unsigned long" dir="in">
9821 <desc>The file creation mode.</desc>
9822 </param>
9823 <param name="offset" type="long long" dir="in">
9824 <desc>The initial read/write offset.</desc>
9825 </param>
9826 <param name="file" type="IGuestFile" dir="return">
9827 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
9828 </param>
9829 </method>
9830
9831 <method name="fileQueryInfo">
9832 <desc>
9833 Queries information of a file on the guest.
9834
9835 <result name="VBOX_E_OBJECT_NOT_FOUND">
9836 File to query information for was not found.
9837 </result>
9838 <result name="VBOX_E_IPRT_ERROR">
9839 Error querying information.
9840 </result>
9841 </desc>
9842 <param name="path" type="wstring" dir="in">
9843 <desc>File to query information for.</desc>
9844 </param>
9845 <param name="info" type="IGuestFsObjInfo" dir="return">
9846 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9847 </param>
9848 </method>
9849
9850 <method name="fileQuerySize">
9851 <desc>
9852 Queries the size of a file on the guest.
9853
9854 <result name="VBOX_E_OBJECT_NOT_FOUND">
9855 File to rename was not found.
9856 </result>
9857 <result name="VBOX_E_IPRT_ERROR">
9858 Error querying file size.
9859 </result>
9860 </desc>
9861 <param name="path" type="wstring" dir="in">
9862 <desc>File to query the size for.</desc>
9863 </param>
9864 <param name="size" type="long long" dir="return">
9865 <desc>Queried file size.</desc>
9866 </param>
9867 </method>
9868
9869 <method name="fileRename">
9870 <desc>
9871 Renames a file on the guest.
9872
9873 <result name="E_NOTIMPL">
9874 The method is not implemented yet.
9875 </result>
9876 </desc>
9877 <param name="source" type="wstring" dir="in">
9878 <desc>Source file to rename.</desc>
9879 </param>
9880 <param name="dest" type="wstring" dir="in">
9881 <desc>Destination file to rename the source to.</desc>
9882 </param>
9883 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9884 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9885 </param>
9886 </method>
9887
9888 <method name="fileSetACL">
9889 <desc>
9890 Sets the ACL (Access Control List) of a file on the guest.
9891
9892 <result name="E_NOTIMPL">
9893 The method is not implemented yet.
9894 </result>
9895 </desc>
9896 <param name="file" type="wstring" dir="in">
9897 <desc>Full path of file to set the ACL for.</desc>
9898 </param>
9899 <param name="acl" type="wstring" dir="in">
9900 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9901 </param>
9902 </method>
9903
9904 <method name="processCreate">
9905 <desc>
9906 Executes an existing program inside the guest VM.
9907
9908 <note>
9909 Starting at VirtualBox 4.2 guest process execution by default is limited
9910 to serve up to 255 guest processes at a time. If all 255 guest processes
9911 are still active and running, starting a new guest process will result in an
9912 appropriate error message.
9913
9914 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
9915 is / are set, the guest process will not exit until all data from the specified
9916 stream(s) is / are read out.
9917
9918 To raise or lower the guest process execution limit, either the guest property
9919 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
9920 command line by specifying "--control-procs-max-kept" needs to be modified.
9921 A restart of the guest OS is required afterwards. To serve unlimited guest
9922 processes, a value of "0" needs to be set (not recommended).
9923 </note>
9924
9925 <result name="VBOX_E_IPRT_ERROR">
9926 Could not create process.
9927 </result>
9928 </desc>
9929 <param name="command" type="wstring" dir="in">
9930 <desc>
9931 Full path name of the command to execute on the guest; the
9932 commands has to exists in the guest VM in order to be executed.
9933 </desc>
9934 </param>
9935 <param name="arguments" type="wstring" dir="in" safearray="yes">
9936 <desc>Array of arguments passed to the execution command.</desc>
9937 </param>
9938 <param name="environment" type="wstring" dir="in" safearray="yes">
9939 <desc>
9940 Environment variables that can be set while the command is being
9941 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
9942 variable just set its name ("NAME") without a value.
9943
9944 This parameter can be used to override environment variables set by
9945 the guest session, which will be applied to the newly started process
9946 in any case.
9947 </desc>
9948 </param>
9949 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
9950 <desc>
9951 Process creation flags;
9952 see <link to="ProcessCreateFlag"/> for more information.
9953 </desc>
9954 </param>
9955 <param name="timeoutMS" type="unsigned long" dir="in">
9956 <desc>
9957 Timeout (in ms) to wait for the operation to complete.
9958 Pass 0 for an infinite timeout.
9959 </desc>
9960 </param>
9961 <param name="guestProcess" type="IGuestProcess" dir="return">
9962 <desc>Guest process object of the newly created process.</desc>
9963 </param>
9964 </method>
9965
9966 <method name="processCreateEx">
9967 <desc>
9968 Executes an existing program inside the guest VM. Extended version for
9969 also setting the process priority and affinity.
9970
9971 <note>
9972 Starting at VirtualBox 4.2 guest process execution by default is limited
9973 to serve up to 255 guest processes at a time. If all 255 guest processes
9974 are still active and running, starting a new guest process will result in an
9975 appropriate error message.
9976
9977 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
9978 is / are set, the guest process will not exit until all data from the specified
9979 stream(s) is / are read out.
9980
9981 To raise or lower the guest process execution limit, either the guest property
9982 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
9983 command line by specifying "--control-procs-max-kept" needs to be modified.
9984 A restart of the guest OS is required afterwards. To serve unlimited guest
9985 processes, a value of "0" needs to be set (not recommended).
9986 </note>
9987
9988 <result name="VBOX_E_IPRT_ERROR">
9989 Could not create process.
9990 </result>
9991 </desc>
9992 <param name="command" type="wstring" dir="in">
9993 <desc>
9994 Full path name of the command to execute on the guest; the
9995 commands has to exists in the guest VM in order to be executed.
9996 </desc>
9997 </param>
9998 <param name="arguments" type="wstring" dir="in" safearray="yes">
9999 <desc>Array of arguments passed to the execution command.</desc>
10000 </param>
10001 <param name="environment" type="wstring" dir="in" safearray="yes">
10002 <desc>
10003 Environment variables that can be set while the command is being
10004 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10005 variable just set its name ("NAME") without a value.
10006
10007 This parameter can be used to override environment variables set by
10008 the guest session, which will be applied to the newly started process
10009 in any case.
10010 </desc>
10011 </param>
10012 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10013 <desc>
10014 Process creation flags;
10015 see <link to="ProcessCreateFlag"/> for more information.
10016 </desc>
10017 </param>
10018 <param name="timeoutMS" type="unsigned long" dir="in">
10019 <desc>
10020 Timeout (in ms) to wait for the operation to complete.
10021 Pass 0 for an infinite timeout.
10022 </desc>
10023 </param>
10024 <param name="priority" type="ProcessPriority" dir="in">
10025 <desc>
10026 Process priority to use for execution;
10027 see see <link to="ProcessPriority"/> for more information.</desc>
10028 </param>
10029 <param name="affinity" type="long" dir="in" safearray="yes">
10030 <desc>
10031 Process affinity to use for execution. This parameter
10032 is not implemented yet.
10033 </desc>
10034 </param>
10035 <param name="guestProcess" type="IGuestProcess" dir="return">
10036 <desc>Guest process object of the newly created process.</desc>
10037 </param>
10038 </method>
10039
10040 <method name="processGet">
10041 <desc>
10042 Gets a certain guest process by its process ID (PID).
10043 </desc>
10044 <param name="pid" type="unsigned long" dir="in">
10045 <desc>Process ID (PID) to get guest process for.</desc>
10046 </param>
10047 <param name="guestProcess" type="IGuestProcess" dir="return">
10048 <desc>Guest process of specified process ID (PID).</desc>
10049 </param>
10050 </method>
10051
10052 <method name="symlinkCreate">
10053 <desc>
10054 Creates a symbolic link on the guest.
10055
10056 <result name="E_NOTIMPL">
10057 The method is not implemented yet.
10058 </result>
10059 </desc>
10060 <param name="source" type="wstring" dir="in">
10061 <desc>The name of the symbolic link.</desc>
10062 </param>
10063 <param name="target" type="wstring" dir="in">
10064 <desc>The path to the symbolic link target.</desc>
10065 </param>
10066 <param name="type" type="SymlinkType" dir="in">
10067 <desc>
10068 The symbolic link type;
10069 see <link to="SymlinkReadFlag"/> for more information.
10070 </desc>
10071 </param>
10072 </method>
10073
10074 <method name="symlinkExists">
10075 <desc>
10076 Checks whether a symbolic link exists on the guest or not.
10077
10078 <result name="E_NOTIMPL">
10079 The method is not implemented yet.
10080 </result>
10081 </desc>
10082 <param name="symlink" type="wstring" dir="in">
10083 <desc>Symbolic link to check existence for.</desc>
10084 </param>
10085 <param name="exists" type="boolean" dir="return">
10086 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10087 </param>
10088 </method>
10089
10090 <method name="symlinkRead">
10091 <desc>
10092 Reads a symbolic link on the guest.
10093
10094 <result name="E_NOTIMPL">
10095 The method is not implemented yet.
10096 </result>
10097 </desc>
10098 <param name="symlink" type="wstring" dir="in">
10099 <desc>Full path to symbolic link to read.</desc>
10100 </param>
10101 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10102 <desc>
10103 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10104 </desc>
10105 </param>
10106 <param name="target" type="wstring" dir="return">
10107 <desc>
10108 Target of the symbolic link pointing to, if found.
10109 </desc>
10110 </param>
10111 </method>
10112
10113 <method name="symlinkRemoveDirectory">
10114 <desc>
10115 Removes a symbolic link on the guest if it's a directory.
10116
10117 <result name="E_NOTIMPL">
10118 The method is not implemented yet.
10119 </result>
10120 </desc>
10121 <param name="path" type="wstring" dir="in">
10122 <desc>Symbolic link to remove.</desc>
10123 </param>
10124 </method>
10125
10126 <method name="symlinkRemoveFile">
10127 <desc>
10128 Removes a symbolic link on the guest if it's a file.
10129
10130 <result name="E_NOTIMPL">
10131 The method is not implemented yet.
10132 </result>
10133 </desc>
10134 <param name="file" type="wstring" dir="in">
10135 <desc>Symbolic link to remove.</desc>
10136 </param>
10137 </method>
10138
10139 </interface>
10140
10141 <interface
10142 name="IProcess" extends="$unknown"
10143 uuid="08864d56-96ab-418b-adbc-5a679532aeb0"
10144 wsmap="managed"
10145 >
10146 <desc>
10147 Abstract parent interface for processes handled by VirtualBox.
10148 </desc>
10149 <attribute name="PID" type="unsigned long" readonly="yes">
10150 <desc>
10151 The process ID (PID).
10152 </desc>
10153 </attribute>
10154 <attribute name="status" type="ProcessStatus" readonly="yes">
10155 <desc>
10156 The current process status; see <link to="ProcessStatus"/>
10157 for more information.
10158 </desc>
10159 </attribute>
10160 <attribute name="exitCode" type="long" readonly="yes">
10161 <desc>
10162 The exit code. Only available when the process has been
10163 terminated normally.
10164 </desc>
10165 </attribute>
10166 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10167 <desc>
10168 The environment block this process is using during execution.
10169 </desc>
10170 </attribute>
10171 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10172 <desc>
10173 The arguments this process is using for execution.
10174 </desc>
10175 </attribute>
10176 <attribute name="executablePath" type="wstring" readonly="yes">
10177 <desc>Full path of the actual executable image.</desc>
10178 </attribute>
10179 <attribute name="name" type="wstring" readonly="yes">
10180 <desc>The friendly name of this process.</desc>
10181 </attribute>
10182
10183 <method name="waitFor">
10184 <desc>
10185 Waits for one more events to happen.
10186 </desc>
10187 <param name="waitFor" type="unsigned long" dir="in">
10188 <desc>
10189 Specifies what to wait for;
10190 see <link to="ProcessWaitForFlag"/> for more information.
10191 </desc>
10192 </param>
10193 <param name="timeoutMS" type="unsigned long" dir="in">
10194 <desc>
10195 Timeout (in ms) to wait for the operation to complete.
10196 Pass 0 for an infinite timeout.
10197 </desc>
10198 </param>
10199 <param name="reason" type="ProcessWaitResult" dir="return">
10200 <desc>
10201 The overall wait result;
10202 see <link to="ProcessWaitResult"/> for more information.
10203 </desc>
10204 </param>
10205 </method>
10206
10207 <method name="waitForArray">
10208 <desc>
10209 Waits for one more events to happen.
10210 Scriptable version of <link to="#waitFor" />.
10211 </desc>
10212 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10213 <desc>
10214 Specifies what to wait for;
10215 see <link to="ProcessWaitForFlag"/> for more information.
10216 </desc>
10217 </param>
10218 <param name="timeoutMS" type="unsigned long" dir="in">
10219 <desc>
10220 Timeout (in ms) to wait for the operation to complete.
10221 Pass 0 for an infinite timeout.
10222 </desc>
10223 </param>
10224 <param name="reason" type="ProcessWaitResult" dir="return">
10225 <desc>
10226 The overall wait result;
10227 see <link to="ProcessWaitResult"/> for more information.
10228 </desc>
10229 </param>
10230 </method>
10231
10232 <method name="read">
10233 <desc>
10234 Reads data from a running process.
10235 </desc>
10236 <param name="handle" type="unsigned long" dir="in">
10237 <desc>Handle to read from. Usually 0 is stdin.</desc>
10238 </param>
10239 <param name="toRead" type="unsigned long" dir="in">
10240 <desc>Number of bytes to read.</desc>
10241 </param>
10242 <param name="timeoutMS" type="unsigned long" dir="in">
10243 <desc>
10244 Timeout (in ms) to wait for the operation to complete.
10245 Pass 0 for an infinite timeout.
10246 </desc>
10247 </param>
10248 <param name="data" type="octet" dir="return" safearray="yes">
10249 <desc>Array of data read.</desc>
10250 </param>
10251 </method>
10252
10253 <method name="write">
10254 <desc>
10255 Writes data to a running process.
10256 </desc>
10257 <param name="handle" type="unsigned long" dir="in">
10258 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10259 </param>
10260 <param name="flags" type="unsigned long" dir="in">
10261 <desc>
10262 A combination of <link to="ProcessInputFlag"/> flags.
10263 </desc>
10264 </param>
10265 <param name="data" type="octet" dir="in" safearray="yes">
10266 <desc>
10267 Array of bytes to write. The size of the array also specifies
10268 how much to write.
10269 </desc>
10270 </param>
10271 <param name="timeoutMS" type="unsigned long" dir="in">
10272 <desc>
10273 Timeout (in ms) to wait for the operation to complete.
10274 Pass 0 for an infinite timeout.
10275 </desc>
10276 </param>
10277 <param name="written" type="unsigned long" dir="return">
10278 <desc>How much bytes were written.</desc>
10279 </param>
10280 </method>
10281
10282 <method name="writeArray">
10283 <desc>
10284 Writes data to a running process.
10285 Scriptable version of <link to="#write" />.
10286 </desc>
10287 <param name="handle" type="unsigned long" dir="in">
10288 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10289 </param>
10290 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10291 <desc>
10292 A combination of <link to="ProcessInputFlag"/> flags.
10293 </desc>
10294 </param>
10295 <param name="data" type="octet" dir="in" safearray="yes">
10296 <desc>
10297 Array of bytes to write. The size of the array also specifies
10298 how much to write.
10299 </desc>
10300 </param>
10301 <param name="timeoutMS" type="unsigned long" dir="in">
10302 <desc>
10303 Timeout (in ms) to wait for the operation to complete.
10304 Pass 0 for an infinite timeout.
10305 </desc>
10306 </param>
10307 <param name="written" type="unsigned long" dir="return">
10308 <desc>How much bytes were written.</desc>
10309 </param>
10310 </method>
10311
10312 <method name="terminate">
10313 <desc>
10314 Terminates (kills) a running process.
10315 </desc>
10316 </method>
10317 </interface>
10318
10319 <interface
10320 name="IGuestProcess" extends="IProcess"
10321 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10322 wsmap="managed"
10323 >
10324 <desc>
10325 Implementation of the <link to="IProcess" /> object
10326 for processes on the guest.
10327 </desc>
10328 </interface>
10329
10330 <interface
10331 name="IDirectory" extends="$unknown"
10332 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10333 wsmap="managed"
10334 >
10335 <desc>
10336 Abstract parent interface for directories handled by VirtualBox.
10337 </desc>
10338
10339 <attribute name="directoryName" type="wstring" readonly="yes">
10340 <desc>
10341 Full path of directory.
10342 </desc>
10343 </attribute>
10344
10345 <attribute name="filter" type="wstring" readonly="yes">
10346 <desc>
10347 The open filter.
10348 </desc>
10349 </attribute>
10350
10351 <method name="close">
10352 <desc>
10353 Closes this directory. After closing operations like reading the next
10354 directory entry will not be possible anymore.
10355 </desc>
10356 </method>
10357
10358 <method name="read">
10359 <desc>
10360 Reads the next directory entry of this directory.
10361 <result name="VBOX_E_OBJECT_NOT_FOUND">
10362 No more directory entries to read.
10363 </result>
10364 </desc>
10365 <param name="objInfo" type="IFsObjInfo" dir="return">
10366 <desc>Object information of the current directory entry read. Also see <link to="IFsObjInfo"/>.</desc>
10367 </param>
10368 </method>
10369 </interface>
10370
10371 <interface
10372 name="IGuestDirectory" extends="IDirectory"
10373 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10374 wsmap="managed"
10375 >
10376 <desc>
10377 Implementation of the <link to="IDirectory" /> object
10378 for directories on the guest.
10379 </desc>
10380 </interface>
10381
10382 <interface
10383 name="IFile" extends="$unknown"
10384 uuid="b702a560-6139-4a8e-a892-bbf14b97bf97"
10385 wsmap="managed"
10386 >
10387 <desc>
10388 Abstract parent interface for files handled by VirtualBox.
10389 </desc>
10390 <attribute name="creationMode" type="unsigned long" readonly="yes">
10391 <desc>
10392 The creation mode.
10393 </desc>
10394 </attribute>
10395 <attribute name="disposition" type="unsigned long" readonly="yes">
10396 <desc>
10397 The disposition mode.
10398 </desc>
10399 </attribute>
10400 <attribute name="fileName" type="wstring" readonly="yes">
10401 <desc>
10402 Full path of the actual file name of this file.
10403 </desc>
10404 </attribute>
10405 <attribute name="initialSize" type="long long" readonly="yes">
10406 <desc>
10407 The initial size in bytes when opened.
10408 </desc>
10409 </attribute>
10410 <attribute name="openMode" type="unsigned long" readonly="yes">
10411 <desc>
10412 The open mode.
10413 </desc>
10414 </attribute>
10415 <attribute name="offset" type="long long" readonly="yes">
10416 <desc>
10417 Current read/write offset in bytes.
10418 </desc>
10419 </attribute>
10420
10421 <method name="close">
10422 <desc>
10423 Closes this file. After closing operations like reading data,
10424 writing data or querying information will not be possible anymore.
10425 </desc>
10426 </method>
10427
10428 <method name="queryInfo">
10429 <desc>
10430 Queries information about this file.
10431
10432 <result name="E_NOTIMPL">
10433 The method is not implemented yet.
10434 </result>
10435 </desc>
10436 <param name="objInfo" type="IFsObjInfo" dir="return">
10437 <desc>Object information of this file. Also see <link to="IFsObjInfo"/>.</desc>
10438 </param>
10439 </method>
10440
10441 <method name="read">
10442 <desc>
10443 Reads data from this file.
10444
10445 <result name="E_NOTIMPL">
10446 The method is not implemented yet.
10447 </result>
10448 </desc>
10449 <param name="toRead" type="unsigned long" dir="in">
10450 <desc>Number of bytes to read.</desc>
10451 </param>
10452 <param name="timeoutMS" type="unsigned long" dir="in">
10453 <desc>
10454 Timeout (in ms) to wait for the operation to complete.
10455 Pass 0 for an infinite timeout.
10456 </desc>
10457 </param>
10458 <param name="data" type="octet" dir="return" safearray="yes">
10459 <desc>Array of data read.</desc>
10460 </param>
10461 </method>
10462
10463 <method name="readAt">
10464 <desc>
10465 Reads data from an offset of this file.
10466
10467 <result name="E_NOTIMPL">
10468 The method is not implemented yet.
10469 </result>
10470 </desc>
10471 <param name="offset" type="long long" dir="in">
10472 <desc>Offset in bytes to start reading.</desc>
10473 </param>
10474 <param name="toRead" type="unsigned long" dir="in">
10475 <desc>Number of bytes to read.</desc>
10476 </param>
10477 <param name="timeoutMS" type="unsigned long" dir="in">
10478 <desc>
10479 Timeout (in ms) to wait for the operation to complete.
10480 Pass 0 for an infinite timeout.
10481 </desc>
10482 </param>
10483 <param name="data" type="octet" dir="return" safearray="yes">
10484 <desc>Array of data read.</desc>
10485 </param>
10486 </method>
10487
10488 <method name="seek">
10489 <desc>
10490 Changes the read and write position of this file.
10491
10492 <result name="E_NOTIMPL">
10493 The method is not implemented yet.
10494 </result>
10495 </desc>
10496 <param name="offset" type="long long" dir="in">
10497 <desc>Offset to seek.</desc>
10498 </param>
10499 <param name="whence" type="FileSeekType" dir="in">
10500 <desc>
10501 Seek mode; see <link to="FileSeekType"/> for more information.
10502 </desc>
10503 </param>
10504 </method>
10505
10506 <method name="setACL">
10507 <desc>
10508 Sets the ACL of this file.
10509
10510 <result name="E_NOTIMPL">
10511 The method is not implemented yet.
10512 </result>
10513 </desc>
10514 <param name="acl" type="wstring" dir="in">
10515 <desc>ACL string to set.</desc>
10516 </param>
10517 </method>
10518
10519 <method name="write">
10520 <desc>
10521 Writes bytes to this file.
10522 </desc>
10523 <param name="data" type="octet" dir="in" safearray="yes">
10524 <desc>
10525 Array of bytes to write. The size of the array also specifies
10526 how much to write.
10527 </desc>
10528 </param>
10529 <param name="timeoutMS" type="unsigned long" dir="in">
10530 <desc>
10531 Timeout (in ms) to wait for the operation to complete.
10532 Pass 0 for an infinite timeout.
10533 </desc>
10534 </param>
10535 <param name="written" type="unsigned long" dir="return">
10536 <desc>How much bytes were written.</desc>
10537 </param>
10538 </method>
10539
10540 <method name="writeAt">
10541 <desc>
10542 Writes bytes at a certain offset to this file.
10543
10544 <result name="E_NOTIMPL">
10545 The method is not implemented yet.
10546 </result>
10547 </desc>
10548 <param name="offset" type="long long" dir="in">
10549 <desc>Offset in bytes to start writing.</desc>
10550 </param>
10551 <param name="data" type="octet" dir="in" safearray="yes">
10552 <desc>
10553 Array of bytes to write. The size of the array also specifies
10554 how much to write.
10555 </desc>
10556 </param>
10557 <param name="timeoutMS" type="unsigned long" dir="in">
10558 <desc>
10559 Timeout (in ms) to wait for the operation to complete.
10560 Pass 0 for an infinite timeout.
10561 </desc>
10562 </param>
10563 <param name="written" type="unsigned long" dir="return">
10564 <desc>How much bytes were written.</desc>
10565 </param>
10566 </method>
10567
10568 </interface>
10569
10570 <interface
10571 name="IGuestFile" extends="IFile"
10572 uuid="60661aec-145f-4d11-b80e-8ea151598093"
10573 wsmap="managed"
10574 >
10575 <desc>
10576 Implementation of the <link to="IFile" /> object
10577 for files on the guest.
10578 </desc>
10579 </interface>
10580
10581 <interface
10582 name="IFsObjInfo" extends="$unknown"
10583 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
10584 wsmap="managed"
10585 >
10586 <desc>
10587 Abstract parent interface for VirtualBox file system object information.
10588 This can be information about a file or a directory, for example.
10589 </desc>
10590
10591 <attribute name="accessTime" type="long long" readonly="yes">
10592 <desc>
10593 Time of last access (st_atime).
10594 </desc>
10595 </attribute>
10596 <attribute name="allocatedSize" type="long long" readonly="yes">
10597 <desc>
10598 Disk allocation size (st_blocks * DEV_BSIZE).
10599 </desc>
10600 </attribute>
10601 <attribute name="birthTime" type="long long" readonly="yes">
10602 <desc>
10603 Time of file birth (st_birthtime).
10604 </desc>
10605 </attribute>
10606 <attribute name="changeTime" type="long long" readonly="yes">
10607 <desc>
10608 Time of last status change (st_ctime).
10609 </desc>
10610 </attribute>
10611 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
10612 <desc>
10613 The device number of a character or block device type object (st_rdev).
10614 </desc>
10615 </attribute>
10616 <attribute name="fileAttributes" type="wstring" readonly="yes">
10617 <desc>
10618 File attributes. Not implemented yet.
10619 </desc>
10620 </attribute>
10621 <attribute name="generationId" type="unsigned long" readonly="yes">
10622 <desc>
10623 The current generation number (st_gen).
10624 </desc>
10625 </attribute>
10626 <attribute name="GID" type="unsigned long" readonly="yes">
10627 <desc>
10628 The group the filesystem object is assigned (st_gid).
10629 </desc>
10630 </attribute>
10631 <attribute name="groupName" type="wstring" readonly="yes">
10632 <desc>
10633 The group name.
10634 </desc>
10635 </attribute>
10636 <attribute name="hardLinks" type="unsigned long" readonly="yes">
10637 <desc>
10638 Number of hard links to this filesystem object (st_nlink).
10639 </desc>
10640 </attribute>
10641 <attribute name="modificationTime" type="long long" readonly="yes">
10642 <desc>
10643 Time of last data modification (st_mtime).
10644 </desc>
10645 </attribute>
10646 <attribute name="name" type="wstring" readonly="yes">
10647 <desc>
10648 The object's name.
10649 </desc>
10650 </attribute>
10651 <attribute name="nodeId" type="long long" readonly="yes">
10652 <desc>
10653 The unique identifier (within the filesystem) of this filesystem object (st_ino).
10654 </desc>
10655 </attribute>
10656 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
10657 <desc>
10658 The device number of the device which this filesystem object resides on (st_dev).
10659 </desc>
10660 </attribute>
10661 <attribute name="objectSize" type="long long" readonly="yes">
10662 <desc>
10663 The logical size (st_size). For normal files this is the size of the file.
10664 For symbolic links, this is the length of the path name contained in the
10665 symbolic link. For other objects this fields needs to be specified.
10666 </desc>
10667 </attribute>
10668 <attribute name="type" type="FsObjType" readonly="yes">
10669 <desc>
10670 The object type. See <link to="FsObjType" /> for more.
10671 </desc>
10672 </attribute>
10673 <attribute name="UID" type="unsigned long" readonly="yes">
10674 <desc>
10675 The user owning the filesystem object (st_uid).
10676 </desc>
10677 </attribute>
10678 <attribute name="userFlags" type="unsigned long" readonly="yes">
10679 <desc>
10680 User flags (st_flags).
10681 </desc>
10682 </attribute>
10683 <attribute name="userName" type="wstring" readonly="yes">
10684 <desc>
10685 The user name.
10686 </desc>
10687 </attribute>
10688
10689 </interface>
10690
10691 <interface
10692 name="IGuestFsObjInfo" extends="IFsObjInfo"
10693 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
10694 wsmap="managed"
10695 >
10696 <desc>
10697 Represents the guest implementation of the
10698 <link to="IFsObjInfo" /> object.
10699 </desc>
10700 </interface>
10701
10702 <interface
10703 name="IGuest" extends="$unknown"
10704 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
10705 wsmap="managed"
10706 >
10707 <desc>
10708 The IGuest interface represents information about the operating system
10709 running inside the virtual machine. Used in
10710 <link to="IConsole::guest"/>.
10711
10712 IGuest provides information about the guest operating system, whether
10713 Guest Additions are installed and other OS-specific virtual machine
10714 properties.
10715 </desc>
10716
10717 <attribute name="OSTypeId" type="wstring" readonly="yes">
10718 <desc>
10719 Identifier of the Guest OS type as reported by the Guest
10720 Additions.
10721 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
10722 an IGuestOSType object representing details about the given
10723 Guest OS type.
10724 <note>
10725 If Guest Additions are not installed, this value will be
10726 the same as <link to="IMachine::OSTypeId"/>.
10727 </note>
10728 </desc>
10729 </attribute>
10730
10731 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
10732 <desc>
10733 Current run level of the Guest Additions.
10734 </desc>
10735 </attribute>
10736
10737 <attribute name="additionsVersion" type="wstring" readonly="yes">
10738 <desc>
10739 Version of the Guest Additions in the same format as
10740 <link to="IVirtualBox::version"/>.
10741 </desc>
10742 </attribute>
10743
10744 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
10745 <desc>
10746 The internal build revision number of the additions.
10747
10748 See also <link to="IVirtualBox::revision"/>.
10749 </desc>
10750 </attribute>
10751
10752 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
10753 <desc>
10754 Array of current known facilities. Only returns facilities where a status is known,
10755 e.g. facilities with an unknown status will not be returned.
10756 </desc>
10757 </attribute>
10758
10759 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
10760 <desc>Returns a collection of all opened guest sessions.</desc>
10761 </attribute>
10762
10763 <attribute name="memoryBalloonSize" type="unsigned long">
10764 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
10765 </attribute>
10766
10767 <attribute name="statisticsUpdateInterval" type="unsigned long">
10768 <desc>Interval to update guest statistics in seconds.</desc>
10769 </attribute>
10770
10771 <method name="internalGetStatistics">
10772 <desc>
10773 Internal method; do not use as it might change at any time.
10774 </desc>
10775 <param name="cpuUser" type="unsigned long" dir="out">
10776 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
10777 </param>
10778 <param name="cpuKernel" type="unsigned long" dir="out">
10779 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
10780 </param>
10781 <param name="cpuIdle" type="unsigned long" dir="out">
10782 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
10783 </param>
10784 <param name="memTotal" type="unsigned long" dir="out">
10785 <desc>Total amount of physical guest RAM.</desc>
10786 </param>
10787 <param name="memFree" type="unsigned long" dir="out">
10788 <desc>Free amount of physical guest RAM.</desc>
10789 </param>
10790 <param name="memBalloon" type="unsigned long" dir="out">
10791 <desc>Amount of ballooned physical guest RAM.</desc>
10792 </param>
10793 <param name="memShared" type="unsigned long" dir="out">
10794 <desc>Amount of shared physical guest RAM.</desc>
10795 </param>
10796 <param name="memCache" type="unsigned long" dir="out">
10797 <desc>Total amount of guest (disk) cache memory.</desc>
10798 </param>
10799 <param name="pagedTotal" type="unsigned long" dir="out">
10800 <desc>Total amount of space in the page file.</desc>
10801 </param>
10802 <param name="memAllocTotal" type="unsigned long" dir="out">
10803 <desc>Total amount of memory allocated by the hypervisor.</desc>
10804 </param>
10805 <param name="memFreeTotal" type="unsigned long" dir="out">
10806 <desc>Total amount of free memory available in the hypervisor.</desc>
10807 </param>
10808 <param name="memBalloonTotal" type="unsigned long" dir="out">
10809 <desc>Total amount of memory ballooned by the hypervisor.</desc>
10810 </param>
10811 <param name="memSharedTotal" type="unsigned long" dir="out">
10812 <desc>Total amount of shared memory in the hypervisor.</desc>
10813 </param>
10814 </method>
10815
10816 <method name="getFacilityStatus">
10817 <desc>
10818 Get the current status of a Guest Additions facility.
10819 </desc>
10820 <param name="facility" type="AdditionsFacilityType" dir="in">
10821 <desc>Facility to check status for.</desc>
10822 </param>
10823 <param name="timestamp" type="long long" dir="out">
10824 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
10825 </param>
10826 <param name="status" type="AdditionsFacilityStatus" dir="return">
10827 <desc>The current (latest) facility status.</desc>
10828 </param>
10829 </method>
10830
10831 <method name="getAdditionsStatus">
10832 <desc>
10833 Retrieve the current status of a certain Guest Additions run level.
10834
10835 <result name="VBOX_E_NOT_SUPPORTED">
10836 Wrong status level specified.
10837 </result>
10838
10839 </desc>
10840 <param name="level" type="AdditionsRunLevelType" dir="in">
10841 <desc>Status level to check</desc>
10842 </param>
10843 <param name="active" type="boolean" dir="return">
10844 <desc>Flag whether the status level has been reached or not</desc>
10845 </param>
10846 </method>
10847
10848 <method name="setCredentials">
10849 <desc>
10850 Store login credentials that can be queried by guest operating
10851 systems with Additions installed. The credentials are transient
10852 to the session and the guest may also choose to erase them. Note
10853 that the caller cannot determine whether the guest operating system
10854 has queried or made use of the credentials.
10855
10856 <result name="VBOX_E_VM_ERROR">
10857 VMM device is not available.
10858 </result>
10859
10860 </desc>
10861 <param name="userName" type="wstring" dir="in">
10862 <desc>User name string, can be empty</desc>
10863 </param>
10864 <param name="password" type="wstring" dir="in">
10865 <desc>Password string, can be empty</desc>
10866 </param>
10867 <param name="domain" type="wstring" dir="in">
10868 <desc>Domain name (guest logon scheme specific), can be empty</desc>
10869 </param>
10870 <param name="allowInteractiveLogon" type="boolean" dir="in">
10871 <desc>
10872 Flag whether the guest should alternatively allow the user to
10873 interactively specify different credentials. This flag might
10874 not be supported by all versions of the Additions.
10875 </desc>
10876 </param>
10877 </method>
10878
10879 <method name="dragHGEnter">
10880 <desc>
10881 Informs the guest about a Drag and Drop enter event.
10882
10883 This is used in Host - Guest direction.
10884
10885 <result name="VBOX_E_VM_ERROR">
10886 VMM device is not available.
10887 </result>
10888
10889 </desc>
10890 <param name="screenId" type="unsigned long" dir="in">
10891 <desc>The screen id where the Drag and Drop event occured.</desc>
10892 </param>
10893 <param name="y" type="unsigned long" dir="in">
10894 <desc>y-position of the event.</desc>
10895 </param>
10896 <param name="x" type="unsigned long" dir="in">
10897 <desc>x-position of the event.</desc>
10898 </param>
10899 <param name="defaultAction" type="DragAndDropAction" dir="in">
10900 <desc>The default action to use.</desc>
10901 </param>
10902 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10903 <desc>The actions which are allowed.</desc>
10904 </param>
10905 <param name="formats" type="wstring" dir="in" safearray="yes">
10906 <desc>The supported mime types.</desc>
10907 </param>
10908 <param name="resultAction" type="DragAndDropAction" dir="return">
10909 <desc>The resulting action of this event.</desc>
10910 </param>
10911 </method>
10912
10913 <method name="dragHGMove">
10914 <desc>
10915 Informs the guest about a Drag and Drop move event.
10916
10917 This is used in Host - Guest direction.
10918
10919 <result name="VBOX_E_VM_ERROR">
10920 VMM device is not available.
10921 </result>
10922
10923 </desc>
10924 <param name="screenId" type="unsigned long" dir="in">
10925 <desc>The screen id where the Drag and Drop event occured.</desc>
10926 </param>
10927 <param name="x" type="unsigned long" dir="in">
10928 <desc>x-position of the event.</desc>
10929 </param>
10930 <param name="y" type="unsigned long" dir="in">
10931 <desc>y-position of the event.</desc>
10932 </param>
10933 <param name="defaultAction" type="DragAndDropAction" dir="in">
10934 <desc>The default action to use.</desc>
10935 </param>
10936 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10937 <desc>The actions which are allowed.</desc>
10938 </param>
10939 <param name="formats" type="wstring" dir="in" safearray="yes">
10940 <desc>The supported mime types.</desc>
10941 </param>
10942 <param name="resultAction" type="DragAndDropAction" dir="return">
10943 <desc>The resulting action of this event.</desc>
10944 </param>
10945 </method>
10946
10947 <method name="dragHGLeave">
10948 <desc>
10949 Informs the guest about a Drag and Drop leave event.
10950
10951 This is used in Host - Guest direction.
10952
10953 <result name="VBOX_E_VM_ERROR">
10954 VMM device is not available.
10955 </result>
10956
10957 </desc>
10958 <param name="screenId" type="unsigned long" dir="in">
10959 <desc>The screen id where the Drag and Drop event occured.</desc>
10960 </param>
10961 </method>
10962
10963 <method name="dragHGDrop">
10964 <desc>
10965 Informs the guest about a drop event.
10966
10967 This is used in Host - Guest direction.
10968
10969 <result name="VBOX_E_VM_ERROR">
10970 VMM device is not available.
10971 </result>
10972
10973 </desc>
10974 <param name="screenId" type="unsigned long" dir="in">
10975 <desc>The screen id where the Drag and Drop event occured.</desc>
10976 </param>
10977 <param name="x" type="unsigned long" dir="in">
10978 <desc>x-position of the event.</desc>
10979 </param>
10980 <param name="y" type="unsigned long" dir="in">
10981 <desc>y-position of the event.</desc>
10982 </param>
10983 <param name="defaultAction" type="DragAndDropAction" dir="in">
10984 <desc>The default action to use.</desc>
10985 </param>
10986 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10987 <desc>The actions which are allowed.</desc>
10988 </param>
10989 <param name="formats" type="wstring" dir="in" safearray="yes">
10990 <desc>The supported mime types.</desc>
10991 </param>
10992 <param name="format" type="wstring" dir="out">
10993 <desc>The resulting format of this event.</desc>
10994 </param>
10995 <param name="resultAction" type="DragAndDropAction" dir="return">
10996 <desc>The resulting action of this event.</desc>
10997 </param>
10998 </method>
10999
11000 <method name="dragHGPutData">
11001 <desc>
11002 Informs the guest about a drop data event.
11003
11004 This is used in Host - Guest direction.
11005
11006 <result name="VBOX_E_VM_ERROR">
11007 VMM device is not available.
11008 </result>
11009
11010 </desc>
11011 <param name="screenId" type="unsigned long" dir="in">
11012 <desc>The screen id where the Drag and Drop event occured.</desc>
11013 </param>
11014 <param name="format" type="wstring" dir="in">
11015 <desc>The mime type the data is in.</desc>
11016 </param>
11017 <param name="data" type="octet" dir="in" safearray="yes">
11018 <desc>The actual data.</desc>
11019 </param>
11020 <param name="progress" type="IProgress" dir="return">
11021 <desc>Progress object to track the operation completion.</desc>
11022 </param>
11023 </method>
11024
11025 <method name="dragGHPending">
11026 <desc>
11027 Ask the guest if there is any Drag and Drop operation pending in the guest.
11028
11029 If no Drag and Drop operation is pending currently, Ignore is returned.
11030
11031 This is used in Guest - Host direction.
11032
11033 <result name="VBOX_E_VM_ERROR">
11034 VMM device is not available.
11035 </result>
11036
11037 </desc>
11038 <param name="screenId" type="unsigned long" dir="in">
11039 <desc>The screen id where the Drag and Drop event occured.</desc>
11040 </param>
11041 <param name="format" type="wstring" dir="out" safearray="yes">
11042 <desc>On return the supported mime types.</desc>
11043 </param>
11044 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11045 <desc>On return the actions which are allowed.</desc>
11046 </param>
11047 <param name="defaultAction" type="DragAndDropAction" dir="return">
11048 <desc>On return the default action to use.</desc>
11049 </param>
11050 </method>
11051
11052 <method name="dragGHDropped">
11053 <desc>
11054 Informs the guest that a drop event occured for a pending Drag and Drop event.
11055
11056 This is used in Guest - Host direction.
11057
11058 <result name="VBOX_E_VM_ERROR">
11059 VMM device is not available.
11060 </result>
11061
11062 </desc>
11063
11064 <param name="format" type="wstring" dir="in">
11065 <desc>The mime type the data must be in.</desc>
11066 </param>
11067 <param name="action" type="DragAndDropAction" dir="in">
11068 <desc>The action to use.</desc>
11069 </param>
11070 <param name="progress" type="IProgress" dir="return">
11071 <desc>Progress object to track the operation completion.</desc>
11072 </param>
11073 </method>
11074
11075 <method name="dragGHGetData">
11076 <desc>
11077 Fetch the data of a previously Drag and Drop event from the guest.
11078
11079 This is used in Guest - Host direction.
11080
11081 <result name="VBOX_E_VM_ERROR">
11082 VMM device is not available.
11083 </result>
11084
11085 </desc>
11086
11087 <param name="data" type="octet" safearray="yes" dir="return">
11088 <desc>The actual data.</desc>
11089 </param>
11090 </method>
11091
11092 <method name="createSession">
11093 <desc>
11094 Creates a new guest session for controlling the guest.
11095
11096 A guest session represents one impersonated user account on the guest, so
11097 every operation will use the same credentials specified when creating
11098 the session object via <link to="IGuest::createSession"/>. Anonymous
11099 sessions, that is, sessions without specifying a valid
11100 user account on the guest are not allowed due to security reasons.
11101
11102 There can be a maximum of 32 sessions at once per VM. Each session keeps
11103 track of its started guest processes, opened guest files or guest directories.
11104 To work on guest files or directories a guest session offers methods to open
11105 or create such objects (see <link to="IGuestSession::fileOpen"/> or
11106 <link to="IGuestSession::directoryOpen"/> for example).
11107
11108 When done with either of these objects, including the guest session itself,
11109 use the appropriate close() method to let the object do its cleanup work.
11110
11111 Every guest session has its own environment variable block which gets
11112 automatically applied when starting a new guest process via
11113 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
11114 To override (or unset) certain environment variables already set by the
11115 guest session, one can specify a per-process environment block when using
11116 one of the both above mentioned process creation calls.
11117
11118 Closing a session via <link to="IGuestSession::close" /> will try to close
11119 all the mentioned objects above unless these objects are still used by
11120 a client.
11121 </desc>
11122 <param name="user" type="wstring" dir="in">
11123 <desc>
11124 User name this session will be using to control the guest; has to exist
11125 and have the appropriate rights to execute programs in the VM. Must not
11126 be empty.
11127 </desc>
11128 </param>
11129 <param name="password" type="wstring" dir="in">
11130 <desc>
11131 Password of the user account to be used. Empty passwords are allowed.
11132 </desc>
11133 </param>
11134 <param name="domain" type="wstring" dir="in">
11135 <desc>
11136 Domain name of the user account to be used if the guest is part of
11137 a domain. Optional. This feature is not implemented yet.
11138 </desc>
11139 </param>
11140 <param name="sessionName" type="wstring" dir="in">
11141 <desc>
11142 The session's friendly name. Optional, can be empty.
11143 </desc>
11144 </param>
11145 <param name="guestSession" type="IGuestSession" dir="return">
11146 <desc>
11147 The newly created session object.
11148 </desc>
11149 </param>
11150 </method>
11151
11152 <method name="findSession">
11153 <desc>
11154 Finds guest sessions by their friendly name and returns an interface
11155 array with all found guest sessions.
11156 </desc>
11157 <param name="sessionName" type="wstring" dir="in">
11158 <desc>
11159 The session's friendly name to find. Wildcards like ? and * are allowed.
11160 </desc>
11161 </param>
11162 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11163 <desc>
11164 Array with all guest sessions found matching the name specified.
11165 </desc>
11166 </param>
11167 </method>
11168
11169 <method name="updateGuestAdditions">
11170 <desc>
11171 Updates already installed Guest Additions in a VM
11172 (Windows guests only).
11173
11174 <result name="VBOX_E_IPRT_ERROR">
11175 Error while updating.
11176 </result>
11177
11178 </desc>
11179 <param name="source" type="wstring" dir="in">
11180 <desc>
11181 Path to the Guest Additions .ISO file to use for the upate.
11182 </desc>
11183 </param>
11184 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11185 <desc>
11186 <link to="AdditionsUpdateFlag"/> flags.
11187 </desc>
11188 </param>
11189 <param name="progress" type="IProgress" dir="return">
11190 <desc>Progress object to track the operation completion.</desc>
11191 </param>
11192 </method>
11193
11194 </interface>
11195
11196
11197 <!--
11198 // IProgress
11199 /////////////////////////////////////////////////////////////////////////
11200 -->
11201
11202 <interface
11203 name="IProgress" extends="$unknown"
11204 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11205 wsmap="managed"
11206 >
11207 <desc>
11208 The IProgress interface is used to track and control
11209 asynchronous tasks within VirtualBox.
11210
11211 An instance of this is returned every time VirtualBox starts
11212 an asynchronous task (in other words, a separate thread) which
11213 continues to run after a method call returns. For example,
11214 <link to="IConsole::saveState" />, which saves the state of
11215 a running virtual machine, can take a long time to complete.
11216 To be able to display a progress bar, a user interface such as
11217 the VirtualBox graphical user interface can use the IProgress
11218 object returned by that method.
11219
11220 Note that IProgress is a "read-only" interface in the sense
11221 that only the VirtualBox internals behind the Main API can
11222 create and manipulate progress objects, whereas client code
11223 can only use the IProgress object to monitor a task's
11224 progress and, if <link to="#cancelable" /> is @c true,
11225 cancel the task by calling <link to="#cancel" />.
11226
11227 A task represented by IProgress consists of either one or
11228 several sub-operations that run sequentially, one by one (see
11229 <link to="#operation" /> and <link to="#operationCount" />).
11230 Every operation is identified by a number (starting from 0)
11231 and has a separate description.
11232
11233 You can find the individual percentage of completion of the current
11234 operation in <link to="#operationPercent" /> and the
11235 percentage of completion of the task as a whole
11236 in <link to="#percent" />.
11237
11238 Similarly, you can wait for the completion of a particular
11239 operation via <link to="#waitForOperationCompletion" /> or
11240 for the completion of the whole task via
11241 <link to="#waitForCompletion" />.
11242 </desc>
11243
11244 <attribute name="id" type="uuid" mod="string" readonly="yes">
11245 <desc>ID of the task.</desc>
11246 </attribute>
11247
11248 <attribute name="description" type="wstring" readonly="yes">
11249 <desc>Description of the task.</desc>
11250 </attribute>
11251
11252 <attribute name="initiator" type="$unknown" readonly="yes">
11253 <desc>Initiator of the task.</desc>
11254 </attribute>
11255
11256 <attribute name="cancelable" type="boolean" readonly="yes">
11257 <desc>Whether the task can be interrupted.</desc>
11258 </attribute>
11259
11260 <attribute name="percent" type="unsigned long" readonly="yes">
11261 <desc>
11262 Current progress value of the task as a whole, in percent.
11263 This value depends on how many operations are already complete.
11264 Returns 100 if <link to="#completed" /> is @c true.
11265 </desc>
11266 </attribute>
11267
11268 <attribute name="timeRemaining" type="long" readonly="yes">
11269 <desc>
11270 Estimated remaining time until the task completes, in
11271 seconds. Returns 0 once the task has completed; returns -1
11272 if the remaining time cannot be computed, in particular if
11273 the current progress is 0.
11274
11275 Even if a value is returned, the estimate will be unreliable
11276 for low progress values. It will become more reliable as the
11277 task progresses; it is not recommended to display an ETA
11278 before at least 20% of a task have completed.
11279 </desc>
11280 </attribute>
11281
11282 <attribute name="completed" type="boolean" readonly="yes">
11283 <desc>Whether the task has been completed.</desc>
11284 </attribute>
11285
11286 <attribute name="canceled" type="boolean" readonly="yes">
11287 <desc>Whether the task has been canceled.</desc>
11288 </attribute>
11289
11290 <attribute name="resultCode" type="long" readonly="yes">
11291 <desc>
11292 Result code of the progress task.
11293 Valid only if <link to="#completed"/> is @c true.
11294 </desc>
11295 </attribute>
11296
11297 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11298 <desc>
11299 Extended information about the unsuccessful result of the
11300 progress operation. May be @c null if no extended information
11301 is available.
11302 Valid only if <link to="#completed"/> is @c true and
11303 <link to="#resultCode"/> indicates a failure.
11304 </desc>
11305 </attribute>
11306
11307 <attribute name="operationCount" type="unsigned long" readonly="yes">
11308 <desc>
11309 Number of sub-operations this task is divided into.
11310 Every task consists of at least one suboperation.
11311 </desc>
11312 </attribute>
11313
11314 <attribute name="operation" type="unsigned long" readonly="yes">
11315 <desc>Number of the sub-operation being currently executed.</desc>
11316 </attribute>
11317
11318 <attribute name="operationDescription" type="wstring" readonly="yes">
11319 <desc>
11320 Description of the sub-operation being currently executed.
11321 </desc>
11322 </attribute>
11323
11324 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11325 <desc>Progress value of the current sub-operation only, in percent.</desc>
11326 </attribute>
11327
11328 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11329 <desc>Weight value of the current sub-operation only.</desc>
11330 </attribute>
11331
11332 <attribute name="timeout" type="unsigned long">
11333 <desc>
11334 When non-zero, this specifies the number of milliseconds after which
11335 the operation will automatically be canceled. This can only be set on
11336 cancelable objects.
11337 </desc>
11338 </attribute>
11339
11340 <method name="setCurrentOperationProgress">
11341 <desc>Internal method, not to be called externally.</desc>
11342 <param name="percent" type="unsigned long" dir="in" />
11343 </method>
11344 <method name="setNextOperation">
11345 <desc>Internal method, not to be called externally.</desc>
11346 <param name="nextOperationDescription" type="wstring" dir="in" />
11347 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11348 </method>
11349
11350 <method name="waitForCompletion">
11351 <desc>
11352 Waits until the task is done (including all sub-operations)
11353 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11354
11355 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11356 thread are not processed while waiting. Neglecting event queues may
11357 have dire consequences (degrade performance, resource hogs,
11358 deadlocks, etc.), this is specially so for the main thread on
11359 platforms using XPCOM. Callers are adviced wait for short periods
11360 and service their event queues between calls, or to create a worker
11361 thread to do the waiting.
11362
11363 <result name="VBOX_E_IPRT_ERROR">
11364 Failed to wait for task completion.
11365 </result>
11366 </desc>
11367
11368 <param name="timeout" type="long" dir="in">
11369 <desc>
11370 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11371 </desc>
11372 </param>
11373 </method>
11374
11375 <method name="waitForOperationCompletion">
11376 <desc>
11377 Waits until the given operation is done with a given timeout in
11378 milliseconds; specify -1 for an indefinite wait.
11379
11380 See <link to="#waitForCompletion"> for event queue considerations.</link>
11381
11382 <result name="VBOX_E_IPRT_ERROR">
11383 Failed to wait for operation completion.
11384 </result>
11385
11386 </desc>
11387 <param name="operation" type="unsigned long" dir="in">
11388 <desc>
11389 Number of the operation to wait for.
11390 Must be less than <link to="#operationCount"/>.
11391 </desc>
11392 </param>
11393 <param name="timeout" type="long" dir="in">
11394 <desc>
11395 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11396 </desc>
11397 </param>
11398 </method>
11399
11400 <method name="waitForAsyncProgressCompletion">
11401 <desc>
11402 Waits until the other task is completed (including all
11403 sub-operations) and forward all changes from the other progress to
11404 this progress. This means sub-operation number, description, percent
11405 and so on.
11406
11407 You have to take care on setting up at least the same count on
11408 sub-operations in this progress object like there are in the other
11409 progress object.
11410
11411 If the other progress object supports cancel and this object gets any
11412 cancel request (when here enabled as well), it will be forwarded to
11413 the other progress object.
11414
11415 If there is an error in the other progress, this error isn't
11416 automatically transfered to this progress object. So you have to
11417 check any operation error within the other progress object, after
11418 this method returns.
11419 </desc>
11420
11421 <param name="pProgressAsync" type="IProgress" dir="in">
11422 <desc>
11423 The progress object of the asynchrony process.
11424 </desc>
11425 </param>
11426 </method>
11427
11428 <method name="cancel">
11429 <desc>
11430 Cancels the task.
11431 <note>
11432 If <link to="#cancelable"/> is @c false, then this method will fail.
11433 </note>
11434
11435 <result name="VBOX_E_INVALID_OBJECT_STATE">
11436 Operation cannot be canceled.
11437 </result>
11438
11439 </desc>
11440 </method>
11441
11442 </interface>
11443
11444 <!--
11445 // ISnapshot
11446 /////////////////////////////////////////////////////////////////////////
11447 -->
11448
11449 <interface
11450 name="ISnapshot" extends="$unknown"
11451 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11452 wsmap="managed"
11453 >
11454 <desc>
11455 The ISnapshot interface represents a snapshot of the virtual
11456 machine.
11457
11458 Together with the differencing media that are created
11459 when a snapshot is taken, a machine can be brought back to
11460 the exact state it was in when the snapshot was taken.
11461
11462 The ISnapshot interface has no methods, only attributes; snapshots
11463 are controlled through methods of the <link to="IConsole" /> interface
11464 which also manage the media associated with the snapshot.
11465 The following operations exist:
11466
11467 <ul>
11468 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11469 by creating new, empty differencing images for the machine's
11470 media and saving the VM settings and (if the VM is running)
11471 the current VM state in the snapshot.
11472
11473 The differencing images will then receive all data written to
11474 the machine's media, while their parent (base) images
11475 remain unmodified after the snapshot has been taken (see
11476 <link to="IMedium" /> for details about differencing images).
11477 This simplifies restoring a machine to the state of a snapshot:
11478 only the differencing images need to be deleted.
11479
11480 The current machine state is not changed by taking a snapshot
11481 except that <link to="IMachine::currentSnapshot" /> is set to
11482 the newly created snapshot, which is also added to the machine's
11483 snapshots tree.
11484 </li>
11485
11486 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
11487 the state of a previous snapshot by deleting the differencing
11488 image of each of the machine's media and setting the machine's
11489 settings and state to the state that was saved in the snapshot (if any).
11490
11491 This destroys the machine's current state. After calling this,
11492 <link to="IMachine::currentSnapshot" /> points to the snapshot
11493 that was restored.
11494 </li>
11495
11496 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
11497 without affecting the current machine state.
11498
11499 This does not change the current machine state, but instead frees the
11500 resources allocated when the snapshot was taken: the settings and machine
11501 state file are deleted (if any), and the snapshot's differencing image for
11502 each of the machine's media gets merged with its parent image.
11503
11504 Neither the current machine state nor other snapshots are affected
11505 by this operation, except that parent media will be modified
11506 to contain the disk data associated with the snapshot being deleted.
11507
11508 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
11509 attribute is set to the current snapshot's parent or @c null if it
11510 has no parent. Otherwise the attribute is unchanged.
11511 </li>
11512 </ul>
11513
11514 Each snapshot contains a copy of virtual machine's settings (hardware
11515 configuration etc.). This copy is contained in an immutable (read-only)
11516 instance of <link to="IMachine" /> which is available from the snapshot's
11517 <link to="#machine" /> attribute. When restoring the snapshot, these
11518 settings are copied back to the original machine.
11519
11520 In addition, if the machine was running when the
11521 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
11522 the current VM state is saved in the snapshot (similarly to what happens
11523 when a VM's state is saved). The snapshot is then said to be <i>online</i>
11524 because when restoring it, the VM will be running.
11525
11526 If the machine was in <link to="MachineState_Saved">saved</link> saved,
11527 the snapshot receives a copy of the execution state file
11528 (<link to="IMachine::stateFilePath"/>).
11529
11530 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
11531 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
11532 it then contains a so-called "zero execution state", representing a
11533 machine that is powered off.
11534 </desc>
11535
11536 <attribute name="id" type="uuid" mod="string" readonly="yes">
11537 <desc>UUID of the snapshot.</desc>
11538 </attribute>
11539
11540 <attribute name="name" type="wstring">
11541 <desc>Short name of the snapshot.
11542 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11543 be called implicitly.</note>
11544 </desc>
11545 </attribute>
11546
11547 <attribute name="description" type="wstring">
11548 <desc>Optional description of the snapshot.
11549 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11550 be called implicitly.</note>
11551 </desc>
11552 </attribute>
11553
11554 <attribute name="timeStamp" type="long long" readonly="yes">
11555 <desc>
11556 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
11557 </desc>
11558 </attribute>
11559
11560 <attribute name="online" type="boolean" readonly="yes">
11561 <desc>
11562 @c true if this snapshot is an online snapshot and @c false otherwise.
11563
11564 When this attribute is @c true, the
11565 <link to="IMachine::stateFilePath"/> attribute of the
11566 <link to="#machine"/> object associated with this snapshot
11567 will point to the saved state file. Otherwise, it will be
11568 an empty string.
11569 </desc>
11570 </attribute>
11571
11572 <attribute name="machine" type="IMachine" readonly="yes">
11573 <desc>
11574 Virtual machine this snapshot is taken on. This object
11575 stores all settings the machine had when taking this snapshot.
11576 <note>
11577 The returned machine object is immutable, i.e. no
11578 any settings can be changed.
11579 </note>
11580 </desc>
11581 </attribute>
11582
11583 <attribute name="parent" type="ISnapshot" readonly="yes">
11584 <desc>
11585 Parent snapshot (a snapshot this one is based on), or
11586 @c null if the snapshot has no parent (i.e. is the first snapshot).
11587 </desc>
11588 </attribute>
11589
11590 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
11591 <desc>
11592 Child snapshots (all snapshots having this one as a parent).
11593 By inspecting this attribute starting with a machine's root snapshot
11594 (which can be obtained by calling <link to="IMachine::findSnapshot" />
11595 with a @c null UUID), a machine's snapshots tree can be iterated over.
11596 </desc>
11597 </attribute>
11598
11599 <method name="getChildrenCount" const="yes">
11600 <desc>
11601 Returns the number of direct childrens of this snapshot.
11602 </desc>
11603 <param name="childrenCount" type="unsigned long" dir="return">
11604 <desc>
11605 </desc>
11606 </param>
11607 </method>
11608
11609 </interface>
11610
11611
11612 <!--
11613 // IMedium
11614 /////////////////////////////////////////////////////////////////////////
11615 -->
11616
11617 <enum
11618 name="MediumState"
11619 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
11620 >
11621 <desc>
11622 Virtual medium state.
11623 <see><link to="IMedium"/></see>
11624 </desc>
11625
11626 <const name="NotCreated" value="0">
11627 <desc>
11628 Associated medium storage does not exist (either was not created yet or
11629 was deleted).
11630 </desc>
11631 </const>
11632 <const name="Created" value="1">
11633 <desc>
11634 Associated storage exists and accessible; this gets set if the
11635 accessibility check performed by <link to="IMedium::refreshState" />
11636 was successful.
11637 </desc>
11638 </const>
11639 <const name="LockedRead" value="2">
11640 <desc>
11641 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
11642 no data modification is possible.
11643 </desc>
11644 </const>
11645 <const name="LockedWrite" value="3">
11646 <desc>
11647 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
11648 no concurrent data reading or modification is possible.
11649 </desc>
11650 </const>
11651 <const name="Inaccessible" value="4">
11652 <desc>
11653 Medium accessibility check (see <link to="IMedium::refreshState" />) has
11654 not yet been performed, or else, associated medium storage is not
11655 accessible. In the first case, <link to="IMedium::lastAccessError"/>
11656 is empty, in the second case, it describes the error that occurred.
11657 </desc>
11658 </const>
11659 <const name="Creating" value="5">
11660 <desc>
11661 Associated medium storage is being created.
11662 </desc>
11663 </const>
11664 <const name="Deleting" value="6">
11665 <desc>
11666 Associated medium storage is being deleted.
11667 </desc>
11668 </const>
11669 </enum>
11670
11671 <enum
11672 name="MediumType"
11673 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
11674 >
11675 <desc>
11676 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
11677 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
11678 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
11679 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
11680 </desc>
11681
11682 <const name="Normal" value="0">
11683 <desc>
11684 Normal medium (attached directly or indirectly, preserved
11685 when taking snapshots).
11686 </desc>
11687 </const>
11688 <const name="Immutable" value="1">
11689 <desc>
11690 Immutable medium (attached indirectly, changes are wiped out
11691 the next time the virtual machine is started).
11692 </desc>
11693 </const>
11694 <const name="Writethrough" value="2">
11695 <desc>
11696 Write through medium (attached directly, ignored when
11697 taking snapshots).
11698 </desc>
11699 </const>
11700 <const name="Shareable" value="3">
11701 <desc>
11702 Allow using this medium concurrently by several machines.
11703 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
11704 </desc>
11705 </const>
11706 <const name="Readonly" value="4">
11707 <desc>
11708 A readonly medium, which can of course be used by several machines.
11709 <note>Present and accepted since VirtualBox 4.0.</note>
11710 </desc>
11711 </const>
11712 <const name="MultiAttach" value="5">
11713 <desc>
11714 A medium which is indirectly attached, so that one base medium can
11715 be used for several VMs which have their own differencing medium to
11716 store their modifications. In some sense a variant of Immutable
11717 with unset AutoReset flag in each differencing medium.
11718 <note>Present and accepted since VirtualBox 4.0.</note>
11719 </desc>
11720 </const>
11721 </enum>
11722
11723 <enum
11724 name="MediumVariant"
11725 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
11726 >
11727 <desc>
11728 Virtual medium image variant. More than one flag may be set.
11729 <see><link to="IMedium"/></see>
11730 </desc>
11731
11732 <const name="Standard" value="0">
11733 <desc>
11734 No particular variant requested, results in using the backend default.
11735 </desc>
11736 </const>
11737 <const name="VmdkSplit2G" value="0x01">
11738 <desc>
11739 VMDK image split in chunks of less than 2GByte.
11740 </desc>
11741 </const>
11742 <const name="VmdkRawDisk" value="0x02">
11743 <desc>
11744 VMDK image representing a raw disk.
11745 </desc>
11746 </const>
11747 <const name="VmdkStreamOptimized" value="0x04">
11748 <desc>
11749 VMDK streamOptimized image. Special import/export format which is
11750 read-only/append-only.
11751 </desc>
11752 </const>
11753 <const name="VmdkESX" value="0x08">
11754 <desc>
11755 VMDK format variant used on ESX products.
11756 </desc>
11757 </const>
11758 <const name="Fixed" value="0x10000">
11759 <desc>
11760 Fixed image. Only allowed for base images.
11761 </desc>
11762 </const>
11763 <const name="Diff" value="0x20000">
11764 <desc>
11765 Differencing image. Only allowed for child images.
11766 </desc>
11767 </const>
11768 <const name="NoCreateDir" value="0x40000000">
11769 <desc>
11770 Special flag which suppresses automatic creation of the subdirectory.
11771 Only used when passing the medium variant as an input parameter.
11772 </desc>
11773 </const>
11774 </enum>
11775
11776 <interface
11777 name="IMediumAttachment" extends="$unknown"
11778 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
11779 wsmap="struct"
11780 >
11781 <desc>
11782 The IMediumAttachment interface links storage media to virtual machines.
11783 For each medium (<link to="IMedium"/>) which has been attached to a
11784 storage controller (<link to="IStorageController"/>) of a machine
11785 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
11786 method, one instance of IMediumAttachment is added to the machine's
11787 <link to="IMachine::mediumAttachments"/> array attribute.
11788
11789 Each medium attachment specifies the storage controller as well as a
11790 port and device number and the IMedium instance representing a virtual
11791 hard disk or floppy or DVD image.
11792
11793 For removable media (DVDs or floppies), there are two additional
11794 options. For one, the IMedium instance can be @c null to represent
11795 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
11796 secondly, the medium can be one of the pseudo-media for host drives
11797 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
11798
11799 <h3>Attaching Hard Disks</h3>
11800
11801 Hard disks are attached to virtual machines using the
11802 <link to="IMachine::attachDevice"/> method and detached using the
11803 <link to="IMachine::detachDevice"/> method. Depending on a medium's
11804 type (see <link to="IMedium::type" />), hard disks are attached either
11805 <i>directly</i> or <i>indirectly</i>.
11806
11807 When a hard disk is being attached directly, it is associated with the
11808 virtual machine and used for hard disk operations when the machine is
11809 running. When a hard disk is being attached indirectly, a new differencing
11810 hard disk linked to it is implicitly created and this differencing hard
11811 disk is associated with the machine and used for hard disk operations.
11812 This also means that if <link to="IMachine::attachDevice"/> performs
11813 a direct attachment then the same hard disk will be returned in response
11814 to the subsequent <link to="IMachine::getMedium"/> call; however if
11815 an indirect attachment is performed then
11816 <link to="IMachine::getMedium"/> will return the implicitly created
11817 differencing hard disk, not the original one passed to <link
11818 to="IMachine::attachDevice"/>. In detail:
11819
11820 <ul>
11821 <li><b>Normal base</b> hard disks that do not have children (i.e.
11822 differencing hard disks linked to them) and that are not already
11823 attached to virtual machines in snapshots are attached <b>directly</b>.
11824 Otherwise, they are attached <b>indirectly</b> because having
11825 dependent children or being part of the snapshot makes it impossible
11826 to modify hard disk contents without breaking the integrity of the
11827 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
11828 quickly determine the kind of the attachment for the given hard
11829 disk. Note that if a normal base hard disk is to be indirectly
11830 attached to a virtual machine with snapshots then a special
11831 procedure called <i>smart attachment</i> is performed (see below).</li>
11832 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
11833 they are attached <b>directly</b> if they do not have children and are
11834 not attached to virtual machines in snapshots, and <b>indirectly</b>
11835 otherwise. Note that the smart attachment procedure is never performed
11836 for differencing hard disks.</li>
11837 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
11838 they are designed to be non-writable. If an immutable hard disk is
11839 attached to a virtual machine with snapshots then a special
11840 procedure called smart attachment is performed (see below).</li>
11841 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
11842 also as designed. This also means that writethrough hard disks cannot
11843 have other hard disks linked to them at all.</li>
11844 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
11845 also as designed. This also means that shareable hard disks cannot
11846 have other hard disks linked to them at all. They behave almost
11847 like writethrough hard disks, except that shareable hard disks can
11848 be attached to several virtual machines which are running, allowing
11849 concurrent accesses. You need special cluster software running in
11850 the virtual machines to make use of such disks.</li>
11851 </ul>
11852
11853 Note that the same hard disk, regardless of its type, may be attached to
11854 more than one virtual machine at a time. In this case, the machine that is
11855 started first gains exclusive access to the hard disk and attempts to
11856 start other machines having this hard disk attached will fail until the
11857 first machine is powered down.
11858
11859 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
11860 that the given hard disk remains associated with the given machine after a
11861 successful <link to="IMachine::detachDevice"/> call until
11862 <link to="IMachine::saveSettings"/> is called to save all changes to
11863 machine settings to disk. This deferring is necessary to guarantee that
11864 the hard disk configuration may be restored at any time by a call to
11865 <link to="IMachine::discardSettings"/> before the settings
11866 are saved (committed).
11867
11868 Note that if <link to="IMachine::discardSettings"/> is called after
11869 indirectly attaching some hard disks to the machine but before a call to
11870 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
11871 all differencing hard disks implicitly created by
11872 <link to="IMachine::attachDevice"/> for these indirect attachments.
11873 Such implicitly created hard disks will also be immediately deleted when
11874 detached explicitly using the <link to="IMachine::detachDevice"/>
11875 call if it is made before <link to="IMachine::saveSettings"/>. This
11876 implicit deletion is safe because newly created differencing hard
11877 disks do not contain any user data.
11878
11879 However, keep in mind that detaching differencing hard disks that were
11880 implicitly created by <link to="IMachine::attachDevice"/>
11881 before the last <link to="IMachine::saveSettings"/> call will
11882 <b>not</b> implicitly delete them as they may already contain some data
11883 (for example, as a result of virtual machine execution). If these hard
11884 disks are no more necessary, the caller can always delete them explicitly
11885 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
11886 from this machine by the <link to="IMachine::saveSettings"/> call.
11887
11888 <h3>Smart Attachment</h3>
11889
11890 When normal base or immutable hard disks are indirectly attached to a
11891 virtual machine then some additional steps are performed to make sure the
11892 virtual machine will have the most recent "view" of the hard disk being
11893 attached. These steps include walking through the machine's snapshots
11894 starting from the current one and going through ancestors up to the first
11895 snapshot. Hard disks attached to the virtual machine in all
11896 of the encountered snapshots are checked whether they are descendants of
11897 the given normal base or immutable hard disk. The first found child (which
11898 is the differencing hard disk) will be used instead of the normal base or
11899 immutable hard disk as a parent for creating a new differencing hard disk
11900 that will be actually attached to the machine. And only if no descendants
11901 are found or if the virtual machine does not have any snapshots then the
11902 normal base or immutable hard disk will be used itself as a parent for
11903 this differencing hard disk.
11904
11905 It is easier to explain what smart attachment does using the
11906 following example:
11907 <pre>
11908BEFORE attaching B.vdi: AFTER attaching B.vdi:
11909
11910Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
11911 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
11912 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
11913 Snapshot 4 (none) Snapshot 4 (none)
11914 CurState (none) CurState (D3->D2.vdi)
11915
11916 NOT
11917 ...
11918 CurState (D3->B.vdi)
11919 </pre>
11920 The first column is the virtual machine configuration before the base hard
11921 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
11922 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
11923 mean that the hard disk that is actually attached to the machine is a
11924 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
11925 another hard disk, <tt>B.vdi</tt>.
11926
11927 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
11928 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
11929 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
11930 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
11931 it cannot be attached directly and needs an indirect attachment (i.e.
11932 implicit creation of a new differencing hard disk). Due to the smart
11933 attachment procedure, the new differencing hard disk
11934 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
11935 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
11936 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
11937 machine.
11938
11939 Note that if there is more than one descendant hard disk of the given base
11940 hard disk found in a snapshot, and there is an exact device, channel and
11941 bus match, then this exact match will be used. Otherwise, the youngest
11942 descendant will be picked up.
11943
11944 There is one more important aspect of the smart attachment procedure which
11945 is not related to snapshots at all. Before walking through the snapshots
11946 as described above, the backup copy of the current list of hard disk
11947 attachment is searched for descendants. This backup copy is created when
11948 the hard disk configuration is changed for the first time after the last
11949 <link to="IMachine::saveSettings"/> call and used by
11950 <link to="IMachine::discardSettings"/> to undo the recent hard disk
11951 changes. When such a descendant is found in this backup copy, it will be
11952 simply re-attached back, without creating a new differencing hard disk for
11953 it. This optimization is necessary to make it possible to re-attach the
11954 base or immutable hard disk to a different bus, channel or device slot
11955 without losing the contents of the differencing hard disk actually
11956 attached to the machine in place of it.
11957
11958 </desc>
11959
11960 <attribute name="medium" type="IMedium" readonly="yes">
11961 <desc>Medium object associated with this attachment; it
11962 can be @c null for removable devices.</desc>
11963 </attribute>
11964
11965 <attribute name="controller" type="wstring" readonly="yes">
11966 <desc>Name of the storage controller of this attachment; this
11967 refers to one of the controllers in <link to="IMachine::storageControllers" />
11968 by name.</desc>
11969 </attribute>
11970
11971 <attribute name="port" type="long" readonly="yes">
11972 <desc>Port number of this attachment.
11973 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
11974 </desc>
11975 </attribute>
11976
11977 <attribute name="device" type="long" readonly="yes">
11978 <desc>Device slot number of this attachment.
11979 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
11980 </desc>
11981 </attribute>
11982
11983 <attribute name="type" type="DeviceType" readonly="yes">
11984 <desc>Device type of this attachment.</desc>
11985 </attribute>
11986
11987 <attribute name="passthrough" type="boolean" readonly="yes">
11988 <desc>Pass I/O requests through to a device on the host.</desc>
11989 </attribute>
11990
11991 <attribute name="temporaryEject" type="boolean" readonly="yes">
11992 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
11993 </attribute>
11994
11995 <attribute name="isEjected" type="boolean" readonly="yes">
11996 <desc>Signals that the removable medium has been ejected. This is not
11997 necessarily equivalent to having a @c null medium association.</desc>
11998 </attribute>
11999
12000 <attribute name="nonRotational" type="boolean" readonly="yes">
12001 <desc>Whether the associated medium is non-rotational.</desc>
12002 </attribute>
12003
12004 <attribute name="discard" type="boolean" readonly="yes">
12005 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12006 </attribute>
12007
12008 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12009 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12010 </attribute>
12011
12012 </interface>
12013
12014 <interface
12015 name="IMedium" extends="$unknown"
12016 uuid="29989373-b111-4654-8493-2e1176cba890"
12017 wsmap="managed"
12018 >
12019 <desc>
12020 The IMedium interface represents virtual storage for a machine's
12021 hard disks, CD/DVD or floppy drives. It will typically represent
12022 a disk image on the host, for example a VDI or VMDK file representing
12023 a virtual hard disk, or an ISO or RAW file representing virtual
12024 removable media, but can also point to a network location (e.g.
12025 for iSCSI targets).
12026
12027 Instances of IMedium are connected to virtual machines by way of medium
12028 attachments, which link the storage medium to a particular device slot
12029 of a storage controller of the virtual machine.
12030 In the VirtualBox API, virtual storage is therefore always represented
12031 by the following chain of object links:
12032
12033 <ul>
12034 <li><link to="IMachine::storageControllers"/> contains an array of
12035 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12036 these are instances of <link to="IStorageController"/>).</li>
12037 <li><link to="IMachine::mediumAttachments"/> contains an array of
12038 medium attachments (instances of <link to="IMediumAttachment"/>
12039 created by <link to="IMachine::attachDevice" />),
12040 each containing a storage controller from the above array, a
12041 port/device specification, and an instance of IMedium representing
12042 the medium storage (image file).
12043
12044 For removable media, the storage medium is optional; a medium
12045 attachment with no medium represents a CD/DVD or floppy drive
12046 with no medium inserted. By contrast, hard disk attachments
12047 will always have an IMedium object attached.</li>
12048 <li>Each IMedium in turn points to a storage unit (such as a file
12049 on the host computer or a network resource) that holds actual
12050 data. This location is represented by the <link to="#location"/>
12051 attribute.</li>
12052 </ul>
12053
12054 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12055 new hard disk media can be created with the VirtualBox API using the
12056 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12057 disks (see below) are usually implicitly created by VirtualBox as
12058 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12059 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12060 should be created with external tools and then opened from within VirtualBox.
12061
12062 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12063 drive. In that case the <link to="#id" /> attribute contains the UUID of
12064 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12065
12066 <h3>Media registries</h3>
12067
12068 When a medium has been opened or created using one of the aforementioned
12069 APIs, it becomes "known" to VirtualBox. Known media can be attached
12070 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12071 They also appear in the global
12072 <link to="IVirtualBox::hardDisks" />,
12073 <link to="IVirtualBox::DVDImages" /> and
12074 <link to="IVirtualBox::floppyImages" /> arrays.
12075
12076 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12077 in the VirtualBox.xml file, which was shared between all machines and made
12078 transporting machines and their media from one host to another difficult.
12079
12080 Starting with VirtualBox 4.0, media are only added to a registry when they are
12081 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12082 backwards compatibility, which registry a medium is added to depends on which
12083 VirtualBox version created a machine:
12084
12085 <ul>
12086 <li>If the medium has first been attached to a machine which was created by
12087 VirtualBox 4.0 or later, it is added to that machine's media registry in
12088 the machine XML settings file. This way all information about a machine's
12089 media attachments is contained in a single file and can be transported
12090 easily.</li>
12091 <li>For older media attachments (i.e. if the medium was first attached to a
12092 machine which was created with a VirtualBox version before 4.0), media
12093 continue to be registered in the global VirtualBox settings file, for
12094 backwards compatibility.</li>
12095 </ul>
12096
12097 See <link to="IVirtualBox::openMedium" /> for more information.
12098
12099 Media are removed from media registries by the <link to="IMedium::close"/>,
12100 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12101
12102 <h3>Accessibility checks</h3>
12103
12104 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12105 method is called explicitly on a medium. This is done to make the VirtualBox object
12106 ready for serving requests as fast as possible and let the end-user
12107 application decide if it needs to check media accessibility right away or not.
12108
12109 As a result, when VirtualBox starts up (e.g. the VirtualBox
12110 object gets created for the first time), all known media are in the
12111 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12112 attribute is an empty string because no actual accessibility check has
12113 been made yet.
12114
12115 After calling <link to="#refreshState" />, a medium is considered
12116 <i>accessible</i> if its storage unit can be read. In that case, the
12117 <link to="#state"/> attribute has a value of "Created". If the storage
12118 unit cannot be read (for example, because it is located on a disconnected
12119 network resource, or was accidentally deleted outside VirtualBox),
12120 the medium is considered <i>inaccessible</i>, which is indicated by the
12121 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12122 obtained by reading the <link to="#lastAccessError"/> attribute.
12123
12124 <h3>Medium types</h3>
12125
12126 There are five types of medium behavior which are stored in the
12127 <link to="#type"/> attribute (see <link to="MediumType" />) and
12128 which define the medium's behavior with attachments and snapshots.
12129
12130 All media can be also divided in two groups: <i>base</i> media and
12131 <i>differencing</i> media. A base medium contains all sectors of the
12132 medium data in its own storage and therefore can be used independently.
12133 In contrast, a differencing medium is a "delta" to some other medium and
12134 contains only those sectors which differ from that other medium, which is
12135 then called a <i>parent</i>. The differencing medium is said to be
12136 <i>linked to</i> that parent. The parent may be itself a differencing
12137 medium, thus forming a chain of linked media. The last element in that
12138 chain must always be a base medium. Note that several differencing
12139 media may be linked to the same parent medium.
12140
12141 Differencing media can be distinguished from base media by querying the
12142 <link to="#parent"/> attribute: base media do not have parents they would
12143 depend on, so the value of this attribute is always @c null for them.
12144 Using this attribute, it is possible to walk up the medium tree (from the
12145 child medium to its parent). It is also possible to walk down the tree
12146 using the <link to="#children"/> attribute.
12147
12148 Note that the type of all differencing media is "normal"; all other
12149 values are meaningless for them. Base media may be of any type.
12150
12151 <h3>Automatic composition of the file name part</h3>
12152
12153 Another extension to the <link to="IMedium::location"/> attribute is that
12154 there is a possibility to cause VirtualBox to compose a unique value for
12155 the file name part of the location using the UUID of the hard disk. This
12156 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12157 e.g. before the storage unit is created, and works as follows. You set the
12158 value of the <link to="IMedium::location"/> attribute to a location
12159 specification which only contains the path specification but not the file
12160 name part and ends with either a forward slash or a backslash character.
12161 In response, VirtualBox will generate a new UUID for the hard disk and
12162 compose the file name using the following pattern:
12163 <pre>
12164 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12165 </pre>
12166 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12167 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12168 is the default extension for the storage format of this hard disk. After
12169 that, you may call any of the methods that create a new hard disk storage
12170 unit and they will use the generated UUID and file name.
12171 </desc>
12172
12173 <attribute name="id" type="uuid" mod="string" readonly="yes">
12174 <desc>
12175 UUID of the medium. For a newly created medium, this value is a randomly
12176 generated UUID.
12177
12178 <note>
12179 For media in one of MediumState_NotCreated, MediumState_Creating or
12180 MediumState_Deleting states, the value of this property is undefined
12181 and will most likely be an empty UUID.
12182 </note>
12183 </desc>
12184 </attribute>
12185
12186 <attribute name="description" type="wstring">
12187 <desc>
12188 Optional description of the medium. For a newly created medium the value
12189 of this attribute is an empty string.
12190
12191 Medium types that don't support this attribute will return E_NOTIMPL in
12192 attempt to get or set this attribute's value.
12193
12194 <note>
12195 For some storage types, reading this attribute may return an outdated
12196 (last known) value when <link to="#state"/> is <link
12197 to="MediumState_Inaccessible"/> or <link
12198 to="MediumState_LockedWrite"/> because the value of this attribute is
12199 stored within the storage unit itself. Also note that changing the
12200 attribute value is not possible in such case, as well as when the
12201 medium is the <link to="MediumState_LockedRead"/> state.
12202 </note>
12203 </desc>
12204 </attribute>
12205
12206 <attribute name="state" type="MediumState" readonly="yes">
12207 <desc>
12208 Returns the current medium state, which is the last state set by
12209 the accessibility check performed by <link to="#refreshState"/>.
12210 If that method has not yet been called on the medium, the state
12211 is "Inaccessible"; as opposed to truly inaccessible media, the
12212 value of <link to="#lastAccessError"/> will be an empty string in
12213 that case.
12214
12215 <note>As of version 3.1, this no longer performs an accessibility check
12216 automatically; call <link to="#refreshState"/> for that.
12217 </note>
12218 </desc>
12219 </attribute>
12220
12221 <attribute name="variant" type="unsigned long" readonly="yes">
12222 <desc>
12223 Returns the storage format variant information for this medium
12224 as a combination of the flags described at <link to="MediumVariant" />.
12225 Before <link to="#refreshState"/> is called this method returns
12226 an undefined value.
12227 </desc>
12228 </attribute>
12229
12230 <attribute name="location" type="wstring">
12231 <desc>
12232 Location of the storage unit holding medium data.
12233
12234 The format of the location string is medium type specific. For medium
12235 types using regular files in a host's file system, the location
12236 string is the full file name.
12237
12238 Some medium types may support changing the storage unit location by
12239 simply changing the value of this property. If this operation is not
12240 supported, the implementation will return E_NOTIMPL in attempt to set
12241 this attribute's value.
12242
12243 When setting a value of the location attribute which is a regular file
12244 in the host's file system, the given file name may be either relative to
12245 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12246 absolute. Note that if the given location specification does not contain
12247 the file extension part then a proper default extension will be
12248 automatically appended by the implementation depending on the medium type.
12249 </desc>
12250 </attribute>
12251
12252 <attribute name="name" type="wstring" readonly="yes">
12253 <desc>
12254 Name of the storage unit holding medium data.
12255
12256 The returned string is a short version of the <link to="#location"/>
12257 attribute that is suitable for representing the medium in situations
12258 where the full location specification is too long (such as lists
12259 and comboboxes in GUI frontends). This string is also used by frontends
12260 to sort the media list alphabetically when needed.
12261
12262 For example, for locations that are regular files in the host's file
12263 system, the value of this attribute is just the file name (+ extension),
12264 without the path specification.
12265
12266 Note that as opposed to the <link to="#location"/> attribute, the name
12267 attribute will not necessary be unique for a list of media of the
12268 given type and format.
12269 </desc>
12270 </attribute>
12271
12272 <attribute name="deviceType" type="DeviceType" readonly="yes">
12273 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12274 medium.</desc>
12275 </attribute>
12276
12277 <attribute name="hostDrive" type="boolean" readonly="yes">
12278 <desc>True if this corresponds to a drive on the host.</desc>
12279 </attribute>
12280
12281 <attribute name="size" type="long long" readonly="yes">
12282 <desc>
12283 Physical size of the storage unit used to hold medium data (in bytes).
12284
12285 <note>
12286 For media whose <link to="#state"/> is <link
12287 to="MediumState_Inaccessible"/>, the value of this property is the
12288 last known size. For <link to="MediumState_NotCreated"/> media,
12289 the returned value is zero.
12290 </note>
12291 </desc>
12292 </attribute>
12293
12294 <attribute name="format" type="wstring" readonly="yes">
12295 <desc>
12296 Storage format of this medium.
12297
12298 The value of this attribute is a string that specifies a backend used
12299 to store medium data. The storage format is defined when you create a
12300 new medium or automatically detected when you open an existing medium,
12301 and cannot be changed later.
12302
12303 The list of all storage formats supported by this VirtualBox
12304 installation can be obtained using
12305 <link to="ISystemProperties::mediumFormats"/>.
12306 </desc>
12307 </attribute>
12308
12309 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12310 <desc>
12311 Storage medium format object corresponding to this medium.
12312
12313 The value of this attribute is a reference to the medium format object
12314 that specifies the backend properties used to store medium data. The
12315 storage format is defined when you create a new medium or automatically
12316 detected when you open an existing medium, and cannot be changed later.
12317
12318 <note>@c null is returned if there is no associated medium format
12319 object. This can e.g. happen for medium objects representing host
12320 drives and other special medium objects.</note>
12321 </desc>
12322 </attribute>
12323
12324 <attribute name="type" type="MediumType">
12325 <desc>
12326 Type (role) of this medium.
12327
12328 The following constraints apply when changing the value of this
12329 attribute:
12330 <ul>
12331 <li>If a medium is attached to a virtual machine (either in the
12332 current state or in one of the snapshots), its type cannot be
12333 changed.
12334 </li>
12335 <li>As long as the medium has children, its type cannot be set
12336 to <link to="MediumType_Writethrough"/>.
12337 </li>
12338 <li>The type of all differencing media is
12339 <link to="MediumType_Normal"/> and cannot be changed.
12340 </li>
12341 </ul>
12342
12343 The type of a newly created or opened medium is set to
12344 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12345 which have a type of <link to="MediumType_Writethrough"/>.
12346 </desc>
12347 </attribute>
12348
12349 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12350 <desc>
12351 Returns which medium types can selected for this medium.
12352
12353 <result name="E_NOTIMPL">
12354 This attribute is not implemented at the moment.
12355 </result>
12356 </desc>
12357 </attribute>
12358
12359 <attribute name="parent" type="IMedium" readonly="yes">
12360 <desc>
12361 Parent of this medium (the medium this medium is directly based
12362 on).
12363
12364 Only differencing media have parents. For base (non-differencing)
12365 media, @c null is returned.
12366 </desc>
12367 </attribute>
12368
12369 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12370 <desc>
12371 Children of this medium (all differencing media directly based
12372 on this medium). A @c null array is returned if this medium
12373 does not have any children.
12374 </desc>
12375 </attribute>
12376
12377 <attribute name="base" type="IMedium" readonly="yes">
12378 <desc>
12379 Base medium of this medium.
12380
12381 If this is a differencing medium, its base medium is the medium
12382 the given medium branch starts from. For all other types of media, this
12383 property returns the medium object itself (i.e. the same object this
12384 property is read on).
12385 </desc>
12386 </attribute>
12387
12388 <attribute name="readOnly" type="boolean" readonly="yes">
12389 <desc>
12390 Returns @c true if this medium is read-only and @c false otherwise.
12391
12392 A medium is considered to be read-only when its contents cannot be
12393 modified without breaking the integrity of other parties that depend on
12394 this medium such as its child media or snapshots of virtual machines
12395 where this medium is attached to these machines. If there are no
12396 children and no such snapshots then there is no dependency and the
12397 medium is not read-only.
12398
12399 The value of this attribute can be used to determine the kind of the
12400 attachment that will take place when attaching this medium to a
12401 virtual machine. If the value is @c false then the medium will
12402 be attached directly. If the value is @c true then the medium
12403 will be attached indirectly by creating a new differencing child
12404 medium for that. See the interface description for more information.
12405
12406 Note that all <link to="MediumType_Immutable">Immutable</link> media
12407 are always read-only while all
12408 <link to="MediumType_Writethrough">Writethrough</link> media are
12409 always not.
12410
12411 <note>
12412 The read-only condition represented by this attribute is related to
12413 the medium type and usage, not to the current
12414 <link to="IMedium::state">medium state</link> and not to the read-only
12415 state of the storage unit.
12416 </note>
12417 </desc>
12418 </attribute>
12419
12420 <attribute name="logicalSize" type="long long" readonly="yes">
12421 <desc>
12422 Logical size of this medium (in bytes), as reported to the
12423 guest OS running inside the virtual machine this medium is
12424 attached to. The logical size is defined when the medium is created
12425 and cannot be changed later.
12426
12427 <note>
12428 Reading this property on a differencing medium will return the size
12429 of its <link to="#base"/> medium.
12430 </note>
12431 <note>
12432 For media whose state is <link to="#state"/> is <link
12433 to="MediumState_Inaccessible"/>, the value of this property is the
12434 last known logical size. For <link to="MediumState_NotCreated"/>
12435 media, the returned value is zero.
12436 </note>
12437 </desc>
12438 </attribute>
12439
12440 <attribute name="autoReset" type="boolean">
12441 <desc>
12442 Whether this differencing medium will be automatically reset each
12443 time a virtual machine it is attached to is powered up. This
12444 attribute is automatically set to @c true for the last
12445 differencing image of an "immutable" medium (see
12446 <link to="MediumType" />).
12447
12448 See <link to="#reset"/> for more information about resetting
12449 differencing media.
12450
12451 <note>
12452 Reading this property on a base (non-differencing) medium will
12453 always @c false. Changing the value of this property in this
12454 case is not supported.
12455 </note>
12456
12457 <result name="VBOX_E_NOT_SUPPORTED">
12458 This is not a differencing medium (when changing the attribute
12459 value).
12460 </result>
12461 </desc>
12462 </attribute>
12463
12464 <attribute name="lastAccessError" type="wstring" readonly="yes">
12465 <desc>
12466 Text message that represents the result of the last accessibility
12467 check performed by <link to="#refreshState"/>.
12468
12469 An empty string is returned if the last accessibility check
12470 was successful or has not yet been called. As a result, if
12471 <link to="#state" /> is "Inaccessible" and this attribute is empty,
12472 then <link to="#refreshState"/> has yet to be called; this is the
12473 default value of media after VirtualBox initialization.
12474 A non-empty string indicates a failure and should normally describe
12475 a reason of the failure (for example, a file read error).
12476 </desc>
12477 </attribute>
12478
12479 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
12480 <desc>
12481 Array of UUIDs of all machines this medium is attached to.
12482
12483 A @c null array is returned if this medium is not attached to any
12484 machine or to any machine's snapshot.
12485
12486 <note>
12487 The returned array will include a machine even if this medium is not
12488 attached to that machine in the current state but attached to it in
12489 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
12490 details.
12491 </note>
12492 </desc>
12493 </attribute>
12494
12495 <method name="setIds">
12496 <desc>
12497 Changes the UUID and parent UUID for a hard disk medium.
12498 </desc>
12499 <param name="setImageId" type="boolean" dir="in">
12500 <desc>
12501 Select whether a new image UUID is set or not.
12502 </desc>
12503 </param>
12504 <param name="imageId" type="uuid" mod="string" dir="in">
12505 <desc>
12506 New UUID for the image. If an empty string is passed, then a new
12507 UUID is automatically created, provided that @a setImageId is @c true.
12508 Specifying a zero UUID is not allowed.
12509 </desc>
12510 </param>
12511 <param name="setParentId" type="boolean" dir="in">
12512 <desc>
12513 Select whether a new parent UUID is set or not.
12514 </desc>
12515 </param>
12516 <param name="parentId" type="uuid" mod="string" dir="in">
12517 <desc>
12518 New parent UUID for the image. If an empty string is passed, then a
12519 new UUID is automatically created, provided @a setParentId is
12520 @c true. A zero UUID is valid.
12521 </desc>
12522 </param>
12523 <result name="E_INVALIDARG">
12524 Invalid parameter combination.
12525 </result>
12526 <result name="VBOX_E_NOT_SUPPORTED">
12527 Medium is not a hard disk medium.
12528 </result>
12529 </method>
12530
12531 <method name="refreshState">
12532 <desc>
12533 If the current medium state (see <link to="MediumState"/>) is one of
12534 "Created", "Inaccessible" or "LockedRead", then this performs an
12535 accessibility check on the medium and sets the value of the <link to="#state"/>
12536 attribute accordingly; that value is also returned for convenience.
12537
12538 For all other state values, this does not perform a refresh but returns
12539 the state only.
12540
12541 The refresh, if performed, may take a long time (several seconds or even
12542 minutes, depending on the storage unit location and format) because it performs an
12543 accessibility check of the storage unit. This check may cause a significant
12544 delay if the storage unit of the given medium is, for example, a file located
12545 on a network share which is not currently accessible due to connectivity
12546 problems. In that case, the call will not return until a timeout
12547 interval defined by the host OS for this operation expires. For this reason,
12548 it is recommended to never read this attribute on the main UI thread to avoid
12549 making the UI unresponsive.
12550
12551 If the last known state of the medium is "Created" and the accessibility
12552 check fails, then the state would be set to "Inaccessible", and
12553 <link to="#lastAccessError"/> may be used to get more details about the
12554 failure. If the state of the medium is "LockedRead", then it remains the
12555 same, and a non-empty value of <link to="#lastAccessError"/> will
12556 indicate a failed accessibility check in this case.
12557
12558 Note that not all medium states are applicable to all medium types.
12559 </desc>
12560 <param name="state" type="MediumState" dir="return">
12561 <desc>
12562 New medium state.
12563 </desc>
12564 </param>
12565 </method>
12566
12567 <method name="getSnapshotIds">
12568 <desc>
12569 Returns an array of UUIDs of all snapshots of the given machine where
12570 this medium is attached to.
12571
12572 If the medium is attached to the machine in the current state, then the
12573 first element in the array will always be the ID of the queried machine
12574 (i.e. the value equal to the @c machineId argument), followed by
12575 snapshot IDs (if any).
12576
12577 If the medium is not attached to the machine in the current state, then
12578 the array will contain only snapshot IDs.
12579
12580 The returned array may be @c null if this medium is not attached
12581 to the given machine at all, neither in the current state nor in one of
12582 the snapshots.
12583 </desc>
12584 <param name="machineId" type="uuid" mod="string" dir="in">
12585 <desc>
12586 UUID of the machine to query.
12587 </desc>
12588 </param>
12589 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
12590 <desc>
12591 Array of snapshot UUIDs of the given machine using this medium.
12592 </desc>
12593 </param>
12594 </method>
12595
12596 <method name="lockRead">
12597 <desc>
12598 Locks this medium for reading.
12599
12600 A read lock is shared: many clients can simultaneously lock the
12601 same medium for reading unless it is already locked for writing (see
12602 <link to="#lockWrite"/>) in which case an error is returned.
12603
12604 When the medium is locked for reading, it cannot be modified
12605 from within VirtualBox. This means that any method that changes
12606 the properties of this medium or contents of the storage unit
12607 will return an error (unless explicitly stated otherwise). That
12608 includes an attempt to start a virtual machine that wants to
12609 write to the the medium.
12610
12611 When the virtual machine is started up, it locks for reading all
12612 media it uses in read-only mode. If some medium cannot be locked
12613 for reading, the startup procedure will fail.
12614 A medium is typically locked for reading while it is used by a running
12615 virtual machine but has a depending differencing image that receives
12616 the actual write operations. This way one base medium can have
12617 multiple child differencing images which can be written to
12618 simultaneously. Read-only media such as DVD and floppy images are
12619 also locked for reading only (so they can be in use by multiple
12620 machines simultaneously).
12621
12622 A medium is also locked for reading when it is the source of a
12623 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12624
12625 The medium locked for reading must be unlocked using the <link
12626 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
12627 can be nested and must be followed by the same number of paired
12628 <link to="#unlockRead"/> calls.
12629
12630 This method sets the medium state (see <link to="#state"/>) to
12631 "LockedRead" on success. The medium's previous state must be
12632 one of "Created", "Inaccessible" or "LockedRead".
12633
12634 Locking an inaccessible medium is not an error; this method performs
12635 a logical lock that prevents modifications of this medium through
12636 the VirtualBox API, not a physical file-system lock of the underlying
12637 storage unit.
12638
12639 This method returns the current state of the medium
12640 <i>before</i> the operation.
12641
12642 <result name="VBOX_E_INVALID_OBJECT_STATE">
12643 Invalid medium state (e.g. not created, locked, inaccessible,
12644 creating, deleting).
12645 </result>
12646
12647 </desc>
12648 <param name="state" type="MediumState" dir="return">
12649 <desc>
12650 State of the medium after the operation.
12651 </desc>
12652 </param>
12653 </method>
12654
12655 <method name="unlockRead">
12656 <desc>
12657 Cancels the read lock previously set by <link to="#lockRead"/>.
12658
12659 For both success and failure, this method returns the current state
12660 of the medium <i>after</i> the operation.
12661
12662 See <link to="#lockRead"/> for more details.
12663
12664 <result name="VBOX_E_INVALID_OBJECT_STATE">
12665 Medium not locked for reading.
12666 </result>
12667
12668 </desc>
12669 <param name="state" type="MediumState" dir="return">
12670 <desc>
12671 State of the medium after the operation.
12672 </desc>
12673 </param>
12674 </method>
12675
12676 <method name="lockWrite">
12677 <desc>
12678 Locks this medium for writing.
12679
12680 A write lock, as opposed to <link to="#lockRead"/>, is
12681 exclusive: there may be only one client holding a write lock,
12682 and there may be no read locks while the write lock is held.
12683 As a result, read-locking fails if a write lock is held, and
12684 write-locking fails if either a read or another write lock is held.
12685
12686 When a medium is locked for writing, it cannot be modified
12687 from within VirtualBox, and it is not guaranteed that the values
12688 of its properties are up-to-date. Any method that changes the
12689 properties of this medium or contents of the storage unit will
12690 return an error (unless explicitly stated otherwise).
12691
12692 When a virtual machine is started up, it locks for writing all
12693 media it uses to write data to. If any medium could not be locked
12694 for writing, the startup procedure will fail. If a medium has
12695 differencing images, then while the machine is running, only
12696 the last ("leaf") differencing image is locked for writing,
12697 whereas its parents are locked for reading only.
12698
12699 A medium is also locked for writing when it is the target of a
12700 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12701
12702 The medium locked for writing must be unlocked using the <link
12703 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
12704
12705 This method sets the medium state (see <link to="#state"/>) to
12706 "LockedWrite" on success. The medium's previous state must be
12707 either "Created" or "Inaccessible".
12708
12709 Locking an inaccessible medium is not an error; this method performs
12710 a logical lock that prevents modifications of this medium through
12711 the VirtualBox API, not a physical file-system lock of the underlying
12712 storage unit.
12713
12714 For both, success and failure, this method returns the current
12715 state of the medium <i>before</i> the operation.
12716
12717 <result name="VBOX_E_INVALID_OBJECT_STATE">
12718 Invalid medium state (e.g. not created, locked, inaccessible,
12719 creating, deleting).
12720 </result>
12721
12722 </desc>
12723 <param name="state" type="MediumState" dir="return">
12724 <desc>
12725 State of the medium after the operation.
12726 </desc>
12727 </param>
12728 </method>
12729
12730 <method name="unlockWrite">
12731 <desc>
12732 Cancels the write lock previously set by <link to="#lockWrite"/>.
12733
12734 For both success and failure, this method returns the current
12735 state of the medium <i>after</i> the operation.
12736
12737 See <link to="#lockWrite"/> for more details.
12738
12739 <result name="VBOX_E_INVALID_OBJECT_STATE">
12740 Medium not locked for writing.
12741 </result>
12742
12743 </desc>
12744 <param name="state" type="MediumState" dir="return">
12745 <desc>
12746 State of the medium after the operation.
12747 </desc>
12748 </param>
12749 </method>
12750
12751 <method name="close">
12752 <desc>
12753 Closes this medium.
12754
12755 The medium must not be attached to any known virtual machine
12756 and must not have any known child media, otherwise the
12757 operation will fail.
12758
12759 When the medium is successfully closed, it is removed from
12760 the list of registered media, but its storage unit is not
12761 deleted. In particular, this means that this medium can
12762 later be opened again using the <link to="IVirtualBox::openMedium"/>
12763 call.
12764
12765 Note that after this method successfully returns, the given medium
12766 object becomes uninitialized. This means that any attempt
12767 to call any of its methods or attributes will fail with the
12768 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
12769
12770 <result name="VBOX_E_INVALID_OBJECT_STATE">
12771 Invalid medium state (other than not created, created or
12772 inaccessible).
12773 </result>
12774 <result name="VBOX_E_OBJECT_IN_USE">
12775 Medium attached to virtual machine.
12776 </result>
12777 <result name="VBOX_E_FILE_ERROR">
12778 Settings file not accessible.
12779 </result>
12780 <result name="VBOX_E_XML_ERROR">
12781 Could not parse the settings file.
12782 </result>
12783
12784 </desc>
12785 </method>
12786
12787 <!-- property methods -->
12788
12789 <method name="getProperty" const="yes">
12790 <desc>
12791 Returns the value of the custom medium property with the given name.
12792
12793 The list of all properties supported by the given medium format can
12794 be obtained with <link to="IMediumFormat::describeProperties"/>.
12795
12796 <note>If this method returns an empty string in @a value, the requested
12797 property is supported but currently not assigned any value.</note>
12798
12799 <result name="VBOX_E_OBJECT_NOT_FOUND">
12800 Requested property does not exist (not supported by the format).
12801 </result>
12802 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12803 </desc>
12804 <param name="name" type="wstring" dir="in">
12805 <desc>Name of the property to get.</desc>
12806 </param>
12807 <param name="value" type="wstring" dir="return">
12808 <desc>Current property value.</desc>
12809 </param>
12810 </method>
12811
12812 <method name="setProperty">
12813 <desc>
12814 Sets the value of the custom medium property with the given name.
12815
12816 The list of all properties supported by the given medium format can
12817 be obtained with <link to="IMediumFormat::describeProperties"/>.
12818
12819 <note>Setting the property value to @c null or an empty string is
12820 equivalent to deleting the existing value. A default value (if it is
12821 defined for this property) will be used by the format backend in this
12822 case.</note>
12823
12824 <result name="VBOX_E_OBJECT_NOT_FOUND">
12825 Requested property does not exist (not supported by the format).
12826 </result>
12827 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12828 </desc>
12829 <param name="name" type="wstring" dir="in">
12830 <desc>Name of the property to set.</desc>
12831 </param>
12832 <param name="value" type="wstring" dir="in">
12833 <desc>Property value to set.</desc>
12834 </param>
12835 </method>
12836
12837 <method name="getProperties" const="yes">
12838 <desc>
12839 Returns values for a group of properties in one call.
12840
12841 The names of the properties to get are specified using the @a names
12842 argument which is a list of comma-separated property names or
12843 an empty string if all properties are to be returned.
12844 <note>Currently the value of this argument is ignored and the method
12845 always returns all existing properties.</note>
12846
12847 The list of all properties supported by the given medium format can
12848 be obtained with <link to="IMediumFormat::describeProperties"/>.
12849
12850 The method returns two arrays, the array of property names corresponding
12851 to the @a names argument and the current values of these properties.
12852 Both arrays have the same number of elements with each element at the
12853 given index in the first array corresponds to an element at the same
12854 index in the second array.
12855
12856 For properties that do not have assigned values, an empty string is
12857 returned at the appropriate index in the @a returnValues array.
12858
12859 </desc>
12860 <param name="names" type="wstring" dir="in">
12861 <desc>
12862 Names of properties to get.
12863 </desc>
12864 </param>
12865 <param name="returnNames" type="wstring" safearray="yes" dir="out">
12866 <desc>Names of returned properties.</desc>
12867 </param>
12868 <param name="returnValues" type="wstring" safearray="yes" dir="return">
12869 <desc>Values of returned properties.</desc>
12870 </param>
12871 </method>
12872
12873 <method name="setProperties">
12874 <desc>
12875 Sets values for a group of properties in one call.
12876
12877 The names of the properties to set are passed in the @a names
12878 array along with the new values for them in the @a values array. Both
12879 arrays have the same number of elements with each element at the given
12880 index in the first array corresponding to an element at the same index
12881 in the second array.
12882
12883 If there is at least one property name in @a names that is not valid,
12884 the method will fail before changing the values of any other properties
12885 from the @a names array.
12886
12887 Using this method over <link to="#setProperty"/> is preferred if you
12888 need to set several properties at once since it is more efficient.
12889
12890 The list of all properties supported by the given medium format can
12891 be obtained with <link to="IMediumFormat::describeProperties"/>.
12892
12893 Setting the property value to @c null or an empty string is equivalent
12894 to deleting the existing value. A default value (if it is defined for
12895 this property) will be used by the format backend in this case.
12896 </desc>
12897 <param name="names" type="wstring" safearray="yes" dir="in">
12898 <desc>Names of properties to set.</desc>
12899 </param>
12900 <param name="values" type="wstring" safearray="yes" dir="in">
12901 <desc>Values of properties to set.</desc>
12902 </param>
12903 </method>
12904
12905 <!-- storage methods -->
12906
12907 <method name="createBaseStorage">
12908 <desc>
12909 Starts creating a hard disk storage unit (fixed/dynamic, according
12910 to the variant flags) in in the background. The previous storage unit
12911 created for this object, if any, must first be deleted using
12912 <link to="#deleteStorage"/>, otherwise the operation will fail.
12913
12914 Before the operation starts, the medium is placed in
12915 <link to="MediumState_Creating"/> state. If the create operation
12916 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
12917 state.
12918
12919 After the returned progress object reports that the operation has
12920 successfully completed, the medium state will be set to <link
12921 to="MediumState_Created"/>, the medium will be remembered by this
12922 VirtualBox installation and may be attached to virtual machines.
12923
12924 <result name="VBOX_E_NOT_SUPPORTED">
12925 The variant of storage creation operation is not supported. See <link
12926 to="IMediumFormat::capabilities"/>.
12927 </result>
12928 </desc>
12929 <param name="logicalSize" type="long long" dir="in">
12930 <desc>Maximum logical size of the medium in bytes.</desc>
12931 </param>
12932 <param name="variant" type="unsigned long" dir="in">
12933 <desc>Exact image variant which should be created (as a combination of
12934 <link to="MediumVariant" /> flags).</desc>
12935 </param>
12936 <param name="progress" type="IProgress" dir="return">
12937 <desc>Progress object to track the operation completion.</desc>
12938 </param>
12939 </method>
12940
12941 <method name="deleteStorage">
12942 <desc>
12943 Starts deleting the storage unit of this medium.
12944
12945 The medium must not be attached to any known virtual machine and must
12946 not have any known child media, otherwise the operation will fail.
12947 It will also fail if there is no storage unit to delete or if deletion
12948 is already in progress, or if the medium is being in use (locked for
12949 read or for write) or inaccessible. Therefore, the only valid state for
12950 this operation to succeed is <link to="MediumState_Created"/>.
12951
12952 Before the operation starts, the medium is placed in
12953 <link to="MediumState_Deleting"/> state and gets removed from the list
12954 of remembered hard disks (media registry). If the delete operation
12955 fails, the medium will be remembered again and placed back to
12956 <link to="MediumState_Created"/> state.
12957
12958 After the returned progress object reports that the operation is
12959 complete, the medium state will be set to
12960 <link to="MediumState_NotCreated"/> and you will be able to use one of
12961 the storage creation methods to create it again.
12962
12963 <see><link to="#close"/></see>
12964
12965 <result name="VBOX_E_OBJECT_IN_USE">
12966 Medium is attached to a virtual machine.
12967 </result>
12968 <result name="VBOX_E_NOT_SUPPORTED">
12969 Storage deletion is not allowed because neither of storage creation
12970 operations are supported. See
12971 <link to="IMediumFormat::capabilities"/>.
12972 </result>
12973
12974 <note>
12975 If the deletion operation fails, it is not guaranteed that the storage
12976 unit still exists. You may check the <link to="IMedium::state"/> value
12977 to answer this question.
12978 </note>
12979 </desc>
12980 <param name="progress" type="IProgress" dir="return">
12981 <desc>Progress object to track the operation completion.</desc>
12982 </param>
12983 </method>
12984
12985 <!-- diff methods -->
12986
12987 <method name="createDiffStorage">
12988 <desc>
12989 Starts creating an empty differencing storage unit based on this
12990 medium in the format and at the location defined by the @a target
12991 argument.
12992
12993 The target medium must be in <link to="MediumState_NotCreated"/>
12994 state (i.e. must not have an existing storage unit). Upon successful
12995 completion, this operation will set the type of the target medium to
12996 <link to="MediumType_Normal"/> and create a storage unit necessary to
12997 represent the differencing medium data in the given format (according
12998 to the storage format of the target object).
12999
13000 After the returned progress object reports that the operation is
13001 successfully complete, the target medium gets remembered by this
13002 VirtualBox installation and may be attached to virtual machines.
13003
13004 <note>
13005 The medium will be set to <link to="MediumState_LockedRead"/>
13006 state for the duration of this operation.
13007 </note>
13008 <result name="VBOX_E_OBJECT_IN_USE">
13009 Medium not in @c NotCreated state.
13010 </result>
13011 </desc>
13012 <param name="target" type="IMedium" dir="in">
13013 <desc>Target medium.</desc>
13014 </param>
13015 <param name="variant" type="unsigned long" dir="in">
13016 <desc>Exact image variant which should be created (as a combination of
13017 <link to="MediumVariant" /> flags).</desc>
13018 </param>
13019 <param name="progress" type="IProgress" dir="return">
13020 <desc>Progress object to track the operation completion.</desc>
13021 </param>
13022 </method>
13023
13024 <method name="mergeTo">
13025 <desc>
13026 Starts merging the contents of this medium and all intermediate
13027 differencing media in the chain to the given target medium.
13028
13029 The target medium must be either a descendant of this medium or
13030 its ancestor (otherwise this method will immediately return a failure).
13031 It follows that there are two logical directions of the merge operation:
13032 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13033 ancestor (<i>backward merge</i>). Let us consider the following medium
13034 chain:
13035
13036 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13037
13038 Here, calling this method on the <tt>Base</tt> medium object with
13039 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13040 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13041 merge. Note that in both cases the contents of the resulting medium
13042 will be the same, the only difference is the medium object that takes
13043 the result of the merge operation. In case of the forward merge in the
13044 above example, the result will be written to <tt>Diff_2</tt>; in case of
13045 the backward merge, the result will be written to <tt>Base</tt>. In
13046 other words, the result of the operation is always stored in the target
13047 medium.
13048
13049 Upon successful operation completion, the storage units of all media in
13050 the chain between this (source) medium and the target medium, including
13051 the source medium itself, will be automatically deleted and the
13052 relevant medium objects (including this medium) will become
13053 uninitialized. This means that any attempt to call any of
13054 their methods or attributes will fail with the
13055 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13056 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13057 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13058 Note that <tt>Diff_2</tt> in this case will become a base medium
13059 itself since it will no longer be based on any other medium.
13060
13061 Considering the above, all of the following conditions must be met in
13062 order for the merge operation to succeed:
13063 <ul>
13064 <li>
13065 Neither this (source) medium nor any intermediate
13066 differencing medium in the chain between it and the target
13067 medium is attached to any virtual machine.
13068 </li>
13069 <li>
13070 Neither the source medium nor the target medium is an
13071 <link to="MediumType_Immutable"/> medium.
13072 </li>
13073 <li>
13074 The part of the medium tree from the source medium to the
13075 target medium is a linear chain, i.e. all medium in this
13076 chain have exactly one child which is the next medium in this
13077 chain. The only exception from this rule is the target medium in
13078 the forward merge operation; it is allowed to have any number of
13079 child media because the merge operation will not change its
13080 logical contents (as it is seen by the guest OS or by children).
13081 </li>
13082 <li>
13083 None of the involved media are in
13084 <link to="MediumState_LockedRead"/> or
13085 <link to="MediumState_LockedWrite"/> state.
13086 </li>
13087 </ul>
13088
13089 <note>
13090 This (source) medium and all intermediates will be placed to <link
13091 to="MediumState_Deleting"/> state and the target medium will be
13092 placed to <link to="MediumState_LockedWrite"/> state and for the
13093 duration of this operation.
13094 </note>
13095 </desc>
13096 <param name="target" type="IMedium" dir="in">
13097 <desc>Target medium.</desc>
13098 </param>
13099 <param name="progress" type="IProgress" dir="return">
13100 <desc>Progress object to track the operation completion.</desc>
13101 </param>
13102 </method>
13103
13104 <!-- clone method -->
13105
13106 <method name="cloneTo">
13107 <desc>
13108 Starts creating a clone of this medium in the format and at the
13109 location defined by the @a target argument.
13110
13111 The target medium must be either in <link to="MediumState_NotCreated"/>
13112 state (i.e. must not have an existing storage unit) or in
13113 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13114 big enough to hold the data or else the copy will be partial). Upon
13115 successful completion, the cloned medium will contain exactly the
13116 same sector data as the medium being cloned, except that in the
13117 first case a new UUID for the clone will be randomly generated, and in
13118 the second case the UUID will remain unchanged.
13119
13120 The @a parent argument defines which medium will be the parent
13121 of the clone. Passing a @c null reference indicates that the clone will
13122 be a base image, i.e. completely independent. It is possible to specify
13123 an arbitrary medium for this parameter, including the parent of the
13124 medium which is being cloned. Even cloning to a child of the source
13125 medium is possible. Note that when cloning to an existing image, the
13126 @a parent argument is ignored.
13127
13128 After the returned progress object reports that the operation is
13129 successfully complete, the target medium gets remembered by this
13130 VirtualBox installation and may be attached to virtual machines.
13131
13132 <note>
13133 This medium will be placed to <link to="MediumState_LockedRead"/>
13134 state for the duration of this operation.
13135 </note>
13136 <result name="E_NOTIMPL">
13137 The specified cloning variant is not supported at the moment.
13138 </result>
13139 </desc>
13140 <param name="target" type="IMedium" dir="in">
13141 <desc>Target medium.</desc>
13142 </param>
13143 <param name="variant" type="unsigned long" dir="in">
13144 <desc>Exact image variant which should be created (as a combination of
13145 <link to="MediumVariant" /> flags).</desc>
13146 </param>
13147 <param name="parent" type="IMedium" dir="in">
13148 <desc>Parent of the cloned medium.</desc>
13149 </param>
13150 <param name="progress" type="IProgress" dir="return">
13151 <desc>Progress object to track the operation completion.</desc>
13152 </param>
13153 </method>
13154
13155 <method name="cloneToBase">
13156 <desc>
13157 Starts creating a clone of this medium in the format and at the
13158 location defined by the @a target argument.
13159
13160 The target medium must be either in <link to="MediumState_NotCreated"/>
13161 state (i.e. must not have an existing storage unit) or in
13162 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13163 big enough to hold the data or else the copy will be partial). Upon
13164 successful completion, the cloned medium will contain exactly the
13165 same sector data as the medium being cloned, except that in the
13166 first case a new UUID for the clone will be randomly generated, and in
13167 the second case the UUID will remain unchanged.
13168
13169 The @a parent argument defines which medium will be the parent
13170 of the clone. In this case the clone will be a base image, i.e.
13171 completely independent. It is possible to specify an arbitrary
13172 medium for this parameter, including the parent of the
13173 medium which is being cloned. Even cloning to a child of the source
13174 medium is possible. Note that when cloning to an existing image, the
13175 @a parent argument is ignored.
13176
13177 After the returned progress object reports that the operation is
13178 successfully complete, the target medium gets remembered by this
13179 VirtualBox installation and may be attached to virtual machines.
13180
13181 <note>
13182 This medium will be placed to <link to="MediumState_LockedRead"/>
13183 state for the duration of this operation.
13184 </note>
13185 <result name="E_NOTIMPL">
13186 The specified cloning variant is not supported at the moment.
13187 </result>
13188 </desc>
13189 <param name="target" type="IMedium" dir="in">
13190 <desc>Target medium.</desc>
13191 </param>
13192 <param name="variant" type="unsigned long" dir="in">
13193 <desc>Exact image variant which should be created (as a combination of
13194 <link to="MediumVariant" /> flags).</desc>
13195 </param>
13196 <param name="progress" type="IProgress" dir="return">
13197 <desc>Progress object to track the operation completion.</desc>
13198 </param>
13199 </method>
13200
13201 <!-- other methods -->
13202
13203 <method name="compact">
13204 <desc>
13205 Starts compacting of this medium. This means that the medium is
13206 transformed into a possibly more compact storage representation.
13207 This potentially creates temporary images, which can require a
13208 substantial amount of additional disk space.
13209
13210 This medium will be placed to <link to="MediumState_LockedWrite"/>
13211 state and all its parent media (if any) will be placed to
13212 <link to="MediumState_LockedRead"/> state for the duration of this
13213 operation.
13214
13215 Please note that the results can be either returned straight away,
13216 or later as the result of the background operation via the object
13217 returned via the @a progress parameter.
13218
13219 <result name="VBOX_E_NOT_SUPPORTED">
13220 Medium format does not support compacting (but potentially
13221 needs it).
13222 </result>
13223 </desc>
13224 <param name="progress" type="IProgress" dir="return">
13225 <desc>Progress object to track the operation completion.</desc>
13226 </param>
13227 </method>
13228
13229 <method name="resize">
13230 <desc>
13231 Starts resizing this medium. This means that the nominal size of the
13232 medium is set to the new value. Both increasing and decreasing the
13233 size is possible, and there are no safety checks, since VirtualBox
13234 does not make any assumptions about the medium contents.
13235
13236 Resizing usually needs additional disk space, and possibly also
13237 some temporary disk space. Note that resize does not create a full
13238 temporary copy of the medium, so the additional disk space requirement
13239 is usually much lower than using the clone operation.
13240
13241 This medium will be placed to <link to="MediumState_LockedWrite"/>
13242 state for the duration of this operation.
13243
13244 Please note that the results can be either returned straight away,
13245 or later as the result of the background operation via the object
13246 returned via the @a progress parameter.
13247
13248 <result name="VBOX_E_NOT_SUPPORTED">
13249 Medium format does not support resizing.
13250 </result>
13251 </desc>
13252 <param name="logicalSize" type="long long" dir="in">
13253 <desc>New nominal capacity of the medium in bytes.</desc>
13254 </param>
13255 <param name="progress" type="IProgress" dir="return">
13256 <desc>Progress object to track the operation completion.</desc>
13257 </param>
13258 </method>
13259
13260 <method name="reset">
13261 <desc>
13262 Starts erasing the contents of this differencing medium.
13263
13264 This operation will reset the differencing medium to its initial
13265 state when it does not contain any sector data and any read operation is
13266 redirected to its parent medium. This automatically gets called
13267 during VM power-up for every medium whose <link to="#autoReset" />
13268 attribute is @c true.
13269
13270 The medium will be write-locked for the duration of this operation (see
13271 <link to="#lockWrite" />).
13272
13273 <result name="VBOX_E_NOT_SUPPORTED">
13274 This is not a differencing medium.
13275 </result>
13276 <result name="VBOX_E_INVALID_OBJECT_STATE">
13277 Medium is not in <link to="MediumState_Created"/> or
13278 <link to="MediumState_Inaccessible"/> state.
13279 </result>
13280 </desc>
13281 <param name="progress" type="IProgress" dir="return">
13282 <desc>Progress object to track the operation completion.</desc>
13283 </param>
13284 </method>
13285
13286 </interface>
13287
13288
13289 <!--
13290 // IMediumFormat
13291 /////////////////////////////////////////////////////////////////////////
13292 -->
13293
13294 <enum
13295 name="DataType"
13296 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13297 >
13298 <const name="Int32" value="0"/>
13299 <const name="Int8" value="1"/>
13300 <const name="String" value="2"/>
13301 </enum>
13302
13303 <enum
13304 name="DataFlags"
13305 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13306 >
13307 <const name="None" value="0x00"/>
13308 <const name="Mandatory" value="0x01"/>
13309 <const name="Expert" value="0x02"/>
13310 <const name="Array" value="0x04"/>
13311 <const name="FlagMask" value="0x07"/>
13312 </enum>
13313
13314 <enum
13315 name="MediumFormatCapabilities"
13316 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13317 >
13318 <desc>
13319 Medium format capability flags.
13320 </desc>
13321
13322 <const name="Uuid" value="0x01">
13323 <desc>
13324 Supports UUIDs as expected by VirtualBox code.
13325 </desc>
13326 </const>
13327
13328 <const name="CreateFixed" value="0x02">
13329 <desc>
13330 Supports creating fixed size images, allocating all space instantly.
13331 </desc>
13332 </const>
13333
13334 <const name="CreateDynamic" value="0x04">
13335 <desc>
13336 Supports creating dynamically growing images, allocating space on
13337 demand.
13338 </desc>
13339 </const>
13340
13341 <const name="CreateSplit2G" value="0x08">
13342 <desc>
13343 Supports creating images split in chunks of a bit less than 2 GBytes.
13344 </desc>
13345 </const>
13346
13347 <const name="Differencing" value="0x10">
13348 <desc>
13349 Supports being used as a format for differencing media (see <link
13350 to="IMedium::createDiffStorage"/>).
13351 </desc>
13352 </const>
13353
13354 <const name="Asynchronous" value="0x20">
13355 <desc>
13356 Supports asynchronous I/O operations for at least some configurations.
13357 </desc>
13358 </const>
13359
13360 <const name="File" value="0x40">
13361 <desc>
13362 The format backend operates on files (the <link to="IMedium::location"/>
13363 attribute of the medium specifies a file used to store medium
13364 data; for a list of supported file extensions see
13365 <link to="IMediumFormat::describeFileExtensions"/>).
13366 </desc>
13367 </const>
13368
13369 <const name="Properties" value="0x80">
13370 <desc>
13371 The format backend uses the property interface to configure the storage
13372 location and properties (the <link to="IMediumFormat::describeProperties"/>
13373 method is used to get access to properties supported by the given medium format).
13374 </desc>
13375 </const>
13376
13377 <const name="TcpNetworking" value="0x100">
13378 <desc>
13379 The format backend uses the TCP networking interface for network access.
13380 </desc>
13381 </const>
13382
13383 <const name="VFS" value="0x200">
13384 <desc>
13385 The format backend supports virtual filesystem functionality.
13386 </desc>
13387 </const>
13388
13389 <const name="CapabilityMask" value="0x3FF"/>
13390 </enum>
13391
13392 <interface
13393 name="IMediumFormat" extends="$unknown"
13394 uuid="9bd5b655-ea47-4637-99f3-aad0948be35b"
13395 wsmap="managed"
13396 >
13397 <desc>
13398 The IMediumFormat interface represents a medium format.
13399
13400 Each medium format has an associated backend which is used to handle
13401 media stored in this format. This interface provides information
13402 about the properties of the associated backend.
13403
13404 Each medium format is identified by a string represented by the
13405 <link to="#id"/> attribute. This string is used in calls like
13406 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13407 format.
13408
13409 The list of all supported medium formats can be obtained using
13410 <link to="ISystemProperties::mediumFormats"/>.
13411
13412 <see><link to="IMedium"/></see>
13413 </desc>
13414
13415 <attribute name="id" type="wstring" readonly="yes">
13416 <desc>
13417 Identifier of this format.
13418
13419 The format identifier is a non-@c null non-empty ASCII string. Note that
13420 this string is case-insensitive. This means that, for example, all of
13421 the following strings:
13422 <pre>
13423 "VDI"
13424 "vdi"
13425 "VdI"</pre>
13426 refer to the same medium format.
13427
13428 This string is used in methods of other interfaces where it is necessary
13429 to specify a medium format, such as
13430 <link to="IVirtualBox::createHardDisk"/>.
13431 </desc>
13432 </attribute>
13433
13434 <attribute name="name" type="wstring" readonly="yes">
13435 <desc>
13436 Human readable description of this format.
13437
13438 Mainly for use in file open dialogs.
13439 </desc>
13440 </attribute>
13441
13442 <attribute name="capabilities" type="unsigned long" readonly="yes">
13443 <desc>
13444 Capabilities of the format as a set of bit flags.
13445
13446 For the meaning of individual capability flags see
13447 <link to="MediumFormatCapabilities"/>.
13448 </desc>
13449 </attribute>
13450
13451 <method name="describeFileExtensions">
13452 <desc>
13453 Returns two arrays describing the supported file extensions.
13454
13455 The first array contains the supported extensions and the seconds one
13456 the type each extension supports. Both have the same size.
13457
13458 Note that some backends do not work on files, so this array may be
13459 empty.
13460
13461 <see><link to="IMediumFormat::capabilities"/></see>
13462 </desc>
13463 <param name="extensions" type="wstring" safearray="yes" dir="out">
13464 <desc>The array of supported extensions.</desc>
13465 </param>
13466 <param name="type" type="DeviceType" safearray="yes" dir="out">
13467 <desc>The array which indicates the device type for every given extension.</desc>
13468 </param>
13469 </method>
13470
13471 <method name="describeProperties" const="yes">
13472 <desc>
13473 Returns several arrays describing the properties supported by this
13474 format.
13475
13476 An element with the given index in each array describes one
13477 property. Thus, the number of elements in each returned array is the
13478 same and corresponds to the number of supported properties.
13479
13480 The returned arrays are filled in only if the
13481 <link to="MediumFormatCapabilities_Properties"/> flag is set.
13482 All arguments must be non-@c null.
13483
13484 <see><link to="DataType"/>, <link to="DataFlags"/></see>
13485 </desc>
13486
13487 <param name="names" type="wstring" safearray="yes" dir="out">
13488 <desc>Array of property names.</desc>
13489 </param>
13490 <param name="description" type="wstring" safearray="yes" dir="out">
13491 <desc>Array of property descriptions.</desc>
13492 </param>
13493 <param name="types" type="DataType" safearray="yes" dir="out">
13494 <desc>Array of property types.</desc>
13495 </param>
13496 <param name="flags" type="unsigned long" safearray="yes" dir="out">
13497 <desc>Array of property flags.</desc>
13498 </param>
13499 <param name="defaults" type="wstring" safearray="yes" dir="out">
13500 <desc>Array of default property values.</desc>
13501 </param>
13502 </method>
13503
13504 </interface>
13505
13506
13507 <!--
13508 // IKeyboard
13509 /////////////////////////////////////////////////////////////////////////
13510 -->
13511
13512 <interface
13513 name="IKeyboard" extends="$unknown"
13514 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
13515 wsmap="managed"
13516 >
13517 <desc>
13518 The IKeyboard interface represents the virtual machine's keyboard. Used
13519 in <link to="IConsole::keyboard"/>.
13520
13521 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
13522 to the virtual machine.
13523
13524 </desc>
13525 <method name="putScancode">
13526 <desc>Sends a scancode to the keyboard.
13527
13528 <result name="VBOX_E_IPRT_ERROR">
13529 Could not send scan code to virtual keyboard.
13530 </result>
13531
13532 </desc>
13533 <param name="scancode" type="long" dir="in"/>
13534 </method>
13535
13536 <method name="putScancodes">
13537 <desc>Sends an array of scancodes to the keyboard.
13538
13539 <result name="VBOX_E_IPRT_ERROR">
13540 Could not send all scan codes to virtual keyboard.
13541 </result>
13542
13543 </desc>
13544 <param name="scancodes" type="long" dir="in" safearray="yes"/>
13545 <param name="codesStored" type="unsigned long" dir="return"/>
13546 </method>
13547
13548 <method name="putCAD">
13549 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
13550 function is nothing special, it is just a convenience function
13551 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
13552
13553 <result name="VBOX_E_IPRT_ERROR">
13554 Could not send all scan codes to virtual keyboard.
13555 </result>
13556
13557 </desc>
13558 </method>
13559
13560 <attribute name="eventSource" type="IEventSource" readonly="yes">
13561 <desc>
13562 Event source for keyboard events.
13563 </desc>
13564 </attribute>
13565
13566 </interface>
13567
13568
13569 <!--
13570 // IMouse
13571 /////////////////////////////////////////////////////////////////////////
13572 -->
13573
13574 <enum
13575 name="MouseButtonState"
13576 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
13577 >
13578 <desc>
13579 Mouse button state.
13580 </desc>
13581
13582 <const name="LeftButton" value="0x01"/>
13583 <const name="RightButton" value="0x02"/>
13584 <const name="MiddleButton" value="0x04"/>
13585 <const name="WheelUp" value="0x08"/>
13586 <const name="WheelDown" value="0x10"/>
13587 <const name="XButton1" value="0x20"/>
13588 <const name="XButton2" value="0x40"/>
13589 <const name="MouseStateMask" value="0x7F"/>
13590 </enum>
13591
13592 <interface
13593 name="IMouse" extends="$unknown"
13594 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
13595 wsmap="managed"
13596 >
13597 <desc>
13598 The IMouse interface represents the virtual machine's mouse. Used in
13599 <link to="IConsole::mouse"/>.
13600
13601 Through this interface, the virtual machine's virtual mouse can be
13602 controlled.
13603 </desc>
13604
13605 <attribute name="absoluteSupported" type="boolean" readonly="yes">
13606 <desc>
13607 Whether the guest OS supports absolute mouse pointer positioning
13608 or not.
13609 <note>
13610 You can use the <link to="IMouseCapabilityChangedEvent"/>
13611 event to be instantly informed about changes of this attribute
13612 during virtual machine execution.
13613 </note>
13614 <see><link to="#putMouseEventAbsolute"/></see>
13615 </desc>
13616 </attribute>
13617
13618 <attribute name="relativeSupported" type="boolean" readonly="yes">
13619 <desc>
13620 Whether the guest OS supports relative mouse pointer positioning
13621 or not.
13622 <note>
13623 You can use the <link to="IMouseCapabilityChangedEvent"/>
13624 event to be instantly informed about changes of this attribute
13625 during virtual machine execution.
13626 </note>
13627 <see><link to="#putMouseEvent"/></see>
13628 </desc>
13629 </attribute>
13630
13631 <attribute name="needsHostCursor" type="boolean" readonly="yes">
13632 <desc>
13633 Whether the guest OS can currently switch to drawing it's own mouse
13634 cursor on demand.
13635 <note>
13636 You can use the <link to="IMouseCapabilityChangedEvent"/>
13637 event to be instantly informed about changes of this attribute
13638 during virtual machine execution.
13639 </note>
13640 <see><link to="#putMouseEvent"/></see>
13641 </desc>
13642 </attribute>
13643
13644 <method name="putMouseEvent">
13645 <desc>
13646 Initiates a mouse event using relative pointer movements
13647 along x and y axis.
13648
13649 <result name="E_ACCESSDENIED">
13650 Console not powered up.
13651 </result>
13652 <result name="VBOX_E_IPRT_ERROR">
13653 Could not send mouse event to virtual mouse.
13654 </result>
13655
13656 </desc>
13657
13658 <param name="dx" type="long" dir="in">
13659 <desc>
13660 Amount of pixels the mouse should move to the right.
13661 Negative values move the mouse to the left.
13662 </desc>
13663 </param>
13664 <param name="dy" type="long" dir="in">
13665 <desc>
13666 Amount of pixels the mouse should move downwards.
13667 Negative values move the mouse upwards.
13668 </desc>
13669 </param>
13670 <param name="dz" type="long" dir="in">
13671 <desc>
13672 Amount of mouse wheel moves.
13673 Positive values describe clockwise wheel rotations,
13674 negative values describe counterclockwise rotations.
13675 </desc>
13676 </param>
13677 <param name="dw" type="long" dir="in">
13678 <desc>
13679 Amount of horizontal mouse wheel moves.
13680 Positive values describe a movement to the left,
13681 negative values describe a movement to the right.
13682 </desc>
13683 </param>
13684 <param name="buttonState" type="long" dir="in">
13685 <desc>
13686 The current state of mouse buttons. Every bit represents
13687 a mouse button as follows:
13688 <table>
13689 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13690 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13691 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13692 </table>
13693 A value of <tt>1</tt> means the corresponding button is pressed.
13694 otherwise it is released.
13695 </desc>
13696 </param>
13697 </method>
13698
13699 <method name="putMouseEventAbsolute">
13700 <desc>
13701 Positions the mouse pointer using absolute x and y coordinates.
13702 These coordinates are expressed in pixels and
13703 start from <tt>[1,1]</tt> which corresponds to the top left
13704 corner of the virtual display.
13705
13706 <result name="E_ACCESSDENIED">
13707 Console not powered up.
13708 </result>
13709 <result name="VBOX_E_IPRT_ERROR">
13710 Could not send mouse event to virtual mouse.
13711 </result>
13712
13713 <note>
13714 This method will have effect only if absolute mouse
13715 positioning is supported by the guest OS.
13716 </note>
13717
13718 <see><link to="#absoluteSupported"/></see>
13719 </desc>
13720
13721 <param name="x" type="long" dir="in">
13722 <desc>
13723 X coordinate of the pointer in pixels, starting from @c 1.
13724 </desc>
13725 </param>
13726 <param name="y" type="long" dir="in">
13727 <desc>
13728 Y coordinate of the pointer in pixels, starting from @c 1.
13729 </desc>
13730 </param>
13731 <param name="dz" type="long" dir="in">
13732 <desc>
13733 Amount of mouse wheel moves.
13734 Positive values describe clockwise wheel rotations,
13735 negative values describe counterclockwise rotations.
13736 </desc>
13737 </param>
13738 <param name="dw" type="long" dir="in">
13739 <desc>
13740 Amount of horizontal mouse wheel moves.
13741 Positive values describe a movement to the left,
13742 negative values describe a movement to the right.
13743 </desc>
13744 </param>
13745 <param name="buttonState" type="long" dir="in">
13746 <desc>
13747 The current state of mouse buttons. Every bit represents
13748 a mouse button as follows:
13749 <table>
13750 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13751 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13752 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13753 </table>
13754 A value of @c 1 means the corresponding button is pressed.
13755 otherwise it is released.
13756 </desc>
13757 </param>
13758 </method>
13759
13760 <attribute name="eventSource" type="IEventSource" readonly="yes">
13761 <desc>
13762 Event source for mouse events.
13763 </desc>
13764 </attribute>
13765
13766 </interface>
13767
13768 <!--
13769 // IDisplay
13770 /////////////////////////////////////////////////////////////////////////
13771 -->
13772
13773 <enum
13774 name="FramebufferPixelFormat"
13775 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
13776 >
13777 <desc>
13778 Format of the video memory buffer. Constants represented by this enum can
13779 be used to test for particular values of <link
13780 to="IFramebuffer::pixelFormat"/>. See also <link
13781 to="IFramebuffer::requestResize"/>.
13782
13783 See also www.fourcc.org for more information about FOURCC pixel formats.
13784 </desc>
13785
13786 <const name="Opaque" value="0">
13787 <desc>
13788 Unknown buffer format (the user may not assume any particular format of
13789 the buffer).
13790 </desc>
13791 </const>
13792 <const name="FOURCC_RGB" value="0x32424752">
13793 <desc>
13794 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
13795 bit layout).
13796 </desc>
13797 </const>
13798 </enum>
13799
13800 <interface
13801 name="IFramebuffer" extends="$unknown"
13802 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
13803 wsmap="suppress"
13804 >
13805 <attribute name="address" type="octet" mod="ptr" readonly="yes">
13806 <desc>Address of the start byte of the frame buffer.</desc>
13807 </attribute>
13808
13809 <attribute name="width" type="unsigned long" readonly="yes">
13810 <desc>Frame buffer width, in pixels.</desc>
13811 </attribute>
13812
13813 <attribute name="height" type="unsigned long" readonly="yes">
13814 <desc>Frame buffer height, in pixels.</desc>
13815 </attribute>
13816
13817 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
13818 <desc>
13819 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
13820 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
13821 are: 8, 15, 16, 24 and 32.
13822 </desc>
13823 </attribute>
13824
13825 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
13826 <desc>
13827 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
13828 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
13829 size of the scan line must be aligned to 32 bits.
13830 </desc>
13831 </attribute>
13832
13833 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
13834 <desc>
13835 Frame buffer pixel format. It's either one of the values defined by <link
13836 to="FramebufferPixelFormat"/> or a raw FOURCC code.
13837 <note>
13838 This attribute must never return <link
13839 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
13840 <link to="#address"/> points to must be always known.
13841 </note>
13842 </desc>
13843 </attribute>
13844
13845 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
13846 <desc>
13847 Defines whether this frame buffer uses the virtual video card's memory
13848 buffer (guest VRAM) directly or not. See <link
13849 to="IFramebuffer::requestResize"/> for more information.
13850 </desc>
13851 </attribute>
13852
13853 <attribute name="heightReduction" type="unsigned long" readonly="yes">
13854 <desc>
13855 Hint from the frame buffer about how much of the standard
13856 screen height it wants to use for itself. This information is
13857 exposed to the guest through the VESA BIOS and VMMDev interface
13858 so that it can use it for determining its video mode table. It
13859 is not guaranteed that the guest respects the value.
13860 </desc>
13861 </attribute>
13862
13863 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
13864 <desc>
13865 An alpha-blended overlay which is superposed over the frame buffer.
13866 The initial purpose is to allow the display of icons providing
13867 information about the VM state, including disk activity, in front
13868 ends which do not have other means of doing that. The overlay is
13869 designed to controlled exclusively by IDisplay. It has no locking
13870 of its own, and any changes made to it are not guaranteed to be
13871 visible until the affected portion of IFramebuffer is updated. The
13872 overlay can be created lazily the first time it is requested. This
13873 attribute can also return @c null to signal that the overlay is not
13874 implemented.
13875 </desc>
13876 </attribute>
13877
13878 <attribute name="winId" type="long long" readonly="yes">
13879 <desc>
13880 Platform-dependent identifier of the window where context of this
13881 frame buffer is drawn, or zero if there's no such window.
13882 </desc>
13883 </attribute>
13884
13885 <method name="lock">
13886 <desc>
13887 Locks the frame buffer.
13888 Gets called by the IDisplay object where this frame buffer is
13889 bound to.
13890 </desc>
13891 </method>
13892
13893 <method name="unlock">
13894 <desc>
13895 Unlocks the frame buffer.
13896 Gets called by the IDisplay object where this frame buffer is
13897 bound to.
13898 </desc>
13899 </method>
13900
13901 <method name="notifyUpdate">
13902 <desc>
13903 Informs about an update.
13904 Gets called by the display object where this buffer is
13905 registered.
13906 </desc>
13907 <param name="x" type="unsigned long" dir="in"/>
13908 <param name="y" type="unsigned long" dir="in"/>
13909 <param name="width" type="unsigned long" dir="in"/>
13910 <param name="height" type="unsigned long" dir="in"/>
13911 </method>
13912
13913 <method name="requestResize">
13914 <desc>
13915 Requests a size and pixel format change.
13916
13917 There are two modes of working with the video buffer of the virtual
13918 machine. The <i>indirect</i> mode implies that the IFramebuffer
13919 implementation allocates a memory buffer for the requested display mode
13920 and provides it to the virtual machine. In <i>direct</i> mode, the
13921 IFramebuffer implementation uses the memory buffer allocated and owned
13922 by the virtual machine. This buffer represents the video memory of the
13923 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
13924 usually faster because the implementation gets a raw pointer to the
13925 guest VRAM buffer which it can directly use for visualizing the contents
13926 of the virtual display, as opposed to the indirect mode where the
13927 contents of guest VRAM are copied to the memory buffer provided by
13928 the implementation every time a display update occurs.
13929
13930 It is important to note that the direct mode is really fast only when
13931 the implementation uses the given guest VRAM buffer directly, for
13932 example, by blitting it to the window representing the virtual machine's
13933 display, which saves at least one copy operation comparing to the
13934 indirect mode. However, using the guest VRAM buffer directly is not
13935 always possible: the format and the color depth of this buffer may be
13936 not supported by the target window, or it may be unknown (opaque) as in
13937 case of text or non-linear multi-plane VGA video modes. In this case,
13938 the indirect mode (that is always available) should be used as a
13939 fallback: when the guest VRAM contents are copied to the
13940 implementation-provided memory buffer, color and format conversion is
13941 done automatically by the underlying code.
13942
13943 The @a pixelFormat parameter defines whether the direct mode is
13944 available or not. If @a pixelFormat is <link
13945 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
13946 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
13947 @a bytesPerLine parameters must be ignored and the implementation must use
13948 the indirect mode (where it provides its own buffer in one of the
13949 supported formats). In all other cases, @a pixelFormat together with
13950 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
13951 buffer pointed to by the @a VRAM parameter and the implementation is
13952 free to choose which mode to use. To indicate that this frame buffer uses
13953 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
13954 attribute must return @c true and <link to="#address"/> must
13955 return exactly the same address that is passed in the @a VRAM parameter
13956 of this method; otherwise it is assumed that the indirect strategy is
13957 chosen.
13958
13959 The @a width and @a height parameters represent the size of the
13960 requested display mode in both modes. In case of indirect mode, the
13961 provided memory buffer should be big enough to store data of the given
13962 display mode. In case of direct mode, it is guaranteed that the given
13963 @a VRAM buffer contains enough space to represent the display mode of the
13964 given size. Note that this frame buffer's <link to="#width"/> and <link
13965 to="#height"/> attributes must return exactly the same values as
13966 passed to this method after the resize is completed (see below).
13967
13968 The @a finished output parameter determines if the implementation has
13969 finished resizing the frame buffer or not. If, for some reason, the
13970 resize cannot be finished immediately during this call, @a finished
13971 must be set to @c false, and the implementation must call
13972 <link to="IDisplay::resizeCompleted"/> after it has returned from
13973 this method as soon as possible. If @a finished is @c false, the
13974 machine will not call any frame buffer methods until
13975 <link to="IDisplay::resizeCompleted"/> is called.
13976
13977 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
13978 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
13979 this frame buffer must return exactly the same values as specified in the
13980 parameters of this method, after the resize is completed. If the
13981 indirect mode is chosen, these attributes must return values describing
13982 the format of the implementation's own memory buffer <link
13983 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
13984 value must always correlate with <link to="#pixelFormat"/>. Note that
13985 the <link to="#pixelFormat"/> attribute must never return <link
13986 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
13987
13988 <note>
13989 This method is called by the IDisplay object under the
13990 <link to="#lock"/> provided by this IFramebuffer
13991 implementation. If this method returns @c false in @a finished, then
13992 this lock is not released until
13993 <link to="IDisplay::resizeCompleted"/> is called.
13994 </note>
13995 </desc>
13996 <param name="screenId" type="unsigned long" dir="in">
13997 <desc>
13998 Logical screen number. Must be used in the corresponding call to
13999 <link to="IDisplay::resizeCompleted"/> if this call is made.
14000 </desc>
14001 </param>
14002 <param name="pixelFormat" type="unsigned long" dir="in">
14003 <desc>
14004 Pixel format of the memory buffer pointed to by @a VRAM.
14005 See also <link to="FramebufferPixelFormat"/>.
14006 </desc>
14007 </param>
14008 <param name="VRAM" type="octet" mod="ptr" dir="in">
14009 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14010 </param>
14011 <param name="bitsPerPixel" type="unsigned long" dir="in">
14012 <desc>Color depth, bits per pixel.</desc>
14013 </param>
14014 <param name="bytesPerLine" type="unsigned long" dir="in">
14015 <desc>Size of one scan line, in bytes.</desc>
14016 </param>
14017 <param name="width" type="unsigned long" dir="in">
14018 <desc>Width of the guest display, in pixels.</desc>
14019 </param>
14020 <param name="height" type="unsigned long" dir="in">
14021 <desc>Height of the guest display, in pixels.</desc>
14022 </param>
14023 <param name="finished" type="boolean" dir="return">
14024 <desc>
14025 Can the VM start using the new frame buffer immediately
14026 after this method returns or it should wait for
14027 <link to="IDisplay::resizeCompleted"/>.
14028 </desc>
14029 </param>
14030 </method>
14031
14032 <method name="videoModeSupported">
14033 <desc>
14034 Returns whether the frame buffer implementation is willing to
14035 support a given video mode. In case it is not able to render
14036 the video mode (or for some reason not willing), it should
14037 return @c false. Usually this method is called when the guest
14038 asks the VMM device whether a given video mode is supported
14039 so the information returned is directly exposed to the guest.
14040 It is important that this method returns very quickly.
14041 </desc>
14042 <param name="width" type="unsigned long" dir="in"/>
14043 <param name="height" type="unsigned long" dir="in"/>
14044 <param name="bpp" type="unsigned long" dir="in"/>
14045 <param name="supported" type="boolean" dir="return"/>
14046 </method>
14047
14048 <method name="getVisibleRegion">
14049 <desc>
14050 Returns the visible region of this frame buffer.
14051
14052 If the @a rectangles parameter is @c null then the value of the
14053 @a count parameter is ignored and the number of elements necessary to
14054 describe the current visible region is returned in @a countCopied.
14055
14056 If @a rectangles is not @c null but @a count is less
14057 than the required number of elements to store region data, the method
14058 will report a failure. If @a count is equal or greater than the
14059 required number of elements, then the actual number of elements copied
14060 to the provided array will be returned in @a countCopied.
14061
14062 <note>
14063 The address of the provided array must be in the process space of
14064 this IFramebuffer object.
14065 </note>
14066 <note>
14067 Method not yet implemented.
14068 </note>
14069 </desc>
14070 <param name="rectangles" type="octet" mod="ptr" dir="in">
14071 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14072 </param>
14073 <param name="count" type="unsigned long" dir="in">
14074 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14075 </param>
14076 <param name="countCopied" type="unsigned long" dir="return">
14077 <desc>Number of elements copied to the @a rectangles array.</desc>
14078 </param>
14079 </method>
14080
14081 <method name="setVisibleRegion">
14082 <desc>
14083 Suggests a new visible region to this frame buffer. This region
14084 represents the area of the VM display which is a union of regions of
14085 all top-level windows of the guest operating system running inside the
14086 VM (if the Guest Additions for this system support this
14087 functionality). This information may be used by the frontends to
14088 implement the seamless desktop integration feature.
14089
14090 <note>
14091 The address of the provided array must be in the process space of
14092 this IFramebuffer object.
14093 </note>
14094 <note>
14095 The IFramebuffer implementation must make a copy of the provided
14096 array of rectangles.
14097 </note>
14098 <note>
14099 Method not yet implemented.
14100 </note>
14101 </desc>
14102 <param name="rectangles" type="octet" mod="ptr" dir="in">
14103 <desc>Pointer to the @c RTRECT array.</desc>
14104 </param>
14105 <param name="count" type="unsigned long" dir="in">
14106 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14107 </param>
14108 </method>
14109
14110 <method name="processVHWACommand">
14111 <desc>
14112 Posts a Video HW Acceleration Command to the frame buffer for processing.
14113 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14114 are posted from quest to the host to be processed by the host hardware.
14115
14116 <note>
14117 The address of the provided command must be in the process space of
14118 this IFramebuffer object.
14119 </note>
14120 </desc>
14121
14122 <param name="command" type="octet" mod="ptr" dir="in">
14123 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14124 </param>
14125 </method>
14126
14127 </interface>
14128
14129 <interface
14130 name="IFramebufferOverlay" extends="IFramebuffer"
14131 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14132 wsmap="suppress"
14133 >
14134 <desc>
14135 The IFramebufferOverlay interface represents an alpha blended overlay
14136 for displaying status icons above an IFramebuffer. It is always created
14137 not visible, so that it must be explicitly shown. It only covers a
14138 portion of the IFramebuffer, determined by its width, height and
14139 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14140 that order) format, and may be written to directly. Do re-read the
14141 width though, after setting it, as it may be adjusted (increased) to
14142 make it more suitable for the front end.
14143 </desc>
14144 <attribute name="x" type="unsigned long" readonly="yes">
14145 <desc>X position of the overlay, relative to the frame buffer.</desc>
14146 </attribute>
14147
14148 <attribute name="y" type="unsigned long" readonly="yes">
14149 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14150 </attribute>
14151
14152 <attribute name="visible" type="boolean" readonly="no">
14153 <desc>
14154 Whether the overlay is currently visible.
14155 </desc>
14156 </attribute>
14157
14158 <attribute name="alpha" type="unsigned long" readonly="no">
14159 <desc>
14160 The global alpha value for the overlay. This may or may not be
14161 supported by a given front end.
14162 </desc>
14163 </attribute>
14164
14165 <method name="move">
14166 <desc>
14167 Changes the overlay's position relative to the IFramebuffer.
14168 </desc>
14169 <param name="x" type="unsigned long" dir="in"/>
14170 <param name="y" type="unsigned long" dir="in"/>
14171 </method>
14172
14173 </interface>
14174
14175 <interface
14176 name="IDisplay" extends="$unknown"
14177 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14178 wsmap="managed"
14179 >
14180 <desc>
14181 The IDisplay interface represents the virtual machine's display.
14182
14183 The object implementing this interface is contained in each
14184 <link to="IConsole::display"/> attribute and represents the visual
14185 output of the virtual machine.
14186
14187 The virtual display supports pluggable output targets represented by the
14188 IFramebuffer interface. Examples of the output target are a window on
14189 the host computer or an RDP session's display on a remote computer.
14190 </desc>
14191 <method name="getScreenResolution">
14192 <desc>Queries display width, height and color depth for given screen.</desc>
14193 <param name="screenId" type="unsigned long" dir="in"/>
14194 <param name="width" type="unsigned long" dir="out"/>
14195 <param name="height" type="unsigned long" dir="out"/>
14196 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14197 </method>
14198
14199 <method name="setFramebuffer">
14200 <desc>
14201 Sets the framebuffer for given screen.
14202 </desc>
14203 <param name="screenId" type="unsigned long" dir="in"/>
14204 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14205 </method>
14206
14207 <method name="getFramebuffer">
14208 <desc>
14209 Queries the framebuffer for given screen.
14210 </desc>
14211 <param name="screenId" type="unsigned long" dir="in"/>
14212 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14213 <param name="xOrigin" type="long" dir="out"/>
14214 <param name="yOrigin" type="long" dir="out"/>
14215 </method>
14216
14217 <method name="setVideoModeHint">
14218 <desc>
14219 Asks VirtualBox to request the given video mode from
14220 the guest. This is just a hint and it cannot be guaranteed
14221 that the requested resolution will be used. Guest Additions
14222 are required for the request to be seen by guests. The caller
14223 should issue the request and wait for a resolution change and
14224 after a timeout retry.
14225
14226 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14227 parameters means that the corresponding values should be taken from the
14228 current video mode (i.e. left unchanged).
14229
14230 If the guest OS supports multi-monitor configuration then the @a display
14231 parameter specifies the number of the guest display to send the hint to:
14232 @c 0 is the primary display, @c 1 is the first secondary and
14233 so on. If the multi-monitor configuration is not supported, @a display
14234 must be @c 0.
14235
14236 <result name="E_INVALIDARG">
14237 The @a display is not associated with any monitor.
14238 </result>
14239
14240 </desc>
14241 <param name="display" type="unsigned long" dir="in">
14242 <desc>
14243 The number of the guest display to send the hint to.
14244 </desc>
14245 </param>
14246 <param name="enabled" type="boolean" dir="in">
14247 <desc>
14248 @c True, if this guest screen is enabled,
14249 @c False otherwise.
14250 </desc>
14251 </param>
14252 <param name="changeOrigin" type="boolean" dir="in">
14253 <desc>
14254 @c True, if the origin of the guest screen should be changed,
14255 @c False otherwise.
14256 </desc>
14257 </param>
14258 <param name="originX" type="long" dir="in">
14259 <desc>
14260 The X origin of the guest screen.
14261 </desc>
14262 </param>
14263 <param name="originY" type="long" dir="in">
14264 <desc>
14265 The Y origin of the guest screen.
14266 </desc>
14267 </param>
14268 <param name="width" type="unsigned long" dir="in"/>
14269 <param name="height" type="unsigned long" dir="in"/>
14270 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14271 </method>
14272
14273 <method name="setSeamlessMode">
14274 <desc>
14275 Enables or disables seamless guest display rendering (seamless desktop
14276 integration) mode.
14277 <note>
14278 Calling this method has no effect if <link
14279 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14280 does not return @c Active.
14281 </note>
14282 </desc>
14283 <param name="enabled" type="boolean" dir="in"/>
14284 </method>
14285
14286 <method name="takeScreenShot">
14287 <desc>
14288 Takes a screen shot of the requested size and copies it to the
14289 32-bpp buffer allocated by the caller and pointed to by @a address.
14290 A pixel consists of 4 bytes in order: B, G, R, 0.
14291
14292 <note>This API can be used only locally by a VM process through the
14293 COM/XPCOM C++ API as it requires pointer support. It is not
14294 available for scripting langages, Java or any webservice clients.
14295 Unless you are writing a new VM frontend use
14296 <link to="#takeScreenShotToArray" />.
14297 </note>
14298
14299 <result name="E_NOTIMPL">
14300 Feature not implemented.
14301 </result>
14302 <result name="VBOX_E_IPRT_ERROR">
14303 Could not take a screenshot.
14304 </result>
14305
14306 </desc>
14307 <param name="screenId" type="unsigned long" dir="in"/>
14308 <param name="address" type="octet" mod="ptr" dir="in"/>
14309 <param name="width" type="unsigned long" dir="in"/>
14310 <param name="height" type="unsigned long" dir="in"/>
14311 </method>
14312
14313 <method name="takeScreenShotToArray">
14314 <desc>
14315 Takes a guest screen shot of the requested size and returns it as
14316 an array of bytes in uncompressed 32-bit RGBA format.
14317 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14318
14319 This API is slow, but could be the only option to get guest screenshot
14320 for scriptable languages not allowed to manipulate with addresses
14321 directly.
14322
14323 <result name="E_NOTIMPL">
14324 Feature not implemented.
14325 </result>
14326 <result name="VBOX_E_IPRT_ERROR">
14327 Could not take a screenshot.
14328 </result>
14329 </desc>
14330 <param name="screenId" type="unsigned long" dir="in">
14331 <desc>
14332 Monitor to take screenshot from.
14333 </desc>
14334 </param>
14335 <param name="width" type="unsigned long" dir="in">
14336 <desc>
14337 Desired image width.
14338 </desc>
14339 </param>
14340 <param name="height" type="unsigned long" dir="in">
14341 <desc>
14342 Desired image height.
14343 </desc>
14344 </param>
14345 <param name="screenData" type="octet" dir="return" safearray="yes">
14346 <desc>
14347 Array with resulting screen data.
14348 </desc>
14349 </param>
14350 </method>
14351
14352 <method name="takeScreenShotPNGToArray">
14353 <desc>
14354 Takes a guest screen shot of the requested size and returns it as
14355 PNG image in array.
14356
14357 <result name="E_NOTIMPL">
14358 Feature not implemented.
14359 </result>
14360 <result name="VBOX_E_IPRT_ERROR">
14361 Could not take a screenshot.
14362 </result>
14363 </desc>
14364 <param name="screenId" type="unsigned long" dir="in">
14365 <desc>
14366 Monitor to take the screenshot from.
14367 </desc>
14368 </param>
14369 <param name="width" type="unsigned long" dir="in">
14370 <desc>
14371 Desired image width.
14372 </desc>
14373 </param>
14374 <param name="height" type="unsigned long" dir="in">
14375 <desc>
14376 Desired image height.
14377 </desc>
14378 </param>
14379 <param name="screenData" type="octet" dir="return" safearray="yes">
14380 <desc>
14381 Array with resulting screen data.
14382 </desc>
14383 </param>
14384 </method>
14385
14386 <method name="drawToScreen">
14387 <desc>
14388 Draws a 32-bpp image of the specified size from the given buffer
14389 to the given point on the VM display.
14390
14391 <result name="E_NOTIMPL">
14392 Feature not implemented.
14393 </result>
14394 <result name="VBOX_E_IPRT_ERROR">
14395 Could not draw to screen.
14396 </result>
14397
14398 </desc>
14399 <param name="screenId" type="unsigned long" dir="in">
14400 <desc>
14401 Monitor to take the screenshot from.
14402 </desc>
14403 </param>
14404 <param name="address" type="octet" mod="ptr" dir="in">
14405 <desc>
14406 Address to store the screenshot to
14407 </desc>
14408 </param>
14409 <param name="x" type="unsigned long" dir="in">
14410 <desc>
14411 Relative to the screen top left corner.
14412 </desc>
14413 </param>
14414 <param name="y" type="unsigned long" dir="in">
14415 <desc>
14416 Relative to the screen top left corner.
14417 </desc>
14418 </param>
14419 <param name="width" type="unsigned long" dir="in">
14420 <desc>
14421 Desired image width.
14422 </desc>
14423 </param>
14424 <param name="height" type="unsigned long" dir="in">
14425 <desc>
14426 Desired image height.
14427 </desc>
14428 </param>
14429 </method>
14430
14431 <method name="invalidateAndUpdate">
14432 <desc>
14433 Does a full invalidation of the VM display and instructs the VM
14434 to update it.
14435
14436 <result name="VBOX_E_IPRT_ERROR">
14437 Could not invalidate and update screen.
14438 </result>
14439
14440 </desc>
14441 </method>
14442
14443 <method name="resizeCompleted">
14444 <desc>
14445 Signals that a framebuffer has completed the resize operation.
14446
14447 <result name="VBOX_E_NOT_SUPPORTED">
14448 Operation only valid for external frame buffers.
14449 </result>
14450
14451 </desc>
14452 <param name="screenId" type="unsigned long" dir="in"/>
14453 </method>
14454
14455 <method name="completeVHWACommand">
14456 <desc>
14457 Signals that the Video HW Acceleration command has completed.
14458 </desc>
14459
14460 <param name="command" type="octet" mod="ptr" dir="in">
14461 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14462 </param>
14463 </method>
14464
14465 <method name="viewportChanged">
14466 <desc>
14467 Signals that framebuffer window viewport has changed.
14468
14469 <result name="E_INVALIDARG">
14470 The specified viewport data is invalid.
14471 </result>
14472
14473 </desc>
14474
14475 <param name="screenId" type="unsigned long" dir="in">
14476 <desc>
14477 Monitor to take the screenshot from.
14478 </desc>
14479 </param>
14480 <param name="x" type="unsigned long" dir="in">
14481 <desc>
14482 Framebuffer x offset.
14483 </desc>
14484 </param>
14485 <param name="y" type="unsigned long" dir="in">
14486 <desc>
14487 Framebuffer y offset.
14488 </desc>
14489 </param>
14490 <param name="width" type="unsigned long" dir="in">
14491 <desc>
14492 Viewport width.
14493 </desc>
14494 </param>
14495 <param name="height" type="unsigned long" dir="in">
14496 <desc>
14497 Viewport height.
14498 </desc>
14499 </param>
14500 </method>
14501 </interface>
14502
14503 <!--
14504 // INetworkAdapter
14505 /////////////////////////////////////////////////////////////////////////
14506 -->
14507
14508 <enum
14509 name="NetworkAttachmentType"
14510 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
14511 >
14512 <desc>
14513 Network attachment type.
14514 </desc>
14515
14516 <const name="Null" value="0">
14517 <desc>Null value, also means "not attached".</desc>
14518 </const>
14519 <const name="NAT" value="1"/>
14520 <const name="Bridged" value="2"/>
14521 <const name="Internal" value="3"/>
14522 <const name="HostOnly" value="4"/>
14523 <const name="Generic" value="5"/>
14524 </enum>
14525
14526 <enum
14527 name="NetworkAdapterType"
14528 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
14529 >
14530 <desc>
14531 Network adapter type.
14532 </desc>
14533
14534 <const name="Null" value="0">
14535 <desc>Null value (never used by the API).</desc>
14536 </const>
14537 <const name="Am79C970A" value="1">
14538 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
14539 </const>
14540 <const name="Am79C973" value="2">
14541 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
14542 </const>
14543 <const name="I82540EM" value="3">
14544 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
14545 </const>
14546 <const name="I82543GC" value="4">
14547 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
14548 </const>
14549 <const name="I82545EM" value="5">
14550 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
14551 </const>
14552 <const name="Virtio" value="6">
14553 <desc>Virtio network device.</desc>
14554 </const>
14555 </enum>
14556
14557 <enum
14558 name="NetworkAdapterPromiscModePolicy"
14559 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
14560 >
14561 <desc>
14562 The promiscuous mode policy of an interface.
14563 </desc>
14564
14565 <const name="Deny" value="1">
14566 <desc>Deny promiscuous mode requests.</desc>
14567 </const>
14568 <const name="AllowNetwork" value="2">
14569 <desc>
14570 Allow promicuous mode, but restrict the scope it to the internal
14571 network so that it only applies to other VMs.
14572 </desc>
14573 </const>
14574 <const name="AllowAll" value="3">
14575 <desc>
14576 Allow promicuous mode, include unrelated traffic going over the wire
14577 and internally on the host.
14578 </desc>
14579 </const>
14580 </enum>
14581
14582 <interface
14583 name="INetworkAdapter" extends="$unknown"
14584 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
14585 wsmap="managed"
14586 >
14587 <desc>
14588 Represents a virtual network adapter that is attached to a virtual machine.
14589 Each virtual machine has a fixed number of network adapter slots with one
14590 instance of this attached to each of them. Call
14591 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
14592 is attached to a given slot in a given machine.
14593
14594 Each network adapter can be in one of five attachment modes, which are
14595 represented by the <link to="NetworkAttachmentType" /> enumeration;
14596 see the <link to="#attachmentType" /> attribute.
14597 </desc>
14598
14599 <attribute name="adapterType" type="NetworkAdapterType">
14600 <desc>
14601 Type of the virtual network adapter. Depending on this value,
14602 VirtualBox will provide a different virtual network hardware
14603 to the guest.
14604 </desc>
14605 </attribute>
14606
14607 <attribute name="slot" type="unsigned long" readonly="yes">
14608 <desc>
14609 Slot number this adapter is plugged into. Corresponds to
14610 the value you pass to <link to="IMachine::getNetworkAdapter"/>
14611 to obtain this instance.
14612 </desc>
14613 </attribute>
14614
14615 <attribute name="enabled" type="boolean">
14616 <desc>
14617 Flag whether the network adapter is present in the
14618 guest system. If disabled, the virtual guest hardware will
14619 not contain this network adapter. Can only be changed when
14620 the VM is not running.
14621 </desc>
14622 </attribute>
14623
14624 <attribute name="MACAddress" type="wstring">
14625 <desc>
14626 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
14627 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
14628 </desc>
14629 </attribute>
14630
14631 <attribute name="attachmentType" type="NetworkAttachmentType">
14632 <desc>
14633 Sets/Gets network attachment type of this network adapter.
14634 </desc>
14635 </attribute>
14636
14637 <attribute name="bridgedInterface" type="wstring">
14638 <desc>
14639 Name of the network interface the VM should be bridged to.
14640 </desc>
14641 </attribute>
14642
14643 <attribute name="hostOnlyInterface" type="wstring">
14644 <desc>
14645 Name of the host only network interface the VM is attached to.
14646 </desc>
14647 </attribute>
14648
14649 <attribute name="internalNetwork" type="wstring">
14650 <desc>
14651 Name of the internal network the VM is attached to.
14652 </desc>
14653 </attribute>
14654
14655 <attribute name="NATNetwork" type="wstring">
14656 <desc>
14657 Name of the NAT network the VM is attached to.
14658 </desc>
14659 </attribute>
14660
14661 <attribute name="genericDriver" type="wstring">
14662 <desc>
14663 Name of the driver to use for the "Generic" network attachment type.
14664 </desc>
14665 </attribute>
14666
14667 <attribute name="cableConnected" type="boolean">
14668 <desc>
14669 Flag whether the adapter reports the cable as connected or not.
14670 It can be used to report offline situations to a VM.
14671 </desc>
14672 </attribute>
14673
14674 <attribute name="lineSpeed" type="unsigned long">
14675 <desc>
14676 Line speed reported by custom drivers, in units of 1 kbps.
14677 </desc>
14678 </attribute>
14679
14680 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
14681 <desc>
14682 The promiscuous mode policy of the network adapter when attached to an
14683 internal network, host only network or a bridge.
14684 </desc>
14685 </attribute>
14686
14687 <attribute name="traceEnabled" type="boolean">
14688 <desc>
14689 Flag whether network traffic from/to the network card should be traced.
14690 Can only be toggled when the VM is turned off.
14691 </desc>
14692 </attribute>
14693
14694 <attribute name="traceFile" type="wstring">
14695 <desc>
14696 Filename where a network trace will be stored. If not set, VBox-pid.pcap
14697 will be used.
14698 </desc>
14699 </attribute>
14700
14701 <attribute name="NATEngine" type="INATEngine" readonly="yes">
14702 <desc>
14703 Points to the NAT engine which handles the network address translation
14704 for this interface. This is active only when the interface actually uses
14705 NAT.
14706 </desc>
14707 </attribute>
14708
14709 <attribute name="bootPriority" type="unsigned long">
14710 <desc>
14711 Network boot priority of the adapter. Priority 1 is highest. If not set,
14712 the priority is considered to be at the lowest possible setting.
14713 </desc>
14714 </attribute>
14715
14716 <attribute name="bandwidthGroup" type="IBandwidthGroup">
14717 <desc>The bandwidth group this network adapter is assigned to.</desc>
14718 </attribute>
14719
14720 <!-- property methods -->
14721
14722 <method name="getProperty" const="yes">
14723 <desc>
14724 Returns the value of the network attachment property with the given name.
14725
14726 If the requested data @a key does not exist, this function will
14727 succeed and return an empty string in the @a value argument.
14728
14729 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14730 </desc>
14731 <param name="key" type="wstring" dir="in">
14732 <desc>Name of the property to get.</desc>
14733 </param>
14734 <param name="value" type="wstring" dir="return">
14735 <desc>Current property value.</desc>
14736 </param>
14737 </method>
14738
14739 <method name="setProperty">
14740 <desc>
14741 Sets the value of the network attachment property with the given name.
14742
14743 Setting the property value to @c null or an empty string is equivalent
14744 to deleting the existing value.
14745
14746 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14747 </desc>
14748 <param name="key" type="wstring" dir="in">
14749 <desc>Name of the property to set.</desc>
14750 </param>
14751 <param name="value" type="wstring" dir="in">
14752 <desc>Property value to set.</desc>
14753 </param>
14754 </method>
14755
14756 <method name="getProperties" const="yes">
14757 <desc>
14758 Returns values for a group of properties in one call.
14759
14760 The names of the properties to get are specified using the @a names
14761 argument which is a list of comma-separated property names or
14762 an empty string if all properties are to be returned.
14763 <note>Currently the value of this argument is ignored and the method
14764 always returns all existing properties.</note>
14765
14766 The method returns two arrays, the array of property names corresponding
14767 to the @a names argument and the current values of these properties.
14768 Both arrays have the same number of elements with each element at the
14769 given index in the first array corresponds to an element at the same
14770 index in the second array.
14771 </desc>
14772 <param name="names" type="wstring" dir="in">
14773 <desc>
14774 Names of properties to get.
14775 </desc>
14776 </param>
14777 <param name="returnNames" type="wstring" safearray="yes" dir="out">
14778 <desc>Names of returned properties.</desc>
14779 </param>
14780 <param name="returnValues" type="wstring" safearray="yes" dir="return">
14781 <desc>Values of returned properties.</desc>
14782 </param>
14783 </method>
14784
14785 </interface>
14786
14787
14788 <!--
14789 // ISerialPort
14790 /////////////////////////////////////////////////////////////////////////
14791 -->
14792
14793 <enum
14794 name="PortMode"
14795 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
14796 >
14797 <desc>
14798 The PortMode enumeration represents possible communication modes for
14799 the virtual serial port device.
14800 </desc>
14801
14802 <const name="Disconnected" value="0">
14803 <desc>Virtual device is not attached to any real host device.</desc>
14804 </const>
14805 <const name="HostPipe" value="1">
14806 <desc>Virtual device is attached to a host pipe.</desc>
14807 </const>
14808 <const name="HostDevice" value="2">
14809 <desc>Virtual device is attached to a host device.</desc>
14810 </const>
14811 <const name="RawFile" value="3">
14812 <desc>Virtual device is attached to a raw file.</desc>
14813 </const>
14814 </enum>
14815
14816 <interface
14817 name="ISerialPort" extends="$unknown"
14818 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
14819 wsmap="managed"
14820 >
14821
14822 <desc>
14823 The ISerialPort interface represents the virtual serial port device.
14824
14825 The virtual serial port device acts like an ordinary serial port
14826 inside the virtual machine. This device communicates to the real
14827 serial port hardware in one of two modes: host pipe or host device.
14828
14829 In host pipe mode, the #path attribute specifies the path to the pipe on
14830 the host computer that represents a serial port. The #server attribute
14831 determines if this pipe is created by the virtual machine process at
14832 machine startup or it must already exist before starting machine
14833 execution.
14834
14835 In host device mode, the #path attribute specifies the name of the
14836 serial port device on the host computer.
14837
14838 There is also a third communication mode: the disconnected mode. In this
14839 mode, the guest OS running inside the virtual machine will be able to
14840 detect the serial port, but all port write operations will be discarded
14841 and all port read operations will return no data.
14842
14843 <see><link to="IMachine::getSerialPort"/></see>
14844 </desc>
14845
14846 <attribute name="slot" type="unsigned long" readonly="yes">
14847 <desc>
14848 Slot number this serial port is plugged into. Corresponds to
14849 the value you pass to <link to="IMachine::getSerialPort"/>
14850 to obtain this instance.
14851 </desc>
14852 </attribute>
14853
14854 <attribute name="enabled" type="boolean">
14855 <desc>
14856 Flag whether the serial port is enabled. If disabled,
14857 the serial port will not be reported to the guest OS.
14858 </desc>
14859 </attribute>
14860
14861 <attribute name="IOBase" type="unsigned long">
14862 <desc>Base I/O address of the serial port.</desc>
14863 </attribute>
14864
14865 <attribute name="IRQ" type="unsigned long">
14866 <desc>IRQ number of the serial port.</desc>
14867 </attribute>
14868
14869 <attribute name="hostMode" type="PortMode">
14870 <desc>
14871 How is this port connected to the host.
14872 <note>
14873 Changing this attribute may fail if the conditions for
14874 <link to="#path"/> are not met.
14875 </note>
14876 </desc>
14877 </attribute>
14878
14879 <attribute name="server" type="boolean">
14880 <desc>
14881 Flag whether this serial port acts as a server (creates a new pipe on
14882 the host) or as a client (uses the existing pipe). This attribute is
14883 used only when <link to="#hostMode"/> is PortMode_HostPipe.
14884 </desc>
14885 </attribute>
14886
14887 <attribute name="path" type="wstring">
14888 <desc>
14889 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
14890 PortMode_HostPipe, or the host serial device name when
14891 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
14892 cases, setting a @c null or empty string as the attribute's value
14893 is an error. Otherwise, the value of this property is ignored.
14894 </desc>
14895 </attribute>
14896
14897 </interface>
14898
14899 <!--
14900 // IParallelPort
14901 /////////////////////////////////////////////////////////////////////////
14902 -->
14903
14904 <interface
14905 name="IParallelPort" extends="$unknown"
14906 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
14907 wsmap="managed"
14908 >
14909
14910 <desc>
14911 The IParallelPort interface represents the virtual parallel port device.
14912
14913 The virtual parallel port device acts like an ordinary parallel port
14914 inside the virtual machine. This device communicates to the real
14915 parallel port hardware using the name of the parallel device on the host
14916 computer specified in the #path attribute.
14917
14918 Each virtual parallel port device is assigned a base I/O address and an
14919 IRQ number that will be reported to the guest operating system and used
14920 to operate the given parallel port from within the virtual machine.
14921
14922 <see><link to="IMachine::getParallelPort"/></see>
14923 </desc>
14924
14925 <attribute name="slot" type="unsigned long" readonly="yes">
14926 <desc>
14927 Slot number this parallel port is plugged into. Corresponds to
14928 the value you pass to <link to="IMachine::getParallelPort"/>
14929 to obtain this instance.
14930 </desc>
14931 </attribute>
14932
14933 <attribute name="enabled" type="boolean">
14934 <desc>
14935 Flag whether the parallel port is enabled. If disabled,
14936 the parallel port will not be reported to the guest OS.
14937 </desc>
14938 </attribute>
14939
14940 <attribute name="IOBase" type="unsigned long">
14941 <desc>Base I/O address of the parallel port.</desc>
14942 </attribute>
14943
14944 <attribute name="IRQ" type="unsigned long">
14945 <desc>IRQ number of the parallel port.</desc>
14946 </attribute>
14947
14948 <attribute name="path" type="wstring">
14949 <desc>
14950 Host parallel device name. If this parallel port is enabled, setting a
14951 @c null or an empty string as this attribute's value will result in
14952 an error.
14953 </desc>
14954 </attribute>
14955
14956 </interface>
14957
14958
14959 <!--
14960 // IMachineDebugger
14961 /////////////////////////////////////////////////////////////////////////
14962 -->
14963
14964 <interface
14965 name="IMachineDebugger" extends="$unknown"
14966 uuid="a9abbb7c-d678-43b2-bed2-19ec0e32303d"
14967 wsmap="suppress"
14968 >
14969 <method name="dumpGuestCore">
14970 <desc>
14971 Takes a core dump of the guest.
14972
14973 See include/VBox/dbgfcorefmt.h for details on the file format.
14974 </desc>
14975 <param name="filename" type="wstring" dir="in">
14976 <desc>
14977 The name of the output file. The file must not exist.
14978 </desc>
14979 </param>
14980 <param name="compression" type="wstring" dir="in">
14981 <desc>
14982 Reserved for future compression method indicator.
14983 </desc>
14984 </param>
14985 </method>
14986
14987 <method name="dumpHostProcessCore">
14988 <desc>
14989 Takes a core dump of the VM process on the host.
14990
14991 This feature is not implemented in the 4.0.0 release but it may show up
14992 in a dot release.
14993 </desc>
14994 <param name="filename" type="wstring" dir="in">
14995 <desc>
14996 The name of the output file. The file must not exist.
14997 </desc>
14998 </param>
14999 <param name="compression" type="wstring" dir="in">
15000 <desc>
15001 Reserved for future compression method indicator.
15002 </desc>
15003 </param>
15004 </method>
15005
15006 <method name="info">
15007 <desc>
15008 Interfaces with the info dumpers (DBGFInfo).
15009
15010 This feature is not implemented in the 4.0.0 release but it may show up
15011 in a dot release.
15012 </desc>
15013 <param name="name" type="wstring" dir="in">
15014 <desc>
15015 The name of the info item.
15016 </desc>
15017 </param>
15018 <param name="args" type="wstring" dir="in">
15019 <desc>
15020 Arguments to the info dumper.
15021 </desc>
15022 </param>
15023 <param name="info" type="wstring" dir="return">
15024 <desc>
15025 The into string.
15026 </desc>
15027 </param>
15028 </method>
15029
15030 <method name="injectNMI">
15031 <desc>
15032 Inject an NMI into a running VT-x/AMD-V VM.
15033 </desc>
15034 </method>
15035
15036 <method name="modifyLogGroups">
15037 <desc>
15038 Modifies the group settings of the debug or release logger.
15039 </desc>
15040 <param name="settings" type="wstring" dir="in">
15041 <desc>
15042 The group settings string. See iprt/log.h for details. To target the
15043 release logger, prefix the string with "release:".
15044 </desc>
15045 </param>
15046 </method>
15047
15048 <method name="modifyLogFlags">
15049 <desc>
15050 Modifies the debug or release logger flags.
15051 </desc>
15052 <param name="settings" type="wstring" dir="in">
15053 <desc>
15054 The flags settings string. See iprt/log.h for details. To target the
15055 release logger, prefix the string with "release:".
15056 </desc>
15057 </param>
15058 </method>
15059
15060 <method name="modifyLogDestinations">
15061 <desc>
15062 Modifies the debug or release logger destinations.
15063 </desc>
15064 <param name="settings" type="wstring" dir="in">
15065 <desc>
15066 The destination settings string. See iprt/log.h for details. To target the
15067 release logger, prefix the string with "release:".
15068 </desc>
15069 </param>
15070 </method>
15071
15072 <method name="readPhysicalMemory">
15073 <desc>
15074 Reads guest physical memory, no side effects (MMIO++).
15075
15076 This feature is not implemented in the 4.0.0 release but may show up
15077 in a dot release.
15078 </desc>
15079 <param name="address" type="long long" dir="in">
15080 <desc>The guest physical address.</desc>
15081 </param>
15082 <param name="size" type="unsigned long" dir="in">
15083 <desc>The number of bytes to read.</desc>
15084 </param>
15085 <param name="bytes" type="octet" safearray="yes" dir="return">
15086 <desc>The bytes read.</desc>
15087 </param>
15088 </method>
15089
15090 <method name="writePhysicalMemory">
15091 <desc>
15092 Writes guest physical memory, access handles (MMIO++) are ignored.
15093
15094 This feature is not implemented in the 4.0.0 release but may show up
15095 in a dot release.
15096 </desc>
15097 <param name="address" type="long long" dir="in">
15098 <desc>The guest physical address.</desc>
15099 </param>
15100 <param name="size" type="unsigned long" dir="in">
15101 <desc>The number of bytes to read.</desc>
15102 </param>
15103 <param name="bytes" type="octet" safearray="yes" dir="in">
15104 <desc>The bytes to write.</desc>
15105 </param>
15106 </method>
15107
15108 <method name="readVirtualMemory">
15109 <desc>
15110 Reads guest virtual memory, no side effects (MMIO++).
15111
15112 This feature is not implemented in the 4.0.0 release but may show up
15113 in a dot release.
15114 </desc>
15115 <param name="cpuId" type="unsigned long" dir="in">
15116 <desc>The identifier of the Virtual CPU.</desc>
15117 </param>
15118 <param name="address" type="long long" dir="in">
15119 <desc>The guest virtual address.</desc>
15120 </param>
15121 <param name="size" type="unsigned long" dir="in">
15122 <desc>The number of bytes to read.</desc>
15123 </param>
15124 <param name="bytes" type="octet" safearray="yes" dir="return">
15125 <desc>The bytes read.</desc>
15126 </param>
15127 </method>
15128
15129 <method name="writeVirtualMemory">
15130 <desc>
15131 Writes guest virtual memory, access handles (MMIO++) are ignored.
15132
15133 This feature is not implemented in the 4.0.0 release but may show up
15134 in a dot release.
15135 </desc>
15136 <param name="cpuId" type="unsigned long" dir="in">
15137 <desc>The identifier of the Virtual CPU.</desc>
15138 </param>
15139 <param name="address" type="long long" dir="in">
15140 <desc>The guest virtual address.</desc>
15141 </param>
15142 <param name="size" type="unsigned long" dir="in">
15143 <desc>The number of bytes to read.</desc>
15144 </param>
15145 <param name="bytes" type="octet" safearray="yes" dir="in">
15146 <desc>The bytes to write.</desc>
15147 </param>
15148 </method>
15149
15150 <method name="detectOS">
15151 <desc>
15152 Tries to (re-)detect the guest OS kernel.
15153
15154 This feature is not implemented in the 4.0.0 release but may show up
15155 in a dot release.
15156 </desc>
15157 <param name="os" type="wstring" dir="return">
15158 <desc>
15159 The detected OS kernel on success.
15160 </desc>
15161 </param>
15162 </method>
15163
15164 <method name="getRegister">
15165 <desc>
15166 Gets one register.
15167
15168 This feature is not implemented in the 4.0.0 release but may show up
15169 in a dot release.
15170 </desc>
15171 <param name="cpuId" type="unsigned long" dir="in">
15172 <desc>The identifier of the Virtual CPU.</desc>
15173 </param>
15174 <param name="name" type="wstring" dir="in">
15175 <desc>The register name, case is ignored.</desc>
15176 </param>
15177 <param name="value" type="wstring" dir="return">
15178 <desc>
15179 The register value. This is usually a hex value (always 0x prefixed)
15180 but other format may be used for floating point registers (TBD).
15181 </desc>
15182 </param>
15183 </method>
15184
15185 <method name="getRegisters">
15186 <desc>
15187 Gets all the registers for the given CPU.
15188
15189 This feature is not implemented in the 4.0.0 release but may show up
15190 in a dot release.
15191 </desc>
15192 <param name="cpuId" type="unsigned long" dir="in">
15193 <desc>The identifier of the Virtual CPU.</desc>
15194 </param>
15195 <param name="names" type="wstring" dir="out" safearray="yes">
15196 <desc>Array containing the lowercase register names.</desc>
15197 </param>
15198 <param name="values" type="wstring" dir="out" safearray="yes">
15199 <desc>
15200 Array paralell to the names holding the register values as if the
15201 register was returned by <link to="IMachineDebugger::getRegister"/>.
15202 </desc>
15203 </param>
15204 </method>
15205
15206 <method name="setRegister">
15207 <desc>
15208 Gets one register.
15209
15210 This feature is not implemented in the 4.0.0 release but may show up
15211 in a dot release.
15212 </desc>
15213 <param name="cpuId" type="unsigned long" dir="in">
15214 <desc>The identifier of the Virtual CPU.</desc>
15215 </param>
15216 <param name="name" type="wstring" dir="in">
15217 <desc>The register name, case is ignored.</desc>
15218 </param>
15219 <param name="value" type="wstring" dir="in">
15220 <desc>
15221 The new register value. Hexadecimal, decimal and octal formattings
15222 are supported in addition to any special formattings returned by
15223 the getters.
15224 </desc>
15225 </param>
15226 </method>
15227
15228 <method name="setRegisters">
15229 <desc>
15230 Sets zero or more registers atomically.
15231
15232 This feature is not implemented in the 4.0.0 release but may show up
15233 in a dot release.
15234 </desc>
15235 <param name="cpuId" type="unsigned long" dir="in">
15236 <desc>The identifier of the Virtual CPU.</desc>
15237 </param>
15238 <param name="names" type="wstring" dir="in" safearray="yes">
15239 <desc>Array containing the register names, case ignored.</desc>
15240 </param>
15241 <param name="values" type="wstring" dir="in" safearray="yes">
15242 <desc>
15243 Array paralell to the names holding the register values. See
15244 <link to="IMachineDebugger::setRegister"/> for formatting
15245 guidelines.
15246 </desc>
15247 </param>
15248 </method>
15249
15250 <method name="dumpGuestStack">
15251 <desc>
15252 Produce a simple stack dump using the current guest state.
15253
15254 This feature is not implemented in the 4.0.0 release but may show up
15255 in a dot release.
15256 </desc>
15257 <param name="cpuId" type="unsigned long" dir="in">
15258 <desc>The identifier of the Virtual CPU.</desc>
15259 </param>
15260 <param name="stack" type="wstring" dir="return">
15261 <desc>String containing the formatted stack dump.</desc>
15262 </param>
15263 </method>
15264
15265 <method name="resetStats">
15266 <desc>
15267 Reset VM statistics.
15268 </desc>
15269 <param name="pattern" type="wstring" dir="in">
15270 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15271 </param>
15272 </method>
15273
15274 <method name="dumpStats">
15275 <desc>
15276 Dumps VM statistics.
15277 </desc>
15278 <param name="pattern" type="wstring" dir="in">
15279 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15280 </param>
15281 </method>
15282
15283 <method name="getStats">
15284 <desc>
15285 Get the VM statistics in a XMLish format.
15286 </desc>
15287 <param name="pattern" type="wstring" dir="in">
15288 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15289 </param>
15290 <param name="withDescriptions" type="boolean" dir="in">
15291 <desc>Whether to include the descriptions.</desc>
15292 </param>
15293 <param name="stats" type="wstring" dir="out">
15294 <desc>The XML document containing the statistics.</desc>
15295 </param>
15296 </method>
15297
15298 <attribute name="singleStep" type="boolean">
15299 <desc>Switch for enabling single-stepping.</desc>
15300 </attribute>
15301
15302 <attribute name="recompileUser" type="boolean">
15303 <desc>Switch for forcing code recompilation for user mode code.</desc>
15304 </attribute>
15305
15306 <attribute name="recompileSupervisor" type="boolean">
15307 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15308 </attribute>
15309
15310 <attribute name="PATMEnabled" type="boolean">
15311 <desc>Switch for enabling and disabling the PATM component.</desc>
15312 </attribute>
15313
15314 <attribute name="CSAMEnabled" type="boolean">
15315 <desc>Switch for enabling and disabling the CSAM component.</desc>
15316 </attribute>
15317
15318 <attribute name="logEnabled" type="boolean">
15319 <desc>Switch for enabling and disabling the debug logger.</desc>
15320 </attribute>
15321
15322 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15323 <desc>The debug logger flags.</desc>
15324 </attribute>
15325
15326 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15327 <desc>The debug logger's group settings.</desc>
15328 </attribute>
15329
15330 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15331 <desc>The debug logger's destination settings.</desc>
15332 </attribute>
15333
15334 <attribute name="logRelFlags" type="wstring" readonly="yes">
15335 <desc>The release logger flags.</desc>
15336 </attribute>
15337
15338 <attribute name="logRelGroups" type="wstring" readonly="yes">
15339 <desc>The release logger's group settings.</desc>
15340 </attribute>
15341
15342 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15343 <desc>The relase logger's destination settings.</desc>
15344 </attribute>
15345
15346 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15347 <desc>
15348 Flag indicating whether the VM is currently making use of CPU hardware
15349 virtualization extensions.
15350 </desc>
15351 </attribute>
15352
15353 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15354 <desc>
15355 Flag indicating whether the VM is currently making use of the nested paging
15356 CPU hardware virtualization extension.
15357 </desc>
15358 </attribute>
15359
15360 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15361 <desc>
15362 Flag indicating whether the VM is currently making use of the VPID
15363 VT-x extension.
15364 </desc>
15365 </attribute>
15366
15367 <attribute name="OSName" type="wstring" readonly="yes">
15368 <desc>
15369 Query the guest OS kernel name as detected by the DBGF.
15370
15371 This feature is not implemented in the 4.0.0 release but may show up
15372 in a dot release.
15373 </desc>
15374 </attribute>
15375
15376 <attribute name="OSVersion" type="wstring" readonly="yes">
15377 <desc>
15378 Query the guest OS kernel version string as detected by the DBGF.
15379
15380 This feature is not implemented in the 4.0.0 release but may show up
15381 in a dot release.
15382 </desc>
15383 </attribute>
15384
15385 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15386 <desc>
15387 Flag indicating whether the VM is currently making use of the Physical
15388 Address Extension CPU feature.
15389 </desc>
15390 </attribute>
15391
15392 <attribute name="virtualTimeRate" type="unsigned long">
15393 <desc>
15394 The rate at which the virtual time runs expressed as a percentage.
15395 The accepted range is 2% to 20000%.
15396 </desc>
15397 </attribute>
15398
15399 <attribute name="VM" type="long long" readonly="yes">
15400 <desc>
15401 Gets the VM handle. This is only for internal use while
15402 we carve the details of this interface.
15403 </desc>
15404 </attribute>
15405
15406 </interface>
15407
15408 <!--
15409 // IUSBController
15410 /////////////////////////////////////////////////////////////////////////
15411 -->
15412
15413 <interface
15414 name="IUSBController" extends="$unknown"
15415 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15416 wsmap="managed"
15417 >
15418 <attribute name="enabled" type="boolean">
15419 <desc>
15420 Flag whether the USB controller is present in the
15421 guest system. If disabled, the virtual guest hardware will
15422 not contain any USB controller. Can only be changed when
15423 the VM is powered off.
15424 </desc>
15425 </attribute>
15426
15427 <attribute name="enabledEHCI" type="boolean">
15428 <desc>
15429 Flag whether the USB EHCI controller is present in the
15430 guest system. If disabled, the virtual guest hardware will
15431 not contain a USB EHCI controller. Can only be changed when
15432 the VM is powered off.
15433 </desc>
15434 </attribute>
15435
15436 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15437 <desc>
15438 Flag whether there is an USB proxy available.
15439 </desc>
15440 </attribute>
15441
15442 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15443 <desc>
15444 USB standard version which the controller implements.
15445 This is a BCD which means that the major version is in the
15446 high byte and minor version is in the low byte.
15447 </desc>
15448 </attribute>
15449
15450 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15451 <desc>
15452 List of USB device filters associated with the machine.
15453
15454 If the machine is currently running, these filters are activated
15455 every time a new (supported) USB device is attached to the host
15456 computer that was not ignored by global filters
15457 (<link to="IHost::USBDeviceFilters"/>).
15458
15459 These filters are also activated when the machine is powered up.
15460 They are run against a list of all currently available USB
15461 devices (in states
15462 <link to="USBDeviceState_Available"/>,
15463 <link to="USBDeviceState_Busy"/>,
15464 <link to="USBDeviceState_Held"/>) that were not previously
15465 ignored by global filters.
15466
15467 If at least one filter matches the USB device in question, this
15468 device is automatically captured (attached to) the virtual USB
15469 controller of this machine.
15470
15471 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
15472 </desc>
15473 </attribute>
15474
15475 <method name="createDeviceFilter">
15476 <desc>
15477 Creates a new USB device filter. All attributes except
15478 the filter name are set to empty (any match),
15479 <i>active</i> is @c false (the filter is not active).
15480
15481 The created filter can then be added to the list of filters using
15482 <link to="#insertDeviceFilter"/>.
15483
15484 <result name="VBOX_E_INVALID_VM_STATE">
15485 The virtual machine is not mutable.
15486 </result>
15487
15488 <see><link to="#deviceFilters"/></see>
15489 </desc>
15490 <param name="name" type="wstring" dir="in">
15491 <desc>
15492 Filter name. See <link to="IUSBDeviceFilter::name"/>
15493 for more info.
15494 </desc>
15495 </param>
15496 <param name="filter" type="IUSBDeviceFilter" dir="return">
15497 <desc>Created filter object.</desc>
15498 </param>
15499 </method>
15500
15501 <method name="insertDeviceFilter">
15502 <desc>
15503 Inserts the given USB device to the specified position
15504 in the list of filters.
15505
15506 Positions are numbered starting from <tt>0</tt>. If the specified
15507 position is equal to or greater than the number of elements in
15508 the list, the filter is added to the end of the collection.
15509
15510 <note>
15511 Duplicates are not allowed, so an attempt to insert a
15512 filter that is already in the collection, will return an
15513 error.
15514 </note>
15515
15516 <result name="VBOX_E_INVALID_VM_STATE">
15517 Virtual machine is not mutable.
15518 </result>
15519 <result name="E_INVALIDARG">
15520 USB device filter not created within this VirtualBox instance.
15521 </result>
15522 <result name="VBOX_E_INVALID_OBJECT_STATE">
15523 USB device filter already in list.
15524 </result>
15525
15526 <see><link to="#deviceFilters"/></see>
15527 </desc>
15528 <param name="position" type="unsigned long" dir="in">
15529 <desc>Position to insert the filter to.</desc>
15530 </param>
15531 <param name="filter" type="IUSBDeviceFilter" dir="in">
15532 <desc>USB device filter to insert.</desc>
15533 </param>
15534 </method>
15535
15536 <method name="removeDeviceFilter">
15537 <desc>
15538 Removes a USB device filter from the specified position in the
15539 list of filters.
15540
15541 Positions are numbered starting from <tt>0</tt>. Specifying a
15542 position equal to or greater than the number of elements in
15543 the list will produce an error.
15544
15545 <see><link to="#deviceFilters"/></see>
15546
15547 <result name="VBOX_E_INVALID_VM_STATE">
15548 Virtual machine is not mutable.
15549 </result>
15550 <result name="E_INVALIDARG">
15551 USB device filter list empty or invalid @a position.
15552 </result>
15553
15554 </desc>
15555 <param name="position" type="unsigned long" dir="in">
15556 <desc>Position to remove the filter from.</desc>
15557 </param>
15558 <param name="filter" type="IUSBDeviceFilter" dir="return">
15559 <desc>Removed USB device filter.</desc>
15560 </param>
15561 </method>
15562
15563 </interface>
15564
15565
15566 <!--
15567 // IUSBDevice
15568 /////////////////////////////////////////////////////////////////////////
15569 -->
15570
15571 <interface
15572 name="IUSBDevice" extends="$unknown"
15573 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
15574 wsmap="managed"
15575 >
15576 <desc>
15577 The IUSBDevice interface represents a virtual USB device attached to the
15578 virtual machine.
15579
15580 A collection of objects implementing this interface is stored in the
15581 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
15582 attached to a running virtual machine's USB controller.
15583 </desc>
15584
15585 <attribute name="id" type="uuid" mod="string" readonly="yes">
15586 <desc>
15587 Unique USB device ID. This ID is built from #vendorId,
15588 #productId, #revision and #serialNumber.
15589 </desc>
15590 </attribute>
15591
15592 <attribute name="vendorId" type="unsigned short" readonly="yes">
15593 <desc>Vendor ID.</desc>
15594 </attribute>
15595
15596 <attribute name="productId" type="unsigned short" readonly="yes">
15597 <desc>Product ID.</desc>
15598 </attribute>
15599
15600 <attribute name="revision" type="unsigned short" readonly="yes">
15601 <desc>
15602 Product revision number. This is a packed BCD represented as
15603 unsigned short. The high byte is the integer part and the low
15604 byte is the decimal.
15605 </desc>
15606 </attribute>
15607
15608 <attribute name="manufacturer" type="wstring" readonly="yes">
15609 <desc>Manufacturer string.</desc>
15610 </attribute>
15611
15612 <attribute name="product" type="wstring" readonly="yes">
15613 <desc>Product string.</desc>
15614 </attribute>
15615
15616 <attribute name="serialNumber" type="wstring" readonly="yes">
15617 <desc>Serial number string.</desc>
15618 </attribute>
15619
15620 <attribute name="address" type="wstring" readonly="yes">
15621 <desc>Host specific address of the device.</desc>
15622 </attribute>
15623
15624 <attribute name="port" type="unsigned short" readonly="yes">
15625 <desc>
15626 Host USB port number the device is physically
15627 connected to.
15628 </desc>
15629 </attribute>
15630
15631 <attribute name="version" type="unsigned short" readonly="yes">
15632 <desc>
15633 The major USB version of the device - 1 or 2.
15634 </desc>
15635 </attribute>
15636
15637 <attribute name="portVersion" type="unsigned short" readonly="yes">
15638 <desc>
15639 The major USB version of the host USB port the device is
15640 physically connected to - 1 or 2. For devices not connected to
15641 anything this will have the same value as the version attribute.
15642 </desc>
15643 </attribute>
15644
15645 <attribute name="remote" type="boolean" readonly="yes">
15646 <desc>
15647 Whether the device is physically connected to a remote VRDE
15648 client or to a local host machine.
15649 </desc>
15650 </attribute>
15651
15652 </interface>
15653
15654
15655 <!--
15656 // IUSBDeviceFilter
15657 /////////////////////////////////////////////////////////////////////////
15658 -->
15659
15660 <interface
15661 name="IUSBDeviceFilter" extends="$unknown"
15662 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
15663 wsmap="managed"
15664 >
15665 <desc>
15666 The IUSBDeviceFilter interface represents an USB device filter used
15667 to perform actions on a group of USB devices.
15668
15669 This type of filters is used by running virtual machines to
15670 automatically capture selected USB devices once they are physically
15671 attached to the host computer.
15672
15673 A USB device is matched to the given device filter if and only if all
15674 attributes of the device match the corresponding attributes of the
15675 filter (that is, attributes are joined together using the logical AND
15676 operation). On the other hand, all together, filters in the list of
15677 filters carry the semantics of the logical OR operation. So if it is
15678 desirable to create a match like "this vendor id OR this product id",
15679 one needs to create two filters and specify "any match" (see below)
15680 for unused attributes.
15681
15682 All filter attributes used for matching are strings. Each string
15683 is an expression representing a set of values of the corresponding
15684 device attribute, that will match the given filter. Currently, the
15685 following filtering expressions are supported:
15686
15687 <ul>
15688 <li><i>Interval filters</i>. Used to specify valid intervals for
15689 integer device attributes (Vendor ID, Product ID and Revision).
15690 The format of the string is:
15691
15692 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
15693
15694 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
15695 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
15696 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
15697 is omitted before a dash (<tt>-</tt>), the minimum possible integer
15698 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
15699 possible integer is assumed.
15700 </li>
15701 <li><i>Boolean filters</i>. Used to specify acceptable values for
15702 boolean device attributes. The format of the string is:
15703
15704 <tt>true|false|yes|no|0|1</tt>
15705
15706 </li>
15707 <li><i>Exact match</i>. Used to specify a single value for the given
15708 device attribute. Any string that doesn't start with <tt>int:</tt>
15709 represents the exact match. String device attributes are compared to
15710 this string including case of symbols. Integer attributes are first
15711 converted to a string (see individual filter attributes) and then
15712 compared ignoring case.
15713
15714 </li>
15715 <li><i>Any match</i>. Any value of the corresponding device attribute
15716 will match the given filter. An empty or @c null string is
15717 used to construct this type of filtering expressions.
15718
15719 </li>
15720 </ul>
15721
15722 <note>
15723 On the Windows host platform, interval filters are not currently
15724 available. Also all string filter attributes
15725 (<link to="#manufacturer"/>, <link to="#product"/>,
15726 <link to="#serialNumber"/>) are ignored, so they behave as
15727 <i>any match</i> no matter what string expression is specified.
15728 </note>
15729
15730 <see><link to="IUSBController::deviceFilters"/>,
15731 <link to="IHostUSBDeviceFilter"/></see>
15732 </desc>
15733
15734 <attribute name="name" type="wstring">
15735 <desc>
15736 Visible name for this filter.
15737 This name is used to visually distinguish one filter from another,
15738 so it can neither be @c null nor an empty string.
15739 </desc>
15740 </attribute>
15741
15742 <attribute name="active" type="boolean">
15743 <desc>Whether this filter active or has been temporarily disabled.</desc>
15744 </attribute>
15745
15746 <attribute name="vendorId" type="wstring">
15747 <desc>
15748 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
15749 The string representation for the <i>exact matching</i>
15750 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15751 (including leading zeroes).
15752 </desc>
15753 </attribute>
15754
15755 <attribute name="productId" type="wstring">
15756 <desc>
15757 <link to="IUSBDevice::productId">Product ID</link> filter.
15758 The string representation for the <i>exact matching</i>
15759 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15760 (including leading zeroes).
15761 </desc>
15762 </attribute>
15763
15764 <attribute name="revision" type="wstring">
15765 <desc>
15766 <link to="IUSBDevice::productId">Product revision number</link>
15767 filter. The string representation for the <i>exact matching</i>
15768 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
15769 of the integer part of the revision, and <tt>F</tt> is the
15770 decimal digit of its fractional part (including leading and
15771 trailing zeros).
15772 Note that for interval filters, it's best to use the hexadecimal
15773 form, because the revision is stored as a 16 bit packed BCD value;
15774 so the expression <tt>int:0x0100-0x0199</tt> will match any
15775 revision from <tt>1.0</tt> to <tt>1.99</tt>.
15776 </desc>
15777 </attribute>
15778
15779 <attribute name="manufacturer" type="wstring">
15780 <desc>
15781 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
15782 </desc>
15783 </attribute>
15784
15785 <attribute name="product" type="wstring">
15786 <desc>
15787 <link to="IUSBDevice::product">Product</link> filter.
15788 </desc>
15789 </attribute>
15790
15791 <attribute name="serialNumber" type="wstring">
15792 <desc>
15793 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
15794 </desc>
15795 </attribute>
15796
15797 <attribute name="port" type="wstring">
15798 <desc>
15799 <link to="IUSBDevice::port">Host USB port</link> filter.
15800 </desc>
15801 </attribute>
15802
15803 <attribute name="remote" type="wstring">
15804 <desc>
15805 <link to="IUSBDevice::remote">Remote state</link> filter.
15806 <note>
15807 This filter makes sense only for machine USB filters,
15808 i.e. it is ignored by IHostUSBDeviceFilter objects.
15809 </note>
15810 </desc>
15811 </attribute>
15812
15813 <attribute name="maskedInterfaces" type="unsigned long">
15814 <desc>
15815 This is an advanced option for hiding one or more USB interfaces
15816 from the guest. The value is a bit mask where the bits that are set
15817 means the corresponding USB interface should be hidden, masked off
15818 if you like.
15819 This feature only works on Linux hosts.
15820 </desc>
15821 </attribute>
15822
15823 </interface>
15824
15825
15826 <!--
15827 // IHostUSBDevice
15828 /////////////////////////////////////////////////////////////////////////
15829 -->
15830
15831 <enum
15832 name="USBDeviceState"
15833 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
15834 >
15835 <desc>
15836 USB device state. This enumeration represents all possible states
15837 of the USB device physically attached to the host computer regarding
15838 its state on the host computer and availability to guest computers
15839 (all currently running virtual machines).
15840
15841 Once a supported USB device is attached to the host, global USB
15842 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
15843 either ignore the device, or put it to USBDeviceState_Held state, or do
15844 nothing. Unless the device is ignored by global filters, filters of all
15845 currently running guests (<link to="IUSBController::deviceFilters"/>) are
15846 activated that can put it to USBDeviceState_Captured state.
15847
15848 If the device was ignored by global filters, or didn't match
15849 any filters at all (including guest ones), it is handled by the host
15850 in a normal way. In this case, the device state is determined by
15851 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
15852 or USBDeviceState_Available, depending on the current device usage.
15853
15854 Besides auto-capturing based on filters, the device can be manually
15855 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
15856 state is USBDeviceState_Busy, USBDeviceState_Available or
15857 USBDeviceState_Held.
15858
15859 <note>
15860 Due to differences in USB stack implementations in Linux and Win32,
15861 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
15862 only to the Linux version of the product. This also means that (<link
15863 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
15864 device state is USBDeviceState_Held.
15865 </note>
15866
15867 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
15868 </desc>
15869
15870 <const name="NotSupported" value="0">
15871 <desc>
15872 Not supported by the VirtualBox server, not available to guests.
15873 </desc>
15874 </const>
15875 <const name="Unavailable" value="1">
15876 <desc>
15877 Being used by the host computer exclusively,
15878 not available to guests.
15879 </desc>
15880 </const>
15881 <const name="Busy" value="2">
15882 <desc>
15883 Being used by the host computer, potentially available to guests.
15884 </desc>
15885 </const>
15886 <const name="Available" value="3">
15887 <desc>
15888 Not used by the host computer, available to guests (the host computer
15889 can also start using the device at any time).
15890 </desc>
15891 </const>
15892 <const name="Held" value="4">
15893 <desc>
15894 Held by the VirtualBox server (ignored by the host computer),
15895 available to guests.
15896 </desc>
15897 </const>
15898 <const name="Captured" value="5">
15899 <desc>
15900 Captured by one of the guest computers, not available
15901 to anybody else.
15902 </desc>
15903 </const>
15904 </enum>
15905
15906 <interface
15907 name="IHostUSBDevice" extends="IUSBDevice"
15908 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
15909 wsmap="managed"
15910 >
15911 <desc>
15912 The IHostUSBDevice interface represents a physical USB device attached
15913 to the host computer.
15914
15915 Besides properties inherited from IUSBDevice, this interface adds the
15916 <link to="#state"/> property that holds the current state of the USB
15917 device.
15918
15919 <see><link to="IHost::USBDevices"/>,
15920 <link to="IHost::USBDeviceFilters"/></see>
15921 </desc>
15922
15923 <attribute name="state" type="USBDeviceState" readonly="yes">
15924 <desc>
15925 Current state of the device.
15926 </desc>
15927 </attribute>
15928
15929 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
15930
15931 </interface>
15932
15933
15934 <!--
15935 // IHostUSBDeviceFilter
15936 /////////////////////////////////////////////////////////////////////////
15937 -->
15938
15939 <enum
15940 name="USBDeviceFilterAction"
15941 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
15942 >
15943 <desc>
15944 Actions for host USB device filters.
15945 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
15946 </desc>
15947
15948 <const name="Null" value="0">
15949 <desc>Null value (never used by the API).</desc>
15950 </const>
15951 <const name="Ignore" value="1">
15952 <desc>Ignore the matched USB device.</desc>
15953 </const>
15954 <const name="Hold" value="2">
15955 <desc>Hold the matched USB device.</desc>
15956 </const>
15957 </enum>
15958
15959 <interface
15960 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
15961 uuid="4cc70246-d74a-400f-8222-3900489c0374"
15962 wsmap="managed"
15963 >
15964 <desc>
15965 The IHostUSBDeviceFilter interface represents a global filter for a
15966 physical USB device used by the host computer. Used indirectly in
15967 <link to="IHost::USBDeviceFilters"/>.
15968
15969 Using filters of this type, the host computer determines the initial
15970 state of the USB device after it is physically attached to the
15971 host's USB controller.
15972
15973 <note>
15974 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
15975 filters, because it makes sense only for
15976 <link to="IUSBController::deviceFilters">machine USB filters</link>.
15977 </note>
15978
15979 <see><link to="IHost::USBDeviceFilters"/></see>
15980 </desc>
15981
15982 <attribute name="action" type="USBDeviceFilterAction">
15983 <desc>
15984 Action performed by the host when an attached USB device
15985 matches this filter.
15986 </desc>
15987 </attribute>
15988
15989 </interface>
15990
15991 <!--
15992 // IAudioAdapter
15993 /////////////////////////////////////////////////////////////////////////
15994 -->
15995
15996 <enum
15997 name="AudioDriverType"
15998 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
15999 >
16000 <desc>
16001 Host audio driver type.
16002 </desc>
16003
16004 <const name="Null" value="0">
16005 <desc>Null value, also means "dummy audio driver".</desc>
16006 </const>
16007 <const name="WinMM" value="1">
16008 <desc>Windows multimedia (Windows hosts only).</desc>
16009 </const>
16010 <const name="OSS" value="2">
16011 <desc>Open Sound System (Linux hosts only).</desc>
16012 </const>
16013 <const name="ALSA" value="3">
16014 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16015 </const>
16016 <const name="DirectSound" value="4">
16017 <desc>DirectSound (Windows hosts only).</desc>
16018 </const>
16019 <const name="CoreAudio" value="5">
16020 <desc>CoreAudio (Mac hosts only).</desc>
16021 </const>
16022 <const name="MMPM" value="6">
16023 <desc>Reserved for historical reasons.</desc>
16024 </const>
16025 <const name="Pulse" value="7">
16026 <desc>PulseAudio (Linux hosts only).</desc>
16027 </const>
16028 <const name="SolAudio" value="8">
16029 <desc>Solaris audio (Solaris hosts only).</desc>
16030 </const>
16031 </enum>
16032
16033 <enum
16034 name="AudioControllerType"
16035 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16036 >
16037 <desc>
16038 Virtual audio controller type.
16039 </desc>
16040
16041 <const name="AC97" value="0"/>
16042 <const name="SB16" value="1"/>
16043 <const name="HDA" value="2"/>
16044 </enum>
16045
16046 <interface
16047 name="IAudioAdapter" extends="$unknown"
16048 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16049 wsmap="managed"
16050 >
16051 <desc>
16052 The IAudioAdapter interface represents the virtual audio adapter of
16053 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16054 </desc>
16055 <attribute name="enabled" type="boolean">
16056 <desc>
16057 Flag whether the audio adapter is present in the
16058 guest system. If disabled, the virtual guest hardware will
16059 not contain any audio adapter. Can only be changed when
16060 the VM is not running.
16061 </desc>
16062 </attribute>
16063 <attribute name="audioController" type="AudioControllerType">
16064 <desc>
16065 The audio hardware we emulate.
16066 </desc>
16067 </attribute>
16068 <attribute name="audioDriver" type="AudioDriverType">
16069 <desc>
16070 Audio driver the adapter is connected to. This setting
16071 can only be changed when the VM is not running.
16072 </desc>
16073 </attribute>
16074 </interface>
16075
16076 <enum
16077 name="AuthType"
16078 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16079 >
16080 <desc>
16081 VirtualBox authentication type.
16082 </desc>
16083
16084 <const name="Null" value="0">
16085 <desc>Null value, also means "no authentication".</desc>
16086 </const>
16087 <const name="External" value="1"/>
16088 <const name="Guest" value="2"/>
16089 </enum>
16090
16091 <!--
16092 // IVRDEServer
16093 /////////////////////////////////////////////////////////////////////////
16094 -->
16095
16096 <interface
16097 name="IVRDEServer" extends="$unknown"
16098 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16099 wsmap="managed"
16100 >
16101 <attribute name="enabled" type="boolean">
16102 <desc>VRDE server status.</desc>
16103 </attribute>
16104
16105 <attribute name="authType" type="AuthType">
16106 <desc>VRDE authentication method.</desc>
16107 </attribute>
16108
16109 <attribute name="authTimeout" type="unsigned long">
16110 <desc>Timeout for guest authentication. Milliseconds.</desc>
16111 </attribute>
16112
16113 <attribute name="allowMultiConnection" type="boolean">
16114 <desc>
16115 Flag whether multiple simultaneous connections to the VM are permitted.
16116 Note that this will be replaced by a more powerful mechanism in the future.
16117 </desc>
16118 </attribute>
16119
16120 <attribute name="reuseSingleConnection" type="boolean">
16121 <desc>
16122 Flag whether the existing connection must be dropped and a new connection
16123 must be established by the VRDE server, when a new client connects in single
16124 connection mode.
16125 </desc>
16126 </attribute>
16127
16128 <attribute name="VRDEExtPack" type="wstring">
16129 <desc>
16130 The name of Extension Pack providing VRDE for this VM. Overrides
16131 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16132 </desc>
16133 </attribute>
16134
16135 <attribute name="authLibrary" type="wstring">
16136 <desc>
16137 Library used for authentication of RDP clients by this VM. Overrides
16138 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16139 </desc>
16140 </attribute>
16141
16142 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16143 <desc>
16144 Array of names of properties, which are supported by this VRDE server.
16145 </desc>
16146 </attribute>
16147
16148 <method name="setVRDEProperty">
16149 <desc>
16150 Sets a VRDE specific property string.
16151
16152 If you pass @c null or empty string as a key @a value, the given @a key
16153 will be deleted.
16154
16155 </desc>
16156 <param name="key" type="wstring" dir="in">
16157 <desc>Name of the key to set.</desc>
16158 </param>
16159 <param name="value" type="wstring" dir="in">
16160 <desc>Value to assign to the key.</desc>
16161 </param>
16162 </method>
16163
16164 <method name="getVRDEProperty" const="yes">
16165 <desc>
16166 Returns a VRDE specific property string.
16167
16168 If the requested data @a key does not exist, this function will
16169 succeed and return an empty string in the @a value argument.
16170
16171 </desc>
16172 <param name="key" type="wstring" dir="in">
16173 <desc>Name of the key to get.</desc>
16174 </param>
16175 <param name="value" type="wstring" dir="return">
16176 <desc>Value of the requested key.</desc>
16177 </param>
16178 </method>
16179
16180 </interface>
16181
16182
16183 <!--
16184 // ISharedFolder
16185 /////////////////////////////////////////////////////////////////////////
16186 -->
16187
16188 <interface
16189 name="ISharedFolder" extends="$unknown"
16190 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16191 wsmap="struct"
16192 >
16193 <desc>
16194 The ISharedFolder interface represents a folder in the host computer's
16195 file system accessible from the guest OS running inside a virtual
16196 machine using an associated logical name.
16197
16198 There are three types of shared folders:
16199 <ul>
16200 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16201 folders available to all virtual machines.</li>
16202 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16203 VM-specific shared folders available to the given virtual machine at
16204 startup.</li>
16205 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16206 VM-specific shared folders created in the session context (for
16207 example, when the virtual machine is running) and automatically
16208 discarded when the session is closed (the VM is powered off).</li>
16209 </ul>
16210
16211 Logical names of shared folders must be unique within the given scope
16212 (global, permanent or transient). However, they do not need to be unique
16213 across scopes. In this case, the definition of the shared folder in a
16214 more specific scope takes precedence over definitions in all other
16215 scopes. The order of precedence is (more specific to more general):
16216 <ol>
16217 <li>Transient definitions</li>
16218 <li>Permanent definitions</li>
16219 <li>Global definitions</li>
16220 </ol>
16221
16222 For example, if MyMachine has a shared folder named
16223 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16224 transient shared folder named <tt>C_DRIVE</tt> (that points
16225 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16226 of <tt>C_DRIVE</tt> in the guest OS so
16227 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16228 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16229 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16230 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16231 to <tt>C:\\</tt> if it still exists.
16232
16233 Note that permanent and transient shared folders of different machines
16234 are in different name spaces, so they don't overlap and don't need to
16235 have unique logical names.
16236
16237 <note>
16238 Global shared folders are not implemented in the current version of the
16239 product.
16240 </note>
16241 </desc>
16242
16243 <attribute name="name" type="wstring" readonly="yes">
16244 <desc>Logical name of the shared folder.</desc>
16245 </attribute>
16246
16247 <attribute name="hostPath" type="wstring" readonly="yes">
16248 <desc>Full path to the shared folder in the host file system.</desc>
16249 </attribute>
16250
16251 <attribute name="accessible" type="boolean" readonly="yes">
16252 <desc>
16253 Whether the folder defined by the host path is currently
16254 accessible or not.
16255 For example, the folder can be inaccessible if it is placed
16256 on the network share that is not available by the time
16257 this property is read.
16258 </desc>
16259 </attribute>
16260
16261 <attribute name="writable" type="boolean" readonly="yes">
16262 <desc>
16263 Whether the folder defined by the host path is writable or
16264 not.
16265 </desc>
16266 </attribute>
16267
16268 <attribute name="autoMount" type="boolean" readonly="yes">
16269 <desc>
16270 Whether the folder gets automatically mounted by the guest or not.
16271 </desc>
16272 </attribute>
16273
16274 <attribute name="lastAccessError" type="wstring" readonly="yes">
16275 <desc>
16276 Text message that represents the result of the last accessibility
16277 check.
16278
16279 Accessibility checks are performed each time the <link to="#accessible"/>
16280 attribute is read. An empty string is returned if the last
16281 accessibility check was successful. A non-empty string indicates a
16282 failure and should normally describe a reason of the failure (for
16283 example, a file read error).
16284 </desc>
16285 </attribute>
16286
16287 </interface>
16288
16289 <!--
16290 // ISession
16291 /////////////////////////////////////////////////////////////////////////
16292 -->
16293
16294 <interface
16295 name="IInternalSessionControl" extends="$unknown"
16296 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16297 internal="yes"
16298 wsmap="suppress"
16299 >
16300 <method name="getPID">
16301 <desc>PID of the process that has created this Session object.
16302 </desc>
16303 <param name="pid" type="unsigned long" dir="return"/>
16304 </method>
16305
16306 <method name="getRemoteConsole">
16307 <desc>
16308 Returns the console object suitable for remote control.
16309
16310 <result name="VBOX_E_INVALID_VM_STATE">
16311 Session state prevents operation.
16312 </result>
16313 <result name="VBOX_E_INVALID_OBJECT_STATE">
16314 Session type prevents operation.
16315 </result>
16316
16317 </desc>
16318 <param name="console" type="IConsole" dir="return"/>
16319 </method>
16320
16321 <method name="assignMachine">
16322 <desc>
16323 Assigns the machine object associated with this direct-type
16324 session or informs the session that it will be a remote one
16325 (if @a machine == @c null).
16326
16327 <result name="VBOX_E_INVALID_VM_STATE">
16328 Session state prevents operation.
16329 </result>
16330 <result name="VBOX_E_INVALID_OBJECT_STATE">
16331 Session type prevents operation.
16332 </result>
16333
16334 </desc>
16335 <param name="machine" type="IMachine" dir="in"/>
16336 <param name="lockType" type="LockType" dir="in"/>
16337 </method>
16338
16339 <method name="assignRemoteMachine">
16340 <desc>
16341 Assigns the machine and the (remote) console object associated with
16342 this remote-type session.
16343
16344 <result name="VBOX_E_INVALID_VM_STATE">
16345 Session state prevents operation.
16346 </result>
16347
16348 </desc>
16349 <param name="machine" type="IMachine" dir="in"/>
16350 <param name="console" type="IConsole" dir="in"/>
16351 </method>
16352
16353 <method name="updateMachineState">
16354 <desc>
16355 Updates the machine state in the VM process.
16356 Must be called only in certain cases
16357 (see the method implementation).
16358
16359 <result name="VBOX_E_INVALID_VM_STATE">
16360 Session state prevents operation.
16361 </result>
16362 <result name="VBOX_E_INVALID_OBJECT_STATE">
16363 Session type prevents operation.
16364 </result>
16365
16366 </desc>
16367 <param name="aMachineState" type="MachineState" dir="in"/>
16368 </method>
16369
16370 <method name="uninitialize">
16371 <desc>
16372 Uninitializes (closes) this session. Used by VirtualBox to close
16373 the corresponding remote session when the direct session dies
16374 or gets closed.
16375
16376 <result name="VBOX_E_INVALID_VM_STATE">
16377 Session state prevents operation.
16378 </result>
16379
16380 </desc>
16381 </method>
16382
16383 <method name="onNetworkAdapterChange">
16384 <desc>
16385 Triggered when settings of a network adapter of the
16386 associated virtual machine have changed.
16387
16388 <result name="VBOX_E_INVALID_VM_STATE">
16389 Session state prevents operation.
16390 </result>
16391 <result name="VBOX_E_INVALID_OBJECT_STATE">
16392 Session type prevents operation.
16393 </result>
16394
16395 </desc>
16396 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16397 <param name="changeAdapter" type="boolean" dir="in"/>
16398 </method>
16399
16400 <method name="onSerialPortChange">
16401 <desc>
16402 Triggered when settings of a serial port of the
16403 associated virtual machine have changed.
16404
16405 <result name="VBOX_E_INVALID_VM_STATE">
16406 Session state prevents operation.
16407 </result>
16408 <result name="VBOX_E_INVALID_OBJECT_STATE">
16409 Session type prevents operation.
16410 </result>
16411
16412 </desc>
16413 <param name="serialPort" type="ISerialPort" dir="in"/>
16414 </method>
16415
16416 <method name="onParallelPortChange">
16417 <desc>
16418 Triggered when settings of a parallel port of the
16419 associated virtual machine have changed.
16420
16421 <result name="VBOX_E_INVALID_VM_STATE">
16422 Session state prevents operation.
16423 </result>
16424 <result name="VBOX_E_INVALID_OBJECT_STATE">
16425 Session type prevents operation.
16426 </result>
16427
16428 </desc>
16429 <param name="parallelPort" type="IParallelPort" dir="in"/>
16430 </method>
16431
16432 <method name="onStorageControllerChange">
16433 <desc>
16434 Triggered when settings of a storage controller of the
16435 associated virtual machine have changed.
16436
16437 <result name="VBOX_E_INVALID_VM_STATE">
16438 Session state prevents operation.
16439 </result>
16440 <result name="VBOX_E_INVALID_OBJECT_STATE">
16441 Session type prevents operation.
16442 </result>
16443
16444 </desc>
16445 </method>
16446
16447 <method name="onMediumChange">
16448 <desc>
16449 Triggered when attached media of the
16450 associated virtual machine have changed.
16451
16452 <result name="VBOX_E_INVALID_VM_STATE">
16453 Session state prevents operation.
16454 </result>
16455 <result name="VBOX_E_INVALID_OBJECT_STATE">
16456 Session type prevents operation.
16457 </result>
16458
16459 </desc>
16460
16461 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16462 <desc>The medium attachment which changed.</desc>
16463 </param>
16464 <param name="force" type="boolean" dir="in">
16465 <desc>If the medium change was forced.</desc>
16466 </param>
16467 </method>
16468
16469 <method name="onStorageDeviceChange">
16470 <desc>
16471 Triggered when attached storage devices of the
16472 associated virtual machine have changed.
16473
16474 <result name="VBOX_E_INVALID_VM_STATE">
16475 Session state prevents operation.
16476 </result>
16477 <result name="VBOX_E_INVALID_OBJECT_STATE">
16478 Session type prevents operation.
16479 </result>
16480
16481 </desc>
16482
16483 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16484 <desc>The medium attachment which changed.</desc>
16485 </param>
16486 <param name="remove" type="boolean" dir="in">
16487 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
16488 </param>
16489 </method>
16490
16491 <method name="onClipboardModeChange">
16492 <desc>
16493 Notification when the shared clipboard mode changes.
16494 </desc>
16495 <param name="clipboardMode" type="ClipboardMode" dir="in">
16496 <desc>The new shared clipboard mode.</desc>
16497 </param>
16498 </method>
16499
16500 <method name="onDragAndDropModeChange">
16501 <desc>
16502 Notification when the drag'n'drop mode changes.
16503 </desc>
16504 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
16505 <desc>The new mode for drag'n'drop.</desc>
16506 </param>
16507 </method>
16508
16509 <method name="onCPUChange">
16510 <desc>
16511 Notification when a CPU changes.
16512 </desc>
16513 <param name="cpu" type="unsigned long" dir="in">
16514 <desc>The CPU which changed</desc>
16515 </param>
16516 <param name="add" type="boolean" dir="in">
16517 <desc>Flag whether the CPU was added or removed</desc>
16518 </param>
16519 </method>
16520
16521 <method name="onCPUExecutionCapChange">
16522 <desc>
16523 Notification when the CPU execution cap changes.
16524 </desc>
16525 <param name="executionCap" type="unsigned long" dir="in">
16526 <desc>The new CPU execution cap value. (1-100)</desc>
16527 </param>
16528 </method>
16529
16530 <method name="onVRDEServerChange">
16531 <desc>
16532 Triggered when settings of the VRDE server object of the
16533 associated virtual machine have changed.
16534
16535 <result name="VBOX_E_INVALID_VM_STATE">
16536 Session state prevents operation.
16537 </result>
16538 <result name="VBOX_E_INVALID_OBJECT_STATE">
16539 Session type prevents operation.
16540 </result>
16541
16542 </desc>
16543 <param name="restart" type="boolean" dir="in">
16544 <desc>Flag whether the server must be restarted</desc>
16545 </param>
16546 </method>
16547
16548 <method name="onUSBControllerChange">
16549 <desc>
16550 Triggered when settings of the USB controller object of the
16551 associated virtual machine have changed.
16552
16553 <result name="VBOX_E_INVALID_VM_STATE">
16554 Session state prevents operation.
16555 </result>
16556 <result name="VBOX_E_INVALID_OBJECT_STATE">
16557 Session type prevents operation.
16558 </result>
16559
16560 </desc>
16561 </method>
16562
16563 <method name="onSharedFolderChange">
16564 <desc>
16565 Triggered when a permanent (global or machine) shared folder has been
16566 created or removed.
16567 <note>
16568 We don't pass shared folder parameters in this notification because
16569 the order in which parallel notifications are delivered is not defined,
16570 therefore it could happen that these parameters were outdated by the
16571 time of processing this notification.
16572 </note>
16573
16574 <result name="VBOX_E_INVALID_VM_STATE">
16575 Session state prevents operation.
16576 </result>
16577 <result name="VBOX_E_INVALID_OBJECT_STATE">
16578 Session type prevents operation.
16579 </result>
16580
16581 </desc>
16582 <param name="global" type="boolean" dir="in"/>
16583 </method>
16584
16585 <method name="onUSBDeviceAttach">
16586 <desc>
16587 Triggered when a request to capture a USB device (as a result
16588 of matched USB filters or direct call to
16589 <link to="IConsole::attachUSBDevice"/>) has completed.
16590 A @c null @a error object means success, otherwise it
16591 describes a failure.
16592
16593 <result name="VBOX_E_INVALID_VM_STATE">
16594 Session state prevents operation.
16595 </result>
16596 <result name="VBOX_E_INVALID_OBJECT_STATE">
16597 Session type prevents operation.
16598 </result>
16599
16600 </desc>
16601 <param name="device" type="IUSBDevice" dir="in"/>
16602 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16603 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
16604 </method>
16605
16606 <method name="onUSBDeviceDetach">
16607 <desc>
16608 Triggered when a request to release the USB device (as a result
16609 of machine termination or direct call to
16610 <link to="IConsole::detachUSBDevice"/>) has completed.
16611 A @c null @a error object means success, otherwise it
16612 describes a failure.
16613
16614 <result name="VBOX_E_INVALID_VM_STATE">
16615 Session state prevents operation.
16616 </result>
16617 <result name="VBOX_E_INVALID_OBJECT_STATE">
16618 Session type prevents operation.
16619 </result>
16620
16621 </desc>
16622 <param name="id" type="uuid" mod="string" dir="in"/>
16623 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16624 </method>
16625
16626 <method name="onShowWindow">
16627 <desc>
16628 Called by <link to="IMachine::canShowConsoleWindow"/> and by
16629 <link to="IMachine::showConsoleWindow"/> in order to notify
16630 console listeners
16631 <link to="ICanShowWindowEvent"/>
16632 and <link to="IShowWindowEvent"/>.
16633
16634 <result name="VBOX_E_INVALID_OBJECT_STATE">
16635 Session type prevents operation.
16636 </result>
16637
16638 </desc>
16639 <param name="check" type="boolean" dir="in"/>
16640 <param name="canShow" type="boolean" dir="out"/>
16641 <param name="winId" type="long long" dir="out"/>
16642 </method>
16643
16644 <method name="onBandwidthGroupChange">
16645 <desc>
16646 Notification when one of the bandwidth groups change.
16647 </desc>
16648 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
16649 <desc>The bandwidth group which changed.</desc>
16650 </param>
16651 </method>
16652
16653 <method name="accessGuestProperty">
16654 <desc>
16655 Called by <link to="IMachine::getGuestProperty"/> and by
16656 <link to="IMachine::setGuestProperty"/> in order to read and
16657 modify guest properties.
16658
16659 <result name="VBOX_E_INVALID_VM_STATE">
16660 Machine session is not open.
16661 </result>
16662 <result name="VBOX_E_INVALID_OBJECT_STATE">
16663 Session type is not direct.
16664 </result>
16665
16666 </desc>
16667 <param name="name" type="wstring" dir="in"/>
16668 <param name="value" type="wstring" dir="in"/>
16669 <param name="flags" type="wstring" dir="in"/>
16670 <param name="isSetter" type="boolean" dir="in"/>
16671 <param name="retValue" type="wstring" dir="out"/>
16672 <param name="retTimestamp" type="long long" dir="out"/>
16673 <param name="retFlags" type="wstring" dir="out"/>
16674 </method>
16675
16676 <method name="enumerateGuestProperties" const="yes">
16677 <desc>
16678 Return a list of the guest properties matching a set of patterns along
16679 with their values, time stamps and flags.
16680
16681 <result name="VBOX_E_INVALID_VM_STATE">
16682 Machine session is not open.
16683 </result>
16684 <result name="VBOX_E_INVALID_OBJECT_STATE">
16685 Session type is not direct.
16686 </result>
16687
16688 </desc>
16689 <param name="patterns" type="wstring" dir="in">
16690 <desc>
16691 The patterns to match the properties against as a comma-separated
16692 string. If this is empty, all properties currently set will be
16693 returned.
16694 </desc>
16695 </param>
16696 <param name="key" type="wstring" dir="out" safearray="yes">
16697 <desc>
16698 The key names of the properties returned.
16699 </desc>
16700 </param>
16701 <param name="value" type="wstring" dir="out" safearray="yes">
16702 <desc>
16703 The values of the properties returned. The array entries match the
16704 corresponding entries in the @a key array.
16705 </desc>
16706 </param>
16707 <param name="timestamp" type="long long" dir="out" safearray="yes">
16708 <desc>
16709 The time stamps of the properties returned. The array entries match
16710 the corresponding entries in the @a key array.
16711 </desc>
16712 </param>
16713 <param name="flags" type="wstring" dir="out" safearray="yes">
16714 <desc>
16715 The flags of the properties returned. The array entries match the
16716 corresponding entries in the @a key array.
16717 </desc>
16718 </param>
16719 </method>
16720
16721 <method name="onlineMergeMedium">
16722 <desc>
16723 Triggers online merging of a hard disk. Used internally when deleting
16724 a snapshot while a VM referring to the same hard disk chain is running.
16725
16726 <result name="VBOX_E_INVALID_VM_STATE">
16727 Machine session is not open.
16728 </result>
16729 <result name="VBOX_E_INVALID_OBJECT_STATE">
16730 Session type is not direct.
16731 </result>
16732
16733 </desc>
16734 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16735 <desc>The medium attachment to identify the medium chain.</desc>
16736 </param>
16737 <param name="sourceIdx" type="unsigned long" dir="in">
16738 <desc>The index of the source image in the chain.
16739 Redundant, but drastically reduces IPC.</desc>
16740 </param>
16741 <param name="targetIdx" type="unsigned long" dir="in">
16742 <desc>The index of the target image in the chain.
16743 Redundant, but drastically reduces IPC.</desc>
16744 </param>
16745 <param name="source" type="IMedium" dir="in">
16746 <desc>Merge source medium.</desc>
16747 </param>
16748 <param name="target" type="IMedium" dir="in">
16749 <desc>Merge target medium.</desc>
16750 </param>
16751 <param name="mergeForward" type="boolean" dir="in">
16752 <desc>Merge direction.</desc>
16753 </param>
16754 <param name="parentForTarget" type="IMedium" dir="in">
16755 <desc>For forward merges: new parent for target medium.</desc>
16756 </param>
16757 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
16758 <desc>For backward merges: list of media which need their parent UUID
16759 updated.</desc>
16760 </param>
16761 <param name="progress" type="IProgress" dir="in">
16762 <desc>
16763 Progress object for this operation.
16764 </desc>
16765 </param>
16766 </method>
16767
16768 <method name="enableVMMStatistics">
16769 <desc>
16770 Enables or disables collection of VMM RAM statistics.
16771
16772 <result name="VBOX_E_INVALID_VM_STATE">
16773 Machine session is not open.
16774 </result>
16775 <result name="VBOX_E_INVALID_OBJECT_STATE">
16776 Session type is not direct.
16777 </result>
16778
16779 </desc>
16780 <param name="enable" type="boolean" dir="in">
16781 <desc>True enables statistics collection.</desc>
16782 </param>
16783 </method>
16784
16785 </interface>
16786
16787 <interface
16788 name="ISession" extends="$unknown"
16789 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
16790 wsmap="managed"
16791 >
16792 <desc>
16793 The ISession interface represents a client process and allows for locking
16794 virtual machines (represented by IMachine objects) to prevent conflicting
16795 changes to the machine.
16796
16797 Any caller wishing to manipulate a virtual machine needs to create a session
16798 object first, which lives in its own process space. Such session objects are
16799 then associated with <link to="IMachine" /> objects living in the VirtualBox
16800 server process to coordinate such changes.
16801
16802 There are two typical scenarios in which sessions are used:
16803
16804 <ul>
16805 <li>To alter machine settings or control a running virtual machine, one
16806 needs to lock a machine for a given session (client process) by calling
16807 <link to="IMachine::lockMachine"/>.
16808
16809 Whereas multiple sessions may control a running virtual machine, only
16810 one process can obtain a write lock on the machine to prevent conflicting
16811 changes. A write lock is also needed if a process wants to actually run a
16812 virtual machine in its own context, such as the VirtualBox GUI or
16813 VBoxHeadless front-ends. They must also lock a machine for their own
16814 sessions before they are allowed to power up the virtual machine.
16815
16816 As a result, no machine settings can be altered while another process is
16817 already using it, either because that process is modifying machine settings
16818 or because the machine is running.
16819 </li>
16820 <li>
16821 To start a VM using one of the existing VirtualBox front-ends (e.g. the
16822 VirtualBox GUI or VBoxHeadless), one would use
16823 <link to="IMachine::launchVMProcess"/>, which also takes a session object
16824 as its first parameter. This session then identifies the caller and lets the
16825 caller control the started machine (for example, pause machine execution or
16826 power it down) as well as be notified about machine execution state changes.
16827 </li>
16828 </ul>
16829
16830 How sessions objects are created in a client process depends on whether you use
16831 the Main API via COM or via the webservice:
16832
16833 <ul>
16834 <li>When using the COM API directly, an object of the Session class from the
16835 VirtualBox type library needs to be created. In regular COM C++ client code,
16836 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
16837 This object will then act as a local session object in further calls to open
16838 a session.
16839 </li>
16840
16841 <li>In the webservice, the session manager (IWebsessionManager) instead creates
16842 a session object automatically whenever <link to="IWebsessionManager::logon" />
16843 is called. A managed object reference to that session object can be retrieved by
16844 calling <link to="IWebsessionManager::getSessionObject" />.
16845 </li>
16846 </ul>
16847 </desc>
16848
16849 <attribute name="state" type="SessionState" readonly="yes">
16850 <desc>Current state of this session.</desc>
16851 </attribute>
16852
16853 <attribute name="type" type="SessionType" readonly="yes">
16854 <desc>
16855 Type of this session. The value of this attribute is valid only
16856 if the session currently has a machine locked (i.e. its
16857 <link to="#state" /> is Locked), otherwise an error will be returned.
16858 </desc>
16859 </attribute>
16860
16861 <attribute name="machine" type="IMachine" readonly="yes">
16862 <desc>Machine object associated with this session.</desc>
16863 </attribute>
16864
16865 <attribute name="console" type="IConsole" readonly="yes">
16866 <desc>Console object associated with this session.</desc>
16867 </attribute>
16868
16869 <method name="unlockMachine">
16870 <desc>
16871 Unlocks a machine that was previously locked for the current session.
16872
16873 Calling this method is required every time a machine has been locked
16874 for a particular session using the <link to="IMachine::launchVMProcess" />
16875 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
16876 the machine will be set to <link to="MachineState_Aborted" /> on the
16877 server, and changes made to the machine settings will be lost.
16878
16879 Generally, it is recommended to unlock all machines explicitly
16880 before terminating the application (regardless of the reason for
16881 the termination).
16882
16883 <note>
16884 Do not expect the session state (<link to="ISession::state" />
16885 to return to "Unlocked" immediately after you invoke this method,
16886 particularly if you have started a new VM process. The session
16887 state will automatically return to "Unlocked" once the VM is no
16888 longer executing, which can of course take a very long time.
16889 </note>
16890
16891 <result name="E_UNEXPECTED">
16892 Session is not locked.
16893 </result>
16894
16895 </desc>
16896 </method>
16897
16898 </interface>
16899
16900 <!--
16901 // IStorageController
16902 /////////////////////////////////////////////////////////////////////////
16903 -->
16904
16905 <enum
16906 name="StorageBus"
16907 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
16908 >
16909 <desc>
16910 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
16911 see <link to="IStorageController::bus" />.
16912 </desc>
16913 <const name="Null" value="0">
16914 <desc>@c null value. Never used by the API.</desc>
16915 </const>
16916 <const name="IDE" value="1"/>
16917 <const name="SATA" value="2"/>
16918 <const name="SCSI" value="3"/>
16919 <const name="Floppy" value="4"/>
16920 <const name="SAS" value="5"/>
16921 </enum>
16922
16923 <enum
16924 name="StorageControllerType"
16925 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
16926 >
16927 <desc>
16928 The exact variant of storage controller hardware presented
16929 to the guest; see <link to="IStorageController::controllerType" />.
16930 </desc>
16931
16932 <const name="Null" value="0">
16933 <desc>@c null value. Never used by the API.</desc>
16934 </const>
16935 <const name="LsiLogic" value="1">
16936 <desc>A SCSI controller of the LsiLogic variant.</desc>
16937 </const>
16938 <const name="BusLogic" value="2">
16939 <desc>A SCSI controller of the BusLogic variant.</desc>
16940 </const>
16941 <const name="IntelAhci" value="3">
16942 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
16943 </const>
16944 <const name="PIIX3" value="4">
16945 <desc>An IDE controller of the PIIX3 variant.</desc>
16946 </const>
16947 <const name="PIIX4" value="5">
16948 <desc>An IDE controller of the PIIX4 variant.</desc>
16949 </const>
16950 <const name="ICH6" value="6">
16951 <desc>An IDE controller of the ICH6 variant.</desc>
16952 </const>
16953 <const name="I82078" value="7">
16954 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
16955 </const>
16956 <const name="LsiLogicSas" value="8">
16957 <desc>A variant of the LsiLogic controller using SAS.</desc>
16958 </const>
16959 </enum>
16960
16961 <enum
16962 name="ChipsetType"
16963 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
16964 >
16965 <desc>
16966 Type of emulated chipset (mostly southbridge).
16967 </desc>
16968
16969 <const name="Null" value="0">
16970 <desc>@c null value. Never used by the API.</desc>
16971 </const>
16972 <const name="PIIX3" value="1">
16973 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
16974 </const>
16975 <const name="ICH9" value="2">
16976 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
16977 </const>
16978 </enum>
16979
16980 <interface
16981 name="IStorageController" extends="$unknown"
16982 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
16983 wsmap="managed"
16984 >
16985 <desc>
16986 Represents a storage controller that is attached to a virtual machine
16987 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
16988 attached to storage controllers in a real computer, virtual drives
16989 (represented by <link to="IMediumAttachment" />) are attached to virtual
16990 storage controllers, represented by this interface.
16991
16992 As opposed to physical hardware, VirtualBox has a very generic concept
16993 of a storage controller, and for purposes of the Main API, all virtual
16994 storage is attached to virtual machines via instances of this interface.
16995 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
16996 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
16997 is used, certain sub-types may be available and can be selected in
16998 <link to="#controllerType" />.
16999
17000 Depending on these settings, the guest operating system might see
17001 significantly different virtual hardware.
17002 </desc>
17003
17004 <attribute name="name" type="wstring" readonly="yes">
17005 <desc>
17006 Name of the storage controller, as originally specified with
17007 <link to="IMachine::addStorageController" />. This then uniquely
17008 identifies this controller with other method calls such as
17009 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17010 </desc>
17011 </attribute>
17012
17013 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17014 <desc>
17015 Maximum number of devices which can be attached to one port.
17016 </desc>
17017 </attribute>
17018
17019 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17020 <desc>
17021 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17022 </desc>
17023 </attribute>
17024
17025 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17026 <desc>
17027 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17028 </desc>
17029 </attribute>
17030
17031 <attribute name="instance" type="unsigned long">
17032 <desc>
17033 The instance number of the device in the running VM.
17034 </desc>
17035 </attribute>
17036
17037 <attribute name="portCount" type="unsigned long">
17038 <desc>
17039 The number of currently usable ports on the controller.
17040 The minimum and maximum number of ports for one controller are
17041 stored in <link to="IStorageController::minPortCount"/>
17042 and <link to="IStorageController::maxPortCount"/>.
17043 </desc>
17044 </attribute>
17045
17046 <attribute name="bus" type="StorageBus" readonly="yes">
17047 <desc>
17048 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17049 </desc>
17050 </attribute>
17051
17052 <attribute name="controllerType" type="StorageControllerType">
17053 <desc>
17054 The exact variant of storage controller hardware presented
17055 to the guest.
17056 Depending on this value, VirtualBox will provide a different
17057 virtual storage controller hardware to the guest.
17058 For SATA, SAS and floppy controllers, only one variant is
17059 available, but for IDE and SCSI, there are several.
17060
17061 For SCSI controllers, the default type is LsiLogic.
17062 </desc>
17063 </attribute>
17064
17065 <attribute name="useHostIOCache" type="boolean">
17066 <desc>
17067 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17068 caches and use synchronous file APIs on the host. This was the only option in the API before
17069 VirtualBox 3.2 and is still the default for IDE controllers.
17070
17071 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17072 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17073 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17074 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17075 virtual machines are running at the same time to prevent I/O cache related hangs.
17076 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17077 </desc>
17078 </attribute>
17079
17080 <attribute name="bootable" type="boolean" readonly="yes">
17081 <desc>
17082 Returns whether it is possible to boot from disks attached to this controller.
17083 </desc>
17084 </attribute>
17085 </interface>
17086
17087<if target="wsdl">
17088
17089 <!--
17090 // IManagedObjectRef
17091 /////////////////////////////////////////////////////////////////////////
17092 -->
17093
17094 <interface
17095 name="IManagedObjectRef" extends="$unknown"
17096 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17097 internal="yes"
17098 wsmap="managed"
17099 wscpp="hardcoded"
17100 >
17101 <desc>
17102 Managed object reference.
17103
17104 Only within the webservice, a managed object reference (which is really
17105 an opaque number) allows a webservice client to address an object
17106 that lives in the address space of the webservice server.
17107
17108 Behind each managed object reference, there is a COM object that lives
17109 in the webservice server's address space. The COM object is not freed
17110 until the managed object reference is released, either by an explicit
17111 call to <link to="IManagedObjectRef::release" /> or by logging off from
17112 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17113 all objects created during the webservice session.
17114
17115 Whenever a method call of the VirtualBox API returns a COM object, the
17116 webservice representation of that method will instead return a
17117 managed object reference, which can then be used to invoke methods
17118 on that object.
17119 </desc>
17120
17121 <method name="getInterfaceName">
17122 <desc>
17123 Returns the name of the interface that this managed object represents,
17124 for example, "IMachine", as a string.
17125 </desc>
17126 <param name="return" type="wstring" dir="return"/>
17127 </method>
17128
17129 <method name="release">
17130 <desc>
17131 Releases this managed object reference and frees the resources that
17132 were allocated for it in the webservice server process. After calling
17133 this method, the identifier of the reference can no longer be used.
17134 </desc>
17135 </method>
17136
17137 </interface>
17138
17139 <!--
17140 // IWebsessionManager
17141 /////////////////////////////////////////////////////////////////////////
17142 -->
17143
17144 <interface
17145 name="IWebsessionManager" extends="$unknown"
17146 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17147 internal="yes"
17148 wsmap="global"
17149 wscpp="hardcoded"
17150 >
17151 <desc>
17152 Websession manager. This provides essential services
17153 to webservice clients.
17154 </desc>
17155 <method name="logon">
17156 <desc>
17157 Logs a new client onto the webservice and returns a managed object reference to
17158 the IVirtualBox instance, which the client can then use as a basis to further
17159 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17160 interface, in one way or the other.
17161 </desc>
17162 <param name="username" type="wstring" dir="in"/>
17163 <param name="password" type="wstring" dir="in"/>
17164 <param name="return" type="IVirtualBox" dir="return"/>
17165 </method>
17166
17167 <method name="getSessionObject">
17168 <desc>
17169 Returns a managed object reference to the internal ISession object that was created
17170 for this web service session when the client logged on.
17171
17172 <see><link to="ISession"/></see>
17173 </desc>
17174 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17175 <param name="return" type="ISession" dir="return"/>
17176 </method>
17177
17178 <method name="logoff">
17179 <desc>
17180 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17181 and destroys all resources associated with the session (most importantly, all
17182 managed objects created in the server while the session was active).
17183 </desc>
17184 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17185 </method>
17186
17187 </interface>
17188
17189</if>
17190
17191 <!--
17192 // IPerformanceCollector & friends
17193 /////////////////////////////////////////////////////////////////////////
17194 -->
17195
17196 <interface
17197 name="IPerformanceMetric" extends="$unknown"
17198 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17199 >
17200 <desc>
17201 The IPerformanceMetric interface represents parameters of the given
17202 performance metric.
17203 </desc>
17204
17205 <attribute name="metricName" type="wstring" readonly="yes">
17206 <desc>
17207 Name of the metric.
17208 </desc>
17209 </attribute>
17210
17211 <attribute name="object" type="$unknown" readonly="yes">
17212 <desc>
17213 Object this metric belongs to.
17214 </desc>
17215 </attribute>
17216
17217 <attribute name="description" type="wstring" readonly="yes">
17218 <desc>
17219 Textual description of the metric.
17220 </desc>
17221 </attribute>
17222
17223 <attribute name="period" type="unsigned long" readonly="yes">
17224 <desc>
17225 Time interval between samples, measured in seconds.
17226 </desc>
17227 </attribute>
17228
17229 <attribute name="count" type="unsigned long" readonly="yes">
17230 <desc>
17231 Number of recent samples retained by the performance collector for this
17232 metric.
17233
17234 When the collected sample count exceeds this number, older samples
17235 are discarded.
17236 </desc>
17237 </attribute>
17238
17239 <attribute name="unit" type="wstring" readonly="yes">
17240 <desc>
17241 Unit of measurement.
17242 </desc>
17243 </attribute>
17244
17245 <attribute name="minimumValue" type="long" readonly="yes">
17246 <desc>
17247 Minimum possible value of this metric.
17248 </desc>
17249 </attribute>
17250
17251 <attribute name="maximumValue" type="long" readonly="yes">
17252 <desc>
17253 Maximum possible value of this metric.
17254 </desc>
17255 </attribute>
17256 </interface>
17257
17258 <interface
17259 name="IPerformanceCollector" extends="$unknown"
17260 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17261 wsmap="managed"
17262 >
17263 <desc>
17264 The IPerformanceCollector interface represents a service that collects
17265 and stores performance metrics data.
17266
17267 Performance metrics are associated with objects of interfaces like IHost
17268 and IMachine. Each object has a distinct set of performance metrics. The
17269 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17270
17271 Metric data is collected at the specified intervals and is retained
17272 internally. The interval and the number of retained samples can be set
17273 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17274 and collection settings are not persistent, they are discarded as soon as
17275 VBoxSVC process terminates. Moreover, metric settings and data associated
17276 with a particular VM only exist while VM is running. They disappear as
17277 soon as VM shuts down. It is not possible to set up metrics for machines
17278 that are powered off. One needs to start VM first, then set up metric
17279 collection parameters.
17280
17281 Metrics are organized hierarchically, with each level separated by a
17282 slash (/) character. Generally, the scheme for metric names is like this:
17283
17284 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17285
17286 "Category/Metric" together form the base metric name. A base metric is
17287 the smallest unit for which a sampling interval and the number of
17288 retained samples can be set. Only base metrics can be enabled and
17289 disabled. All sub-metrics are collected when their base metric is
17290 collected. Collected values for any set of sub-metrics can be queried
17291 with <link to="IPerformanceCollector::queryMetricsData" />.
17292
17293 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17294 category, "Load" metric, "User" submetric, "average" aggregate. An
17295 aggregate function is computed over all retained data. Valid aggregate
17296 functions are:
17297
17298 <ul>
17299 <li>avg -- average</li>
17300 <li>min -- minimum</li>
17301 <li>max -- maximum</li>
17302 </ul>
17303
17304 When setting up metric parameters, querying metric data, enabling or
17305 disabling metrics wildcards can be used in metric names to specify a
17306 subset of metrics. For example, to select all CPU-related metrics
17307 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17308 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17309
17310 The valid names for base metrics are:
17311
17312 <ul>
17313 <li>CPU/Load</li>
17314 <li>CPU/MHz</li>
17315 <li>RAM/Usage</li>
17316 <li>RAM/VMM</li>
17317 </ul>
17318
17319 The general sequence for collecting and retrieving the metrics is:
17320 <ul>
17321 <li>
17322 Obtain an instance of IPerformanceCollector with
17323 <link to="IVirtualBox::performanceCollector" />
17324 </li>
17325 <li>
17326 Allocate and populate an array with references to objects the metrics
17327 will be collected for. Use references to IHost and IMachine objects.
17328 </li>
17329 <li>
17330 Allocate and populate an array with base metric names the data will
17331 be collected for.
17332 </li>
17333 <li>
17334 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17335 the metric data will be collected and stored.
17336 </li>
17337 <li>
17338 Wait for the data to get collected.
17339 </li>
17340 <li>
17341 Allocate and populate an array with references to objects the metric
17342 values will be queried for. You can re-use the object array used for
17343 setting base metrics.
17344 </li>
17345 <li>
17346 Allocate and populate an array with metric names the data will be
17347 collected for. Note that metric names differ from base metric names.
17348 </li>
17349 <li>
17350 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17351 that have been collected so far are returned. Note that the values
17352 are still retained internally and data collection continues.
17353 </li>
17354 </ul>
17355
17356 For an example of usage refer to the following files in VirtualBox SDK:
17357 <ul>
17358 <li>
17359 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17360 </li>
17361 <li>
17362 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17363 </li>
17364 </ul>
17365 </desc>
17366
17367 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17368 <desc>
17369 Array of unique names of metrics.
17370
17371 This array represents all metrics supported by the performance
17372 collector. Individual objects do not necessarily support all of them.
17373 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17374 list of supported metrics for a particular object.
17375 </desc>
17376 </attribute>
17377
17378 <method name="getMetrics">
17379 <desc>
17380 Returns parameters of specified metrics for a set of objects.
17381 <note>
17382 @c Null metrics array means all metrics. @c Null object array means
17383 all existing objects.
17384 </note>
17385 </desc>
17386 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17387 <desc>
17388 Metric name filter. Currently, only a comma-separated list of metrics
17389 is supported.
17390 </desc>
17391 </param>
17392 <param name="objects" type="$unknown" dir="in" safearray="yes">
17393 <desc>
17394 Set of objects to return metric parameters for.
17395 </desc>
17396 </param>
17397 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17398 <desc>
17399 Array of returned metric parameters.
17400 </desc>
17401 </param>
17402 </method>
17403
17404 <method name="setupMetrics">
17405 <desc>
17406 Sets parameters of specified base metrics for a set of objects. Returns
17407 an array of <link to="IPerformanceMetric" /> describing the metrics
17408 have been affected.
17409 <note>
17410 @c Null or empty metric name array means all metrics. @c Null or
17411 empty object array means all existing objects. If metric name array
17412 contains a single element and object array contains many, the single
17413 metric name array element is applied to each object array element to
17414 form metric/object pairs.
17415 </note>
17416 </desc>
17417 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17418 <desc>
17419 Metric name filter. Comma-separated list of metrics with wildcard
17420 support.
17421 </desc>
17422 </param>
17423 <param name="objects" type="$unknown" dir="in" safearray="yes">
17424 <desc>
17425 Set of objects to setup metric parameters for.
17426 </desc>
17427 </param>
17428 <param name="period" type="unsigned long" dir="in">
17429 <desc>
17430 Time interval in seconds between two consecutive samples of
17431 performance data.
17432 </desc>
17433 </param>
17434 <param name="count" type="unsigned long" dir="in">
17435 <desc>
17436 Number of samples to retain in performance data history. Older
17437 samples get discarded.
17438 </desc>
17439 </param>
17440 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17441 <desc>
17442 Array of metrics that have been modified by the call to this method.
17443 </desc>
17444 </param>
17445 </method>
17446
17447 <method name="enableMetrics">
17448 <desc>
17449 Turns on collecting specified base metrics. Returns an array of
17450 <link to="IPerformanceMetric" /> describing the metrics have been
17451 affected.
17452 <note>
17453 @c Null or empty metric name array means all metrics. @c Null or
17454 empty object array means all existing objects. If metric name array
17455 contains a single element and object array contains many, the single
17456 metric name array element is applied to each object array element to
17457 form metric/object pairs.
17458 </note>
17459 </desc>
17460 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17461 <desc>
17462 Metric name filter. Comma-separated list of metrics with wildcard
17463 support.
17464 </desc>
17465 </param>
17466 <param name="objects" type="$unknown" dir="in" safearray="yes">
17467 <desc>
17468 Set of objects to enable metrics for.
17469 </desc>
17470 </param>
17471 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17472 <desc>
17473 Array of metrics that have been modified by the call to this method.
17474 </desc>
17475 </param>
17476 </method>
17477
17478 <method name="disableMetrics">
17479 <desc>
17480 Turns off collecting specified base metrics. Returns an array of
17481 <link to="IPerformanceMetric" /> describing the metrics have been
17482 affected.
17483 <note>
17484 @c Null or empty metric name array means all metrics. @c Null or
17485 empty object array means all existing objects. If metric name array
17486 contains a single element and object array contains many, the single
17487 metric name array element is applied to each object array element to
17488 form metric/object pairs.
17489 </note>
17490 </desc>
17491 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17492 <desc>
17493 Metric name filter. Comma-separated list of metrics with wildcard
17494 support.
17495 </desc>
17496 </param>
17497 <param name="objects" type="$unknown" dir="in" safearray="yes">
17498 <desc>
17499 Set of objects to disable metrics for.
17500 </desc>
17501 </param>
17502 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17503 <desc>
17504 Array of metrics that have been modified by the call to this method.
17505 </desc>
17506 </param>
17507 </method>
17508
17509 <method name="queryMetricsData">
17510 <desc>
17511 Queries collected metrics data for a set of objects.
17512
17513 The data itself and related metric information are returned in seven
17514 parallel and one flattened array of arrays. Elements of
17515 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
17516 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
17517 the same index describe one set of values corresponding to a single
17518 metric.
17519
17520 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
17521 start and length of a sub-array is indicated by
17522 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
17523 value for metric <tt>metricNames[i]</tt> is at
17524 <tt>returnData[returnIndices[i]]</tt>.
17525
17526 <note>
17527 @c Null or empty metric name array means all metrics. @c Null or
17528 empty object array means all existing objects. If metric name array
17529 contains a single element and object array contains many, the single
17530 metric name array element is applied to each object array element to
17531 form metric/object pairs.
17532 </note>
17533 <note>
17534 Data collection continues behind the scenes after call to @c
17535 queryMetricsData. The return data can be seen as the snapshot of the
17536 current state at the time of @c queryMetricsData call. The internally
17537 kept metric values are not cleared by the call. This makes possible
17538 querying different subsets of metrics or aggregates with subsequent
17539 calls. If periodic querying is needed it is highly suggested to query
17540 the values with @c interval*count period to avoid confusion. This way
17541 a completely new set of data values will be provided by each query.
17542 </note>
17543 </desc>
17544 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17545 <desc>
17546 Metric name filter. Comma-separated list of metrics with wildcard
17547 support.
17548 </desc>
17549 </param>
17550 <param name="objects" type="$unknown" dir="in" safearray="yes">
17551 <desc>
17552 Set of objects to query metrics for.
17553 </desc>
17554 </param>
17555 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
17556 <desc>
17557 Names of metrics returned in @c returnData.
17558 </desc>
17559 </param>
17560 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
17561 <desc>
17562 Objects associated with metrics returned in @c returnData.
17563 </desc>
17564 </param>
17565 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
17566 <desc>
17567 Units of measurement for each returned metric.
17568 </desc>
17569 </param>
17570 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
17571 <desc>
17572 Divisor that should be applied to return values in order to get
17573 floating point values. For example:
17574 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
17575 will retrieve the floating point value of i-th sample of the first
17576 metric.
17577 </desc>
17578 </param>
17579 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
17580 <desc>
17581 Sequence numbers of the first elements of value sequences of
17582 particular metrics returned in @c returnData. For aggregate metrics
17583 it is the sequence number of the sample the aggregate started
17584 calculation from.
17585 </desc>
17586 </param>
17587 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
17588 <desc>
17589 Indices of the first elements of value sequences of particular
17590 metrics returned in @c returnData.
17591 </desc>
17592 </param>
17593 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
17594 <desc>
17595 Lengths of value sequences of particular metrics.
17596 </desc>
17597 </param>
17598 <param name="returnData" type="long" dir="return" safearray="yes">
17599 <desc>
17600 Flattened array of all metric data containing sequences of values for
17601 each metric.
17602 </desc>
17603 </param>
17604 </method>
17605
17606 </interface>
17607
17608 <enum
17609 name="NATAliasMode"
17610 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
17611 >
17612 <desc></desc>
17613 <const name="AliasLog" value="0x1">
17614 <desc></desc>
17615 </const>
17616 <const name="AliasProxyOnly" value="0x02">
17617 <desc></desc>
17618 </const>
17619 <const name="AliasUseSamePorts" value="0x04">
17620 <desc></desc>
17621 </const>
17622 </enum>
17623
17624 <enum
17625 name="NATProtocol"
17626 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
17627 >
17628 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
17629 <const name="UDP" value="0">
17630 <desc>Port-forwarding uses UDP protocol.</desc>
17631 </const>
17632 <const name="TCP" value="1">
17633 <desc>Port-forwarding uses TCP protocol.</desc>
17634 </const>
17635 </enum>
17636
17637 <interface
17638 name="INATEngine" extends="$unknown"
17639 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
17640 wsmap="managed"
17641 >
17642 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
17643 allows for changing NAT behavior such as port-forwarding rules. This interface is
17644 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
17645 <attribute name="network" type="wstring">
17646 <desc>The network attribute of the NAT engine (the same value is used with built-in
17647 DHCP server to fill corresponding fields of DHCP leases).</desc>
17648 </attribute>
17649 <attribute name="hostIP" type="wstring">
17650 <desc>IP of host interface to bind all opened sockets to.
17651 <note>Changing this does not change binding of port forwarding.</note>
17652 </desc>
17653 </attribute>
17654 <attribute name="TFTPPrefix" type="wstring">
17655 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
17656 the corresponding fields of DHCP leases.</desc>
17657 </attribute>
17658 <attribute name="TFTPBootFile" type="wstring">
17659 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
17660 the corresponding fields of DHCP leases.</desc>
17661 </attribute>
17662 <attribute name="TFTPNextServer" type="wstring">
17663 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
17664 the corresponding fields of DHCP leases.
17665 <note>The preferred form is IPv4 addresses.</note>
17666 </desc>
17667 </attribute>
17668 <attribute name="aliasMode" type="unsigned long">
17669 <desc></desc>
17670 </attribute>
17671 <attribute name="DNSPassDomain" type="boolean">
17672 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
17673 </attribute>
17674 <attribute name="DNSProxy" type="boolean">
17675 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17676 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
17677 </attribute>
17678 <attribute name="DNSUseHostResolver" type="boolean">
17679 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17680 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
17681 </attribute>
17682 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
17683 <desc>Array of NAT port-forwarding rules in string representation, in the following
17684 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
17685 </attribute>
17686 <method name="setNetworkSettings">
17687 <desc>Sets network configuration of the NAT engine.</desc>
17688 <param name="mtu" type="unsigned long" dir="in">
17689 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
17690 </param>
17691 <param name="sockSnd" type="unsigned long" dir="in">
17692 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
17693 </param>
17694 <param name="sockRcv" type="unsigned long" dir="in">
17695 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
17696 </param>
17697 <param name="TcpWndSnd" type="unsigned long" dir="in">
17698 <desc>Initial size of the NAT engine's sending TCP window in bytes when
17699 establishing a new TCP connection.</desc>
17700 </param>
17701 <param name="TcpWndRcv" type="unsigned long" dir="in">
17702 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
17703 establishing a new TCP connection.</desc>
17704 </param>
17705 </method>
17706 <method name="getNetworkSettings">
17707 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
17708 for parameter descriptions.</desc>
17709 <param name="mtu" type="unsigned long" dir="out" />
17710 <param name="sockSnd" type="unsigned long" dir="out" />
17711 <param name="sockRcv" type="unsigned long" dir="out" />
17712 <param name="TcpWndSnd" type="unsigned long" dir="out" />
17713 <param name="TcpWndRcv" type="unsigned long" dir="out" />
17714 </method>
17715 <method name="addRedirect">
17716 <desc>Adds a new NAT port-forwarding rule.</desc>
17717 <param name="name" type="wstring" dir="in">
17718 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
17719 auto-generates one using the other parameters.</desc>
17720 </param>
17721 <param name="proto" type="NATProtocol" dir="in">
17722 <desc>Protocol handled with the rule.</desc>
17723 </param>
17724 <param name="hostIP" type="wstring" dir="in">
17725 <desc>IP of the host interface to which the rule should apply. An empty ip address is
17726 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
17727 </param>
17728 <param name="hostPort" type="unsigned short" dir="in">
17729 <desc>The port number to listen on.</desc>
17730 </param>
17731 <param name="guestIP" type="wstring" dir="in">
17732 <desc>The IP address of the guest which the NAT engine will forward matching packets
17733 to. An empty IP address is acceptable, in which case the NAT engine will forward
17734 packets to the first DHCP lease (x.x.x.15).</desc>
17735 </param>
17736 <param name="guestPort" type="unsigned short" dir="in">
17737 <desc>The port number to forward.</desc>
17738 </param>
17739 </method>
17740 <method name="removeRedirect">
17741 <desc>Removes a port-forwarding rule that was previously registered.</desc>
17742 <param name="name" type="wstring" dir="in">
17743 <desc>The name of the rule to delete.</desc>
17744 </param>
17745 </method>
17746 </interface>
17747
17748 <!--
17749 // IExtPackManager
17750 /////////////////////////////////////////////////////////////////////////
17751 -->
17752
17753 <interface
17754 name="IExtPackPlugIn" extends="$unknown"
17755 uuid="58000040-e718-4746-bbce-4b86d96da461"
17756 wsmap="suppress"
17757 >
17758 <desc>
17759 Interface for keeping information about a plug-in that ships with an
17760 extension pack.
17761 </desc>
17762 <attribute name="name" type="wstring" readonly="yes">
17763 <desc>The plug-in name.</desc>
17764 </attribute>
17765 <attribute name="description" type="wstring" readonly="yes">
17766 <desc>The plug-in description.</desc>
17767 </attribute>
17768 <attribute name="frontend" type="wstring" readonly="yes">
17769 <desc>
17770 The name of the frontend or component name this plug-in plugs into.
17771 </desc>
17772 </attribute>
17773 <attribute name="modulePath" type="wstring" readonly="yes">
17774 <desc> The module path. </desc>
17775 </attribute>
17776 </interface>
17777
17778 <interface
17779 name="IExtPackBase" extends="$unknown"
17780 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
17781 wsmap="suppress"
17782 >
17783 <desc>
17784 Interface for querying information about an extension pack as well as
17785 accessing COM objects within it.
17786 </desc>
17787 <attribute name="name" type="wstring" readonly="yes">
17788 <desc>The extension pack name. This is unique.</desc>
17789 </attribute>
17790 <attribute name="description" type="wstring" readonly="yes">
17791 <desc>The extension pack description.</desc>
17792 </attribute>
17793 <attribute name="version" type="wstring" readonly="yes">
17794 <desc>
17795 The extension pack version string. This is restricted to the dotted
17796 version number and optionally a build indicator. No tree revision or
17797 tag will be included in the string as those things are available as
17798 separate properties. An optional publisher tag may be present like for
17799 <link to="IVirtualBox::version"/>.
17800
17801 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
17802 </desc>
17803 </attribute>
17804 <attribute name="revision" type="unsigned long" readonly="yes">
17805 <desc>The extension pack internal revision number.</desc>
17806 </attribute>
17807 <attribute name="edition" type="wstring" readonly="yes">
17808 <desc>
17809 Edition indicator. This is usually empty.
17810
17811 Can for instance be used to help distinguishing between two editions
17812 of the same extension pack where only the license, service contract or
17813 something differs.
17814 </desc>
17815 </attribute>
17816 <attribute name="VRDEModule" type="wstring" readonly="yes">
17817 <desc>The name of the VRDE module if the extension pack sports one.</desc>
17818 </attribute>
17819 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
17820 <desc>Plug-ins provided by this extension pack.</desc>
17821 </attribute>
17822 <attribute name="usable" type="boolean" readonly="yes">
17823 <desc>
17824 Indicates whether the extension pack is usable or not.
17825
17826 There are a number of reasons why an extension pack might be unusable,
17827 typical examples would be broken installation/file or that it is
17828 incompatible with the current VirtualBox version.
17829 </desc>
17830 </attribute>
17831 <attribute name="whyUnusable" type="wstring" readonly="yes">
17832 <desc>
17833 String indicating why the extension pack is not usable. This is an
17834 empty string if usable and always a non-empty string if not usable.
17835 </desc>
17836 </attribute>
17837 <attribute name="showLicense" type="boolean" readonly="yes">
17838 <desc>Whether to show the license before installation</desc>
17839 </attribute>
17840 <attribute name="license" type="wstring" readonly="yes">
17841 <desc>
17842 The default HTML license text for the extension pack. Same as
17843 calling <link to="#queryLicense">queryLicense</link> with
17844 preferredLocale and preferredLanguage as empty strings and format set
17845 to html.
17846 </desc>
17847 </attribute>
17848
17849 <method name="queryLicense">
17850 <desc>
17851 Full feature version of the license attribute.
17852 </desc>
17853 <param name="preferredLocale" type="wstring" dir="in">
17854 <desc>
17855 The preferred license locale. Pass an empty string to get the default
17856 license.
17857 </desc>
17858 </param>
17859 <param name="preferredLanguage" type="wstring" dir="in">
17860 <desc>
17861 The preferred license language. Pass an empty string to get the
17862 default language for the locale.
17863 </desc>
17864 </param>
17865 <param name="format" type="wstring" dir="in">
17866 <desc>
17867 The license format: html, rtf or txt. If a license is present there
17868 will always be an HTML of it, the rich text format (RTF) and plain
17869 text (txt) versions are optional. If
17870 </desc>
17871 </param>
17872 <param name="licenseText" type="wstring" dir="return">
17873 <desc>The license text.</desc>
17874 </param>
17875 </method>
17876
17877 </interface>
17878
17879 <interface
17880 name="IExtPack" extends="IExtPackBase"
17881 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
17882 wsmap="suppress"
17883 >
17884 <desc>
17885 Interface for querying information about an extension pack as well as
17886 accessing COM objects within it.
17887 </desc>
17888 <method name="queryObject">
17889 <desc>
17890 Queries the IUnknown interface to an object in the extension pack
17891 main module. This allows plug-ins and others to talk directly to an
17892 extension pack.
17893 </desc>
17894 <param name="objUuid" type="wstring" dir="in">
17895 <desc>The object ID. What exactly this is </desc>
17896 </param>
17897 <param name="returnInterface" type="$unknown" dir="return">
17898 <desc>The queried interface.</desc>
17899 </param>
17900 </method>
17901 </interface>
17902
17903 <interface
17904 name="IExtPackFile" extends="IExtPackBase"
17905 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
17906 wsmap="suppress"
17907 >
17908 <desc>
17909 Extension pack file (aka tarball, .vbox-extpack) representation returned
17910 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
17911 extension pack information with the addition of the file name.
17912 </desc>
17913 <attribute name="filePath" type="wstring" readonly="yes">
17914 <desc>
17915 The path to the extension pack file.
17916 </desc>
17917 </attribute>
17918
17919 <method name="install">
17920 <desc>
17921 Install the extension pack.
17922 </desc>
17923 <param name="replace" type="boolean" dir="in">
17924 <desc>
17925 Set this to automatically uninstall any existing extension pack with
17926 the same name as the one being installed.
17927 </desc>
17928 </param>
17929 <param name="displayInfo" type="wstring" dir="in">
17930 <desc>
17931 Platform specific display information. Reserved for future hacks.
17932 </desc>
17933 </param>
17934 <param name="progess" type="IProgress" dir="return">
17935 <desc>
17936 Progress object for the operation.
17937 </desc>
17938 </param>
17939 </method>
17940 </interface>
17941
17942 <interface
17943 name="IExtPackManager" extends="$unknown"
17944 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
17945 wsmap="suppress"
17946 >
17947 <desc>
17948 Interface for managing VirtualBox Extension Packs.
17949
17950 TODO: Describe extension packs, how they are managed and how to create
17951 one.
17952 </desc>
17953
17954 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
17955 <desc>
17956 List of the installed extension packs.
17957 </desc>
17958 </attribute>
17959
17960 <method name="find">
17961 <desc>
17962 Returns the extension pack with the specified name if found.
17963
17964 <result name="VBOX_E_OBJECT_NOT_FOUND">
17965 No extension pack matching @a name was found.
17966 </result>
17967 </desc>
17968 <param name="name" type="wstring" dir="in">
17969 <desc>The name of the extension pack to locate.</desc>
17970 </param>
17971 <param name="returnData" type="IExtPack" dir="return">
17972 <desc>The extension pack if found.</desc>
17973 </param>
17974 </method>
17975
17976 <method name="openExtPackFile">
17977 <desc>
17978 Attempts to open an extension pack file in preparation for
17979 installation.
17980 </desc>
17981 <param name="path" type="wstring" dir="in">
17982 <desc>The path of the extension pack tarball. This can optionally be
17983 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
17984 </param>
17985 <param name="file" type="IExtPackFile" dir="return">
17986 <desc>The interface of the extension pack file object.</desc>
17987 </param>
17988 </method>
17989
17990 <method name="uninstall">
17991 <desc>Uninstalls an extension pack, removing all related files.</desc>
17992 <param name="name" type="wstring" dir="in">
17993 <desc>The name of the extension pack to uninstall.</desc>
17994 </param>
17995 <param name="forcedRemoval" type="boolean" dir="in">
17996 <desc>
17997 Forced removal of the extension pack. This means that the uninstall
17998 hook will not be called.
17999 </desc>
18000 </param>
18001 <param name="displayInfo" type="wstring" dir="in">
18002 <desc>
18003 Platform specific display information. Reserved for future hacks.
18004 </desc>
18005 </param>
18006 <param name="progess" type="IProgress" dir="return">
18007 <desc>
18008 Progress object for the operation.
18009 </desc>
18010 </param>
18011 </method>
18012
18013 <method name="cleanup">
18014 <desc>Cleans up failed installs and uninstalls</desc>
18015 </method>
18016
18017 <method name="queryAllPlugInsForFrontend">
18018 <desc>
18019 Gets the path to all the plug-in modules for a given frontend.
18020
18021 This is a convenience method that is intended to simplify the plug-in
18022 loading process for a frontend.
18023 </desc>
18024 <param name="frontendName" type="wstring" dir="in">
18025 <desc>The name of the frontend or component.</desc>
18026 </param>
18027 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18028 <desc>Array containing the plug-in modules (full paths).</desc>
18029 </param>
18030 </method>
18031
18032 <method name="isExtPackUsable">
18033 <desc>Check if the given extension pack is loaded and usable.</desc>
18034 <param name="name" type="wstring" dir="in">
18035 <desc>The name of the extension pack to check for.</desc>
18036 </param>
18037 <param name="usable" type="boolean" dir="return">
18038 <desc>Is the given extension pack loaded and usable.</desc>
18039 </param>
18040 </method>
18041
18042 </interface>
18043
18044 <!--
18045 // BandwidthGroupType
18046 /////////////////////////////////////////////////////////////////////////
18047 -->
18048 <enum
18049 name="BandwidthGroupType"
18050 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18051
18052 <desc>
18053 Type of a bandwidth control group.
18054 </desc>
18055
18056 <const name="Null" value="0">
18057 <desc>
18058 Null type, must be first.
18059 </desc>
18060 </const>
18061
18062 <const name="Disk" value="1">
18063 <desc>
18064 The bandwidth group controls disk I/O.
18065 </desc>
18066 </const>
18067
18068 <const name="Network" value="2">
18069 <desc>
18070 The bandwidth group controls network I/O.
18071 </desc>
18072 </const>
18073
18074 </enum>
18075
18076 <!--
18077 // IBandwidthGroup
18078 /////////////////////////////////////////////////////////////////////////
18079 -->
18080 <interface
18081 name="IBandwidthGroup" extends="$unknown"
18082 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18083 wsmap="managed"
18084 >
18085 <desc>Represents one bandwidth group.</desc>
18086
18087 <attribute name="name" type="wstring" readonly="yes">
18088 <desc>Name of the group.</desc>
18089 </attribute>
18090
18091 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18092 <desc>Type of the group.</desc>
18093 </attribute>
18094
18095 <attribute name="reference" type="unsigned long" readonly="yes">
18096 <desc>How many devices/medium attachements use this group.</desc>
18097 </attribute>
18098
18099 <attribute name="maxBytesPerSec" type="long long">
18100 <desc>The maximum number of bytes which can be transfered by all
18101 entities attached to this group during one second.</desc>
18102 </attribute>
18103
18104 </interface>
18105
18106 <!--
18107 // IBandwidthControl
18108 /////////////////////////////////////////////////////////////////////////
18109 -->
18110 <interface
18111 name="IBandwidthControl" extends="$unknown"
18112 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18113 wsmap="managed"
18114 >
18115 <desc>
18116 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18117 This includes network and disk I/O.
18118 </desc>
18119
18120 <attribute name="numGroups" type="unsigned long" readonly="yes">
18121 <desc>
18122 The current number of existing bandwidth groups managed.
18123 </desc>
18124 </attribute>
18125
18126 <method name="createBandwidthGroup">
18127 <desc>
18128 Creates a new bandwidth group.
18129 </desc>
18130
18131 <param name="name" type="wstring" dir="in">
18132 <desc>Name of the bandwidth group.</desc>
18133 </param>
18134 <param name="type" type="BandwidthGroupType" dir="in">
18135 <desc>The type of the bandwidth group (network or disk).</desc>
18136 </param>
18137 <param name="maxBytesPerSec" type="long long" dir="in">
18138 <desc>The maximum number of bytes which can be transfered by all
18139 entities attached to this group during one second.</desc>
18140 </param>
18141 </method>
18142
18143 <method name="deleteBandwidthGroup">
18144 <desc>
18145 Deletes a new bandwidth group.
18146 </desc>
18147
18148 <param name="name" type="wstring" dir="in">
18149 <desc>Name of the bandwidth group to delete.</desc>
18150 </param>
18151 </method>
18152
18153 <method name="getBandwidthGroup" const="yes">
18154 <desc>
18155 Get a bandwidth group by name.
18156 </desc>
18157
18158 <param name="name" type="wstring" dir="in">
18159 <desc>Name of the bandwidth group to get.</desc>
18160 </param>
18161 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18162 <desc>Where to store the bandwidth group on success.</desc>
18163 </param>
18164 </method>
18165
18166 <method name="getAllBandwidthGroups" const="yes">
18167 <desc>
18168 Get all managed bandwidth groups.
18169 </desc>
18170
18171 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18172 <desc>The array of managed bandwidth groups.</desc>
18173 </param>
18174 </method>
18175 </interface>
18176
18177 <!--
18178 // IVirtualBoxClient
18179 /////////////////////////////////////////////////////////////////////////
18180 -->
18181
18182 <interface
18183 name="IVirtualBoxClient" extends="$unknown"
18184 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
18185 wsmap="suppress"
18186 >
18187 <desc>
18188 Convenience interface for client applications. Treat this as a
18189 singleton, i.e. never create more than one instance of this interface.
18190
18191 At the moment only available for clients of the local API (not usable
18192 via the webservice). Once the session logic is redesigned this might
18193 change.
18194 </desc>
18195
18196 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18197 <desc>
18198 Reference to the server-side API root object.
18199 </desc>
18200 </attribute>
18201
18202 <attribute name="session" type="ISession" readonly="yes">
18203 <desc>
18204 Create a new session object and return the reference to it.
18205 </desc>
18206 </attribute>
18207
18208 <attribute name="eventSource" type="IEventSource" readonly="yes">
18209 <desc>
18210 Event source for VirtualBoxClient events.
18211 </desc>
18212 </attribute>
18213
18214 </interface>
18215
18216 <!--
18217 // Events
18218 /////////////////////////////////////////////////////////////////////////
18219 -->
18220 <enum
18221 name="VBoxEventType"
18222 uuid="0d67e79e-b7b1-4919-aab3-b36866075515"
18223 >
18224
18225 <desc>
18226 Type of an event.
18227 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18228 </desc>
18229
18230 <const name="Invalid" value="0">
18231 <desc>
18232 Invalid event, must be first.
18233 </desc>
18234 </const>
18235
18236 <const name="Any" value="1">
18237 <desc>
18238 Wildcard for all events.
18239 Events of this type are never delivered, and only used in
18240 <link to="IEventSource::registerListener"/> call to simplify registration.
18241 </desc>
18242 </const>
18243
18244 <const name="Vetoable" value="2">
18245 <desc>
18246 Wildcard for all vetoable events. Events of this type are never delivered, and only
18247 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18248 </desc>
18249 </const>
18250
18251 <const name="MachineEvent" value="3">
18252 <desc>
18253 Wildcard for all machine events. Events of this type are never delivered, and only used in
18254 <link to="IEventSource::registerListener"/> call to simplify registration.
18255 </desc>
18256 </const>
18257
18258 <const name="SnapshotEvent" value="4">
18259 <desc>
18260 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18261 <link to="IEventSource::registerListener"/> call to simplify registration.
18262 </desc>
18263 </const>
18264
18265 <const name="InputEvent" value="5">
18266 <desc>
18267 Wildcard for all input device (keyboard, mouse) events.
18268 Events of this type are never delivered, and only used in
18269 <link to="IEventSource::registerListener"/> call to simplify registration.
18270 </desc>
18271 </const>
18272
18273 <const name="LastWildcard" value="31">
18274 <desc>
18275 Last wildcard.
18276 </desc>
18277 </const>
18278
18279 <const name="OnMachineStateChanged" value="32">
18280 <desc>
18281 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18282 </desc>
18283 </const>
18284 <const name="OnMachineDataChanged" value="33">
18285 <desc>
18286 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18287 </desc>
18288 </const>
18289 <const name="OnExtraDataChanged" value="34">
18290 <desc>
18291 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18292 </desc>
18293 </const>
18294 <const name="OnExtraDataCanChange" value="35">
18295 <desc>
18296 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18297 </desc>
18298 </const>
18299 <const name="OnMediumRegistered" value="36">
18300 <desc>
18301 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18302 </desc>
18303 </const>
18304 <const name="OnMachineRegistered" value="37">
18305 <desc>
18306 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18307 </desc>
18308 </const>
18309 <const name="OnSessionStateChanged" value="38">
18310 <desc>
18311 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18312 </desc>
18313 </const>
18314 <const name="OnSnapshotTaken" value="39">
18315 <desc>
18316 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18317 </desc>
18318 </const>
18319 <const name="OnSnapshotDeleted" value="40">
18320 <desc>
18321 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18322 </desc>
18323 </const>
18324 <const name="OnSnapshotChanged" value="41">
18325 <desc>
18326 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18327 </desc>
18328 </const>
18329 <const name="OnGuestPropertyChanged" value="42">
18330 <desc>
18331 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18332 </desc>
18333 </const>
18334 <!-- Console events -->
18335 <const name="OnMousePointerShapeChanged" value="43">
18336 <desc>
18337 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18338 </desc>
18339 </const>
18340 <const name="OnMouseCapabilityChanged" value="44">
18341 <desc>
18342 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18343 </desc>
18344 </const>
18345 <const name="OnKeyboardLedsChanged" value="45">
18346 <desc>
18347 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18348 </desc>
18349 </const>
18350 <const name="OnStateChanged" value="46">
18351 <desc>
18352 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18353 </desc>
18354 </const>
18355 <const name="OnAdditionsStateChanged" value="47">
18356 <desc>
18357 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18358 </desc>
18359 </const>
18360 <const name="OnNetworkAdapterChanged" value="48">
18361 <desc>
18362 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18363 </desc>
18364 </const>
18365 <const name="OnSerialPortChanged" value="49">
18366 <desc>
18367 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18368 </desc>
18369 </const>
18370 <const name="OnParallelPortChanged" value="50">
18371 <desc>
18372 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18373 </desc>
18374 </const>
18375 <const name="OnStorageControllerChanged" value="51">
18376 <desc>
18377 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18378 </desc>
18379 </const>
18380 <const name="OnMediumChanged" value="52">
18381 <desc>
18382 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18383 </desc>
18384 </const>
18385 <const name="OnVRDEServerChanged" value="53">
18386 <desc>
18387 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18388 </desc>
18389 </const>
18390 <const name="OnUSBControllerChanged" value="54">
18391 <desc>
18392 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18393 </desc>
18394 </const>
18395 <const name="OnUSBDeviceStateChanged" value="55">
18396 <desc>
18397 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18398 </desc>
18399 </const>
18400 <const name="OnSharedFolderChanged" value="56">
18401 <desc>
18402 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18403 </desc>
18404 </const>
18405 <const name="OnRuntimeError" value="57">
18406 <desc>
18407 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18408 </desc>
18409 </const>
18410 <const name="OnCanShowWindow" value="58">
18411 <desc>
18412 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18413 </desc>
18414 </const>
18415 <const name="OnShowWindow" value="59">
18416 <desc>
18417 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18418 </desc>
18419 </const>
18420 <const name="OnCPUChanged" value="60">
18421 <desc>
18422 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18423 </desc>
18424 </const>
18425 <const name="OnVRDEServerInfoChanged" value="61">
18426 <desc>
18427 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18428 </desc>
18429 </const>
18430 <const name="OnEventSourceChanged" value="62">
18431 <desc>
18432 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
18433 </desc>
18434 </const>
18435 <const name="OnCPUExecutionCapChanged" value="63">
18436 <desc>
18437 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
18438 </desc>
18439 </const>
18440 <const name="OnGuestKeyboard" value="64">
18441 <desc>
18442 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
18443 </desc>
18444 </const>
18445 <const name="OnGuestMouse" value="65">
18446 <desc>
18447 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
18448 </desc>
18449 </const>
18450 <const name="OnNATRedirect" value="66">
18451 <desc>
18452 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
18453 </desc>
18454 </const>
18455 <const name="OnHostPCIDevicePlug" value="67">
18456 <desc>
18457 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
18458 </desc>
18459 </const>
18460 <const name="OnVBoxSVCAvailabilityChanged" value="68">
18461 <desc>
18462 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
18463 </desc>
18464 </const>
18465 <const name="OnBandwidthGroupChanged" value="69">
18466 <desc>
18467 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
18468 </desc>
18469 </const>
18470 <const name="OnGuestMonitorChanged" value="70">
18471 <desc>
18472 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
18473 </desc>
18474 </const>
18475 <const name="OnStorageDeviceChanged" value="71">
18476 <desc>
18477 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
18478 </desc>
18479 </const>
18480 <const name="OnClipboardModeChanged" value="72">
18481 <desc>
18482 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
18483 </desc>
18484 </const>
18485 <const name="OnDragAndDropModeChanged" value="73">
18486 <desc>
18487 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
18488 </desc>
18489 </const>
18490
18491 <!-- Last event marker -->
18492 <const name="Last" value="74">
18493 <desc>
18494 Must be last event, used for iterations and structures relying on numerical event values.
18495 </desc>
18496 </const>
18497
18498 </enum>
18499
18500 <interface
18501 name="IEventSource" extends="$unknown"
18502 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
18503 wsmap="managed"
18504 >
18505 <desc>
18506 Event source. Generally, any object which could generate events can be an event source,
18507 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
18508 an event source can work with listeners in either active or passive mode. In active mode it is up to
18509 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
18510 event source keeps track of pending events for each listener and returns available events on demand.
18511
18512 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18513 </desc>
18514
18515 <method name="createListener">
18516 <desc>
18517 Creates a new listener object, useful for passive mode.
18518 </desc>
18519 <param name="listener" type="IEventListener" dir="return"/>
18520 </method>
18521
18522 <method name="createAggregator">
18523 <desc>
18524 Creates an aggregator event source, collecting events from multiple sources.
18525 This way a single listener can listen for events coming from multiple sources,
18526 using a single blocking <link to="#getEvent"/> on the returned aggregator.
18527 </desc>
18528 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
18529 <desc>
18530 Subordinate event source this one aggregatres.
18531 </desc>
18532 </param>
18533 <param name="result" type="IEventSource" dir="return">
18534 <desc>
18535 Event source aggregating passed sources.
18536 </desc>
18537 </param>
18538 </method>
18539
18540 <method name="registerListener">
18541 <desc>
18542 Register an event listener.
18543
18544 <note>
18545 To avoid system overload, the VirtualBox server process checks if passive event
18546 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
18547 current implementation, if more than 500 pending events are detected for a passive
18548 event listener, it is forcefully unregistered by the system, and further
18549 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
18550 </note>
18551 </desc>
18552 <param name="listener" type="IEventListener" dir="in">
18553 <desc>Listener to register.</desc>
18554 </param>
18555 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
18556 <desc>
18557 Event types listener is interested in. One can use wildcards like -
18558 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
18559 than one event.
18560 </desc>
18561 </param>
18562 <param name="active" type="boolean" dir="in">
18563 <desc>
18564 Which mode this listener is operating in.
18565 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
18566 In passive mode, an internal event queue is created for this this IEventListener.
18567 For each event coming in, it is added to queues for all interested registered passive
18568 listeners. It is then up to the external code to call the listener's
18569 <link to="IEventListener::handleEvent" /> method. When done with an event, the
18570 external code must call <link to="#eventProcessed" />.
18571 </desc>
18572 </param>
18573 </method>
18574
18575 <method name="unregisterListener">
18576 <desc>
18577 Unregister an event listener. If listener is passive, and some waitable events are still
18578 in queue they are marked as processed automatically.
18579 </desc>
18580 <param name="listener" type="IEventListener" dir="in">
18581 <desc>Listener to unregister.</desc>
18582 </param>
18583 </method>
18584
18585 <method name="fireEvent">
18586 <desc>
18587 Fire an event for this source.
18588 </desc>
18589 <param name="event" type="IEvent" dir="in">
18590 <desc>Event to deliver.</desc>
18591 </param>
18592 <param name="timeout" type="long" dir="in">
18593 <desc>
18594 Maximum time to wait for event processing (if event is waitable), in ms;
18595 0 = no wait, -1 = indefinite wait.
18596 </desc>
18597 </param>
18598 <param name="result" type="boolean" dir="return">
18599 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
18600 </param>
18601 </method>
18602
18603 <method name="getEvent">
18604 <desc>
18605 Get events from this peer's event queue (for passive mode). Calling this method
18606 regularly is required for passive event listeners to avoid system overload;
18607 see <link to="IEventSource::registerListener" /> for details.
18608
18609 <result name="VBOX_E_OBJECT_NOT_FOUND">
18610 Listener is not registered, or autounregistered.
18611 </result>
18612 </desc>
18613 <param name="listener" type="IEventListener" dir="in">
18614 <desc>Which listener to get data for.</desc>
18615 </param>
18616 <param name="timeout" type="long" dir="in">
18617 <desc>
18618 Maximum time to wait for events, in ms;
18619 0 = no wait, -1 = indefinite wait.
18620 </desc>
18621 </param>
18622 <param name="event" type="IEvent" dir="return">
18623 <desc>Event retrieved, or null if none available.</desc>
18624 </param>
18625 </method>
18626
18627 <method name="eventProcessed">
18628 <desc>
18629 Must be called for waitable events after a particular listener finished its
18630 event processing. When all listeners of a particular event have called this
18631 method, the system will then call <link to="IEvent::setProcessed" />.
18632 </desc>
18633 <param name="listener" type="IEventListener" dir="in">
18634 <desc>Which listener processed event.</desc>
18635 </param>
18636 <param name="event" type="IEvent" dir="in">
18637 <desc>Which event.</desc>
18638 </param>
18639 </method>
18640
18641 </interface>
18642
18643 <interface
18644 name="IEventListener" extends="$unknown"
18645 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
18646 wsmap="managed"
18647 >
18648 <desc>
18649 Event listener. An event listener can work in either active or passive mode, depending on the way
18650 it was registered.
18651 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18652 </desc>
18653
18654 <method name="handleEvent">
18655 <desc>
18656 Handle event callback for active listeners. It is not called for
18657 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
18658 and having received acknowledgement from all passive listeners via
18659 <link to="IEventSource::eventProcessed"/>, the event is marked as
18660 processed and <link to="IEvent::waitProcessed"/> will return
18661 immediately.
18662 </desc>
18663 <param name="event" type="IEvent" dir="in">
18664 <desc>Event available.</desc>
18665 </param>
18666 </method>
18667
18668 </interface>
18669
18670 <interface
18671 name="IEvent" extends="$unknown"
18672 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
18673 wsmap="managed"
18674 >
18675 <desc>
18676 Abstract parent interface for VirtualBox events. Actual events will typically implement
18677 a more specific interface which derives from this (see below).
18678
18679 <b>Introduction to VirtualBox events</b>
18680
18681 Generally speaking, an event (represented by this interface) signals that something
18682 happened, while an event listener (see <link to="IEventListener" />) represents an
18683 entity that is interested in certain events. In order for this to work with
18684 unidirectional protocols (i.e. web services), the concepts of passive and active
18685 listener are used.
18686
18687 Event consumers can register themselves as listeners, providing an array of
18688 events they are interested in (see <link to="IEventSource::registerListener" />).
18689 When an event triggers, the listener is notified about the event. The exact
18690 mechanism of the notification depends on whether the listener was registered as
18691 an active or passive listener:
18692
18693 <ul>
18694 <li>An active listener is very similar to a callback: it is a function invoked
18695 by the API. As opposed to the callbacks that were used in the API before
18696 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
18697 </li>
18698
18699 <li>Passive listeners are somewhat trickier to implement, but do not require
18700 a client function to be callable, which is not an option with scripting
18701 languages or web service clients. Internally the <link to="IEventSource" />
18702 implementation maintains an event queue for each passive listener, and
18703 newly arrived events are put in this queue. When the listener calls
18704 <link to="IEventSource::getEvent"/>, first element from its internal event
18705 queue is returned. When the client completes processing of an event,
18706 the <link to="IEventSource::eventProcessed" /> function must be called,
18707 acknowledging that the event was processed. It supports implementing
18708 waitable events. On passive listener unregistration, all events from its
18709 queue are auto-acknowledged.
18710 </li>
18711 </ul>
18712
18713 Waitable events are useful in situations where the event generator wants to track
18714 delivery or a party wants to wait until all listeners have completed the event. A
18715 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
18716 listeners might veto a certain action, and thus the event producer has to make
18717 sure that all listeners have processed the event and not vetoed before taking
18718 the action.
18719
18720 A given event may have both passive and active listeners at the same time.
18721
18722 <b>Using events</b>
18723
18724 Any VirtualBox object capable of producing externally visible events provides an
18725 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
18726 This event source object is notified by VirtualBox once something has happened, so
18727 consumers may register event listeners with this event source. To register a listener,
18728 an object implementing the <link to="IEventListener" /> interface must be provided.
18729 For active listeners, such an object is typically created by the consumer, while for
18730 passive listeners <link to="IEventSource::createListener" /> should be used. Please
18731 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
18732
18733 Once created, the listener must be registered to listen for the desired events
18734 (see <link to="IEventSource::registerListener" />), providing an array of
18735 <link to="VBoxEventType" /> enums. Those elements can either be the individual
18736 event IDs or wildcards matching multiple event IDs.
18737
18738 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
18739 called automatically when the event is triggered, while passive listeners have to call
18740 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
18741 an event processing loop.
18742
18743 The IEvent interface is an abstract parent interface for all such VirtualBox events
18744 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
18745 or the event processing loop is to check the <link to="#type" /> attribute of the event and
18746 then cast to the appropriate specific interface using @c QueryInterface().
18747 </desc>
18748
18749 <attribute name="type" readonly="yes" type="VBoxEventType">
18750 <desc>
18751 Event type.
18752 </desc>
18753 </attribute>
18754
18755 <attribute name="source" readonly="yes" type="IEventSource">
18756 <desc>
18757 Source of this event.
18758 </desc>
18759 </attribute>
18760
18761 <attribute name="waitable" readonly="yes" type="boolean">
18762 <desc>
18763 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
18764 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
18765 as no additional overhead associated with waitability imposed.
18766 Waitable events are needed when one need to be able to wait for particular event processed,
18767 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
18768 until all consumers confirmed events.
18769 </desc>
18770 </attribute>
18771
18772 <method name="setProcessed">
18773 <desc>
18774 Internal method called by the system when all listeners of a particular event have called
18775 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
18776 </desc>
18777 </method>
18778
18779 <method name="waitProcessed">
18780 <desc>
18781 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
18782 described semantics, for non-waitable returns true immediately.
18783 </desc>
18784 <param name="timeout" type="long" dir="in">
18785 <desc>
18786 Maximum time to wait for event processeing, in ms;
18787 0 = no wait, -1 = indefinite wait.
18788 </desc>
18789 </param>
18790 <param name="result" type="boolean" dir="return">
18791 <desc>If this event was processed before timeout.</desc>
18792 </param>
18793 </method>
18794 </interface>
18795
18796
18797 <interface
18798 name="IReusableEvent" extends="IEvent"
18799 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
18800 wsmap="managed"
18801 >
18802 <desc>Base abstract interface for all reusable events.</desc>
18803
18804 <attribute name="generation" readonly="yes" type="unsigned long">
18805 <desc>Current generation of event, incremented on reuse.</desc>
18806 </attribute>
18807
18808 <method name="reuse">
18809 <desc>
18810 Marks an event as reused, increments 'generation', fields shall no
18811 longer be considered valid.
18812 </desc>
18813 </method>
18814 </interface>
18815
18816 <interface
18817 name="IMachineEvent" extends="IEvent"
18818 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
18819 wsmap="managed" id="MachineEvent"
18820 >
18821 <desc>Base abstract interface for all machine events.</desc>
18822
18823 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
18824 <desc>ID of the machine this event relates to.</desc>
18825 </attribute>
18826
18827 </interface>
18828
18829 <interface
18830 name="IMachineStateChangedEvent" extends="IMachineEvent"
18831 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
18832 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
18833 >
18834 <desc>Machine state change event.</desc>
18835
18836 <attribute name="state" readonly="yes" type="MachineState">
18837 <desc>New execution state.</desc>
18838 </attribute>
18839 </interface>
18840
18841 <interface
18842 name="IMachineDataChangedEvent" extends="IMachineEvent"
18843 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
18844 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
18845 >
18846 <desc>
18847 Any of the settings of the given machine has changed.
18848 </desc>
18849
18850 <attribute name="temporary" readonly="yes" type="boolean">
18851 <desc>@c true if the settings change is temporary. All permanent
18852 settings changes will trigger an event, and only temporary settings
18853 changes for running VMs will trigger an event. Note: sending events
18854 for temporary changes is NOT IMPLEMENTED.</desc>
18855 </attribute>
18856 </interface>
18857
18858 <interface
18859 name="IMediumRegisteredEvent" extends="IEvent"
18860 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
18861 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
18862 >
18863 <desc>
18864 The given medium was registered or unregistered
18865 within this VirtualBox installation.
18866 </desc>
18867
18868 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
18869 <desc>ID of the medium this event relates to.</desc>
18870 </attribute>
18871
18872 <attribute name="mediumType" readonly="yes" type="DeviceType">
18873 <desc>Type of the medium this event relates to.</desc>
18874 </attribute>
18875
18876 <attribute name="registered" type="boolean" readonly="yes">
18877 <desc>
18878 If @c true, the medium was registered, otherwise it was
18879 unregistered.
18880 </desc>
18881 </attribute>
18882 </interface>
18883
18884 <interface
18885 name="IMachineRegisteredEvent" extends="IMachineEvent"
18886 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
18887 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
18888 >
18889 <desc>
18890 The given machine was registered or unregistered
18891 within this VirtualBox installation.
18892 </desc>
18893
18894 <attribute name="registered" type="boolean" readonly="yes">
18895 <desc>
18896 If @c true, the machine was registered, otherwise it was
18897 unregistered.
18898 </desc>
18899 </attribute>
18900 </interface>
18901
18902 <interface
18903 name="ISessionStateChangedEvent" extends="IMachineEvent"
18904 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
18905 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
18906 >
18907 <desc>
18908 The state of the session for the given machine was changed.
18909 <see><link to="IMachine::sessionState"/></see>
18910 </desc>
18911
18912 <attribute name="state" type="SessionState" readonly="yes">
18913 <desc>
18914 New session state.
18915 </desc>
18916 </attribute>
18917 </interface>
18918
18919 <interface
18920 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
18921 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
18922 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
18923 >
18924 <desc>
18925 Notification when a guest property has changed.
18926 </desc>
18927
18928 <attribute name="name" readonly="yes" type="wstring">
18929 <desc>
18930 The name of the property that has changed.
18931 </desc>
18932 </attribute>
18933
18934 <attribute name="value" readonly="yes" type="wstring">
18935 <desc>
18936 The new property value.
18937 </desc>
18938 </attribute>
18939
18940 <attribute name="flags" readonly="yes" type="wstring">
18941 <desc>
18942 The new property flags.
18943 </desc>
18944 </attribute>
18945
18946 </interface>
18947
18948 <interface
18949 name="ISnapshotEvent" extends="IMachineEvent"
18950 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
18951 wsmap="managed" id="SnapshotEvent"
18952 >
18953 <desc>Base interface for all snapshot events.</desc>
18954
18955 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
18956 <desc>ID of the snapshot this event relates to.</desc>
18957 </attribute>
18958
18959 </interface>
18960
18961 <interface
18962 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
18963 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
18964 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
18965 >
18966 <desc>
18967 A new snapshot of the machine has been taken.
18968 <see><link to="ISnapshot"/></see>
18969 </desc>
18970 </interface>
18971
18972 <interface
18973 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
18974 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
18975 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
18976 >
18977 <desc>
18978 Snapshot of the given machine has been deleted.
18979
18980 <note>
18981 This notification is delivered <b>after</b> the snapshot
18982 object has been uninitialized on the server (so that any
18983 attempt to call its methods will return an error).
18984 </note>
18985
18986 <see><link to="ISnapshot"/></see>
18987 </desc>
18988 </interface>
18989
18990 <interface
18991 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
18992 uuid="07541941-8079-447a-a33e-47a69c7980db"
18993 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
18994 >
18995 <desc>
18996 Snapshot properties (name and/or description) have been changed.
18997 <see><link to="ISnapshot"/></see>
18998 </desc>
18999 </interface>
19000
19001 <interface
19002 name="IMousePointerShapeChangedEvent" extends="IEvent"
19003 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19004 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19005 >
19006 <desc>
19007 Notification when the guest mouse pointer shape has
19008 changed. The new shape data is given.
19009 </desc>
19010
19011 <attribute name="visible" type="boolean" readonly="yes">
19012 <desc>
19013 Flag whether the pointer is visible.
19014 </desc>
19015 </attribute>
19016 <attribute name="alpha" type="boolean" readonly="yes">
19017 <desc>
19018 Flag whether the pointer has an alpha channel.
19019 </desc>
19020 </attribute>
19021 <attribute name="xhot" type="unsigned long" readonly="yes">
19022 <desc>
19023 The pointer hot spot X coordinate.
19024 </desc>
19025 </attribute>
19026 <attribute name="yhot" type="unsigned long" readonly="yes">
19027 <desc>
19028 The pointer hot spot Y coordinate.
19029 </desc>
19030 </attribute>
19031 <attribute name="width" type="unsigned long" readonly="yes">
19032 <desc>
19033 Width of the pointer shape in pixels.
19034 </desc>
19035 </attribute>
19036 <attribute name="height" type="unsigned long" readonly="yes">
19037 <desc>
19038 Height of the pointer shape in pixels.
19039 </desc>
19040 </attribute>
19041 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19042 <desc>
19043 Shape buffer arrays.
19044
19045 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19046 followed by a 32-bpp XOR (color) mask.
19047
19048 For pointers without alpha channel the XOR mask pixels are 32
19049 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19050 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19051
19052 An AND mask is used for pointers with alpha channel, so if the
19053 callback does not support alpha, the pointer could be
19054 displayed as a normal color pointer.
19055
19056 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19057 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19058 height</tt>. The padding bits at the end of each scanline are
19059 undefined.
19060
19061 The XOR mask follows the AND mask on the next 4-byte aligned
19062 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19063 Bytes in the gap between the AND and the XOR mask are undefined.
19064 The XOR mask scanlines have no gap between them and the size of
19065 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19066
19067 <note>
19068 If @a shape is 0, only the pointer visibility is changed.
19069 </note>
19070 </desc>
19071 </attribute>
19072 </interface>
19073
19074 <interface
19075 name="IMouseCapabilityChangedEvent" extends="IEvent"
19076 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19077 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19078 >
19079 <desc>
19080 Notification when the mouse capabilities reported by the
19081 guest have changed. The new capabilities are passed.
19082 </desc>
19083 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19084 <desc>
19085 Supports absolute coordinates.
19086 </desc>
19087 </attribute>
19088 <attribute name="supportsRelative" type="boolean" readonly="yes">
19089 <desc>
19090 Supports relative coordinates.
19091 </desc>
19092 </attribute>
19093 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19094 <desc>
19095 If host cursor is needed.
19096 </desc>
19097 </attribute>
19098 </interface>
19099
19100 <interface
19101 name="IKeyboardLedsChangedEvent" extends="IEvent"
19102 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19103 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19104 >
19105 <desc>
19106 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19107 to alter the state of the keyboard LEDs.
19108 </desc>
19109 <attribute name="numLock" type="boolean" readonly="yes">
19110 <desc>
19111 NumLock status.
19112 </desc>
19113 </attribute>
19114 <attribute name="capsLock" type="boolean" readonly="yes">
19115 <desc>
19116 CapsLock status.
19117 </desc>
19118 </attribute>
19119 <attribute name="scrollLock" type="boolean" readonly="yes">
19120 <desc>
19121 ScrollLock status.
19122 </desc>
19123 </attribute>
19124 </interface>
19125
19126 <interface
19127 name="IStateChangedEvent" extends="IEvent"
19128 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19129 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19130 >
19131 <desc>
19132 Notification when the execution state of the machine has changed.
19133 The new state is given.
19134 </desc>
19135 <attribute name="state" type="MachineState" readonly="yes">
19136 <desc>
19137 New machine state.
19138 </desc>
19139 </attribute>
19140 </interface>
19141
19142 <interface
19143 name="IAdditionsStateChangedEvent" extends="IEvent"
19144 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19145 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19146 >
19147 <desc>
19148 Notification when a Guest Additions property changes.
19149 Interested callees should query IGuest attributes to
19150 find out what has changed.
19151 </desc>
19152 </interface>
19153
19154 <interface
19155 name="INetworkAdapterChangedEvent" extends="IEvent"
19156 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19157 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19158 >
19159 <desc>
19160 Notification when a property of one of the
19161 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19162 changes. Interested callees should use INetworkAdapter methods and
19163 attributes to find out what has changed.
19164 </desc>
19165 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19166 <desc>
19167 Network adapter that is subject to change.
19168 </desc>
19169 </attribute>
19170 </interface>
19171
19172 <interface
19173 name="ISerialPortChangedEvent" extends="IEvent"
19174 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19175 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19176 >
19177 <desc>
19178 Notification when a property of one of the
19179 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19180 Interested callees should use ISerialPort methods and attributes
19181 to find out what has changed.
19182 </desc>
19183 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19184 <desc>
19185 Serial port that is subject to change.
19186 </desc>
19187 </attribute>
19188 </interface>
19189
19190 <interface
19191 name="IParallelPortChangedEvent" extends="IEvent"
19192 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19193 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19194 >
19195 <desc>
19196 Notification when a property of one of the
19197 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19198 changes. Interested callees should use ISerialPort methods and
19199 attributes to find out what has changed.
19200 </desc>
19201 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19202 <desc>
19203 Parallel port that is subject to change.
19204 </desc>
19205 </attribute>
19206 </interface>
19207
19208 <interface
19209 name="IStorageControllerChangedEvent" extends="IEvent"
19210 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19211 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19212 >
19213 <desc>
19214 Notification when a
19215 <link to="IMachine::mediumAttachments">medium attachment</link>
19216 changes.
19217 </desc>
19218 </interface>
19219
19220 <interface
19221 name="IMediumChangedEvent" extends="IEvent"
19222 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19223 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19224 >
19225 <desc>
19226 Notification when a
19227 <link to="IMachine::mediumAttachments">medium attachment</link>
19228 changes.
19229 </desc>
19230 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19231 <desc>
19232 Medium attachment that is subject to change.
19233 </desc>
19234 </attribute>
19235 </interface>
19236
19237 <interface
19238 name="IClipboardModeChangedEvent" extends="IEvent"
19239 uuid="cac21692-7997-4595-a731-3a509db604e5"
19240 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19241 >
19242 <desc>
19243 Notification when the shared clipboard mode changes.
19244 </desc>
19245 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19246 <desc>
19247 The new clipboard mode.
19248 </desc>
19249 </attribute>
19250 </interface>
19251
19252 <interface
19253 name="IDragAndDropModeChangedEvent" extends="IEvent"
19254 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19255 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19256 >
19257 <desc>
19258 Notification when the drag'n'drop mode changes.
19259 </desc>
19260 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19261 <desc>
19262 The new drag'n'drop mode.
19263 </desc>
19264 </attribute>
19265 </interface>
19266
19267 <interface
19268 name="ICPUChangedEvent" extends="IEvent"
19269 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19270 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19271 >
19272 <desc>
19273 Notification when a CPU changes.
19274 </desc>
19275 <attribute name="CPU" type="unsigned long" readonly="yes">
19276 <desc>
19277 The CPU which changed.
19278 </desc>
19279 </attribute>
19280 <attribute name="add" type="boolean" readonly="yes">
19281 <desc>
19282 Flag whether the CPU was added or removed.
19283 </desc>
19284 </attribute>
19285 </interface>
19286
19287 <interface
19288 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19289 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19290 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19291 >
19292 <desc>
19293 Notification when the CPU execution cap changes.
19294 </desc>
19295 <attribute name="executionCap" type="unsigned long" readonly="yes">
19296 <desc>
19297 The new CPU execution cap value. (1-100)
19298 </desc>
19299 </attribute>
19300 </interface>
19301
19302 <interface
19303 name="IGuestKeyboardEvent" extends="IEvent"
19304 uuid="88394258-7006-40d4-b339-472ee3801844"
19305 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19306 >
19307 <desc>
19308 Notification when guest keyboard event happens.
19309 </desc>
19310 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19311 <desc>
19312 Array of scancodes.
19313 </desc>
19314 </attribute>
19315 </interface>
19316
19317 <interface
19318 name="IGuestMouseEvent" extends="IReusableEvent"
19319 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19320 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19321 >
19322 <desc>
19323 Notification when guest mouse event happens.
19324 </desc>
19325
19326 <attribute name="absolute" type="boolean" readonly="yes">
19327 <desc>
19328 If this event is relative or absolute.
19329 </desc>
19330 </attribute>
19331
19332 <attribute name="x" type="long" readonly="yes">
19333 <desc>
19334 New X position, or X delta.
19335 </desc>
19336 </attribute>
19337
19338 <attribute name="y" type="long" readonly="yes">
19339 <desc>
19340 New Y position, or Y delta.
19341 </desc>
19342 </attribute>
19343
19344 <attribute name="z" type="long" readonly="yes">
19345 <desc>
19346 Z delta.
19347 </desc>
19348 </attribute>
19349
19350 <attribute name="w" type="long" readonly="yes">
19351 <desc>
19352 W delta.
19353 </desc>
19354 </attribute>
19355
19356 <attribute name="buttons" type="long" readonly="yes">
19357 <desc>
19358 Button state bitmask.
19359 </desc>
19360 </attribute>
19361
19362 </interface>
19363
19364
19365 <interface
19366 name="IVRDEServerChangedEvent" extends="IEvent"
19367 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
19368 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
19369 >
19370 <desc>
19371 Notification when a property of the
19372 <link to="IMachine::VRDEServer">VRDE server</link> changes.
19373 Interested callees should use IVRDEServer methods and attributes to
19374 find out what has changed.
19375 </desc>
19376 </interface>
19377
19378 <interface
19379 name="IVRDEServerInfoChangedEvent" extends="IEvent"
19380 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
19381 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
19382 >
19383 <desc>
19384 Notification when the status of the VRDE server changes. Interested callees
19385 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
19386 attributes to find out what is the current status.
19387 </desc>
19388 </interface>
19389
19390 <interface
19391 name="IUSBControllerChangedEvent" extends="IEvent"
19392 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
19393 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
19394 >
19395 <desc>
19396 Notification when a property of the virtual
19397 <link to="IMachine::USBController">USB controller</link> changes.
19398 Interested callees should use IUSBController methods and attributes to
19399 find out what has changed.
19400 </desc>
19401 </interface>
19402
19403 <interface
19404 name="IUSBDeviceStateChangedEvent" extends="IEvent"
19405 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
19406 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
19407 >
19408 <desc>
19409 Notification when a USB device is attached to or detached from
19410 the virtual USB controller.
19411
19412 This notification is sent as a result of the indirect
19413 request to attach the device because it matches one of the
19414 machine USB filters, or as a result of the direct request
19415 issued by <link to="IConsole::attachUSBDevice"/> or
19416 <link to="IConsole::detachUSBDevice"/>.
19417
19418 This notification is sent in case of both a succeeded and a
19419 failed request completion. When the request succeeds, the
19420 @a error parameter is @c null, and the given device has been
19421 already added to (when @a attached is @c true) or removed from
19422 (when @a attached is @c false) the collection represented by
19423 <link to="IConsole::USBDevices"/>. On failure, the collection
19424 doesn't change and the @a error parameter represents the error
19425 message describing the failure.
19426 </desc>
19427 <attribute name="device" type="IUSBDevice" readonly="yes">
19428 <desc>
19429 Device that is subject to state change.
19430 </desc>
19431 </attribute>
19432 <attribute name="attached" type="boolean" readonly="yes">
19433 <desc>
19434 @c true if the device was attached and @c false otherwise.
19435 </desc>
19436 </attribute>
19437 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
19438 <desc>
19439 @c null on success or an error message object on failure.
19440 </desc>
19441 </attribute>
19442 </interface>
19443
19444 <interface
19445 name="ISharedFolderChangedEvent" extends="IEvent"
19446 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
19447 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
19448 >
19449 <desc>
19450 Notification when a shared folder is added or removed.
19451 The @a scope argument defines one of three scopes:
19452 <link to="IVirtualBox::sharedFolders">global shared folders</link>
19453 (<link to="Scope_Global">Global</link>),
19454 <link to="IMachine::sharedFolders">permanent shared folders</link> of
19455 the machine (<link to="Scope_Machine">Machine</link>) or <link
19456 to="IConsole::sharedFolders">transient shared folders</link> of the
19457 machine (<link to="Scope_Session">Session</link>). Interested callees
19458 should use query the corresponding collections to find out what has
19459 changed.
19460 </desc>
19461 <attribute name="scope" type="Scope" readonly="yes">
19462 <desc>
19463 Scope of the notification.
19464 </desc>
19465 </attribute>
19466 </interface>
19467
19468 <interface
19469 name="IRuntimeErrorEvent" extends="IEvent"
19470 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
19471 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
19472 >
19473 <desc>
19474 Notification when an error happens during the virtual
19475 machine execution.
19476
19477 There are three kinds of runtime errors:
19478 <ul>
19479 <li><i>fatal</i></li>
19480 <li><i>non-fatal with retry</i></li>
19481 <li><i>non-fatal warnings</i></li>
19482 </ul>
19483
19484 <b>Fatal</b> errors are indicated by the @a fatal parameter set
19485 to @c true. In case of fatal errors, the virtual machine
19486 execution is always paused before calling this notification, and
19487 the notification handler is supposed either to immediately save
19488 the virtual machine state using <link to="IConsole::saveState"/>
19489 or power it off using <link to="IConsole::powerDown"/>.
19490 Resuming the execution can lead to unpredictable results.
19491
19492 <b>Non-fatal</b> errors and warnings are indicated by the
19493 @a fatal parameter set to @c false. If the virtual machine
19494 is in the Paused state by the time the error notification is
19495 received, it means that the user can <i>try to resume</i> the machine
19496 execution after attempting to solve the problem that caused the
19497 error. In this case, the notification handler is supposed
19498 to show an appropriate message to the user (depending on the
19499 value of the @a id parameter) that offers several actions such
19500 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
19501 wants to retry, the notification handler should continue
19502 the machine execution using the <link to="IConsole::resume"/>
19503 call. If the machine execution is not Paused during this
19504 notification, then it means this notification is a <i>warning</i>
19505 (for example, about a fatal condition that can happen very soon);
19506 no immediate action is required from the user, the machine
19507 continues its normal execution.
19508
19509 Note that in either case the notification handler
19510 <b>must not</b> perform any action directly on a thread
19511 where this notification is called. Everything it is allowed to
19512 do is to post a message to another thread that will then talk
19513 to the user and take the corresponding action.
19514
19515 Currently, the following error identifiers are known:
19516 <ul>
19517 <li><tt>"HostMemoryLow"</tt></li>
19518 <li><tt>"HostAudioNotResponding"</tt></li>
19519 <li><tt>"VDIStorageFull"</tt></li>
19520 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
19521 </ul>
19522 </desc>
19523 <attribute name="fatal" type="boolean" readonly="yes">
19524 <desc>
19525 Whether the error is fatal or not.
19526 </desc>
19527 </attribute>
19528 <attribute name="id" type="wstring" readonly="yes">
19529 <desc>
19530 Error identifier.
19531 </desc>
19532 </attribute>
19533 <attribute name="message" type="wstring" readonly="yes">
19534 <desc>
19535 Optional error message.
19536 </desc>
19537 </attribute>
19538 </interface>
19539
19540
19541 <interface
19542 name="IEventSourceChangedEvent" extends="IEvent"
19543 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
19544 waitable="yes"
19545 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
19546 >
19547 <desc>
19548 Notification when an event source state changes (listener added or removed).
19549 </desc>
19550
19551 <attribute name="listener" type="IEventListener" readonly="yes">
19552 <desc>
19553 Event listener which has changed.
19554 </desc>
19555 </attribute>
19556
19557 <attribute name="add" type="boolean" readonly="yes">
19558 <desc>
19559 Flag whether listener was added or removed.
19560 </desc>
19561 </attribute>
19562 </interface>
19563
19564 <interface
19565 name="IExtraDataChangedEvent" extends="IEvent"
19566 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
19567 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
19568 >
19569 <desc>
19570 Notification when machine specific or global extra data
19571 has changed.
19572 </desc>
19573 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19574 <desc>
19575 ID of the machine this event relates to.
19576 Null for global extra data changes.
19577 </desc>
19578 </attribute>
19579 <attribute name="key" type="wstring" readonly="yes">
19580 <desc>
19581 Extra data key that has changed.
19582 </desc>
19583 </attribute>
19584 <attribute name="value" type="wstring" readonly="yes">
19585 <desc>
19586 Extra data value for the given key.
19587 </desc>
19588 </attribute>
19589 </interface>
19590
19591 <interface
19592 name="IVetoEvent" extends="IEvent"
19593 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
19594 wsmap="managed"
19595 >
19596 <desc>Base abstract interface for veto events.</desc>
19597
19598 <method name="addVeto">
19599 <desc>
19600 Adds a veto on this event.
19601 </desc>
19602 <param name="reason" type="wstring" dir="in">
19603 <desc>
19604 Reason for veto, could be null or empty string.
19605 </desc>
19606 </param>
19607 </method>
19608
19609 <method name="isVetoed">
19610 <desc>
19611 If this event was vetoed.
19612 </desc>
19613 <param name="result" type="boolean" dir="return">
19614 <desc>
19615 Reason for veto.
19616 </desc>
19617 </param>
19618 </method>
19619
19620 <method name="getVetos">
19621 <desc>
19622 Current veto reason list, if size is 0 - no veto.
19623 </desc>
19624 <param name="result" type="wstring" dir="return" safearray="yes">
19625 <desc>
19626 Array of reasons for veto provided by different event handlers.
19627 </desc>
19628 </param>
19629 </method>
19630
19631 </interface>
19632
19633 <interface
19634 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
19635 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
19636 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
19637 waitable="true"
19638 >
19639 <desc>
19640 Notification when someone tries to change extra data for
19641 either the given machine or (if @c null) global extra data.
19642 This gives the chance to veto against changes.
19643 </desc>
19644 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19645 <desc>
19646 ID of the machine this event relates to.
19647 Null for global extra data changes.
19648 </desc>
19649 </attribute>
19650 <attribute name="key" type="wstring" readonly="yes">
19651 <desc>
19652 Extra data key that has changed.
19653 </desc>
19654 </attribute>
19655 <attribute name="value" type="wstring" readonly="yes">
19656 <desc>
19657 Extra data value for the given key.
19658 </desc>
19659 </attribute>
19660 </interface>
19661
19662 <interface
19663 name="ICanShowWindowEvent" extends="IVetoEvent"
19664 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
19665 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
19666 waitable="true"
19667 >
19668 <desc>
19669 Notification when a call to
19670 <link to="IMachine::canShowConsoleWindow"/> is made by a
19671 front-end to check if a subsequent call to
19672 <link to="IMachine::showConsoleWindow"/> can succeed.
19673
19674 The callee should give an answer appropriate to the current
19675 machine state using event veto. This answer must
19676 remain valid at least until the next
19677 <link to="IConsole::state">machine state</link> change.
19678 </desc>
19679 </interface>
19680
19681 <interface
19682 name="IShowWindowEvent" extends="IEvent"
19683 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
19684 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
19685 waitable="true"
19686 >
19687 <desc>
19688 Notification when a call to
19689 <link to="IMachine::showConsoleWindow"/>
19690 requests the console window to be activated and brought to
19691 foreground on the desktop of the host PC.
19692
19693 This notification should cause the VM console process to
19694 perform the requested action as described above. If it is
19695 impossible to do it at a time of this notification, this
19696 method should return a failure.
19697
19698 Note that many modern window managers on many platforms
19699 implement some sort of focus stealing prevention logic, so
19700 that it may be impossible to activate a window without the
19701 help of the currently active application (which is supposedly
19702 an initiator of this notification). In this case, this method
19703 must return a non-zero identifier that represents the
19704 top-level window of the VM console process. The caller, if it
19705 represents a currently active process, is responsible to use
19706 this identifier (in a platform-dependent manner) to perform
19707 actual window activation.
19708
19709 This method must set @a winId to zero if it has performed all
19710 actions necessary to complete the request and the console
19711 window is now active and in foreground, to indicate that no
19712 further action is required on the caller's side.
19713 </desc>
19714 <attribute name="winId" type="long long">
19715 <desc>
19716 Platform-dependent identifier of the top-level VM console
19717 window, or zero if this method has performed all actions
19718 necessary to implement the <i>show window</i> semantics for
19719 the given platform and/or this VirtualBox front-end.
19720 </desc>
19721 </attribute>
19722 </interface>
19723
19724 <interface
19725 name="INATRedirectEvent" extends="IMachineEvent"
19726 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
19727 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
19728 >
19729 <desc>
19730 Notification when NAT redirect rule added or removed.
19731 </desc>
19732 <attribute name="slot" type="unsigned long" readonly="yes">
19733 <desc>
19734 Adapter which NAT attached to.
19735 </desc>
19736 </attribute>
19737 <attribute name="remove" type="boolean" readonly="yes">
19738 <desc>
19739 Whether rule remove or add.
19740 </desc>
19741 </attribute>
19742 <attribute name="name" type="wstring" readonly="yes">
19743 <desc>
19744 Name of the rule.
19745 </desc>
19746 </attribute>
19747 <attribute name="proto" type="NATProtocol" readonly="yes">
19748 <desc>
19749 Protocol (TCP or UDP) of the redirect rule.
19750 </desc>
19751 </attribute>
19752 <attribute name="hostIP" type="wstring" readonly="yes">
19753 <desc>
19754 Host ip address to bind socket on.
19755 </desc>
19756 </attribute>
19757 <attribute name="hostPort" type="long" readonly="yes">
19758 <desc>
19759 Host port to bind socket on.
19760 </desc>
19761 </attribute>
19762 <attribute name="guestIP" type="wstring" readonly="yes">
19763 <desc>
19764 Guest ip address to redirect to.
19765 </desc>
19766 </attribute>
19767 <attribute name="guestPort" type="long" readonly="yes">
19768 <desc>
19769 Guest port to redirect to.
19770 </desc>
19771 </attribute>
19772 </interface>
19773
19774 <interface
19775 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
19776 waitable="yes"
19777 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
19778 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
19779 >
19780 <desc>
19781 Notification when host PCI device is plugged/unplugged. Plugging
19782 usually takes place on VM startup, unplug - when
19783 <link to="IMachine::detachHostPCIDevice"/> is called.
19784
19785 <see><link to="IMachine::detachHostPCIDevice"/></see>
19786
19787 </desc>
19788
19789 <attribute name="plugged" type="boolean" readonly="yes">
19790 <desc>
19791 If device successfully plugged or unplugged.
19792 </desc>
19793 </attribute>
19794
19795 <attribute name="success" type="boolean" readonly="yes">
19796 <desc>
19797 If operation was successful, if false - 'message' attribute
19798 may be of interest.
19799 </desc>
19800 </attribute>
19801
19802 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
19803 <desc>
19804 Attachment info for this device.
19805 </desc>
19806 </attribute>
19807
19808 <attribute name="message" type="wstring" readonly="yes">
19809 <desc>
19810 Optional error message.
19811 </desc>
19812 </attribute>
19813
19814 </interface>
19815
19816 <interface
19817 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
19818 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
19819 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
19820 >
19821 <desc>
19822 Notification when VBoxSVC becomes unavailable (due to a crash or similar
19823 unexpected circumstances) or available again.
19824 </desc>
19825
19826 <attribute name="available" type="boolean" readonly="yes">
19827 <desc>
19828 Whether VBoxSVC is available now.
19829 </desc>
19830 </attribute>
19831 </interface>
19832
19833 <interface
19834 name="IBandwidthGroupChangedEvent" extends="IEvent"
19835 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
19836 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
19837 >
19838 <desc>
19839 Notification when one of the bandwidth groups changed
19840 </desc>
19841 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
19842 <desc>
19843 The changed bandwidth group.
19844 </desc>
19845 </attribute>
19846 </interface>
19847
19848 <enum
19849 name="GuestMonitorChangedEventType"
19850 uuid="ef172985-7e36-4297-95be-e46396968d66"
19851 >
19852
19853 <desc>
19854 How the guest monitor has been changed.
19855 </desc>
19856
19857 <const name="Enabled" value="0">
19858 <desc>
19859 The guest monitor has been enabled by the guest.
19860 </desc>
19861 </const>
19862
19863 <const name="Disabled" value="1">
19864 <desc>
19865 The guest monitor has been disabled by the guest.
19866 </desc>
19867 </const>
19868
19869 <const name="NewOrigin" value="2">
19870 <desc>
19871 The guest monitor origin has changed in the guest.
19872 </desc>
19873 </const>
19874 </enum>
19875
19876 <interface
19877 name="IGuestMonitorChangedEvent" extends="IEvent"
19878 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
19879 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
19880 >
19881 <desc>
19882 Notification when the guest enables one of its monitors.
19883 </desc>
19884
19885 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
19886 <desc>
19887 What was changed for this guest monitor.
19888 </desc>
19889 </attribute>
19890
19891 <attribute name="screenId" type="unsigned long" readonly="yes">
19892 <desc>
19893 The monitor which was changed.
19894 </desc>
19895 </attribute>
19896
19897 <attribute name="originX" type="unsigned long" readonly="yes">
19898 <desc>
19899 Physical X origin relative to the primary screen.
19900 Valid for Enabled and NewOrigin.
19901 </desc>
19902 </attribute>
19903
19904 <attribute name="originY" type="unsigned long" readonly="yes">
19905 <desc>
19906 Physical Y origin relative to the primary screen.
19907 Valid for Enabled and NewOrigin.
19908 </desc>
19909 </attribute>
19910
19911 <attribute name="width" type="unsigned long" readonly="yes">
19912 <desc>
19913 Width of the screen.
19914 Valid for Enabled.
19915 </desc>
19916 </attribute>
19917
19918 <attribute name="height" type="unsigned long" readonly="yes">
19919 <desc>
19920 Height of the screen.
19921 Valid for Enabled.
19922 </desc>
19923 </attribute>
19924
19925 </interface>
19926
19927 <interface
19928 name="IStorageDeviceChangedEvent" extends="IEvent"
19929 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
19930 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
19931 >
19932 <desc>
19933 Notification when a
19934 <link to="IMachine::mediumAttachments">storage device</link>
19935 is attached or removed.
19936 </desc>
19937 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
19938 <desc>
19939 Storage device that is subject to change.
19940 </desc>
19941 </attribute>
19942 <attribute name="removed" type="boolean" readonly="yes">
19943 <desc>
19944 Flag whether the device was removed or added to the VM.
19945 </desc>
19946 </attribute>
19947 </interface>
19948
19949 <module name="VBoxSVC" context="LocalServer">
19950 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
19951 namespace="virtualbox.org">
19952 <interface name="IVirtualBox" default="yes"/>
19953 </class>
19954 </module>
19955
19956 <module name="VBoxC" context="InprocServer" threadingModel="Free">
19957 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
19958 namespace="virtualbox.org">
19959 <interface name="IVirtualBoxClient" default="yes"/>
19960 </class>
19961
19962 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
19963 namespace="virtualbox.org">
19964 <interface name="ISession" default="yes"/>
19965 </class>
19966 </module>
19967
19968</library>
19969
19970</idl>
19971
19972<!-- 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