VirtualBox

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

Last change on this file since 38871 was 38871, checked in by vboxsync, 13 years ago

Documentation.

  • Property svn:eol-style set to native
File size: 646.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2011 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</desc>
110
111<if target="midl">
112 <cpp line="enum {"/>
113 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
114 <cpp line=" kTypeLibraryMinorVersion = 0"/>
115 <cpp line="};"/>
116</if>
117
118<if target="xpidl">
119 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
120 <cpp>
121/* currently, nsISupportsImpl.h lacks the below-like macros */
122
123#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
124#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
125#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
126#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
127
128
129#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
130# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
131 NS_IMPL_THREADSAFE_ADDREF(_class) \
132 NS_IMPL_THREADSAFE_RELEASE(_class) \
133 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
134 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
135#endif
136
137#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
138# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
139 NS_IMPL_THREADSAFE_ADDREF(_class) \
140 NS_IMPL_THREADSAFE_RELEASE(_class) \
141 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
142 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
143#endif
144
145#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
146# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
147 NS_IMPL_THREADSAFE_ADDREF(_class) \
148 NS_IMPL_THREADSAFE_RELEASE(_class) \
149 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
150 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
151#endif
152
153#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
154# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
155 NS_IMPL_THREADSAFE_ADDREF(_class) \
156 NS_IMPL_THREADSAFE_RELEASE(_class) \
157 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
158 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
159#endif
160
161#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
162# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
163 NS_INTERFACE_MAP_BEGIN(_class) \
164 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
165 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
166 NS_IMPL_QUERY_CLASSINFO(_class) \
167 NS_INTERFACE_MAP_END
168#endif
169
170#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
171# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
172 _i2, _ic2) \
173 NS_INTERFACE_MAP_BEGIN(_class) \
174 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
175 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
176 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
177 NS_IMPL_QUERY_CLASSINFO(_class) \
178 NS_INTERFACE_MAP_END
179#endif
180
181#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
182# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2, _i3, _ic3) \
184 NS_INTERFACE_MAP_BEGIN(_class) \
185 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
186 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
187 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
188 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
189 NS_IMPL_QUERY_CLASSINFO(_class) \
190 NS_INTERFACE_MAP_END
191#endif
192
193#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
194#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
195#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
196
197#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
198# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
199 NS_IMPL_THREADSAFE_ADDREF(_class) \
200 NS_IMPL_THREADSAFE_RELEASE(_class) \
201 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
202 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
203#endif
204
205#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
206# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
207 _i2, _ic2) \
208 NS_IMPL_THREADSAFE_ADDREF(_class) \
209 NS_IMPL_THREADSAFE_RELEASE(_class) \
210 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
211 _i2, _ic2) \
212 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
213#endif
214
215#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
216# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
217 _i2, _ic2, _i3, _ic3) \
218 NS_IMPL_THREADSAFE_ADDREF(_class) \
219 NS_IMPL_THREADSAFE_RELEASE(_class) \
220 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
221 _i2, _ic2, _i3, _ic3) \
222 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
223#endif
224
225 </cpp>
226</if>
227
228<library
229 name="VirtualBox"
230 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
231 version="1.3"
232 desc="VirtualBox Type Library"
233 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
234 supportsErrorInfo="yes"
235>
236
237
238 <!--
239 // COM result codes for VirtualBox
240 /////////////////////////////////////////////////////////////////////////
241 -->
242
243 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
244 <desc>
245 This section describes all VirtualBox-specific COM result codes that may
246 be returned by methods of VirtualBox COM interfaces in addition to
247 standard COM result codes.
248
249 Note that along with the result code, every VirtualBox method returns
250 extended error information through the IVirtualBoxErrorInfo interface on
251 failure. This interface is a preferred way to present the error to the end
252 user because it contains a human readable description of the error. Raw
253 result codes, both standard and described in this section, are intended to
254 be used by programs to analyze the reason of a failure and select an
255 appropriate course of action without involving the end user (for example,
256 retry the operation later or make a different call).
257
258 The standard COM result codes that may originate from our methods include:
259
260 <table>
261 <tr><td>E_INVALIDARG</td>
262 <td>
263 Returned when the value of the method's argument is not within the range
264 of valid values. This should not be confused with situations when the
265 value is within the range but simply doesn't suit the current object
266 state and there is a possibility that it will be accepted later (in such
267 cases VirtualBox-specific codes are returned, for example,
268 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
269 </td>
270 </tr>
271 <tr><td>E_POINTER</td>
272 <td>
273 Returned if a memory pointer for the output argument is invalid (for
274 example, @c null). When pointers representing input arguments (such
275 as strings) are invalid, E_INVALIDARG is returned.
276 </td>
277 </tr>
278 <tr><td>E_ACCESSDENIED</td>
279 <td>
280 Returned when the called object is not ready. Since the lifetime of a
281 public COM object cannot be fully controlled by the implementation,
282 VirtualBox maintains the readiness state for all objects it creates and
283 returns this code in response to any method call on the object that was
284 deactivated by VirtualBox and is not functioning any more.
285 </td>
286 </tr>
287 <tr><td>E_OUTOFMEMORY</td>
288 <td>
289 Returned when a memory allocation operation fails.
290 </td>
291 </tr>
292 </table>
293 </desc>
294 </descGroup>
295
296 <!--
297 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
298 everything in <result>/<desc> after (and including) the first dot, so express
299 the matter of the error code in the first sentence and keep it short.
300 -->
301
302 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
303 <desc>
304 Object corresponding to the supplied arguments does not exist.
305 </desc>
306 </result>
307
308 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
309 <desc>
310 Current virtual machine state prevents the operation.
311 </desc>
312 </result>
313
314 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
315 <desc>
316 Virtual machine error occurred attempting the operation.
317 </desc>
318 </result>
319
320 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
321 <desc>
322 File not accessible or erroneous file contents.
323 </desc>
324 </result>
325
326 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
327 <desc>
328 Runtime subsystem error.
329 </desc>
330 </result>
331
332 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
333 <desc>
334 Pluggable Device Manager error.
335 </desc>
336 </result>
337
338 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
339 <desc>
340 Current object state prohibits operation.
341 </desc>
342 </result>
343
344 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
345 <desc>
346 Host operating system related error.
347 </desc>
348 </result>
349
350 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
351 <desc>
352 Requested operation is not supported.
353 </desc>
354 </result>
355
356 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
357 <desc>
358 Invalid XML found.
359 </desc>
360 </result>
361
362 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
363 <desc>
364 Current session state prohibits operation.
365 </desc>
366 </result>
367
368 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
369 <desc>
370 Object being in use prohibits operation.
371 </desc>
372 </result>
373
374 <!--
375 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
376 everything in <result>/<desc> after (and including) the first dot, so express
377 the matter of the error code in the first sentence and keep it short.
378 -->
379
380 <descGroup/>
381
382 <!--
383 // all common enums
384 /////////////////////////////////////////////////////////////////////////
385 -->
386
387 <enum
388 name="SettingsVersion"
389 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
390 >
391 <desc>
392 Settings version of VirtualBox settings files. This is written to
393 the "version" attribute of the root "VirtualBox" element in the settings
394 file XML and indicates which VirtualBox version wrote the file.
395 </desc>
396
397 <const name="Null" value="0">
398 <desc>Null value, indicates invalid version.</desc>
399 </const>
400 <const name="v1_0" value="1">
401 <desc>Legacy settings version, not currently supported.</desc>
402 </const>
403 <const name="v1_1" value="2">
404 <desc>Legacy settings version, not currently supported.</desc>
405 </const>
406 <const name="v1_2" value="3">
407 <desc>Legacy settings version, not currently supported.</desc>
408 </const>
409 <const name="v1_3pre" value="4">
410 <desc>Legacy settings version, not currently supported.</desc>
411 </const>
412 <const name="v1_3" value="5">
413 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
414 <!--
415 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
416 -->
417 </const>
418 <const name="v1_4" value="6">
419 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
420 <!--
421 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
422 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
423 -->
424 </const>
425 <const name="v1_5" value="7">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 2008-09-04: 2.0.0 released
429 2008-11-20: settings version 1.5 introduced
430 2008-12-17: 2.1.0 released
431 Machine changes:
432 guest OS identifiers changed;
433 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
434 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
435 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
436 -->
437 </const>
438 <const name="v1_6" value="8">
439 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
440 <!--
441 2008-12-17: 2.1.0 released
442 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
443 2009-04-08: 2.2.0 released
444 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
445 -->
446 </const>
447 <const name="v1_7" value="9">
448 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
449 <!--
450 2008-12-17: 2.1.0 released
451 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
452 2009-04-08: 2.2.0 released
453 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
454 Machine changes: HardDiskAttachments is now StorageControllers (done)
455 -->
456 </const>
457 <const name="v1_8" value="10">
458 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
459 <!--
460 Machine additions: Display/@accelerate2DVideo (done)
461 -->
462 </const>
463 <const name="v1_9" value="11">
464 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
465 <!--
466 The big storage controller / DVD / Floppy rework (done)
467 -->
468 </const>
469 <const name="v1_10" value="12">
470 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
471 <!--
472 Machine changes: RTC localOrUTC (done)
473 CPU hot-plug support
474 -->
475 </const>
476 <const name="v1_11" value="13">
477 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
478 <!--
479 Machine changes: HD Audio controller, per-machine disk registries,
480 /@format attribute for DVD and floppy images.
481 -->
482 </const>
483 <const name="v1_12" value="14">
484 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
485 <!--
486 Machine changes: raw PCI device attachment;
487 NetworkAdapter changes: bandwidth group.
488 -->
489 </const>
490
491 <const name="Future" value="99999">
492 <desc>Settings version greater than "1.12", written by a future VirtualBox version.</desc>
493 </const>
494 </enum>
495
496 <enum
497 name="AccessMode"
498 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
499 >
500 <desc>
501 Access mode for opening files.
502 </desc>
503
504 <const name="ReadOnly" value="1"/>
505 <const name="ReadWrite" value="2"/>
506 </enum>
507
508 <enum
509 name="MachineState"
510 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
511 >
512 <desc>
513 Virtual machine execution state.
514
515 This enumeration represents possible values of the <link
516 to="IMachine::state"/> attribute.
517
518 Below is the basic virtual machine state diagram. It shows how the state
519 changes during virtual machine execution. The text in square braces shows
520 a method of the IConsole interface that performs the given state
521 transition.
522
523 <pre>
524 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
525 V |
526 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
527 | | | | V |
528 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
529 | | ^ | ^ |
530 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
531 | ^ | | | |
532 | | +-----------------------------------------+-|-------------------+ +
533 | | | | |
534 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
535 | | | |
536 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
537 | | |
538 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
539 </pre>
540
541 Note that states to the right from PoweredOff, Aborted and Saved in the
542 above diagram are called <i>online VM states</i>. These states
543 represent the virtual machine which is being executed in a dedicated
544 process (usually with a GUI window attached to it where you can see the
545 activity of the virtual machine and interact with it). There are two
546 special pseudo-states, FirstOnline and LastOnline, that can be used in
547 relational expressions to detect if the given machine state is online or
548 not:
549
550 <pre>
551 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
552 machine.GetState() &lt;= MachineState_LastOnline)
553 {
554 ...the machine is being executed...
555 }
556 </pre>
557
558 When the virtual machine is in one of the online VM states (that is, being
559 executed), only a few machine settings can be modified. Methods working
560 with such settings contain an explicit note about that. An attempt to
561 change any other setting or perform a modifying operation during this time
562 will result in the @c VBOX_E_INVALID_VM_STATE error.
563
564 All online states except Running, Paused and Stuck are transitional: they
565 represent temporary conditions of the virtual machine that will last as
566 long as the operation that initiated such a condition.
567
568 The Stuck state is a special case. It means that execution of the machine
569 has reached the "Guru Meditation" condition. This condition indicates an
570 internal VMM (virtual machine manager) failure which may happen as a
571 result of either an unhandled low-level virtual hardware exception or one
572 of the recompiler exceptions (such as the <i>too-many-traps</i>
573 condition).
574
575 Note also that any online VM state may transit to the Aborted state. This
576 happens if the process that is executing the virtual machine terminates
577 unexpectedly (for example, crashes). Other than that, the Aborted state is
578 equivalent to PoweredOff.
579
580 There are also a few additional state diagrams that do not deal with
581 virtual machine execution and therefore are shown separately. The states
582 shown on these diagrams are called <i>offline VM states</i> (this includes
583 PoweredOff, Aborted and Saved too).
584
585 The first diagram shows what happens when a lengthy setup operation is
586 being executed (such as <link to="IMachine::attachDevice"/>).
587
588 <pre>
589 +----------------------------------(same state as before the call)------+
590 | |
591 +-&gt; PoweredOff --+ |
592 | | |
593 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
594 | |
595 +-&gt; Saved -------+
596 </pre>
597
598 The next two diagrams demonstrate the process of taking a snapshot of a
599 powered off virtual machine, restoring the state to that as of a snapshot
600 or deleting a snapshot, respectively.
601
602 <pre>
603 +----------------------------------(same state as before the call)------+
604 | |
605 +-&gt; PoweredOff --+ |
606 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
607 +-&gt; Aborted -----+
608
609 +-&gt; PoweredOff --+
610 | |
611 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
612 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
613 +-&gt; Saved -------+ |
614 | |
615 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
616 </pre>
617
618 Note that the Saving state is present in both the offline state group and
619 online state group. Currently, the only way to determine what group is
620 assumed in a particular case is to remember the previous machine state: if
621 it was Running or Paused, then Saving is an online state, otherwise it is
622 an offline state. This inconsistency may be removed in one of the future
623 versions of VirtualBox by adding a new state.
624
625 <note internal="yes">
626 For whoever decides to touch this enum: In order to keep the
627 comparisons involving FirstOnline and LastOnline pseudo-states valid,
628 the numeric values of these states must be correspondingly updated if
629 needed: for any online VM state, the condition
630 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
631 @c true. The same relates to transient states for which
632 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
633 @c true.
634 </note>
635 </desc>
636
637 <const name="Null" value="0">
638 <desc>Null value (never used by the API).</desc>
639 </const>
640 <const name="PoweredOff" value="1">
641 <desc>
642 The machine is not running and has no saved execution state; it has
643 either never been started or been shut down successfully.
644 </desc>
645 </const>
646 <const name="Saved" value="2">
647 <desc>
648 The machine is not currently running, but the execution state of the machine
649 has been saved to an external file when it was running, from where
650 it can be resumed.
651 </desc>
652 </const>
653 <const name="Teleported" value="3">
654 <desc>
655 The machine was teleported to a different host (or process) and then
656 powered off. Take care when powering it on again may corrupt resources
657 it shares with the teleportation target (e.g. disk and network).
658 </desc>
659 </const>
660 <const name="Aborted" value="4">
661 <desc>
662 The process running the machine has terminated abnormally. This may
663 indicate a crash of the VM process in host execution context, or
664 the VM process has been terminated externally.
665 </desc>
666 </const>
667 <const name="Running" value="5">
668 <desc>
669 The machine is currently being executed.
670 <note internal="yes">
671 For whoever decides to touch this enum: In order to keep the
672 comparisons in the old source code valid, this state must immediately
673 precede the Paused state.
674 TODO: Lift this spectacularly wonderful restriction.
675 </note>
676 </desc>
677 </const>
678 <const name="Paused" value="6">
679 <desc>
680 Execution of the machine has been paused.
681 <note internal="yes">
682 For whoever decides to touch this enum: In order to keep the
683 comparisons in the old source code valid, this state must immediately
684 follow the Running state.
685 TODO: Lift this spectacularly wonderful restriction.
686 </note>
687 </desc>
688 </const>
689 <const name="Stuck" value="7">
690 <desc>
691 Execution of the machine has reached the "Guru Meditation"
692 condition. This indicates a severe error in the hypervisor itself.
693 <note internal="yes">
694 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
695 "Guru", perhaps? Or are there some other VMM states that are
696 intended to be lumped in here as well?
697 </note>
698 </desc>
699 </const>
700 <const name="Teleporting" value="8">
701 <desc>
702 The machine is about to be teleported to a different host or process.
703 It is possible to pause a machine in this state, but it will go to the
704 @c TeleportingPausedVM state and it will not be
705 possible to resume it again unless the teleportation fails.
706 </desc>
707 </const>
708 <const name="LiveSnapshotting" value="9">
709 <desc>
710 A live snapshot is being taken. The machine is running normally, but
711 some of the runtime configuration options are inaccessible. Also, if
712 paused while in this state it will transition to
713 @c Saving and it will not be resume the
714 execution until the snapshot operation has completed.
715 </desc>
716 </const>
717 <const name="Starting" value="10">
718 <desc>
719 Machine is being started after powering it on from a
720 zero execution state.
721 </desc>
722 </const>
723 <const name="Stopping" value="11">
724 <desc>
725 Machine is being normally stopped powering it off, or after the guest OS
726 has initiated a shutdown sequence.
727 </desc>
728 </const>
729 <const name="Saving" value="12">
730 <desc>
731 Machine is saving its execution state to a file, or an online
732 snapshot of the machine is being taken.
733 </desc>
734 </const>
735 <const name="Restoring" value="13">
736 <desc>
737 Execution state of the machine is being restored from a file
738 after powering it on from the saved execution state.
739 </desc>
740 </const>
741 <const name="TeleportingPausedVM" value="14">
742 <desc>
743 The machine is being teleported to another host or process, but it is
744 not running. This is the paused variant of the
745 @c state.
746 </desc>
747 </const>
748 <const name="TeleportingIn" value="15">
749 <desc>
750 Teleporting the machine state in from another host or process.
751 </desc>
752 </const>
753 <const name="FaultTolerantSyncing" value="16">
754 <desc>
755 The machine is being synced with a fault tolerant VM running elsewhere.
756 </desc>
757 </const>
758 <const name="DeletingSnapshotOnline" value="17">
759 <desc>
760 Like @c DeletingSnapshot, but the merging of media is ongoing in
761 the background while the machine is running.
762 </desc>
763 </const>
764 <const name="DeletingSnapshotPaused" value="18">
765 <desc>
766 Like @c DeletingSnapshotOnline, but the machine was paused when the
767 merging of differencing media was started.
768 </desc>
769 </const>
770 <const name="RestoringSnapshot" value="19">
771 <desc>
772 A machine snapshot is being restored; this typically does not take long.
773 </desc>
774 </const>
775 <const name="DeletingSnapshot" value="20">
776 <desc>
777 A machine snapshot is being deleted; this can take a long time since this
778 may require merging differencing media. This value indicates that the
779 machine is not running while the snapshot is being deleted.
780 </desc>
781 </const>
782 <const name="SettingUp" value="21">
783 <desc>
784 Lengthy setup operation is in progress.
785 </desc>
786 </const>
787
788 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
789 <desc>
790 Pseudo-state: first online state (for use in relational expressions).
791 </desc>
792 </const>
793 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
794 <desc>
795 Pseudo-state: last online state (for use in relational expressions).
796 </desc>
797 </const>
798
799 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
800 <desc>
801 Pseudo-state: first transient state (for use in relational expressions).
802 </desc>
803 </const>
804 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
805 <desc>
806 Pseudo-state: last transient state (for use in relational expressions).
807 </desc>
808 </const>
809
810 </enum>
811
812 <enum
813 name="SessionState"
814 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
815 >
816 <desc>
817 Session state. This enumeration represents possible values of
818 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
819 attributes.
820 </desc>
821
822 <const name="Null" value="0">
823 <desc>Null value (never used by the API).</desc>
824 </const>
825 <const name="Unlocked" value="1">
826 <desc>
827 In <link to="IMachine::sessionState"/>, this means that the machine
828 is not locked for any sessions.
829
830 In <link to="ISession::state"/>, this means that no machine is
831 currently locked for this session.
832 </desc>
833 </const>
834 <const name="Locked" value="2">
835 <desc>
836 In <link to="IMachine::sessionState"/>, this means that the machine
837 is currently locked for a session, whose process identifier can
838 then be found in the <link to="IMachine::sessionPid" /> attribute.
839
840 In <link to="ISession::state"/>, this means that a machine is
841 currently locked for this session, and the mutable machine object
842 can be found in the <link to="ISession::machine"/> attribute
843 (see <link to="IMachine::lockMachine" /> for details).
844 </desc>
845 </const>
846 <const name="Spawning" value="3">
847 <desc>
848 A new process is being spawned for the machine as a result of
849 <link to="IMachine::launchVMProcess"/> call. This state also occurs
850 as a short transient state during an <link to="IMachine::lockMachine"/>
851 call.
852 </desc>
853 </const>
854 <const name="Unlocking" value="4">
855 <desc>
856 The session is being unlocked.
857 </desc>
858 </const>
859 </enum>
860
861 <enum
862 name="CPUPropertyType"
863 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
864 >
865 <desc>
866 Virtual CPU property type. This enumeration represents possible values of the
867 IMachine get- and setCPUProperty methods.
868 </desc>
869 <const name="Null" value="0">
870 <desc>Null value (never used by the API).</desc>
871 </const>
872 <const name="PAE" value="1">
873 <desc>
874 This setting determines whether VirtualBox will expose the Physical Address
875 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
876 is not available, it will not be reported.
877 </desc>
878 </const>
879 <const name="Synthetic" value="2">
880 <desc>
881 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
882 teleporting between host systems that differ significantly.
883 </desc>
884 </const>
885 </enum>
886
887
888 <enum
889 name="HWVirtExPropertyType"
890 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
891 >
892 <desc>
893 Hardware virtualization property type. This enumeration represents possible values
894 for the <link to="IMachine::getHWVirtExProperty"/> and
895 <link to="IMachine::setHWVirtExProperty"/> methods.
896 </desc>
897 <const name="Null" value="0">
898 <desc>Null value (never used by the API).</desc>
899 </const>
900 <const name="Enabled" value="1">
901 <desc>
902 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
903 such extensions are not available, they will not be used.
904 </desc>
905 </const>
906 <const name="Exclusive" value="2">
907 <desc>
908 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
909 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
910 feature of the host. To share these with other hypervisors, you must disable this property.
911 </desc>
912 </const>
913 <const name="VPID" value="3">
914 <desc>
915 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
916 </desc>
917 </const>
918 <const name="NestedPaging" value="4">
919 <desc>
920 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
921 </desc>
922 </const>
923 <const name="LargePages" value="5">
924 <desc>
925 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
926 </desc>
927 </const>
928 <const name="Force" value="6">
929 <desc>
930 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
931 not set, there will be an automatic fallback to software virtualization.
932 </desc>
933 </const>
934 </enum>
935
936 <enum
937 name="FaultToleranceState"
938 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
939 >
940 <desc>
941 Used with <link to="IMachine::faultToleranceState" />.
942 </desc>
943 <const name="Inactive" value="1">
944 <desc>No fault tolerance enabled.</desc>
945 </const>
946 <const name="Master" value="2">
947 <desc>Fault tolerant master VM.</desc>
948 </const>
949 <const name="Standby" value="3">
950 <desc>Fault tolerant standby VM.</desc>
951 </const>
952 </enum>
953
954 <enum
955 name="LockType"
956 uuid="138b53f8-db4b-47c5-b32b-4ef52f769413"
957 >
958 <desc>
959 Used with <link to="IMachine::lockMachine" />.
960 </desc>
961 <const name="Write" value="2">
962 <desc>Lock the machine for writing.</desc>
963 </const>
964 <const name="Shared" value="1">
965 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
966 </const>
967 </enum>
968
969 <enum
970 name="SessionType"
971 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
972 >
973 <desc>
974 Session type. This enumeration represents possible values of the
975 <link to="ISession::type"/> attribute.
976 </desc>
977
978 <const name="Null" value="0">
979 <desc>Null value (never used by the API).</desc>
980 </const>
981 <const name="WriteLock" value="1">
982 <desc>
983 Session has acquired an exclusive write lock on a machine
984 using <link to="IMachine::lockMachine"/>.
985 </desc>
986 </const>
987 <const name="Remote" value="2">
988 <desc>
989 Session has launched a VM process using
990 <link to="IMachine::launchVMProcess"/>
991 </desc>
992 </const>
993 <const name="Shared" value="3">
994 <desc>
995 Session has obtained a link to another session using
996 <link to="IMachine::lockMachine"/>
997 </desc>
998 </const>
999 </enum>
1000
1001 <enum
1002 name="DeviceType"
1003 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1004 >
1005 <desc>
1006 Device type.
1007 </desc>
1008 <const name="Null" value="0">
1009 <desc>
1010 Null value, may also mean "no device" (not allowed for
1011 <link to="IConsole::getDeviceActivity"/>).
1012 </desc>
1013 </const>
1014 <const name="Floppy" value="1">
1015 <desc>Floppy device.</desc>
1016 </const>
1017 <const name="DVD" value="2">
1018 <desc>CD/DVD-ROM device.</desc>
1019 </const>
1020 <const name="HardDisk" value="3">
1021 <desc>Hard disk device.</desc>
1022 </const>
1023 <const name="Network" value="4">
1024 <desc>Network device.</desc>
1025 </const>
1026 <const name="USB" value="5">
1027 <desc>USB device.</desc>
1028 </const>
1029 <const name="SharedFolder" value="6">
1030 <desc>Shared folder device.</desc>
1031 </const>
1032 </enum>
1033
1034 <enum
1035 name="DeviceActivity"
1036 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1037 >
1038 <desc>
1039 Device activity for <link to="IConsole::getDeviceActivity"/>.
1040 </desc>
1041
1042 <const name="Null" value="0"/>
1043 <const name="Idle" value="1"/>
1044 <const name="Reading" value="2"/>
1045 <const name="Writing" value="3"/>
1046 </enum>
1047
1048 <enum
1049 name="ClipboardMode"
1050 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1051 >
1052 <desc>
1053 Host-Guest clipboard interchange mode.
1054 </desc>
1055
1056 <const name="Disabled" value="0"/>
1057 <const name="HostToGuest" value="1"/>
1058 <const name="GuestToHost" value="2"/>
1059 <const name="Bidirectional" value="3"/>
1060 </enum>
1061
1062 <enum
1063 name="Scope"
1064 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1065 >
1066 <desc>
1067 Scope of the operation.
1068
1069 A generic enumeration used in various methods to define the action or
1070 argument scope.
1071 </desc>
1072
1073 <const name="Global" value="0"/>
1074 <const name="Machine" value="1"/>
1075 <const name="Session" value="2"/>
1076 </enum>
1077
1078 <enum
1079 name="BIOSBootMenuMode"
1080 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1081 >
1082 <desc>
1083 BIOS boot menu mode.
1084 </desc>
1085
1086 <const name="Disabled" value="0"/>
1087 <const name="MenuOnly" value="1"/>
1088 <const name="MessageAndMenu" value="2"/>
1089 </enum>
1090
1091 <enum
1092 name="ProcessorFeature"
1093 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1094 >
1095 <desc>
1096 CPU features.
1097 </desc>
1098
1099 <const name="HWVirtEx" value="0"/>
1100 <const name="PAE" value="1"/>
1101 <const name="LongMode" value="2"/>
1102 <const name="NestedPaging" value="3"/>
1103 </enum>
1104
1105 <enum
1106 name="FirmwareType"
1107 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1108 >
1109 <desc>
1110 Firmware type.
1111 </desc>
1112 <const name="BIOS" value="1">
1113 <desc>BIOS Firmware.</desc>
1114 </const>
1115 <const name="EFI" value="2">
1116 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1117 </const>
1118 <const name="EFI32" value="3">
1119 <desc>Efi firmware, 32-bit.</desc>
1120 </const>
1121 <const name="EFI64" value="4">
1122 <desc>Efi firmware, 64-bit.</desc>
1123 </const>
1124 <const name="EFIDUAL" value="5">
1125 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1126 </const>
1127 </enum>
1128
1129 <enum
1130 name="PointingHidType"
1131 uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
1132 >
1133 <desc>
1134 Type of pointing device used in a virtual machine.
1135 </desc>
1136 <const name="None" value="1">
1137 <desc>No mouse.</desc>
1138 </const>
1139 <const name="PS2Mouse" value="2">
1140 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1141 </const>
1142 <const name="USBMouse" value="3">
1143 <desc>USB mouse (relative pointer).</desc>
1144 </const>
1145 <const name="USBTablet" value="4">
1146 <desc>USB tablet (absolute pointer).</desc>
1147 </const>
1148 <const name="ComboMouse" value="5">
1149 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1150 Using of such device can have negative performance implications. </desc>
1151 </const>
1152 </enum>
1153
1154 <enum
1155 name="KeyboardHidType"
1156 uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
1157 >
1158 <desc>
1159 Type of keyboard device used in a virtual machine.
1160 </desc>
1161 <const name="None" value="1">
1162 <desc>No keyboard.</desc>
1163 </const>
1164 <const name="PS2Keyboard" value="2">
1165 <desc>PS/2 keyboard.</desc>
1166 </const>
1167 <const name="USBKeyboard" value="3">
1168 <desc>USB keyboard.</desc>
1169 </const>
1170 <const name="ComboKeyboard" value="4">
1171 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1172 Using of such device can have negative performance implications. </desc>
1173 </const>
1174 </enum>
1175
1176 <!--
1177 // IVirtualBoxErrorInfo
1178 /////////////////////////////////////////////////////////////////////////
1179 -->
1180
1181 <interface
1182 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1183 uuid="e053d3c0-f493-491b-a735-3a9f0b1feed4"
1184 supportsErrorInfo="no"
1185 wsmap="managed"
1186 >
1187 <desc>
1188 The IVirtualBoxErrorInfo interface represents extended error information.
1189
1190 Extended error information can be set by VirtualBox components after
1191 unsuccessful or partially successful method invocation. This information
1192 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1193 and then shown to the client in addition to the plain 32-bit result code.
1194
1195 In MS COM, this interface extends the IErrorInfo interface,
1196 in XPCOM, it extends the nsIException interface. In both cases,
1197 it provides a set of common attributes to retrieve error
1198 information.
1199
1200 Sometimes invocation of some component's method may involve methods of
1201 other components that may also fail (independently of this method's
1202 failure), or a series of non-fatal errors may precede a fatal error that
1203 causes method failure. In cases like that, it may be desirable to preserve
1204 information about all errors happened during method invocation and deliver
1205 it to the caller. The <link to="#next"/> attribute is intended
1206 specifically for this purpose and allows to represent a chain of errors
1207 through a single IVirtualBoxErrorInfo object set after method invocation.
1208
1209 <note>errors are stored to a chain in the reverse order, i.e. the
1210 initial error object you query right after method invocation is the last
1211 error set by the callee, the object it points to in the @a next attribute
1212 is the previous error and so on, up to the first error (which is the last
1213 in the chain).</note>
1214 </desc>
1215
1216 <attribute name="resultCode" type="long" readonly="yes">
1217 <desc>
1218 Result code of the error.
1219 Usually, it will be the same as the result code returned
1220 by the method that provided this error information, but not
1221 always. For example, on Win32, CoCreateInstance() will most
1222 likely return E_NOINTERFACE upon unsuccessful component
1223 instantiation attempt, but not the value the component factory
1224 returned. Value is typed 'long', not 'result',
1225 to make interface usable from scripting languages.
1226 <note>
1227 In MS COM, there is no equivalent.
1228 In XPCOM, it is the same as nsIException::result.
1229 </note>
1230 </desc>
1231 </attribute>
1232
1233 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1234 <desc>
1235 UUID of the interface that defined the error.
1236 <note>
1237 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1238 data type.
1239 In XPCOM, there is no equivalent.
1240 </note>
1241 </desc>
1242 </attribute>
1243
1244 <attribute name="component" type="wstring" readonly="yes">
1245 <desc>
1246 Name of the component that generated the error.
1247 <note>
1248 In MS COM, it is the same as IErrorInfo::GetSource.
1249 In XPCOM, there is no equivalent.
1250 </note>
1251 </desc>
1252 </attribute>
1253
1254 <attribute name="text" type="wstring" readonly="yes">
1255 <desc>
1256 Text description of the error.
1257 <note>
1258 In MS COM, it is the same as IErrorInfo::GetDescription.
1259 In XPCOM, it is the same as nsIException::message.
1260 </note>
1261 </desc>
1262 </attribute>
1263
1264 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1265 <desc>
1266 Next error object if there is any, or @c null otherwise.
1267 <note>
1268 In MS COM, there is no equivalent.
1269 In XPCOM, it is the same as nsIException::inner.
1270 </note>
1271 </desc>
1272 </attribute>
1273
1274 </interface>
1275
1276 <!--
1277 // IVirtualBox
1278 /////////////////////////////////////////////////////////////////////////
1279 -->
1280
1281 <interface
1282 name="IDHCPServer" extends="$unknown"
1283 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1284 wsmap="managed"
1285 >
1286 <desc>
1287 The IDHCPServer interface represents the vbox dhcp server configuration.
1288
1289 To enumerate all the dhcp servers on the host, use the
1290 <link to="IVirtualBox::DHCPServers"/> attribute.
1291 </desc>
1292
1293 <attribute name="enabled" type="boolean">
1294 <desc>
1295 specifies if the dhcp server is enabled
1296 </desc>
1297 </attribute>
1298
1299 <attribute name="IPAddress" type="wstring" readonly="yes">
1300 <desc>
1301 specifies server IP
1302 </desc>
1303 </attribute>
1304
1305 <attribute name="networkMask" type="wstring" readonly="yes">
1306 <desc>
1307 specifies server network mask
1308 </desc>
1309 </attribute>
1310
1311 <attribute name="networkName" type="wstring" readonly="yes">
1312 <desc>
1313 specifies internal network name the server is used for
1314 </desc>
1315 </attribute>
1316
1317 <attribute name="lowerIP" type="wstring" readonly="yes">
1318 <desc>
1319 specifies from IP address in server address range
1320 </desc>
1321 </attribute>
1322
1323 <attribute name="upperIP" type="wstring" readonly="yes">
1324 <desc>
1325 specifies to IP address in server address range
1326 </desc>
1327 </attribute>
1328
1329 <method name="setConfiguration">
1330 <desc>
1331 configures the server
1332 <result name="E_INVALIDARG">
1333 invalid configuration supplied
1334 </result>
1335 </desc>
1336 <param name="IPAddress" type="wstring" dir="in">
1337 <desc>
1338 server IP address
1339 </desc>
1340 </param>
1341 <param name="networkMask" type="wstring" dir="in">
1342 <desc>
1343 server network mask
1344 </desc>
1345 </param>
1346 <param name="FromIPAddress" type="wstring" dir="in">
1347 <desc>
1348 server From IP address for address range
1349 </desc>
1350 </param>
1351 <param name="ToIPAddress" type="wstring" dir="in">
1352 <desc>
1353 server To IP address for address range
1354 </desc>
1355 </param>
1356 </method>
1357
1358 <method name="start">
1359 <desc>
1360 Starts DHCP server process.
1361 <result name="E_FAIL">
1362 Failed to start the process.
1363 </result>
1364 </desc>
1365 <param name="networkName" type="wstring" dir="in">
1366 <desc>
1367 Name of internal network DHCP server should attach to.
1368 </desc>
1369 </param>
1370 <param name="trunkName" type="wstring" dir="in">
1371 <desc>
1372 Name of internal network trunk.
1373 </desc>
1374 </param>
1375 <param name="trunkType" type="wstring" dir="in">
1376 <desc>
1377 Type of internal network trunk.
1378 </desc>
1379 </param>
1380 </method>
1381
1382 <method name="stop">
1383 <desc>
1384 Stops DHCP server process.
1385 <result name="E_FAIL">
1386 Failed to stop the process.
1387 </result>
1388 </desc>
1389 </method>
1390 </interface>
1391
1392 <interface
1393 name="IVirtualBox" extends="$unknown"
1394 uuid="c28be65f-1a8f-43b4-81f1-eb60cb516e66"
1395 wsmap="managed"
1396 >
1397 <desc>
1398 The IVirtualBox interface represents the main interface exposed by the
1399 product that provides virtual machine management.
1400
1401 An instance of IVirtualBox is required for the product to do anything
1402 useful. Even though the interface does not expose this, internally,
1403 IVirtualBox is implemented as a singleton and actually lives in the
1404 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1405 IVirtualBox can track the state of all virtual machines on a particular
1406 host, regardless of which frontend started them.
1407
1408 To enumerate all the virtual machines on the host, use the
1409 <link to="IVirtualBox::machines"/> attribute.
1410 </desc>
1411
1412 <attribute name="version" type="wstring" readonly="yes">
1413 <desc>
1414 A string representing the version number of the product. The
1415 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1416 last number represents the build number and will frequently change.
1417 </desc>
1418 </attribute>
1419
1420 <attribute name="revision" type="unsigned long" readonly="yes">
1421 <desc>
1422 The internal build revision number of the product.
1423 </desc>
1424 </attribute>
1425
1426 <attribute name="packageType" type="wstring" readonly="yes">
1427 <desc>
1428 A string representing the package type of this product. The
1429 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1430 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1431 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1432 this.
1433 </desc>
1434 </attribute>
1435
1436 <attribute name="APIVersion" type="wstring" readonly="yes">
1437 <desc>
1438 A string representing the VirtualBox API version number. The format is
1439 2 integer numbers divided by an underscore (e.g. 1_0). After the
1440 first public release of packages with a particular API version the
1441 API will not be changed in an incompatible way. Note that this
1442 guarantee does not apply to development builds, and also there is no
1443 guarantee that this version is identical to the first two integer
1444 numbers of the package version.
1445 </desc>
1446 </attribute>
1447
1448 <attribute name="homeFolder" type="wstring" readonly="yes">
1449 <desc>
1450 Full path to the directory where the global settings file,
1451 <tt>VirtualBox.xml</tt>, is stored.
1452
1453 In this version of VirtualBox, the value of this property is
1454 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1455 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1456 as determined by the host OS), and cannot be changed.
1457
1458 This path is also used as the base to resolve relative paths in
1459 places where relative paths are allowed (unless otherwise
1460 expressly indicated).
1461 </desc>
1462 </attribute>
1463
1464 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1465 <desc>
1466 Full name of the global settings file.
1467 The value of this property corresponds to the value of
1468 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1469 </desc>
1470 </attribute>
1471
1472 <attribute name="host" type="IHost" readonly="yes">
1473 <desc>Associated host object.</desc>
1474 </attribute>
1475
1476 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1477 <desc>Associated system information object.</desc>
1478 </attribute>
1479
1480 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1481 <desc>
1482 Array of machine objects registered within this VirtualBox instance.
1483 </desc>
1484 </attribute>
1485
1486 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1487 <desc>
1488 Array of medium objects known to this VirtualBox installation.
1489
1490 This array contains only base media. All differencing
1491 media of the given base medium can be enumerated using
1492 <link to="IMedium::children"/>.
1493 </desc>
1494 </attribute>
1495
1496 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1497 <desc>
1498 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1499 </desc>
1500 </attribute>
1501
1502 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1503 <desc>
1504 Array of floppy image objects currently in use by this VirtualBox instance.
1505 </desc>
1506 </attribute>
1507
1508 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1509
1510 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1511
1512 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1513 <desc>
1514 Collection of global shared folders. Global shared folders are
1515 available to all virtual machines.
1516
1517 New shared folders are added to the collection using
1518 <link to="#createSharedFolder"/>. Existing shared folders can be
1519 removed using <link to="#removeSharedFolder"/>.
1520
1521 <note>
1522 In the current version of the product, global shared folders are not
1523 implemented and therefore this collection is always empty.
1524 </note>
1525 </desc>
1526 </attribute>
1527
1528 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1529 <desc>
1530 Associated performance collector object.
1531 </desc>
1532 </attribute>
1533
1534 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1535 <desc>
1536 DHCP servers.
1537 </desc>
1538 </attribute>
1539
1540 <attribute name="eventSource" type="IEventSource" readonly="yes">
1541 <desc>
1542 Event source for VirtualBox events.
1543 </desc>
1544 </attribute>
1545
1546 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1547 <desc>
1548 The extension pack manager.
1549 </desc>
1550 </attribute>
1551
1552
1553 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1554 <desc>
1555 Names of all internal networks.
1556 </desc>
1557 </attribute>
1558
1559 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1560 <desc>
1561 Names of all generic network drivers.
1562 </desc>
1563 </attribute>
1564
1565 <method name="composeMachineFilename">
1566 <desc>
1567 Returns a recommended full path of the settings file name for a new virtual
1568 machine.
1569
1570 This API serves two purposes:
1571
1572 <ul>
1573 <li>It gets called by <link to="#createMachine" /> if NULL is specified
1574 for the @a settingsFile argument there, which means that API should use
1575 a recommended default file name.</li>
1576
1577 <li>It can be called manually by a client software before creating a machine,
1578 e.g. if that client wants to pre-create the machine directory to create
1579 virtual hard disks in that directory together with the new machine
1580 settings file. In that case, the file name should be stripped from the
1581 full settings file path returned by this function to obtain the
1582 machine directory.</li>
1583 </ul>
1584
1585 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1586 details about the machine name.
1587
1588 If @a baseFolder is a @c null or empty string (which is recommended), the
1589 default machine settings folder
1590 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1591 a base folder for the created machine, resulting in a file name like
1592 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1593 will be used.
1594
1595 This method does not access the host disks. In particular, it does not check
1596 for whether a machine of this name already exists.
1597 </desc>
1598 <param name="name" type="wstring" dir="in">
1599 <desc>Suggested machine name.</desc>
1600 </param>
1601 <param name="baseFolder" type="wstring" dir="in">
1602 <desc>Base machine folder (optional).</desc>
1603 </param>
1604 <param name="file" type="wstring" dir="return">
1605 <desc>Fully qualified path where the machine would be created.</desc>
1606 </param>
1607 </method>
1608
1609 <method name="createMachine">
1610 <desc>
1611 Creates a new virtual machine by creating a machine settings file at
1612 the given location.
1613
1614 VirtualBox machine settings files use a custom XML dialect. Starting
1615 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1616 and machine files can be created at arbitrary locations.
1617
1618 However, it is is recommended that machines be created in the default
1619 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1620 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1621 NULL for the @a settingsFile argument, <link to="#composeMachineFilename" />
1622 is called automatically to have such a recommended name composed based
1623 on the machine name given in the @a name argument.
1624
1625 If the resulting settings file already exists, this method will fail,
1626 unless @a forceOverwrite is set.
1627
1628 The new machine is created unregistered, with the initial configuration
1629 set according to the specified guest OS type. A typical sequence of
1630 actions to create a new virtual machine is as follows:
1631
1632 <ol>
1633 <li>
1634 Call this method to have a new machine created. The returned machine
1635 object will be "mutable" allowing to change any machine property.
1636 </li>
1637
1638 <li>
1639 Configure the machine using the appropriate attributes and methods.
1640 </li>
1641
1642 <li>
1643 Call <link to="IMachine::saveSettings" /> to write the settings
1644 to the machine's XML settings file. The configuration of the newly
1645 created machine will not be saved to disk until this method is
1646 called.
1647 </li>
1648
1649 <li>
1650 Call <link to="#registerMachine" /> to add the machine to the list
1651 of machines known to VirtualBox.
1652 </li>
1653 </ol>
1654
1655 The specified guest OS type identifier must match an ID of one of known
1656 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1657 array.
1658
1659 Optionally, you may specify an UUID of to assign to the created machine.
1660 However, this is not recommended and you should normally pass an empty
1661 (@c null) UUID to this method so that a new UUID will be automatically
1662 generated for every created machine. You can use UUID
1663 00000000-0000-0000-0000-000000000000 as @c null value.
1664
1665 <note>
1666 There is no way to change the name of the settings file or
1667 subfolder of the created machine directly.
1668 </note>
1669
1670 <result name="VBOX_E_OBJECT_NOT_FOUND">
1671 @a osTypeId is invalid.
1672 </result>
1673 <result name="VBOX_E_FILE_ERROR">
1674 Resulting settings file name is invalid or the settings file already
1675 exists or could not be created due to an I/O error.
1676 </result>
1677 <result name="E_INVALIDARG">
1678 @a name is empty or @c null.
1679 </result>
1680 </desc>
1681
1682 <param name="settingsFile" type="wstring" dir="in">
1683 <desc>Fully qualified path where the settings file should be created,
1684 or NULL for a default folder and file based on the @a name argument
1685 (see <link to="#composeMachineFilename" />).</desc>
1686 </param>
1687 <param name="name" type="wstring" dir="in">
1688 <desc>Machine name.</desc>
1689 </param>
1690 <param name="osTypeId" type="wstring" dir="in">
1691 <desc>Guest OS Type ID.</desc>
1692 </param>
1693 <param name="id" type="uuid" mod="string" dir="in">
1694 <desc>Machine UUID (optional).</desc>
1695 </param>
1696 <param name="forceOverwrite" type="boolean" dir="in">
1697 <desc>If true, an existing machine settings file will be overwritten.</desc>
1698 </param>
1699 <param name="machine" type="IMachine" dir="return">
1700 <desc>Created machine object.</desc>
1701 </param>
1702 </method>
1703
1704 <method name="openMachine">
1705 <desc>
1706 Opens a virtual machine from the existing settings file.
1707 The opened machine remains unregistered until you call
1708 <link to="#registerMachine"/>.
1709
1710 The specified settings file name must be fully qualified.
1711 The file must exist and be a valid machine XML settings file
1712 whose contents will be used to construct the machine object.
1713
1714 <result name="VBOX_E_FILE_ERROR">
1715 Settings file name invalid, not found or sharing violation.
1716 </result>
1717 </desc>
1718 <param name="settingsFile" type="wstring" dir="in">
1719 <desc>
1720 Name of the machine settings file.
1721 </desc>
1722 </param>
1723 <param name="machine" type="IMachine" dir="return">
1724 <desc>Opened machine object.</desc>
1725 </param>
1726 <note>
1727 <link to="IMachine::settingsModified"/> will return
1728 @c false for the created machine, until any of machine settings
1729 are changed.
1730 </note>
1731 </method>
1732
1733 <method name="registerMachine">
1734 <desc>
1735
1736 Registers the machine previously created using
1737 <link to="#createMachine"/> or opened using
1738 <link to="#openMachine"/> within this VirtualBox installation. After
1739 successful method invocation, the
1740 <link to="IMachineRegisteredEvent"/> event is fired.
1741
1742 <note>
1743 This method implicitly calls <link to="IMachine::saveSettings"/>
1744 to save all current machine settings before registering it.
1745 </note>
1746
1747 <result name="VBOX_E_OBJECT_NOT_FOUND">
1748 No matching virtual machine found.
1749 </result>
1750 <result name="VBOX_E_INVALID_OBJECT_STATE">
1751 Virtual machine was not created within this VirtualBox instance.
1752 </result>
1753
1754 </desc>
1755 <param name="machine" type="IMachine" dir="in"/>
1756 </method>
1757
1758 <method name="findMachine">
1759 <desc>
1760 Attempts to find a virtual machine given its name or UUID.
1761
1762 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1763 cannot safely be determined.</note>
1764
1765 <result name="VBOX_E_OBJECT_NOT_FOUND">
1766 Could not find registered machine matching @a nameOrId.
1767 </result>
1768
1769 </desc>
1770 <param name="nameOrId" type="wstring" dir="in">
1771 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1772 </param>
1773 <param name="machine" type="IMachine" dir="return">
1774 <desc>Machine object, if found.</desc>
1775 </param>
1776 </method>
1777
1778 <method name="createAppliance">
1779 <desc>
1780 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1781 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1782 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1783 </desc>
1784 <param name="appliance" type="IAppliance" dir="return">
1785 <desc>New appliance.</desc>
1786 </param>
1787 </method>
1788
1789 <method name="createHardDisk">
1790 <desc>
1791 Creates a new base medium object that will use the given storage
1792 format and location for medium data.
1793
1794 The actual storage unit is not created by this method. In order to
1795 do it, and before you are able to attach the created medium to
1796 virtual machines, you must call one of the following methods to
1797 allocate a format-specific storage unit at the specified location:
1798 <ul>
1799 <li><link to="IMedium::createBaseStorage"/></li>
1800 <li><link to="IMedium::createDiffStorage"/></li>
1801 </ul>
1802
1803 Some medium attributes, such as <link to="IMedium::id"/>, may
1804 remain uninitialized until the medium storage unit is successfully
1805 created by one of the above methods.
1806
1807 After the storage unit is successfully created, it will be
1808 accessible through the <link to="#findMedium"/> method and can
1809 be found in the <link to="#hardDisks"/> array.
1810
1811 The list of all storage formats supported by this VirtualBox
1812 installation can be obtained using
1813 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1814 attribute is empty or @c null then the default storage format
1815 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1816 be used for creating a storage unit of the medium.
1817
1818 Note that the format of the location string is storage format specific.
1819 See <link to="IMedium::location"/> and IMedium for more details.
1820
1821 <result name="VBOX_E_OBJECT_NOT_FOUND">
1822 @a format identifier is invalid. See
1823 <link to="ISystemProperties::mediumFormats"/>.
1824 </result>
1825 <result name="VBOX_E_FILE_ERROR">
1826 @a location is a not valid file name (for file-based formats only).
1827 </result>
1828 </desc>
1829 <param name="format" type="wstring" dir="in">
1830 <desc>
1831 Identifier of the storage format to use for the new medium.
1832 </desc>
1833 </param>
1834 <param name="location" type="wstring" dir="in">
1835 <desc>
1836 Location of the storage unit for the new medium.
1837 </desc>
1838 </param>
1839 <param name="medium" type="IMedium" dir="return">
1840 <desc>Created medium object.</desc>
1841 </param>
1842 </method>
1843
1844 <method name="openMedium">
1845 <desc>
1846 Opens a medium from an existing storage location.
1847
1848 Once a medium has been opened, it can be passed to other VirtualBox
1849 methods, in particular to <link to="IMachine::attachDevice" />.
1850
1851 Depending on the given device type, the file at the storage location
1852 must be in one of the media formats understood by VirtualBox:
1853
1854 <ul>
1855 <li>With a "HardDisk" device type, the file must be a hard disk image
1856 in one of the formats supported by VirtualBox (see
1857 <link to="ISystemProperties::mediumFormats" />).
1858 After this method succeeds, if the medium is a base medium, it
1859 will be added to the <link to="#hardDisks"/> array attribute. </li>
1860 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1861 After this method succeeds, the medium will be added to the
1862 <link to="#DVDImages"/> array attribute.</li>
1863 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1864 After this method succeeds, the medium will be added to the
1865 <link to="#floppyImages"/> array attribute.</li>
1866 </ul>
1867
1868 After having been opened, the medium can be found by the <link to="#findMedium"/>
1869 method and can be attached to virtual machines. See <link to="IMedium" /> for more details.
1870
1871 The UUID of the newly opened medium will either be retrieved from the
1872 storage location, if the format supports it (e.g. for hard disk images),
1873 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1874 If for some reason you need to change the medium's UUID, use
1875 <link to="IMedium::setIDs" />.
1876
1877 If a differencing hard disk medium is to be opened by this method, the
1878 operation will succeed only if its parent medium and all ancestors,
1879 if any, are already known to this VirtualBox installation (for example,
1880 were opened by this method before).
1881
1882 This method attempts to guess the storage format of the specified medium
1883 by reading medium data at the specified location.
1884
1885 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1886 the image is opened for read/write access and must have according permissions,
1887 as VirtualBox may actually write status information into the disk's metadata
1888 sections.
1889
1890 Note that write access is required for all typical hard disk usage in VirtualBox,
1891 since VirtualBox may need to write metadata such as a UUID into the image.
1892 The only exception is opening a source image temporarily for copying and
1893 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1894 again soon.
1895
1896 The format of the location string is storage format specific. See
1897 <link to="IMedium::location"/> and IMedium for more details.
1898
1899 <result name="VBOX_E_FILE_ERROR">
1900 Invalid medium storage file location or could not find the medium
1901 at the specified location.
1902 </result>
1903 <result name="VBOX_E_IPRT_ERROR">
1904 Could not get medium storage format.
1905 </result>
1906 <result name="E_INVALIDARG">
1907 Invalid medium storage format.
1908 </result>
1909 <result name="VBOX_E_INVALID_OBJECT_STATE">
1910 Medium has already been added to a media registry.
1911 </result>
1912 </desc>
1913 <param name="location" type="wstring" dir="in">
1914 <desc>
1915 Location of the storage unit that contains medium data in one of
1916 the supported storage formats.
1917 </desc>
1918 </param>
1919 <param name="deviceType" type="DeviceType" dir="in">
1920 <desc>
1921 Must be one of "HardDisk", "DVD" or "Floppy".
1922 </desc>
1923 </param>
1924 <param name="accessMode" type="AccessMode" dir="in">
1925 <desc>Whether to open the image in read/write or read-only mode. For
1926 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
1927 </param>
1928 <param name="forceNewUuid" type="boolean" dir="in">
1929 <desc>Allows the caller to request a completely new medium UUID for
1930 the image which is to be opened. Useful if one intends to open an exact
1931 copy of a previously opened image, as this would normally fail due to
1932 the duplicate UUID.</desc>
1933 </param>
1934 <param name="medium" type="IMedium" dir="return">
1935 <desc>Opened medium object.</desc>
1936 </param>
1937 </method>
1938
1939 <method name="findMedium">
1940 <desc>
1941 Returns a medium of the given type that uses the given fully qualified
1942 location or UUID to store medium data.
1943
1944 The given medium must be known to this VirtualBox installation, i.e.
1945 it must be previously created by <link to="#createHardDisk"/> or opened
1946 by <link to="#openMedium"/>.
1947
1948 The search is done by comparing the value of the @a location argument to
1949 the <link to="IMedium::location"/> and <link to="IMedium::id" />
1950 attributes of each known medium.
1951
1952 On case sensitive file systems, a case sensitive comparison is performed,
1953 otherwise the case of symbols in the file path is ignored.
1954
1955 <result name="VBOX_E_OBJECT_NOT_FOUND">
1956 No medium object matching @a location found.
1957 </result>
1958 </desc>
1959 <param name="location" type="wstring" dir="in">
1960 <desc>What to search for. This can either be the UUID or the location string of an open medium.</desc>
1961 </param>
1962 <param name="type" type="DeviceType" dir="in">
1963 <desc>Device type (must be HardDisk, DVD or Floppy)</desc>
1964 </param>
1965 <param name="medium" type="IMedium" dir="return">
1966 <desc>Medium object, if found.</desc>
1967 </param>
1968 </method>
1969
1970 <method name="getGuestOSType">
1971 <desc>
1972 Returns an object describing the specified guest OS type.
1973
1974 The requested guest OS type is specified using a string which is a
1975 mnemonic identifier of the guest operating system, such as
1976 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
1977 particular virtual machine can be read or set using the
1978 <link to="IMachine::OSTypeId"/> attribute.
1979
1980 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
1981 available guest OS type objects. Each object has an
1982 <link to="IGuestOSType::id"/> attribute which contains an identifier of
1983 the guest OS this object describes.
1984
1985 <result name="E_INVALIDARG">
1986 @a id is not a valid Guest OS type.
1987 </result>
1988
1989 </desc>
1990 <param name="id" type="uuid" mod="string" dir="in">
1991 <desc>Guest OS type ID string.</desc>
1992 </param>
1993 <param name="type" type="IGuestOSType" dir="return">
1994 <desc>Guest OS type object.</desc>
1995 </param>
1996 </method>
1997
1998 <method name="createSharedFolder">
1999 <desc>
2000 Creates a new global shared folder by associating the given logical
2001 name with the given host path, adds it to the collection of shared
2002 folders and starts sharing it. Refer to the description of
2003 <link to="ISharedFolder"/> to read more about logical names.
2004 <note>
2005 In the current implementation, this operation is not
2006 implemented.
2007 </note>
2008 </desc>
2009 <param name="name" type="wstring" dir="in">
2010 <desc>Unique logical name of the shared folder.</desc>
2011 </param>
2012 <param name="hostPath" type="wstring" dir="in">
2013 <desc>Full path to the shared folder in the host file system.</desc>
2014 </param>
2015 <param name="writable" type="boolean" dir="in">
2016 <desc>Whether the share is writable or readonly</desc>
2017 </param>
2018 <param name="automount" type="boolean" dir="in">
2019 <desc>Whether the share gets automatically mounted by the guest
2020 or not.</desc>
2021 </param>
2022 </method>
2023
2024 <method name="removeSharedFolder">
2025 <desc>
2026 Removes the global shared folder with the given name previously
2027 created by <link to="#createSharedFolder"/> from the collection of
2028 shared folders and stops sharing it.
2029 <note>
2030 In the current implementation, this operation is not
2031 implemented.
2032 </note>
2033 </desc>
2034 <param name="name" type="wstring" dir="in">
2035 <desc>Logical name of the shared folder to remove.</desc>
2036 </param>
2037 </method>
2038
2039 <method name="getExtraDataKeys">
2040 <desc>
2041 Returns an array representing the global extra data keys which currently
2042 have values defined.
2043 </desc>
2044 <param name="value" type="wstring" dir="return" safearray="yes">
2045 <desc>Array of extra data keys.</desc>
2046 </param>
2047 </method>
2048
2049 <method name="getExtraData">
2050 <desc>
2051 Returns associated global extra data.
2052
2053 If the requested data @a key does not exist, this function will
2054 succeed and return an empty string in the @a value argument.
2055
2056 <result name="VBOX_E_FILE_ERROR">
2057 Settings file not accessible.
2058 </result>
2059 <result name="VBOX_E_XML_ERROR">
2060 Could not parse the settings file.
2061 </result>
2062
2063 </desc>
2064 <param name="key" type="wstring" dir="in">
2065 <desc>Name of the data key to get.</desc>
2066 </param>
2067 <param name="value" type="wstring" dir="return">
2068 <desc>Value of the requested data key.</desc>
2069 </param>
2070 </method>
2071
2072 <method name="setExtraData">
2073 <desc>
2074 Sets associated global extra data.
2075
2076 If you pass @c null or empty string as a key @a value, the given @a key
2077 will be deleted.
2078
2079 <note>
2080 Before performing the actual data change, this method will ask all
2081 registered event listener using the
2082 <link to="IExtraDataCanChangeEvent"/>
2083 notification for a permission. If one of the listeners refuses the
2084 new value, the change will not be performed.
2085 </note>
2086 <note>
2087 On success, the
2088 <link to="IExtraDataChangedEvent"/> notification
2089 is called to inform all registered listeners about a successful data
2090 change.
2091 </note>
2092
2093 <result name="VBOX_E_FILE_ERROR">
2094 Settings file not accessible.
2095 </result>
2096 <result name="VBOX_E_XML_ERROR">
2097 Could not parse the settings file.
2098 </result>
2099 <result name="E_ACCESSDENIED">
2100 Modification request refused.
2101 </result>
2102
2103 </desc>
2104 <param name="key" type="wstring" dir="in">
2105 <desc>Name of the data key to set.</desc>
2106 </param>
2107 <param name="value" type="wstring" dir="in">
2108 <desc>Value to assign to the key.</desc>
2109 </param>
2110 </method>
2111
2112 <!--method name="createDHCPServerForInterface">
2113 <desc>
2114 Creates a dhcp server settings to be used for the given interface
2115 <result name="E_INVALIDARG">
2116 Host network interface @a name already exists.
2117 </result>
2118 </desc>
2119 <param name="interface" type="IHostNetworkInterface" dir="in">
2120 <desc>Network Interface</desc>
2121 </param>
2122 <param name="server" type="IDHCPServer" dir="out">
2123 <desc>Dhcp server settings</desc>
2124 </param>
2125 </method-->
2126
2127 <method name="createDHCPServer">
2128 <desc>
2129 Creates a dhcp server settings to be used for the given internal network name
2130 <result name="E_INVALIDARG">
2131 Host network interface @a name already exists.
2132 </result>
2133 </desc>
2134 <param name="name" type="wstring" dir="in">
2135 <desc>server name</desc>
2136 </param>
2137 <param name="server" type="IDHCPServer" dir="return">
2138 <desc>Dhcp server settings</desc>
2139 </param>
2140 </method>
2141
2142 <method name="findDHCPServerByNetworkName">
2143 <desc>
2144 Searches a dhcp server settings to be used for the given internal network name
2145 <result name="E_INVALIDARG">
2146 Host network interface @a name already exists.
2147 </result>
2148
2149 </desc>
2150 <param name="name" type="wstring" dir="in">
2151 <desc>server name</desc>
2152 </param>
2153 <param name="server" type="IDHCPServer" dir="return">
2154 <desc>Dhcp server settings</desc>
2155 </param>
2156 </method>
2157
2158 <!--method name="findDHCPServerForInterface">
2159 <desc>
2160 Searches a dhcp server settings to be used for the given interface
2161 <result name="E_INVALIDARG">
2162 Host network interface @a name already exists.
2163 </result>
2164 </desc>
2165 <param name="interface" type="IHostNetworkInterface" dir="in">
2166 <desc>Network Interface</desc>
2167 </param>
2168 <param name="server" type="IDHCPServer" dir="out">
2169 <desc>Dhcp server settings</desc>
2170 </param>
2171 </method-->
2172
2173 <method name="removeDHCPServer">
2174 <desc>
2175 Removes the dhcp server settings
2176 <result name="E_INVALIDARG">
2177 Host network interface @a name already exists.
2178 </result>
2179 </desc>
2180 <param name="server" type="IDHCPServer" dir="in">
2181 <desc>Dhcp server settings to be removed</desc>
2182 </param>
2183 </method>
2184
2185
2186 <method name="checkFirmwarePresent">
2187 <desc>
2188 Check if this VirtualBox installation has a firmware
2189 of the given type available, either system-wide or per-user.
2190 Optionally, this may return a hint where this firmware can be
2191 downloaded from.
2192 </desc>
2193 <param name="firmwareType" type="FirmwareType" dir="in">
2194 <desc>
2195 Type of firmware to check.
2196 </desc>
2197 </param>
2198 <param name="version" type="wstring" dir="in">
2199 <desc>Expected version number, usually empty string (presently ignored).</desc>
2200 </param>
2201
2202 <param name="url" type="wstring" dir="out">
2203 <desc>
2204 Suggested URL to download this firmware from.
2205 </desc>
2206 </param>
2207
2208 <param name="file" type="wstring" dir="out">
2209 <desc>
2210 Filename of firmware, only valid if result == TRUE.
2211 </desc>
2212 </param>
2213
2214 <param name="result" type="boolean" dir="return">
2215 <desc>If firmware of this type and version is available.</desc>
2216 </param>
2217 </method>
2218
2219 </interface>
2220
2221 <!--
2222 // IVFSExplorer
2223 /////////////////////////////////////////////////////////////////////////
2224 -->
2225
2226 <enum
2227 name="VFSType"
2228 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2229 >
2230 <desc>
2231 Virtual file systems supported by VFSExplorer.
2232 </desc>
2233
2234 <const name="File" value="1" />
2235 <const name="Cloud" value="2" />
2236 <const name="S3" value="3" />
2237 <const name="WebDav" value="4" />
2238 </enum>
2239
2240 <enum
2241 name="VFSFileType"
2242 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2243 >
2244 <desc>
2245 File types known by VFSExplorer.
2246 </desc>
2247
2248 <const name="Unknown" value="1" />
2249 <const name="Fifo" value="2" />
2250 <const name="DevChar" value="3" />
2251 <const name="Directory" value="4" />
2252 <const name="DevBlock" value="5" />
2253 <const name="File" value="6" />
2254 <const name="SymLink" value="7" />
2255 <const name="Socket" value="8" />
2256 <const name="WhiteOut" value="9" />
2257 </enum>
2258
2259 <interface
2260 name="IVFSExplorer" extends="$unknown"
2261 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2262 wsmap="managed"
2263 >
2264 <desc>
2265 The VFSExplorer interface unifies access to different file system
2266 types. This includes local file systems as well remote file systems like
2267 S3. For a list of supported types see <link to="VFSType" />.
2268 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2269 </desc>
2270
2271 <attribute name="path" type="wstring" readonly="yes">
2272 <desc>Returns the current path in the virtual file system.</desc>
2273 </attribute>
2274
2275 <attribute name="type" type="VFSType" readonly="yes">
2276 <desc>Returns the file system type which is currently in use.</desc>
2277 </attribute>
2278
2279 <method name="update">
2280 <desc>Updates the internal list of files/directories from the
2281 current directory level. Use <link to="#entryList" /> to get the full list
2282 after a call to this method.</desc>
2283
2284 <param name="aProgress" type="IProgress" dir="return">
2285 <desc>Progress object to track the operation completion.</desc>
2286 </param>
2287 </method>
2288
2289 <method name="cd">
2290 <desc>Change the current directory level.</desc>
2291
2292 <param name="aDir" type="wstring" dir="in">
2293 <desc>The name of the directory to go in.</desc>
2294 </param>
2295
2296 <param name="aProgress" type="IProgress" dir="return">
2297 <desc>Progress object to track the operation completion.</desc>
2298 </param>
2299 </method>
2300
2301 <method name="cdUp">
2302 <desc>Go one directory upwards from the current directory level.</desc>
2303
2304 <param name="aProgress" type="IProgress" dir="return">
2305 <desc>Progress object to track the operation completion.</desc>
2306 </param>
2307 </method>
2308
2309 <method name="entryList">
2310 <desc>Returns a list of files/directories after a call to <link
2311 to="#update" />. The user is responsible for keeping this internal
2312 list up do date.</desc>
2313
2314 <param name="aNames" type="wstring" safearray="yes" dir="out">
2315 <desc>The list of names for the entries.</desc>
2316 </param>
2317
2318 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2319 <desc>The list of types for the entries.</desc>
2320 </param>
2321
2322 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2323 <desc>The list of sizes (in bytes) for the entries.</desc>
2324 </param>
2325
2326 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2327 <desc>The list of file modes (in octal form) for the entries.</desc>
2328 </param>
2329 </method>
2330
2331 <method name="exists">
2332 <desc>Checks if the given file list exists in the current directory
2333 level.</desc>
2334
2335 <param name="aNames" type="wstring" safearray="yes" dir="in">
2336 <desc>The names to check.</desc>
2337 </param>
2338
2339 <param name="aExists" type="wstring" safearray="yes" dir="return">
2340 <desc>The names which exist.</desc>
2341 </param>
2342 </method>
2343
2344 <method name="remove">
2345 <desc>Deletes the given files in the current directory level.</desc>
2346
2347 <param name="aNames" type="wstring" safearray="yes" dir="in">
2348 <desc>The names to remove.</desc>
2349 </param>
2350
2351 <param name="aProgress" type="IProgress" dir="return">
2352 <desc>Progress object to track the operation completion.</desc>
2353 </param>
2354 </method>
2355
2356 </interface>
2357
2358 <enum
2359 name="ImportOptions" extends="$unknown"
2360 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2361 >
2362
2363 <desc>
2364 Import options, used with <link to="IAppliance::importMachines" />.
2365 </desc>
2366
2367 <const name="KeepAllMACs" value="1">
2368 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2369 </const>
2370 <const name="KeepNATMACs" value="2">
2371 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2372 </const>
2373
2374 </enum>
2375
2376
2377 <!--
2378 // IAppliance
2379 /////////////////////////////////////////////////////////////////////////
2380 -->
2381
2382 <interface
2383 name="IAppliance" extends="$unknown"
2384 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2385 wsmap="managed"
2386 >
2387 <desc>
2388 Represents a platform-independent appliance in OVF format. An instance of this is returned
2389 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2390 virtual machines within an appliance with VirtualBox.
2391
2392 The OVF standard suggests two different physical file formats:
2393
2394 <ol>
2395 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2396 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2397 this descriptor file references other files such as disk images, as OVF appliances typically
2398 do, those additional files must be in the same directory as the descriptor file.</li>
2399
2400 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2401 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2402 files and optionally other files.
2403
2404 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2405 be added with a later version.</li>
2406 </ol>
2407
2408 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2409 <link to="IMachine" /> involves the following sequence of API calls:
2410
2411 <ol>
2412 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2413 </li>
2414
2415 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2416 would like to import. So long as this file is syntactically valid, this will succeed
2417 and fill the appliance object with the parsed data from the OVF file.
2418 </li>
2419
2420 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2421 contents of the IAppliance attributes accordingly. These can be inspected by a
2422 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2423 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2424 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2425 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2426 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2427 The GUI can then give the user the option to confirm and/or change these suggestions.
2428 </li>
2429
2430 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2431 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2432 </li>
2433
2434 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2435 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2436 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2437 can be found in the <link to="#machines" /> array attribute.
2438 </li>
2439 </ol>
2440
2441 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2442
2443 <ol>
2444 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2445 an empty IAppliance object.
2446 </li>
2447
2448 <li>For each machine you would like to export, call <link to="IMachine::export" />
2449 with the IAppliance object you just created. Each such call creates one instance of
2450 <link to="IVirtualSystemDescription" /> inside the appliance.
2451 </li>
2452
2453 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2454 virtual system (machine) to override the suggestions made by the <link to="IMachine::export"/> routine.
2455 </li>
2456
2457 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2458 file written.</li>
2459 </ol>
2460
2461 </desc>
2462
2463 <attribute name="path" type="wstring" readonly="yes">
2464 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2465 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2466 <link to="#write" /> (for export).
2467 This attribute is empty until one of these methods has been called.
2468 </desc>
2469 </attribute>
2470
2471 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2472 <desc>
2473 Array of virtual disk definitions. One such description exists for each
2474 disk definition in the OVF; each string array item represents one such piece of
2475 disk information, with the information fields separated by tab (\\t) characters.
2476
2477 The caller should be prepared for additional fields being appended to
2478 this string in future versions of VirtualBox and therefore check for
2479 the number of tabs in the strings returned.
2480
2481 In the current version, the following eight fields are returned per string
2482 in the array:
2483
2484 <ol>
2485 <li>Disk ID (unique string identifier given to disk)</li>
2486
2487 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2488
2489 <li>Populated size (optional unsigned integer indicating the current size of the
2490 disk; can be approximate; -1 if unspecified)</li>
2491
2492 <li>Format (string identifying the disk format, typically
2493 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2494
2495 <li>Reference (where to find the disk image, typically a file name; if empty,
2496 then the disk should be created on import)</li>
2497
2498 <li>Image size (optional unsigned integer indicating the size of the image,
2499 which need not necessarily be the same as the values specified above, since
2500 the image may be compressed or sparse; -1 if not specified)</li>
2501
2502 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2503 presently unsupported and always -1)</li>
2504
2505 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2506 </ol>
2507 </desc>
2508 </attribute>
2509
2510 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2511 <desc> Array of virtual system descriptions. One such description is created
2512 for each virtual system (machine) found in the OVF.
2513 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2514 (for export) has been called.
2515 </desc>
2516 </attribute>
2517
2518 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2519 <desc>
2520 Contains the UUIDs of the machines created from the information in this appliances. This is only
2521 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2522 succeeded.
2523 </desc>
2524 </attribute>
2525
2526 <method name="read">
2527 <desc>
2528 Reads an OVF file into the appliance object.
2529
2530 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2531 mere fact that this method returns successfully does not mean that VirtualBox supports all
2532 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2533 </desc>
2534 <param name="file" type="wstring" dir="in">
2535 <desc>
2536 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2537 on whether the appliance is distributed as a set of files or as a single file, respectively).
2538 </desc>
2539 </param>
2540 <param name="aProgress" type="IProgress" dir="return">
2541 <desc>Progress object to track the operation completion.</desc>
2542 </param>
2543 </method>
2544
2545 <method name="interpret">
2546 <desc>
2547 Interprets the OVF data that was read when the appliance was constructed. After
2548 calling this method, one can inspect the
2549 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2550 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2551 the appliance.
2552
2553 Calling this method is the second step of importing an appliance into VirtualBox;
2554 see <link to="IAppliance" /> for an overview.
2555
2556 After calling this method, one should call <link to="#getWarnings" /> to find out
2557 if problems were encountered during the processing which might later lead to
2558 errors.
2559 </desc>
2560 </method>
2561
2562 <method name="importMachines">
2563 <desc>
2564 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2565 and other interfaces that match the information contained in the appliance as
2566 closely as possible, as represented by the import instructions in the
2567 <link to="#virtualSystemDescriptions" /> array.
2568
2569 Calling this method is the final step of importing an appliance into VirtualBox;
2570 see <link to="IAppliance" /> for an overview.
2571
2572 Since importing the appliance will most probably involve copying and converting
2573 disk images, which can take a long time, this method operates asynchronously and
2574 returns an IProgress object to allow the caller to monitor the progress.
2575
2576 After the import succeeded, the UUIDs of the IMachine instances created can be
2577 retrieved from the <link to="#machines" /> array attribute.
2578 </desc>
2579
2580 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2581 <desc>Options for the importing operation.</desc>
2582 </param>
2583
2584 <param name="aProgress" type="IProgress" dir="return">
2585 <desc>Progress object to track the operation completion.</desc>
2586 </param>
2587 </method>
2588
2589 <method name="createVFSExplorer">
2590 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2591
2592 <param name="aUri" type="wstring" dir="in">
2593 <desc>The URI describing the file system to use.</desc>
2594 </param>
2595
2596 <param name="aExplorer" type="IVFSExplorer" dir="return">
2597 <desc></desc>
2598 </param>
2599 </method>
2600
2601 <method name="write">
2602 <desc>
2603 Writes the contents of the appliance exports into a new OVF file.
2604
2605 Calling this method is the final step of exporting an appliance from VirtualBox;
2606 see <link to="IAppliance" /> for an overview.
2607
2608 Since exporting the appliance will most probably involve copying and converting
2609 disk images, which can take a long time, this method operates asynchronously and
2610 returns an IProgress object to allow the caller to monitor the progress.
2611 </desc>
2612 <param name="format" type="wstring" dir="in">
2613 <desc>
2614 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
2615 future versions of VirtualBox may support additional formats.
2616 </desc>
2617 </param>
2618 <param name="manifest" type="boolean" dir="in">
2619 <desc>
2620 Indicate if the optional manifest file (.mf) should be written. The manifest file
2621 is used for integrity checks prior import.
2622 </desc>
2623 </param>
2624 <param name="path" type="wstring" dir="in">
2625 <desc>
2626 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2627 on whether the appliance is distributed as a set of files or as a single file, respectively).
2628 </desc>
2629 </param>
2630 <param name="progress" type="IProgress" dir="return">
2631 <desc>Progress object to track the operation completion.</desc>
2632 </param>
2633 </method>
2634
2635 <method name="getWarnings">
2636 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2637
2638 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2639 <desc></desc>
2640 </param>
2641 </method>
2642
2643 </interface>
2644
2645 <enum
2646 name="VirtualSystemDescriptionType"
2647 uuid="303c0900-a746-4612-8c67-79003e91f459"
2648 >
2649 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2650 a configuration value.</desc>
2651
2652 <const name="Ignore" value="1" />
2653 <const name="OS" value="2" />
2654 <const name="Name" value="3" />
2655 <const name="Product" value="4" />
2656 <const name="Vendor" value="5" />
2657 <const name="Version" value="6" />
2658 <const name="ProductUrl" value="7" />
2659 <const name="VendorUrl" value="8" />
2660 <const name="Description" value="9" />
2661 <const name="License" value="10" />
2662 <const name="Miscellaneous" value="11" />
2663 <const name="CPU" value="12" />
2664 <const name="Memory" value="13" />
2665 <const name="HardDiskControllerIDE" value="14" />
2666 <const name="HardDiskControllerSATA" value="15" />
2667 <const name="HardDiskControllerSCSI" value="16" />
2668 <const name="HardDiskControllerSAS" value="17" />
2669 <const name="HardDiskImage" value="18" />
2670 <const name="Floppy" value="19" />
2671 <const name="CDROM" value="20" />
2672 <const name="NetworkAdapter" value="21" />
2673 <const name="USBController" value="22" />
2674 <const name="SoundCard" value="23" />
2675 <const name="SettingsFile" value="24">
2676 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2677 </const>
2678 </enum>
2679
2680 <enum
2681 name="VirtualSystemDescriptionValueType"
2682 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2683 >
2684 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2685 type to fetch.</desc>
2686
2687 <const name="Reference" value="1" />
2688 <const name="Original" value="2" />
2689 <const name="Auto" value="3" />
2690 <const name="ExtraConfig" value="4" />
2691
2692 </enum>
2693
2694 <interface
2695 name="IVirtualSystemDescription" extends="$unknown"
2696 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2697 wsmap="managed"
2698 >
2699
2700 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2701 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2702 <link to="IAppliance::interpret" /> has been called, that array contains information
2703 about how the virtual systems described in the OVF should best be imported into
2704 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2705 import an OVF into VirtualBox.
2706 </desc>
2707
2708 <attribute name="count" type="unsigned long" readonly="yes">
2709 <desc>Return the number of virtual system description entries.</desc>
2710 </attribute>
2711
2712 <method name="getDescription">
2713 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2714 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2715
2716 The list below identifies the value sets that are possible depending on the
2717 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2718 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2719 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2720 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2721 the @a aExtraConfigValues[] array item may also be used.
2722
2723 <ul>
2724 <li>
2725 "OS": the guest operating system type. There must be exactly one such array item on import. The
2726 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2727 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2728 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2729 </li>
2730 <li>
2731 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2732 if none is present on import, then an automatic name will be created from the operating system
2733 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2734 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2735 <link to="IMachine" /> name that does not exist yet.
2736 </li>
2737 <li>
2738 "Description": an arbitrary description.
2739 </li>
2740 <li>
2741 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2742 code to display such a license for agreement; the Main API does not enforce any such policy.
2743 </li>
2744 <li>
2745 Miscellaneous: reserved for future use.
2746 </li>
2747 <li>
2748 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2749 </li>
2750 <li>
2751 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2752 is present on import, then VirtualBox will set a meaningful default based on the operating system
2753 type.
2754 </li>
2755 <li>
2756 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2757 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2758 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2759 writes into the OVF.
2760 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2761 type can use to specify which hard disk controller a virtual disk should be connected to.
2762 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2763 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2764 its virtual machines supports four channels (primary master, primary slave, secondary master,
2765 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2766 </li>
2767 <li>
2768 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2769 has no value in @a aOvfValues[] or @a aVBoxValues[].
2770 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2771 </li>
2772 <li>
2773 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2774 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2775 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2776 whereas VirtualBox considers it a class of storage controllers of its own; see
2777 <link to="StorageControllerType" />).
2778 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2779 </li>
2780 <li>
2781 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2782 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2783
2784 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2785 a path since the image file should be in the same location as the OVF file itself), whereas the
2786 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2787 hard disk image. This means that on import the image will be copied and converted from the
2788 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2789
2790 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2791 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2792 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2793 the image to. That number must be the index of an array item with one of the hard disk controller
2794 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2795 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2796 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2797 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2798 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2799 </li>
2800 <li>
2801 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2802 attachment information as with "HardDiskImage" items.
2803 </li>
2804 <li>
2805 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2806 attachment information as with "HardDiskImage" items.
2807 </li>
2808 <li>
2809 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2810 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2811 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2812 </li>
2813 <li>
2814 "USBController": a USB controller. There can be at most one such item. If and only if such an
2815 item ispresent, USB support will be enabled for the new virtual machine.
2816 </li>
2817 <li>
2818 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2819 present, sound support will be enabled for the new virtual machine. Note that the virtual
2820 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2821 may be different from the virtual soundcard expected by the appliance.
2822 </li>
2823 </ul>
2824
2825 </desc>
2826
2827 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2828 <desc></desc>
2829 </param>
2830
2831 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2832 <desc></desc>
2833 </param>
2834
2835 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2836 <desc></desc>
2837 </param>
2838
2839 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2840 <desc></desc>
2841 </param>
2842
2843 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2844 <desc></desc>
2845 </param>
2846
2847 </method>
2848
2849 <method name="getDescriptionByType">
2850 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2851 should be returned.</desc>
2852
2853 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2854 <desc></desc>
2855 </param>
2856
2857 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2858 <desc></desc>
2859 </param>
2860
2861 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2862 <desc></desc>
2863 </param>
2864
2865 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2866 <desc></desc>
2867 </param>
2868
2869 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2870 <desc></desc>
2871 </param>
2872
2873 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2874 <desc></desc>
2875 </param>
2876
2877 </method>
2878
2879 <method name="getValuesByType">
2880 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2881 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2882 values.</desc>
2883
2884 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2885 <desc></desc>
2886 </param>
2887
2888 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2889 <desc></desc>
2890 </param>
2891
2892 <param name="aValues" type="wstring" dir="return" safearray="yes">
2893 <desc></desc>
2894 </param>
2895
2896 </method>
2897
2898 <method name="setFinalValues">
2899 <desc>
2900 This method allows the appliance's user to change the configuration for the virtual
2901 system descriptions. For each array item returned from <link to="#getDescription" />,
2902 you must pass in one boolean value and one configuration value.
2903
2904 Each item in the boolean array determines whether the particular configuration item
2905 should be enabled.
2906 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2907 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2908 and SoundCard.
2909
2910 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2911 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
2912 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
2913 for valid configuration values for the individual array item types. If the
2914 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
2915 </desc>
2916
2917 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
2918 <desc></desc>
2919 </param>
2920
2921 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
2922 <desc></desc>
2923 </param>
2924
2925 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
2926 <desc></desc>
2927 </param>
2928 </method>
2929
2930 <method name="addDescription">
2931 <desc>
2932 This method adds an additional description entry to the stack of already
2933 available descriptions for this virtual system. This is handy for writing
2934 values which aren't directly supported by VirtualBox. One example would
2935 be the License type of <link to="VirtualSystemDescriptionType" />.
2936 </desc>
2937
2938 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2939 <desc></desc>
2940 </param>
2941
2942 <param name="aVBoxValue" type="wstring" dir="in">
2943 <desc></desc>
2944 </param>
2945
2946 <param name="aExtraConfigValue" type="wstring" dir="in">
2947 <desc></desc>
2948 </param>
2949 </method>
2950 </interface>
2951
2952
2953 <!--
2954 // IMachine
2955 /////////////////////////////////////////////////////////////////////////
2956 -->
2957
2958 <interface
2959 name="IInternalMachineControl" extends="$unknown"
2960 uuid="2087906d-bb92-43a0-8014-4cab009e4888"
2961 internal="yes"
2962 wsmap="suppress"
2963 >
2964 <method name="setRemoveSavedStateFile">
2965 <desc>
2966 Updates the flag whether the saved state file is removed on a
2967 machine state change from Saved to PoweredOff.
2968 </desc>
2969 <param name="aRemove" type="boolean" dir="in"/>
2970 </method>
2971
2972 <method name="updateState">
2973 <desc>
2974 Updates the VM state.
2975 <note>
2976 This operation will also update the settings file with the correct
2977 information about the saved state file and delete this file from disk
2978 when appropriate.
2979 </note>
2980 </desc>
2981 <param name="state" type="MachineState" dir="in"/>
2982 </method>
2983
2984 <method name="getIPCId">
2985 <param name="id" type="wstring" dir="return"/>
2986 </method>
2987
2988 <method name="beginPowerUp">
2989 <desc>
2990 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
2991 gives it the progress object that should be part of any pending
2992 <link to="IMachine::launchVMProcess"/> operations. The progress
2993 object may be called back to reflect an early cancelation, so some care
2994 have to be taken with respect to any cancelation callbacks. The console
2995 object will call <link to="IInternalMachineControl::endPowerUp"/>
2996 to signal the completion of the progress object.
2997 </desc>
2998 <param name="aProgress" type="IProgress" dir="in" />
2999 </method>
3000
3001 <method name="endPowerUp">
3002 <desc>
3003 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3004 This method may query status information from the progress object it
3005 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3006 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3007 call in order to complete that progress object.
3008 </desc>
3009 <param name="result" type="long" dir="in"/>
3010 </method>
3011
3012 <method name="beginPoweringDown">
3013 <desc>
3014 Called by the VM process to inform the server it wants to
3015 stop the VM execution and power down.
3016 </desc>
3017 <param name="progress" type="IProgress" dir="out">
3018 <desc>
3019 Progress object created by VBoxSVC to wait until
3020 the VM is powered down.
3021 </desc>
3022 </param>
3023 </method>
3024
3025 <method name="endPoweringDown">
3026 <desc>
3027 Called by the VM process to inform the server that powering
3028 down previously requested by #beginPoweringDown is either
3029 successfully finished or there was a failure.
3030
3031 <result name="VBOX_E_FILE_ERROR">
3032 Settings file not accessible.
3033 </result>
3034 <result name="VBOX_E_XML_ERROR">
3035 Could not parse the settings file.
3036 </result>
3037
3038 </desc>
3039
3040 <param name="result" type="long" dir="in">
3041 <desc>@c S_OK to indicate success.
3042 </desc>
3043 </param>
3044 <param name="errMsg" type="wstring" dir="in">
3045 <desc>@c human readable error message in case of failure.
3046 </desc>
3047 </param>
3048 </method>
3049
3050 <method name="runUSBDeviceFilters">
3051 <desc>
3052 Asks the server to run USB devices filters of the associated
3053 machine against the given USB device and tell if there is
3054 a match.
3055 <note>
3056 Intended to be used only for remote USB devices. Local
3057 ones don't require to call this method (this is done
3058 implicitly by the Host and USBProxyService).
3059 </note>
3060 </desc>
3061 <param name="device" type="IUSBDevice" dir="in"/>
3062 <param name="matched" type="boolean" dir="out"/>
3063 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3064 </method>
3065
3066 <method name="captureUSBDevice">
3067 <desc>
3068 Requests a capture of the given host USB device.
3069 When the request is completed, the VM process will
3070 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3071 notification.
3072 </desc>
3073 <param name="id" type="uuid" mod="string" dir="in"/>
3074 </method>
3075
3076 <method name="detachUSBDevice">
3077 <desc>
3078 Notification that a VM is going to detach (@a done = @c false) or has
3079 already detached (@a done = @c true) the given USB device.
3080 When the @a done = @c true request is completed, the VM process will
3081 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3082 notification.
3083 <note>
3084 In the @a done = @c true case, the server must run its own filters
3085 and filters of all VMs but this one on the detached device
3086 as if it were just attached to the host computer.
3087 </note>
3088 </desc>
3089 <param name="id" type="uuid" mod="string" dir="in"/>
3090 <param name="done" type="boolean" dir="in"/>
3091 </method>
3092
3093 <method name="autoCaptureUSBDevices">
3094 <desc>
3095 Requests a capture all matching USB devices attached to the host.
3096 When the request is completed, the VM process will
3097 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3098 notification per every captured device.
3099 </desc>
3100 </method>
3101
3102 <method name="detachAllUSBDevices">
3103 <desc>
3104 Notification that a VM that is being powered down. The done
3105 parameter indicates whether which stage of the power down
3106 we're at. When @a done = @c false the VM is announcing its
3107 intentions, while when @a done = @c true the VM is reporting
3108 what it has done.
3109 <note>
3110 In the @a done = @c true case, the server must run its own filters
3111 and filters of all VMs but this one on all detach devices as
3112 if they were just attached to the host computer.
3113 </note>
3114 </desc>
3115 <param name="done" type="boolean" dir="in"/>
3116 </method>
3117
3118 <method name="onSessionEnd">
3119 <desc>
3120 Triggered by the given session object when the session is about
3121 to close normally.
3122 </desc>
3123 <param name="session" type="ISession" dir="in">
3124 <desc>Session that is being closed</desc>
3125 </param>
3126 <param name="progress" type="IProgress" dir="return">
3127 <desc>
3128 Used to wait until the corresponding machine is actually
3129 dissociated from the given session on the server.
3130 Returned only when this session is a direct one.
3131 </desc>
3132 </param>
3133 </method>
3134
3135 <method name="beginSavingState">
3136 <desc>
3137 Called by the VM process to inform the server it wants to
3138 save the current state and stop the VM execution.
3139 </desc>
3140 <param name="progress" type="IProgress" dir="out">
3141 <desc>
3142 Progress object created by VBoxSVC to wait until
3143 the state is saved.
3144 </desc>
3145 </param>
3146 <param name="stateFilePath" type="wstring" dir="out">
3147 <desc>
3148 File path the VM process must save the execution state to.
3149 </desc>
3150 </param>
3151 </method>
3152
3153 <method name="endSavingState">
3154 <desc>
3155 Called by the VM process to inform the server that saving
3156 the state previously requested by #beginSavingState is either
3157 successfully finished or there was a failure.
3158
3159 <result name="VBOX_E_FILE_ERROR">
3160 Settings file not accessible.
3161 </result>
3162 <result name="VBOX_E_XML_ERROR">
3163 Could not parse the settings file.
3164 </result>
3165
3166 </desc>
3167
3168 <param name="result" type="long" dir="in">
3169 <desc>@c S_OK to indicate success.
3170 </desc>
3171 </param>
3172 <param name="errMsg" type="wstring" dir="in">
3173 <desc>@c human readable error message in case of failure.
3174 </desc>
3175 </param>
3176 </method>
3177
3178 <method name="adoptSavedState">
3179 <desc>
3180 Gets called by <link to="IConsole::adoptSavedState"/>.
3181 <result name="VBOX_E_FILE_ERROR">
3182 Invalid saved state file path.
3183 </result>
3184 </desc>
3185 <param name="savedStateFile" type="wstring" dir="in">
3186 <desc>Path to the saved state file to adopt.</desc>
3187 </param>
3188 </method>
3189
3190 <method name="beginTakingSnapshot">
3191 <desc>
3192 Called from the VM process to request from the server to perform the
3193 server-side actions of creating a snapshot (creating differencing images
3194 and the snapshot object).
3195
3196 <result name="VBOX_E_FILE_ERROR">
3197 Settings file not accessible.
3198 </result>
3199 <result name="VBOX_E_XML_ERROR">
3200 Could not parse the settings file.
3201 </result>
3202 </desc>
3203 <param name="initiator" type="IConsole" dir="in">
3204 <desc>The console object that initiated this call.</desc>
3205 </param>
3206 <param name="name" type="wstring" dir="in">
3207 <desc>Snapshot name.</desc>
3208 </param>
3209 <param name="description" type="wstring" dir="in">
3210 <desc>Snapshot description.</desc>
3211 </param>
3212 <param name="consoleProgress" type="IProgress" dir="in">
3213 <desc>
3214 Progress object created by the VM process tracking the
3215 snapshot's progress. This has the following sub-operations:
3216 <ul>
3217 <li>setting up (weight 1);</li>
3218 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3219 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3220 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3221 <li>finishing up (weight 1)</li>
3222 </ul>
3223 </desc>
3224 </param>
3225 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3226 <desc>
3227 Whether this is an online snapshot (i.e. the machine is running).
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="endTakingSnapshot">
3238 <desc>
3239 Called by the VM process to inform the server that the snapshot
3240 previously requested by #beginTakingSnapshot is either
3241 successfully taken or there was a failure.
3242 </desc>
3243
3244 <param name="success" type="boolean" dir="in">
3245 <desc>@c true to indicate success and @c false otherwise</desc>
3246 </param>
3247 </method>
3248
3249 <method name="deleteSnapshot">
3250 <desc>
3251 Gets called by <link to="IConsole::deleteSnapshot"/>,
3252 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3253 <link to="IConsole::deleteSnapshotRange"/>.
3254 <result name="VBOX_E_INVALID_OBJECT_STATE">
3255 Snapshot has more than one child snapshot. Only possible if the
3256 delete operation does not delete all children or the range does
3257 not meet the linearity condition.
3258 </result>
3259 </desc>
3260 <param name="initiator" type="IConsole" dir="in">
3261 <desc>The console object that initiated this call.</desc>
3262 </param>
3263 <param name="startId" type="uuid" mod="string" dir="in">
3264 <desc>UUID of the first snapshot to delete.</desc>
3265 </param>
3266 <param name="endId" type="uuid" mod="string" dir="in">
3267 <desc>UUID of the last snapshot to delete.</desc>
3268 </param>
3269 <param name="deleteAllChildren" type="boolean" dir="in">
3270 <desc>Whether all children should be deleted.</desc>
3271 </param>
3272 <param name="machineState" type="MachineState" dir="out">
3273 <desc>New machine state after this operation is started.</desc>
3274 </param>
3275 <param name="progress" type="IProgress" dir="return">
3276 <desc>Progress object to track the operation completion.</desc>
3277 </param>
3278 </method>
3279
3280 <method name="finishOnlineMergeMedium">
3281 <desc>
3282 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3283 </desc>
3284 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3285 <desc>The medium attachment which needs to be cleaned up.</desc>
3286 </param>
3287 <param name="source" type="IMedium" dir="in">
3288 <desc>Merge source medium.</desc>
3289 </param>
3290 <param name="target" type="IMedium" dir="in">
3291 <desc>Merge target medium.</desc>
3292 </param>
3293 <param name="mergeForward" type="boolean" dir="in">
3294 <desc>Merge direction.</desc>
3295 </param>
3296 <param name="parentForTarget" type="IMedium" dir="in">
3297 <desc>For forward merges: new parent for target medium.</desc>
3298 </param>
3299 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3300 <desc>For backward merges: list of media which need their parent UUID
3301 updated.</desc>
3302 </param>
3303 </method>
3304
3305 <method name="restoreSnapshot">
3306 <desc>
3307 Gets called by <link to="IConsole::restoreSnapshot"/>.
3308 </desc>
3309 <param name="initiator" type="IConsole" dir="in">
3310 <desc>The console object that initiated this call.</desc>
3311 </param>
3312 <param name="snapshot" type="ISnapshot" dir="in">
3313 <desc>The snapshot to restore the VM state from.</desc>
3314 </param>
3315 <param name="machineState" type="MachineState" dir="out">
3316 <desc>New machine state after this operation is started.</desc>
3317 </param>
3318 <param name="progress" type="IProgress" dir="return">
3319 <desc>Progress object to track the operation completion.</desc>
3320 </param>
3321 </method>
3322
3323 <method name="pullGuestProperties">
3324 <desc>
3325 Get the list of the guest properties matching a set of patterns along
3326 with their values, time stamps and flags and give responsibility for
3327 managing properties to the console.
3328 </desc>
3329 <param name="name" type="wstring" dir="out" safearray="yes">
3330 <desc>
3331 The names of the properties returned.
3332 </desc>
3333 </param>
3334 <param name="value" type="wstring" dir="out" safearray="yes">
3335 <desc>
3336 The values of the properties returned. The array entries match the
3337 corresponding entries in the @a name array.
3338 </desc>
3339 </param>
3340 <param name="timestamp" type="long long" dir="out" safearray="yes">
3341 <desc>
3342 The time stamps of the properties returned. The array entries match
3343 the corresponding entries in the @a name array.
3344 </desc>
3345 </param>
3346 <param name="flags" type="wstring" dir="out" safearray="yes">
3347 <desc>
3348 The flags of the properties returned. The array entries match the
3349 corresponding entries in the @a name array.
3350 </desc>
3351 </param>
3352 </method>
3353
3354 <method name="pushGuestProperty">
3355 <desc>
3356 Update a single guest property in IMachine.
3357 </desc>
3358 <param name="name" type="wstring" dir="in">
3359 <desc>
3360 The name of the property to be updated.
3361 </desc>
3362 </param>
3363 <param name="value" type="wstring" dir="in">
3364 <desc>
3365 The value of the property.
3366 </desc>
3367 </param>
3368 <param name="timestamp" type="long long" dir="in">
3369 <desc>
3370 The timestamp of the property.
3371 </desc>
3372 </param>
3373 <param name="flags" type="wstring" dir="in">
3374 <desc>
3375 The flags of the property.
3376 </desc>
3377 </param>
3378 </method>
3379
3380 <method name="lockMedia">
3381 <desc>
3382 Locks all media attached to the machine for writing and parents of
3383 attached differencing media (if any) for reading. This operation is
3384 atomic so that if it fails no media is actually locked.
3385
3386 This method is intended to be called when the machine is in Starting or
3387 Restoring state. The locked media will be automatically unlocked when
3388 the machine is powered off or crashed.
3389 </desc>
3390 </method>
3391 <method name="unlockMedia">
3392 <desc>
3393 Unlocks all media previously locked using
3394 <link to="IInternalMachineControl::lockMedia"/>.
3395
3396 This method is intended to be used with teleportation so that it is
3397 possible to teleport between processes on the same machine.
3398 </desc>
3399 </method>
3400
3401 <method name="ejectMedium">
3402 <desc>
3403 Tells VBoxSVC that the guest has ejected the medium associated with
3404 the medium attachment.
3405 </desc>
3406 <param name="attachment" type="IMediumAttachment" dir="in">
3407 <desc>
3408 The medium attachment where the eject happened.
3409 </desc>
3410 </param>
3411 <param name="newAttachment" type="IMediumAttachment" dir="return">
3412 <desc>
3413 A new reference to the medium attachment, as the config change can
3414 result in the creation of a new instance.
3415 </desc>
3416 </param>
3417 </method>
3418 </interface>
3419
3420 <interface
3421 name="IBIOSSettings" extends="$unknown"
3422 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3423 wsmap="managed"
3424 >
3425 <desc>
3426 The IBIOSSettings interface represents BIOS settings of the virtual
3427 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3428 </desc>
3429 <attribute name="logoFadeIn" type="boolean">
3430 <desc>Fade in flag for BIOS logo animation.</desc>
3431 </attribute>
3432
3433 <attribute name="logoFadeOut" type="boolean">
3434 <desc>Fade out flag for BIOS logo animation.</desc>
3435 </attribute>
3436
3437 <attribute name="logoDisplayTime" type="unsigned long">
3438 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3439 </attribute>
3440
3441 <attribute name="logoImagePath" type="wstring">
3442 <desc>
3443 Local file system path for external BIOS splash image. Empty string
3444 means the default image is shown on boot.
3445 </desc>
3446 </attribute>
3447
3448 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3449 <desc>Mode of the BIOS boot device menu.</desc>
3450 </attribute>
3451
3452 <attribute name="ACPIEnabled" type="boolean">
3453 <desc>ACPI support flag.</desc>
3454 </attribute>
3455
3456 <attribute name="IOAPICEnabled" type="boolean">
3457 <desc>
3458 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3459 and support IRQs above 15.
3460 </desc>
3461 </attribute>
3462
3463 <attribute name="timeOffset" type="long long">
3464 <desc>
3465 Offset in milliseconds from the host system time. This allows for
3466 guests running with a different system date/time than the host.
3467 It is equivalent to setting the system date/time in the BIOS except
3468 it is not an absolute value but a relative one. Guest Additions
3469 time synchronization honors this offset.
3470 </desc>
3471 </attribute>
3472
3473 <attribute name="PXEDebugEnabled" type="boolean">
3474 <desc>
3475 PXE debug logging flag. If set, VirtualBox will write extensive
3476 PXE trace information to the release log.
3477 </desc>
3478 </attribute>
3479
3480 </interface>
3481
3482 <enum
3483 name="CleanupMode"
3484 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3485 >
3486 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3487 </desc>
3488 <const name="UnregisterOnly" value="1">
3489 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3490 </const>
3491 <const name="DetachAllReturnNone" value="2">
3492 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3493 </const>
3494 <const name="DetachAllReturnHardDisksOnly" value="3">
3495 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3496 </const>
3497 <const name="Full" value="4">
3498 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3499 </const>
3500 </enum>
3501
3502 <interface
3503 name="IPciAddress" extends="$unknown"
3504 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3505 wsmap="struct"
3506 >
3507
3508 <desc>
3509 Address on the PCI bus.
3510 </desc>
3511
3512 <attribute name="bus" type="short">
3513 <desc>
3514 Bus number.
3515 </desc>
3516 </attribute>
3517
3518 <attribute name="device" type="short">
3519 <desc>
3520 Device number.
3521 </desc>
3522 </attribute>
3523
3524 <attribute name="devFunction" type="short">
3525 <desc>
3526 Device function number.
3527 </desc>
3528 </attribute>
3529
3530 <method name="asLong">
3531 <desc>
3532 Convert PCI address into long.
3533 </desc>
3534 <param name="result" type="long" dir="return" />
3535 </method>
3536
3537 <method name="fromLong">
3538 <desc>
3539 Make PCI address from long.
3540 </desc>
3541 <param name="number" type="long" dir="in" />
3542 </method>
3543 </interface>
3544
3545 <interface
3546 name="IPciDeviceAttachment" extends="$unknown"
3547 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3548 wsmap="struct"
3549 >
3550
3551 <desc>
3552 Information about PCI attachments.
3553 </desc>
3554
3555 <attribute name="name" type="wstring" readonly="yes">
3556 <desc>
3557 Device name.
3558 </desc>
3559 </attribute>
3560
3561 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3562 <desc>
3563 If this is physical or virtual device.
3564 </desc>
3565 </attribute>
3566
3567 <attribute name="hostAddress" type="long" readonly="yes">
3568 <desc>
3569 Address of device on the host, applicable only to host devices.
3570 </desc>
3571 </attribute>
3572
3573 <attribute name="guestAddress" type="long" readonly="yes">
3574 <desc>
3575 Address of device on the guest.
3576 </desc>
3577 </attribute>
3578
3579 </interface>
3580
3581 <enum
3582 name="CloneMode" extends="$unknown"
3583 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3584 >
3585
3586 <desc>
3587 Clone mode, used with <link to="IMachine::cloneTo" />.
3588 </desc>
3589
3590 <const name="MachineState" value="1">
3591 <desc>Clone the state of the selected machine.</desc>
3592 </const>
3593 <const name="MachineAndChildStates" value="2">
3594 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3595 </const>
3596 <const name="AllStates" value="3">
3597 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3598 </const>
3599
3600 </enum>
3601
3602 <enum
3603 name="CloneOptions" extends="$unknown"
3604 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3605 >
3606
3607 <desc>
3608 Clone options, used with <link to="IMachine::cloneTo" />.
3609 </desc>
3610
3611 <const name="Link" value="1">
3612 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3613 </const>
3614 <const name="KeepAllMACs" value="2">
3615 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3616 </const>
3617 <const name="KeepNATMACs" value="3">
3618 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3619 </const>
3620 <const name="KeepDiskNames" value="4">
3621 <desc>Don't change the disk names.</desc>
3622 </const>
3623
3624 </enum>
3625
3626
3627 <interface
3628 name="IMachine" extends="$unknown"
3629 uuid="5eaa9319-62fc-4b0a-843c-0cb1940f8a91"
3630 wsmap="managed"
3631 >
3632 <desc>
3633 The IMachine interface represents a virtual machine, or guest, created
3634 in VirtualBox.
3635
3636 This interface is used in two contexts. First of all, a collection of
3637 objects implementing this interface is stored in the
3638 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3639 machines that are currently registered with this VirtualBox
3640 installation. Also, once a session has been opened for the given virtual
3641 machine (e.g. the virtual machine is running), the machine object
3642 associated with the open session can be queried from the session object;
3643 see <link to="ISession"/> for details.
3644
3645 The main role of this interface is to expose the settings of the virtual
3646 machine and provide methods to change various aspects of the virtual
3647 machine's configuration. For machine objects stored in the
3648 <link to="IVirtualBox::machines"/> collection, all attributes are
3649 read-only unless explicitly stated otherwise in individual attribute
3650 and method descriptions.
3651
3652 In order to change a machine setting, a session for this machine must be
3653 opened using one of the <link to="IMachine::lockMachine" /> or
3654 <link to="IMachine::launchVMProcess"/> methods. After the
3655 machine has been successfully locked for a session, a mutable machine object
3656 needs to be queried from the session object and then the desired settings
3657 changes can be applied to the returned object using IMachine attributes and
3658 methods. See the <link to="ISession"/> interface description for more
3659 information about sessions.
3660
3661 Note that IMachine does not provide methods to control virtual machine
3662 execution (such as start the machine, or power it down) -- these methods
3663 are grouped in a separate interface called <link to="IConsole" />.
3664
3665 <see><link to="ISession"/>, <link to="IConsole"/></see>
3666 </desc>
3667
3668 <attribute name="parent" type="IVirtualBox" readonly="yes">
3669 <desc>Associated parent object.</desc>
3670 </attribute>
3671
3672 <attribute name="accessible" type="boolean" readonly="yes">
3673 <desc>
3674 Whether this virtual machine is currently accessible or not.
3675
3676 A machine is always deemed accessible unless it is registered <i>and</i>
3677 its settings file cannot be read or parsed (either because the file itself
3678 is unavailable or has invalid XML contents).
3679
3680 Every time this property is read, the accessibility state of
3681 this machine is re-evaluated. If the returned value is @c false,
3682 the <link to="#accessError"/> property may be used to get the
3683 detailed error information describing the reason of
3684 inaccessibility, including XML error messages.
3685
3686 When the machine is inaccessible, only the following properties
3687 can be used on it:
3688 <ul>
3689 <li><link to="#parent"/></li>
3690 <li><link to="#id"/></li>
3691 <li><link to="#settingsFilePath"/></li>
3692 <li><link to="#accessible"/></li>
3693 <li><link to="#accessError"/></li>
3694 </ul>
3695
3696 An attempt to access any other property or method will return
3697 an error.
3698
3699 The only possible action you can perform on an inaccessible
3700 machine is to unregister it using the
3701 <link to="IMachine::unregister"/> call (or, to check
3702 for the accessibility state once more by querying this
3703 property).
3704
3705 <note>
3706 In the current implementation, once this property returns
3707 @c true, the machine will never become inaccessible
3708 later, even if its settings file cannot be successfully
3709 read/written any more (at least, until the VirtualBox
3710 server is restarted). This limitation may be removed in
3711 future releases.
3712 </note>
3713 </desc>
3714 </attribute>
3715
3716 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3717 <desc>
3718 Error information describing the reason of machine
3719 inaccessibility.
3720
3721 Reading this property is only valid after the last call to
3722 <link to="#accessible"/> returned @c false (i.e. the
3723 machine is currently inaccessible). Otherwise, a @c null
3724 IVirtualBoxErrorInfo object will be returned.
3725 </desc>
3726 </attribute>
3727
3728 <attribute name="name" type="wstring">
3729 <desc>
3730 Name of the virtual machine.
3731
3732 Besides being used for human-readable identification purposes
3733 everywhere in VirtualBox, the virtual machine name is also used
3734 as a name of the machine's settings file and as a name of the
3735 subdirectory this settings file resides in. Thus, every time you
3736 change the value of this property, the settings file will be
3737 renamed once you call <link to="#saveSettings"/> to confirm the
3738 change. The containing subdirectory will be also renamed, but
3739 only if it has exactly the same name as the settings file
3740 itself prior to changing this property (for backward compatibility
3741 with previous API releases). The above implies the following
3742 limitations:
3743 <ul>
3744 <li>The machine name cannot be empty.</li>
3745 <li>The machine name can contain only characters that are valid
3746 file name characters according to the rules of the file
3747 system used to store VirtualBox configuration.</li>
3748 <li>You cannot have two or more machines with the same name
3749 if they use the same subdirectory for storing the machine
3750 settings files.</li>
3751 <li>You cannot change the name of the machine if it is running,
3752 or if any file in the directory containing the settings file
3753 is being used by another running machine or by any other
3754 process in the host operating system at a time when
3755 <link to="#saveSettings"/> is called.
3756 </li>
3757 </ul>
3758 If any of the above limitations are hit, <link to="#saveSettings"/>
3759 will return an appropriate error message explaining the exact
3760 reason and the changes you made to this machine will not be saved.
3761
3762 Starting with VirtualBox 4.0, a “.vbox” extension of the settings
3763 file is recommended, but not enforced. (Previous versions always
3764 used a generic ".xml" extension.)
3765 </desc>
3766 </attribute>
3767
3768 <attribute name="description" type="wstring">
3769 <desc>
3770 Description of the virtual machine.
3771
3772 The description attribute can contain any text and is
3773 typically used to describe the hardware and software
3774 configuration of the virtual machine in detail (i.e. network
3775 settings, versions of the installed software and so on).
3776 </desc>
3777 </attribute>
3778
3779 <attribute name="id" type="uuid" mod="string" readonly="yes">
3780 <desc>UUID of the virtual machine.</desc>
3781 </attribute>
3782
3783 <attribute name="OSTypeId" type="wstring">
3784 <desc>
3785 User-defined identifier of the Guest OS type.
3786 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3787 an IGuestOSType object representing details about the given
3788 Guest OS type.
3789 <note>
3790 This value may differ from the value returned by
3791 <link to="IGuest::OSTypeId"/> if Guest Additions are
3792 installed to the guest OS.
3793 </note>
3794 </desc>
3795 </attribute>
3796
3797 <attribute name="hardwareVersion" type="wstring">
3798 <desc>Hardware version identifier. Internal use only for now.</desc>
3799 </attribute>
3800
3801 <attribute name="hardwareUUID" type="uuid" mod="string">
3802 <desc>
3803 The UUID presented to the guest via memory tables, hardware and guest
3804 properties. For most VMs this is the same as the @a id, but for VMs
3805 which have been cloned or teleported it may be the same as the source
3806 VM. This latter is because the guest shouldn't notice that it was
3807 cloned or teleported.
3808 </desc>
3809 </attribute>
3810
3811 <attribute name="CPUCount" type="unsigned long">
3812 <desc>Number of virtual CPUs in the VM.</desc>
3813 </attribute>
3814
3815 <attribute name="CPUHotPlugEnabled" type="boolean">
3816 <desc>
3817 This setting determines whether VirtualBox allows CPU
3818 hotplugging for this machine.</desc>
3819 </attribute>
3820
3821 <attribute name="CPUExecutionCap" type="unsigned long">
3822 <desc>
3823 Means to limit the number of CPU cycles a guest can use. The unit
3824 is percentage of host CPU cycles per second. The valid range
3825 is 1 - 100. 100 (the default) implies no limit.
3826 </desc>
3827 </attribute>
3828
3829 <attribute name="memorySize" type="unsigned long">
3830 <desc>System memory size in megabytes.</desc>
3831 </attribute>
3832
3833 <attribute name="memoryBalloonSize" type="unsigned long">
3834 <desc>Memory balloon size in megabytes.</desc>
3835 </attribute>
3836
3837 <attribute name="pageFusionEnabled" type="boolean">
3838 <desc>
3839 This setting determines whether VirtualBox allows page
3840 fusion for this machine (64 bits host only).
3841 </desc>
3842 </attribute>
3843
3844 <attribute name="VRAMSize" type="unsigned long">
3845 <desc>Video memory size in megabytes.</desc>
3846 </attribute>
3847
3848 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3849 <desc>
3850 This setting determines whether VirtualBox allows this machine to make
3851 use of the 3D graphics support available on the host.</desc>
3852 </attribute>
3853
3854 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
3855 <desc>
3856 This setting determines whether VirtualBox allows this machine to make
3857 use of the 2D video acceleration support available on the host.</desc>
3858 </attribute>
3859
3860 <attribute name="monitorCount" type="unsigned long">
3861 <desc>
3862 Number of virtual monitors.
3863 <note>
3864 Only effective on Windows XP and later guests with
3865 Guest Additions installed.
3866 </note>
3867 </desc>
3868 </attribute>
3869
3870 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3871 <desc>Object containing all BIOS settings.</desc>
3872 </attribute>
3873
3874 <attribute name="firmwareType" type="FirmwareType">
3875 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
3876 bootstrap in this VM.</desc>
3877 </attribute>
3878
3879 <attribute name="pointingHidType" type="PointingHidType">
3880 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
3881 The default is typically "PS2Mouse" but can vary depending on the
3882 requirements of the guest operating system.</desc>
3883 </attribute>
3884
3885 <attribute name="keyboardHidType" type="KeyboardHidType">
3886 <desc>Type of keyboard HID used in this VM.
3887 The default is typically "PS2Keyboard" but can vary depending on the
3888 requirements of the guest operating system.</desc>
3889 </attribute>
3890
3891 <attribute name="hpetEnabled" type="boolean">
3892 <desc>This attribute controls if High Precision Event Timer (HPET) is
3893 enabled in this VM. Use this property if you want to provide guests
3894 with additional time source, or if guest requires HPET to function correctly.
3895 Default is false.</desc>
3896 </attribute>
3897
3898 <attribute name="chipsetType" type="ChipsetType">
3899 <desc>Chipset type used in this VM.</desc>
3900 </attribute>
3901
3902 <attribute name="snapshotFolder" type="wstring">
3903 <desc>
3904 Full path to the directory used to store snapshot data
3905 (differencing media and saved state files) of this machine.
3906
3907 The initial value of this property is
3908 <tt>&lt;</tt><link to="#settingsFilePath">
3909 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3910 <link to="#id">machine_uuid</link>
3911 <tt>&gt;</tt>.
3912
3913 Currently, it is an error to try to change this property on
3914 a machine that has snapshots (because this would require to
3915 move possibly large files to a different location).
3916 A separate method will be available for this purpose later.
3917
3918 <note>
3919 Setting this property to @c null or to an empty string will restore
3920 the initial value.
3921 </note>
3922 <note>
3923 When setting this property, the specified path can be
3924 absolute (full path) or relative to the directory where the
3925 <link to="#settingsFilePath">machine settings file</link>
3926 is located. When reading this property, a full path is
3927 always returned.
3928 </note>
3929 <note>
3930 The specified path may not exist, it will be created
3931 when necessary.
3932 </note>
3933 </desc>
3934 </attribute>
3935
3936 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
3937 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
3938 </attribute>
3939
3940 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
3941 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
3942
3943 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
3944 <desc>Array of media attached to this machine.</desc>
3945 </attribute>
3946
3947 <attribute name="USBController" type="IUSBController" readonly="yes">
3948 <desc>
3949 Associated USB controller object.
3950
3951 <note>
3952 If USB functionality is not available in the given edition of
3953 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3954 </note>
3955 </desc>
3956 </attribute>
3957
3958 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3959 <desc>Associated audio adapter, always present.</desc>
3960 </attribute>
3961
3962 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
3963 <desc>Array of storage controllers attached to this machine.</desc>
3964 </attribute>
3965
3966 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3967 <desc>
3968 Full name of the file containing machine settings data.
3969 </desc>
3970 </attribute>
3971
3972 <attribute name="settingsModified" type="boolean" readonly="yes">
3973 <desc>
3974 Whether the settings of this machine have been modified
3975 (but neither yet saved nor discarded).
3976 <note>
3977 Reading this property is only valid on instances returned
3978 by <link to="ISession::machine"/> and on new machines
3979 created by <link to="IVirtualBox::createMachine"/> or opened
3980 by <link to="IVirtualBox::openMachine"/> but not
3981 yet registered, or on unregistered machines after calling
3982 <link to="IMachine::unregister"/>. For all other
3983 cases, the settings can never be modified.
3984 </note>
3985 <note>
3986 For newly created unregistered machines, the value of this
3987 property is always @c true until <link to="#saveSettings"/>
3988 is called (no matter if any machine settings have been
3989 changed after the creation or not). For opened machines
3990 the value is set to @c false (and then follows to normal rules).
3991 </note>
3992 </desc>
3993 </attribute>
3994
3995 <attribute name="sessionState" type="SessionState" readonly="yes">
3996 <desc>Current session state for this machine.</desc>
3997 </attribute>
3998
3999 <attribute name="sessionType" type="wstring" readonly="yes">
4000 <desc>
4001 Type of the session. If <link to="#sessionState"/> is
4002 Spawning or Locked, this attribute contains the
4003 same value as passed to the
4004 <link to="IMachine::launchVMProcess"/> method in the
4005 @a type parameter. If the session was used with
4006 <link to="IMachine::lockMachine" />, or if
4007 <link to="#sessionState"/> is SessionClosed, the value of this
4008 attribute is an empty string.
4009 </desc>
4010 </attribute>
4011
4012 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4013 <desc>
4014 Identifier of the session process. This attribute contains the
4015 platform-dependent identifier of the process whose session was
4016 used with <link to="IMachine::lockMachine" /> call. The returned
4017 value is only valid if <link to="#sessionState"/> is Locked or
4018 Unlocking by the time this property is read.
4019 </desc>
4020 </attribute>
4021
4022 <attribute name="state" type="MachineState" readonly="yes">
4023 <desc>Current execution state of this machine.</desc>
4024 </attribute>
4025
4026 <attribute name="lastStateChange" type="long long" readonly="yes">
4027 <desc>
4028 Time stamp of the last execution state change,
4029 in milliseconds since 1970-01-01 UTC.
4030 </desc>
4031 </attribute>
4032
4033 <attribute name="stateFilePath" type="wstring" readonly="yes">
4034 <desc>
4035 Full path to the file that stores the execution state of
4036 the machine when it is in the <link to="MachineState_Saved"/> state.
4037 <note>
4038 When the machine is not in the Saved state, this attribute is
4039 an empty string.
4040 </note>
4041 </desc>
4042 </attribute>
4043
4044 <attribute name="logFolder" type="wstring" readonly="yes">
4045 <desc>
4046 Full path to the folder that stores a set of rotated log files
4047 recorded during machine execution. The most recent log file is
4048 named <tt>VBox.log</tt>, the previous log file is
4049 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4050 in the current version).
4051 </desc>
4052 </attribute>
4053
4054 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4055 <desc>
4056 Current snapshot of this machine. This is @c null if the machine
4057 currently has no snapshots. If it is not @c null, then it was
4058 set by one of <link to="IConsole::takeSnapshot" />,
4059 <link to="IConsole::deleteSnapshot" />
4060 or <link to="IConsole::restoreSnapshot" />, depending on which
4061 was called last. See <link to="ISnapshot"/> for details.
4062 </desc>
4063 </attribute>
4064
4065 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4066 <desc>
4067 Number of snapshots taken on this machine. Zero means the
4068 machine doesn't have any snapshots.
4069 </desc>
4070 </attribute>
4071
4072 <attribute name="currentStateModified" type="boolean" readonly="yes">
4073 <desc>
4074 Returns @c true if the current state of the machine is not
4075 identical to the state stored in the current snapshot.
4076
4077 The current state is identical to the current snapshot only
4078 directly after one of the following calls are made:
4079
4080 <ul>
4081 <li><link to="IConsole::restoreSnapshot"/>
4082 </li>
4083 <li><link to="IConsole::takeSnapshot"/> (issued on a
4084 "powered off" or "saved" machine, for which
4085 <link to="#settingsModified"/> returns @c false)
4086 </li>
4087 </ul>
4088
4089 The current state remains identical until one of the following
4090 happens:
4091 <ul>
4092 <li>settings of the machine are changed</li>
4093 <li>the saved state is deleted</li>
4094 <li>the current snapshot is deleted</li>
4095 <li>an attempt to execute the machine is made</li>
4096 </ul>
4097
4098 <note>
4099 For machines that don't have snapshots, this property is
4100 always @c false.
4101 </note>
4102 </desc>
4103 </attribute>
4104
4105 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4106 <desc>
4107 Collection of shared folders for this machine (permanent shared
4108 folders). These folders are shared automatically at machine startup
4109 and available only to the guest OS installed within this machine.
4110
4111 New shared folders are added to the collection using
4112 <link to="#createSharedFolder"/>. Existing shared folders can be
4113 removed using <link to="#removeSharedFolder"/>.
4114 </desc>
4115 </attribute>
4116
4117 <attribute name="clipboardMode" type="ClipboardMode">
4118 <desc>
4119 Synchronization mode between the host OS clipboard
4120 and the guest OS clipboard.
4121 </desc>
4122 </attribute>
4123
4124 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4125 <desc>
4126 A comma-separated list of simple glob patterns. Changes to guest
4127 properties whose name matches one of the patterns will generate an
4128 <link to="IGuestPropertyChangedEvent"/> signal.
4129 </desc>
4130 </attribute>
4131
4132 <attribute name="teleporterEnabled" type="boolean">
4133 <desc>
4134 When set to @a true, the virtual machine becomes a target teleporter
4135 the next time it is powered on. This can only set to @a true when the
4136 VM is in the @a PoweredOff or @a Aborted state.
4137
4138 <!-- This property is automatically set to @a false when the VM is powered
4139 on. (bird: This doesn't work yet ) -->
4140 </desc>
4141 </attribute>
4142
4143 <attribute name="teleporterPort" type="unsigned long">
4144 <desc>
4145 The TCP port the target teleporter will listen for incoming
4146 teleportations on.
4147
4148 0 means the port is automatically selected upon power on. The actual
4149 value can be read from this property while the machine is waiting for
4150 incoming teleportations.
4151 </desc>
4152 </attribute>
4153
4154 <attribute name="teleporterAddress" type="wstring">
4155 <desc>
4156 The address the target teleporter will listen on. If set to an empty
4157 string, it will listen on all addresses.
4158 </desc>
4159 </attribute>
4160
4161 <attribute name="teleporterPassword" type="wstring">
4162 <desc>
4163 The password to check for on the target teleporter. This is just a
4164 very basic measure to prevent simple hacks and operators accidentally
4165 beaming a virtual machine to the wrong place.
4166 </desc>
4167 </attribute>
4168
4169 <attribute name="faultToleranceState" type="FaultToleranceState">
4170 <desc>
4171 Fault tolerance state; disabled, source or target.
4172 This property can be changed at any time. If you change it for a running
4173 VM, then the fault tolerance address and port must be set beforehand.
4174 </desc>
4175 </attribute>
4176
4177 <attribute name="faultTolerancePort" type="unsigned long">
4178 <desc>
4179 The TCP port the fault tolerance source or target will use for
4180 communication.
4181 </desc>
4182 </attribute>
4183
4184 <attribute name="faultToleranceAddress" type="wstring">
4185 <desc>
4186 The address the fault tolerance source or target.
4187 </desc>
4188 </attribute>
4189
4190 <attribute name="faultTolerancePassword" type="wstring">
4191 <desc>
4192 The password to check for on the standby VM. This is just a
4193 very basic measure to prevent simple hacks and operators accidentally
4194 choosing the wrong standby VM.
4195 </desc>
4196 </attribute>
4197
4198 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4199 <desc>
4200 The interval in ms used for syncing the state between source and target.
4201 </desc>
4202 </attribute>
4203
4204 <attribute name="RTCUseUTC" type="boolean">
4205 <desc>
4206 When set to @a true, the RTC device of the virtual machine will run
4207 in UTC time, otherwise in local time. Especially Unix guests prefer
4208 the time in UTC.
4209 </desc>
4210 </attribute>
4211
4212 <attribute name="ioCacheEnabled" type="boolean">
4213 <desc>
4214 When set to @a true, the builtin I/O cache of the virtual machine
4215 will be enabled.
4216 </desc>
4217 </attribute>
4218
4219 <attribute name="ioCacheSize" type="unsigned long">
4220 <desc>
4221 Maximum size of the I/O cache in MB.
4222 </desc>
4223 </attribute>
4224
4225 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4226 <desc>
4227 Bandwidth control manager.
4228 </desc>
4229 </attribute>
4230
4231 <attribute name="pciDeviceAssignments" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
4232 <desc>Array of PCI devices assigned to this machine, to get list of all
4233 PCI devices attached to the machine use
4234 <link to="IConsole::attachedPciDevices"/> attribute, as this attribute
4235 is intended to list only devices additional to what described in
4236 virtual hardware config. Usually, this list keeps host's physical
4237 devices assigned to the particular machine.
4238 </desc>
4239 </attribute>
4240
4241 <method name="lockMachine">
4242 <desc>
4243 Locks the machine for the given session to enable the caller
4244 to make changes to the machine or start the VM or control
4245 VM execution.
4246
4247 There are two ways to lock a machine for such uses:
4248
4249 <ul>
4250 <li>If you want to make changes to the machine settings,
4251 you must obtain an exclusive write lock on the machine
4252 by setting @a lockType to @c Write.
4253
4254 This will only succeed if no other process has locked
4255 the machine to prevent conflicting changes. Only after
4256 an exclusive write lock has been obtained using this method, one
4257 can change all VM settings or execute the VM in the process
4258 space of the session object. (Note that the latter is only of
4259 interest if you actually want to write a new front-end for
4260 virtual machines; but this API gets called internally by
4261 the existing front-ends such as VBoxHeadless and the VirtualBox
4262 GUI to acquire a write lock on the machine that they are running.)
4263
4264 On success, write-locking the machine for a session creates
4265 a second copy of the IMachine object. It is this second object
4266 upon which changes can be made; in VirtualBox terminology, the
4267 second copy is "mutable". It is only this second, mutable machine
4268 object upon which you can call methods that change the
4269 machine state. After having called this method, you can
4270 obtain this second, mutable machine object using the
4271 <link to="ISession::machine" /> attribute.
4272 </li>
4273 <li>If you only want to check the machine state or control
4274 machine execution without actually changing machine
4275 settings (e.g. to get access to VM statistics or take
4276 a snapshot or save the machine state), then set the
4277 @a lockType argument to @c Shared.
4278
4279 If no other session has obtained a lock, you will obtain an
4280 exclusive write lock as described above. However, if another
4281 session has already obtained such a lock, then a link to that
4282 existing session will be established which allows you
4283 to control that existing session.
4284
4285 To find out which type of lock was obtained, you can
4286 inspect <link to="ISession::type" />, which will have been
4287 set to either @c WriteLock or @c Shared.
4288 </li>
4289 </ul>
4290
4291 In either case, you can get access to the <link to="IConsole" />
4292 object which controls VM execution.
4293
4294 Also in all of the above cases, one must always call
4295 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4296 the machine's state will eventually be set to "Aborted".
4297
4298 To change settings on a machine, the following sequence is typically
4299 performed:
4300
4301 <ol>
4302 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4303
4304 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4305
4306 <li>Change the settings of the machine by invoking IMachine methods.</li>
4307
4308 <li>Call <link to="IMachine::saveSettings" />.</li>
4309
4310 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4311 </ol>
4312
4313 <result name="E_UNEXPECTED">
4314 Virtual machine not registered.
4315 </result>
4316 <result name="E_ACCESSDENIED">
4317 Process not started by OpenRemoteSession.
4318 </result>
4319 <result name="VBOX_E_INVALID_OBJECT_STATE">
4320 Session already open or being opened.
4321 </result>
4322 <result name="VBOX_E_VM_ERROR">
4323 Failed to assign machine to session.
4324 </result>
4325 </desc>
4326 <param name="session" type="ISession" dir="in">
4327 <desc>
4328 Session object for which the machine will be locked.
4329 </desc>
4330 </param>
4331 <param name="lockType" type="LockType" dir="in">
4332 <desc>
4333 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4334 If set to @c Shared, then either acquire an exclusive write lock or establish
4335 a link to an existing session.
4336 </desc>
4337 </param>
4338 </method>
4339
4340 <method name="launchVMProcess">
4341 <desc>
4342 Spawns a new process that will execute the virtual machine and obtains a shared
4343 lock on the machine for the calling session.
4344
4345 If launching the VM succeeds, the new VM process will create its own session
4346 and write-lock the machine for it, preventing conflicting changes from other
4347 processes. If the machine is already locked (because it is already running or
4348 because another session has a write lock), launching the VM process will therefore
4349 fail. Reversely, future attempts to obtain a write lock will also fail while the
4350 machine is running.
4351
4352 The caller's session object remains separate from the session opened by the new
4353 VM process. It receives its own <link to="IConsole" /> object which can be used
4354 to control machine execution, but it cannot be used to change all VM settings
4355 which would be available after a <link to="#lockMachine" /> call.
4356
4357 The caller must eventually release the session's shared lock by calling
4358 <link to="ISession::unlockMachine" /> on the local session object once this call
4359 has returned. However, the session's state (see <link to="ISession::state" />)
4360 will not return to "Unlocked" until the remote session has also unlocked
4361 the machine (i.e. the machine has stopped running).
4362
4363 Launching a VM process can take some time (a new VM is started in a new process,
4364 for which memory and other resources need to be set up). Because of this,
4365 an <link to="IProgress" /> object is returned to allow the caller to wait
4366 for this asynchronous operation to be completed. Until then, the caller's
4367 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4368 and <link to="ISession::console" /> attributes cannot be accessed.
4369 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4370 similar calls to wait for completion. Completion is signalled when the VM
4371 is powered on. If launching the VM fails, error messages can be queried
4372 via the progress object, if available.
4373
4374 The progress object will have at least 2 sub-operations. The first
4375 operation covers the period up to the new VM process calls powerUp.
4376 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4377 progress object. Because <link to="IConsole::powerUp"/> may require
4378 some extra sub-operations, the <link to="IProgress::operationCount"/>
4379 may change at the completion of operation.
4380
4381 For details on the teleportation progress operation, see
4382 <link to="IConsole::powerUp"/>.
4383
4384 The @a environment argument is a string containing definitions of
4385 environment variables in the following format:
4386 <pre>
4387 NAME[=VALUE]\n
4388 NAME[=VALUE]\n
4389 ...
4390 </pre>
4391 where <tt>\\n</tt> is the new line character. These environment
4392 variables will be appended to the environment of the VirtualBox server
4393 process. If an environment variable exists both in the server process
4394 and in this list, the value from this list takes precedence over the
4395 server's variable. If the value of the environment variable is
4396 omitted, this variable will be removed from the resulting environment.
4397 If the environment string is @c null or empty, the server environment
4398 is inherited by the started process as is.
4399
4400 <result name="E_UNEXPECTED">
4401 Virtual machine not registered.
4402 </result>
4403 <result name="E_INVALIDARG">
4404 Invalid session type @a type.
4405 </result>
4406 <result name="VBOX_E_OBJECT_NOT_FOUND">
4407 No machine matching @a machineId found.
4408 </result>
4409 <result name="VBOX_E_INVALID_OBJECT_STATE">
4410 Session already open or being opened.
4411 </result>
4412 <result name="VBOX_E_IPRT_ERROR">
4413 Launching process for machine failed.
4414 </result>
4415 <result name="VBOX_E_VM_ERROR">
4416 Failed to assign machine to session.
4417 </result>
4418 </desc>
4419 <param name="session" type="ISession" dir="in">
4420 <desc>
4421 Client session object to which the VM process will be connected (this
4422 must be in "Unlocked" state).
4423 </desc>
4424 </param>
4425 <param name="type" type="wstring" dir="in">
4426 <desc>
4427 Front-end to use for the new VM process. The following are currently supported:
4428 <ul>
4429 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4430 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4431 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4432 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4433 the currently running VM or session owner. In this case the
4434 @a session parameter may be @c NULL (if it is non-null it isn't
4435 used in any way), and the @a progress return value will be always
4436 NULL. The operation completes immediately.</li>
4437 </ul>
4438 </desc>
4439 </param>
4440 <param name="environment" type="wstring" dir="in">
4441 <desc>
4442 Environment to pass to the VM process.
4443 </desc>
4444 </param>
4445 <param name="progress" type="IProgress" dir="return">
4446 <desc>Progress object to track the operation completion.</desc>
4447 </param>
4448 </method>
4449
4450 <method name="setBootOrder">
4451 <desc>
4452 Puts the given device to the specified position in
4453 the boot order.
4454
4455 To indicate that no device is associated with the given position,
4456 <link to="DeviceType_Null"/> should be used.
4457
4458 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4459
4460 <result name="E_INVALIDARG">
4461 Boot @a position out of range.
4462 </result>
4463 <result name="E_NOTIMPL">
4464 Booting from USB @a device currently not supported.
4465 </result>
4466
4467 </desc>
4468 <param name="position" type="unsigned long" dir="in">
4469 <desc>
4470 Position in the boot order (@c 1 to the total number of
4471 devices the machine can boot from, as returned by
4472 <link to="ISystemProperties::maxBootPosition"/>).
4473 </desc>
4474 </param>
4475 <param name="device" type="DeviceType" dir="in">
4476 <desc>
4477 The type of the device used to boot at the given position.
4478 </desc>
4479 </param>
4480 </method>
4481
4482 <method name="getBootOrder" const="yes">
4483 <desc>
4484 Returns the device type that occupies the specified
4485 position in the boot order.
4486
4487 @todo [remove?]
4488 If the machine can have more than one device of the returned type
4489 (such as hard disks), then a separate method should be used to
4490 retrieve the individual device that occupies the given position.
4491
4492 If here are no devices at the given position, then
4493 <link to="DeviceType_Null"/> is returned.
4494
4495 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4496
4497 <result name="E_INVALIDARG">
4498 Boot @a position out of range.
4499 </result>
4500
4501 </desc>
4502 <param name="position" type="unsigned long" dir="in">
4503 <desc>
4504 Position in the boot order (@c 1 to the total number of
4505 devices the machine can boot from, as returned by
4506 <link to="ISystemProperties::maxBootPosition"/>).
4507 </desc>
4508 </param>
4509 <param name="device" type="DeviceType" dir="return">
4510 <desc>
4511 Device at the given position.
4512 </desc>
4513 </param>
4514 </method>
4515
4516 <method name="attachDevice">
4517 <desc>
4518 Attaches a device and optionally mounts a medium to the given storage
4519 controller (<link to="IStorageController" />, identified by @a name),
4520 at the indicated port and device.
4521
4522 This method is intended for managing storage devices in general while a
4523 machine is powered off. It can be used to attach and detach fixed
4524 and removable media. The following kind of media can be attached
4525 to a machine:
4526
4527 <ul>
4528 <li>For fixed and removable media, you can pass in a medium that was
4529 previously opened using <link to="IVirtualBox::openMedium" />.
4530 </li>
4531
4532 <li>Only for storage devices supporting removable media (such as
4533 DVDs and floppies), you can also specify a null pointer to
4534 indicate an empty drive or one of the medium objects listed
4535 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4536 arrays to indicate a host drive.
4537 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4538 to change the media while the machine is running.
4539 </li>
4540 </ul>
4541
4542 In a VM's default configuration of virtual machines, the secondary
4543 master of the IDE controller is used for a CD/DVD drive.
4544
4545 After calling this returns successfully, a new instance of
4546 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4547 attachments (see <link to="IMachine::mediumAttachments"/>).
4548
4549 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4550 information about attaching media.
4551
4552 The specified device slot must not have a device attached to it,
4553 or this method will fail.
4554
4555 <note>
4556 You cannot attach a device to a newly created machine until
4557 this machine's settings are saved to disk using
4558 <link to="#saveSettings"/>.
4559 </note>
4560 <note>
4561 If the medium is being attached indirectly, a new differencing medium
4562 will implicitly be created for it and attached instead. If the
4563 changes made to the machine settings (including this indirect
4564 attachment) are later cancelled using <link to="#discardSettings"/>,
4565 this implicitly created differencing medium will implicitly
4566 be deleted.
4567 </note>
4568
4569 <result name="E_INVALIDARG">
4570 SATA device, SATA port, IDE port or IDE slot out of range, or
4571 file or UUID not found.
4572 </result>
4573 <result name="VBOX_E_INVALID_OBJECT_STATE">
4574 Machine must be registered before media can be attached.
4575 </result>
4576 <result name="VBOX_E_INVALID_VM_STATE">
4577 Invalid machine state.
4578 </result>
4579 <result name="VBOX_E_OBJECT_IN_USE">
4580 A medium is already attached to this or another virtual machine.
4581 </result>
4582
4583 </desc>
4584 <param name="name" type="wstring" dir="in">
4585 <desc>Name of the storage controller to attach the device to.</desc>
4586 </param>
4587 <param name="controllerPort" type="long" dir="in">
4588 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4589 the primary controller and 1 specifies the secondary controller.
4590 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4591 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4592 </param>
4593 <param name="device" type="long" dir="in">
4594 <desc>Device slot in the given port to attach the device to. This is only
4595 relevant for IDE controllers, for which 0 specifies the master device and
4596 1 specifies the slave device. For all other controller types, this must
4597 be 0.</desc>
4598 </param>
4599 <param name="type" type="DeviceType" dir="in">
4600 <desc>Device type of the attached device. For media opened by
4601 <link to="IVirtualBox::openMedium" />, this must match the device type
4602 specified there.</desc>
4603 </param>
4604 <param name="medium" type="IMedium" dir="in">
4605 <desc>Medium to mount or NULL for an empty drive.</desc>
4606 </param>
4607 </method>
4608
4609 <method name="detachDevice">
4610 <desc>
4611 Detaches the device attached to a device slot of the specified bus.
4612
4613 Detaching the device from the virtual machine is deferred. This means
4614 that the medium remains associated with the machine when this method
4615 returns and gets actually de-associated only after a successful
4616 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4617 for more detailed information about attaching media.
4618
4619 <note>
4620 You cannot detach a device from a running machine.
4621 </note>
4622 <note>
4623 Detaching differencing media implicitly created by <link
4624 to="#attachDevice"/> for the indirect attachment using this
4625 method will <b>not</b> implicitly delete them. The
4626 <link to="IMedium::deleteStorage"/> operation should be
4627 explicitly performed by the caller after the medium is successfully
4628 detached and the settings are saved with
4629 <link to="#saveSettings"/>, if it is the desired action.
4630 </note>
4631
4632 <result name="VBOX_E_INVALID_VM_STATE">
4633 Attempt to detach medium from a running virtual machine.
4634 </result>
4635 <result name="VBOX_E_OBJECT_NOT_FOUND">
4636 No medium attached to given slot/bus.
4637 </result>
4638 <result name="VBOX_E_NOT_SUPPORTED">
4639 Medium format does not support storage deletion.
4640 </result>
4641
4642 </desc>
4643 <param name="name" type="wstring" dir="in">
4644 <desc>Name of the storage controller to detach the medium from.</desc>
4645 </param>
4646 <param name="controllerPort" type="long" dir="in">
4647 <desc>Port number to detach the medium from.</desc>
4648 </param>
4649 <param name="device" type="long" dir="in">
4650 <desc>Device slot number to detach the medium from.</desc>
4651 </param>
4652 </method>
4653
4654 <method name="passthroughDevice">
4655 <desc>
4656 Sets the passthrough mode of an existing DVD device. Changing the
4657 setting while the VM is running is forbidden. The setting is only used
4658 if at VM start the device is configured as a host DVD drive, in all
4659 other cases it is ignored. The device must already exist; see
4660 <link to="IMachine::attachDevice"/> for how to attach a new device.
4661
4662 The @a controllerPort and @a device parameters specify the device slot and
4663 have have the same meaning as with <link to="IMachine::attachDevice" />.
4664
4665 <result name="E_INVALIDARG">
4666 SATA device, SATA port, IDE port or IDE slot out of range.
4667 </result>
4668 <result name="VBOX_E_INVALID_OBJECT_STATE">
4669 Attempt to modify an unregistered virtual machine.
4670 </result>
4671 <result name="VBOX_E_INVALID_VM_STATE">
4672 Invalid machine state.
4673 </result>
4674
4675 </desc>
4676 <param name="name" type="wstring" dir="in">
4677 <desc>Name of the storage controller.</desc>
4678 </param>
4679 <param name="controllerPort" type="long" dir="in">
4680 <desc>Storage controller port.</desc>
4681 </param>
4682 <param name="device" type="long" dir="in">
4683 <desc>Device slot in the given port.</desc>
4684 </param>
4685 <param name="passthrough" type="boolean" dir="in">
4686 <desc>New value for the passthrough setting.</desc>
4687 </param>
4688 </method>
4689
4690 <method name="temporaryEjectDevice">
4691 <desc>
4692 Sets the behavior for guest-triggered medium eject. In some situations
4693 it is desirable that such ejects update the VM configuration, and in
4694 others the eject should keep the VM configuration. The device must
4695 already exist; see <link to="IMachine::attachDevice"/> for how to
4696 attach a new device.
4697
4698 The @a controllerPort and @a device parameters specify the device slot and
4699 have have the same meaning as with <link to="IMachine::attachDevice" />.
4700
4701 <result name="E_INVALIDARG">
4702 SATA device, SATA port, IDE port or IDE slot out of range.
4703 </result>
4704 <result name="VBOX_E_INVALID_OBJECT_STATE">
4705 Attempt to modify an unregistered virtual machine.
4706 </result>
4707 <result name="VBOX_E_INVALID_VM_STATE">
4708 Invalid machine state.
4709 </result>
4710
4711 </desc>
4712 <param name="name" type="wstring" dir="in">
4713 <desc>Name of the storage controller.</desc>
4714 </param>
4715 <param name="controllerPort" type="long" dir="in">
4716 <desc>Storage controller port.</desc>
4717 </param>
4718 <param name="device" type="long" dir="in">
4719 <desc>Device slot in the given port.</desc>
4720 </param>
4721 <param name="temporaryEject" type="boolean" dir="in">
4722 <desc>New value for the eject behavior.</desc>
4723 </param>
4724 </method>
4725
4726 <method name="nonRotationalDevice">
4727 <desc>
4728 Sets a flag in the device information which indicates that the medium
4729 is not based on rotational technology, i.e. that the access times are
4730 more or less independent of the position on the medium. This may or may
4731 not be supported by a particular drive, and is silently ignored in the
4732 latter case. At the moment only hard disks (which is a misnomer in this
4733 context) accept this setting. Changing the setting while the VM is
4734 running is forbidden. The device must already exist; see
4735 <link to="IMachine::attachDevice"/> for how to attach a new device.
4736
4737 The @a controllerPort and @a device parameters specify the device slot and
4738 have have the same meaning as with <link to="IMachine::attachDevice" />.
4739
4740 <result name="E_INVALIDARG">
4741 SATA device, SATA port, IDE port or IDE slot out of range.
4742 </result>
4743 <result name="VBOX_E_INVALID_OBJECT_STATE">
4744 Attempt to modify an unregistered virtual machine.
4745 </result>
4746 <result name="VBOX_E_INVALID_VM_STATE">
4747 Invalid machine state.
4748 </result>
4749
4750 </desc>
4751 <param name="name" type="wstring" dir="in">
4752 <desc>Name of the storage controller.</desc>
4753 </param>
4754 <param name="controllerPort" type="long" dir="in">
4755 <desc>Storage controller port.</desc>
4756 </param>
4757 <param name="device" type="long" dir="in">
4758 <desc>Device slot in the given port.</desc>
4759 </param>
4760 <param name="nonRotational" type="boolean" dir="in">
4761 <desc>New value for the non-rotational device flag.</desc>
4762 </param>
4763 </method>
4764
4765 <method name="setBandwidthGroupForDevice">
4766 <desc>
4767 Sets the bandwidth group of an existing storage device.
4768 The device must already exist; see <link to="IMachine::attachDevice"/>
4769 for how to attach a new device.
4770
4771 The @a controllerPort and @a device parameters specify the device slot and
4772 have have the same meaning as with <link to="IMachine::attachDevice" />.
4773
4774 <result name="E_INVALIDARG">
4775 SATA device, SATA port, IDE port or IDE slot out of range.
4776 </result>
4777 <result name="VBOX_E_INVALID_OBJECT_STATE">
4778 Attempt to modify an unregistered virtual machine.
4779 </result>
4780 <result name="VBOX_E_INVALID_VM_STATE">
4781 Invalid machine state.
4782 </result>
4783
4784 </desc>
4785 <param name="name" type="wstring" dir="in">
4786 <desc>Name of the storage controller.</desc>
4787 </param>
4788 <param name="controllerPort" type="long" dir="in">
4789 <desc>Storage controller port.</desc>
4790 </param>
4791 <param name="device" type="long" dir="in">
4792 <desc>Device slot in the given port.</desc>
4793 </param>
4794 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
4795 <desc>New value for the bandwidth group or NULL for no group.</desc>
4796 </param>
4797 </method>
4798
4799 <method name="mountMedium">
4800 <desc>
4801 Mounts a medium (<link to="IMedium" />, identified
4802 by the given UUID @a id) to the given storage controller
4803 (<link to="IStorageController" />, identified by @a name),
4804 at the indicated port and device. The device must already exist;
4805 see <link to="IMachine::attachDevice"/> for how to attach a new device.
4806
4807 This method is intended only for managing removable media, where the
4808 device is fixed but media is changeable at runtime (such as DVDs
4809 and floppies). It cannot be used for fixed media such as hard disks.
4810
4811 The @a controllerPort and @a device parameters specify the device slot and
4812 have have the same meaning as with <link to="IMachine::attachDevice" />.
4813
4814 The specified device slot can have a medium mounted, which will be
4815 unmounted first. Specifying a zero UUID (or an empty string) for
4816 @a medium does just an unmount.
4817
4818 See <link to="IMedium"/> for more detailed information about
4819 attaching media.
4820
4821 <result name="E_INVALIDARG">
4822 SATA device, SATA port, IDE port or IDE slot out of range.
4823 </result>
4824 <result name="VBOX_E_INVALID_OBJECT_STATE">
4825 Attempt to attach medium to an unregistered virtual machine.
4826 </result>
4827 <result name="VBOX_E_INVALID_VM_STATE">
4828 Invalid machine state.
4829 </result>
4830 <result name="VBOX_E_OBJECT_IN_USE">
4831 Medium already attached to this or another virtual machine.
4832 </result>
4833
4834 </desc>
4835 <param name="name" type="wstring" dir="in">
4836 <desc>Name of the storage controller to attach the medium to.</desc>
4837 </param>
4838 <param name="controllerPort" type="long" dir="in">
4839 <desc>Port to attach the medium to.</desc>
4840 </param>
4841 <param name="device" type="long" dir="in">
4842 <desc>Device slot in the given port to attach the medium to.</desc>
4843 </param>
4844 <param name="medium" type="IMedium" dir="in">
4845 <desc>Medium to mount or NULL for an empty drive.</desc>
4846 </param>
4847 <param name="force" type="boolean" dir="in">
4848 <desc>Allows to force unmount/mount of a medium which is locked by
4849 the device slot in the given port to attach the medium to.</desc>
4850 </param>
4851 </method>
4852
4853 <method name="getMedium" const="yes">
4854 <desc>
4855 Returns the virtual medium attached to a device slot of the specified
4856 bus.
4857
4858 Note that if the medium was indirectly attached by
4859 <link to="#mountMedium"/> to the given device slot then this
4860 method will return not the same object as passed to the
4861 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
4862 more detailed information about mounting a medium.
4863
4864 <result name="VBOX_E_OBJECT_NOT_FOUND">
4865 No medium attached to given slot/bus.
4866 </result>
4867
4868 </desc>
4869 <param name="name" type="wstring" dir="in">
4870 <desc>Name of the storage controller the medium is attached to.</desc>
4871 </param>
4872 <param name="controllerPort" type="long" dir="in">
4873 <desc>Port to query.</desc>
4874 </param>
4875 <param name="device" type="long" dir="in">
4876 <desc>Device slot in the given port to query.</desc>
4877 </param>
4878 <param name="medium" type="IMedium" dir="return">
4879 <desc>Attached medium object.</desc>
4880 </param>
4881 </method>
4882
4883 <method name="getMediumAttachmentsOfController" const="yes">
4884 <desc>
4885 Returns an array of medium attachments which are attached to the
4886 the controller with the given name.
4887
4888 <result name="VBOX_E_OBJECT_NOT_FOUND">
4889 A storage controller with given name doesn't exist.
4890 </result>
4891 </desc>
4892 <param name="name" type="wstring" dir="in"/>
4893 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
4894 </method>
4895
4896 <method name="getMediumAttachment" const="yes">
4897 <desc>
4898 Returns a medium attachment which corresponds to the controller with
4899 the given name, on the given port and device slot.
4900
4901 <result name="VBOX_E_OBJECT_NOT_FOUND">
4902 No attachment exists for the given controller/port/device combination.
4903 </result>
4904 </desc>
4905 <param name="name" type="wstring" dir="in"/>
4906 <param name="controllerPort" type="long" dir="in"/>
4907 <param name="device" type="long" dir="in"/>
4908 <param name="attachment" type="IMediumAttachment" dir="return"/>
4909 </method>
4910
4911 <method name="attachHostPciDevice">
4912 <desc>
4913 Attaches host PCI device with the given (host) PCI address to the
4914 PCI bus of the virtual machine. Please note, that this operation
4915 is two phase, as real attachment will happen when VM will start,
4916 and most information will be delivered as IHostPciDevicePlugEvent
4917 on IVirtualBox event source.
4918
4919 <see><link to="IHostPciDevicePlugEvent"/></see>
4920
4921 <result name="VBOX_E_INVALID_VM_STATE">
4922 Virtual machine state is not stopped (PCI hotplug not yet implemented).
4923 </result>
4924 <result name="VBOX_E_PDM_ERROR">
4925 Virtual machine does not have a PCI controller allowing attachment of physical devices.
4926 </result>
4927 <result name="VBOX_E_NOT_SUPPORTED">
4928 Hardware or host OS doesn't allow PCI device passthrought.
4929 </result>
4930 </desc>
4931 <param name="hostAddress" type="long" dir="in">
4932 <desc>Address of the host PCI device.</desc>
4933 </param>
4934 <param name="desiredGuestAddress" type="long" dir="in">
4935 <desc>Desired position of this device on guest PCI bus.</desc>
4936 </param>
4937 <param name="tryToUnbind" type="boolean" dir="in">
4938 <desc>If VMM shall try to unbind existing drivers from the
4939 device before attaching it to the guest.</desc>
4940 </param>
4941 </method>
4942
4943 <method name="detachHostPciDevice">
4944 <desc>
4945 Detach host PCI device from the virtual machine.
4946 Also HostPciDevicePlugEvent on IVirtualBox event source
4947 will be delivered. As currently we don't support hot device
4948 unplug, IHostPciDevicePlugEvent event is delivered immediately.
4949
4950 <see><link to="IHostPciDevicePlugEvent"/></see>
4951
4952 <result name="VBOX_E_INVALID_VM_STATE">
4953 Virtual machine state is not stopped (PCI hotplug not yet implemented).
4954 </result>
4955 <result name="VBOX_E_OBJECT_NOT_FOUND">
4956 This host device is not attached to this machine.
4957 </result>
4958 <result name="VBOX_E_PDM_ERROR">
4959 Virtual machine does not have a PCI controller allowing attachment of physical devices.
4960 </result>
4961 <result name="VBOX_E_NOT_SUPPORTED">
4962 Hardware or host OS doesn't allow PCI device passthrought.
4963 </result>
4964 </desc>
4965 <param name="hostAddress" type="long" dir="in">
4966 <desc>Address of the host PCI device.</desc>
4967 </param>
4968 </method>
4969
4970 <method name="getNetworkAdapter" const="yes">
4971 <desc>
4972 Returns the network adapter associated with the given slot.
4973 Slots are numbered sequentially, starting with zero. The total
4974 number of adapters per machine is defined by the
4975 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
4976 so the maximum slot number is one less than that property's value.
4977
4978 <result name="E_INVALIDARG">
4979 Invalid @a slot number.
4980 </result>
4981
4982 </desc>
4983 <param name="slot" type="unsigned long" dir="in"/>
4984 <param name="adapter" type="INetworkAdapter" dir="return"/>
4985 </method>
4986
4987 <method name="addStorageController">
4988 <desc>
4989 Adds a new storage controller (SCSI, SAS or SATA controller) to the
4990 machine and returns it as an instance of
4991 <link to="IStorageController" />.
4992
4993 @a name identifies the controller for subsequent calls such as
4994 <link to="#getStorageControllerByName" />,
4995 <link to="#getStorageControllerByInstance" />,
4996 <link to="#removeStorageController" />,
4997 <link to="#attachDevice" /> or <link to="#mountMedium" />.
4998
4999 After the controller has been added, you can set its exact
5000 type by setting the <link to="IStorageController::controllerType" />.
5001
5002 <result name="VBOX_E_OBJECT_IN_USE">
5003 A storage controller with given name exists already.
5004 </result>
5005 <result name="E_INVALIDARG">
5006 Invalid @a controllerType.
5007 </result>
5008 </desc>
5009 <param name="name" type="wstring" dir="in"/>
5010 <param name="connectionType" type="StorageBus" dir="in"/>
5011 <param name="controller" type="IStorageController" dir="return"/>
5012 </method>
5013
5014 <method name="getStorageControllerByName" const="yes">
5015 <desc>
5016 Returns a storage controller with the given name.
5017
5018 <result name="VBOX_E_OBJECT_NOT_FOUND">
5019 A storage controller with given name doesn't exist.
5020 </result>
5021 </desc>
5022 <param name="name" type="wstring" dir="in"/>
5023 <param name="storageController" type="IStorageController" dir="return"/>
5024 </method>
5025
5026 <method name="getStorageControllerByInstance" const="yes">
5027 <desc>
5028 Returns a storage controller with the given instance number.
5029
5030 <result name="VBOX_E_OBJECT_NOT_FOUND">
5031 A storage controller with given instance number doesn't exist.
5032 </result>
5033 </desc>
5034 <param name="instance" type="unsigned long" dir="in"/>
5035 <param name="storageController" type="IStorageController" dir="return"/>
5036 </method>
5037
5038 <method name="removeStorageController">
5039 <desc>
5040 Removes a storage controller from the machine.
5041
5042 <result name="VBOX_E_OBJECT_NOT_FOUND">
5043 A storage controller with given name doesn't exist.
5044 </result>
5045 </desc>
5046 <param name="name" type="wstring" dir="in"/>
5047 </method>
5048
5049 <method name="setStorageControllerBootable">
5050 <desc>
5051 Sets the bootable flag of the storage controller with the given name.
5052
5053 <result name="VBOX_E_OBJECT_NOT_FOUND">
5054 A storage controller with given name doesn't exist.
5055 </result>
5056 <result name="VBOX_E_OBJECT_IN_USE">
5057 Another storage controller is marked as bootable already.
5058 </result>
5059 </desc>
5060 <param name="name" type="wstring" dir="in"/>
5061 <param name="bootable" type="boolean" dir="in"/>
5062 </method>
5063
5064 <method name="getSerialPort" const="yes">
5065 <desc>
5066 Returns the serial port associated with the given slot.
5067 Slots are numbered sequentially, starting with zero. The total
5068 number of serial ports per machine is defined by the
5069 <link to="ISystemProperties::serialPortCount"/> property,
5070 so the maximum slot number is one less than that property's value.
5071
5072 <result name="E_INVALIDARG">
5073 Invalid @a slot number.
5074 </result>
5075
5076 </desc>
5077 <param name="slot" type="unsigned long" dir="in"/>
5078 <param name="port" type="ISerialPort" dir="return"/>
5079 </method>
5080
5081 <method name="getParallelPort" const="yes">
5082 <desc>
5083 Returns the parallel port associated with the given slot.
5084 Slots are numbered sequentially, starting with zero. The total
5085 number of parallel ports per machine is defined by the
5086 <link to="ISystemProperties::parallelPortCount"/> property,
5087 so the maximum slot number is one less than that property's value.
5088
5089 <result name="E_INVALIDARG">
5090 Invalid @a slot number.
5091 </result>
5092
5093 </desc>
5094 <param name="slot" type="unsigned long" dir="in"/>
5095 <param name="port" type="IParallelPort" dir="return"/>
5096 </method>
5097
5098 <method name="getExtraDataKeys">
5099 <desc>
5100 Returns an array representing the machine-specific extra data keys
5101 which currently have values defined.
5102 </desc>
5103 <param name="value" type="wstring" dir="return" safearray="yes">
5104 <desc>Array of extra data keys.</desc>
5105 </param>
5106 </method>
5107
5108 <method name="getExtraData">
5109 <desc>
5110 Returns associated machine-specific extra data.
5111
5112 If the requested data @a key does not exist, this function will
5113 succeed and return an empty string in the @a value argument.
5114
5115 <result name="VBOX_E_FILE_ERROR">
5116 Settings file not accessible.
5117 </result>
5118 <result name="VBOX_E_XML_ERROR">
5119 Could not parse the settings file.
5120 </result>
5121
5122 </desc>
5123 <param name="key" type="wstring" dir="in">
5124 <desc>Name of the data key to get.</desc>
5125 </param>
5126 <param name="value" type="wstring" dir="return">
5127 <desc>Value of the requested data key.</desc>
5128 </param>
5129 </method>
5130
5131 <method name="setExtraData">
5132 <desc>
5133 Sets associated machine-specific extra data.
5134
5135 If you pass @c null or an empty string as a key @a value, the given
5136 @a key will be deleted.
5137
5138 <note>
5139 Before performing the actual data change, this method will ask all
5140 registered listeners using the
5141 <link to="IExtraDataCanChangeEvent"/>
5142 notification for a permission. If one of the listeners refuses the
5143 new value, the change will not be performed.
5144 </note>
5145 <note>
5146 On success, the
5147 <link to="IExtraDataChangedEvent"/> notification
5148 is called to inform all registered listeners about a successful data
5149 change.
5150 </note>
5151 <note>
5152 This method can be called outside the machine session and therefore
5153 it's a caller's responsibility to handle possible race conditions
5154 when several clients change the same key at the same time.
5155 </note>
5156
5157 <result name="VBOX_E_FILE_ERROR">
5158 Settings file not accessible.
5159 </result>
5160 <result name="VBOX_E_XML_ERROR">
5161 Could not parse the settings file.
5162 </result>
5163
5164 </desc>
5165 <param name="key" type="wstring" dir="in">
5166 <desc>Name of the data key to set.</desc>
5167 </param>
5168 <param name="value" type="wstring" dir="in">
5169 <desc>Value to assign to the key.</desc>
5170 </param>
5171 </method>
5172
5173 <method name="getCPUProperty" const="yes">
5174 <desc>
5175 Returns the virtual CPU boolean value of the specified property.
5176
5177 <result name="E_INVALIDARG">
5178 Invalid property.
5179 </result>
5180
5181 </desc>
5182 <param name="property" type="CPUPropertyType" dir="in">
5183 <desc>
5184 Property type to query.
5185 </desc>
5186 </param>
5187 <param name="value" type="boolean" dir="return">
5188 <desc>
5189 Property value.
5190 </desc>
5191 </param>
5192 </method>
5193
5194 <method name="setCPUProperty">
5195 <desc>
5196 Sets the virtual CPU boolean value of the specified property.
5197
5198 <result name="E_INVALIDARG">
5199 Invalid property.
5200 </result>
5201
5202 </desc>
5203 <param name="property" type="CPUPropertyType" dir="in">
5204 <desc>
5205 Property type to query.
5206 </desc>
5207 </param>
5208 <param name="value" type="boolean" dir="in">
5209 <desc>
5210 Property value.
5211 </desc>
5212 </param>
5213 </method>
5214
5215 <method name="getCPUIDLeaf" const="yes">
5216 <desc>
5217 Returns the virtual CPU cpuid information for the specified leaf.
5218
5219 Currently supported index values for cpuid:
5220 Standard CPUID leafs: 0 - 0xA
5221 Extended CPUID leafs: 0x80000000 - 0x8000000A
5222
5223 See the Intel and AMD programmer's manuals for detailed information
5224 about the cpuid instruction and its leafs.
5225 <result name="E_INVALIDARG">
5226 Invalid id.
5227 </result>
5228
5229 </desc>
5230 <param name="id" type="unsigned long" dir="in">
5231 <desc>
5232 CPUID leaf index.
5233 </desc>
5234 </param>
5235 <param name="valEax" type="unsigned long" dir="out">
5236 <desc>
5237 CPUID leaf value for register eax.
5238 </desc>
5239 </param>
5240 <param name="valEbx" type="unsigned long" dir="out">
5241 <desc>
5242 CPUID leaf value for register ebx.
5243 </desc>
5244 </param>
5245 <param name="valEcx" type="unsigned long" dir="out">
5246 <desc>
5247 CPUID leaf value for register ecx.
5248 </desc>
5249 </param>
5250 <param name="valEdx" type="unsigned long" dir="out">
5251 <desc>
5252 CPUID leaf value for register edx.
5253 </desc>
5254 </param>
5255 </method>
5256
5257 <method name="setCPUIDLeaf">
5258 <desc>
5259 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5260 are not passed unmodified. VirtualBox clears features that it doesn't support.
5261
5262 Currently supported index values for cpuid:
5263 Standard CPUID leafs: 0 - 0xA
5264 Extended CPUID leafs: 0x80000000 - 0x8000000A
5265
5266 See the Intel and AMD programmer's manuals for detailed information
5267 about the cpuid instruction and its leafs.
5268
5269 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5270 random crashes inside VMs.
5271 <result name="E_INVALIDARG">
5272 Invalid id.
5273 </result>
5274
5275 </desc>
5276 <param name="id" type="unsigned long" dir="in">
5277 <desc>
5278 CPUID leaf index.
5279 </desc>
5280 </param>
5281 <param name="valEax" type="unsigned long" dir="in">
5282 <desc>
5283 CPUID leaf value for register eax.
5284 </desc>
5285 </param>
5286 <param name="valEbx" type="unsigned long" dir="in">
5287 <desc>
5288 CPUID leaf value for register ebx.
5289 </desc>
5290 </param>
5291 <param name="valEcx" type="unsigned long" dir="in">
5292 <desc>
5293 CPUID leaf value for register ecx.
5294 </desc>
5295 </param>
5296 <param name="valEdx" type="unsigned long" dir="in">
5297 <desc>
5298 CPUID leaf value for register edx.
5299 </desc>
5300 </param>
5301 </method>
5302
5303 <method name="removeCPUIDLeaf">
5304 <desc>
5305 Removes the virtual CPU cpuid leaf for the specified index
5306
5307 <result name="E_INVALIDARG">
5308 Invalid id.
5309 </result>
5310
5311 </desc>
5312 <param name="id" type="unsigned long" dir="in">
5313 <desc>
5314 CPUID leaf index.
5315 </desc>
5316 </param>
5317 </method>
5318
5319 <method name="removeAllCPUIDLeaves">
5320 <desc>
5321 Removes all the virtual CPU cpuid leaves
5322 </desc>
5323 </method>
5324
5325 <method name="getHWVirtExProperty" const="yes">
5326 <desc>
5327 Returns the value of the specified hardware virtualization boolean property.
5328
5329 <result name="E_INVALIDARG">
5330 Invalid property.
5331 </result>
5332
5333 </desc>
5334 <param name="property" type="HWVirtExPropertyType" dir="in">
5335 <desc>
5336 Property type to query.
5337 </desc>
5338 </param>
5339 <param name="value" type="boolean" dir="return">
5340 <desc>
5341 Property value.
5342 </desc>
5343 </param>
5344 </method>
5345
5346 <method name="setHWVirtExProperty">
5347 <desc>
5348 Sets a new value for the specified hardware virtualization boolean property.
5349
5350 <result name="E_INVALIDARG">
5351 Invalid property.
5352 </result>
5353
5354 </desc>
5355 <param name="property" type="HWVirtExPropertyType" dir="in">
5356 <desc>
5357 Property type to set.
5358 </desc>
5359 </param>
5360 <param name="value" type="boolean" dir="in">
5361 <desc>
5362 New property value.
5363 </desc>
5364 </param>
5365 </method>
5366
5367 <method name="saveSettings">
5368 <desc>
5369 Saves any changes to machine settings made since the session
5370 has been opened or a new machine has been created, or since the
5371 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5372 For registered machines, new settings become visible to all
5373 other VirtualBox clients after successful invocation of this
5374 method.
5375 <note>
5376 The method sends <link to="IMachineDataChangedEvent"/>
5377 notification event after the configuration has been successfully
5378 saved (only for registered machines).
5379 </note>
5380 <note>
5381 Calling this method is only valid on instances returned
5382 by <link to="ISession::machine"/> and on new machines
5383 created by <link to="IVirtualBox::createMachine"/> but not
5384 yet registered, or on unregistered machines after calling
5385 <link to="IMachine::unregister"/>.
5386 </note>
5387
5388 <result name="VBOX_E_FILE_ERROR">
5389 Settings file not accessible.
5390 </result>
5391 <result name="VBOX_E_XML_ERROR">
5392 Could not parse the settings file.
5393 </result>
5394 <result name="E_ACCESSDENIED">
5395 Modification request refused.
5396 </result>
5397
5398 </desc>
5399 </method>
5400
5401 <method name="discardSettings">
5402 <desc>
5403 Discards any changes to the machine settings made since the session
5404 has been opened or since the last call to <link to="#saveSettings"/>
5405 or <link to="#discardSettings"/>.
5406 <note>
5407 Calling this method is only valid on instances returned
5408 by <link to="ISession::machine"/> and on new machines
5409 created by <link to="IVirtualBox::createMachine"/> or
5410 opened by <link to="IVirtualBox::openMachine"/> but not
5411 yet registered, or on unregistered machines after calling
5412 <link to="IMachine::unregister"/>.
5413 </note>
5414
5415 <result name="VBOX_E_INVALID_VM_STATE">
5416 Virtual machine is not mutable.
5417 </result>
5418
5419 </desc>
5420 </method>
5421
5422 <method name="unregister">
5423 <desc>
5424 Unregisters a machine previously registered with
5425 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5426 cleanup before the machine is unregistered.
5427
5428 This method does not delete any files. It only changes the machine configuration and
5429 the list of registered machines in the VirtualBox object. To delete the files which
5430 belonged to the machine, including the XML file of the machine itself, call
5431 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5432 from this method.
5433
5434 How thoroughly this method cleans up the machine configuration before unregistering
5435 the machine depends on the @a cleanupMode argument.
5436
5437 <ul>
5438 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5439 cleanup will be performed. The call will fail if the machine is in "Saved" state
5440 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5441 It is the responsibility of the caller to delete all such configuration in this mode.
5442 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5443 which it replaces.</li>
5444 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5445 state or if it has snapshots or media attached. All media attached to the current machine
5446 state or in snapshots will be detached. No medium objects will be returned;
5447 all of the machine's media will remain open.</li>
5448 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5449 except that all the hard disk medium objects which were detached from the machine will
5450 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5451 API for closing and deletion.</li>
5452 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5453 that all media will be returned in the array, including removable media like DVDs and
5454 floppies. This might be useful if the user wants to inspect in detail which media were
5455 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5456 in that case because users will typically want to preserve ISO and RAW image files.</li>
5457 </ul>
5458
5459 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5460 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5461 deleted with all its saved states and hard disk images, but images for removable
5462 drives (such as ISO and RAW files) will remain on disk.
5463
5464 This API does not verify whether the media files returned in the array are still
5465 attached to other machines (i.e. shared between several machines). If such a shared
5466 image is passed to <link to="#delete" /> however, closing the image will fail there
5467 and the image will be silently skipped.
5468
5469 This API may, however, move media from this machine's media registry to other media
5470 registries (see <link to="IMedium" /> for details on media registries). For machines
5471 created with VirtualBox 4.0 or later, if media from this machine's media registry
5472 are also attached to another machine (shared attachments), each such medium will be
5473 moved to another machine's registry. This is because without this machine's media
5474 registry, the other machine cannot find its media any more and would become inaccessible.
5475
5476 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5477 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5478 if media are moved to other machines' media registries.
5479
5480 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5481 is fired.
5482
5483 The call will fail if the machine is currently locked (see <link to="ISession" />).
5484
5485 <note>
5486 If the given machine is inaccessible (see <link to="#accessible"/>), it
5487 will be unregistered and fully uninitialized right afterwards. As a result,
5488 the returned machine object will be unusable and an attempt to call
5489 <b>any</b> method will return the "Object not ready" error.
5490 </note>
5491
5492 <result name="VBOX_E_INVALID_OBJECT_STATE">
5493 Machine is currently locked for a session.
5494 </result>
5495 </desc>
5496
5497 <param name="cleanupMode" type="CleanupMode" dir="in">
5498 <desc>How to clean up after the machine has been unregistered.</desc>
5499 </param>
5500 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5501 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5502 </param>
5503 </method>
5504
5505 <method name="delete">
5506 <desc>
5507 Deletes the files associated with this machine from disk. If medium objects are passed
5508 in with the @a aMedia argument, they are closed and, if closing was successful, their
5509 storage files are deleted as well. For convenience, this array of media files can be
5510 the same as the one returned from a previous <link to="#unregister" /> call.
5511
5512 This method must only be called on machines which are either write-locked (i.e. on instances
5513 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5514 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5515 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5516
5517 The following files will be deleted by this method:
5518 <ul>
5519 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5520 argument other than "UnregisterOnly", this will delete all saved state files that
5521 the machine had in use; possibly one if the machine was in "Saved" state and one
5522 for each online snapshot that the machine had.</li>
5523 <li>On each medium object passed in the @a aMedia array, this will call
5524 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5525 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
5526 in use, e.g. because it is still attached to a second machine; in that case the
5527 storage will not be deleted.</li>
5528 <li>Finally, the machine's own XML file will be deleted.</li>
5529 </ul>
5530
5531 Since deleting large disk image files can be a time-consuming I/O operation, this
5532 method operates asynchronously and returns an IProgress object to allow the caller
5533 to monitor the progress. There will be one sub-operation for each file that is
5534 being deleted (saved state or medium storage file).
5535
5536 <note>
5537 <link to="#settingsModified"/> will return @c true after this
5538 method successfully returns.
5539 </note>
5540
5541 <result name="VBOX_E_INVALID_VM_STATE">
5542 Machine is registered but not write-locked.
5543 </result>
5544 <result name="VBOX_E_IPRT_ERROR">
5545 Could not delete the settings file.
5546 </result>
5547 </desc>
5548 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5549 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5550 </param>
5551 <param name="aProgress" type="IProgress" dir="return">
5552 <desc>Progress object to track the operation completion.</desc>
5553 </param>
5554 </method>
5555
5556 <method name="export">
5557 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5558 steps required to export VirtualBox machines to OVF.
5559 </desc>
5560
5561 <param name="aAppliance" type="IAppliance" dir="in">
5562 <desc>Appliance to export this machine to.</desc>
5563 </param>
5564 <param name="location" type="wstring" dir="in">
5565 <desc>The target location.</desc>
5566 </param>
5567 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5568 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5569 </param>
5570 </method >
5571
5572 <method name="findSnapshot">
5573 <desc>
5574 Returns a snapshot of this machine with the given name or UUID.
5575
5576 Returns a snapshot of this machine with the given UUID.
5577 A @c null argument can be used to obtain the first snapshot
5578 taken on this machine. To traverse the whole tree of snapshots
5579 starting from the root, inspect the root snapshot's
5580 <link to="ISnapshot::children" /> attribute and recurse over those children.
5581
5582 <result name="VBOX_E_OBJECT_NOT_FOUND">
5583 Virtual machine has no snapshots or snapshot not found.
5584 </result>
5585
5586 </desc>
5587 <param name="nameOrId" type="wstring" dir="in">
5588 <desc>What to search for. Name or UUID of the snapshot to find</desc>
5589 </param>
5590 <param name="snapshot" type="ISnapshot" dir="return">
5591 <desc>Snapshot object with the given name.</desc>
5592 </param>
5593 </method>
5594
5595 <method name="createSharedFolder">
5596 <desc>
5597 Creates a new permanent shared folder by associating the given logical
5598 name with the given host path, adds it to the collection of shared
5599 folders and starts sharing it. Refer to the description of
5600 <link to="ISharedFolder"/> to read more about logical names.
5601
5602 <result name="VBOX_E_OBJECT_IN_USE">
5603 Shared folder already exists.
5604 </result>
5605 <result name="VBOX_E_FILE_ERROR">
5606 Shared folder @a hostPath not accessible.
5607 </result>
5608
5609 </desc>
5610 <param name="name" type="wstring" dir="in">
5611 <desc>Unique logical name of the shared folder.</desc>
5612 </param>
5613 <param name="hostPath" type="wstring" dir="in">
5614 <desc>Full path to the shared folder in the host file system.</desc>
5615 </param>
5616 <param name="writable" type="boolean" dir="in">
5617 <desc>Whether the share is writable or readonly.</desc>
5618 </param>
5619 <param name="automount" type="boolean" dir="in">
5620 <desc>Whether the share gets automatically mounted by the guest
5621 or not.</desc>
5622 </param>
5623 </method>
5624
5625 <method name="removeSharedFolder">
5626 <desc>
5627 Removes the permanent shared folder with the given name previously
5628 created by <link to="#createSharedFolder"/> from the collection of
5629 shared folders and stops sharing it.
5630
5631 <result name="VBOX_E_INVALID_VM_STATE">
5632 Virtual machine is not mutable.
5633 </result>
5634 <result name="VBOX_E_OBJECT_NOT_FOUND">
5635 Shared folder @a name does not exist.
5636 </result>
5637
5638 </desc>
5639 <param name="name" type="wstring" dir="in">
5640 <desc>Logical name of the shared folder to remove.</desc>
5641 </param>
5642 </method>
5643
5644 <method name="canShowConsoleWindow">
5645 <desc>
5646 Returns @c true if the VM console process can activate the
5647 console window and bring it to foreground on the desktop of
5648 the host PC.
5649 <note>
5650 This method will fail if a session for this machine is not
5651 currently open.
5652 </note>
5653
5654 <result name="VBOX_E_INVALID_VM_STATE">
5655 Machine session is not open.
5656 </result>
5657
5658 </desc>
5659 <param name="canShow" type="boolean" dir="return">
5660 <desc>
5661 @c true if the console window can be shown and @c false otherwise.
5662 </desc>
5663 </param>
5664 </method>
5665
5666 <method name="showConsoleWindow">
5667 <desc>
5668 Activates the console window and brings it to foreground on
5669 the desktop of the host PC. Many modern window managers on
5670 many platforms implement some sort of focus stealing
5671 prevention logic, so that it may be impossible to activate
5672 a window without the help of the currently active
5673 application. In this case, this method will return a non-zero
5674 identifier that represents the top-level window of the VM
5675 console process. The caller, if it represents a currently
5676 active process, is responsible to use this identifier (in a
5677 platform-dependent manner) to perform actual window
5678 activation.
5679 <note>
5680 This method will fail if a session for this machine is not
5681 currently open.
5682 </note>
5683
5684 <result name="VBOX_E_INVALID_VM_STATE">
5685 Machine session is not open.
5686 </result>
5687
5688 </desc>
5689 <param name="winId" type="long long" dir="return">
5690 <desc>
5691 Platform-dependent identifier of the top-level VM console
5692 window, or zero if this method has performed all actions
5693 necessary to implement the <i>show window</i> semantics for
5694 the given platform and/or VirtualBox front-end.
5695 </desc>
5696 </param>
5697 </method>
5698
5699 <method name="getGuestProperty" const="yes">
5700 <desc>
5701 Reads an entry from the machine's guest property store.
5702
5703 <result name="VBOX_E_INVALID_VM_STATE">
5704 Machine session is not open.
5705 </result>
5706
5707 </desc>
5708 <param name="name" type="wstring" dir="in">
5709 <desc>
5710 The name of the property to read.
5711 </desc>
5712 </param>
5713 <param name="value" type="wstring" dir="out">
5714 <desc>
5715 The value of the property. If the property does not exist then this
5716 will be empty.
5717 </desc>
5718 </param>
5719 <param name="timestamp" type="long long" dir="out">
5720 <desc>
5721 The time at which the property was last modified, as seen by the
5722 server process.
5723 </desc>
5724 </param>
5725 <param name="flags" type="wstring" dir="out">
5726 <desc>
5727 Additional property parameters, passed as a comma-separated list of
5728 "name=value" type entries.
5729 </desc>
5730 </param>
5731 </method>
5732
5733 <method name="getGuestPropertyValue" const="yes">
5734 <desc>
5735 Reads a value from the machine's guest property store.
5736
5737 <result name="VBOX_E_INVALID_VM_STATE">
5738 Machine session is not open.
5739 </result>
5740
5741 </desc>
5742 <param name="property" type="wstring" dir="in">
5743 <desc>
5744 The name of the property to read.
5745 </desc>
5746 </param>
5747 <param name="value" type="wstring" dir="return">
5748 <desc>
5749 The value of the property. If the property does not exist then this
5750 will be empty.
5751 </desc>
5752 </param>
5753 </method>
5754
5755 <method name="getGuestPropertyTimestamp" const="yes">
5756 <desc>
5757 Reads a property timestamp from the machine's guest property store.
5758
5759 <result name="VBOX_E_INVALID_VM_STATE">
5760 Machine session is not open.
5761 </result>
5762
5763 </desc>
5764 <param name="property" type="wstring" dir="in">
5765 <desc>
5766 The name of the property to read.
5767 </desc>
5768 </param>
5769 <param name="value" type="long long" dir="return">
5770 <desc>
5771 The timestamp. If the property does not exist then this will be
5772 empty.
5773 </desc>
5774 </param>
5775 </method>
5776
5777 <method name="setGuestProperty">
5778 <desc>
5779 Sets, changes or deletes an entry in the machine's guest property
5780 store.
5781
5782 <result name="E_ACCESSDENIED">
5783 Property cannot be changed.
5784 </result>
5785 <result name="E_INVALIDARG">
5786 Invalid @a flags.
5787 </result>
5788 <result name="VBOX_E_INVALID_VM_STATE">
5789 Virtual machine is not mutable or session not open.
5790 </result>
5791 <result name="VBOX_E_INVALID_OBJECT_STATE">
5792 Cannot set transient property when machine not running.
5793 </result>
5794
5795 </desc>
5796 <param name="property" type="wstring" dir="in">
5797 <desc>
5798 The name of the property to set, change or delete.
5799 </desc>
5800 </param>
5801 <param name="value" type="wstring" dir="in">
5802 <desc>
5803 The new value of the property to set, change or delete. If the
5804 property does not yet exist and value is non-empty, it will be
5805 created. If the value is @c null or empty, the property will be
5806 deleted if it exists.
5807 </desc>
5808 </param>
5809 <param name="flags" type="wstring" dir="in">
5810 <desc>
5811 Additional property parameters, passed as a comma-separated list of
5812 "name=value" type entries.
5813 </desc>
5814 </param>
5815 </method>
5816
5817 <method name="setGuestPropertyValue">
5818 <desc>
5819 Sets, changes or deletes a value in the machine's guest property
5820 store. The flags field will be left unchanged or created empty for a
5821 new property.
5822
5823 <result name="E_ACCESSDENIED">
5824 Property cannot be changed.
5825 </result>
5826 <result name="VBOX_E_INVALID_VM_STATE">
5827 Virtual machine is not mutable or session not open.
5828 </result>
5829 <result name="VBOX_E_INVALID_OBJECT_STATE">
5830 Cannot set transient property when machine not running.
5831 </result>
5832 </desc>
5833
5834 <param name="property" type="wstring" dir="in">
5835 <desc>
5836 The name of the property to set, change or delete.
5837 </desc>
5838 </param>
5839 <param name="value" type="wstring" dir="in">
5840 <desc>
5841 The new value of the property to set, change or delete. If the
5842 property does not yet exist and value is non-empty, it will be
5843 created. If the value is @c null or empty, the property will be
5844 deleted if it exists.
5845 </desc>
5846 </param>
5847 </method>
5848
5849 <method name="enumerateGuestProperties" const="yes">
5850 <desc>
5851 Return a list of the guest properties matching a set of patterns along
5852 with their values, time stamps and flags.
5853 </desc>
5854 <param name="patterns" type="wstring" dir="in">
5855 <desc>
5856 The patterns to match the properties against, separated by '|'
5857 characters. If this is empty or @c null, all properties will match.
5858 </desc>
5859 </param>
5860 <param name="name" type="wstring" dir="out" safearray="yes">
5861 <desc>
5862 The names of the properties returned.
5863 </desc>
5864 </param>
5865 <param name="value" type="wstring" dir="out" safearray="yes">
5866 <desc>
5867 The values of the properties returned. The array entries match the
5868 corresponding entries in the @a name array.
5869 </desc>
5870 </param>
5871 <param name="timestamp" type="long long" dir="out" safearray="yes">
5872 <desc>
5873 The time stamps of the properties returned. The array entries match
5874 the corresponding entries in the @a name array.
5875 </desc>
5876 </param>
5877 <param name="flags" type="wstring" dir="out" safearray="yes">
5878 <desc>
5879 The flags of the properties returned. The array entries match the
5880 corresponding entries in the @a name array.
5881 </desc>
5882 </param>
5883 </method>
5884
5885 <method name="querySavedGuestSize" const="yes">
5886 <desc>
5887 Returns the guest dimensions from the saved state.
5888 </desc>
5889 <param name="screenId" type="unsigned long" dir="in">
5890 <desc>
5891 Saved guest screen to query info from.
5892 </desc>
5893 </param>
5894 <param name="width" type="unsigned long" dir="out">
5895 <desc>
5896 Guest width at the time of the saved state was taken.
5897 </desc>
5898 </param>
5899 <param name="height" type="unsigned long" dir="out">
5900 <desc>
5901 Guest height at the time of the saved state was taken.
5902 </desc>
5903 </param>
5904 </method>
5905
5906 <method name="querySavedThumbnailSize">
5907 <desc>
5908 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
5909 </desc>
5910 <param name="screenId" type="unsigned long" dir="in">
5911 <desc>
5912 Saved guest screen to query info from.
5913 </desc>
5914 </param>
5915 <param name="size" type="unsigned long" dir="out">
5916 <desc>
5917 Size of buffer required to store the bitmap.
5918 </desc>
5919 </param>
5920 <param name="width" type="unsigned long" dir="out">
5921 <desc>
5922 Bitmap width.
5923 </desc>
5924 </param>
5925 <param name="height" type="unsigned long" dir="out">
5926 <desc>
5927 Bitmap height.
5928 </desc>
5929 </param>
5930 </method>
5931
5932 <method name="readSavedThumbnailToArray">
5933 <desc>
5934 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
5935 </desc>
5936 <param name="screenId" type="unsigned long" dir="in">
5937 <desc>
5938 Saved guest screen to read from.
5939 </desc>
5940 </param>
5941 <param name="BGR" type="boolean" dir="in">
5942 <desc>
5943 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
5944 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
5945 </desc>
5946 </param>
5947 <param name="width" type="unsigned long" dir="out">
5948 <desc>
5949 Bitmap width.
5950 </desc>
5951 </param>
5952 <param name="height" type="unsigned long" dir="out">
5953 <desc>
5954 Bitmap height.
5955 </desc>
5956 </param>
5957 <param name="data" type="octet" safearray="yes" dir="return">
5958 <desc>
5959 Array with resulting bitmap data.
5960 </desc>
5961 </param>
5962 </method>
5963
5964 <method name="readSavedThumbnailPNGToArray">
5965 <desc>
5966 Thumbnail in PNG format is retrieved to an array of bytes.
5967 </desc>
5968 <param name="screenId" type="unsigned long" dir="in">
5969 <desc>
5970 Saved guest screen to read from.
5971 </desc>
5972 </param>
5973 <param name="width" type="unsigned long" dir="out">
5974 <desc>
5975 Image width.
5976 </desc>
5977 </param>
5978 <param name="height" type="unsigned long" dir="out">
5979 <desc>
5980 Image height.
5981 </desc>
5982 </param>
5983 <param name="data" type="octet" dir="return" safearray="yes">
5984 <desc>
5985 Array with resulting PNG data.
5986 </desc>
5987 </param>
5988 </method>
5989
5990 <method name="querySavedScreenshotPNGSize">
5991 <desc>
5992 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
5993 </desc>
5994 <param name="screenId" type="unsigned long" dir="in">
5995 <desc>
5996 Saved guest screen to query info from.
5997 </desc>
5998 </param>
5999 <param name="size" type="unsigned long" dir="out">
6000 <desc>
6001 Size of buffer required to store the PNG binary data.
6002 </desc>
6003 </param>
6004 <param name="width" type="unsigned long" dir="out">
6005 <desc>
6006 Image width.
6007 </desc>
6008 </param>
6009 <param name="height" type="unsigned long" dir="out">
6010 <desc>
6011 Image height.
6012 </desc>
6013 </param>
6014 </method>
6015
6016 <method name="readSavedScreenshotPNGToArray">
6017 <desc>
6018 Screenshot in PNG format is retrieved to an array of bytes.
6019 </desc>
6020 <param name="screenId" type="unsigned long" dir="in">
6021 <desc>
6022 Saved guest screen to read from.
6023 </desc>
6024 </param>
6025 <param name="width" type="unsigned long" dir="out">
6026 <desc>
6027 Image width.
6028 </desc>
6029 </param>
6030 <param name="height" type="unsigned long" dir="out">
6031 <desc>
6032 Image height.
6033 </desc>
6034 </param>
6035 <param name="data" type="octet" dir="return" safearray="yes">
6036 <desc>
6037 Array with resulting PNG data.
6038 </desc>
6039 </param>
6040 </method>
6041
6042 <method name="hotPlugCPU">
6043 <desc>
6044 Plugs a CPU into the machine.
6045 </desc>
6046 <param name="cpu" type="unsigned long" dir="in">
6047 <desc>
6048 The CPU id to insert.
6049 </desc>
6050 </param>
6051 </method>
6052
6053 <method name="hotUnplugCPU">
6054 <desc>
6055 Removes a CPU from the machine.
6056 </desc>
6057 <param name="cpu" type="unsigned long" dir="in">
6058 <desc>
6059 The CPU id to remove.
6060 </desc>
6061 </param>
6062 </method>
6063
6064 <method name="getCPUStatus">
6065 <desc>
6066 Returns the current status of the given CPU.
6067 </desc>
6068 <param name="cpu" type="unsigned long" dir="in">
6069 <desc>
6070 The CPU id to check for.
6071 </desc>
6072 </param>
6073 <param name="attached" type="boolean" dir="return">
6074 <desc>
6075 Status of the CPU.
6076 </desc>
6077 </param>
6078 </method>
6079
6080 <method name="queryLogFilename">
6081 <desc>
6082 Queries for the VM log file name of an given index. Returns an empty
6083 string if a log file with that index doesn't exists.
6084 </desc>
6085 <param name="idx" type="unsigned long" dir="in">
6086 <desc>
6087 Which log file name to query. 0=current log file.
6088 </desc>
6089 </param>
6090 <param name="filename" type="wstring" dir="return">
6091 <desc>
6092 On return the full path to the log file or an empty string on error.
6093 </desc>
6094 </param>
6095 </method>
6096
6097 <method name="readLog">
6098 <desc>
6099 Reads the VM log file. The chunk size is limited, so even if you
6100 ask for a big piece there might be less data returned.
6101 </desc>
6102 <param name="idx" type="unsigned long" dir="in">
6103 <desc>
6104 Which log file to read. 0=current log file.
6105 </desc>
6106 </param>
6107 <param name="offset" type="long long" dir="in">
6108 <desc>
6109 Offset in the log file.
6110 </desc>
6111 </param>
6112 <param name="size" type="long long" dir="in">
6113 <desc>
6114 Chunk size to read in the log file.
6115 </desc>
6116 </param>
6117 <param name="data" type="octet" dir="return" safearray="yes">
6118 <desc>
6119 Data read from the log file. A data size of 0 means end of file
6120 if the requested chunk size was not 0. This is the unprocessed
6121 file data, i.e. the line ending style depends on the platform of
6122 the system the server is running on.
6123 </desc>
6124 </param>
6125 </method>
6126
6127 <method name="cloneTo">
6128 <desc>
6129 Creates a clone of this machine, either as a full clone (which means
6130 creating independent copies of the hard disk media, save states and so
6131 on), or as a linked clone (which uses its own differencing media,
6132 sharing the parent media with the source machine).
6133
6134 The target machine object must have been created previously with <link
6135 to="IVirtualBox::createMachine"/>, and all the settings will be
6136 transferred except the VM name and the hardware UUID. You can set the
6137 VM name and the new hardware UUID when creating the target machine. The
6138 network MAC addresses are newly created for all newtwork adapters. You
6139 can change that behaviour with the options parameter. The operation is
6140 performed asynchronously, so the machine object will be not be usable
6141 until the @a progress object signals completion.
6142
6143 <result name="E_INVALIDARG">
6144 @a target is @c null.
6145 </result>
6146 </desc>
6147
6148 <param name="target" type="IMachine" dir="in">
6149 <desc>Target machine object.</desc>
6150 </param>
6151 <param name="mode" type="CloneMode" dir="in">
6152 <desc>Which states should be cloned.</desc>
6153 </param>
6154 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6155 <desc>Options for the cloning operation.</desc>
6156 </param>
6157 <param name="progress" type="IProgress" dir="return">
6158 <desc>Progress object to track the operation completion.</desc>
6159 </param>
6160 </method>
6161
6162 </interface>
6163
6164 <!--
6165 // IConsole
6166 /////////////////////////////////////////////////////////////////////////
6167 -->
6168
6169 <interface
6170 name="IVRDEServerInfo" extends="$unknown"
6171 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6172 wsmap="struct"
6173 >
6174 <desc>
6175 Contains information about the remote desktop (VRDE) server capabilities and status.
6176 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6177 </desc>
6178
6179 <attribute name="active" type="boolean" readonly="yes">
6180 <desc>
6181 Whether the remote desktop connection is active.
6182 </desc>
6183 </attribute>
6184
6185 <attribute name="port" type="long" readonly="yes">
6186 <desc>
6187 VRDE server port number. If this property is equal to <tt>0</tt>, then
6188 the VRDE server failed to start, usually because there are no free IP
6189 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6190 server has not yet been started.
6191 </desc>
6192 </attribute>
6193
6194 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6195 <desc>
6196 How many times a client connected.
6197 </desc>
6198 </attribute>
6199
6200 <attribute name="beginTime" type="long long" readonly="yes">
6201 <desc>
6202 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6203 </desc>
6204 </attribute>
6205
6206 <attribute name="endTime" type="long long" readonly="yes">
6207 <desc>
6208 When the last connection was terminated or the current time, if
6209 connection is still active, in milliseconds since 1970-01-01 UTC.
6210 </desc>
6211 </attribute>
6212
6213 <attribute name="bytesSent" type="long long" readonly="yes">
6214 <desc>
6215 How many bytes were sent in last or current, if still active, connection.
6216 </desc>
6217 </attribute>
6218
6219 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6220 <desc>
6221 How many bytes were sent in all connections.
6222 </desc>
6223 </attribute>
6224
6225 <attribute name="bytesReceived" type="long long" readonly="yes">
6226 <desc>
6227 How many bytes were received in last or current, if still active, connection.
6228 </desc>
6229 </attribute>
6230
6231 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6232 <desc>
6233 How many bytes were received in all connections.
6234 </desc>
6235 </attribute>
6236
6237 <attribute name="user" type="wstring" readonly="yes">
6238 <desc>
6239 Login user name supplied by the client.
6240 </desc>
6241 </attribute>
6242
6243 <attribute name="domain" type="wstring" readonly="yes">
6244 <desc>
6245 Login domain name supplied by the client.
6246 </desc>
6247 </attribute>
6248
6249 <attribute name="clientName" type="wstring" readonly="yes">
6250 <desc>
6251 The client name supplied by the client.
6252 </desc>
6253 </attribute>
6254
6255 <attribute name="clientIP" type="wstring" readonly="yes">
6256 <desc>
6257 The IP address of the client.
6258 </desc>
6259 </attribute>
6260
6261 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6262 <desc>
6263 The client software version number.
6264 </desc>
6265 </attribute>
6266
6267 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6268 <desc>
6269 Public key exchange method used when connection was established.
6270 Values: 0 - RDP4 public key exchange scheme.
6271 1 - X509 certificates were sent to client.
6272 </desc>
6273 </attribute>
6274
6275 </interface>
6276
6277 <interface
6278 name="IConsole" extends="$unknown"
6279 uuid="1968b7d3-e3bf-4ceb-99e0-cb7c913317bb"
6280 wsmap="managed"
6281 >
6282 <desc>
6283 The IConsole interface represents an interface to control virtual
6284 machine execution.
6285
6286 A console object gets created when a machine has been locked for a
6287 particular session (client process) using <link to="IMachine::lockMachine" />
6288 or <link to="IMachine::launchVMProcess"/>. The console object can
6289 then be found in the session's <link to="ISession::console" /> attribute.
6290
6291 Methods of the IConsole interface allow the caller to query the current
6292 virtual machine execution state, pause the machine or power it down, save
6293 the machine state or take a snapshot, attach and detach removable media
6294 and so on.
6295
6296 <see><link to="ISession"/></see>
6297 </desc>
6298
6299 <attribute name="machine" type="IMachine" readonly="yes">
6300 <desc>
6301 Machine object for this console session.
6302 <note>
6303 This is a convenience property, it has the same value as
6304 <link to="ISession::machine"/> of the corresponding session
6305 object.
6306 </note>
6307 </desc>
6308 </attribute>
6309
6310 <attribute name="state" type="MachineState" readonly="yes">
6311 <desc>
6312 Current execution state of the machine.
6313 <note>
6314 This property always returns the same value as the corresponding
6315 property of the IMachine object for this console session.
6316 For the process that owns (executes) the VM, this is the
6317 preferable way of querying the VM state, because no IPC
6318 calls are made.
6319 </note>
6320 </desc>
6321 </attribute>
6322
6323 <attribute name="guest" type="IGuest" readonly="yes">
6324 <desc>Guest object.</desc>
6325 </attribute>
6326
6327 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6328 <desc>
6329 Virtual keyboard object.
6330 <note>
6331 If the machine is not running, any attempt to use
6332 the returned object will result in an error.
6333 </note>
6334 </desc>
6335 </attribute>
6336
6337 <attribute name="mouse" type="IMouse" readonly="yes">
6338 <desc>
6339 Virtual mouse object.
6340 <note>
6341 If the machine is not running, any attempt to use
6342 the returned object will result in an error.
6343 </note>
6344 </desc>
6345 </attribute>
6346
6347 <attribute name="display" type="IDisplay" readonly="yes">
6348 <desc>Virtual display object.
6349 <note>
6350 If the machine is not running, any attempt to use
6351 the returned object will result in an error.
6352 </note>
6353 </desc>
6354 </attribute>
6355
6356 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6357 <desc>Debugging interface.</desc>
6358 </attribute>
6359
6360 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6361 <desc>
6362 Collection of USB devices currently attached to the virtual
6363 USB controller.
6364 <note>
6365 The collection is empty if the machine is not running.
6366 </note>
6367 </desc>
6368 </attribute>
6369
6370 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6371 <desc>
6372 List of USB devices currently attached to the remote VRDE client.
6373 Once a new device is physically attached to the remote host computer,
6374 it appears in this list and remains there until detached.
6375 </desc>
6376 </attribute>
6377
6378 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6379 <desc>
6380 Collection of shared folders for the current session. These folders
6381 are called transient shared folders because they are available to the
6382 guest OS running inside the associated virtual machine only for the
6383 duration of the session (as opposed to
6384 <link to="IMachine::sharedFolders"/> which represent permanent shared
6385 folders). When the session is closed (e.g. the machine is powered down),
6386 these folders are automatically discarded.
6387
6388 New shared folders are added to the collection using
6389 <link to="#createSharedFolder"/>. Existing shared folders can be
6390 removed using <link to="#removeSharedFolder"/>.
6391 </desc>
6392 </attribute>
6393
6394 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6395 <desc>
6396 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6397 </desc>
6398 </attribute>
6399
6400 <attribute name="eventSource" type="IEventSource" readonly="yes">
6401 <desc>
6402 Event source for console events.
6403 </desc>
6404 </attribute>
6405
6406 <attribute name="attachedPciDevices" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
6407 <desc>Array of PCI devices attached to this machine.</desc>
6408 </attribute>
6409
6410 <attribute name="useHostClipboard" type="boolean">
6411 <desc>
6412 Whether the guest clipboard should be connected to the host one or
6413 whether it should only be allowed access to the VRDE clipboard. This
6414 setting may not affect existing guest clipboard connections which
6415 are already connected to the host clipboard.
6416 </desc>
6417 </attribute>
6418
6419 <method name="powerUp">
6420 <desc>
6421 Starts the virtual machine execution using the current machine
6422 state (that is, its current execution state, current settings and
6423 current storage devices).
6424
6425 <note>
6426 This method is only useful for front-ends that want to actually
6427 execute virtual machines in their own process (like the VirtualBox
6428 or VBoxSDL front-ends). Unless you are intending to write such a
6429 front-end, do not call this method. If you simply want to
6430 start virtual machine execution using one of the existing front-ends
6431 (for example the VirtualBox GUI or headless server), use
6432 <link to="IMachine::launchVMProcess"/> instead; these
6433 front-ends will power up the machine automatically for you.
6434 </note>
6435
6436 If the machine is powered off or aborted, the execution will
6437 start from the beginning (as if the real hardware were just
6438 powered on).
6439
6440 If the machine is in the <link to="MachineState_Saved"/> state,
6441 it will continue its execution the point where the state has
6442 been saved.
6443
6444 If the machine <link to="IMachine::teleporterEnabled"/> property is
6445 enabled on the machine being powered up, the machine will wait for an
6446 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6447 state. The returned progress object will have at least three
6448 operations where the last three are defined as: (1) powering up and
6449 starting TCP server, (2) waiting for incoming teleportations, and
6450 (3) perform teleportation. These operations will be reflected as the
6451 last three operations of the progress objected returned by
6452 <link to="IMachine::launchVMProcess"/> as well.
6453
6454 <see><link to="#saveState"/></see>
6455
6456 <result name="VBOX_E_INVALID_VM_STATE">
6457 Virtual machine already running.
6458 </result>
6459 <result name="VBOX_E_HOST_ERROR">
6460 Host interface does not exist or name not set.
6461 </result>
6462 <result name="VBOX_E_FILE_ERROR">
6463 Invalid saved state file.
6464 </result>
6465 </desc>
6466 <param name="progress" type="IProgress" dir="return">
6467 <desc>Progress object to track the operation completion.</desc>
6468 </param>
6469 </method>
6470
6471 <method name="powerUpPaused">
6472 <desc>
6473 Identical to powerUp except that the VM will enter the
6474 <link to="MachineState_Paused"/> state, instead of
6475 <link to="MachineState_Running"/>.
6476
6477 <see><link to="#powerUp"/></see>
6478 <result name="VBOX_E_INVALID_VM_STATE">
6479 Virtual machine already running.
6480 </result>
6481 <result name="VBOX_E_HOST_ERROR">
6482 Host interface does not exist or name not set.
6483 </result>
6484 <result name="VBOX_E_FILE_ERROR">
6485 Invalid saved state file.
6486 </result>
6487 </desc>
6488 <param name="progress" type="IProgress" dir="return">
6489 <desc>Progress object to track the operation completion.</desc>
6490 </param>
6491 </method>
6492
6493 <method name="powerDown">
6494 <desc>
6495 Initiates the power down procedure to stop the virtual machine
6496 execution.
6497
6498 The completion of the power down procedure is tracked using the returned
6499 IProgress object. After the operation is complete, the machine will go
6500 to the PoweredOff state.
6501 <result name="VBOX_E_INVALID_VM_STATE">
6502 Virtual machine must be Running, Paused or Stuck to be powered down.
6503 </result>
6504 </desc>
6505 <param name="progress" type="IProgress" dir="return">
6506 <desc>Progress object to track the operation completion.</desc>
6507 </param>
6508 </method>
6509
6510 <method name="reset">
6511 <desc>Resets the virtual machine.
6512 <result name="VBOX_E_INVALID_VM_STATE">
6513 Virtual machine not in Running state.
6514 </result>
6515 <result name="VBOX_E_VM_ERROR">
6516 Virtual machine error in reset operation.
6517 </result>
6518 </desc>
6519 </method>
6520
6521 <method name="pause">
6522 <desc>Pauses the virtual machine execution.
6523 <result name="VBOX_E_INVALID_VM_STATE">
6524 Virtual machine not in Running state.
6525 </result>
6526 <result name="VBOX_E_VM_ERROR">
6527 Virtual machine error in suspend operation.
6528 </result>
6529 </desc>
6530 </method>
6531
6532 <method name="resume">
6533 <desc>Resumes the virtual machine execution.
6534 <result name="VBOX_E_INVALID_VM_STATE">
6535 Virtual machine not in Paused state.
6536 </result>
6537 <result name="VBOX_E_VM_ERROR">
6538 Virtual machine error in resume operation.
6539 </result>
6540 </desc>
6541 </method>
6542
6543 <method name="powerButton">
6544 <desc>Sends the ACPI power button event to the guest.
6545 <result name="VBOX_E_INVALID_VM_STATE">
6546 Virtual machine not in Running state.
6547 </result>
6548 <result name="VBOX_E_PDM_ERROR">
6549 Controlled power off failed.
6550 </result>
6551 </desc>
6552 </method>
6553
6554 <method name="sleepButton">
6555 <desc>Sends the ACPI sleep button event to the guest.
6556 <result name="VBOX_E_INVALID_VM_STATE">
6557 Virtual machine not in Running state.
6558 </result>
6559 <result name="VBOX_E_PDM_ERROR">
6560 Sending sleep button event failed.
6561 </result>
6562 </desc>
6563 </method>
6564
6565 <method name="getPowerButtonHandled">
6566 <desc>Checks if the last power button event was handled by guest.
6567 <result name="VBOX_E_PDM_ERROR">
6568 Checking if the event was handled by the guest OS failed.
6569 </result>
6570 </desc>
6571 <param name="handled" type="boolean" dir="return"/>
6572 </method>
6573
6574 <method name="getGuestEnteredACPIMode">
6575 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6576 G1 (sleeping). If this method returns @c false, the guest will
6577 most likely not respond to external ACPI events.
6578 <result name="VBOX_E_INVALID_VM_STATE">
6579 Virtual machine not in Running state.
6580 </result>
6581 </desc>
6582 <param name="entered" type="boolean" dir="return"/>
6583 </method>
6584
6585 <method name="saveState">
6586 <desc>
6587 Saves the current execution state of a running virtual machine
6588 and stops its execution.
6589
6590 After this operation completes, the machine will go to the
6591 Saved state. Next time it is powered up, this state will
6592 be restored and the machine will continue its execution from
6593 the place where it was saved.
6594
6595 This operation differs from taking a snapshot to the effect
6596 that it doesn't create new differencing media. Also, once
6597 the machine is powered up from the state saved using this method,
6598 the saved state is deleted, so it will be impossible to return
6599 to this state later.
6600
6601 <note>
6602 On success, this method implicitly calls
6603 <link to="IMachine::saveSettings"/> to save all current machine
6604 settings (including runtime changes to the DVD medium, etc.).
6605 Together with the impossibility to change any VM settings when it is
6606 in the Saved state, this guarantees adequate hardware
6607 configuration of the machine when it is restored from the saved
6608 state file.
6609 </note>
6610
6611 <note>
6612 The machine must be in the Running or Paused state, otherwise
6613 the operation will fail.
6614 </note>
6615 <result name="VBOX_E_INVALID_VM_STATE">
6616 Virtual machine state neither Running nor Paused.
6617 </result>
6618 <result name="VBOX_E_FILE_ERROR">
6619 Failed to create directory for saved state file.
6620 </result>
6621
6622 <see><link to="#takeSnapshot"/></see>
6623 </desc>
6624 <param name="progress" type="IProgress" dir="return">
6625 <desc>Progress object to track the operation completion.</desc>
6626 </param>
6627 </method>
6628
6629 <method name="adoptSavedState">
6630 <desc>
6631 Associates the given saved state file to the virtual machine.
6632
6633 On success, the machine will go to the Saved state. Next time it is
6634 powered up, it will be restored from the adopted saved state and
6635 continue execution from the place where the saved state file was
6636 created.
6637
6638 The specified saved state file path may be absolute or relative to the
6639 folder the VM normally saves the state to (usually,
6640 <link to="IMachine::snapshotFolder"/>).
6641
6642 <note>
6643 It's a caller's responsibility to make sure the given saved state
6644 file is compatible with the settings of this virtual machine that
6645 represent its virtual hardware (memory size, storage disk configuration
6646 etc.). If there is a mismatch, the behavior of the virtual machine
6647 is undefined.
6648 </note>
6649 <result name="VBOX_E_INVALID_VM_STATE">
6650 Virtual machine state neither PoweredOff nor Aborted.
6651 </result>
6652 </desc>
6653 <param name="savedStateFile" type="wstring" dir="in">
6654 <desc>Path to the saved state file to adopt.</desc>
6655 </param>
6656 </method>
6657
6658 <method name="discardSavedState">
6659 <desc>
6660 Forcibly resets the machine to "Powered Off" state if it is
6661 currently in the "Saved" state (previously created by <link to="#saveState"/>).
6662 Next time the machine is powered up, a clean boot will occur.
6663 <note>
6664 This operation is equivalent to resetting or powering off
6665 the machine without doing a proper shutdown of the guest
6666 operating system; as with resetting a running phyiscal
6667 computer, it can can lead to data loss.
6668 </note>
6669 If @a fRemoveFile is @c true, the file in the machine directory
6670 into which the machine state was saved is also deleted. If
6671 this is @c false, then the state can be recovered and later
6672 re-inserted into a machine using <link to="#adoptSavedState" />.
6673 The location of the file can be found in the
6674 <link to="IMachine::stateFilePath" /> attribute.
6675 <result name="VBOX_E_INVALID_VM_STATE">
6676 Virtual machine not in state Saved.
6677 </result>
6678 </desc>
6679 <param name="fRemoveFile" type="boolean" dir="in" >
6680 <desc>Whether to also remove the saved state file.</desc>
6681 </param>
6682 </method>
6683
6684 <method name="getDeviceActivity">
6685 <desc>
6686 Gets the current activity type of a given device or device group.
6687 <result name="E_INVALIDARG">
6688 Invalid device type.
6689 </result>
6690 </desc>
6691 <param name="type" type="DeviceType" dir="in"/>
6692 <param name="activity" type="DeviceActivity" dir="return"/>
6693 </method>
6694
6695 <method name="attachUSBDevice">
6696 <desc>
6697 Attaches a host USB device with the given UUID to the
6698 USB controller of the virtual machine.
6699
6700 The device needs to be in one of the following states:
6701 <link to="USBDeviceState_Busy"/>,
6702 <link to="USBDeviceState_Available"/> or
6703 <link to="USBDeviceState_Held"/>,
6704 otherwise an error is immediately returned.
6705
6706 When the device state is
6707 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6708 be returned if the host computer refuses to release it for some reason.
6709
6710 <see><link to="IUSBController::deviceFilters"/>,
6711 <link to="USBDeviceState"/></see>
6712 <result name="VBOX_E_INVALID_VM_STATE">
6713 Virtual machine state neither Running nor Paused.
6714 </result>
6715 <result name="VBOX_E_PDM_ERROR">
6716 Virtual machine does not have a USB controller.
6717 </result>
6718 </desc>
6719 <param name="id" type="uuid" mod="string" dir="in">
6720 <desc>UUID of the host USB device to attach.</desc>
6721 </param>
6722 </method>
6723
6724 <method name="detachUSBDevice">
6725 <desc>
6726 Detaches an USB device with the given UUID from the USB controller
6727 of the virtual machine.
6728
6729 After this method succeeds, the VirtualBox server re-initiates
6730 all USB filters as if the device were just physically attached
6731 to the host, but filters of this machine are ignored to avoid
6732 a possible automatic re-attachment.
6733
6734 <see><link to="IUSBController::deviceFilters"/>,
6735 <link to="USBDeviceState"/></see>
6736
6737 <result name="VBOX_E_PDM_ERROR">
6738 Virtual machine does not have a USB controller.
6739 </result>
6740 <result name="E_INVALIDARG">
6741 USB device not attached to this virtual machine.
6742 </result>
6743 </desc>
6744 <param name="id" type="uuid" mod="string" dir="in">
6745 <desc>UUID of the USB device to detach.</desc>
6746 </param>
6747 <param name="device" type="IUSBDevice" dir="return">
6748 <desc>Detached USB device.</desc>
6749 </param>
6750 </method>
6751
6752 <method name="findUSBDeviceByAddress">
6753 <desc>
6754 Searches for a USB device with the given host address.
6755
6756 <result name="VBOX_E_OBJECT_NOT_FOUND">
6757 Given @c name does not correspond to any USB device.
6758 </result>
6759
6760 <see><link to="IUSBDevice::address"/></see>
6761 </desc>
6762 <param name="name" type="wstring" dir="in">
6763 <desc>
6764 Address of the USB device (as assigned by the host) to
6765 search for.
6766 </desc>
6767 </param>
6768 <param name="device" type="IUSBDevice" dir="return">
6769 <desc>Found USB device object.</desc>
6770 </param>
6771 </method>
6772
6773 <method name="findUSBDeviceById">
6774 <desc>
6775 Searches for a USB device with the given UUID.
6776
6777 <result name="VBOX_E_OBJECT_NOT_FOUND">
6778 Given @c id does not correspond to any USB device.
6779 </result>
6780
6781 <see><link to="IUSBDevice::id"/></see>
6782 </desc>
6783 <param name="id" type="uuid" mod="string" dir="in">
6784 <desc>UUID of the USB device to search for.</desc>
6785 </param>
6786 <param name="device" type="IUSBDevice" dir="return">
6787 <desc>Found USB device object.</desc>
6788 </param>
6789 </method>
6790
6791 <method name="createSharedFolder">
6792 <desc>
6793 Creates a transient new shared folder by associating the given logical
6794 name with the given host path, adds it to the collection of shared
6795 folders and starts sharing it. Refer to the description of
6796 <link to="ISharedFolder"/> to read more about logical names.
6797
6798 <result name="VBOX_E_INVALID_VM_STATE">
6799 Virtual machine in Saved state or currently changing state.
6800 </result>
6801 <result name="VBOX_E_FILE_ERROR">
6802 Shared folder already exists or not accessible.
6803 </result>
6804 </desc>
6805 <param name="name" type="wstring" dir="in">
6806 <desc>Unique logical name of the shared folder.</desc>
6807 </param>
6808 <param name="hostPath" type="wstring" dir="in">
6809 <desc>Full path to the shared folder in the host file system.</desc>
6810 </param>
6811 <param name="writable" type="boolean" dir="in">
6812 <desc>Whether the share is writable or readonly</desc>
6813 </param>
6814 <param name="automount" type="boolean" dir="in">
6815 <desc>Whether the share gets automatically mounted by the guest
6816 or not.</desc>
6817 </param>
6818 </method>
6819
6820 <method name="removeSharedFolder">
6821 <desc>
6822 Removes a transient shared folder with the given name previously
6823 created by <link to="#createSharedFolder"/> from the collection of
6824 shared folders and stops sharing it.
6825 <result name="VBOX_E_INVALID_VM_STATE">
6826 Virtual machine in Saved state or currently changing state.
6827 </result>
6828 <result name="VBOX_E_FILE_ERROR">
6829 Shared folder does not exists.
6830 </result>
6831 </desc>
6832 <param name="name" type="wstring" dir="in">
6833 <desc>Logical name of the shared folder to remove.</desc>
6834 </param>
6835 </method>
6836
6837 <method name="takeSnapshot">
6838 <desc>
6839 Saves the current execution state
6840 and all settings of the machine and creates differencing images
6841 for all normal (non-independent) media.
6842 See <link to="ISnapshot" /> for an introduction to snapshots.
6843
6844 This method can be called for a PoweredOff, Saved (see
6845 <link to="#saveState"/>), Running or
6846 Paused virtual machine. When the machine is PoweredOff, an
6847 offline snapshot is created. When the machine is Running a live
6848 snapshot is created, and an online snapshot is is created when Paused.
6849
6850 The taken snapshot is always based on the
6851 <link to="IMachine::currentSnapshot">current snapshot</link>
6852 of the associated virtual machine and becomes a new current snapshot.
6853
6854 <note>
6855 This method implicitly calls <link to="IMachine::saveSettings"/> to
6856 save all current machine settings before taking an offline snapshot.
6857 </note>
6858
6859 <result name="VBOX_E_INVALID_VM_STATE">
6860 Virtual machine currently changing state.
6861 </result>
6862 </desc>
6863 <param name="name" type="wstring" dir="in">
6864 <desc>Short name for the snapshot.</desc>
6865 </param>
6866 <param name="description" type="wstring" dir="in">
6867 <desc>Optional description of the snapshot.</desc>
6868 </param>
6869 <param name="progress" type="IProgress" dir="return">
6870 <desc>Progress object to track the operation completion.</desc>
6871 </param>
6872 </method>
6873
6874 <method name="deleteSnapshot">
6875 <desc>
6876 Starts deleting the specified snapshot asynchronously.
6877 See <link to="ISnapshot" /> for an introduction to snapshots.
6878
6879 The execution state and settings of the associated machine stored in
6880 the snapshot will be deleted. The contents of all differencing media of
6881 this snapshot will be merged with the contents of their dependent child
6882 media to keep the medium chain valid (in other words, all changes
6883 represented by media being deleted will be propagated to their child
6884 medium). After that, this snapshot's differencing medium will be
6885 deleted. The parent of this snapshot will become a new parent for all
6886 its child snapshots.
6887
6888 If the deleted snapshot is the current one, its parent snapshot will
6889 become a new current snapshot. The current machine state is not directly
6890 affected in this case, except that currently attached differencing
6891 media based on media of the deleted snapshot will be also merged as
6892 described above.
6893
6894 If the deleted snapshot is the first or current snapshot, then the
6895 respective IMachine attributes will be adjusted. Deleting the current
6896 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
6897 to make all current machine settings permanent.
6898
6899 Deleting a snapshot has the following preconditions:
6900
6901 <ul>
6902 <li>Child media of all normal media of the deleted snapshot
6903 must be accessible (see <link to="IMedium::state"/>) for this
6904 operation to succeed. If only one running VM refers to all images
6905 which participates in merging the operation can be performed while
6906 the VM is running. Otherwise all virtual machines whose media are
6907 directly or indirectly based on the media of deleted snapshot must
6908 be powered off. In any case, online snapshot deleting usually is
6909 slower than the same operation without any running VM.</li>
6910
6911 <li>You cannot delete the snapshot if a medium attached to it has
6912 more than one child medium (differencing images) because otherwise
6913 merging would be impossible. This might be the case if there is
6914 more than one child snapshot or differencing images were created
6915 for other reason (e.g. implicitly because of multiple machine
6916 attachments).</li>
6917 </ul>
6918
6919 The virtual machine's <link to="IMachine::state">state</link> is
6920 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
6921 "DeletingSnapshotPaused" while this operation is in progress.
6922
6923 <note>
6924 Merging medium contents can be very time and disk space
6925 consuming, if these media are big in size and have many
6926 children. However, if the snapshot being deleted is the last
6927 (head) snapshot on the branch, the operation will be rather
6928 quick.
6929 </note>
6930 <result name="VBOX_E_INVALID_VM_STATE">
6931 The running virtual machine prevents deleting this snapshot. This
6932 happens only in very specific situations, usually snapshots can be
6933 deleted without trouble while a VM is running. The error message
6934 text explains the reason for the failure.
6935 </result>
6936 </desc>
6937 <param name="id" type="uuid" mod="string" dir="in">
6938 <desc>UUID of the snapshot to delete.</desc>
6939 </param>
6940 <param name="progress" type="IProgress" dir="return">
6941 <desc>Progress object to track the operation completion.</desc>
6942 </param>
6943 </method>
6944
6945 <method name="deleteSnapshotAndAllChildren">
6946 <desc>
6947 Starts deleting the specified snapshot and all its children
6948 asynchronously. See <link to="ISnapshot" /> for an introduction to
6949 snapshots. The conditions and many details are the same as with
6950 <link to="#deleteSnapshot"/>.
6951
6952 This operation is very fast if the snapshot subtree does not include
6953 the current state. It is still significantly faster than deleting the
6954 snapshots one by one if the current state is in the subtree and there
6955 are more than one snapshots from current state to the snapshot which
6956 marks the subtree, since it eliminates the incremental image merging.
6957
6958 <note>This API method is right now not implemented!</note>
6959
6960 <result name="VBOX_E_INVALID_VM_STATE">
6961 The running virtual machine prevents deleting this snapshot. This
6962 happens only in very specific situations, usually snapshots can be
6963 deleted without trouble while a VM is running. The error message
6964 text explains the reason for the failure.
6965 </result>
6966 <result name="E_NOTIMPL">
6967 The method is not implemented yet.
6968 </result>
6969 </desc>
6970 <param name="id" type="uuid" mod="string" dir="in">
6971 <desc>UUID of the snapshot to delete, including all its children.</desc>
6972 </param>
6973 <param name="progress" type="IProgress" dir="return">
6974 <desc>Progress object to track the operation completion.</desc>
6975 </param>
6976 </method>
6977
6978 <method name="deleteSnapshotRange">
6979 <desc>
6980 Starts deleting the specified snapshot range. This is limited to
6981 linear snapshot lists, which means there may not be any other child
6982 snapshots other than the direct sequence between the start and end
6983 snapshot. If the start and end snapshot point to the same snapshot this
6984 method is completely equivalent to <link to="#deleteSnapshot"/>. See
6985 <link to="ISnapshot" /> for an introduction to snapshots. The
6986 conditions and many details are the same as with
6987 <link to="#deleteSnapshot"/>.
6988
6989 This operation is generally faster than deleting snapshots one by one
6990 and often also needs less extra disk space before freeing up disk space
6991 by deleting the removed disk images corresponding to the snapshot.
6992
6993 <note>This API method is right now not implemented!</note>
6994
6995 <result name="VBOX_E_INVALID_VM_STATE">
6996 The running virtual machine prevents deleting this snapshot. This
6997 happens only in very specific situations, usually snapshots can be
6998 deleted without trouble while a VM is running. The error message
6999 text explains the reason for the failure.
7000 </result>
7001 <result name="E_NOTIMPL">
7002 The method is not implemented yet.
7003 </result>
7004 </desc>
7005 <param name="startId" type="uuid" mod="string" dir="in">
7006 <desc>UUID of the first snapshot to delete.</desc>
7007 </param>
7008 <param name="endId" type="uuid" mod="string" dir="in">
7009 <desc>UUID of the last snapshot to delete.</desc>
7010 </param>
7011 <param name="progress" type="IProgress" dir="return">
7012 <desc>Progress object to track the operation completion.</desc>
7013 </param>
7014 </method>
7015
7016 <method name="restoreSnapshot">
7017 <desc>
7018 Starts resetting the machine's current state to the state contained
7019 in the given snapshot, asynchronously. All current settings of the
7020 machine will be reset and changes stored in differencing media
7021 will be lost.
7022 See <link to="ISnapshot" /> for an introduction to snapshots.
7023
7024 After this operation is successfully completed, new empty differencing
7025 media are created for all normal media of the machine.
7026
7027 If the given snapshot is an online snapshot, the machine will go to
7028 the <link to="MachineState_Saved"> saved state</link>, so that the
7029 next time it is powered on, the execution state will be restored
7030 from the state of the snapshot.
7031
7032 <note>
7033 The machine must not be running, otherwise the operation will fail.
7034 </note>
7035
7036 <note>
7037 If the machine state is <link to="MachineState_Saved">Saved</link>
7038 prior to this operation, the saved state file will be implicitly
7039 deleted (as if <link to="IConsole::discardSavedState"/> were
7040 called).
7041 </note>
7042
7043 <result name="VBOX_E_INVALID_VM_STATE">
7044 Virtual machine is running.
7045 </result>
7046 </desc>
7047 <param name="snapshot" type="ISnapshot" dir="in">
7048 <desc>The snapshot to restore the VM state from.</desc>
7049 </param>
7050 <param name="progress" type="IProgress" dir="return">
7051 <desc>Progress object to track the operation completion.</desc>
7052 </param>
7053 </method>
7054
7055 <method name="teleport">
7056 <desc>
7057 Teleport the VM to a different host machine or process.
7058
7059 TODO explain the details.
7060
7061 <result name="VBOX_E_INVALID_VM_STATE">
7062 Virtual machine not running or paused.
7063 </result>
7064 </desc>
7065 <param name="hostname" type="wstring" dir="in">
7066 <desc>The name or IP of the host to teleport to.</desc>
7067 </param>
7068 <param name="tcpport" type="unsigned long" dir="in">
7069 <desc>The TCP port to connect to (1..65535).</desc>
7070 </param>
7071 <param name="password" type="wstring" dir="in">
7072 <desc>The password.</desc>
7073 </param>
7074 <param name="maxDowntime" type="unsigned long" dir="in">
7075 <desc>
7076 The maximum allowed downtime given as milliseconds. 0 is not a valid
7077 value. Recommended value: 250 ms.
7078
7079 The higher the value is, the greater the chance for a successful
7080 teleportation. A small value may easily result in the teleportation
7081 process taking hours and eventually fail.
7082
7083 <note>
7084 The current implementation treats this a guideline, not as an
7085 absolute rule.
7086 </note>
7087 </desc>
7088 </param>
7089 <param name="progress" type="IProgress" dir="return">
7090 <desc>Progress object to track the operation completion.</desc>
7091 </param>
7092 </method>
7093
7094 </interface>
7095
7096 <!--
7097 // IHost
7098 /////////////////////////////////////////////////////////////////////////
7099 -->
7100
7101 <enum
7102 name="HostNetworkInterfaceMediumType"
7103 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7104 >
7105 <desc>
7106 Type of encapsulation. Ethernet encapsulation includes both wired and
7107 wireless Ethernet connections.
7108 <see><link to="IHostNetworkInterface"/></see>
7109 </desc>
7110
7111 <const name="Unknown" value="0">
7112 <desc>
7113 The type of interface cannot be determined.
7114 </desc>
7115 </const>
7116 <const name="Ethernet" value="1">
7117 <desc>
7118 Ethernet frame encapsulation.
7119 </desc>
7120 </const>
7121 <const name="PPP" value="2">
7122 <desc>
7123 Point-to-point protocol encapsulation.
7124 </desc>
7125 </const>
7126 <const name="SLIP" value="3">
7127 <desc>
7128 Serial line IP encapsulation.
7129 </desc>
7130 </const>
7131 </enum>
7132
7133 <enum
7134 name="HostNetworkInterfaceStatus"
7135 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7136 >
7137 <desc>
7138 Current status of the interface.
7139 <see><link to="IHostNetworkInterface"/></see>
7140 </desc>
7141
7142 <const name="Unknown" value="0">
7143 <desc>
7144 The state of interface cannot be determined.
7145 </desc>
7146 </const>
7147 <const name="Up" value="1">
7148 <desc>
7149 The interface is fully operational.
7150 </desc>
7151 </const>
7152 <const name="Down" value="2">
7153 <desc>
7154 The interface is not functioning.
7155 </desc>
7156 </const>
7157 </enum>
7158
7159 <enum
7160 name="HostNetworkInterfaceType"
7161 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7162 >
7163 <desc>
7164 Network interface type.
7165 </desc>
7166 <const name="Bridged" value="1"/>
7167 <const name="HostOnly" value="2"/>
7168 </enum>
7169
7170 <interface
7171 name="IHostNetworkInterface" extends="$unknown"
7172 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7173 wsmap="managed"
7174 >
7175 <desc>
7176 Represents one of host's network interfaces. IP V6 address and network
7177 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7178 separated by colons.
7179 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7180 </desc>
7181 <attribute name="name" type="wstring" readonly="yes">
7182 <desc>Returns the host network interface name.</desc>
7183 </attribute>
7184
7185 <attribute name="id" type="uuid" mod="string" readonly="yes">
7186 <desc>Returns the interface UUID.</desc>
7187 </attribute>
7188
7189 <attribute name="networkName" type="wstring" readonly="yes">
7190 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7191 </attribute>
7192
7193 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7194 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7195 </attribute>
7196
7197 <attribute name="IPAddress" type="wstring" readonly="yes">
7198 <desc>Returns the IP V4 address of the interface.</desc>
7199 </attribute>
7200
7201 <attribute name="networkMask" type="wstring" readonly="yes">
7202 <desc>Returns the network mask of the interface.</desc>
7203 </attribute>
7204
7205 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7206 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7207 </attribute>
7208
7209 <attribute name="IPV6Address" type="wstring" readonly="yes">
7210 <desc>Returns the IP V6 address of the interface.</desc>
7211 </attribute>
7212
7213 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7214 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7215 </attribute>
7216
7217 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7218 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7219 </attribute>
7220
7221 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7222 <desc>Type of protocol encapsulation used.</desc>
7223 </attribute>
7224
7225 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7226 <desc>Status of the interface.</desc>
7227 </attribute>
7228
7229 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7230 <desc>specifies the host interface type.</desc>
7231 </attribute>
7232
7233 <method name="enableStaticIpConfig">
7234 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7235 <param name="IPAddress" type="wstring" dir="in">
7236 <desc>
7237 IP address.
7238 </desc>
7239 </param>
7240 <param name="networkMask" type="wstring" dir="in">
7241 <desc>
7242 network mask.
7243 </desc>
7244 </param>
7245 </method>
7246
7247 <method name="enableStaticIpConfigV6">
7248 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7249 <param name="IPV6Address" type="wstring" dir="in">
7250 <desc>
7251 IP address.
7252 </desc>
7253 </param>
7254 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7255 <desc>
7256 network mask.
7257 </desc>
7258 </param>
7259 </method>
7260
7261 <method name="enableDynamicIpConfig">
7262 <desc>enables the dynamic IP configuration.</desc>
7263 </method>
7264
7265 <method name="dhcpRediscover">
7266 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7267 </method>
7268
7269 </interface>
7270
7271 <interface
7272 name="IHost" extends="$unknown"
7273 uuid="dab4a2b8-c735-4f08-94fc-9bec84182e2f"
7274 wsmap="managed"
7275 >
7276 <desc>
7277 The IHost interface represents the physical machine that this VirtualBox
7278 installation runs on.
7279
7280 An object implementing this interface is returned by the
7281 <link to="IVirtualBox::host" /> attribute. This interface contains
7282 read-only information about the host's physical hardware (such as what
7283 processors and disks are available, what the host operating system is,
7284 and so on) and also allows for manipulating some of the host's hardware,
7285 such as global USB device filters and host interface networking.
7286
7287 </desc>
7288 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7289 <desc>List of DVD drives available on the host.</desc>
7290 </attribute>
7291
7292 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7293 <desc>List of floppy drives available on the host.</desc>
7294 </attribute>
7295
7296 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7297 <desc>
7298 List of USB devices currently attached to the host.
7299 Once a new device is physically attached to the host computer,
7300 it appears in this list and remains there until detached.
7301
7302 <note>
7303 If USB functionality is not available in the given edition of
7304 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7305 </note>
7306 </desc>
7307 </attribute>
7308
7309 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7310 <desc>
7311 List of USB device filters in action.
7312 When a new device is physically attached to the host computer,
7313 filters from this list are applied to it (in order they are stored
7314 in the list). The first matched filter will determine the
7315 <link to="IHostUSBDeviceFilter::action">action</link>
7316 performed on the device.
7317
7318 Unless the device is ignored by these filters, filters of all
7319 currently running virtual machines
7320 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7321
7322 <note>
7323 If USB functionality is not available in the given edition of
7324 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7325 </note>
7326
7327 <see><link to="IHostUSBDeviceFilter"/>,
7328 <link to="USBDeviceState"/></see>
7329 </desc>
7330 </attribute>
7331
7332 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7333 <desc>List of host network interfaces currently defined on the host.</desc>
7334 </attribute>
7335
7336 <attribute name="processorCount" type="unsigned long" readonly="yes">
7337 <desc>Number of (logical) CPUs installed in the host system.</desc>
7338 </attribute>
7339
7340 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7341 <desc>Number of (logical) CPUs online in the host system.</desc>
7342 </attribute>
7343
7344 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7345 <desc>Number of physical processor cores installed in the host system.</desc>
7346 </attribute>
7347
7348 <method name="getProcessorSpeed">
7349 <desc>Query the (approximate) maximum speed of a specified host CPU in
7350 Megahertz.
7351 </desc>
7352 <param name="cpuId" type="unsigned long" dir="in">
7353 <desc>
7354 Identifier of the CPU.
7355 </desc>
7356 </param>
7357 <param name="speed" type="unsigned long" dir="return">
7358 <desc>
7359 Speed value. 0 is returned if value is not known or @a cpuId is
7360 invalid.
7361 </desc>
7362 </param>
7363 </method>
7364
7365 <method name="getProcessorFeature">
7366 <desc>Query whether a CPU feature is supported or not.</desc>
7367 <param name="feature" type="ProcessorFeature" dir="in">
7368 <desc>
7369 CPU Feature identifier.
7370 </desc>
7371 </param>
7372 <param name="supported" type="boolean" dir="return">
7373 <desc>
7374 Feature is supported or not.
7375 </desc>
7376 </param>
7377 </method>
7378
7379 <method name="getProcessorDescription">
7380 <desc>Query the model string of a specified host CPU.
7381 </desc>
7382 <param name="cpuId" type="unsigned long" dir="in">
7383 <desc>
7384 Identifier of the CPU.
7385 <note>
7386 The current implementation might not necessarily return the
7387 description for this exact CPU.
7388 </note>
7389 </desc>
7390 </param>
7391 <param name="description" type="wstring" dir="return">
7392 <desc>
7393 Model string. An empty string is returned if value is not known or
7394 @a cpuId is invalid.
7395 </desc>
7396 </param>
7397 </method>
7398
7399 <method name="getProcessorCPUIDLeaf">
7400 <desc>
7401 Returns the CPU cpuid information for the specified leaf.
7402 </desc>
7403 <param name="cpuId" type="unsigned long" dir="in">
7404 <desc>
7405 Identifier of the CPU. The CPU most be online.
7406 <note>
7407 The current implementation might not necessarily return the
7408 description for this exact CPU.
7409 </note>
7410 </desc>
7411 </param>
7412 <param name="leaf" type="unsigned long" dir="in">
7413 <desc>
7414 CPUID leaf index (eax).
7415 </desc>
7416 </param>
7417 <param name="subLeaf" type="unsigned long" dir="in">
7418 <desc>
7419 CPUID leaf sub index (ecx). This currently only applies to cache
7420 information on Intel CPUs. Use 0 if retrieving values for
7421 <link to="IMachine::setCPUIDLeaf"/>.
7422 </desc>
7423 </param>
7424 <param name="valEax" type="unsigned long" dir="out">
7425 <desc>
7426 CPUID leaf value for register eax.
7427 </desc>
7428 </param>
7429 <param name="valEbx" type="unsigned long" dir="out">
7430 <desc>
7431 CPUID leaf value for register ebx.
7432 </desc>
7433 </param>
7434 <param name="valEcx" type="unsigned long" dir="out">
7435 <desc>
7436 CPUID leaf value for register ecx.
7437 </desc>
7438 </param>
7439 <param name="valEdx" type="unsigned long" dir="out">
7440 <desc>
7441 CPUID leaf value for register edx.
7442 </desc>
7443 </param>
7444 </method>
7445
7446 <attribute name="memorySize" type="unsigned long" readonly="yes">
7447 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7448 </attribute>
7449
7450 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7451 <desc>Available system memory in the host system.</desc>
7452 </attribute>
7453
7454 <attribute name="operatingSystem" type="wstring" readonly="yes">
7455 <desc>Name of the host system's operating system.</desc>
7456 </attribute>
7457
7458 <attribute name="OSVersion" type="wstring" readonly="yes">
7459 <desc>Host operating system's version string.</desc>
7460 </attribute>
7461
7462 <attribute name="UTCTime" type="long long" readonly="yes">
7463 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7464 </attribute>
7465
7466 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7467 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7468 </attribute>
7469
7470 <method name="createHostOnlyNetworkInterface">
7471 <desc>
7472 Creates a new adapter for Host Only Networking.
7473 <result name="E_INVALIDARG">
7474 Host network interface @a name already exists.
7475 </result>
7476 </desc>
7477 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7478 <desc>
7479 Created host interface object.
7480 </desc>
7481 </param>
7482 <param name="progress" type="IProgress" dir="return">
7483 <desc>
7484 Progress object to track the operation completion.
7485 </desc>
7486 </param>
7487 </method>
7488
7489 <method name="removeHostOnlyNetworkInterface">
7490 <desc>
7491 Removes the given Host Only Networking interface.
7492 <result name="VBOX_E_OBJECT_NOT_FOUND">
7493 No host network interface matching @a id found.
7494 </result>
7495 </desc>
7496 <param name="id" type="uuid" mod="string" dir="in">
7497 <desc>
7498 Adapter GUID.
7499 </desc>
7500 </param>
7501 <param name="progress" type="IProgress" dir="return">
7502 <desc>
7503 Progress object to track the operation completion.
7504 </desc>
7505 </param>
7506 </method>
7507
7508 <method name="createUSBDeviceFilter">
7509 <desc>
7510 Creates a new USB device filter. All attributes except
7511 the filter name are set to empty (any match),
7512 <i>active</i> is @c false (the filter is not active).
7513
7514 The created filter can be added to the list of filters using
7515 <link to="#insertUSBDeviceFilter"/>.
7516
7517 <see><link to="#USBDeviceFilters"/></see>
7518 </desc>
7519 <param name="name" type="wstring" dir="in">
7520 <desc>
7521 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
7522 </desc>
7523 </param>
7524 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7525 <desc>Created filter object.</desc>
7526 </param>
7527 </method>
7528
7529 <method name="insertUSBDeviceFilter">
7530 <desc>
7531 Inserts the given USB device to the specified position
7532 in the list of filters.
7533
7534 Positions are numbered starting from @c 0. If the specified
7535 position is equal to or greater than the number of elements in
7536 the list, the filter is added at the end of the collection.
7537
7538 <note>
7539 Duplicates are not allowed, so an attempt to insert a
7540 filter already in the list is an error.
7541 </note>
7542 <note>
7543 If USB functionality is not available in the given edition of
7544 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7545 </note>
7546
7547 <see><link to="#USBDeviceFilters"/></see>
7548
7549 <result name="VBOX_E_INVALID_OBJECT_STATE">
7550 USB device filter is not created within this VirtualBox instance.
7551 </result>
7552 <result name="E_INVALIDARG">
7553 USB device filter already in list.
7554 </result>
7555
7556 </desc>
7557 <param name="position" type="unsigned long" dir="in">
7558 <desc>Position to insert the filter to.</desc>
7559 </param>
7560 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7561 <desc>USB device filter to insert.</desc>
7562 </param>
7563 </method>
7564
7565 <method name="removeUSBDeviceFilter">
7566 <desc>
7567 Removes a USB device filter from the specified position in the
7568 list of filters.
7569
7570 Positions are numbered starting from @c 0. Specifying a
7571 position equal to or greater than the number of elements in
7572 the list will produce an error.
7573
7574 <note>
7575 If USB functionality is not available in the given edition of
7576 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7577 </note>
7578
7579 <see><link to="#USBDeviceFilters"/></see>
7580
7581 <result name="E_INVALIDARG">
7582 USB device filter list empty or invalid @a position.
7583 </result>
7584
7585 </desc>
7586 <param name="position" type="unsigned long" dir="in">
7587 <desc>Position to remove the filter from.</desc>
7588 </param>
7589 </method>
7590
7591 <method name="findHostDVDDrive">
7592 <desc>
7593 Searches for a host DVD drive with the given @c name.
7594
7595 <result name="VBOX_E_OBJECT_NOT_FOUND">
7596 Given @c name does not correspond to any host drive.
7597 </result>
7598
7599 </desc>
7600 <param name="name" type="wstring" dir="in">
7601 <desc>Name of the host drive to search for</desc>
7602 </param>
7603 <param name="drive" type="IMedium" dir="return">
7604 <desc>Found host drive object</desc>
7605 </param>
7606 </method>
7607
7608 <method name="findHostFloppyDrive">
7609 <desc>
7610 Searches for a host floppy drive with the given @c name.
7611
7612 <result name="VBOX_E_OBJECT_NOT_FOUND">
7613 Given @c name does not correspond to any host floppy drive.
7614 </result>
7615
7616 </desc>
7617 <param name="name" type="wstring" dir="in">
7618 <desc>Name of the host floppy drive to search for</desc>
7619 </param>
7620 <param name="drive" type="IMedium" dir="return">
7621 <desc>Found host floppy drive object</desc>
7622 </param>
7623 </method>
7624
7625 <method name="findHostNetworkInterfaceByName">
7626 <desc>
7627 Searches through all host network interfaces for an interface with
7628 the given @c name.
7629 <note>
7630 The method returns an error if the given @c name does not
7631 correspond to any host network interface.
7632 </note>
7633 </desc>
7634 <param name="name" type="wstring" dir="in">
7635 <desc>Name of the host network interface to search for.</desc>
7636 </param>
7637 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7638 <desc>Found host network interface object.</desc>
7639 </param>
7640 </method>
7641 <method name="findHostNetworkInterfaceById">
7642 <desc>
7643 Searches through all host network interfaces for an interface with
7644 the given GUID.
7645 <note>
7646 The method returns an error if the given GUID does not
7647 correspond to any host network interface.
7648 </note>
7649 </desc>
7650 <param name="id" type="uuid" mod="string" dir="in">
7651 <desc>GUID of the host network interface to search for.</desc>
7652 </param>
7653 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7654 <desc>Found host network interface object.</desc>
7655 </param>
7656 </method>
7657 <method name="findHostNetworkInterfacesOfType">
7658 <desc>
7659 Searches through all host network interfaces and returns a list of interfaces of the specified type
7660 </desc>
7661 <param name="type" type="HostNetworkInterfaceType" dir="in">
7662 <desc>type of the host network interfaces to search for.</desc>
7663 </param>
7664 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7665 <desc>Found host network interface objects.</desc>
7666 </param>
7667 </method>
7668
7669 <method name="findUSBDeviceById">
7670 <desc>
7671 Searches for a USB device with the given UUID.
7672
7673 <result name="VBOX_E_OBJECT_NOT_FOUND">
7674 Given @c id does not correspond to any USB device.
7675 </result>
7676
7677 <see><link to="IUSBDevice::id"/></see>
7678 </desc>
7679 <param name="id" type="uuid" mod="string" dir="in">
7680 <desc>UUID of the USB device to search for.</desc>
7681 </param>
7682 <param name="device" type="IHostUSBDevice" dir="return">
7683 <desc>Found USB device object.</desc>
7684 </param>
7685 </method>
7686
7687 <method name="findUSBDeviceByAddress">
7688 <desc>
7689 Searches for a USB device with the given host address.
7690
7691 <result name="VBOX_E_OBJECT_NOT_FOUND">
7692 Given @c name does not correspond to any USB device.
7693 </result>
7694
7695 <see><link to="IUSBDevice::address"/></see>
7696 </desc>
7697 <param name="name" type="wstring" dir="in">
7698 <desc>
7699 Address of the USB device (as assigned by the host) to
7700 search for.
7701 </desc>
7702 </param>
7703 <param name="device" type="IHostUSBDevice" dir="return">
7704 <desc>Found USB device object.</desc>
7705 </param>
7706 </method>
7707
7708 <method name="generateMACAddress">
7709 <desc>
7710 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
7711 </desc>
7712 <param name="address" type="wstring" dir="return">
7713 <desc>New Ethernet MAC address.</desc>
7714 </param>
7715 </method>
7716
7717 </interface>
7718
7719 <!--
7720 // ISystemProperties
7721 /////////////////////////////////////////////////////////////////////////
7722 -->
7723
7724 <interface
7725 name="ISystemProperties"
7726 extends="$unknown"
7727 uuid="8a0ab9ab-48c1-4d04-954b-4a751413d084"
7728 wsmap="managed"
7729 >
7730 <desc>
7731 The ISystemProperties interface represents global properties of the given
7732 VirtualBox installation.
7733
7734 These properties define limits and default values for various attributes
7735 and parameters. Most of the properties are read-only, but some can be
7736 changed by a user.
7737 </desc>
7738
7739 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7740 <desc>Minimum guest system memory in Megabytes.</desc>
7741 </attribute>
7742
7743 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7744 <desc>Maximum guest system memory in Megabytes.</desc>
7745 </attribute>
7746
7747 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7748 <desc>Minimum guest video memory in Megabytes.</desc>
7749 </attribute>
7750
7751 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7752 <desc>Maximum guest video memory in Megabytes.</desc>
7753 </attribute>
7754
7755 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7756 <desc>Minimum CPU count.</desc>
7757 </attribute>
7758
7759 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7760 <desc>Maximum CPU count.</desc>
7761 </attribute>
7762
7763 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
7764 <desc>Maximum of monitors which could be connected.</desc>
7765 </attribute>
7766
7767 <attribute name="infoVDSize" type="long long" readonly="yes">
7768 <desc>Maximum size of a virtual disk image in bytes. Informational value,
7769 does not reflect the limits of any virtual disk image format.</desc>
7770 </attribute>
7771
7772 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7773 <desc>
7774 Maximum number of serial ports associated with every
7775 <link to="IMachine"/> instance.
7776 </desc>
7777 </attribute>
7778
7779 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7780 <desc>
7781 Maximum number of parallel ports associated with every
7782 <link to="IMachine"/> instance.
7783 </desc>
7784 </attribute>
7785
7786 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7787 <desc>
7788 Maximum device position in the boot order. This value corresponds
7789 to the total number of devices a machine can boot from, to make it
7790 possible to include all possible devices to the boot list.
7791 <see><link to="IMachine::setBootOrder"/></see>
7792 </desc>
7793 </attribute>
7794
7795 <attribute name="defaultMachineFolder" type="wstring">
7796 <desc>
7797 Full path to the default directory used to create new or open
7798 existing machines when a machine settings file name contains no
7799 path.
7800
7801 Starting with VirtualBox 4.0, by default, this attribute contains
7802 the full path of folder named "VirtualBox VMs" in the user's
7803 home directory, which depends on the host platform.
7804
7805 When setting this attribute, a full path must be specified.
7806 Setting this property to @c null or an empty string or the
7807 special value "Machines" (for compatibility reasons) will restore
7808 that default value.
7809
7810 If the folder specified herein does not exist, it will be created
7811 automatically as needed.
7812
7813 <see>
7814 <link to="IVirtualBox::createMachine"/>,
7815 <link to="IVirtualBox::openMachine"/>
7816 </see>
7817 </desc>
7818 </attribute>
7819
7820 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
7821 <desc>
7822 List of all medium storage formats supported by this VirtualBox
7823 installation.
7824
7825 Keep in mind that the medium format identifier
7826 (<link to="IMediumFormat::id"/>) used in other API calls like
7827 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7828 medium format is a case-insensitive string. This means that, for
7829 example, all of the following strings:
7830 <pre>
7831 "VDI"
7832 "vdi"
7833 "VdI"</pre>
7834 refer to the same medium format.
7835
7836 Note that the virtual medium framework is backend-based, therefore
7837 the list of supported formats depends on what backends are currently
7838 installed.
7839
7840 <see><link to="IMediumFormat"/></see>
7841 </desc>
7842 </attribute>
7843
7844 <attribute name="defaultHardDiskFormat" type="wstring">
7845 <desc>
7846 Identifier of the default medium format used by VirtualBox.
7847
7848 The medium format set by this attribute is used by VirtualBox
7849 when the medium format was not specified explicitly. One example is
7850 <link to="IVirtualBox::createHardDisk"/> with the empty
7851 format argument. A more complex example is implicit creation of
7852 differencing media when taking a snapshot of a virtual machine:
7853 this operation will try to use a format of the parent medium first
7854 and if this format does not support differencing media the default
7855 format specified by this argument will be used.
7856
7857 The list of supported medium formats may be obtained by the
7858 <link to="#mediumFormats"/> call. Note that the default medium
7859 format must have a capability to create differencing media;
7860 otherwise operations that create media implicitly may fail
7861 unexpectedly.
7862
7863 The initial value of this property is <tt>"VDI"</tt> in the current
7864 version of the VirtualBox product, but may change in the future.
7865
7866 <note>
7867 Setting this property to @c null or empty string will restore the
7868 initial value.
7869 </note>
7870
7871 <see>
7872 <link to="#mediumFormats"/>,
7873 <link to="IMediumFormat::id"/>,
7874 <link to="IVirtualBox::createHardDisk"/>
7875 </see>
7876 </desc>
7877 </attribute>
7878
7879 <attribute name="freeDiskSpaceWarning" type="long long">
7880 <desc>Issue a warning if the free disk space is below (or in some disk
7881 intensive operation is expected to go below) the given size in
7882 bytes.</desc>
7883 </attribute>
7884
7885 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
7886 <desc>Issue a warning if the free disk space is below (or in some disk
7887 intensive operation is expected to go below) the given percentage.</desc>
7888 </attribute>
7889
7890 <attribute name="freeDiskSpaceError" type="long long">
7891 <desc>Issue an error if the free disk space is below (or in some disk
7892 intensive operation is expected to go below) the given size in
7893 bytes.</desc>
7894 </attribute>
7895
7896 <attribute name="freeDiskSpacePercentError" type="unsigned long">
7897 <desc>Issue an error if the free disk space is below (or in some disk
7898 intensive operation is expected to go below) the given percentage.</desc>
7899 </attribute>
7900
7901 <attribute name="VRDEAuthLibrary" type="wstring">
7902 <desc>
7903 Library that provides authentication for Remote Desktop clients. The library
7904 is used if a virtual machine's authentication type is set to "external"
7905 in the VM RemoteDisplay configuration.
7906
7907 The system library extension (".DLL" or ".so") must be omitted.
7908 A full path can be specified; if not, then the library must reside on the
7909 system's default library path.
7910
7911 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
7912 of that name in one of the default VirtualBox library directories.
7913
7914 For details about VirtualBox authentication libraries and how to implement
7915 them, please refer to the VirtualBox manual.
7916
7917 <note>
7918 Setting this property to @c null or empty string will restore the
7919 initial value.
7920 </note>
7921 </desc>
7922 </attribute>
7923
7924 <attribute name="webServiceAuthLibrary" type="wstring">
7925 <desc>
7926 Library that provides authentication for webservice clients. The library
7927 is used if a virtual machine's authentication type is set to "external"
7928 in the VM RemoteDisplay configuration and will be called from
7929 within the <link to="IWebsessionManager::logon" /> implementation.
7930
7931 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
7932 there is no per-VM setting for this, as the webservice is a global
7933 resource (if it is running). Only for this setting (for the webservice),
7934 setting this value to a literal <tt>"null"</tt> string disables authentication,
7935 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7936 no matter what user name and password are supplied.
7937
7938 The initial value of this property is <tt>"VBoxAuth"</tt>,
7939 meaning that the webservice will use the same authentication
7940 library that is used by default for VRDE (again, see
7941 <link to="ISystemProperties::VRDEAuthLibrary" />).
7942 The format and calling convention of authentication libraries
7943 is the same for the webservice as it is for VRDE.
7944
7945 <note>
7946 Setting this property to @c null or empty string will restore the
7947 initial value.
7948 </note>
7949 </desc>
7950 </attribute>
7951
7952 <attribute name="defaultVRDEExtPack" type="wstring">
7953 <desc>
7954 The name of the extension pack providing the default VRDE.
7955
7956 This attribute is for choosing between multiple extension packs
7957 providing VRDE. If only one is installed, it will automatically be the
7958 default one. The attribute value can be empty if no VRDE extension
7959 pack is installed.
7960
7961 For details about VirtualBox Remote Desktop Extension and how to
7962 implement one, please refer to the VirtualBox SDK.
7963 </desc>
7964 </attribute>
7965
7966 <attribute name="logHistoryCount" type="unsigned long">
7967 <desc>
7968 This value specifies how many old release log files are kept.
7969 </desc>
7970 </attribute>
7971
7972 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7973 <desc>This value hold the default audio driver for the current
7974 system.</desc>
7975 </attribute>
7976
7977
7978 <method name="getMaxNetworkAdapters">
7979 <desc>
7980 Maximum total number of network adapters associated with every
7981 <link to="IMachine"/> instance.
7982 </desc>
7983
7984 <param name="chipset" type="ChipsetType" dir="in">
7985 <desc>The chipset type to get the value for.</desc>
7986 </param>
7987
7988
7989 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
7990 <desc>The maximum total number of network adapters allowed.</desc>
7991 </param>
7992
7993 </method>
7994
7995 <method name="getMaxNetworkAdaptersOfType">
7996 <desc>
7997 Maximum number of network adapters of a given attachment type,
7998 associated with every <link to="IMachine"/> instance.
7999 </desc>
8000
8001 <param name="chipset" type="ChipsetType" dir="in">
8002 <desc>The chipset type to get the value for.</desc>
8003 </param>
8004
8005 <param name="type" type="NetworkAttachmentType" dir="in">
8006 <desc>Type of attachment.</desc>
8007 </param>
8008
8009 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8010 <desc>The maximum number of network adapters allowed for
8011 particular chipset and attachment type.</desc>
8012 </param>
8013
8014 </method>
8015
8016
8017 <method name="getMaxDevicesPerPortForStorageBus">
8018 <desc>Returns the maximum number of devices which can be attached to a port
8019 for the given storage bus.</desc>
8020
8021 <param name="bus" type="StorageBus" dir="in">
8022 <desc>The storage bus type to get the value for.</desc>
8023 </param>
8024
8025 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8026 <desc>The maximum number of devices which can be attached to the port for the given
8027 storage bus.</desc>
8028 </param>
8029 </method>
8030
8031 <method name="getMinPortCountForStorageBus">
8032 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8033
8034 <param name="bus" type="StorageBus" dir="in">
8035 <desc>The storage bus type to get the value for.</desc>
8036 </param>
8037
8038 <param name="minPortCount" type="unsigned long" dir="return">
8039 <desc>The minimum number of ports for the given storage bus.</desc>
8040 </param>
8041 </method>
8042
8043 <method name="getMaxPortCountForStorageBus">
8044 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8045
8046 <param name="bus" type="StorageBus" dir="in">
8047 <desc>The storage bus type to get the value for.</desc>
8048 </param>
8049
8050 <param name="maxPortCount" type="unsigned long" dir="return">
8051 <desc>The maximum number of ports for the given storage bus.</desc>
8052 </param>
8053 </method>
8054
8055 <method name="getMaxInstancesOfStorageBus">
8056 <desc>Returns the maximum number of storage bus instances which
8057 can be configured for each VM. This corresponds to the number of
8058 storage controllers one can have. Value may depend on chipset type
8059 used.</desc>
8060
8061 <param name="chipset" type="ChipsetType" dir="in">
8062 <desc>The chipset type to get the value for.</desc>
8063 </param>
8064
8065 <param name="bus" type="StorageBus" dir="in">
8066 <desc>The storage bus type to get the value for.</desc>
8067 </param>
8068
8069 <param name="maxInstances" type="unsigned long" dir="return">
8070 <desc>The maximum number of instances for the given storage bus.</desc>
8071 </param>
8072 </method>
8073
8074 <method name="getDeviceTypesForStorageBus">
8075 <desc>Returns list of all the supported device types
8076 (<link to="DeviceType"/>) for the given type of storage
8077 bus.</desc>
8078
8079 <param name="bus" type="StorageBus" dir="in">
8080 <desc>The storage bus type to get the value for.</desc>
8081 </param>
8082
8083 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8084 <desc>The list of all supported device types for the given storage bus.</desc>
8085 </param>
8086 </method>
8087
8088 <method name="getDefaultIoCacheSettingForStorageController">
8089 <desc>Returns the default I/O cache setting for the
8090 given storage controller</desc>
8091
8092 <param name="controllerType" type="StorageControllerType" dir="in">
8093 <desc>The storage controller to the setting for.</desc>
8094 </param>
8095
8096 <param name="enabled" type="boolean" dir="return">
8097 <desc>Returned flag indicating the default value</desc>
8098 </param>
8099 </method>
8100 </interface>
8101
8102 <!--
8103 // IGuest
8104 /////////////////////////////////////////////////////////////////////////
8105 -->
8106
8107 <interface
8108 name="IGuestOSType" extends="$unknown"
8109 uuid="432c1546-1354-4abf-bf08-878a32a373f5"
8110 wsmap="struct"
8111 >
8112 <desc>
8113 </desc>
8114
8115 <attribute name="familyId" type="wstring" readonly="yes">
8116 <desc>Guest OS family identifier string.</desc>
8117 </attribute>
8118
8119 <attribute name="familyDescription" type="wstring" readonly="yes">
8120 <desc>Human readable description of the guest OS family.</desc>
8121 </attribute>
8122
8123 <attribute name="id" type="wstring" readonly="yes">
8124 <desc>Guest OS identifier string.</desc>
8125 </attribute>
8126
8127 <attribute name="description" type="wstring" readonly="yes">
8128 <desc>Human readable description of the guest OS.</desc>
8129 </attribute>
8130
8131 <attribute name="is64Bit" type="boolean" readonly="yes">
8132 <desc>Returns @c true if the given OS is 64-bit</desc>
8133 </attribute>
8134
8135 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8136 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8137 </attribute>
8138
8139 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8140 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8141 </attribute>
8142
8143 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8144 <desc>Recommended RAM size in Megabytes.</desc>
8145 </attribute>
8146
8147 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8148 <desc>Recommended video RAM size in Megabytes.</desc>
8149 </attribute>
8150
8151 <attribute name="recommendedHDD" type="long long" readonly="yes">
8152 <desc>Recommended hard disk size in bytes.</desc>
8153 </attribute>
8154
8155 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8156 <desc>Returns recommended network adapter for this OS type.</desc>
8157 </attribute>
8158
8159 <attribute name="recommendedPae" type="boolean" readonly="yes">
8160 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8161 </attribute>
8162
8163 <attribute name="recommendedDvdStorageController" type="StorageControllerType" readonly="yes">
8164 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8165 </attribute>
8166
8167 <attribute name="recommendedDvdStorageBus" type="StorageBus" readonly="yes">
8168 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8169 </attribute>
8170
8171 <attribute name="recommendedHdStorageController" type="StorageControllerType" readonly="yes">
8172 <desc>Recommended storage controller type for HD drives.</desc>
8173 </attribute>
8174
8175 <attribute name="recommendedHdStorageBus" type="StorageBus" readonly="yes">
8176 <desc>Recommended storage bus type for HD drives.</desc>
8177 </attribute>
8178
8179 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8180 <desc>Recommended firmware type.</desc>
8181 </attribute>
8182
8183 <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
8184 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8185 </attribute>
8186
8187 <attribute name="recommendedHpet" type="boolean" readonly="yes">
8188 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8189 </attribute>
8190
8191 <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
8192 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8193 </attribute>
8194
8195 <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
8196 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8197 </attribute>
8198
8199 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8200 <desc>Recommended chipset type.</desc>
8201 </attribute>
8202
8203 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8204 <desc>Recommended audio type.</desc>
8205 </attribute>
8206
8207 </interface>
8208
8209 <enum
8210 name="AdditionsFacilityType"
8211 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8212 >
8213 <desc>
8214 Guest Additions facility IDs.
8215 </desc>
8216
8217 <const name="None" value="0">
8218 <desc>No/invalid facility.</desc>
8219 </const>
8220 <const name="VBoxGuestDriver" value="20">
8221 <desc>VirtualBox base driver (VBoxGuest).</desc>
8222 </const>
8223 <const name="VBoxService" value="100">
8224 <desc>VirtualBox system service (VBoxService).</desc>
8225 </const>
8226 <const name="VBoxTrayClient" value="101">
8227 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8228 </const>
8229 <const name="Seamless" value="1000">
8230 <desc>Seamless guest desktop integration.</desc>
8231 </const>
8232 <const name="Graphics" value="1100">
8233 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8234 are not immediately acted on and guest display resizes are probably not initiated by
8235 the guest additions.
8236 </desc>
8237 </const>
8238 <const name="All" value="2147483646">
8239 <desc>All facilities selected.</desc>
8240 </const>
8241 </enum>
8242
8243 <enum
8244 name="AdditionsFacilityClass"
8245 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8246 >
8247 <desc>
8248 Guest Additions facility classes.
8249 </desc>
8250
8251 <const name="None" value="0">
8252 <desc>No/invalid class.</desc>
8253 </const>
8254 <const name="Driver" value="10">
8255 <desc>Driver.</desc>
8256 </const>
8257 <const name="Service" value="30">
8258 <desc>System service.</desc>
8259 </const>
8260 <const name="Program" value="50">
8261 <desc>Program.</desc>
8262 </const>
8263 <const name="Feature" value="100">
8264 <desc>Feature.</desc>
8265 </const>
8266 <const name="ThirdParty" value="999">
8267 <desc>Third party.</desc>
8268 </const>
8269 <const name="All" value="2147483646">
8270 <desc>All facility classes selected.</desc>
8271 </const>
8272 </enum>
8273
8274 <enum
8275 name="AdditionsFacilityStatus"
8276 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8277 >
8278 <desc>
8279 Guest Additions facility states.
8280 </desc>
8281
8282 <const name="Inactive" value="0">
8283 <desc>Facility is not active.</desc>
8284 </const>
8285 <const name="Paused" value="1">
8286 <desc>Facility has been paused.</desc>
8287 </const>
8288 <const name="PreInit" value="20">
8289 <desc>Facility is preparing to initialize.</desc>
8290 </const>
8291 <const name="Init" value="30">
8292 <desc>Facility is initializing.</desc>
8293 </const>
8294 <const name="Active" value="50">
8295 <desc>Facility is up and running.</desc>
8296 </const>
8297 <const name="Terminating" value="100">
8298 <desc>Facility is shutting down.</desc>
8299 </const>
8300 <const name="Terminated" value="101">
8301 <desc>Facility successfully shut down.</desc>
8302 </const>
8303 <const name="Failed" value="800">
8304 <desc>Facility failed to start.</desc>
8305 </const>
8306 <const name="Unknown" value="999">
8307 <desc>Facility status is unknown.</desc>
8308 </const>
8309 </enum>
8310
8311 <interface
8312 name="IAdditionsFacility" extends="$unknown"
8313 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8314 wsmap="struct"
8315 >
8316 <desc>
8317 Structure representing a Guest Additions facility.
8318 </desc>
8319
8320 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8321 <desc>The class this facility is part of.</desc>
8322 </attribute>
8323
8324 <attribute name="lastUpdated" type="long long" readonly="yes">
8325 <desc>
8326 Time stamp of the last status update,
8327 in milliseconds since 1970-01-01 UTC.
8328 </desc>
8329 </attribute>
8330
8331 <attribute name="name" type="wstring" readonly="yes">
8332 <desc>The facility's friendly name.</desc>
8333 </attribute>
8334
8335 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8336 <desc>The current status.</desc>
8337 </attribute>
8338
8339 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8340 <desc>The facility's type ID.</desc>
8341 </attribute>
8342 </interface>
8343
8344 <enum
8345 name="AdditionsRunLevelType"
8346 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8347 >
8348 <desc>
8349 Guest Additions run level type.
8350 </desc>
8351
8352 <const name="None" value="0">
8353 <desc>Guest Additions are not loaded.</desc>
8354 </const>
8355 <const name="System" value="1">
8356 <desc>Guest drivers are loaded.</desc>
8357 </const>
8358 <const name="Userland" value="2">
8359 <desc>Common components (such as application services) are loaded.</desc>
8360 </const>
8361 <const name="Desktop" value="3">
8362 <desc>Per-user desktop components are loaded.</desc>
8363 </const>
8364 </enum>
8365
8366 <enum
8367 name="AdditionsUpdateFlag"
8368 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8369 >
8370 <desc>
8371 Guest Additions update flags.
8372 </desc>
8373
8374 <const name="None" value="0">
8375 <desc>No flag set.</desc>
8376 </const>
8377 <const name="WaitForUpdateStartOnly" value="1">
8378 <desc>Only wait for the update process being started and do not
8379 wait while peforming the actual update.</desc>
8380 </const>
8381 </enum>
8382
8383 <enum
8384 name="ExecuteProcessFlag"
8385 uuid="286ceb91-5f66-4c96-9845-4483e90e00ae"
8386 >
8387 <desc>
8388 Guest process execution flags.
8389 </desc>
8390
8391 <const name="None" value="0">
8392 <desc>No flag set.</desc>
8393 </const>
8394 <const name="WaitForProcessStartOnly" value="1">
8395 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
8396 process itself then uses an infinite timeout.</desc>
8397 </const>
8398 <const name="IgnoreOrphanedProcesses" value="2">
8399 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
8400 </const>
8401 <const name="Hidden" value="4">
8402 <desc>Don't show the started process according to the guest OS guidelines.</desc>
8403 </const>
8404 <const name="NoProfile" value="8">
8405 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
8406 </const>
8407 </enum>
8408
8409 <enum
8410 name="ExecuteProcessStatus"
8411 uuid="153768d9-d971-4098-8b5a-c5cb1ab9ea88"
8412 >
8413 <desc>
8414 Guest process execution status.
8415 </desc>
8416 <const name="Undefined" value="0">
8417 <desc>Process is in an undefined state.</desc>
8418 </const>
8419
8420 <const name="Started" value="1">
8421 <desc>Process has been started.</desc>
8422 </const>
8423 <const name="TerminatedNormally" value="2">
8424 <desc>Process terminated normally.</desc>
8425 </const>
8426 <const name="TerminatedSignal" value="3">
8427 <desc>Process terminated via signal.</desc>
8428 </const>
8429 <const name="TerminatedAbnormally" value="4">
8430 <desc>Process terminated abnormally.</desc>
8431 </const>
8432 <const name="TimedOutKilled" value="5">
8433 <desc>Process timed out and was killed.</desc>
8434 </const>
8435 <const name="TimedOutAbnormally" value="6">
8436 <desc>Process timed out and was not killed successfully.</desc>
8437 </const>
8438 <const name="Down" value="7">
8439 <desc>Service/OS is stopping, process was killed.</desc>
8440 </const>
8441 <const name="Error" value="8">
8442 <desc>Something went wrong (error code in flags).</desc>
8443 </const>
8444 </enum>
8445
8446 <enum
8447 name="ProcessInputFlag"
8448 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8449 >
8450 <desc>
8451 Guest process input flags.
8452 </desc>
8453 <const name="None" value="0">
8454 <desc>No flag set.</desc>
8455 </const>
8456 <const name="EndOfFile" value="1">
8457 <desc>End of file (input) reached.</desc>
8458 </const>
8459 </enum>
8460
8461 <enum
8462 name="ProcessOutputFlag"
8463 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
8464 >
8465 <desc>
8466 Guest process output flags for specifying which
8467 type of output to retrieve.
8468 </desc>
8469 <const name="None" value="0">
8470 <desc>No flags set. Get output from stdout.</desc>
8471 </const>
8472 <const name="StdErr" value="1">
8473 <desc>Get output from stderr.</desc>
8474 </const>
8475 </enum>
8476
8477 <enum
8478 name="CopyFileFlag"
8479 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
8480 >
8481 <desc>
8482 Host/Guest copy flags. At the moment none of these flags
8483 are implemented.
8484 </desc>
8485 <const name="None" value="0">
8486 <desc>No flag set.</desc>
8487 </const>
8488 <const name="Recursive" value="1">
8489 <desc>Copy directories recursively.</desc>
8490 </const>
8491 <const name="Update" value="2">
8492 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
8493 </const>
8494 <const name="FollowLinks" value="4">
8495 <desc>Follow symbolic links.</desc>
8496 </const>
8497 </enum>
8498
8499 <enum
8500 name="DirectoryCreateFlag"
8501 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
8502 >
8503 <desc>
8504 Directory creation flags.
8505 </desc>
8506 <const name="None" value="0">
8507 <desc>No flag set.</desc>
8508 </const>
8509 <const name="Parents" value="1">
8510 <desc>No error if existing, make parent directories as needed.</desc>
8511 </const>
8512 </enum>
8513
8514 <enum
8515 name="DirectoryOpenFlag"
8516 uuid="fc8f6203-0072-4f34-bd08-0b35e50bf071"
8517 >
8518 <desc>
8519 Directory open flags.
8520 </desc>
8521 <const name="None" value="0">
8522 <desc>No flag set.</desc>
8523 </const>
8524 </enum>
8525
8526 <enum
8527 name="GuestDirEntryType"
8528 uuid="6d19d924-1b77-4fc8-b369-a3b2c85c8241"
8529 >
8530 <desc>
8531 Guest directory entry type.
8532 </desc>
8533 <const name="Unknown" value="0">
8534 <desc>Unknown.</desc>
8535 </const>
8536 <const name="Directory" value="4">
8537 <desc>Regular file.</desc>
8538 </const>
8539 <const name="File" value="10">
8540 <desc>Regular file.</desc>
8541 </const>
8542 <const name="Symlink" value="12">
8543 <desc>Symbolic link.</desc>
8544 </const>
8545 </enum>
8546
8547 <interface
8548 name="IGuestDirEntry" extends="$unknown"
8549 uuid="20a66efc-c2f6-4438-826f-38454c04369e"
8550 wsmap="struct"
8551 >
8552 <desc>
8553 Structure representing a directory entry on the guest OS.
8554 </desc>
8555 <attribute name="nodeId" type="long long" readonly="yes">
8556 <desc>The unique identifier (within the guest's file system) of this file system object.</desc>
8557 </attribute>
8558 <attribute name="name" type="wstring" readonly="yes">
8559 <desc>The filename.</desc>
8560 </attribute>
8561 <attribute name="type" type="GuestDirEntryType" readonly="yes">
8562 <desc>The entry type.</desc>
8563 </attribute>
8564 </interface>
8565
8566 <interface
8567 name="IGuest" extends="$unknown"
8568 uuid="ed109b6e-0578-4b17-8ace-52646789f1a0"
8569 wsmap="managed"
8570 >
8571 <desc>
8572 The IGuest interface represents information about the operating system
8573 running inside the virtual machine. Used in
8574 <link to="IConsole::guest"/>.
8575
8576 IGuest provides information about the guest operating system, whether
8577 Guest Additions are installed and other OS-specific virtual machine
8578 properties.
8579 </desc>
8580
8581 <attribute name="OSTypeId" type="wstring" readonly="yes">
8582 <desc>
8583 Identifier of the Guest OS type as reported by the Guest
8584 Additions.
8585 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
8586 an IGuestOSType object representing details about the given
8587 Guest OS type.
8588 <note>
8589 If Guest Additions are not installed, this value will be
8590 the same as <link to="IMachine::OSTypeId"/>.
8591 </note>
8592 </desc>
8593 </attribute>
8594
8595 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
8596 <desc>
8597 Current run level of the Guest Additions.
8598 </desc>
8599 </attribute>
8600
8601 <attribute name="additionsVersion" type="wstring" readonly="yes">
8602 <desc>
8603 Version of the Guest Additions including the revision (3 decimal numbers
8604 separated by dots + revision number) installed on the guest or empty
8605 when the Additions are not installed.
8606 </desc>
8607 </attribute>
8608
8609 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
8610 <desc>
8611 Array of current known facilities. Only returns facilities where a status is known,
8612 e.g. facilities with an unknown status will not be returned.
8613 </desc>
8614 </attribute>
8615
8616 <attribute name="memoryBalloonSize" type="unsigned long">
8617 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
8618 </attribute>
8619
8620 <attribute name="statisticsUpdateInterval" type="unsigned long">
8621 <desc>Interval to update guest statistics in seconds.</desc>
8622 </attribute>
8623
8624 <method name="internalGetStatistics">
8625 <desc>
8626 Internal method; do not use as it might change at any time.
8627 </desc>
8628 <param name="cpuUser" type="unsigned long" dir="out">
8629 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
8630 </param>
8631 <param name="cpuKernel" type="unsigned long" dir="out">
8632 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
8633 </param>
8634 <param name="cpuIdle" type="unsigned long" dir="out">
8635 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
8636 </param>
8637 <param name="memTotal" type="unsigned long" dir="out">
8638 <desc>Total amount of physical guest RAM.</desc>
8639 </param>
8640 <param name="memFree" type="unsigned long" dir="out">
8641 <desc>Free amount of physical guest RAM.</desc>
8642 </param>
8643 <param name="memBalloon" type="unsigned long" dir="out">
8644 <desc>Amount of ballooned physical guest RAM.</desc>
8645 </param>
8646 <param name="memShared" type="unsigned long" dir="out">
8647 <desc>Amount of shared physical guest RAM.</desc>
8648 </param>
8649 <param name="memCache" type="unsigned long" dir="out">
8650 <desc>Total amount of guest (disk) cache memory.</desc>
8651 </param>
8652 <param name="pagedTotal" type="unsigned long" dir="out">
8653 <desc>Total amount of space in the page file.</desc>
8654 </param>
8655 <param name="memAllocTotal" type="unsigned long" dir="out">
8656 <desc>Total amount of memory allocated by the hypervisor.</desc>
8657 </param>
8658 <param name="memFreeTotal" type="unsigned long" dir="out">
8659 <desc>Total amount of free memory available in the hypervisor.</desc>
8660 </param>
8661 <param name="memBalloonTotal" type="unsigned long" dir="out">
8662 <desc>Total amount of memory ballooned by the hypervisor.</desc>
8663 </param>
8664 <param name="memSharedTotal" type="unsigned long" dir="out">
8665 <desc>Total amount of shared memory in the hypervisor.</desc>
8666 </param>
8667 </method>
8668
8669 <method name="getFacilityStatus">
8670 <desc>
8671 Get the current status of a Guest Additions facility.
8672 </desc>
8673 <param name="facility" type="AdditionsFacilityType" dir="in">
8674 <desc>Facility to check status for.</desc>
8675 </param>
8676 <param name="timestamp" type="long long" dir="out">
8677 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
8678 </param>
8679 <param name="status" type="AdditionsFacilityStatus" dir="return">
8680 <desc>The current (latest) facility status.</desc>
8681 </param>
8682 </method>
8683
8684 <method name="getAdditionsStatus">
8685 <desc>
8686 Retrieve the current status of a certain Guest Additions run level.
8687
8688 <result name="VBOX_E_NOT_SUPPORTED">
8689 Wrong status level specified.
8690 </result>
8691
8692 </desc>
8693 <param name="level" type="AdditionsRunLevelType" dir="in">
8694 <desc>Status level to check</desc>
8695 </param>
8696 <param name="active" type="boolean" dir="return">
8697 <desc>Flag whether the status level has been reached or not</desc>
8698 </param>
8699 </method>
8700
8701 <method name="setCredentials">
8702 <desc>
8703 Store login credentials that can be queried by guest operating
8704 systems with Additions installed. The credentials are transient
8705 to the session and the guest may also choose to erase them. Note
8706 that the caller cannot determine whether the guest operating system
8707 has queried or made use of the credentials.
8708
8709 <result name="VBOX_E_VM_ERROR">
8710 VMM device is not available.
8711 </result>
8712
8713 </desc>
8714 <param name="userName" type="wstring" dir="in">
8715 <desc>User name string, can be empty</desc>
8716 </param>
8717 <param name="password" type="wstring" dir="in">
8718 <desc>Password string, can be empty</desc>
8719 </param>
8720 <param name="domain" type="wstring" dir="in">
8721 <desc>Domain name (guest logon scheme specific), can be empty</desc>
8722 </param>
8723 <param name="allowInteractiveLogon" type="boolean" dir="in">
8724 <desc>
8725 Flag whether the guest should alternatively allow the user to
8726 interactively specify different credentials. This flag might
8727 not be supported by all versions of the Additions.
8728 </desc>
8729 </param>
8730 </method>
8731
8732 <method name="executeProcess">
8733 <desc>
8734 Executes an existing program inside the guest VM.
8735
8736 <note>
8737 Starting at VirtualBox 4.1.2 guest process execution by default is limited
8738 to serve up to 5 guest processes at a time. If a new guest process gets started
8739 which would exceed this limit, the oldest not running guest process will be discarded
8740 in order to be able to run that new process. Also, retrieving output from this
8741 old guest process will not be possible anymore then. If all 5 guest processes
8742 are still active and running, starting a new guest process will result in an
8743 appropriate error message.
8744
8745 To raise or lower the guest process execution limit, either the guest property
8746 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
8747 command line by specifying "--control-procs-max-kept" needs to be modified.
8748 A restart of the guest OS is required afterwards. To serve unlimited guest
8749 processes, a value of "0" needs to be set (not recommended).
8750 </note>
8751
8752 <result name="VBOX_E_IPRT_ERROR">
8753 Could not execute process.
8754 </result>
8755
8756 </desc>
8757 <param name="execName" type="wstring" dir="in">
8758 <desc>
8759 Full path name of the command to execute on the guest; the
8760 commands has to exists in the guest VM in order to be executed.
8761 </desc>
8762 </param>
8763 <param name="flags" type="unsigned long" dir="in">
8764 <desc>
8765 <link to="ExecuteProcessFlag"/> flags.
8766 </desc>
8767 </param>
8768 <param name="arguments" type="wstring" safearray="yes" dir="in">
8769 <desc>
8770 Array of arguments passed to the execution command.
8771 </desc>
8772 </param>
8773 <param name="environment" type="wstring" safearray="yes" dir="in">
8774 <desc>
8775 Environment variables that can be set while the command is being
8776 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
8777 variable just set its name ("NAME") without a value.
8778 </desc>
8779 </param>
8780 <param name="userName" type="wstring" dir="in">
8781 <desc>
8782 User name under which the command will be executed; has to exist
8783 and have the appropriate rights to execute programs in the VM.
8784 </desc>
8785 </param>
8786 <param name="password" type="wstring" dir="in">
8787 <desc>
8788 Password of the user account specified.
8789 </desc>
8790 </param>
8791 <param name="timeoutMS" type="unsigned long" dir="in">
8792 <desc>
8793 The maximum timeout value (in msec) to wait for finished program
8794 execution. Pass 0 for an infinite timeout.
8795 </desc>
8796 </param>
8797 <param name="pid" type="unsigned long" dir="out">
8798 <desc>
8799 The PID (process ID) of the started command for later reference.
8800 </desc>
8801 </param>
8802 <param name="progress" type="IProgress" dir="return">
8803 <desc>Progress object to track the operation completion.</desc>
8804 </param>
8805 </method>
8806
8807 <method name="getProcessOutput">
8808 <desc>
8809 Retrieves output of a formerly started process.
8810
8811 <result name="VBOX_E_IPRT_ERROR">
8812 Could not retrieve output.
8813 </result>
8814
8815 </desc>
8816 <param name="pid" type="unsigned long" dir="in">
8817 <desc>
8818 Process id returned by earlier <link to="#executeProcess"/> call.
8819 </desc>
8820 </param>
8821 <param name="flags" type="unsigned long" dir="in">
8822 <desc>
8823 <link to="ProcessOutputFlag"/> flags.
8824 </desc>
8825 </param>
8826 <param name="timeoutMS" type="unsigned long" dir="in">
8827 <desc>
8828 The maximum timeout value (in msec) to wait for output
8829 data. Pass 0 for an infinite timeout.
8830 </desc>
8831 </param>
8832 <param name="size" type="long long" dir="in">
8833 <desc>
8834 Size in bytes to read in the buffer.
8835 </desc>
8836 </param>
8837 <param name="data" type="octet" safearray="yes" dir="return">
8838 <desc>
8839 Buffer for retrieving the actual output. A data size of 0 means end of file
8840 if the requested size was not 0. This is the unprocessed
8841 output data, i.e. the line ending style depends on the platform of
8842 the system the server is running on.
8843 </desc>
8844 </param>
8845 </method>
8846
8847 <method name="getProcessStatus">
8848 <desc>
8849 Retrieves status, exit code and the exit reason of a formerly started process.
8850
8851 <result name="VBOX_E_IPRT_ERROR">
8852 Process with specified PID was not found.
8853 </result>
8854
8855 </desc>
8856 <param name="pid" type="unsigned long" dir="in">
8857 <desc>
8858 Process id returned by earlier <link to="#executeProcess"/> call.
8859 </desc>
8860 </param>
8861 <param name="exitcode" type="unsigned long" dir="out">
8862 <desc>
8863 The exit code (if available).
8864 </desc>
8865 </param>
8866 <param name="flags" type="unsigned long" dir="out">
8867 <desc>
8868 Additional flags of process status. Not used at the moment and
8869 must be set to 0.
8870 </desc>
8871 </param>
8872 <param name="reason" type="ExecuteProcessStatus" dir="return">
8873 <desc>
8874 The current process status.
8875 </desc>
8876 </param>
8877 </method>
8878
8879 <method name="copyFromGuest">
8880 <desc>
8881 Copies files/directories from guest to the host.
8882
8883 <result name="VBOX_E_IPRT_ERROR">
8884 Error while copying.
8885 </result>
8886
8887 </desc>
8888 <param name="source" type="wstring" dir="in">
8889 <desc>
8890 Source file on the guest to copy.
8891 </desc>
8892 </param>
8893 <param name="dest" type="wstring" dir="in">
8894 <desc>
8895 Destination path on the host.
8896 </desc>
8897 </param>
8898 <param name="userName" type="wstring" dir="in">
8899 <desc>
8900 User name under which the copy command will be executed; the
8901 user has to exist and have the appropriate rights to read from
8902 the source path.
8903 </desc>
8904 </param>
8905 <param name="password" type="wstring" dir="in">
8906 <desc>
8907 Password of the user account specified.
8908 </desc>
8909 </param>
8910 <param name="flags" type="unsigned long" dir="in">
8911 <desc>
8912 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
8913 </desc>
8914 </param>
8915 <param name="progress" type="IProgress" dir="return">
8916 <desc>Progress object to track the operation completion.</desc>
8917 </param>
8918 </method>
8919
8920 <method name="copyToGuest">
8921 <desc>
8922 Copies files/directories from host to the guest.
8923
8924 <result name="VBOX_E_IPRT_ERROR">
8925 Error while copying.
8926 </result>
8927
8928 </desc>
8929 <param name="source" type="wstring" dir="in">
8930 <desc>
8931 Source file on the host to copy.
8932 </desc>
8933 </param>
8934 <param name="dest" type="wstring" dir="in">
8935 <desc>
8936 Destination path on the guest.
8937 </desc>
8938 </param>
8939 <param name="userName" type="wstring" dir="in">
8940 <desc>
8941 User name under which the copy command will be executed; the
8942 user has to exist and have the appropriate rights to write to
8943 the destination path.
8944 </desc>
8945 </param>
8946 <param name="password" type="wstring" dir="in">
8947 <desc>
8948 Password of the user account specified.
8949 </desc>
8950 </param>
8951 <param name="flags" type="unsigned long" dir="in">
8952 <desc>
8953 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
8954 </desc>
8955 </param>
8956 <param name="progress" type="IProgress" dir="return">
8957 <desc>Progress object to track the operation completion.</desc>
8958 </param>
8959 </method>
8960
8961 <method name="directoryClose">
8962 <desc>
8963 Closes a formerly opened guest directory.
8964
8965 <result name="VBOX_E_IPRT_ERROR">
8966 Error while closing directory.
8967 </result>
8968
8969 </desc>
8970 <param name="handle" type="unsigned long" dir="in">
8971 <desc>
8972 Handle of opened directory to close.
8973 </desc>
8974 </param>
8975 </method>
8976
8977 <method name="directoryCreate">
8978 <desc>
8979 Creates a directory on the guest.
8980
8981 <result name="VBOX_E_IPRT_ERROR">
8982 Error while creating directory.
8983 </result>
8984
8985 </desc>
8986 <param name="directory" type="wstring" dir="in">
8987 <desc>
8988 Directory to create.
8989 </desc>
8990 </param>
8991 <param name="userName" type="wstring" dir="in">
8992 <desc>
8993 User name under which the directory creation will be executed; the
8994 user has to exist and have the appropriate rights to create the
8995 desired directory.
8996 </desc>
8997 </param>
8998 <param name="password" type="wstring" dir="in">
8999 <desc>
9000 Password of the user account specified.
9001 </desc>
9002 </param>
9003 <param name="mode" type="unsigned long" dir="in">
9004 <desc>
9005 File mode.
9006 </desc>
9007 </param>
9008 <param name="flags" type="unsigned long" dir="in">
9009 <desc>
9010 <link to="DirectoryCreateFlag"/> flags.
9011 </desc>
9012 </param>
9013 </method>
9014
9015 <method name="directoryOpen">
9016 <desc>
9017 Opens a directory on the guest.
9018
9019 <result name="VBOX_E_IPRT_ERROR">
9020 Error while opening / reading directory.
9021 </result>
9022
9023 </desc>
9024 <param name="directory" type="wstring" dir="in">
9025 <desc>
9026 Directory to read.
9027 </desc>
9028 </param>
9029 <param name="filter" type="wstring" dir="in">
9030 <desc>
9031 Directory filter (DOS style wildcards). Set to empty
9032 string if no filter required.
9033 </desc>
9034 </param>
9035 <param name="flags" type="unsigned long" dir="in">
9036 <desc>
9037 <link to="DirectoryOpenFlag"/> flags.
9038 </desc>
9039 </param>
9040 <param name="userName" type="wstring" dir="in">
9041 <desc>
9042 User name under which the directory reading will be performed; the
9043 user has to exist and have the appropriate rights to access / read the
9044 desired directory.
9045 </desc>
9046 </param>
9047 <param name="password" type="wstring" dir="in">
9048 <desc>
9049 Password of the user account specified.
9050 </desc>
9051 </param>
9052 <param name="handle" type="unsigned long" dir="return">
9053 <desc>
9054 Handle of opened directory returned by openDirectory.
9055 </desc>
9056 </param>
9057 </method>
9058
9059 <method name="directoryRead">
9060 <desc>
9061 Reads the next directory entry of an opened guest directory.
9062
9063 <result name="E_ABORT">
9064 When the end of the directory has been reached.
9065 </result>
9066
9067 <result name="VBOX_E_IPRT_ERROR">
9068 Error while opening / reading directory.
9069 </result>
9070
9071 </desc>
9072 <param name="handle" type="unsigned long" dir="in">
9073 <desc>
9074 Handle of opened directory returned by openDirectory.
9075 </desc>
9076 </param>
9077 <param name="entry" type="IGuestDirEntry" dir="return">
9078 <desc>
9079 Information about next directory entry on success.
9080 </desc>
9081 </param>
9082 </method>
9083
9084 <method name="fileExists">
9085 <desc>
9086 Checks if the specified file name exists and is a regular file.
9087
9088 If the file name ends with a slash or backslash, the function assumes
9089 it's a directory and will check if the specified directory exists and
9090 is a regular directory.
9091
9092 <result name="VBOX_E_IPRT_ERROR">
9093 Error while looking up information.
9094 </result>
9095
9096 </desc>
9097 <param name="file" type="wstring" dir="in">
9098 <desc>
9099 Full path of file to check.
9100 </desc>
9101 </param>
9102 <param name="userName" type="wstring" dir="in">
9103 <desc>
9104 User name under which the lookup will be performed; the
9105 user has to exist and have the appropriate rights to access / read the
9106 desired directory.
9107 </desc>
9108 </param>
9109 <param name="password" type="wstring" dir="in">
9110 <desc>
9111 Password of the user account specified.
9112 </desc>
9113 </param>
9114 <param name="exists" type="boolean" dir="return">
9115 <desc>
9116 True if it's a regular file, false if it isn't (or doesn't exist).
9117 </desc>
9118 </param>
9119 </method>
9120
9121 <method name="fileQuerySize">
9122 <desc>
9123 Queries the size of a file, given the path to it.
9124
9125 <result name="VBOX_E_IPRT_ERROR">
9126 Error while looking up information.
9127 </result>
9128
9129 </desc>
9130 <param name="file" type="wstring" dir="in">
9131 <desc>
9132 Full path of file to query file size for.
9133 </desc>
9134 </param>
9135 <param name="userName" type="wstring" dir="in">
9136 <desc>
9137 User name under which the lookup will be performed; the
9138 user has to exist and have the appropriate rights to access / read the
9139 desired directory.
9140 </desc>
9141 </param>
9142 <param name="password" type="wstring" dir="in">
9143 <desc>
9144 Password of the user account specified.
9145 </desc>
9146 </param>
9147 <param name="size" type="long long" dir="return">
9148 <desc>
9149 Size (in bytes) of file specified.
9150 </desc>
9151 </param>
9152 </method>
9153
9154 <method name="setProcessInput">
9155 <desc>
9156 Sends input into a formerly started process.
9157
9158 <result name="VBOX_E_IPRT_ERROR">
9159 Could not send input.
9160 </result>
9161
9162 </desc>
9163 <param name="pid" type="unsigned long" dir="in">
9164 <desc>
9165 Process id returned by earlier <link to="#executeProcess"/> call.
9166 </desc>
9167 </param>
9168 <param name="flags" type="unsigned long" dir="in">
9169 <desc>
9170 <link to="ProcessInputFlag"/> flags.
9171 </desc>
9172 </param>
9173 <param name="timeoutMS" type="unsigned long" dir="in">
9174 <desc>
9175 The maximum timeout value (in msec) to wait for getting the
9176 data transfered to the guest. Pass 0 for an infinite timeout.
9177 </desc>
9178 </param>
9179 <param name="data" type="octet" dir="in" safearray="yes">
9180 <desc>
9181 Buffer of input data to send to the started process to.
9182 </desc>
9183 </param>
9184 <param name="written" type="unsigned long" dir="return">
9185 <desc>
9186 Number of bytes written.
9187 </desc>
9188 </param>
9189 </method>
9190
9191 <method name="updateGuestAdditions">
9192 <desc>
9193 Updates already installed Guest Additions in a VM
9194 (Windows guests only).
9195
9196 <result name="VBOX_E_IPRT_ERROR">
9197 Error while updating.
9198 </result>
9199
9200 </desc>
9201 <param name="source" type="wstring" dir="in">
9202 <desc>
9203 Path to the Guest Additions .ISO file to use for the upate.
9204 </desc>
9205 </param>
9206 <param name="flags" type="unsigned long" dir="in">
9207 <desc>
9208 <link to="AdditionsUpdateFlag"/> flags.
9209 </desc>
9210 </param>
9211 <param name="progress" type="IProgress" dir="return">
9212 <desc>Progress object to track the operation completion.</desc>
9213 </param>
9214 </method>
9215
9216 </interface>
9217
9218
9219 <!--
9220 // IProgress
9221 /////////////////////////////////////////////////////////////////////////
9222 -->
9223
9224 <interface
9225 name="IProgress" extends="$unknown"
9226 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
9227 wsmap="managed"
9228 >
9229 <desc>
9230 The IProgress interface is used to track and control
9231 asynchronous tasks within VirtualBox.
9232
9233 An instance of this is returned every time VirtualBox starts
9234 an asynchronous task (in other words, a separate thread) which
9235 continues to run after a method call returns. For example,
9236 <link to="IConsole::saveState" />, which saves the state of
9237 a running virtual machine, can take a long time to complete.
9238 To be able to display a progress bar, a user interface such as
9239 the VirtualBox graphical user interface can use the IProgress
9240 object returned by that method.
9241
9242 Note that IProgress is a "read-only" interface in the sense
9243 that only the VirtualBox internals behind the Main API can
9244 create and manipulate progress objects, whereas client code
9245 can only use the IProgress object to monitor a task's
9246 progress and, if <link to="#cancelable" /> is @c true,
9247 cancel the task by calling <link to="#cancel" />.
9248
9249 A task represented by IProgress consists of either one or
9250 several sub-operations that run sequentially, one by one (see
9251 <link to="#operation" /> and <link to="#operationCount" />).
9252 Every operation is identified by a number (starting from 0)
9253 and has a separate description.
9254
9255 You can find the individual percentage of completion of the current
9256 operation in <link to="#operationPercent" /> and the
9257 percentage of completion of the task as a whole
9258 in <link to="#percent" />.
9259
9260 Similarly, you can wait for the completion of a particular
9261 operation via <link to="#waitForOperationCompletion" /> or
9262 for the completion of the whole task via
9263 <link to="#waitForCompletion" />.
9264 </desc>
9265
9266 <attribute name="id" type="uuid" mod="string" readonly="yes">
9267 <desc>ID of the task.</desc>
9268 </attribute>
9269
9270 <attribute name="description" type="wstring" readonly="yes">
9271 <desc>Description of the task.</desc>
9272 </attribute>
9273
9274 <attribute name="initiator" type="$unknown" readonly="yes">
9275 <desc>Initiator of the task.</desc>
9276 </attribute>
9277
9278 <attribute name="cancelable" type="boolean" readonly="yes">
9279 <desc>Whether the task can be interrupted.</desc>
9280 </attribute>
9281
9282 <attribute name="percent" type="unsigned long" readonly="yes">
9283 <desc>
9284 Current progress value of the task as a whole, in percent.
9285 This value depends on how many operations are already complete.
9286 Returns 100 if <link to="#completed" /> is @c true.
9287 </desc>
9288 </attribute>
9289
9290 <attribute name="timeRemaining" type="long" readonly="yes">
9291 <desc>
9292 Estimated remaining time until the task completes, in
9293 seconds. Returns 0 once the task has completed; returns -1
9294 if the remaining time cannot be computed, in particular if
9295 the current progress is 0.
9296
9297 Even if a value is returned, the estimate will be unreliable
9298 for low progress values. It will become more reliable as the
9299 task progresses; it is not recommended to display an ETA
9300 before at least 20% of a task have completed.
9301 </desc>
9302 </attribute>
9303
9304 <attribute name="completed" type="boolean" readonly="yes">
9305 <desc>Whether the task has been completed.</desc>
9306 </attribute>
9307
9308 <attribute name="canceled" type="boolean" readonly="yes">
9309 <desc>Whether the task has been canceled.</desc>
9310 </attribute>
9311
9312 <attribute name="resultCode" type="long" readonly="yes">
9313 <desc>
9314 Result code of the progress task.
9315 Valid only if <link to="#completed"/> is @c true.
9316 </desc>
9317 </attribute>
9318
9319 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
9320 <desc>
9321 Extended information about the unsuccessful result of the
9322 progress operation. May be @c null if no extended information
9323 is available.
9324 Valid only if <link to="#completed"/> is @c true and
9325 <link to="#resultCode"/> indicates a failure.
9326 </desc>
9327 </attribute>
9328
9329 <attribute name="operationCount" type="unsigned long" readonly="yes">
9330 <desc>
9331 Number of sub-operations this task is divided into.
9332 Every task consists of at least one suboperation.
9333 </desc>
9334 </attribute>
9335
9336 <attribute name="operation" type="unsigned long" readonly="yes">
9337 <desc>Number of the sub-operation being currently executed.</desc>
9338 </attribute>
9339
9340 <attribute name="operationDescription" type="wstring" readonly="yes">
9341 <desc>
9342 Description of the sub-operation being currently executed.
9343 </desc>
9344 </attribute>
9345
9346 <attribute name="operationPercent" type="unsigned long" readonly="yes">
9347 <desc>Progress value of the current sub-operation only, in percent.</desc>
9348 </attribute>
9349
9350 <attribute name="operationWeight" type="unsigned long" readonly="yes">
9351 <desc>Weight value of the current sub-operation only.</desc>
9352 </attribute>
9353
9354 <attribute name="timeout" type="unsigned long">
9355 <desc>
9356 When non-zero, this specifies the number of milliseconds after which
9357 the operation will automatically be canceled. This can only be set on
9358 cancelable objects.
9359 </desc>
9360 </attribute>
9361
9362 <method name="setCurrentOperationProgress">
9363 <desc>Internal method, not to be called externally.</desc>
9364 <param name="percent" type="unsigned long" dir="in" />
9365 </method>
9366 <method name="setNextOperation">
9367 <desc>Internal method, not to be called externally.</desc>
9368 <param name="nextOperationDescription" type="wstring" dir="in" />
9369 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
9370 </method>
9371
9372 <method name="waitForCompletion">
9373 <desc>
9374 Waits until the task is done (including all sub-operations)
9375 with a given timeout in milliseconds; specify -1 for an indefinite wait.
9376
9377 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
9378 thread are not processed while waiting. Neglecting event queues may
9379 have dire consequences (degrade performance, resource hogs,
9380 deadlocks, etc.), this is specially so for the main thread on
9381 platforms using XPCOM. Callers are adviced wait for short periods
9382 and service their event queues between calls, or to create a worker
9383 thread to do the waiting.
9384
9385 <result name="VBOX_E_IPRT_ERROR">
9386 Failed to wait for task completion.
9387 </result>
9388 </desc>
9389
9390 <param name="timeout" type="long" dir="in">
9391 <desc>
9392 Maximum time in milliseconds to wait or -1 to wait indefinitely.
9393 </desc>
9394 </param>
9395 </method>
9396
9397 <method name="waitForOperationCompletion">
9398 <desc>
9399 Waits until the given operation is done with a given timeout in
9400 milliseconds; specify -1 for an indefinite wait.
9401
9402 See <link to="#waitForCompletion"> for event queue considerations.</link>
9403
9404 <result name="VBOX_E_IPRT_ERROR">
9405 Failed to wait for operation completion.
9406 </result>
9407
9408 </desc>
9409 <param name="operation" type="unsigned long" dir="in">
9410 <desc>
9411 Number of the operation to wait for.
9412 Must be less than <link to="#operationCount"/>.
9413 </desc>
9414 </param>
9415 <param name="timeout" type="long" dir="in">
9416 <desc>
9417 Maximum time in milliseconds to wait or -1 to wait indefinitely.
9418 </desc>
9419 </param>
9420 </method>
9421
9422 <method name="waitForAsyncProgressCompletion">
9423 <desc>
9424 Waits until the other task is completed (including all
9425 sub-operations) and forward all changes from the other progress to
9426 this progress. This means sub-operation number, description, percent
9427 and so on.
9428
9429 You have to take care on setting up at least the same count on
9430 sub-operations in this progress object like there are in the other
9431 progress object.
9432
9433 If the other progress object supports cancel and this object gets any
9434 cancel request (when here enabled as well), it will be forwarded to
9435 the other progress object.
9436
9437 If there is an error in the other progress, this error isn't
9438 automatically transfered to this progress object. So you have to
9439 check any operation error within the other progress object, after
9440 this method returns.
9441 </desc>
9442
9443 <param name="pProgressAsync" type="IProgress" dir="in">
9444 <desc>
9445 The progress object of the asynchrony process.
9446 </desc>
9447 </param>
9448 </method>
9449
9450 <method name="cancel">
9451 <desc>
9452 Cancels the task.
9453 <note>
9454 If <link to="#cancelable"/> is @c false, then this method will fail.
9455 </note>
9456
9457 <result name="VBOX_E_INVALID_OBJECT_STATE">
9458 Operation cannot be canceled.
9459 </result>
9460
9461 </desc>
9462 </method>
9463
9464 </interface>
9465
9466 <!--
9467 // ISnapshot
9468 /////////////////////////////////////////////////////////////////////////
9469 -->
9470
9471 <interface
9472 name="ISnapshot" extends="$unknown"
9473 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
9474 wsmap="managed"
9475 >
9476 <desc>
9477 The ISnapshot interface represents a snapshot of the virtual
9478 machine.
9479
9480 Together with the differencing media that are created
9481 when a snapshot is taken, a machine can be brought back to
9482 the exact state it was in when the snapshot was taken.
9483
9484 The ISnapshot interface has no methods, only attributes; snapshots
9485 are controlled through methods of the <link to="IConsole" /> interface
9486 which also manage the media associated with the snapshot.
9487 The following operations exist:
9488
9489 <ul>
9490 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
9491 by creating new, empty differencing images for the machine's
9492 media and saving the VM settings and (if the VM is running)
9493 the current VM state in the snapshot.
9494
9495 The differencing images will then receive all data written to
9496 the machine's media, while their parent (base) images
9497 remain unmodified after the snapshot has been taken (see
9498 <link to="IMedium" /> for details about differencing images).
9499 This simplifies restoring a machine to the state of a snapshot:
9500 only the differencing images need to be deleted.
9501
9502 The current machine state is not changed by taking a snapshot
9503 except that <link to="IMachine::currentSnapshot" /> is set to
9504 the newly created snapshot, which is also added to the machine's
9505 snapshots tree.
9506 </li>
9507
9508 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
9509 the state of a previous snapshot by deleting the differencing
9510 image of each of the machine's media and setting the machine's
9511 settings and state to the state that was saved in the snapshot (if any).
9512
9513 This destroys the machine's current state. After calling this,
9514 <link to="IMachine::currentSnapshot" /> points to the snapshot
9515 that was restored.
9516 </li>
9517
9518 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
9519 without affecting the current machine state.
9520
9521 This does not change the current machine state, but instead frees the
9522 resources allocated when the snapshot was taken: the settings and machine
9523 state file are deleted (if any), and the snapshot's differencing image for
9524 each of the machine's media gets merged with its parent image.
9525
9526 Neither the current machine state nor other snapshots are affected
9527 by this operation, except that parent media will be modified
9528 to contain the disk data associated with the snapshot being deleted.
9529
9530 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
9531 attribute is set to the current snapshot's parent or NULL if it
9532 has no parent. Otherwise the attribute is unchanged.
9533 </li>
9534 </ul>
9535
9536 Each snapshot contains a copy of virtual machine's settings (hardware
9537 configuration etc.). This copy is contained in an immutable (read-only)
9538 instance of <link to="IMachine" /> which is available from the snapshot's
9539 <link to="#machine" /> attribute. When restoring the snapshot, these
9540 settings are copied back to the original machine.
9541
9542 In addition, if the machine was running when the
9543 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
9544 the current VM state is saved in the snapshot (similarly to what happens
9545 when a VM's state is saved). The snapshot is then said to be <i>online</i>
9546 because when restoring it, the VM will be running.
9547
9548 If the machine was in <link to="MachineState_Saved">saved</link> saved,
9549 the snapshot receives a copy of the execution state file
9550 (<link to="IMachine::stateFilePath"/>).
9551
9552 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
9553 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
9554 it then contains a so-called "zero execution state", representing a
9555 machine that is powered off.
9556 </desc>
9557
9558 <attribute name="id" type="uuid" mod="string" readonly="yes">
9559 <desc>UUID of the snapshot.</desc>
9560 </attribute>
9561
9562 <attribute name="name" type="wstring">
9563 <desc>Short name of the snapshot.
9564 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
9565 be called implicitly.</note>
9566 </desc>
9567 </attribute>
9568
9569 <attribute name="description" type="wstring">
9570 <desc>Optional description of the snapshot.
9571 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
9572 be called implicitly.</note>
9573 </desc>
9574 </attribute>
9575
9576 <attribute name="timeStamp" type="long long" readonly="yes">
9577 <desc>
9578 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
9579 </desc>
9580 </attribute>
9581
9582 <attribute name="online" type="boolean" readonly="yes">
9583 <desc>
9584 @c true if this snapshot is an online snapshot and @c false otherwise.
9585
9586 When this attribute is @c true, the
9587 <link to="IMachine::stateFilePath"/> attribute of the
9588 <link to="#machine"/> object associated with this snapshot
9589 will point to the saved state file. Otherwise, it will be
9590 an empty string.
9591 </desc>
9592 </attribute>
9593
9594 <attribute name="machine" type="IMachine" readonly="yes">
9595 <desc>
9596 Virtual machine this snapshot is taken on. This object
9597 stores all settings the machine had when taking this snapshot.
9598 <note>
9599 The returned machine object is immutable, i.e. no
9600 any settings can be changed.
9601 </note>
9602 </desc>
9603 </attribute>
9604
9605 <attribute name="parent" type="ISnapshot" readonly="yes">
9606 <desc>
9607 Parent snapshot (a snapshot this one is based on), or
9608 @c null if the snapshot has no parent (i.e. is the first snapshot).
9609 </desc>
9610 </attribute>
9611
9612 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
9613 <desc>
9614 Child snapshots (all snapshots having this one as a parent).
9615 By inspecting this attribute starting with a machine's root snapshot
9616 (which can be obtained by calling <link to="IMachine::findSnapshot" />
9617 with a @c null UUID), a machine's snapshots tree can be iterated over.
9618 </desc>
9619 </attribute>
9620
9621 <method name="getChildrenCount" const="yes">
9622 <desc>
9623 Returns the number of direct childrens of this snapshot.
9624 </desc>
9625 <param name="childrenCount" type="unsigned long" dir="return">
9626 <desc>
9627 </desc>
9628 </param>
9629 </method>
9630
9631 </interface>
9632
9633
9634 <!--
9635 // IMedium
9636 /////////////////////////////////////////////////////////////////////////
9637 -->
9638
9639 <enum
9640 name="MediumState"
9641 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
9642 >
9643 <desc>
9644 Virtual medium state.
9645 <see><link to="IMedium"/></see>
9646 </desc>
9647
9648 <const name="NotCreated" value="0">
9649 <desc>
9650 Associated medium storage does not exist (either was not created yet or
9651 was deleted).
9652 </desc>
9653 </const>
9654 <const name="Created" value="1">
9655 <desc>
9656 Associated storage exists and accessible; this gets set if the
9657 accessibility check performed by <link to="IMedium::refreshState" />
9658 was successful.
9659 </desc>
9660 </const>
9661 <const name="LockedRead" value="2">
9662 <desc>
9663 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
9664 no data modification is possible.
9665 </desc>
9666 </const>
9667 <const name="LockedWrite" value="3">
9668 <desc>
9669 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
9670 no concurrent data reading or modification is possible.
9671 </desc>
9672 </const>
9673 <const name="Inaccessible" value="4">
9674 <desc>
9675 Medium accessibility check (see <link to="IMedium::refreshState" />) has
9676 not yet been performed, or else, associated medium storage is not
9677 accessible. In the first case, <link to="IMedium::lastAccessError"/>
9678 is empty, in the second case, it describes the error that occurred.
9679 </desc>
9680 </const>
9681 <const name="Creating" value="5">
9682 <desc>
9683 Associated medium storage is being created.
9684 </desc>
9685 </const>
9686 <const name="Deleting" value="6">
9687 <desc>
9688 Associated medium storage is being deleted.
9689 </desc>
9690 </const>
9691 </enum>
9692
9693 <enum
9694 name="MediumType"
9695 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
9696 >
9697 <desc>
9698 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
9699 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
9700 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
9701 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
9702 </desc>
9703
9704 <const name="Normal" value="0">
9705 <desc>
9706 Normal medium (attached directly or indirectly, preserved
9707 when taking snapshots).
9708 </desc>
9709 </const>
9710 <const name="Immutable" value="1">
9711 <desc>
9712 Immutable medium (attached indirectly, changes are wiped out
9713 the next time the virtual machine is started).
9714 </desc>
9715 </const>
9716 <const name="Writethrough" value="2">
9717 <desc>
9718 Write through medium (attached directly, ignored when
9719 taking snapshots).
9720 </desc>
9721 </const>
9722 <const name="Shareable" value="3">
9723 <desc>
9724 Allow using this medium concurrently by several machines.
9725 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
9726 </desc>
9727 </const>
9728 <const name="Readonly" value="4">
9729 <desc>
9730 A readonly medium, which can of course be used by several machines.
9731 <note>Present and accepted since VirtualBox 4.0.</note>
9732 </desc>
9733 </const>
9734 <const name="MultiAttach" value="5">
9735 <desc>
9736 A medium which is is indirectly attached, so that one base medium can
9737 be used for several VMs which have their own differencing medium to
9738 store their modifications. In some sense a variant of Immutable
9739 with unset AutoReset flag in each differencing medium.
9740 <note>Present and accepted since VirtualBox 4.0.</note>
9741 </desc>
9742 </const>
9743 </enum>
9744
9745 <enum
9746 name="MediumVariant"
9747 uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
9748 >
9749 <desc>
9750 Virtual medium image variant. More than one flag may be set.
9751 <see><link to="IMedium"/></see>
9752 </desc>
9753
9754 <const name="Standard" value="0">
9755 <desc>
9756 No particular variant requested, results in using the backend default.
9757 </desc>
9758 </const>
9759 <const name="VmdkSplit2G" value="0x01">
9760 <desc>
9761 VMDK image split in chunks of less than 2GByte.
9762 </desc>
9763 </const>
9764 <const name="VmdkStreamOptimized" value="0x04">
9765 <desc>
9766 VMDK streamOptimized image. Special import/export format which is
9767 read-only/append-only.
9768 </desc>
9769 </const>
9770 <const name="VmdkESX" value="0x08">
9771 <desc>
9772 VMDK format variant used on ESX products.
9773 </desc>
9774 </const>
9775 <const name="Fixed" value="0x10000">
9776 <desc>
9777 Fixed image. Only allowed for base images.
9778 </desc>
9779 </const>
9780 <const name="Diff" value="0x20000">
9781 <desc>
9782 Differencing image. Only allowed for child images.
9783 </desc>
9784 </const>
9785 <const name="NoCreateDir" value="0x40000000">
9786 <desc>
9787 Special flag which suppresses automatic creation of the subdirectory.
9788 Only used when passing the medium variant as an input parameter.
9789 </desc>
9790 </const>
9791 </enum>
9792
9793 <interface
9794 name="IMediumAttachment" extends="$unknown"
9795 uuid="b5dfbb8c-7498-48c3-bf10-78fc60f064e1"
9796 wsmap="struct"
9797 >
9798 <desc>
9799 The IMediumAttachment interface links storage media to virtual machines.
9800 For each medium (<link to="IMedium"/>) which has been attached to a
9801 storage controller (<link to="IStorageController"/>) of a machine
9802 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
9803 method, one instance of IMediumAttachment is added to the machine's
9804 <link to="IMachine::mediumAttachments"/> array attribute.
9805
9806 Each medium attachment specifies the storage controller as well as a
9807 port and device number and the IMedium instance representing a virtual
9808 hard disk or floppy or DVD image.
9809
9810 For removable media (DVDs or floppies), there are two additional
9811 options. For one, the IMedium instance can be @c null to represent
9812 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
9813 secondly, the medium can be one of the pseudo-media for host drives
9814 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
9815
9816 <h3>Attaching Hard Disks</h3>
9817
9818 Hard disks are attached to virtual machines using the
9819 <link to="IMachine::attachDevice"/> method and detached using the
9820 <link to="IMachine::detachDevice"/> method. Depending on a medium's
9821 type (see <link to="IMedium::type" />), hard disks are attached either
9822 <i>directly</i> or <i>indirectly</i>.
9823
9824 When a hard disk is being attached directly, it is associated with the
9825 virtual machine and used for hard disk operations when the machine is
9826 running. When a hard disk is being attached indirectly, a new differencing
9827 hard disk linked to it is implicitly created and this differencing hard
9828 disk is associated with the machine and used for hard disk operations.
9829 This also means that if <link to="IMachine::attachDevice"/> performs
9830 a direct attachment then the same hard disk will be returned in response
9831 to the subsequent <link to="IMachine::getMedium"/> call; however if
9832 an indirect attachment is performed then
9833 <link to="IMachine::getMedium"/> will return the implicitly created
9834 differencing hard disk, not the original one passed to <link
9835 to="IMachine::attachDevice"/>. In detail:
9836
9837 <ul>
9838 <li><b>Normal base</b> hard disks that do not have children (i.e.
9839 differencing hard disks linked to them) and that are not already
9840 attached to virtual machines in snapshots are attached <b>directly</b>.
9841 Otherwise, they are attached <b>indirectly</b> because having
9842 dependent children or being part of the snapshot makes it impossible
9843 to modify hard disk contents without breaking the integrity of the
9844 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
9845 quickly determine the kind of the attachment for the given hard
9846 disk. Note that if a normal base hard disk is to be indirectly
9847 attached to a virtual machine with snapshots then a special
9848 procedure called <i>smart attachment</i> is performed (see below).</li>
9849 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
9850 they are attached <b>directly</b> if they do not have children and are
9851 not attached to virtual machines in snapshots, and <b>indirectly</b>
9852 otherwise. Note that the smart attachment procedure is never performed
9853 for differencing hard disks.</li>
9854 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
9855 they are designed to be non-writable. If an immutable hard disk is
9856 attached to a virtual machine with snapshots then a special
9857 procedure called smart attachment is performed (see below).</li>
9858 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
9859 also as designed. This also means that writethrough hard disks cannot
9860 have other hard disks linked to them at all.</li>
9861 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
9862 also as designed. This also means that shareable hard disks cannot
9863 have other hard disks linked to them at all. They behave almost
9864 like writethrough hard disks, except that shareable hard disks can
9865 be attached to several virtual machines which are running, allowing
9866 concurrent accesses. You need special cluster software running in
9867 the virtual machines to make use of such disks.</li>
9868 </ul>
9869
9870 Note that the same hard disk, regardless of its type, may be attached to
9871 more than one virtual machine at a time. In this case, the machine that is
9872 started first gains exclusive access to the hard disk and attempts to
9873 start other machines having this hard disk attached will fail until the
9874 first machine is powered down.
9875
9876 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9877 that the given hard disk remains associated with the given machine after a
9878 successful <link to="IMachine::detachDevice"/> call until
9879 <link to="IMachine::saveSettings"/> is called to save all changes to
9880 machine settings to disk. This deferring is necessary to guarantee that
9881 the hard disk configuration may be restored at any time by a call to
9882 <link to="IMachine::discardSettings"/> before the settings
9883 are saved (committed).
9884
9885 Note that if <link to="IMachine::discardSettings"/> is called after
9886 indirectly attaching some hard disks to the machine but before a call to
9887 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9888 all differencing hard disks implicitly created by
9889 <link to="IMachine::attachDevice"/> for these indirect attachments.
9890 Such implicitly created hard disks will also be immediately deleted when
9891 detached explicitly using the <link to="IMachine::detachDevice"/>
9892 call if it is made before <link to="IMachine::saveSettings"/>. This
9893 implicit deletion is safe because newly created differencing hard
9894 disks do not contain any user data.
9895
9896 However, keep in mind that detaching differencing hard disks that were
9897 implicitly created by <link to="IMachine::attachDevice"/>
9898 before the last <link to="IMachine::saveSettings"/> call will
9899 <b>not</b> implicitly delete them as they may already contain some data
9900 (for example, as a result of virtual machine execution). If these hard
9901 disks are no more necessary, the caller can always delete them explicitly
9902 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
9903 from this machine by the <link to="IMachine::saveSettings"/> call.
9904
9905 <h3>Smart Attachment</h3>
9906
9907 When normal base or immutable hard disks are indirectly attached to a
9908 virtual machine then some additional steps are performed to make sure the
9909 virtual machine will have the most recent "view" of the hard disk being
9910 attached. These steps include walking through the machine's snapshots
9911 starting from the current one and going through ancestors up to the first
9912 snapshot. Hard disks attached to the virtual machine in all
9913 of the encountered snapshots are checked whether they are descendants of
9914 the given normal base or immutable hard disk. The first found child (which
9915 is the differencing hard disk) will be used instead of the normal base or
9916 immutable hard disk as a parent for creating a new differencing hard disk
9917 that will be actually attached to the machine. And only if no descendants
9918 are found or if the virtual machine does not have any snapshots then the
9919 normal base or immutable hard disk will be used itself as a parent for
9920 this differencing hard disk.
9921
9922 It is easier to explain what smart attachment does using the
9923 following example:
9924 <pre>
9925BEFORE attaching B.vdi: AFTER attaching B.vdi:
9926
9927Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9928 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9929 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9930 Snapshot 4 (none) Snapshot 4 (none)
9931 CurState (none) CurState (D3->D2.vdi)
9932
9933 NOT
9934 ...
9935 CurState (D3->B.vdi)
9936 </pre>
9937 The first column is the virtual machine configuration before the base hard
9938 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9939 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9940 mean that the hard disk that is actually attached to the machine is a
9941 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9942 another hard disk, <tt>B.vdi</tt>.
9943
9944 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9945 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9946 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9947 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9948 it cannot be attached directly and needs an indirect attachment (i.e.
9949 implicit creation of a new differencing hard disk). Due to the smart
9950 attachment procedure, the new differencing hard disk
9951 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9952 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9953 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9954 machine.
9955
9956 Note that if there is more than one descendant hard disk of the given base
9957 hard disk found in a snapshot, and there is an exact device, channel and
9958 bus match, then this exact match will be used. Otherwise, the youngest
9959 descendant will be picked up.
9960
9961 There is one more important aspect of the smart attachment procedure which
9962 is not related to snapshots at all. Before walking through the snapshots
9963 as described above, the backup copy of the current list of hard disk
9964 attachment is searched for descendants. This backup copy is created when
9965 the hard disk configuration is changed for the first time after the last
9966 <link to="IMachine::saveSettings"/> call and used by
9967 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9968 changes. When such a descendant is found in this backup copy, it will be
9969 simply re-attached back, without creating a new differencing hard disk for
9970 it. This optimization is necessary to make it possible to re-attach the
9971 base or immutable hard disk to a different bus, channel or device slot
9972 without losing the contents of the differencing hard disk actually
9973 attached to the machine in place of it.
9974
9975 </desc>
9976
9977 <attribute name="medium" type="IMedium" readonly="yes">
9978 <desc>Medium object associated with this attachment; it
9979 can be @c null for removable devices.</desc>
9980 </attribute>
9981
9982 <attribute name="controller" type="wstring" readonly="yes">
9983 <desc>Name of the storage controller of this attachment; this
9984 refers to one of the controllers in <link to="IMachine::storageControllers" />
9985 by name.</desc>
9986 </attribute>
9987
9988 <attribute name="port" type="long" readonly="yes">
9989 <desc>Port number of this attachment.
9990 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
9991 </desc>
9992 </attribute>
9993
9994 <attribute name="device" type="long" readonly="yes">
9995 <desc>Device slot number of this attachment.
9996 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
9997 </desc>
9998 </attribute>
9999
10000 <attribute name="type" type="DeviceType" readonly="yes">
10001 <desc>Device type of this attachment.</desc>
10002 </attribute>
10003
10004 <attribute name="passthrough" type="boolean" readonly="yes">
10005 <desc>Pass I/O requests through to a device on the host.</desc>
10006 </attribute>
10007
10008 <attribute name="temporaryEject" type="boolean" readonly="yes">
10009 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
10010 </attribute>
10011
10012 <attribute name="isEjected" type="boolean" readonly="yes">
10013 <desc>Signals that the removable medium has been ejected. This is not
10014 necessarily equivalent to having a @c null medium association.</desc>
10015 </attribute>
10016
10017 <attribute name="nonRotational" type="boolean" readonly="yes">
10018 <desc>Whether the associated medium is non-rotational.</desc>
10019 </attribute>
10020
10021 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
10022 <desc>The bandwidth group this medium attachment is assigned to.</desc>
10023 </attribute>
10024
10025 </interface>
10026
10027 <interface
10028 name="IMedium" extends="$unknown"
10029 uuid="53f9cc0c-e0fd-40a5-a404-a7a5272082cd"
10030 wsmap="managed"
10031 >
10032 <desc>
10033 The IMedium interface represents virtual storage for a machine's
10034 hard disks, CD/DVD or floppy drives. It will typically represent
10035 a disk image on the host, for example a VDI or VMDK file representing
10036 a virtual hard disk, or an ISO or RAW file representing virtual
10037 removable media, but can also point to a network location (e.g.
10038 for iSCSI targets).
10039
10040 Instances of IMedium are connected to virtual machines by way of medium
10041 attachments, which link the storage medium to a particular device slot
10042 of a storage controller of the virtual machine.
10043 In the VirtualBox API, virtual storage is therefore always represented
10044 by the following chain of object links:
10045
10046 <ul>
10047 <li><link to="IMachine::storageControllers"/> contains an array of
10048 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
10049 these are instances of <link to="IStorageController"/>).</li>
10050 <li><link to="IMachine::mediumAttachments"/> contains an array of
10051 medium attachments (instances of <link to="IMediumAttachment"/>
10052 created by <link to="IMachine::attachDevice" />),
10053 each containing a storage controller from the above array, a
10054 port/device specification, and an instance of IMedium representing
10055 the medium storage (image file).
10056
10057 For removable media, the storage medium is optional; a medium
10058 attachment with no medium represents a CD/DVD or floppy drive
10059 with no medium inserted. By contrast, hard disk attachments
10060 will always have an IMedium object attached.</li>
10061 <li>Each IMedium in turn points to a storage unit (such as a file
10062 on the host computer or a network resource) that holds actual
10063 data. This location is represented by the <link to="#location"/>
10064 attribute.</li>
10065 </ul>
10066
10067 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
10068 new hard disk media can be created with the VirtualBox API using the
10069 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
10070 disks (see below) are usually implicitly created by VirtualBox as
10071 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
10072 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
10073 should be created with external tools and then opened from within VirtualBox.
10074
10075 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
10076 drive. In that case the <link to="#id" /> attribute contains the UUID of
10077 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
10078
10079 <h3>Media registries</h3>
10080
10081 When a medium has been opened or created using one of the aforementioned
10082 APIs, it becomes "known" to VirtualBox. Known media can be attached
10083 to virtual machines and accessed through <link to="IVirtualBox::findMedium"/>.
10084 They also appear in the global
10085 <link to="IVirtualBox::hardDisks" />,
10086 <link to="IVirtualBox::DVDImages" /> and
10087 <link to="IVirtualBox::floppyImages" /> arrays.
10088
10089 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
10090 in the VirtualBox.xml file, which was shared between all machines and made
10091 transporting machines and their media from one host to another difficult.
10092
10093 Starting with VirtualBox 4.0, media are only added to a registry when they are
10094 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
10095 backwards compatibility, which registry a medium is added to depends on which
10096 VirtualBox version created a machine:
10097
10098 <ul>
10099 <li>If the medium has first been attached to a machine which was created by
10100 VirtualBox 4.0 or later, it is added to that machine's media registry in
10101 the machine XML settings file. This way all information about a machine's
10102 media attachments is contained in a single file and can be transported
10103 easily.</li>
10104 <li>For older media attachments (i.e. if the medium was first attached to a
10105 machine which was created with a VirtualBox version before 4.0), media
10106 continue to be registered in the global VirtualBox settings file, for
10107 backwards compatibility.</li>
10108 </ul>
10109
10110 See <link to="IVirtualBox::openMedium" /> for more information.
10111
10112 Media are removed from media registries by the <link to="IMedium::close"/>,
10113 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
10114
10115 <h3>Accessibility checks</h3>
10116
10117 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
10118 method is called explicitly on a medium. This is done to make the VirtualBox object
10119 ready for serving requests as fast as possible and let the end-user
10120 application decide if it needs to check media accessibility right away or not.
10121
10122 As a result, when VirtualBox starts up (e.g. the VirtualBox
10123 object gets created for the first time), all known media are in the
10124 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
10125 attribute is an empty string because no actual accessibility check has
10126 been made yet.
10127
10128 After calling <link to="#refreshState" />, a medium is considered
10129 <i>accessible</i> if its storage unit can be read. In that case, the
10130 <link to="#state"/> attribute has a value of "Created". If the storage
10131 unit cannot be read (for example, because it is located on a disconnected
10132 network resource, or was accidentally deleted outside VirtualBox),
10133 the medium is considered <i>inaccessible</i>, which is indicated by the
10134 "Inaccessible" state. The exact reason why the medium is inaccessible can be
10135 obtained by reading the <link to="#lastAccessError"/> attribute.
10136
10137 <h3>Medium types</h3>
10138
10139 There are five types of medium behavior which are stored in the
10140 <link to="#type"/> attribute (see <link to="MediumType" />) and
10141 which define the medium's behavior with attachments and snapshots.
10142
10143 All media can be also divided in two groups: <i>base</i> media and
10144 <i>differencing</i> media. A base medium contains all sectors of the
10145 medium data in its own storage and therefore can be used independently.
10146 In contrast, a differencing medium is a "delta" to some other medium and
10147 contains only those sectors which differ from that other medium, which is
10148 then called a <i>parent</i>. The differencing medium is said to be
10149 <i>linked to</i> that parent. The parent may be itself a differencing
10150 medium, thus forming a chain of linked media. The last element in that
10151 chain must always be a base medium. Note that several differencing
10152 media may be linked to the same parent medium.
10153
10154 Differencing media can be distinguished from base media by querying the
10155 <link to="#parent"/> attribute: base media do not have parents they would
10156 depend on, so the value of this attribute is always @c null for them.
10157 Using this attribute, it is possible to walk up the medium tree (from the
10158 child medium to its parent). It is also possible to walk down the tree
10159 using the <link to="#children"/> attribute.
10160
10161 Note that the type of all differencing media is "normal"; all other
10162 values are meaningless for them. Base media may be of any type.
10163
10164 <h3>Automatic composition of the file name part</h3>
10165
10166 Another extension to the <link to="IMedium::location"/> attribute is that
10167 there is a possibility to cause VirtualBox to compose a unique value for
10168 the file name part of the location using the UUID of the hard disk. This
10169 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
10170 e.g. before the storage unit is created, and works as follows. You set the
10171 value of the <link to="IMedium::location"/> attribute to a location
10172 specification which only contains the path specification but not the file
10173 name part and ends with either a forward slash or a backslash character.
10174 In response, VirtualBox will generate a new UUID for the hard disk and
10175 compose the file name using the following pattern:
10176 <pre>
10177 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
10178 </pre>
10179 where <tt>&lt;path&gt;</tt> is the supplied path specification,
10180 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
10181 is the default extension for the storage format of this hard disk. After
10182 that, you may call any of the methods that create a new hard disk storage
10183 unit and they will use the generated UUID and file name.
10184 </desc>
10185
10186 <attribute name="id" type="uuid" mod="string" readonly="yes">
10187 <desc>
10188 UUID of the medium. For a newly created medium, this value is a randomly
10189 generated UUID.
10190
10191 <note>
10192 For media in one of MediumState_NotCreated, MediumState_Creating or
10193 MediumState_Deleting states, the value of this property is undefined
10194 and will most likely be an empty UUID.
10195 </note>
10196 </desc>
10197 </attribute>
10198
10199 <attribute name="description" type="wstring">
10200 <desc>
10201 Optional description of the medium. For a newly created medium the value
10202 of this attribute is an empty string.
10203
10204 Medium types that don't support this attribute will return E_NOTIMPL in
10205 attempt to get or set this attribute's value.
10206
10207 <note>
10208 For some storage types, reading this attribute may return an outdated
10209 (last known) value when <link to="#state"/> is <link
10210 to="MediumState_Inaccessible"/> or <link
10211 to="MediumState_LockedWrite"/> because the value of this attribute is
10212 stored within the storage unit itself. Also note that changing the
10213 attribute value is not possible in such case, as well as when the
10214 medium is the <link to="MediumState_LockedRead"/> state.
10215 </note>
10216 </desc>
10217 </attribute>
10218
10219 <attribute name="state" type="MediumState" readonly="yes">
10220 <desc>
10221 Returns the current medium state, which is the last state set by
10222 the accessibility check performed by <link to="#refreshState"/>.
10223 If that method has not yet been called on the medium, the state
10224 is "Inaccessible"; as opposed to truly inaccessible media, the
10225 value of <link to="#lastAccessError"/> will be an empty string in
10226 that case.
10227
10228 <note>As of version 3.1, this no longer performs an accessibility check
10229 automatically; call <link to="#refreshState"/> for that.
10230 </note>
10231 </desc>
10232 </attribute>
10233
10234 <attribute name="variant" type="unsigned long" readonly="yes">
10235 <desc>
10236 Returns the storage format variant information for this medium
10237 as a combination of the flags described at <link to="MediumVariant" />.
10238 Before <link to="#refreshState"/> is called this method returns
10239 an undefined value.
10240 </desc>
10241 </attribute>
10242
10243 <attribute name="location" type="wstring">
10244 <desc>
10245 Location of the storage unit holding medium data.
10246
10247 The format of the location string is medium type specific. For medium
10248 types using regular files in a host's file system, the location
10249 string is the full file name.
10250
10251 Some medium types may support changing the storage unit location by
10252 simply changing the value of this property. If this operation is not
10253 supported, the implementation will return E_NOTIMPL in attempt to set
10254 this attribute's value.
10255
10256 When setting a value of the location attribute which is a regular file
10257 in the host's file system, the given file name may be either relative to
10258 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
10259 absolute. Note that if the given location specification does not contain
10260 the file extension part then a proper default extension will be
10261 automatically appended by the implementation depending on the medium type.
10262 </desc>
10263 </attribute>
10264
10265 <attribute name="name" type="wstring" readonly="yes">
10266 <desc>
10267 Name of the storage unit holding medium data.
10268
10269 The returned string is a short version of the <link to="#location"/>
10270 attribute that is suitable for representing the medium in situations
10271 where the full location specification is too long (such as lists
10272 and comboboxes in GUI frontends). This string is also used by frontends
10273 to sort the media list alphabetically when needed.
10274
10275 For example, for locations that are regular files in the host's file
10276 system, the value of this attribute is just the file name (+ extension),
10277 without the path specification.
10278
10279 Note that as opposed to the <link to="#location"/> attribute, the name
10280 attribute will not necessary be unique for a list of media of the
10281 given type and format.
10282 </desc>
10283 </attribute>
10284
10285 <attribute name="deviceType" type="DeviceType" readonly="yes">
10286 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
10287 medium.</desc>
10288 </attribute>
10289
10290 <attribute name="hostDrive" type="boolean" readonly="yes">
10291 <desc>True if this corresponds to a drive on the host.</desc>
10292 </attribute>
10293
10294 <attribute name="size" type="long long" readonly="yes">
10295 <desc>
10296 Physical size of the storage unit used to hold medium data (in bytes).
10297
10298 <note>
10299 For media whose <link to="#state"/> is <link
10300 to="MediumState_Inaccessible"/>, the value of this property is the
10301 last known size. For <link to="MediumState_NotCreated"/> media,
10302 the returned value is zero.
10303 </note>
10304 </desc>
10305 </attribute>
10306
10307 <attribute name="format" type="wstring" readonly="yes">
10308 <desc>
10309 Storage format of this medium.
10310
10311 The value of this attribute is a string that specifies a backend used
10312 to store medium data. The storage format is defined when you create a
10313 new medium or automatically detected when you open an existing medium,
10314 and cannot be changed later.
10315
10316 The list of all storage formats supported by this VirtualBox
10317 installation can be obtained using
10318 <link to="ISystemProperties::mediumFormats"/>.
10319 </desc>
10320 </attribute>
10321
10322 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
10323 <desc>
10324 Storage medium format object corresponding to this medium.
10325
10326 The value of this attribute is a reference to the medium format object
10327 that specifies the backend properties used to store medium data. The
10328 storage format is defined when you create a new medium or automatically
10329 detected when you open an existing medium, and cannot be changed later.
10330
10331 <note>@c null is returned if there is no associated medium format
10332 object. This can e.g. happen for medium objects representing host
10333 drives and other special medium objects.</note>
10334 </desc>
10335 </attribute>
10336
10337 <attribute name="type" type="MediumType">
10338 <desc>
10339 Type (role) of this medium.
10340
10341 The following constraints apply when changing the value of this
10342 attribute:
10343 <ul>
10344 <li>If a medium is attached to a virtual machine (either in the
10345 current state or in one of the snapshots), its type cannot be
10346 changed.
10347 </li>
10348 <li>As long as the medium has children, its type cannot be set
10349 to <link to="MediumType_Writethrough"/>.
10350 </li>
10351 <li>The type of all differencing media is
10352 <link to="MediumType_Normal"/> and cannot be changed.
10353 </li>
10354 </ul>
10355
10356 The type of a newly created or opened medium is set to
10357 <link to="MediumType_Normal"/>, except for DVD and floppy media,
10358 which have a type of <link to="MediumType_Writethrough"/>.
10359 </desc>
10360 </attribute>
10361
10362 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
10363 <desc>
10364 Returns which medium types can selected for this medium.
10365
10366 <result name="E_NOTIMPL">
10367 This attribute is not implemented at the moment.
10368 </result>
10369 </desc>
10370 </attribute>
10371
10372 <attribute name="parent" type="IMedium" readonly="yes">
10373 <desc>
10374 Parent of this medium (the medium this medium is directly based
10375 on).
10376
10377 Only differencing media have parents. For base (non-differencing)
10378 media, @c null is returned.
10379 </desc>
10380 </attribute>
10381
10382 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
10383 <desc>
10384 Children of this medium (all differencing media directly based
10385 on this medium). A @c null array is returned if this medium
10386 does not have any children.
10387 </desc>
10388 </attribute>
10389
10390 <attribute name="base" type="IMedium" readonly="yes">
10391 <desc>
10392 Base medium of this medium.
10393
10394 If this is a differencing medium, its base medium is the medium
10395 the given medium branch starts from. For all other types of media, this
10396 property returns the medium object itself (i.e. the same object this
10397 property is read on).
10398 </desc>
10399 </attribute>
10400
10401 <attribute name="readOnly" type="boolean" readonly="yes">
10402 <desc>
10403 Returns @c true if this medium is read-only and @c false otherwise.
10404
10405 A medium is considered to be read-only when its contents cannot be
10406 modified without breaking the integrity of other parties that depend on
10407 this medium such as its child media or snapshots of virtual machines
10408 where this medium is attached to these machines. If there are no
10409 children and no such snapshots then there is no dependency and the
10410 medium is not read-only.
10411
10412 The value of this attribute can be used to determine the kind of the
10413 attachment that will take place when attaching this medium to a
10414 virtual machine. If the value is @c false then the medium will
10415 be attached directly. If the value is @c true then the medium
10416 will be attached indirectly by creating a new differencing child
10417 medium for that. See the interface description for more information.
10418
10419 Note that all <link to="MediumType_Immutable">Immutable</link> media
10420 are always read-only while all
10421 <link to="MediumType_Writethrough">Writethrough</link> media are
10422 always not.
10423
10424 <note>
10425 The read-only condition represented by this attribute is related to
10426 the medium type and usage, not to the current
10427 <link to="IMedium::state">medium state</link> and not to the read-only
10428 state of the storage unit.
10429 </note>
10430 </desc>
10431 </attribute>
10432
10433 <attribute name="logicalSize" type="long long" readonly="yes">
10434 <desc>
10435 Logical size of this medium (in bytes), as reported to the
10436 guest OS running inside the virtual machine this medium is
10437 attached to. The logical size is defined when the medium is created
10438 and cannot be changed later.
10439
10440 <note>
10441 Reading this property on a differencing medium will return the size
10442 of its <link to="#base"/> medium.
10443 </note>
10444 <note>
10445 For media whose state is <link to="#state"/> is <link
10446 to="MediumState_Inaccessible"/>, the value of this property is the
10447 last known logical size. For <link to="MediumState_NotCreated"/>
10448 media, the returned value is zero.
10449 </note>
10450 </desc>
10451 </attribute>
10452
10453 <attribute name="autoReset" type="boolean">
10454 <desc>
10455 Whether this differencing medium will be automatically reset each
10456 time a virtual machine it is attached to is powered up. This
10457 attribute is automatically set to @c true for the last
10458 differencing image of an "immutable" medium (see
10459 <link to="MediumType" />).
10460
10461 See <link to="#reset"/> for more information about resetting
10462 differencing media.
10463
10464 <note>
10465 Reading this property on a base (non-differencing) medium will
10466 always @c false. Changing the value of this property in this
10467 case is not supported.
10468 </note>
10469
10470 <result name="VBOX_E_NOT_SUPPORTED">
10471 This is not a differencing medium (when changing the attribute
10472 value).
10473 </result>
10474 </desc>
10475 </attribute>
10476
10477 <attribute name="lastAccessError" type="wstring" readonly="yes">
10478 <desc>
10479 Text message that represents the result of the last accessibility
10480 check performed by <link to="#refreshState"/>.
10481
10482 An empty string is returned if the last accessibility check
10483 was successful or has not yet been called. As a result, if
10484 <link to="#state" /> is "Inaccessible" and this attribute is empty,
10485 then <link to="#refreshState"/> has yet to be called; this is the
10486 default value of media after VirtualBox initialization.
10487 A non-empty string indicates a failure and should normally describe
10488 a reason of the failure (for example, a file read error).
10489 </desc>
10490 </attribute>
10491
10492 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
10493 <desc>
10494 Array of UUIDs of all machines this medium is attached to.
10495
10496 A @c null array is returned if this medium is not attached to any
10497 machine or to any machine's snapshot.
10498
10499 <note>
10500 The returned array will include a machine even if this medium is not
10501 attached to that machine in the current state but attached to it in
10502 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
10503 details.
10504 </note>
10505 </desc>
10506 </attribute>
10507
10508 <method name="setIDs">
10509 <desc>
10510 Changes the UUID and parent UUID for a hard disk medium.
10511 </desc>
10512 <param name="setImageId" type="boolean" dir="in">
10513 <desc>
10514 Select whether a new image UUID is set or not.
10515 </desc>
10516 </param>
10517 <param name="imageId" type="uuid" mod="string" dir="in">
10518 <desc>
10519 New UUID for the image. If an empty string is passed, then a new
10520 UUID is automatically created, provided that @a setImageId is @c true.
10521 Specifying a zero UUID is not allowed.
10522 </desc>
10523 </param>
10524 <param name="setParentId" type="boolean" dir="in">
10525 <desc>
10526 Select whether a new parent UUID is set or not.
10527 </desc>
10528 </param>
10529 <param name="parentId" type="uuid" mod="string" dir="in">
10530 <desc>
10531 New parent UUID for the image. If an empty string is passed, then a
10532 new UUID is automatically created, provided @a setParentId is
10533 @c true. A zero UUID is valid.
10534 </desc>
10535 </param>
10536 <result name="E_INVALIDARG">
10537 Invalid parameter combination.
10538 </result>
10539 <result name="VBOX_E_NOT_SUPPORTED">
10540 Medium is not a hard disk medium.
10541 </result>
10542 </method>
10543
10544 <method name="refreshState">
10545 <desc>
10546 If the current medium state (see <link to="MediumState"/>) is one of
10547 "Created", "Inaccessible" or "LockedRead", then this performs an
10548 accessibility check on the medium and sets the value of the <link to="#state"/>
10549 attribute accordingly; that value is also returned for convenience.
10550
10551 For all other state values, this does not perform a refresh but returns
10552 the state only.
10553
10554 The refresh, if performed, may take a long time (several seconds or even
10555 minutes, depending on the storage unit location and format) because it performs an
10556 accessibility check of the storage unit. This check may cause a significant
10557 delay if the storage unit of the given medium is, for example, a file located
10558 on a network share which is not currently accessible due to connectivity
10559 problems. In that case, the call will not return until a timeout
10560 interval defined by the host OS for this operation expires. For this reason,
10561 it is recommended to never read this attribute on the main UI thread to avoid
10562 making the UI unresponsive.
10563
10564 If the last known state of the medium is "Created" and the accessibility
10565 check fails, then the state would be set to "Inaccessible", and
10566 <link to="#lastAccessError"/> may be used to get more details about the
10567 failure. If the state of the medium is "LockedRead", then it remains the
10568 same, and a non-empty value of <link to="#lastAccessError"/> will
10569 indicate a failed accessibility check in this case.
10570
10571 Note that not all medium states are applicable to all medium types.
10572 </desc>
10573 <param name="state" type="MediumState" dir="return">
10574 <desc>
10575 New medium state.
10576 </desc>
10577 </param>
10578 </method>
10579
10580 <method name="getSnapshotIds">
10581 <desc>
10582 Returns an array of UUIDs of all snapshots of the given machine where
10583 this medium is attached to.
10584
10585 If the medium is attached to the machine in the current state, then the
10586 first element in the array will always be the ID of the queried machine
10587 (i.e. the value equal to the @c machineId argument), followed by
10588 snapshot IDs (if any).
10589
10590 If the medium is not attached to the machine in the current state, then
10591 the array will contain only snapshot IDs.
10592
10593 The returned array may be @c null if this medium is not attached
10594 to the given machine at all, neither in the current state nor in one of
10595 the snapshots.
10596 </desc>
10597 <param name="machineId" type="uuid" mod="string" dir="in">
10598 <desc>
10599 UUID of the machine to query.
10600 </desc>
10601 </param>
10602 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
10603 <desc>
10604 Array of snapshot UUIDs of the given machine using this medium.
10605 </desc>
10606 </param>
10607 </method>
10608
10609 <method name="lockRead">
10610 <desc>
10611 Locks this medium for reading.
10612
10613 A read lock is shared: many clients can simultaneously lock the
10614 same medium for reading unless it is already locked for writing (see
10615 <link to="#lockWrite"/>) in which case an error is returned.
10616
10617 When the medium is locked for reading, it cannot be modified
10618 from within VirtualBox. This means that any method that changes
10619 the properties of this medium or contents of the storage unit
10620 will return an error (unless explicitly stated otherwise). That
10621 includes an attempt to start a virtual machine that wants to
10622 write to the the medium.
10623
10624 When the virtual machine is started up, it locks for reading all
10625 media it uses in read-only mode. If some medium cannot be locked
10626 for reading, the startup procedure will fail.
10627 A medium is typically locked for reading while it is used by a running
10628 virtual machine but has a depending differencing image that receives
10629 the actual write operations. This way one base medium can have
10630 multiple child differencing images which can be written to
10631 simultaneously. Read-only media such as DVD and floppy images are
10632 also locked for reading only (so they can be in use by multiple
10633 machines simultaneously).
10634
10635 A medium is also locked for reading when it is the source of a
10636 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
10637
10638 The medium locked for reading must be unlocked using the <link
10639 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
10640 can be nested and must be followed by the same number of paired
10641 <link to="#unlockRead"/> calls.
10642
10643 This method sets the medium state (see <link to="#state"/>) to
10644 "LockedRead" on success. The medium's previous state must be
10645 one of "Created", "Inaccessible" or "LockedRead".
10646
10647 Locking an inaccessible medium is not an error; this method performs
10648 a logical lock that prevents modifications of this medium through
10649 the VirtualBox API, not a physical file-system lock of the underlying
10650 storage unit.
10651
10652 This method returns the current state of the medium
10653 <i>before</i> the operation.
10654
10655 <result name="VBOX_E_INVALID_OBJECT_STATE">
10656 Invalid medium state (e.g. not created, locked, inaccessible,
10657 creating, deleting).
10658 </result>
10659
10660 </desc>
10661 <param name="state" type="MediumState" dir="return">
10662 <desc>
10663 State of the medium after the operation.
10664 </desc>
10665 </param>
10666 </method>
10667
10668 <method name="unlockRead">
10669 <desc>
10670 Cancels the read lock previously set by <link to="#lockRead"/>.
10671
10672 For both success and failure, this method returns the current state
10673 of the medium <i>after</i> the operation.
10674
10675 See <link to="#lockRead"/> for more details.
10676
10677 <result name="VBOX_E_INVALID_OBJECT_STATE">
10678 Medium not locked for reading.
10679 </result>
10680
10681 </desc>
10682 <param name="state" type="MediumState" dir="return">
10683 <desc>
10684 State of the medium after the operation.
10685 </desc>
10686 </param>
10687 </method>
10688
10689 <method name="lockWrite">
10690 <desc>
10691 Locks this medium for writing.
10692
10693 A write lock, as opposed to <link to="#lockRead"/>, is
10694 exclusive: there may be only one client holding a write lock,
10695 and there may be no read locks while the write lock is held.
10696 As a result, read-locking fails if a write lock is held, and
10697 write-locking fails if either a read or another write lock is held.
10698
10699 When a medium is locked for writing, it cannot be modified
10700 from within VirtualBox, and it is not guaranteed that the values
10701 of its properties are up-to-date. Any method that changes the
10702 properties of this medium or contents of the storage unit will
10703 return an error (unless explicitly stated otherwise).
10704
10705 When a virtual machine is started up, it locks for writing all
10706 media it uses to write data to. If any medium could not be locked
10707 for writing, the startup procedure will fail. If a medium has
10708 differencing images, then while the machine is running, only
10709 the last ("leaf") differencing image is locked for writing,
10710 whereas its parents are locked for reading only.
10711
10712 A medium is also locked for writing when it is the target of a
10713 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
10714
10715 The medium locked for writing must be unlocked using the <link
10716 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
10717
10718 This method sets the medium state (see <link to="#state"/>) to
10719 "LockedWrite" on success. The medium's previous state must be
10720 either "Created" or "Inaccessible".
10721
10722 Locking an inaccessible medium is not an error; this method performs
10723 a logical lock that prevents modifications of this medium through
10724 the VirtualBox API, not a physical file-system lock of the underlying
10725 storage unit.
10726
10727 For both, success and failure, this method returns the current
10728 state of the medium <i>before</i> the operation.
10729
10730 <result name="VBOX_E_INVALID_OBJECT_STATE">
10731 Invalid medium state (e.g. not created, locked, inaccessible,
10732 creating, deleting).
10733 </result>
10734
10735 </desc>
10736 <param name="state" type="MediumState" dir="return">
10737 <desc>
10738 State of the medium after the operation.
10739 </desc>
10740 </param>
10741 </method>
10742
10743 <method name="unlockWrite">
10744 <desc>
10745 Cancels the write lock previously set by <link to="#lockWrite"/>.
10746
10747 For both success and failure, this method returns the current
10748 state of the medium <i>after</i> the operation.
10749
10750 See <link to="#lockWrite"/> for more details.
10751
10752 <result name="VBOX_E_INVALID_OBJECT_STATE">
10753 Medium not locked for writing.
10754 </result>
10755
10756 </desc>
10757 <param name="state" type="MediumState" dir="return">
10758 <desc>
10759 State of the medium after the operation.
10760 </desc>
10761 </param>
10762 </method>
10763
10764 <method name="close">
10765 <desc>
10766 Closes this medium.
10767
10768 The medium must not be attached to any known virtual machine
10769 and must not have any known child media, otherwise the
10770 operation will fail.
10771
10772 When the medium is successfully closed, it is removed from
10773 the list of registered media, but its storage unit is not
10774 deleted. In particular, this means that this medium can
10775 later be opened again using the <link to="IVirtualBox::openMedium"/>
10776 call.
10777
10778 Note that after this method successfully returns, the given medium
10779 object becomes uninitialized. This means that any attempt
10780 to call any of its methods or attributes will fail with the
10781 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
10782
10783 <result name="VBOX_E_INVALID_OBJECT_STATE">
10784 Invalid medium state (other than not created, created or
10785 inaccessible).
10786 </result>
10787 <result name="VBOX_E_OBJECT_IN_USE">
10788 Medium attached to virtual machine.
10789 </result>
10790 <result name="VBOX_E_FILE_ERROR">
10791 Settings file not accessible.
10792 </result>
10793 <result name="VBOX_E_XML_ERROR">
10794 Could not parse the settings file.
10795 </result>
10796
10797 </desc>
10798 </method>
10799
10800 <!-- property methods -->
10801
10802 <method name="getProperty" const="yes">
10803 <desc>
10804 Returns the value of the custom medium property with the given name.
10805
10806 The list of all properties supported by the given medium format can
10807 be obtained with <link to="IMediumFormat::describeProperties"/>.
10808
10809 <note>If this method returns an empty string in @a value, the requested
10810 property is supported but currently not assigned any value.</note>
10811
10812 <result name="VBOX_E_OBJECT_NOT_FOUND">
10813 Requested property does not exist (not supported by the format).
10814 </result>
10815 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10816 </desc>
10817 <param name="name" type="wstring" dir="in">
10818 <desc>Name of the property to get.</desc>
10819 </param>
10820 <param name="value" type="wstring" dir="return">
10821 <desc>Current property value.</desc>
10822 </param>
10823 </method>
10824
10825 <method name="setProperty">
10826 <desc>
10827 Sets the value of the custom medium property with the given name.
10828
10829 The list of all properties supported by the given medium format can
10830 be obtained with <link to="IMediumFormat::describeProperties"/>.
10831
10832 <note>Setting the property value to @c null or an empty string is
10833 equivalent to deleting the existing value. A default value (if it is
10834 defined for this property) will be used by the format backend in this
10835 case.</note>
10836
10837 <result name="VBOX_E_OBJECT_NOT_FOUND">
10838 Requested property does not exist (not supported by the format).
10839 </result>
10840 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
10841 </desc>
10842 <param name="name" type="wstring" dir="in">
10843 <desc>Name of the property to set.</desc>
10844 </param>
10845 <param name="value" type="wstring" dir="in">
10846 <desc>Property value to set.</desc>
10847 </param>
10848 </method>
10849
10850 <method name="getProperties" const="yes">
10851 <desc>
10852 Returns values for a group of properties in one call.
10853
10854 The names of the properties to get are specified using the @a names
10855 argument which is a list of comma-separated property names or
10856 an empty string if all properties are to be returned.
10857 <note>Currently the value of this argument is ignored and the method
10858 always returns all existing properties.</note>
10859
10860 The list of all properties supported by the given medium format can
10861 be obtained with <link to="IMediumFormat::describeProperties"/>.
10862
10863 The method returns two arrays, the array of property names corresponding
10864 to the @a names argument and the current values of these properties.
10865 Both arrays have the same number of elements with each element at the
10866 given index in the first array corresponds to an element at the same
10867 index in the second array.
10868
10869 For properties that do not have assigned values, an empty string is
10870 returned at the appropriate index in the @a returnValues array.
10871
10872 </desc>
10873 <param name="names" type="wstring" dir="in">
10874 <desc>
10875 Names of properties to get.
10876 </desc>
10877 </param>
10878 <param name="returnNames" type="wstring" safearray="yes" dir="out">
10879 <desc>Names of returned properties.</desc>
10880 </param>
10881 <param name="returnValues" type="wstring" safearray="yes" dir="return">
10882 <desc>Values of returned properties.</desc>
10883 </param>
10884 </method>
10885
10886 <method name="setProperties">
10887 <desc>
10888 Sets values for a group of properties in one call.
10889
10890 The names of the properties to set are passed in the @a names
10891 array along with the new values for them in the @a values array. Both
10892 arrays have the same number of elements with each element at the given
10893 index in the first array corresponding to an element at the same index
10894 in the second array.
10895
10896 If there is at least one property name in @a names that is not valid,
10897 the method will fail before changing the values of any other properties
10898 from the @a names array.
10899
10900 Using this method over <link to="#setProperty"/> is preferred if you
10901 need to set several properties at once since it is more efficient.
10902
10903 The list of all properties supported by the given medium format can
10904 be obtained with <link to="IMediumFormat::describeProperties"/>.
10905
10906 Setting the property value to @c null or an empty string is equivalent
10907 to deleting the existing value. A default value (if it is defined for
10908 this property) will be used by the format backend in this case.
10909 </desc>
10910 <param name="names" type="wstring" safearray="yes" dir="in">
10911 <desc>Names of properties to set.</desc>
10912 </param>
10913 <param name="values" type="wstring" safearray="yes" dir="in">
10914 <desc>Values of properties to set.</desc>
10915 </param>
10916 </method>
10917
10918 <!-- storage methods -->
10919
10920 <method name="createBaseStorage">
10921 <desc>
10922 Starts creating a hard disk storage unit (fixed/dynamic, according
10923 to the variant flags) in in the background. The previous storage unit
10924 created for this object, if any, must first be deleted using
10925 <link to="#deleteStorage"/>, otherwise the operation will fail.
10926
10927 Before the operation starts, the medium is placed in
10928 <link to="MediumState_Creating"/> state. If the create operation
10929 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
10930 state.
10931
10932 After the returned progress object reports that the operation has
10933 successfully completed, the medium state will be set to <link
10934 to="MediumState_Created"/>, the medium will be remembered by this
10935 VirtualBox installation and may be attached to virtual machines.
10936
10937 <result name="VBOX_E_NOT_SUPPORTED">
10938 The variant of storage creation operation is not supported. See <link
10939 to="IMediumFormat::capabilities"/>.
10940 </result>
10941 </desc>
10942 <param name="logicalSize" type="long long" dir="in">
10943 <desc>Maximum logical size of the medium in bytes.</desc>
10944 </param>
10945 <param name="variant" type="unsigned long" dir="in">
10946 <desc>Exact image variant which should be created (as a combination of
10947 <link to="MediumVariant" /> flags).</desc>
10948 </param>
10949 <param name="progress" type="IProgress" dir="return">
10950 <desc>Progress object to track the operation completion.</desc>
10951 </param>
10952 </method>
10953
10954 <method name="deleteStorage">
10955 <desc>
10956 Starts deleting the storage unit of this medium.
10957
10958 The medium must not be attached to any known virtual machine and must
10959 not have any known child media, otherwise the operation will fail.
10960 It will also fail if there is no storage unit to delete or if deletion
10961 is already in progress, or if the medium is being in use (locked for
10962 read or for write) or inaccessible. Therefore, the only valid state for
10963 this operation to succeed is <link to="MediumState_Created"/>.
10964
10965 Before the operation starts, the medium is placed in
10966 <link to="MediumState_Deleting"/> state and gets removed from the list
10967 of remembered hard disks (media registry). If the delete operation
10968 fails, the medium will be remembered again and placed back to
10969 <link to="MediumState_Created"/> state.
10970
10971 After the returned progress object reports that the operation is
10972 complete, the medium state will be set to
10973 <link to="MediumState_NotCreated"/> and you will be able to use one of
10974 the storage creation methods to create it again.
10975
10976 <see><link to="#close"/></see>
10977
10978 <result name="VBOX_E_OBJECT_IN_USE">
10979 Medium is attached to a virtual machine.
10980 </result>
10981 <result name="VBOX_E_NOT_SUPPORTED">
10982 Storage deletion is not allowed because neither of storage creation
10983 operations are supported. See
10984 <link to="IMediumFormat::capabilities"/>.
10985 </result>
10986
10987 <note>
10988 If the deletion operation fails, it is not guaranteed that the storage
10989 unit still exists. You may check the <link to="IMedium::state"/> value
10990 to answer this question.
10991 </note>
10992 </desc>
10993 <param name="progress" type="IProgress" dir="return">
10994 <desc>Progress object to track the operation completion.</desc>
10995 </param>
10996 </method>
10997
10998 <!-- diff methods -->
10999
11000 <method name="createDiffStorage">
11001 <desc>
11002 Starts creating an empty differencing storage unit based on this
11003 medium in the format and at the location defined by the @a target
11004 argument.
11005
11006 The target medium must be in <link to="MediumState_NotCreated"/>
11007 state (i.e. must not have an existing storage unit). Upon successful
11008 completion, this operation will set the type of the target medium to
11009 <link to="MediumType_Normal"/> and create a storage unit necessary to
11010 represent the differencing medium data in the given format (according
11011 to the storage format of the target object).
11012
11013 After the returned progress object reports that the operation is
11014 successfully complete, the target medium gets remembered by this
11015 VirtualBox installation and may be attached to virtual machines.
11016
11017 <note>
11018 The medium will be set to <link to="MediumState_LockedRead"/>
11019 state for the duration of this operation.
11020 </note>
11021 <result name="VBOX_E_OBJECT_IN_USE">
11022 Medium not in @c NotCreated state.
11023 </result>
11024 </desc>
11025 <param name="target" type="IMedium" dir="in">
11026 <desc>Target medium.</desc>
11027 </param>
11028 <param name="variant" type="unsigned long" dir="in">
11029 <desc>Exact image variant which should be created (as a combination of
11030 <link to="MediumVariant" /> flags).</desc>
11031 </param>
11032 <param name="progress" type="IProgress" dir="return">
11033 <desc>Progress object to track the operation completion.</desc>
11034 </param>
11035 </method>
11036
11037 <method name="mergeTo">
11038 <desc>
11039 Starts merging the contents of this medium and all intermediate
11040 differencing media in the chain to the given target medium.
11041
11042 The target medium must be either a descendant of this medium or
11043 its ancestor (otherwise this method will immediately return a failure).
11044 It follows that there are two logical directions of the merge operation:
11045 from ancestor to descendant (<i>forward merge</i>) and from descendant to
11046 ancestor (<i>backward merge</i>). Let us consider the following medium
11047 chain:
11048
11049 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
11050
11051 Here, calling this method on the <tt>Base</tt> medium object with
11052 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
11053 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
11054 merge. Note that in both cases the contents of the resulting medium
11055 will be the same, the only difference is the medium object that takes
11056 the result of the merge operation. In case of the forward merge in the
11057 above example, the result will be written to <tt>Diff_2</tt>; in case of
11058 the backward merge, the result will be written to <tt>Base</tt>. In
11059 other words, the result of the operation is always stored in the target
11060 medium.
11061
11062 Upon successful operation completion, the storage units of all media in
11063 the chain between this (source) medium and the target medium, including
11064 the source medium itself, will be automatically deleted and the
11065 relevant medium objects (including this medium) will become
11066 uninitialized. This means that any attempt to call any of
11067 their methods or attributes will fail with the
11068 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
11069 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
11070 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
11071 Note that <tt>Diff_2</tt> in this case will become a base medium
11072 itself since it will no longer be based on any other medium.
11073
11074 Considering the above, all of the following conditions must be met in
11075 order for the merge operation to succeed:
11076 <ul>
11077 <li>
11078 Neither this (source) medium nor any intermediate
11079 differencing medium in the chain between it and the target
11080 medium is attached to any virtual machine.
11081 </li>
11082 <li>
11083 Neither the source medium nor the target medium is an
11084 <link to="MediumType_Immutable"/> medium.
11085 </li>
11086 <li>
11087 The part of the medium tree from the source medium to the
11088 target medium is a linear chain, i.e. all medium in this
11089 chain have exactly one child which is the next medium in this
11090 chain. The only exception from this rule is the target medium in
11091 the forward merge operation; it is allowed to have any number of
11092 child media because the merge operation will not change its
11093 logical contents (as it is seen by the guest OS or by children).
11094 </li>
11095 <li>
11096 None of the involved media are in
11097 <link to="MediumState_LockedRead"/> or
11098 <link to="MediumState_LockedWrite"/> state.
11099 </li>
11100 </ul>
11101
11102 <note>
11103 This (source) medium and all intermediates will be placed to <link
11104 to="MediumState_Deleting"/> state and the target medium will be
11105 placed to <link to="MediumState_LockedWrite"/> state and for the
11106 duration of this operation.
11107 </note>
11108 </desc>
11109 <param name="target" type="IMedium" dir="in">
11110 <desc>Target medium.</desc>
11111 </param>
11112 <param name="progress" type="IProgress" dir="return">
11113 <desc>Progress object to track the operation completion.</desc>
11114 </param>
11115 </method>
11116
11117 <!-- clone method -->
11118
11119 <method name="cloneTo">
11120 <desc>
11121 Starts creating a clone of this medium in the format and at the
11122 location defined by the @a target argument.
11123
11124 The target medium must be either in <link to="MediumState_NotCreated"/>
11125 state (i.e. must not have an existing storage unit) or in
11126 <link to="MediumState_Created"/> state (i.e. created and not locked, and
11127 big enough to hold the data or else the copy will be partial). Upon
11128 successful completion, the cloned medium will contain exactly the
11129 same sector data as the medium being cloned, except that in the
11130 first case a new UUID for the clone will be randomly generated, and in
11131 the second case the UUID will remain unchanged.
11132
11133 The @a parent argument defines which medium will be the parent
11134 of the clone. Passing a @c null reference indicates that the clone will
11135 be a base image, i.e. completely independent. It is possible to specify
11136 an arbitrary medium for this parameter, including the parent of the
11137 medium which is being cloned. Even cloning to a child of the source
11138 medium is possible. Note that when cloning to an existing image, the
11139 @a parent argument is ignored.
11140
11141 After the returned progress object reports that the operation is
11142 successfully complete, the target medium gets remembered by this
11143 VirtualBox installation and may be attached to virtual machines.
11144
11145 <note>
11146 This medium will be placed to <link to="MediumState_LockedRead"/>
11147 state for the duration of this operation.
11148 </note>
11149 <result name="E_NOTIMPL">
11150 The specified cloning variant is not supported at the moment.
11151 </result>
11152 </desc>
11153 <param name="target" type="IMedium" dir="in">
11154 <desc>Target medium.</desc>
11155 </param>
11156 <param name="variant" type="unsigned long" dir="in">
11157 <desc>Exact image variant which should be created (as a combination of
11158 <link to="MediumVariant" /> flags).</desc>
11159 </param>
11160 <param name="parent" type="IMedium" dir="in">
11161 <desc>Parent of the cloned medium.</desc>
11162 </param>
11163 <param name="progress" type="IProgress" dir="return">
11164 <desc>Progress object to track the operation completion.</desc>
11165 </param>
11166 </method>
11167
11168 <!-- other methods -->
11169
11170 <method name="compact">
11171 <desc>
11172 Starts compacting of this medium. This means that the medium is
11173 transformed into a possibly more compact storage representation.
11174 This potentially creates temporary images, which can require a
11175 substantial amount of additional disk space.
11176
11177 This medium will be placed to <link to="MediumState_LockedWrite"/>
11178 state and all its parent media (if any) will be placed to
11179 <link to="MediumState_LockedRead"/> state for the duration of this
11180 operation.
11181
11182 Please note that the results can be either returned straight away,
11183 or later as the result of the background operation via the object
11184 returned via the @a progress parameter.
11185
11186 <result name="VBOX_E_NOT_SUPPORTED">
11187 Medium format does not support compacting (but potentially
11188 needs it).
11189 </result>
11190 </desc>
11191 <param name="progress" type="IProgress" dir="return">
11192 <desc>Progress object to track the operation completion.</desc>
11193 </param>
11194 </method>
11195
11196 <method name="resize">
11197 <desc>
11198 Starts resizing this medium. This means that the nominal size of the
11199 medium is set to the new value. Both increasing and decreasing the
11200 size is possible, and there are no safety checks, since VirtualBox
11201 does not make any assumptions about the medium contents.
11202
11203 Resizing usually needs additional disk space, and possibly also
11204 some temporary disk space. Note that resize does not create a full
11205 temporary copy of the medium, so the additional disk space requirement
11206 is usually much lower than using the clone operation.
11207
11208 This medium will be placed to <link to="MediumState_LockedWrite"/>
11209 state for the duration of this operation.
11210
11211 Please note that the results can be either returned straight away,
11212 or later as the result of the background operation via the object
11213 returned via the @a progress parameter.
11214
11215 <result name="VBOX_E_NOT_SUPPORTED">
11216 Medium format does not support resizing.
11217 </result>
11218 </desc>
11219 <param name="logicalSize" type="long long" dir="in">
11220 <desc>New nominal capacity of the medium in bytes.</desc>
11221 </param>
11222 <param name="progress" type="IProgress" dir="return">
11223 <desc>Progress object to track the operation completion.</desc>
11224 </param>
11225 </method>
11226
11227 <method name="reset">
11228 <desc>
11229 Starts erasing the contents of this differencing medium.
11230
11231 This operation will reset the differencing medium to its initial
11232 state when it does not contain any sector data and any read operation is
11233 redirected to its parent medium. This automatically gets called
11234 during VM power-up for every medium whose <link to="#autoReset" />
11235 attribute is @c true.
11236
11237 The medium will be write-locked for the duration of this operation (see
11238 <link to="#lockWrite" />).
11239
11240 <result name="VBOX_E_NOT_SUPPORTED">
11241 This is not a differencing medium.
11242 </result>
11243 <result name="VBOX_E_INVALID_OBJECT_STATE">
11244 Medium is not in <link to="MediumState_Created"/> or
11245 <link to="MediumState_Inaccessible"/> state.
11246 </result>
11247 </desc>
11248 <param name="progress" type="IProgress" dir="return">
11249 <desc>Progress object to track the operation completion.</desc>
11250 </param>
11251 </method>
11252
11253 </interface>
11254
11255
11256 <!--
11257 // IMediumFormat
11258 /////////////////////////////////////////////////////////////////////////
11259 -->
11260
11261 <enum
11262 name="DataType"
11263 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
11264 >
11265 <const name="Int32" value="0"/>
11266 <const name="Int8" value="1"/>
11267 <const name="String" value="2"/>
11268 </enum>
11269
11270 <enum
11271 name="DataFlags"
11272 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
11273 >
11274 <const name="None" value="0x00"/>
11275 <const name="Mandatory" value="0x01"/>
11276 <const name="Expert" value="0x02"/>
11277 <const name="Array" value="0x04"/>
11278 <const name="FlagMask" value="0x07"/>
11279 </enum>
11280
11281 <enum
11282 name="MediumFormatCapabilities"
11283 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
11284 >
11285 <desc>
11286 Medium format capability flags.
11287 </desc>
11288
11289 <const name="Uuid" value="0x01">
11290 <desc>
11291 Supports UUIDs as expected by VirtualBox code.
11292 </desc>
11293 </const>
11294
11295 <const name="CreateFixed" value="0x02">
11296 <desc>
11297 Supports creating fixed size images, allocating all space instantly.
11298 </desc>
11299 </const>
11300
11301 <const name="CreateDynamic" value="0x04">
11302 <desc>
11303 Supports creating dynamically growing images, allocating space on
11304 demand.
11305 </desc>
11306 </const>
11307
11308 <const name="CreateSplit2G" value="0x08">
11309 <desc>
11310 Supports creating images split in chunks of a bit less than 2 GBytes.
11311 </desc>
11312 </const>
11313
11314 <const name="Differencing" value="0x10">
11315 <desc>
11316 Supports being used as a format for differencing media (see <link
11317 to="IMedium::createDiffStorage"/>).
11318 </desc>
11319 </const>
11320
11321 <const name="Asynchronous" value="0x20">
11322 <desc>
11323 Supports asynchronous I/O operations for at least some configurations.
11324 </desc>
11325 </const>
11326
11327 <const name="File" value="0x40">
11328 <desc>
11329 The format backend operates on files (the <link to="IMedium::location"/>
11330 attribute of the medium specifies a file used to store medium
11331 data; for a list of supported file extensions see
11332 <link to="IMediumFormat::describeFileExtensions"/>).
11333 </desc>
11334 </const>
11335
11336 <const name="Properties" value="0x80">
11337 <desc>
11338 The format backend uses the property interface to configure the storage
11339 location and properties (the <link to="IMediumFormat::describeProperties"/>
11340 method is used to get access to properties supported by the given medium format).
11341 </desc>
11342 </const>
11343
11344 <const name="TcpNetworking" value="0x100">
11345 <desc>
11346 The format backend uses the TCP networking interface for network access.
11347 </desc>
11348 </const>
11349
11350 <const name="VFS" value="0x200">
11351 <desc>
11352 The format backend supports virtual filesystem functionality.
11353 </desc>
11354 </const>
11355
11356 <const name="CapabilityMask" value="0x3FF"/>
11357 </enum>
11358
11359 <interface
11360 name="IMediumFormat" extends="$unknown"
11361 uuid="9bd5b655-ea47-4637-99f3-aad0948be35b"
11362 wsmap="managed"
11363 >
11364 <desc>
11365 The IMediumFormat interface represents a medium format.
11366
11367 Each medium format has an associated backend which is used to handle
11368 media stored in this format. This interface provides information
11369 about the properties of the associated backend.
11370
11371 Each medium format is identified by a string represented by the
11372 <link to="#id"/> attribute. This string is used in calls like
11373 <link to="IVirtualBox::createHardDisk"/> to specify the desired
11374 format.
11375
11376 The list of all supported medium formats can be obtained using
11377 <link to="ISystemProperties::mediumFormats"/>.
11378
11379 <see><link to="IMedium"/></see>
11380 </desc>
11381
11382 <attribute name="id" type="wstring" readonly="yes">
11383 <desc>
11384 Identifier of this format.
11385
11386 The format identifier is a non-@c null non-empty ASCII string. Note that
11387 this string is case-insensitive. This means that, for example, all of
11388 the following strings:
11389 <pre>
11390 "VDI"
11391 "vdi"
11392 "VdI"</pre>
11393 refer to the same medium format.
11394
11395 This string is used in methods of other interfaces where it is necessary
11396 to specify a medium format, such as
11397 <link to="IVirtualBox::createHardDisk"/>.
11398 </desc>
11399 </attribute>
11400
11401 <attribute name="name" type="wstring" readonly="yes">
11402 <desc>
11403 Human readable description of this format.
11404
11405 Mainly for use in file open dialogs.
11406 </desc>
11407 </attribute>
11408
11409 <attribute name="capabilities" type="unsigned long" readonly="yes">
11410 <desc>
11411 Capabilities of the format as a set of bit flags.
11412
11413 For the meaning of individual capability flags see
11414 <link to="MediumFormatCapabilities"/>.
11415 </desc>
11416 </attribute>
11417
11418 <method name="describeFileExtensions">
11419 <desc>
11420 Returns two arrays describing the supported file extensions.
11421
11422 The first array contains the supported extensions and the seconds one
11423 the type each extension supports. Both have the same size.
11424
11425 Note that some backends do not work on files, so this array may be
11426 empty.
11427
11428 <see><link to="IMediumFormat::capabilities"/></see>
11429 </desc>
11430 <param name="extensions" type="wstring" safearray="yes" dir="out">
11431 <desc>The array of supported extensions.</desc>
11432 </param>
11433 <param name="type" type="DeviceType" safearray="yes" dir="out">
11434 <desc>The array which indicates the device type for every given extension.</desc>
11435 </param>
11436 </method>
11437
11438 <method name="describeProperties" const="yes">
11439 <desc>
11440 Returns several arrays describing the properties supported by this
11441 format.
11442
11443 An element with the given index in each array describes one
11444 property. Thus, the number of elements in each returned array is the
11445 same and corresponds to the number of supported properties.
11446
11447 The returned arrays are filled in only if the
11448 <link to="MediumFormatCapabilities_Properties"/> flag is set.
11449 All arguments must be non-@c null.
11450
11451 <see><link to="DataType"/>, <link to="DataFlags"/></see>
11452 </desc>
11453
11454 <param name="names" type="wstring" safearray="yes" dir="out">
11455 <desc>Array of property names.</desc>
11456 </param>
11457 <param name="description" type="wstring" safearray="yes" dir="out">
11458 <desc>Array of property descriptions.</desc>
11459 </param>
11460 <param name="types" type="DataType" safearray="yes" dir="out">
11461 <desc>Array of property types.</desc>
11462 </param>
11463 <param name="flags" type="unsigned long" safearray="yes" dir="out">
11464 <desc>Array of property flags.</desc>
11465 </param>
11466 <param name="defaults" type="wstring" safearray="yes" dir="out">
11467 <desc>Array of default property values.</desc>
11468 </param>
11469 </method>
11470
11471 </interface>
11472
11473
11474 <!--
11475 // IKeyboard
11476 /////////////////////////////////////////////////////////////////////////
11477 -->
11478
11479 <interface
11480 name="IKeyboard" extends="$unknown"
11481 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
11482 wsmap="managed"
11483 >
11484 <desc>
11485 The IKeyboard interface represents the virtual machine's keyboard. Used
11486 in <link to="IConsole::keyboard"/>.
11487
11488 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
11489 to the virtual machine.
11490
11491 </desc>
11492 <method name="putScancode">
11493 <desc>Sends a scancode to the keyboard.
11494
11495 <result name="VBOX_E_IPRT_ERROR">
11496 Could not send scan code to virtual keyboard.
11497 </result>
11498
11499 </desc>
11500 <param name="scancode" type="long" dir="in"/>
11501 </method>
11502
11503 <method name="putScancodes">
11504 <desc>Sends an array of scancodes to the keyboard.
11505
11506 <result name="VBOX_E_IPRT_ERROR">
11507 Could not send all scan codes to virtual keyboard.
11508 </result>
11509
11510 </desc>
11511 <param name="scancodes" type="long" dir="in" safearray="yes"/>
11512 <param name="codesStored" type="unsigned long" dir="return"/>
11513 </method>
11514
11515 <method name="putCAD">
11516 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
11517 function is nothing special, it is just a convenience function
11518 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
11519
11520 <result name="VBOX_E_IPRT_ERROR">
11521 Could not send all scan codes to virtual keyboard.
11522 </result>
11523
11524 </desc>
11525 </method>
11526
11527 <attribute name="eventSource" type="IEventSource" readonly="yes">
11528 <desc>
11529 Event source for keyboard events.
11530 </desc>
11531 </attribute>
11532
11533 </interface>
11534
11535
11536 <!--
11537 // IMouse
11538 /////////////////////////////////////////////////////////////////////////
11539 -->
11540
11541 <enum
11542 name="MouseButtonState"
11543 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
11544 >
11545 <desc>
11546 Mouse button state.
11547 </desc>
11548
11549 <const name="LeftButton" value="0x01"/>
11550 <const name="RightButton" value="0x02"/>
11551 <const name="MiddleButton" value="0x04"/>
11552 <const name="WheelUp" value="0x08"/>
11553 <const name="WheelDown" value="0x10"/>
11554 <const name="XButton1" value="0x20"/>
11555 <const name="XButton2" value="0x40"/>
11556 <const name="MouseStateMask" value="0x7F"/>
11557 </enum>
11558
11559 <interface
11560 name="IMouse" extends="$unknown"
11561 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
11562 wsmap="managed"
11563 >
11564 <desc>
11565 The IMouse interface represents the virtual machine's mouse. Used in
11566 <link to="IConsole::mouse"/>.
11567
11568 Through this interface, the virtual machine's virtual mouse can be
11569 controlled.
11570 </desc>
11571
11572 <attribute name="absoluteSupported" type="boolean" readonly="yes">
11573 <desc>
11574 Whether the guest OS supports absolute mouse pointer positioning
11575 or not.
11576 <note>
11577 You can use the <link to="IMouseCapabilityChangedEvent"/>
11578 event to be instantly informed about changes of this attribute
11579 during virtual machine execution.
11580 </note>
11581 <see><link to="#putMouseEventAbsolute"/></see>
11582 </desc>
11583 </attribute>
11584
11585 <attribute name="relativeSupported" type="boolean" readonly="yes">
11586 <desc>
11587 Whether the guest OS supports relative mouse pointer positioning
11588 or not.
11589 <note>
11590 You can use the <link to="IMouseCapabilityChangedEvent"/>
11591 event to be instantly informed about changes of this attribute
11592 during virtual machine execution.
11593 </note>
11594 <see><link to="#putMouseEvent"/></see>
11595 </desc>
11596 </attribute>
11597
11598 <attribute name="needsHostCursor" type="boolean" readonly="yes">
11599 <desc>
11600 Whether the guest OS can currently switch to drawing it's own mouse
11601 cursor on demand.
11602 <note>
11603 You can use the <link to="IMouseCapabilityChangedEvent"/>
11604 event to be instantly informed about changes of this attribute
11605 during virtual machine execution.
11606 </note>
11607 <see><link to="#putMouseEvent"/></see>
11608 </desc>
11609 </attribute>
11610
11611 <method name="putMouseEvent">
11612 <desc>
11613 Initiates a mouse event using relative pointer movements
11614 along x and y axis.
11615
11616 <result name="E_ACCESSDENIED">
11617 Console not powered up.
11618 </result>
11619 <result name="VBOX_E_IPRT_ERROR">
11620 Could not send mouse event to virtual mouse.
11621 </result>
11622
11623 </desc>
11624
11625 <param name="dx" type="long" dir="in">
11626 <desc>
11627 Amount of pixels the mouse should move to the right.
11628 Negative values move the mouse to the left.
11629 </desc>
11630 </param>
11631 <param name="dy" type="long" dir="in">
11632 <desc>
11633 Amount of pixels the mouse should move downwards.
11634 Negative values move the mouse upwards.
11635 </desc>
11636 </param>
11637 <param name="dz" type="long" dir="in">
11638 <desc>
11639 Amount of mouse wheel moves.
11640 Positive values describe clockwise wheel rotations,
11641 negative values describe counterclockwise rotations.
11642 </desc>
11643 </param>
11644 <param name="dw" type="long" dir="in">
11645 <desc>
11646 Amount of horizontal mouse wheel moves.
11647 Positive values describe a movement to the left,
11648 negative values describe a movement to the right.
11649 </desc>
11650 </param>
11651 <param name="buttonState" type="long" dir="in">
11652 <desc>
11653 The current state of mouse buttons. Every bit represents
11654 a mouse button as follows:
11655 <table>
11656 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
11657 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
11658 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
11659 </table>
11660 A value of <tt>1</tt> means the corresponding button is pressed.
11661 otherwise it is released.
11662 </desc>
11663 </param>
11664 </method>
11665
11666 <method name="putMouseEventAbsolute">
11667 <desc>
11668 Positions the mouse pointer using absolute x and y coordinates.
11669 These coordinates are expressed in pixels and
11670 start from <tt>[1,1]</tt> which corresponds to the top left
11671 corner of the virtual display.
11672
11673 <result name="E_ACCESSDENIED">
11674 Console not powered up.
11675 </result>
11676 <result name="VBOX_E_IPRT_ERROR">
11677 Could not send mouse event to virtual mouse.
11678 </result>
11679
11680 <note>
11681 This method will have effect only if absolute mouse
11682 positioning is supported by the guest OS.
11683 </note>
11684
11685 <see><link to="#absoluteSupported"/></see>
11686 </desc>
11687
11688 <param name="x" type="long" dir="in">
11689 <desc>
11690 X coordinate of the pointer in pixels, starting from @c 1.
11691 </desc>
11692 </param>
11693 <param name="y" type="long" dir="in">
11694 <desc>
11695 Y coordinate of the pointer in pixels, starting from @c 1.
11696 </desc>
11697 </param>
11698 <param name="dz" type="long" dir="in">
11699 <desc>
11700 Amount of mouse wheel moves.
11701 Positive values describe clockwise wheel rotations,
11702 negative values describe counterclockwise rotations.
11703 </desc>
11704 </param>
11705 <param name="dw" type="long" dir="in">
11706 <desc>
11707 Amount of horizontal mouse wheel moves.
11708 Positive values describe a movement to the left,
11709 negative values describe a movement to the right.
11710 </desc>
11711 </param>
11712 <param name="buttonState" type="long" dir="in">
11713 <desc>
11714 The current state of mouse buttons. Every bit represents
11715 a mouse button as follows:
11716 <table>
11717 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
11718 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
11719 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
11720 </table>
11721 A value of @c 1 means the corresponding button is pressed.
11722 otherwise it is released.
11723 </desc>
11724 </param>
11725 </method>
11726
11727 <attribute name="eventSource" type="IEventSource" readonly="yes">
11728 <desc>
11729 Event source for mouse events.
11730 </desc>
11731 </attribute>
11732
11733 </interface>
11734
11735 <!--
11736 // IDisplay
11737 /////////////////////////////////////////////////////////////////////////
11738 -->
11739
11740 <enum
11741 name="FramebufferPixelFormat"
11742 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
11743 >
11744 <desc>
11745 Format of the video memory buffer. Constants represented by this enum can
11746 be used to test for particular values of <link
11747 to="IFramebuffer::pixelFormat"/>. See also <link
11748 to="IFramebuffer::requestResize"/>.
11749
11750 See also www.fourcc.org for more information about FOURCC pixel formats.
11751 </desc>
11752
11753 <const name="Opaque" value="0">
11754 <desc>
11755 Unknown buffer format (the user may not assume any particular format of
11756 the buffer).
11757 </desc>
11758 </const>
11759 <const name="FOURCC_RGB" value="0x32424752">
11760 <desc>
11761 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
11762 bit layout).
11763 </desc>
11764 </const>
11765 </enum>
11766
11767 <interface
11768 name="IFramebuffer" extends="$unknown"
11769 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
11770 wsmap="suppress"
11771 >
11772 <attribute name="address" type="octet" mod="ptr" readonly="yes">
11773 <desc>Address of the start byte of the frame buffer.</desc>
11774 </attribute>
11775
11776 <attribute name="width" type="unsigned long" readonly="yes">
11777 <desc>Frame buffer width, in pixels.</desc>
11778 </attribute>
11779
11780 <attribute name="height" type="unsigned long" readonly="yes">
11781 <desc>Frame buffer height, in pixels.</desc>
11782 </attribute>
11783
11784 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
11785 <desc>
11786 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
11787 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
11788 are: 8, 15, 16, 24 and 32.
11789 </desc>
11790 </attribute>
11791
11792 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
11793 <desc>
11794 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
11795 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
11796 size of the scan line must be aligned to 32 bits.
11797 </desc>
11798 </attribute>
11799
11800 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
11801 <desc>
11802 Frame buffer pixel format. It's either one of the values defined by <link
11803 to="FramebufferPixelFormat"/> or a raw FOURCC code.
11804 <note>
11805 This attribute must never return <link
11806 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
11807 <link to="#address"/> points to must be always known.
11808 </note>
11809 </desc>
11810 </attribute>
11811
11812 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
11813 <desc>
11814 Defines whether this frame buffer uses the virtual video card's memory
11815 buffer (guest VRAM) directly or not. See <link
11816 to="IFramebuffer::requestResize"/> for more information.
11817 </desc>
11818 </attribute>
11819
11820 <attribute name="heightReduction" type="unsigned long" readonly="yes">
11821 <desc>
11822 Hint from the frame buffer about how much of the standard
11823 screen height it wants to use for itself. This information is
11824 exposed to the guest through the VESA BIOS and VMMDev interface
11825 so that it can use it for determining its video mode table. It
11826 is not guaranteed that the guest respects the value.
11827 </desc>
11828 </attribute>
11829
11830 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
11831 <desc>
11832 An alpha-blended overlay which is superposed over the frame buffer.
11833 The initial purpose is to allow the display of icons providing
11834 information about the VM state, including disk activity, in front
11835 ends which do not have other means of doing that. The overlay is
11836 designed to controlled exclusively by IDisplay. It has no locking
11837 of its own, and any changes made to it are not guaranteed to be
11838 visible until the affected portion of IFramebuffer is updated. The
11839 overlay can be created lazily the first time it is requested. This
11840 attribute can also return @c null to signal that the overlay is not
11841 implemented.
11842 </desc>
11843 </attribute>
11844
11845 <attribute name="winId" type="long long" readonly="yes">
11846 <desc>
11847 Platform-dependent identifier of the window where context of this
11848 frame buffer is drawn, or zero if there's no such window.
11849 </desc>
11850 </attribute>
11851
11852 <method name="lock">
11853 <desc>
11854 Locks the frame buffer.
11855 Gets called by the IDisplay object where this frame buffer is
11856 bound to.
11857 </desc>
11858 </method>
11859
11860 <method name="unlock">
11861 <desc>
11862 Unlocks the frame buffer.
11863 Gets called by the IDisplay object where this frame buffer is
11864 bound to.
11865 </desc>
11866 </method>
11867
11868 <method name="notifyUpdate">
11869 <desc>
11870 Informs about an update.
11871 Gets called by the display object where this buffer is
11872 registered.
11873 </desc>
11874 <param name="x" type="unsigned long" dir="in"/>
11875 <param name="y" type="unsigned long" dir="in"/>
11876 <param name="width" type="unsigned long" dir="in"/>
11877 <param name="height" type="unsigned long" dir="in"/>
11878 </method>
11879
11880 <method name="requestResize">
11881 <desc>
11882 Requests a size and pixel format change.
11883
11884 There are two modes of working with the video buffer of the virtual
11885 machine. The <i>indirect</i> mode implies that the IFramebuffer
11886 implementation allocates a memory buffer for the requested display mode
11887 and provides it to the virtual machine. In <i>direct</i> mode, the
11888 IFramebuffer implementation uses the memory buffer allocated and owned
11889 by the virtual machine. This buffer represents the video memory of the
11890 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
11891 usually faster because the implementation gets a raw pointer to the
11892 guest VRAM buffer which it can directly use for visualizing the contents
11893 of the virtual display, as opposed to the indirect mode where the
11894 contents of guest VRAM are copied to the memory buffer provided by
11895 the implementation every time a display update occurs.
11896
11897 It is important to note that the direct mode is really fast only when
11898 the implementation uses the given guest VRAM buffer directly, for
11899 example, by blitting it to the window representing the virtual machine's
11900 display, which saves at least one copy operation comparing to the
11901 indirect mode. However, using the guest VRAM buffer directly is not
11902 always possible: the format and the color depth of this buffer may be
11903 not supported by the target window, or it may be unknown (opaque) as in
11904 case of text or non-linear multi-plane VGA video modes. In this case,
11905 the indirect mode (that is always available) should be used as a
11906 fallback: when the guest VRAM contents are copied to the
11907 implementation-provided memory buffer, color and format conversion is
11908 done automatically by the underlying code.
11909
11910 The @a pixelFormat parameter defines whether the direct mode is
11911 available or not. If @a pixelFormat is <link
11912 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
11913 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
11914 @a bytesPerLine parameters must be ignored and the implementation must use
11915 the indirect mode (where it provides its own buffer in one of the
11916 supported formats). In all other cases, @a pixelFormat together with
11917 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
11918 buffer pointed to by the @a VRAM parameter and the implementation is
11919 free to choose which mode to use. To indicate that this frame buffer uses
11920 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
11921 attribute must return @c true and <link to="#address"/> must
11922 return exactly the same address that is passed in the @a VRAM parameter
11923 of this method; otherwise it is assumed that the indirect strategy is
11924 chosen.
11925
11926 The @a width and @a height parameters represent the size of the
11927 requested display mode in both modes. In case of indirect mode, the
11928 provided memory buffer should be big enough to store data of the given
11929 display mode. In case of direct mode, it is guaranteed that the given
11930 @a VRAM buffer contains enough space to represent the display mode of the
11931 given size. Note that this frame buffer's <link to="#width"/> and <link
11932 to="#height"/> attributes must return exactly the same values as
11933 passed to this method after the resize is completed (see below).
11934
11935 The @a finished output parameter determines if the implementation has
11936 finished resizing the frame buffer or not. If, for some reason, the
11937 resize cannot be finished immediately during this call, @a finished
11938 must be set to @c false, and the implementation must call
11939 <link to="IDisplay::resizeCompleted"/> after it has returned from
11940 this method as soon as possible. If @a finished is @c false, the
11941 machine will not call any frame buffer methods until
11942 <link to="IDisplay::resizeCompleted"/> is called.
11943
11944 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
11945 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
11946 this frame buffer must return exactly the same values as specified in the
11947 parameters of this method, after the resize is completed. If the
11948 indirect mode is chosen, these attributes must return values describing
11949 the format of the implementation's own memory buffer <link
11950 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
11951 value must always correlate with <link to="#pixelFormat"/>. Note that
11952 the <link to="#pixelFormat"/> attribute must never return <link
11953 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
11954
11955 <note>
11956 This method is called by the IDisplay object under the
11957 <link to="#lock"/> provided by this IFramebuffer
11958 implementation. If this method returns @c false in @a finished, then
11959 this lock is not released until
11960 <link to="IDisplay::resizeCompleted"/> is called.
11961 </note>
11962 </desc>
11963 <param name="screenId" type="unsigned long" dir="in">
11964 <desc>
11965 Logical screen number. Must be used in the corresponding call to
11966 <link to="IDisplay::resizeCompleted"/> if this call is made.
11967 </desc>
11968 </param>
11969 <param name="pixelFormat" type="unsigned long" dir="in">
11970 <desc>
11971 Pixel format of the memory buffer pointed to by @a VRAM.
11972 See also <link to="FramebufferPixelFormat"/>.
11973 </desc>
11974 </param>
11975 <param name="VRAM" type="octet" mod="ptr" dir="in">
11976 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
11977 </param>
11978 <param name="bitsPerPixel" type="unsigned long" dir="in">
11979 <desc>Color depth, bits per pixel.</desc>
11980 </param>
11981 <param name="bytesPerLine" type="unsigned long" dir="in">
11982 <desc>Size of one scan line, in bytes.</desc>
11983 </param>
11984 <param name="width" type="unsigned long" dir="in">
11985 <desc>Width of the guest display, in pixels.</desc>
11986 </param>
11987 <param name="height" type="unsigned long" dir="in">
11988 <desc>Height of the guest display, in pixels.</desc>
11989 </param>
11990 <param name="finished" type="boolean" dir="return">
11991 <desc>
11992 Can the VM start using the new frame buffer immediately
11993 after this method returns or it should wait for
11994 <link to="IDisplay::resizeCompleted"/>.
11995 </desc>
11996 </param>
11997 </method>
11998
11999 <method name="videoModeSupported">
12000 <desc>
12001 Returns whether the frame buffer implementation is willing to
12002 support a given video mode. In case it is not able to render
12003 the video mode (or for some reason not willing), it should
12004 return @c false. Usually this method is called when the guest
12005 asks the VMM device whether a given video mode is supported
12006 so the information returned is directly exposed to the guest.
12007 It is important that this method returns very quickly.
12008 </desc>
12009 <param name="width" type="unsigned long" dir="in"/>
12010 <param name="height" type="unsigned long" dir="in"/>
12011 <param name="bpp" type="unsigned long" dir="in"/>
12012 <param name="supported" type="boolean" dir="return"/>
12013 </method>
12014
12015 <method name="getVisibleRegion">
12016 <desc>
12017 Returns the visible region of this frame buffer.
12018
12019 If the @a rectangles parameter is @c null then the value of the
12020 @a count parameter is ignored and the number of elements necessary to
12021 describe the current visible region is returned in @a countCopied.
12022
12023 If @a rectangles is not @c null but @a count is less
12024 than the required number of elements to store region data, the method
12025 will report a failure. If @a count is equal or greater than the
12026 required number of elements, then the actual number of elements copied
12027 to the provided array will be returned in @a countCopied.
12028
12029 <note>
12030 The address of the provided array must be in the process space of
12031 this IFramebuffer object.
12032 </note>
12033 <note>
12034 Method not yet implemented.
12035 </note>
12036 </desc>
12037 <param name="rectangles" type="octet" mod="ptr" dir="in">
12038 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
12039 </param>
12040 <param name="count" type="unsigned long" dir="in">
12041 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
12042 </param>
12043 <param name="countCopied" type="unsigned long" dir="return">
12044 <desc>Number of elements copied to the @a rectangles array.</desc>
12045 </param>
12046 </method>
12047
12048 <method name="setVisibleRegion">
12049 <desc>
12050 Suggests a new visible region to this frame buffer. This region
12051 represents the area of the VM display which is a union of regions of
12052 all top-level windows of the guest operating system running inside the
12053 VM (if the Guest Additions for this system support this
12054 functionality). This information may be used by the frontends to
12055 implement the seamless desktop integration feature.
12056
12057 <note>
12058 The address of the provided array must be in the process space of
12059 this IFramebuffer object.
12060 </note>
12061 <note>
12062 The IFramebuffer implementation must make a copy of the provided
12063 array of rectangles.
12064 </note>
12065 <note>
12066 Method not yet implemented.
12067 </note>
12068 </desc>
12069 <param name="rectangles" type="octet" mod="ptr" dir="in">
12070 <desc>Pointer to the @c RTRECT array.</desc>
12071 </param>
12072 <param name="count" type="unsigned long" dir="in">
12073 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
12074 </param>
12075 </method>
12076
12077 <method name="processVHWACommand">
12078 <desc>
12079 Posts a Video HW Acceleration Command to the frame buffer for processing.
12080 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
12081 are posted from quest to the host to be processed by the host hardware.
12082
12083 <note>
12084 The address of the provided command must be in the process space of
12085 this IFramebuffer object.
12086 </note>
12087 </desc>
12088
12089 <param name="command" type="octet" mod="ptr" dir="in">
12090 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
12091 </param>
12092 </method>
12093
12094 </interface>
12095
12096 <interface
12097 name="IFramebufferOverlay" extends="IFramebuffer"
12098 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
12099 wsmap="suppress"
12100 >
12101 <desc>
12102 The IFramebufferOverlay interface represents an alpha blended overlay
12103 for displaying status icons above an IFramebuffer. It is always created
12104 not visible, so that it must be explicitly shown. It only covers a
12105 portion of the IFramebuffer, determined by its width, height and
12106 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
12107 that order) format, and may be written to directly. Do re-read the
12108 width though, after setting it, as it may be adjusted (increased) to
12109 make it more suitable for the front end.
12110 </desc>
12111 <attribute name="x" type="unsigned long" readonly="yes">
12112 <desc>X position of the overlay, relative to the frame buffer.</desc>
12113 </attribute>
12114
12115 <attribute name="y" type="unsigned long" readonly="yes">
12116 <desc>Y position of the overlay, relative to the frame buffer.</desc>
12117 </attribute>
12118
12119 <attribute name="visible" type="boolean" readonly="no">
12120 <desc>
12121 Whether the overlay is currently visible.
12122 </desc>
12123 </attribute>
12124
12125 <attribute name="alpha" type="unsigned long" readonly="no">
12126 <desc>
12127 The global alpha value for the overlay. This may or may not be
12128 supported by a given front end.
12129 </desc>
12130 </attribute>
12131
12132 <method name="move">
12133 <desc>
12134 Changes the overlay's position relative to the IFramebuffer.
12135 </desc>
12136 <param name="x" type="unsigned long" dir="in"/>
12137 <param name="y" type="unsigned long" dir="in"/>
12138 </method>
12139
12140 </interface>
12141
12142 <interface
12143 name="IDisplay" extends="$unknown"
12144 uuid="09EED313-CD56-4D06-BD56-FAC0F716B5DD"
12145 wsmap="managed"
12146 >
12147 <desc>
12148 The IDisplay interface represents the virtual machine's display.
12149
12150 The object implementing this interface is contained in each
12151 <link to="IConsole::display"/> attribute and represents the visual
12152 output of the virtual machine.
12153
12154 The virtual display supports pluggable output targets represented by the
12155 IFramebuffer interface. Examples of the output target are a window on
12156 the host computer or an RDP session's display on a remote computer.
12157 </desc>
12158 <method name="getScreenResolution">
12159 <desc>Queries display width, height and color depth for given screen.</desc>
12160 <param name="screenId" type="unsigned long" dir="in"/>
12161 <param name="width" type="unsigned long" dir="out"/>
12162 <param name="height" type="unsigned long" dir="out"/>
12163 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
12164 </method>
12165
12166 <method name="setFramebuffer">
12167 <desc>
12168 Sets the framebuffer for given screen.
12169 </desc>
12170 <param name="screenId" type="unsigned long" dir="in"/>
12171 <param name="framebuffer" type="IFramebuffer" dir="in"/>
12172 </method>
12173
12174 <method name="getFramebuffer">
12175 <desc>
12176 Queries the framebuffer for given screen.
12177 </desc>
12178 <param name="screenId" type="unsigned long" dir="in"/>
12179 <param name="framebuffer" type="IFramebuffer" dir="out"/>
12180 <param name="xOrigin" type="long" dir="out"/>
12181 <param name="yOrigin" type="long" dir="out"/>
12182 </method>
12183
12184 <method name="setVideoModeHint">
12185 <desc>
12186 Asks VirtualBox to request the given video mode from
12187 the guest. This is just a hint and it cannot be guaranteed
12188 that the requested resolution will be used. Guest Additions
12189 are required for the request to be seen by guests. The caller
12190 should issue the request and wait for a resolution change and
12191 after a timeout retry.
12192
12193 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
12194 parameters means that the corresponding values should be taken from the
12195 current video mode (i.e. left unchanged).
12196
12197 If the guest OS supports multi-monitor configuration then the @a display
12198 parameter specifies the number of the guest display to send the hint to:
12199 @c 0 is the primary display, @c 1 is the first secondary and
12200 so on. If the multi-monitor configuration is not supported, @a display
12201 must be @c 0.
12202
12203 <result name="E_INVALIDARG">
12204 The @a display is not associated with any monitor.
12205 </result>
12206
12207 </desc>
12208 <param name="width" type="unsigned long" dir="in"/>
12209 <param name="height" type="unsigned long" dir="in"/>
12210 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
12211 <param name="display" type="unsigned long" dir="in"/>
12212 </method>
12213
12214 <method name="setSeamlessMode">
12215 <desc>
12216 Enables or disables seamless guest display rendering (seamless desktop
12217 integration) mode.
12218 <note>
12219 Calling this method has no effect if <link
12220 to="IGuest::getFacilityStatus"/> with facility @c Seamless
12221 does not return @c Active.
12222 </note>
12223 </desc>
12224 <param name="enabled" type="boolean" dir="in"/>
12225 </method>
12226
12227 <method name="takeScreenShot">
12228 <desc>
12229 Takes a screen shot of the requested size and copies it to the
12230 32-bpp buffer allocated by the caller and pointed to by @a address.
12231 A pixel consists of 4 bytes in order: B, G, R, 0.
12232
12233 <note>This API can be used only locally by a VM process through the
12234 COM/XPCOM C++ API as it requires pointer support. It is not
12235 available for scripting langages, Java or any webservice clients.
12236 Unless you are writing a new VM frontend use
12237 <link to="#takeScreenShotToArray" />.
12238 </note>
12239
12240 <result name="E_NOTIMPL">
12241 Feature not implemented.
12242 </result>
12243 <result name="VBOX_E_IPRT_ERROR">
12244 Could not take a screenshot.
12245 </result>
12246
12247 </desc>
12248 <param name="screenId" type="unsigned long" dir="in"/>
12249 <param name="address" type="octet" mod="ptr" dir="in"/>
12250 <param name="width" type="unsigned long" dir="in"/>
12251 <param name="height" type="unsigned long" dir="in"/>
12252 </method>
12253
12254 <method name="takeScreenShotToArray">
12255 <desc>
12256 Takes a guest screen shot of the requested size and returns it as
12257 an array of bytes in uncompressed 32-bit RGBA format.
12258 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
12259
12260 This API is slow, but could be the only option to get guest screenshot
12261 for scriptable languages not allowed to manipulate with addresses
12262 directly.
12263
12264 <result name="E_NOTIMPL">
12265 Feature not implemented.
12266 </result>
12267 <result name="VBOX_E_IPRT_ERROR">
12268 Could not take a screenshot.
12269 </result>
12270 </desc>
12271 <param name="screenId" type="unsigned long" dir="in">
12272 <desc>
12273 Monitor to take screenshot from.
12274 </desc>
12275 </param>
12276 <param name="width" type="unsigned long" dir="in">
12277 <desc>
12278 Desired image width.
12279 </desc>
12280 </param>
12281 <param name="height" type="unsigned long" dir="in">
12282 <desc>
12283 Desired image height.
12284 </desc>
12285 </param>
12286 <param name="screenData" type="octet" dir="return" safearray="yes">
12287 <desc>
12288 Array with resulting screen data.
12289 </desc>
12290 </param>
12291 </method>
12292
12293 <method name="takeScreenShotPNGToArray">
12294 <desc>
12295 Takes a guest screen shot of the requested size and returns it as
12296 PNG image in array.
12297
12298 <result name="E_NOTIMPL">
12299 Feature not implemented.
12300 </result>
12301 <result name="VBOX_E_IPRT_ERROR">
12302 Could not take a screenshot.
12303 </result>
12304 </desc>
12305 <param name="screenId" type="unsigned long" dir="in">
12306 <desc>
12307 Monitor to take the screenshot from.
12308 </desc>
12309 </param>
12310 <param name="width" type="unsigned long" dir="in">
12311 <desc>
12312 Desired image width.
12313 </desc>
12314 </param>
12315 <param name="height" type="unsigned long" dir="in">
12316 <desc>
12317 Desired image height.
12318 </desc>
12319 </param>
12320 <param name="screenData" type="octet" dir="return" safearray="yes">
12321 <desc>
12322 Array with resulting screen data.
12323 </desc>
12324 </param>
12325 </method>
12326
12327 <method name="drawToScreen">
12328 <desc>
12329 Draws a 32-bpp image of the specified size from the given buffer
12330 to the given point on the VM display.
12331
12332 <result name="E_NOTIMPL">
12333 Feature not implemented.
12334 </result>
12335 <result name="VBOX_E_IPRT_ERROR">
12336 Could not draw to screen.
12337 </result>
12338
12339 </desc>
12340 <param name="screenId" type="unsigned long" dir="in">
12341 <desc>
12342 Monitor to take the screenshot from.
12343 </desc>
12344 </param>
12345 <param name="address" type="octet" mod="ptr" dir="in">
12346 <desc>
12347 Address to store the screenshot to
12348 </desc>
12349 </param>
12350 <param name="x" type="unsigned long" dir="in">
12351 <desc>
12352 Relative to the screen top left corner.
12353 </desc>
12354 </param>
12355 <param name="y" type="unsigned long" dir="in">
12356 <desc>
12357 Relative to the screen top left corner.
12358 </desc>
12359 </param>
12360 <param name="width" type="unsigned long" dir="in">
12361 <desc>
12362 Desired image width.
12363 </desc>
12364 </param>
12365 <param name="height" type="unsigned long" dir="in">
12366 <desc>
12367 Desired image height.
12368 </desc>
12369 </param>
12370 </method>
12371
12372 <method name="invalidateAndUpdate">
12373 <desc>
12374 Does a full invalidation of the VM display and instructs the VM
12375 to update it.
12376
12377 <result name="VBOX_E_IPRT_ERROR">
12378 Could not invalidate and update screen.
12379 </result>
12380
12381 </desc>
12382 </method>
12383
12384 <method name="resizeCompleted">
12385 <desc>
12386 Signals that a framebuffer has completed the resize operation.
12387
12388 <result name="VBOX_E_NOT_SUPPORTED">
12389 Operation only valid for external frame buffers.
12390 </result>
12391
12392 </desc>
12393 <param name="screenId" type="unsigned long" dir="in"/>
12394 </method>
12395
12396 <method name="completeVHWACommand">
12397 <desc>
12398 Signals that the Video HW Acceleration command has completed.
12399 </desc>
12400
12401 <param name="command" type="octet" mod="ptr" dir="in">
12402 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
12403 </param>
12404 </method>
12405
12406 </interface>
12407
12408 <!--
12409 // INetworkAdapter
12410 /////////////////////////////////////////////////////////////////////////
12411 -->
12412
12413 <enum
12414 name="NetworkAttachmentType"
12415 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
12416 >
12417 <desc>
12418 Network attachment type.
12419 </desc>
12420
12421 <const name="Null" value="0">
12422 <desc>Null value, also means "not attached".</desc>
12423 </const>
12424 <const name="NAT" value="1"/>
12425 <const name="Bridged" value="2"/>
12426 <const name="Internal" value="3"/>
12427 <const name="HostOnly" value="4"/>
12428 <const name="Generic" value="5"/>
12429 </enum>
12430
12431 <enum
12432 name="NetworkAdapterType"
12433 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
12434 >
12435 <desc>
12436 Network adapter type.
12437 </desc>
12438
12439 <const name="Null" value="0">
12440 <desc>Null value (never used by the API).</desc>
12441 </const>
12442 <const name="Am79C970A" value="1">
12443 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
12444 </const>
12445 <const name="Am79C973" value="2">
12446 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
12447 </const>
12448 <const name="I82540EM" value="3">
12449 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
12450 </const>
12451 <const name="I82543GC" value="4">
12452 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
12453 </const>
12454 <const name="I82545EM" value="5">
12455 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
12456 </const>
12457 <const name="Virtio" value="6">
12458 <desc>Virtio network device.</desc>
12459 </const>
12460 </enum>
12461
12462 <enum
12463 name="NetworkAdapterPromiscModePolicy"
12464 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
12465 >
12466 <desc>
12467 The promiscuous mode policy of an interface.
12468 </desc>
12469
12470 <const name="Deny" value="1">
12471 <desc>Deny promiscuous mode requests.</desc>
12472 </const>
12473 <const name="AllowNetwork" value="2">
12474 <desc>
12475 Allow promicuous mode, but restrict the scope it to the internal
12476 network so that it only applies to other VMs.
12477 </desc>
12478 </const>
12479 <const name="AllowAll" value="3">
12480 <desc>
12481 Allow promicuous mode, include unrelated traffic going over the wire
12482 and internally on the host.
12483 </desc>
12484 </const>
12485 </enum>
12486
12487 <interface
12488 name="INetworkAdapter" extends="$unknown"
12489 uuid="8b2e705c-0547-4008-b7bc-788757346092"
12490 wsmap="managed"
12491 >
12492 <desc>
12493 Represents a virtual network adapter that is attached to a virtual machine.
12494 Each virtual machine has a fixed number of network adapter slots with one
12495 instance of this attached to each of them. Call
12496 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
12497 is attached to a given slot in a given machine.
12498
12499 Each network adapter can be in one of five attachment modes, which are
12500 represented by the <link to="NetworkAttachmentType" /> enumeration;
12501 see the <link to="#attachmentType" /> attribute.
12502 </desc>
12503
12504 <attribute name="adapterType" type="NetworkAdapterType">
12505 <desc>
12506 Type of the virtual network adapter. Depending on this value,
12507 VirtualBox will provide a different virtual network hardware
12508 to the guest.
12509 </desc>
12510 </attribute>
12511
12512 <attribute name="slot" type="unsigned long" readonly="yes">
12513 <desc>
12514 Slot number this adapter is plugged into. Corresponds to
12515 the value you pass to <link to="IMachine::getNetworkAdapter"/>
12516 to obtain this instance.
12517 </desc>
12518 </attribute>
12519
12520 <attribute name="enabled" type="boolean">
12521 <desc>
12522 Flag whether the network adapter is present in the
12523 guest system. If disabled, the virtual guest hardware will
12524 not contain this network adapter. Can only be changed when
12525 the VM is not running.
12526 </desc>
12527 </attribute>
12528
12529 <attribute name="MACAddress" type="wstring">
12530 <desc>
12531 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
12532 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
12533 </desc>
12534 </attribute>
12535
12536 <attribute name="attachmentType" type="NetworkAttachmentType">
12537 <desc>
12538 Sets/Gets network attachment type of this network adapter.
12539 </desc>
12540 </attribute>
12541
12542 <attribute name="bridgedInterface" type="wstring">
12543 <desc>
12544 Name of the network interface the VM should be bridged to.
12545 </desc>
12546 </attribute>
12547
12548 <attribute name="hostOnlyInterface" type="wstring">
12549 <desc>
12550 Name of the host only network interface the VM is attached to.
12551 </desc>
12552 </attribute>
12553
12554 <attribute name="internalNetwork" type="wstring">
12555 <desc>
12556 Name of the internal network the VM is attached to.
12557 </desc>
12558 </attribute>
12559
12560 <attribute name="NATNetwork" type="wstring">
12561 <desc>
12562 Name of the NAT network the VM is attached to.
12563 </desc>
12564 </attribute>
12565
12566 <attribute name="genericDriver" type="wstring">
12567 <desc>
12568 Name of the driver to use for the "Generic" network attachment type.
12569 </desc>
12570 </attribute>
12571
12572 <attribute name="cableConnected" type="boolean">
12573 <desc>
12574 Flag whether the adapter reports the cable as connected or not.
12575 It can be used to report offline situations to a VM.
12576 </desc>
12577 </attribute>
12578
12579 <attribute name="lineSpeed" type="unsigned long">
12580 <desc>
12581 Line speed reported by custom drivers, in units of 1 kbps.
12582 </desc>
12583 </attribute>
12584
12585 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
12586 <desc>
12587 The promiscuous mode policy of the network adapter when attached to an
12588 internal network, host only network or a bridge.
12589 </desc>
12590 </attribute>
12591
12592 <attribute name="traceEnabled" type="boolean">
12593 <desc>
12594 Flag whether network traffic from/to the network card should be traced.
12595 Can only be toggled when the VM is turned off.
12596 </desc>
12597 </attribute>
12598
12599 <attribute name="traceFile" type="wstring">
12600 <desc>
12601 Filename where a network trace will be stored. If not set, VBox-pid.pcap
12602 will be used.
12603 </desc>
12604 </attribute>
12605
12606 <attribute name="natDriver" type="INATEngine" readonly="yes">
12607 <desc>
12608 Points to the NAT engine which handles the network address translation
12609 for this interface. This is active only when the interface actually uses
12610 NAT.
12611 </desc>
12612 </attribute>
12613
12614 <attribute name="bootPriority" type="unsigned long">
12615 <desc>
12616 Network boot priority of the adapter. Priority 1 is highest. If not set,
12617 the priority is considered to be at the lowest possible setting.
12618 </desc>
12619 </attribute>
12620
12621 <attribute name="bandwidthGroup" type="IBandwidthGroup">
12622 <desc>The bandwidth group this network adapter is assigned to.</desc>
12623 </attribute>
12624
12625 <!-- property methods -->
12626
12627 <method name="getProperty" const="yes">
12628 <desc>
12629 Returns the value of the network attachment property with the given name.
12630
12631 If the requested data @a key does not exist, this function will
12632 succeed and return an empty string in the @a value argument.
12633
12634 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12635 </desc>
12636 <param name="key" type="wstring" dir="in">
12637 <desc>Name of the property to get.</desc>
12638 </param>
12639 <param name="value" type="wstring" dir="return">
12640 <desc>Current property value.</desc>
12641 </param>
12642 </method>
12643
12644 <method name="setProperty">
12645 <desc>
12646 Sets the value of the network attachment property with the given name.
12647
12648 Setting the property value to @c null or an empty string is equivalent
12649 to deleting the existing value.
12650
12651 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12652 </desc>
12653 <param name="key" type="wstring" dir="in">
12654 <desc>Name of the property to set.</desc>
12655 </param>
12656 <param name="value" type="wstring" dir="in">
12657 <desc>Property value to set.</desc>
12658 </param>
12659 </method>
12660
12661 <method name="getProperties" const="yes">
12662 <desc>
12663 Returns values for a group of properties in one call.
12664
12665 The names of the properties to get are specified using the @a names
12666 argument which is a list of comma-separated property names or
12667 an empty string if all properties are to be returned.
12668 <note>Currently the value of this argument is ignored and the method
12669 always returns all existing properties.</note>
12670
12671 The method returns two arrays, the array of property names corresponding
12672 to the @a names argument and the current values of these properties.
12673 Both arrays have the same number of elements with each element at the
12674 given index in the first array corresponds to an element at the same
12675 index in the second array.
12676 </desc>
12677 <param name="names" type="wstring" dir="in">
12678 <desc>
12679 Names of properties to get.
12680 </desc>
12681 </param>
12682 <param name="returnNames" type="wstring" safearray="yes" dir="out">
12683 <desc>Names of returned properties.</desc>
12684 </param>
12685 <param name="returnValues" type="wstring" safearray="yes" dir="return">
12686 <desc>Values of returned properties.</desc>
12687 </param>
12688 </method>
12689
12690 </interface>
12691
12692
12693 <!--
12694 // ISerialPort
12695 /////////////////////////////////////////////////////////////////////////
12696 -->
12697
12698 <enum
12699 name="PortMode"
12700 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
12701 >
12702 <desc>
12703 The PortMode enumeration represents possible communication modes for
12704 the virtual serial port device.
12705 </desc>
12706
12707 <const name="Disconnected" value="0">
12708 <desc>Virtual device is not attached to any real host device.</desc>
12709 </const>
12710 <const name="HostPipe" value="1">
12711 <desc>Virtual device is attached to a host pipe.</desc>
12712 </const>
12713 <const name="HostDevice" value="2">
12714 <desc>Virtual device is attached to a host device.</desc>
12715 </const>
12716 <const name="RawFile" value="3">
12717 <desc>Virtual device is attached to a raw file.</desc>
12718 </const>
12719 </enum>
12720
12721 <interface
12722 name="ISerialPort" extends="$unknown"
12723 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
12724 wsmap="managed"
12725 >
12726
12727 <desc>
12728 The ISerialPort interface represents the virtual serial port device.
12729
12730 The virtual serial port device acts like an ordinary serial port
12731 inside the virtual machine. This device communicates to the real
12732 serial port hardware in one of two modes: host pipe or host device.
12733
12734 In host pipe mode, the #path attribute specifies the path to the pipe on
12735 the host computer that represents a serial port. The #server attribute
12736 determines if this pipe is created by the virtual machine process at
12737 machine startup or it must already exist before starting machine
12738 execution.
12739
12740 In host device mode, the #path attribute specifies the name of the
12741 serial port device on the host computer.
12742
12743 There is also a third communication mode: the disconnected mode. In this
12744 mode, the guest OS running inside the virtual machine will be able to
12745 detect the serial port, but all port write operations will be discarded
12746 and all port read operations will return no data.
12747
12748 <see><link to="IMachine::getSerialPort"/></see>
12749 </desc>
12750
12751 <attribute name="slot" type="unsigned long" readonly="yes">
12752 <desc>
12753 Slot number this serial port is plugged into. Corresponds to
12754 the value you pass to <link to="IMachine::getSerialPort"/>
12755 to obtain this instance.
12756 </desc>
12757 </attribute>
12758
12759 <attribute name="enabled" type="boolean">
12760 <desc>
12761 Flag whether the serial port is enabled. If disabled,
12762 the serial port will not be reported to the guest OS.
12763 </desc>
12764 </attribute>
12765
12766 <attribute name="IOBase" type="unsigned long">
12767 <desc>Base I/O address of the serial port.</desc>
12768 </attribute>
12769
12770 <attribute name="IRQ" type="unsigned long">
12771 <desc>IRQ number of the serial port.</desc>
12772 </attribute>
12773
12774 <attribute name="hostMode" type="PortMode">
12775 <desc>
12776 How is this port connected to the host.
12777 <note>
12778 Changing this attribute may fail if the conditions for
12779 <link to="#path"/> are not met.
12780 </note>
12781 </desc>
12782 </attribute>
12783
12784 <attribute name="server" type="boolean">
12785 <desc>
12786 Flag whether this serial port acts as a server (creates a new pipe on
12787 the host) or as a client (uses the existing pipe). This attribute is
12788 used only when <link to="#hostMode"/> is PortMode_HostPipe.
12789 </desc>
12790 </attribute>
12791
12792 <attribute name="path" type="wstring">
12793 <desc>
12794 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
12795 PortMode_HostPipe, or the host serial device name when
12796 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
12797 cases, setting a @c null or empty string as the attribute's value
12798 is an error. Otherwise, the value of this property is ignored.
12799 </desc>
12800 </attribute>
12801
12802 </interface>
12803
12804 <!--
12805 // IParallelPort
12806 /////////////////////////////////////////////////////////////////////////
12807 -->
12808
12809 <interface
12810 name="IParallelPort" extends="$unknown"
12811 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
12812 wsmap="managed"
12813 >
12814
12815 <desc>
12816 The IParallelPort interface represents the virtual parallel port device.
12817
12818 The virtual parallel port device acts like an ordinary parallel port
12819 inside the virtual machine. This device communicates to the real
12820 parallel port hardware using the name of the parallel device on the host
12821 computer specified in the #path attribute.
12822
12823 Each virtual parallel port device is assigned a base I/O address and an
12824 IRQ number that will be reported to the guest operating system and used
12825 to operate the given parallel port from within the virtual machine.
12826
12827 <see><link to="IMachine::getParallelPort"/></see>
12828 </desc>
12829
12830 <attribute name="slot" type="unsigned long" readonly="yes">
12831 <desc>
12832 Slot number this parallel port is plugged into. Corresponds to
12833 the value you pass to <link to="IMachine::getParallelPort"/>
12834 to obtain this instance.
12835 </desc>
12836 </attribute>
12837
12838 <attribute name="enabled" type="boolean">
12839 <desc>
12840 Flag whether the parallel port is enabled. If disabled,
12841 the parallel port will not be reported to the guest OS.
12842 </desc>
12843 </attribute>
12844
12845 <attribute name="IOBase" type="unsigned long">
12846 <desc>Base I/O address of the parallel port.</desc>
12847 </attribute>
12848
12849 <attribute name="IRQ" type="unsigned long">
12850 <desc>IRQ number of the parallel port.</desc>
12851 </attribute>
12852
12853 <attribute name="path" type="wstring">
12854 <desc>
12855 Host parallel device name. If this parallel port is enabled, setting a
12856 @c null or an empty string as this attribute's value will result in
12857 an error.
12858 </desc>
12859 </attribute>
12860
12861 </interface>
12862
12863
12864 <!--
12865 // IMachineDebugger
12866 /////////////////////////////////////////////////////////////////////////
12867 -->
12868
12869 <interface
12870 name="IMachineDebugger" extends="$unknown"
12871 uuid="1bfd2fa9-0d91-44d3-9515-368dcbb3eb4d"
12872 wsmap="suppress"
12873 >
12874 <method name="dumpGuestCore">
12875 <desc>
12876 Takes a core dump of the guest.
12877
12878 See include/VBox/dbgfcorefmt.h for details on the file format.
12879 </desc>
12880 <param name="filename" type="wstring" dir="in">
12881 <desc>
12882 The name of the output file. The file must not exist.
12883 </desc>
12884 </param>
12885 <param name="compression" type="wstring" dir="in">
12886 <desc>
12887 Reserved for future compression method indicator.
12888 </desc>
12889 </param>
12890 </method>
12891
12892 <method name="dumpHostProcessCore">
12893 <desc>
12894 Takes a core dump of the VM process on the host.
12895
12896 This feature is not implemented in the 4.0.0 release but it may show up
12897 in a dot release.
12898 </desc>
12899 <param name="filename" type="wstring" dir="in">
12900 <desc>
12901 The name of the output file. The file must not exist.
12902 </desc>
12903 </param>
12904 <param name="compression" type="wstring" dir="in">
12905 <desc>
12906 Reserved for future compression method indicator.
12907 </desc>
12908 </param>
12909 </method>
12910
12911 <method name="info">
12912 <desc>
12913 Interfaces with the info dumpers (DBGFInfo).
12914
12915 This feature is not implemented in the 4.0.0 release but it may show up
12916 in a dot release.
12917 </desc>
12918 <param name="name" type="wstring" dir="in">
12919 <desc>
12920 The name of the info item.
12921 </desc>
12922 </param>
12923 <param name="args" type="wstring" dir="in">
12924 <desc>
12925 Arguments to the info dumper.
12926 </desc>
12927 </param>
12928 <param name="info" type="wstring" dir="return">
12929 <desc>
12930 The into string.
12931 </desc>
12932 </param>
12933 </method>
12934
12935 <method name="injectNMI">
12936 <desc>
12937 Inject an NMI into a running VT-x/AMD-V VM.
12938 </desc>
12939 </method>
12940
12941 <method name="modifyLogGroups">
12942 <desc>
12943 Modifies the group settings of the debug logger.
12944
12945 This feature is not implemented in the 4.0.0 release but may show up
12946 in a dot release.
12947 </desc>
12948 <param name="settings" type="wstring" dir="in">
12949 <desc>The group settings string. See iprt/log.h for details.</desc>
12950 </param>
12951 </method>
12952
12953 <method name="modifyLogFlags">
12954 <desc>
12955 Modifies the debug logger flags.
12956
12957 This feature is not implemented in the 4.0.0 release but may show up
12958 in a dot release.
12959 </desc>
12960 <param name="settings" type="wstring" dir="in">
12961 <desc>The flags settings string. See iprt/log.h for details.</desc>
12962 </param>
12963 </method>
12964
12965 <method name="modifyLogDestinations">
12966 <desc>
12967 Modifies the debug logger destinations.
12968
12969 This feature is not implemented in the 4.0.0 release but may show up
12970 in a dot release.
12971 </desc>
12972 <param name="settings" type="wstring" dir="in">
12973 <desc>The destination settings string. See iprt/log.h for details.</desc>
12974 </param>
12975 </method>
12976
12977 <method name="readPhysicalMemory">
12978 <desc>
12979 Reads guest physical memory, no side effects (MMIO++).
12980
12981 This feature is not implemented in the 4.0.0 release but may show up
12982 in a dot release.
12983 </desc>
12984 <param name="address" type="long long" dir="in">
12985 <desc>The guest physical address.</desc>
12986 </param>
12987 <param name="size" type="unsigned long" dir="in">
12988 <desc>The number of bytes to read.</desc>
12989 </param>
12990 <param name="bytes" type="octet" safearray="yes" dir="return">
12991 <desc>The bytes read.</desc>
12992 </param>
12993 </method>
12994
12995 <method name="writePhysicalMemory">
12996 <desc>
12997 Writes guest physical memory, access handles (MMIO++) are ignored.
12998
12999 This feature is not implemented in the 4.0.0 release but may show up
13000 in a dot release.
13001 </desc>
13002 <param name="address" type="long long" dir="in">
13003 <desc>The guest physical address.</desc>
13004 </param>
13005 <param name="size" type="unsigned long" dir="in">
13006 <desc>The number of bytes to read.</desc>
13007 </param>
13008 <param name="bytes" type="octet" safearray="yes" dir="in">
13009 <desc>The bytes to write.</desc>
13010 </param>
13011 </method>
13012
13013 <method name="readVirtualMemory">
13014 <desc>
13015 Reads guest virtual memory, no side effects (MMIO++).
13016
13017 This feature is not implemented in the 4.0.0 release but may show up
13018 in a dot release.
13019 </desc>
13020 <param name="cpuId" type="unsigned long" dir="in">
13021 <desc>The identifier of the Virtual CPU.</desc>
13022 </param>
13023 <param name="address" type="long long" dir="in">
13024 <desc>The guest virtual address.</desc>
13025 </param>
13026 <param name="size" type="unsigned long" dir="in">
13027 <desc>The number of bytes to read.</desc>
13028 </param>
13029 <param name="bytes" type="octet" safearray="yes" dir="return">
13030 <desc>The bytes read.</desc>
13031 </param>
13032 </method>
13033
13034 <method name="writeVirtualMemory">
13035 <desc>
13036 Writes guest virtual memory, access handles (MMIO++) are ignored.
13037
13038 This feature is not implemented in the 4.0.0 release but may show up
13039 in a dot release.
13040 </desc>
13041 <param name="cpuId" type="unsigned long" dir="in">
13042 <desc>The identifier of the Virtual CPU.</desc>
13043 </param>
13044 <param name="address" type="long long" dir="in">
13045 <desc>The guest virtual address.</desc>
13046 </param>
13047 <param name="size" type="unsigned long" dir="in">
13048 <desc>The number of bytes to read.</desc>
13049 </param>
13050 <param name="bytes" type="octet" safearray="yes" dir="in">
13051 <desc>The bytes to write.</desc>
13052 </param>
13053 </method>
13054
13055 <method name="detectOS">
13056 <desc>
13057 Tries to (re-)detect the guest OS kernel.
13058
13059 This feature is not implemented in the 4.0.0 release but may show up
13060 in a dot release.
13061 </desc>
13062 <param name="os" type="wstring" dir="return">
13063 <desc>
13064 The detected OS kernel on success.
13065 </desc>
13066 </param>
13067 </method>
13068
13069 <method name="getRegister">
13070 <desc>
13071 Gets one register.
13072
13073 This feature is not implemented in the 4.0.0 release but may show up
13074 in a dot release.
13075 </desc>
13076 <param name="cpuId" type="unsigned long" dir="in">
13077 <desc>The identifier of the Virtual CPU.</desc>
13078 </param>
13079 <param name="name" type="wstring" dir="in">
13080 <desc>The register name, case is ignored.</desc>
13081 </param>
13082 <param name="value" type="wstring" dir="return">
13083 <desc>
13084 The register value. This is usually a hex value (always 0x prefixed)
13085 but other format may be used for floating point registers (TBD).
13086 </desc>
13087 </param>
13088 </method>
13089
13090 <method name="getRegisters">
13091 <desc>
13092 Gets all the registers for the given CPU.
13093
13094 This feature is not implemented in the 4.0.0 release but may show up
13095 in a dot release.
13096 </desc>
13097 <param name="cpuId" type="unsigned long" dir="in">
13098 <desc>The identifier of the Virtual CPU.</desc>
13099 </param>
13100 <param name="names" type="wstring" dir="out" safearray="yes">
13101 <desc>Array containing the lowercase register names.</desc>
13102 </param>
13103 <param name="values" type="wstring" dir="out" safearray="yes">
13104 <desc>
13105 Array paralell to the names holding the register values as if the
13106 register was returned by <link to="IMachineDebugger::getRegister"/>.
13107 </desc>
13108 </param>
13109 </method>
13110
13111 <method name="setRegister">
13112 <desc>
13113 Gets one register.
13114
13115 This feature is not implemented in the 4.0.0 release but may show up
13116 in a dot release.
13117 </desc>
13118 <param name="cpuId" type="unsigned long" dir="in">
13119 <desc>The identifier of the Virtual CPU.</desc>
13120 </param>
13121 <param name="name" type="wstring" dir="in">
13122 <desc>The register name, case is ignored.</desc>
13123 </param>
13124 <param name="value" type="wstring" dir="in">
13125 <desc>
13126 The new register value. Hexadecimal, decimal and octal formattings
13127 are supported in addition to any special formattings returned by
13128 the getters.
13129 </desc>
13130 </param>
13131 </method>
13132
13133 <method name="setRegisters">
13134 <desc>
13135 Sets zero or more registers atomically.
13136
13137 This feature is not implemented in the 4.0.0 release but may show up
13138 in a dot release.
13139 </desc>
13140 <param name="cpuId" type="unsigned long" dir="in">
13141 <desc>The identifier of the Virtual CPU.</desc>
13142 </param>
13143 <param name="names" type="wstring" dir="in" safearray="yes">
13144 <desc>Array containing the register names, case ignored.</desc>
13145 </param>
13146 <param name="values" type="wstring" dir="in" safearray="yes">
13147 <desc>
13148 Array paralell to the names holding the register values. See
13149 <link to="IMachineDebugger::setRegister"/> for formatting
13150 guidelines.
13151 </desc>
13152 </param>
13153 </method>
13154
13155 <method name="dumpGuestStack">
13156 <desc>
13157 Produce a simple stack dump using the current guest state.
13158
13159 This feature is not implemented in the 4.0.0 release but may show up
13160 in a dot release.
13161 </desc>
13162 <param name="cpuId" type="unsigned long" dir="in">
13163 <desc>The identifier of the Virtual CPU.</desc>
13164 </param>
13165 <param name="stack" type="wstring" dir="return">
13166 <desc>String containing the formatted stack dump.</desc>
13167 </param>
13168 </method>
13169
13170 <method name="resetStats">
13171 <desc>
13172 Reset VM statistics.
13173 </desc>
13174 <param name="pattern" type="wstring" dir="in">
13175 <desc>The selection pattern. A bit similar to filename globbing.</desc>
13176 </param>
13177 </method>
13178
13179 <method name="dumpStats">
13180 <desc>
13181 Dumps VM statistics.
13182 </desc>
13183 <param name="pattern" type="wstring" dir="in">
13184 <desc>The selection pattern. A bit similar to filename globbing.</desc>
13185 </param>
13186 </method>
13187
13188 <method name="getStats">
13189 <desc>
13190 Get the VM statistics in a XMLish format.
13191 </desc>
13192 <param name="pattern" type="wstring" dir="in">
13193 <desc>The selection pattern. A bit similar to filename globbing.</desc>
13194 </param>
13195 <param name="withDescriptions" type="boolean" dir="in">
13196 <desc>Whether to include the descriptions.</desc>
13197 </param>
13198 <param name="stats" type="wstring" dir="out">
13199 <desc>The XML document containing the statistics.</desc>
13200 </param>
13201 </method>
13202
13203 <attribute name="singlestep" type="boolean">
13204 <desc>Switch for enabling singlestepping.</desc>
13205 </attribute>
13206
13207 <attribute name="recompileUser" type="boolean">
13208 <desc>Switch for forcing code recompilation for user mode code.</desc>
13209 </attribute>
13210
13211 <attribute name="recompileSupervisor" type="boolean">
13212 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
13213 </attribute>
13214
13215 <attribute name="PATMEnabled" type="boolean">
13216 <desc>Switch for enabling and disabling the PATM component.</desc>
13217 </attribute>
13218
13219 <attribute name="CSAMEnabled" type="boolean">
13220 <desc>Switch for enabling and disabling the CSAM component.</desc>
13221 </attribute>
13222
13223 <attribute name="logEnabled" type="boolean">
13224 <desc>Switch for enabling and disabling the debug logger.</desc>
13225 </attribute>
13226
13227 <attribute name="logFlags" type="wstring" readonly="yes">
13228 <desc>The debug logger flags.</desc>
13229 </attribute>
13230
13231 <attribute name="logGroups" type="wstring" readonly="yes">
13232 <desc>The debug logger's group settings.</desc>
13233 </attribute>
13234
13235 <attribute name="logDestinations" type="wstring" readonly="yes">
13236 <desc>The debug logger's destination settings.</desc>
13237 </attribute>
13238
13239 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
13240 <desc>
13241 Flag indicating whether the VM is currently making use of CPU hardware
13242 virtualization extensions.
13243 </desc>
13244 </attribute>
13245
13246 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
13247 <desc>
13248 Flag indicating whether the VM is currently making use of the nested paging
13249 CPU hardware virtualization extension.
13250 </desc>
13251 </attribute>
13252
13253 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
13254 <desc>
13255 Flag indicating whether the VM is currently making use of the VPID
13256 VT-x extension.
13257 </desc>
13258 </attribute>
13259
13260 <attribute name="OSName" type="wstring" readonly="yes">
13261 <desc>
13262 Query the guest OS kernel name as detected by the DBGF.
13263
13264 This feature is not implemented in the 4.0.0 release but may show up
13265 in a dot release.
13266 </desc>
13267 </attribute>
13268
13269 <attribute name="OSVersion" type="wstring" readonly="yes">
13270 <desc>
13271 Query the guest OS kernel version string as detected by the DBGF.
13272
13273 This feature is not implemented in the 4.0.0 release but may show up
13274 in a dot release.
13275 </desc>
13276 </attribute>
13277
13278 <attribute name="PAEEnabled" type="boolean" readonly="yes">
13279 <desc>
13280 Flag indicating whether the VM is currently making use of the Physical
13281 Address Extension CPU feature.
13282 </desc>
13283 </attribute>
13284
13285 <attribute name="virtualTimeRate" type="unsigned long">
13286 <desc>
13287 The rate at which the virtual time runs expressed as a percentage.
13288 The accepted range is 2% to 20000%.
13289 </desc>
13290 </attribute>
13291
13292 <attribute name="VM" type="long long" readonly="yes">
13293 <desc>
13294 Gets the VM handle. This is only for internal use while
13295 we carve the details of this interface.
13296 </desc>
13297 </attribute>
13298
13299 </interface>
13300
13301 <!--
13302 // IUSBController
13303 /////////////////////////////////////////////////////////////////////////
13304 -->
13305
13306 <interface
13307 name="IUSBController" extends="$unknown"
13308 uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
13309 wsmap="managed"
13310 >
13311 <attribute name="enabled" type="boolean">
13312 <desc>
13313 Flag whether the USB controller is present in the
13314 guest system. If disabled, the virtual guest hardware will
13315 not contain any USB controller. Can only be changed when
13316 the VM is powered off.
13317 </desc>
13318 </attribute>
13319
13320 <attribute name="enabledEhci" type="boolean">
13321 <desc>
13322 Flag whether the USB EHCI controller is present in the
13323 guest system. If disabled, the virtual guest hardware will
13324 not contain a USB EHCI controller. Can only be changed when
13325 the VM is powered off.
13326 </desc>
13327 </attribute>
13328
13329 <attribute name="proxyAvailable" type="boolean" readonly="yes">
13330 <desc>
13331 Flag whether there is an USB proxy available.
13332 </desc>
13333 </attribute>
13334
13335 <attribute name="USBStandard" type="unsigned short" readonly="yes">
13336 <desc>
13337 USB standard version which the controller implements.
13338 This is a BCD which means that the major version is in the
13339 high byte and minor version is in the low byte.
13340 </desc>
13341 </attribute>
13342
13343 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
13344 <desc>
13345 List of USB device filters associated with the machine.
13346
13347 If the machine is currently running, these filters are activated
13348 every time a new (supported) USB device is attached to the host
13349 computer that was not ignored by global filters
13350 (<link to="IHost::USBDeviceFilters"/>).
13351
13352 These filters are also activated when the machine is powered up.
13353 They are run against a list of all currently available USB
13354 devices (in states
13355 <link to="USBDeviceState_Available"/>,
13356 <link to="USBDeviceState_Busy"/>,
13357 <link to="USBDeviceState_Held"/>) that were not previously
13358 ignored by global filters.
13359
13360 If at least one filter matches the USB device in question, this
13361 device is automatically captured (attached to) the virtual USB
13362 controller of this machine.
13363
13364 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
13365 </desc>
13366 </attribute>
13367
13368 <method name="createDeviceFilter">
13369 <desc>
13370 Creates a new USB device filter. All attributes except
13371 the filter name are set to empty (any match),
13372 <i>active</i> is @c false (the filter is not active).
13373
13374 The created filter can then be added to the list of filters using
13375 <link to="#insertDeviceFilter"/>.
13376
13377 <result name="VBOX_E_INVALID_VM_STATE">
13378 The virtual machine is not mutable.
13379 </result>
13380
13381 <see><link to="#deviceFilters"/></see>
13382 </desc>
13383 <param name="name" type="wstring" dir="in">
13384 <desc>
13385 Filter name. See <link to="IUSBDeviceFilter::name"/>
13386 for more info.
13387 </desc>
13388 </param>
13389 <param name="filter" type="IUSBDeviceFilter" dir="return">
13390 <desc>Created filter object.</desc>
13391 </param>
13392 </method>
13393
13394 <method name="insertDeviceFilter">
13395 <desc>
13396 Inserts the given USB device to the specified position
13397 in the list of filters.
13398
13399 Positions are numbered starting from <tt>0</tt>. If the specified
13400 position is equal to or greater than the number of elements in
13401 the list, the filter is added to the end of the collection.
13402
13403 <note>
13404 Duplicates are not allowed, so an attempt to insert a
13405 filter that is already in the collection, will return an
13406 error.
13407 </note>
13408
13409 <result name="VBOX_E_INVALID_VM_STATE">
13410 Virtual machine is not mutable.
13411 </result>
13412 <result name="E_INVALIDARG">
13413 USB device filter not created within this VirtualBox instance.
13414 </result>
13415 <result name="VBOX_E_INVALID_OBJECT_STATE">
13416 USB device filter already in list.
13417 </result>
13418
13419 <see><link to="#deviceFilters"/></see>
13420 </desc>
13421 <param name="position" type="unsigned long" dir="in">
13422 <desc>Position to insert the filter to.</desc>
13423 </param>
13424 <param name="filter" type="IUSBDeviceFilter" dir="in">
13425 <desc>USB device filter to insert.</desc>
13426 </param>
13427 </method>
13428
13429 <method name="removeDeviceFilter">
13430 <desc>
13431 Removes a USB device filter from the specified position in the
13432 list of filters.
13433
13434 Positions are numbered starting from <tt>0</tt>. Specifying a
13435 position equal to or greater than the number of elements in
13436 the list will produce an error.
13437
13438 <see><link to="#deviceFilters"/></see>
13439
13440 <result name="VBOX_E_INVALID_VM_STATE">
13441 Virtual machine is not mutable.
13442 </result>
13443 <result name="E_INVALIDARG">
13444 USB device filter list empty or invalid @a position.
13445 </result>
13446
13447 </desc>
13448 <param name="position" type="unsigned long" dir="in">
13449 <desc>Position to remove the filter from.</desc>
13450 </param>
13451 <param name="filter" type="IUSBDeviceFilter" dir="return">
13452 <desc>Removed USB device filter.</desc>
13453 </param>
13454 </method>
13455
13456 </interface>
13457
13458
13459 <!--
13460 // IUSBDevice
13461 /////////////////////////////////////////////////////////////////////////
13462 -->
13463
13464 <interface
13465 name="IUSBDevice" extends="$unknown"
13466 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
13467 wsmap="managed"
13468 >
13469 <desc>
13470 The IUSBDevice interface represents a virtual USB device attached to the
13471 virtual machine.
13472
13473 A collection of objects implementing this interface is stored in the
13474 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
13475 attached to a running virtual machine's USB controller.
13476 </desc>
13477
13478 <attribute name="id" type="uuid" mod="string" readonly="yes">
13479 <desc>
13480 Unique USB device ID. This ID is built from #vendorId,
13481 #productId, #revision and #serialNumber.
13482 </desc>
13483 </attribute>
13484
13485 <attribute name="vendorId" type="unsigned short" readonly="yes">
13486 <desc>Vendor ID.</desc>
13487 </attribute>
13488
13489 <attribute name="productId" type="unsigned short" readonly="yes">
13490 <desc>Product ID.</desc>
13491 </attribute>
13492
13493 <attribute name="revision" type="unsigned short" readonly="yes">
13494 <desc>
13495 Product revision number. This is a packed BCD represented as
13496 unsigned short. The high byte is the integer part and the low
13497 byte is the decimal.
13498 </desc>
13499 </attribute>
13500
13501 <attribute name="manufacturer" type="wstring" readonly="yes">
13502 <desc>Manufacturer string.</desc>
13503 </attribute>
13504
13505 <attribute name="product" type="wstring" readonly="yes">
13506 <desc>Product string.</desc>
13507 </attribute>
13508
13509 <attribute name="serialNumber" type="wstring" readonly="yes">
13510 <desc>Serial number string.</desc>
13511 </attribute>
13512
13513 <attribute name="address" type="wstring" readonly="yes">
13514 <desc>Host specific address of the device.</desc>
13515 </attribute>
13516
13517 <attribute name="port" type="unsigned short" readonly="yes">
13518 <desc>
13519 Host USB port number the device is physically
13520 connected to.
13521 </desc>
13522 </attribute>
13523
13524 <attribute name="version" type="unsigned short" readonly="yes">
13525 <desc>
13526 The major USB version of the device - 1 or 2.
13527 </desc>
13528 </attribute>
13529
13530 <attribute name="portVersion" type="unsigned short" readonly="yes">
13531 <desc>
13532 The major USB version of the host USB port the device is
13533 physically connected to - 1 or 2. For devices not connected to
13534 anything this will have the same value as the version attribute.
13535 </desc>
13536 </attribute>
13537
13538 <attribute name="remote" type="boolean" readonly="yes">
13539 <desc>
13540 Whether the device is physically connected to a remote VRDE
13541 client or to a local host machine.
13542 </desc>
13543 </attribute>
13544
13545 </interface>
13546
13547
13548 <!--
13549 // IUSBDeviceFilter
13550 /////////////////////////////////////////////////////////////////////////
13551 -->
13552
13553 <interface
13554 name="IUSBDeviceFilter" extends="$unknown"
13555 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
13556 wsmap="managed"
13557 >
13558 <desc>
13559 The IUSBDeviceFilter interface represents an USB device filter used
13560 to perform actions on a group of USB devices.
13561
13562 This type of filters is used by running virtual machines to
13563 automatically capture selected USB devices once they are physically
13564 attached to the host computer.
13565
13566 A USB device is matched to the given device filter if and only if all
13567 attributes of the device match the corresponding attributes of the
13568 filter (that is, attributes are joined together using the logical AND
13569 operation). On the other hand, all together, filters in the list of
13570 filters carry the semantics of the logical OR operation. So if it is
13571 desirable to create a match like "this vendor id OR this product id",
13572 one needs to create two filters and specify "any match" (see below)
13573 for unused attributes.
13574
13575 All filter attributes used for matching are strings. Each string
13576 is an expression representing a set of values of the corresponding
13577 device attribute, that will match the given filter. Currently, the
13578 following filtering expressions are supported:
13579
13580 <ul>
13581 <li><i>Interval filters</i>. Used to specify valid intervals for
13582 integer device attributes (Vendor ID, Product ID and Revision).
13583 The format of the string is:
13584
13585 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
13586
13587 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
13588 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
13589 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
13590 is omitted before a dash (<tt>-</tt>), the minimum possible integer
13591 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
13592 possible integer is assumed.
13593 </li>
13594 <li><i>Boolean filters</i>. Used to specify acceptable values for
13595 boolean device attributes. The format of the string is:
13596
13597 <tt>true|false|yes|no|0|1</tt>
13598
13599 </li>
13600 <li><i>Exact match</i>. Used to specify a single value for the given
13601 device attribute. Any string that doesn't start with <tt>int:</tt>
13602 represents the exact match. String device attributes are compared to
13603 this string including case of symbols. Integer attributes are first
13604 converted to a string (see individual filter attributes) and then
13605 compared ignoring case.
13606
13607 </li>
13608 <li><i>Any match</i>. Any value of the corresponding device attribute
13609 will match the given filter. An empty or @c null string is
13610 used to construct this type of filtering expressions.
13611
13612 </li>
13613 </ul>
13614
13615 <note>
13616 On the Windows host platform, interval filters are not currently
13617 available. Also all string filter attributes
13618 (<link to="#manufacturer"/>, <link to="#product"/>,
13619 <link to="#serialNumber"/>) are ignored, so they behave as
13620 <i>any match</i> no matter what string expression is specified.
13621 </note>
13622
13623 <see><link to="IUSBController::deviceFilters"/>,
13624 <link to="IHostUSBDeviceFilter"/></see>
13625 </desc>
13626
13627 <attribute name="name" type="wstring">
13628 <desc>
13629 Visible name for this filter.
13630 This name is used to visually distinguish one filter from another,
13631 so it can neither be @c null nor an empty string.
13632 </desc>
13633 </attribute>
13634
13635 <attribute name="active" type="boolean">
13636 <desc>Whether this filter active or has been temporarily disabled.</desc>
13637 </attribute>
13638
13639 <attribute name="vendorId" type="wstring">
13640 <desc>
13641 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
13642 The string representation for the <i>exact matching</i>
13643 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
13644 (including leading zeroes).
13645 </desc>
13646 </attribute>
13647
13648 <attribute name="productId" type="wstring">
13649 <desc>
13650 <link to="IUSBDevice::productId">Product ID</link> filter.
13651 The string representation for the <i>exact matching</i>
13652 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
13653 (including leading zeroes).
13654 </desc>
13655 </attribute>
13656
13657 <attribute name="revision" type="wstring">
13658 <desc>
13659 <link to="IUSBDevice::productId">Product revision number</link>
13660 filter. The string representation for the <i>exact matching</i>
13661 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
13662 of the integer part of the revision, and <tt>F</tt> is the
13663 decimal digit of its fractional part (including leading and
13664 trailing zeros).
13665 Note that for interval filters, it's best to use the hexadecimal
13666 form, because the revision is stored as a 16 bit packed BCD value;
13667 so the expression <tt>int:0x0100-0x0199</tt> will match any
13668 revision from <tt>1.0</tt> to <tt>1.99</tt>.
13669 </desc>
13670 </attribute>
13671
13672 <attribute name="manufacturer" type="wstring">
13673 <desc>
13674 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
13675 </desc>
13676 </attribute>
13677
13678 <attribute name="product" type="wstring">
13679 <desc>
13680 <link to="IUSBDevice::product">Product</link> filter.
13681 </desc>
13682 </attribute>
13683
13684 <attribute name="serialNumber" type="wstring">
13685 <desc>
13686 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
13687 </desc>
13688 </attribute>
13689
13690 <attribute name="port" type="wstring">
13691 <desc>
13692 <link to="IUSBDevice::port">Host USB port</link> filter.
13693 </desc>
13694 </attribute>
13695
13696 <attribute name="remote" type="wstring">
13697 <desc>
13698 <link to="IUSBDevice::remote">Remote state</link> filter.
13699 <note>
13700 This filter makes sense only for machine USB filters,
13701 i.e. it is ignored by IHostUSBDeviceFilter objects.
13702 </note>
13703 </desc>
13704 </attribute>
13705
13706 <attribute name="maskedInterfaces" type="unsigned long">
13707 <desc>
13708 This is an advanced option for hiding one or more USB interfaces
13709 from the guest. The value is a bit mask where the bits that are set
13710 means the corresponding USB interface should be hidden, masked off
13711 if you like.
13712 This feature only works on Linux hosts.
13713 </desc>
13714 </attribute>
13715
13716 </interface>
13717
13718
13719 <!--
13720 // IHostUSBDevice
13721 /////////////////////////////////////////////////////////////////////////
13722 -->
13723
13724 <enum
13725 name="USBDeviceState"
13726 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
13727 >
13728 <desc>
13729 USB device state. This enumeration represents all possible states
13730 of the USB device physically attached to the host computer regarding
13731 its state on the host computer and availability to guest computers
13732 (all currently running virtual machines).
13733
13734 Once a supported USB device is attached to the host, global USB
13735 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
13736 either ignore the device, or put it to USBDeviceState_Held state, or do
13737 nothing. Unless the device is ignored by global filters, filters of all
13738 currently running guests (<link to="IUSBController::deviceFilters"/>) are
13739 activated that can put it to USBDeviceState_Captured state.
13740
13741 If the device was ignored by global filters, or didn't match
13742 any filters at all (including guest ones), it is handled by the host
13743 in a normal way. In this case, the device state is determined by
13744 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
13745 or USBDeviceState_Available, depending on the current device usage.
13746
13747 Besides auto-capturing based on filters, the device can be manually
13748 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
13749 state is USBDeviceState_Busy, USBDeviceState_Available or
13750 USBDeviceState_Held.
13751
13752 <note>
13753 Due to differences in USB stack implementations in Linux and Win32,
13754 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
13755 only to the Linux version of the product. This also means that (<link
13756 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
13757 device state is USBDeviceState_Held.
13758 </note>
13759
13760 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
13761 </desc>
13762
13763 <const name="NotSupported" value="0">
13764 <desc>
13765 Not supported by the VirtualBox server, not available to guests.
13766 </desc>
13767 </const>
13768 <const name="Unavailable" value="1">
13769 <desc>
13770 Being used by the host computer exclusively,
13771 not available to guests.
13772 </desc>
13773 </const>
13774 <const name="Busy" value="2">
13775 <desc>
13776 Being used by the host computer, potentially available to guests.
13777 </desc>
13778 </const>
13779 <const name="Available" value="3">
13780 <desc>
13781 Not used by the host computer, available to guests (the host computer
13782 can also start using the device at any time).
13783 </desc>
13784 </const>
13785 <const name="Held" value="4">
13786 <desc>
13787 Held by the VirtualBox server (ignored by the host computer),
13788 available to guests.
13789 </desc>
13790 </const>
13791 <const name="Captured" value="5">
13792 <desc>
13793 Captured by one of the guest computers, not available
13794 to anybody else.
13795 </desc>
13796 </const>
13797 </enum>
13798
13799 <interface
13800 name="IHostUSBDevice" extends="IUSBDevice"
13801 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
13802 wsmap="managed"
13803 >
13804 <desc>
13805 The IHostUSBDevice interface represents a physical USB device attached
13806 to the host computer.
13807
13808 Besides properties inherited from IUSBDevice, this interface adds the
13809 <link to="#state"/> property that holds the current state of the USB
13810 device.
13811
13812 <see><link to="IHost::USBDevices"/>,
13813 <link to="IHost::USBDeviceFilters"/></see>
13814 </desc>
13815
13816 <attribute name="state" type="USBDeviceState" readonly="yes">
13817 <desc>
13818 Current state of the device.
13819 </desc>
13820 </attribute>
13821
13822 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
13823
13824 </interface>
13825
13826
13827 <!--
13828 // IHostUSBDeviceFilter
13829 /////////////////////////////////////////////////////////////////////////
13830 -->
13831
13832 <enum
13833 name="USBDeviceFilterAction"
13834 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
13835 >
13836 <desc>
13837 Actions for host USB device filters.
13838 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
13839 </desc>
13840
13841 <const name="Null" value="0">
13842 <desc>Null value (never used by the API).</desc>
13843 </const>
13844 <const name="Ignore" value="1">
13845 <desc>Ignore the matched USB device.</desc>
13846 </const>
13847 <const name="Hold" value="2">
13848 <desc>Hold the matched USB device.</desc>
13849 </const>
13850 </enum>
13851
13852 <interface
13853 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
13854 uuid="4cc70246-d74a-400f-8222-3900489c0374"
13855 wsmap="managed"
13856 >
13857 <desc>
13858 The IHostUSBDeviceFilter interface represents a global filter for a
13859 physical USB device used by the host computer. Used indirectly in
13860 <link to="IHost::USBDeviceFilters"/>.
13861
13862 Using filters of this type, the host computer determines the initial
13863 state of the USB device after it is physically attached to the
13864 host's USB controller.
13865
13866 <note>
13867 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
13868 filters, because it makes sense only for
13869 <link to="IUSBController::deviceFilters">machine USB filters</link>.
13870 </note>
13871
13872 <see><link to="IHost::USBDeviceFilters"/></see>
13873 </desc>
13874
13875 <attribute name="action" type="USBDeviceFilterAction">
13876 <desc>
13877 Action performed by the host when an attached USB device
13878 matches this filter.
13879 </desc>
13880 </attribute>
13881
13882 </interface>
13883
13884 <!--
13885 // IAudioAdapter
13886 /////////////////////////////////////////////////////////////////////////
13887 -->
13888
13889 <enum
13890 name="AudioDriverType"
13891 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
13892 >
13893 <desc>
13894 Host audio driver type.
13895 </desc>
13896
13897 <const name="Null" value="0">
13898 <desc>Null value, also means "dummy audio driver".</desc>
13899 </const>
13900 <const name="WinMM" value="1">
13901 <desc>Windows multimedia (Windows hosts only).</desc>
13902 </const>
13903 <const name="OSS" value="2">
13904 <desc>Open Sound System (Linux hosts only).</desc>
13905 </const>
13906 <const name="ALSA" value="3">
13907 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
13908 </const>
13909 <const name="DirectSound" value="4">
13910 <desc>DirectSound (Windows hosts only).</desc>
13911 </const>
13912 <const name="CoreAudio" value="5">
13913 <desc>CoreAudio (Mac hosts only).</desc>
13914 </const>
13915 <const name="MMPM" value="6">
13916 <desc>Reserved for historical reasons.</desc>
13917 </const>
13918 <const name="Pulse" value="7">
13919 <desc>PulseAudio (Linux hosts only).</desc>
13920 </const>
13921 <const name="SolAudio" value="8">
13922 <desc>Solaris audio (Solaris hosts only).</desc>
13923 </const>
13924 </enum>
13925
13926 <enum
13927 name="AudioControllerType"
13928 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
13929 >
13930 <desc>
13931 Virtual audio controller type.
13932 </desc>
13933
13934 <const name="AC97" value="0"/>
13935 <const name="SB16" value="1"/>
13936 <const name="HDA" value="2"/>
13937 </enum>
13938
13939 <interface
13940 name="IAudioAdapter" extends="$unknown"
13941 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
13942 wsmap="managed"
13943 >
13944 <desc>
13945 The IAudioAdapter interface represents the virtual audio adapter of
13946 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
13947 </desc>
13948 <attribute name="enabled" type="boolean">
13949 <desc>
13950 Flag whether the audio adapter is present in the
13951 guest system. If disabled, the virtual guest hardware will
13952 not contain any audio adapter. Can only be changed when
13953 the VM is not running.
13954 </desc>
13955 </attribute>
13956 <attribute name="audioController" type="AudioControllerType">
13957 <desc>
13958 The audio hardware we emulate.
13959 </desc>
13960 </attribute>
13961 <attribute name="audioDriver" type="AudioDriverType">
13962 <desc>
13963 Audio driver the adapter is connected to. This setting
13964 can only be changed when the VM is not running.
13965 </desc>
13966 </attribute>
13967 </interface>
13968
13969 <enum
13970 name="AuthType"
13971 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
13972 >
13973 <desc>
13974 VirtualBox authentication type.
13975 </desc>
13976
13977 <const name="Null" value="0">
13978 <desc>Null value, also means "no authentication".</desc>
13979 </const>
13980 <const name="External" value="1"/>
13981 <const name="Guest" value="2"/>
13982 </enum>
13983
13984 <!--
13985 // IVRDEServer
13986 /////////////////////////////////////////////////////////////////////////
13987 -->
13988
13989 <interface
13990 name="IVRDEServer" extends="$unknown"
13991 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
13992 wsmap="managed"
13993 >
13994 <attribute name="enabled" type="boolean">
13995 <desc>VRDE server status.</desc>
13996 </attribute>
13997
13998 <attribute name="authType" type="AuthType">
13999 <desc>VRDE authentication method.</desc>
14000 </attribute>
14001
14002 <attribute name="authTimeout" type="unsigned long">
14003 <desc>Timeout for guest authentication. Milliseconds.</desc>
14004 </attribute>
14005
14006 <attribute name="allowMultiConnection" type="boolean">
14007 <desc>
14008 Flag whether multiple simultaneous connections to the VM are permitted.
14009 Note that this will be replaced by a more powerful mechanism in the future.
14010 </desc>
14011 </attribute>
14012
14013 <attribute name="reuseSingleConnection" type="boolean">
14014 <desc>
14015 Flag whether the existing connection must be dropped and a new connection
14016 must be established by the VRDE server, when a new client connects in single
14017 connection mode.
14018 </desc>
14019 </attribute>
14020
14021 <attribute name="VRDEExtPack" type="wstring">
14022 <desc>
14023 The name of Extension Pack providing VRDE for this VM. Overrides
14024 <link to="ISystemProperties::defaultVRDEExtPack"/>.
14025 </desc>
14026 </attribute>
14027
14028 <attribute name="authLibrary" type="wstring">
14029 <desc>
14030 Library used for authentication of RDP clients by this VM. Overrides
14031 <link to="ISystemProperties::VRDEAuthLibrary"/>.
14032 </desc>
14033 </attribute>
14034
14035 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
14036 <desc>
14037 Array of names of properties, which are supported by this VRDE server.
14038 </desc>
14039 </attribute>
14040
14041 <method name="setVRDEProperty">
14042 <desc>
14043 Sets a VRDE specific property string.
14044
14045 If you pass @c null or empty string as a key @a value, the given @a key
14046 will be deleted.
14047
14048 </desc>
14049 <param name="key" type="wstring" dir="in">
14050 <desc>Name of the key to set.</desc>
14051 </param>
14052 <param name="value" type="wstring" dir="in">
14053 <desc>Value to assign to the key.</desc>
14054 </param>
14055 </method>
14056
14057 <method name="getVRDEProperty" const="yes">
14058 <desc>
14059 Returns a VRDE specific property string.
14060
14061 If the requested data @a key does not exist, this function will
14062 succeed and return an empty string in the @a value argument.
14063
14064 </desc>
14065 <param name="key" type="wstring" dir="in">
14066 <desc>Name of the key to get.</desc>
14067 </param>
14068 <param name="value" type="wstring" dir="return">
14069 <desc>Value of the requested key.</desc>
14070 </param>
14071 </method>
14072
14073 </interface>
14074
14075
14076 <!--
14077 // ISharedFolder
14078 /////////////////////////////////////////////////////////////////////////
14079 -->
14080
14081 <interface
14082 name="ISharedFolder" extends="$unknown"
14083 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
14084 wsmap="struct"
14085 >
14086 <desc>
14087 The ISharedFolder interface represents a folder in the host computer's
14088 file system accessible from the guest OS running inside a virtual
14089 machine using an associated logical name.
14090
14091 There are three types of shared folders:
14092 <ul>
14093 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
14094 folders available to all virtual machines.</li>
14095 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
14096 VM-specific shared folders available to the given virtual machine at
14097 startup.</li>
14098 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
14099 VM-specific shared folders created in the session context (for
14100 example, when the virtual machine is running) and automatically
14101 discarded when the session is closed (the VM is powered off).</li>
14102 </ul>
14103
14104 Logical names of shared folders must be unique within the given scope
14105 (global, permanent or transient). However, they do not need to be unique
14106 across scopes. In this case, the definition of the shared folder in a
14107 more specific scope takes precedence over definitions in all other
14108 scopes. The order of precedence is (more specific to more general):
14109 <ol>
14110 <li>Transient definitions</li>
14111 <li>Permanent definitions</li>
14112 <li>Global definitions</li>
14113 </ol>
14114
14115 For example, if MyMachine has a shared folder named
14116 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
14117 transient shared folder named <tt>C_DRIVE</tt> (that points
14118 to <tt>C:\\\\WINDOWS</tt>) will change the definition
14119 of <tt>C_DRIVE</tt> in the guest OS so
14120 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
14121 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
14122 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
14123 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
14124 to <tt>C:\\</tt> if it still exists.
14125
14126 Note that permanent and transient shared folders of different machines
14127 are in different name spaces, so they don't overlap and don't need to
14128 have unique logical names.
14129
14130 <note>
14131 Global shared folders are not implemented in the current version of the
14132 product.
14133 </note>
14134 </desc>
14135
14136 <attribute name="name" type="wstring" readonly="yes">
14137 <desc>Logical name of the shared folder.</desc>
14138 </attribute>
14139
14140 <attribute name="hostPath" type="wstring" readonly="yes">
14141 <desc>Full path to the shared folder in the host file system.</desc>
14142 </attribute>
14143
14144 <attribute name="accessible" type="boolean" readonly="yes">
14145 <desc>
14146 Whether the folder defined by the host path is currently
14147 accessible or not.
14148 For example, the folder can be inaccessible if it is placed
14149 on the network share that is not available by the time
14150 this property is read.
14151 </desc>
14152 </attribute>
14153
14154 <attribute name="writable" type="boolean" readonly="yes">
14155 <desc>
14156 Whether the folder defined by the host path is writable or
14157 not.
14158 </desc>
14159 </attribute>
14160
14161 <attribute name="autoMount" type="boolean" readonly="yes">
14162 <desc>
14163 Whether the folder gets automatically mounted by the guest or not.
14164 </desc>
14165 </attribute>
14166
14167 <attribute name="lastAccessError" type="wstring" readonly="yes">
14168 <desc>
14169 Text message that represents the result of the last accessibility
14170 check.
14171
14172 Accessibility checks are performed each time the <link to="#accessible"/>
14173 attribute is read. An empty string is returned if the last
14174 accessibility check was successful. A non-empty string indicates a
14175 failure and should normally describe a reason of the failure (for
14176 example, a file read error).
14177 </desc>
14178 </attribute>
14179
14180 </interface>
14181
14182 <!--
14183 // ISession
14184 /////////////////////////////////////////////////////////////////////////
14185 -->
14186
14187 <interface
14188 name="IInternalSessionControl" extends="$unknown"
14189 uuid="0bdda5da-67c8-47be-a610-b83a7fa3e8b6"
14190 internal="yes"
14191 wsmap="suppress"
14192 >
14193 <method name="getPID">
14194 <desc>PID of the process that has created this Session object.
14195 </desc>
14196 <param name="pid" type="unsigned long" dir="return"/>
14197 </method>
14198
14199 <method name="getRemoteConsole">
14200 <desc>
14201 Returns the console object suitable for remote control.
14202
14203 <result name="VBOX_E_INVALID_VM_STATE">
14204 Session state prevents operation.
14205 </result>
14206 <result name="VBOX_E_INVALID_OBJECT_STATE">
14207 Session type prevents operation.
14208 </result>
14209
14210 </desc>
14211 <param name="console" type="IConsole" dir="return"/>
14212 </method>
14213
14214 <method name="assignMachine">
14215 <desc>
14216 Assigns the machine object associated with this direct-type
14217 session or informs the session that it will be a remote one
14218 (if @a machine == @c null).
14219
14220 <result name="VBOX_E_INVALID_VM_STATE">
14221 Session state prevents operation.
14222 </result>
14223 <result name="VBOX_E_INVALID_OBJECT_STATE">
14224 Session type prevents operation.
14225 </result>
14226
14227 </desc>
14228 <param name="machine" type="IMachine" dir="in"/>
14229 </method>
14230
14231 <method name="assignRemoteMachine">
14232 <desc>
14233 Assigns the machine and the (remote) console object associated with
14234 this remote-type session.
14235
14236 <result name="VBOX_E_INVALID_VM_STATE">
14237 Session state prevents operation.
14238 </result>
14239
14240 </desc>
14241 <param name="machine" type="IMachine" dir="in"/>
14242 <param name="console" type="IConsole" dir="in"/>
14243 </method>
14244
14245 <method name="updateMachineState">
14246 <desc>
14247 Updates the machine state in the VM process.
14248 Must be called only in certain cases
14249 (see the method implementation).
14250
14251 <result name="VBOX_E_INVALID_VM_STATE">
14252 Session state prevents operation.
14253 </result>
14254 <result name="VBOX_E_INVALID_OBJECT_STATE">
14255 Session type prevents operation.
14256 </result>
14257
14258 </desc>
14259 <param name="aMachineState" type="MachineState" dir="in"/>
14260 </method>
14261
14262 <method name="uninitialize">
14263 <desc>
14264 Uninitializes (closes) this session. Used by VirtualBox to close
14265 the corresponding remote session when the direct session dies
14266 or gets closed.
14267
14268 <result name="VBOX_E_INVALID_VM_STATE">
14269 Session state prevents operation.
14270 </result>
14271
14272 </desc>
14273 </method>
14274
14275 <method name="onNetworkAdapterChange">
14276 <desc>
14277 Triggered when settings of a network adapter of the
14278 associated virtual machine have changed.
14279
14280 <result name="VBOX_E_INVALID_VM_STATE">
14281 Session state prevents operation.
14282 </result>
14283 <result name="VBOX_E_INVALID_OBJECT_STATE">
14284 Session type prevents operation.
14285 </result>
14286
14287 </desc>
14288 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
14289 <param name="changeAdapter" type="boolean" dir="in"/>
14290 </method>
14291
14292 <method name="onSerialPortChange">
14293 <desc>
14294 Triggered when settings of a serial port of the
14295 associated virtual machine have changed.
14296
14297 <result name="VBOX_E_INVALID_VM_STATE">
14298 Session state prevents operation.
14299 </result>
14300 <result name="VBOX_E_INVALID_OBJECT_STATE">
14301 Session type prevents operation.
14302 </result>
14303
14304 </desc>
14305 <param name="serialPort" type="ISerialPort" dir="in"/>
14306 </method>
14307
14308 <method name="onParallelPortChange">
14309 <desc>
14310 Triggered when settings of a parallel port of the
14311 associated virtual machine have changed.
14312
14313 <result name="VBOX_E_INVALID_VM_STATE">
14314 Session state prevents operation.
14315 </result>
14316 <result name="VBOX_E_INVALID_OBJECT_STATE">
14317 Session type prevents operation.
14318 </result>
14319
14320 </desc>
14321 <param name="parallelPort" type="IParallelPort" dir="in"/>
14322 </method>
14323
14324 <method name="onStorageControllerChange">
14325 <desc>
14326 Triggered when settings of a storage controller of the
14327 associated virtual machine have changed.
14328
14329 <result name="VBOX_E_INVALID_VM_STATE">
14330 Session state prevents operation.
14331 </result>
14332 <result name="VBOX_E_INVALID_OBJECT_STATE">
14333 Session type prevents operation.
14334 </result>
14335
14336 </desc>
14337 </method>
14338
14339 <method name="onMediumChange">
14340 <desc>
14341 Triggered when attached media of the
14342 associated virtual machine have changed.
14343
14344 <result name="VBOX_E_INVALID_VM_STATE">
14345 Session state prevents operation.
14346 </result>
14347 <result name="VBOX_E_INVALID_OBJECT_STATE">
14348 Session type prevents operation.
14349 </result>
14350
14351 </desc>
14352
14353 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
14354 <desc>The medium attachment which changed.</desc>
14355 </param>
14356 <param name="force" type="boolean" dir="in">
14357 <desc>If the medium change was forced.</desc>
14358 </param>
14359 </method>
14360
14361 <method name="onStorageDeviceChange">
14362 <desc>
14363 Triggered when attached storage devices of the
14364 associated virtual machine have changed.
14365
14366 <result name="VBOX_E_INVALID_VM_STATE">
14367 Session state prevents operation.
14368 </result>
14369 <result name="VBOX_E_INVALID_OBJECT_STATE">
14370 Session type prevents operation.
14371 </result>
14372
14373 </desc>
14374
14375 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
14376 <desc>The medium attachment which changed.</desc>
14377 </param>
14378 <param name="remove" type="boolean" dir="in">
14379 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
14380 </param>
14381 </method>
14382
14383 <method name="onCPUChange">
14384 <desc>
14385 Notification when a CPU changes.
14386 </desc>
14387 <param name="cpu" type="unsigned long" dir="in">
14388 <desc>The CPU which changed</desc>
14389 </param>
14390 <param name="add" type="boolean" dir="in">
14391 <desc>Flag whether the CPU was added or removed</desc>
14392 </param>
14393 </method>
14394
14395 <method name="onCPUExecutionCapChange">
14396 <desc>
14397 Notification when the CPU execution cap changes.
14398 </desc>
14399 <param name="executionCap" type="unsigned long" dir="in">
14400 <desc>The new CPU execution cap value. (1-100)</desc>
14401 </param>
14402 </method>
14403
14404 <method name="onVRDEServerChange">
14405 <desc>
14406 Triggered when settings of the VRDE server object of the
14407 associated virtual machine have changed.
14408
14409 <result name="VBOX_E_INVALID_VM_STATE">
14410 Session state prevents operation.
14411 </result>
14412 <result name="VBOX_E_INVALID_OBJECT_STATE">
14413 Session type prevents operation.
14414 </result>
14415
14416 </desc>
14417 <param name="restart" type="boolean" dir="in">
14418 <desc>Flag whether the server must be restarted</desc>
14419 </param>
14420 </method>
14421
14422 <method name="onUSBControllerChange">
14423 <desc>
14424 Triggered when settings of the USB controller object of the
14425 associated virtual machine have changed.
14426
14427 <result name="VBOX_E_INVALID_VM_STATE">
14428 Session state prevents operation.
14429 </result>
14430 <result name="VBOX_E_INVALID_OBJECT_STATE">
14431 Session type prevents operation.
14432 </result>
14433
14434 </desc>
14435 </method>
14436
14437 <method name="onSharedFolderChange">
14438 <desc>
14439 Triggered when a permanent (global or machine) shared folder has been
14440 created or removed.
14441 <note>
14442 We don't pass shared folder parameters in this notification because
14443 the order in which parallel notifications are delivered is not defined,
14444 therefore it could happen that these parameters were outdated by the
14445 time of processing this notification.
14446 </note>
14447
14448 <result name="VBOX_E_INVALID_VM_STATE">
14449 Session state prevents operation.
14450 </result>
14451 <result name="VBOX_E_INVALID_OBJECT_STATE">
14452 Session type prevents operation.
14453 </result>
14454
14455 </desc>
14456 <param name="global" type="boolean" dir="in"/>
14457 </method>
14458
14459 <method name="onUSBDeviceAttach">
14460 <desc>
14461 Triggered when a request to capture a USB device (as a result
14462 of matched USB filters or direct call to
14463 <link to="IConsole::attachUSBDevice"/>) has completed.
14464 A @c null @a error object means success, otherwise it
14465 describes a failure.
14466
14467 <result name="VBOX_E_INVALID_VM_STATE">
14468 Session state prevents operation.
14469 </result>
14470 <result name="VBOX_E_INVALID_OBJECT_STATE">
14471 Session type prevents operation.
14472 </result>
14473
14474 </desc>
14475 <param name="device" type="IUSBDevice" dir="in"/>
14476 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
14477 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
14478 </method>
14479
14480 <method name="onUSBDeviceDetach">
14481 <desc>
14482 Triggered when a request to release the USB device (as a result
14483 of machine termination or direct call to
14484 <link to="IConsole::detachUSBDevice"/>) has completed.
14485 A @c null @a error object means success, otherwise it
14486 describes a failure.
14487
14488 <result name="VBOX_E_INVALID_VM_STATE">
14489 Session state prevents operation.
14490 </result>
14491 <result name="VBOX_E_INVALID_OBJECT_STATE">
14492 Session type prevents operation.
14493 </result>
14494
14495 </desc>
14496 <param name="id" type="uuid" mod="string" dir="in"/>
14497 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
14498 </method>
14499
14500 <method name="onShowWindow">
14501 <desc>
14502 Called by <link to="IMachine::canShowConsoleWindow"/> and by
14503 <link to="IMachine::showConsoleWindow"/> in order to notify
14504 console listeners
14505 <link to="ICanShowWindowEvent"/>
14506 and <link to="IShowWindowEvent"/>.
14507
14508 <result name="VBOX_E_INVALID_OBJECT_STATE">
14509 Session type prevents operation.
14510 </result>
14511
14512 </desc>
14513 <param name="check" type="boolean" dir="in"/>
14514 <param name="canShow" type="boolean" dir="out"/>
14515 <param name="winId" type="long long" dir="out"/>
14516 </method>
14517
14518 <method name="onBandwidthGroupChange">
14519 <desc>
14520 Notification when one of the bandwidth groups change.
14521 </desc>
14522 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
14523 <desc>The bandwidth group which changed.</desc>
14524 </param>
14525 </method>
14526
14527 <method name="accessGuestProperty">
14528 <desc>
14529 Called by <link to="IMachine::getGuestProperty"/> and by
14530 <link to="IMachine::setGuestProperty"/> in order to read and
14531 modify guest properties.
14532
14533 <result name="VBOX_E_INVALID_VM_STATE">
14534 Machine session is not open.
14535 </result>
14536 <result name="VBOX_E_INVALID_OBJECT_STATE">
14537 Session type is not direct.
14538 </result>
14539
14540 </desc>
14541 <param name="name" type="wstring" dir="in"/>
14542 <param name="value" type="wstring" dir="in"/>
14543 <param name="flags" type="wstring" dir="in"/>
14544 <param name="isSetter" type="boolean" dir="in"/>
14545 <param name="retValue" type="wstring" dir="out"/>
14546 <param name="retTimestamp" type="long long" dir="out"/>
14547 <param name="retFlags" type="wstring" dir="out"/>
14548 </method>
14549
14550 <method name="enumerateGuestProperties" const="yes">
14551 <desc>
14552 Return a list of the guest properties matching a set of patterns along
14553 with their values, time stamps and flags.
14554
14555 <result name="VBOX_E_INVALID_VM_STATE">
14556 Machine session is not open.
14557 </result>
14558 <result name="VBOX_E_INVALID_OBJECT_STATE">
14559 Session type is not direct.
14560 </result>
14561
14562 </desc>
14563 <param name="patterns" type="wstring" dir="in">
14564 <desc>
14565 The patterns to match the properties against as a comma-separated
14566 string. If this is empty, all properties currently set will be
14567 returned.
14568 </desc>
14569 </param>
14570 <param name="key" type="wstring" dir="out" safearray="yes">
14571 <desc>
14572 The key names of the properties returned.
14573 </desc>
14574 </param>
14575 <param name="value" type="wstring" dir="out" safearray="yes">
14576 <desc>
14577 The values of the properties returned. The array entries match the
14578 corresponding entries in the @a key array.
14579 </desc>
14580 </param>
14581 <param name="timestamp" type="long long" dir="out" safearray="yes">
14582 <desc>
14583 The time stamps of the properties returned. The array entries match
14584 the corresponding entries in the @a key array.
14585 </desc>
14586 </param>
14587 <param name="flags" type="wstring" dir="out" safearray="yes">
14588 <desc>
14589 The flags of the properties returned. The array entries match the
14590 corresponding entries in the @a key array.
14591 </desc>
14592 </param>
14593 </method>
14594
14595 <method name="onlineMergeMedium">
14596 <desc>
14597 Triggers online merging of a hard disk. Used internally when deleting
14598 a snapshot while a VM referring to the same hard disk chain is running.
14599
14600 <result name="VBOX_E_INVALID_VM_STATE">
14601 Machine session is not open.
14602 </result>
14603 <result name="VBOX_E_INVALID_OBJECT_STATE">
14604 Session type is not direct.
14605 </result>
14606
14607 </desc>
14608 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
14609 <desc>The medium attachment to identify the medium chain.</desc>
14610 </param>
14611 <param name="sourceIdx" type="unsigned long" dir="in">
14612 <desc>The index of the source image in the chain.
14613 Redundant, but drastically reduces IPC.</desc>
14614 </param>
14615 <param name="targetIdx" type="unsigned long" dir="in">
14616 <desc>The index of the target image in the chain.
14617 Redundant, but drastically reduces IPC.</desc>
14618 </param>
14619 <param name="source" type="IMedium" dir="in">
14620 <desc>Merge source medium.</desc>
14621 </param>
14622 <param name="target" type="IMedium" dir="in">
14623 <desc>Merge target medium.</desc>
14624 </param>
14625 <param name="mergeForward" type="boolean" dir="in">
14626 <desc>Merge direction.</desc>
14627 </param>
14628 <param name="parentForTarget" type="IMedium" dir="in">
14629 <desc>For forward merges: new parent for target medium.</desc>
14630 </param>
14631 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
14632 <desc>For backward merges: list of media which need their parent UUID
14633 updated.</desc>
14634 </param>
14635 <param name="progress" type="IProgress" dir="in">
14636 <desc>
14637 Progress object for this operation.
14638 </desc>
14639 </param>
14640 </method>
14641
14642 </interface>
14643
14644 <interface
14645 name="ISession" extends="$unknown"
14646 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
14647 wsmap="managed"
14648 >
14649 <desc>
14650 The ISession interface represents a client process and allows for locking
14651 virtual machines (represented by IMachine objects) to prevent conflicting
14652 changes to the machine.
14653
14654 Any caller wishing to manipulate a virtual machine needs to create a session
14655 object first, which lives in its own process space. Such session objects are
14656 then associated with <link to="IMachine" /> objects living in the VirtualBox
14657 server process to coordinate such changes.
14658
14659 There are two typical scenarios in which sessions are used:
14660
14661 <ul>
14662 <li>To alter machine settings or control a running virtual machine, one
14663 needs to lock a machine for a given session (client process) by calling
14664 <link to="IMachine::lockMachine"/>.
14665
14666 Whereas multiple sessions may control a running virtual machine, only
14667 one process can obtain a write lock on the machine to prevent conflicting
14668 changes. A write lock is also needed if a process wants to actually run a
14669 virtual machine in its own context, such as the VirtualBox GUI or
14670 VBoxHeadless front-ends. They must also lock a machine for their own
14671 sessions before they are allowed to power up the virtual machine.
14672
14673 As a result, no machine settings can be altered while another process is
14674 already using it, either because that process is modifying machine settings
14675 or because the machine is running.
14676 </li>
14677 <li>
14678 To start a VM using one of the existing VirtualBox front-ends (e.g. the
14679 VirtualBox GUI or VBoxHeadless), one would use
14680 <link to="IMachine::launchVMProcess"/>, which also takes a session object
14681 as its first parameter. This session then identifies the caller and lets the
14682 caller control the started machine (for example, pause machine execution or
14683 power it down) as well as be notified about machine execution state changes.
14684 </li>
14685 </ul>
14686
14687 How sessions objects are created in a client process depends on whether you use
14688 the Main API via COM or via the webservice:
14689
14690 <ul>
14691 <li>When using the COM API directly, an object of the Session class from the
14692 VirtualBox type library needs to be created. In regular COM C++ client code,
14693 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
14694 This object will then act as a local session object in further calls to open
14695 a session.
14696 </li>
14697
14698 <li>In the webservice, the session manager (IWebsessionManager) instead creates
14699 a session object automatically whenever <link to="IWebsessionManager::logon" />
14700 is called. A managed object reference to that session object can be retrieved by
14701 calling <link to="IWebsessionManager::getSessionObject" />.
14702 </li>
14703 </ul>
14704 </desc>
14705
14706 <attribute name="state" type="SessionState" readonly="yes">
14707 <desc>Current state of this session.</desc>
14708 </attribute>
14709
14710 <attribute name="type" type="SessionType" readonly="yes">
14711 <desc>
14712 Type of this session. The value of this attribute is valid only
14713 if the session currently has a machine locked (i.e. its
14714 <link to="#state" /> is Locked), otherwise an error will be returned.
14715 </desc>
14716 </attribute>
14717
14718 <attribute name="machine" type="IMachine" readonly="yes">
14719 <desc>Machine object associated with this session.</desc>
14720 </attribute>
14721
14722 <attribute name="console" type="IConsole" readonly="yes">
14723 <desc>Console object associated with this session.</desc>
14724 </attribute>
14725
14726 <method name="unlockMachine">
14727 <desc>
14728 Unlocks a machine that was previously locked for the current session.
14729
14730 Calling this method is required every time a machine has been locked
14731 for a particular session using the <link to="IMachine::launchVMProcess" />
14732 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
14733 the machine will be set to <link to="MachineState_Aborted" /> on the
14734 server, and changes made to the machine settings will be lost.
14735
14736 Generally, it is recommended to unlock all machines explicitly
14737 before terminating the application (regardless of the reason for
14738 the termination).
14739
14740 <note>
14741 Do not expect the session state (<link to="ISession::state" />
14742 to return to "Unlocked" immediately after you invoke this method,
14743 particularly if you have started a new VM process. The session
14744 state will automatically return to "Unlocked" once the VM is no
14745 longer executing, which can of course take a very long time.
14746 </note>
14747
14748 <result name="E_UNEXPECTED">
14749 Session is not locked.
14750 </result>
14751
14752 </desc>
14753 </method>
14754
14755 </interface>
14756
14757 <!--
14758 // IStorageController
14759 /////////////////////////////////////////////////////////////////////////
14760 -->
14761
14762 <enum
14763 name="StorageBus"
14764 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
14765 >
14766 <desc>
14767 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
14768 see <link to="IStorageController::bus" />.
14769 </desc>
14770 <const name="Null" value="0">
14771 <desc>@c null value. Never used by the API.</desc>
14772 </const>
14773 <const name="IDE" value="1"/>
14774 <const name="SATA" value="2"/>
14775 <const name="SCSI" value="3"/>
14776 <const name="Floppy" value="4"/>
14777 <const name="SAS" value="5"/>
14778 </enum>
14779
14780 <enum
14781 name="StorageControllerType"
14782 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
14783 >
14784 <desc>
14785 The exact variant of storage controller hardware presented
14786 to the guest; see <link to="IStorageController::controllerType" />.
14787 </desc>
14788
14789 <const name="Null" value="0">
14790 <desc>@c null value. Never used by the API.</desc>
14791 </const>
14792 <const name="LsiLogic" value="1">
14793 <desc>A SCSI controller of the LsiLogic variant.</desc>
14794 </const>
14795 <const name="BusLogic" value="2">
14796 <desc>A SCSI controller of the BusLogic variant.</desc>
14797 </const>
14798 <const name="IntelAhci" value="3">
14799 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
14800 </const>
14801 <const name="PIIX3" value="4">
14802 <desc>An IDE controller of the PIIX3 variant.</desc>
14803 </const>
14804 <const name="PIIX4" value="5">
14805 <desc>An IDE controller of the PIIX4 variant.</desc>
14806 </const>
14807 <const name="ICH6" value="6">
14808 <desc>An IDE controller of the ICH6 variant.</desc>
14809 </const>
14810 <const name="I82078" value="7">
14811 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
14812 </const>
14813 <const name="LsiLogicSas" value="8">
14814 <desc>A variant of the LsiLogic controller using SAS.</desc>
14815 </const>
14816 </enum>
14817
14818 <enum
14819 name="ChipsetType"
14820 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
14821 >
14822 <desc>
14823 Type of emulated chipset (mostly southbridge).
14824 </desc>
14825
14826 <const name="Null" value="0">
14827 <desc>@c null value. Never used by the API.</desc>
14828 </const>
14829 <const name="PIIX3" value="1">
14830 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
14831 </const>
14832 <const name="ICH9" value="2">
14833 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
14834 </const>
14835 </enum>
14836
14837 <interface
14838 name="IStorageController" extends="$unknown"
14839 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
14840 wsmap="managed"
14841 >
14842 <desc>
14843 Represents a storage controller that is attached to a virtual machine
14844 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
14845 attached to storage controllers in a real computer, virtual drives
14846 (represented by <link to="IMediumAttachment" />) are attached to virtual
14847 storage controllers, represented by this interface.
14848
14849 As opposed to physical hardware, VirtualBox has a very generic concept
14850 of a storage controller, and for purposes of the Main API, all virtual
14851 storage is attached to virtual machines via instances of this interface.
14852 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
14853 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
14854 is used, certain sub-types may be available and can be selected in
14855 <link to="#controllerType" />.
14856
14857 Depending on these settings, the guest operating system might see
14858 significantly different virtual hardware.
14859 </desc>
14860
14861 <attribute name="name" type="wstring" readonly="yes">
14862 <desc>
14863 Name of the storage controller, as originally specified with
14864 <link to="IMachine::addStorageController" />. This then uniquely
14865 identifies this controller with other method calls such as
14866 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
14867 </desc>
14868 </attribute>
14869
14870 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
14871 <desc>
14872 Maximum number of devices which can be attached to one port.
14873 </desc>
14874 </attribute>
14875
14876 <attribute name="minPortCount" type="unsigned long" readonly="yes">
14877 <desc>
14878 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
14879 </desc>
14880 </attribute>
14881
14882 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
14883 <desc>
14884 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
14885 </desc>
14886 </attribute>
14887
14888 <attribute name="instance" type="unsigned long">
14889 <desc>
14890 The instance number of the device in the running VM.
14891 </desc>
14892 </attribute>
14893
14894 <attribute name="portCount" type="unsigned long">
14895 <desc>
14896 The number of currently usable ports on the controller.
14897 The minimum and maximum number of ports for one controller are
14898 stored in <link to="IStorageController::minPortCount"/>
14899 and <link to="IStorageController::maxPortCount"/>.
14900 </desc>
14901 </attribute>
14902
14903 <attribute name="bus" type="StorageBus" readonly="yes">
14904 <desc>
14905 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
14906 </desc>
14907 </attribute>
14908
14909 <attribute name="controllerType" type="StorageControllerType">
14910 <desc>
14911 The exact variant of storage controller hardware presented
14912 to the guest.
14913 Depending on this value, VirtualBox will provide a different
14914 virtual storage controller hardware to the guest.
14915 For SATA, SAS and floppy controllers, only one variant is
14916 available, but for IDE and SCSI, there are several.
14917
14918 For SCSI controllers, the default type is LsiLogic.
14919 </desc>
14920 </attribute>
14921
14922 <attribute name="useHostIOCache" type="boolean">
14923 <desc>
14924 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
14925 caches and use synchronous file APIs on the host. This was the only option in the API before
14926 VirtualBox 3.2 and is still the default for IDE controllers.
14927
14928 If false, the host I/O cache will be disabled for image files attached to this storage controller.
14929 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
14930 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
14931 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
14932 virtual machines are running at the same time to prevent I/O cache related hangs.
14933 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
14934 </desc>
14935 </attribute>
14936
14937 <attribute name="bootable" type="boolean" readonly="yes">
14938 <desc>
14939 Returns whether it is possible to boot from disks attached to this controller.
14940 </desc>
14941 </attribute>
14942
14943 <method name="getIDEEmulationPort">
14944 <desc>
14945 Gets the corresponding port number which is emulated as an IDE device.
14946 Works only with SATA controllers.
14947
14948 <result name="E_INVALIDARG">
14949 The @a devicePosition is not in the range 0 to 3.
14950 </result>
14951 <result name="E_NOTIMPL">
14952 The storage controller type is not SATAIntelAhci.
14953 </result>
14954
14955 </desc>
14956 <param name="devicePosition" type="long" dir="in"/>
14957 <param name="portNumber" type="long" dir="return"/>
14958 </method>
14959
14960 <method name="setIDEEmulationPort">
14961 <desc>
14962 Sets the port number which is emulated as an IDE device.
14963 Works only with SATA controllers.
14964
14965 <result name="E_INVALIDARG">
14966 The @a devicePosition is not in the range 0 to 3 or the
14967 @a portNumber is not in the range 0 to 29.
14968 </result>
14969 <result name="E_NOTIMPL">
14970 The storage controller type is not SATAIntelAhci.
14971 </result>
14972
14973 </desc>
14974 <param name="devicePosition" type="long" dir="in"/>
14975 <param name="portNumber" type="long" dir="in"/>
14976 </method>
14977
14978 </interface>
14979
14980<if target="wsdl">
14981
14982 <!--
14983 // IManagedObjectRef
14984 /////////////////////////////////////////////////////////////////////////
14985 -->
14986
14987 <interface
14988 name="IManagedObjectRef" extends="$unknown"
14989 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
14990 internal="yes"
14991 wsmap="managed"
14992 wscpp="hardcoded"
14993 >
14994 <desc>
14995 Managed object reference.
14996
14997 Only within the webservice, a managed object reference (which is really
14998 an opaque number) allows a webservice client to address an object
14999 that lives in the address space of the webservice server.
15000
15001 Behind each managed object reference, there is a COM object that lives
15002 in the webservice server's address space. The COM object is not freed
15003 until the managed object reference is released, either by an explicit
15004 call to <link to="IManagedObjectRef::release" /> or by logging off from
15005 the webservice (<link to="IWebsessionManager::logoff" />), which releases
15006 all objects created during the webservice session.
15007
15008 Whenever a method call of the VirtualBox API returns a COM object, the
15009 webservice representation of that method will instead return a
15010 managed object reference, which can then be used to invoke methods
15011 on that object.
15012 </desc>
15013
15014 <method name="getInterfaceName">
15015 <desc>
15016 Returns the name of the interface that this managed object represents,
15017 for example, "IMachine", as a string.
15018 </desc>
15019 <param name="return" type="wstring" dir="return"/>
15020 </method>
15021
15022 <method name="release">
15023 <desc>
15024 Releases this managed object reference and frees the resources that
15025 were allocated for it in the webservice server process. After calling
15026 this method, the identifier of the reference can no longer be used.
15027 </desc>
15028 </method>
15029
15030 </interface>
15031
15032 <!--
15033 // IWebsessionManager
15034 /////////////////////////////////////////////////////////////////////////
15035 -->
15036
15037 <interface
15038 name="IWebsessionManager" extends="$unknown"
15039 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
15040 internal="yes"
15041 wsmap="global"
15042 wscpp="hardcoded"
15043 >
15044 <desc>
15045 Websession manager. This provides essential services
15046 to webservice clients.
15047 </desc>
15048 <method name="logon">
15049 <desc>
15050 Logs a new client onto the webservice and returns a managed object reference to
15051 the IVirtualBox instance, which the client can then use as a basis to further
15052 queries, since all calls to the VirtualBox API are based on the IVirtualBox
15053 interface, in one way or the other.
15054 </desc>
15055 <param name="username" type="wstring" dir="in"/>
15056 <param name="password" type="wstring" dir="in"/>
15057 <param name="return" type="IVirtualBox" dir="return"/>
15058 </method>
15059
15060 <method name="getSessionObject">
15061 <desc>
15062 Returns a managed object reference to the internal ISession object that was created
15063 for this web service session when the client logged on.
15064
15065 <see><link to="ISession"/></see>
15066 </desc>
15067 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
15068 <param name="return" type="ISession" dir="return"/>
15069 </method>
15070
15071 <method name="logoff">
15072 <desc>
15073 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
15074 and destroys all resources associated with the session (most importantly, all
15075 managed objects created in the server while the session was active).
15076 </desc>
15077 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
15078 </method>
15079
15080 </interface>
15081
15082</if>
15083
15084 <!--
15085 // IPerformanceCollector & friends
15086 /////////////////////////////////////////////////////////////////////////
15087 -->
15088
15089 <interface
15090 name="IPerformanceMetric" extends="$unknown"
15091 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
15092 >
15093 <desc>
15094 The IPerformanceMetric interface represents parameters of the given
15095 performance metric.
15096 </desc>
15097
15098 <attribute name="metricName" type="wstring" readonly="yes">
15099 <desc>
15100 Name of the metric.
15101 </desc>
15102 </attribute>
15103
15104 <attribute name="object" type="$unknown" readonly="yes">
15105 <desc>
15106 Object this metric belongs to.
15107 </desc>
15108 </attribute>
15109
15110 <attribute name="description" type="wstring" readonly="yes">
15111 <desc>
15112 Textual description of the metric.
15113 </desc>
15114 </attribute>
15115
15116 <attribute name="period" type="unsigned long" readonly="yes">
15117 <desc>
15118 Time interval between samples, measured in seconds.
15119 </desc>
15120 </attribute>
15121
15122 <attribute name="count" type="unsigned long" readonly="yes">
15123 <desc>
15124 Number of recent samples retained by the performance collector for this
15125 metric.
15126
15127 When the collected sample count exceeds this number, older samples
15128 are discarded.
15129 </desc>
15130 </attribute>
15131
15132 <attribute name="unit" type="wstring" readonly="yes">
15133 <desc>
15134 Unit of measurement.
15135 </desc>
15136 </attribute>
15137
15138 <attribute name="minimumValue" type="long" readonly="yes">
15139 <desc>
15140 Minimum possible value of this metric.
15141 </desc>
15142 </attribute>
15143
15144 <attribute name="maximumValue" type="long" readonly="yes">
15145 <desc>
15146 Maximum possible value of this metric.
15147 </desc>
15148 </attribute>
15149 </interface>
15150
15151 <interface
15152 name="IPerformanceCollector" extends="$unknown"
15153 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
15154 wsmap="managed"
15155 >
15156 <desc>
15157 The IPerformanceCollector interface represents a service that collects
15158 and stores performance metrics data.
15159
15160 Performance metrics are associated with objects of interfaces like IHost
15161 and IMachine. Each object has a distinct set of performance metrics. The
15162 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
15163
15164 Metric data is collected at the specified intervals and is retained
15165 internally. The interval and the number of retained samples can be set
15166 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
15167 and collection settings are not persistent, they are discarded as soon as
15168 VBoxSVC process terminates. Moreover, metric settings and data associated
15169 with a particular VM only exist while VM is running. They disappear as
15170 soon as VM shuts down. It is not possible to set up metrics for machines
15171 that are powered off. One needs to start VM first, then set up metric
15172 collection parameters.
15173
15174 Metrics are organized hierarchically, with each level separated by a
15175 slash (/) character. Generally, the scheme for metric names is like this:
15176
15177 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
15178
15179 "Category/Metric" together form the base metric name. A base metric is
15180 the smallest unit for which a sampling interval and the number of
15181 retained samples can be set. Only base metrics can be enabled and
15182 disabled. All sub-metrics are collected when their base metric is
15183 collected. Collected values for any set of sub-metrics can be queried
15184 with <link to="IPerformanceCollector::queryMetricsData" />.
15185
15186 For example "CPU/Load/User:avg" metric name stands for the "CPU"
15187 category, "Load" metric, "User" submetric, "average" aggregate. An
15188 aggregate function is computed over all retained data. Valid aggregate
15189 functions are:
15190
15191 <ul>
15192 <li>avg -- average</li>
15193 <li>min -- minimum</li>
15194 <li>max -- maximum</li>
15195 </ul>
15196
15197 When setting up metric parameters, querying metric data, enabling or
15198 disabling metrics wildcards can be used in metric names to specify a
15199 subset of metrics. For example, to select all CPU-related metrics
15200 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
15201 so on. To query metric values without aggregates <tt>*:</tt> can be used.
15202
15203 The valid names for base metrics are:
15204
15205 <ul>
15206 <li>CPU/Load</li>
15207 <li>CPU/MHz</li>
15208 <li>RAM/Usage</li>
15209 <li>RAM/VMM</li>
15210 </ul>
15211
15212 The general sequence for collecting and retrieving the metrics is:
15213 <ul>
15214 <li>
15215 Obtain an instance of IPerformanceCollector with
15216 <link to="IVirtualBox::performanceCollector" />
15217 </li>
15218 <li>
15219 Allocate and populate an array with references to objects the metrics
15220 will be collected for. Use references to IHost and IMachine objects.
15221 </li>
15222 <li>
15223 Allocate and populate an array with base metric names the data will
15224 be collected for.
15225 </li>
15226 <li>
15227 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
15228 the metric data will be collected and stored.
15229 </li>
15230 <li>
15231 Wait for the data to get collected.
15232 </li>
15233 <li>
15234 Allocate and populate an array with references to objects the metric
15235 values will be queried for. You can re-use the object array used for
15236 setting base metrics.
15237 </li>
15238 <li>
15239 Allocate and populate an array with metric names the data will be
15240 collected for. Note that metric names differ from base metric names.
15241 </li>
15242 <li>
15243 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
15244 that have been collected so far are returned. Note that the values
15245 are still retained internally and data collection continues.
15246 </li>
15247 </ul>
15248
15249 For an example of usage refer to the following files in VirtualBox SDK:
15250 <ul>
15251 <li>
15252 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
15253 </li>
15254 <li>
15255 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
15256 </li>
15257 </ul>
15258 </desc>
15259
15260 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
15261 <desc>
15262 Array of unique names of metrics.
15263
15264 This array represents all metrics supported by the performance
15265 collector. Individual objects do not necessarily support all of them.
15266 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
15267 list of supported metrics for a particular object.
15268 </desc>
15269 </attribute>
15270
15271 <method name="getMetrics">
15272 <desc>
15273 Returns parameters of specified metrics for a set of objects.
15274 <note>
15275 @c Null metrics array means all metrics. @c Null object array means
15276 all existing objects.
15277 </note>
15278 </desc>
15279 <param name="metricNames" type="wstring" dir="in" safearray="yes">
15280 <desc>
15281 Metric name filter. Currently, only a comma-separated list of metrics
15282 is supported.
15283 </desc>
15284 </param>
15285 <param name="objects" type="$unknown" dir="in" safearray="yes">
15286 <desc>
15287 Set of objects to return metric parameters for.
15288 </desc>
15289 </param>
15290 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
15291 <desc>
15292 Array of returned metric parameters.
15293 </desc>
15294 </param>
15295 </method>
15296
15297 <method name="setupMetrics">
15298 <desc>
15299 Sets parameters of specified base metrics for a set of objects. Returns
15300 an array of <link to="IPerformanceMetric" /> describing the metrics
15301 have been affected.
15302 <note>
15303 @c Null or empty metric name array means all metrics. @c Null or
15304 empty object array means all existing objects. If metric name array
15305 contains a single element and object array contains many, the single
15306 metric name array element is applied to each object array element to
15307 form metric/object pairs.
15308 </note>
15309 </desc>
15310 <param name="metricNames" type="wstring" dir="in" safearray="yes">
15311 <desc>
15312 Metric name filter. Comma-separated list of metrics with wildcard
15313 support.
15314 </desc>
15315 </param>
15316 <param name="objects" type="$unknown" dir="in" safearray="yes">
15317 <desc>
15318 Set of objects to setup metric parameters for.
15319 </desc>
15320 </param>
15321 <param name="period" type="unsigned long" dir="in">
15322 <desc>
15323 Time interval in seconds between two consecutive samples of
15324 performance data.
15325 </desc>
15326 </param>
15327 <param name="count" type="unsigned long" dir="in">
15328 <desc>
15329 Number of samples to retain in performance data history. Older
15330 samples get discarded.
15331 </desc>
15332 </param>
15333 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
15334 <desc>
15335 Array of metrics that have been modified by the call to this method.
15336 </desc>
15337 </param>
15338 </method>
15339
15340 <method name="enableMetrics">
15341 <desc>
15342 Turns on collecting specified base metrics. Returns an array of
15343 <link to="IPerformanceMetric" /> describing the metrics have been
15344 affected.
15345 <note>
15346 @c Null or empty metric name array means all metrics. @c Null or
15347 empty object array means all existing objects. If metric name array
15348 contains a single element and object array contains many, the single
15349 metric name array element is applied to each object array element to
15350 form metric/object pairs.
15351 </note>
15352 </desc>
15353 <param name="metricNames" type="wstring" dir="in" safearray="yes">
15354 <desc>
15355 Metric name filter. Comma-separated list of metrics with wildcard
15356 support.
15357 </desc>
15358 </param>
15359 <param name="objects" type="$unknown" dir="in" safearray="yes">
15360 <desc>
15361 Set of objects to enable metrics for.
15362 </desc>
15363 </param>
15364 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
15365 <desc>
15366 Array of metrics that have been modified by the call to this method.
15367 </desc>
15368 </param>
15369 </method>
15370
15371 <method name="disableMetrics">
15372 <desc>
15373 Turns off collecting specified base metrics. Returns an array of
15374 <link to="IPerformanceMetric" /> describing the metrics have been
15375 affected.
15376 <note>
15377 @c Null or empty metric name array means all metrics. @c Null or
15378 empty object array means all existing objects. If metric name array
15379 contains a single element and object array contains many, the single
15380 metric name array element is applied to each object array element to
15381 form metric/object pairs.
15382 </note>
15383 </desc>
15384 <param name="metricNames" type="wstring" dir="in" safearray="yes">
15385 <desc>
15386 Metric name filter. Comma-separated list of metrics with wildcard
15387 support.
15388 </desc>
15389 </param>
15390 <param name="objects" type="$unknown" dir="in" safearray="yes">
15391 <desc>
15392 Set of objects to disable metrics for.
15393 </desc>
15394 </param>
15395 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
15396 <desc>
15397 Array of metrics that have been modified by the call to this method.
15398 </desc>
15399 </param>
15400 </method>
15401
15402 <method name="queryMetricsData">
15403 <desc>
15404 Queries collected metrics data for a set of objects.
15405
15406 The data itself and related metric information are returned in seven
15407 parallel and one flattened array of arrays. Elements of
15408 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
15409 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
15410 the same index describe one set of values corresponding to a single
15411 metric.
15412
15413 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
15414 start and length of a sub-array is indicated by
15415 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
15416 value for metric <tt>metricNames[i]</tt> is at
15417 <tt>returnData[returnIndices[i]]</tt>.
15418
15419 <note>
15420 @c Null or empty metric name array means all metrics. @c Null or
15421 empty object array means all existing objects. If metric name array
15422 contains a single element and object array contains many, the single
15423 metric name array element is applied to each object array element to
15424 form metric/object pairs.
15425 </note>
15426 <note>
15427 Data collection continues behind the scenes after call to @c
15428 queryMetricsData. The return data can be seen as the snapshot of the
15429 current state at the time of @c queryMetricsData call. The internally
15430 kept metric values are not cleared by the call. This makes possible
15431 querying different subsets of metrics or aggregates with subsequent
15432 calls. If periodic querying is needed it is highly suggested to query
15433 the values with @c interval*count period to avoid confusion. This way
15434 a completely new set of data values will be provided by each query.
15435 </note>
15436 </desc>
15437 <param name="metricNames" type="wstring" dir="in" safearray="yes">
15438 <desc>
15439 Metric name filter. Comma-separated list of metrics with wildcard
15440 support.
15441 </desc>
15442 </param>
15443 <param name="objects" type="$unknown" dir="in" safearray="yes">
15444 <desc>
15445 Set of objects to query metrics for.
15446 </desc>
15447 </param>
15448 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
15449 <desc>
15450 Names of metrics returned in @c returnData.
15451 </desc>
15452 </param>
15453 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
15454 <desc>
15455 Objects associated with metrics returned in @c returnData.
15456 </desc>
15457 </param>
15458 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
15459 <desc>
15460 Units of measurement for each returned metric.
15461 </desc>
15462 </param>
15463 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
15464 <desc>
15465 Divisor that should be applied to return values in order to get
15466 floating point values. For example:
15467 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
15468 will retrieve the floating point value of i-th sample of the first
15469 metric.
15470 </desc>
15471 </param>
15472 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
15473 <desc>
15474 Sequence numbers of the first elements of value sequences of
15475 particular metrics returned in @c returnData. For aggregate metrics
15476 it is the sequence number of the sample the aggregate started
15477 calculation from.
15478 </desc>
15479 </param>
15480 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
15481 <desc>
15482 Indices of the first elements of value sequences of particular
15483 metrics returned in @c returnData.
15484 </desc>
15485 </param>
15486 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
15487 <desc>
15488 Lengths of value sequences of particular metrics.
15489 </desc>
15490 </param>
15491 <param name="returnData" type="long" dir="return" safearray="yes">
15492 <desc>
15493 Flattened array of all metric data containing sequences of values for
15494 each metric.
15495 </desc>
15496 </param>
15497 </method>
15498
15499 </interface>
15500
15501 <enum
15502 name="NATAliasMode"
15503 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
15504 >
15505 <desc></desc>
15506 <const name="AliasLog" value="0x1">
15507 <desc></desc>
15508 </const>
15509 <const name="AliasProxyOnly" value="0x02">
15510 <desc></desc>
15511 </const>
15512 <const name="AliasUseSamePorts" value="0x04">
15513 <desc></desc>
15514 </const>
15515 </enum>
15516
15517 <enum
15518 name="NATProtocol"
15519 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
15520 >
15521 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
15522 <const name="UDP" value="0">
15523 <desc>Port-forwarding uses UDP protocol.</desc>
15524 </const>
15525 <const name="TCP" value="1">
15526 <desc>Port-forwarding uses TCP protocol.</desc>
15527 </const>
15528 </enum>
15529
15530 <interface
15531 name="INATEngine" extends="$unknown"
15532 uuid="4b286616-eb03-11de-b0fb-1701eca42246"
15533 wsmap="managed"
15534 >
15535 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
15536 allows for changing NAT behavior such as port-forwarding rules. This interface is
15537 used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
15538 <attribute name="network" type="wstring">
15539 <desc>The network attribute of the NAT engine (the same value is used with built-in
15540 DHCP server to fill corresponding fields of DHCP leases).</desc>
15541 </attribute>
15542 <attribute name="hostIP" type="wstring">
15543 <desc>IP of host interface to bind all opened sockets to.
15544 <note>Changing this does not change binding of port forwarding.</note>
15545 </desc>
15546 </attribute>
15547 <attribute name="tftpPrefix" type="wstring">
15548 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
15549 the corresponding fields of DHCP leases.</desc>
15550 </attribute>
15551 <attribute name="tftpBootFile" type="wstring">
15552 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
15553 the corresponding fields of DHCP leases.</desc>
15554 </attribute>
15555 <attribute name="tftpNextServer" type="wstring">
15556 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
15557 the corresponding fields of DHCP leases.
15558 <note>The preferred form is IPv4 addresses.</note>
15559 </desc>
15560 </attribute>
15561 <attribute name="aliasMode" type="unsigned long">
15562 <desc></desc>
15563 </attribute>
15564 <attribute name="dnsPassDomain" type="boolean">
15565 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
15566 </attribute>
15567 <attribute name="dnsProxy" type="boolean">
15568 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
15569 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
15570 </attribute>
15571 <attribute name="dnsUseHostResolver" type="boolean">
15572 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
15573 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
15574 </attribute>
15575 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
15576 <desc>Array of NAT port-forwarding rules in string representation, in the following
15577 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
15578 </attribute>
15579 <method name="setNetworkSettings">
15580 <desc>Sets network configuration of the NAT engine.</desc>
15581 <param name="mtu" type="unsigned long" dir="in">
15582 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
15583 </param>
15584 <param name="sockSnd" type="unsigned long" dir="in">
15585 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
15586 </param>
15587 <param name="sockRcv" type="unsigned long" dir="in">
15588 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
15589 </param>
15590 <param name="TcpWndSnd" type="unsigned long" dir="in">
15591 <desc>Initial size of the NAT engine's sending TCP window in bytes when
15592 establishing a new TCP connection.</desc>
15593 </param>
15594 <param name="TcpWndRcv" type="unsigned long" dir="in">
15595 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
15596 establishing a new TCP connection.</desc>
15597 </param>
15598 </method>
15599 <method name="getNetworkSettings">
15600 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
15601 for parameter descriptions.</desc>
15602 <param name="mtu" type="unsigned long" dir="out" />
15603 <param name="sockSnd" type="unsigned long" dir="out" />
15604 <param name="sockRcv" type="unsigned long" dir="out" />
15605 <param name="TcpWndSnd" type="unsigned long" dir="out" />
15606 <param name="TcpWndRcv" type="unsigned long" dir="out" />
15607 </method>
15608 <method name="addRedirect">
15609 <desc>Adds a new NAT port-forwarding rule.</desc>
15610 <param name="name" type="wstring" dir="in">
15611 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
15612 auto-generates one using the other parameters.</desc>
15613 </param>
15614 <param name="proto" type="NATProtocol" dir="in">
15615 <desc>Protocol handled with the rule.</desc>
15616 </param>
15617 <param name="hostIp" type="wstring" dir="in">
15618 <desc>IP of the host interface to which the rule should apply. An empty ip address is
15619 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
15620 </param>
15621 <param name="hostPort" type="unsigned short" dir="in">
15622 <desc>The port number to listen on.</desc>
15623 </param>
15624 <param name="guestIp" type="wstring" dir="in">
15625 <desc>The IP address of the guest which the NAT engine will forward matching packets
15626 to. An empty IP address is acceptable, in which case the NAT engine will forward
15627 packets to the first DHCP lease (x.x.x.15).</desc>
15628 </param>
15629 <param name="guestPort" type="unsigned short" dir="in">
15630 <desc>The port number to forward.</desc>
15631 </param>
15632 </method>
15633 <method name="removeRedirect">
15634 <desc>Removes a port-forwarding rule that was previously registered.</desc>
15635 <param name="name" type="wstring" dir="in">
15636 <desc>The name of the rule to delete.</desc>
15637 </param>
15638 </method>
15639 </interface>
15640
15641 <!--
15642 // IExtPackManager
15643 /////////////////////////////////////////////////////////////////////////
15644 -->
15645
15646 <interface
15647 name="IExtPackPlugIn" extends="$unknown"
15648 uuid="58000040-e718-4746-bbce-4b86d96da461"
15649 wsmap="suppress"
15650 >
15651 <desc>
15652 Interface for keeping information about a plug-in that ships with an
15653 extension pack.
15654 </desc>
15655 <attribute name="name" type="wstring" readonly="yes">
15656 <desc>The plug-in name.</desc>
15657 </attribute>
15658 <attribute name="description" type="wstring" readonly="yes">
15659 <desc>The plug-in description.</desc>
15660 </attribute>
15661 <attribute name="frontend" type="wstring" readonly="yes">
15662 <desc>
15663 The name of the frontend or component name this plug-in plugs into.
15664 </desc>
15665 </attribute>
15666 <attribute name="modulePath" type="wstring" readonly="yes">
15667 <desc> The module path. </desc>
15668 </attribute>
15669 </interface>
15670
15671 <interface
15672 name="IExtPackBase" extends="$unknown"
15673 uuid="5ffb0b64-0ad6-467d-af62-1157e7dc3c99"
15674 wsmap="suppress"
15675 >
15676 <desc>
15677 Interface for querying information about an extension pack as well as
15678 accessing COM objects within it.
15679 </desc>
15680 <attribute name="name" type="wstring" readonly="yes">
15681 <desc>The extension pack name. This is unique.</desc>
15682 </attribute>
15683 <attribute name="description" type="wstring" readonly="yes">
15684 <desc>The extension pack description.</desc>
15685 </attribute>
15686 <attribute name="version" type="wstring" readonly="yes">
15687 <desc>
15688 The extension pack version string. This is on the same form as
15689 other VirtualBox version strings, i.e.: "1.2.3", "1.2.3_BETA1",
15690 "1.2.3-OSE", "1.2.3r45678", "1.2.3r45678-OSE", "1.2.3_BETA1-r45678"
15691 or "1.2.3_BETA1-r45678-OSE"
15692 </desc>
15693 </attribute>
15694 <attribute name="revision" type="unsigned long" readonly="yes">
15695 <desc>The extension pack internal revision number.</desc>
15696 </attribute>
15697 <attribute name="VRDEModule" type="wstring" readonly="yes">
15698 <desc>The name of the VRDE module if the extension pack sports one.</desc>
15699 </attribute>
15700 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
15701 <desc>Plug-ins provided by this extension pack.</desc>
15702 </attribute>
15703 <attribute name="usable" type="boolean" readonly="yes">
15704 <desc>
15705 Indicates whether the extension pack is usable or not.
15706
15707 There are a number of reasons why an extension pack might be unusable,
15708 typical examples would be broken installation/file or that it is
15709 incompatible with the current VirtualBox version.
15710 </desc>
15711 </attribute>
15712 <attribute name="whyUnusable" type="wstring" readonly="yes">
15713 <desc>
15714 String indicating why the extension pack is not usable. This is an
15715 empty string if usable and always a non-empty string if not usable.
15716 </desc>
15717 </attribute>
15718 <attribute name="showLicense" type="boolean" readonly="yes">
15719 <desc>Whether to show the license before installation</desc>
15720 </attribute>
15721 <attribute name="license" type="wstring" readonly="yes">
15722 <desc>
15723 The default HTML license text for the extension pack. Same as
15724 calling <link to="#queryLicense">queryLicense</link> with
15725 preferredLocale and preferredLanguage as empty strings and format set
15726 to html.
15727 </desc>
15728 </attribute>
15729
15730 <method name="queryLicense">
15731 <desc>
15732 Full feature version of the license attribute.
15733 </desc>
15734 <param name="preferredLocale" type="wstring" dir="in">
15735 <desc>
15736 The preferred license locale. Pass an empty string to get the default
15737 license.
15738 </desc>
15739 </param>
15740 <param name="preferredLanguage" type="wstring" dir="in">
15741 <desc>
15742 The preferred license language. Pass an empty string to get the
15743 default language for the locale.
15744 </desc>
15745 </param>
15746 <param name="format" type="wstring" dir="in">
15747 <desc>
15748 The license format: html, rtf or txt. If a license is present there
15749 will always be an HTML of it, the rich text format (RTF) and plain
15750 text (txt) versions are optional. If
15751 </desc>
15752 </param>
15753 <param name="licenseText" type="wstring" dir="return">
15754 <desc>The license text.</desc>
15755 </param>
15756 </method>
15757
15758 </interface>
15759
15760 <interface
15761 name="IExtPack" extends="IExtPackBase"
15762 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
15763 wsmap="suppress"
15764 >
15765 <desc>
15766 Interface for querying information about an extension pack as well as
15767 accessing COM objects within it.
15768 </desc>
15769 <method name="queryObject">
15770 <desc>
15771 Queries the IUnknown interface to an object in the extension pack
15772 main module. This allows plug-ins and others to talk directly to an
15773 extension pack.
15774 </desc>
15775 <param name="objUuid" type="wstring" dir="in">
15776 <desc>The object ID. What exactly this is </desc>
15777 </param>
15778 <param name="returnInterface" type="$unknown" dir="return">
15779 <desc>The queried interface.</desc>
15780 </param>
15781 </method>
15782 </interface>
15783
15784 <interface
15785 name="IExtPackFile" extends="IExtPackBase"
15786 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
15787 wsmap="suppress"
15788 >
15789 <desc>
15790 Extension pack file (aka tarball, .vbox-extpack) representation returned
15791 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
15792 extension pack information with the addition of the file name.
15793 </desc>
15794 <attribute name="filePath" type="wstring" readonly="yes">
15795 <desc>
15796 The path to the extension pack file.
15797 </desc>
15798 </attribute>
15799
15800 <method name="install">
15801 <desc>
15802 Install the extension pack.
15803 </desc>
15804 <param name="replace" type="boolean" dir="in">
15805 <desc>
15806 Set this to automatically uninstall any existing extension pack with
15807 the same name as the one being installed.
15808 </desc>
15809 </param>
15810 <param name="displayInfo" type="wstring" dir="in">
15811 <desc>
15812 Platform specific display information. Reserved for future hacks.
15813 </desc>
15814 </param>
15815 <param name="progess" type="IProgress" dir="return">
15816 <desc>
15817 Progress object for the operation.
15818 </desc>
15819 </param>
15820 </method>
15821 </interface>
15822
15823 <interface
15824 name="IExtPackManager" extends="$unknown"
15825 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
15826 wsmap="suppress"
15827 >
15828 <desc>
15829 Interface for managing VirtualBox Extension Packs.
15830
15831 TODO: Describe extension packs, how they are managed and how to create
15832 one.
15833 </desc>
15834
15835 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
15836 <desc>
15837 List of the installed extension packs.
15838 </desc>
15839 </attribute>
15840
15841 <method name="find">
15842 <desc>
15843 Returns the extension pack with the specified name if found.
15844
15845 <result name="VBOX_E_OBJECT_NOT_FOUND">
15846 No extension pack matching @a name was found.
15847 </result>
15848 </desc>
15849 <param name="name" type="wstring" dir="in">
15850 <desc>The name of the extension pack to locate.</desc>
15851 </param>
15852 <param name="returnData" type="IExtPack" dir="return">
15853 <desc>The extension pack if found.</desc>
15854 </param>
15855 </method>
15856
15857 <method name="openExtPackFile">
15858 <desc>
15859 Attempts to open an extension pack file in preparation for
15860 installation.
15861 </desc>
15862 <param name="path" type="wstring" dir="in">
15863 <desc>The path of the extension pack tarball.</desc>
15864 </param>
15865 <param name="file" type="IExtPackFile" dir="return">
15866 <desc>The interface of the extension pack file object.</desc>
15867 </param>
15868 </method>
15869
15870 <method name="uninstall">
15871 <desc>Uninstalls an extension pack, removing all related files.</desc>
15872 <param name="name" type="wstring" dir="in">
15873 <desc>The name of the extension pack to uninstall.</desc>
15874 </param>
15875 <param name="forcedRemoval" type="boolean" dir="in">
15876 <desc>
15877 Forced removal of the extension pack. This means that the uninstall
15878 hook will not be called.
15879 </desc>
15880 </param>
15881 <param name="displayInfo" type="wstring" dir="in">
15882 <desc>
15883 Platform specific display information. Reserved for future hacks.
15884 </desc>
15885 </param>
15886 <param name="progess" type="IProgress" dir="return">
15887 <desc>
15888 Progress object for the operation.
15889 </desc>
15890 </param>
15891 </method>
15892
15893 <method name="cleanup">
15894 <desc>Cleans up failed installs and uninstalls</desc>
15895 </method>
15896
15897 <method name="queryAllPlugInsForFrontend">
15898 <desc>
15899 Gets the path to all the plug-in modules for a given frontend.
15900
15901 This is a convenience method that is intended to simplify the plug-in
15902 loading process for a frontend.
15903 </desc>
15904 <param name="frontendName" type="wstring" dir="in">
15905 <desc>The name of the frontend or component.</desc>
15906 </param>
15907 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
15908 <desc>Array containing the plug-in modules (full paths).</desc>
15909 </param>
15910 </method>
15911
15912 <method name="isExtPackUsable">
15913 <desc>Check if the given extension pack is loaded and usable.</desc>
15914 <param name="name" type="wstring" dir="in">
15915 <desc>The name of the extension pack to check for.</desc>
15916 </param>
15917 <param name="usable" type="boolean" dir="return">
15918 <desc>Is the given extension pack loaded and usable.</desc>
15919 </param>
15920 </method>
15921
15922 </interface>
15923
15924 <!--
15925 // BandwidthGroupType
15926 /////////////////////////////////////////////////////////////////////////
15927 -->
15928 <enum
15929 name="BandwidthGroupType"
15930 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
15931
15932 <desc>
15933 Type of a bandwidth control group.
15934 </desc>
15935
15936 <const name="Null" value="0">
15937 <desc>
15938 Null type, must be first.
15939 </desc>
15940 </const>
15941
15942 <const name="Disk" value="1">
15943 <desc>
15944 The bandwidth group controls disk I/O.
15945 </desc>
15946 </const>
15947
15948 <const name="Network" value="2">
15949 <desc>
15950 The bandwidth group controls network I/O.
15951 </desc>
15952 </const>
15953
15954 </enum>
15955
15956 <!--
15957 // IBandwidthGroup
15958 /////////////////////////////////////////////////////////////////////////
15959 -->
15960 <interface
15961 name="IBandwidthGroup" extends="$unknown"
15962 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
15963 wsmap="managed"
15964 >
15965 <desc>Represents one bandwidth group.</desc>
15966
15967 <attribute name="name" type="wstring" readonly="yes">
15968 <desc>Name of the group.</desc>
15969 </attribute>
15970
15971 <attribute name="type" type="BandwidthGroupType" readonly="yes">
15972 <desc>Type of the group.</desc>
15973 </attribute>
15974
15975 <attribute name="reference" type="unsigned long" readonly="yes">
15976 <desc>How many devices/medium attachements use this group.</desc>
15977 </attribute>
15978
15979 <attribute name="maxMbPerSec" type="unsigned long">
15980 <desc>The maximum number of MBytes which can be transfered by all
15981 entities attached to this group during one second.</desc>
15982 </attribute>
15983
15984 </interface>
15985
15986 <!--
15987 // IBandwidthControl
15988 /////////////////////////////////////////////////////////////////////////
15989 -->
15990 <interface
15991 name="IBandwidthControl" extends="$unknown"
15992 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
15993 wsmap="managed"
15994 >
15995 <desc>
15996 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
15997 This includes network and disk I/O.
15998 </desc>
15999
16000 <attribute name="numGroups" type="unsigned long" readonly="yes">
16001 <desc>
16002 The current number of existing bandwidth groups managed.
16003 </desc>
16004 </attribute>
16005
16006 <method name="createBandwidthGroup">
16007 <desc>
16008 Creates a new bandwidth group.
16009 </desc>
16010
16011 <param name="name" type="wstring" dir="in">
16012 <desc>Name of the bandwidth group.</desc>
16013 </param>
16014 <param name="type" type="BandwidthGroupType" dir="in">
16015 <desc>The type of the bandwidth group (network or disk).</desc>
16016 </param>
16017 <param name="maxMbPerSec" type="unsigned long" dir="in">
16018 <desc>The maximum number of MBytes which can be transfered by all
16019 entities attached to this group during one second.</desc>
16020 </param>
16021 </method>
16022
16023 <method name="deleteBandwidthGroup">
16024 <desc>
16025 Deletes a new bandwidth group.
16026 </desc>
16027
16028 <param name="name" type="wstring" dir="in">
16029 <desc>Name of the bandwidth group to delete.</desc>
16030 </param>
16031 </method>
16032
16033 <method name="getBandwidthGroup" const="yes">
16034 <desc>
16035 Get a bandwidth group by name.
16036 </desc>
16037
16038 <param name="name" type="wstring" dir="in">
16039 <desc>Name of the bandwidth group to get.</desc>
16040 </param>
16041 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
16042 <desc>Where to store the bandwidth group on success.</desc>
16043 </param>
16044 </method>
16045
16046 <method name="getAllBandwidthGroups" const="yes">
16047 <desc>
16048 Get all managed bandwidth groups.
16049 </desc>
16050
16051 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
16052 <desc>The array of managed bandwidth groups.</desc>
16053 </param>
16054 </method>
16055 </interface>
16056
16057 <!--
16058 // IVirtualBoxClient
16059 /////////////////////////////////////////////////////////////////////////
16060 -->
16061
16062 <interface
16063 name="IVirtualBoxClient" extends="$unknown"
16064 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
16065 wsmap="suppress"
16066 >
16067 <desc>
16068 Convenience interface for client applications. Treat this as a
16069 singleton, i.e. never create more than one instance of this interface.
16070
16071 At the moment only available for clients of the local API (not usable
16072 via the webservice). Once the session logic is redesigned this might
16073 change.
16074 </desc>
16075
16076 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
16077 <desc>
16078 Reference to the server-side API root object.
16079 </desc>
16080 </attribute>
16081
16082 <attribute name="session" type="ISession" readonly="yes">
16083 <desc>
16084 Create a new session object and return the reference to it.
16085 </desc>
16086 </attribute>
16087
16088 <attribute name="eventSource" type="IEventSource" readonly="yes">
16089 <desc>
16090 Event source for VirtualBoxClient events.
16091 </desc>
16092 </attribute>
16093
16094 </interface>
16095
16096 <!--
16097 // Events
16098 /////////////////////////////////////////////////////////////////////////
16099 -->
16100 <enum
16101 name="VBoxEventType"
16102 uuid="cce48db6-8561-479d-8d46-1358bab45d4e"
16103 >
16104
16105 <desc>
16106 Type of an event.
16107 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
16108 </desc>
16109
16110 <const name="Invalid" value="0">
16111 <desc>
16112 Invalid event, must be first.
16113 </desc>
16114 </const>
16115
16116 <const name="Any" value="1">
16117 <desc>
16118 Wildcard for all events.
16119 Events of this type are never delivered, and only used in
16120 <link to="IEventSource::registerListener"/> call to simplify registration.
16121 </desc>
16122 </const>
16123
16124 <const name="Vetoable" value="2">
16125 <desc>
16126 Wildcard for all vetoable events. Events of this type are never delivered, and only
16127 used in <link to="IEventSource::registerListener"/> call to simplify registration.
16128 </desc>
16129 </const>
16130
16131 <const name="MachineEvent" value="3">
16132 <desc>
16133 Wildcard for all machine events. Events of this type are never delivered, and only used in
16134 <link to="IEventSource::registerListener"/> call to simplify registration.
16135 </desc>
16136 </const>
16137
16138 <const name="SnapshotEvent" value="4">
16139 <desc>
16140 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
16141 <link to="IEventSource::registerListener"/> call to simplify registration.
16142 </desc>
16143 </const>
16144
16145 <const name="InputEvent" value="5">
16146 <desc>
16147 Wildcard for all input device (keyboard, mouse) events.
16148 Events of this type are never delivered, and only used in
16149 <link to="IEventSource::registerListener"/> call to simplify registration.
16150 </desc>
16151 </const>
16152
16153 <const name="LastWildcard" value="31">
16154 <desc>
16155 Last wildcard.
16156 </desc>
16157 </const>
16158
16159 <const name="OnMachineStateChanged" value="32">
16160 <desc>
16161 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
16162 </desc>
16163 </const>
16164 <const name="OnMachineDataChanged" value="33">
16165 <desc>
16166 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
16167 </desc>
16168 </const>
16169 <const name="OnExtraDataChanged" value="34">
16170 <desc>
16171 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
16172 </desc>
16173 </const>
16174 <const name="OnExtraDataCanChange" value="35">
16175 <desc>
16176 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
16177 </desc>
16178 </const>
16179 <const name="OnMediumRegistered" value="36">
16180 <desc>
16181 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
16182 </desc>
16183 </const>
16184 <const name="OnMachineRegistered" value="37">
16185 <desc>
16186 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
16187 </desc>
16188 </const>
16189 <const name="OnSessionStateChanged" value="38">
16190 <desc>
16191 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
16192 </desc>
16193 </const>
16194 <const name="OnSnapshotTaken" value="39">
16195 <desc>
16196 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
16197 </desc>
16198 </const>
16199 <const name="OnSnapshotDeleted" value="40">
16200 <desc>
16201 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
16202 </desc>
16203 </const>
16204 <const name="OnSnapshotChanged" value="41">
16205 <desc>
16206 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
16207 </desc>
16208 </const>
16209 <const name="OnGuestPropertyChanged" value="42">
16210 <desc>
16211 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
16212 </desc>
16213 </const>
16214 <!-- Console events -->
16215 <const name="OnMousePointerShapeChanged" value="43">
16216 <desc>
16217 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
16218 </desc>
16219 </const>
16220 <const name="OnMouseCapabilityChanged" value="44">
16221 <desc>
16222 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
16223 </desc>
16224 </const>
16225 <const name="OnKeyboardLedsChanged" value="45">
16226 <desc>
16227 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
16228 </desc>
16229 </const>
16230 <const name="OnStateChanged" value="46">
16231 <desc>
16232 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
16233 </desc>
16234 </const>
16235 <const name="OnAdditionsStateChanged" value="47">
16236 <desc>
16237 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
16238 </desc>
16239 </const>
16240 <const name="OnNetworkAdapterChanged" value="48">
16241 <desc>
16242 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
16243 </desc>
16244 </const>
16245 <const name="OnSerialPortChanged" value="49">
16246 <desc>
16247 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
16248 </desc>
16249 </const>
16250 <const name="OnParallelPortChanged" value="50">
16251 <desc>
16252 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
16253 </desc>
16254 </const>
16255 <const name="OnStorageControllerChanged" value="51">
16256 <desc>
16257 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
16258 </desc>
16259 </const>
16260 <const name="OnMediumChanged" value="52">
16261 <desc>
16262 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
16263 </desc>
16264 </const>
16265 <const name="OnVRDEServerChanged" value="53">
16266 <desc>
16267 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
16268 </desc>
16269 </const>
16270 <const name="OnUSBControllerChanged" value="54">
16271 <desc>
16272 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
16273 </desc>
16274 </const>
16275 <const name="OnUSBDeviceStateChanged" value="55">
16276 <desc>
16277 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
16278 </desc>
16279 </const>
16280 <const name="OnSharedFolderChanged" value="56">
16281 <desc>
16282 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
16283 </desc>
16284 </const>
16285 <const name="OnRuntimeError" value="57">
16286 <desc>
16287 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
16288 </desc>
16289 </const>
16290 <const name="OnCanShowWindow" value="58">
16291 <desc>
16292 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
16293 </desc>
16294 </const>
16295 <const name="OnShowWindow" value="59">
16296 <desc>
16297 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
16298 </desc>
16299 </const>
16300 <const name="OnCPUChanged" value="60">
16301 <desc>
16302 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
16303 </desc>
16304 </const>
16305 <const name="OnVRDEServerInfoChanged" value="61">
16306 <desc>
16307 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
16308 </desc>
16309 </const>
16310 <const name="OnEventSourceChanged" value="62">
16311 <desc>
16312 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
16313 </desc>
16314 </const>
16315 <const name="OnCPUExecutionCapChanged" value="63">
16316 <desc>
16317 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
16318 </desc>
16319 </const>
16320 <const name="OnGuestKeyboard" value="64">
16321 <desc>
16322 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
16323 </desc>
16324 </const>
16325 <const name="OnGuestMouse" value="65">
16326 <desc>
16327 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
16328 </desc>
16329 </const>
16330 <const name="OnNATRedirect" value="66">
16331 <desc>
16332 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
16333 </desc>
16334 </const>
16335 <const name="OnHostPciDevicePlug" value="67">
16336 <desc>
16337 See <link to="IHostPciDevicePlugEvent">IHostPciDevicePlugEvent</link>.
16338 </desc>
16339 </const>
16340 <const name="OnVBoxSVCAvailabilityChanged" value="68">
16341 <desc>
16342 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
16343 </desc>
16344 </const>
16345 <const name="OnBandwidthGroupChanged" value="69">
16346 <desc>
16347 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
16348 </desc>
16349 </const>
16350 <const name="OnGuestMonitorChanged" value="70">
16351 <desc>
16352 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
16353 </desc>
16354 </const>
16355 <const name="OnStorageDeviceChanged" value="71">
16356 <desc>
16357 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
16358 </desc>
16359 </const>
16360
16361 <!-- Last event marker -->
16362 <const name="Last" value="72">
16363 <desc>
16364 Must be last event, used for iterations and structures relying on numerical event values.
16365 </desc>
16366 </const>
16367
16368 </enum>
16369
16370 <interface
16371 name="IEventSource" extends="$unknown"
16372 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
16373 wsmap="managed"
16374 >
16375 <desc>
16376 Event source. Generally, any object which could generate events can be an event source,
16377 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
16378 an event source can work with listeners in either active or passive mode. In active mode it is up to
16379 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
16380 event source keeps track of pending events for each listener and returns available events on demand.
16381
16382 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
16383 </desc>
16384
16385 <method name="createListener">
16386 <desc>
16387 Creates a new listener object, useful for passive mode.
16388 </desc>
16389 <param name="listener" type="IEventListener" dir="return"/>
16390 </method>
16391
16392 <method name="createAggregator">
16393 <desc>
16394 Creates an aggregator event source, collecting events from multiple sources.
16395 This way a single listener can listen for events coming from multiple sources,
16396 using a single blocking <link to="#getEvent"/> on the returned aggregator.
16397 </desc>
16398 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
16399 <desc>
16400 Subordinate event source this one aggregatres.
16401 </desc>
16402 </param>
16403 <param name="result" type="IEventSource" dir="return">
16404 <desc>
16405 Event source aggregating passed sources.
16406 </desc>
16407 </param>
16408 </method>
16409
16410 <method name="registerListener">
16411 <desc>
16412 Register an event listener.
16413
16414 <note>
16415 To avoid system overload, the VirtualBox server process checks if passive event
16416 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
16417 current implementation, if more than 500 pending events are detected for a passive
16418 event listener, it is forcefully unregistered by the system, and further
16419 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
16420 </note>
16421 </desc>
16422 <param name="listener" type="IEventListener" dir="in">
16423 <desc>Listener to register.</desc>
16424 </param>
16425 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
16426 <desc>
16427 Event types listener is interested in. One can use wildcards like -
16428 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
16429 than one event.
16430 </desc>
16431 </param>
16432 <param name="active" type="boolean" dir="in">
16433 <desc>
16434 Which mode this listener is operating in.
16435 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
16436 In passive mode, an internal event queue is created for this this IEventListener.
16437 For each event coming in, it is added to queues for all interested registered passive
16438 listeners. It is then up to the external code to call the listener's
16439 <link to="IEventListener::handleEvent" /> method. When done with an event, the
16440 external code must call <link to="#eventProcessed" />.
16441 </desc>
16442 </param>
16443 </method>
16444
16445 <method name="unregisterListener">
16446 <desc>
16447 Unregister an event listener. If listener is passive, and some waitable events are still
16448 in queue they are marked as processed automatically.
16449 </desc>
16450 <param name="listener" type="IEventListener" dir="in">
16451 <desc>Listener to unregister.</desc>
16452 </param>
16453 </method>
16454
16455 <method name="fireEvent">
16456 <desc>
16457 Fire an event for this source.
16458 </desc>
16459 <param name="event" type="IEvent" dir="in">
16460 <desc>Event to deliver.</desc>
16461 </param>
16462 <param name="timeout" type="long" dir="in">
16463 <desc>
16464 Maximum time to wait for event processing (if event is waitable), in ms;
16465 0 = no wait, -1 = indefinite wait.
16466 </desc>
16467 </param>
16468 <param name="result" type="boolean" dir="return">
16469 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
16470 </param>
16471 </method>
16472
16473 <method name="getEvent">
16474 <desc>
16475 Get events from this peer's event queue (for passive mode). Calling this method
16476 regularly is required for passive event listeners to avoid system overload;
16477 see <link to="IEventSource::registerListener" /> for details.
16478
16479 <result name="VBOX_E_OBJECT_NOT_FOUND">
16480 Listener is not registered, or autounregistered.
16481 </result>
16482 </desc>
16483 <param name="listener" type="IEventListener" dir="in">
16484 <desc>Which listener to get data for.</desc>
16485 </param>
16486 <param name="timeout" type="long" dir="in">
16487 <desc>
16488 Maximum time to wait for events, in ms;
16489 0 = no wait, -1 = indefinite wait.
16490 </desc>
16491 </param>
16492 <param name="event" type="IEvent" dir="return">
16493 <desc>Event retrieved, or null if none available.</desc>
16494 </param>
16495 </method>
16496
16497 <method name="eventProcessed">
16498 <desc>
16499 Must be called for waitable events after a particular listener finished its
16500 event processing. When all listeners of a particular event have called this
16501 method, the system will then call <link to="IEvent::setProcessed" />.
16502 </desc>
16503 <param name="listener" type="IEventListener" dir="in">
16504 <desc>Which listener processed event.</desc>
16505 </param>
16506 <param name="event" type="IEvent" dir="in">
16507 <desc>Which event.</desc>
16508 </param>
16509 </method>
16510
16511 </interface>
16512
16513 <interface
16514 name="IEventListener" extends="$unknown"
16515 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
16516 wsmap="managed"
16517 >
16518 <desc>
16519 Event listener. An event listener can work in either active or passive mode, depending on the way
16520 it was registered.
16521 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
16522 </desc>
16523
16524 <method name="handleEvent">
16525 <desc>
16526 Handle event callback for active listeners. It is not called for
16527 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
16528 and having received acknowledgement from all passive listeners via
16529 <link to="IEventSource::eventProcessed"/>, the event is marked as
16530 processed and <link to="IEvent::waitProcessed"/> will return
16531 immediately.
16532 </desc>
16533 <param name="event" type="IEvent" dir="in">
16534 <desc>Event available.</desc>
16535 </param>
16536 </method>
16537
16538 </interface>
16539
16540 <interface
16541 name="IEvent" extends="$unknown"
16542 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
16543 wsmap="managed"
16544 >
16545 <desc>
16546 Abstract parent interface for VirtualBox events. Actual events will typically implement
16547 a more specific interface which derives from this (see below).
16548
16549 <b>Introduction to VirtualBox events</b>
16550
16551 Generally speaking, an event (represented by this interface) signals that something
16552 happened, while an event listener (see <link to="IEventListener" />) represents an
16553 entity that is interested in certain events. In order for this to work with
16554 unidirectional protocols (i.e. web services), the concepts of passive and active
16555 listener are used.
16556
16557 Event consumers can register themselves as listeners, providing an array of
16558 events they are interested in (see <link to="IEventSource::registerListener" />).
16559 When an event triggers, the listener is notified about the event. The exact
16560 mechanism of the notification depends on whether the listener was registered as
16561 an active or passive listener:
16562
16563 <ul>
16564 <li>An active listener is very similar to a callback: it is a function invoked
16565 by the API. As opposed to the callbacks that were used in the API before
16566 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
16567 </li>
16568
16569 <li>Passive listeners are somewhat trickier to implement, but do not require
16570 a client function to be callable, which is not an option with scripting
16571 languages or web service clients. Internally the <link to="IEventSource" />
16572 implementation maintains an event queue for each passive listener, and
16573 newly arrived events are put in this queue. When the listener calls
16574 <link to="IEventSource::getEvent"/>, first element from its internal event
16575 queue is returned. When the client completes processing of an event,
16576 the <link to="IEventSource::eventProcessed" /> function must be called,
16577 acknowledging that the event was processed. It supports implementing
16578 waitable events. On passive listener unregistration, all events from its
16579 queue are auto-acknowledged.
16580 </li>
16581 </ul>
16582
16583 Waitable events are useful in situations where the event generator wants to track
16584 delivery or a party wants to wait until all listeners have completed the event. A
16585 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
16586 listeners might veto a certain action, and thus the event producer has to make
16587 sure that all listeners have processed the event and not vetoed before taking
16588 the action.
16589
16590 A given event may have both passive and active listeners at the same time.
16591
16592 <b>Using events</b>
16593
16594 Any VirtualBox object capable of producing externally visible events provides an
16595 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
16596 This event source object is notified by VirtualBox once something has happened, so
16597 consumers may register event listeners with this event source. To register a listener,
16598 an object implementing the <link to="IEventListener" /> interface must be provided.
16599 For active listeners, such an object is typically created by the consumer, while for
16600 passive listeners <link to="IEventSource::createListener" /> should be used. Please
16601 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
16602
16603 Once created, the listener must be registered to listen for the desired events
16604 (see <link to="IEventSource::registerListener" />), providing an array of
16605 <link to="VBoxEventType" /> enums. Those elements can either be the individual
16606 event IDs or wildcards matching multiple event IDs.
16607
16608 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
16609 called automatically when the event is triggered, while passive listeners have to call
16610 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
16611 an event processing loop.
16612
16613 The IEvent interface is an abstract parent interface for all such VirtualBox events
16614 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
16615 or the event processing loop is to check the <link to="#type" /> attribute of the event and
16616 then cast to the appropriate specific interface using @c QueryInterface().
16617 </desc>
16618
16619 <attribute name="type" readonly="yes" type="VBoxEventType">
16620 <desc>
16621 Event type.
16622 </desc>
16623 </attribute>
16624
16625 <attribute name="source" readonly="yes" type="IEventSource">
16626 <desc>
16627 Source of this event.
16628 </desc>
16629 </attribute>
16630
16631 <attribute name="waitable" readonly="yes" type="boolean">
16632 <desc>
16633 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
16634 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
16635 as no additional overhead associated with waitability imposed.
16636 Waitable events are needed when one need to be able to wait for particular event processed,
16637 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
16638 until all consumers confirmed events.
16639 </desc>
16640 </attribute>
16641
16642 <method name="setProcessed">
16643 <desc>
16644 Internal method called by the system when all listeners of a particular event have called
16645 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
16646 </desc>
16647 </method>
16648
16649 <method name="waitProcessed">
16650 <desc>
16651 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
16652 described semantics, for non-waitable returns true immediately.
16653 </desc>
16654 <param name="timeout" type="long" dir="in">
16655 <desc>
16656 Maximum time to wait for event processeing, in ms;
16657 0 = no wait, -1 = indefinite wait.
16658 </desc>
16659 </param>
16660 <param name="result" type="boolean" dir="return">
16661 <desc>If this event was processed before timeout.</desc>
16662 </param>
16663 </method>
16664 </interface>
16665
16666
16667 <interface
16668 name="IReusableEvent" extends="IEvent"
16669 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
16670 wsmap="managed"
16671 >
16672 <desc>Base abstract interface for all reusable events.</desc>
16673
16674 <attribute name="generation" readonly="yes" type="unsigned long">
16675 <desc>Current generation of event, incremented on reuse.</desc>
16676 </attribute>
16677
16678 <method name="reuse">
16679 <desc>
16680 Marks an event as reused, increments 'generation', fields shall no
16681 longer be considered valid.
16682 </desc>
16683 </method>
16684 </interface>
16685
16686 <interface
16687 name="IMachineEvent" extends="IEvent"
16688 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
16689 wsmap="managed" id="MachineEvent"
16690 >
16691 <desc>Base abstract interface for all machine events.</desc>
16692
16693 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
16694 <desc>ID of the machine this event relates to.</desc>
16695 </attribute>
16696
16697 </interface>
16698
16699 <interface
16700 name="IMachineStateChangedEvent" extends="IMachineEvent"
16701 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
16702 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
16703 >
16704 <desc>Machine state change event.</desc>
16705
16706 <attribute name="state" readonly="yes" type="MachineState">
16707 <desc>New execution state.</desc>
16708 </attribute>
16709 </interface>
16710
16711 <interface
16712 name="IMachineDataChangedEvent" extends="IMachineEvent"
16713 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
16714 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
16715 >
16716 <desc>
16717 Any of the settings of the given machine has changed.
16718 </desc>
16719
16720 <attribute name="temporary" readonly="yes" type="boolean">
16721 <desc>@c true if the settings change is temporary. All permanent
16722 settings changes will trigger an event, and only temporary settings
16723 changes for running VMs will trigger an event. Note: sending events
16724 for temporary changes is NOT IMPLEMENTED.</desc>
16725 </attribute>
16726 </interface>
16727
16728 <interface
16729 name="IMediumRegisteredEvent" extends="IEvent"
16730 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
16731 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
16732 >
16733 <desc>
16734 The given medium was registered or unregistered
16735 within this VirtualBox installation.
16736 </desc>
16737
16738 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
16739 <desc>ID of the medium this event relates to.</desc>
16740 </attribute>
16741
16742 <attribute name="mediumType" readonly="yes" type="DeviceType">
16743 <desc>Type of the medium this event relates to.</desc>
16744 </attribute>
16745
16746 <attribute name="registered" type="boolean" readonly="yes">
16747 <desc>
16748 If @c true, the medium was registered, otherwise it was
16749 unregistered.
16750 </desc>
16751 </attribute>
16752 </interface>
16753
16754 <interface
16755 name="IMachineRegisteredEvent" extends="IMachineEvent"
16756 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
16757 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
16758 >
16759 <desc>
16760 The given machine was registered or unregistered
16761 within this VirtualBox installation.
16762 </desc>
16763
16764 <attribute name="registered" type="boolean" readonly="yes">
16765 <desc>
16766 If @c true, the machine was registered, otherwise it was
16767 unregistered.
16768 </desc>
16769 </attribute>
16770 </interface>
16771
16772 <interface
16773 name="ISessionStateChangedEvent" extends="IMachineEvent"
16774 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
16775 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
16776 >
16777 <desc>
16778 The state of the session for the given machine was changed.
16779 <see><link to="IMachine::sessionState"/></see>
16780 </desc>
16781
16782 <attribute name="state" type="SessionState" readonly="yes">
16783 <desc>
16784 New session state.
16785 </desc>
16786 </attribute>
16787 </interface>
16788
16789 <interface
16790 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
16791 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
16792 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
16793 >
16794 <desc>
16795 Notification when a guest property has changed.
16796 </desc>
16797
16798 <attribute name="name" readonly="yes" type="wstring">
16799 <desc>
16800 The name of the property that has changed.
16801 </desc>
16802 </attribute>
16803
16804 <attribute name="value" readonly="yes" type="wstring">
16805 <desc>
16806 The new property value.
16807 </desc>
16808 </attribute>
16809
16810 <attribute name="flags" readonly="yes" type="wstring">
16811 <desc>
16812 The new property flags.
16813 </desc>
16814 </attribute>
16815
16816 </interface>
16817
16818 <interface
16819 name="ISnapshotEvent" extends="IMachineEvent"
16820 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
16821 wsmap="managed" id="SnapshotEvent"
16822 >
16823 <desc>Base interface for all snapshot events.</desc>
16824
16825 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
16826 <desc>ID of the snapshot this event relates to.</desc>
16827 </attribute>
16828
16829 </interface>
16830
16831 <interface
16832 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
16833 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
16834 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
16835 >
16836 <desc>
16837 A new snapshot of the machine has been taken.
16838 <see><link to="ISnapshot"/></see>
16839 </desc>
16840 </interface>
16841
16842 <interface
16843 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
16844 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
16845 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
16846 >
16847 <desc>
16848 Snapshot of the given machine has been deleted.
16849
16850 <note>
16851 This notification is delivered <b>after</b> the snapshot
16852 object has been uninitialized on the server (so that any
16853 attempt to call its methods will return an error).
16854 </note>
16855
16856 <see><link to="ISnapshot"/></see>
16857 </desc>
16858 </interface>
16859
16860 <interface
16861 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
16862 uuid="07541941-8079-447a-a33e-47a69c7980db"
16863 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
16864 >
16865 <desc>
16866 Snapshot properties (name and/or description) have been changed.
16867 <see><link to="ISnapshot"/></see>
16868 </desc>
16869 </interface>
16870
16871 <interface
16872 name="IMousePointerShapeChangedEvent" extends="IEvent"
16873 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
16874 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
16875 >
16876 <desc>
16877 Notification when the guest mouse pointer shape has
16878 changed. The new shape data is given.
16879 </desc>
16880
16881 <attribute name="visible" type="boolean" readonly="yes">
16882 <desc>
16883 Flag whether the pointer is visible.
16884 </desc>
16885 </attribute>
16886 <attribute name="alpha" type="boolean" readonly="yes">
16887 <desc>
16888 Flag whether the pointer has an alpha channel.
16889 </desc>
16890 </attribute>
16891 <attribute name="xhot" type="unsigned long" readonly="yes">
16892 <desc>
16893 The pointer hot spot X coordinate.
16894 </desc>
16895 </attribute>
16896 <attribute name="yhot" type="unsigned long" readonly="yes">
16897 <desc>
16898 The pointer hot spot Y coordinate.
16899 </desc>
16900 </attribute>
16901 <attribute name="width" type="unsigned long" readonly="yes">
16902 <desc>
16903 Width of the pointer shape in pixels.
16904 </desc>
16905 </attribute>
16906 <attribute name="height" type="unsigned long" readonly="yes">
16907 <desc>
16908 Height of the pointer shape in pixels.
16909 </desc>
16910 </attribute>
16911 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
16912 <desc>
16913 Shape buffer arrays.
16914
16915 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
16916 followed by a 32-bpp XOR (color) mask.
16917
16918 For pointers without alpha channel the XOR mask pixels are 32
16919 bit values: (lsb)BGR0(msb). For pointers with alpha channel
16920 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
16921
16922 An AND mask is used for pointers with alpha channel, so if the
16923 callback does not support alpha, the pointer could be
16924 displayed as a normal color pointer.
16925
16926 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
16927 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
16928 height</tt>. The padding bits at the end of each scanline are
16929 undefined.
16930
16931 The XOR mask follows the AND mask on the next 4-byte aligned
16932 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
16933 Bytes in the gap between the AND and the XOR mask are undefined.
16934 The XOR mask scanlines have no gap between them and the size of
16935 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
16936
16937 <note>
16938 If @a shape is 0, only the pointer visibility is changed.
16939 </note>
16940 </desc>
16941 </attribute>
16942 </interface>
16943
16944 <interface
16945 name="IMouseCapabilityChangedEvent" extends="IEvent"
16946 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
16947 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
16948 >
16949 <desc>
16950 Notification when the mouse capabilities reported by the
16951 guest have changed. The new capabilities are passed.
16952 </desc>
16953 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
16954 <desc>
16955 Supports absolute coordinates.
16956 </desc>
16957 </attribute>
16958 <attribute name="supportsRelative" type="boolean" readonly="yes">
16959 <desc>
16960 Supports relative coordinates.
16961 </desc>
16962 </attribute>
16963 <attribute name="needsHostCursor" type="boolean" readonly="yes">
16964 <desc>
16965 If host cursor is needed.
16966 </desc>
16967 </attribute>
16968 </interface>
16969
16970 <interface
16971 name="IKeyboardLedsChangedEvent" extends="IEvent"
16972 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
16973 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
16974 >
16975 <desc>
16976 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
16977 to alter the state of the keyboard LEDs.
16978 </desc>
16979 <attribute name="numLock" type="boolean" readonly="yes">
16980 <desc>
16981 NumLock status.
16982 </desc>
16983 </attribute>
16984 <attribute name="capsLock" type="boolean" readonly="yes">
16985 <desc>
16986 CapsLock status.
16987 </desc>
16988 </attribute>
16989 <attribute name="scrollLock" type="boolean" readonly="yes">
16990 <desc>
16991 ScrollLock status.
16992 </desc>
16993 </attribute>
16994 </interface>
16995
16996 <interface
16997 name="IStateChangedEvent" extends="IEvent"
16998 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
16999 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
17000 >
17001 <desc>
17002 Notification when the execution state of the machine has changed.
17003 The new state is given.
17004 </desc>
17005 <attribute name="state" type="MachineState" readonly="yes">
17006 <desc>
17007 New machine state.
17008 </desc>
17009 </attribute>
17010 </interface>
17011
17012 <interface
17013 name="IAdditionsStateChangedEvent" extends="IEvent"
17014 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
17015 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
17016 >
17017 <desc>
17018 Notification when a Guest Additions property changes.
17019 Interested callees should query IGuest attributes to
17020 find out what has changed.
17021 </desc>
17022 </interface>
17023
17024 <interface
17025 name="INetworkAdapterChangedEvent" extends="IEvent"
17026 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
17027 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
17028 >
17029 <desc>
17030 Notification when a property of one of the
17031 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
17032 changes. Interested callees should use INetworkAdapter methods and
17033 attributes to find out what has changed.
17034 </desc>
17035 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
17036 <desc>
17037 Network adapter that is subject to change.
17038 </desc>
17039 </attribute>
17040 </interface>
17041
17042 <interface
17043 name="ISerialPortChangedEvent" extends="IEvent"
17044 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
17045 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
17046 >
17047 <desc>
17048 Notification when a property of one of the
17049 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
17050 Interested callees should use ISerialPort methods and attributes
17051 to find out what has changed.
17052 </desc>
17053 <attribute name="serialPort" type="ISerialPort" readonly="yes">
17054 <desc>
17055 Serial port that is subject to change.
17056 </desc>
17057 </attribute>
17058 </interface>
17059
17060 <interface
17061 name="IParallelPortChangedEvent" extends="IEvent"
17062 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
17063 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
17064 >
17065 <desc>
17066 Notification when a property of one of the
17067 virtual <link to="IMachine::getParallelPort">parallel ports</link>
17068 changes. Interested callees should use ISerialPort methods and
17069 attributes to find out what has changed.
17070 </desc>
17071 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
17072 <desc>
17073 Parallel port that is subject to change.
17074 </desc>
17075 </attribute>
17076 </interface>
17077
17078 <interface
17079 name="IStorageControllerChangedEvent" extends="IEvent"
17080 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
17081 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
17082 >
17083 <desc>
17084 Notification when a
17085 <link to="IMachine::mediumAttachments">medium attachment</link>
17086 changes.
17087 </desc>
17088 </interface>
17089
17090 <interface
17091 name="IMediumChangedEvent" extends="IEvent"
17092 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
17093 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
17094 >
17095 <desc>
17096 Notification when a
17097 <link to="IMachine::mediumAttachments">medium attachment</link>
17098 changes.
17099 </desc>
17100 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
17101 <desc>
17102 Medium attachment that is subject to change.
17103 </desc>
17104 </attribute>
17105 </interface>
17106
17107 <interface
17108 name="ICPUChangedEvent" extends="IEvent"
17109 uuid="D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"
17110 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
17111 >
17112 <desc>
17113 Notification when a CPU changes.
17114 </desc>
17115 <attribute name="cpu" type="unsigned long" readonly="yes">
17116 <desc>
17117 The CPU which changed.
17118 </desc>
17119 </attribute>
17120 <attribute name="add" type="boolean" readonly="yes">
17121 <desc>
17122 Flag whether the CPU was added or removed.
17123 </desc>
17124 </attribute>
17125 </interface>
17126
17127 <interface
17128 name="ICPUExecutionCapChangedEvent" extends="IEvent"
17129 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
17130 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
17131 >
17132 <desc>
17133 Notification when the CPU execution cap changes.
17134 </desc>
17135 <attribute name="executionCap" type="unsigned long" readonly="yes">
17136 <desc>
17137 The new CPU execution cap value. (1-100)
17138 </desc>
17139 </attribute>
17140 </interface>
17141
17142 <interface
17143 name="IGuestKeyboardEvent" extends="IEvent"
17144 uuid="88394258-7006-40d4-b339-472ee3801844"
17145 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
17146 >
17147 <desc>
17148 Notification when guest keyboard event happens.
17149 </desc>
17150 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
17151 <desc>
17152 Array of scancodes.
17153 </desc>
17154 </attribute>
17155 </interface>
17156
17157 <interface
17158 name="IGuestMouseEvent" extends="IReusableEvent"
17159 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
17160 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
17161 >
17162 <desc>
17163 Notification when guest mouse event happens.
17164 </desc>
17165
17166 <attribute name="absolute" type="boolean" readonly="yes">
17167 <desc>
17168 If this event is relative or absolute.
17169 </desc>
17170 </attribute>
17171
17172 <attribute name="x" type="long" readonly="yes">
17173 <desc>
17174 New X position, or X delta.
17175 </desc>
17176 </attribute>
17177
17178 <attribute name="y" type="long" readonly="yes">
17179 <desc>
17180 New Y position, or Y delta.
17181 </desc>
17182 </attribute>
17183
17184 <attribute name="z" type="long" readonly="yes">
17185 <desc>
17186 Z delta.
17187 </desc>
17188 </attribute>
17189
17190 <attribute name="w" type="long" readonly="yes">
17191 <desc>
17192 W delta.
17193 </desc>
17194 </attribute>
17195
17196 <attribute name="buttons" type="long" readonly="yes">
17197 <desc>
17198 Button state bitmask.
17199 </desc>
17200 </attribute>
17201
17202 </interface>
17203
17204
17205 <interface
17206 name="IVRDEServerChangedEvent" extends="IEvent"
17207 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
17208 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
17209 >
17210 <desc>
17211 Notification when a property of the
17212 <link to="IMachine::VRDEServer">VRDE server</link> changes.
17213 Interested callees should use IVRDEServer methods and attributes to
17214 find out what has changed.
17215 </desc>
17216 </interface>
17217
17218 <interface
17219 name="IVRDEServerInfoChangedEvent" extends="IEvent"
17220 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
17221 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
17222 >
17223 <desc>
17224 Notification when the status of the VRDE server changes. Interested callees
17225 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
17226 attributes to find out what is the current status.
17227 </desc>
17228 </interface>
17229
17230 <interface
17231 name="IUSBControllerChangedEvent" extends="IEvent"
17232 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
17233 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
17234 >
17235 <desc>
17236 Notification when a property of the virtual
17237 <link to="IMachine::USBController">USB controller</link> changes.
17238 Interested callees should use IUSBController methods and attributes to
17239 find out what has changed.
17240 </desc>
17241 </interface>
17242
17243 <interface
17244 name="IUSBDeviceStateChangedEvent" extends="IEvent"
17245 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
17246 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
17247 >
17248 <desc>
17249 Notification when a USB device is attached to or detached from
17250 the virtual USB controller.
17251
17252 This notification is sent as a result of the indirect
17253 request to attach the device because it matches one of the
17254 machine USB filters, or as a result of the direct request
17255 issued by <link to="IConsole::attachUSBDevice"/> or
17256 <link to="IConsole::detachUSBDevice"/>.
17257
17258 This notification is sent in case of both a succeeded and a
17259 failed request completion. When the request succeeds, the
17260 @a error parameter is @c null, and the given device has been
17261 already added to (when @a attached is @c true) or removed from
17262 (when @a attached is @c false) the collection represented by
17263 <link to="IConsole::USBDevices"/>. On failure, the collection
17264 doesn't change and the @a error parameter represents the error
17265 message describing the failure.
17266 </desc>
17267 <attribute name="device" type="IUSBDevice" readonly="yes">
17268 <desc>
17269 Device that is subject to state change.
17270 </desc>
17271 </attribute>
17272 <attribute name="attached" type="boolean" readonly="yes">
17273 <desc>
17274 @c true if the device was attached and @c false otherwise.
17275 </desc>
17276 </attribute>
17277 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
17278 <desc>
17279 @c null on success or an error message object on failure.
17280 </desc>
17281 </attribute>
17282 </interface>
17283
17284 <interface
17285 name="ISharedFolderChangedEvent" extends="IEvent"
17286 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
17287 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
17288 >
17289 <desc>
17290 Notification when a shared folder is added or removed.
17291 The @a scope argument defines one of three scopes:
17292 <link to="IVirtualBox::sharedFolders">global shared folders</link>
17293 (<link to="Scope_Global">Global</link>),
17294 <link to="IMachine::sharedFolders">permanent shared folders</link> of
17295 the machine (<link to="Scope_Machine">Machine</link>) or <link
17296 to="IConsole::sharedFolders">transient shared folders</link> of the
17297 machine (<link to="Scope_Session">Session</link>). Interested callees
17298 should use query the corresponding collections to find out what has
17299 changed.
17300 </desc>
17301 <attribute name="scope" type="Scope" readonly="yes">
17302 <desc>
17303 Scope of the notification.
17304 </desc>
17305 </attribute>
17306 </interface>
17307
17308 <interface
17309 name="IRuntimeErrorEvent" extends="IEvent"
17310 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
17311 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
17312 >
17313 <desc>
17314 Notification when an error happens during the virtual
17315 machine execution.
17316
17317 There are three kinds of runtime errors:
17318 <ul>
17319 <li><i>fatal</i></li>
17320 <li><i>non-fatal with retry</i></li>
17321 <li><i>non-fatal warnings</i></li>
17322 </ul>
17323
17324 <b>Fatal</b> errors are indicated by the @a fatal parameter set
17325 to @c true. In case of fatal errors, the virtual machine
17326 execution is always paused before calling this notification, and
17327 the notification handler is supposed either to immediately save
17328 the virtual machine state using <link to="IConsole::saveState"/>
17329 or power it off using <link to="IConsole::powerDown"/>.
17330 Resuming the execution can lead to unpredictable results.
17331
17332 <b>Non-fatal</b> errors and warnings are indicated by the
17333 @a fatal parameter set to @c false. If the virtual machine
17334 is in the Paused state by the time the error notification is
17335 received, it means that the user can <i>try to resume</i> the machine
17336 execution after attempting to solve the problem that caused the
17337 error. In this case, the notification handler is supposed
17338 to show an appropriate message to the user (depending on the
17339 value of the @a id parameter) that offers several actions such
17340 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
17341 wants to retry, the notification handler should continue
17342 the machine execution using the <link to="IConsole::resume"/>
17343 call. If the machine execution is not Paused during this
17344 notification, then it means this notification is a <i>warning</i>
17345 (for example, about a fatal condition that can happen very soon);
17346 no immediate action is required from the user, the machine
17347 continues its normal execution.
17348
17349 Note that in either case the notification handler
17350 <b>must not</b> perform any action directly on a thread
17351 where this notification is called. Everything it is allowed to
17352 do is to post a message to another thread that will then talk
17353 to the user and take the corresponding action.
17354
17355 Currently, the following error identifiers are known:
17356 <ul>
17357 <li><tt>"HostMemoryLow"</tt></li>
17358 <li><tt>"HostAudioNotResponding"</tt></li>
17359 <li><tt>"VDIStorageFull"</tt></li>
17360 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
17361 </ul>
17362 </desc>
17363 <attribute name="fatal" type="boolean" readonly="yes">
17364 <desc>
17365 Whether the error is fatal or not.
17366 </desc>
17367 </attribute>
17368 <attribute name="id" type="wstring" readonly="yes">
17369 <desc>
17370 Error identifier.
17371 </desc>
17372 </attribute>
17373 <attribute name="message" type="wstring" readonly="yes">
17374 <desc>
17375 Optional error message.
17376 </desc>
17377 </attribute>
17378 </interface>
17379
17380
17381 <interface
17382 name="IEventSourceChangedEvent" extends="IEvent"
17383 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
17384 waitable="yes"
17385 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
17386 >
17387 <desc>
17388 Notification when an event source state changes (listener added or removed).
17389 </desc>
17390
17391 <attribute name="listener" type="IEventListener" readonly="yes">
17392 <desc>
17393 Event listener which has changed.
17394 </desc>
17395 </attribute>
17396
17397 <attribute name="add" type="boolean" readonly="yes">
17398 <desc>
17399 Flag whether listener was added or removed.
17400 </desc>
17401 </attribute>
17402 </interface>
17403
17404 <interface
17405 name="IExtraDataChangedEvent" extends="IEvent"
17406 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
17407 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
17408 >
17409 <desc>
17410 Notification when machine specific or global extra data
17411 has changed.
17412 </desc>
17413 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
17414 <desc>
17415 ID of the machine this event relates to.
17416 Null for global extra data changes.
17417 </desc>
17418 </attribute>
17419 <attribute name="key" type="wstring" readonly="yes">
17420 <desc>
17421 Extra data key that has changed.
17422 </desc>
17423 </attribute>
17424 <attribute name="value" type="wstring" readonly="yes">
17425 <desc>
17426 Extra data value for the given key.
17427 </desc>
17428 </attribute>
17429 </interface>
17430
17431 <interface
17432 name="IVetoEvent" extends="IEvent"
17433 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
17434 wsmap="managed"
17435 >
17436 <desc>Base abstract interface for veto events.</desc>
17437
17438 <method name="addVeto">
17439 <desc>
17440 Adds a veto on this event.
17441 </desc>
17442 <param name="reason" type="wstring" dir="in">
17443 <desc>
17444 Reason for veto, could be null or empty string.
17445 </desc>
17446 </param>
17447 </method>
17448
17449 <method name="isVetoed">
17450 <desc>
17451 If this event was vetoed.
17452 </desc>
17453 <param name="result" type="boolean" dir="return">
17454 <desc>
17455 Reason for veto.
17456 </desc>
17457 </param>
17458 </method>
17459
17460 <method name="getVetos">
17461 <desc>
17462 Current veto reason list, if size is 0 - no veto.
17463 </desc>
17464 <param name="result" type="wstring" dir="return" safearray="yes">
17465 <desc>
17466 Array of reasons for veto provided by different event handlers.
17467 </desc>
17468 </param>
17469 </method>
17470
17471 </interface>
17472
17473 <interface
17474 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
17475 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
17476 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
17477 waitable="true"
17478 >
17479 <desc>
17480 Notification when someone tries to change extra data for
17481 either the given machine or (if @c null) global extra data.
17482 This gives the chance to veto against changes.
17483 </desc>
17484 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
17485 <desc>
17486 ID of the machine this event relates to.
17487 Null for global extra data changes.
17488 </desc>
17489 </attribute>
17490 <attribute name="key" type="wstring" readonly="yes">
17491 <desc>
17492 Extra data key that has changed.
17493 </desc>
17494 </attribute>
17495 <attribute name="value" type="wstring" readonly="yes">
17496 <desc>
17497 Extra data value for the given key.
17498 </desc>
17499 </attribute>
17500 </interface>
17501
17502 <interface
17503 name="ICanShowWindowEvent" extends="IVetoEvent"
17504 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
17505 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
17506 waitable="true"
17507 >
17508 <desc>
17509 Notification when a call to
17510 <link to="IMachine::canShowConsoleWindow"/> is made by a
17511 front-end to check if a subsequent call to
17512 <link to="IMachine::showConsoleWindow"/> can succeed.
17513
17514 The callee should give an answer appropriate to the current
17515 machine state using event veto. This answer must
17516 remain valid at least until the next
17517 <link to="IConsole::state">machine state</link> change.
17518 </desc>
17519 </interface>
17520
17521 <interface
17522 name="IShowWindowEvent" extends="IEvent"
17523 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
17524 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
17525 waitable="true"
17526 >
17527 <desc>
17528 Notification when a call to
17529 <link to="IMachine::showConsoleWindow"/>
17530 requests the console window to be activated and brought to
17531 foreground on the desktop of the host PC.
17532
17533 This notification should cause the VM console process to
17534 perform the requested action as described above. If it is
17535 impossible to do it at a time of this notification, this
17536 method should return a failure.
17537
17538 Note that many modern window managers on many platforms
17539 implement some sort of focus stealing prevention logic, so
17540 that it may be impossible to activate a window without the
17541 help of the currently active application (which is supposedly
17542 an initiator of this notification). In this case, this method
17543 must return a non-zero identifier that represents the
17544 top-level window of the VM console process. The caller, if it
17545 represents a currently active process, is responsible to use
17546 this identifier (in a platform-dependent manner) to perform
17547 actual window activation.
17548
17549 This method must set @a winId to zero if it has performed all
17550 actions necessary to complete the request and the console
17551 window is now active and in foreground, to indicate that no
17552 further action is required on the caller's side.
17553 </desc>
17554 <attribute name="winId" type="long long">
17555 <desc>
17556 Platform-dependent identifier of the top-level VM console
17557 window, or zero if this method has performed all actions
17558 necessary to implement the <i>show window</i> semantics for
17559 the given platform and/or this VirtualBox front-end.
17560 </desc>
17561 </attribute>
17562 </interface>
17563
17564 <interface
17565 name="INATRedirectEvent" extends="IMachineEvent"
17566 uuid="57DE97D7-3CBB-42A0-888F-610D5832D16B"
17567 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
17568 >
17569 <desc>
17570 Notification when NAT redirect rule added or removed.
17571 </desc>
17572 <attribute name="slot" type="unsigned long" readonly="yes">
17573 <desc>
17574 Adapter which NAT attached to.
17575 </desc>
17576 </attribute>
17577 <attribute name="remove" type="boolean" readonly="yes">
17578 <desc>
17579 Whether rule remove or add.
17580 </desc>
17581 </attribute>
17582 <attribute name="name" type="wstring" readonly="yes">
17583 <desc>
17584 Name of the rule.
17585 </desc>
17586 </attribute>
17587 <attribute name="proto" type="NATProtocol" readonly="yes">
17588 <desc>
17589 Protocol (TCP or UDP) of the redirect rule.
17590 </desc>
17591 </attribute>
17592 <attribute name="hostIp" type="wstring" readonly="yes">
17593 <desc>
17594 Host ip address to bind socket on.
17595 </desc>
17596 </attribute>
17597 <attribute name="hostPort" type="long" readonly="yes">
17598 <desc>
17599 Host port to bind socket on.
17600 </desc>
17601 </attribute>
17602 <attribute name="guestIp" type="wstring" readonly="yes">
17603 <desc>
17604 Guest ip address to redirect to.
17605 </desc>
17606 </attribute>
17607 <attribute name="guestPort" type="long" readonly="yes">
17608 <desc>
17609 Guest port to redirect to.
17610 </desc>
17611 </attribute>
17612 </interface>
17613
17614 <interface
17615 name="IHostPciDevicePlugEvent" extends="IMachineEvent"
17616 waitable="yes"
17617 uuid="9cebfc27-c579-4965-8eb7-d31794cd7dcf"
17618 wsmap="managed" autogen="VBoxEvent" id="OnHostPciDevicePlug"
17619 >
17620 <desc>
17621 Notification when host PCI device is plugged/unplugged. Plugging
17622 usually takes place on VM startup, unplug - when
17623 <link to="IMachine::detachHostPciDevice"/> is called.
17624
17625 <see><link to="IMachine::detachHostPciDevice"/></see>
17626
17627 </desc>
17628
17629 <attribute name="plugged" type="boolean" readonly="yes">
17630 <desc>
17631 If device successfully plugged or unplugged.
17632 </desc>
17633 </attribute>
17634
17635 <attribute name="success" type="boolean" readonly="yes">
17636 <desc>
17637 If operation was successful, if false - 'message' attribute
17638 may be of interest.
17639 </desc>
17640 </attribute>
17641
17642 <attribute name="attachment" type="IPciDeviceAttachment" readonly="yes">
17643 <desc>
17644 Attachment info for this device.
17645 </desc>
17646 </attribute>
17647
17648 <attribute name="message" type="wstring" readonly="yes">
17649 <desc>
17650 Optional error message.
17651 </desc>
17652 </attribute>
17653
17654 </interface>
17655
17656 <interface
17657 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
17658 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
17659 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
17660 >
17661 <desc>
17662 Notification when VBoxSVC becomes unavailable (due to a crash or similar
17663 unexpected circumstances) or available again.
17664 </desc>
17665
17666 <attribute name="available" type="boolean" readonly="yes">
17667 <desc>
17668 Whether VBoxSVC is available now.
17669 </desc>
17670 </attribute>
17671 </interface>
17672
17673 <interface
17674 name="IBandwidthGroupChangedEvent" extends="IEvent"
17675 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
17676 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
17677 >
17678 <desc>
17679 Notification when one of the bandwidth groups changed
17680 </desc>
17681 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
17682 <desc>
17683 The changed bandwidth group.
17684 </desc>
17685 </attribute>
17686 </interface>
17687
17688 <enum
17689 name="GuestMonitorChangedEventType"
17690 uuid="ef172985-7e36-4297-95be-e46396968d66"
17691 >
17692
17693 <desc>
17694 How the guest monitor has been changed.
17695 </desc>
17696
17697 <const name="Enabled" value="0">
17698 <desc>
17699 The guest monitor has been enabled by the guest.
17700 </desc>
17701 </const>
17702
17703 <const name="Disabled" value="1">
17704 <desc>
17705 The guest monitor has been disabled by the guest.
17706 </desc>
17707 </const>
17708
17709 <const name="NewOrigin" value="2">
17710 <desc>
17711 The guest monitor origin has changed in the guest.
17712 </desc>
17713 </const>
17714 </enum>
17715
17716 <interface
17717 name="IGuestMonitorChangedEvent" extends="IEvent"
17718 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
17719 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
17720 >
17721 <desc>
17722 Notification when the guest enables one of its monitors.
17723 </desc>
17724
17725 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
17726 <desc>
17727 What was changed for this guest monitor.
17728 </desc>
17729 </attribute>
17730
17731 <attribute name="screenId" type="unsigned long" readonly="yes">
17732 <desc>
17733 The monitor which was changed.
17734 </desc>
17735 </attribute>
17736
17737 <attribute name="originX" type="unsigned long" readonly="yes">
17738 <desc>
17739 Physical X origin relative to the primary screen.
17740 Valid for Enabled and NewOrigin.
17741 </desc>
17742 </attribute>
17743
17744 <attribute name="originY" type="unsigned long" readonly="yes">
17745 <desc>
17746 Physical Y origin relative to the primary screen.
17747 Valid for Enabled and NewOrigin.
17748 </desc>
17749 </attribute>
17750
17751 <attribute name="width" type="unsigned long" readonly="yes">
17752 <desc>
17753 Width of the screen.
17754 Valid for Enabled.
17755 </desc>
17756 </attribute>
17757
17758 <attribute name="height" type="unsigned long" readonly="yes">
17759 <desc>
17760 Height of the screen.
17761 Valid for Enabled.
17762 </desc>
17763 </attribute>
17764
17765 </interface>
17766
17767 <interface
17768 name="IStorageDeviceChangedEvent" extends="IEvent"
17769 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
17770 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
17771 >
17772 <desc>
17773 Notification when a
17774 <link to="IMachine::mediumAttachments">storage device</link>
17775 is attached or removed.
17776 </desc>
17777 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
17778 <desc>
17779 Storage device that is subject to change.
17780 </desc>
17781 </attribute>
17782 <attribute name="removed" type="boolean" readonly="yes">
17783 <desc>
17784 Flag whether the device was removed or added to the VM.
17785 </desc>
17786 </attribute>
17787 </interface>
17788
17789 <module name="VBoxSVC" context="LocalServer">
17790 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
17791 namespace="virtualbox.org">
17792 <interface name="IVirtualBox" default="yes"/>
17793 </class>
17794 </module>
17795
17796 <module name="VBoxC" context="InprocServer" threadingModel="Free">
17797 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
17798 namespace="virtualbox.org">
17799 <interface name="IVirtualBoxClient" default="yes"/>
17800 </class>
17801
17802 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
17803 namespace="virtualbox.org">
17804 <interface name="ISession" default="yes"/>
17805 </class>
17806 </module>
17807
17808</library>
17809
17810</idl>
17811
17812<!-- 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