VirtualBox

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

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

Guest Control 2.0: Use timeouts for IFile operations, renamed size to toRead.

  • Property svn:eol-style set to native
File size: 739.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2012 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109
110 The naming of methods and attributes is very clearly defined: they all start
111 with a lowercase letter (except if they start with an acronym), and are using
112 CamelCase style otherwise. This naming only applies to the IDL description,
113 and is modified by the various language bindings (some convert the first
114 character to upper case, some not). See the SDK reference for more details
115 about how to call a method or attribute from a specific programming language.
116</desc>
117
118<if target="midl">
119 <cpp line="enum {"/>
120 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
121 <cpp line=" kTypeLibraryMinorVersion = 0"/>
122 <cpp line="};"/>
123</if>
124
125<if target="xpidl">
126 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
127 <cpp>
128/* currently, nsISupportsImpl.h lacks the below-like macros */
129
130#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
131#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
132#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
133#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
134
135
136#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
137# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
138 NS_IMPL_THREADSAFE_ADDREF(_class) \
139 NS_IMPL_THREADSAFE_RELEASE(_class) \
140 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
141 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
142#endif
143
144#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
145# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
146 NS_IMPL_THREADSAFE_ADDREF(_class) \
147 NS_IMPL_THREADSAFE_RELEASE(_class) \
148 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
149 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
150#endif
151
152#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
153# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
154 NS_IMPL_THREADSAFE_ADDREF(_class) \
155 NS_IMPL_THREADSAFE_RELEASE(_class) \
156 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
157 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
158#endif
159
160#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
161# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
162 NS_IMPL_THREADSAFE_ADDREF(_class) \
163 NS_IMPL_THREADSAFE_RELEASE(_class) \
164 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
165 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
166#endif
167
168#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
169# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
170 NS_INTERFACE_MAP_BEGIN(_class) \
171 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
172 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
173 NS_IMPL_QUERY_CLASSINFO(_class) \
174 NS_INTERFACE_MAP_END
175#endif
176
177#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
178# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_INTERFACE_MAP_BEGIN(_class) \
181 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
182 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
183 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
184 NS_IMPL_QUERY_CLASSINFO(_class) \
185 NS_INTERFACE_MAP_END
186#endif
187
188#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
189# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
190 _i2, _ic2, _i3, _ic3) \
191 NS_INTERFACE_MAP_BEGIN(_class) \
192 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
193 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
194 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
195 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
196 NS_IMPL_QUERY_CLASSINFO(_class) \
197 NS_INTERFACE_MAP_END
198#endif
199
200#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
201#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
202#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
203
204#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
205# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
206 NS_IMPL_THREADSAFE_ADDREF(_class) \
207 NS_IMPL_THREADSAFE_RELEASE(_class) \
208 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
209 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
210#endif
211
212#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
213# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
214 _i2, _ic2) \
215 NS_IMPL_THREADSAFE_ADDREF(_class) \
216 NS_IMPL_THREADSAFE_RELEASE(_class) \
217 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
218 _i2, _ic2) \
219 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
220#endif
221
222#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
223# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
224 _i2, _ic2, _i3, _ic3) \
225 NS_IMPL_THREADSAFE_ADDREF(_class) \
226 NS_IMPL_THREADSAFE_RELEASE(_class) \
227 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
228 _i2, _ic2, _i3, _ic3) \
229 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
230#endif
231
232 </cpp>
233</if>
234
235<library
236 name="VirtualBox"
237 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
238 version="1.3"
239 desc="VirtualBox Type Library"
240 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
241 supportsErrorInfo="yes"
242>
243
244
245 <!--
246 // COM result codes for VirtualBox
247 /////////////////////////////////////////////////////////////////////////
248 -->
249
250 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
251 <desc>
252 This section describes all VirtualBox-specific COM result codes that may
253 be returned by methods of VirtualBox COM interfaces in addition to
254 standard COM result codes.
255
256 Note that along with the result code, every VirtualBox method returns
257 extended error information through the IVirtualBoxErrorInfo interface on
258 failure. This interface is a preferred way to present the error to the end
259 user because it contains a human readable description of the error. Raw
260 result codes, both standard and described in this section, are intended to
261 be used by programs to analyze the reason of a failure and select an
262 appropriate course of action without involving the end user (for example,
263 retry the operation later or make a different call).
264
265 The standard COM result codes that may originate from our methods include:
266
267 <table>
268 <tr><td>E_INVALIDARG</td>
269 <td>
270 Returned when the value of the method's argument is not within the range
271 of valid values. This should not be confused with situations when the
272 value is within the range but simply doesn't suit the current object
273 state and there is a possibility that it will be accepted later (in such
274 cases VirtualBox-specific codes are returned, for example,
275 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
276 </td>
277 </tr>
278 <tr><td>E_POINTER</td>
279 <td>
280 Returned if a memory pointer for the output argument is invalid (for
281 example, @c null). When pointers representing input arguments (such
282 as strings) are invalid, E_INVALIDARG is returned.
283 </td>
284 </tr>
285 <tr><td>E_ACCESSDENIED</td>
286 <td>
287 Returned when the called object is not ready. Since the lifetime of a
288 public COM object cannot be fully controlled by the implementation,
289 VirtualBox maintains the readiness state for all objects it creates and
290 returns this code in response to any method call on the object that was
291 deactivated by VirtualBox and is not functioning any more.
292 </td>
293 </tr>
294 <tr><td>E_OUTOFMEMORY</td>
295 <td>
296 Returned when a memory allocation operation fails.
297 </td>
298 </tr>
299 </table>
300 </desc>
301 </descGroup>
302
303 <!--
304 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
305 everything in <result>/<desc> after (and including) the first dot, so express
306 the matter of the error code in the first sentence and keep it short.
307 -->
308
309 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
310 <desc>
311 Object corresponding to the supplied arguments does not exist.
312 </desc>
313 </result>
314
315 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
316 <desc>
317 Current virtual machine state prevents the operation.
318 </desc>
319 </result>
320
321 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
322 <desc>
323 Virtual machine error occurred attempting the operation.
324 </desc>
325 </result>
326
327 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
328 <desc>
329 File not accessible or erroneous file contents.
330 </desc>
331 </result>
332
333 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
334 <desc>
335 Runtime subsystem error.
336 </desc>
337 </result>
338
339 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
340 <desc>
341 Pluggable Device Manager error.
342 </desc>
343 </result>
344
345 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
346 <desc>
347 Current object state prohibits operation.
348 </desc>
349 </result>
350
351 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
352 <desc>
353 Host operating system related error.
354 </desc>
355 </result>
356
357 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
358 <desc>
359 Requested operation is not supported.
360 </desc>
361 </result>
362
363 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
364 <desc>
365 Invalid XML found.
366 </desc>
367 </result>
368
369 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
370 <desc>
371 Current session state prohibits operation.
372 </desc>
373 </result>
374
375 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
376 <desc>
377 Object being in use prohibits operation.
378 </desc>
379 </result>
380
381 <!--
382 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
383 everything in <result>/<desc> after (and including) the first dot, so express
384 the matter of the error code in the first sentence and keep it short.
385 -->
386
387 <descGroup/>
388
389 <!--
390 // all common enums
391 /////////////////////////////////////////////////////////////////////////
392 -->
393
394 <enum
395 name="SettingsVersion"
396 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
397 >
398 <desc>
399 Settings version of VirtualBox settings files. This is written to
400 the "version" attribute of the root "VirtualBox" element in the settings
401 file XML and indicates which VirtualBox version wrote the file.
402 </desc>
403
404 <const name="Null" value="0">
405 <desc>Null value, indicates invalid version.</desc>
406 </const>
407 <const name="v1_0" value="1">
408 <desc>Legacy settings version, not currently supported.</desc>
409 </const>
410 <const name="v1_1" value="2">
411 <desc>Legacy settings version, not currently supported.</desc>
412 </const>
413 <const name="v1_2" value="3">
414 <desc>Legacy settings version, not currently supported.</desc>
415 </const>
416 <const name="v1_3pre" value="4">
417 <desc>Legacy settings version, not currently supported.</desc>
418 </const>
419 <const name="v1_3" value="5">
420 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
421 <!--
422 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
423 -->
424 </const>
425 <const name="v1_4" value="6">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
429 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
430 -->
431 </const>
432 <const name="v1_5" value="7">
433 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
434 <!--
435 2008-09-04: 2.0.0 released
436 2008-11-20: settings version 1.5 introduced
437 2008-12-17: 2.1.0 released
438 Machine changes:
439 guest OS identifiers changed;
440 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
441 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
442 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
443 -->
444 </const>
445 <const name="v1_6" value="8">
446 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
447 <!--
448 2008-12-17: 2.1.0 released
449 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
450 2009-04-08: 2.2.0 released
451 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
452 -->
453 </const>
454 <const name="v1_7" value="9">
455 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
456 <!--
457 2008-12-17: 2.1.0 released
458 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
459 2009-04-08: 2.2.0 released
460 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
461 Machine changes: HardDiskAttachments is now StorageControllers (done)
462 -->
463 </const>
464 <const name="v1_8" value="10">
465 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
466 <!--
467 Machine additions: Display/@accelerate2DVideo (done)
468 -->
469 </const>
470 <const name="v1_9" value="11">
471 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
472 <!--
473 The big storage controller / DVD / Floppy rework (done)
474 -->
475 </const>
476 <const name="v1_10" value="12">
477 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
478 <!--
479 Machine changes: RTC localOrUTC (done)
480 CPU hot-plug support
481 -->
482 </const>
483 <const name="v1_11" value="13">
484 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
485 <!--
486 Machine changes: HD Audio controller, per-machine disk registries,
487 /@format attribute for DVD and floppy images.
488 -->
489 </const>
490 <const name="v1_12" value="14">
491 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
492 <!--
493 Machine changes: raw PCI device attachment;
494 NetworkAdapter changes: bandwidth group.
495 -->
496 </const>
497 <const name="v1_13" value="15">
498 <desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
499 <!--
500 Machine changes: tracing config, groups, autostart;
501 NetworkAdapter changes: unit for bandwidth group limits.
502 -->
503 </const>
504
505 <const name="Future" value="99999">
506 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
507 </const>
508 </enum>
509
510 <enum
511 name="AccessMode"
512 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
513 >
514 <desc>
515 Access mode for opening files.
516 </desc>
517
518 <const name="ReadOnly" value="1"/>
519 <const name="ReadWrite" value="2"/>
520 </enum>
521
522 <enum
523 name="MachineState"
524 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
525 >
526 <desc>
527 Virtual machine execution state.
528
529 This enumeration represents possible values of the <link
530 to="IMachine::state"/> attribute.
531
532 Below is the basic virtual machine state diagram. It shows how the state
533 changes during virtual machine execution. The text in square braces shows
534 a method of the IConsole interface that performs the given state
535 transition.
536
537 <pre>
538 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
539 V |
540 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
541 | | | | V |
542 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
543 | | ^ | ^ |
544 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
545 | ^ | | | |
546 | | +-----------------------------------------+-|-------------------+ +
547 | | | | |
548 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
549 | | | |
550 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
551 | | |
552 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
553 </pre>
554
555 Note that states to the right from PoweredOff, Aborted and Saved in the
556 above diagram are called <i>online VM states</i>. These states
557 represent the virtual machine which is being executed in a dedicated
558 process (usually with a GUI window attached to it where you can see the
559 activity of the virtual machine and interact with it). There are two
560 special pseudo-states, FirstOnline and LastOnline, that can be used in
561 relational expressions to detect if the given machine state is online or
562 not:
563
564 <pre>
565 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
566 machine.GetState() &lt;= MachineState_LastOnline)
567 {
568 ...the machine is being executed...
569 }
570 </pre>
571
572 When the virtual machine is in one of the online VM states (that is, being
573 executed), only a few machine settings can be modified. Methods working
574 with such settings contain an explicit note about that. An attempt to
575 change any other setting or perform a modifying operation during this time
576 will result in the @c VBOX_E_INVALID_VM_STATE error.
577
578 All online states except Running, Paused and Stuck are transitional: they
579 represent temporary conditions of the virtual machine that will last as
580 long as the operation that initiated such a condition.
581
582 The Stuck state is a special case. It means that execution of the machine
583 has reached the "Guru Meditation" condition. This condition indicates an
584 internal VMM (virtual machine manager) failure which may happen as a
585 result of either an unhandled low-level virtual hardware exception or one
586 of the recompiler exceptions (such as the <i>too-many-traps</i>
587 condition).
588
589 Note also that any online VM state may transit to the Aborted state. This
590 happens if the process that is executing the virtual machine terminates
591 unexpectedly (for example, crashes). Other than that, the Aborted state is
592 equivalent to PoweredOff.
593
594 There are also a few additional state diagrams that do not deal with
595 virtual machine execution and therefore are shown separately. The states
596 shown on these diagrams are called <i>offline VM states</i> (this includes
597 PoweredOff, Aborted and Saved too).
598
599 The first diagram shows what happens when a lengthy setup operation is
600 being executed (such as <link to="IMachine::attachDevice"/>).
601
602 <pre>
603 +----------------------------------(same state as before the call)------+
604 | |
605 +-&gt; PoweredOff --+ |
606 | | |
607 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
608 | |
609 +-&gt; Saved -------+
610 </pre>
611
612 The next two diagrams demonstrate the process of taking a snapshot of a
613 powered off virtual machine, restoring the state to that as of a snapshot
614 or deleting a snapshot, respectively.
615
616 <pre>
617 +----------------------------------(same state as before the call)------+
618 | |
619 +-&gt; PoweredOff --+ |
620 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
621 +-&gt; Aborted -----+
622
623 +-&gt; PoweredOff --+
624 | |
625 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
626 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
627 +-&gt; Saved -------+ |
628 | |
629 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
630 </pre>
631
632 Note that the Saving state is present in both the offline state group and
633 online state group. Currently, the only way to determine what group is
634 assumed in a particular case is to remember the previous machine state: if
635 it was Running or Paused, then Saving is an online state, otherwise it is
636 an offline state. This inconsistency may be removed in one of the future
637 versions of VirtualBox by adding a new state.
638
639 <note internal="yes">
640 For whoever decides to touch this enum: In order to keep the
641 comparisons involving FirstOnline and LastOnline pseudo-states valid,
642 the numeric values of these states must be correspondingly updated if
643 needed: for any online VM state, the condition
644 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
645 @c true. The same relates to transient states for which
646 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
647 @c true.
648 </note>
649 </desc>
650
651 <const name="Null" value="0">
652 <desc>Null value (never used by the API).</desc>
653 </const>
654 <const name="PoweredOff" value="1">
655 <desc>
656 The machine is not running and has no saved execution state; it has
657 either never been started or been shut down successfully.
658 </desc>
659 </const>
660 <const name="Saved" value="2">
661 <desc>
662 The machine is not currently running, but the execution state of the machine
663 has been saved to an external file when it was running, from where
664 it can be resumed.
665 </desc>
666 </const>
667 <const name="Teleported" value="3">
668 <desc>
669 The machine was teleported to a different host (or process) and then
670 powered off. Take care when powering it on again may corrupt resources
671 it shares with the teleportation target (e.g. disk and network).
672 </desc>
673 </const>
674 <const name="Aborted" value="4">
675 <desc>
676 The process running the machine has terminated abnormally. This may
677 indicate a crash of the VM process in host execution context, or
678 the VM process has been terminated externally.
679 </desc>
680 </const>
681 <const name="Running" value="5">
682 <desc>
683 The machine is currently being executed.
684 <note internal="yes">
685 For whoever decides to touch this enum: In order to keep the
686 comparisons in the old source code valid, this state must immediately
687 precede the Paused state.
688 TODO: Lift this spectacularly wonderful restriction.
689 </note>
690 </desc>
691 </const>
692 <const name="Paused" value="6">
693 <desc>
694 Execution of the machine has been paused.
695 <note internal="yes">
696 For whoever decides to touch this enum: In order to keep the
697 comparisons in the old source code valid, this state must immediately
698 follow the Running state.
699 TODO: Lift this spectacularly wonderful restriction.
700 </note>
701 </desc>
702 </const>
703 <const name="Stuck" value="7">
704 <desc>
705 Execution of the machine has reached the "Guru Meditation"
706 condition. This indicates a severe error in the hypervisor itself.
707 <note internal="yes">
708 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
709 "Guru", perhaps? Or are there some other VMM states that are
710 intended to be lumped in here as well?
711 </note>
712 </desc>
713 </const>
714 <const name="Teleporting" value="8">
715 <desc>
716 The machine is about to be teleported to a different host or process.
717 It is possible to pause a machine in this state, but it will go to the
718 @c TeleportingPausedVM state and it will not be
719 possible to resume it again unless the teleportation fails.
720 </desc>
721 </const>
722 <const name="LiveSnapshotting" value="9">
723 <desc>
724 A live snapshot is being taken. The machine is running normally, but
725 some of the runtime configuration options are inaccessible. Also, if
726 paused while in this state it will transition to
727 @c Saving and it will not be resume the
728 execution until the snapshot operation has completed.
729 </desc>
730 </const>
731 <const name="Starting" value="10">
732 <desc>
733 Machine is being started after powering it on from a
734 zero execution state.
735 </desc>
736 </const>
737 <const name="Stopping" value="11">
738 <desc>
739 Machine is being normally stopped powering it off, or after the guest OS
740 has initiated a shutdown sequence.
741 </desc>
742 </const>
743 <const name="Saving" value="12">
744 <desc>
745 Machine is saving its execution state to a file, or an online
746 snapshot of the machine is being taken.
747 </desc>
748 </const>
749 <const name="Restoring" value="13">
750 <desc>
751 Execution state of the machine is being restored from a file
752 after powering it on from the saved execution state.
753 </desc>
754 </const>
755 <const name="TeleportingPausedVM" value="14">
756 <desc>
757 The machine is being teleported to another host or process, but it is
758 not running. This is the paused variant of the
759 @c state.
760 </desc>
761 </const>
762 <const name="TeleportingIn" value="15">
763 <desc>
764 Teleporting the machine state in from another host or process.
765 </desc>
766 </const>
767 <const name="FaultTolerantSyncing" value="16">
768 <desc>
769 The machine is being synced with a fault tolerant VM running elsewhere.
770 </desc>
771 </const>
772 <const name="DeletingSnapshotOnline" value="17">
773 <desc>
774 Like @c DeletingSnapshot, but the merging of media is ongoing in
775 the background while the machine is running.
776 </desc>
777 </const>
778 <const name="DeletingSnapshotPaused" value="18">
779 <desc>
780 Like @c DeletingSnapshotOnline, but the machine was paused when the
781 merging of differencing media was started.
782 </desc>
783 </const>
784 <const name="RestoringSnapshot" value="19">
785 <desc>
786 A machine snapshot is being restored; this typically does not take long.
787 </desc>
788 </const>
789 <const name="DeletingSnapshot" value="20">
790 <desc>
791 A machine snapshot is being deleted; this can take a long time since this
792 may require merging differencing media. This value indicates that the
793 machine is not running while the snapshot is being deleted.
794 </desc>
795 </const>
796 <const name="SettingUp" value="21">
797 <desc>
798 Lengthy setup operation is in progress.
799 </desc>
800 </const>
801
802 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
803 <desc>
804 Pseudo-state: first online state (for use in relational expressions).
805 </desc>
806 </const>
807 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
808 <desc>
809 Pseudo-state: last online state (for use in relational expressions).
810 </desc>
811 </const>
812
813 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
814 <desc>
815 Pseudo-state: first transient state (for use in relational expressions).
816 </desc>
817 </const>
818 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
819 <desc>
820 Pseudo-state: last transient state (for use in relational expressions).
821 </desc>
822 </const>
823
824 </enum>
825
826 <enum
827 name="SessionState"
828 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
829 >
830 <desc>
831 Session state. This enumeration represents possible values of
832 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
833 attributes.
834 </desc>
835
836 <const name="Null" value="0">
837 <desc>Null value (never used by the API).</desc>
838 </const>
839 <const name="Unlocked" value="1">
840 <desc>
841 In <link to="IMachine::sessionState"/>, this means that the machine
842 is not locked for any sessions.
843
844 In <link to="ISession::state"/>, this means that no machine is
845 currently locked for this session.
846 </desc>
847 </const>
848 <const name="Locked" value="2">
849 <desc>
850 In <link to="IMachine::sessionState"/>, this means that the machine
851 is currently locked for a session, whose process identifier can
852 then be found in the <link to="IMachine::sessionPID" /> attribute.
853
854 In <link to="ISession::state"/>, this means that a machine is
855 currently locked for this session, and the mutable machine object
856 can be found in the <link to="ISession::machine"/> attribute
857 (see <link to="IMachine::lockMachine" /> for details).
858 </desc>
859 </const>
860 <const name="Spawning" value="3">
861 <desc>
862 A new process is being spawned for the machine as a result of
863 <link to="IMachine::launchVMProcess"/> call. This state also occurs
864 as a short transient state during an <link to="IMachine::lockMachine"/>
865 call.
866 </desc>
867 </const>
868 <const name="Unlocking" value="4">
869 <desc>
870 The session is being unlocked.
871 </desc>
872 </const>
873 </enum>
874
875 <enum
876 name="CPUPropertyType"
877 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
878 >
879 <desc>
880 Virtual CPU property type. This enumeration represents possible values of the
881 IMachine get- and setCPUProperty methods.
882 </desc>
883 <const name="Null" value="0">
884 <desc>Null value (never used by the API).</desc>
885 </const>
886 <const name="PAE" value="1">
887 <desc>
888 This setting determines whether VirtualBox will expose the Physical Address
889 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
890 is not available, it will not be reported.
891 </desc>
892 </const>
893 <const name="Synthetic" value="2">
894 <desc>
895 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
896 teleporting between host systems that differ significantly.
897 </desc>
898 </const>
899 </enum>
900
901
902 <enum
903 name="HWVirtExPropertyType"
904 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
905 >
906 <desc>
907 Hardware virtualization property type. This enumeration represents possible values
908 for the <link to="IMachine::getHWVirtExProperty"/> and
909 <link to="IMachine::setHWVirtExProperty"/> methods.
910 </desc>
911 <const name="Null" value="0">
912 <desc>Null value (never used by the API).</desc>
913 </const>
914 <const name="Enabled" value="1">
915 <desc>
916 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
917 such extensions are not available, they will not be used.
918 </desc>
919 </const>
920 <const name="Exclusive" value="2">
921 <desc>
922 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
923 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
924 feature of the host. To share these with other hypervisors, you must disable this property.
925 </desc>
926 </const>
927 <const name="VPID" value="3">
928 <desc>
929 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
930 </desc>
931 </const>
932 <const name="NestedPaging" value="4">
933 <desc>
934 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
935 </desc>
936 </const>
937 <const name="LargePages" value="5">
938 <desc>
939 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
940 </desc>
941 </const>
942 <const name="Force" value="6">
943 <desc>
944 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
945 not set, there will be an automatic fallback to software virtualization.
946 </desc>
947 </const>
948 </enum>
949
950 <enum
951 name="FaultToleranceState"
952 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
953 >
954 <desc>
955 Used with <link to="IMachine::faultToleranceState" />.
956 </desc>
957 <const name="Inactive" value="1">
958 <desc>No fault tolerance enabled.</desc>
959 </const>
960 <const name="Master" value="2">
961 <desc>Fault tolerant master VM.</desc>
962 </const>
963 <const name="Standby" value="3">
964 <desc>Fault tolerant standby VM.</desc>
965 </const>
966 </enum>
967
968 <enum
969 name="LockType"
970 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
971 >
972 <desc>
973 Used with <link to="IMachine::lockMachine" />.
974 </desc>
975 <const name="Write" value="2">
976 <desc>Lock the machine for writing.</desc>
977 </const>
978 <const name="Shared" value="1">
979 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
980 </const>
981 <const name="VM" value="3">
982 <desc>Lock the machine for writing, and create objects necessary for
983 running a VM in this process.</desc>
984 </const>
985 </enum>
986
987 <enum
988 name="SessionType"
989 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
990 >
991 <desc>
992 Session type. This enumeration represents possible values of the
993 <link to="ISession::type"/> attribute.
994 </desc>
995
996 <const name="Null" value="0">
997 <desc>Null value (never used by the API).</desc>
998 </const>
999 <const name="WriteLock" value="1">
1000 <desc>
1001 Session has acquired an exclusive write lock on a machine
1002 using <link to="IMachine::lockMachine"/>.
1003 </desc>
1004 </const>
1005 <const name="Remote" value="2">
1006 <desc>
1007 Session has launched a VM process using
1008 <link to="IMachine::launchVMProcess"/>
1009 </desc>
1010 </const>
1011 <const name="Shared" value="3">
1012 <desc>
1013 Session has obtained a link to another session using
1014 <link to="IMachine::lockMachine"/>
1015 </desc>
1016 </const>
1017 </enum>
1018
1019 <enum
1020 name="DeviceType"
1021 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1022 >
1023 <desc>
1024 Device type.
1025 </desc>
1026 <const name="Null" value="0">
1027 <desc>
1028 Null value, may also mean "no device" (not allowed for
1029 <link to="IConsole::getDeviceActivity"/>).
1030 </desc>
1031 </const>
1032 <const name="Floppy" value="1">
1033 <desc>Floppy device.</desc>
1034 </const>
1035 <const name="DVD" value="2">
1036 <desc>CD/DVD-ROM device.</desc>
1037 </const>
1038 <const name="HardDisk" value="3">
1039 <desc>Hard disk device.</desc>
1040 </const>
1041 <const name="Network" value="4">
1042 <desc>Network device.</desc>
1043 </const>
1044 <const name="USB" value="5">
1045 <desc>USB device.</desc>
1046 </const>
1047 <const name="SharedFolder" value="6">
1048 <desc>Shared folder device.</desc>
1049 </const>
1050 </enum>
1051
1052 <enum
1053 name="DeviceActivity"
1054 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1055 >
1056 <desc>
1057 Device activity for <link to="IConsole::getDeviceActivity"/>.
1058 </desc>
1059
1060 <const name="Null" value="0"/>
1061 <const name="Idle" value="1"/>
1062 <const name="Reading" value="2"/>
1063 <const name="Writing" value="3"/>
1064 </enum>
1065
1066 <enum
1067 name="ClipboardMode"
1068 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1069 >
1070 <desc>
1071 Host-Guest clipboard interchange mode.
1072 </desc>
1073
1074 <const name="Disabled" value="0"/>
1075 <const name="HostToGuest" value="1"/>
1076 <const name="GuestToHost" value="2"/>
1077 <const name="Bidirectional" value="3"/>
1078 </enum>
1079
1080 <enum
1081 name="DragAndDropMode"
1082 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1083 >
1084 <desc>
1085 Drag'n'Drop interchange mode.
1086 </desc>
1087
1088 <const name="Disabled" value="0"/>
1089 <const name="HostToGuest" value="1"/>
1090 <const name="GuestToHost" value="2"/>
1091 <const name="Bidirectional" value="3"/>
1092 </enum>
1093
1094 <enum
1095 name="Scope"
1096 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1097 >
1098 <desc>
1099 Scope of the operation.
1100
1101 A generic enumeration used in various methods to define the action or
1102 argument scope.
1103 </desc>
1104
1105 <const name="Global" value="0"/>
1106 <const name="Machine" value="1"/>
1107 <const name="Session" value="2"/>
1108 </enum>
1109
1110 <enum
1111 name="BIOSBootMenuMode"
1112 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1113 >
1114 <desc>
1115 BIOS boot menu mode.
1116 </desc>
1117
1118 <const name="Disabled" value="0"/>
1119 <const name="MenuOnly" value="1"/>
1120 <const name="MessageAndMenu" value="2"/>
1121 </enum>
1122
1123 <enum
1124 name="ProcessorFeature"
1125 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1126 >
1127 <desc>
1128 CPU features.
1129 </desc>
1130
1131 <const name="HWVirtEx" value="0"/>
1132 <const name="PAE" value="1"/>
1133 <const name="LongMode" value="2"/>
1134 <const name="NestedPaging" value="3"/>
1135 </enum>
1136
1137 <enum
1138 name="FirmwareType"
1139 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1140 >
1141 <desc>
1142 Firmware type.
1143 </desc>
1144 <const name="BIOS" value="1">
1145 <desc>BIOS Firmware.</desc>
1146 </const>
1147 <const name="EFI" value="2">
1148 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1149 </const>
1150 <const name="EFI32" value="3">
1151 <desc>Efi firmware, 32-bit.</desc>
1152 </const>
1153 <const name="EFI64" value="4">
1154 <desc>Efi firmware, 64-bit.</desc>
1155 </const>
1156 <const name="EFIDUAL" value="5">
1157 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1158 </const>
1159 </enum>
1160
1161 <enum
1162 name="PointingHIDType"
1163 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1164 >
1165 <desc>
1166 Type of pointing device used in a virtual machine.
1167 </desc>
1168 <const name="None" value="1">
1169 <desc>No mouse.</desc>
1170 </const>
1171 <const name="PS2Mouse" value="2">
1172 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1173 </const>
1174 <const name="USBMouse" value="3">
1175 <desc>USB mouse (relative pointer).</desc>
1176 </const>
1177 <const name="USBTablet" value="4">
1178 <desc>USB tablet (absolute pointer).</desc>
1179 </const>
1180 <const name="ComboMouse" value="5">
1181 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1182 Using of such device can have negative performance implications. </desc>
1183 </const>
1184 </enum>
1185
1186 <enum
1187 name="KeyboardHIDType"
1188 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1189 >
1190 <desc>
1191 Type of keyboard device used in a virtual machine.
1192 </desc>
1193 <const name="None" value="1">
1194 <desc>No keyboard.</desc>
1195 </const>
1196 <const name="PS2Keyboard" value="2">
1197 <desc>PS/2 keyboard.</desc>
1198 </const>
1199 <const name="USBKeyboard" value="3">
1200 <desc>USB keyboard.</desc>
1201 </const>
1202 <const name="ComboKeyboard" value="4">
1203 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1204 Using of such device can have negative performance implications. </desc>
1205 </const>
1206 </enum>
1207
1208 <!--
1209 // IVirtualBoxErrorInfo
1210 /////////////////////////////////////////////////////////////////////////
1211 -->
1212
1213 <interface
1214 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1215 uuid="f91e6e91-49e1-4fd2-b21e-269003350d06"
1216 supportsErrorInfo="no"
1217 wsmap="managed"
1218 >
1219 <desc>
1220 The IVirtualBoxErrorInfo interface represents extended error information.
1221
1222 Extended error information can be set by VirtualBox components after
1223 unsuccessful or partially successful method invocation. This information
1224 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1225 and then shown to the client in addition to the plain 32-bit result code.
1226
1227 In MS COM, this interface extends the IErrorInfo interface,
1228 in XPCOM, it extends the nsIException interface. In both cases,
1229 it provides a set of common attributes to retrieve error
1230 information.
1231
1232 Sometimes invocation of some component's method may involve methods of
1233 other components that may also fail (independently of this method's
1234 failure), or a series of non-fatal errors may precede a fatal error that
1235 causes method failure. In cases like that, it may be desirable to preserve
1236 information about all errors happened during method invocation and deliver
1237 it to the caller. The <link to="#next"/> attribute is intended
1238 specifically for this purpose and allows to represent a chain of errors
1239 through a single IVirtualBoxErrorInfo object set after method invocation.
1240
1241 <note>errors are stored to a chain in the reverse order, i.e. the
1242 initial error object you query right after method invocation is the last
1243 error set by the callee, the object it points to in the @a next attribute
1244 is the previous error and so on, up to the first error (which is the last
1245 in the chain).</note>
1246 </desc>
1247
1248 <attribute name="resultCode" type="long" readonly="yes">
1249 <desc>
1250 Result code of the error.
1251 Usually, it will be the same as the result code returned
1252 by the method that provided this error information, but not
1253 always. For example, on Win32, CoCreateInstance() will most
1254 likely return E_NOINTERFACE upon unsuccessful component
1255 instantiation attempt, but not the value the component factory
1256 returned. Value is typed 'long', not 'result',
1257 to make interface usable from scripting languages.
1258 <note>
1259 In MS COM, there is no equivalent.
1260 In XPCOM, it is the same as nsIException::result.
1261 </note>
1262 </desc>
1263 </attribute>
1264
1265 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1266 <desc>
1267 UUID of the interface that defined the error.
1268 <note>
1269 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1270 data type.
1271 In XPCOM, there is no equivalent.
1272 </note>
1273 </desc>
1274 </attribute>
1275
1276 <attribute name="component" type="wstring" readonly="yes">
1277 <desc>
1278 Name of the component that generated the error.
1279 <note>
1280 In MS COM, it is the same as IErrorInfo::GetSource.
1281 In XPCOM, there is no equivalent.
1282 </note>
1283 </desc>
1284 </attribute>
1285
1286 <attribute name="text" type="wstring" readonly="yes">
1287 <desc>
1288 Text description of the error.
1289 <note>
1290 In MS COM, it is the same as IErrorInfo::GetDescription.
1291 In XPCOM, it is the same as nsIException::message.
1292 </note>
1293 </desc>
1294 </attribute>
1295
1296 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1297 <desc>
1298 Next error object if there is any, or @c null otherwise.
1299 <note>
1300 In MS COM, there is no equivalent.
1301 In XPCOM, it is the same as nsIException::inner.
1302 </note>
1303 </desc>
1304 </attribute>
1305
1306 </interface>
1307
1308 <!--
1309 // IVirtualBox
1310 /////////////////////////////////////////////////////////////////////////
1311 -->
1312
1313 <interface
1314 name="IDHCPServer" extends="$unknown"
1315 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1316 wsmap="managed"
1317 >
1318 <desc>
1319 The IDHCPServer interface represents the vbox DHCP server configuration.
1320
1321 To enumerate all the DHCP servers on the host, use the
1322 <link to="IVirtualBox::DHCPServers"/> attribute.
1323 </desc>
1324
1325 <attribute name="enabled" type="boolean">
1326 <desc>
1327 specifies if the DHCP server is enabled
1328 </desc>
1329 </attribute>
1330
1331 <attribute name="IPAddress" type="wstring" readonly="yes">
1332 <desc>
1333 specifies server IP
1334 </desc>
1335 </attribute>
1336
1337 <attribute name="networkMask" type="wstring" readonly="yes">
1338 <desc>
1339 specifies server network mask
1340 </desc>
1341 </attribute>
1342
1343 <attribute name="networkName" type="wstring" readonly="yes">
1344 <desc>
1345 specifies internal network name the server is used for
1346 </desc>
1347 </attribute>
1348
1349 <attribute name="lowerIP" type="wstring" readonly="yes">
1350 <desc>
1351 specifies from IP address in server address range
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="upperIP" type="wstring" readonly="yes">
1356 <desc>
1357 specifies to IP address in server address range
1358 </desc>
1359 </attribute>
1360
1361 <method name="setConfiguration">
1362 <desc>
1363 configures the server
1364 <result name="E_INVALIDARG">
1365 invalid configuration supplied
1366 </result>
1367 </desc>
1368 <param name="IPAddress" type="wstring" dir="in">
1369 <desc>
1370 server IP address
1371 </desc>
1372 </param>
1373 <param name="networkMask" type="wstring" dir="in">
1374 <desc>
1375 server network mask
1376 </desc>
1377 </param>
1378 <param name="FromIPAddress" type="wstring" dir="in">
1379 <desc>
1380 server From IP address for address range
1381 </desc>
1382 </param>
1383 <param name="ToIPAddress" type="wstring" dir="in">
1384 <desc>
1385 server To IP address for address range
1386 </desc>
1387 </param>
1388 </method>
1389
1390 <method name="start">
1391 <desc>
1392 Starts DHCP server process.
1393 <result name="E_FAIL">
1394 Failed to start the process.
1395 </result>
1396 </desc>
1397 <param name="networkName" type="wstring" dir="in">
1398 <desc>
1399 Name of internal network DHCP server should attach to.
1400 </desc>
1401 </param>
1402 <param name="trunkName" type="wstring" dir="in">
1403 <desc>
1404 Name of internal network trunk.
1405 </desc>
1406 </param>
1407 <param name="trunkType" type="wstring" dir="in">
1408 <desc>
1409 Type of internal network trunk.
1410 </desc>
1411 </param>
1412 </method>
1413
1414 <method name="stop">
1415 <desc>
1416 Stops DHCP server process.
1417 <result name="E_FAIL">
1418 Failed to stop the process.
1419 </result>
1420 </desc>
1421 </method>
1422 </interface>
1423
1424 <interface
1425 name="IVirtualBox" extends="$unknown"
1426 uuid="5c8814a1-2a35-402d-8680-68e5cb4e72aa"
1427 wsmap="managed"
1428 >
1429 <desc>
1430 The IVirtualBox interface represents the main interface exposed by the
1431 product that provides virtual machine management.
1432
1433 An instance of IVirtualBox is required for the product to do anything
1434 useful. Even though the interface does not expose this, internally,
1435 IVirtualBox is implemented as a singleton and actually lives in the
1436 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1437 IVirtualBox can track the state of all virtual machines on a particular
1438 host, regardless of which frontend started them.
1439
1440 To enumerate all the virtual machines on the host, use the
1441 <link to="IVirtualBox::machines"/> attribute.
1442 </desc>
1443
1444 <attribute name="version" type="wstring" readonly="yes">
1445 <desc>
1446 A string representing the version number of the product. The
1447 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1448 last number represents the build number and will frequently change.
1449
1450 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1451 in prerelease builds. Non-Oracle builds may (/shall) also have a
1452 publisher tag, at the end. The publisher tag starts with an underscore
1453 just like the prerelease build type tag.
1454 </desc>
1455 </attribute>
1456
1457 <attribute name="versionNormalized" type="wstring" readonly="yes">
1458 <desc>
1459 A string representing the version number of the product,
1460 without the publisher information (but still with other tags).
1461 See <link to="#version" />.
1462 </desc>
1463 </attribute>
1464
1465 <attribute name="revision" type="unsigned long" readonly="yes">
1466 <desc>
1467 The internal build revision number of the product.
1468 </desc>
1469 </attribute>
1470
1471 <attribute name="packageType" type="wstring" readonly="yes">
1472 <desc>
1473 A string representing the package type of this product. The
1474 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1475 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1476 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1477 this.
1478 </desc>
1479 </attribute>
1480
1481 <attribute name="APIVersion" type="wstring" readonly="yes">
1482 <desc>
1483 A string representing the VirtualBox API version number. The format is
1484 2 integer numbers divided by an underscore (e.g. 1_0). After the
1485 first public release of packages with a particular API version the
1486 API will not be changed in an incompatible way. Note that this
1487 guarantee does not apply to development builds, and also there is no
1488 guarantee that this version is identical to the first two integer
1489 numbers of the package version.
1490 </desc>
1491 </attribute>
1492
1493 <attribute name="homeFolder" type="wstring" readonly="yes">
1494 <desc>
1495 Full path to the directory where the global settings file,
1496 <tt>VirtualBox.xml</tt>, is stored.
1497
1498 In this version of VirtualBox, the value of this property is
1499 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1500 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1501 as determined by the host OS), and cannot be changed.
1502
1503 This path is also used as the base to resolve relative paths in
1504 places where relative paths are allowed (unless otherwise
1505 expressly indicated).
1506 </desc>
1507 </attribute>
1508
1509 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1510 <desc>
1511 Full name of the global settings file.
1512 The value of this property corresponds to the value of
1513 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1514 </desc>
1515 </attribute>
1516
1517 <attribute name="host" type="IHost" readonly="yes">
1518 <desc>Associated host object.</desc>
1519 </attribute>
1520
1521 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1522 <desc>Associated system information object.</desc>
1523 </attribute>
1524
1525 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1526 <desc>
1527 Array of machine objects registered within this VirtualBox instance.
1528 </desc>
1529 </attribute>
1530
1531 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1532 <desc>
1533 Array of all machine group names which are used by the machines which
1534 are accessible. Each group is only listed once, however they are listed
1535 in no particular order and there is no guarantee that there are no gaps
1536 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1537 is a valid result).
1538 </desc>
1539 </attribute>
1540
1541 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1542 <desc>
1543 Array of medium objects known to this VirtualBox installation.
1544
1545 This array contains only base media. All differencing
1546 media of the given base medium can be enumerated using
1547 <link to="IMedium::children"/>.
1548 </desc>
1549 </attribute>
1550
1551 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1552 <desc>
1553 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1554 </desc>
1555 </attribute>
1556
1557 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1558 <desc>
1559 Array of floppy image objects currently in use by this VirtualBox instance.
1560 </desc>
1561 </attribute>
1562
1563 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1564
1565 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1566
1567 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1568 <desc>
1569 Collection of global shared folders. Global shared folders are
1570 available to all virtual machines.
1571
1572 New shared folders are added to the collection using
1573 <link to="#createSharedFolder"/>. Existing shared folders can be
1574 removed using <link to="#removeSharedFolder"/>.
1575
1576 <note>
1577 In the current version of the product, global shared folders are not
1578 implemented and therefore this collection is always empty.
1579 </note>
1580 </desc>
1581 </attribute>
1582
1583 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1584 <desc>
1585 Associated performance collector object.
1586 </desc>
1587 </attribute>
1588
1589 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1590 <desc>
1591 DHCP servers.
1592 </desc>
1593 </attribute>
1594
1595 <attribute name="eventSource" type="IEventSource" readonly="yes">
1596 <desc>
1597 Event source for VirtualBox events.
1598 </desc>
1599 </attribute>
1600
1601 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1602 <desc>
1603 The extension pack manager.
1604 </desc>
1605 </attribute>
1606
1607
1608 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1609 <desc>
1610 Names of all internal networks.
1611 </desc>
1612 </attribute>
1613
1614 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1615 <desc>
1616 Names of all generic network drivers.
1617 </desc>
1618 </attribute>
1619
1620 <method name="composeMachineFilename">
1621 <desc>
1622 Returns a recommended full path of the settings file name for a new virtual
1623 machine.
1624
1625 This API serves two purposes:
1626
1627 <ul>
1628 <li>It gets called by <link to="#createMachine" /> if @c null or
1629 empty string (which is recommended) is specified for the
1630 @a settingsFile argument there, which means that API should use
1631 a recommended default file name.</li>
1632
1633 <li>It can be called manually by a client software before creating a machine,
1634 e.g. if that client wants to pre-create the machine directory to create
1635 virtual hard disks in that directory together with the new machine
1636 settings file. In that case, the file name should be stripped from the
1637 full settings file path returned by this function to obtain the
1638 machine directory.</li>
1639 </ul>
1640
1641 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1642 details about the machine name.
1643
1644 @a groupName defines which additional subdirectory levels should be
1645 included. It must be either a valid group name or @c null or empty
1646 string which designates that the machine will not be related to a
1647 machine group.
1648
1649 If @a baseFolder is a @c null or empty string (which is recommended), the
1650 default machine settings folder
1651 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1652 a base folder for the created machine, resulting in a file name like
1653 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1654 will be used.
1655
1656 This method does not access the host disks. In particular, it does not check
1657 for whether a machine with this name already exists.
1658 </desc>
1659 <param name="name" type="wstring" dir="in">
1660 <desc>Suggested machine name.</desc>
1661 </param>
1662 <param name="group" type="wstring" dir="in">
1663 <desc>Machine group name for the new machine or machine group. It is
1664 used to determine the right subdirectory.</desc>
1665 </param>
1666 <param name="baseFolder" type="wstring" dir="in">
1667 <desc>Base machine folder (optional).</desc>
1668 </param>
1669 <param name="file" type="wstring" dir="return">
1670 <desc>Fully qualified path where the machine would be created.</desc>
1671 </param>
1672 </method>
1673
1674 <method name="createMachine">
1675 <desc>
1676 Creates a new virtual machine by creating a machine settings file at
1677 the given location.
1678
1679 VirtualBox machine settings files use a custom XML dialect. Starting
1680 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1681 and machine files can be created at arbitrary locations.
1682
1683 However, it is recommended that machines are created in the default
1684 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1685 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1686 @c null or empty string (which is recommended) for the @a settingsFile
1687 argument, <link to="#composeMachineFilename" /> is called automatically
1688 to have such a recommended name composed based on the machine name
1689 given in the @a name argument and the primary group.
1690
1691 If the resulting settings file already exists, this method will fail,
1692 unless @a forceOverwrite is set.
1693
1694 The new machine is created unregistered, with the initial configuration
1695 set according to the specified guest OS type. A typical sequence of
1696 actions to create a new virtual machine is as follows:
1697
1698 <ol>
1699 <li>
1700 Call this method to have a new machine created. The returned machine
1701 object will be "mutable" allowing to change any machine property.
1702 </li>
1703
1704 <li>
1705 Configure the machine using the appropriate attributes and methods.
1706 </li>
1707
1708 <li>
1709 Call <link to="IMachine::saveSettings" /> to write the settings
1710 to the machine's XML settings file. The configuration of the newly
1711 created machine will not be saved to disk until this method is
1712 called.
1713 </li>
1714
1715 <li>
1716 Call <link to="#registerMachine" /> to add the machine to the list
1717 of machines known to VirtualBox.
1718 </li>
1719 </ol>
1720
1721 The specified guest OS type identifier must match an ID of one of known
1722 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1723 array.
1724
1725 Optionally, you may specify an UUID of to assign to the created machine.
1726 However, this is not recommended and you should normally pass an empty
1727 (@c null) UUID to this method so that a new UUID will be automatically
1728 generated for every created machine. You can use UUID
1729 00000000-0000-0000-0000-000000000000 as @c null value.
1730
1731 <note>
1732 There is no way to change the name of the settings file or
1733 subfolder of the created machine directly.
1734 </note>
1735
1736 <result name="VBOX_E_OBJECT_NOT_FOUND">
1737 @a osTypeId is invalid.
1738 </result>
1739 <result name="VBOX_E_FILE_ERROR">
1740 Resulting settings file name is invalid or the settings file already
1741 exists or could not be created due to an I/O error.
1742 </result>
1743 <result name="E_INVALIDARG">
1744 @a name is empty or @c null.
1745 </result>
1746 </desc>
1747
1748 <param name="settingsFile" type="wstring" dir="in">
1749 <desc>Fully qualified path where the settings file should be created,
1750 empty string or @c null for a default folder and file based on the
1751 @a name argument and the primary group.
1752 (see <link to="#composeMachineFilename" />).</desc>
1753 </param>
1754 <param name="name" type="wstring" dir="in">
1755 <desc>Machine name.</desc>
1756 </param>
1757 <param name="groups" type="wstring" safearray="yes" dir="in">
1758 <desc>Array of group names. @c null or an empty array have the same
1759 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1760 create a machine without group association.</desc>
1761 </param>
1762 <param name="osTypeId" type="wstring" dir="in">
1763 <desc>Guest OS Type ID.</desc>
1764 </param>
1765 <param name="id" type="uuid" mod="string" dir="in">
1766 <desc>Machine UUID (optional).</desc>
1767 </param>
1768 <param name="forceOverwrite" type="boolean" dir="in">
1769 <desc>If true, an existing machine settings file will be overwritten.</desc>
1770 </param>
1771 <param name="machine" type="IMachine" dir="return">
1772 <desc>Created machine object.</desc>
1773 </param>
1774 </method>
1775
1776 <method name="openMachine">
1777 <desc>
1778 Opens a virtual machine from the existing settings file.
1779 The opened machine remains unregistered until you call
1780 <link to="#registerMachine"/>.
1781
1782 The specified settings file name must be fully qualified.
1783 The file must exist and be a valid machine XML settings file
1784 whose contents will be used to construct the machine object.
1785
1786 <result name="VBOX_E_FILE_ERROR">
1787 Settings file name invalid, not found or sharing violation.
1788 </result>
1789 </desc>
1790 <param name="settingsFile" type="wstring" dir="in">
1791 <desc>
1792 Name of the machine settings file.
1793 </desc>
1794 </param>
1795 <param name="machine" type="IMachine" dir="return">
1796 <desc>Opened machine object.</desc>
1797 </param>
1798 <note>
1799 <link to="IMachine::settingsModified"/> will return
1800 @c false for the created machine, until any of machine settings
1801 are changed.
1802 </note>
1803 </method>
1804
1805 <method name="registerMachine">
1806 <desc>
1807
1808 Registers the machine previously created using
1809 <link to="#createMachine"/> or opened using
1810 <link to="#openMachine"/> within this VirtualBox installation. After
1811 successful method invocation, the
1812 <link to="IMachineRegisteredEvent"/> event is fired.
1813
1814 <note>
1815 This method implicitly calls <link to="IMachine::saveSettings"/>
1816 to save all current machine settings before registering it.
1817 </note>
1818
1819 <result name="VBOX_E_OBJECT_NOT_FOUND">
1820 No matching virtual machine found.
1821 </result>
1822 <result name="VBOX_E_INVALID_OBJECT_STATE">
1823 Virtual machine was not created within this VirtualBox instance.
1824 </result>
1825
1826 </desc>
1827 <param name="machine" type="IMachine" dir="in"/>
1828 </method>
1829
1830 <method name="findMachine">
1831 <desc>
1832 Attempts to find a virtual machine given its name or UUID.
1833
1834 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1835 cannot safely be determined.</note>
1836
1837 <result name="VBOX_E_OBJECT_NOT_FOUND">
1838 Could not find registered machine matching @a nameOrId.
1839 </result>
1840
1841 </desc>
1842 <param name="nameOrId" type="wstring" dir="in">
1843 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1844 </param>
1845 <param name="machine" type="IMachine" dir="return">
1846 <desc>Machine object, if found.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getMachinesByGroups">
1851 <desc>
1852 Gets all machine references which are in one of the specified groups.
1853 </desc>
1854 <param name="groups" type="wstring" dir="in" safearray="yes">
1855 <desc>What groups to match. The usual group list rules apply, i.e.
1856 passing an empty list will match VMs in the toplevel group, likewise
1857 the empty string.</desc>
1858 </param>
1859 <param name="machines" type="IMachine" dir="return" safearray="yes">
1860 <desc>All machines which matched.</desc>
1861 </param>
1862 </method>
1863
1864 <method name="getMachineStates">
1865 <desc>
1866 Gets the state of several machines in a single operation.
1867 </desc>
1868 <param name="machines" type="IMachine" dir="in" safearray="yes">
1869 <desc>Array with the machine references.</desc>
1870 </param>
1871 <param name="states" type="MachineState" dir="return" safearray="yes">
1872 <desc>Machine states, corresponding to the machines.</desc>
1873 </param>
1874 </method>
1875
1876 <method name="createAppliance">
1877 <desc>
1878 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1879 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1880 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1881 </desc>
1882 <param name="appliance" type="IAppliance" dir="return">
1883 <desc>New appliance.</desc>
1884 </param>
1885 </method>
1886
1887 <method name="createHardDisk">
1888 <desc>
1889 Creates a new base medium object that will use the given storage
1890 format and location for medium data.
1891
1892 The actual storage unit is not created by this method. In order to
1893 do it, and before you are able to attach the created medium to
1894 virtual machines, you must call one of the following methods to
1895 allocate a format-specific storage unit at the specified location:
1896 <ul>
1897 <li><link to="IMedium::createBaseStorage"/></li>
1898 <li><link to="IMedium::createDiffStorage"/></li>
1899 </ul>
1900
1901 Some medium attributes, such as <link to="IMedium::id"/>, may
1902 remain uninitialized until the medium storage unit is successfully
1903 created by one of the above methods.
1904
1905 After the storage unit is successfully created, it will be
1906 accessible through the <link to="#openMedium"/> method and can
1907 be found in the <link to="#hardDisks"/> array.
1908
1909 The list of all storage formats supported by this VirtualBox
1910 installation can be obtained using
1911 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1912 attribute is empty or @c null then the default storage format
1913 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1914 be used for creating a storage unit of the medium.
1915
1916 Note that the format of the location string is storage format specific.
1917 See <link to="IMedium::location"/> and IMedium for more details.
1918
1919 <result name="VBOX_E_OBJECT_NOT_FOUND">
1920 @a format identifier is invalid. See
1921 <link to="ISystemProperties::mediumFormats"/>.
1922 </result>
1923 <result name="VBOX_E_FILE_ERROR">
1924 @a location is a not valid file name (for file-based formats only).
1925 </result>
1926 </desc>
1927 <param name="format" type="wstring" dir="in">
1928 <desc>
1929 Identifier of the storage format to use for the new medium.
1930 </desc>
1931 </param>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Location of the storage unit for the new medium.
1935 </desc>
1936 </param>
1937 <param name="medium" type="IMedium" dir="return">
1938 <desc>Created medium object.</desc>
1939 </param>
1940 </method>
1941
1942 <method name="openMedium">
1943 <desc>
1944 Finds existing media or opens a medium from an existing storage location.
1945
1946 Once a medium has been opened, it can be passed to other VirtualBox
1947 methods, in particular to <link to="IMachine::attachDevice" />.
1948
1949 Depending on the given device type, the file at the storage location
1950 must be in one of the media formats understood by VirtualBox:
1951
1952 <ul>
1953 <li>With a "HardDisk" device type, the file must be a hard disk image
1954 in one of the formats supported by VirtualBox (see
1955 <link to="ISystemProperties::mediumFormats" />).
1956 After this method succeeds, if the medium is a base medium, it
1957 will be added to the <link to="#hardDisks"/> array attribute. </li>
1958 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1959 After this method succeeds, the medium will be added to the
1960 <link to="#DVDImages"/> array attribute.</li>
1961 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1962 After this method succeeds, the medium will be added to the
1963 <link to="#floppyImages"/> array attribute.</li>
1964 </ul>
1965
1966 After having been opened, the medium can be re-found by this method
1967 and can be attached to virtual machines. See <link to="IMedium" /> for
1968 more details.
1969
1970 The UUID of the newly opened medium will either be retrieved from the
1971 storage location, if the format supports it (e.g. for hard disk images),
1972 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1973 If for some reason you need to change the medium's UUID, use
1974 <link to="IMedium::setIds" />.
1975
1976 If a differencing hard disk medium is to be opened by this method, the
1977 operation will succeed only if its parent medium and all ancestors,
1978 if any, are already known to this VirtualBox installation (for example,
1979 were opened by this method before).
1980
1981 This method attempts to guess the storage format of the specified medium
1982 by reading medium data at the specified location.
1983
1984 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1985 the image is opened for read/write access and must have according permissions,
1986 as VirtualBox may actually write status information into the disk's metadata
1987 sections.
1988
1989 Note that write access is required for all typical hard disk usage in VirtualBox,
1990 since VirtualBox may need to write metadata such as a UUID into the image.
1991 The only exception is opening a source image temporarily for copying and
1992 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1993 again soon.
1994
1995 The format of the location string is storage format specific. See
1996 <link to="IMedium::location"/> and IMedium for more details.
1997
1998 <result name="VBOX_E_FILE_ERROR">
1999 Invalid medium storage file location or could not find the medium
2000 at the specified location.
2001 </result>
2002 <result name="VBOX_E_IPRT_ERROR">
2003 Could not get medium storage format.
2004 </result>
2005 <result name="E_INVALIDARG">
2006 Invalid medium storage format.
2007 </result>
2008 <result name="VBOX_E_INVALID_OBJECT_STATE">
2009 Medium has already been added to a media registry.
2010 </result>
2011 </desc>
2012 <param name="location" type="wstring" dir="in">
2013 <desc>
2014 Location of the storage unit that contains medium data in one of
2015 the supported storage formats.
2016 </desc>
2017 </param>
2018 <param name="deviceType" type="DeviceType" dir="in">
2019 <desc>
2020 Must be one of "HardDisk", "DVD" or "Floppy".
2021 </desc>
2022 </param>
2023 <param name="accessMode" type="AccessMode" dir="in">
2024 <desc>Whether to open the image in read/write or read-only mode. For
2025 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2026 </param>
2027 <param name="forceNewUuid" type="boolean" dir="in">
2028 <desc>Allows the caller to request a completely new medium UUID for
2029 the image which is to be opened. Useful if one intends to open an exact
2030 copy of a previously opened image, as this would normally fail due to
2031 the duplicate UUID.</desc>
2032 </param>
2033 <param name="medium" type="IMedium" dir="return">
2034 <desc>Opened medium object.</desc>
2035 </param>
2036 </method>
2037
2038 <method name="getGuestOSType">
2039 <desc>
2040 Returns an object describing the specified guest OS type.
2041
2042 The requested guest OS type is specified using a string which is a
2043 mnemonic identifier of the guest operating system, such as
2044 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2045 particular virtual machine can be read or set using the
2046 <link to="IMachine::OSTypeId"/> attribute.
2047
2048 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2049 available guest OS type objects. Each object has an
2050 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2051 the guest OS this object describes.
2052
2053 <result name="E_INVALIDARG">
2054 @a id is not a valid Guest OS type.
2055 </result>
2056
2057 </desc>
2058 <param name="id" type="uuid" mod="string" dir="in">
2059 <desc>Guest OS type ID string.</desc>
2060 </param>
2061 <param name="type" type="IGuestOSType" dir="return">
2062 <desc>Guest OS type object.</desc>
2063 </param>
2064 </method>
2065
2066 <method name="createSharedFolder">
2067 <desc>
2068 Creates a new global shared folder by associating the given logical
2069 name with the given host path, adds it to the collection of shared
2070 folders and starts sharing it. Refer to the description of
2071 <link to="ISharedFolder"/> to read more about logical names.
2072 <note>
2073 In the current implementation, this operation is not
2074 implemented.
2075 </note>
2076 </desc>
2077 <param name="name" type="wstring" dir="in">
2078 <desc>Unique logical name of the shared folder.</desc>
2079 </param>
2080 <param name="hostPath" type="wstring" dir="in">
2081 <desc>Full path to the shared folder in the host file system.</desc>
2082 </param>
2083 <param name="writable" type="boolean" dir="in">
2084 <desc>Whether the share is writable or readonly</desc>
2085 </param>
2086 <param name="automount" type="boolean" dir="in">
2087 <desc>Whether the share gets automatically mounted by the guest
2088 or not.</desc>
2089 </param>
2090 </method>
2091
2092 <method name="removeSharedFolder">
2093 <desc>
2094 Removes the global shared folder with the given name previously
2095 created by <link to="#createSharedFolder"/> from the collection of
2096 shared folders and stops sharing it.
2097 <note>
2098 In the current implementation, this operation is not
2099 implemented.
2100 </note>
2101 </desc>
2102 <param name="name" type="wstring" dir="in">
2103 <desc>Logical name of the shared folder to remove.</desc>
2104 </param>
2105 </method>
2106
2107 <method name="getExtraDataKeys">
2108 <desc>
2109 Returns an array representing the global extra data keys which currently
2110 have values defined.
2111 </desc>
2112 <param name="value" type="wstring" dir="return" safearray="yes">
2113 <desc>Array of extra data keys.</desc>
2114 </param>
2115 </method>
2116
2117 <method name="getExtraData">
2118 <desc>
2119 Returns associated global extra data.
2120
2121 If the requested data @a key does not exist, this function will
2122 succeed and return an empty string in the @a value argument.
2123
2124 <result name="VBOX_E_FILE_ERROR">
2125 Settings file not accessible.
2126 </result>
2127 <result name="VBOX_E_XML_ERROR">
2128 Could not parse the settings file.
2129 </result>
2130
2131 </desc>
2132 <param name="key" type="wstring" dir="in">
2133 <desc>Name of the data key to get.</desc>
2134 </param>
2135 <param name="value" type="wstring" dir="return">
2136 <desc>Value of the requested data key.</desc>
2137 </param>
2138 </method>
2139
2140 <method name="setExtraData">
2141 <desc>
2142 Sets associated global extra data.
2143
2144 If you pass @c null or empty string as a key @a value, the given @a key
2145 will be deleted.
2146
2147 <note>
2148 Before performing the actual data change, this method will ask all
2149 registered event listener using the
2150 <link to="IExtraDataCanChangeEvent"/>
2151 notification for a permission. If one of the listeners refuses the
2152 new value, the change will not be performed.
2153 </note>
2154 <note>
2155 On success, the
2156 <link to="IExtraDataChangedEvent"/> notification
2157 is called to inform all registered listeners about a successful data
2158 change.
2159 </note>
2160
2161 <result name="VBOX_E_FILE_ERROR">
2162 Settings file not accessible.
2163 </result>
2164 <result name="VBOX_E_XML_ERROR">
2165 Could not parse the settings file.
2166 </result>
2167 <result name="E_ACCESSDENIED">
2168 Modification request refused.
2169 </result>
2170
2171 </desc>
2172 <param name="key" type="wstring" dir="in">
2173 <desc>Name of the data key to set.</desc>
2174 </param>
2175 <param name="value" type="wstring" dir="in">
2176 <desc>Value to assign to the key.</desc>
2177 </param>
2178 </method>
2179
2180 <method name="setSettingsSecret">
2181 <desc>
2182 Unlocks the secret data by passing the unlock password to the
2183 server. The server will cache the password for that machine.
2184
2185 <result name="VBOX_E_INVALID_VM_STATE">
2186 Virtual machine is not mutable.
2187 </result>
2188
2189 </desc>
2190 <param name="password" type="wstring" dir="in">
2191 <desc>
2192 The cipher key.
2193 </desc>
2194 </param>
2195 </method>
2196
2197 <!--method name="createDHCPServerForInterface">
2198 <desc>
2199 Creates a DHCP server settings to be used for the given interface
2200 <result name="E_INVALIDARG">
2201 Host network interface @a name already exists.
2202 </result>
2203 </desc>
2204 <param name="interface" type="IHostNetworkInterface" dir="in">
2205 <desc>Network Interface</desc>
2206 </param>
2207 <param name="server" type="IDHCPServer" dir="out">
2208 <desc>DHCP server settings</desc>
2209 </param>
2210 </method-->
2211
2212 <method name="createDHCPServer">
2213 <desc>
2214 Creates a DHCP server settings to be used for the given internal network name
2215 <result name="E_INVALIDARG">
2216 Host network interface @a name already exists.
2217 </result>
2218 </desc>
2219 <param name="name" type="wstring" dir="in">
2220 <desc>server name</desc>
2221 </param>
2222 <param name="server" type="IDHCPServer" dir="return">
2223 <desc>DHCP server settings</desc>
2224 </param>
2225 </method>
2226
2227 <method name="findDHCPServerByNetworkName">
2228 <desc>
2229 Searches a DHCP server settings to be used for the given internal network name
2230 <result name="E_INVALIDARG">
2231 Host network interface @a name already exists.
2232 </result>
2233
2234 </desc>
2235 <param name="name" type="wstring" dir="in">
2236 <desc>server name</desc>
2237 </param>
2238 <param name="server" type="IDHCPServer" dir="return">
2239 <desc>DHCP server settings</desc>
2240 </param>
2241 </method>
2242
2243 <!--method name="findDHCPServerForInterface">
2244 <desc>
2245 Searches a DHCP server settings to be used for the given interface
2246 <result name="E_INVALIDARG">
2247 Host network interface @a name already exists.
2248 </result>
2249 </desc>
2250 <param name="interface" type="IHostNetworkInterface" dir="in">
2251 <desc>Network Interface</desc>
2252 </param>
2253 <param name="server" type="IDHCPServer" dir="out">
2254 <desc>DHCP server settings</desc>
2255 </param>
2256 </method-->
2257
2258 <method name="removeDHCPServer">
2259 <desc>
2260 Removes the DHCP server settings
2261 <result name="E_INVALIDARG">
2262 Host network interface @a name already exists.
2263 </result>
2264 </desc>
2265 <param name="server" type="IDHCPServer" dir="in">
2266 <desc>DHCP server settings to be removed</desc>
2267 </param>
2268 </method>
2269
2270
2271 <method name="checkFirmwarePresent">
2272 <desc>
2273 Check if this VirtualBox installation has a firmware
2274 of the given type available, either system-wide or per-user.
2275 Optionally, this may return a hint where this firmware can be
2276 downloaded from.
2277 </desc>
2278 <param name="firmwareType" type="FirmwareType" dir="in">
2279 <desc>
2280 Type of firmware to check.
2281 </desc>
2282 </param>
2283 <param name="version" type="wstring" dir="in">
2284 <desc>Expected version number, usually empty string (presently ignored).</desc>
2285 </param>
2286
2287 <param name="url" type="wstring" dir="out">
2288 <desc>
2289 Suggested URL to download this firmware from.
2290 </desc>
2291 </param>
2292
2293 <param name="file" type="wstring" dir="out">
2294 <desc>
2295 Filename of firmware, only valid if result == TRUE.
2296 </desc>
2297 </param>
2298
2299 <param name="result" type="boolean" dir="return">
2300 <desc>If firmware of this type and version is available.</desc>
2301 </param>
2302 </method>
2303
2304 </interface>
2305
2306 <!--
2307 // IVFSExplorer
2308 /////////////////////////////////////////////////////////////////////////
2309 -->
2310
2311 <enum
2312 name="VFSType"
2313 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2314 >
2315 <desc>
2316 Virtual file systems supported by VFSExplorer.
2317 </desc>
2318
2319 <const name="File" value="1" />
2320 <const name="Cloud" value="2" />
2321 <const name="S3" value="3" />
2322 <const name="WebDav" value="4" />
2323 </enum>
2324
2325 <enum
2326 name="VFSFileType"
2327 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2328 >
2329 <desc>
2330 File types known by VFSExplorer.
2331 </desc>
2332
2333 <const name="Unknown" value="1" />
2334 <const name="Fifo" value="2" />
2335 <const name="DevChar" value="3" />
2336 <const name="Directory" value="4" />
2337 <const name="DevBlock" value="5" />
2338 <const name="File" value="6" />
2339 <const name="SymLink" value="7" />
2340 <const name="Socket" value="8" />
2341 <const name="WhiteOut" value="9" />
2342 </enum>
2343
2344 <interface
2345 name="IVFSExplorer" extends="$unknown"
2346 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2347 wsmap="managed"
2348 >
2349 <desc>
2350 The VFSExplorer interface unifies access to different file system
2351 types. This includes local file systems as well remote file systems like
2352 S3. For a list of supported types see <link to="VFSType" />.
2353 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2354 </desc>
2355
2356 <attribute name="path" type="wstring" readonly="yes">
2357 <desc>Returns the current path in the virtual file system.</desc>
2358 </attribute>
2359
2360 <attribute name="type" type="VFSType" readonly="yes">
2361 <desc>Returns the file system type which is currently in use.</desc>
2362 </attribute>
2363
2364 <method name="update">
2365 <desc>Updates the internal list of files/directories from the
2366 current directory level. Use <link to="#entryList" /> to get the full list
2367 after a call to this method.</desc>
2368
2369 <param name="aProgress" type="IProgress" dir="return">
2370 <desc>Progress object to track the operation completion.</desc>
2371 </param>
2372 </method>
2373
2374 <method name="cd">
2375 <desc>Change the current directory level.</desc>
2376
2377 <param name="aDir" type="wstring" dir="in">
2378 <desc>The name of the directory to go in.</desc>
2379 </param>
2380
2381 <param name="aProgress" type="IProgress" dir="return">
2382 <desc>Progress object to track the operation completion.</desc>
2383 </param>
2384 </method>
2385
2386 <method name="cdUp">
2387 <desc>Go one directory upwards from the current directory level.</desc>
2388
2389 <param name="aProgress" type="IProgress" dir="return">
2390 <desc>Progress object to track the operation completion.</desc>
2391 </param>
2392 </method>
2393
2394 <method name="entryList">
2395 <desc>Returns a list of files/directories after a call to <link
2396 to="#update" />. The user is responsible for keeping this internal
2397 list up do date.</desc>
2398
2399 <param name="aNames" type="wstring" safearray="yes" dir="out">
2400 <desc>The list of names for the entries.</desc>
2401 </param>
2402
2403 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2404 <desc>The list of types for the entries.</desc>
2405 </param>
2406
2407 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2408 <desc>The list of sizes (in bytes) for the entries.</desc>
2409 </param>
2410
2411 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2412 <desc>The list of file modes (in octal form) for the entries.</desc>
2413 </param>
2414 </method>
2415
2416 <method name="exists">
2417 <desc>Checks if the given file list exists in the current directory
2418 level.</desc>
2419
2420 <param name="aNames" type="wstring" safearray="yes" dir="in">
2421 <desc>The names to check.</desc>
2422 </param>
2423
2424 <param name="aExists" type="wstring" safearray="yes" dir="return">
2425 <desc>The names which exist.</desc>
2426 </param>
2427 </method>
2428
2429 <method name="remove">
2430 <desc>Deletes the given files in the current directory level.</desc>
2431
2432 <param name="aNames" type="wstring" safearray="yes" dir="in">
2433 <desc>The names to remove.</desc>
2434 </param>
2435
2436 <param name="aProgress" type="IProgress" dir="return">
2437 <desc>Progress object to track the operation completion.</desc>
2438 </param>
2439 </method>
2440
2441 </interface>
2442
2443 <enum
2444 name="ImportOptions" extends="$unknown"
2445 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2446 >
2447
2448 <desc>
2449 Import options, used with <link to="IAppliance::importMachines" />.
2450 </desc>
2451
2452 <const name="KeepAllMACs" value="1">
2453 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2454 </const>
2455 <const name="KeepNATMACs" value="2">
2456 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2457 </const>
2458
2459 </enum>
2460
2461
2462 <!--
2463 // IAppliance
2464 /////////////////////////////////////////////////////////////////////////
2465 -->
2466
2467 <interface
2468 name="IAppliance" extends="$unknown"
2469 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2470 wsmap="managed"
2471 >
2472 <desc>
2473 Represents a platform-independent appliance in OVF format. An instance of this is returned
2474 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2475 virtual machines within an appliance with VirtualBox.
2476
2477 The OVF standard suggests two different physical file formats:
2478
2479 <ol>
2480 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2481 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2482 this descriptor file references other files such as disk images, as OVF appliances typically
2483 do, those additional files must be in the same directory as the descriptor file.</li>
2484
2485 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2486 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2487 files and optionally other files.
2488
2489 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2490 be added with a later version.</li>
2491 </ol>
2492
2493 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2494 <link to="IMachine" /> involves the following sequence of API calls:
2495
2496 <ol>
2497 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2498 </li>
2499
2500 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2501 would like to import. So long as this file is syntactically valid, this will succeed
2502 and fill the appliance object with the parsed data from the OVF file.
2503 </li>
2504
2505 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2506 contents of the IAppliance attributes accordingly. These can be inspected by a
2507 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2508 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2509 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2510 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2511 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2512 The GUI can then give the user the option to confirm and/or change these suggestions.
2513 </li>
2514
2515 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2516 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2517 </li>
2518
2519 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2520 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2521 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2522 can be found in the <link to="#machines" /> array attribute.
2523 </li>
2524 </ol>
2525
2526 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2527
2528 <ol>
2529 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2530 an empty IAppliance object.
2531 </li>
2532
2533 <li>For each machine you would like to export, call <link to="IMachine::export" />
2534 with the IAppliance object you just created. Each such call creates one instance of
2535 <link to="IVirtualSystemDescription" /> inside the appliance.
2536 </li>
2537
2538 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2539 virtual system (machine) to override the suggestions made by the <link to="IMachine::export"/> routine.
2540 </li>
2541
2542 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2543 file written.</li>
2544 </ol>
2545
2546 </desc>
2547
2548 <attribute name="path" type="wstring" readonly="yes">
2549 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2550 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2551 <link to="#write" /> (for export).
2552 This attribute is empty until one of these methods has been called.
2553 </desc>
2554 </attribute>
2555
2556 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2557 <desc>
2558 Array of virtual disk definitions. One such description exists for each
2559 disk definition in the OVF; each string array item represents one such piece of
2560 disk information, with the information fields separated by tab (\\t) characters.
2561
2562 The caller should be prepared for additional fields being appended to
2563 this string in future versions of VirtualBox and therefore check for
2564 the number of tabs in the strings returned.
2565
2566 In the current version, the following eight fields are returned per string
2567 in the array:
2568
2569 <ol>
2570 <li>Disk ID (unique string identifier given to disk)</li>
2571
2572 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2573
2574 <li>Populated size (optional unsigned integer indicating the current size of the
2575 disk; can be approximate; -1 if unspecified)</li>
2576
2577 <li>Format (string identifying the disk format, typically
2578 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2579
2580 <li>Reference (where to find the disk image, typically a file name; if empty,
2581 then the disk should be created on import)</li>
2582
2583 <li>Image size (optional unsigned integer indicating the size of the image,
2584 which need not necessarily be the same as the values specified above, since
2585 the image may be compressed or sparse; -1 if not specified)</li>
2586
2587 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2588 presently unsupported and always -1)</li>
2589
2590 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2591 </ol>
2592 </desc>
2593 </attribute>
2594
2595 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2596 <desc> Array of virtual system descriptions. One such description is created
2597 for each virtual system (machine) found in the OVF.
2598 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2599 (for export) has been called.
2600 </desc>
2601 </attribute>
2602
2603 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2604 <desc>
2605 Contains the UUIDs of the machines created from the information in this appliances. This is only
2606 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2607 succeeded.
2608 </desc>
2609 </attribute>
2610
2611 <method name="read">
2612 <desc>
2613 Reads an OVF file into the appliance object.
2614
2615 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2616 mere fact that this method returns successfully does not mean that VirtualBox supports all
2617 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2618 </desc>
2619 <param name="file" type="wstring" dir="in">
2620 <desc>
2621 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2622 on whether the appliance is distributed as a set of files or as a single file, respectively).
2623 </desc>
2624 </param>
2625 <param name="aProgress" type="IProgress" dir="return">
2626 <desc>Progress object to track the operation completion.</desc>
2627 </param>
2628 </method>
2629
2630 <method name="interpret">
2631 <desc>
2632 Interprets the OVF data that was read when the appliance was constructed. After
2633 calling this method, one can inspect the
2634 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2635 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2636 the appliance.
2637
2638 Calling this method is the second step of importing an appliance into VirtualBox;
2639 see <link to="IAppliance" /> for an overview.
2640
2641 After calling this method, one should call <link to="#getWarnings" /> to find out
2642 if problems were encountered during the processing which might later lead to
2643 errors.
2644 </desc>
2645 </method>
2646
2647 <method name="importMachines">
2648 <desc>
2649 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2650 and other interfaces that match the information contained in the appliance as
2651 closely as possible, as represented by the import instructions in the
2652 <link to="#virtualSystemDescriptions" /> array.
2653
2654 Calling this method is the final step of importing an appliance into VirtualBox;
2655 see <link to="IAppliance" /> for an overview.
2656
2657 Since importing the appliance will most probably involve copying and converting
2658 disk images, which can take a long time, this method operates asynchronously and
2659 returns an IProgress object to allow the caller to monitor the progress.
2660
2661 After the import succeeded, the UUIDs of the IMachine instances created can be
2662 retrieved from the <link to="#machines" /> array attribute.
2663 </desc>
2664
2665 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2666 <desc>Options for the importing operation.</desc>
2667 </param>
2668
2669 <param name="aProgress" type="IProgress" dir="return">
2670 <desc>Progress object to track the operation completion.</desc>
2671 </param>
2672 </method>
2673
2674 <method name="createVFSExplorer">
2675 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2676
2677 <param name="aUri" type="wstring" dir="in">
2678 <desc>The URI describing the file system to use.</desc>
2679 </param>
2680
2681 <param name="aExplorer" type="IVFSExplorer" dir="return">
2682 <desc></desc>
2683 </param>
2684 </method>
2685
2686 <method name="write">
2687 <desc>
2688 Writes the contents of the appliance exports into a new OVF file.
2689
2690 Calling this method is the final step of exporting an appliance from VirtualBox;
2691 see <link to="IAppliance" /> for an overview.
2692
2693 Since exporting the appliance will most probably involve copying and converting
2694 disk images, which can take a long time, this method operates asynchronously and
2695 returns an IProgress object to allow the caller to monitor the progress.
2696 </desc>
2697 <param name="format" type="wstring" dir="in">
2698 <desc>
2699 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2700 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2701 </desc>
2702 </param>
2703 <param name="manifest" type="boolean" dir="in">
2704 <desc>
2705 Indicate if the optional manifest file (.mf) should be written. The manifest file
2706 is used for integrity checks prior import.
2707 </desc>
2708 </param>
2709 <param name="path" type="wstring" dir="in">
2710 <desc>
2711 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2712 on whether the appliance is distributed as a set of files or as a single file, respectively).
2713 </desc>
2714 </param>
2715 <param name="progress" type="IProgress" dir="return">
2716 <desc>Progress object to track the operation completion.</desc>
2717 </param>
2718 </method>
2719
2720 <method name="getWarnings">
2721 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2722
2723 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2724 <desc></desc>
2725 </param>
2726 </method>
2727
2728 </interface>
2729
2730 <enum
2731 name="VirtualSystemDescriptionType"
2732 uuid="303c0900-a746-4612-8c67-79003e91f459"
2733 >
2734 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2735 a configuration value.</desc>
2736
2737 <const name="Ignore" value="1" />
2738 <const name="OS" value="2" />
2739 <const name="Name" value="3" />
2740 <const name="Product" value="4" />
2741 <const name="Vendor" value="5" />
2742 <const name="Version" value="6" />
2743 <const name="ProductUrl" value="7" />
2744 <const name="VendorUrl" value="8" />
2745 <const name="Description" value="9" />
2746 <const name="License" value="10" />
2747 <const name="Miscellaneous" value="11" />
2748 <const name="CPU" value="12" />
2749 <const name="Memory" value="13" />
2750 <const name="HardDiskControllerIDE" value="14" />
2751 <const name="HardDiskControllerSATA" value="15" />
2752 <const name="HardDiskControllerSCSI" value="16" />
2753 <const name="HardDiskControllerSAS" value="17" />
2754 <const name="HardDiskImage" value="18" />
2755 <const name="Floppy" value="19" />
2756 <const name="CDROM" value="20" />
2757 <const name="NetworkAdapter" value="21" />
2758 <const name="USBController" value="22" />
2759 <const name="SoundCard" value="23" />
2760 <const name="SettingsFile" value="24">
2761 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2762 </const>
2763 </enum>
2764
2765 <enum
2766 name="VirtualSystemDescriptionValueType"
2767 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2768 >
2769 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2770 type to fetch.</desc>
2771
2772 <const name="Reference" value="1" />
2773 <const name="Original" value="2" />
2774 <const name="Auto" value="3" />
2775 <const name="ExtraConfig" value="4" />
2776
2777 </enum>
2778
2779 <interface
2780 name="IVirtualSystemDescription" extends="$unknown"
2781 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2782 wsmap="managed"
2783 >
2784
2785 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2786 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2787 <link to="IAppliance::interpret" /> has been called, that array contains information
2788 about how the virtual systems described in the OVF should best be imported into
2789 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2790 import an OVF into VirtualBox.
2791 </desc>
2792
2793 <attribute name="count" type="unsigned long" readonly="yes">
2794 <desc>Return the number of virtual system description entries.</desc>
2795 </attribute>
2796
2797 <method name="getDescription">
2798 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2799 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2800
2801 The list below identifies the value sets that are possible depending on the
2802 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2803 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2804 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2805 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2806 the @a aExtraConfigValues[] array item may also be used.
2807
2808 <ul>
2809 <li>
2810 "OS": the guest operating system type. There must be exactly one such array item on import. The
2811 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2812 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2813 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2814 </li>
2815 <li>
2816 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2817 if none is present on import, then an automatic name will be created from the operating system
2818 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2819 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2820 <link to="IMachine" /> name that does not exist yet.
2821 </li>
2822 <li>
2823 "Description": an arbitrary description.
2824 </li>
2825 <li>
2826 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2827 code to display such a license for agreement; the Main API does not enforce any such policy.
2828 </li>
2829 <li>
2830 Miscellaneous: reserved for future use.
2831 </li>
2832 <li>
2833 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2834 </li>
2835 <li>
2836 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2837 is present on import, then VirtualBox will set a meaningful default based on the operating system
2838 type.
2839 </li>
2840 <li>
2841 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2842 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2843 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2844 writes into the OVF.
2845 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2846 type can use to specify which hard disk controller a virtual disk should be connected to.
2847 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2848 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2849 its virtual machines supports four channels (primary master, primary slave, secondary master,
2850 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2851 </li>
2852 <li>
2853 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2854 has no value in @a aOvfValues[] or @a aVBoxValues[].
2855 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2856 </li>
2857 <li>
2858 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2859 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2860 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2861 whereas VirtualBox considers it a class of storage controllers of its own; see
2862 <link to="StorageControllerType" />).
2863 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2864 </li>
2865 <li>
2866 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2867 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2868
2869 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2870 a path since the image file should be in the same location as the OVF file itself), whereas the
2871 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2872 hard disk image. This means that on import the image will be copied and converted from the
2873 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2874
2875 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2876 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2877 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2878 the image to. That number must be the index of an array item with one of the hard disk controller
2879 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2880 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2881 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2882 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2883 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2884 </li>
2885 <li>
2886 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2887 attachment information as with "HardDiskImage" items.
2888 </li>
2889 <li>
2890 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2891 attachment information as with "HardDiskImage" items.
2892 </li>
2893 <li>
2894 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2895 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2896 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2897 </li>
2898 <li>
2899 "USBController": a USB controller. There can be at most one such item. If and only if such an
2900 item ispresent, USB support will be enabled for the new virtual machine.
2901 </li>
2902 <li>
2903 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2904 present, sound support will be enabled for the new virtual machine. Note that the virtual
2905 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2906 may be different from the virtual soundcard expected by the appliance.
2907 </li>
2908 </ul>
2909
2910 </desc>
2911
2912 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2913 <desc></desc>
2914 </param>
2915
2916 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2917 <desc></desc>
2918 </param>
2919
2920 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2921 <desc></desc>
2922 </param>
2923
2924 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2925 <desc></desc>
2926 </param>
2927
2928 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2929 <desc></desc>
2930 </param>
2931
2932 </method>
2933
2934 <method name="getDescriptionByType">
2935 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2936 should be returned.</desc>
2937
2938 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2939 <desc></desc>
2940 </param>
2941
2942 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2943 <desc></desc>
2944 </param>
2945
2946 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2947 <desc></desc>
2948 </param>
2949
2950 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2951 <desc></desc>
2952 </param>
2953
2954 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2955 <desc></desc>
2956 </param>
2957
2958 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2959 <desc></desc>
2960 </param>
2961
2962 </method>
2963
2964 <method name="getValuesByType">
2965 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2966 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2967 values.</desc>
2968
2969 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2970 <desc></desc>
2971 </param>
2972
2973 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2974 <desc></desc>
2975 </param>
2976
2977 <param name="aValues" type="wstring" dir="return" safearray="yes">
2978 <desc></desc>
2979 </param>
2980
2981 </method>
2982
2983 <method name="setFinalValues">
2984 <desc>
2985 This method allows the appliance's user to change the configuration for the virtual
2986 system descriptions. For each array item returned from <link to="#getDescription" />,
2987 you must pass in one boolean value and one configuration value.
2988
2989 Each item in the boolean array determines whether the particular configuration item
2990 should be enabled.
2991 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2992 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2993 and SoundCard.
2994
2995 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2996 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
2997 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
2998 for valid configuration values for the individual array item types. If the
2999 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3000 </desc>
3001
3002 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3003 <desc></desc>
3004 </param>
3005
3006 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3007 <desc></desc>
3008 </param>
3009
3010 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3011 <desc></desc>
3012 </param>
3013 </method>
3014
3015 <method name="addDescription">
3016 <desc>
3017 This method adds an additional description entry to the stack of already
3018 available descriptions for this virtual system. This is handy for writing
3019 values which aren't directly supported by VirtualBox. One example would
3020 be the License type of <link to="VirtualSystemDescriptionType" />.
3021 </desc>
3022
3023 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3024 <desc></desc>
3025 </param>
3026
3027 <param name="aVBoxValue" type="wstring" dir="in">
3028 <desc></desc>
3029 </param>
3030
3031 <param name="aExtraConfigValue" type="wstring" dir="in">
3032 <desc></desc>
3033 </param>
3034 </method>
3035 </interface>
3036
3037
3038 <!--
3039 // IMachine
3040 /////////////////////////////////////////////////////////////////////////
3041 -->
3042
3043 <interface
3044 name="IInternalMachineControl" extends="$unknown"
3045 uuid="ec824977-e43f-479c-81c9-ac6cae1423a5"
3046 internal="yes"
3047 wsmap="suppress"
3048 >
3049 <method name="setRemoveSavedStateFile">
3050 <desc>
3051 Updates the flag whether the saved state file is removed on a
3052 machine state change from Saved to PoweredOff.
3053 </desc>
3054 <param name="aRemove" type="boolean" dir="in"/>
3055 </method>
3056
3057 <method name="updateState">
3058 <desc>
3059 Updates the VM state.
3060 <note>
3061 This operation will also update the settings file with the correct
3062 information about the saved state file and delete this file from disk
3063 when appropriate.
3064 </note>
3065 </desc>
3066 <param name="state" type="MachineState" dir="in"/>
3067 </method>
3068
3069 <method name="getIPCId">
3070 <param name="id" type="wstring" dir="return"/>
3071 </method>
3072
3073 <method name="beginPowerUp">
3074 <desc>
3075 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3076 gives it the progress object that should be part of any pending
3077 <link to="IMachine::launchVMProcess"/> operations. The progress
3078 object may be called back to reflect an early cancelation, so some care
3079 have to be taken with respect to any cancelation callbacks. The console
3080 object will call <link to="IInternalMachineControl::endPowerUp"/>
3081 to signal the completion of the progress object.
3082 </desc>
3083 <param name="aProgress" type="IProgress" dir="in" />
3084 </method>
3085
3086 <method name="endPowerUp">
3087 <desc>
3088 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3089 This method may query status information from the progress object it
3090 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3091 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3092 call in order to complete that progress object.
3093 </desc>
3094 <param name="result" type="long" dir="in"/>
3095 </method>
3096
3097 <method name="beginPoweringDown">
3098 <desc>
3099 Called by the VM process to inform the server it wants to
3100 stop the VM execution and power down.
3101 </desc>
3102 <param name="progress" type="IProgress" dir="out">
3103 <desc>
3104 Progress object created by VBoxSVC to wait until
3105 the VM is powered down.
3106 </desc>
3107 </param>
3108 </method>
3109
3110 <method name="endPoweringDown">
3111 <desc>
3112 Called by the VM process to inform the server that powering
3113 down previously requested by #beginPoweringDown is either
3114 successfully finished or there was a failure.
3115
3116 <result name="VBOX_E_FILE_ERROR">
3117 Settings file not accessible.
3118 </result>
3119 <result name="VBOX_E_XML_ERROR">
3120 Could not parse the settings file.
3121 </result>
3122
3123 </desc>
3124
3125 <param name="result" type="long" dir="in">
3126 <desc>@c S_OK to indicate success.
3127 </desc>
3128 </param>
3129 <param name="errMsg" type="wstring" dir="in">
3130 <desc>@c human readable error message in case of failure.
3131 </desc>
3132 </param>
3133 </method>
3134
3135 <method name="runUSBDeviceFilters">
3136 <desc>
3137 Asks the server to run USB devices filters of the associated
3138 machine against the given USB device and tell if there is
3139 a match.
3140 <note>
3141 Intended to be used only for remote USB devices. Local
3142 ones don't require to call this method (this is done
3143 implicitly by the Host and USBProxyService).
3144 </note>
3145 </desc>
3146 <param name="device" type="IUSBDevice" dir="in"/>
3147 <param name="matched" type="boolean" dir="out"/>
3148 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3149 </method>
3150
3151 <method name="captureUSBDevice">
3152 <desc>
3153 Requests a capture of the given host USB device.
3154 When the request is completed, the VM process will
3155 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3156 notification.
3157 </desc>
3158 <param name="id" type="uuid" mod="string" dir="in"/>
3159 </method>
3160
3161 <method name="detachUSBDevice">
3162 <desc>
3163 Notification that a VM is going to detach (@a done = @c false) or has
3164 already detached (@a done = @c true) the given USB device.
3165 When the @a done = @c true request is completed, the VM process will
3166 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3167 notification.
3168 <note>
3169 In the @a done = @c true case, the server must run its own filters
3170 and filters of all VMs but this one on the detached device
3171 as if it were just attached to the host computer.
3172 </note>
3173 </desc>
3174 <param name="id" type="uuid" mod="string" dir="in"/>
3175 <param name="done" type="boolean" dir="in"/>
3176 </method>
3177
3178 <method name="autoCaptureUSBDevices">
3179 <desc>
3180 Requests a capture all matching USB devices attached to the host.
3181 When the request is completed, the VM process will
3182 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3183 notification per every captured device.
3184 </desc>
3185 </method>
3186
3187 <method name="detachAllUSBDevices">
3188 <desc>
3189 Notification that a VM that is being powered down. The done
3190 parameter indicates whether which stage of the power down
3191 we're at. When @a done = @c false the VM is announcing its
3192 intentions, while when @a done = @c true the VM is reporting
3193 what it has done.
3194 <note>
3195 In the @a done = @c true case, the server must run its own filters
3196 and filters of all VMs but this one on all detach devices as
3197 if they were just attached to the host computer.
3198 </note>
3199 </desc>
3200 <param name="done" type="boolean" dir="in"/>
3201 </method>
3202
3203 <method name="onSessionEnd">
3204 <desc>
3205 Triggered by the given session object when the session is about
3206 to close normally.
3207 </desc>
3208 <param name="session" type="ISession" dir="in">
3209 <desc>Session that is being closed</desc>
3210 </param>
3211 <param name="progress" type="IProgress" dir="return">
3212 <desc>
3213 Used to wait until the corresponding machine is actually
3214 dissociated from the given session on the server.
3215 Returned only when this session is a direct one.
3216 </desc>
3217 </param>
3218 </method>
3219
3220 <method name="beginSavingState">
3221 <desc>
3222 Called by the VM process to inform the server it wants to
3223 save the current state and stop the VM execution.
3224 </desc>
3225 <param name="progress" type="IProgress" dir="out">
3226 <desc>
3227 Progress object created by VBoxSVC to wait until
3228 the state is saved.
3229 </desc>
3230 </param>
3231 <param name="stateFilePath" type="wstring" dir="out">
3232 <desc>
3233 File path the VM process must save the execution state to.
3234 </desc>
3235 </param>
3236 </method>
3237
3238 <method name="endSavingState">
3239 <desc>
3240 Called by the VM process to inform the server that saving
3241 the state previously requested by #beginSavingState is either
3242 successfully finished or there was a failure.
3243
3244 <result name="VBOX_E_FILE_ERROR">
3245 Settings file not accessible.
3246 </result>
3247 <result name="VBOX_E_XML_ERROR">
3248 Could not parse the settings file.
3249 </result>
3250
3251 </desc>
3252
3253 <param name="result" type="long" dir="in">
3254 <desc>@c S_OK to indicate success.
3255 </desc>
3256 </param>
3257 <param name="errMsg" type="wstring" dir="in">
3258 <desc>@c human readable error message in case of failure.
3259 </desc>
3260 </param>
3261 </method>
3262
3263 <method name="adoptSavedState">
3264 <desc>
3265 Gets called by <link to="IConsole::adoptSavedState"/>.
3266 <result name="VBOX_E_FILE_ERROR">
3267 Invalid saved state file path.
3268 </result>
3269 </desc>
3270 <param name="savedStateFile" type="wstring" dir="in">
3271 <desc>Path to the saved state file to adopt.</desc>
3272 </param>
3273 </method>
3274
3275 <method name="beginTakingSnapshot">
3276 <desc>
3277 Called from the VM process to request from the server to perform the
3278 server-side actions of creating a snapshot (creating differencing images
3279 and the snapshot object).
3280
3281 <result name="VBOX_E_FILE_ERROR">
3282 Settings file not accessible.
3283 </result>
3284 <result name="VBOX_E_XML_ERROR">
3285 Could not parse the settings file.
3286 </result>
3287 </desc>
3288 <param name="initiator" type="IConsole" dir="in">
3289 <desc>The console object that initiated this call.</desc>
3290 </param>
3291 <param name="name" type="wstring" dir="in">
3292 <desc>Snapshot name.</desc>
3293 </param>
3294 <param name="description" type="wstring" dir="in">
3295 <desc>Snapshot description.</desc>
3296 </param>
3297 <param name="consoleProgress" type="IProgress" dir="in">
3298 <desc>
3299 Progress object created by the VM process tracking the
3300 snapshot's progress. This has the following sub-operations:
3301 <ul>
3302 <li>setting up (weight 1);</li>
3303 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3304 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3305 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3306 <li>finishing up (weight 1)</li>
3307 </ul>
3308 </desc>
3309 </param>
3310 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3311 <desc>
3312 Whether this is an online snapshot (i.e. the machine is running).
3313 </desc>
3314 </param>
3315 <param name="stateFilePath" type="wstring" dir="out">
3316 <desc>
3317 File path the VM process must save the execution state to.
3318 </desc>
3319 </param>
3320 </method>
3321
3322 <method name="endTakingSnapshot">
3323 <desc>
3324 Called by the VM process to inform the server that the snapshot
3325 previously requested by #beginTakingSnapshot is either
3326 successfully taken or there was a failure.
3327 </desc>
3328
3329 <param name="success" type="boolean" dir="in">
3330 <desc>@c true to indicate success and @c false otherwise</desc>
3331 </param>
3332 </method>
3333
3334 <method name="deleteSnapshot">
3335 <desc>
3336 Gets called by <link to="IConsole::deleteSnapshot"/>,
3337 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3338 <link to="IConsole::deleteSnapshotRange"/>.
3339 <result name="VBOX_E_INVALID_OBJECT_STATE">
3340 Snapshot has more than one child snapshot. Only possible if the
3341 delete operation does not delete all children or the range does
3342 not meet the linearity condition.
3343 </result>
3344 </desc>
3345 <param name="initiator" type="IConsole" dir="in">
3346 <desc>The console object that initiated this call.</desc>
3347 </param>
3348 <param name="startId" type="uuid" mod="string" dir="in">
3349 <desc>UUID of the first snapshot to delete.</desc>
3350 </param>
3351 <param name="endId" type="uuid" mod="string" dir="in">
3352 <desc>UUID of the last snapshot to delete.</desc>
3353 </param>
3354 <param name="deleteAllChildren" type="boolean" dir="in">
3355 <desc>Whether all children should be deleted.</desc>
3356 </param>
3357 <param name="machineState" type="MachineState" dir="out">
3358 <desc>New machine state after this operation is started.</desc>
3359 </param>
3360 <param name="progress" type="IProgress" dir="return">
3361 <desc>Progress object to track the operation completion.</desc>
3362 </param>
3363 </method>
3364
3365 <method name="finishOnlineMergeMedium">
3366 <desc>
3367 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3368 </desc>
3369 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3370 <desc>The medium attachment which needs to be cleaned up.</desc>
3371 </param>
3372 <param name="source" type="IMedium" dir="in">
3373 <desc>Merge source medium.</desc>
3374 </param>
3375 <param name="target" type="IMedium" dir="in">
3376 <desc>Merge target medium.</desc>
3377 </param>
3378 <param name="mergeForward" type="boolean" dir="in">
3379 <desc>Merge direction.</desc>
3380 </param>
3381 <param name="parentForTarget" type="IMedium" dir="in">
3382 <desc>For forward merges: new parent for target medium.</desc>
3383 </param>
3384 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3385 <desc>For backward merges: list of media which need their parent UUID
3386 updated.</desc>
3387 </param>
3388 </method>
3389
3390 <method name="restoreSnapshot">
3391 <desc>
3392 Gets called by <link to="IConsole::restoreSnapshot"/>.
3393 </desc>
3394 <param name="initiator" type="IConsole" dir="in">
3395 <desc>The console object that initiated this call.</desc>
3396 </param>
3397 <param name="snapshot" type="ISnapshot" dir="in">
3398 <desc>The snapshot to restore the VM state from.</desc>
3399 </param>
3400 <param name="machineState" type="MachineState" dir="out">
3401 <desc>New machine state after this operation is started.</desc>
3402 </param>
3403 <param name="progress" type="IProgress" dir="return">
3404 <desc>Progress object to track the operation completion.</desc>
3405 </param>
3406 </method>
3407
3408 <method name="pullGuestProperties">
3409 <desc>
3410 Get the list of the guest properties matching a set of patterns along
3411 with their values, time stamps and flags and give responsibility for
3412 managing properties to the console.
3413 </desc>
3414 <param name="name" type="wstring" dir="out" safearray="yes">
3415 <desc>
3416 The names of the properties returned.
3417 </desc>
3418 </param>
3419 <param name="value" type="wstring" dir="out" safearray="yes">
3420 <desc>
3421 The values of the properties returned. The array entries match the
3422 corresponding entries in the @a name array.
3423 </desc>
3424 </param>
3425 <param name="timestamp" type="long long" dir="out" safearray="yes">
3426 <desc>
3427 The time stamps of the properties returned. The array entries match
3428 the corresponding entries in the @a name array.
3429 </desc>
3430 </param>
3431 <param name="flags" type="wstring" dir="out" safearray="yes">
3432 <desc>
3433 The flags of the properties returned. The array entries match the
3434 corresponding entries in the @a name array.
3435 </desc>
3436 </param>
3437 </method>
3438
3439 <method name="pushGuestProperty">
3440 <desc>
3441 Update a single guest property in IMachine.
3442 </desc>
3443 <param name="name" type="wstring" dir="in">
3444 <desc>
3445 The name of the property to be updated.
3446 </desc>
3447 </param>
3448 <param name="value" type="wstring" dir="in">
3449 <desc>
3450 The value of the property.
3451 </desc>
3452 </param>
3453 <param name="timestamp" type="long long" dir="in">
3454 <desc>
3455 The timestamp of the property.
3456 </desc>
3457 </param>
3458 <param name="flags" type="wstring" dir="in">
3459 <desc>
3460 The flags of the property.
3461 </desc>
3462 </param>
3463 </method>
3464
3465 <method name="lockMedia">
3466 <desc>
3467 Locks all media attached to the machine for writing and parents of
3468 attached differencing media (if any) for reading. This operation is
3469 atomic so that if it fails no media is actually locked.
3470
3471 This method is intended to be called when the machine is in Starting or
3472 Restoring state. The locked media will be automatically unlocked when
3473 the machine is powered off or crashed.
3474 </desc>
3475 </method>
3476 <method name="unlockMedia">
3477 <desc>
3478 Unlocks all media previously locked using
3479 <link to="IInternalMachineControl::lockMedia"/>.
3480
3481 This method is intended to be used with teleportation so that it is
3482 possible to teleport between processes on the same machine.
3483 </desc>
3484 </method>
3485
3486 <method name="ejectMedium">
3487 <desc>
3488 Tells VBoxSVC that the guest has ejected the medium associated with
3489 the medium attachment.
3490 </desc>
3491 <param name="attachment" type="IMediumAttachment" dir="in">
3492 <desc>
3493 The medium attachment where the eject happened.
3494 </desc>
3495 </param>
3496 <param name="newAttachment" type="IMediumAttachment" dir="return">
3497 <desc>
3498 A new reference to the medium attachment, as the config change can
3499 result in the creation of a new instance.
3500 </desc>
3501 </param>
3502 </method>
3503
3504 <method name="reportGuestStatistics">
3505 <desc>
3506 Passes collected guest statistics to VBoxSVC.
3507 </desc>
3508 <param name="validStats" type="unsigned long" dir="in">
3509 <desc>
3510 Mask defining which parameters are valid. For example: 0x11 means
3511 that cpuIdle and XXX are valid. Other parameters should be ignored.
3512 </desc>
3513 </param>
3514 <param name="cpuUser" type="unsigned long" dir="in">
3515 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3516 </param>
3517 <param name="cpuKernel" type="unsigned long" dir="in">
3518 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3519 </param>
3520 <param name="cpuIdle" type="unsigned long" dir="in">
3521 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3522 </param>
3523 <param name="memTotal" type="unsigned long" dir="in">
3524 <desc>Total amount of physical guest RAM.</desc>
3525 </param>
3526 <param name="memFree" type="unsigned long" dir="in">
3527 <desc>Free amount of physical guest RAM.</desc>
3528 </param>
3529 <param name="memBalloon" type="unsigned long" dir="in">
3530 <desc>Amount of ballooned physical guest RAM.</desc>
3531 </param>
3532 <param name="memShared" type="unsigned long" dir="in">
3533 <desc>Amount of shared physical guest RAM.</desc>
3534 </param>
3535 <param name="memCache" type="unsigned long" dir="in">
3536 <desc>Total amount of guest (disk) cache memory.</desc>
3537 </param>
3538 <param name="pagedTotal" type="unsigned long" dir="in">
3539 <desc>Total amount of space in the page file.</desc>
3540 </param>
3541 <param name="memAllocTotal" type="unsigned long" dir="in">
3542 <desc>Total amount of memory allocated by the hypervisor.</desc>
3543 </param>
3544 <param name="memFreeTotal" type="unsigned long" dir="in">
3545 <desc>Total amount of free memory available in the hypervisor.</desc>
3546 </param>
3547 <param name="memBalloonTotal" type="unsigned long" dir="in">
3548 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3549 </param>
3550 <param name="memSharedTotal" type="unsigned long" dir="in">
3551 <desc>Total amount of shared memory in the hypervisor.</desc>
3552 </param>
3553 </method>
3554 </interface>
3555
3556 <interface
3557 name="IBIOSSettings" extends="$unknown"
3558 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3559 wsmap="managed"
3560 >
3561 <desc>
3562 The IBIOSSettings interface represents BIOS settings of the virtual
3563 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3564 </desc>
3565 <attribute name="logoFadeIn" type="boolean">
3566 <desc>Fade in flag for BIOS logo animation.</desc>
3567 </attribute>
3568
3569 <attribute name="logoFadeOut" type="boolean">
3570 <desc>Fade out flag for BIOS logo animation.</desc>
3571 </attribute>
3572
3573 <attribute name="logoDisplayTime" type="unsigned long">
3574 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3575 </attribute>
3576
3577 <attribute name="logoImagePath" type="wstring">
3578 <desc>
3579 Local file system path for external BIOS splash image. Empty string
3580 means the default image is shown on boot.
3581 </desc>
3582 </attribute>
3583
3584 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3585 <desc>Mode of the BIOS boot device menu.</desc>
3586 </attribute>
3587
3588 <attribute name="ACPIEnabled" type="boolean">
3589 <desc>ACPI support flag.</desc>
3590 </attribute>
3591
3592 <attribute name="IOAPICEnabled" type="boolean">
3593 <desc>
3594 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3595 and support IRQs above 15.
3596 </desc>
3597 </attribute>
3598
3599 <attribute name="timeOffset" type="long long">
3600 <desc>
3601 Offset in milliseconds from the host system time. This allows for
3602 guests running with a different system date/time than the host.
3603 It is equivalent to setting the system date/time in the BIOS except
3604 it is not an absolute value but a relative one. Guest Additions
3605 time synchronization honors this offset.
3606 </desc>
3607 </attribute>
3608
3609 <attribute name="PXEDebugEnabled" type="boolean">
3610 <desc>
3611 PXE debug logging flag. If set, VirtualBox will write extensive
3612 PXE trace information to the release log.
3613 </desc>
3614 </attribute>
3615 </interface>
3616
3617 <enum
3618 name="CleanupMode"
3619 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3620 >
3621 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3622 </desc>
3623 <const name="UnregisterOnly" value="1">
3624 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3625 </const>
3626 <const name="DetachAllReturnNone" value="2">
3627 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3628 </const>
3629 <const name="DetachAllReturnHardDisksOnly" value="3">
3630 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3631 </const>
3632 <const name="Full" value="4">
3633 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3634 </const>
3635 </enum>
3636
3637 <interface
3638 name="IPCIAddress" extends="$unknown"
3639 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3640 wsmap="struct"
3641 >
3642
3643 <desc>
3644 Address on the PCI bus.
3645 </desc>
3646
3647 <attribute name="bus" type="short">
3648 <desc>
3649 Bus number.
3650 </desc>
3651 </attribute>
3652
3653 <attribute name="device" type="short">
3654 <desc>
3655 Device number.
3656 </desc>
3657 </attribute>
3658
3659 <attribute name="devFunction" type="short">
3660 <desc>
3661 Device function number.
3662 </desc>
3663 </attribute>
3664
3665 <method name="asLong">
3666 <desc>
3667 Convert PCI address into long.
3668 </desc>
3669 <param name="result" type="long" dir="return" />
3670 </method>
3671
3672 <method name="fromLong">
3673 <desc>
3674 Make PCI address from long.
3675 </desc>
3676 <param name="number" type="long" dir="in" />
3677 </method>
3678 </interface>
3679
3680 <interface
3681 name="IPCIDeviceAttachment" extends="$unknown"
3682 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3683 wsmap="struct"
3684 >
3685
3686 <desc>
3687 Information about PCI attachments.
3688 </desc>
3689
3690 <attribute name="name" type="wstring" readonly="yes">
3691 <desc>
3692 Device name.
3693 </desc>
3694 </attribute>
3695
3696 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3697 <desc>
3698 If this is physical or virtual device.
3699 </desc>
3700 </attribute>
3701
3702 <attribute name="hostAddress" type="long" readonly="yes">
3703 <desc>
3704 Address of device on the host, applicable only to host devices.
3705 </desc>
3706 </attribute>
3707
3708 <attribute name="guestAddress" type="long" readonly="yes">
3709 <desc>
3710 Address of device on the guest.
3711 </desc>
3712 </attribute>
3713
3714 </interface>
3715
3716 <enum
3717 name="CloneMode" extends="$unknown"
3718 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3719 >
3720
3721 <desc>
3722 Clone mode, used with <link to="IMachine::cloneTo" />.
3723 </desc>
3724
3725 <const name="MachineState" value="1">
3726 <desc>Clone the state of the selected machine.</desc>
3727 </const>
3728 <const name="MachineAndChildStates" value="2">
3729 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3730 </const>
3731 <const name="AllStates" value="3">
3732 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3733 </const>
3734
3735 </enum>
3736
3737 <enum
3738 name="CloneOptions" extends="$unknown"
3739 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3740 >
3741
3742 <desc>
3743 Clone options, used with <link to="IMachine::cloneTo" />.
3744 </desc>
3745
3746 <const name="Link" value="1">
3747 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3748 </const>
3749 <const name="KeepAllMACs" value="2">
3750 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3751 </const>
3752 <const name="KeepNATMACs" value="3">
3753 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3754 </const>
3755 <const name="KeepDiskNames" value="4">
3756 <desc>Don't change the disk names.</desc>
3757 </const>
3758
3759 </enum>
3760
3761 <enum
3762 name="AutostopType" extends="$unknown"
3763 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3764 >
3765
3766 <desc>
3767 Autostop types, used with <link to="IMachine::autostopType" />.
3768 </desc>
3769
3770 <const name="Disabled" value="1">
3771 <desc>Stopping the VM during system shutdown is disabled.</desc>
3772 </const>
3773 <const name="SaveState" value="2">
3774 <desc>The state of the VM will be saved when the system shuts down.</desc>
3775 </const>
3776 <const name="PowerOff" value="3">
3777 <desc>The VM is powered off when the system shuts down.</desc>
3778 </const>
3779 <const name="AcpiShutdown" value="4">
3780 <desc>An ACPI shutdown event is generated.</desc>
3781 </const>
3782
3783 </enum>
3784
3785
3786 <interface
3787 name="IMachine" extends="$unknown"
3788 uuid="22781af3-1c96-4126-9edf-67a020e0e858"
3789 wsmap="managed"
3790 >
3791 <desc>
3792 The IMachine interface represents a virtual machine, or guest, created
3793 in VirtualBox.
3794
3795 This interface is used in two contexts. First of all, a collection of
3796 objects implementing this interface is stored in the
3797 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3798 machines that are currently registered with this VirtualBox
3799 installation. Also, once a session has been opened for the given virtual
3800 machine (e.g. the virtual machine is running), the machine object
3801 associated with the open session can be queried from the session object;
3802 see <link to="ISession"/> for details.
3803
3804 The main role of this interface is to expose the settings of the virtual
3805 machine and provide methods to change various aspects of the virtual
3806 machine's configuration. For machine objects stored in the
3807 <link to="IVirtualBox::machines"/> collection, all attributes are
3808 read-only unless explicitly stated otherwise in individual attribute
3809 and method descriptions.
3810
3811 In order to change a machine setting, a session for this machine must be
3812 opened using one of the <link to="IMachine::lockMachine" /> or
3813 <link to="IMachine::launchVMProcess"/> methods. After the
3814 machine has been successfully locked for a session, a mutable machine object
3815 needs to be queried from the session object and then the desired settings
3816 changes can be applied to the returned object using IMachine attributes and
3817 methods. See the <link to="ISession"/> interface description for more
3818 information about sessions.
3819
3820 Note that IMachine does not provide methods to control virtual machine
3821 execution (such as start the machine, or power it down) -- these methods
3822 are grouped in a separate interface called <link to="IConsole" />.
3823
3824 <see><link to="ISession"/>, <link to="IConsole"/></see>
3825 </desc>
3826
3827 <attribute name="parent" type="IVirtualBox" readonly="yes">
3828 <desc>Associated parent object.</desc>
3829 </attribute>
3830
3831 <attribute name="accessible" type="boolean" readonly="yes">
3832 <desc>
3833 Whether this virtual machine is currently accessible or not.
3834
3835 A machine is always deemed accessible unless it is registered <i>and</i>
3836 its settings file cannot be read or parsed (either because the file itself
3837 is unavailable or has invalid XML contents).
3838
3839 Every time this property is read, the accessibility state of
3840 this machine is re-evaluated. If the returned value is @c false,
3841 the <link to="#accessError"/> property may be used to get the
3842 detailed error information describing the reason of
3843 inaccessibility, including XML error messages.
3844
3845 When the machine is inaccessible, only the following properties
3846 can be used on it:
3847 <ul>
3848 <li><link to="#parent"/></li>
3849 <li><link to="#id"/></li>
3850 <li><link to="#settingsFilePath"/></li>
3851 <li><link to="#accessible"/></li>
3852 <li><link to="#accessError"/></li>
3853 </ul>
3854
3855 An attempt to access any other property or method will return
3856 an error.
3857
3858 The only possible action you can perform on an inaccessible
3859 machine is to unregister it using the
3860 <link to="IMachine::unregister"/> call (or, to check
3861 for the accessibility state once more by querying this
3862 property).
3863
3864 <note>
3865 In the current implementation, once this property returns
3866 @c true, the machine will never become inaccessible
3867 later, even if its settings file cannot be successfully
3868 read/written any more (at least, until the VirtualBox
3869 server is restarted). This limitation may be removed in
3870 future releases.
3871 </note>
3872 </desc>
3873 </attribute>
3874
3875 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3876 <desc>
3877 Error information describing the reason of machine
3878 inaccessibility.
3879
3880 Reading this property is only valid after the last call to
3881 <link to="#accessible"/> returned @c false (i.e. the
3882 machine is currently inaccessible). Otherwise, a @c null
3883 IVirtualBoxErrorInfo object will be returned.
3884 </desc>
3885 </attribute>
3886
3887 <attribute name="name" type="wstring">
3888 <desc>
3889 Name of the virtual machine.
3890
3891 Besides being used for human-readable identification purposes
3892 everywhere in VirtualBox, the virtual machine name is also used
3893 as a name of the machine's settings file and as a name of the
3894 subdirectory this settings file resides in. Thus, every time you
3895 change the value of this property, the settings file will be
3896 renamed once you call <link to="#saveSettings"/> to confirm the
3897 change. The containing subdirectory will be also renamed, but
3898 only if it has exactly the same name as the settings file
3899 itself prior to changing this property (for backward compatibility
3900 with previous API releases). The above implies the following
3901 limitations:
3902 <ul>
3903 <li>The machine name cannot be empty.</li>
3904 <li>The machine name can contain only characters that are valid
3905 file name characters according to the rules of the file
3906 system used to store VirtualBox configuration.</li>
3907 <li>You cannot have two or more machines with the same name
3908 if they use the same subdirectory for storing the machine
3909 settings files.</li>
3910 <li>You cannot change the name of the machine if it is running,
3911 or if any file in the directory containing the settings file
3912 is being used by another running machine or by any other
3913 process in the host operating system at a time when
3914 <link to="#saveSettings"/> is called.
3915 </li>
3916 </ul>
3917 If any of the above limitations are hit, <link to="#saveSettings"/>
3918 will return an appropriate error message explaining the exact
3919 reason and the changes you made to this machine will not be saved.
3920
3921 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
3922 file is recommended, but not enforced. (Previous versions always
3923 used a generic ".xml" extension.)
3924 </desc>
3925 </attribute>
3926
3927 <attribute name="description" type="wstring">
3928 <desc>
3929 Description of the virtual machine.
3930
3931 The description attribute can contain any text and is
3932 typically used to describe the hardware and software
3933 configuration of the virtual machine in detail (i.e. network
3934 settings, versions of the installed software and so on).
3935 </desc>
3936 </attribute>
3937
3938 <attribute name="id" type="uuid" mod="string" readonly="yes">
3939 <desc>UUID of the virtual machine.</desc>
3940 </attribute>
3941
3942 <attribute name="groups" type="wstring" safearray="yes">
3943 <desc>
3944 Array of machine group names of which this machine is a member.
3945 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
3946 group is only listed once, however they are listed in no particular
3947 order and there is no guarantee that there are no gaps in the group
3948 hierarchy (i.e. <tt>"/group"</tt>,
3949 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
3950 </desc>
3951 </attribute>
3952
3953 <attribute name="OSTypeId" type="wstring">
3954 <desc>
3955 User-defined identifier of the Guest OS type.
3956 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3957 an IGuestOSType object representing details about the given
3958 Guest OS type.
3959 <note>
3960 This value may differ from the value returned by
3961 <link to="IGuest::OSTypeId"/> if Guest Additions are
3962 installed to the guest OS.
3963 </note>
3964 </desc>
3965 </attribute>
3966
3967 <attribute name="hardwareVersion" type="wstring">
3968 <desc>Hardware version identifier. Internal use only for now.</desc>
3969 </attribute>
3970
3971 <attribute name="hardwareUUID" type="uuid" mod="string">
3972 <desc>
3973 The UUID presented to the guest via memory tables, hardware and guest
3974 properties. For most VMs this is the same as the @a id, but for VMs
3975 which have been cloned or teleported it may be the same as the source
3976 VM. The latter is because the guest shouldn't notice that it was
3977 cloned or teleported.
3978 </desc>
3979 </attribute>
3980
3981 <attribute name="CPUCount" type="unsigned long">
3982 <desc>Number of virtual CPUs in the VM.</desc>
3983 </attribute>
3984
3985 <attribute name="CPUHotPlugEnabled" type="boolean">
3986 <desc>
3987 This setting determines whether VirtualBox allows CPU
3988 hotplugging for this machine.</desc>
3989 </attribute>
3990
3991 <attribute name="CPUExecutionCap" type="unsigned long">
3992 <desc>
3993 Means to limit the number of CPU cycles a guest can use. The unit
3994 is percentage of host CPU cycles per second. The valid range
3995 is 1 - 100. 100 (the default) implies no limit.
3996 </desc>
3997 </attribute>
3998
3999 <attribute name="memorySize" type="unsigned long">
4000 <desc>System memory size in megabytes.</desc>
4001 </attribute>
4002
4003 <attribute name="memoryBalloonSize" type="unsigned long">
4004 <desc>Memory balloon size in megabytes.</desc>
4005 </attribute>
4006
4007 <attribute name="pageFusionEnabled" type="boolean">
4008 <desc>
4009 This setting determines whether VirtualBox allows page
4010 fusion for this machine (64 bits host only).
4011 </desc>
4012 </attribute>
4013
4014 <attribute name="VRAMSize" type="unsigned long">
4015 <desc>Video memory size in megabytes.</desc>
4016 </attribute>
4017
4018 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4019 <desc>
4020 This setting determines whether VirtualBox allows this machine to make
4021 use of the 3D graphics support available on the host.</desc>
4022 </attribute>
4023
4024 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4025 <desc>
4026 This setting determines whether VirtualBox allows this machine to make
4027 use of the 2D video acceleration support available on the host.</desc>
4028 </attribute>
4029
4030 <attribute name="monitorCount" type="unsigned long">
4031 <desc>
4032 Number of virtual monitors.
4033 <note>
4034 Only effective on Windows XP and later guests with
4035 Guest Additions installed.
4036 </note>
4037 </desc>
4038 </attribute>
4039
4040 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4041 <desc>Object containing all BIOS settings.</desc>
4042 </attribute>
4043
4044 <attribute name="firmwareType" type="FirmwareType">
4045 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4046 bootstrap in this VM.</desc>
4047 </attribute>
4048
4049 <attribute name="pointingHIDType" type="PointingHIDType">
4050 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4051 The default is typically "PS2Mouse" but can vary depending on the
4052 requirements of the guest operating system.</desc>
4053 </attribute>
4054
4055 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4056 <desc>Type of keyboard HID used in this VM.
4057 The default is typically "PS2Keyboard" but can vary depending on the
4058 requirements of the guest operating system.</desc>
4059 </attribute>
4060
4061 <attribute name="HPETEnabled" type="boolean">
4062 <desc>This attribute controls if High Precision Event Timer (HPET) is
4063 enabled in this VM. Use this property if you want to provide guests
4064 with additional time source, or if guest requires HPET to function correctly.
4065 Default is false.</desc>
4066 </attribute>
4067
4068 <attribute name="chipsetType" type="ChipsetType">
4069 <desc>Chipset type used in this VM.</desc>
4070 </attribute>
4071
4072 <attribute name="snapshotFolder" type="wstring">
4073 <desc>
4074 Full path to the directory used to store snapshot data
4075 (differencing media and saved state files) of this machine.
4076
4077 The initial value of this property is
4078 <tt>&lt;</tt><link to="#settingsFilePath">
4079 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4080 <link to="#id">machine_uuid</link>
4081 <tt>&gt;</tt>.
4082
4083 Currently, it is an error to try to change this property on
4084 a machine that has snapshots (because this would require to
4085 move possibly large files to a different location).
4086 A separate method will be available for this purpose later.
4087
4088 <note>
4089 Setting this property to @c null or to an empty string will restore
4090 the initial value.
4091 </note>
4092 <note>
4093 When setting this property, the specified path can be
4094 absolute (full path) or relative to the directory where the
4095 <link to="#settingsFilePath">machine settings file</link>
4096 is located. When reading this property, a full path is
4097 always returned.
4098 </note>
4099 <note>
4100 The specified path may not exist, it will be created
4101 when necessary.
4102 </note>
4103 </desc>
4104 </attribute>
4105
4106 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4107 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4108 </attribute>
4109
4110 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4111 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4112
4113 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4114 <desc>Array of media attached to this machine.</desc>
4115 </attribute>
4116
4117 <attribute name="USBController" type="IUSBController" readonly="yes">
4118 <desc>
4119 Associated USB controller object.
4120
4121 <note>
4122 If USB functionality is not available in the given edition of
4123 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4124 </note>
4125 </desc>
4126 </attribute>
4127
4128 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4129 <desc>Associated audio adapter, always present.</desc>
4130 </attribute>
4131
4132 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4133 <desc>Array of storage controllers attached to this machine.</desc>
4134 </attribute>
4135
4136 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4137 <desc>
4138 Full name of the file containing machine settings data.
4139 </desc>
4140 </attribute>
4141
4142 <attribute name="settingsModified" type="boolean" readonly="yes">
4143 <desc>
4144 Whether the settings of this machine have been modified
4145 (but neither yet saved nor discarded).
4146 <note>
4147 Reading this property is only valid on instances returned
4148 by <link to="ISession::machine"/> and on new machines
4149 created by <link to="IVirtualBox::createMachine"/> or opened
4150 by <link to="IVirtualBox::openMachine"/> but not
4151 yet registered, or on unregistered machines after calling
4152 <link to="IMachine::unregister"/>. For all other
4153 cases, the settings can never be modified.
4154 </note>
4155 <note>
4156 For newly created unregistered machines, the value of this
4157 property is always @c true until <link to="#saveSettings"/>
4158 is called (no matter if any machine settings have been
4159 changed after the creation or not). For opened machines
4160 the value is set to @c false (and then follows to normal rules).
4161 </note>
4162 </desc>
4163 </attribute>
4164
4165 <attribute name="sessionState" type="SessionState" readonly="yes">
4166 <desc>Current session state for this machine.</desc>
4167 </attribute>
4168
4169 <attribute name="sessionType" type="wstring" readonly="yes">
4170 <desc>
4171 Type of the session. If <link to="#sessionState"/> is
4172 Spawning or Locked, this attribute contains the
4173 same value as passed to the
4174 <link to="IMachine::launchVMProcess"/> method in the
4175 @a type parameter. If the session was used with
4176 <link to="IMachine::lockMachine" />, or if
4177 <link to="#sessionState"/> is SessionClosed, the value of this
4178 attribute is an empty string.
4179 </desc>
4180 </attribute>
4181
4182 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4183 <desc>
4184 Identifier of the session process. This attribute contains the
4185 platform-dependent identifier of the process whose session was
4186 used with <link to="IMachine::lockMachine" /> call. The returned
4187 value is only valid if <link to="#sessionState"/> is Locked or
4188 Unlocking by the time this property is read.
4189 </desc>
4190 </attribute>
4191
4192 <attribute name="state" type="MachineState" readonly="yes">
4193 <desc>Current execution state of this machine.</desc>
4194 </attribute>
4195
4196 <attribute name="lastStateChange" type="long long" readonly="yes">
4197 <desc>
4198 Time stamp of the last execution state change,
4199 in milliseconds since 1970-01-01 UTC.
4200 </desc>
4201 </attribute>
4202
4203 <attribute name="stateFilePath" type="wstring" readonly="yes">
4204 <desc>
4205 Full path to the file that stores the execution state of
4206 the machine when it is in the <link to="MachineState_Saved"/> state.
4207 <note>
4208 When the machine is not in the Saved state, this attribute is
4209 an empty string.
4210 </note>
4211 </desc>
4212 </attribute>
4213
4214 <attribute name="logFolder" type="wstring" readonly="yes">
4215 <desc>
4216 Full path to the folder that stores a set of rotated log files
4217 recorded during machine execution. The most recent log file is
4218 named <tt>VBox.log</tt>, the previous log file is
4219 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4220 in the current version).
4221 </desc>
4222 </attribute>
4223
4224 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4225 <desc>
4226 Current snapshot of this machine. This is @c null if the machine
4227 currently has no snapshots. If it is not @c null, then it was
4228 set by one of <link to="IConsole::takeSnapshot" />,
4229 <link to="IConsole::deleteSnapshot" />
4230 or <link to="IConsole::restoreSnapshot" />, depending on which
4231 was called last. See <link to="ISnapshot"/> for details.
4232 </desc>
4233 </attribute>
4234
4235 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4236 <desc>
4237 Number of snapshots taken on this machine. Zero means the
4238 machine doesn't have any snapshots.
4239 </desc>
4240 </attribute>
4241
4242 <attribute name="currentStateModified" type="boolean" readonly="yes">
4243 <desc>
4244 Returns @c true if the current state of the machine is not
4245 identical to the state stored in the current snapshot.
4246
4247 The current state is identical to the current snapshot only
4248 directly after one of the following calls are made:
4249
4250 <ul>
4251 <li><link to="IConsole::restoreSnapshot"/>
4252 </li>
4253 <li><link to="IConsole::takeSnapshot"/> (issued on a
4254 "powered off" or "saved" machine, for which
4255 <link to="#settingsModified"/> returns @c false)
4256 </li>
4257 </ul>
4258
4259 The current state remains identical until one of the following
4260 happens:
4261 <ul>
4262 <li>settings of the machine are changed</li>
4263 <li>the saved state is deleted</li>
4264 <li>the current snapshot is deleted</li>
4265 <li>an attempt to execute the machine is made</li>
4266 </ul>
4267
4268 <note>
4269 For machines that don't have snapshots, this property is
4270 always @c false.
4271 </note>
4272 </desc>
4273 </attribute>
4274
4275 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4276 <desc>
4277 Collection of shared folders for this machine (permanent shared
4278 folders). These folders are shared automatically at machine startup
4279 and available only to the guest OS installed within this machine.
4280
4281 New shared folders are added to the collection using
4282 <link to="#createSharedFolder"/>. Existing shared folders can be
4283 removed using <link to="#removeSharedFolder"/>.
4284 </desc>
4285 </attribute>
4286
4287 <attribute name="clipboardMode" type="ClipboardMode">
4288 <desc>
4289 Synchronization mode between the host OS clipboard
4290 and the guest OS clipboard.
4291 </desc>
4292 </attribute>
4293
4294 <attribute name="dragAndDropMode" type="DragAndDropMode">
4295 <desc>
4296 Which mode is allowed for drag'n'drop.
4297 </desc>
4298 </attribute>
4299
4300 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4301 <desc>
4302 A comma-separated list of simple glob patterns. Changes to guest
4303 properties whose name matches one of the patterns will generate an
4304 <link to="IGuestPropertyChangedEvent"/> signal.
4305 </desc>
4306 </attribute>
4307
4308 <attribute name="teleporterEnabled" type="boolean">
4309 <desc>
4310 When set to @a true, the virtual machine becomes a target teleporter
4311 the next time it is powered on. This can only set to @a true when the
4312 VM is in the @a PoweredOff or @a Aborted state.
4313
4314 <!-- This property is automatically set to @a false when the VM is powered
4315 on. (bird: This doesn't work yet ) -->
4316 </desc>
4317 </attribute>
4318
4319 <attribute name="teleporterPort" type="unsigned long">
4320 <desc>
4321 The TCP port the target teleporter will listen for incoming
4322 teleportations on.
4323
4324 0 means the port is automatically selected upon power on. The actual
4325 value can be read from this property while the machine is waiting for
4326 incoming teleportations.
4327 </desc>
4328 </attribute>
4329
4330 <attribute name="teleporterAddress" type="wstring">
4331 <desc>
4332 The address the target teleporter will listen on. If set to an empty
4333 string, it will listen on all addresses.
4334 </desc>
4335 </attribute>
4336
4337 <attribute name="teleporterPassword" type="wstring">
4338 <desc>
4339 The password to check for on the target teleporter. This is just a
4340 very basic measure to prevent simple hacks and operators accidentally
4341 beaming a virtual machine to the wrong place.
4342
4343 Note that you SET a plain text password while reading back a HASHED
4344 password. Setting a hashed password is currently not supported.
4345 </desc>
4346 </attribute>
4347
4348 <attribute name="faultToleranceState" type="FaultToleranceState">
4349 <desc>
4350 Fault tolerance state; disabled, source or target.
4351 This property can be changed at any time. If you change it for a running
4352 VM, then the fault tolerance address and port must be set beforehand.
4353 </desc>
4354 </attribute>
4355
4356 <attribute name="faultTolerancePort" type="unsigned long">
4357 <desc>
4358 The TCP port the fault tolerance source or target will use for
4359 communication.
4360 </desc>
4361 </attribute>
4362
4363 <attribute name="faultToleranceAddress" type="wstring">
4364 <desc>
4365 The address the fault tolerance source or target.
4366 </desc>
4367 </attribute>
4368
4369 <attribute name="faultTolerancePassword" type="wstring">
4370 <desc>
4371 The password to check for on the standby VM. This is just a
4372 very basic measure to prevent simple hacks and operators accidentally
4373 choosing the wrong standby VM.
4374 </desc>
4375 </attribute>
4376
4377 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4378 <desc>
4379 The interval in ms used for syncing the state between source and target.
4380 </desc>
4381 </attribute>
4382
4383 <attribute name="RTCUseUTC" type="boolean">
4384 <desc>
4385 When set to @a true, the RTC device of the virtual machine will run
4386 in UTC time, otherwise in local time. Especially Unix guests prefer
4387 the time in UTC.
4388 </desc>
4389 </attribute>
4390
4391 <attribute name="IOCacheEnabled" type="boolean">
4392 <desc>
4393 When set to @a true, the builtin I/O cache of the virtual machine
4394 will be enabled.
4395 </desc>
4396 </attribute>
4397
4398 <attribute name="IOCacheSize" type="unsigned long">
4399 <desc>
4400 Maximum size of the I/O cache in MB.
4401 </desc>
4402 </attribute>
4403
4404 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4405 <desc>Array of PCI devices assigned to this machine, to get list of all
4406 PCI devices attached to the machine use
4407 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4408 is intended to list only devices additional to what described in
4409 virtual hardware config. Usually, this list keeps host's physical
4410 devices assigned to the particular machine.
4411 </desc>
4412 </attribute>
4413
4414 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4415 <desc>
4416 Bandwidth control manager.
4417 </desc>
4418 </attribute>
4419
4420 <attribute name="tracingEnabled" type="boolean">
4421 <desc>
4422 Enables the tracing facility in the VMM (including PDM devices +
4423 drivers). The VMM will consume about 0.5MB of more memory when
4424 enabled and there may be some extra overhead from tracepoints that are
4425 always enabled.
4426 </desc>
4427 </attribute>
4428
4429 <attribute name="tracingConfig" type="wstring">
4430 <desc>
4431 Tracepoint configuration to apply at startup when
4432 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4433 a space separated of tracepoint group names to enable. The special
4434 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4435 more details on available tracepoint groups and such.
4436
4437 Note that on hosts supporting DTrace (or similar), a lot of the
4438 tracepoints may be implemented exclusivly as DTrace probes. So, the
4439 effect of the same config may differ between Solaris and Windows for
4440 example.
4441 </desc>
4442 </attribute>
4443
4444 <attribute name="allowTracingToAccessVM" type="boolean">
4445 <desc>
4446 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4447 structures when firing off trace points. This is especially useful
4448 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4449 pointer to obtain useful information such as guest register state.
4450
4451 This is disabled by default because devices and drivers normally has no
4452 business accessing the VMCPU or VM structures, and are therefore unable
4453 to get any pointers to these.
4454 </desc>
4455 </attribute>
4456
4457 <attribute name="autostartEnabled" type="boolean">
4458 <desc>
4459 Enables autostart of the VM during system boot.
4460 </desc>
4461 </attribute>
4462
4463 <attribute name="autostartDelay" type="unsigned long">
4464 <desc>
4465 Number of seconds to wait until the VM should be started during system boot.
4466 </desc>
4467 </attribute>
4468
4469 <attribute name="autostopType" type="AutostopType">
4470 <desc>
4471 Action type to do when the system is shutting down.
4472 </desc>
4473 </attribute>
4474
4475 <method name="lockMachine">
4476 <desc>
4477 Locks the machine for the given session to enable the caller
4478 to make changes to the machine or start the VM or control
4479 VM execution.
4480
4481 There are two ways to lock a machine for such uses:
4482
4483 <ul>
4484 <li>If you want to make changes to the machine settings,
4485 you must obtain an exclusive write lock on the machine
4486 by setting @a lockType to @c Write.
4487
4488 This will only succeed if no other process has locked
4489 the machine to prevent conflicting changes. Only after
4490 an exclusive write lock has been obtained using this method, one
4491 can change all VM settings or execute the VM in the process
4492 space of the session object. (Note that the latter is only of
4493 interest if you actually want to write a new front-end for
4494 virtual machines; but this API gets called internally by
4495 the existing front-ends such as VBoxHeadless and the VirtualBox
4496 GUI to acquire a write lock on the machine that they are running.)
4497
4498 On success, write-locking the machine for a session creates
4499 a second copy of the IMachine object. It is this second object
4500 upon which changes can be made; in VirtualBox terminology, the
4501 second copy is "mutable". It is only this second, mutable machine
4502 object upon which you can call methods that change the
4503 machine state. After having called this method, you can
4504 obtain this second, mutable machine object using the
4505 <link to="ISession::machine" /> attribute.
4506 </li>
4507 <li>If you only want to check the machine state or control
4508 machine execution without actually changing machine
4509 settings (e.g. to get access to VM statistics or take
4510 a snapshot or save the machine state), then set the
4511 @a lockType argument to @c Shared.
4512
4513 If no other session has obtained a lock, you will obtain an
4514 exclusive write lock as described above. However, if another
4515 session has already obtained such a lock, then a link to that
4516 existing session will be established which allows you
4517 to control that existing session.
4518
4519 To find out which type of lock was obtained, you can
4520 inspect <link to="ISession::type" />, which will have been
4521 set to either @c WriteLock or @c Shared.
4522 </li>
4523 </ul>
4524
4525 In either case, you can get access to the <link to="IConsole" />
4526 object which controls VM execution.
4527
4528 Also in all of the above cases, one must always call
4529 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4530 the machine's state will eventually be set to "Aborted".
4531
4532 To change settings on a machine, the following sequence is typically
4533 performed:
4534
4535 <ol>
4536 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4537
4538 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4539
4540 <li>Change the settings of the machine by invoking IMachine methods.</li>
4541
4542 <li>Call <link to="IMachine::saveSettings" />.</li>
4543
4544 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4545 </ol>
4546
4547 <result name="E_UNEXPECTED">
4548 Virtual machine not registered.
4549 </result>
4550 <result name="E_ACCESSDENIED">
4551 Process not started by OpenRemoteSession.
4552 </result>
4553 <result name="VBOX_E_INVALID_OBJECT_STATE">
4554 Session already open or being opened.
4555 </result>
4556 <result name="VBOX_E_VM_ERROR">
4557 Failed to assign machine to session.
4558 </result>
4559 </desc>
4560 <param name="session" type="ISession" dir="in">
4561 <desc>
4562 Session object for which the machine will be locked.
4563 </desc>
4564 </param>
4565 <param name="lockType" type="LockType" dir="in">
4566 <desc>
4567 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4568 If set to @c Shared, then either acquire an exclusive write lock or establish
4569 a link to an existing session.
4570 </desc>
4571 </param>
4572 </method>
4573
4574 <method name="launchVMProcess">
4575 <desc>
4576 Spawns a new process that will execute the virtual machine and obtains a shared
4577 lock on the machine for the calling session.
4578
4579 If launching the VM succeeds, the new VM process will create its own session
4580 and write-lock the machine for it, preventing conflicting changes from other
4581 processes. If the machine is already locked (because it is already running or
4582 because another session has a write lock), launching the VM process will therefore
4583 fail. Reversely, future attempts to obtain a write lock will also fail while the
4584 machine is running.
4585
4586 The caller's session object remains separate from the session opened by the new
4587 VM process. It receives its own <link to="IConsole" /> object which can be used
4588 to control machine execution, but it cannot be used to change all VM settings
4589 which would be available after a <link to="#lockMachine" /> call.
4590
4591 The caller must eventually release the session's shared lock by calling
4592 <link to="ISession::unlockMachine" /> on the local session object once this call
4593 has returned. However, the session's state (see <link to="ISession::state" />)
4594 will not return to "Unlocked" until the remote session has also unlocked
4595 the machine (i.e. the machine has stopped running).
4596
4597 Launching a VM process can take some time (a new VM is started in a new process,
4598 for which memory and other resources need to be set up). Because of this,
4599 an <link to="IProgress" /> object is returned to allow the caller to wait
4600 for this asynchronous operation to be completed. Until then, the caller's
4601 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4602 and <link to="ISession::console" /> attributes cannot be accessed.
4603 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4604 similar calls to wait for completion. Completion is signalled when the VM
4605 is powered on. If launching the VM fails, error messages can be queried
4606 via the progress object, if available.
4607
4608 The progress object will have at least 2 sub-operations. The first
4609 operation covers the period up to the new VM process calls powerUp.
4610 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4611 progress object. Because <link to="IConsole::powerUp"/> may require
4612 some extra sub-operations, the <link to="IProgress::operationCount"/>
4613 may change at the completion of operation.
4614
4615 For details on the teleportation progress operation, see
4616 <link to="IConsole::powerUp"/>.
4617
4618 The @a environment argument is a string containing definitions of
4619 environment variables in the following format:
4620 <pre>
4621 NAME[=VALUE]\n
4622 NAME[=VALUE]\n
4623 ...
4624 </pre>
4625 where <tt>\\n</tt> is the new line character. These environment
4626 variables will be appended to the environment of the VirtualBox server
4627 process. If an environment variable exists both in the server process
4628 and in this list, the value from this list takes precedence over the
4629 server's variable. If the value of the environment variable is
4630 omitted, this variable will be removed from the resulting environment.
4631 If the environment string is @c null or empty, the server environment
4632 is inherited by the started process as is.
4633
4634 <result name="E_UNEXPECTED">
4635 Virtual machine not registered.
4636 </result>
4637 <result name="E_INVALIDARG">
4638 Invalid session type @a type.
4639 </result>
4640 <result name="VBOX_E_OBJECT_NOT_FOUND">
4641 No machine matching @a machineId found.
4642 </result>
4643 <result name="VBOX_E_INVALID_OBJECT_STATE">
4644 Session already open or being opened.
4645 </result>
4646 <result name="VBOX_E_IPRT_ERROR">
4647 Launching process for machine failed.
4648 </result>
4649 <result name="VBOX_E_VM_ERROR">
4650 Failed to assign machine to session.
4651 </result>
4652 </desc>
4653 <param name="session" type="ISession" dir="in">
4654 <desc>
4655 Client session object to which the VM process will be connected (this
4656 must be in "Unlocked" state).
4657 </desc>
4658 </param>
4659 <param name="type" type="wstring" dir="in">
4660 <desc>
4661 Front-end to use for the new VM process. The following are currently supported:
4662 <ul>
4663 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4664 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4665 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4666 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4667 the currently running VM or session owner. In this case the
4668 @a session parameter may be @c null (if it is non-null it isn't
4669 used in any way), and the @a progress return value will be always
4670 @c null. The operation completes immediately.</li>
4671 </ul>
4672 </desc>
4673 </param>
4674 <param name="environment" type="wstring" dir="in">
4675 <desc>
4676 Environment to pass to the VM process.
4677 </desc>
4678 </param>
4679 <param name="progress" type="IProgress" dir="return">
4680 <desc>Progress object to track the operation completion.</desc>
4681 </param>
4682 </method>
4683
4684 <method name="setBootOrder">
4685 <desc>
4686 Puts the given device to the specified position in
4687 the boot order.
4688
4689 To indicate that no device is associated with the given position,
4690 <link to="DeviceType_Null"/> should be used.
4691
4692 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4693
4694 <result name="E_INVALIDARG">
4695 Boot @a position out of range.
4696 </result>
4697 <result name="E_NOTIMPL">
4698 Booting from USB @a device currently not supported.
4699 </result>
4700
4701 </desc>
4702 <param name="position" type="unsigned long" dir="in">
4703 <desc>
4704 Position in the boot order (@c 1 to the total number of
4705 devices the machine can boot from, as returned by
4706 <link to="ISystemProperties::maxBootPosition"/>).
4707 </desc>
4708 </param>
4709 <param name="device" type="DeviceType" dir="in">
4710 <desc>
4711 The type of the device used to boot at the given position.
4712 </desc>
4713 </param>
4714 </method>
4715
4716 <method name="getBootOrder" const="yes">
4717 <desc>
4718 Returns the device type that occupies the specified
4719 position in the boot order.
4720
4721 @todo [remove?]
4722 If the machine can have more than one device of the returned type
4723 (such as hard disks), then a separate method should be used to
4724 retrieve the individual device that occupies the given position.
4725
4726 If here are no devices at the given position, then
4727 <link to="DeviceType_Null"/> is returned.
4728
4729 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4730
4731 <result name="E_INVALIDARG">
4732 Boot @a position out of range.
4733 </result>
4734
4735 </desc>
4736 <param name="position" type="unsigned long" dir="in">
4737 <desc>
4738 Position in the boot order (@c 1 to the total number of
4739 devices the machine can boot from, as returned by
4740 <link to="ISystemProperties::maxBootPosition"/>).
4741 </desc>
4742 </param>
4743 <param name="device" type="DeviceType" dir="return">
4744 <desc>
4745 Device at the given position.
4746 </desc>
4747 </param>
4748 </method>
4749
4750 <method name="attachDevice">
4751 <desc>
4752 Attaches a device and optionally mounts a medium to the given storage
4753 controller (<link to="IStorageController" />, identified by @a name),
4754 at the indicated port and device.
4755
4756 This method is intended for managing storage devices in general while a
4757 machine is powered off. It can be used to attach and detach fixed
4758 and removable media. The following kind of media can be attached
4759 to a machine:
4760
4761 <ul>
4762 <li>For fixed and removable media, you can pass in a medium that was
4763 previously opened using <link to="IVirtualBox::openMedium" />.
4764 </li>
4765
4766 <li>Only for storage devices supporting removable media (such as
4767 DVDs and floppies), you can also specify a null pointer to
4768 indicate an empty drive or one of the medium objects listed
4769 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4770 arrays to indicate a host drive.
4771 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4772 to change the media while the machine is running.
4773 </li>
4774 </ul>
4775
4776 In a VM's default configuration of virtual machines, the secondary
4777 master of the IDE controller is used for a CD/DVD drive.
4778
4779 After calling this returns successfully, a new instance of
4780 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4781 attachments (see <link to="IMachine::mediumAttachments"/>).
4782
4783 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4784 information about attaching media.
4785
4786 The specified device slot must not have a device attached to it,
4787 or this method will fail.
4788
4789 <note>
4790 You cannot attach a device to a newly created machine until
4791 this machine's settings are saved to disk using
4792 <link to="#saveSettings"/>.
4793 </note>
4794 <note>
4795 If the medium is being attached indirectly, a new differencing medium
4796 will implicitly be created for it and attached instead. If the
4797 changes made to the machine settings (including this indirect
4798 attachment) are later cancelled using <link to="#discardSettings"/>,
4799 this implicitly created differencing medium will implicitly
4800 be deleted.
4801 </note>
4802
4803 <result name="E_INVALIDARG">
4804 SATA device, SATA port, IDE port or IDE slot out of range, or
4805 file or UUID not found.
4806 </result>
4807 <result name="VBOX_E_INVALID_OBJECT_STATE">
4808 Machine must be registered before media can be attached.
4809 </result>
4810 <result name="VBOX_E_INVALID_VM_STATE">
4811 Invalid machine state.
4812 </result>
4813 <result name="VBOX_E_OBJECT_IN_USE">
4814 A medium is already attached to this or another virtual machine.
4815 </result>
4816
4817 </desc>
4818 <param name="name" type="wstring" dir="in">
4819 <desc>Name of the storage controller to attach the device to.</desc>
4820 </param>
4821 <param name="controllerPort" type="long" dir="in">
4822 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4823 the primary controller and 1 specifies the secondary controller.
4824 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4825 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4826 </param>
4827 <param name="device" type="long" dir="in">
4828 <desc>Device slot in the given port to attach the device to. This is only
4829 relevant for IDE controllers, for which 0 specifies the master device and
4830 1 specifies the slave device. For all other controller types, this must
4831 be 0.</desc>
4832 </param>
4833 <param name="type" type="DeviceType" dir="in">
4834 <desc>Device type of the attached device. For media opened by
4835 <link to="IVirtualBox::openMedium" />, this must match the device type
4836 specified there.</desc>
4837 </param>
4838 <param name="medium" type="IMedium" dir="in">
4839 <desc>Medium to mount or @c null for an empty drive.</desc>
4840 </param>
4841 </method>
4842
4843 <method name="attachDeviceWithoutMedium">
4844 <desc>
4845 Attaches a device and optionally mounts a medium to the given storage
4846 controller (<link to="IStorageController" />, identified by @a name),
4847 at the indicated port and device.
4848
4849 This method is intended for managing storage devices in general while a
4850 machine is powered off. It can be used to attach and detach fixed
4851 and removable media. The following kind of media can be attached
4852 to a machine:
4853 <ul>
4854 <li>
4855 For fixed and removable media, you can pass in a medium that was
4856 previously opened using <link to="IVirtualBox::openMedium" />.
4857 </li>
4858
4859 <li>Only for storage devices supporting removable media (such as
4860 DVDs and floppies) with an empty drive or one of the medium objects listed
4861 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4862 arrays to indicate a host drive.
4863 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4864 to change the media while the machine is running.
4865 </li>
4866 </ul>
4867
4868 In a VM's default configuration of virtual machines, the secondary
4869 master of the IDE controller is used for a CD/DVD drive.
4870 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4871 attachments (see <link to="IMachine::mediumAttachments"/>).
4872
4873 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4874 information about attaching media.
4875
4876 The specified device slot must not have a device attached to it,
4877 or this method will fail.
4878 <note>
4879 You cannot attach a device to a newly created machine until
4880 this machine's settings are saved to disk using
4881 <link to="#saveSettings"/>.
4882 </note>
4883 <note>
4884 If the medium is being attached indirectly, a new differencing medium
4885 will implicitly be created for it and attached instead. If the
4886 changes made to the machine settings (including this indirect
4887 attachment) are later cancelled using <link to="#discardSettings"/>,
4888 this implicitly created differencing medium will implicitly
4889 be deleted.
4890 </note>
4891
4892 <result name="E_INVALIDARG">
4893 SATA device, SATA port, IDE port or IDE slot out of range, or
4894 file or UUID not found.
4895 </result>
4896 <result name="VBOX_E_INVALID_OBJECT_STATE">
4897 Machine must be registered before media can be attached.
4898 </result>
4899 <result name="VBOX_E_INVALID_VM_STATE">
4900 Invalid machine state.
4901 </result>
4902 <result name="VBOX_E_OBJECT_IN_USE">
4903 A medium is already attached to this or another virtual machine.
4904 </result>
4905 </desc>
4906 <param name="name" type="wstring" dir="in">
4907 <desc>Name of the storage controller to attach the device to.</desc>
4908 </param>
4909 <param name="controllerPort" type="long" dir="in">
4910 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4911 the primary controller and 1 specifies the secondary controller.
4912 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4913 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4914 </param>
4915 <param name="device" type="long" dir="in">
4916 <desc>Device slot in the given port to attach the device to. This is only
4917 relevant for IDE controllers, for which 0 specifies the master device and
4918 1 specifies the slave device. For all other controller types, this must
4919 be 0.</desc>
4920 </param>
4921 <param name="type" type="DeviceType" dir="in">
4922 <desc>Device type of the attached device. For media opened by
4923 <link to="IVirtualBox::openMedium" />, this must match the device type
4924 specified there.</desc>
4925 </param>
4926 </method>
4927
4928 <method name="detachDevice">
4929 <desc>
4930 Detaches the device attached to a device slot of the specified bus.
4931
4932 Detaching the device from the virtual machine is deferred. This means
4933 that the medium remains associated with the machine when this method
4934 returns and gets actually de-associated only after a successful
4935 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4936 for more detailed information about attaching media.
4937
4938 <note>
4939 You cannot detach a device from a running machine.
4940 </note>
4941 <note>
4942 Detaching differencing media implicitly created by <link
4943 to="#attachDevice"/> for the indirect attachment using this
4944 method will <b>not</b> implicitly delete them. The
4945 <link to="IMedium::deleteStorage"/> operation should be
4946 explicitly performed by the caller after the medium is successfully
4947 detached and the settings are saved with
4948 <link to="#saveSettings"/>, if it is the desired action.
4949 </note>
4950
4951 <result name="VBOX_E_INVALID_VM_STATE">
4952 Attempt to detach medium from a running virtual machine.
4953 </result>
4954 <result name="VBOX_E_OBJECT_NOT_FOUND">
4955 No medium attached to given slot/bus.
4956 </result>
4957 <result name="VBOX_E_NOT_SUPPORTED">
4958 Medium format does not support storage deletion (only for implicitly
4959 created differencing media, should not happen).
4960 </result>
4961
4962 </desc>
4963 <param name="name" type="wstring" dir="in">
4964 <desc>Name of the storage controller to detach the medium from.</desc>
4965 </param>
4966 <param name="controllerPort" type="long" dir="in">
4967 <desc>Port number to detach the medium from.</desc>
4968 </param>
4969 <param name="device" type="long" dir="in">
4970 <desc>Device slot number to detach the medium from.</desc>
4971 </param>
4972 </method>
4973
4974 <method name="passthroughDevice">
4975 <desc>
4976 Sets the passthrough mode of an existing DVD device. Changing the
4977 setting while the VM is running is forbidden. The setting is only used
4978 if at VM start the device is configured as a host DVD drive, in all
4979 other cases it is ignored. The device must already exist; see
4980 <link to="IMachine::attachDevice"/> for how to attach a new device.
4981
4982 The @a controllerPort and @a device parameters specify the device slot and
4983 have have the same meaning as with <link to="IMachine::attachDevice" />.
4984
4985 <result name="E_INVALIDARG">
4986 SATA device, SATA port, IDE port or IDE slot out of range.
4987 </result>
4988 <result name="VBOX_E_INVALID_OBJECT_STATE">
4989 Attempt to modify an unregistered virtual machine.
4990 </result>
4991 <result name="VBOX_E_INVALID_VM_STATE">
4992 Invalid machine state.
4993 </result>
4994
4995 </desc>
4996 <param name="name" type="wstring" dir="in">
4997 <desc>Name of the storage controller.</desc>
4998 </param>
4999 <param name="controllerPort" type="long" dir="in">
5000 <desc>Storage controller port.</desc>
5001 </param>
5002 <param name="device" type="long" dir="in">
5003 <desc>Device slot in the given port.</desc>
5004 </param>
5005 <param name="passthrough" type="boolean" dir="in">
5006 <desc>New value for the passthrough setting.</desc>
5007 </param>
5008 </method>
5009
5010 <method name="temporaryEjectDevice">
5011 <desc>
5012 Sets the behavior for guest-triggered medium eject. In some situations
5013 it is desirable that such ejects update the VM configuration, and in
5014 others the eject should keep the VM configuration. The device must
5015 already exist; see <link to="IMachine::attachDevice"/> for how to
5016 attach a new device.
5017
5018 The @a controllerPort and @a device parameters specify the device slot and
5019 have have the same meaning as with <link to="IMachine::attachDevice" />.
5020
5021 <result name="E_INVALIDARG">
5022 SATA device, SATA port, IDE port or IDE slot out of range.
5023 </result>
5024 <result name="VBOX_E_INVALID_OBJECT_STATE">
5025 Attempt to modify an unregistered virtual machine.
5026 </result>
5027 <result name="VBOX_E_INVALID_VM_STATE">
5028 Invalid machine state.
5029 </result>
5030
5031 </desc>
5032 <param name="name" type="wstring" dir="in">
5033 <desc>Name of the storage controller.</desc>
5034 </param>
5035 <param name="controllerPort" type="long" dir="in">
5036 <desc>Storage controller port.</desc>
5037 </param>
5038 <param name="device" type="long" dir="in">
5039 <desc>Device slot in the given port.</desc>
5040 </param>
5041 <param name="temporaryEject" type="boolean" dir="in">
5042 <desc>New value for the eject behavior.</desc>
5043 </param>
5044 </method>
5045
5046 <method name="nonRotationalDevice">
5047 <desc>
5048 Sets a flag in the device information which indicates that the medium
5049 is not based on rotational technology, i.e. that the access times are
5050 more or less independent of the position on the medium. This may or may
5051 not be supported by a particular drive, and is silently ignored in the
5052 latter case. At the moment only hard disks (which is a misnomer in this
5053 context) accept this setting. Changing the setting while the VM is
5054 running is forbidden. The device must already exist; see
5055 <link to="IMachine::attachDevice"/> for how to attach a new device.
5056
5057 The @a controllerPort and @a device parameters specify the device slot and
5058 have have the same meaning as with <link to="IMachine::attachDevice" />.
5059
5060 <result name="E_INVALIDARG">
5061 SATA device, SATA port, IDE port or IDE slot out of range.
5062 </result>
5063 <result name="VBOX_E_INVALID_OBJECT_STATE">
5064 Attempt to modify an unregistered virtual machine.
5065 </result>
5066 <result name="VBOX_E_INVALID_VM_STATE">
5067 Invalid machine state.
5068 </result>
5069
5070 </desc>
5071 <param name="name" type="wstring" dir="in">
5072 <desc>Name of the storage controller.</desc>
5073 </param>
5074 <param name="controllerPort" type="long" dir="in">
5075 <desc>Storage controller port.</desc>
5076 </param>
5077 <param name="device" type="long" dir="in">
5078 <desc>Device slot in the given port.</desc>
5079 </param>
5080 <param name="nonRotational" type="boolean" dir="in">
5081 <desc>New value for the non-rotational device flag.</desc>
5082 </param>
5083 </method>
5084
5085 <method name="setAutoDiscardForDevice">
5086 <desc>
5087 Sets a flag in the device information which indicates that the medium
5088 supports discarding unsused blocks (called trimming for SATA or unmap
5089 for SCSI devices) .This may or may not be supported by a particular drive,
5090 and is silently ignored in the latter case. At the moment only hard disks
5091 (which is a misnomer in this context) accept this setting. Changing the
5092 setting while the VM is running is forbidden. The device must already
5093 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5094 device.
5095
5096 The @a controllerPort and @a device parameters specify the device slot and
5097 have have the same meaning as with <link to="IMachine::attachDevice" />.
5098
5099 <result name="E_INVALIDARG">
5100 SATA device, SATA port, SCSI port out of range.
5101 </result>
5102 <result name="VBOX_E_INVALID_OBJECT_STATE">
5103 Attempt to modify an unregistered virtual machine.
5104 </result>
5105 <result name="VBOX_E_INVALID_VM_STATE">
5106 Invalid machine state.
5107 </result>
5108
5109 </desc>
5110 <param name="name" type="wstring" dir="in">
5111 <desc>Name of the storage controller.</desc>
5112 </param>
5113 <param name="controllerPort" type="long" dir="in">
5114 <desc>Storage controller port.</desc>
5115 </param>
5116 <param name="device" type="long" dir="in">
5117 <desc>Device slot in the given port.</desc>
5118 </param>
5119 <param name="discard" type="boolean" dir="in">
5120 <desc>New value for the discard device flag.</desc>
5121 </param>
5122 </method>
5123
5124 <method name="setBandwidthGroupForDevice">
5125 <desc>
5126 Sets the bandwidth group of an existing storage device.
5127 The device must already exist; see <link to="IMachine::attachDevice"/>
5128 for how to attach a new device.
5129
5130 The @a controllerPort and @a device parameters specify the device slot and
5131 have have the same meaning as with <link to="IMachine::attachDevice" />.
5132
5133 <result name="E_INVALIDARG">
5134 SATA device, SATA port, IDE port or IDE slot out of range.
5135 </result>
5136 <result name="VBOX_E_INVALID_OBJECT_STATE">
5137 Attempt to modify an unregistered virtual machine.
5138 </result>
5139 <result name="VBOX_E_INVALID_VM_STATE">
5140 Invalid machine state.
5141 </result>
5142
5143 </desc>
5144 <param name="name" type="wstring" dir="in">
5145 <desc>Name of the storage controller.</desc>
5146 </param>
5147 <param name="controllerPort" type="long" dir="in">
5148 <desc>Storage controller port.</desc>
5149 </param>
5150 <param name="device" type="long" dir="in">
5151 <desc>Device slot in the given port.</desc>
5152 </param>
5153 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5154 <desc>New value for the bandwidth group or @c null for no group.</desc>
5155 </param>
5156 </method>
5157
5158 <method name="setNoBandwidthGroupForDevice">
5159 <desc>
5160 Sets no bandwidth group for an existing storage device.
5161 The device must already exist; see <link to="IMachine::attachDevice"/>
5162 for how to attach a new device.
5163 The @a controllerPort and @a device parameters specify the device slot and
5164 have have the same meaning as with <link to="IMachine::attachDevice" />.
5165 <result name="E_INVALIDARG">
5166 SATA device, SATA port, IDE port or IDE slot out of range.
5167 </result>
5168 <result name="VBOX_E_INVALID_OBJECT_STATE">
5169 Attempt to modify an unregistered virtual machine.
5170 </result>
5171 <result name="VBOX_E_INVALID_VM_STATE">
5172 Invalid machine state.
5173 </result>
5174
5175 </desc>
5176 <param name="name" type="wstring" dir="in">
5177 <desc>Name of the storage controller.</desc>
5178 </param>
5179 <param name="controllerPort" type="long" dir="in">
5180 <desc>Storage controller port.</desc>
5181 </param>
5182 <param name="device" type="long" dir="in">
5183 <desc>Device slot in the given port.</desc>
5184 </param>
5185 </method>
5186
5187
5188 <method name="unmountMedium">
5189 <desc>
5190 Unmounts any currently mounted medium (<link to="IMedium" />,
5191 identified by the given UUID @a id) to the given storage controller
5192 (<link to="IStorageController" />, identified by @a name),
5193 at the indicated port and device. The device must already exist;
5194
5195 This method is intended only for managing removable media, where the
5196 device is fixed but media is changeable at runtime (such as DVDs
5197 and floppies). It cannot be used for fixed media such as hard disks.
5198
5199 The @a controllerPort and @a device parameters specify the device slot
5200 and have have the same meaning as with
5201 <link to="IMachine::attachDevice" />.
5202
5203 The specified device slot must have a medium mounted, which will be
5204 unmounted. If there is no mounted medium it will do nothing.
5205 See <link to="IMedium"/> for more detailed information about
5206 attaching/unmounting media.
5207
5208 <result name="E_INVALIDARG">
5209 SATA device, SATA port, IDE port or IDE slot out of range.
5210 </result>
5211 <result name="VBOX_E_INVALID_OBJECT_STATE">
5212 Attempt to unmount medium that is not removeable - not dvd or floppy.
5213 </result>
5214 <result name="VBOX_E_INVALID_VM_STATE">
5215 Invalid machine state.
5216 </result>
5217 <result name="VBOX_E_OBJECT_IN_USE">
5218 Medium already attached to this or another virtual machine.
5219 </result>
5220 <result name="VBOX_E_OBJECT_NOT_FOUND">
5221 Medium not attached to specified port, device, controller.
5222 </result>
5223
5224 </desc>
5225 <param name="name" type="wstring" dir="in">
5226 <desc>Name of the storage controller to unmount the medium from.</desc>
5227 </param>
5228 <param name="controllerPort" type="long" dir="in">
5229 <desc>Port to unmount the medium from.</desc>
5230 </param>
5231 <param name="device" type="long" dir="in">
5232 <desc>Device slot in the given port to unmount the medium from.</desc>
5233 </param>
5234 <param name="force" type="boolean" dir="in">
5235 <desc>Allows to force unmount of a medium which is locked by
5236 the device slot in the given port medium is attached to.</desc>
5237 </param>
5238 </method>
5239
5240 <method name="mountMedium">
5241 <desc>
5242 Mounts a medium (<link to="IMedium" />, identified
5243 by the given UUID @a id) to the given storage controller
5244 (<link to="IStorageController" />, identified by @a name),
5245 at the indicated port and device. The device must already exist;
5246 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5247
5248 This method is intended only for managing removable media, where the
5249 device is fixed but media is changeable at runtime (such as DVDs
5250 and floppies). It cannot be used for fixed media such as hard disks.
5251
5252 The @a controllerPort and @a device parameters specify the device slot and
5253 have have the same meaning as with <link to="IMachine::attachDevice" />.
5254
5255 The specified device slot can have a medium mounted, which will be
5256 unmounted first. Specifying a zero UUID (or an empty string) for
5257 @a medium does just an unmount.
5258
5259 See <link to="IMedium"/> for more detailed information about
5260 attaching media.
5261
5262 <result name="E_INVALIDARG">
5263 SATA device, SATA port, IDE port or IDE slot out of range.
5264 </result>
5265 <result name="VBOX_E_INVALID_OBJECT_STATE">
5266 Attempt to attach medium to an unregistered virtual machine.
5267 </result>
5268 <result name="VBOX_E_INVALID_VM_STATE">
5269 Invalid machine state.
5270 </result>
5271 <result name="VBOX_E_OBJECT_IN_USE">
5272 Medium already attached to this or another virtual machine.
5273 </result>
5274
5275 </desc>
5276 <param name="name" type="wstring" dir="in">
5277 <desc>Name of the storage controller to attach the medium to.</desc>
5278 </param>
5279 <param name="controllerPort" type="long" dir="in">
5280 <desc>Port to attach the medium to.</desc>
5281 </param>
5282 <param name="device" type="long" dir="in">
5283 <desc>Device slot in the given port to attach the medium to.</desc>
5284 </param>
5285 <param name="medium" type="IMedium" dir="in">
5286 <desc>Medium to mount or @c null for an empty drive.</desc>
5287 </param>
5288 <param name="force" type="boolean" dir="in">
5289 <desc>Allows to force unmount/mount of a medium which is locked by
5290 the device slot in the given port to attach the medium to.</desc>
5291 </param>
5292 </method>
5293
5294 <method name="getMedium" const="yes">
5295 <desc>
5296 Returns the virtual medium attached to a device slot of the specified
5297 bus.
5298
5299 Note that if the medium was indirectly attached by
5300 <link to="#mountMedium"/> to the given device slot then this
5301 method will return not the same object as passed to the
5302 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5303 more detailed information about mounting a medium.
5304
5305 <result name="VBOX_E_OBJECT_NOT_FOUND">
5306 No medium attached to given slot/bus.
5307 </result>
5308
5309 </desc>
5310 <param name="name" type="wstring" dir="in">
5311 <desc>Name of the storage controller the medium is attached to.</desc>
5312 </param>
5313 <param name="controllerPort" type="long" dir="in">
5314 <desc>Port to query.</desc>
5315 </param>
5316 <param name="device" type="long" dir="in">
5317 <desc>Device slot in the given port to query.</desc>
5318 </param>
5319 <param name="medium" type="IMedium" dir="return">
5320 <desc>Attached medium object.</desc>
5321 </param>
5322 </method>
5323
5324 <method name="getMediumAttachmentsOfController" const="yes">
5325 <desc>
5326 Returns an array of medium attachments which are attached to the
5327 the controller with the given name.
5328
5329 <result name="VBOX_E_OBJECT_NOT_FOUND">
5330 A storage controller with given name doesn't exist.
5331 </result>
5332 </desc>
5333 <param name="name" type="wstring" dir="in"/>
5334 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5335 </method>
5336
5337 <method name="getMediumAttachment" const="yes">
5338 <desc>
5339 Returns a medium attachment which corresponds to the controller with
5340 the given name, on the given port and device slot.
5341
5342 <result name="VBOX_E_OBJECT_NOT_FOUND">
5343 No attachment exists for the given controller/port/device combination.
5344 </result>
5345 </desc>
5346 <param name="name" type="wstring" dir="in"/>
5347 <param name="controllerPort" type="long" dir="in"/>
5348 <param name="device" type="long" dir="in"/>
5349 <param name="attachment" type="IMediumAttachment" dir="return"/>
5350 </method>
5351
5352 <method name="attachHostPCIDevice">
5353 <desc>
5354 Attaches host PCI device with the given (host) PCI address to the
5355 PCI bus of the virtual machine. Please note, that this operation
5356 is two phase, as real attachment will happen when VM will start,
5357 and most information will be delivered as IHostPCIDevicePlugEvent
5358 on IVirtualBox event source.
5359
5360 <see><link to="IHostPCIDevicePlugEvent"/></see>
5361
5362 <result name="VBOX_E_INVALID_VM_STATE">
5363 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5364 </result>
5365 <result name="VBOX_E_PDM_ERROR">
5366 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5367 </result>
5368 <result name="VBOX_E_NOT_SUPPORTED">
5369 Hardware or host OS doesn't allow PCI device passthrought.
5370 </result>
5371 </desc>
5372 <param name="hostAddress" type="long" dir="in">
5373 <desc>Address of the host PCI device.</desc>
5374 </param>
5375 <param name="desiredGuestAddress" type="long" dir="in">
5376 <desc>Desired position of this device on guest PCI bus.</desc>
5377 </param>
5378 <param name="tryToUnbind" type="boolean" dir="in">
5379 <desc>If VMM shall try to unbind existing drivers from the
5380 device before attaching it to the guest.</desc>
5381 </param>
5382 </method>
5383
5384 <method name="detachHostPCIDevice">
5385 <desc>
5386 Detach host PCI device from the virtual machine.
5387 Also HostPCIDevicePlugEvent on IVirtualBox event source
5388 will be delivered. As currently we don't support hot device
5389 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5390
5391 <see><link to="IHostPCIDevicePlugEvent"/></see>
5392
5393 <result name="VBOX_E_INVALID_VM_STATE">
5394 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5395 </result>
5396 <result name="VBOX_E_OBJECT_NOT_FOUND">
5397 This host device is not attached to this machine.
5398 </result>
5399 <result name="VBOX_E_PDM_ERROR">
5400 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5401 </result>
5402 <result name="VBOX_E_NOT_SUPPORTED">
5403 Hardware or host OS doesn't allow PCI device passthrought.
5404 </result>
5405 </desc>
5406 <param name="hostAddress" type="long" dir="in">
5407 <desc>Address of the host PCI device.</desc>
5408 </param>
5409 </method>
5410
5411 <method name="getNetworkAdapter" const="yes">
5412 <desc>
5413 Returns the network adapter associated with the given slot.
5414 Slots are numbered sequentially, starting with zero. The total
5415 number of adapters per machine is defined by the
5416 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5417 so the maximum slot number is one less than that property's value.
5418
5419 <result name="E_INVALIDARG">
5420 Invalid @a slot number.
5421 </result>
5422
5423 </desc>
5424 <param name="slot" type="unsigned long" dir="in"/>
5425 <param name="adapter" type="INetworkAdapter" dir="return"/>
5426 </method>
5427
5428 <method name="addStorageController">
5429 <desc>
5430 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5431 machine and returns it as an instance of
5432 <link to="IStorageController" />.
5433
5434 @a name identifies the controller for subsequent calls such as
5435 <link to="#getStorageControllerByName" />,
5436 <link to="#getStorageControllerByInstance" />,
5437 <link to="#removeStorageController" />,
5438 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5439
5440 After the controller has been added, you can set its exact
5441 type by setting the <link to="IStorageController::controllerType" />.
5442
5443 <result name="VBOX_E_OBJECT_IN_USE">
5444 A storage controller with given name exists already.
5445 </result>
5446 <result name="E_INVALIDARG">
5447 Invalid @a controllerType.
5448 </result>
5449 </desc>
5450 <param name="name" type="wstring" dir="in"/>
5451 <param name="connectionType" type="StorageBus" dir="in"/>
5452 <param name="controller" type="IStorageController" dir="return"/>
5453 </method>
5454
5455 <method name="getStorageControllerByName" const="yes">
5456 <desc>
5457 Returns a storage controller with the given name.
5458
5459 <result name="VBOX_E_OBJECT_NOT_FOUND">
5460 A storage controller with given name doesn't exist.
5461 </result>
5462 </desc>
5463 <param name="name" type="wstring" dir="in"/>
5464 <param name="storageController" type="IStorageController" dir="return"/>
5465 </method>
5466
5467 <method name="getStorageControllerByInstance" const="yes">
5468 <desc>
5469 Returns a storage controller with the given instance number.
5470
5471 <result name="VBOX_E_OBJECT_NOT_FOUND">
5472 A storage controller with given instance number doesn't exist.
5473 </result>
5474 </desc>
5475 <param name="instance" type="unsigned long" dir="in"/>
5476 <param name="storageController" type="IStorageController" dir="return"/>
5477 </method>
5478
5479 <method name="removeStorageController">
5480 <desc>
5481 Removes a storage controller from the machine with all devices attached to it.
5482
5483 <result name="VBOX_E_OBJECT_NOT_FOUND">
5484 A storage controller with given name doesn't exist.
5485 </result>
5486 <result name="VBOX_E_NOT_SUPPORTED">
5487 Medium format does not support storage deletion (only for implicitly
5488 created differencing media, should not happen).
5489 </result>
5490 </desc>
5491 <param name="name" type="wstring" dir="in"/>
5492 </method>
5493
5494 <method name="setStorageControllerBootable">
5495 <desc>
5496 Sets the bootable flag of the storage controller with the given name.
5497
5498 <result name="VBOX_E_OBJECT_NOT_FOUND">
5499 A storage controller with given name doesn't exist.
5500 </result>
5501 <result name="VBOX_E_OBJECT_IN_USE">
5502 Another storage controller is marked as bootable already.
5503 </result>
5504 </desc>
5505 <param name="name" type="wstring" dir="in"/>
5506 <param name="bootable" type="boolean" dir="in"/>
5507 </method>
5508
5509 <method name="getSerialPort" const="yes">
5510 <desc>
5511 Returns the serial port associated with the given slot.
5512 Slots are numbered sequentially, starting with zero. The total
5513 number of serial ports per machine is defined by the
5514 <link to="ISystemProperties::serialPortCount"/> property,
5515 so the maximum slot number is one less than that property's value.
5516
5517 <result name="E_INVALIDARG">
5518 Invalid @a slot number.
5519 </result>
5520
5521 </desc>
5522 <param name="slot" type="unsigned long" dir="in"/>
5523 <param name="port" type="ISerialPort" dir="return"/>
5524 </method>
5525
5526 <method name="getParallelPort" const="yes">
5527 <desc>
5528 Returns the parallel port associated with the given slot.
5529 Slots are numbered sequentially, starting with zero. The total
5530 number of parallel ports per machine is defined by the
5531 <link to="ISystemProperties::parallelPortCount"/> property,
5532 so the maximum slot number is one less than that property's value.
5533
5534 <result name="E_INVALIDARG">
5535 Invalid @a slot number.
5536 </result>
5537
5538 </desc>
5539 <param name="slot" type="unsigned long" dir="in"/>
5540 <param name="port" type="IParallelPort" dir="return"/>
5541 </method>
5542
5543 <method name="getExtraDataKeys">
5544 <desc>
5545 Returns an array representing the machine-specific extra data keys
5546 which currently have values defined.
5547 </desc>
5548 <param name="value" type="wstring" dir="return" safearray="yes">
5549 <desc>Array of extra data keys.</desc>
5550 </param>
5551 </method>
5552
5553 <method name="getExtraData">
5554 <desc>
5555 Returns associated machine-specific extra data.
5556
5557 If the requested data @a key does not exist, this function will
5558 succeed and return an empty string in the @a value argument.
5559
5560 <result name="VBOX_E_FILE_ERROR">
5561 Settings file not accessible.
5562 </result>
5563 <result name="VBOX_E_XML_ERROR">
5564 Could not parse the settings file.
5565 </result>
5566
5567 </desc>
5568 <param name="key" type="wstring" dir="in">
5569 <desc>Name of the data key to get.</desc>
5570 </param>
5571 <param name="value" type="wstring" dir="return">
5572 <desc>Value of the requested data key.</desc>
5573 </param>
5574 </method>
5575
5576 <method name="setExtraData">
5577 <desc>
5578 Sets associated machine-specific extra data.
5579
5580 If you pass @c null or an empty string as a key @a value, the given
5581 @a key will be deleted.
5582
5583 <note>
5584 Before performing the actual data change, this method will ask all
5585 registered listeners using the
5586 <link to="IExtraDataCanChangeEvent"/>
5587 notification for a permission. If one of the listeners refuses the
5588 new value, the change will not be performed.
5589 </note>
5590 <note>
5591 On success, the
5592 <link to="IExtraDataChangedEvent"/> notification
5593 is called to inform all registered listeners about a successful data
5594 change.
5595 </note>
5596 <note>
5597 This method can be called outside the machine session and therefore
5598 it's a caller's responsibility to handle possible race conditions
5599 when several clients change the same key at the same time.
5600 </note>
5601
5602 <result name="VBOX_E_FILE_ERROR">
5603 Settings file not accessible.
5604 </result>
5605 <result name="VBOX_E_XML_ERROR">
5606 Could not parse the settings file.
5607 </result>
5608
5609 </desc>
5610 <param name="key" type="wstring" dir="in">
5611 <desc>Name of the data key to set.</desc>
5612 </param>
5613 <param name="value" type="wstring" dir="in">
5614 <desc>Value to assign to the key.</desc>
5615 </param>
5616 </method>
5617
5618 <method name="getCPUProperty" const="yes">
5619 <desc>
5620 Returns the virtual CPU boolean value of the specified property.
5621
5622 <result name="E_INVALIDARG">
5623 Invalid property.
5624 </result>
5625
5626 </desc>
5627 <param name="property" type="CPUPropertyType" dir="in">
5628 <desc>
5629 Property type to query.
5630 </desc>
5631 </param>
5632 <param name="value" type="boolean" dir="return">
5633 <desc>
5634 Property value.
5635 </desc>
5636 </param>
5637 </method>
5638
5639 <method name="setCPUProperty">
5640 <desc>
5641 Sets the virtual CPU boolean value of the specified property.
5642
5643 <result name="E_INVALIDARG">
5644 Invalid property.
5645 </result>
5646
5647 </desc>
5648 <param name="property" type="CPUPropertyType" dir="in">
5649 <desc>
5650 Property type to query.
5651 </desc>
5652 </param>
5653 <param name="value" type="boolean" dir="in">
5654 <desc>
5655 Property value.
5656 </desc>
5657 </param>
5658 </method>
5659
5660 <method name="getCPUIDLeaf" const="yes">
5661 <desc>
5662 Returns the virtual CPU cpuid information for the specified leaf.
5663
5664 Currently supported index values for cpuid:
5665 Standard CPUID leafs: 0 - 0xA
5666 Extended CPUID leafs: 0x80000000 - 0x8000000A
5667
5668 See the Intel and AMD programmer's manuals for detailed information
5669 about the cpuid instruction and its leafs.
5670 <result name="E_INVALIDARG">
5671 Invalid id.
5672 </result>
5673
5674 </desc>
5675 <param name="id" type="unsigned long" dir="in">
5676 <desc>
5677 CPUID leaf index.
5678 </desc>
5679 </param>
5680 <param name="valEax" type="unsigned long" dir="out">
5681 <desc>
5682 CPUID leaf value for register eax.
5683 </desc>
5684 </param>
5685 <param name="valEbx" type="unsigned long" dir="out">
5686 <desc>
5687 CPUID leaf value for register ebx.
5688 </desc>
5689 </param>
5690 <param name="valEcx" type="unsigned long" dir="out">
5691 <desc>
5692 CPUID leaf value for register ecx.
5693 </desc>
5694 </param>
5695 <param name="valEdx" type="unsigned long" dir="out">
5696 <desc>
5697 CPUID leaf value for register edx.
5698 </desc>
5699 </param>
5700 </method>
5701
5702 <method name="setCPUIDLeaf">
5703 <desc>
5704 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5705 are not passed unmodified. VirtualBox clears features that it doesn't support.
5706
5707 Currently supported index values for cpuid:
5708 Standard CPUID leafs: 0 - 0xA
5709 Extended CPUID leafs: 0x80000000 - 0x8000000A
5710
5711 See the Intel and AMD programmer's manuals for detailed information
5712 about the cpuid instruction and its leafs.
5713
5714 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5715 random crashes inside VMs.
5716 <result name="E_INVALIDARG">
5717 Invalid id.
5718 </result>
5719
5720 </desc>
5721 <param name="id" type="unsigned long" dir="in">
5722 <desc>
5723 CPUID leaf index.
5724 </desc>
5725 </param>
5726 <param name="valEax" type="unsigned long" dir="in">
5727 <desc>
5728 CPUID leaf value for register eax.
5729 </desc>
5730 </param>
5731 <param name="valEbx" type="unsigned long" dir="in">
5732 <desc>
5733 CPUID leaf value for register ebx.
5734 </desc>
5735 </param>
5736 <param name="valEcx" type="unsigned long" dir="in">
5737 <desc>
5738 CPUID leaf value for register ecx.
5739 </desc>
5740 </param>
5741 <param name="valEdx" type="unsigned long" dir="in">
5742 <desc>
5743 CPUID leaf value for register edx.
5744 </desc>
5745 </param>
5746 </method>
5747
5748 <method name="removeCPUIDLeaf">
5749 <desc>
5750 Removes the virtual CPU cpuid leaf for the specified index
5751
5752 <result name="E_INVALIDARG">
5753 Invalid id.
5754 </result>
5755
5756 </desc>
5757 <param name="id" type="unsigned long" dir="in">
5758 <desc>
5759 CPUID leaf index.
5760 </desc>
5761 </param>
5762 </method>
5763
5764 <method name="removeAllCPUIDLeaves">
5765 <desc>
5766 Removes all the virtual CPU cpuid leaves
5767 </desc>
5768 </method>
5769
5770 <method name="getHWVirtExProperty" const="yes">
5771 <desc>
5772 Returns the value of the specified hardware virtualization boolean property.
5773
5774 <result name="E_INVALIDARG">
5775 Invalid property.
5776 </result>
5777
5778 </desc>
5779 <param name="property" type="HWVirtExPropertyType" dir="in">
5780 <desc>
5781 Property type to query.
5782 </desc>
5783 </param>
5784 <param name="value" type="boolean" dir="return">
5785 <desc>
5786 Property value.
5787 </desc>
5788 </param>
5789 </method>
5790
5791 <method name="setHWVirtExProperty">
5792 <desc>
5793 Sets a new value for the specified hardware virtualization boolean property.
5794
5795 <result name="E_INVALIDARG">
5796 Invalid property.
5797 </result>
5798
5799 </desc>
5800 <param name="property" type="HWVirtExPropertyType" dir="in">
5801 <desc>
5802 Property type to set.
5803 </desc>
5804 </param>
5805 <param name="value" type="boolean" dir="in">
5806 <desc>
5807 New property value.
5808 </desc>
5809 </param>
5810 </method>
5811
5812 <method name="saveSettings">
5813 <desc>
5814 Saves any changes to machine settings made since the session
5815 has been opened or a new machine has been created, or since the
5816 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5817 For registered machines, new settings become visible to all
5818 other VirtualBox clients after successful invocation of this
5819 method.
5820 <note>
5821 The method sends <link to="IMachineDataChangedEvent"/>
5822 notification event after the configuration has been successfully
5823 saved (only for registered machines).
5824 </note>
5825 <note>
5826 Calling this method is only valid on instances returned
5827 by <link to="ISession::machine"/> and on new machines
5828 created by <link to="IVirtualBox::createMachine"/> but not
5829 yet registered, or on unregistered machines after calling
5830 <link to="IMachine::unregister"/>.
5831 </note>
5832
5833 <result name="VBOX_E_FILE_ERROR">
5834 Settings file not accessible.
5835 </result>
5836 <result name="VBOX_E_XML_ERROR">
5837 Could not parse the settings file.
5838 </result>
5839 <result name="E_ACCESSDENIED">
5840 Modification request refused.
5841 </result>
5842
5843 </desc>
5844 </method>
5845
5846 <method name="discardSettings">
5847 <desc>
5848 Discards any changes to the machine settings made since the session
5849 has been opened or since the last call to <link to="#saveSettings"/>
5850 or <link to="#discardSettings"/>.
5851 <note>
5852 Calling this method is only valid on instances returned
5853 by <link to="ISession::machine"/> and on new machines
5854 created by <link to="IVirtualBox::createMachine"/> or
5855 opened by <link to="IVirtualBox::openMachine"/> but not
5856 yet registered, or on unregistered machines after calling
5857 <link to="IMachine::unregister"/>.
5858 </note>
5859
5860 <result name="VBOX_E_INVALID_VM_STATE">
5861 Virtual machine is not mutable.
5862 </result>
5863
5864 </desc>
5865 </method>
5866
5867 <method name="unregister">
5868 <desc>
5869 Unregisters a machine previously registered with
5870 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5871 cleanup before the machine is unregistered.
5872
5873 This method does not delete any files. It only changes the machine configuration and
5874 the list of registered machines in the VirtualBox object. To delete the files which
5875 belonged to the machine, including the XML file of the machine itself, call
5876 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5877 from this method.
5878
5879 How thoroughly this method cleans up the machine configuration before unregistering
5880 the machine depends on the @a cleanupMode argument.
5881
5882 <ul>
5883 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5884 cleanup will be performed. The call will fail if the machine is in "Saved" state
5885 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5886 It is the responsibility of the caller to delete all such configuration in this mode.
5887 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5888 which it replaces.</li>
5889 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5890 state or if it has snapshots or media attached. All media attached to the current machine
5891 state or in snapshots will be detached. No medium objects will be returned;
5892 all of the machine's media will remain open.</li>
5893 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5894 except that all the hard disk medium objects which were detached from the machine will
5895 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5896 API for closing and deletion.</li>
5897 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5898 that all media will be returned in the array, including removable media like DVDs and
5899 floppies. This might be useful if the user wants to inspect in detail which media were
5900 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5901 in that case because users will typically want to preserve ISO and RAW image files.</li>
5902 </ul>
5903
5904 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5905 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5906 deleted with all its saved states and hard disk images, but images for removable
5907 drives (such as ISO and RAW files) will remain on disk.
5908
5909 This API does not verify whether the media files returned in the array are still
5910 attached to other machines (i.e. shared between several machines). If such a shared
5911 image is passed to <link to="#delete" /> however, closing the image will fail there
5912 and the image will be silently skipped.
5913
5914 This API may, however, move media from this machine's media registry to other media
5915 registries (see <link to="IMedium" /> for details on media registries). For machines
5916 created with VirtualBox 4.0 or later, if media from this machine's media registry
5917 are also attached to another machine (shared attachments), each such medium will be
5918 moved to another machine's registry. This is because without this machine's media
5919 registry, the other machine cannot find its media any more and would become inaccessible.
5920
5921 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5922 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5923 if media are moved to other machines' media registries.
5924
5925 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5926 is fired.
5927
5928 The call will fail if the machine is currently locked (see <link to="ISession" />).
5929
5930 <note>
5931 If the given machine is inaccessible (see <link to="#accessible"/>), it
5932 will be unregistered and fully uninitialized right afterwards. As a result,
5933 the returned machine object will be unusable and an attempt to call
5934 <b>any</b> method will return the "Object not ready" error.
5935 </note>
5936
5937 <result name="VBOX_E_INVALID_OBJECT_STATE">
5938 Machine is currently locked for a session.
5939 </result>
5940 </desc>
5941
5942 <param name="cleanupMode" type="CleanupMode" dir="in">
5943 <desc>How to clean up after the machine has been unregistered.</desc>
5944 </param>
5945 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5946 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5947 </param>
5948 </method>
5949
5950 <method name="delete">
5951 <desc>
5952 Deletes the files associated with this machine from disk. If medium objects are passed
5953 in with the @a aMedia argument, they are closed and, if closing was successful, their
5954 storage files are deleted as well. For convenience, this array of media files can be
5955 the same as the one returned from a previous <link to="#unregister" /> call.
5956
5957 This method must only be called on machines which are either write-locked (i.e. on instances
5958 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5959 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5960 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5961
5962 The following files will be deleted by this method:
5963 <ul>
5964 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5965 argument other than "UnregisterOnly", this will delete all saved state files that
5966 the machine had in use; possibly one if the machine was in "Saved" state and one
5967 for each online snapshot that the machine had.</li>
5968 <li>On each medium object passed in the @a aMedia array, this will call
5969 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5970 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
5971 in use, e.g. because it is still attached to a second machine; in that case the
5972 storage will not be deleted.</li>
5973 <li>Finally, the machine's own XML file will be deleted.</li>
5974 </ul>
5975
5976 Since deleting large disk image files can be a time-consuming I/O operation, this
5977 method operates asynchronously and returns an IProgress object to allow the caller
5978 to monitor the progress. There will be one sub-operation for each file that is
5979 being deleted (saved state or medium storage file).
5980
5981 <note>
5982 <link to="#settingsModified"/> will return @c true after this
5983 method successfully returns.
5984 </note>
5985
5986 <result name="VBOX_E_INVALID_VM_STATE">
5987 Machine is registered but not write-locked.
5988 </result>
5989 <result name="VBOX_E_IPRT_ERROR">
5990 Could not delete the settings file.
5991 </result>
5992 </desc>
5993 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5994 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5995 </param>
5996 <param name="aProgress" type="IProgress" dir="return">
5997 <desc>Progress object to track the operation completion.</desc>
5998 </param>
5999 </method>
6000
6001 <method name="export">
6002 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6003 steps required to export VirtualBox machines to OVF.
6004 </desc>
6005
6006 <param name="aAppliance" type="IAppliance" dir="in">
6007 <desc>Appliance to export this machine to.</desc>
6008 </param>
6009 <param name="location" type="wstring" dir="in">
6010 <desc>The target location.</desc>
6011 </param>
6012 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
6013 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6014 </param>
6015 </method >
6016
6017 <method name="findSnapshot">
6018 <desc>
6019 Returns a snapshot of this machine with the given name or UUID.
6020
6021 Returns a snapshot of this machine with the given UUID.
6022 A @c null argument can be used to obtain the first snapshot
6023 taken on this machine. To traverse the whole tree of snapshots
6024 starting from the root, inspect the root snapshot's
6025 <link to="ISnapshot::children" /> attribute and recurse over those children.
6026
6027 <result name="VBOX_E_OBJECT_NOT_FOUND">
6028 Virtual machine has no snapshots or snapshot not found.
6029 </result>
6030
6031 </desc>
6032 <param name="nameOrId" type="wstring" dir="in">
6033 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6034 </param>
6035 <param name="snapshot" type="ISnapshot" dir="return">
6036 <desc>Snapshot object with the given name.</desc>
6037 </param>
6038 </method>
6039
6040 <method name="createSharedFolder">
6041 <desc>
6042 Creates a new permanent shared folder by associating the given logical
6043 name with the given host path, adds it to the collection of shared
6044 folders and starts sharing it. Refer to the description of
6045 <link to="ISharedFolder"/> to read more about logical names.
6046
6047 <result name="VBOX_E_OBJECT_IN_USE">
6048 Shared folder already exists.
6049 </result>
6050 <result name="VBOX_E_FILE_ERROR">
6051 Shared folder @a hostPath not accessible.
6052 </result>
6053
6054 </desc>
6055 <param name="name" type="wstring" dir="in">
6056 <desc>Unique logical name of the shared folder.</desc>
6057 </param>
6058 <param name="hostPath" type="wstring" dir="in">
6059 <desc>Full path to the shared folder in the host file system.</desc>
6060 </param>
6061 <param name="writable" type="boolean" dir="in">
6062 <desc>Whether the share is writable or readonly.</desc>
6063 </param>
6064 <param name="automount" type="boolean" dir="in">
6065 <desc>Whether the share gets automatically mounted by the guest
6066 or not.</desc>
6067 </param>
6068 </method>
6069
6070 <method name="removeSharedFolder">
6071 <desc>
6072 Removes the permanent shared folder with the given name previously
6073 created by <link to="#createSharedFolder"/> from the collection of
6074 shared folders and stops sharing it.
6075
6076 <result name="VBOX_E_INVALID_VM_STATE">
6077 Virtual machine is not mutable.
6078 </result>
6079 <result name="VBOX_E_OBJECT_NOT_FOUND">
6080 Shared folder @a name does not exist.
6081 </result>
6082
6083 </desc>
6084 <param name="name" type="wstring" dir="in">
6085 <desc>Logical name of the shared folder to remove.</desc>
6086 </param>
6087 </method>
6088
6089 <method name="canShowConsoleWindow">
6090 <desc>
6091 Returns @c true if the VM console process can activate the
6092 console window and bring it to foreground on the desktop of
6093 the host PC.
6094 <note>
6095 This method will fail if a session for this machine is not
6096 currently open.
6097 </note>
6098
6099 <result name="VBOX_E_INVALID_VM_STATE">
6100 Machine session is not open.
6101 </result>
6102
6103 </desc>
6104 <param name="canShow" type="boolean" dir="return">
6105 <desc>
6106 @c true if the console window can be shown and @c false otherwise.
6107 </desc>
6108 </param>
6109 </method>
6110
6111 <method name="showConsoleWindow">
6112 <desc>
6113 Activates the console window and brings it to foreground on
6114 the desktop of the host PC. Many modern window managers on
6115 many platforms implement some sort of focus stealing
6116 prevention logic, so that it may be impossible to activate
6117 a window without the help of the currently active
6118 application. In this case, this method will return a non-zero
6119 identifier that represents the top-level window of the VM
6120 console process. The caller, if it represents a currently
6121 active process, is responsible to use this identifier (in a
6122 platform-dependent manner) to perform actual window
6123 activation.
6124 <note>
6125 This method will fail if a session for this machine is not
6126 currently open.
6127 </note>
6128
6129 <result name="VBOX_E_INVALID_VM_STATE">
6130 Machine session is not open.
6131 </result>
6132
6133 </desc>
6134 <param name="winId" type="long long" dir="return">
6135 <desc>
6136 Platform-dependent identifier of the top-level VM console
6137 window, or zero if this method has performed all actions
6138 necessary to implement the <i>show window</i> semantics for
6139 the given platform and/or VirtualBox front-end.
6140 </desc>
6141 </param>
6142 </method>
6143
6144 <method name="getGuestProperty" const="yes">
6145 <desc>
6146 Reads an entry from the machine's guest property store.
6147
6148 <result name="VBOX_E_INVALID_VM_STATE">
6149 Machine session is not open.
6150 </result>
6151
6152 </desc>
6153 <param name="name" type="wstring" dir="in">
6154 <desc>
6155 The name of the property to read.
6156 </desc>
6157 </param>
6158 <param name="value" type="wstring" dir="out">
6159 <desc>
6160 The value of the property. If the property does not exist then this
6161 will be empty.
6162 </desc>
6163 </param>
6164 <param name="timestamp" type="long long" dir="out">
6165 <desc>
6166 The time at which the property was last modified, as seen by the
6167 server process.
6168 </desc>
6169 </param>
6170 <param name="flags" type="wstring" dir="out">
6171 <desc>
6172 Additional property parameters, passed as a comma-separated list of
6173 "name=value" type entries.
6174 </desc>
6175 </param>
6176 </method>
6177
6178 <method name="getGuestPropertyValue" const="yes">
6179 <desc>
6180 Reads a value from the machine's guest property store.
6181
6182 <result name="VBOX_E_INVALID_VM_STATE">
6183 Machine session is not open.
6184 </result>
6185
6186 </desc>
6187 <param name="property" type="wstring" dir="in">
6188 <desc>
6189 The name of the property to read.
6190 </desc>
6191 </param>
6192 <param name="value" type="wstring" dir="return">
6193 <desc>
6194 The value of the property. If the property does not exist then this
6195 will be empty.
6196 </desc>
6197 </param>
6198 </method>
6199
6200 <method name="getGuestPropertyTimestamp" const="yes">
6201 <desc>
6202 Reads a property timestamp from the machine's guest property store.
6203
6204 <result name="VBOX_E_INVALID_VM_STATE">
6205 Machine session is not open.
6206 </result>
6207
6208 </desc>
6209 <param name="property" type="wstring" dir="in">
6210 <desc>
6211 The name of the property to read.
6212 </desc>
6213 </param>
6214 <param name="value" type="long long" dir="return">
6215 <desc>
6216 The timestamp. If the property does not exist then this will be
6217 empty.
6218 </desc>
6219 </param>
6220 </method>
6221
6222 <method name="setGuestProperty">
6223 <desc>
6224 Sets, changes or deletes an entry in the machine's guest property
6225 store.
6226
6227 <result name="E_ACCESSDENIED">
6228 Property cannot be changed.
6229 </result>
6230 <result name="E_INVALIDARG">
6231 Invalid @a flags.
6232 </result>
6233 <result name="VBOX_E_INVALID_VM_STATE">
6234 Virtual machine is not mutable or session not open.
6235 </result>
6236 <result name="VBOX_E_INVALID_OBJECT_STATE">
6237 Cannot set transient property when machine not running.
6238 </result>
6239
6240 </desc>
6241 <param name="property" type="wstring" dir="in">
6242 <desc>
6243 The name of the property to set, change or delete.
6244 </desc>
6245 </param>
6246 <param name="value" type="wstring" dir="in">
6247 <desc>
6248 The new value of the property to set, change or delete. If the
6249 property does not yet exist and value is non-empty, it will be
6250 created. If the value is @c null or empty, the property will be
6251 deleted if it exists.
6252 </desc>
6253 </param>
6254 <param name="flags" type="wstring" dir="in">
6255 <desc>
6256 Additional property parameters, passed as a comma-separated list of
6257 "name=value" type entries.
6258 </desc>
6259 </param>
6260 </method>
6261
6262 <method name="setGuestPropertyValue">
6263 <desc>
6264 Sets, changes or deletes a value in the machine's guest property
6265 store. The flags field will be left unchanged or created empty for a
6266 new property.
6267
6268 <result name="E_ACCESSDENIED">
6269 Property cannot be changed.
6270 </result>
6271 <result name="VBOX_E_INVALID_VM_STATE">
6272 Virtual machine is not mutable or session not open.
6273 </result>
6274 <result name="VBOX_E_INVALID_OBJECT_STATE">
6275 Cannot set transient property when machine not running.
6276 </result>
6277 </desc>
6278
6279 <param name="property" type="wstring" dir="in">
6280 <desc>
6281 The name of the property to set, change or delete.
6282 </desc>
6283 </param>
6284 <param name="value" type="wstring" dir="in">
6285 <desc>
6286 The new value of the property to set, change or delete. If the
6287 property does not yet exist and value is non-empty, it will be
6288 created. If the value is @c null or empty, the property will be
6289 deleted if it exists.
6290 </desc>
6291 </param>
6292 </method>
6293
6294 <method name="deleteGuestProperty" const="yes">
6295 <desc>
6296 Deletes an entry from the machine's guest property store.
6297
6298 <result name="VBOX_E_INVALID_VM_STATE">
6299 Machine session is not open.
6300 </result>
6301
6302 </desc>
6303 <param name="name" type="wstring" dir="in">
6304 <desc>
6305 The name of the property to delete.
6306 </desc>
6307 </param>
6308 </method>
6309
6310 <method name="enumerateGuestProperties" const="yes">
6311 <desc>
6312 Return a list of the guest properties matching a set of patterns along
6313 with their values, time stamps and flags.
6314 </desc>
6315 <param name="patterns" type="wstring" dir="in">
6316 <desc>
6317 The patterns to match the properties against, separated by '|'
6318 characters. If this is empty or @c null, all properties will match.
6319 </desc>
6320 </param>
6321 <param name="name" type="wstring" dir="out" safearray="yes">
6322 <desc>
6323 The names of the properties returned.
6324 </desc>
6325 </param>
6326 <param name="value" type="wstring" dir="out" safearray="yes">
6327 <desc>
6328 The values of the properties returned. The array entries match the
6329 corresponding entries in the @a name array.
6330 </desc>
6331 </param>
6332 <param name="timestamp" type="long long" dir="out" safearray="yes">
6333 <desc>
6334 The time stamps of the properties returned. The array entries match
6335 the corresponding entries in the @a name array.
6336 </desc>
6337 </param>
6338 <param name="flags" type="wstring" dir="out" safearray="yes">
6339 <desc>
6340 The flags of the properties returned. The array entries match the
6341 corresponding entries in the @a name array.
6342 </desc>
6343 </param>
6344 </method>
6345
6346 <method name="querySavedGuestScreenInfo" const="yes">
6347 <desc>
6348 Returns the guest dimensions from the saved state.
6349 </desc>
6350 <param name="screenId" type="unsigned long" dir="in">
6351 <desc>
6352 Saved guest screen to query info from.
6353 </desc>
6354 </param>
6355 <param name="originX" type="unsigned long" dir="out">
6356 <desc>
6357 The X position of the guest monitor top left corner.
6358 </desc>
6359 </param>
6360 <param name="originY" type="unsigned long" dir="out">
6361 <desc>
6362 The Y position of the guest monitor top left corner.
6363 </desc>
6364 </param>
6365 <param name="width" type="unsigned long" dir="out">
6366 <desc>
6367 Guest width at the time of the saved state was taken.
6368 </desc>
6369 </param>
6370 <param name="height" type="unsigned long" dir="out">
6371 <desc>
6372 Guest height at the time of the saved state was taken.
6373 </desc>
6374 </param>
6375 <param name="enabled" type="boolean" dir="out">
6376 <desc>
6377 Whether the monitor is enabled in the guest.
6378 </desc>
6379 </param>
6380 </method>
6381
6382 <method name="querySavedThumbnailSize">
6383 <desc>
6384 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6385 </desc>
6386 <param name="screenId" type="unsigned long" dir="in">
6387 <desc>
6388 Saved guest screen to query info from.
6389 </desc>
6390 </param>
6391 <param name="size" type="unsigned long" dir="out">
6392 <desc>
6393 Size of buffer required to store the bitmap.
6394 </desc>
6395 </param>
6396 <param name="width" type="unsigned long" dir="out">
6397 <desc>
6398 Bitmap width.
6399 </desc>
6400 </param>
6401 <param name="height" type="unsigned long" dir="out">
6402 <desc>
6403 Bitmap height.
6404 </desc>
6405 </param>
6406 </method>
6407
6408 <method name="readSavedThumbnailToArray">
6409 <desc>
6410 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6411 </desc>
6412 <param name="screenId" type="unsigned long" dir="in">
6413 <desc>
6414 Saved guest screen to read from.
6415 </desc>
6416 </param>
6417 <param name="BGR" type="boolean" dir="in">
6418 <desc>
6419 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6420 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6421 </desc>
6422 </param>
6423 <param name="width" type="unsigned long" dir="out">
6424 <desc>
6425 Bitmap width.
6426 </desc>
6427 </param>
6428 <param name="height" type="unsigned long" dir="out">
6429 <desc>
6430 Bitmap height.
6431 </desc>
6432 </param>
6433 <param name="data" type="octet" safearray="yes" dir="return">
6434 <desc>
6435 Array with resulting bitmap data.
6436 </desc>
6437 </param>
6438 </method>
6439
6440 <method name="readSavedThumbnailPNGToArray">
6441 <desc>
6442 Thumbnail in PNG format is retrieved to an array of bytes.
6443 </desc>
6444 <param name="screenId" type="unsigned long" dir="in">
6445 <desc>
6446 Saved guest screen to read from.
6447 </desc>
6448 </param>
6449 <param name="width" type="unsigned long" dir="out">
6450 <desc>
6451 Image width.
6452 </desc>
6453 </param>
6454 <param name="height" type="unsigned long" dir="out">
6455 <desc>
6456 Image height.
6457 </desc>
6458 </param>
6459 <param name="data" type="octet" dir="return" safearray="yes">
6460 <desc>
6461 Array with resulting PNG data.
6462 </desc>
6463 </param>
6464 </method>
6465
6466 <method name="querySavedScreenshotPNGSize">
6467 <desc>
6468 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6469 </desc>
6470 <param name="screenId" type="unsigned long" dir="in">
6471 <desc>
6472 Saved guest screen to query info from.
6473 </desc>
6474 </param>
6475 <param name="size" type="unsigned long" dir="out">
6476 <desc>
6477 Size of buffer required to store the PNG binary data.
6478 </desc>
6479 </param>
6480 <param name="width" type="unsigned long" dir="out">
6481 <desc>
6482 Image width.
6483 </desc>
6484 </param>
6485 <param name="height" type="unsigned long" dir="out">
6486 <desc>
6487 Image height.
6488 </desc>
6489 </param>
6490 </method>
6491
6492 <method name="readSavedScreenshotPNGToArray">
6493 <desc>
6494 Screenshot in PNG format is retrieved to an array of bytes.
6495 </desc>
6496 <param name="screenId" type="unsigned long" dir="in">
6497 <desc>
6498 Saved guest screen to read from.
6499 </desc>
6500 </param>
6501 <param name="width" type="unsigned long" dir="out">
6502 <desc>
6503 Image width.
6504 </desc>
6505 </param>
6506 <param name="height" type="unsigned long" dir="out">
6507 <desc>
6508 Image height.
6509 </desc>
6510 </param>
6511 <param name="data" type="octet" dir="return" safearray="yes">
6512 <desc>
6513 Array with resulting PNG data.
6514 </desc>
6515 </param>
6516 </method>
6517
6518 <method name="hotPlugCPU">
6519 <desc>
6520 Plugs a CPU into the machine.
6521 </desc>
6522 <param name="cpu" type="unsigned long" dir="in">
6523 <desc>
6524 The CPU id to insert.
6525 </desc>
6526 </param>
6527 </method>
6528
6529 <method name="hotUnplugCPU">
6530 <desc>
6531 Removes a CPU from the machine.
6532 </desc>
6533 <param name="cpu" type="unsigned long" dir="in">
6534 <desc>
6535 The CPU id to remove.
6536 </desc>
6537 </param>
6538 </method>
6539
6540 <method name="getCPUStatus">
6541 <desc>
6542 Returns the current status of the given CPU.
6543 </desc>
6544 <param name="cpu" type="unsigned long" dir="in">
6545 <desc>
6546 The CPU id to check for.
6547 </desc>
6548 </param>
6549 <param name="attached" type="boolean" dir="return">
6550 <desc>
6551 Status of the CPU.
6552 </desc>
6553 </param>
6554 </method>
6555
6556 <method name="queryLogFilename">
6557 <desc>
6558 Queries for the VM log file name of an given index. Returns an empty
6559 string if a log file with that index doesn't exists.
6560 </desc>
6561 <param name="idx" type="unsigned long" dir="in">
6562 <desc>
6563 Which log file name to query. 0=current log file.
6564 </desc>
6565 </param>
6566 <param name="filename" type="wstring" dir="return">
6567 <desc>
6568 On return the full path to the log file or an empty string on error.
6569 </desc>
6570 </param>
6571 </method>
6572
6573 <method name="readLog">
6574 <desc>
6575 Reads the VM log file. The chunk size is limited, so even if you
6576 ask for a big piece there might be less data returned.
6577 </desc>
6578 <param name="idx" type="unsigned long" dir="in">
6579 <desc>
6580 Which log file to read. 0=current log file.
6581 </desc>
6582 </param>
6583 <param name="offset" type="long long" dir="in">
6584 <desc>
6585 Offset in the log file.
6586 </desc>
6587 </param>
6588 <param name="size" type="long long" dir="in">
6589 <desc>
6590 Chunk size to read in the log file.
6591 </desc>
6592 </param>
6593 <param name="data" type="octet" dir="return" safearray="yes">
6594 <desc>
6595 Data read from the log file. A data size of 0 means end of file
6596 if the requested chunk size was not 0. This is the unprocessed
6597 file data, i.e. the line ending style depends on the platform of
6598 the system the server is running on.
6599 </desc>
6600 </param>
6601 </method>
6602
6603 <method name="cloneTo">
6604 <desc>
6605 Creates a clone of this machine, either as a full clone (which means
6606 creating independent copies of the hard disk media, save states and so
6607 on), or as a linked clone (which uses its own differencing media,
6608 sharing the parent media with the source machine).
6609
6610 The target machine object must have been created previously with <link
6611 to="IVirtualBox::createMachine"/>, and all the settings will be
6612 transferred except the VM name and the hardware UUID. You can set the
6613 VM name and the new hardware UUID when creating the target machine. The
6614 network MAC addresses are newly created for all newtwork adapters. You
6615 can change that behaviour with the options parameter. The operation is
6616 performed asynchronously, so the machine object will be not be usable
6617 until the @a progress object signals completion.
6618
6619 <result name="E_INVALIDARG">
6620 @a target is @c null.
6621 </result>
6622 </desc>
6623
6624 <param name="target" type="IMachine" dir="in">
6625 <desc>Target machine object.</desc>
6626 </param>
6627 <param name="mode" type="CloneMode" dir="in">
6628 <desc>Which states should be cloned.</desc>
6629 </param>
6630 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6631 <desc>Options for the cloning operation.</desc>
6632 </param>
6633 <param name="progress" type="IProgress" dir="return">
6634 <desc>Progress object to track the operation completion.</desc>
6635 </param>
6636 </method>
6637
6638 </interface>
6639
6640 <!--
6641 // IConsole
6642 /////////////////////////////////////////////////////////////////////////
6643 -->
6644
6645 <interface
6646 name="IVRDEServerInfo" extends="$unknown"
6647 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6648 wsmap="struct"
6649 >
6650 <desc>
6651 Contains information about the remote desktop (VRDE) server capabilities and status.
6652 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6653 </desc>
6654
6655 <attribute name="active" type="boolean" readonly="yes">
6656 <desc>
6657 Whether the remote desktop connection is active.
6658 </desc>
6659 </attribute>
6660
6661 <attribute name="port" type="long" readonly="yes">
6662 <desc>
6663 VRDE server port number. If this property is equal to <tt>0</tt>, then
6664 the VRDE server failed to start, usually because there are no free IP
6665 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6666 server has not yet been started.
6667 </desc>
6668 </attribute>
6669
6670 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6671 <desc>
6672 How many times a client connected.
6673 </desc>
6674 </attribute>
6675
6676 <attribute name="beginTime" type="long long" readonly="yes">
6677 <desc>
6678 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6679 </desc>
6680 </attribute>
6681
6682 <attribute name="endTime" type="long long" readonly="yes">
6683 <desc>
6684 When the last connection was terminated or the current time, if
6685 connection is still active, in milliseconds since 1970-01-01 UTC.
6686 </desc>
6687 </attribute>
6688
6689 <attribute name="bytesSent" type="long long" readonly="yes">
6690 <desc>
6691 How many bytes were sent in last or current, if still active, connection.
6692 </desc>
6693 </attribute>
6694
6695 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6696 <desc>
6697 How many bytes were sent in all connections.
6698 </desc>
6699 </attribute>
6700
6701 <attribute name="bytesReceived" type="long long" readonly="yes">
6702 <desc>
6703 How many bytes were received in last or current, if still active, connection.
6704 </desc>
6705 </attribute>
6706
6707 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6708 <desc>
6709 How many bytes were received in all connections.
6710 </desc>
6711 </attribute>
6712
6713 <attribute name="user" type="wstring" readonly="yes">
6714 <desc>
6715 Login user name supplied by the client.
6716 </desc>
6717 </attribute>
6718
6719 <attribute name="domain" type="wstring" readonly="yes">
6720 <desc>
6721 Login domain name supplied by the client.
6722 </desc>
6723 </attribute>
6724
6725 <attribute name="clientName" type="wstring" readonly="yes">
6726 <desc>
6727 The client name supplied by the client.
6728 </desc>
6729 </attribute>
6730
6731 <attribute name="clientIP" type="wstring" readonly="yes">
6732 <desc>
6733 The IP address of the client.
6734 </desc>
6735 </attribute>
6736
6737 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6738 <desc>
6739 The client software version number.
6740 </desc>
6741 </attribute>
6742
6743 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6744 <desc>
6745 Public key exchange method used when connection was established.
6746 Values: 0 - RDP4 public key exchange scheme.
6747 1 - X509 certificates were sent to client.
6748 </desc>
6749 </attribute>
6750
6751 </interface>
6752
6753 <interface
6754 name="IConsole" extends="$unknown"
6755 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6756 wsmap="managed"
6757 >
6758 <desc>
6759 The IConsole interface represents an interface to control virtual
6760 machine execution.
6761
6762 A console object gets created when a machine has been locked for a
6763 particular session (client process) using <link to="IMachine::lockMachine" />
6764 or <link to="IMachine::launchVMProcess"/>. The console object can
6765 then be found in the session's <link to="ISession::console" /> attribute.
6766
6767 Methods of the IConsole interface allow the caller to query the current
6768 virtual machine execution state, pause the machine or power it down, save
6769 the machine state or take a snapshot, attach and detach removable media
6770 and so on.
6771
6772 <see><link to="ISession"/></see>
6773 </desc>
6774
6775 <attribute name="machine" type="IMachine" readonly="yes">
6776 <desc>
6777 Machine object for this console session.
6778 <note>
6779 This is a convenience property, it has the same value as
6780 <link to="ISession::machine"/> of the corresponding session
6781 object.
6782 </note>
6783 </desc>
6784 </attribute>
6785
6786 <attribute name="state" type="MachineState" readonly="yes">
6787 <desc>
6788 Current execution state of the machine.
6789 <note>
6790 This property always returns the same value as the corresponding
6791 property of the IMachine object for this console session.
6792 For the process that owns (executes) the VM, this is the
6793 preferable way of querying the VM state, because no IPC
6794 calls are made.
6795 </note>
6796 </desc>
6797 </attribute>
6798
6799 <attribute name="guest" type="IGuest" readonly="yes">
6800 <desc>Guest object.</desc>
6801 </attribute>
6802
6803 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6804 <desc>
6805 Virtual keyboard object.
6806 <note>
6807 If the machine is not running, any attempt to use
6808 the returned object will result in an error.
6809 </note>
6810 </desc>
6811 </attribute>
6812
6813 <attribute name="mouse" type="IMouse" readonly="yes">
6814 <desc>
6815 Virtual mouse object.
6816 <note>
6817 If the machine is not running, any attempt to use
6818 the returned object will result in an error.
6819 </note>
6820 </desc>
6821 </attribute>
6822
6823 <attribute name="display" type="IDisplay" readonly="yes">
6824 <desc>Virtual display object.
6825 <note>
6826 If the machine is not running, any attempt to use
6827 the returned object will result in an error.
6828 </note>
6829 </desc>
6830 </attribute>
6831
6832 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6833 <desc>Debugging interface.</desc>
6834 </attribute>
6835
6836 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6837 <desc>
6838 Collection of USB devices currently attached to the virtual
6839 USB controller.
6840 <note>
6841 The collection is empty if the machine is not running.
6842 </note>
6843 </desc>
6844 </attribute>
6845
6846 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6847 <desc>
6848 List of USB devices currently attached to the remote VRDE client.
6849 Once a new device is physically attached to the remote host computer,
6850 it appears in this list and remains there until detached.
6851 </desc>
6852 </attribute>
6853
6854 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6855 <desc>
6856 Collection of shared folders for the current session. These folders
6857 are called transient shared folders because they are available to the
6858 guest OS running inside the associated virtual machine only for the
6859 duration of the session (as opposed to
6860 <link to="IMachine::sharedFolders"/> which represent permanent shared
6861 folders). When the session is closed (e.g. the machine is powered down),
6862 these folders are automatically discarded.
6863
6864 New shared folders are added to the collection using
6865 <link to="#createSharedFolder"/>. Existing shared folders can be
6866 removed using <link to="#removeSharedFolder"/>.
6867 </desc>
6868 </attribute>
6869
6870 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6871 <desc>
6872 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6873 </desc>
6874 </attribute>
6875
6876 <attribute name="eventSource" type="IEventSource" readonly="yes">
6877 <desc>
6878 Event source for console events.
6879 </desc>
6880 </attribute>
6881
6882 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
6883 <desc>Array of PCI devices attached to this machine.</desc>
6884 </attribute>
6885
6886 <attribute name="useHostClipboard" type="boolean">
6887 <desc>
6888 Whether the guest clipboard should be connected to the host one or
6889 whether it should only be allowed access to the VRDE clipboard. This
6890 setting may not affect existing guest clipboard connections which
6891 are already connected to the host clipboard.
6892 </desc>
6893 </attribute>
6894
6895 <method name="powerUp">
6896 <desc>
6897 Starts the virtual machine execution using the current machine
6898 state (that is, its current execution state, current settings and
6899 current storage devices).
6900
6901 <note>
6902 This method is only useful for front-ends that want to actually
6903 execute virtual machines in their own process (like the VirtualBox
6904 or VBoxSDL front-ends). Unless you are intending to write such a
6905 front-end, do not call this method. If you simply want to
6906 start virtual machine execution using one of the existing front-ends
6907 (for example the VirtualBox GUI or headless server), use
6908 <link to="IMachine::launchVMProcess"/> instead; these
6909 front-ends will power up the machine automatically for you.
6910 </note>
6911
6912 If the machine is powered off or aborted, the execution will
6913 start from the beginning (as if the real hardware were just
6914 powered on).
6915
6916 If the machine is in the <link to="MachineState_Saved"/> state,
6917 it will continue its execution the point where the state has
6918 been saved.
6919
6920 If the machine <link to="IMachine::teleporterEnabled"/> property is
6921 enabled on the machine being powered up, the machine will wait for an
6922 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6923 state. The returned progress object will have at least three
6924 operations where the last three are defined as: (1) powering up and
6925 starting TCP server, (2) waiting for incoming teleportations, and
6926 (3) perform teleportation. These operations will be reflected as the
6927 last three operations of the progress objected returned by
6928 <link to="IMachine::launchVMProcess"/> as well.
6929
6930 <see><link to="#saveState"/></see>
6931
6932 <result name="VBOX_E_INVALID_VM_STATE">
6933 Virtual machine already running.
6934 </result>
6935 <result name="VBOX_E_HOST_ERROR">
6936 Host interface does not exist or name not set.
6937 </result>
6938 <result name="VBOX_E_FILE_ERROR">
6939 Invalid saved state file.
6940 </result>
6941 </desc>
6942 <param name="progress" type="IProgress" dir="return">
6943 <desc>Progress object to track the operation completion.</desc>
6944 </param>
6945 </method>
6946
6947 <method name="powerUpPaused">
6948 <desc>
6949 Identical to powerUp except that the VM will enter the
6950 <link to="MachineState_Paused"/> state, instead of
6951 <link to="MachineState_Running"/>.
6952
6953 <see><link to="#powerUp"/></see>
6954 <result name="VBOX_E_INVALID_VM_STATE">
6955 Virtual machine already running.
6956 </result>
6957 <result name="VBOX_E_HOST_ERROR">
6958 Host interface does not exist or name not set.
6959 </result>
6960 <result name="VBOX_E_FILE_ERROR">
6961 Invalid saved state file.
6962 </result>
6963 </desc>
6964 <param name="progress" type="IProgress" dir="return">
6965 <desc>Progress object to track the operation completion.</desc>
6966 </param>
6967 </method>
6968
6969 <method name="powerDown">
6970 <desc>
6971 Initiates the power down procedure to stop the virtual machine
6972 execution.
6973
6974 The completion of the power down procedure is tracked using the returned
6975 IProgress object. After the operation is complete, the machine will go
6976 to the PoweredOff state.
6977 <result name="VBOX_E_INVALID_VM_STATE">
6978 Virtual machine must be Running, Paused or Stuck to be powered down.
6979 </result>
6980 </desc>
6981 <param name="progress" type="IProgress" dir="return">
6982 <desc>Progress object to track the operation completion.</desc>
6983 </param>
6984 </method>
6985
6986 <method name="reset">
6987 <desc>Resets the virtual machine.
6988 <result name="VBOX_E_INVALID_VM_STATE">
6989 Virtual machine not in Running state.
6990 </result>
6991 <result name="VBOX_E_VM_ERROR">
6992 Virtual machine error in reset operation.
6993 </result>
6994 </desc>
6995 </method>
6996
6997 <method name="pause">
6998 <desc>Pauses the virtual machine execution.
6999 <result name="VBOX_E_INVALID_VM_STATE">
7000 Virtual machine not in Running state.
7001 </result>
7002 <result name="VBOX_E_VM_ERROR">
7003 Virtual machine error in suspend operation.
7004 </result>
7005 </desc>
7006 </method>
7007
7008 <method name="resume">
7009 <desc>Resumes the virtual machine execution.
7010 <result name="VBOX_E_INVALID_VM_STATE">
7011 Virtual machine not in Paused state.
7012 </result>
7013 <result name="VBOX_E_VM_ERROR">
7014 Virtual machine error in resume operation.
7015 </result>
7016 </desc>
7017 </method>
7018
7019 <method name="powerButton">
7020 <desc>Sends the ACPI power button event to the guest.
7021 <result name="VBOX_E_INVALID_VM_STATE">
7022 Virtual machine not in Running state.
7023 </result>
7024 <result name="VBOX_E_PDM_ERROR">
7025 Controlled power off failed.
7026 </result>
7027 </desc>
7028 </method>
7029
7030 <method name="sleepButton">
7031 <desc>Sends the ACPI sleep button event to the guest.
7032 <result name="VBOX_E_INVALID_VM_STATE">
7033 Virtual machine not in Running state.
7034 </result>
7035 <result name="VBOX_E_PDM_ERROR">
7036 Sending sleep button event failed.
7037 </result>
7038 </desc>
7039 </method>
7040
7041 <method name="getPowerButtonHandled">
7042 <desc>Checks if the last power button event was handled by guest.
7043 <result name="VBOX_E_PDM_ERROR">
7044 Checking if the event was handled by the guest OS failed.
7045 </result>
7046 </desc>
7047 <param name="handled" type="boolean" dir="return"/>
7048 </method>
7049
7050 <method name="getGuestEnteredACPIMode">
7051 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7052 G1 (sleeping). If this method returns @c false, the guest will
7053 most likely not respond to external ACPI events.
7054 <result name="VBOX_E_INVALID_VM_STATE">
7055 Virtual machine not in Running state.
7056 </result>
7057 </desc>
7058 <param name="entered" type="boolean" dir="return"/>
7059 </method>
7060
7061 <method name="saveState">
7062 <desc>
7063 Saves the current execution state of a running virtual machine
7064 and stops its execution.
7065
7066 After this operation completes, the machine will go to the
7067 Saved state. Next time it is powered up, this state will
7068 be restored and the machine will continue its execution from
7069 the place where it was saved.
7070
7071 This operation differs from taking a snapshot to the effect
7072 that it doesn't create new differencing media. Also, once
7073 the machine is powered up from the state saved using this method,
7074 the saved state is deleted, so it will be impossible to return
7075 to this state later.
7076
7077 <note>
7078 On success, this method implicitly calls
7079 <link to="IMachine::saveSettings"/> to save all current machine
7080 settings (including runtime changes to the DVD medium, etc.).
7081 Together with the impossibility to change any VM settings when it is
7082 in the Saved state, this guarantees adequate hardware
7083 configuration of the machine when it is restored from the saved
7084 state file.
7085 </note>
7086
7087 <note>
7088 The machine must be in the Running or Paused state, otherwise
7089 the operation will fail.
7090 </note>
7091 <result name="VBOX_E_INVALID_VM_STATE">
7092 Virtual machine state neither Running nor Paused.
7093 </result>
7094 <result name="VBOX_E_FILE_ERROR">
7095 Failed to create directory for saved state file.
7096 </result>
7097
7098 <see><link to="#takeSnapshot"/></see>
7099 </desc>
7100 <param name="progress" type="IProgress" dir="return">
7101 <desc>Progress object to track the operation completion.</desc>
7102 </param>
7103 </method>
7104
7105 <method name="adoptSavedState">
7106 <desc>
7107 Associates the given saved state file to the virtual machine.
7108
7109 On success, the machine will go to the Saved state. Next time it is
7110 powered up, it will be restored from the adopted saved state and
7111 continue execution from the place where the saved state file was
7112 created.
7113
7114 The specified saved state file path may be absolute or relative to the
7115 folder the VM normally saves the state to (usually,
7116 <link to="IMachine::snapshotFolder"/>).
7117
7118 <note>
7119 It's a caller's responsibility to make sure the given saved state
7120 file is compatible with the settings of this virtual machine that
7121 represent its virtual hardware (memory size, storage disk configuration
7122 etc.). If there is a mismatch, the behavior of the virtual machine
7123 is undefined.
7124 </note>
7125 <result name="VBOX_E_INVALID_VM_STATE">
7126 Virtual machine state neither PoweredOff nor Aborted.
7127 </result>
7128 </desc>
7129 <param name="savedStateFile" type="wstring" dir="in">
7130 <desc>Path to the saved state file to adopt.</desc>
7131 </param>
7132 </method>
7133
7134 <method name="discardSavedState">
7135 <desc>
7136 Forcibly resets the machine to "Powered Off" state if it is
7137 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7138 Next time the machine is powered up, a clean boot will occur.
7139 <note>
7140 This operation is equivalent to resetting or powering off
7141 the machine without doing a proper shutdown of the guest
7142 operating system; as with resetting a running phyiscal
7143 computer, it can can lead to data loss.
7144 </note>
7145 If @a fRemoveFile is @c true, the file in the machine directory
7146 into which the machine state was saved is also deleted. If
7147 this is @c false, then the state can be recovered and later
7148 re-inserted into a machine using <link to="#adoptSavedState" />.
7149 The location of the file can be found in the
7150 <link to="IMachine::stateFilePath" /> attribute.
7151 <result name="VBOX_E_INVALID_VM_STATE">
7152 Virtual machine not in state Saved.
7153 </result>
7154 </desc>
7155 <param name="fRemoveFile" type="boolean" dir="in" >
7156 <desc>Whether to also remove the saved state file.</desc>
7157 </param>
7158 </method>
7159
7160 <method name="getDeviceActivity">
7161 <desc>
7162 Gets the current activity type of a given device or device group.
7163 <result name="E_INVALIDARG">
7164 Invalid device type.
7165 </result>
7166 </desc>
7167 <param name="type" type="DeviceType" dir="in"/>
7168 <param name="activity" type="DeviceActivity" dir="return"/>
7169 </method>
7170
7171 <method name="attachUSBDevice">
7172 <desc>
7173 Attaches a host USB device with the given UUID to the
7174 USB controller of the virtual machine.
7175
7176 The device needs to be in one of the following states:
7177 <link to="USBDeviceState_Busy"/>,
7178 <link to="USBDeviceState_Available"/> or
7179 <link to="USBDeviceState_Held"/>,
7180 otherwise an error is immediately returned.
7181
7182 When the device state is
7183 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7184 be returned if the host computer refuses to release it for some reason.
7185
7186 <see><link to="IUSBController::deviceFilters"/>,
7187 <link to="USBDeviceState"/></see>
7188 <result name="VBOX_E_INVALID_VM_STATE">
7189 Virtual machine state neither Running nor Paused.
7190 </result>
7191 <result name="VBOX_E_PDM_ERROR">
7192 Virtual machine does not have a USB controller.
7193 </result>
7194 </desc>
7195 <param name="id" type="uuid" mod="string" dir="in">
7196 <desc>UUID of the host USB device to attach.</desc>
7197 </param>
7198 </method>
7199
7200 <method name="detachUSBDevice">
7201 <desc>
7202 Detaches an USB device with the given UUID from the USB controller
7203 of the virtual machine.
7204
7205 After this method succeeds, the VirtualBox server re-initiates
7206 all USB filters as if the device were just physically attached
7207 to the host, but filters of this machine are ignored to avoid
7208 a possible automatic re-attachment.
7209
7210 <see><link to="IUSBController::deviceFilters"/>,
7211 <link to="USBDeviceState"/></see>
7212
7213 <result name="VBOX_E_PDM_ERROR">
7214 Virtual machine does not have a USB controller.
7215 </result>
7216 <result name="E_INVALIDARG">
7217 USB device not attached to this virtual machine.
7218 </result>
7219 </desc>
7220 <param name="id" type="uuid" mod="string" dir="in">
7221 <desc>UUID of the USB device to detach.</desc>
7222 </param>
7223 <param name="device" type="IUSBDevice" dir="return">
7224 <desc>Detached USB device.</desc>
7225 </param>
7226 </method>
7227
7228 <method name="findUSBDeviceByAddress">
7229 <desc>
7230 Searches for a USB device with the given host address.
7231
7232 <result name="VBOX_E_OBJECT_NOT_FOUND">
7233 Given @c name does not correspond to any USB device.
7234 </result>
7235
7236 <see><link to="IUSBDevice::address"/></see>
7237 </desc>
7238 <param name="name" type="wstring" dir="in">
7239 <desc>
7240 Address of the USB device (as assigned by the host) to
7241 search for.
7242 </desc>
7243 </param>
7244 <param name="device" type="IUSBDevice" dir="return">
7245 <desc>Found USB device object.</desc>
7246 </param>
7247 </method>
7248
7249 <method name="findUSBDeviceById">
7250 <desc>
7251 Searches for a USB device with the given UUID.
7252
7253 <result name="VBOX_E_OBJECT_NOT_FOUND">
7254 Given @c id does not correspond to any USB device.
7255 </result>
7256
7257 <see><link to="IUSBDevice::id"/></see>
7258 </desc>
7259 <param name="id" type="uuid" mod="string" dir="in">
7260 <desc>UUID of the USB device to search for.</desc>
7261 </param>
7262 <param name="device" type="IUSBDevice" dir="return">
7263 <desc>Found USB device object.</desc>
7264 </param>
7265 </method>
7266
7267 <method name="createSharedFolder">
7268 <desc>
7269 Creates a transient new shared folder by associating the given logical
7270 name with the given host path, adds it to the collection of shared
7271 folders and starts sharing it. Refer to the description of
7272 <link to="ISharedFolder"/> to read more about logical names.
7273
7274 <result name="VBOX_E_INVALID_VM_STATE">
7275 Virtual machine in Saved state or currently changing state.
7276 </result>
7277 <result name="VBOX_E_FILE_ERROR">
7278 Shared folder already exists or not accessible.
7279 </result>
7280 </desc>
7281 <param name="name" type="wstring" dir="in">
7282 <desc>Unique logical name of the shared folder.</desc>
7283 </param>
7284 <param name="hostPath" type="wstring" dir="in">
7285 <desc>Full path to the shared folder in the host file system.</desc>
7286 </param>
7287 <param name="writable" type="boolean" dir="in">
7288 <desc>Whether the share is writable or readonly</desc>
7289 </param>
7290 <param name="automount" type="boolean" dir="in">
7291 <desc>Whether the share gets automatically mounted by the guest
7292 or not.</desc>
7293 </param>
7294 </method>
7295
7296 <method name="removeSharedFolder">
7297 <desc>
7298 Removes a transient shared folder with the given name previously
7299 created by <link to="#createSharedFolder"/> from the collection of
7300 shared folders and stops sharing it.
7301 <result name="VBOX_E_INVALID_VM_STATE">
7302 Virtual machine in Saved state or currently changing state.
7303 </result>
7304 <result name="VBOX_E_FILE_ERROR">
7305 Shared folder does not exists.
7306 </result>
7307 </desc>
7308 <param name="name" type="wstring" dir="in">
7309 <desc>Logical name of the shared folder to remove.</desc>
7310 </param>
7311 </method>
7312
7313 <method name="takeSnapshot">
7314 <desc>
7315 Saves the current execution state
7316 and all settings of the machine and creates differencing images
7317 for all normal (non-independent) media.
7318 See <link to="ISnapshot" /> for an introduction to snapshots.
7319
7320 This method can be called for a PoweredOff, Saved (see
7321 <link to="#saveState"/>), Running or
7322 Paused virtual machine. When the machine is PoweredOff, an
7323 offline snapshot is created. When the machine is Running a live
7324 snapshot is created, and an online snapshot is created when Paused.
7325
7326 The taken snapshot is always based on the
7327 <link to="IMachine::currentSnapshot">current snapshot</link>
7328 of the associated virtual machine and becomes a new current snapshot.
7329
7330 <note>
7331 This method implicitly calls <link to="IMachine::saveSettings"/> to
7332 save all current machine settings before taking an offline snapshot.
7333 </note>
7334
7335 <result name="VBOX_E_INVALID_VM_STATE">
7336 Virtual machine currently changing state.
7337 </result>
7338 </desc>
7339 <param name="name" type="wstring" dir="in">
7340 <desc>Short name for the snapshot.</desc>
7341 </param>
7342 <param name="description" type="wstring" dir="in">
7343 <desc>Optional description of the snapshot.</desc>
7344 </param>
7345 <param name="progress" type="IProgress" dir="return">
7346 <desc>Progress object to track the operation completion.</desc>
7347 </param>
7348 </method>
7349
7350 <method name="deleteSnapshot">
7351 <desc>
7352 Starts deleting the specified snapshot asynchronously.
7353 See <link to="ISnapshot" /> for an introduction to snapshots.
7354
7355 The execution state and settings of the associated machine stored in
7356 the snapshot will be deleted. The contents of all differencing media of
7357 this snapshot will be merged with the contents of their dependent child
7358 media to keep the medium chain valid (in other words, all changes
7359 represented by media being deleted will be propagated to their child
7360 medium). After that, this snapshot's differencing medium will be
7361 deleted. The parent of this snapshot will become a new parent for all
7362 its child snapshots.
7363
7364 If the deleted snapshot is the current one, its parent snapshot will
7365 become a new current snapshot. The current machine state is not directly
7366 affected in this case, except that currently attached differencing
7367 media based on media of the deleted snapshot will be also merged as
7368 described above.
7369
7370 If the deleted snapshot is the first or current snapshot, then the
7371 respective IMachine attributes will be adjusted. Deleting the current
7372 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7373 to make all current machine settings permanent.
7374
7375 Deleting a snapshot has the following preconditions:
7376
7377 <ul>
7378 <li>Child media of all normal media of the deleted snapshot
7379 must be accessible (see <link to="IMedium::state"/>) for this
7380 operation to succeed. If only one running VM refers to all images
7381 which participates in merging the operation can be performed while
7382 the VM is running. Otherwise all virtual machines whose media are
7383 directly or indirectly based on the media of deleted snapshot must
7384 be powered off. In any case, online snapshot deleting usually is
7385 slower than the same operation without any running VM.</li>
7386
7387 <li>You cannot delete the snapshot if a medium attached to it has
7388 more than one child medium (differencing images) because otherwise
7389 merging would be impossible. This might be the case if there is
7390 more than one child snapshot or differencing images were created
7391 for other reason (e.g. implicitly because of multiple machine
7392 attachments).</li>
7393 </ul>
7394
7395 The virtual machine's <link to="IMachine::state">state</link> is
7396 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7397 "DeletingSnapshotPaused" while this operation is in progress.
7398
7399 <note>
7400 Merging medium contents can be very time and disk space
7401 consuming, if these media are big in size and have many
7402 children. However, if the snapshot being deleted is the last
7403 (head) snapshot on the branch, the operation will be rather
7404 quick.
7405 </note>
7406 <result name="VBOX_E_INVALID_VM_STATE">
7407 The running virtual machine prevents deleting this snapshot. This
7408 happens only in very specific situations, usually snapshots can be
7409 deleted without trouble while a VM is running. The error message
7410 text explains the reason for the failure.
7411 </result>
7412 </desc>
7413 <param name="id" type="uuid" mod="string" dir="in">
7414 <desc>UUID of the snapshot to delete.</desc>
7415 </param>
7416 <param name="progress" type="IProgress" dir="return">
7417 <desc>Progress object to track the operation completion.</desc>
7418 </param>
7419 </method>
7420
7421 <method name="deleteSnapshotAndAllChildren">
7422 <desc>
7423 Starts deleting the specified snapshot and all its children
7424 asynchronously. See <link to="ISnapshot" /> for an introduction to
7425 snapshots. The conditions and many details are the same as with
7426 <link to="#deleteSnapshot"/>.
7427
7428 This operation is very fast if the snapshot subtree does not include
7429 the current state. It is still significantly faster than deleting the
7430 snapshots one by one if the current state is in the subtree and there
7431 are more than one snapshots from current state to the snapshot which
7432 marks the subtree, since it eliminates the incremental image merging.
7433
7434 <note>This API method is right now not implemented!</note>
7435
7436 <result name="VBOX_E_INVALID_VM_STATE">
7437 The running virtual machine prevents deleting this snapshot. This
7438 happens only in very specific situations, usually snapshots can be
7439 deleted without trouble while a VM is running. The error message
7440 text explains the reason for the failure.
7441 </result>
7442 <result name="E_NOTIMPL">
7443 The method is not implemented yet.
7444 </result>
7445 </desc>
7446 <param name="id" type="uuid" mod="string" dir="in">
7447 <desc>UUID of the snapshot to delete, including all its children.</desc>
7448 </param>
7449 <param name="progress" type="IProgress" dir="return">
7450 <desc>Progress object to track the operation completion.</desc>
7451 </param>
7452 </method>
7453
7454 <method name="deleteSnapshotRange">
7455 <desc>
7456 Starts deleting the specified snapshot range. This is limited to
7457 linear snapshot lists, which means there may not be any other child
7458 snapshots other than the direct sequence between the start and end
7459 snapshot. If the start and end snapshot point to the same snapshot this
7460 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7461 <link to="ISnapshot" /> for an introduction to snapshots. The
7462 conditions and many details are the same as with
7463 <link to="#deleteSnapshot"/>.
7464
7465 This operation is generally faster than deleting snapshots one by one
7466 and often also needs less extra disk space before freeing up disk space
7467 by deleting the removed disk images corresponding to the snapshot.
7468
7469 <note>This API method is right now not implemented!</note>
7470
7471 <result name="VBOX_E_INVALID_VM_STATE">
7472 The running virtual machine prevents deleting this snapshot. This
7473 happens only in very specific situations, usually snapshots can be
7474 deleted without trouble while a VM is running. The error message
7475 text explains the reason for the failure.
7476 </result>
7477 <result name="E_NOTIMPL">
7478 The method is not implemented yet.
7479 </result>
7480 </desc>
7481 <param name="startId" type="uuid" mod="string" dir="in">
7482 <desc>UUID of the first snapshot to delete.</desc>
7483 </param>
7484 <param name="endId" type="uuid" mod="string" dir="in">
7485 <desc>UUID of the last snapshot to delete.</desc>
7486 </param>
7487 <param name="progress" type="IProgress" dir="return">
7488 <desc>Progress object to track the operation completion.</desc>
7489 </param>
7490 </method>
7491
7492 <method name="restoreSnapshot">
7493 <desc>
7494 Starts resetting the machine's current state to the state contained
7495 in the given snapshot, asynchronously. All current settings of the
7496 machine will be reset and changes stored in differencing media
7497 will be lost.
7498 See <link to="ISnapshot" /> for an introduction to snapshots.
7499
7500 After this operation is successfully completed, new empty differencing
7501 media are created for all normal media of the machine.
7502
7503 If the given snapshot is an online snapshot, the machine will go to
7504 the <link to="MachineState_Saved"> saved state</link>, so that the
7505 next time it is powered on, the execution state will be restored
7506 from the state of the snapshot.
7507
7508 <note>
7509 The machine must not be running, otherwise the operation will fail.
7510 </note>
7511
7512 <note>
7513 If the machine state is <link to="MachineState_Saved">Saved</link>
7514 prior to this operation, the saved state file will be implicitly
7515 deleted (as if <link to="IConsole::discardSavedState"/> were
7516 called).
7517 </note>
7518
7519 <result name="VBOX_E_INVALID_VM_STATE">
7520 Virtual machine is running.
7521 </result>
7522 </desc>
7523 <param name="snapshot" type="ISnapshot" dir="in">
7524 <desc>The snapshot to restore the VM state from.</desc>
7525 </param>
7526 <param name="progress" type="IProgress" dir="return">
7527 <desc>Progress object to track the operation completion.</desc>
7528 </param>
7529 </method>
7530
7531 <method name="teleport">
7532 <desc>
7533 Teleport the VM to a different host machine or process.
7534
7535 TODO explain the details.
7536
7537 <result name="VBOX_E_INVALID_VM_STATE">
7538 Virtual machine not running or paused.
7539 </result>
7540 </desc>
7541 <param name="hostname" type="wstring" dir="in">
7542 <desc>The name or IP of the host to teleport to.</desc>
7543 </param>
7544 <param name="tcpport" type="unsigned long" dir="in">
7545 <desc>The TCP port to connect to (1..65535).</desc>
7546 </param>
7547 <param name="password" type="wstring" dir="in">
7548 <desc>The password.</desc>
7549 </param>
7550 <param name="maxDowntime" type="unsigned long" dir="in">
7551 <desc>
7552 The maximum allowed downtime given as milliseconds. 0 is not a valid
7553 value. Recommended value: 250 ms.
7554
7555 The higher the value is, the greater the chance for a successful
7556 teleportation. A small value may easily result in the teleportation
7557 process taking hours and eventually fail.
7558
7559 <note>
7560 The current implementation treats this a guideline, not as an
7561 absolute rule.
7562 </note>
7563 </desc>
7564 </param>
7565 <param name="progress" type="IProgress" dir="return">
7566 <desc>Progress object to track the operation completion.</desc>
7567 </param>
7568 </method>
7569
7570 </interface>
7571
7572 <!--
7573 // IHost
7574 /////////////////////////////////////////////////////////////////////////
7575 -->
7576
7577 <enum
7578 name="HostNetworkInterfaceMediumType"
7579 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7580 >
7581 <desc>
7582 Type of encapsulation. Ethernet encapsulation includes both wired and
7583 wireless Ethernet connections.
7584 <see><link to="IHostNetworkInterface"/></see>
7585 </desc>
7586
7587 <const name="Unknown" value="0">
7588 <desc>
7589 The type of interface cannot be determined.
7590 </desc>
7591 </const>
7592 <const name="Ethernet" value="1">
7593 <desc>
7594 Ethernet frame encapsulation.
7595 </desc>
7596 </const>
7597 <const name="PPP" value="2">
7598 <desc>
7599 Point-to-point protocol encapsulation.
7600 </desc>
7601 </const>
7602 <const name="SLIP" value="3">
7603 <desc>
7604 Serial line IP encapsulation.
7605 </desc>
7606 </const>
7607 </enum>
7608
7609 <enum
7610 name="HostNetworkInterfaceStatus"
7611 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7612 >
7613 <desc>
7614 Current status of the interface.
7615 <see><link to="IHostNetworkInterface"/></see>
7616 </desc>
7617
7618 <const name="Unknown" value="0">
7619 <desc>
7620 The state of interface cannot be determined.
7621 </desc>
7622 </const>
7623 <const name="Up" value="1">
7624 <desc>
7625 The interface is fully operational.
7626 </desc>
7627 </const>
7628 <const name="Down" value="2">
7629 <desc>
7630 The interface is not functioning.
7631 </desc>
7632 </const>
7633 </enum>
7634
7635 <enum
7636 name="HostNetworkInterfaceType"
7637 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7638 >
7639 <desc>
7640 Network interface type.
7641 </desc>
7642 <const name="Bridged" value="1"/>
7643 <const name="HostOnly" value="2"/>
7644 </enum>
7645
7646 <interface
7647 name="IHostNetworkInterface" extends="$unknown"
7648 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7649 wsmap="managed"
7650 >
7651 <desc>
7652 Represents one of host's network interfaces. IP V6 address and network
7653 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7654 separated by colons.
7655 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7656 </desc>
7657 <attribute name="name" type="wstring" readonly="yes">
7658 <desc>Returns the host network interface name.</desc>
7659 </attribute>
7660
7661 <attribute name="id" type="uuid" mod="string" readonly="yes">
7662 <desc>Returns the interface UUID.</desc>
7663 </attribute>
7664
7665 <attribute name="networkName" type="wstring" readonly="yes">
7666 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7667 </attribute>
7668
7669 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7670 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7671 </attribute>
7672
7673 <attribute name="IPAddress" type="wstring" readonly="yes">
7674 <desc>Returns the IP V4 address of the interface.</desc>
7675 </attribute>
7676
7677 <attribute name="networkMask" type="wstring" readonly="yes">
7678 <desc>Returns the network mask of the interface.</desc>
7679 </attribute>
7680
7681 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7682 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7683 </attribute>
7684
7685 <attribute name="IPV6Address" type="wstring" readonly="yes">
7686 <desc>Returns the IP V6 address of the interface.</desc>
7687 </attribute>
7688
7689 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7690 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7691 </attribute>
7692
7693 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7694 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7695 </attribute>
7696
7697 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7698 <desc>Type of protocol encapsulation used.</desc>
7699 </attribute>
7700
7701 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7702 <desc>Status of the interface.</desc>
7703 </attribute>
7704
7705 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7706 <desc>specifies the host interface type.</desc>
7707 </attribute>
7708
7709 <method name="enableStaticIPConfig">
7710 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7711 <param name="IPAddress" type="wstring" dir="in">
7712 <desc>
7713 IP address.
7714 </desc>
7715 </param>
7716 <param name="networkMask" type="wstring" dir="in">
7717 <desc>
7718 network mask.
7719 </desc>
7720 </param>
7721 </method>
7722
7723 <method name="enableStaticIPConfigV6">
7724 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7725 <param name="IPV6Address" type="wstring" dir="in">
7726 <desc>
7727 IP address.
7728 </desc>
7729 </param>
7730 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7731 <desc>
7732 network mask.
7733 </desc>
7734 </param>
7735 </method>
7736
7737 <method name="enableDynamicIPConfig">
7738 <desc>enables the dynamic IP configuration.</desc>
7739 </method>
7740
7741 <method name="DHCPRediscover">
7742 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7743 </method>
7744
7745 </interface>
7746
7747 <interface
7748 name="IHost" extends="$unknown"
7749 uuid="30678943-32df-4830-b413-931b25ac86a0"
7750 wsmap="managed"
7751 >
7752 <desc>
7753 The IHost interface represents the physical machine that this VirtualBox
7754 installation runs on.
7755
7756 An object implementing this interface is returned by the
7757 <link to="IVirtualBox::host" /> attribute. This interface contains
7758 read-only information about the host's physical hardware (such as what
7759 processors and disks are available, what the host operating system is,
7760 and so on) and also allows for manipulating some of the host's hardware,
7761 such as global USB device filters and host interface networking.
7762
7763 </desc>
7764 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7765 <desc>List of DVD drives available on the host.</desc>
7766 </attribute>
7767
7768 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7769 <desc>List of floppy drives available on the host.</desc>
7770 </attribute>
7771
7772 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7773 <desc>
7774 List of USB devices currently attached to the host.
7775 Once a new device is physically attached to the host computer,
7776 it appears in this list and remains there until detached.
7777
7778 <note>
7779 If USB functionality is not available in the given edition of
7780 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7781 </note>
7782 </desc>
7783 </attribute>
7784
7785 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7786 <desc>
7787 List of USB device filters in action.
7788 When a new device is physically attached to the host computer,
7789 filters from this list are applied to it (in order they are stored
7790 in the list). The first matched filter will determine the
7791 <link to="IHostUSBDeviceFilter::action">action</link>
7792 performed on the device.
7793
7794 Unless the device is ignored by these filters, filters of all
7795 currently running virtual machines
7796 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7797
7798 <note>
7799 If USB functionality is not available in the given edition of
7800 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7801 </note>
7802
7803 <see><link to="IHostUSBDeviceFilter"/>,
7804 <link to="USBDeviceState"/></see>
7805 </desc>
7806 </attribute>
7807
7808 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7809 <desc>List of host network interfaces currently defined on the host.</desc>
7810 </attribute>
7811
7812 <attribute name="processorCount" type="unsigned long" readonly="yes">
7813 <desc>Number of (logical) CPUs installed in the host system.</desc>
7814 </attribute>
7815
7816 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7817 <desc>Number of (logical) CPUs online in the host system.</desc>
7818 </attribute>
7819
7820 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7821 <desc>Number of physical processor cores installed in the host system.</desc>
7822 </attribute>
7823
7824 <method name="getProcessorSpeed">
7825 <desc>Query the (approximate) maximum speed of a specified host CPU in
7826 Megahertz.
7827 </desc>
7828 <param name="cpuId" type="unsigned long" dir="in">
7829 <desc>
7830 Identifier of the CPU.
7831 </desc>
7832 </param>
7833 <param name="speed" type="unsigned long" dir="return">
7834 <desc>
7835 Speed value. 0 is returned if value is not known or @a cpuId is
7836 invalid.
7837 </desc>
7838 </param>
7839 </method>
7840
7841 <method name="getProcessorFeature">
7842 <desc>Query whether a CPU feature is supported or not.</desc>
7843 <param name="feature" type="ProcessorFeature" dir="in">
7844 <desc>
7845 CPU Feature identifier.
7846 </desc>
7847 </param>
7848 <param name="supported" type="boolean" dir="return">
7849 <desc>
7850 Feature is supported or not.
7851 </desc>
7852 </param>
7853 </method>
7854
7855 <method name="getProcessorDescription">
7856 <desc>Query the model string of a specified host CPU.
7857 </desc>
7858 <param name="cpuId" type="unsigned long" dir="in">
7859 <desc>
7860 Identifier of the CPU.
7861 <note>
7862 The current implementation might not necessarily return the
7863 description for this exact CPU.
7864 </note>
7865 </desc>
7866 </param>
7867 <param name="description" type="wstring" dir="return">
7868 <desc>
7869 Model string. An empty string is returned if value is not known or
7870 @a cpuId is invalid.
7871 </desc>
7872 </param>
7873 </method>
7874
7875 <method name="getProcessorCPUIDLeaf">
7876 <desc>
7877 Returns the CPU cpuid information for the specified leaf.
7878 </desc>
7879 <param name="cpuId" type="unsigned long" dir="in">
7880 <desc>
7881 Identifier of the CPU. The CPU most be online.
7882 <note>
7883 The current implementation might not necessarily return the
7884 description for this exact CPU.
7885 </note>
7886 </desc>
7887 </param>
7888 <param name="leaf" type="unsigned long" dir="in">
7889 <desc>
7890 CPUID leaf index (eax).
7891 </desc>
7892 </param>
7893 <param name="subLeaf" type="unsigned long" dir="in">
7894 <desc>
7895 CPUID leaf sub index (ecx). This currently only applies to cache
7896 information on Intel CPUs. Use 0 if retrieving values for
7897 <link to="IMachine::setCPUIDLeaf"/>.
7898 </desc>
7899 </param>
7900 <param name="valEax" type="unsigned long" dir="out">
7901 <desc>
7902 CPUID leaf value for register eax.
7903 </desc>
7904 </param>
7905 <param name="valEbx" type="unsigned long" dir="out">
7906 <desc>
7907 CPUID leaf value for register ebx.
7908 </desc>
7909 </param>
7910 <param name="valEcx" type="unsigned long" dir="out">
7911 <desc>
7912 CPUID leaf value for register ecx.
7913 </desc>
7914 </param>
7915 <param name="valEdx" type="unsigned long" dir="out">
7916 <desc>
7917 CPUID leaf value for register edx.
7918 </desc>
7919 </param>
7920 </method>
7921
7922 <attribute name="memorySize" type="unsigned long" readonly="yes">
7923 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7924 </attribute>
7925
7926 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7927 <desc>Available system memory in the host system.</desc>
7928 </attribute>
7929
7930 <attribute name="operatingSystem" type="wstring" readonly="yes">
7931 <desc>Name of the host system's operating system.</desc>
7932 </attribute>
7933
7934 <attribute name="OSVersion" type="wstring" readonly="yes">
7935 <desc>Host operating system's version string.</desc>
7936 </attribute>
7937
7938 <attribute name="UTCTime" type="long long" readonly="yes">
7939 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7940 </attribute>
7941
7942 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
7943 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7944 </attribute>
7945
7946 <method name="createHostOnlyNetworkInterface">
7947 <desc>
7948 Creates a new adapter for Host Only Networking.
7949 <result name="E_INVALIDARG">
7950 Host network interface @a name already exists.
7951 </result>
7952 </desc>
7953 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7954 <desc>
7955 Created host interface object.
7956 </desc>
7957 </param>
7958 <param name="progress" type="IProgress" dir="return">
7959 <desc>
7960 Progress object to track the operation completion.
7961 </desc>
7962 </param>
7963 </method>
7964
7965 <method name="removeHostOnlyNetworkInterface">
7966 <desc>
7967 Removes the given Host Only Networking interface.
7968 <result name="VBOX_E_OBJECT_NOT_FOUND">
7969 No host network interface matching @a id found.
7970 </result>
7971 </desc>
7972 <param name="id" type="uuid" mod="string" dir="in">
7973 <desc>
7974 Adapter GUID.
7975 </desc>
7976 </param>
7977 <param name="progress" type="IProgress" dir="return">
7978 <desc>
7979 Progress object to track the operation completion.
7980 </desc>
7981 </param>
7982 </method>
7983
7984 <method name="createUSBDeviceFilter">
7985 <desc>
7986 Creates a new USB device filter. All attributes except
7987 the filter name are set to empty (any match),
7988 <i>active</i> is @c false (the filter is not active).
7989
7990 The created filter can be added to the list of filters using
7991 <link to="#insertUSBDeviceFilter"/>.
7992
7993 <see><link to="#USBDeviceFilters"/></see>
7994 </desc>
7995 <param name="name" type="wstring" dir="in">
7996 <desc>
7997 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
7998 </desc>
7999 </param>
8000 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8001 <desc>Created filter object.</desc>
8002 </param>
8003 </method>
8004
8005 <method name="insertUSBDeviceFilter">
8006 <desc>
8007 Inserts the given USB device to the specified position
8008 in the list of filters.
8009
8010 Positions are numbered starting from @c 0. If the specified
8011 position is equal to or greater than the number of elements in
8012 the list, the filter is added at the end of the collection.
8013
8014 <note>
8015 Duplicates are not allowed, so an attempt to insert a
8016 filter already in the list is an error.
8017 </note>
8018 <note>
8019 If USB functionality is not available in the given edition of
8020 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8021 </note>
8022
8023 <see><link to="#USBDeviceFilters"/></see>
8024
8025 <result name="VBOX_E_INVALID_OBJECT_STATE">
8026 USB device filter is not created within this VirtualBox instance.
8027 </result>
8028 <result name="E_INVALIDARG">
8029 USB device filter already in list.
8030 </result>
8031
8032 </desc>
8033 <param name="position" type="unsigned long" dir="in">
8034 <desc>Position to insert the filter to.</desc>
8035 </param>
8036 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8037 <desc>USB device filter to insert.</desc>
8038 </param>
8039 </method>
8040
8041 <method name="removeUSBDeviceFilter">
8042 <desc>
8043 Removes a USB device filter from the specified position in the
8044 list of filters.
8045
8046 Positions are numbered starting from @c 0. Specifying a
8047 position equal to or greater than the number of elements in
8048 the list will produce an error.
8049
8050 <note>
8051 If USB functionality is not available in the given edition of
8052 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8053 </note>
8054
8055 <see><link to="#USBDeviceFilters"/></see>
8056
8057 <result name="E_INVALIDARG">
8058 USB device filter list empty or invalid @a position.
8059 </result>
8060
8061 </desc>
8062 <param name="position" type="unsigned long" dir="in">
8063 <desc>Position to remove the filter from.</desc>
8064 </param>
8065 </method>
8066
8067 <method name="findHostDVDDrive">
8068 <desc>
8069 Searches for a host DVD drive with the given @c name.
8070
8071 <result name="VBOX_E_OBJECT_NOT_FOUND">
8072 Given @c name does not correspond to any host drive.
8073 </result>
8074
8075 </desc>
8076 <param name="name" type="wstring" dir="in">
8077 <desc>Name of the host drive to search for</desc>
8078 </param>
8079 <param name="drive" type="IMedium" dir="return">
8080 <desc>Found host drive object</desc>
8081 </param>
8082 </method>
8083
8084 <method name="findHostFloppyDrive">
8085 <desc>
8086 Searches for a host floppy drive with the given @c name.
8087
8088 <result name="VBOX_E_OBJECT_NOT_FOUND">
8089 Given @c name does not correspond to any host floppy drive.
8090 </result>
8091
8092 </desc>
8093 <param name="name" type="wstring" dir="in">
8094 <desc>Name of the host floppy drive to search for</desc>
8095 </param>
8096 <param name="drive" type="IMedium" dir="return">
8097 <desc>Found host floppy drive object</desc>
8098 </param>
8099 </method>
8100
8101 <method name="findHostNetworkInterfaceByName">
8102 <desc>
8103 Searches through all host network interfaces for an interface with
8104 the given @c name.
8105 <note>
8106 The method returns an error if the given @c name does not
8107 correspond to any host network interface.
8108 </note>
8109 </desc>
8110 <param name="name" type="wstring" dir="in">
8111 <desc>Name of the host network interface to search for.</desc>
8112 </param>
8113 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8114 <desc>Found host network interface object.</desc>
8115 </param>
8116 </method>
8117 <method name="findHostNetworkInterfaceById">
8118 <desc>
8119 Searches through all host network interfaces for an interface with
8120 the given GUID.
8121 <note>
8122 The method returns an error if the given GUID does not
8123 correspond to any host network interface.
8124 </note>
8125 </desc>
8126 <param name="id" type="uuid" mod="string" dir="in">
8127 <desc>GUID of the host network interface to search for.</desc>
8128 </param>
8129 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8130 <desc>Found host network interface object.</desc>
8131 </param>
8132 </method>
8133 <method name="findHostNetworkInterfacesOfType">
8134 <desc>
8135 Searches through all host network interfaces and returns a list of interfaces of the specified type
8136 </desc>
8137 <param name="type" type="HostNetworkInterfaceType" dir="in">
8138 <desc>type of the host network interfaces to search for.</desc>
8139 </param>
8140 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8141 <desc>Found host network interface objects.</desc>
8142 </param>
8143 </method>
8144
8145 <method name="findUSBDeviceById">
8146 <desc>
8147 Searches for a USB device with the given UUID.
8148
8149 <result name="VBOX_E_OBJECT_NOT_FOUND">
8150 Given @c id does not correspond to any USB device.
8151 </result>
8152
8153 <see><link to="IUSBDevice::id"/></see>
8154 </desc>
8155 <param name="id" type="uuid" mod="string" dir="in">
8156 <desc>UUID of the USB device to search for.</desc>
8157 </param>
8158 <param name="device" type="IHostUSBDevice" dir="return">
8159 <desc>Found USB device object.</desc>
8160 </param>
8161 </method>
8162
8163 <method name="findUSBDeviceByAddress">
8164 <desc>
8165 Searches for a USB device with the given host address.
8166
8167 <result name="VBOX_E_OBJECT_NOT_FOUND">
8168 Given @c name does not correspond to any USB device.
8169 </result>
8170
8171 <see><link to="IUSBDevice::address"/></see>
8172 </desc>
8173 <param name="name" type="wstring" dir="in">
8174 <desc>
8175 Address of the USB device (as assigned by the host) to
8176 search for.
8177 </desc>
8178 </param>
8179 <param name="device" type="IHostUSBDevice" dir="return">
8180 <desc>Found USB device object.</desc>
8181 </param>
8182 </method>
8183
8184 <method name="generateMACAddress">
8185 <desc>
8186 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8187 </desc>
8188 <param name="address" type="wstring" dir="return">
8189 <desc>New Ethernet MAC address.</desc>
8190 </param>
8191 </method>
8192
8193 </interface>
8194
8195 <!--
8196 // ISystemProperties
8197 /////////////////////////////////////////////////////////////////////////
8198 -->
8199
8200 <interface
8201 name="ISystemProperties"
8202 extends="$unknown"
8203 uuid="1d7aca29-97f0-4287-9874-a60ec4f80ea6"
8204 wsmap="managed"
8205 >
8206 <desc>
8207 The ISystemProperties interface represents global properties of the given
8208 VirtualBox installation.
8209
8210 These properties define limits and default values for various attributes
8211 and parameters. Most of the properties are read-only, but some can be
8212 changed by a user.
8213 </desc>
8214
8215 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8216 <desc>Minimum guest system memory in Megabytes.</desc>
8217 </attribute>
8218
8219 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8220 <desc>Maximum guest system memory in Megabytes.</desc>
8221 </attribute>
8222
8223 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8224 <desc>Minimum guest video memory in Megabytes.</desc>
8225 </attribute>
8226
8227 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8228 <desc>Maximum guest video memory in Megabytes.</desc>
8229 </attribute>
8230
8231 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8232 <desc>Minimum CPU count.</desc>
8233 </attribute>
8234
8235 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8236 <desc>Maximum CPU count.</desc>
8237 </attribute>
8238
8239 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8240 <desc>Maximum of monitors which could be connected.</desc>
8241 </attribute>
8242
8243 <attribute name="infoVDSize" type="long long" readonly="yes">
8244 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8245 does not reflect the limits of any virtual disk image format.</desc>
8246 </attribute>
8247
8248 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8249 <desc>
8250 Maximum number of serial ports associated with every
8251 <link to="IMachine"/> instance.
8252 </desc>
8253 </attribute>
8254
8255 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8256 <desc>
8257 Maximum number of parallel ports associated with every
8258 <link to="IMachine"/> instance.
8259 </desc>
8260 </attribute>
8261
8262 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8263 <desc>
8264 Maximum device position in the boot order. This value corresponds
8265 to the total number of devices a machine can boot from, to make it
8266 possible to include all possible devices to the boot list.
8267 <see><link to="IMachine::setBootOrder"/></see>
8268 </desc>
8269 </attribute>
8270
8271 <attribute name="defaultMachineFolder" type="wstring">
8272 <desc>
8273 Full path to the default directory used to create new or open
8274 existing machines when a machine settings file name contains no
8275 path.
8276
8277 Starting with VirtualBox 4.0, by default, this attribute contains
8278 the full path of folder named "VirtualBox VMs" in the user's
8279 home directory, which depends on the host platform.
8280
8281 When setting this attribute, a full path must be specified.
8282 Setting this property to @c null or an empty string or the
8283 special value "Machines" (for compatibility reasons) will restore
8284 that default value.
8285
8286 If the folder specified herein does not exist, it will be created
8287 automatically as needed.
8288
8289 <see>
8290 <link to="IVirtualBox::createMachine"/>,
8291 <link to="IVirtualBox::openMachine"/>
8292 </see>
8293 </desc>
8294 </attribute>
8295
8296 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8297 <desc>
8298 List of all medium storage formats supported by this VirtualBox
8299 installation.
8300
8301 Keep in mind that the medium format identifier
8302 (<link to="IMediumFormat::id"/>) used in other API calls like
8303 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8304 medium format is a case-insensitive string. This means that, for
8305 example, all of the following strings:
8306 <pre>
8307 "VDI"
8308 "vdi"
8309 "VdI"</pre>
8310 refer to the same medium format.
8311
8312 Note that the virtual medium framework is backend-based, therefore
8313 the list of supported formats depends on what backends are currently
8314 installed.
8315
8316 <see><link to="IMediumFormat"/></see>
8317 </desc>
8318 </attribute>
8319
8320 <attribute name="defaultHardDiskFormat" type="wstring">
8321 <desc>
8322 Identifier of the default medium format used by VirtualBox.
8323
8324 The medium format set by this attribute is used by VirtualBox
8325 when the medium format was not specified explicitly. One example is
8326 <link to="IVirtualBox::createHardDisk"/> with the empty
8327 format argument. A more complex example is implicit creation of
8328 differencing media when taking a snapshot of a virtual machine:
8329 this operation will try to use a format of the parent medium first
8330 and if this format does not support differencing media the default
8331 format specified by this argument will be used.
8332
8333 The list of supported medium formats may be obtained by the
8334 <link to="#mediumFormats"/> call. Note that the default medium
8335 format must have a capability to create differencing media;
8336 otherwise operations that create media implicitly may fail
8337 unexpectedly.
8338
8339 The initial value of this property is <tt>"VDI"</tt> in the current
8340 version of the VirtualBox product, but may change in the future.
8341
8342 <note>
8343 Setting this property to @c null or empty string will restore the
8344 initial value.
8345 </note>
8346
8347 <see>
8348 <link to="#mediumFormats"/>,
8349 <link to="IMediumFormat::id"/>,
8350 <link to="IVirtualBox::createHardDisk"/>
8351 </see>
8352 </desc>
8353 </attribute>
8354
8355 <attribute name="freeDiskSpaceWarning" type="long long">
8356 <desc>Issue a warning if the free disk space is below (or in some disk
8357 intensive operation is expected to go below) the given size in
8358 bytes.</desc>
8359 </attribute>
8360
8361 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8362 <desc>Issue a warning if the free disk space is below (or in some disk
8363 intensive operation is expected to go below) the given percentage.</desc>
8364 </attribute>
8365
8366 <attribute name="freeDiskSpaceError" type="long long">
8367 <desc>Issue an error if the free disk space is below (or in some disk
8368 intensive operation is expected to go below) the given size in
8369 bytes.</desc>
8370 </attribute>
8371
8372 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8373 <desc>Issue an error if the free disk space is below (or in some disk
8374 intensive operation is expected to go below) the given percentage.</desc>
8375 </attribute>
8376
8377 <attribute name="VRDEAuthLibrary" type="wstring">
8378 <desc>
8379 Library that provides authentication for Remote Desktop clients. The library
8380 is used if a virtual machine's authentication type is set to "external"
8381 in the VM RemoteDisplay configuration.
8382
8383 The system library extension (".DLL" or ".so") must be omitted.
8384 A full path can be specified; if not, then the library must reside on the
8385 system's default library path.
8386
8387 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8388 of that name in one of the default VirtualBox library directories.
8389
8390 For details about VirtualBox authentication libraries and how to implement
8391 them, please refer to the VirtualBox manual.
8392
8393 <note>
8394 Setting this property to @c null or empty string will restore the
8395 initial value.
8396 </note>
8397 </desc>
8398 </attribute>
8399
8400 <attribute name="webServiceAuthLibrary" type="wstring">
8401 <desc>
8402 Library that provides authentication for webservice clients. The library
8403 is used if a virtual machine's authentication type is set to "external"
8404 in the VM RemoteDisplay configuration and will be called from
8405 within the <link to="IWebsessionManager::logon" /> implementation.
8406
8407 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8408 there is no per-VM setting for this, as the webservice is a global
8409 resource (if it is running). Only for this setting (for the webservice),
8410 setting this value to a literal <tt>"null"</tt> string disables authentication,
8411 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8412 no matter what user name and password are supplied.
8413
8414 The initial value of this property is <tt>"VBoxAuth"</tt>,
8415 meaning that the webservice will use the same authentication
8416 library that is used by default for VRDE (again, see
8417 <link to="ISystemProperties::VRDEAuthLibrary" />).
8418 The format and calling convention of authentication libraries
8419 is the same for the webservice as it is for VRDE.
8420
8421 <note>
8422 Setting this property to @c null or empty string will restore the
8423 initial value.
8424 </note>
8425 </desc>
8426 </attribute>
8427
8428 <attribute name="defaultVRDEExtPack" type="wstring">
8429 <desc>
8430 The name of the extension pack providing the default VRDE.
8431
8432 This attribute is for choosing between multiple extension packs
8433 providing VRDE. If only one is installed, it will automatically be the
8434 default one. The attribute value can be empty if no VRDE extension
8435 pack is installed.
8436
8437 For details about VirtualBox Remote Desktop Extension and how to
8438 implement one, please refer to the VirtualBox SDK.
8439 </desc>
8440 </attribute>
8441
8442 <attribute name="logHistoryCount" type="unsigned long">
8443 <desc>
8444 This value specifies how many old release log files are kept.
8445 </desc>
8446 </attribute>
8447
8448 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8449 <desc>This value hold the default audio driver for the current
8450 system.</desc>
8451 </attribute>
8452
8453 <attribute name="autostartDatabasePath" type="wstring">
8454 <desc>
8455 The path to the autostart database. Depending on the host this might
8456 be a filesystem path or something else.
8457 </desc>
8458 </attribute>
8459
8460 <attribute name="defaultAdditionsISO" type="wstring">
8461 <desc>
8462 The path to the default Guest Additions ISO image. Can be empty if
8463 the location is not known in this installation.
8464 </desc>
8465 </attribute>
8466
8467 <method name="getMaxNetworkAdapters">
8468 <desc>
8469 Maximum total number of network adapters associated with every
8470 <link to="IMachine"/> instance.
8471 </desc>
8472
8473 <param name="chipset" type="ChipsetType" dir="in">
8474 <desc>The chipset type to get the value for.</desc>
8475 </param>
8476
8477
8478 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8479 <desc>The maximum total number of network adapters allowed.</desc>
8480 </param>
8481
8482 </method>
8483
8484 <method name="getMaxNetworkAdaptersOfType">
8485 <desc>
8486 Maximum number of network adapters of a given attachment type,
8487 associated with every <link to="IMachine"/> instance.
8488 </desc>
8489
8490 <param name="chipset" type="ChipsetType" dir="in">
8491 <desc>The chipset type to get the value for.</desc>
8492 </param>
8493
8494 <param name="type" type="NetworkAttachmentType" dir="in">
8495 <desc>Type of attachment.</desc>
8496 </param>
8497
8498 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8499 <desc>The maximum number of network adapters allowed for
8500 particular chipset and attachment type.</desc>
8501 </param>
8502
8503 </method>
8504
8505
8506 <method name="getMaxDevicesPerPortForStorageBus">
8507 <desc>Returns the maximum number of devices which can be attached to a port
8508 for the given storage bus.</desc>
8509
8510 <param name="bus" type="StorageBus" dir="in">
8511 <desc>The storage bus type to get the value for.</desc>
8512 </param>
8513
8514 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8515 <desc>The maximum number of devices which can be attached to the port for the given
8516 storage bus.</desc>
8517 </param>
8518 </method>
8519
8520 <method name="getMinPortCountForStorageBus">
8521 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8522
8523 <param name="bus" type="StorageBus" dir="in">
8524 <desc>The storage bus type to get the value for.</desc>
8525 </param>
8526
8527 <param name="minPortCount" type="unsigned long" dir="return">
8528 <desc>The minimum number of ports for the given storage bus.</desc>
8529 </param>
8530 </method>
8531
8532 <method name="getMaxPortCountForStorageBus">
8533 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8534
8535 <param name="bus" type="StorageBus" dir="in">
8536 <desc>The storage bus type to get the value for.</desc>
8537 </param>
8538
8539 <param name="maxPortCount" type="unsigned long" dir="return">
8540 <desc>The maximum number of ports for the given storage bus.</desc>
8541 </param>
8542 </method>
8543
8544 <method name="getMaxInstancesOfStorageBus">
8545 <desc>Returns the maximum number of storage bus instances which
8546 can be configured for each VM. This corresponds to the number of
8547 storage controllers one can have. Value may depend on chipset type
8548 used.</desc>
8549
8550 <param name="chipset" type="ChipsetType" dir="in">
8551 <desc>The chipset type to get the value for.</desc>
8552 </param>
8553
8554 <param name="bus" type="StorageBus" dir="in">
8555 <desc>The storage bus type to get the value for.</desc>
8556 </param>
8557
8558 <param name="maxInstances" type="unsigned long" dir="return">
8559 <desc>The maximum number of instances for the given storage bus.</desc>
8560 </param>
8561 </method>
8562
8563 <method name="getDeviceTypesForStorageBus">
8564 <desc>Returns list of all the supported device types
8565 (<link to="DeviceType"/>) for the given type of storage
8566 bus.</desc>
8567
8568 <param name="bus" type="StorageBus" dir="in">
8569 <desc>The storage bus type to get the value for.</desc>
8570 </param>
8571
8572 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8573 <desc>The list of all supported device types for the given storage bus.</desc>
8574 </param>
8575 </method>
8576
8577 <method name="getDefaultIoCacheSettingForStorageController">
8578 <desc>Returns the default I/O cache setting for the
8579 given storage controller</desc>
8580
8581 <param name="controllerType" type="StorageControllerType" dir="in">
8582 <desc>The storage controller to the setting for.</desc>
8583 </param>
8584
8585 <param name="enabled" type="boolean" dir="return">
8586 <desc>Returned flag indicating the default value</desc>
8587 </param>
8588 </method>
8589 </interface>
8590
8591 <!--
8592 // IGuest
8593 /////////////////////////////////////////////////////////////////////////
8594 -->
8595
8596 <interface
8597 name="IGuestOSType" extends="$unknown"
8598 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8599 wsmap="struct"
8600 >
8601 <desc>
8602 </desc>
8603
8604 <attribute name="familyId" type="wstring" readonly="yes">
8605 <desc>Guest OS family identifier string.</desc>
8606 </attribute>
8607
8608 <attribute name="familyDescription" type="wstring" readonly="yes">
8609 <desc>Human readable description of the guest OS family.</desc>
8610 </attribute>
8611
8612 <attribute name="id" type="wstring" readonly="yes">
8613 <desc>Guest OS identifier string.</desc>
8614 </attribute>
8615
8616 <attribute name="description" type="wstring" readonly="yes">
8617 <desc>Human readable description of the guest OS.</desc>
8618 </attribute>
8619
8620 <attribute name="is64Bit" type="boolean" readonly="yes">
8621 <desc>Returns @c true if the given OS is 64-bit</desc>
8622 </attribute>
8623
8624 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8625 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8626 </attribute>
8627
8628 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8629 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8630 </attribute>
8631
8632 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8633 <desc>Recommended RAM size in Megabytes.</desc>
8634 </attribute>
8635
8636 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8637 <desc>Recommended video RAM size in Megabytes.</desc>
8638 </attribute>
8639
8640 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8641 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8642 </attribute>
8643
8644 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8645 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8646 </attribute>
8647
8648 <attribute name="recommendedHDD" type="long long" readonly="yes">
8649 <desc>Recommended hard disk size in bytes.</desc>
8650 </attribute>
8651
8652 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8653 <desc>Returns recommended network adapter for this OS type.</desc>
8654 </attribute>
8655
8656 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8657 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8658 </attribute>
8659
8660 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8661 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8662 </attribute>
8663
8664 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8665 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8666 </attribute>
8667
8668 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8669 <desc>Recommended storage controller type for HD drives.</desc>
8670 </attribute>
8671
8672 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8673 <desc>Recommended storage bus type for HD drives.</desc>
8674 </attribute>
8675
8676 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8677 <desc>Recommended firmware type.</desc>
8678 </attribute>
8679
8680 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8681 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8682 </attribute>
8683
8684 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8685 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8686 </attribute>
8687
8688 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8689 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8690 </attribute>
8691
8692 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8693 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8694 </attribute>
8695
8696 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8697 <desc>Recommended chipset type.</desc>
8698 </attribute>
8699
8700 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8701 <desc>Recommended audio type.</desc>
8702 </attribute>
8703
8704 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8705 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8706 </attribute>
8707
8708 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8709 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8710 </attribute>
8711
8712 </interface>
8713
8714 <enum
8715 name="AdditionsFacilityType"
8716 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8717 >
8718 <desc>
8719 Guest Additions facility IDs.
8720 </desc>
8721
8722 <const name="None" value="0">
8723 <desc>No/invalid facility.</desc>
8724 </const>
8725 <const name="VBoxGuestDriver" value="20">
8726 <desc>VirtualBox base driver (VBoxGuest).</desc>
8727 </const>
8728 <const name="AutoLogon" value="90">
8729 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8730 </const>
8731 <const name="VBoxService" value="100">
8732 <desc>VirtualBox system service (VBoxService).</desc>
8733 </const>
8734 <const name="VBoxTrayClient" value="101">
8735 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8736 </const>
8737 <const name="Seamless" value="1000">
8738 <desc>Seamless guest desktop integration.</desc>
8739 </const>
8740 <const name="Graphics" value="1100">
8741 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8742 are not immediately acted on and guest display resizes are probably not initiated by
8743 the guest additions.
8744 </desc>
8745 </const>
8746 <const name="All" value="2147483646">
8747 <desc>All facilities selected.</desc>
8748 </const>
8749 </enum>
8750
8751 <enum
8752 name="AdditionsFacilityClass"
8753 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8754 >
8755 <desc>
8756 Guest Additions facility classes.
8757 </desc>
8758
8759 <const name="None" value="0">
8760 <desc>No/invalid class.</desc>
8761 </const>
8762 <const name="Driver" value="10">
8763 <desc>Driver.</desc>
8764 </const>
8765 <const name="Service" value="30">
8766 <desc>System service.</desc>
8767 </const>
8768 <const name="Program" value="50">
8769 <desc>Program.</desc>
8770 </const>
8771 <const name="Feature" value="100">
8772 <desc>Feature.</desc>
8773 </const>
8774 <const name="ThirdParty" value="999">
8775 <desc>Third party.</desc>
8776 </const>
8777 <const name="All" value="2147483646">
8778 <desc>All facility classes selected.</desc>
8779 </const>
8780 </enum>
8781
8782 <enum
8783 name="AdditionsFacilityStatus"
8784 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8785 >
8786 <desc>
8787 Guest Additions facility states.
8788 </desc>
8789
8790 <const name="Inactive" value="0">
8791 <desc>Facility is not active.</desc>
8792 </const>
8793 <const name="Paused" value="1">
8794 <desc>Facility has been paused.</desc>
8795 </const>
8796 <const name="PreInit" value="20">
8797 <desc>Facility is preparing to initialize.</desc>
8798 </const>
8799 <const name="Init" value="30">
8800 <desc>Facility is initializing.</desc>
8801 </const>
8802 <const name="Active" value="50">
8803 <desc>Facility is up and running.</desc>
8804 </const>
8805 <const name="Terminating" value="100">
8806 <desc>Facility is shutting down.</desc>
8807 </const>
8808 <const name="Terminated" value="101">
8809 <desc>Facility successfully shut down.</desc>
8810 </const>
8811 <const name="Failed" value="800">
8812 <desc>Facility failed to start.</desc>
8813 </const>
8814 <const name="Unknown" value="999">
8815 <desc>Facility status is unknown.</desc>
8816 </const>
8817 </enum>
8818
8819 <interface
8820 name="IAdditionsFacility" extends="$unknown"
8821 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8822 wsmap="struct"
8823 >
8824 <desc>
8825 Structure representing a Guest Additions facility.
8826 </desc>
8827
8828 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8829 <desc>The class this facility is part of.</desc>
8830 </attribute>
8831
8832 <attribute name="lastUpdated" type="long long" readonly="yes">
8833 <desc>
8834 Time stamp of the last status update,
8835 in milliseconds since 1970-01-01 UTC.
8836 </desc>
8837 </attribute>
8838
8839 <attribute name="name" type="wstring" readonly="yes">
8840 <desc>The facility's friendly name.</desc>
8841 </attribute>
8842
8843 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8844 <desc>The current status.</desc>
8845 </attribute>
8846
8847 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8848 <desc>The facility's type ID.</desc>
8849 </attribute>
8850 </interface>
8851
8852 <enum
8853 name="AdditionsRunLevelType"
8854 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8855 >
8856 <desc>
8857 Guest Additions run level type.
8858 </desc>
8859
8860 <const name="None" value="0">
8861 <desc>Guest Additions are not loaded.</desc>
8862 </const>
8863 <const name="System" value="1">
8864 <desc>Guest drivers are loaded.</desc>
8865 </const>
8866 <const name="Userland" value="2">
8867 <desc>Common components (such as application services) are loaded.</desc>
8868 </const>
8869 <const name="Desktop" value="3">
8870 <desc>Per-user desktop components are loaded.</desc>
8871 </const>
8872 </enum>
8873
8874 <enum
8875 name="AdditionsUpdateFlag"
8876 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8877 >
8878 <desc>
8879 Guest Additions update flags.
8880 </desc>
8881
8882 <const name="None" value="0">
8883 <desc>No flag set.</desc>
8884 </const>
8885 <const name="WaitForUpdateStartOnly" value="1">
8886 <desc>Only wait for the update process being started and do not
8887 wait while peforming the actual update.</desc>
8888 </const>
8889 </enum>
8890
8891 <enum
8892 name="ExecuteProcessFlag"
8893 uuid="1c49b831-b2c7-4a30-97dd-999a2e2cbf90"
8894 >
8895 <desc>
8896 Guest process execution flags.
8897 </desc>
8898
8899 <const name="None" value="0">
8900 <desc>No flag set.</desc>
8901 </const>
8902 <const name="WaitForProcessStartOnly" value="1">
8903 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
8904 process itself then uses an infinite timeout.</desc>
8905 </const>
8906 <const name="IgnoreOrphanedProcesses" value="2">
8907 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
8908 </const>
8909 <const name="Hidden" value="4">
8910 <desc>Do not show the started process according to the guest OS guidelines.</desc>
8911 </const>
8912 <const name="NoProfile" value="8">
8913 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
8914 </const>
8915 <const name="WaitForStdOut" value="16">
8916 <desc>The guest process waits until all data from stdout is read out.</desc>
8917 </const>
8918 <const name="WaitForStdErr" value="32">
8919 <desc>The guest process waits until all data from stderr is read out.</desc>
8920 </const>
8921 </enum>
8922
8923 <enum
8924 name="ExecuteProcessStatus"
8925 uuid="153768d9-d971-4098-8b5a-c5cb1ab9ea88"
8926 >
8927 <desc>
8928 Guest process execution status.
8929 </desc>
8930 <const name="Undefined" value="0">
8931 <desc>Process is in an undefined state.</desc>
8932 </const>
8933
8934 <const name="Started" value="1">
8935 <desc>Process has been started.</desc>
8936 </const>
8937 <const name="TerminatedNormally" value="2">
8938 <desc>Process terminated normally.</desc>
8939 </const>
8940 <const name="TerminatedSignal" value="3">
8941 <desc>Process terminated via signal.</desc>
8942 </const>
8943 <const name="TerminatedAbnormally" value="4">
8944 <desc>Process terminated abnormally.</desc>
8945 </const>
8946 <const name="TimedOutKilled" value="5">
8947 <desc>Process timed out and was killed.</desc>
8948 </const>
8949 <const name="TimedOutAbnormally" value="6">
8950 <desc>Process timed out and was not killed successfully.</desc>
8951 </const>
8952 <const name="Down" value="7">
8953 <desc>Service/OS is stopping, process was killed.</desc>
8954 </const>
8955 <const name="Error" value="8">
8956 <desc>Something went wrong (error code in flags).</desc>
8957 </const>
8958 </enum>
8959
8960 <enum
8961 name="FileSeekType"
8962 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
8963 >
8964 <desc>
8965 File seeking types.
8966 </desc>
8967
8968 <const name="Set" value="0">
8969 <desc>Seek from the start of the file.</desc>
8970 </const>
8971 <const name="Current" value="1">
8972 <desc>Seek from the current file position.</desc>
8973 </const>
8974 </enum>
8975
8976 <enum
8977 name="ProcessInputFlag"
8978 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8979 >
8980 <desc>
8981 Guest process input flags.
8982 </desc>
8983 <const name="None" value="0">
8984 <desc>No flag set.</desc>
8985 </const>
8986 <const name="EndOfFile" value="1">
8987 <desc>End of file (input) reached.</desc>
8988 </const>
8989 </enum>
8990
8991 <enum
8992 name="ProcessOutputFlag"
8993 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
8994 >
8995 <desc>
8996 Guest process output flags for specifying which
8997 type of output to retrieve.
8998 </desc>
8999 <const name="None" value="0">
9000 <desc>No flags set. Get output from stdout.</desc>
9001 </const>
9002 <const name="StdErr" value="1">
9003 <desc>Get output from stderr.</desc>
9004 </const>
9005 </enum>
9006
9007 <enum
9008 name="ProcessWaitForFlag"
9009 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
9010 >
9011 <desc>
9012 Process waiting flags. Multiple flags can be combined.
9013 </desc>
9014
9015 <const name="None" value="0">
9016 <desc>No waiting flags specified. Do not use this.</desc>
9017 </const>
9018 <const name="Start" value="1">
9019 <desc>Wait for the process being started.</desc>
9020 </const>
9021 <const name="Terminate" value="2">
9022 <desc>Wait for the process being terminated.</desc>
9023 </const>
9024 <const name="StdIn" value="4">
9025 <desc>Wait for stdin becoming available.</desc>
9026 </const>
9027 <const name="StdOut" value="8">
9028 <desc>Wait for data becoming available on stdout.</desc>
9029 </const>
9030 <const name="StdErr" value="16">
9031 <desc>Wait for data becoming available on stderr.</desc>
9032 </const>
9033 </enum>
9034
9035 <enum
9036 name="ProcessWaitResult"
9037 uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
9038 >
9039 <desc>
9040 Process waiting results. Depending on the process waiting flags (for
9041 more information see <link to="ProcessWaitForFlag"/>) the waiting result
9042 can vary based on the processes' current status.
9043
9044 To wait for a gust process to terminate after it has been
9045 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9046 one would specify ProcessWaitResult_Terminate.
9047
9048 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9049 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9050 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9051 ProcessWaitResult_StdErr.
9052 </desc>
9053
9054 <const name="None" value="0">
9055 <desc>No result was returned. Not being used.</desc>
9056 </const>
9057 <const name="Start" value="1">
9058 <desc>The process has been started.</desc>
9059 </const>
9060 <const name="Terminate" value="2">
9061 <desc>The process has been terminated.</desc>
9062 </const>
9063 <const name="Status" value="3">
9064 <desc>
9065 The process has changed its status. The status then can
9066 be retrieved via <link to="IProcess::status"/>.
9067 </desc>
9068 </const>
9069 <const name="Error" value="4">
9070 <desc>Error while executing the process.</desc>
9071 </const>
9072 <const name="Timeout" value="5">
9073 <desc>
9074 The waiting operation timed out. This also will happen
9075 when no event has been occured matching the specified the
9076 current waiting flags in the <link to="IProcess::waitFor"/> call.
9077 </desc>
9078 </const>
9079 <const name="StdIn" value="6">
9080 <desc>
9081 The process signalled that stdin became available for writing
9082 and that the process awaits input now.</desc>
9083 </const>
9084 <const name="StdOut" value="7">
9085 <desc>Data on stdout became available for reading.</desc>
9086 </const>
9087 <const name="StdErr" value="8">
9088 <desc>Data on stderr became available for reading.</desc>
9089 </const>
9090 <const name="WaitFlagNotSupported" value="9">
9091 <desc>
9092 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9093 is not supported by the guest.
9094 </desc>
9095 </const>
9096 </enum>
9097
9098 <enum
9099 name="CopyFileFlag"
9100 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9101 >
9102 <desc>
9103 File copying flags.
9104 </desc>
9105 <const name="None" value="0">
9106 <desc>No flag set.</desc>
9107 </const>
9108 <const name="Recursive" value="1">
9109 <desc>Copy directories recursively.</desc>
9110 </const>
9111 <const name="Update" value="2">
9112 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9113 </const>
9114 <const name="FollowLinks" value="4">
9115 <desc>Follow symbolic links.</desc>
9116 </const>
9117 </enum>
9118
9119 <enum
9120 name="DirectoryCreateFlag"
9121 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9122 >
9123 <desc>
9124 Directory creation flags.
9125 </desc>
9126 <const name="None" value="0">
9127 <desc>No flag set.</desc>
9128 </const>
9129 <const name="Parents" value="1">
9130 <desc>No error if existing, make parent directories as needed.</desc>
9131 </const>
9132 </enum>
9133
9134 <enum
9135 name="DirectoryRemoveRecFlag"
9136 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9137 >
9138 <desc>
9139 Directory recursive removement flags.
9140 </desc>
9141
9142 <const name="None" value="0">
9143 <desc>No flag set.</desc>
9144 </const>
9145 <const name="ContentAndDir" value="1">
9146 <desc>Delete the content of the directory and the directory itself.</desc>
9147 </const>
9148 <const name="ContentOnly" value="2">
9149 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9150 </const>
9151 </enum>
9152
9153 <enum
9154 name="PathRenameFlag"
9155 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9156 >
9157 <desc>
9158 Path renaming flags.
9159 </desc>
9160
9161 <const name="None" value="0">
9162 <desc>No flag set.</desc>
9163 </const>
9164 <const name="NoReplace" value="1">
9165 <desc>Do not replace anything.</desc>
9166 </const>
9167 <const name="Replace" value="2">
9168 <desc>This will replace attempt any target which isn't a directory.</desc>
9169 </const>
9170 <const name="NoSymlinks" value="4">
9171 <desc>Don't allow symbolic links as part of the path.</desc>
9172 </const>
9173 </enum>
9174
9175 <enum
9176 name="ProcessCreateFlag"
9177 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9178 >
9179 <desc>
9180 Guest process execution flags.
9181 </desc>
9182
9183 <const name="None" value="0">
9184 <desc>No flag set.</desc>
9185 </const>
9186 <const name="WaitForProcessStartOnly" value="1">
9187 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9188 process itself then uses an infinite timeout.</desc>
9189 </const>
9190 <const name="IgnoreOrphanedProcesses" value="2">
9191 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9192 </const>
9193 <const name="Hidden" value="4">
9194 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9195 </const>
9196 <const name="NoProfile" value="8">
9197 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9198 </const>
9199 <const name="WaitForStdOut" value="16">
9200 <desc>The guest process waits until all data from stdout is read out.</desc>
9201 </const>
9202 <const name="WaitForStdErr" value="32">
9203 <desc>The guest process waits until all data from stderr is read out.</desc>
9204 </const>
9205 <const name="ExpandArguments" value="64">
9206 <desc>Expands environment variables in process arguments.</desc>
9207 </const>
9208 </enum>
9209
9210 <enum
9211 name="ProcessPriority"
9212 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9213 >
9214 <desc>
9215 Process priorities.
9216 </desc>
9217
9218 <const name="Invalid" value="0">
9219 <desc>Invalid priority, do not use.</desc>
9220 </const>
9221 <const name="Default" value="1">
9222 <desc>Default process priority determined by the OS.</desc>
9223 </const>
9224 </enum>
9225
9226 <enum
9227 name="SymlinkType"
9228 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9229 >
9230 <desc>
9231 Symbolic link types.
9232 </desc>
9233
9234 <const name="Unknown" value="0">
9235 <desc>It is not known what is being targeted.</desc>
9236 </const>
9237 <const name="Directory" value="1">
9238 <desc>The link targets a directory.</desc>
9239 </const>
9240 <const name="File" value="2">
9241 <desc>The link targets a file (or whatever else).</desc>
9242 </const>
9243 </enum>
9244
9245 <enum
9246 name="SymlinkReadFlag"
9247 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9248 >
9249 <desc>
9250 Symbolic link reading flags.
9251 </desc>
9252
9253 <const name="None" value="0">
9254 <desc>No flags set.</desc>
9255 </const>
9256 <const name="NoSymlinks" value="1">
9257 <desc>Don't allow symbolic links as part of the path.</desc>
9258 </const>
9259 </enum>
9260
9261 <enum
9262 name="ProcessStatus"
9263 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9264 >
9265 <desc>
9266 Process execution statuses.
9267 </desc>
9268 <const name="Undefined" value="0">
9269 <desc>Process is in an undefined state.</desc>
9270 </const>
9271
9272 <const name="Starting" value="10">
9273 <desc>Process is being started.</desc>
9274 </const>
9275 <const name="Started" value="100">
9276 <desc>Process has been started.</desc>
9277 </const>
9278 <const name="Paused" value="110">
9279 <desc>Process has been paused.</desc>
9280 </const>
9281 <const name="Terminating" value="480">
9282 <desc>Process is being terminated.</desc>
9283 </const>
9284 <const name="TerminatedNormally" value="500">
9285 <desc>Process terminated normally.</desc>
9286 </const>
9287 <const name="TerminatedSignal" value="510">
9288 <desc>Process terminated via signal.</desc>
9289 </const>
9290 <const name="TerminatedAbnormally" value="511">
9291 <desc>Process terminated abnormally.</desc>
9292 </const>
9293 <const name="TimedOutKilled" value="512">
9294 <desc>Process timed out and was killed.</desc>
9295 </const>
9296 <const name="TimedOutAbnormally" value="513">
9297 <desc>Process timed out and was not killed successfully.</desc>
9298 </const>
9299 <const name="Down" value="600">
9300 <desc>Service/OS is stopping, process was killed.</desc>
9301 </const>
9302 <const name="Error" value="800">
9303 <desc>Something went wrong.</desc>
9304 </const>
9305 </enum>
9306
9307 <enum
9308 name="FsObjType"
9309 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9310 >
9311 <desc>
9312 File system object type.
9313 </desc>
9314
9315 <const name="Undefined" value="0">
9316 <desc>Type is undefined / unknown.</desc>
9317 </const>
9318 <const name="FIFO" value="1">
9319 <desc>Named pipe.</desc>
9320 </const>
9321 <const name="DevChar" value="10">
9322 <desc>Character device.</desc>
9323 </const>
9324 <const name="DevBlock" value="11">
9325 <desc>Block device.</desc>
9326 </const>
9327 <const name="Directory" value="50">
9328 <desc>Directory.</desc>
9329 </const>
9330 <const name="File" value="80">
9331 <desc>File.</desc>
9332 </const>
9333 <const name="Symlink" value="100">
9334 <desc>Symlink.</desc>
9335 </const>
9336 <const name="Socket" value="200">
9337 <desc>Socket.</desc>
9338 </const>
9339 <const name="Whiteout" value="400">
9340 <desc>Whiteout.</desc>
9341 </const>
9342 </enum>
9343
9344 <enum
9345 name="DragAndDropAction"
9346 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9347 >
9348 <desc>
9349 Possible actions within an Drag and Drop operation.
9350 </desc>
9351
9352 <const name="Ignore" value="0">
9353 <desc>Do nothing.</desc>
9354 </const>
9355
9356 <const name="Copy" value="1">
9357 <desc>Copy the item to the target.</desc>
9358 </const>
9359
9360 <const name="Move" value="2">
9361 <desc>Move the item to the target.</desc>
9362 </const>
9363
9364 <const name="Link" value="3">
9365 <desc>Link the item from within the target.</desc>
9366 </const>
9367 </enum>
9368
9369 <enum
9370 name="DirectoryOpenFlag"
9371 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9372 >
9373 <desc>
9374 Directory open flags.
9375 </desc>
9376 <const name="None" value="0">
9377 <desc>No flag set.</desc>
9378 </const>
9379 <const name="NoSymlinks" value="1">
9380 <desc>Don't allow symbolic links as part of the path.</desc>
9381 </const>
9382 </enum>
9383
9384 <enum
9385 name="GuestDirEntryType"
9386 uuid="6d19d924-1b77-4fc8-b369-a3b2c85c8241"
9387 >
9388 <desc>
9389 Guest directory entry type.
9390 </desc>
9391 <const name="Unknown" value="0">
9392 <desc>Unknown.</desc>
9393 </const>
9394 <const name="Directory" value="4">
9395 <desc>Regular file.</desc>
9396 </const>
9397 <const name="File" value="10">
9398 <desc>Regular file.</desc>
9399 </const>
9400 <const name="Symlink" value="12">
9401 <desc>Symbolic link.</desc>
9402 </const>
9403 </enum>
9404
9405 <interface
9406 name="IGuestDirEntry" extends="$unknown"
9407 uuid="20a66efc-c2f6-4438-826f-38454c04369e"
9408 wsmap="struct"
9409 >
9410 <desc>
9411 Structure representing a directory entry on the guest OS.
9412 </desc>
9413 <attribute name="nodeId" type="long long" readonly="yes">
9414 <desc>The unique identifier (within the guest's file system) of this file system object.</desc>
9415 </attribute>
9416 <attribute name="name" type="wstring" readonly="yes">
9417 <desc>The filename.</desc>
9418 </attribute>
9419 <attribute name="type" type="GuestDirEntryType" readonly="yes">
9420 <desc>The entry type.</desc>
9421 </attribute>
9422 </interface>
9423
9424 <interface
9425 name="IGuestSession" extends="$unknown"
9426 uuid="57eb82a8-822b-42c1-9d1c-5c54bc3d3250"
9427 wsmap="managed"
9428 >
9429
9430 <attribute name="user" type="wstring" readonly="yes">
9431 <desc>Returns the user name used by this session to impersonate
9432 users on the guest.
9433 </desc>
9434 </attribute>
9435
9436 <attribute name="domain" type="wstring" readonly="yes">
9437 <desc>Returns the domain name used by this session to impersonate
9438 users on the guest.
9439 </desc>
9440 </attribute>
9441
9442 <attribute name="name" type="wstring" readonly="yes">
9443 <desc>Returns the session's friendly name.</desc>
9444 </attribute>
9445
9446 <attribute name="id" type="unsigned long" readonly="yes">
9447 <desc>Returns the internal session ID.</desc>
9448 </attribute>
9449
9450 <attribute name="timeout" type="unsigned long" readonly="no">
9451 <desc>
9452 Returns the session timeout (in ms).
9453 <result name="E_NOTIMPL">
9454 The method is not implemented yet.
9455 </result>
9456 </desc>
9457 </attribute>
9458
9459 <attribute name="environment" type="wstring" safearray="yes">
9460 <desc>
9461 Returns the current session environment.
9462 </desc>
9463 </attribute>
9464
9465 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9466 <desc>
9467 Returns all current guest processes.
9468 </desc>
9469 </attribute>
9470
9471 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9472 <desc>
9473 Returns all currently opened guest directories.
9474 </desc>
9475 </attribute>
9476
9477 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9478 <desc>
9479 Returns all currently opened guest files.
9480 </desc>
9481 </attribute>
9482
9483 <method name="close">
9484 <desc>
9485 Closes this session. All opened guest directories, files and
9486 processes which are not referenced by clients anymore will be
9487 uninitialized.
9488 </desc>
9489 </method>
9490
9491 <method name="copyFrom">
9492 <desc>
9493 Copies a file from guest to the host.
9494
9495 <result name="VBOX_E_IPRT_ERROR">
9496 Error starting the copy operation.
9497 </result>
9498 </desc>
9499 <param name="source" type="wstring" dir="in">
9500 <desc>Source file on the guest to copy to the host.</desc>
9501 </param>
9502 <param name="dest" type="wstring" dir="in">
9503 <desc>Destination file name on the host.</desc>
9504 </param>
9505 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9506 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9507 </param>
9508 <param name="progress" type="IProgress" dir="return">
9509 <desc>Progress object to track the operation completion.</desc>
9510 </param>
9511 </method>
9512
9513 <method name="copyTo">
9514 <desc>
9515 Copies a file from host to the guest.
9516
9517 <result name="VBOX_E_IPRT_ERROR">
9518 Error starting the copy operation.
9519 </result>
9520 </desc>
9521 <param name="source" type="wstring" dir="in">
9522 <desc>Source file on the host to copy to the guest.</desc>
9523 </param>
9524 <param name="dest" type="wstring" dir="in">
9525 <desc>Destination file name on the guest.</desc>
9526 </param>
9527 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9528 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9529 </param>
9530 <param name="progress" type="IProgress" dir="return">
9531 <desc>Progress object to track the operation completion.</desc>
9532 </param>
9533 </method>
9534
9535 <method name="directoryCreate">
9536 <desc>
9537 Create a directory on the guest.
9538
9539 <result name="VBOX_E_IPRT_ERROR">
9540 Error while creating the directory.
9541 </result>
9542 </desc>
9543 <param name="path" type="wstring" dir="in">
9544 <desc>Full path of directory to create.</desc>
9545 </param>
9546 <param name="mode" type="unsigned long" dir="in">
9547 <desc>File creation mode.</desc>
9548 </param>
9549 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9550 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9551 </param>
9552 </method>
9553
9554 <method name="directoryCreateTemp">
9555 <desc>
9556 Create a temporary directory on the guest.
9557
9558 <result name="VBOX_E_NOT_SUPPORTED">
9559 The operation is not possible as requested on this particular
9560 guest type.
9561 </result>
9562 <result name="E_INVALIDARG">
9563 Invalid argument. This includes an incorrectly formatted template,
9564 or a non-absolute path.
9565 </result>
9566 <result name="VBOX_E_IPRT_ERROR">
9567 The temporary directory could not be created. Possible reasons
9568 include a non-existing path or an insecure path when the secure
9569 option was requested.
9570 </result>
9571 </desc>
9572 <param name="templateName" type="wstring" dir="in">
9573 <desc>Template for the name of the directory to create. This must
9574 contain at least one 'X' character. The first group of consecutive
9575 'X' characters in the template will be replaced by a random
9576 alphanumeric string to produce a unique name.</desc>
9577 </param>
9578 <param name="mode" type="unsigned long" dir="in">
9579 <desc>The mode of the directory to create. Use 0700 unless there are
9580 reasons not to. This parameter is ignored if "secure" is specified.
9581 </desc>
9582 </param>
9583 <param name="path" type="wstring" dir="in">
9584 <desc>The absolute path to create the temporary directory in.</desc>
9585 </param>
9586 <param name="secure" type="boolean" dir="in">
9587 <desc>Whether to fail if the directory can not be securely created.
9588 Currently this means that another unprivileged user cannot
9589 manipulate the path specified or remove the temporary directory
9590 after it has been created. Also causes the mode specified to be
9591 ignored. May not be supported on all guest types.</desc>
9592 </param>
9593 <param name="directory" type="wstring" dir="return">
9594 <desc>On success this will contain the name of the directory created
9595 with full path.</desc>
9596 </param>
9597 </method>
9598
9599 <method name="directoryExists">
9600 <desc>
9601 Checks whether a directory exists on the guest or not.
9602
9603 <result name="VBOX_E_IPRT_ERROR">
9604 Error while checking existence of the directory specified.
9605 </result>
9606 </desc>
9607 <param name="path" type="wstring" dir="in">
9608 <desc>Directory to check existence for.</desc>
9609 </param>
9610 <param name="exists" type="boolean" dir="return">
9611 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9612 </param>
9613 </method>
9614
9615 <method name="directoryOpen">
9616 <desc>
9617 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9618 can be used for further operations.
9619
9620 <result name="VBOX_E_OBJECT_NOT_FOUND">
9621 Directory to open was not found.
9622 </result>
9623 <result name="VBOX_E_IPRT_ERROR">
9624 Error while opening the directory.
9625 </result>
9626 </desc>
9627 <param name="path" type="wstring" dir="in">
9628 <desc>Full path to file to open.</desc>
9629 </param>
9630 <param name="filter" type="wstring" dir="in">
9631 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
9632 </param>
9633 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9634 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
9635 </param>
9636 <param name="directory" type="IGuestDirectory" dir="return">
9637 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
9638 </param>
9639 </method>
9640
9641 <method name="directoryQueryInfo">
9642 <desc>
9643 Queries information of a directory on the guest.
9644
9645 <result name="VBOX_E_OBJECT_NOT_FOUND">
9646 Directory to query information for was not found.
9647 </result>
9648 <result name="VBOX_E_IPRT_ERROR">
9649 Error querying information.
9650 </result>
9651 </desc>
9652 <param name="path" type="wstring" dir="in">
9653 <desc>Directory to query information for.</desc>
9654 </param>
9655 <param name="info" type="IGuestFsObjInfo" dir="return">
9656 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9657 </param>
9658 </method>
9659
9660 <method name="directoryRemove">
9661 <desc>
9662 Removes a guest directory if not empty.
9663
9664 <result name="E_NOTIMPL">
9665 The method is not implemented yet.
9666 </result>
9667 </desc>
9668 <param name="path" type="wstring" dir="in">
9669 <desc>Full path of directory to remove.</desc>
9670 </param>
9671 </method>
9672
9673 <method name="directoryRemoveRecursive">
9674 <desc>
9675 Removes a guest directory recursively.
9676
9677 <result name="E_NOTIMPL">
9678 The method is not implemented yet.
9679 </result>
9680 </desc>
9681 <param name="path" type="wstring" dir="in">
9682 <desc>Full path of directory to remove recursively.</desc>
9683 </param>
9684 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
9685 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
9686 </param>
9687 <param name="progress" type="IProgress" dir="return">
9688 <desc>Progress object to track the operation completion.</desc>
9689 </param>
9690 </method>
9691
9692 <method name="directoryRename">
9693 <desc>
9694 Renames a directory on the guest.
9695
9696 <result name="E_NOTIMPL">
9697 The method is not implemented yet.
9698 </result>
9699 </desc>
9700 <param name="source" type="wstring" dir="in">
9701 <desc>Source directory to rename.</desc>
9702 </param>
9703 <param name="dest" type="wstring" dir="in">
9704 <desc>Destination directory to rename the source to.</desc>
9705 </param>
9706 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9707 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9708 </param>
9709 </method>
9710
9711 <method name="directorySetACL">
9712 <desc>
9713 Sets the ACL (Access Control List) of a guest directory.
9714
9715 <result name="E_NOTIMPL">
9716 The method is not implemented yet.
9717 </result>
9718 </desc>
9719 <param name="path" type="wstring" dir="in">
9720 <desc>Full path of directory to set the ACL for.</desc>
9721 </param>
9722 <param name="acl" type="wstring" dir="in">
9723 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9724 </param>
9725 </method>
9726
9727 <method name="environmentClear">
9728 <desc>
9729 Clears (deletes) all session environment variables.
9730
9731 <result name="VBOX_E_IPRT_ERROR">
9732 Error while clearing the session environment variables.
9733 </result>
9734 </desc>
9735 </method>
9736
9737 <method name="environmentGet">
9738 <desc>
9739 Gets the value of a session environment variable.
9740
9741 <result name="VBOX_E_IPRT_ERROR">
9742 Error while getting the value of the session environment variable.
9743 </result>
9744 </desc>
9745 <param name="name" type="wstring" dir="in">
9746 <desc>Name of session environment variable to get the value for.</desc>
9747 </param>
9748 <param name="value" type="wstring" dir="return">
9749 <desc>
9750 Value of the session environment variable specified. If this variable
9751 does not exist and empty value will be returned.
9752 </desc>
9753 </param>
9754 </method>
9755
9756 <method name="environmentSet">
9757 <desc>
9758 Sets a session environment variable.
9759
9760 <result name="VBOX_E_IPRT_ERROR">
9761 Error while setting the session environment variable.
9762 </result>
9763 </desc>
9764 <param name="name" type="wstring" dir="in">
9765 <desc>Name of session environment variable to set.</desc>
9766 </param>
9767 <param name="value" type="wstring" dir="in">
9768 <desc>Value to set the session environment variable to.</desc>
9769 </param>
9770 </method>
9771
9772 <method name="environmentUnset">
9773 <desc>
9774 Unsets session environment variable.
9775
9776 <result name="VBOX_E_IPRT_ERROR">
9777 Error while unsetting the session environment variable.
9778 </result>
9779 </desc>
9780 <param name="name" type="wstring" dir="in">
9781 <desc>Name of session environment variable to unset (clear).</desc>
9782 </param>
9783 </method>
9784
9785 <method name="fileCreateTemp">
9786 <desc>
9787 Creates a temporary file on the guest.
9788
9789 <result name="VBOX_E_NOT_SUPPORTED">
9790 The operation is not possible as requested on this particular
9791 guest type.
9792 </result>
9793 <result name="E_INVALIDARG">
9794 Invalid argument. This includes an incorrectly formatted template,
9795 or a non-absolute path.
9796 </result>
9797 <result name="VBOX_E_IPRT_ERROR">
9798 The temporary file could not be created. Possible reasons include
9799 a non-existing path or an insecure path when the secure
9800 option was requested.
9801 </result>
9802 </desc>
9803 <param name="templateName" type="wstring" dir="in">
9804 <desc>Template for the name of the file to create. This must contain
9805 at least one 'X' character. The first group of consecutive 'X'
9806 characters in the template will be replaced by a random
9807 alphanumeric string to produce a unique name.
9808 </desc>
9809 </param>
9810 <param name="mode" type="unsigned long" dir="in">
9811 <desc>The mode of the file to create. Use 0700 unless there are
9812 reasons not to. This parameter is ignored if "secure" is specified.
9813 </desc>
9814 </param>
9815 <param name="path" type="wstring" dir="in">
9816 <desc>The absolute path to create the temporary file in.</desc>
9817 </param>
9818 <param name="secure" type="boolean" dir="in">
9819 <desc>Whether to fail if the file can not be securely created.
9820 Currently this means that another unprivileged user cannot
9821 manipulate the path specified or remove the temporary file after
9822 it has been created. Also causes the mode specified to be ignored.
9823 May not be supported on all guest types.</desc>
9824 </param>
9825 <param name="file" type="IGuestFile" dir="return">
9826 <desc>On success this will contain an open file object for the new
9827 temporary file.
9828 </desc>
9829 </param>
9830 </method>
9831
9832 <method name="fileExists">
9833 <desc>
9834 Checks whether a file exists on the guest or not.
9835
9836 <result name="VBOX_E_IPRT_ERROR">
9837 Error while checking existence of the file specified.
9838 </result>
9839 </desc>
9840 <param name="path" type="wstring" dir="in">
9841 <desc>File to check existence for.</desc>
9842 </param>
9843 <param name="exists" type="boolean" dir="return">
9844 <desc>Returns @c true if the file exists, @c false if not.</desc>
9845 </param>
9846 </method>
9847
9848 <method name="fileRemove">
9849 <desc>
9850 Removes a single file on the guest.
9851
9852 <result name="VBOX_E_OBJECT_NOT_FOUND">
9853 File to remove was not found.
9854 </result>
9855 <result name="VBOX_E_IPRT_ERROR">
9856 Error while removing the file.
9857 </result>
9858 </desc>
9859 <param name="path" type="wstring" dir="in">
9860 <desc>Path to the file to remove.</desc>
9861 </param>
9862 </method>
9863
9864 <method name="fileOpen">
9865 <desc>
9866 Opens a file and creates a <link to="IGuestFile"/> object that
9867 can be used for further operations.
9868
9869 <result name="VBOX_E_OBJECT_NOT_FOUND">
9870 File to open was not found.
9871 </result>
9872 <result name="VBOX_E_IPRT_ERROR">
9873 Error while opening the file.
9874 </result>
9875 </desc>
9876 <param name="path" type="wstring" dir="in">
9877 <desc>Full path to file to open.</desc>
9878 </param>
9879 <param name="openMode" type="wstring" dir="in">
9880 <desc>The file open mode.</desc>
9881 </param>
9882 <param name="disposition" type="wstring" dir="in">
9883 <desc>The file disposition.</desc>
9884 </param>
9885 <param name="creationMode" type="unsigned long" dir="in">
9886 <desc>The file creation mode.</desc>
9887 </param>
9888 <param name="offset" type="long long" dir="in">
9889 <desc>The initial read/write offset.</desc>
9890 </param>
9891 <param name="file" type="IGuestFile" dir="return">
9892 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
9893 </param>
9894 </method>
9895
9896 <method name="fileQueryInfo">
9897 <desc>
9898 Queries information of a file on the guest.
9899
9900 <result name="VBOX_E_OBJECT_NOT_FOUND">
9901 File to query information for was not found.
9902 </result>
9903 <result name="VBOX_E_IPRT_ERROR">
9904 Error querying information.
9905 </result>
9906 </desc>
9907 <param name="path" type="wstring" dir="in">
9908 <desc>File to query information for.</desc>
9909 </param>
9910 <param name="info" type="IGuestFsObjInfo" dir="return">
9911 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9912 </param>
9913 </method>
9914
9915 <method name="fileQuerySize">
9916 <desc>
9917 Queries the size of a file on the guest.
9918
9919 <result name="VBOX_E_OBJECT_NOT_FOUND">
9920 File to rename was not found.
9921 </result>
9922 <result name="VBOX_E_IPRT_ERROR">
9923 Error querying file size.
9924 </result>
9925 </desc>
9926 <param name="path" type="wstring" dir="in">
9927 <desc>File to query the size for.</desc>
9928 </param>
9929 <param name="size" type="long long" dir="return">
9930 <desc>Queried file size.</desc>
9931 </param>
9932 </method>
9933
9934 <method name="fileRename">
9935 <desc>
9936 Renames a file on the guest.
9937
9938 <result name="E_NOTIMPL">
9939 The method is not implemented yet.
9940 </result>
9941 </desc>
9942 <param name="source" type="wstring" dir="in">
9943 <desc>Source file to rename.</desc>
9944 </param>
9945 <param name="dest" type="wstring" dir="in">
9946 <desc>Destination file to rename the source to.</desc>
9947 </param>
9948 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9949 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9950 </param>
9951 </method>
9952
9953 <method name="fileSetACL">
9954 <desc>
9955 Sets the ACL (Access Control List) of a file on the guest.
9956
9957 <result name="E_NOTIMPL">
9958 The method is not implemented yet.
9959 </result>
9960 </desc>
9961 <param name="file" type="wstring" dir="in">
9962 <desc>Full path of file to set the ACL for.</desc>
9963 </param>
9964 <param name="acl" type="wstring" dir="in">
9965 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9966 </param>
9967 </method>
9968
9969 <method name="processCreate">
9970 <desc>
9971 Executes an existing program inside the guest VM.
9972
9973 <note>
9974 Starting at VirtualBox 4.2 guest process execution by default is limited
9975 to serve up to 255 guest processes at a time. If all 255 guest processes
9976 are still active and running, starting a new guest process will result in an
9977 appropriate error message.
9978
9979 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
9980 is / are set, the guest process will not exit until all data from the specified
9981 stream(s) is / are read out.
9982
9983 To raise or lower the guest process execution limit, either the guest property
9984 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
9985 command line by specifying "--control-procs-max-kept" needs to be modified.
9986 A restart of the guest OS is required afterwards. To serve unlimited guest
9987 processes, a value of "0" needs to be set (not recommended).
9988 </note>
9989
9990 <result name="VBOX_E_IPRT_ERROR">
9991 Could not create process.
9992 </result>
9993 </desc>
9994 <param name="command" type="wstring" dir="in">
9995 <desc>
9996 Full path name of the command to execute on the guest; the
9997 commands has to exists in the guest VM in order to be executed.
9998 </desc>
9999 </param>
10000 <param name="arguments" type="wstring" dir="in" safearray="yes">
10001 <desc>Array of arguments passed to the execution command.</desc>
10002 </param>
10003 <param name="environment" type="wstring" dir="in" safearray="yes">
10004 <desc>
10005 Environment variables that can be set while the command is being
10006 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10007 variable just set its name ("NAME") without a value.
10008
10009 This parameter can be used to override environment variables set by
10010 the guest session, which will be applied to the newly started process
10011 in any case.
10012 </desc>
10013 </param>
10014 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10015 <desc>
10016 Process creation flags;
10017 see <link to="ProcessCreateFlag"/> for more information.
10018 </desc>
10019 </param>
10020 <param name="timeoutMS" type="unsigned long" dir="in">
10021 <desc>
10022 Timeout (in ms) to wait for the operation to complete.
10023 Pass 0 for an infinite timeout.
10024 </desc>
10025 </param>
10026 <param name="guestProcess" type="IGuestProcess" dir="return">
10027 <desc>Guest process object of the newly created process.</desc>
10028 </param>
10029 </method>
10030
10031 <method name="processCreateEx">
10032 <desc>
10033 Executes an existing program inside the guest VM. Extended version for
10034 also setting the process priority and affinity.
10035
10036 <note>
10037 Starting at VirtualBox 4.2 guest process execution by default is limited
10038 to serve up to 255 guest processes at a time. If all 255 guest processes
10039 are still active and running, starting a new guest process will result in an
10040 appropriate error message.
10041
10042 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10043 is / are set, the guest process will not exit until all data from the specified
10044 stream(s) is / are read out.
10045
10046 To raise or lower the guest process execution limit, either the guest property
10047 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10048 command line by specifying "--control-procs-max-kept" needs to be modified.
10049 A restart of the guest OS is required afterwards. To serve unlimited guest
10050 processes, a value of "0" needs to be set (not recommended).
10051 </note>
10052
10053 <result name="VBOX_E_IPRT_ERROR">
10054 Could not create process.
10055 </result>
10056 </desc>
10057 <param name="command" type="wstring" dir="in">
10058 <desc>
10059 Full path name of the command to execute on the guest; the
10060 commands has to exists in the guest VM in order to be executed.
10061 </desc>
10062 </param>
10063 <param name="arguments" type="wstring" dir="in" safearray="yes">
10064 <desc>Array of arguments passed to the execution command.</desc>
10065 </param>
10066 <param name="environment" type="wstring" dir="in" safearray="yes">
10067 <desc>
10068 Environment variables that can be set while the command is being
10069 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10070 variable just set its name ("NAME") without a value.
10071
10072 This parameter can be used to override environment variables set by
10073 the guest session, which will be applied to the newly started process
10074 in any case.
10075 </desc>
10076 </param>
10077 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10078 <desc>
10079 Process creation flags;
10080 see <link to="ProcessCreateFlag"/> for more information.
10081 </desc>
10082 </param>
10083 <param name="timeoutMS" type="unsigned long" dir="in">
10084 <desc>
10085 Timeout (in ms) to wait for the operation to complete.
10086 Pass 0 for an infinite timeout.
10087 </desc>
10088 </param>
10089 <param name="priority" type="ProcessPriority" dir="in">
10090 <desc>
10091 Process priority to use for execution;
10092 see see <link to="ProcessPriority"/> for more information.</desc>
10093 </param>
10094 <param name="affinity" type="long" dir="in" safearray="yes">
10095 <desc>
10096 Process affinity to use for execution. This parameter
10097 is not implemented yet.
10098 </desc>
10099 </param>
10100 <param name="guestProcess" type="IGuestProcess" dir="return">
10101 <desc>Guest process object of the newly created process.</desc>
10102 </param>
10103 </method>
10104
10105 <method name="processGet">
10106 <desc>
10107 Gets a certain guest process by its process ID (PID).
10108 </desc>
10109 <param name="pid" type="unsigned long" dir="in">
10110 <desc>Process ID (PID) to get guest process for.</desc>
10111 </param>
10112 <param name="guestProcess" type="IGuestProcess" dir="return">
10113 <desc>Guest process of specified process ID (PID).</desc>
10114 </param>
10115 </method>
10116
10117 <method name="symlinkCreate">
10118 <desc>
10119 Creates a symbolic link on the guest.
10120
10121 <result name="E_NOTIMPL">
10122 The method is not implemented yet.
10123 </result>
10124 </desc>
10125 <param name="source" type="wstring" dir="in">
10126 <desc>The name of the symbolic link.</desc>
10127 </param>
10128 <param name="target" type="wstring" dir="in">
10129 <desc>The path to the symbolic link target.</desc>
10130 </param>
10131 <param name="type" type="SymlinkType" dir="in">
10132 <desc>
10133 The symbolic link type;
10134 see <link to="SymlinkReadFlag"/> for more information.
10135 </desc>
10136 </param>
10137 </method>
10138
10139 <method name="symlinkExists">
10140 <desc>
10141 Checks whether a symbolic link exists on the guest or not.
10142
10143 <result name="E_NOTIMPL">
10144 The method is not implemented yet.
10145 </result>
10146 </desc>
10147 <param name="symlink" type="wstring" dir="in">
10148 <desc>Symbolic link to check existence for.</desc>
10149 </param>
10150 <param name="exists" type="boolean" dir="return">
10151 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10152 </param>
10153 </method>
10154
10155 <method name="symlinkRead">
10156 <desc>
10157 Reads a symbolic link on the guest.
10158
10159 <result name="E_NOTIMPL">
10160 The method is not implemented yet.
10161 </result>
10162 </desc>
10163 <param name="symlink" type="wstring" dir="in">
10164 <desc>Full path to symbolic link to read.</desc>
10165 </param>
10166 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10167 <desc>
10168 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10169 </desc>
10170 </param>
10171 <param name="target" type="wstring" dir="return">
10172 <desc>
10173 Target of the symbolic link pointing to, if found.
10174 </desc>
10175 </param>
10176 </method>
10177
10178 <method name="symlinkRemoveDirectory">
10179 <desc>
10180 Removes a symbolic link on the guest if it's a directory.
10181
10182 <result name="E_NOTIMPL">
10183 The method is not implemented yet.
10184 </result>
10185 </desc>
10186 <param name="path" type="wstring" dir="in">
10187 <desc>Symbolic link to remove.</desc>
10188 </param>
10189 </method>
10190
10191 <method name="symlinkRemoveFile">
10192 <desc>
10193 Removes a symbolic link on the guest if it's a file.
10194
10195 <result name="E_NOTIMPL">
10196 The method is not implemented yet.
10197 </result>
10198 </desc>
10199 <param name="file" type="wstring" dir="in">
10200 <desc>Symbolic link to remove.</desc>
10201 </param>
10202 </method>
10203
10204 </interface>
10205
10206 <interface
10207 name="IProcess" extends="$unknown"
10208 uuid="08864d56-96ab-418b-adbc-5a679532aeb0"
10209 wsmap="managed"
10210 >
10211 <desc>
10212 Abstract parent interface for processes handled by VirtualBox.
10213 </desc>
10214 <attribute name="PID" type="unsigned long" readonly="yes">
10215 <desc>
10216 The process ID (PID).
10217 </desc>
10218 </attribute>
10219 <attribute name="status" type="ProcessStatus" readonly="yes">
10220 <desc>
10221 The current process status; see <link to="ProcessStatus"/>
10222 for more information.
10223 </desc>
10224 </attribute>
10225 <attribute name="exitCode" type="long" readonly="yes">
10226 <desc>
10227 The exit code. Only available when the process has been
10228 terminated normally.
10229 </desc>
10230 </attribute>
10231 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10232 <desc>
10233 The environment block this process is using during execution.
10234 </desc>
10235 </attribute>
10236 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10237 <desc>
10238 The arguments this process is using for execution.
10239 </desc>
10240 </attribute>
10241 <attribute name="executablePath" type="wstring" readonly="yes">
10242 <desc>Full path of the actual executable image.</desc>
10243 </attribute>
10244 <attribute name="name" type="wstring" readonly="yes">
10245 <desc>The friendly name of this process.</desc>
10246 </attribute>
10247
10248 <method name="waitFor">
10249 <desc>
10250 Waits for one more events to happen.
10251 </desc>
10252 <param name="waitFor" type="unsigned long" dir="in">
10253 <desc>
10254 Specifies what to wait for;
10255 see <link to="ProcessWaitForFlag"/> for more information.
10256 </desc>
10257 </param>
10258 <param name="timeoutMS" type="unsigned long" dir="in">
10259 <desc>
10260 Timeout (in ms) to wait for the operation to complete.
10261 Pass 0 for an infinite timeout.
10262 </desc>
10263 </param>
10264 <param name="reason" type="ProcessWaitResult" dir="return">
10265 <desc>
10266 The overall wait result;
10267 see <link to="ProcessWaitResult"/> for more information.
10268 </desc>
10269 </param>
10270 </method>
10271
10272 <method name="waitForArray">
10273 <desc>
10274 Waits for one more events to happen.
10275 Scriptable version of <link to="#waitFor" />.
10276 </desc>
10277 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10278 <desc>
10279 Specifies what to wait for;
10280 see <link to="ProcessWaitForFlag"/> for more information.
10281 </desc>
10282 </param>
10283 <param name="timeoutMS" type="unsigned long" dir="in">
10284 <desc>
10285 Timeout (in ms) to wait for the operation to complete.
10286 Pass 0 for an infinite timeout.
10287 </desc>
10288 </param>
10289 <param name="reason" type="ProcessWaitResult" dir="return">
10290 <desc>
10291 The overall wait result;
10292 see <link to="ProcessWaitResult"/> for more information.
10293 </desc>
10294 </param>
10295 </method>
10296
10297 <method name="read">
10298 <desc>
10299 Reads data from a running process.
10300 </desc>
10301 <param name="handle" type="unsigned long" dir="in">
10302 <desc>Handle to read from. Usually 0 is stdin.</desc>
10303 </param>
10304 <param name="toRead" type="unsigned long" dir="in">
10305 <desc>Number of bytes to read.</desc>
10306 </param>
10307 <param name="timeoutMS" type="unsigned long" dir="in">
10308 <desc>
10309 Timeout (in ms) to wait for the operation to complete.
10310 Pass 0 for an infinite timeout.
10311 </desc>
10312 </param>
10313 <param name="data" type="octet" dir="return" safearray="yes">
10314 <desc>Array of data read.</desc>
10315 </param>
10316 </method>
10317
10318 <method name="write">
10319 <desc>
10320 Writes data to a running process.
10321 </desc>
10322 <param name="handle" type="unsigned long" dir="in">
10323 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10324 </param>
10325 <param name="flags" type="unsigned long" dir="in">
10326 <desc>
10327 A combination of <link to="ProcessInputFlag"/> flags.
10328 </desc>
10329 </param>
10330 <param name="data" type="octet" dir="in" safearray="yes">
10331 <desc>
10332 Array of bytes to write. The size of the array also specifies
10333 how much to write.
10334 </desc>
10335 </param>
10336 <param name="timeoutMS" type="unsigned long" dir="in">
10337 <desc>
10338 Timeout (in ms) to wait for the operation to complete.
10339 Pass 0 for an infinite timeout.
10340 </desc>
10341 </param>
10342 <param name="written" type="unsigned long" dir="return">
10343 <desc>How much bytes were written.</desc>
10344 </param>
10345 </method>
10346
10347 <method name="writeArray">
10348 <desc>
10349 Writes data to a running process.
10350 Scriptable version of <link to="#write" />.
10351 </desc>
10352 <param name="handle" type="unsigned long" dir="in">
10353 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10354 </param>
10355 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10356 <desc>
10357 A combination of <link to="ProcessInputFlag"/> flags.
10358 </desc>
10359 </param>
10360 <param name="data" type="octet" dir="in" safearray="yes">
10361 <desc>
10362 Array of bytes to write. The size of the array also specifies
10363 how much to write.
10364 </desc>
10365 </param>
10366 <param name="timeoutMS" type="unsigned long" dir="in">
10367 <desc>
10368 Timeout (in ms) to wait for the operation to complete.
10369 Pass 0 for an infinite timeout.
10370 </desc>
10371 </param>
10372 <param name="written" type="unsigned long" dir="return">
10373 <desc>How much bytes were written.</desc>
10374 </param>
10375 </method>
10376
10377 <method name="terminate">
10378 <desc>
10379 Terminates (kills) a running process.
10380 </desc>
10381 </method>
10382 </interface>
10383
10384 <interface
10385 name="IGuestProcess" extends="IProcess"
10386 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10387 wsmap="managed"
10388 >
10389 <desc>
10390 Implementation of the <link to="IProcess" /> object
10391 for processes on the guest.
10392 </desc>
10393 </interface>
10394
10395 <interface
10396 name="IDirectory" extends="$unknown"
10397 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10398 wsmap="managed"
10399 >
10400 <desc>
10401 Abstract parent interface for directories handled by VirtualBox.
10402 </desc>
10403
10404 <attribute name="directoryName" type="wstring" readonly="yes">
10405 <desc>
10406 Full path of directory.
10407 </desc>
10408 </attribute>
10409
10410 <attribute name="filter" type="wstring" readonly="yes">
10411 <desc>
10412 The open filter.
10413 </desc>
10414 </attribute>
10415
10416 <method name="close">
10417 <desc>
10418 Closes this directory. After closing operations like reading the next
10419 directory entry will not be possible anymore.
10420 </desc>
10421 </method>
10422
10423 <method name="read">
10424 <desc>
10425 Reads the next directory entry of this directory.
10426 <result name="VBOX_E_OBJECT_NOT_FOUND">
10427 No more directory entries to read.
10428 </result>
10429 </desc>
10430 <param name="objInfo" type="IFsObjInfo" dir="return">
10431 <desc>Object information of the current directory entry read. Also see <link to="IFsObjInfo"/>.</desc>
10432 </param>
10433 </method>
10434 </interface>
10435
10436 <interface
10437 name="IGuestDirectory" extends="IDirectory"
10438 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10439 wsmap="managed"
10440 >
10441 <desc>
10442 Implementation of the <link to="IDirectory" /> object
10443 for directories on the guest.
10444 </desc>
10445 </interface>
10446
10447 <interface
10448 name="IFile" extends="$unknown"
10449 uuid="b702a560-6139-4a8e-a892-bbf14b97bf97"
10450 wsmap="managed"
10451 >
10452 <desc>
10453 Abstract parent interface for files handled by VirtualBox.
10454 </desc>
10455 <attribute name="creationMode" type="unsigned long" readonly="yes">
10456 <desc>
10457 The creation mode.
10458
10459 <result name="E_NOTIMPL">
10460 The method is not implemented yet.
10461 </result>
10462 </desc>
10463 </attribute>
10464 <attribute name="disposition" type="unsigned long" readonly="yes">
10465 <desc>
10466 The disposition mode.
10467
10468 <result name="E_NOTIMPL">
10469 The method is not implemented yet.
10470 </result>
10471 </desc>
10472 </attribute>
10473 <attribute name="fileName" type="wstring" readonly="yes">
10474 <desc>
10475 Full path of the actual file name of this file.
10476 </desc>
10477 </attribute>
10478 <attribute name="initialSize" type="long long" readonly="yes">
10479 <desc>
10480 The initial size in bytes when opened.
10481
10482 <result name="E_NOTIMPL">
10483 The method is not implemented yet.
10484 </result>
10485 </desc>
10486 </attribute>
10487 <attribute name="openMode" type="unsigned long" readonly="yes">
10488 <desc>
10489 The open mode.
10490
10491 <result name="E_NOTIMPL">
10492 The method is not implemented yet.
10493 </result>
10494 </desc>
10495 </attribute>
10496 <attribute name="offset" type="long long" readonly="yes">
10497 <desc>
10498 Current read/write offset in bytes.
10499
10500 <result name="E_NOTIMPL">
10501 The method is not implemented yet.
10502 </result>
10503 </desc>
10504 </attribute>
10505
10506 <method name="close">
10507 <desc>
10508 Closes this file. After closing operations like reading data,
10509 writing data or querying information will not be possible anymore.
10510
10511 <result name="E_NOTIMPL">
10512 The method is not implemented yet.
10513 </result>
10514 </desc>
10515 </method>
10516
10517 <method name="queryInfo">
10518 <desc>
10519 Queries information about this file.
10520
10521 <result name="E_NOTIMPL">
10522 The method is not implemented yet.
10523 </result>
10524 </desc>
10525 <param name="objInfo" type="IFsObjInfo" dir="return">
10526 <desc>Object information of this file. Also see <link to="IFsObjInfo"/>.</desc>
10527 </param>
10528 </method>
10529
10530 <method name="read">
10531 <desc>
10532 Reads data from this file.
10533
10534 <result name="E_NOTIMPL">
10535 The method is not implemented yet.
10536 </result>
10537 </desc>
10538 <param name="toRead" type="unsigned long" dir="in">
10539 <desc>Number of bytes to read.</desc>
10540 </param>
10541 <param name="timeoutMS" type="unsigned long" dir="in">
10542 <desc>
10543 Timeout (in ms) to wait for the operation to complete.
10544 Pass 0 for an infinite timeout.
10545 </desc>
10546 </param>
10547 <param name="data" type="octet" dir="return" safearray="yes">
10548 <desc>Array of data read.</desc>
10549 </param>
10550 </method>
10551
10552 <method name="readAt">
10553 <desc>
10554 Reads data from an offset of this file.
10555
10556 <result name="E_NOTIMPL">
10557 The method is not implemented yet.
10558 </result>
10559 </desc>
10560 <param name="offset" type="long long" dir="in">
10561 <desc>Offset in bytes to start reading.</desc>
10562 </param>
10563 <param name="toRead" type="unsigned long" dir="in">
10564 <desc>Number of bytes to read.</desc>
10565 </param>
10566 <param name="timeoutMS" type="unsigned long" dir="in">
10567 <desc>
10568 Timeout (in ms) to wait for the operation to complete.
10569 Pass 0 for an infinite timeout.
10570 </desc>
10571 </param>
10572 <param name="data" type="octet" dir="return" safearray="yes">
10573 <desc>Array of data read.</desc>
10574 </param>
10575 </method>
10576
10577 <method name="seek">
10578 <desc>
10579 Changes the read and write position of this file.
10580
10581 <result name="E_NOTIMPL">
10582 The method is not implemented yet.
10583 </result>
10584 </desc>
10585 <param name="offset" type="long long" dir="in">
10586 <desc>Offset to seek.</desc>
10587 </param>
10588 <param name="whence" type="FileSeekType" dir="in">
10589 <desc>
10590 Seek mode; see <link to="FileSeekType"/> for more information.
10591 </desc>
10592 </param>
10593 </method>
10594
10595 <method name="setACL">
10596 <desc>
10597 Sets the ACL of this file.
10598
10599 <result name="E_NOTIMPL">
10600 The method is not implemented yet.
10601 </result>
10602 </desc>
10603 <param name="acl" type="wstring" dir="in">
10604 <desc>ACL string to set.</desc>
10605 </param>
10606 </method>
10607
10608 <method name="write">
10609 <desc>
10610 Writes bytes to this file.
10611 </desc>
10612 <param name="data" type="octet" dir="in" safearray="yes">
10613 <desc>
10614 Array of bytes to write. The size of the array also specifies
10615 how much to write.
10616 </desc>
10617 </param>
10618 <param name="timeoutMS" type="unsigned long" dir="in">
10619 <desc>
10620 Timeout (in ms) to wait for the operation to complete.
10621 Pass 0 for an infinite timeout.
10622 </desc>
10623 </param>
10624 <param name="written" type="unsigned long" dir="return">
10625 <desc>How much bytes were written.</desc>
10626 </param>
10627 </method>
10628
10629 <method name="writeAt">
10630 <desc>
10631 Writes bytes at a certain offset to this file.
10632
10633 <result name="E_NOTIMPL">
10634 The method is not implemented yet.
10635 </result>
10636 </desc>
10637 <param name="offset" type="long long" dir="in">
10638 <desc>Offset in bytes to start writing.</desc>
10639 </param>
10640 <param name="data" type="octet" dir="in" safearray="yes">
10641 <desc>
10642 Array of bytes to write. The size of the array also specifies
10643 how much to write.
10644 </desc>
10645 </param>
10646 <param name="timeoutMS" type="unsigned long" dir="in">
10647 <desc>
10648 Timeout (in ms) to wait for the operation to complete.
10649 Pass 0 for an infinite timeout.
10650 </desc>
10651 </param>
10652 <param name="written" type="unsigned long" dir="return">
10653 <desc>How much bytes were written.</desc>
10654 </param>
10655 </method>
10656
10657 </interface>
10658
10659 <interface
10660 name="IGuestFile" extends="IFile"
10661 uuid="60661aec-145f-4d11-b80e-8ea151598093"
10662 wsmap="managed"
10663 >
10664 <desc>
10665 Implementation of the <link to="IFile" /> object
10666 for files on the guest.
10667 </desc>
10668 </interface>
10669
10670 <interface
10671 name="IFsObjInfo" extends="$unknown"
10672 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
10673 wsmap="managed"
10674 >
10675 <desc>
10676 Abstract parent interface for VirtualBox file system object information.
10677 This can be information about a file or a directory, for example.
10678 </desc>
10679
10680 <attribute name="accessTime" type="long long" readonly="yes">
10681 <desc>
10682 Time of last access (st_atime).
10683 </desc>
10684 </attribute>
10685 <attribute name="allocatedSize" type="long long" readonly="yes">
10686 <desc>
10687 Disk allocation size (st_blocks * DEV_BSIZE).
10688 </desc>
10689 </attribute>
10690 <attribute name="birthTime" type="long long" readonly="yes">
10691 <desc>
10692 Time of file birth (st_birthtime).
10693 </desc>
10694 </attribute>
10695 <attribute name="changeTime" type="long long" readonly="yes">
10696 <desc>
10697 Time of last status change (st_ctime).
10698 </desc>
10699 </attribute>
10700 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
10701 <desc>
10702 The device number of a character or block device type object (st_rdev).
10703 </desc>
10704 </attribute>
10705 <attribute name="fileAttributes" type="wstring" readonly="yes">
10706 <desc>
10707 File attributes. Not implemented yet.
10708 </desc>
10709 </attribute>
10710 <attribute name="generationId" type="unsigned long" readonly="yes">
10711 <desc>
10712 The current generation number (st_gen).
10713 </desc>
10714 </attribute>
10715 <attribute name="GID" type="unsigned long" readonly="yes">
10716 <desc>
10717 The group the filesystem object is assigned (st_gid).
10718 </desc>
10719 </attribute>
10720 <attribute name="groupName" type="wstring" readonly="yes">
10721 <desc>
10722 The group name.
10723 </desc>
10724 </attribute>
10725 <attribute name="hardLinks" type="unsigned long" readonly="yes">
10726 <desc>
10727 Number of hard links to this filesystem object (st_nlink).
10728 </desc>
10729 </attribute>
10730 <attribute name="modificationTime" type="long long" readonly="yes">
10731 <desc>
10732 Time of last data modification (st_mtime).
10733 </desc>
10734 </attribute>
10735 <attribute name="name" type="wstring" readonly="yes">
10736 <desc>
10737 The object's name.
10738 </desc>
10739 </attribute>
10740 <attribute name="nodeId" type="long long" readonly="yes">
10741 <desc>
10742 The unique identifier (within the filesystem) of this filesystem object (st_ino).
10743 </desc>
10744 </attribute>
10745 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
10746 <desc>
10747 The device number of the device which this filesystem object resides on (st_dev).
10748 </desc>
10749 </attribute>
10750 <attribute name="objectSize" type="long long" readonly="yes">
10751 <desc>
10752 The logical size (st_size). For normal files this is the size of the file.
10753 For symbolic links, this is the length of the path name contained in the
10754 symbolic link. For other objects this fields needs to be specified.
10755 </desc>
10756 </attribute>
10757 <attribute name="type" type="FsObjType" readonly="yes">
10758 <desc>
10759 The object type. See <link to="FsObjType" /> for more.
10760 </desc>
10761 </attribute>
10762 <attribute name="UID" type="unsigned long" readonly="yes">
10763 <desc>
10764 The user owning the filesystem object (st_uid).
10765 </desc>
10766 </attribute>
10767 <attribute name="userFlags" type="unsigned long" readonly="yes">
10768 <desc>
10769 User flags (st_flags).
10770 </desc>
10771 </attribute>
10772 <attribute name="userName" type="wstring" readonly="yes">
10773 <desc>
10774 The user name.
10775 </desc>
10776 </attribute>
10777
10778 </interface>
10779
10780 <interface
10781 name="IGuestFsObjInfo" extends="IFsObjInfo"
10782 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
10783 wsmap="managed"
10784 >
10785 <desc>
10786 Represents the guest implementation of the
10787 <link to="IFsObjInfo" /> object.
10788 </desc>
10789 </interface>
10790
10791 <interface
10792 name="IGuest" extends="$unknown"
10793 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
10794 wsmap="managed"
10795 >
10796 <desc>
10797 The IGuest interface represents information about the operating system
10798 running inside the virtual machine. Used in
10799 <link to="IConsole::guest"/>.
10800
10801 IGuest provides information about the guest operating system, whether
10802 Guest Additions are installed and other OS-specific virtual machine
10803 properties.
10804 </desc>
10805
10806 <attribute name="OSTypeId" type="wstring" readonly="yes">
10807 <desc>
10808 Identifier of the Guest OS type as reported by the Guest
10809 Additions.
10810 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
10811 an IGuestOSType object representing details about the given
10812 Guest OS type.
10813 <note>
10814 If Guest Additions are not installed, this value will be
10815 the same as <link to="IMachine::OSTypeId"/>.
10816 </note>
10817 </desc>
10818 </attribute>
10819
10820 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
10821 <desc>
10822 Current run level of the Guest Additions.
10823 </desc>
10824 </attribute>
10825
10826 <attribute name="additionsVersion" type="wstring" readonly="yes">
10827 <desc>
10828 Version of the Guest Additions in the same format as
10829 <link to="IVirtualBox::version"/>.
10830 </desc>
10831 </attribute>
10832
10833 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
10834 <desc>
10835 The internal build revision number of the additions.
10836
10837 See also <link to="IVirtualBox::revision"/>.
10838 </desc>
10839 </attribute>
10840
10841 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
10842 <desc>
10843 Array of current known facilities. Only returns facilities where a status is known,
10844 e.g. facilities with an unknown status will not be returned.
10845 </desc>
10846 </attribute>
10847
10848 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
10849 <desc>Returns a collection of all opened guest sessions.</desc>
10850 </attribute>
10851
10852 <attribute name="memoryBalloonSize" type="unsigned long">
10853 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
10854 </attribute>
10855
10856 <attribute name="statisticsUpdateInterval" type="unsigned long">
10857 <desc>Interval to update guest statistics in seconds.</desc>
10858 </attribute>
10859
10860 <method name="internalGetStatistics">
10861 <desc>
10862 Internal method; do not use as it might change at any time.
10863 </desc>
10864 <param name="cpuUser" type="unsigned long" dir="out">
10865 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
10866 </param>
10867 <param name="cpuKernel" type="unsigned long" dir="out">
10868 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
10869 </param>
10870 <param name="cpuIdle" type="unsigned long" dir="out">
10871 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
10872 </param>
10873 <param name="memTotal" type="unsigned long" dir="out">
10874 <desc>Total amount of physical guest RAM.</desc>
10875 </param>
10876 <param name="memFree" type="unsigned long" dir="out">
10877 <desc>Free amount of physical guest RAM.</desc>
10878 </param>
10879 <param name="memBalloon" type="unsigned long" dir="out">
10880 <desc>Amount of ballooned physical guest RAM.</desc>
10881 </param>
10882 <param name="memShared" type="unsigned long" dir="out">
10883 <desc>Amount of shared physical guest RAM.</desc>
10884 </param>
10885 <param name="memCache" type="unsigned long" dir="out">
10886 <desc>Total amount of guest (disk) cache memory.</desc>
10887 </param>
10888 <param name="pagedTotal" type="unsigned long" dir="out">
10889 <desc>Total amount of space in the page file.</desc>
10890 </param>
10891 <param name="memAllocTotal" type="unsigned long" dir="out">
10892 <desc>Total amount of memory allocated by the hypervisor.</desc>
10893 </param>
10894 <param name="memFreeTotal" type="unsigned long" dir="out">
10895 <desc>Total amount of free memory available in the hypervisor.</desc>
10896 </param>
10897 <param name="memBalloonTotal" type="unsigned long" dir="out">
10898 <desc>Total amount of memory ballooned by the hypervisor.</desc>
10899 </param>
10900 <param name="memSharedTotal" type="unsigned long" dir="out">
10901 <desc>Total amount of shared memory in the hypervisor.</desc>
10902 </param>
10903 </method>
10904
10905 <method name="getFacilityStatus">
10906 <desc>
10907 Get the current status of a Guest Additions facility.
10908 </desc>
10909 <param name="facility" type="AdditionsFacilityType" dir="in">
10910 <desc>Facility to check status for.</desc>
10911 </param>
10912 <param name="timestamp" type="long long" dir="out">
10913 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
10914 </param>
10915 <param name="status" type="AdditionsFacilityStatus" dir="return">
10916 <desc>The current (latest) facility status.</desc>
10917 </param>
10918 </method>
10919
10920 <method name="getAdditionsStatus">
10921 <desc>
10922 Retrieve the current status of a certain Guest Additions run level.
10923
10924 <result name="VBOX_E_NOT_SUPPORTED">
10925 Wrong status level specified.
10926 </result>
10927
10928 </desc>
10929 <param name="level" type="AdditionsRunLevelType" dir="in">
10930 <desc>Status level to check</desc>
10931 </param>
10932 <param name="active" type="boolean" dir="return">
10933 <desc>Flag whether the status level has been reached or not</desc>
10934 </param>
10935 </method>
10936
10937 <method name="setCredentials">
10938 <desc>
10939 Store login credentials that can be queried by guest operating
10940 systems with Additions installed. The credentials are transient
10941 to the session and the guest may also choose to erase them. Note
10942 that the caller cannot determine whether the guest operating system
10943 has queried or made use of the credentials.
10944
10945 <result name="VBOX_E_VM_ERROR">
10946 VMM device is not available.
10947 </result>
10948
10949 </desc>
10950 <param name="userName" type="wstring" dir="in">
10951 <desc>User name string, can be empty</desc>
10952 </param>
10953 <param name="password" type="wstring" dir="in">
10954 <desc>Password string, can be empty</desc>
10955 </param>
10956 <param name="domain" type="wstring" dir="in">
10957 <desc>Domain name (guest logon scheme specific), can be empty</desc>
10958 </param>
10959 <param name="allowInteractiveLogon" type="boolean" dir="in">
10960 <desc>
10961 Flag whether the guest should alternatively allow the user to
10962 interactively specify different credentials. This flag might
10963 not be supported by all versions of the Additions.
10964 </desc>
10965 </param>
10966 </method>
10967
10968 <method name="dragHGEnter">
10969 <desc>
10970 Informs the guest about a Drag and Drop enter event.
10971
10972 This is used in Host - Guest direction.
10973
10974 <result name="VBOX_E_VM_ERROR">
10975 VMM device is not available.
10976 </result>
10977
10978 </desc>
10979 <param name="screenId" type="unsigned long" dir="in">
10980 <desc>The screen id where the Drag and Drop event occured.</desc>
10981 </param>
10982 <param name="y" type="unsigned long" dir="in">
10983 <desc>y-position of the event.</desc>
10984 </param>
10985 <param name="x" type="unsigned long" dir="in">
10986 <desc>x-position of the event.</desc>
10987 </param>
10988 <param name="defaultAction" type="DragAndDropAction" dir="in">
10989 <desc>The default action to use.</desc>
10990 </param>
10991 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10992 <desc>The actions which are allowed.</desc>
10993 </param>
10994 <param name="formats" type="wstring" dir="in" safearray="yes">
10995 <desc>The supported mime types.</desc>
10996 </param>
10997 <param name="resultAction" type="DragAndDropAction" dir="return">
10998 <desc>The resulting action of this event.</desc>
10999 </param>
11000 </method>
11001
11002 <method name="dragHGMove">
11003 <desc>
11004 Informs the guest about a Drag and Drop move event.
11005
11006 This is used in Host - Guest direction.
11007
11008 <result name="VBOX_E_VM_ERROR">
11009 VMM device is not available.
11010 </result>
11011
11012 </desc>
11013 <param name="screenId" type="unsigned long" dir="in">
11014 <desc>The screen id where the Drag and Drop event occured.</desc>
11015 </param>
11016 <param name="x" type="unsigned long" dir="in">
11017 <desc>x-position of the event.</desc>
11018 </param>
11019 <param name="y" type="unsigned long" dir="in">
11020 <desc>y-position of the event.</desc>
11021 </param>
11022 <param name="defaultAction" type="DragAndDropAction" dir="in">
11023 <desc>The default action to use.</desc>
11024 </param>
11025 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11026 <desc>The actions which are allowed.</desc>
11027 </param>
11028 <param name="formats" type="wstring" dir="in" safearray="yes">
11029 <desc>The supported mime types.</desc>
11030 </param>
11031 <param name="resultAction" type="DragAndDropAction" dir="return">
11032 <desc>The resulting action of this event.</desc>
11033 </param>
11034 </method>
11035
11036 <method name="dragHGLeave">
11037 <desc>
11038 Informs the guest about a Drag and Drop leave event.
11039
11040 This is used in Host - Guest direction.
11041
11042 <result name="VBOX_E_VM_ERROR">
11043 VMM device is not available.
11044 </result>
11045
11046 </desc>
11047 <param name="screenId" type="unsigned long" dir="in">
11048 <desc>The screen id where the Drag and Drop event occured.</desc>
11049 </param>
11050 </method>
11051
11052 <method name="dragHGDrop">
11053 <desc>
11054 Informs the guest about a drop event.
11055
11056 This is used in Host - Guest direction.
11057
11058 <result name="VBOX_E_VM_ERROR">
11059 VMM device is not available.
11060 </result>
11061
11062 </desc>
11063 <param name="screenId" type="unsigned long" dir="in">
11064 <desc>The screen id where the Drag and Drop event occured.</desc>
11065 </param>
11066 <param name="x" type="unsigned long" dir="in">
11067 <desc>x-position of the event.</desc>
11068 </param>
11069 <param name="y" type="unsigned long" dir="in">
11070 <desc>y-position of the event.</desc>
11071 </param>
11072 <param name="defaultAction" type="DragAndDropAction" dir="in">
11073 <desc>The default action to use.</desc>
11074 </param>
11075 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11076 <desc>The actions which are allowed.</desc>
11077 </param>
11078 <param name="formats" type="wstring" dir="in" safearray="yes">
11079 <desc>The supported mime types.</desc>
11080 </param>
11081 <param name="format" type="wstring" dir="out">
11082 <desc>The resulting format of this event.</desc>
11083 </param>
11084 <param name="resultAction" type="DragAndDropAction" dir="return">
11085 <desc>The resulting action of this event.</desc>
11086 </param>
11087 </method>
11088
11089 <method name="dragHGPutData">
11090 <desc>
11091 Informs the guest about a drop data event.
11092
11093 This is used in Host - Guest direction.
11094
11095 <result name="VBOX_E_VM_ERROR">
11096 VMM device is not available.
11097 </result>
11098
11099 </desc>
11100 <param name="screenId" type="unsigned long" dir="in">
11101 <desc>The screen id where the Drag and Drop event occured.</desc>
11102 </param>
11103 <param name="format" type="wstring" dir="in">
11104 <desc>The mime type the data is in.</desc>
11105 </param>
11106 <param name="data" type="octet" dir="in" safearray="yes">
11107 <desc>The actual data.</desc>
11108 </param>
11109 <param name="progress" type="IProgress" dir="return">
11110 <desc>Progress object to track the operation completion.</desc>
11111 </param>
11112 </method>
11113
11114 <method name="dragGHPending">
11115 <desc>
11116 Ask the guest if there is any Drag and Drop operation pending in the guest.
11117
11118 If no Drag and Drop operation is pending currently, Ignore is returned.
11119
11120 This is used in Guest - Host direction.
11121
11122 <result name="VBOX_E_VM_ERROR">
11123 VMM device is not available.
11124 </result>
11125
11126 </desc>
11127 <param name="screenId" type="unsigned long" dir="in">
11128 <desc>The screen id where the Drag and Drop event occured.</desc>
11129 </param>
11130 <param name="format" type="wstring" dir="out" safearray="yes">
11131 <desc>On return the supported mime types.</desc>
11132 </param>
11133 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11134 <desc>On return the actions which are allowed.</desc>
11135 </param>
11136 <param name="defaultAction" type="DragAndDropAction" dir="return">
11137 <desc>On return the default action to use.</desc>
11138 </param>
11139 </method>
11140
11141 <method name="dragGHDropped">
11142 <desc>
11143 Informs the guest that a drop event occured for a pending Drag and Drop event.
11144
11145 This is used in Guest - Host direction.
11146
11147 <result name="VBOX_E_VM_ERROR">
11148 VMM device is not available.
11149 </result>
11150
11151 </desc>
11152
11153 <param name="format" type="wstring" dir="in">
11154 <desc>The mime type the data must be in.</desc>
11155 </param>
11156 <param name="action" type="DragAndDropAction" dir="in">
11157 <desc>The action to use.</desc>
11158 </param>
11159 <param name="progress" type="IProgress" dir="return">
11160 <desc>Progress object to track the operation completion.</desc>
11161 </param>
11162 </method>
11163
11164 <method name="dragGHGetData">
11165 <desc>
11166 Fetch the data of a previously Drag and Drop event from the guest.
11167
11168 This is used in Guest - Host direction.
11169
11170 <result name="VBOX_E_VM_ERROR">
11171 VMM device is not available.
11172 </result>
11173
11174 </desc>
11175
11176 <param name="data" type="octet" safearray="yes" dir="return">
11177 <desc>The actual data.</desc>
11178 </param>
11179 </method>
11180
11181 <method name="createSession">
11182 <desc>
11183 Creates a new guest session for controlling the guest. All operations
11184 of a session object are using the same credentials specified with this
11185 call. Anonymous sessions, that is, sessions without specifying a valid
11186 user account on the guest are not allowed due to security reasons. Per
11187 VM there can be 255 sessions at once. Using sessions across VMs is not
11188 possible.
11189
11190 A guest session holds all started or opened guest processes, guest
11191 directories and guest files.
11192
11193 Closing a session via <link to="IGuestSession::close" /> will try to close
11194 all the mentioned objects above unless these objects are still used by
11195 a client.
11196 </desc>
11197 <param name="user" type="wstring" dir="in">
11198 <desc>
11199 User name this session will be using to control the guest; has to exist
11200 and have the appropriate rights to execute programs in the VM. Must not
11201 be empty.
11202 </desc>
11203 </param>
11204 <param name="password" type="wstring" dir="in">
11205 <desc>
11206 Password of the user account to be used. Empty passwords are allowed.
11207 </desc>
11208 </param>
11209 <param name="domain" type="wstring" dir="in">
11210 <desc>
11211 Domain name of the user account to be used if the guest is part of
11212 a domain. Optional. This feature is not implemented yet.
11213 </desc>
11214 </param>
11215 <param name="sessionName" type="wstring" dir="in">
11216 <desc>
11217 The session's friendly name. Optional, can be empty.
11218 </desc>
11219 </param>
11220 <param name="guestSession" type="IGuestSession" dir="return">
11221 <desc>
11222 The newly created session object.
11223 </desc>
11224 </param>
11225 </method>
11226
11227 <method name="findSession">
11228 <desc>
11229 Finds guest sessions by their friendly name and returns an interface
11230 array with all found guest sessions.
11231 </desc>
11232 <param name="sessionName" type="wstring" dir="in">
11233 <desc>
11234 The session's friendly name to find. Wildcards like ? and * are allowed.
11235 </desc>
11236 </param>
11237 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11238 <desc>
11239 Array with all guest sessions found matching the name specified.
11240 </desc>
11241 </param>
11242 </method>
11243
11244 <method name="executeProcess">
11245 <desc>
11246 Executes an existing program inside the guest VM.
11247
11248 <note>
11249 Starting at VirtualBox 4.1.8 guest process execution by default is limited
11250 to serve up to 25 guest processes at a time. If all 25 guest processes
11251 are still active and running, starting a new guest process will result in an
11252 appropriate error message.
11253
11254 If ExecuteProcessFlag_WaitForStdOut and/or respectively
11255 ExecuteProcessFlag_WaitForStdErr of <link to="ExecuteProcessFlag"/> is
11256 set, the guest process will not exit until all data from the specified
11257 stream(s) is/are read out.
11258
11259 To raise or lower the guest process execution limit, either the guest property
11260 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
11261 command line by specifying "--control-procs-max-kept" needs to be modified.
11262 A restart of the guest OS is required afterwards. To serve unlimited guest
11263 processes, a value of "0" needs to be set (not recommended).
11264 </note>
11265
11266 <result name="VBOX_E_IPRT_ERROR">
11267 Could not execute process.
11268 </result>
11269
11270 </desc>
11271 <param name="execName" type="wstring" dir="in">
11272 <desc>
11273 Full path name of the command to execute on the guest; the
11274 commands has to exists in the guest VM in order to be executed.
11275 </desc>
11276 </param>
11277 <param name="flags" type="unsigned long" dir="in">
11278 <desc>
11279 <link to="ExecuteProcessFlag"/> flags.
11280 </desc>
11281 </param>
11282 <param name="arguments" type="wstring" safearray="yes" dir="in">
11283 <desc>
11284 Array of arguments passed to the execution command.
11285 </desc>
11286 </param>
11287 <param name="environment" type="wstring" safearray="yes" dir="in">
11288 <desc>
11289 Environment variables that can be set while the command is being
11290 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
11291 variable just set its name ("NAME") without a value.
11292 </desc>
11293 </param>
11294 <param name="userName" type="wstring" dir="in">
11295 <desc>
11296 User name under which the command will be executed; has to exist
11297 and have the appropriate rights to execute programs in the VM.
11298 </desc>
11299 </param>
11300 <param name="password" type="wstring" dir="in">
11301 <desc>
11302 Password of the user account specified.
11303 </desc>
11304 </param>
11305 <param name="timeoutMS" type="unsigned long" dir="in">
11306 <desc>
11307 The maximum timeout value (in msec) to wait for finished program
11308 execution. Pass 0 for an infinite timeout.
11309 </desc>
11310 </param>
11311 <param name="pid" type="unsigned long" dir="out">
11312 <desc>
11313 The PID (process ID) of the started command for later reference.
11314 </desc>
11315 </param>
11316 <param name="progress" type="IProgress" dir="return">
11317 <desc>Progress object to track the operation completion.</desc>
11318 </param>
11319 </method>
11320
11321 <method name="getProcessOutput">
11322 <desc>
11323 Retrieves output of a formerly started and running guest process.
11324
11325 <note>
11326 Starting with VirtualBox 4.1.8 this only will return output data
11327 from stdout or stderr if flag ExecuteProcessFlag_WaitForStdOut
11328 and/or respectively ExecuteProcessFlag_WaitForStdErr of
11329 <link to="ExecuteProcessFlag"/> is set in the
11330 former <link to="#executeProcess"/> call for this guest process.
11331 </note>
11332
11333 <result name="VBOX_E_IPRT_ERROR">
11334 Could not retrieve output.
11335 </result>
11336
11337 </desc>
11338 <param name="pid" type="unsigned long" dir="in">
11339 <desc>
11340 Process id returned by earlier <link to="#executeProcess"/> call.
11341 </desc>
11342 </param>
11343 <param name="flags" type="unsigned long" dir="in">
11344 <desc>
11345 <link to="ProcessOutputFlag"/> flags.
11346 </desc>
11347 </param>
11348 <param name="timeoutMS" type="unsigned long" dir="in">
11349 <desc>
11350 The maximum timeout value (in msec) to wait for output
11351 data. Pass 0 for an infinite timeout.
11352 </desc>
11353 </param>
11354 <param name="size" type="long long" dir="in">
11355 <desc>
11356 Size in bytes to read in the buffer.
11357 </desc>
11358 </param>
11359 <param name="data" type="octet" safearray="yes" dir="return">
11360 <desc>
11361 Buffer for retrieving the actual output. A data size of 0 means end of file
11362 if the requested size was not 0. This is the unprocessed
11363 output data, i.e. the line ending style depends on the platform of
11364 the system the server is running on.
11365 </desc>
11366 </param>
11367 </method>
11368
11369 <method name="getProcessStatus">
11370 <desc>
11371 Retrieves status, exit code and the exit reason of a formerly started
11372 guest process. If a guest process exited or got terminated this function
11373 returns its final status and removes this process from the list of
11374 known guest processes for further retrieval.
11375
11376 <result name="VBOX_E_IPRT_ERROR">
11377 Process with specified PID was not found.
11378 </result>
11379
11380 </desc>
11381 <param name="pid" type="unsigned long" dir="in">
11382 <desc>
11383 Process id returned by earlier <link to="#executeProcess"/> call.
11384 </desc>
11385 </param>
11386 <param name="exitcode" type="unsigned long" dir="out">
11387 <desc>
11388 The exit code (if available).
11389 </desc>
11390 </param>
11391 <param name="flags" type="unsigned long" dir="out">
11392 <desc>
11393 Additional flags of process status. Not used at the moment and
11394 must be set to 0.
11395 </desc>
11396 </param>
11397 <param name="reason" type="ExecuteProcessStatus" dir="return">
11398 <desc>
11399 The current process status.
11400 </desc>
11401 </param>
11402 </method>
11403
11404 <method name="copyFromGuest">
11405 <desc>
11406 Copies files/directories from guest to the host.
11407
11408 <result name="VBOX_E_IPRT_ERROR">
11409 Error while copying.
11410 </result>
11411
11412 </desc>
11413 <param name="source" type="wstring" dir="in">
11414 <desc>
11415 Source file on the guest to copy.
11416 </desc>
11417 </param>
11418 <param name="dest" type="wstring" dir="in">
11419 <desc>
11420 Destination path on the host.
11421 </desc>
11422 </param>
11423 <param name="userName" type="wstring" dir="in">
11424 <desc>
11425 User name under which the copy command will be executed; the
11426 user has to exist and have the appropriate rights to read from
11427 the source path.
11428 </desc>
11429 </param>
11430 <param name="password" type="wstring" dir="in">
11431 <desc>
11432 Password of the user account specified.
11433 </desc>
11434 </param>
11435 <param name="flags" type="unsigned long" dir="in">
11436 <desc>
11437 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
11438 </desc>
11439 </param>
11440 <param name="progress" type="IProgress" dir="return">
11441 <desc>Progress object to track the operation completion.</desc>
11442 </param>
11443 </method>
11444
11445 <method name="copyToGuest">
11446 <desc>
11447 Copies files/directories from host to the guest.
11448
11449 <result name="VBOX_E_IPRT_ERROR">
11450 Error while copying.
11451 </result>
11452
11453 </desc>
11454 <param name="source" type="wstring" dir="in">
11455 <desc>
11456 Source file on the host to copy.
11457 </desc>
11458 </param>
11459 <param name="dest" type="wstring" dir="in">
11460 <desc>
11461 Destination path on the guest.
11462 </desc>
11463 </param>
11464 <param name="userName" type="wstring" dir="in">
11465 <desc>
11466 User name under which the copy command will be executed; the
11467 user has to exist and have the appropriate rights to write to
11468 the destination path.
11469 </desc>
11470 </param>
11471 <param name="password" type="wstring" dir="in">
11472 <desc>
11473 Password of the user account specified.
11474 </desc>
11475 </param>
11476 <param name="flags" type="unsigned long" dir="in">
11477 <desc>
11478 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
11479 </desc>
11480 </param>
11481 <param name="progress" type="IProgress" dir="return">
11482 <desc>Progress object to track the operation completion.</desc>
11483 </param>
11484 </method>
11485
11486 <method name="directoryClose">
11487 <desc>
11488 Closes a formerly opened guest directory.
11489
11490 <result name="VBOX_E_IPRT_ERROR">
11491 Error while closing directory.
11492 </result>
11493
11494 </desc>
11495 <param name="handle" type="unsigned long" dir="in">
11496 <desc>
11497 Handle of opened directory to close.
11498 </desc>
11499 </param>
11500 </method>
11501
11502 <method name="directoryCreate">
11503 <desc>
11504 Creates a directory on the guest.
11505
11506 <result name="VBOX_E_IPRT_ERROR">
11507 Error while creating directory.
11508 </result>
11509
11510 </desc>
11511 <param name="directory" type="wstring" dir="in">
11512 <desc>
11513 Directory to create.
11514 </desc>
11515 </param>
11516 <param name="userName" type="wstring" dir="in">
11517 <desc>
11518 User name under which the directory creation will be executed; the
11519 user has to exist and have the appropriate rights to create the
11520 desired directory.
11521 </desc>
11522 </param>
11523 <param name="password" type="wstring" dir="in">
11524 <desc>
11525 Password of the user account specified.
11526 </desc>
11527 </param>
11528 <param name="mode" type="unsigned long" dir="in">
11529 <desc>
11530 File mode.
11531 </desc>
11532 </param>
11533 <param name="flags" type="unsigned long" dir="in">
11534 <desc>
11535 <link to="DirectoryCreateFlag"/> flags.
11536 </desc>
11537 </param>
11538 </method>
11539
11540 <method name="directoryOpen">
11541 <desc>
11542 Opens a directory on the guest.
11543
11544 <result name="VBOX_E_IPRT_ERROR">
11545 Error while opening / reading directory.
11546 </result>
11547
11548 </desc>
11549 <param name="directory" type="wstring" dir="in">
11550 <desc>
11551 Directory to read.
11552 </desc>
11553 </param>
11554 <param name="filter" type="wstring" dir="in">
11555 <desc>
11556 Directory filter (DOS style wildcards). Set to empty
11557 string if no filter required.
11558 </desc>
11559 </param>
11560 <param name="flags" type="unsigned long" dir="in">
11561 <desc>
11562 <link to="DirectoryOpenFlag"/> flags.
11563 </desc>
11564 </param>
11565 <param name="userName" type="wstring" dir="in">
11566 <desc>
11567 User name under which the directory reading will be performed; the
11568 user has to exist and have the appropriate rights to access / read the
11569 desired directory.
11570 </desc>
11571 </param>
11572 <param name="password" type="wstring" dir="in">
11573 <desc>
11574 Password of the user account specified.
11575 </desc>
11576 </param>
11577 <param name="handle" type="unsigned long" dir="return">
11578 <desc>
11579 Handle of opened directory returned by openDirectory.
11580 </desc>
11581 </param>
11582 </method>
11583
11584 <method name="directoryRead">
11585 <desc>
11586 Reads the next directory entry of an opened guest directory.
11587
11588 <result name="E_ABORT">
11589 When the end of the directory has been reached.
11590 </result>
11591
11592 <result name="VBOX_E_IPRT_ERROR">
11593 Error while opening / reading directory.
11594 </result>
11595
11596 </desc>
11597 <param name="handle" type="unsigned long" dir="in">
11598 <desc>
11599 Handle of opened directory returned by openDirectory.
11600 </desc>
11601 </param>
11602 <param name="entry" type="IGuestDirEntry" dir="return">
11603 <desc>
11604 Information about next directory entry on success.
11605 </desc>
11606 </param>
11607 </method>
11608
11609 <method name="fileExists">
11610 <desc>
11611 Checks if the specified file name exists and is a regular file.
11612
11613 If the file name ends with a slash or backslash, the function assumes
11614 it's a directory and will check if the specified directory exists and
11615 is a regular directory.
11616
11617 <result name="VBOX_E_IPRT_ERROR">
11618 Error while looking up information.
11619 </result>
11620
11621 </desc>
11622 <param name="file" type="wstring" dir="in">
11623 <desc>
11624 Full path of file to check.
11625 </desc>
11626 </param>
11627 <param name="userName" type="wstring" dir="in">
11628 <desc>
11629 User name under which the lookup will be performed; the
11630 user has to exist and have the appropriate rights to access / read the
11631 desired directory.
11632 </desc>
11633 </param>
11634 <param name="password" type="wstring" dir="in">
11635 <desc>
11636 Password of the user account specified.
11637 </desc>
11638 </param>
11639 <param name="exists" type="boolean" dir="return">
11640 <desc>
11641 True if it's a regular file, false if it isn't (or doesn't exist).
11642 </desc>
11643 </param>
11644 </method>
11645
11646 <method name="fileQuerySize">
11647 <desc>
11648 Queries the size of a file, given the path to it.
11649
11650 <result name="VBOX_E_IPRT_ERROR">
11651 Error while looking up information.
11652 </result>
11653
11654 </desc>
11655 <param name="file" type="wstring" dir="in">
11656 <desc>
11657 Full path of file to query file size for.
11658 </desc>
11659 </param>
11660 <param name="userName" type="wstring" dir="in">
11661 <desc>
11662 User name under which the lookup will be performed; the
11663 user has to exist and have the appropriate rights to access / read the
11664 desired directory.
11665 </desc>
11666 </param>
11667 <param name="password" type="wstring" dir="in">
11668 <desc>
11669 Password of the user account specified.
11670 </desc>
11671 </param>
11672 <param name="size" type="long long" dir="return">
11673 <desc>
11674 Size (in bytes) of file specified.
11675 </desc>
11676 </param>
11677 </method>
11678
11679 <method name="setProcessInput">
11680 <desc>
11681 Sends input into a formerly started process.
11682
11683 <result name="VBOX_E_IPRT_ERROR">
11684 Could not send input.
11685 </result>
11686
11687 </desc>
11688 <param name="pid" type="unsigned long" dir="in">
11689 <desc>
11690 Process id returned by earlier <link to="#executeProcess"/> call.
11691 </desc>
11692 </param>
11693 <param name="flags" type="unsigned long" dir="in">
11694 <desc>
11695 <link to="ProcessInputFlag"/> flags.
11696 </desc>
11697 </param>
11698 <param name="timeoutMS" type="unsigned long" dir="in">
11699 <desc>
11700 The maximum timeout value (in msec) to wait for getting the
11701 data transfered to the guest. Pass 0 for an infinite timeout.
11702 </desc>
11703 </param>
11704 <param name="data" type="octet" dir="in" safearray="yes">
11705 <desc>
11706 Buffer of input data to send to the started process to.
11707 </desc>
11708 </param>
11709 <param name="written" type="unsigned long" dir="return">
11710 <desc>
11711 Number of bytes written.
11712 </desc>
11713 </param>
11714 </method>
11715
11716 <method name="updateGuestAdditions">
11717 <desc>
11718 Updates already installed Guest Additions in a VM
11719 (Windows guests only).
11720
11721 <result name="VBOX_E_IPRT_ERROR">
11722 Error while updating.
11723 </result>
11724
11725 </desc>
11726 <param name="source" type="wstring" dir="in">
11727 <desc>
11728 Path to the Guest Additions .ISO file to use for the upate.
11729 </desc>
11730 </param>
11731 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11732 <desc>
11733 <link to="AdditionsUpdateFlag"/> flags.
11734 </desc>
11735 </param>
11736 <param name="progress" type="IProgress" dir="return">
11737 <desc>Progress object to track the operation completion.</desc>
11738 </param>
11739 </method>
11740
11741 </interface>
11742
11743
11744 <!--
11745 // IProgress
11746 /////////////////////////////////////////////////////////////////////////
11747 -->
11748
11749 <interface
11750 name="IProgress" extends="$unknown"
11751 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11752 wsmap="managed"
11753 >
11754 <desc>
11755 The IProgress interface is used to track and control
11756 asynchronous tasks within VirtualBox.
11757
11758 An instance of this is returned every time VirtualBox starts
11759 an asynchronous task (in other words, a separate thread) which
11760 continues to run after a method call returns. For example,
11761 <link to="IConsole::saveState" />, which saves the state of
11762 a running virtual machine, can take a long time to complete.
11763 To be able to display a progress bar, a user interface such as
11764 the VirtualBox graphical user interface can use the IProgress
11765 object returned by that method.
11766
11767 Note that IProgress is a "read-only" interface in the sense
11768 that only the VirtualBox internals behind the Main API can
11769 create and manipulate progress objects, whereas client code
11770 can only use the IProgress object to monitor a task's
11771 progress and, if <link to="#cancelable" /> is @c true,
11772 cancel the task by calling <link to="#cancel" />.
11773
11774 A task represented by IProgress consists of either one or
11775 several sub-operations that run sequentially, one by one (see
11776 <link to="#operation" /> and <link to="#operationCount" />).
11777 Every operation is identified by a number (starting from 0)
11778 and has a separate description.
11779
11780 You can find the individual percentage of completion of the current
11781 operation in <link to="#operationPercent" /> and the
11782 percentage of completion of the task as a whole
11783 in <link to="#percent" />.
11784
11785 Similarly, you can wait for the completion of a particular
11786 operation via <link to="#waitForOperationCompletion" /> or
11787 for the completion of the whole task via
11788 <link to="#waitForCompletion" />.
11789 </desc>
11790
11791 <attribute name="id" type="uuid" mod="string" readonly="yes">
11792 <desc>ID of the task.</desc>
11793 </attribute>
11794
11795 <attribute name="description" type="wstring" readonly="yes">
11796 <desc>Description of the task.</desc>
11797 </attribute>
11798
11799 <attribute name="initiator" type="$unknown" readonly="yes">
11800 <desc>Initiator of the task.</desc>
11801 </attribute>
11802
11803 <attribute name="cancelable" type="boolean" readonly="yes">
11804 <desc>Whether the task can be interrupted.</desc>
11805 </attribute>
11806
11807 <attribute name="percent" type="unsigned long" readonly="yes">
11808 <desc>
11809 Current progress value of the task as a whole, in percent.
11810 This value depends on how many operations are already complete.
11811 Returns 100 if <link to="#completed" /> is @c true.
11812 </desc>
11813 </attribute>
11814
11815 <attribute name="timeRemaining" type="long" readonly="yes">
11816 <desc>
11817 Estimated remaining time until the task completes, in
11818 seconds. Returns 0 once the task has completed; returns -1
11819 if the remaining time cannot be computed, in particular if
11820 the current progress is 0.
11821
11822 Even if a value is returned, the estimate will be unreliable
11823 for low progress values. It will become more reliable as the
11824 task progresses; it is not recommended to display an ETA
11825 before at least 20% of a task have completed.
11826 </desc>
11827 </attribute>
11828
11829 <attribute name="completed" type="boolean" readonly="yes">
11830 <desc>Whether the task has been completed.</desc>
11831 </attribute>
11832
11833 <attribute name="canceled" type="boolean" readonly="yes">
11834 <desc>Whether the task has been canceled.</desc>
11835 </attribute>
11836
11837 <attribute name="resultCode" type="long" readonly="yes">
11838 <desc>
11839 Result code of the progress task.
11840 Valid only if <link to="#completed"/> is @c true.
11841 </desc>
11842 </attribute>
11843
11844 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11845 <desc>
11846 Extended information about the unsuccessful result of the
11847 progress operation. May be @c null if no extended information
11848 is available.
11849 Valid only if <link to="#completed"/> is @c true and
11850 <link to="#resultCode"/> indicates a failure.
11851 </desc>
11852 </attribute>
11853
11854 <attribute name="operationCount" type="unsigned long" readonly="yes">
11855 <desc>
11856 Number of sub-operations this task is divided into.
11857 Every task consists of at least one suboperation.
11858 </desc>
11859 </attribute>
11860
11861 <attribute name="operation" type="unsigned long" readonly="yes">
11862 <desc>Number of the sub-operation being currently executed.</desc>
11863 </attribute>
11864
11865 <attribute name="operationDescription" type="wstring" readonly="yes">
11866 <desc>
11867 Description of the sub-operation being currently executed.
11868 </desc>
11869 </attribute>
11870
11871 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11872 <desc>Progress value of the current sub-operation only, in percent.</desc>
11873 </attribute>
11874
11875 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11876 <desc>Weight value of the current sub-operation only.</desc>
11877 </attribute>
11878
11879 <attribute name="timeout" type="unsigned long">
11880 <desc>
11881 When non-zero, this specifies the number of milliseconds after which
11882 the operation will automatically be canceled. This can only be set on
11883 cancelable objects.
11884 </desc>
11885 </attribute>
11886
11887 <method name="setCurrentOperationProgress">
11888 <desc>Internal method, not to be called externally.</desc>
11889 <param name="percent" type="unsigned long" dir="in" />
11890 </method>
11891 <method name="setNextOperation">
11892 <desc>Internal method, not to be called externally.</desc>
11893 <param name="nextOperationDescription" type="wstring" dir="in" />
11894 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11895 </method>
11896
11897 <method name="waitForCompletion">
11898 <desc>
11899 Waits until the task is done (including all sub-operations)
11900 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11901
11902 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11903 thread are not processed while waiting. Neglecting event queues may
11904 have dire consequences (degrade performance, resource hogs,
11905 deadlocks, etc.), this is specially so for the main thread on
11906 platforms using XPCOM. Callers are adviced wait for short periods
11907 and service their event queues between calls, or to create a worker
11908 thread to do the waiting.
11909
11910 <result name="VBOX_E_IPRT_ERROR">
11911 Failed to wait for task completion.
11912 </result>
11913 </desc>
11914
11915 <param name="timeout" type="long" dir="in">
11916 <desc>
11917 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11918 </desc>
11919 </param>
11920 </method>
11921
11922 <method name="waitForOperationCompletion">
11923 <desc>
11924 Waits until the given operation is done with a given timeout in
11925 milliseconds; specify -1 for an indefinite wait.
11926
11927 See <link to="#waitForCompletion"> for event queue considerations.</link>
11928
11929 <result name="VBOX_E_IPRT_ERROR">
11930 Failed to wait for operation completion.
11931 </result>
11932
11933 </desc>
11934 <param name="operation" type="unsigned long" dir="in">
11935 <desc>
11936 Number of the operation to wait for.
11937 Must be less than <link to="#operationCount"/>.
11938 </desc>
11939 </param>
11940 <param name="timeout" type="long" dir="in">
11941 <desc>
11942 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11943 </desc>
11944 </param>
11945 </method>
11946
11947 <method name="waitForAsyncProgressCompletion">
11948 <desc>
11949 Waits until the other task is completed (including all
11950 sub-operations) and forward all changes from the other progress to
11951 this progress. This means sub-operation number, description, percent
11952 and so on.
11953
11954 You have to take care on setting up at least the same count on
11955 sub-operations in this progress object like there are in the other
11956 progress object.
11957
11958 If the other progress object supports cancel and this object gets any
11959 cancel request (when here enabled as well), it will be forwarded to
11960 the other progress object.
11961
11962 If there is an error in the other progress, this error isn't
11963 automatically transfered to this progress object. So you have to
11964 check any operation error within the other progress object, after
11965 this method returns.
11966 </desc>
11967
11968 <param name="pProgressAsync" type="IProgress" dir="in">
11969 <desc>
11970 The progress object of the asynchrony process.
11971 </desc>
11972 </param>
11973 </method>
11974
11975 <method name="cancel">
11976 <desc>
11977 Cancels the task.
11978 <note>
11979 If <link to="#cancelable"/> is @c false, then this method will fail.
11980 </note>
11981
11982 <result name="VBOX_E_INVALID_OBJECT_STATE">
11983 Operation cannot be canceled.
11984 </result>
11985
11986 </desc>
11987 </method>
11988
11989 </interface>
11990
11991 <!--
11992 // ISnapshot
11993 /////////////////////////////////////////////////////////////////////////
11994 -->
11995
11996 <interface
11997 name="ISnapshot" extends="$unknown"
11998 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11999 wsmap="managed"
12000 >
12001 <desc>
12002 The ISnapshot interface represents a snapshot of the virtual
12003 machine.
12004
12005 Together with the differencing media that are created
12006 when a snapshot is taken, a machine can be brought back to
12007 the exact state it was in when the snapshot was taken.
12008
12009 The ISnapshot interface has no methods, only attributes; snapshots
12010 are controlled through methods of the <link to="IConsole" /> interface
12011 which also manage the media associated with the snapshot.
12012 The following operations exist:
12013
12014 <ul>
12015 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
12016 by creating new, empty differencing images for the machine's
12017 media and saving the VM settings and (if the VM is running)
12018 the current VM state in the snapshot.
12019
12020 The differencing images will then receive all data written to
12021 the machine's media, while their parent (base) images
12022 remain unmodified after the snapshot has been taken (see
12023 <link to="IMedium" /> for details about differencing images).
12024 This simplifies restoring a machine to the state of a snapshot:
12025 only the differencing images need to be deleted.
12026
12027 The current machine state is not changed by taking a snapshot
12028 except that <link to="IMachine::currentSnapshot" /> is set to
12029 the newly created snapshot, which is also added to the machine's
12030 snapshots tree.
12031 </li>
12032
12033 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
12034 the state of a previous snapshot by deleting the differencing
12035 image of each of the machine's media and setting the machine's
12036 settings and state to the state that was saved in the snapshot (if any).
12037
12038 This destroys the machine's current state. After calling this,
12039 <link to="IMachine::currentSnapshot" /> points to the snapshot
12040 that was restored.
12041 </li>
12042
12043 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
12044 without affecting the current machine state.
12045
12046 This does not change the current machine state, but instead frees the
12047 resources allocated when the snapshot was taken: the settings and machine
12048 state file are deleted (if any), and the snapshot's differencing image for
12049 each of the machine's media gets merged with its parent image.
12050
12051 Neither the current machine state nor other snapshots are affected
12052 by this operation, except that parent media will be modified
12053 to contain the disk data associated with the snapshot being deleted.
12054
12055 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
12056 attribute is set to the current snapshot's parent or @c null if it
12057 has no parent. Otherwise the attribute is unchanged.
12058 </li>
12059 </ul>
12060
12061 Each snapshot contains a copy of virtual machine's settings (hardware
12062 configuration etc.). This copy is contained in an immutable (read-only)
12063 instance of <link to="IMachine" /> which is available from the snapshot's
12064 <link to="#machine" /> attribute. When restoring the snapshot, these
12065 settings are copied back to the original machine.
12066
12067 In addition, if the machine was running when the
12068 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
12069 the current VM state is saved in the snapshot (similarly to what happens
12070 when a VM's state is saved). The snapshot is then said to be <i>online</i>
12071 because when restoring it, the VM will be running.
12072
12073 If the machine was in <link to="MachineState_Saved">saved</link> saved,
12074 the snapshot receives a copy of the execution state file
12075 (<link to="IMachine::stateFilePath"/>).
12076
12077 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
12078 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
12079 it then contains a so-called "zero execution state", representing a
12080 machine that is powered off.
12081 </desc>
12082
12083 <attribute name="id" type="uuid" mod="string" readonly="yes">
12084 <desc>UUID of the snapshot.</desc>
12085 </attribute>
12086
12087 <attribute name="name" type="wstring">
12088 <desc>Short name of the snapshot.
12089 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12090 be called implicitly.</note>
12091 </desc>
12092 </attribute>
12093
12094 <attribute name="description" type="wstring">
12095 <desc>Optional description of the snapshot.
12096 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12097 be called implicitly.</note>
12098 </desc>
12099 </attribute>
12100
12101 <attribute name="timeStamp" type="long long" readonly="yes">
12102 <desc>
12103 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
12104 </desc>
12105 </attribute>
12106
12107 <attribute name="online" type="boolean" readonly="yes">
12108 <desc>
12109 @c true if this snapshot is an online snapshot and @c false otherwise.
12110
12111 When this attribute is @c true, the
12112 <link to="IMachine::stateFilePath"/> attribute of the
12113 <link to="#machine"/> object associated with this snapshot
12114 will point to the saved state file. Otherwise, it will be
12115 an empty string.
12116 </desc>
12117 </attribute>
12118
12119 <attribute name="machine" type="IMachine" readonly="yes">
12120 <desc>
12121 Virtual machine this snapshot is taken on. This object
12122 stores all settings the machine had when taking this snapshot.
12123 <note>
12124 The returned machine object is immutable, i.e. no
12125 any settings can be changed.
12126 </note>
12127 </desc>
12128 </attribute>
12129
12130 <attribute name="parent" type="ISnapshot" readonly="yes">
12131 <desc>
12132 Parent snapshot (a snapshot this one is based on), or
12133 @c null if the snapshot has no parent (i.e. is the first snapshot).
12134 </desc>
12135 </attribute>
12136
12137 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
12138 <desc>
12139 Child snapshots (all snapshots having this one as a parent).
12140 By inspecting this attribute starting with a machine's root snapshot
12141 (which can be obtained by calling <link to="IMachine::findSnapshot" />
12142 with a @c null UUID), a machine's snapshots tree can be iterated over.
12143 </desc>
12144 </attribute>
12145
12146 <method name="getChildrenCount" const="yes">
12147 <desc>
12148 Returns the number of direct childrens of this snapshot.
12149 </desc>
12150 <param name="childrenCount" type="unsigned long" dir="return">
12151 <desc>
12152 </desc>
12153 </param>
12154 </method>
12155
12156 </interface>
12157
12158
12159 <!--
12160 // IMedium
12161 /////////////////////////////////////////////////////////////////////////
12162 -->
12163
12164 <enum
12165 name="MediumState"
12166 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
12167 >
12168 <desc>
12169 Virtual medium state.
12170 <see><link to="IMedium"/></see>
12171 </desc>
12172
12173 <const name="NotCreated" value="0">
12174 <desc>
12175 Associated medium storage does not exist (either was not created yet or
12176 was deleted).
12177 </desc>
12178 </const>
12179 <const name="Created" value="1">
12180 <desc>
12181 Associated storage exists and accessible; this gets set if the
12182 accessibility check performed by <link to="IMedium::refreshState" />
12183 was successful.
12184 </desc>
12185 </const>
12186 <const name="LockedRead" value="2">
12187 <desc>
12188 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
12189 no data modification is possible.
12190 </desc>
12191 </const>
12192 <const name="LockedWrite" value="3">
12193 <desc>
12194 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
12195 no concurrent data reading or modification is possible.
12196 </desc>
12197 </const>
12198 <const name="Inaccessible" value="4">
12199 <desc>
12200 Medium accessibility check (see <link to="IMedium::refreshState" />) has
12201 not yet been performed, or else, associated medium storage is not
12202 accessible. In the first case, <link to="IMedium::lastAccessError"/>
12203 is empty, in the second case, it describes the error that occurred.
12204 </desc>
12205 </const>
12206 <const name="Creating" value="5">
12207 <desc>
12208 Associated medium storage is being created.
12209 </desc>
12210 </const>
12211 <const name="Deleting" value="6">
12212 <desc>
12213 Associated medium storage is being deleted.
12214 </desc>
12215 </const>
12216 </enum>
12217
12218 <enum
12219 name="MediumType"
12220 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
12221 >
12222 <desc>
12223 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
12224 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
12225 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
12226 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
12227 </desc>
12228
12229 <const name="Normal" value="0">
12230 <desc>
12231 Normal medium (attached directly or indirectly, preserved
12232 when taking snapshots).
12233 </desc>
12234 </const>
12235 <const name="Immutable" value="1">
12236 <desc>
12237 Immutable medium (attached indirectly, changes are wiped out
12238 the next time the virtual machine is started).
12239 </desc>
12240 </const>
12241 <const name="Writethrough" value="2">
12242 <desc>
12243 Write through medium (attached directly, ignored when
12244 taking snapshots).
12245 </desc>
12246 </const>
12247 <const name="Shareable" value="3">
12248 <desc>
12249 Allow using this medium concurrently by several machines.
12250 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
12251 </desc>
12252 </const>
12253 <const name="Readonly" value="4">
12254 <desc>
12255 A readonly medium, which can of course be used by several machines.
12256 <note>Present and accepted since VirtualBox 4.0.</note>
12257 </desc>
12258 </const>
12259 <const name="MultiAttach" value="5">
12260 <desc>
12261 A medium which is indirectly attached, so that one base medium can
12262 be used for several VMs which have their own differencing medium to
12263 store their modifications. In some sense a variant of Immutable
12264 with unset AutoReset flag in each differencing medium.
12265 <note>Present and accepted since VirtualBox 4.0.</note>
12266 </desc>
12267 </const>
12268 </enum>
12269
12270 <enum
12271 name="MediumVariant"
12272 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
12273 >
12274 <desc>
12275 Virtual medium image variant. More than one flag may be set.
12276 <see><link to="IMedium"/></see>
12277 </desc>
12278
12279 <const name="Standard" value="0">
12280 <desc>
12281 No particular variant requested, results in using the backend default.
12282 </desc>
12283 </const>
12284 <const name="VmdkSplit2G" value="0x01">
12285 <desc>
12286 VMDK image split in chunks of less than 2GByte.
12287 </desc>
12288 </const>
12289 <const name="VmdkRawDisk" value="0x02">
12290 <desc>
12291 VMDK image representing a raw disk.
12292 </desc>
12293 </const>
12294 <const name="VmdkStreamOptimized" value="0x04">
12295 <desc>
12296 VMDK streamOptimized image. Special import/export format which is
12297 read-only/append-only.
12298 </desc>
12299 </const>
12300 <const name="VmdkESX" value="0x08">
12301 <desc>
12302 VMDK format variant used on ESX products.
12303 </desc>
12304 </const>
12305 <const name="Fixed" value="0x10000">
12306 <desc>
12307 Fixed image. Only allowed for base images.
12308 </desc>
12309 </const>
12310 <const name="Diff" value="0x20000">
12311 <desc>
12312 Differencing image. Only allowed for child images.
12313 </desc>
12314 </const>
12315 <const name="NoCreateDir" value="0x40000000">
12316 <desc>
12317 Special flag which suppresses automatic creation of the subdirectory.
12318 Only used when passing the medium variant as an input parameter.
12319 </desc>
12320 </const>
12321 </enum>
12322
12323 <interface
12324 name="IMediumAttachment" extends="$unknown"
12325 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
12326 wsmap="struct"
12327 >
12328 <desc>
12329 The IMediumAttachment interface links storage media to virtual machines.
12330 For each medium (<link to="IMedium"/>) which has been attached to a
12331 storage controller (<link to="IStorageController"/>) of a machine
12332 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
12333 method, one instance of IMediumAttachment is added to the machine's
12334 <link to="IMachine::mediumAttachments"/> array attribute.
12335
12336 Each medium attachment specifies the storage controller as well as a
12337 port and device number and the IMedium instance representing a virtual
12338 hard disk or floppy or DVD image.
12339
12340 For removable media (DVDs or floppies), there are two additional
12341 options. For one, the IMedium instance can be @c null to represent
12342 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
12343 secondly, the medium can be one of the pseudo-media for host drives
12344 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
12345
12346 <h3>Attaching Hard Disks</h3>
12347
12348 Hard disks are attached to virtual machines using the
12349 <link to="IMachine::attachDevice"/> method and detached using the
12350 <link to="IMachine::detachDevice"/> method. Depending on a medium's
12351 type (see <link to="IMedium::type" />), hard disks are attached either
12352 <i>directly</i> or <i>indirectly</i>.
12353
12354 When a hard disk is being attached directly, it is associated with the
12355 virtual machine and used for hard disk operations when the machine is
12356 running. When a hard disk is being attached indirectly, a new differencing
12357 hard disk linked to it is implicitly created and this differencing hard
12358 disk is associated with the machine and used for hard disk operations.
12359 This also means that if <link to="IMachine::attachDevice"/> performs
12360 a direct attachment then the same hard disk will be returned in response
12361 to the subsequent <link to="IMachine::getMedium"/> call; however if
12362 an indirect attachment is performed then
12363 <link to="IMachine::getMedium"/> will return the implicitly created
12364 differencing hard disk, not the original one passed to <link
12365 to="IMachine::attachDevice"/>. In detail:
12366
12367 <ul>
12368 <li><b>Normal base</b> hard disks that do not have children (i.e.
12369 differencing hard disks linked to them) and that are not already
12370 attached to virtual machines in snapshots are attached <b>directly</b>.
12371 Otherwise, they are attached <b>indirectly</b> because having
12372 dependent children or being part of the snapshot makes it impossible
12373 to modify hard disk contents without breaking the integrity of the
12374 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
12375 quickly determine the kind of the attachment for the given hard
12376 disk. Note that if a normal base hard disk is to be indirectly
12377 attached to a virtual machine with snapshots then a special
12378 procedure called <i>smart attachment</i> is performed (see below).</li>
12379 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
12380 they are attached <b>directly</b> if they do not have children and are
12381 not attached to virtual machines in snapshots, and <b>indirectly</b>
12382 otherwise. Note that the smart attachment procedure is never performed
12383 for differencing hard disks.</li>
12384 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
12385 they are designed to be non-writable. If an immutable hard disk is
12386 attached to a virtual machine with snapshots then a special
12387 procedure called smart attachment is performed (see below).</li>
12388 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
12389 also as designed. This also means that writethrough hard disks cannot
12390 have other hard disks linked to them at all.</li>
12391 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
12392 also as designed. This also means that shareable hard disks cannot
12393 have other hard disks linked to them at all. They behave almost
12394 like writethrough hard disks, except that shareable hard disks can
12395 be attached to several virtual machines which are running, allowing
12396 concurrent accesses. You need special cluster software running in
12397 the virtual machines to make use of such disks.</li>
12398 </ul>
12399
12400 Note that the same hard disk, regardless of its type, may be attached to
12401 more than one virtual machine at a time. In this case, the machine that is
12402 started first gains exclusive access to the hard disk and attempts to
12403 start other machines having this hard disk attached will fail until the
12404 first machine is powered down.
12405
12406 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
12407 that the given hard disk remains associated with the given machine after a
12408 successful <link to="IMachine::detachDevice"/> call until
12409 <link to="IMachine::saveSettings"/> is called to save all changes to
12410 machine settings to disk. This deferring is necessary to guarantee that
12411 the hard disk configuration may be restored at any time by a call to
12412 <link to="IMachine::discardSettings"/> before the settings
12413 are saved (committed).
12414
12415 Note that if <link to="IMachine::discardSettings"/> is called after
12416 indirectly attaching some hard disks to the machine but before a call to
12417 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
12418 all differencing hard disks implicitly created by
12419 <link to="IMachine::attachDevice"/> for these indirect attachments.
12420 Such implicitly created hard disks will also be immediately deleted when
12421 detached explicitly using the <link to="IMachine::detachDevice"/>
12422 call if it is made before <link to="IMachine::saveSettings"/>. This
12423 implicit deletion is safe because newly created differencing hard
12424 disks do not contain any user data.
12425
12426 However, keep in mind that detaching differencing hard disks that were
12427 implicitly created by <link to="IMachine::attachDevice"/>
12428 before the last <link to="IMachine::saveSettings"/> call will
12429 <b>not</b> implicitly delete them as they may already contain some data
12430 (for example, as a result of virtual machine execution). If these hard
12431 disks are no more necessary, the caller can always delete them explicitly
12432 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
12433 from this machine by the <link to="IMachine::saveSettings"/> call.
12434
12435 <h3>Smart Attachment</h3>
12436
12437 When normal base or immutable hard disks are indirectly attached to a
12438 virtual machine then some additional steps are performed to make sure the
12439 virtual machine will have the most recent "view" of the hard disk being
12440 attached. These steps include walking through the machine's snapshots
12441 starting from the current one and going through ancestors up to the first
12442 snapshot. Hard disks attached to the virtual machine in all
12443 of the encountered snapshots are checked whether they are descendants of
12444 the given normal base or immutable hard disk. The first found child (which
12445 is the differencing hard disk) will be used instead of the normal base or
12446 immutable hard disk as a parent for creating a new differencing hard disk
12447 that will be actually attached to the machine. And only if no descendants
12448 are found or if the virtual machine does not have any snapshots then the
12449 normal base or immutable hard disk will be used itself as a parent for
12450 this differencing hard disk.
12451
12452 It is easier to explain what smart attachment does using the
12453 following example:
12454 <pre>
12455BEFORE attaching B.vdi: AFTER attaching B.vdi:
12456
12457Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
12458 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
12459 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
12460 Snapshot 4 (none) Snapshot 4 (none)
12461 CurState (none) CurState (D3->D2.vdi)
12462
12463 NOT
12464 ...
12465 CurState (D3->B.vdi)
12466 </pre>
12467 The first column is the virtual machine configuration before the base hard
12468 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
12469 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
12470 mean that the hard disk that is actually attached to the machine is a
12471 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
12472 another hard disk, <tt>B.vdi</tt>.
12473
12474 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
12475 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
12476 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
12477 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
12478 it cannot be attached directly and needs an indirect attachment (i.e.
12479 implicit creation of a new differencing hard disk). Due to the smart
12480 attachment procedure, the new differencing hard disk
12481 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
12482 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
12483 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
12484 machine.
12485
12486 Note that if there is more than one descendant hard disk of the given base
12487 hard disk found in a snapshot, and there is an exact device, channel and
12488 bus match, then this exact match will be used. Otherwise, the youngest
12489 descendant will be picked up.
12490
12491 There is one more important aspect of the smart attachment procedure which
12492 is not related to snapshots at all. Before walking through the snapshots
12493 as described above, the backup copy of the current list of hard disk
12494 attachment is searched for descendants. This backup copy is created when
12495 the hard disk configuration is changed for the first time after the last
12496 <link to="IMachine::saveSettings"/> call and used by
12497 <link to="IMachine::discardSettings"/> to undo the recent hard disk
12498 changes. When such a descendant is found in this backup copy, it will be
12499 simply re-attached back, without creating a new differencing hard disk for
12500 it. This optimization is necessary to make it possible to re-attach the
12501 base or immutable hard disk to a different bus, channel or device slot
12502 without losing the contents of the differencing hard disk actually
12503 attached to the machine in place of it.
12504
12505 </desc>
12506
12507 <attribute name="medium" type="IMedium" readonly="yes">
12508 <desc>Medium object associated with this attachment; it
12509 can be @c null for removable devices.</desc>
12510 </attribute>
12511
12512 <attribute name="controller" type="wstring" readonly="yes">
12513 <desc>Name of the storage controller of this attachment; this
12514 refers to one of the controllers in <link to="IMachine::storageControllers" />
12515 by name.</desc>
12516 </attribute>
12517
12518 <attribute name="port" type="long" readonly="yes">
12519 <desc>Port number of this attachment.
12520 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12521 </desc>
12522 </attribute>
12523
12524 <attribute name="device" type="long" readonly="yes">
12525 <desc>Device slot number of this attachment.
12526 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12527 </desc>
12528 </attribute>
12529
12530 <attribute name="type" type="DeviceType" readonly="yes">
12531 <desc>Device type of this attachment.</desc>
12532 </attribute>
12533
12534 <attribute name="passthrough" type="boolean" readonly="yes">
12535 <desc>Pass I/O requests through to a device on the host.</desc>
12536 </attribute>
12537
12538 <attribute name="temporaryEject" type="boolean" readonly="yes">
12539 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12540 </attribute>
12541
12542 <attribute name="isEjected" type="boolean" readonly="yes">
12543 <desc>Signals that the removable medium has been ejected. This is not
12544 necessarily equivalent to having a @c null medium association.</desc>
12545 </attribute>
12546
12547 <attribute name="nonRotational" type="boolean" readonly="yes">
12548 <desc>Whether the associated medium is non-rotational.</desc>
12549 </attribute>
12550
12551 <attribute name="discard" type="boolean" readonly="yes">
12552 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12553 </attribute>
12554
12555 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12556 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12557 </attribute>
12558
12559 </interface>
12560
12561 <interface
12562 name="IMedium" extends="$unknown"
12563 uuid="29989373-b111-4654-8493-2e1176cba890"
12564 wsmap="managed"
12565 >
12566 <desc>
12567 The IMedium interface represents virtual storage for a machine's
12568 hard disks, CD/DVD or floppy drives. It will typically represent
12569 a disk image on the host, for example a VDI or VMDK file representing
12570 a virtual hard disk, or an ISO or RAW file representing virtual
12571 removable media, but can also point to a network location (e.g.
12572 for iSCSI targets).
12573
12574 Instances of IMedium are connected to virtual machines by way of medium
12575 attachments, which link the storage medium to a particular device slot
12576 of a storage controller of the virtual machine.
12577 In the VirtualBox API, virtual storage is therefore always represented
12578 by the following chain of object links:
12579
12580 <ul>
12581 <li><link to="IMachine::storageControllers"/> contains an array of
12582 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12583 these are instances of <link to="IStorageController"/>).</li>
12584 <li><link to="IMachine::mediumAttachments"/> contains an array of
12585 medium attachments (instances of <link to="IMediumAttachment"/>
12586 created by <link to="IMachine::attachDevice" />),
12587 each containing a storage controller from the above array, a
12588 port/device specification, and an instance of IMedium representing
12589 the medium storage (image file).
12590
12591 For removable media, the storage medium is optional; a medium
12592 attachment with no medium represents a CD/DVD or floppy drive
12593 with no medium inserted. By contrast, hard disk attachments
12594 will always have an IMedium object attached.</li>
12595 <li>Each IMedium in turn points to a storage unit (such as a file
12596 on the host computer or a network resource) that holds actual
12597 data. This location is represented by the <link to="#location"/>
12598 attribute.</li>
12599 </ul>
12600
12601 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12602 new hard disk media can be created with the VirtualBox API using the
12603 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12604 disks (see below) are usually implicitly created by VirtualBox as
12605 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12606 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12607 should be created with external tools and then opened from within VirtualBox.
12608
12609 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12610 drive. In that case the <link to="#id" /> attribute contains the UUID of
12611 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12612
12613 <h3>Media registries</h3>
12614
12615 When a medium has been opened or created using one of the aforementioned
12616 APIs, it becomes "known" to VirtualBox. Known media can be attached
12617 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12618 They also appear in the global
12619 <link to="IVirtualBox::hardDisks" />,
12620 <link to="IVirtualBox::DVDImages" /> and
12621 <link to="IVirtualBox::floppyImages" /> arrays.
12622
12623 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12624 in the VirtualBox.xml file, which was shared between all machines and made
12625 transporting machines and their media from one host to another difficult.
12626
12627 Starting with VirtualBox 4.0, media are only added to a registry when they are
12628 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12629 backwards compatibility, which registry a medium is added to depends on which
12630 VirtualBox version created a machine:
12631
12632 <ul>
12633 <li>If the medium has first been attached to a machine which was created by
12634 VirtualBox 4.0 or later, it is added to that machine's media registry in
12635 the machine XML settings file. This way all information about a machine's
12636 media attachments is contained in a single file and can be transported
12637 easily.</li>
12638 <li>For older media attachments (i.e. if the medium was first attached to a
12639 machine which was created with a VirtualBox version before 4.0), media
12640 continue to be registered in the global VirtualBox settings file, for
12641 backwards compatibility.</li>
12642 </ul>
12643
12644 See <link to="IVirtualBox::openMedium" /> for more information.
12645
12646 Media are removed from media registries by the <link to="IMedium::close"/>,
12647 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12648
12649 <h3>Accessibility checks</h3>
12650
12651 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12652 method is called explicitly on a medium. This is done to make the VirtualBox object
12653 ready for serving requests as fast as possible and let the end-user
12654 application decide if it needs to check media accessibility right away or not.
12655
12656 As a result, when VirtualBox starts up (e.g. the VirtualBox
12657 object gets created for the first time), all known media are in the
12658 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12659 attribute is an empty string because no actual accessibility check has
12660 been made yet.
12661
12662 After calling <link to="#refreshState" />, a medium is considered
12663 <i>accessible</i> if its storage unit can be read. In that case, the
12664 <link to="#state"/> attribute has a value of "Created". If the storage
12665 unit cannot be read (for example, because it is located on a disconnected
12666 network resource, or was accidentally deleted outside VirtualBox),
12667 the medium is considered <i>inaccessible</i>, which is indicated by the
12668 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12669 obtained by reading the <link to="#lastAccessError"/> attribute.
12670
12671 <h3>Medium types</h3>
12672
12673 There are five types of medium behavior which are stored in the
12674 <link to="#type"/> attribute (see <link to="MediumType" />) and
12675 which define the medium's behavior with attachments and snapshots.
12676
12677 All media can be also divided in two groups: <i>base</i> media and
12678 <i>differencing</i> media. A base medium contains all sectors of the
12679 medium data in its own storage and therefore can be used independently.
12680 In contrast, a differencing medium is a "delta" to some other medium and
12681 contains only those sectors which differ from that other medium, which is
12682 then called a <i>parent</i>. The differencing medium is said to be
12683 <i>linked to</i> that parent. The parent may be itself a differencing
12684 medium, thus forming a chain of linked media. The last element in that
12685 chain must always be a base medium. Note that several differencing
12686 media may be linked to the same parent medium.
12687
12688 Differencing media can be distinguished from base media by querying the
12689 <link to="#parent"/> attribute: base media do not have parents they would
12690 depend on, so the value of this attribute is always @c null for them.
12691 Using this attribute, it is possible to walk up the medium tree (from the
12692 child medium to its parent). It is also possible to walk down the tree
12693 using the <link to="#children"/> attribute.
12694
12695 Note that the type of all differencing media is "normal"; all other
12696 values are meaningless for them. Base media may be of any type.
12697
12698 <h3>Automatic composition of the file name part</h3>
12699
12700 Another extension to the <link to="IMedium::location"/> attribute is that
12701 there is a possibility to cause VirtualBox to compose a unique value for
12702 the file name part of the location using the UUID of the hard disk. This
12703 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12704 e.g. before the storage unit is created, and works as follows. You set the
12705 value of the <link to="IMedium::location"/> attribute to a location
12706 specification which only contains the path specification but not the file
12707 name part and ends with either a forward slash or a backslash character.
12708 In response, VirtualBox will generate a new UUID for the hard disk and
12709 compose the file name using the following pattern:
12710 <pre>
12711 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12712 </pre>
12713 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12714 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12715 is the default extension for the storage format of this hard disk. After
12716 that, you may call any of the methods that create a new hard disk storage
12717 unit and they will use the generated UUID and file name.
12718 </desc>
12719
12720 <attribute name="id" type="uuid" mod="string" readonly="yes">
12721 <desc>
12722 UUID of the medium. For a newly created medium, this value is a randomly
12723 generated UUID.
12724
12725 <note>
12726 For media in one of MediumState_NotCreated, MediumState_Creating or
12727 MediumState_Deleting states, the value of this property is undefined
12728 and will most likely be an empty UUID.
12729 </note>
12730 </desc>
12731 </attribute>
12732
12733 <attribute name="description" type="wstring">
12734 <desc>
12735 Optional description of the medium. For a newly created medium the value
12736 of this attribute is an empty string.
12737
12738 Medium types that don't support this attribute will return E_NOTIMPL in
12739 attempt to get or set this attribute's value.
12740
12741 <note>
12742 For some storage types, reading this attribute may return an outdated
12743 (last known) value when <link to="#state"/> is <link
12744 to="MediumState_Inaccessible"/> or <link
12745 to="MediumState_LockedWrite"/> because the value of this attribute is
12746 stored within the storage unit itself. Also note that changing the
12747 attribute value is not possible in such case, as well as when the
12748 medium is the <link to="MediumState_LockedRead"/> state.
12749 </note>
12750 </desc>
12751 </attribute>
12752
12753 <attribute name="state" type="MediumState" readonly="yes">
12754 <desc>
12755 Returns the current medium state, which is the last state set by
12756 the accessibility check performed by <link to="#refreshState"/>.
12757 If that method has not yet been called on the medium, the state
12758 is "Inaccessible"; as opposed to truly inaccessible media, the
12759 value of <link to="#lastAccessError"/> will be an empty string in
12760 that case.
12761
12762 <note>As of version 3.1, this no longer performs an accessibility check
12763 automatically; call <link to="#refreshState"/> for that.
12764 </note>
12765 </desc>
12766 </attribute>
12767
12768 <attribute name="variant" type="unsigned long" readonly="yes">
12769 <desc>
12770 Returns the storage format variant information for this medium
12771 as a combination of the flags described at <link to="MediumVariant" />.
12772 Before <link to="#refreshState"/> is called this method returns
12773 an undefined value.
12774 </desc>
12775 </attribute>
12776
12777 <attribute name="location" type="wstring">
12778 <desc>
12779 Location of the storage unit holding medium data.
12780
12781 The format of the location string is medium type specific. For medium
12782 types using regular files in a host's file system, the location
12783 string is the full file name.
12784
12785 Some medium types may support changing the storage unit location by
12786 simply changing the value of this property. If this operation is not
12787 supported, the implementation will return E_NOTIMPL in attempt to set
12788 this attribute's value.
12789
12790 When setting a value of the location attribute which is a regular file
12791 in the host's file system, the given file name may be either relative to
12792 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12793 absolute. Note that if the given location specification does not contain
12794 the file extension part then a proper default extension will be
12795 automatically appended by the implementation depending on the medium type.
12796 </desc>
12797 </attribute>
12798
12799 <attribute name="name" type="wstring" readonly="yes">
12800 <desc>
12801 Name of the storage unit holding medium data.
12802
12803 The returned string is a short version of the <link to="#location"/>
12804 attribute that is suitable for representing the medium in situations
12805 where the full location specification is too long (such as lists
12806 and comboboxes in GUI frontends). This string is also used by frontends
12807 to sort the media list alphabetically when needed.
12808
12809 For example, for locations that are regular files in the host's file
12810 system, the value of this attribute is just the file name (+ extension),
12811 without the path specification.
12812
12813 Note that as opposed to the <link to="#location"/> attribute, the name
12814 attribute will not necessary be unique for a list of media of the
12815 given type and format.
12816 </desc>
12817 </attribute>
12818
12819 <attribute name="deviceType" type="DeviceType" readonly="yes">
12820 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12821 medium.</desc>
12822 </attribute>
12823
12824 <attribute name="hostDrive" type="boolean" readonly="yes">
12825 <desc>True if this corresponds to a drive on the host.</desc>
12826 </attribute>
12827
12828 <attribute name="size" type="long long" readonly="yes">
12829 <desc>
12830 Physical size of the storage unit used to hold medium data (in bytes).
12831
12832 <note>
12833 For media whose <link to="#state"/> is <link
12834 to="MediumState_Inaccessible"/>, the value of this property is the
12835 last known size. For <link to="MediumState_NotCreated"/> media,
12836 the returned value is zero.
12837 </note>
12838 </desc>
12839 </attribute>
12840
12841 <attribute name="format" type="wstring" readonly="yes">
12842 <desc>
12843 Storage format of this medium.
12844
12845 The value of this attribute is a string that specifies a backend used
12846 to store medium data. The storage format is defined when you create a
12847 new medium or automatically detected when you open an existing medium,
12848 and cannot be changed later.
12849
12850 The list of all storage formats supported by this VirtualBox
12851 installation can be obtained using
12852 <link to="ISystemProperties::mediumFormats"/>.
12853 </desc>
12854 </attribute>
12855
12856 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12857 <desc>
12858 Storage medium format object corresponding to this medium.
12859
12860 The value of this attribute is a reference to the medium format object
12861 that specifies the backend properties used to store medium data. The
12862 storage format is defined when you create a new medium or automatically
12863 detected when you open an existing medium, and cannot be changed later.
12864
12865 <note>@c null is returned if there is no associated medium format
12866 object. This can e.g. happen for medium objects representing host
12867 drives and other special medium objects.</note>
12868 </desc>
12869 </attribute>
12870
12871 <attribute name="type" type="MediumType">
12872 <desc>
12873 Type (role) of this medium.
12874
12875 The following constraints apply when changing the value of this
12876 attribute:
12877 <ul>
12878 <li>If a medium is attached to a virtual machine (either in the
12879 current state or in one of the snapshots), its type cannot be
12880 changed.
12881 </li>
12882 <li>As long as the medium has children, its type cannot be set
12883 to <link to="MediumType_Writethrough"/>.
12884 </li>
12885 <li>The type of all differencing media is
12886 <link to="MediumType_Normal"/> and cannot be changed.
12887 </li>
12888 </ul>
12889
12890 The type of a newly created or opened medium is set to
12891 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12892 which have a type of <link to="MediumType_Writethrough"/>.
12893 </desc>
12894 </attribute>
12895
12896 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12897 <desc>
12898 Returns which medium types can selected for this medium.
12899
12900 <result name="E_NOTIMPL">
12901 This attribute is not implemented at the moment.
12902 </result>
12903 </desc>
12904 </attribute>
12905
12906 <attribute name="parent" type="IMedium" readonly="yes">
12907 <desc>
12908 Parent of this medium (the medium this medium is directly based
12909 on).
12910
12911 Only differencing media have parents. For base (non-differencing)
12912 media, @c null is returned.
12913 </desc>
12914 </attribute>
12915
12916 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12917 <desc>
12918 Children of this medium (all differencing media directly based
12919 on this medium). A @c null array is returned if this medium
12920 does not have any children.
12921 </desc>
12922 </attribute>
12923
12924 <attribute name="base" type="IMedium" readonly="yes">
12925 <desc>
12926 Base medium of this medium.
12927
12928 If this is a differencing medium, its base medium is the medium
12929 the given medium branch starts from. For all other types of media, this
12930 property returns the medium object itself (i.e. the same object this
12931 property is read on).
12932 </desc>
12933 </attribute>
12934
12935 <attribute name="readOnly" type="boolean" readonly="yes">
12936 <desc>
12937 Returns @c true if this medium is read-only and @c false otherwise.
12938
12939 A medium is considered to be read-only when its contents cannot be
12940 modified without breaking the integrity of other parties that depend on
12941 this medium such as its child media or snapshots of virtual machines
12942 where this medium is attached to these machines. If there are no
12943 children and no such snapshots then there is no dependency and the
12944 medium is not read-only.
12945
12946 The value of this attribute can be used to determine the kind of the
12947 attachment that will take place when attaching this medium to a
12948 virtual machine. If the value is @c false then the medium will
12949 be attached directly. If the value is @c true then the medium
12950 will be attached indirectly by creating a new differencing child
12951 medium for that. See the interface description for more information.
12952
12953 Note that all <link to="MediumType_Immutable">Immutable</link> media
12954 are always read-only while all
12955 <link to="MediumType_Writethrough">Writethrough</link> media are
12956 always not.
12957
12958 <note>
12959 The read-only condition represented by this attribute is related to
12960 the medium type and usage, not to the current
12961 <link to="IMedium::state">medium state</link> and not to the read-only
12962 state of the storage unit.
12963 </note>
12964 </desc>
12965 </attribute>
12966
12967 <attribute name="logicalSize" type="long long" readonly="yes">
12968 <desc>
12969 Logical size of this medium (in bytes), as reported to the
12970 guest OS running inside the virtual machine this medium is
12971 attached to. The logical size is defined when the medium is created
12972 and cannot be changed later.
12973
12974 <note>
12975 Reading this property on a differencing medium will return the size
12976 of its <link to="#base"/> medium.
12977 </note>
12978 <note>
12979 For media whose state is <link to="#state"/> is <link
12980 to="MediumState_Inaccessible"/>, the value of this property is the
12981 last known logical size. For <link to="MediumState_NotCreated"/>
12982 media, the returned value is zero.
12983 </note>
12984 </desc>
12985 </attribute>
12986
12987 <attribute name="autoReset" type="boolean">
12988 <desc>
12989 Whether this differencing medium will be automatically reset each
12990 time a virtual machine it is attached to is powered up. This
12991 attribute is automatically set to @c true for the last
12992 differencing image of an "immutable" medium (see
12993 <link to="MediumType" />).
12994
12995 See <link to="#reset"/> for more information about resetting
12996 differencing media.
12997
12998 <note>
12999 Reading this property on a base (non-differencing) medium will
13000 always @c false. Changing the value of this property in this
13001 case is not supported.
13002 </note>
13003
13004 <result name="VBOX_E_NOT_SUPPORTED">
13005 This is not a differencing medium (when changing the attribute
13006 value).
13007 </result>
13008 </desc>
13009 </attribute>
13010
13011 <attribute name="lastAccessError" type="wstring" readonly="yes">
13012 <desc>
13013 Text message that represents the result of the last accessibility
13014 check performed by <link to="#refreshState"/>.
13015
13016 An empty string is returned if the last accessibility check
13017 was successful or has not yet been called. As a result, if
13018 <link to="#state" /> is "Inaccessible" and this attribute is empty,
13019 then <link to="#refreshState"/> has yet to be called; this is the
13020 default value of media after VirtualBox initialization.
13021 A non-empty string indicates a failure and should normally describe
13022 a reason of the failure (for example, a file read error).
13023 </desc>
13024 </attribute>
13025
13026 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
13027 <desc>
13028 Array of UUIDs of all machines this medium is attached to.
13029
13030 A @c null array is returned if this medium is not attached to any
13031 machine or to any machine's snapshot.
13032
13033 <note>
13034 The returned array will include a machine even if this medium is not
13035 attached to that machine in the current state but attached to it in
13036 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
13037 details.
13038 </note>
13039 </desc>
13040 </attribute>
13041
13042 <method name="setIds">
13043 <desc>
13044 Changes the UUID and parent UUID for a hard disk medium.
13045 </desc>
13046 <param name="setImageId" type="boolean" dir="in">
13047 <desc>
13048 Select whether a new image UUID is set or not.
13049 </desc>
13050 </param>
13051 <param name="imageId" type="uuid" mod="string" dir="in">
13052 <desc>
13053 New UUID for the image. If an empty string is passed, then a new
13054 UUID is automatically created, provided that @a setImageId is @c true.
13055 Specifying a zero UUID is not allowed.
13056 </desc>
13057 </param>
13058 <param name="setParentId" type="boolean" dir="in">
13059 <desc>
13060 Select whether a new parent UUID is set or not.
13061 </desc>
13062 </param>
13063 <param name="parentId" type="uuid" mod="string" dir="in">
13064 <desc>
13065 New parent UUID for the image. If an empty string is passed, then a
13066 new UUID is automatically created, provided @a setParentId is
13067 @c true. A zero UUID is valid.
13068 </desc>
13069 </param>
13070 <result name="E_INVALIDARG">
13071 Invalid parameter combination.
13072 </result>
13073 <result name="VBOX_E_NOT_SUPPORTED">
13074 Medium is not a hard disk medium.
13075 </result>
13076 </method>
13077
13078 <method name="refreshState">
13079 <desc>
13080 If the current medium state (see <link to="MediumState"/>) is one of
13081 "Created", "Inaccessible" or "LockedRead", then this performs an
13082 accessibility check on the medium and sets the value of the <link to="#state"/>
13083 attribute accordingly; that value is also returned for convenience.
13084
13085 For all other state values, this does not perform a refresh but returns
13086 the state only.
13087
13088 The refresh, if performed, may take a long time (several seconds or even
13089 minutes, depending on the storage unit location and format) because it performs an
13090 accessibility check of the storage unit. This check may cause a significant
13091 delay if the storage unit of the given medium is, for example, a file located
13092 on a network share which is not currently accessible due to connectivity
13093 problems. In that case, the call will not return until a timeout
13094 interval defined by the host OS for this operation expires. For this reason,
13095 it is recommended to never read this attribute on the main UI thread to avoid
13096 making the UI unresponsive.
13097
13098 If the last known state of the medium is "Created" and the accessibility
13099 check fails, then the state would be set to "Inaccessible", and
13100 <link to="#lastAccessError"/> may be used to get more details about the
13101 failure. If the state of the medium is "LockedRead", then it remains the
13102 same, and a non-empty value of <link to="#lastAccessError"/> will
13103 indicate a failed accessibility check in this case.
13104
13105 Note that not all medium states are applicable to all medium types.
13106 </desc>
13107 <param name="state" type="MediumState" dir="return">
13108 <desc>
13109 New medium state.
13110 </desc>
13111 </param>
13112 </method>
13113
13114 <method name="getSnapshotIds">
13115 <desc>
13116 Returns an array of UUIDs of all snapshots of the given machine where
13117 this medium is attached to.
13118
13119 If the medium is attached to the machine in the current state, then the
13120 first element in the array will always be the ID of the queried machine
13121 (i.e. the value equal to the @c machineId argument), followed by
13122 snapshot IDs (if any).
13123
13124 If the medium is not attached to the machine in the current state, then
13125 the array will contain only snapshot IDs.
13126
13127 The returned array may be @c null if this medium is not attached
13128 to the given machine at all, neither in the current state nor in one of
13129 the snapshots.
13130 </desc>
13131 <param name="machineId" type="uuid" mod="string" dir="in">
13132 <desc>
13133 UUID of the machine to query.
13134 </desc>
13135 </param>
13136 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
13137 <desc>
13138 Array of snapshot UUIDs of the given machine using this medium.
13139 </desc>
13140 </param>
13141 </method>
13142
13143 <method name="lockRead">
13144 <desc>
13145 Locks this medium for reading.
13146
13147 A read lock is shared: many clients can simultaneously lock the
13148 same medium for reading unless it is already locked for writing (see
13149 <link to="#lockWrite"/>) in which case an error is returned.
13150
13151 When the medium is locked for reading, it cannot be modified
13152 from within VirtualBox. This means that any method that changes
13153 the properties of this medium or contents of the storage unit
13154 will return an error (unless explicitly stated otherwise). That
13155 includes an attempt to start a virtual machine that wants to
13156 write to the the medium.
13157
13158 When the virtual machine is started up, it locks for reading all
13159 media it uses in read-only mode. If some medium cannot be locked
13160 for reading, the startup procedure will fail.
13161 A medium is typically locked for reading while it is used by a running
13162 virtual machine but has a depending differencing image that receives
13163 the actual write operations. This way one base medium can have
13164 multiple child differencing images which can be written to
13165 simultaneously. Read-only media such as DVD and floppy images are
13166 also locked for reading only (so they can be in use by multiple
13167 machines simultaneously).
13168
13169 A medium is also locked for reading when it is the source of a
13170 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13171
13172 The medium locked for reading must be unlocked using the <link
13173 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
13174 can be nested and must be followed by the same number of paired
13175 <link to="#unlockRead"/> calls.
13176
13177 This method sets the medium state (see <link to="#state"/>) to
13178 "LockedRead" on success. The medium's previous state must be
13179 one of "Created", "Inaccessible" or "LockedRead".
13180
13181 Locking an inaccessible medium is not an error; this method performs
13182 a logical lock that prevents modifications of this medium through
13183 the VirtualBox API, not a physical file-system lock of the underlying
13184 storage unit.
13185
13186 This method returns the current state of the medium
13187 <i>before</i> the operation.
13188
13189 <result name="VBOX_E_INVALID_OBJECT_STATE">
13190 Invalid medium state (e.g. not created, locked, inaccessible,
13191 creating, deleting).
13192 </result>
13193
13194 </desc>
13195 <param name="state" type="MediumState" dir="return">
13196 <desc>
13197 State of the medium after the operation.
13198 </desc>
13199 </param>
13200 </method>
13201
13202 <method name="unlockRead">
13203 <desc>
13204 Cancels the read lock previously set by <link to="#lockRead"/>.
13205
13206 For both success and failure, this method returns the current state
13207 of the medium <i>after</i> the operation.
13208
13209 See <link to="#lockRead"/> for more details.
13210
13211 <result name="VBOX_E_INVALID_OBJECT_STATE">
13212 Medium not locked for reading.
13213 </result>
13214
13215 </desc>
13216 <param name="state" type="MediumState" dir="return">
13217 <desc>
13218 State of the medium after the operation.
13219 </desc>
13220 </param>
13221 </method>
13222
13223 <method name="lockWrite">
13224 <desc>
13225 Locks this medium for writing.
13226
13227 A write lock, as opposed to <link to="#lockRead"/>, is
13228 exclusive: there may be only one client holding a write lock,
13229 and there may be no read locks while the write lock is held.
13230 As a result, read-locking fails if a write lock is held, and
13231 write-locking fails if either a read or another write lock is held.
13232
13233 When a medium is locked for writing, it cannot be modified
13234 from within VirtualBox, and it is not guaranteed that the values
13235 of its properties are up-to-date. Any method that changes the
13236 properties of this medium or contents of the storage unit will
13237 return an error (unless explicitly stated otherwise).
13238
13239 When a virtual machine is started up, it locks for writing all
13240 media it uses to write data to. If any medium could not be locked
13241 for writing, the startup procedure will fail. If a medium has
13242 differencing images, then while the machine is running, only
13243 the last ("leaf") differencing image is locked for writing,
13244 whereas its parents are locked for reading only.
13245
13246 A medium is also locked for writing when it is the target of a
13247 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13248
13249 The medium locked for writing must be unlocked using the <link
13250 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
13251
13252 This method sets the medium state (see <link to="#state"/>) to
13253 "LockedWrite" on success. The medium's previous state must be
13254 either "Created" or "Inaccessible".
13255
13256 Locking an inaccessible medium is not an error; this method performs
13257 a logical lock that prevents modifications of this medium through
13258 the VirtualBox API, not a physical file-system lock of the underlying
13259 storage unit.
13260
13261 For both, success and failure, this method returns the current
13262 state of the medium <i>before</i> the operation.
13263
13264 <result name="VBOX_E_INVALID_OBJECT_STATE">
13265 Invalid medium state (e.g. not created, locked, inaccessible,
13266 creating, deleting).
13267 </result>
13268
13269 </desc>
13270 <param name="state" type="MediumState" dir="return">
13271 <desc>
13272 State of the medium after the operation.
13273 </desc>
13274 </param>
13275 </method>
13276
13277 <method name="unlockWrite">
13278 <desc>
13279 Cancels the write lock previously set by <link to="#lockWrite"/>.
13280
13281 For both success and failure, this method returns the current
13282 state of the medium <i>after</i> the operation.
13283
13284 See <link to="#lockWrite"/> for more details.
13285
13286 <result name="VBOX_E_INVALID_OBJECT_STATE">
13287 Medium not locked for writing.
13288 </result>
13289
13290 </desc>
13291 <param name="state" type="MediumState" dir="return">
13292 <desc>
13293 State of the medium after the operation.
13294 </desc>
13295 </param>
13296 </method>
13297
13298 <method name="close">
13299 <desc>
13300 Closes this medium.
13301
13302 The medium must not be attached to any known virtual machine
13303 and must not have any known child media, otherwise the
13304 operation will fail.
13305
13306 When the medium is successfully closed, it is removed from
13307 the list of registered media, but its storage unit is not
13308 deleted. In particular, this means that this medium can
13309 later be opened again using the <link to="IVirtualBox::openMedium"/>
13310 call.
13311
13312 Note that after this method successfully returns, the given medium
13313 object becomes uninitialized. This means that any attempt
13314 to call any of its methods or attributes will fail with the
13315 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
13316
13317 <result name="VBOX_E_INVALID_OBJECT_STATE">
13318 Invalid medium state (other than not created, created or
13319 inaccessible).
13320 </result>
13321 <result name="VBOX_E_OBJECT_IN_USE">
13322 Medium attached to virtual machine.
13323 </result>
13324 <result name="VBOX_E_FILE_ERROR">
13325 Settings file not accessible.
13326 </result>
13327 <result name="VBOX_E_XML_ERROR">
13328 Could not parse the settings file.
13329 </result>
13330
13331 </desc>
13332 </method>
13333
13334 <!-- property methods -->
13335
13336 <method name="getProperty" const="yes">
13337 <desc>
13338 Returns the value of the custom medium property with the given name.
13339
13340 The list of all properties supported by the given medium format can
13341 be obtained with <link to="IMediumFormat::describeProperties"/>.
13342
13343 <note>If this method returns an empty string in @a value, the requested
13344 property is supported but currently not assigned any value.</note>
13345
13346 <result name="VBOX_E_OBJECT_NOT_FOUND">
13347 Requested property does not exist (not supported by the format).
13348 </result>
13349 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13350 </desc>
13351 <param name="name" type="wstring" dir="in">
13352 <desc>Name of the property to get.</desc>
13353 </param>
13354 <param name="value" type="wstring" dir="return">
13355 <desc>Current property value.</desc>
13356 </param>
13357 </method>
13358
13359 <method name="setProperty">
13360 <desc>
13361 Sets the value of the custom medium property with the given name.
13362
13363 The list of all properties supported by the given medium format can
13364 be obtained with <link to="IMediumFormat::describeProperties"/>.
13365
13366 <note>Setting the property value to @c null or an empty string is
13367 equivalent to deleting the existing value. A default value (if it is
13368 defined for this property) will be used by the format backend in this
13369 case.</note>
13370
13371 <result name="VBOX_E_OBJECT_NOT_FOUND">
13372 Requested property does not exist (not supported by the format).
13373 </result>
13374 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13375 </desc>
13376 <param name="name" type="wstring" dir="in">
13377 <desc>Name of the property to set.</desc>
13378 </param>
13379 <param name="value" type="wstring" dir="in">
13380 <desc>Property value to set.</desc>
13381 </param>
13382 </method>
13383
13384 <method name="getProperties" const="yes">
13385 <desc>
13386 Returns values for a group of properties in one call.
13387
13388 The names of the properties to get are specified using the @a names
13389 argument which is a list of comma-separated property names or
13390 an empty string if all properties are to be returned.
13391 <note>Currently the value of this argument is ignored and the method
13392 always returns all existing properties.</note>
13393
13394 The list of all properties supported by the given medium format can
13395 be obtained with <link to="IMediumFormat::describeProperties"/>.
13396
13397 The method returns two arrays, the array of property names corresponding
13398 to the @a names argument and the current values of these properties.
13399 Both arrays have the same number of elements with each element at the
13400 given index in the first array corresponds to an element at the same
13401 index in the second array.
13402
13403 For properties that do not have assigned values, an empty string is
13404 returned at the appropriate index in the @a returnValues array.
13405
13406 </desc>
13407 <param name="names" type="wstring" dir="in">
13408 <desc>
13409 Names of properties to get.
13410 </desc>
13411 </param>
13412 <param name="returnNames" type="wstring" safearray="yes" dir="out">
13413 <desc>Names of returned properties.</desc>
13414 </param>
13415 <param name="returnValues" type="wstring" safearray="yes" dir="return">
13416 <desc>Values of returned properties.</desc>
13417 </param>
13418 </method>
13419
13420 <method name="setProperties">
13421 <desc>
13422 Sets values for a group of properties in one call.
13423
13424 The names of the properties to set are passed in the @a names
13425 array along with the new values for them in the @a values array. Both
13426 arrays have the same number of elements with each element at the given
13427 index in the first array corresponding to an element at the same index
13428 in the second array.
13429
13430 If there is at least one property name in @a names that is not valid,
13431 the method will fail before changing the values of any other properties
13432 from the @a names array.
13433
13434 Using this method over <link to="#setProperty"/> is preferred if you
13435 need to set several properties at once since it is more efficient.
13436
13437 The list of all properties supported by the given medium format can
13438 be obtained with <link to="IMediumFormat::describeProperties"/>.
13439
13440 Setting the property value to @c null or an empty string is equivalent
13441 to deleting the existing value. A default value (if it is defined for
13442 this property) will be used by the format backend in this case.
13443 </desc>
13444 <param name="names" type="wstring" safearray="yes" dir="in">
13445 <desc>Names of properties to set.</desc>
13446 </param>
13447 <param name="values" type="wstring" safearray="yes" dir="in">
13448 <desc>Values of properties to set.</desc>
13449 </param>
13450 </method>
13451
13452 <!-- storage methods -->
13453
13454 <method name="createBaseStorage">
13455 <desc>
13456 Starts creating a hard disk storage unit (fixed/dynamic, according
13457 to the variant flags) in in the background. The previous storage unit
13458 created for this object, if any, must first be deleted using
13459 <link to="#deleteStorage"/>, otherwise the operation will fail.
13460
13461 Before the operation starts, the medium is placed in
13462 <link to="MediumState_Creating"/> state. If the create operation
13463 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
13464 state.
13465
13466 After the returned progress object reports that the operation has
13467 successfully completed, the medium state will be set to <link
13468 to="MediumState_Created"/>, the medium will be remembered by this
13469 VirtualBox installation and may be attached to virtual machines.
13470
13471 <result name="VBOX_E_NOT_SUPPORTED">
13472 The variant of storage creation operation is not supported. See <link
13473 to="IMediumFormat::capabilities"/>.
13474 </result>
13475 </desc>
13476 <param name="logicalSize" type="long long" dir="in">
13477 <desc>Maximum logical size of the medium in bytes.</desc>
13478 </param>
13479 <param name="variant" type="unsigned long" dir="in">
13480 <desc>Exact image variant which should be created (as a combination of
13481 <link to="MediumVariant" /> flags).</desc>
13482 </param>
13483 <param name="progress" type="IProgress" dir="return">
13484 <desc>Progress object to track the operation completion.</desc>
13485 </param>
13486 </method>
13487
13488 <method name="deleteStorage">
13489 <desc>
13490 Starts deleting the storage unit of this medium.
13491
13492 The medium must not be attached to any known virtual machine and must
13493 not have any known child media, otherwise the operation will fail.
13494 It will also fail if there is no storage unit to delete or if deletion
13495 is already in progress, or if the medium is being in use (locked for
13496 read or for write) or inaccessible. Therefore, the only valid state for
13497 this operation to succeed is <link to="MediumState_Created"/>.
13498
13499 Before the operation starts, the medium is placed in
13500 <link to="MediumState_Deleting"/> state and gets removed from the list
13501 of remembered hard disks (media registry). If the delete operation
13502 fails, the medium will be remembered again and placed back to
13503 <link to="MediumState_Created"/> state.
13504
13505 After the returned progress object reports that the operation is
13506 complete, the medium state will be set to
13507 <link to="MediumState_NotCreated"/> and you will be able to use one of
13508 the storage creation methods to create it again.
13509
13510 <see><link to="#close"/></see>
13511
13512 <result name="VBOX_E_OBJECT_IN_USE">
13513 Medium is attached to a virtual machine.
13514 </result>
13515 <result name="VBOX_E_NOT_SUPPORTED">
13516 Storage deletion is not allowed because neither of storage creation
13517 operations are supported. See
13518 <link to="IMediumFormat::capabilities"/>.
13519 </result>
13520
13521 <note>
13522 If the deletion operation fails, it is not guaranteed that the storage
13523 unit still exists. You may check the <link to="IMedium::state"/> value
13524 to answer this question.
13525 </note>
13526 </desc>
13527 <param name="progress" type="IProgress" dir="return">
13528 <desc>Progress object to track the operation completion.</desc>
13529 </param>
13530 </method>
13531
13532 <!-- diff methods -->
13533
13534 <method name="createDiffStorage">
13535 <desc>
13536 Starts creating an empty differencing storage unit based on this
13537 medium in the format and at the location defined by the @a target
13538 argument.
13539
13540 The target medium must be in <link to="MediumState_NotCreated"/>
13541 state (i.e. must not have an existing storage unit). Upon successful
13542 completion, this operation will set the type of the target medium to
13543 <link to="MediumType_Normal"/> and create a storage unit necessary to
13544 represent the differencing medium data in the given format (according
13545 to the storage format of the target object).
13546
13547 After the returned progress object reports that the operation is
13548 successfully complete, the target medium gets remembered by this
13549 VirtualBox installation and may be attached to virtual machines.
13550
13551 <note>
13552 The medium will be set to <link to="MediumState_LockedRead"/>
13553 state for the duration of this operation.
13554 </note>
13555 <result name="VBOX_E_OBJECT_IN_USE">
13556 Medium not in @c NotCreated state.
13557 </result>
13558 </desc>
13559 <param name="target" type="IMedium" dir="in">
13560 <desc>Target medium.</desc>
13561 </param>
13562 <param name="variant" type="unsigned long" dir="in">
13563 <desc>Exact image variant which should be created (as a combination of
13564 <link to="MediumVariant" /> flags).</desc>
13565 </param>
13566 <param name="progress" type="IProgress" dir="return">
13567 <desc>Progress object to track the operation completion.</desc>
13568 </param>
13569 </method>
13570
13571 <method name="mergeTo">
13572 <desc>
13573 Starts merging the contents of this medium and all intermediate
13574 differencing media in the chain to the given target medium.
13575
13576 The target medium must be either a descendant of this medium or
13577 its ancestor (otherwise this method will immediately return a failure).
13578 It follows that there are two logical directions of the merge operation:
13579 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13580 ancestor (<i>backward merge</i>). Let us consider the following medium
13581 chain:
13582
13583 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13584
13585 Here, calling this method on the <tt>Base</tt> medium object with
13586 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13587 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13588 merge. Note that in both cases the contents of the resulting medium
13589 will be the same, the only difference is the medium object that takes
13590 the result of the merge operation. In case of the forward merge in the
13591 above example, the result will be written to <tt>Diff_2</tt>; in case of
13592 the backward merge, the result will be written to <tt>Base</tt>. In
13593 other words, the result of the operation is always stored in the target
13594 medium.
13595
13596 Upon successful operation completion, the storage units of all media in
13597 the chain between this (source) medium and the target medium, including
13598 the source medium itself, will be automatically deleted and the
13599 relevant medium objects (including this medium) will become
13600 uninitialized. This means that any attempt to call any of
13601 their methods or attributes will fail with the
13602 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13603 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13604 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13605 Note that <tt>Diff_2</tt> in this case will become a base medium
13606 itself since it will no longer be based on any other medium.
13607
13608 Considering the above, all of the following conditions must be met in
13609 order for the merge operation to succeed:
13610 <ul>
13611 <li>
13612 Neither this (source) medium nor any intermediate
13613 differencing medium in the chain between it and the target
13614 medium is attached to any virtual machine.
13615 </li>
13616 <li>
13617 Neither the source medium nor the target medium is an
13618 <link to="MediumType_Immutable"/> medium.
13619 </li>
13620 <li>
13621 The part of the medium tree from the source medium to the
13622 target medium is a linear chain, i.e. all medium in this
13623 chain have exactly one child which is the next medium in this
13624 chain. The only exception from this rule is the target medium in
13625 the forward merge operation; it is allowed to have any number of
13626 child media because the merge operation will not change its
13627 logical contents (as it is seen by the guest OS or by children).
13628 </li>
13629 <li>
13630 None of the involved media are in
13631 <link to="MediumState_LockedRead"/> or
13632 <link to="MediumState_LockedWrite"/> state.
13633 </li>
13634 </ul>
13635
13636 <note>
13637 This (source) medium and all intermediates will be placed to <link
13638 to="MediumState_Deleting"/> state and the target medium will be
13639 placed to <link to="MediumState_LockedWrite"/> state and for the
13640 duration of this operation.
13641 </note>
13642 </desc>
13643 <param name="target" type="IMedium" dir="in">
13644 <desc>Target medium.</desc>
13645 </param>
13646 <param name="progress" type="IProgress" dir="return">
13647 <desc>Progress object to track the operation completion.</desc>
13648 </param>
13649 </method>
13650
13651 <!-- clone method -->
13652
13653 <method name="cloneTo">
13654 <desc>
13655 Starts creating a clone of this medium in the format and at the
13656 location defined by the @a target argument.
13657
13658 The target medium must be either in <link to="MediumState_NotCreated"/>
13659 state (i.e. must not have an existing storage unit) or in
13660 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13661 big enough to hold the data or else the copy will be partial). Upon
13662 successful completion, the cloned medium will contain exactly the
13663 same sector data as the medium being cloned, except that in the
13664 first case a new UUID for the clone will be randomly generated, and in
13665 the second case the UUID will remain unchanged.
13666
13667 The @a parent argument defines which medium will be the parent
13668 of the clone. Passing a @c null reference indicates that the clone will
13669 be a base image, i.e. completely independent. It is possible to specify
13670 an arbitrary medium for this parameter, including the parent of the
13671 medium which is being cloned. Even cloning to a child of the source
13672 medium is possible. Note that when cloning to an existing image, the
13673 @a parent argument is ignored.
13674
13675 After the returned progress object reports that the operation is
13676 successfully complete, the target medium gets remembered by this
13677 VirtualBox installation and may be attached to virtual machines.
13678
13679 <note>
13680 This medium will be placed to <link to="MediumState_LockedRead"/>
13681 state for the duration of this operation.
13682 </note>
13683 <result name="E_NOTIMPL">
13684 The specified cloning variant is not supported at the moment.
13685 </result>
13686 </desc>
13687 <param name="target" type="IMedium" dir="in">
13688 <desc>Target medium.</desc>
13689 </param>
13690 <param name="variant" type="unsigned long" dir="in">
13691 <desc>Exact image variant which should be created (as a combination of
13692 <link to="MediumVariant" /> flags).</desc>
13693 </param>
13694 <param name="parent" type="IMedium" dir="in">
13695 <desc>Parent of the cloned medium.</desc>
13696 </param>
13697 <param name="progress" type="IProgress" dir="return">
13698 <desc>Progress object to track the operation completion.</desc>
13699 </param>
13700 </method>
13701
13702 <method name="cloneToBase">
13703 <desc>
13704 Starts creating a clone of this medium in the format and at the
13705 location defined by the @a target argument.
13706
13707 The target medium must be either in <link to="MediumState_NotCreated"/>
13708 state (i.e. must not have an existing storage unit) or in
13709 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13710 big enough to hold the data or else the copy will be partial). Upon
13711 successful completion, the cloned medium will contain exactly the
13712 same sector data as the medium being cloned, except that in the
13713 first case a new UUID for the clone will be randomly generated, and in
13714 the second case the UUID will remain unchanged.
13715
13716 The @a parent argument defines which medium will be the parent
13717 of the clone. In this case the clone will be a base image, i.e.
13718 completely independent. It is possible to specify an arbitrary
13719 medium for this parameter, including the parent of the
13720 medium which is being cloned. Even cloning to a child of the source
13721 medium is possible. Note that when cloning to an existing image, the
13722 @a parent argument is ignored.
13723
13724 After the returned progress object reports that the operation is
13725 successfully complete, the target medium gets remembered by this
13726 VirtualBox installation and may be attached to virtual machines.
13727
13728 <note>
13729 This medium will be placed to <link to="MediumState_LockedRead"/>
13730 state for the duration of this operation.
13731 </note>
13732 <result name="E_NOTIMPL">
13733 The specified cloning variant is not supported at the moment.
13734 </result>
13735 </desc>
13736 <param name="target" type="IMedium" dir="in">
13737 <desc>Target medium.</desc>
13738 </param>
13739 <param name="variant" type="unsigned long" dir="in">
13740 <desc>Exact image variant which should be created (as a combination of
13741 <link to="MediumVariant" /> flags).</desc>
13742 </param>
13743 <param name="progress" type="IProgress" dir="return">
13744 <desc>Progress object to track the operation completion.</desc>
13745 </param>
13746 </method>
13747
13748 <!-- other methods -->
13749
13750 <method name="compact">
13751 <desc>
13752 Starts compacting of this medium. This means that the medium is
13753 transformed into a possibly more compact storage representation.
13754 This potentially creates temporary images, which can require a
13755 substantial amount of additional disk space.
13756
13757 This medium will be placed to <link to="MediumState_LockedWrite"/>
13758 state and all its parent media (if any) will be placed to
13759 <link to="MediumState_LockedRead"/> state for the duration of this
13760 operation.
13761
13762 Please note that the results can be either returned straight away,
13763 or later as the result of the background operation via the object
13764 returned via the @a progress parameter.
13765
13766 <result name="VBOX_E_NOT_SUPPORTED">
13767 Medium format does not support compacting (but potentially
13768 needs it).
13769 </result>
13770 </desc>
13771 <param name="progress" type="IProgress" dir="return">
13772 <desc>Progress object to track the operation completion.</desc>
13773 </param>
13774 </method>
13775
13776 <method name="resize">
13777 <desc>
13778 Starts resizing this medium. This means that the nominal size of the
13779 medium is set to the new value. Both increasing and decreasing the
13780 size is possible, and there are no safety checks, since VirtualBox
13781 does not make any assumptions about the medium contents.
13782
13783 Resizing usually needs additional disk space, and possibly also
13784 some temporary disk space. Note that resize does not create a full
13785 temporary copy of the medium, so the additional disk space requirement
13786 is usually much lower than using the clone operation.
13787
13788 This medium will be placed to <link to="MediumState_LockedWrite"/>
13789 state for the duration of this operation.
13790
13791 Please note that the results can be either returned straight away,
13792 or later as the result of the background operation via the object
13793 returned via the @a progress parameter.
13794
13795 <result name="VBOX_E_NOT_SUPPORTED">
13796 Medium format does not support resizing.
13797 </result>
13798 </desc>
13799 <param name="logicalSize" type="long long" dir="in">
13800 <desc>New nominal capacity of the medium in bytes.</desc>
13801 </param>
13802 <param name="progress" type="IProgress" dir="return">
13803 <desc>Progress object to track the operation completion.</desc>
13804 </param>
13805 </method>
13806
13807 <method name="reset">
13808 <desc>
13809 Starts erasing the contents of this differencing medium.
13810
13811 This operation will reset the differencing medium to its initial
13812 state when it does not contain any sector data and any read operation is
13813 redirected to its parent medium. This automatically gets called
13814 during VM power-up for every medium whose <link to="#autoReset" />
13815 attribute is @c true.
13816
13817 The medium will be write-locked for the duration of this operation (see
13818 <link to="#lockWrite" />).
13819
13820 <result name="VBOX_E_NOT_SUPPORTED">
13821 This is not a differencing medium.
13822 </result>
13823 <result name="VBOX_E_INVALID_OBJECT_STATE">
13824 Medium is not in <link to="MediumState_Created"/> or
13825 <link to="MediumState_Inaccessible"/> state.
13826 </result>
13827 </desc>
13828 <param name="progress" type="IProgress" dir="return">
13829 <desc>Progress object to track the operation completion.</desc>
13830 </param>
13831 </method>
13832
13833 </interface>
13834
13835
13836 <!--
13837 // IMediumFormat
13838 /////////////////////////////////////////////////////////////////////////
13839 -->
13840
13841 <enum
13842 name="DataType"
13843 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13844 >
13845 <const name="Int32" value="0"/>
13846 <const name="Int8" value="1"/>
13847 <const name="String" value="2"/>
13848 </enum>
13849
13850 <enum
13851 name="DataFlags"
13852 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13853 >
13854 <const name="None" value="0x00"/>
13855 <const name="Mandatory" value="0x01"/>
13856 <const name="Expert" value="0x02"/>
13857 <const name="Array" value="0x04"/>
13858 <const name="FlagMask" value="0x07"/>
13859 </enum>
13860
13861 <enum
13862 name="MediumFormatCapabilities"
13863 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13864 >
13865 <desc>
13866 Medium format capability flags.
13867 </desc>
13868
13869 <const name="Uuid" value="0x01">
13870 <desc>
13871 Supports UUIDs as expected by VirtualBox code.
13872 </desc>
13873 </const>
13874
13875 <const name="CreateFixed" value="0x02">
13876 <desc>
13877 Supports creating fixed size images, allocating all space instantly.
13878 </desc>
13879 </const>
13880
13881 <const name="CreateDynamic" value="0x04">
13882 <desc>
13883 Supports creating dynamically growing images, allocating space on
13884 demand.
13885 </desc>
13886 </const>
13887
13888 <const name="CreateSplit2G" value="0x08">
13889 <desc>
13890 Supports creating images split in chunks of a bit less than 2 GBytes.
13891 </desc>
13892 </const>
13893
13894 <const name="Differencing" value="0x10">
13895 <desc>
13896 Supports being used as a format for differencing media (see <link
13897 to="IMedium::createDiffStorage"/>).
13898 </desc>
13899 </const>
13900
13901 <const name="Asynchronous" value="0x20">
13902 <desc>
13903 Supports asynchronous I/O operations for at least some configurations.
13904 </desc>
13905 </const>
13906
13907 <const name="File" value="0x40">
13908 <desc>
13909 The format backend operates on files (the <link to="IMedium::location"/>
13910 attribute of the medium specifies a file used to store medium
13911 data; for a list of supported file extensions see
13912 <link to="IMediumFormat::describeFileExtensions"/>).
13913 </desc>
13914 </const>
13915
13916 <const name="Properties" value="0x80">
13917 <desc>
13918 The format backend uses the property interface to configure the storage
13919 location and properties (the <link to="IMediumFormat::describeProperties"/>
13920 method is used to get access to properties supported by the given medium format).
13921 </desc>
13922 </const>
13923
13924 <const name="TcpNetworking" value="0x100">
13925 <desc>
13926 The format backend uses the TCP networking interface for network access.
13927 </desc>
13928 </const>
13929
13930 <const name="VFS" value="0x200">
13931 <desc>
13932 The format backend supports virtual filesystem functionality.
13933 </desc>
13934 </const>
13935
13936 <const name="CapabilityMask" value="0x3FF"/>
13937 </enum>
13938
13939 <interface
13940 name="IMediumFormat" extends="$unknown"
13941 uuid="9bd5b655-ea47-4637-99f3-aad0948be35b"
13942 wsmap="managed"
13943 >
13944 <desc>
13945 The IMediumFormat interface represents a medium format.
13946
13947 Each medium format has an associated backend which is used to handle
13948 media stored in this format. This interface provides information
13949 about the properties of the associated backend.
13950
13951 Each medium format is identified by a string represented by the
13952 <link to="#id"/> attribute. This string is used in calls like
13953 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13954 format.
13955
13956 The list of all supported medium formats can be obtained using
13957 <link to="ISystemProperties::mediumFormats"/>.
13958
13959 <see><link to="IMedium"/></see>
13960 </desc>
13961
13962 <attribute name="id" type="wstring" readonly="yes">
13963 <desc>
13964 Identifier of this format.
13965
13966 The format identifier is a non-@c null non-empty ASCII string. Note that
13967 this string is case-insensitive. This means that, for example, all of
13968 the following strings:
13969 <pre>
13970 "VDI"
13971 "vdi"
13972 "VdI"</pre>
13973 refer to the same medium format.
13974
13975 This string is used in methods of other interfaces where it is necessary
13976 to specify a medium format, such as
13977 <link to="IVirtualBox::createHardDisk"/>.
13978 </desc>
13979 </attribute>
13980
13981 <attribute name="name" type="wstring" readonly="yes">
13982 <desc>
13983 Human readable description of this format.
13984
13985 Mainly for use in file open dialogs.
13986 </desc>
13987 </attribute>
13988
13989 <attribute name="capabilities" type="unsigned long" readonly="yes">
13990 <desc>
13991 Capabilities of the format as a set of bit flags.
13992
13993 For the meaning of individual capability flags see
13994 <link to="MediumFormatCapabilities"/>.
13995 </desc>
13996 </attribute>
13997
13998 <method name="describeFileExtensions">
13999 <desc>
14000 Returns two arrays describing the supported file extensions.
14001
14002 The first array contains the supported extensions and the seconds one
14003 the type each extension supports. Both have the same size.
14004
14005 Note that some backends do not work on files, so this array may be
14006 empty.
14007
14008 <see><link to="IMediumFormat::capabilities"/></see>
14009 </desc>
14010 <param name="extensions" type="wstring" safearray="yes" dir="out">
14011 <desc>The array of supported extensions.</desc>
14012 </param>
14013 <param name="type" type="DeviceType" safearray="yes" dir="out">
14014 <desc>The array which indicates the device type for every given extension.</desc>
14015 </param>
14016 </method>
14017
14018 <method name="describeProperties" const="yes">
14019 <desc>
14020 Returns several arrays describing the properties supported by this
14021 format.
14022
14023 An element with the given index in each array describes one
14024 property. Thus, the number of elements in each returned array is the
14025 same and corresponds to the number of supported properties.
14026
14027 The returned arrays are filled in only if the
14028 <link to="MediumFormatCapabilities_Properties"/> flag is set.
14029 All arguments must be non-@c null.
14030
14031 <see><link to="DataType"/>, <link to="DataFlags"/></see>
14032 </desc>
14033
14034 <param name="names" type="wstring" safearray="yes" dir="out">
14035 <desc>Array of property names.</desc>
14036 </param>
14037 <param name="description" type="wstring" safearray="yes" dir="out">
14038 <desc>Array of property descriptions.</desc>
14039 </param>
14040 <param name="types" type="DataType" safearray="yes" dir="out">
14041 <desc>Array of property types.</desc>
14042 </param>
14043 <param name="flags" type="unsigned long" safearray="yes" dir="out">
14044 <desc>Array of property flags.</desc>
14045 </param>
14046 <param name="defaults" type="wstring" safearray="yes" dir="out">
14047 <desc>Array of default property values.</desc>
14048 </param>
14049 </method>
14050
14051 </interface>
14052
14053
14054 <!--
14055 // IKeyboard
14056 /////////////////////////////////////////////////////////////////////////
14057 -->
14058
14059 <interface
14060 name="IKeyboard" extends="$unknown"
14061 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
14062 wsmap="managed"
14063 >
14064 <desc>
14065 The IKeyboard interface represents the virtual machine's keyboard. Used
14066 in <link to="IConsole::keyboard"/>.
14067
14068 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
14069 to the virtual machine.
14070
14071 </desc>
14072 <method name="putScancode">
14073 <desc>Sends a scancode to the keyboard.
14074
14075 <result name="VBOX_E_IPRT_ERROR">
14076 Could not send scan code to virtual keyboard.
14077 </result>
14078
14079 </desc>
14080 <param name="scancode" type="long" dir="in"/>
14081 </method>
14082
14083 <method name="putScancodes">
14084 <desc>Sends an array of scancodes to the keyboard.
14085
14086 <result name="VBOX_E_IPRT_ERROR">
14087 Could not send all scan codes to virtual keyboard.
14088 </result>
14089
14090 </desc>
14091 <param name="scancodes" type="long" dir="in" safearray="yes"/>
14092 <param name="codesStored" type="unsigned long" dir="return"/>
14093 </method>
14094
14095 <method name="putCAD">
14096 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
14097 function is nothing special, it is just a convenience function
14098 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
14099
14100 <result name="VBOX_E_IPRT_ERROR">
14101 Could not send all scan codes to virtual keyboard.
14102 </result>
14103
14104 </desc>
14105 </method>
14106
14107 <attribute name="eventSource" type="IEventSource" readonly="yes">
14108 <desc>
14109 Event source for keyboard events.
14110 </desc>
14111 </attribute>
14112
14113 </interface>
14114
14115
14116 <!--
14117 // IMouse
14118 /////////////////////////////////////////////////////////////////////////
14119 -->
14120
14121 <enum
14122 name="MouseButtonState"
14123 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
14124 >
14125 <desc>
14126 Mouse button state.
14127 </desc>
14128
14129 <const name="LeftButton" value="0x01"/>
14130 <const name="RightButton" value="0x02"/>
14131 <const name="MiddleButton" value="0x04"/>
14132 <const name="WheelUp" value="0x08"/>
14133 <const name="WheelDown" value="0x10"/>
14134 <const name="XButton1" value="0x20"/>
14135 <const name="XButton2" value="0x40"/>
14136 <const name="MouseStateMask" value="0x7F"/>
14137 </enum>
14138
14139 <interface
14140 name="IMouse" extends="$unknown"
14141 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
14142 wsmap="managed"
14143 >
14144 <desc>
14145 The IMouse interface represents the virtual machine's mouse. Used in
14146 <link to="IConsole::mouse"/>.
14147
14148 Through this interface, the virtual machine's virtual mouse can be
14149 controlled.
14150 </desc>
14151
14152 <attribute name="absoluteSupported" type="boolean" readonly="yes">
14153 <desc>
14154 Whether the guest OS supports absolute mouse pointer positioning
14155 or not.
14156 <note>
14157 You can use the <link to="IMouseCapabilityChangedEvent"/>
14158 event to be instantly informed about changes of this attribute
14159 during virtual machine execution.
14160 </note>
14161 <see><link to="#putMouseEventAbsolute"/></see>
14162 </desc>
14163 </attribute>
14164
14165 <attribute name="relativeSupported" type="boolean" readonly="yes">
14166 <desc>
14167 Whether the guest OS supports relative mouse pointer positioning
14168 or not.
14169 <note>
14170 You can use the <link to="IMouseCapabilityChangedEvent"/>
14171 event to be instantly informed about changes of this attribute
14172 during virtual machine execution.
14173 </note>
14174 <see><link to="#putMouseEvent"/></see>
14175 </desc>
14176 </attribute>
14177
14178 <attribute name="needsHostCursor" type="boolean" readonly="yes">
14179 <desc>
14180 Whether the guest OS can currently switch to drawing it's own mouse
14181 cursor on demand.
14182 <note>
14183 You can use the <link to="IMouseCapabilityChangedEvent"/>
14184 event to be instantly informed about changes of this attribute
14185 during virtual machine execution.
14186 </note>
14187 <see><link to="#putMouseEvent"/></see>
14188 </desc>
14189 </attribute>
14190
14191 <method name="putMouseEvent">
14192 <desc>
14193 Initiates a mouse event using relative pointer movements
14194 along x and y axis.
14195
14196 <result name="E_ACCESSDENIED">
14197 Console not powered up.
14198 </result>
14199 <result name="VBOX_E_IPRT_ERROR">
14200 Could not send mouse event to virtual mouse.
14201 </result>
14202
14203 </desc>
14204
14205 <param name="dx" type="long" dir="in">
14206 <desc>
14207 Amount of pixels the mouse should move to the right.
14208 Negative values move the mouse to the left.
14209 </desc>
14210 </param>
14211 <param name="dy" type="long" dir="in">
14212 <desc>
14213 Amount of pixels the mouse should move downwards.
14214 Negative values move the mouse upwards.
14215 </desc>
14216 </param>
14217 <param name="dz" type="long" dir="in">
14218 <desc>
14219 Amount of mouse wheel moves.
14220 Positive values describe clockwise wheel rotations,
14221 negative values describe counterclockwise rotations.
14222 </desc>
14223 </param>
14224 <param name="dw" type="long" dir="in">
14225 <desc>
14226 Amount of horizontal mouse wheel moves.
14227 Positive values describe a movement to the left,
14228 negative values describe a movement to the right.
14229 </desc>
14230 </param>
14231 <param name="buttonState" type="long" dir="in">
14232 <desc>
14233 The current state of mouse buttons. Every bit represents
14234 a mouse button as follows:
14235 <table>
14236 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14237 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14238 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14239 </table>
14240 A value of <tt>1</tt> means the corresponding button is pressed.
14241 otherwise it is released.
14242 </desc>
14243 </param>
14244 </method>
14245
14246 <method name="putMouseEventAbsolute">
14247 <desc>
14248 Positions the mouse pointer using absolute x and y coordinates.
14249 These coordinates are expressed in pixels and
14250 start from <tt>[1,1]</tt> which corresponds to the top left
14251 corner of the virtual display.
14252
14253 <result name="E_ACCESSDENIED">
14254 Console not powered up.
14255 </result>
14256 <result name="VBOX_E_IPRT_ERROR">
14257 Could not send mouse event to virtual mouse.
14258 </result>
14259
14260 <note>
14261 This method will have effect only if absolute mouse
14262 positioning is supported by the guest OS.
14263 </note>
14264
14265 <see><link to="#absoluteSupported"/></see>
14266 </desc>
14267
14268 <param name="x" type="long" dir="in">
14269 <desc>
14270 X coordinate of the pointer in pixels, starting from @c 1.
14271 </desc>
14272 </param>
14273 <param name="y" type="long" dir="in">
14274 <desc>
14275 Y coordinate of the pointer in pixels, starting from @c 1.
14276 </desc>
14277 </param>
14278 <param name="dz" type="long" dir="in">
14279 <desc>
14280 Amount of mouse wheel moves.
14281 Positive values describe clockwise wheel rotations,
14282 negative values describe counterclockwise rotations.
14283 </desc>
14284 </param>
14285 <param name="dw" type="long" dir="in">
14286 <desc>
14287 Amount of horizontal mouse wheel moves.
14288 Positive values describe a movement to the left,
14289 negative values describe a movement to the right.
14290 </desc>
14291 </param>
14292 <param name="buttonState" type="long" dir="in">
14293 <desc>
14294 The current state of mouse buttons. Every bit represents
14295 a mouse button as follows:
14296 <table>
14297 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14298 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14299 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14300 </table>
14301 A value of @c 1 means the corresponding button is pressed.
14302 otherwise it is released.
14303 </desc>
14304 </param>
14305 </method>
14306
14307 <attribute name="eventSource" type="IEventSource" readonly="yes">
14308 <desc>
14309 Event source for mouse events.
14310 </desc>
14311 </attribute>
14312
14313 </interface>
14314
14315 <!--
14316 // IDisplay
14317 /////////////////////////////////////////////////////////////////////////
14318 -->
14319
14320 <enum
14321 name="FramebufferPixelFormat"
14322 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
14323 >
14324 <desc>
14325 Format of the video memory buffer. Constants represented by this enum can
14326 be used to test for particular values of <link
14327 to="IFramebuffer::pixelFormat"/>. See also <link
14328 to="IFramebuffer::requestResize"/>.
14329
14330 See also www.fourcc.org for more information about FOURCC pixel formats.
14331 </desc>
14332
14333 <const name="Opaque" value="0">
14334 <desc>
14335 Unknown buffer format (the user may not assume any particular format of
14336 the buffer).
14337 </desc>
14338 </const>
14339 <const name="FOURCC_RGB" value="0x32424752">
14340 <desc>
14341 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
14342 bit layout).
14343 </desc>
14344 </const>
14345 </enum>
14346
14347 <interface
14348 name="IFramebuffer" extends="$unknown"
14349 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
14350 wsmap="suppress"
14351 >
14352 <attribute name="address" type="octet" mod="ptr" readonly="yes">
14353 <desc>Address of the start byte of the frame buffer.</desc>
14354 </attribute>
14355
14356 <attribute name="width" type="unsigned long" readonly="yes">
14357 <desc>Frame buffer width, in pixels.</desc>
14358 </attribute>
14359
14360 <attribute name="height" type="unsigned long" readonly="yes">
14361 <desc>Frame buffer height, in pixels.</desc>
14362 </attribute>
14363
14364 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
14365 <desc>
14366 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
14367 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
14368 are: 8, 15, 16, 24 and 32.
14369 </desc>
14370 </attribute>
14371
14372 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
14373 <desc>
14374 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
14375 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
14376 size of the scan line must be aligned to 32 bits.
14377 </desc>
14378 </attribute>
14379
14380 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
14381 <desc>
14382 Frame buffer pixel format. It's either one of the values defined by <link
14383 to="FramebufferPixelFormat"/> or a raw FOURCC code.
14384 <note>
14385 This attribute must never return <link
14386 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
14387 <link to="#address"/> points to must be always known.
14388 </note>
14389 </desc>
14390 </attribute>
14391
14392 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
14393 <desc>
14394 Defines whether this frame buffer uses the virtual video card's memory
14395 buffer (guest VRAM) directly or not. See <link
14396 to="IFramebuffer::requestResize"/> for more information.
14397 </desc>
14398 </attribute>
14399
14400 <attribute name="heightReduction" type="unsigned long" readonly="yes">
14401 <desc>
14402 Hint from the frame buffer about how much of the standard
14403 screen height it wants to use for itself. This information is
14404 exposed to the guest through the VESA BIOS and VMMDev interface
14405 so that it can use it for determining its video mode table. It
14406 is not guaranteed that the guest respects the value.
14407 </desc>
14408 </attribute>
14409
14410 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
14411 <desc>
14412 An alpha-blended overlay which is superposed over the frame buffer.
14413 The initial purpose is to allow the display of icons providing
14414 information about the VM state, including disk activity, in front
14415 ends which do not have other means of doing that. The overlay is
14416 designed to controlled exclusively by IDisplay. It has no locking
14417 of its own, and any changes made to it are not guaranteed to be
14418 visible until the affected portion of IFramebuffer is updated. The
14419 overlay can be created lazily the first time it is requested. This
14420 attribute can also return @c null to signal that the overlay is not
14421 implemented.
14422 </desc>
14423 </attribute>
14424
14425 <attribute name="winId" type="long long" readonly="yes">
14426 <desc>
14427 Platform-dependent identifier of the window where context of this
14428 frame buffer is drawn, or zero if there's no such window.
14429 </desc>
14430 </attribute>
14431
14432 <method name="lock">
14433 <desc>
14434 Locks the frame buffer.
14435 Gets called by the IDisplay object where this frame buffer is
14436 bound to.
14437 </desc>
14438 </method>
14439
14440 <method name="unlock">
14441 <desc>
14442 Unlocks the frame buffer.
14443 Gets called by the IDisplay object where this frame buffer is
14444 bound to.
14445 </desc>
14446 </method>
14447
14448 <method name="notifyUpdate">
14449 <desc>
14450 Informs about an update.
14451 Gets called by the display object where this buffer is
14452 registered.
14453 </desc>
14454 <param name="x" type="unsigned long" dir="in"/>
14455 <param name="y" type="unsigned long" dir="in"/>
14456 <param name="width" type="unsigned long" dir="in"/>
14457 <param name="height" type="unsigned long" dir="in"/>
14458 </method>
14459
14460 <method name="requestResize">
14461 <desc>
14462 Requests a size and pixel format change.
14463
14464 There are two modes of working with the video buffer of the virtual
14465 machine. The <i>indirect</i> mode implies that the IFramebuffer
14466 implementation allocates a memory buffer for the requested display mode
14467 and provides it to the virtual machine. In <i>direct</i> mode, the
14468 IFramebuffer implementation uses the memory buffer allocated and owned
14469 by the virtual machine. This buffer represents the video memory of the
14470 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
14471 usually faster because the implementation gets a raw pointer to the
14472 guest VRAM buffer which it can directly use for visualizing the contents
14473 of the virtual display, as opposed to the indirect mode where the
14474 contents of guest VRAM are copied to the memory buffer provided by
14475 the implementation every time a display update occurs.
14476
14477 It is important to note that the direct mode is really fast only when
14478 the implementation uses the given guest VRAM buffer directly, for
14479 example, by blitting it to the window representing the virtual machine's
14480 display, which saves at least one copy operation comparing to the
14481 indirect mode. However, using the guest VRAM buffer directly is not
14482 always possible: the format and the color depth of this buffer may be
14483 not supported by the target window, or it may be unknown (opaque) as in
14484 case of text or non-linear multi-plane VGA video modes. In this case,
14485 the indirect mode (that is always available) should be used as a
14486 fallback: when the guest VRAM contents are copied to the
14487 implementation-provided memory buffer, color and format conversion is
14488 done automatically by the underlying code.
14489
14490 The @a pixelFormat parameter defines whether the direct mode is
14491 available or not. If @a pixelFormat is <link
14492 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
14493 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
14494 @a bytesPerLine parameters must be ignored and the implementation must use
14495 the indirect mode (where it provides its own buffer in one of the
14496 supported formats). In all other cases, @a pixelFormat together with
14497 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
14498 buffer pointed to by the @a VRAM parameter and the implementation is
14499 free to choose which mode to use. To indicate that this frame buffer uses
14500 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
14501 attribute must return @c true and <link to="#address"/> must
14502 return exactly the same address that is passed in the @a VRAM parameter
14503 of this method; otherwise it is assumed that the indirect strategy is
14504 chosen.
14505
14506 The @a width and @a height parameters represent the size of the
14507 requested display mode in both modes. In case of indirect mode, the
14508 provided memory buffer should be big enough to store data of the given
14509 display mode. In case of direct mode, it is guaranteed that the given
14510 @a VRAM buffer contains enough space to represent the display mode of the
14511 given size. Note that this frame buffer's <link to="#width"/> and <link
14512 to="#height"/> attributes must return exactly the same values as
14513 passed to this method after the resize is completed (see below).
14514
14515 The @a finished output parameter determines if the implementation has
14516 finished resizing the frame buffer or not. If, for some reason, the
14517 resize cannot be finished immediately during this call, @a finished
14518 must be set to @c false, and the implementation must call
14519 <link to="IDisplay::resizeCompleted"/> after it has returned from
14520 this method as soon as possible. If @a finished is @c false, the
14521 machine will not call any frame buffer methods until
14522 <link to="IDisplay::resizeCompleted"/> is called.
14523
14524 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
14525 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
14526 this frame buffer must return exactly the same values as specified in the
14527 parameters of this method, after the resize is completed. If the
14528 indirect mode is chosen, these attributes must return values describing
14529 the format of the implementation's own memory buffer <link
14530 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14531 value must always correlate with <link to="#pixelFormat"/>. Note that
14532 the <link to="#pixelFormat"/> attribute must never return <link
14533 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14534
14535 <note>
14536 This method is called by the IDisplay object under the
14537 <link to="#lock"/> provided by this IFramebuffer
14538 implementation. If this method returns @c false in @a finished, then
14539 this lock is not released until
14540 <link to="IDisplay::resizeCompleted"/> is called.
14541 </note>
14542 </desc>
14543 <param name="screenId" type="unsigned long" dir="in">
14544 <desc>
14545 Logical screen number. Must be used in the corresponding call to
14546 <link to="IDisplay::resizeCompleted"/> if this call is made.
14547 </desc>
14548 </param>
14549 <param name="pixelFormat" type="unsigned long" dir="in">
14550 <desc>
14551 Pixel format of the memory buffer pointed to by @a VRAM.
14552 See also <link to="FramebufferPixelFormat"/>.
14553 </desc>
14554 </param>
14555 <param name="VRAM" type="octet" mod="ptr" dir="in">
14556 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14557 </param>
14558 <param name="bitsPerPixel" type="unsigned long" dir="in">
14559 <desc>Color depth, bits per pixel.</desc>
14560 </param>
14561 <param name="bytesPerLine" type="unsigned long" dir="in">
14562 <desc>Size of one scan line, in bytes.</desc>
14563 </param>
14564 <param name="width" type="unsigned long" dir="in">
14565 <desc>Width of the guest display, in pixels.</desc>
14566 </param>
14567 <param name="height" type="unsigned long" dir="in">
14568 <desc>Height of the guest display, in pixels.</desc>
14569 </param>
14570 <param name="finished" type="boolean" dir="return">
14571 <desc>
14572 Can the VM start using the new frame buffer immediately
14573 after this method returns or it should wait for
14574 <link to="IDisplay::resizeCompleted"/>.
14575 </desc>
14576 </param>
14577 </method>
14578
14579 <method name="videoModeSupported">
14580 <desc>
14581 Returns whether the frame buffer implementation is willing to
14582 support a given video mode. In case it is not able to render
14583 the video mode (or for some reason not willing), it should
14584 return @c false. Usually this method is called when the guest
14585 asks the VMM device whether a given video mode is supported
14586 so the information returned is directly exposed to the guest.
14587 It is important that this method returns very quickly.
14588 </desc>
14589 <param name="width" type="unsigned long" dir="in"/>
14590 <param name="height" type="unsigned long" dir="in"/>
14591 <param name="bpp" type="unsigned long" dir="in"/>
14592 <param name="supported" type="boolean" dir="return"/>
14593 </method>
14594
14595 <method name="getVisibleRegion">
14596 <desc>
14597 Returns the visible region of this frame buffer.
14598
14599 If the @a rectangles parameter is @c null then the value of the
14600 @a count parameter is ignored and the number of elements necessary to
14601 describe the current visible region is returned in @a countCopied.
14602
14603 If @a rectangles is not @c null but @a count is less
14604 than the required number of elements to store region data, the method
14605 will report a failure. If @a count is equal or greater than the
14606 required number of elements, then the actual number of elements copied
14607 to the provided array will be returned in @a countCopied.
14608
14609 <note>
14610 The address of the provided array must be in the process space of
14611 this IFramebuffer object.
14612 </note>
14613 <note>
14614 Method not yet implemented.
14615 </note>
14616 </desc>
14617 <param name="rectangles" type="octet" mod="ptr" dir="in">
14618 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14619 </param>
14620 <param name="count" type="unsigned long" dir="in">
14621 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14622 </param>
14623 <param name="countCopied" type="unsigned long" dir="return">
14624 <desc>Number of elements copied to the @a rectangles array.</desc>
14625 </param>
14626 </method>
14627
14628 <method name="setVisibleRegion">
14629 <desc>
14630 Suggests a new visible region to this frame buffer. This region
14631 represents the area of the VM display which is a union of regions of
14632 all top-level windows of the guest operating system running inside the
14633 VM (if the Guest Additions for this system support this
14634 functionality). This information may be used by the frontends to
14635 implement the seamless desktop integration feature.
14636
14637 <note>
14638 The address of the provided array must be in the process space of
14639 this IFramebuffer object.
14640 </note>
14641 <note>
14642 The IFramebuffer implementation must make a copy of the provided
14643 array of rectangles.
14644 </note>
14645 <note>
14646 Method not yet implemented.
14647 </note>
14648 </desc>
14649 <param name="rectangles" type="octet" mod="ptr" dir="in">
14650 <desc>Pointer to the @c RTRECT array.</desc>
14651 </param>
14652 <param name="count" type="unsigned long" dir="in">
14653 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14654 </param>
14655 </method>
14656
14657 <method name="processVHWACommand">
14658 <desc>
14659 Posts a Video HW Acceleration Command to the frame buffer for processing.
14660 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14661 are posted from quest to the host to be processed by the host hardware.
14662
14663 <note>
14664 The address of the provided command must be in the process space of
14665 this IFramebuffer object.
14666 </note>
14667 </desc>
14668
14669 <param name="command" type="octet" mod="ptr" dir="in">
14670 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14671 </param>
14672 </method>
14673
14674 </interface>
14675
14676 <interface
14677 name="IFramebufferOverlay" extends="IFramebuffer"
14678 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14679 wsmap="suppress"
14680 >
14681 <desc>
14682 The IFramebufferOverlay interface represents an alpha blended overlay
14683 for displaying status icons above an IFramebuffer. It is always created
14684 not visible, so that it must be explicitly shown. It only covers a
14685 portion of the IFramebuffer, determined by its width, height and
14686 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14687 that order) format, and may be written to directly. Do re-read the
14688 width though, after setting it, as it may be adjusted (increased) to
14689 make it more suitable for the front end.
14690 </desc>
14691 <attribute name="x" type="unsigned long" readonly="yes">
14692 <desc>X position of the overlay, relative to the frame buffer.</desc>
14693 </attribute>
14694
14695 <attribute name="y" type="unsigned long" readonly="yes">
14696 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14697 </attribute>
14698
14699 <attribute name="visible" type="boolean" readonly="no">
14700 <desc>
14701 Whether the overlay is currently visible.
14702 </desc>
14703 </attribute>
14704
14705 <attribute name="alpha" type="unsigned long" readonly="no">
14706 <desc>
14707 The global alpha value for the overlay. This may or may not be
14708 supported by a given front end.
14709 </desc>
14710 </attribute>
14711
14712 <method name="move">
14713 <desc>
14714 Changes the overlay's position relative to the IFramebuffer.
14715 </desc>
14716 <param name="x" type="unsigned long" dir="in"/>
14717 <param name="y" type="unsigned long" dir="in"/>
14718 </method>
14719
14720 </interface>
14721
14722 <interface
14723 name="IDisplay" extends="$unknown"
14724 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14725 wsmap="managed"
14726 >
14727 <desc>
14728 The IDisplay interface represents the virtual machine's display.
14729
14730 The object implementing this interface is contained in each
14731 <link to="IConsole::display"/> attribute and represents the visual
14732 output of the virtual machine.
14733
14734 The virtual display supports pluggable output targets represented by the
14735 IFramebuffer interface. Examples of the output target are a window on
14736 the host computer or an RDP session's display on a remote computer.
14737 </desc>
14738 <method name="getScreenResolution">
14739 <desc>Queries display width, height and color depth for given screen.</desc>
14740 <param name="screenId" type="unsigned long" dir="in"/>
14741 <param name="width" type="unsigned long" dir="out"/>
14742 <param name="height" type="unsigned long" dir="out"/>
14743 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14744 </method>
14745
14746 <method name="setFramebuffer">
14747 <desc>
14748 Sets the framebuffer for given screen.
14749 </desc>
14750 <param name="screenId" type="unsigned long" dir="in"/>
14751 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14752 </method>
14753
14754 <method name="getFramebuffer">
14755 <desc>
14756 Queries the framebuffer for given screen.
14757 </desc>
14758 <param name="screenId" type="unsigned long" dir="in"/>
14759 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14760 <param name="xOrigin" type="long" dir="out"/>
14761 <param name="yOrigin" type="long" dir="out"/>
14762 </method>
14763
14764 <method name="setVideoModeHint">
14765 <desc>
14766 Asks VirtualBox to request the given video mode from
14767 the guest. This is just a hint and it cannot be guaranteed
14768 that the requested resolution will be used. Guest Additions
14769 are required for the request to be seen by guests. The caller
14770 should issue the request and wait for a resolution change and
14771 after a timeout retry.
14772
14773 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14774 parameters means that the corresponding values should be taken from the
14775 current video mode (i.e. left unchanged).
14776
14777 If the guest OS supports multi-monitor configuration then the @a display
14778 parameter specifies the number of the guest display to send the hint to:
14779 @c 0 is the primary display, @c 1 is the first secondary and
14780 so on. If the multi-monitor configuration is not supported, @a display
14781 must be @c 0.
14782
14783 <result name="E_INVALIDARG">
14784 The @a display is not associated with any monitor.
14785 </result>
14786
14787 </desc>
14788 <param name="display" type="unsigned long" dir="in">
14789 <desc>
14790 The number of the guest display to send the hint to.
14791 </desc>
14792 </param>
14793 <param name="enabled" type="boolean" dir="in">
14794 <desc>
14795 @c True, if this guest screen is enabled,
14796 @c False otherwise.
14797 </desc>
14798 </param>
14799 <param name="changeOrigin" type="boolean" dir="in">
14800 <desc>
14801 @c True, if the origin of the guest screen should be changed,
14802 @c False otherwise.
14803 </desc>
14804 </param>
14805 <param name="originX" type="long" dir="in">
14806 <desc>
14807 The X origin of the guest screen.
14808 </desc>
14809 </param>
14810 <param name="originY" type="long" dir="in">
14811 <desc>
14812 The Y origin of the guest screen.
14813 </desc>
14814 </param>
14815 <param name="width" type="unsigned long" dir="in"/>
14816 <param name="height" type="unsigned long" dir="in"/>
14817 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14818 </method>
14819
14820 <method name="setSeamlessMode">
14821 <desc>
14822 Enables or disables seamless guest display rendering (seamless desktop
14823 integration) mode.
14824 <note>
14825 Calling this method has no effect if <link
14826 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14827 does not return @c Active.
14828 </note>
14829 </desc>
14830 <param name="enabled" type="boolean" dir="in"/>
14831 </method>
14832
14833 <method name="takeScreenShot">
14834 <desc>
14835 Takes a screen shot of the requested size and copies it to the
14836 32-bpp buffer allocated by the caller and pointed to by @a address.
14837 A pixel consists of 4 bytes in order: B, G, R, 0.
14838
14839 <note>This API can be used only locally by a VM process through the
14840 COM/XPCOM C++ API as it requires pointer support. It is not
14841 available for scripting langages, Java or any webservice clients.
14842 Unless you are writing a new VM frontend use
14843 <link to="#takeScreenShotToArray" />.
14844 </note>
14845
14846 <result name="E_NOTIMPL">
14847 Feature not implemented.
14848 </result>
14849 <result name="VBOX_E_IPRT_ERROR">
14850 Could not take a screenshot.
14851 </result>
14852
14853 </desc>
14854 <param name="screenId" type="unsigned long" dir="in"/>
14855 <param name="address" type="octet" mod="ptr" dir="in"/>
14856 <param name="width" type="unsigned long" dir="in"/>
14857 <param name="height" type="unsigned long" dir="in"/>
14858 </method>
14859
14860 <method name="takeScreenShotToArray">
14861 <desc>
14862 Takes a guest screen shot of the requested size and returns it as
14863 an array of bytes in uncompressed 32-bit RGBA format.
14864 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14865
14866 This API is slow, but could be the only option to get guest screenshot
14867 for scriptable languages not allowed to manipulate with addresses
14868 directly.
14869
14870 <result name="E_NOTIMPL">
14871 Feature not implemented.
14872 </result>
14873 <result name="VBOX_E_IPRT_ERROR">
14874 Could not take a screenshot.
14875 </result>
14876 </desc>
14877 <param name="screenId" type="unsigned long" dir="in">
14878 <desc>
14879 Monitor to take screenshot from.
14880 </desc>
14881 </param>
14882 <param name="width" type="unsigned long" dir="in">
14883 <desc>
14884 Desired image width.
14885 </desc>
14886 </param>
14887 <param name="height" type="unsigned long" dir="in">
14888 <desc>
14889 Desired image height.
14890 </desc>
14891 </param>
14892 <param name="screenData" type="octet" dir="return" safearray="yes">
14893 <desc>
14894 Array with resulting screen data.
14895 </desc>
14896 </param>
14897 </method>
14898
14899 <method name="takeScreenShotPNGToArray">
14900 <desc>
14901 Takes a guest screen shot of the requested size and returns it as
14902 PNG image in array.
14903
14904 <result name="E_NOTIMPL">
14905 Feature not implemented.
14906 </result>
14907 <result name="VBOX_E_IPRT_ERROR">
14908 Could not take a screenshot.
14909 </result>
14910 </desc>
14911 <param name="screenId" type="unsigned long" dir="in">
14912 <desc>
14913 Monitor to take the screenshot from.
14914 </desc>
14915 </param>
14916 <param name="width" type="unsigned long" dir="in">
14917 <desc>
14918 Desired image width.
14919 </desc>
14920 </param>
14921 <param name="height" type="unsigned long" dir="in">
14922 <desc>
14923 Desired image height.
14924 </desc>
14925 </param>
14926 <param name="screenData" type="octet" dir="return" safearray="yes">
14927 <desc>
14928 Array with resulting screen data.
14929 </desc>
14930 </param>
14931 </method>
14932
14933 <method name="drawToScreen">
14934 <desc>
14935 Draws a 32-bpp image of the specified size from the given buffer
14936 to the given point on the VM display.
14937
14938 <result name="E_NOTIMPL">
14939 Feature not implemented.
14940 </result>
14941 <result name="VBOX_E_IPRT_ERROR">
14942 Could not draw to screen.
14943 </result>
14944
14945 </desc>
14946 <param name="screenId" type="unsigned long" dir="in">
14947 <desc>
14948 Monitor to take the screenshot from.
14949 </desc>
14950 </param>
14951 <param name="address" type="octet" mod="ptr" dir="in">
14952 <desc>
14953 Address to store the screenshot to
14954 </desc>
14955 </param>
14956 <param name="x" type="unsigned long" dir="in">
14957 <desc>
14958 Relative to the screen top left corner.
14959 </desc>
14960 </param>
14961 <param name="y" type="unsigned long" dir="in">
14962 <desc>
14963 Relative to the screen top left corner.
14964 </desc>
14965 </param>
14966 <param name="width" type="unsigned long" dir="in">
14967 <desc>
14968 Desired image width.
14969 </desc>
14970 </param>
14971 <param name="height" type="unsigned long" dir="in">
14972 <desc>
14973 Desired image height.
14974 </desc>
14975 </param>
14976 </method>
14977
14978 <method name="invalidateAndUpdate">
14979 <desc>
14980 Does a full invalidation of the VM display and instructs the VM
14981 to update it.
14982
14983 <result name="VBOX_E_IPRT_ERROR">
14984 Could not invalidate and update screen.
14985 </result>
14986
14987 </desc>
14988 </method>
14989
14990 <method name="resizeCompleted">
14991 <desc>
14992 Signals that a framebuffer has completed the resize operation.
14993
14994 <result name="VBOX_E_NOT_SUPPORTED">
14995 Operation only valid for external frame buffers.
14996 </result>
14997
14998 </desc>
14999 <param name="screenId" type="unsigned long" dir="in"/>
15000 </method>
15001
15002 <method name="completeVHWACommand">
15003 <desc>
15004 Signals that the Video HW Acceleration command has completed.
15005 </desc>
15006
15007 <param name="command" type="octet" mod="ptr" dir="in">
15008 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
15009 </param>
15010 </method>
15011
15012 <method name="viewportChanged">
15013 <desc>
15014 Signals that framebuffer window viewport has changed.
15015
15016 <result name="E_INVALIDARG">
15017 The specified viewport data is invalid.
15018 </result>
15019
15020 </desc>
15021
15022 <param name="screenId" type="unsigned long" dir="in">
15023 <desc>
15024 Monitor to take the screenshot from.
15025 </desc>
15026 </param>
15027 <param name="x" type="unsigned long" dir="in">
15028 <desc>
15029 Framebuffer x offset.
15030 </desc>
15031 </param>
15032 <param name="y" type="unsigned long" dir="in">
15033 <desc>
15034 Framebuffer y offset.
15035 </desc>
15036 </param>
15037 <param name="width" type="unsigned long" dir="in">
15038 <desc>
15039 Viewport width.
15040 </desc>
15041 </param>
15042 <param name="height" type="unsigned long" dir="in">
15043 <desc>
15044 Viewport height.
15045 </desc>
15046 </param>
15047 </method>
15048 </interface>
15049
15050 <!--
15051 // INetworkAdapter
15052 /////////////////////////////////////////////////////////////////////////
15053 -->
15054
15055 <enum
15056 name="NetworkAttachmentType"
15057 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
15058 >
15059 <desc>
15060 Network attachment type.
15061 </desc>
15062
15063 <const name="Null" value="0">
15064 <desc>Null value, also means "not attached".</desc>
15065 </const>
15066 <const name="NAT" value="1"/>
15067 <const name="Bridged" value="2"/>
15068 <const name="Internal" value="3"/>
15069 <const name="HostOnly" value="4"/>
15070 <const name="Generic" value="5"/>
15071 </enum>
15072
15073 <enum
15074 name="NetworkAdapterType"
15075 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
15076 >
15077 <desc>
15078 Network adapter type.
15079 </desc>
15080
15081 <const name="Null" value="0">
15082 <desc>Null value (never used by the API).</desc>
15083 </const>
15084 <const name="Am79C970A" value="1">
15085 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
15086 </const>
15087 <const name="Am79C973" value="2">
15088 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
15089 </const>
15090 <const name="I82540EM" value="3">
15091 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
15092 </const>
15093 <const name="I82543GC" value="4">
15094 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
15095 </const>
15096 <const name="I82545EM" value="5">
15097 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
15098 </const>
15099 <const name="Virtio" value="6">
15100 <desc>Virtio network device.</desc>
15101 </const>
15102 </enum>
15103
15104 <enum
15105 name="NetworkAdapterPromiscModePolicy"
15106 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
15107 >
15108 <desc>
15109 The promiscuous mode policy of an interface.
15110 </desc>
15111
15112 <const name="Deny" value="1">
15113 <desc>Deny promiscuous mode requests.</desc>
15114 </const>
15115 <const name="AllowNetwork" value="2">
15116 <desc>
15117 Allow promicuous mode, but restrict the scope it to the internal
15118 network so that it only applies to other VMs.
15119 </desc>
15120 </const>
15121 <const name="AllowAll" value="3">
15122 <desc>
15123 Allow promicuous mode, include unrelated traffic going over the wire
15124 and internally on the host.
15125 </desc>
15126 </const>
15127 </enum>
15128
15129 <interface
15130 name="INetworkAdapter" extends="$unknown"
15131 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
15132 wsmap="managed"
15133 >
15134 <desc>
15135 Represents a virtual network adapter that is attached to a virtual machine.
15136 Each virtual machine has a fixed number of network adapter slots with one
15137 instance of this attached to each of them. Call
15138 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
15139 is attached to a given slot in a given machine.
15140
15141 Each network adapter can be in one of five attachment modes, which are
15142 represented by the <link to="NetworkAttachmentType" /> enumeration;
15143 see the <link to="#attachmentType" /> attribute.
15144 </desc>
15145
15146 <attribute name="adapterType" type="NetworkAdapterType">
15147 <desc>
15148 Type of the virtual network adapter. Depending on this value,
15149 VirtualBox will provide a different virtual network hardware
15150 to the guest.
15151 </desc>
15152 </attribute>
15153
15154 <attribute name="slot" type="unsigned long" readonly="yes">
15155 <desc>
15156 Slot number this adapter is plugged into. Corresponds to
15157 the value you pass to <link to="IMachine::getNetworkAdapter"/>
15158 to obtain this instance.
15159 </desc>
15160 </attribute>
15161
15162 <attribute name="enabled" type="boolean">
15163 <desc>
15164 Flag whether the network adapter is present in the
15165 guest system. If disabled, the virtual guest hardware will
15166 not contain this network adapter. Can only be changed when
15167 the VM is not running.
15168 </desc>
15169 </attribute>
15170
15171 <attribute name="MACAddress" type="wstring">
15172 <desc>
15173 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
15174 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
15175 </desc>
15176 </attribute>
15177
15178 <attribute name="attachmentType" type="NetworkAttachmentType">
15179 <desc>
15180 Sets/Gets network attachment type of this network adapter.
15181 </desc>
15182 </attribute>
15183
15184 <attribute name="bridgedInterface" type="wstring">
15185 <desc>
15186 Name of the network interface the VM should be bridged to.
15187 </desc>
15188 </attribute>
15189
15190 <attribute name="hostOnlyInterface" type="wstring">
15191 <desc>
15192 Name of the host only network interface the VM is attached to.
15193 </desc>
15194 </attribute>
15195
15196 <attribute name="internalNetwork" type="wstring">
15197 <desc>
15198 Name of the internal network the VM is attached to.
15199 </desc>
15200 </attribute>
15201
15202 <attribute name="NATNetwork" type="wstring">
15203 <desc>
15204 Name of the NAT network the VM is attached to.
15205 </desc>
15206 </attribute>
15207
15208 <attribute name="genericDriver" type="wstring">
15209 <desc>
15210 Name of the driver to use for the "Generic" network attachment type.
15211 </desc>
15212 </attribute>
15213
15214 <attribute name="cableConnected" type="boolean">
15215 <desc>
15216 Flag whether the adapter reports the cable as connected or not.
15217 It can be used to report offline situations to a VM.
15218 </desc>
15219 </attribute>
15220
15221 <attribute name="lineSpeed" type="unsigned long">
15222 <desc>
15223 Line speed reported by custom drivers, in units of 1 kbps.
15224 </desc>
15225 </attribute>
15226
15227 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
15228 <desc>
15229 The promiscuous mode policy of the network adapter when attached to an
15230 internal network, host only network or a bridge.
15231 </desc>
15232 </attribute>
15233
15234 <attribute name="traceEnabled" type="boolean">
15235 <desc>
15236 Flag whether network traffic from/to the network card should be traced.
15237 Can only be toggled when the VM is turned off.
15238 </desc>
15239 </attribute>
15240
15241 <attribute name="traceFile" type="wstring">
15242 <desc>
15243 Filename where a network trace will be stored. If not set, VBox-pid.pcap
15244 will be used.
15245 </desc>
15246 </attribute>
15247
15248 <attribute name="NATEngine" type="INATEngine" readonly="yes">
15249 <desc>
15250 Points to the NAT engine which handles the network address translation
15251 for this interface. This is active only when the interface actually uses
15252 NAT.
15253 </desc>
15254 </attribute>
15255
15256 <attribute name="bootPriority" type="unsigned long">
15257 <desc>
15258 Network boot priority of the adapter. Priority 1 is highest. If not set,
15259 the priority is considered to be at the lowest possible setting.
15260 </desc>
15261 </attribute>
15262
15263 <attribute name="bandwidthGroup" type="IBandwidthGroup">
15264 <desc>The bandwidth group this network adapter is assigned to.</desc>
15265 </attribute>
15266
15267 <!-- property methods -->
15268
15269 <method name="getProperty" const="yes">
15270 <desc>
15271 Returns the value of the network attachment property with the given name.
15272
15273 If the requested data @a key does not exist, this function will
15274 succeed and return an empty string in the @a value argument.
15275
15276 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15277 </desc>
15278 <param name="key" type="wstring" dir="in">
15279 <desc>Name of the property to get.</desc>
15280 </param>
15281 <param name="value" type="wstring" dir="return">
15282 <desc>Current property value.</desc>
15283 </param>
15284 </method>
15285
15286 <method name="setProperty">
15287 <desc>
15288 Sets the value of the network attachment property with the given name.
15289
15290 Setting the property value to @c null or an empty string is equivalent
15291 to deleting the existing value.
15292
15293 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15294 </desc>
15295 <param name="key" type="wstring" dir="in">
15296 <desc>Name of the property to set.</desc>
15297 </param>
15298 <param name="value" type="wstring" dir="in">
15299 <desc>Property value to set.</desc>
15300 </param>
15301 </method>
15302
15303 <method name="getProperties" const="yes">
15304 <desc>
15305 Returns values for a group of properties in one call.
15306
15307 The names of the properties to get are specified using the @a names
15308 argument which is a list of comma-separated property names or
15309 an empty string if all properties are to be returned.
15310 <note>Currently the value of this argument is ignored and the method
15311 always returns all existing properties.</note>
15312
15313 The method returns two arrays, the array of property names corresponding
15314 to the @a names argument and the current values of these properties.
15315 Both arrays have the same number of elements with each element at the
15316 given index in the first array corresponds to an element at the same
15317 index in the second array.
15318 </desc>
15319 <param name="names" type="wstring" dir="in">
15320 <desc>
15321 Names of properties to get.
15322 </desc>
15323 </param>
15324 <param name="returnNames" type="wstring" safearray="yes" dir="out">
15325 <desc>Names of returned properties.</desc>
15326 </param>
15327 <param name="returnValues" type="wstring" safearray="yes" dir="return">
15328 <desc>Values of returned properties.</desc>
15329 </param>
15330 </method>
15331
15332 </interface>
15333
15334
15335 <!--
15336 // ISerialPort
15337 /////////////////////////////////////////////////////////////////////////
15338 -->
15339
15340 <enum
15341 name="PortMode"
15342 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
15343 >
15344 <desc>
15345 The PortMode enumeration represents possible communication modes for
15346 the virtual serial port device.
15347 </desc>
15348
15349 <const name="Disconnected" value="0">
15350 <desc>Virtual device is not attached to any real host device.</desc>
15351 </const>
15352 <const name="HostPipe" value="1">
15353 <desc>Virtual device is attached to a host pipe.</desc>
15354 </const>
15355 <const name="HostDevice" value="2">
15356 <desc>Virtual device is attached to a host device.</desc>
15357 </const>
15358 <const name="RawFile" value="3">
15359 <desc>Virtual device is attached to a raw file.</desc>
15360 </const>
15361 </enum>
15362
15363 <interface
15364 name="ISerialPort" extends="$unknown"
15365 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
15366 wsmap="managed"
15367 >
15368
15369 <desc>
15370 The ISerialPort interface represents the virtual serial port device.
15371
15372 The virtual serial port device acts like an ordinary serial port
15373 inside the virtual machine. This device communicates to the real
15374 serial port hardware in one of two modes: host pipe or host device.
15375
15376 In host pipe mode, the #path attribute specifies the path to the pipe on
15377 the host computer that represents a serial port. The #server attribute
15378 determines if this pipe is created by the virtual machine process at
15379 machine startup or it must already exist before starting machine
15380 execution.
15381
15382 In host device mode, the #path attribute specifies the name of the
15383 serial port device on the host computer.
15384
15385 There is also a third communication mode: the disconnected mode. In this
15386 mode, the guest OS running inside the virtual machine will be able to
15387 detect the serial port, but all port write operations will be discarded
15388 and all port read operations will return no data.
15389
15390 <see><link to="IMachine::getSerialPort"/></see>
15391 </desc>
15392
15393 <attribute name="slot" type="unsigned long" readonly="yes">
15394 <desc>
15395 Slot number this serial port is plugged into. Corresponds to
15396 the value you pass to <link to="IMachine::getSerialPort"/>
15397 to obtain this instance.
15398 </desc>
15399 </attribute>
15400
15401 <attribute name="enabled" type="boolean">
15402 <desc>
15403 Flag whether the serial port is enabled. If disabled,
15404 the serial port will not be reported to the guest OS.
15405 </desc>
15406 </attribute>
15407
15408 <attribute name="IOBase" type="unsigned long">
15409 <desc>Base I/O address of the serial port.</desc>
15410 </attribute>
15411
15412 <attribute name="IRQ" type="unsigned long">
15413 <desc>IRQ number of the serial port.</desc>
15414 </attribute>
15415
15416 <attribute name="hostMode" type="PortMode">
15417 <desc>
15418 How is this port connected to the host.
15419 <note>
15420 Changing this attribute may fail if the conditions for
15421 <link to="#path"/> are not met.
15422 </note>
15423 </desc>
15424 </attribute>
15425
15426 <attribute name="server" type="boolean">
15427 <desc>
15428 Flag whether this serial port acts as a server (creates a new pipe on
15429 the host) or as a client (uses the existing pipe). This attribute is
15430 used only when <link to="#hostMode"/> is PortMode_HostPipe.
15431 </desc>
15432 </attribute>
15433
15434 <attribute name="path" type="wstring">
15435 <desc>
15436 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
15437 PortMode_HostPipe, or the host serial device name when
15438 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
15439 cases, setting a @c null or empty string as the attribute's value
15440 is an error. Otherwise, the value of this property is ignored.
15441 </desc>
15442 </attribute>
15443
15444 </interface>
15445
15446 <!--
15447 // IParallelPort
15448 /////////////////////////////////////////////////////////////////////////
15449 -->
15450
15451 <interface
15452 name="IParallelPort" extends="$unknown"
15453 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
15454 wsmap="managed"
15455 >
15456
15457 <desc>
15458 The IParallelPort interface represents the virtual parallel port device.
15459
15460 The virtual parallel port device acts like an ordinary parallel port
15461 inside the virtual machine. This device communicates to the real
15462 parallel port hardware using the name of the parallel device on the host
15463 computer specified in the #path attribute.
15464
15465 Each virtual parallel port device is assigned a base I/O address and an
15466 IRQ number that will be reported to the guest operating system and used
15467 to operate the given parallel port from within the virtual machine.
15468
15469 <see><link to="IMachine::getParallelPort"/></see>
15470 </desc>
15471
15472 <attribute name="slot" type="unsigned long" readonly="yes">
15473 <desc>
15474 Slot number this parallel port is plugged into. Corresponds to
15475 the value you pass to <link to="IMachine::getParallelPort"/>
15476 to obtain this instance.
15477 </desc>
15478 </attribute>
15479
15480 <attribute name="enabled" type="boolean">
15481 <desc>
15482 Flag whether the parallel port is enabled. If disabled,
15483 the parallel port will not be reported to the guest OS.
15484 </desc>
15485 </attribute>
15486
15487 <attribute name="IOBase" type="unsigned long">
15488 <desc>Base I/O address of the parallel port.</desc>
15489 </attribute>
15490
15491 <attribute name="IRQ" type="unsigned long">
15492 <desc>IRQ number of the parallel port.</desc>
15493 </attribute>
15494
15495 <attribute name="path" type="wstring">
15496 <desc>
15497 Host parallel device name. If this parallel port is enabled, setting a
15498 @c null or an empty string as this attribute's value will result in
15499 an error.
15500 </desc>
15501 </attribute>
15502
15503 </interface>
15504
15505
15506 <!--
15507 // IMachineDebugger
15508 /////////////////////////////////////////////////////////////////////////
15509 -->
15510
15511 <interface
15512 name="IMachineDebugger" extends="$unknown"
15513 uuid="a9abbb7c-d678-43b2-bed2-19ec0e32303d"
15514 wsmap="suppress"
15515 >
15516 <method name="dumpGuestCore">
15517 <desc>
15518 Takes a core dump of the guest.
15519
15520 See include/VBox/dbgfcorefmt.h for details on the file format.
15521 </desc>
15522 <param name="filename" type="wstring" dir="in">
15523 <desc>
15524 The name of the output file. The file must not exist.
15525 </desc>
15526 </param>
15527 <param name="compression" type="wstring" dir="in">
15528 <desc>
15529 Reserved for future compression method indicator.
15530 </desc>
15531 </param>
15532 </method>
15533
15534 <method name="dumpHostProcessCore">
15535 <desc>
15536 Takes a core dump of the VM process on the host.
15537
15538 This feature is not implemented in the 4.0.0 release but it may show up
15539 in a dot release.
15540 </desc>
15541 <param name="filename" type="wstring" dir="in">
15542 <desc>
15543 The name of the output file. The file must not exist.
15544 </desc>
15545 </param>
15546 <param name="compression" type="wstring" dir="in">
15547 <desc>
15548 Reserved for future compression method indicator.
15549 </desc>
15550 </param>
15551 </method>
15552
15553 <method name="info">
15554 <desc>
15555 Interfaces with the info dumpers (DBGFInfo).
15556
15557 This feature is not implemented in the 4.0.0 release but it may show up
15558 in a dot release.
15559 </desc>
15560 <param name="name" type="wstring" dir="in">
15561 <desc>
15562 The name of the info item.
15563 </desc>
15564 </param>
15565 <param name="args" type="wstring" dir="in">
15566 <desc>
15567 Arguments to the info dumper.
15568 </desc>
15569 </param>
15570 <param name="info" type="wstring" dir="return">
15571 <desc>
15572 The into string.
15573 </desc>
15574 </param>
15575 </method>
15576
15577 <method name="injectNMI">
15578 <desc>
15579 Inject an NMI into a running VT-x/AMD-V VM.
15580 </desc>
15581 </method>
15582
15583 <method name="modifyLogGroups">
15584 <desc>
15585 Modifies the group settings of the debug or release logger.
15586 </desc>
15587 <param name="settings" type="wstring" dir="in">
15588 <desc>
15589 The group settings string. See iprt/log.h for details. To target the
15590 release logger, prefix the string with "release:".
15591 </desc>
15592 </param>
15593 </method>
15594
15595 <method name="modifyLogFlags">
15596 <desc>
15597 Modifies the debug or release logger flags.
15598 </desc>
15599 <param name="settings" type="wstring" dir="in">
15600 <desc>
15601 The flags settings string. See iprt/log.h for details. To target the
15602 release logger, prefix the string with "release:".
15603 </desc>
15604 </param>
15605 </method>
15606
15607 <method name="modifyLogDestinations">
15608 <desc>
15609 Modifies the debug or release logger destinations.
15610 </desc>
15611 <param name="settings" type="wstring" dir="in">
15612 <desc>
15613 The destination settings string. See iprt/log.h for details. To target the
15614 release logger, prefix the string with "release:".
15615 </desc>
15616 </param>
15617 </method>
15618
15619 <method name="readPhysicalMemory">
15620 <desc>
15621 Reads guest physical memory, no side effects (MMIO++).
15622
15623 This feature is not implemented in the 4.0.0 release but may show up
15624 in a dot release.
15625 </desc>
15626 <param name="address" type="long long" dir="in">
15627 <desc>The guest physical address.</desc>
15628 </param>
15629 <param name="size" type="unsigned long" dir="in">
15630 <desc>The number of bytes to read.</desc>
15631 </param>
15632 <param name="bytes" type="octet" safearray="yes" dir="return">
15633 <desc>The bytes read.</desc>
15634 </param>
15635 </method>
15636
15637 <method name="writePhysicalMemory">
15638 <desc>
15639 Writes guest physical memory, access handles (MMIO++) are ignored.
15640
15641 This feature is not implemented in the 4.0.0 release but may show up
15642 in a dot release.
15643 </desc>
15644 <param name="address" type="long long" dir="in">
15645 <desc>The guest physical address.</desc>
15646 </param>
15647 <param name="size" type="unsigned long" dir="in">
15648 <desc>The number of bytes to read.</desc>
15649 </param>
15650 <param name="bytes" type="octet" safearray="yes" dir="in">
15651 <desc>The bytes to write.</desc>
15652 </param>
15653 </method>
15654
15655 <method name="readVirtualMemory">
15656 <desc>
15657 Reads guest virtual memory, no side effects (MMIO++).
15658
15659 This feature is not implemented in the 4.0.0 release but may show up
15660 in a dot release.
15661 </desc>
15662 <param name="cpuId" type="unsigned long" dir="in">
15663 <desc>The identifier of the Virtual CPU.</desc>
15664 </param>
15665 <param name="address" type="long long" dir="in">
15666 <desc>The guest virtual address.</desc>
15667 </param>
15668 <param name="size" type="unsigned long" dir="in">
15669 <desc>The number of bytes to read.</desc>
15670 </param>
15671 <param name="bytes" type="octet" safearray="yes" dir="return">
15672 <desc>The bytes read.</desc>
15673 </param>
15674 </method>
15675
15676 <method name="writeVirtualMemory">
15677 <desc>
15678 Writes guest virtual memory, access handles (MMIO++) are ignored.
15679
15680 This feature is not implemented in the 4.0.0 release but may show up
15681 in a dot release.
15682 </desc>
15683 <param name="cpuId" type="unsigned long" dir="in">
15684 <desc>The identifier of the Virtual CPU.</desc>
15685 </param>
15686 <param name="address" type="long long" dir="in">
15687 <desc>The guest virtual address.</desc>
15688 </param>
15689 <param name="size" type="unsigned long" dir="in">
15690 <desc>The number of bytes to read.</desc>
15691 </param>
15692 <param name="bytes" type="octet" safearray="yes" dir="in">
15693 <desc>The bytes to write.</desc>
15694 </param>
15695 </method>
15696
15697 <method name="detectOS">
15698 <desc>
15699 Tries to (re-)detect the guest OS kernel.
15700
15701 This feature is not implemented in the 4.0.0 release but may show up
15702 in a dot release.
15703 </desc>
15704 <param name="os" type="wstring" dir="return">
15705 <desc>
15706 The detected OS kernel on success.
15707 </desc>
15708 </param>
15709 </method>
15710
15711 <method name="getRegister">
15712 <desc>
15713 Gets one register.
15714
15715 This feature is not implemented in the 4.0.0 release but may show up
15716 in a dot release.
15717 </desc>
15718 <param name="cpuId" type="unsigned long" dir="in">
15719 <desc>The identifier of the Virtual CPU.</desc>
15720 </param>
15721 <param name="name" type="wstring" dir="in">
15722 <desc>The register name, case is ignored.</desc>
15723 </param>
15724 <param name="value" type="wstring" dir="return">
15725 <desc>
15726 The register value. This is usually a hex value (always 0x prefixed)
15727 but other format may be used for floating point registers (TBD).
15728 </desc>
15729 </param>
15730 </method>
15731
15732 <method name="getRegisters">
15733 <desc>
15734 Gets all the registers for the given CPU.
15735
15736 This feature is not implemented in the 4.0.0 release but may show up
15737 in a dot release.
15738 </desc>
15739 <param name="cpuId" type="unsigned long" dir="in">
15740 <desc>The identifier of the Virtual CPU.</desc>
15741 </param>
15742 <param name="names" type="wstring" dir="out" safearray="yes">
15743 <desc>Array containing the lowercase register names.</desc>
15744 </param>
15745 <param name="values" type="wstring" dir="out" safearray="yes">
15746 <desc>
15747 Array paralell to the names holding the register values as if the
15748 register was returned by <link to="IMachineDebugger::getRegister"/>.
15749 </desc>
15750 </param>
15751 </method>
15752
15753 <method name="setRegister">
15754 <desc>
15755 Gets one register.
15756
15757 This feature is not implemented in the 4.0.0 release but may show up
15758 in a dot release.
15759 </desc>
15760 <param name="cpuId" type="unsigned long" dir="in">
15761 <desc>The identifier of the Virtual CPU.</desc>
15762 </param>
15763 <param name="name" type="wstring" dir="in">
15764 <desc>The register name, case is ignored.</desc>
15765 </param>
15766 <param name="value" type="wstring" dir="in">
15767 <desc>
15768 The new register value. Hexadecimal, decimal and octal formattings
15769 are supported in addition to any special formattings returned by
15770 the getters.
15771 </desc>
15772 </param>
15773 </method>
15774
15775 <method name="setRegisters">
15776 <desc>
15777 Sets zero or more registers atomically.
15778
15779 This feature is not implemented in the 4.0.0 release but may show up
15780 in a dot release.
15781 </desc>
15782 <param name="cpuId" type="unsigned long" dir="in">
15783 <desc>The identifier of the Virtual CPU.</desc>
15784 </param>
15785 <param name="names" type="wstring" dir="in" safearray="yes">
15786 <desc>Array containing the register names, case ignored.</desc>
15787 </param>
15788 <param name="values" type="wstring" dir="in" safearray="yes">
15789 <desc>
15790 Array paralell to the names holding the register values. See
15791 <link to="IMachineDebugger::setRegister"/> for formatting
15792 guidelines.
15793 </desc>
15794 </param>
15795 </method>
15796
15797 <method name="dumpGuestStack">
15798 <desc>
15799 Produce a simple stack dump using the current guest state.
15800
15801 This feature is not implemented in the 4.0.0 release but may show up
15802 in a dot release.
15803 </desc>
15804 <param name="cpuId" type="unsigned long" dir="in">
15805 <desc>The identifier of the Virtual CPU.</desc>
15806 </param>
15807 <param name="stack" type="wstring" dir="return">
15808 <desc>String containing the formatted stack dump.</desc>
15809 </param>
15810 </method>
15811
15812 <method name="resetStats">
15813 <desc>
15814 Reset VM statistics.
15815 </desc>
15816 <param name="pattern" type="wstring" dir="in">
15817 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15818 </param>
15819 </method>
15820
15821 <method name="dumpStats">
15822 <desc>
15823 Dumps VM statistics.
15824 </desc>
15825 <param name="pattern" type="wstring" dir="in">
15826 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15827 </param>
15828 </method>
15829
15830 <method name="getStats">
15831 <desc>
15832 Get the VM statistics in a XMLish format.
15833 </desc>
15834 <param name="pattern" type="wstring" dir="in">
15835 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15836 </param>
15837 <param name="withDescriptions" type="boolean" dir="in">
15838 <desc>Whether to include the descriptions.</desc>
15839 </param>
15840 <param name="stats" type="wstring" dir="out">
15841 <desc>The XML document containing the statistics.</desc>
15842 </param>
15843 </method>
15844
15845 <attribute name="singleStep" type="boolean">
15846 <desc>Switch for enabling single-stepping.</desc>
15847 </attribute>
15848
15849 <attribute name="recompileUser" type="boolean">
15850 <desc>Switch for forcing code recompilation for user mode code.</desc>
15851 </attribute>
15852
15853 <attribute name="recompileSupervisor" type="boolean">
15854 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15855 </attribute>
15856
15857 <attribute name="PATMEnabled" type="boolean">
15858 <desc>Switch for enabling and disabling the PATM component.</desc>
15859 </attribute>
15860
15861 <attribute name="CSAMEnabled" type="boolean">
15862 <desc>Switch for enabling and disabling the CSAM component.</desc>
15863 </attribute>
15864
15865 <attribute name="logEnabled" type="boolean">
15866 <desc>Switch for enabling and disabling the debug logger.</desc>
15867 </attribute>
15868
15869 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15870 <desc>The debug logger flags.</desc>
15871 </attribute>
15872
15873 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15874 <desc>The debug logger's group settings.</desc>
15875 </attribute>
15876
15877 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15878 <desc>The debug logger's destination settings.</desc>
15879 </attribute>
15880
15881 <attribute name="logRelFlags" type="wstring" readonly="yes">
15882 <desc>The release logger flags.</desc>
15883 </attribute>
15884
15885 <attribute name="logRelGroups" type="wstring" readonly="yes">
15886 <desc>The release logger's group settings.</desc>
15887 </attribute>
15888
15889 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15890 <desc>The relase logger's destination settings.</desc>
15891 </attribute>
15892
15893 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15894 <desc>
15895 Flag indicating whether the VM is currently making use of CPU hardware
15896 virtualization extensions.
15897 </desc>
15898 </attribute>
15899
15900 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15901 <desc>
15902 Flag indicating whether the VM is currently making use of the nested paging
15903 CPU hardware virtualization extension.
15904 </desc>
15905 </attribute>
15906
15907 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15908 <desc>
15909 Flag indicating whether the VM is currently making use of the VPID
15910 VT-x extension.
15911 </desc>
15912 </attribute>
15913
15914 <attribute name="OSName" type="wstring" readonly="yes">
15915 <desc>
15916 Query the guest OS kernel name as detected by the DBGF.
15917
15918 This feature is not implemented in the 4.0.0 release but may show up
15919 in a dot release.
15920 </desc>
15921 </attribute>
15922
15923 <attribute name="OSVersion" type="wstring" readonly="yes">
15924 <desc>
15925 Query the guest OS kernel version string as detected by the DBGF.
15926
15927 This feature is not implemented in the 4.0.0 release but may show up
15928 in a dot release.
15929 </desc>
15930 </attribute>
15931
15932 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15933 <desc>
15934 Flag indicating whether the VM is currently making use of the Physical
15935 Address Extension CPU feature.
15936 </desc>
15937 </attribute>
15938
15939 <attribute name="virtualTimeRate" type="unsigned long">
15940 <desc>
15941 The rate at which the virtual time runs expressed as a percentage.
15942 The accepted range is 2% to 20000%.
15943 </desc>
15944 </attribute>
15945
15946 <attribute name="VM" type="long long" readonly="yes">
15947 <desc>
15948 Gets the VM handle. This is only for internal use while
15949 we carve the details of this interface.
15950 </desc>
15951 </attribute>
15952
15953 </interface>
15954
15955 <!--
15956 // IUSBController
15957 /////////////////////////////////////////////////////////////////////////
15958 -->
15959
15960 <interface
15961 name="IUSBController" extends="$unknown"
15962 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15963 wsmap="managed"
15964 >
15965 <attribute name="enabled" type="boolean">
15966 <desc>
15967 Flag whether the USB controller is present in the
15968 guest system. If disabled, the virtual guest hardware will
15969 not contain any USB controller. Can only be changed when
15970 the VM is powered off.
15971 </desc>
15972 </attribute>
15973
15974 <attribute name="enabledEHCI" type="boolean">
15975 <desc>
15976 Flag whether the USB EHCI controller is present in the
15977 guest system. If disabled, the virtual guest hardware will
15978 not contain a USB EHCI controller. Can only be changed when
15979 the VM is powered off.
15980 </desc>
15981 </attribute>
15982
15983 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15984 <desc>
15985 Flag whether there is an USB proxy available.
15986 </desc>
15987 </attribute>
15988
15989 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15990 <desc>
15991 USB standard version which the controller implements.
15992 This is a BCD which means that the major version is in the
15993 high byte and minor version is in the low byte.
15994 </desc>
15995 </attribute>
15996
15997 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15998 <desc>
15999 List of USB device filters associated with the machine.
16000
16001 If the machine is currently running, these filters are activated
16002 every time a new (supported) USB device is attached to the host
16003 computer that was not ignored by global filters
16004 (<link to="IHost::USBDeviceFilters"/>).
16005
16006 These filters are also activated when the machine is powered up.
16007 They are run against a list of all currently available USB
16008 devices (in states
16009 <link to="USBDeviceState_Available"/>,
16010 <link to="USBDeviceState_Busy"/>,
16011 <link to="USBDeviceState_Held"/>) that were not previously
16012 ignored by global filters.
16013
16014 If at least one filter matches the USB device in question, this
16015 device is automatically captured (attached to) the virtual USB
16016 controller of this machine.
16017
16018 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
16019 </desc>
16020 </attribute>
16021
16022 <method name="createDeviceFilter">
16023 <desc>
16024 Creates a new USB device filter. All attributes except
16025 the filter name are set to empty (any match),
16026 <i>active</i> is @c false (the filter is not active).
16027
16028 The created filter can then be added to the list of filters using
16029 <link to="#insertDeviceFilter"/>.
16030
16031 <result name="VBOX_E_INVALID_VM_STATE">
16032 The virtual machine is not mutable.
16033 </result>
16034
16035 <see><link to="#deviceFilters"/></see>
16036 </desc>
16037 <param name="name" type="wstring" dir="in">
16038 <desc>
16039 Filter name. See <link to="IUSBDeviceFilter::name"/>
16040 for more info.
16041 </desc>
16042 </param>
16043 <param name="filter" type="IUSBDeviceFilter" dir="return">
16044 <desc>Created filter object.</desc>
16045 </param>
16046 </method>
16047
16048 <method name="insertDeviceFilter">
16049 <desc>
16050 Inserts the given USB device to the specified position
16051 in the list of filters.
16052
16053 Positions are numbered starting from <tt>0</tt>. If the specified
16054 position is equal to or greater than the number of elements in
16055 the list, the filter is added to the end of the collection.
16056
16057 <note>
16058 Duplicates are not allowed, so an attempt to insert a
16059 filter that is already in the collection, will return an
16060 error.
16061 </note>
16062
16063 <result name="VBOX_E_INVALID_VM_STATE">
16064 Virtual machine is not mutable.
16065 </result>
16066 <result name="E_INVALIDARG">
16067 USB device filter not created within this VirtualBox instance.
16068 </result>
16069 <result name="VBOX_E_INVALID_OBJECT_STATE">
16070 USB device filter already in list.
16071 </result>
16072
16073 <see><link to="#deviceFilters"/></see>
16074 </desc>
16075 <param name="position" type="unsigned long" dir="in">
16076 <desc>Position to insert the filter to.</desc>
16077 </param>
16078 <param name="filter" type="IUSBDeviceFilter" dir="in">
16079 <desc>USB device filter to insert.</desc>
16080 </param>
16081 </method>
16082
16083 <method name="removeDeviceFilter">
16084 <desc>
16085 Removes a USB device filter from the specified position in the
16086 list of filters.
16087
16088 Positions are numbered starting from <tt>0</tt>. Specifying a
16089 position equal to or greater than the number of elements in
16090 the list will produce an error.
16091
16092 <see><link to="#deviceFilters"/></see>
16093
16094 <result name="VBOX_E_INVALID_VM_STATE">
16095 Virtual machine is not mutable.
16096 </result>
16097 <result name="E_INVALIDARG">
16098 USB device filter list empty or invalid @a position.
16099 </result>
16100
16101 </desc>
16102 <param name="position" type="unsigned long" dir="in">
16103 <desc>Position to remove the filter from.</desc>
16104 </param>
16105 <param name="filter" type="IUSBDeviceFilter" dir="return">
16106 <desc>Removed USB device filter.</desc>
16107 </param>
16108 </method>
16109
16110 </interface>
16111
16112
16113 <!--
16114 // IUSBDevice
16115 /////////////////////////////////////////////////////////////////////////
16116 -->
16117
16118 <interface
16119 name="IUSBDevice" extends="$unknown"
16120 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
16121 wsmap="managed"
16122 >
16123 <desc>
16124 The IUSBDevice interface represents a virtual USB device attached to the
16125 virtual machine.
16126
16127 A collection of objects implementing this interface is stored in the
16128 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
16129 attached to a running virtual machine's USB controller.
16130 </desc>
16131
16132 <attribute name="id" type="uuid" mod="string" readonly="yes">
16133 <desc>
16134 Unique USB device ID. This ID is built from #vendorId,
16135 #productId, #revision and #serialNumber.
16136 </desc>
16137 </attribute>
16138
16139 <attribute name="vendorId" type="unsigned short" readonly="yes">
16140 <desc>Vendor ID.</desc>
16141 </attribute>
16142
16143 <attribute name="productId" type="unsigned short" readonly="yes">
16144 <desc>Product ID.</desc>
16145 </attribute>
16146
16147 <attribute name="revision" type="unsigned short" readonly="yes">
16148 <desc>
16149 Product revision number. This is a packed BCD represented as
16150 unsigned short. The high byte is the integer part and the low
16151 byte is the decimal.
16152 </desc>
16153 </attribute>
16154
16155 <attribute name="manufacturer" type="wstring" readonly="yes">
16156 <desc>Manufacturer string.</desc>
16157 </attribute>
16158
16159 <attribute name="product" type="wstring" readonly="yes">
16160 <desc>Product string.</desc>
16161 </attribute>
16162
16163 <attribute name="serialNumber" type="wstring" readonly="yes">
16164 <desc>Serial number string.</desc>
16165 </attribute>
16166
16167 <attribute name="address" type="wstring" readonly="yes">
16168 <desc>Host specific address of the device.</desc>
16169 </attribute>
16170
16171 <attribute name="port" type="unsigned short" readonly="yes">
16172 <desc>
16173 Host USB port number the device is physically
16174 connected to.
16175 </desc>
16176 </attribute>
16177
16178 <attribute name="version" type="unsigned short" readonly="yes">
16179 <desc>
16180 The major USB version of the device - 1 or 2.
16181 </desc>
16182 </attribute>
16183
16184 <attribute name="portVersion" type="unsigned short" readonly="yes">
16185 <desc>
16186 The major USB version of the host USB port the device is
16187 physically connected to - 1 or 2. For devices not connected to
16188 anything this will have the same value as the version attribute.
16189 </desc>
16190 </attribute>
16191
16192 <attribute name="remote" type="boolean" readonly="yes">
16193 <desc>
16194 Whether the device is physically connected to a remote VRDE
16195 client or to a local host machine.
16196 </desc>
16197 </attribute>
16198
16199 </interface>
16200
16201
16202 <!--
16203 // IUSBDeviceFilter
16204 /////////////////////////////////////////////////////////////////////////
16205 -->
16206
16207 <interface
16208 name="IUSBDeviceFilter" extends="$unknown"
16209 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
16210 wsmap="managed"
16211 >
16212 <desc>
16213 The IUSBDeviceFilter interface represents an USB device filter used
16214 to perform actions on a group of USB devices.
16215
16216 This type of filters is used by running virtual machines to
16217 automatically capture selected USB devices once they are physically
16218 attached to the host computer.
16219
16220 A USB device is matched to the given device filter if and only if all
16221 attributes of the device match the corresponding attributes of the
16222 filter (that is, attributes are joined together using the logical AND
16223 operation). On the other hand, all together, filters in the list of
16224 filters carry the semantics of the logical OR operation. So if it is
16225 desirable to create a match like "this vendor id OR this product id",
16226 one needs to create two filters and specify "any match" (see below)
16227 for unused attributes.
16228
16229 All filter attributes used for matching are strings. Each string
16230 is an expression representing a set of values of the corresponding
16231 device attribute, that will match the given filter. Currently, the
16232 following filtering expressions are supported:
16233
16234 <ul>
16235 <li><i>Interval filters</i>. Used to specify valid intervals for
16236 integer device attributes (Vendor ID, Product ID and Revision).
16237 The format of the string is:
16238
16239 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
16240
16241 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
16242 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
16243 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
16244 is omitted before a dash (<tt>-</tt>), the minimum possible integer
16245 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
16246 possible integer is assumed.
16247 </li>
16248 <li><i>Boolean filters</i>. Used to specify acceptable values for
16249 boolean device attributes. The format of the string is:
16250
16251 <tt>true|false|yes|no|0|1</tt>
16252
16253 </li>
16254 <li><i>Exact match</i>. Used to specify a single value for the given
16255 device attribute. Any string that doesn't start with <tt>int:</tt>
16256 represents the exact match. String device attributes are compared to
16257 this string including case of symbols. Integer attributes are first
16258 converted to a string (see individual filter attributes) and then
16259 compared ignoring case.
16260
16261 </li>
16262 <li><i>Any match</i>. Any value of the corresponding device attribute
16263 will match the given filter. An empty or @c null string is
16264 used to construct this type of filtering expressions.
16265
16266 </li>
16267 </ul>
16268
16269 <note>
16270 On the Windows host platform, interval filters are not currently
16271 available. Also all string filter attributes
16272 (<link to="#manufacturer"/>, <link to="#product"/>,
16273 <link to="#serialNumber"/>) are ignored, so they behave as
16274 <i>any match</i> no matter what string expression is specified.
16275 </note>
16276
16277 <see><link to="IUSBController::deviceFilters"/>,
16278 <link to="IHostUSBDeviceFilter"/></see>
16279 </desc>
16280
16281 <attribute name="name" type="wstring">
16282 <desc>
16283 Visible name for this filter.
16284 This name is used to visually distinguish one filter from another,
16285 so it can neither be @c null nor an empty string.
16286 </desc>
16287 </attribute>
16288
16289 <attribute name="active" type="boolean">
16290 <desc>Whether this filter active or has been temporarily disabled.</desc>
16291 </attribute>
16292
16293 <attribute name="vendorId" type="wstring">
16294 <desc>
16295 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
16296 The string representation for the <i>exact matching</i>
16297 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16298 (including leading zeroes).
16299 </desc>
16300 </attribute>
16301
16302 <attribute name="productId" type="wstring">
16303 <desc>
16304 <link to="IUSBDevice::productId">Product ID</link> filter.
16305 The string representation for the <i>exact matching</i>
16306 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16307 (including leading zeroes).
16308 </desc>
16309 </attribute>
16310
16311 <attribute name="revision" type="wstring">
16312 <desc>
16313 <link to="IUSBDevice::productId">Product revision number</link>
16314 filter. The string representation for the <i>exact matching</i>
16315 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
16316 of the integer part of the revision, and <tt>F</tt> is the
16317 decimal digit of its fractional part (including leading and
16318 trailing zeros).
16319 Note that for interval filters, it's best to use the hexadecimal
16320 form, because the revision is stored as a 16 bit packed BCD value;
16321 so the expression <tt>int:0x0100-0x0199</tt> will match any
16322 revision from <tt>1.0</tt> to <tt>1.99</tt>.
16323 </desc>
16324 </attribute>
16325
16326 <attribute name="manufacturer" type="wstring">
16327 <desc>
16328 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
16329 </desc>
16330 </attribute>
16331
16332 <attribute name="product" type="wstring">
16333 <desc>
16334 <link to="IUSBDevice::product">Product</link> filter.
16335 </desc>
16336 </attribute>
16337
16338 <attribute name="serialNumber" type="wstring">
16339 <desc>
16340 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
16341 </desc>
16342 </attribute>
16343
16344 <attribute name="port" type="wstring">
16345 <desc>
16346 <link to="IUSBDevice::port">Host USB port</link> filter.
16347 </desc>
16348 </attribute>
16349
16350 <attribute name="remote" type="wstring">
16351 <desc>
16352 <link to="IUSBDevice::remote">Remote state</link> filter.
16353 <note>
16354 This filter makes sense only for machine USB filters,
16355 i.e. it is ignored by IHostUSBDeviceFilter objects.
16356 </note>
16357 </desc>
16358 </attribute>
16359
16360 <attribute name="maskedInterfaces" type="unsigned long">
16361 <desc>
16362 This is an advanced option for hiding one or more USB interfaces
16363 from the guest. The value is a bit mask where the bits that are set
16364 means the corresponding USB interface should be hidden, masked off
16365 if you like.
16366 This feature only works on Linux hosts.
16367 </desc>
16368 </attribute>
16369
16370 </interface>
16371
16372
16373 <!--
16374 // IHostUSBDevice
16375 /////////////////////////////////////////////////////////////////////////
16376 -->
16377
16378 <enum
16379 name="USBDeviceState"
16380 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
16381 >
16382 <desc>
16383 USB device state. This enumeration represents all possible states
16384 of the USB device physically attached to the host computer regarding
16385 its state on the host computer and availability to guest computers
16386 (all currently running virtual machines).
16387
16388 Once a supported USB device is attached to the host, global USB
16389 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
16390 either ignore the device, or put it to USBDeviceState_Held state, or do
16391 nothing. Unless the device is ignored by global filters, filters of all
16392 currently running guests (<link to="IUSBController::deviceFilters"/>) are
16393 activated that can put it to USBDeviceState_Captured state.
16394
16395 If the device was ignored by global filters, or didn't match
16396 any filters at all (including guest ones), it is handled by the host
16397 in a normal way. In this case, the device state is determined by
16398 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
16399 or USBDeviceState_Available, depending on the current device usage.
16400
16401 Besides auto-capturing based on filters, the device can be manually
16402 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
16403 state is USBDeviceState_Busy, USBDeviceState_Available or
16404 USBDeviceState_Held.
16405
16406 <note>
16407 Due to differences in USB stack implementations in Linux and Win32,
16408 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
16409 only to the Linux version of the product. This also means that (<link
16410 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
16411 device state is USBDeviceState_Held.
16412 </note>
16413
16414 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
16415 </desc>
16416
16417 <const name="NotSupported" value="0">
16418 <desc>
16419 Not supported by the VirtualBox server, not available to guests.
16420 </desc>
16421 </const>
16422 <const name="Unavailable" value="1">
16423 <desc>
16424 Being used by the host computer exclusively,
16425 not available to guests.
16426 </desc>
16427 </const>
16428 <const name="Busy" value="2">
16429 <desc>
16430 Being used by the host computer, potentially available to guests.
16431 </desc>
16432 </const>
16433 <const name="Available" value="3">
16434 <desc>
16435 Not used by the host computer, available to guests (the host computer
16436 can also start using the device at any time).
16437 </desc>
16438 </const>
16439 <const name="Held" value="4">
16440 <desc>
16441 Held by the VirtualBox server (ignored by the host computer),
16442 available to guests.
16443 </desc>
16444 </const>
16445 <const name="Captured" value="5">
16446 <desc>
16447 Captured by one of the guest computers, not available
16448 to anybody else.
16449 </desc>
16450 </const>
16451 </enum>
16452
16453 <interface
16454 name="IHostUSBDevice" extends="IUSBDevice"
16455 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
16456 wsmap="managed"
16457 >
16458 <desc>
16459 The IHostUSBDevice interface represents a physical USB device attached
16460 to the host computer.
16461
16462 Besides properties inherited from IUSBDevice, this interface adds the
16463 <link to="#state"/> property that holds the current state of the USB
16464 device.
16465
16466 <see><link to="IHost::USBDevices"/>,
16467 <link to="IHost::USBDeviceFilters"/></see>
16468 </desc>
16469
16470 <attribute name="state" type="USBDeviceState" readonly="yes">
16471 <desc>
16472 Current state of the device.
16473 </desc>
16474 </attribute>
16475
16476 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
16477
16478 </interface>
16479
16480
16481 <!--
16482 // IHostUSBDeviceFilter
16483 /////////////////////////////////////////////////////////////////////////
16484 -->
16485
16486 <enum
16487 name="USBDeviceFilterAction"
16488 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
16489 >
16490 <desc>
16491 Actions for host USB device filters.
16492 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
16493 </desc>
16494
16495 <const name="Null" value="0">
16496 <desc>Null value (never used by the API).</desc>
16497 </const>
16498 <const name="Ignore" value="1">
16499 <desc>Ignore the matched USB device.</desc>
16500 </const>
16501 <const name="Hold" value="2">
16502 <desc>Hold the matched USB device.</desc>
16503 </const>
16504 </enum>
16505
16506 <interface
16507 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
16508 uuid="4cc70246-d74a-400f-8222-3900489c0374"
16509 wsmap="managed"
16510 >
16511 <desc>
16512 The IHostUSBDeviceFilter interface represents a global filter for a
16513 physical USB device used by the host computer. Used indirectly in
16514 <link to="IHost::USBDeviceFilters"/>.
16515
16516 Using filters of this type, the host computer determines the initial
16517 state of the USB device after it is physically attached to the
16518 host's USB controller.
16519
16520 <note>
16521 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
16522 filters, because it makes sense only for
16523 <link to="IUSBController::deviceFilters">machine USB filters</link>.
16524 </note>
16525
16526 <see><link to="IHost::USBDeviceFilters"/></see>
16527 </desc>
16528
16529 <attribute name="action" type="USBDeviceFilterAction">
16530 <desc>
16531 Action performed by the host when an attached USB device
16532 matches this filter.
16533 </desc>
16534 </attribute>
16535
16536 </interface>
16537
16538 <!--
16539 // IAudioAdapter
16540 /////////////////////////////////////////////////////////////////////////
16541 -->
16542
16543 <enum
16544 name="AudioDriverType"
16545 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16546 >
16547 <desc>
16548 Host audio driver type.
16549 </desc>
16550
16551 <const name="Null" value="0">
16552 <desc>Null value, also means "dummy audio driver".</desc>
16553 </const>
16554 <const name="WinMM" value="1">
16555 <desc>Windows multimedia (Windows hosts only).</desc>
16556 </const>
16557 <const name="OSS" value="2">
16558 <desc>Open Sound System (Linux hosts only).</desc>
16559 </const>
16560 <const name="ALSA" value="3">
16561 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16562 </const>
16563 <const name="DirectSound" value="4">
16564 <desc>DirectSound (Windows hosts only).</desc>
16565 </const>
16566 <const name="CoreAudio" value="5">
16567 <desc>CoreAudio (Mac hosts only).</desc>
16568 </const>
16569 <const name="MMPM" value="6">
16570 <desc>Reserved for historical reasons.</desc>
16571 </const>
16572 <const name="Pulse" value="7">
16573 <desc>PulseAudio (Linux hosts only).</desc>
16574 </const>
16575 <const name="SolAudio" value="8">
16576 <desc>Solaris audio (Solaris hosts only).</desc>
16577 </const>
16578 </enum>
16579
16580 <enum
16581 name="AudioControllerType"
16582 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16583 >
16584 <desc>
16585 Virtual audio controller type.
16586 </desc>
16587
16588 <const name="AC97" value="0"/>
16589 <const name="SB16" value="1"/>
16590 <const name="HDA" value="2"/>
16591 </enum>
16592
16593 <interface
16594 name="IAudioAdapter" extends="$unknown"
16595 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16596 wsmap="managed"
16597 >
16598 <desc>
16599 The IAudioAdapter interface represents the virtual audio adapter of
16600 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16601 </desc>
16602 <attribute name="enabled" type="boolean">
16603 <desc>
16604 Flag whether the audio adapter is present in the
16605 guest system. If disabled, the virtual guest hardware will
16606 not contain any audio adapter. Can only be changed when
16607 the VM is not running.
16608 </desc>
16609 </attribute>
16610 <attribute name="audioController" type="AudioControllerType">
16611 <desc>
16612 The audio hardware we emulate.
16613 </desc>
16614 </attribute>
16615 <attribute name="audioDriver" type="AudioDriverType">
16616 <desc>
16617 Audio driver the adapter is connected to. This setting
16618 can only be changed when the VM is not running.
16619 </desc>
16620 </attribute>
16621 </interface>
16622
16623 <enum
16624 name="AuthType"
16625 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16626 >
16627 <desc>
16628 VirtualBox authentication type.
16629 </desc>
16630
16631 <const name="Null" value="0">
16632 <desc>Null value, also means "no authentication".</desc>
16633 </const>
16634 <const name="External" value="1"/>
16635 <const name="Guest" value="2"/>
16636 </enum>
16637
16638 <!--
16639 // IVRDEServer
16640 /////////////////////////////////////////////////////////////////////////
16641 -->
16642
16643 <interface
16644 name="IVRDEServer" extends="$unknown"
16645 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16646 wsmap="managed"
16647 >
16648 <attribute name="enabled" type="boolean">
16649 <desc>VRDE server status.</desc>
16650 </attribute>
16651
16652 <attribute name="authType" type="AuthType">
16653 <desc>VRDE authentication method.</desc>
16654 </attribute>
16655
16656 <attribute name="authTimeout" type="unsigned long">
16657 <desc>Timeout for guest authentication. Milliseconds.</desc>
16658 </attribute>
16659
16660 <attribute name="allowMultiConnection" type="boolean">
16661 <desc>
16662 Flag whether multiple simultaneous connections to the VM are permitted.
16663 Note that this will be replaced by a more powerful mechanism in the future.
16664 </desc>
16665 </attribute>
16666
16667 <attribute name="reuseSingleConnection" type="boolean">
16668 <desc>
16669 Flag whether the existing connection must be dropped and a new connection
16670 must be established by the VRDE server, when a new client connects in single
16671 connection mode.
16672 </desc>
16673 </attribute>
16674
16675 <attribute name="VRDEExtPack" type="wstring">
16676 <desc>
16677 The name of Extension Pack providing VRDE for this VM. Overrides
16678 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16679 </desc>
16680 </attribute>
16681
16682 <attribute name="authLibrary" type="wstring">
16683 <desc>
16684 Library used for authentication of RDP clients by this VM. Overrides
16685 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16686 </desc>
16687 </attribute>
16688
16689 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16690 <desc>
16691 Array of names of properties, which are supported by this VRDE server.
16692 </desc>
16693 </attribute>
16694
16695 <method name="setVRDEProperty">
16696 <desc>
16697 Sets a VRDE specific property string.
16698
16699 If you pass @c null or empty string as a key @a value, the given @a key
16700 will be deleted.
16701
16702 </desc>
16703 <param name="key" type="wstring" dir="in">
16704 <desc>Name of the key to set.</desc>
16705 </param>
16706 <param name="value" type="wstring" dir="in">
16707 <desc>Value to assign to the key.</desc>
16708 </param>
16709 </method>
16710
16711 <method name="getVRDEProperty" const="yes">
16712 <desc>
16713 Returns a VRDE specific property string.
16714
16715 If the requested data @a key does not exist, this function will
16716 succeed and return an empty string in the @a value argument.
16717
16718 </desc>
16719 <param name="key" type="wstring" dir="in">
16720 <desc>Name of the key to get.</desc>
16721 </param>
16722 <param name="value" type="wstring" dir="return">
16723 <desc>Value of the requested key.</desc>
16724 </param>
16725 </method>
16726
16727 </interface>
16728
16729
16730 <!--
16731 // ISharedFolder
16732 /////////////////////////////////////////////////////////////////////////
16733 -->
16734
16735 <interface
16736 name="ISharedFolder" extends="$unknown"
16737 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16738 wsmap="struct"
16739 >
16740 <desc>
16741 The ISharedFolder interface represents a folder in the host computer's
16742 file system accessible from the guest OS running inside a virtual
16743 machine using an associated logical name.
16744
16745 There are three types of shared folders:
16746 <ul>
16747 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16748 folders available to all virtual machines.</li>
16749 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16750 VM-specific shared folders available to the given virtual machine at
16751 startup.</li>
16752 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16753 VM-specific shared folders created in the session context (for
16754 example, when the virtual machine is running) and automatically
16755 discarded when the session is closed (the VM is powered off).</li>
16756 </ul>
16757
16758 Logical names of shared folders must be unique within the given scope
16759 (global, permanent or transient). However, they do not need to be unique
16760 across scopes. In this case, the definition of the shared folder in a
16761 more specific scope takes precedence over definitions in all other
16762 scopes. The order of precedence is (more specific to more general):
16763 <ol>
16764 <li>Transient definitions</li>
16765 <li>Permanent definitions</li>
16766 <li>Global definitions</li>
16767 </ol>
16768
16769 For example, if MyMachine has a shared folder named
16770 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16771 transient shared folder named <tt>C_DRIVE</tt> (that points
16772 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16773 of <tt>C_DRIVE</tt> in the guest OS so
16774 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16775 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16776 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16777 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16778 to <tt>C:\\</tt> if it still exists.
16779
16780 Note that permanent and transient shared folders of different machines
16781 are in different name spaces, so they don't overlap and don't need to
16782 have unique logical names.
16783
16784 <note>
16785 Global shared folders are not implemented in the current version of the
16786 product.
16787 </note>
16788 </desc>
16789
16790 <attribute name="name" type="wstring" readonly="yes">
16791 <desc>Logical name of the shared folder.</desc>
16792 </attribute>
16793
16794 <attribute name="hostPath" type="wstring" readonly="yes">
16795 <desc>Full path to the shared folder in the host file system.</desc>
16796 </attribute>
16797
16798 <attribute name="accessible" type="boolean" readonly="yes">
16799 <desc>
16800 Whether the folder defined by the host path is currently
16801 accessible or not.
16802 For example, the folder can be inaccessible if it is placed
16803 on the network share that is not available by the time
16804 this property is read.
16805 </desc>
16806 </attribute>
16807
16808 <attribute name="writable" type="boolean" readonly="yes">
16809 <desc>
16810 Whether the folder defined by the host path is writable or
16811 not.
16812 </desc>
16813 </attribute>
16814
16815 <attribute name="autoMount" type="boolean" readonly="yes">
16816 <desc>
16817 Whether the folder gets automatically mounted by the guest or not.
16818 </desc>
16819 </attribute>
16820
16821 <attribute name="lastAccessError" type="wstring" readonly="yes">
16822 <desc>
16823 Text message that represents the result of the last accessibility
16824 check.
16825
16826 Accessibility checks are performed each time the <link to="#accessible"/>
16827 attribute is read. An empty string is returned if the last
16828 accessibility check was successful. A non-empty string indicates a
16829 failure and should normally describe a reason of the failure (for
16830 example, a file read error).
16831 </desc>
16832 </attribute>
16833
16834 </interface>
16835
16836 <!--
16837 // ISession
16838 /////////////////////////////////////////////////////////////////////////
16839 -->
16840
16841 <interface
16842 name="IInternalSessionControl" extends="$unknown"
16843 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16844 internal="yes"
16845 wsmap="suppress"
16846 >
16847 <method name="getPID">
16848 <desc>PID of the process that has created this Session object.
16849 </desc>
16850 <param name="pid" type="unsigned long" dir="return"/>
16851 </method>
16852
16853 <method name="getRemoteConsole">
16854 <desc>
16855 Returns the console object suitable for remote control.
16856
16857 <result name="VBOX_E_INVALID_VM_STATE">
16858 Session state prevents operation.
16859 </result>
16860 <result name="VBOX_E_INVALID_OBJECT_STATE">
16861 Session type prevents operation.
16862 </result>
16863
16864 </desc>
16865 <param name="console" type="IConsole" dir="return"/>
16866 </method>
16867
16868 <method name="assignMachine">
16869 <desc>
16870 Assigns the machine object associated with this direct-type
16871 session or informs the session that it will be a remote one
16872 (if @a machine == @c null).
16873
16874 <result name="VBOX_E_INVALID_VM_STATE">
16875 Session state prevents operation.
16876 </result>
16877 <result name="VBOX_E_INVALID_OBJECT_STATE">
16878 Session type prevents operation.
16879 </result>
16880
16881 </desc>
16882 <param name="machine" type="IMachine" dir="in"/>
16883 <param name="lockType" type="LockType" dir="in"/>
16884 </method>
16885
16886 <method name="assignRemoteMachine">
16887 <desc>
16888 Assigns the machine and the (remote) console object associated with
16889 this remote-type session.
16890
16891 <result name="VBOX_E_INVALID_VM_STATE">
16892 Session state prevents operation.
16893 </result>
16894
16895 </desc>
16896 <param name="machine" type="IMachine" dir="in"/>
16897 <param name="console" type="IConsole" dir="in"/>
16898 </method>
16899
16900 <method name="updateMachineState">
16901 <desc>
16902 Updates the machine state in the VM process.
16903 Must be called only in certain cases
16904 (see the method implementation).
16905
16906 <result name="VBOX_E_INVALID_VM_STATE">
16907 Session state prevents operation.
16908 </result>
16909 <result name="VBOX_E_INVALID_OBJECT_STATE">
16910 Session type prevents operation.
16911 </result>
16912
16913 </desc>
16914 <param name="aMachineState" type="MachineState" dir="in"/>
16915 </method>
16916
16917 <method name="uninitialize">
16918 <desc>
16919 Uninitializes (closes) this session. Used by VirtualBox to close
16920 the corresponding remote session when the direct session dies
16921 or gets closed.
16922
16923 <result name="VBOX_E_INVALID_VM_STATE">
16924 Session state prevents operation.
16925 </result>
16926
16927 </desc>
16928 </method>
16929
16930 <method name="onNetworkAdapterChange">
16931 <desc>
16932 Triggered when settings of a network adapter of the
16933 associated virtual machine have changed.
16934
16935 <result name="VBOX_E_INVALID_VM_STATE">
16936 Session state prevents operation.
16937 </result>
16938 <result name="VBOX_E_INVALID_OBJECT_STATE">
16939 Session type prevents operation.
16940 </result>
16941
16942 </desc>
16943 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16944 <param name="changeAdapter" type="boolean" dir="in"/>
16945 </method>
16946
16947 <method name="onSerialPortChange">
16948 <desc>
16949 Triggered when settings of a serial port of the
16950 associated virtual machine have changed.
16951
16952 <result name="VBOX_E_INVALID_VM_STATE">
16953 Session state prevents operation.
16954 </result>
16955 <result name="VBOX_E_INVALID_OBJECT_STATE">
16956 Session type prevents operation.
16957 </result>
16958
16959 </desc>
16960 <param name="serialPort" type="ISerialPort" dir="in"/>
16961 </method>
16962
16963 <method name="onParallelPortChange">
16964 <desc>
16965 Triggered when settings of a parallel port of the
16966 associated virtual machine have changed.
16967
16968 <result name="VBOX_E_INVALID_VM_STATE">
16969 Session state prevents operation.
16970 </result>
16971 <result name="VBOX_E_INVALID_OBJECT_STATE">
16972 Session type prevents operation.
16973 </result>
16974
16975 </desc>
16976 <param name="parallelPort" type="IParallelPort" dir="in"/>
16977 </method>
16978
16979 <method name="onStorageControllerChange">
16980 <desc>
16981 Triggered when settings of a storage controller of the
16982 associated virtual machine have changed.
16983
16984 <result name="VBOX_E_INVALID_VM_STATE">
16985 Session state prevents operation.
16986 </result>
16987 <result name="VBOX_E_INVALID_OBJECT_STATE">
16988 Session type prevents operation.
16989 </result>
16990
16991 </desc>
16992 </method>
16993
16994 <method name="onMediumChange">
16995 <desc>
16996 Triggered when attached media of the
16997 associated virtual machine have changed.
16998
16999 <result name="VBOX_E_INVALID_VM_STATE">
17000 Session state prevents operation.
17001 </result>
17002 <result name="VBOX_E_INVALID_OBJECT_STATE">
17003 Session type prevents operation.
17004 </result>
17005
17006 </desc>
17007
17008 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17009 <desc>The medium attachment which changed.</desc>
17010 </param>
17011 <param name="force" type="boolean" dir="in">
17012 <desc>If the medium change was forced.</desc>
17013 </param>
17014 </method>
17015
17016 <method name="onStorageDeviceChange">
17017 <desc>
17018 Triggered when attached storage devices of the
17019 associated virtual machine have changed.
17020
17021 <result name="VBOX_E_INVALID_VM_STATE">
17022 Session state prevents operation.
17023 </result>
17024 <result name="VBOX_E_INVALID_OBJECT_STATE">
17025 Session type prevents operation.
17026 </result>
17027
17028 </desc>
17029
17030 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17031 <desc>The medium attachment which changed.</desc>
17032 </param>
17033 <param name="remove" type="boolean" dir="in">
17034 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
17035 </param>
17036 </method>
17037
17038 <method name="onClipboardModeChange">
17039 <desc>
17040 Notification when the shared clipboard mode changes.
17041 </desc>
17042 <param name="clipboardMode" type="ClipboardMode" dir="in">
17043 <desc>The new shared clipboard mode.</desc>
17044 </param>
17045 </method>
17046
17047 <method name="onDragAndDropModeChange">
17048 <desc>
17049 Notification when the drag'n'drop mode changes.
17050 </desc>
17051 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
17052 <desc>The new mode for drag'n'drop.</desc>
17053 </param>
17054 </method>
17055
17056 <method name="onCPUChange">
17057 <desc>
17058 Notification when a CPU changes.
17059 </desc>
17060 <param name="cpu" type="unsigned long" dir="in">
17061 <desc>The CPU which changed</desc>
17062 </param>
17063 <param name="add" type="boolean" dir="in">
17064 <desc>Flag whether the CPU was added or removed</desc>
17065 </param>
17066 </method>
17067
17068 <method name="onCPUExecutionCapChange">
17069 <desc>
17070 Notification when the CPU execution cap changes.
17071 </desc>
17072 <param name="executionCap" type="unsigned long" dir="in">
17073 <desc>The new CPU execution cap value. (1-100)</desc>
17074 </param>
17075 </method>
17076
17077 <method name="onVRDEServerChange">
17078 <desc>
17079 Triggered when settings of the VRDE server object of the
17080 associated virtual machine have changed.
17081
17082 <result name="VBOX_E_INVALID_VM_STATE">
17083 Session state prevents operation.
17084 </result>
17085 <result name="VBOX_E_INVALID_OBJECT_STATE">
17086 Session type prevents operation.
17087 </result>
17088
17089 </desc>
17090 <param name="restart" type="boolean" dir="in">
17091 <desc>Flag whether the server must be restarted</desc>
17092 </param>
17093 </method>
17094
17095 <method name="onUSBControllerChange">
17096 <desc>
17097 Triggered when settings of the USB controller object of the
17098 associated virtual machine have changed.
17099
17100 <result name="VBOX_E_INVALID_VM_STATE">
17101 Session state prevents operation.
17102 </result>
17103 <result name="VBOX_E_INVALID_OBJECT_STATE">
17104 Session type prevents operation.
17105 </result>
17106
17107 </desc>
17108 </method>
17109
17110 <method name="onSharedFolderChange">
17111 <desc>
17112 Triggered when a permanent (global or machine) shared folder has been
17113 created or removed.
17114 <note>
17115 We don't pass shared folder parameters in this notification because
17116 the order in which parallel notifications are delivered is not defined,
17117 therefore it could happen that these parameters were outdated by the
17118 time of processing this notification.
17119 </note>
17120
17121 <result name="VBOX_E_INVALID_VM_STATE">
17122 Session state prevents operation.
17123 </result>
17124 <result name="VBOX_E_INVALID_OBJECT_STATE">
17125 Session type prevents operation.
17126 </result>
17127
17128 </desc>
17129 <param name="global" type="boolean" dir="in"/>
17130 </method>
17131
17132 <method name="onUSBDeviceAttach">
17133 <desc>
17134 Triggered when a request to capture a USB device (as a result
17135 of matched USB filters or direct call to
17136 <link to="IConsole::attachUSBDevice"/>) has completed.
17137 A @c null @a error object means success, otherwise it
17138 describes a failure.
17139
17140 <result name="VBOX_E_INVALID_VM_STATE">
17141 Session state prevents operation.
17142 </result>
17143 <result name="VBOX_E_INVALID_OBJECT_STATE">
17144 Session type prevents operation.
17145 </result>
17146
17147 </desc>
17148 <param name="device" type="IUSBDevice" dir="in"/>
17149 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17150 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
17151 </method>
17152
17153 <method name="onUSBDeviceDetach">
17154 <desc>
17155 Triggered when a request to release the USB device (as a result
17156 of machine termination or direct call to
17157 <link to="IConsole::detachUSBDevice"/>) has completed.
17158 A @c null @a error object means success, otherwise it
17159 describes a failure.
17160
17161 <result name="VBOX_E_INVALID_VM_STATE">
17162 Session state prevents operation.
17163 </result>
17164 <result name="VBOX_E_INVALID_OBJECT_STATE">
17165 Session type prevents operation.
17166 </result>
17167
17168 </desc>
17169 <param name="id" type="uuid" mod="string" dir="in"/>
17170 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17171 </method>
17172
17173 <method name="onShowWindow">
17174 <desc>
17175 Called by <link to="IMachine::canShowConsoleWindow"/> and by
17176 <link to="IMachine::showConsoleWindow"/> in order to notify
17177 console listeners
17178 <link to="ICanShowWindowEvent"/>
17179 and <link to="IShowWindowEvent"/>.
17180
17181 <result name="VBOX_E_INVALID_OBJECT_STATE">
17182 Session type prevents operation.
17183 </result>
17184
17185 </desc>
17186 <param name="check" type="boolean" dir="in"/>
17187 <param name="canShow" type="boolean" dir="out"/>
17188 <param name="winId" type="long long" dir="out"/>
17189 </method>
17190
17191 <method name="onBandwidthGroupChange">
17192 <desc>
17193 Notification when one of the bandwidth groups change.
17194 </desc>
17195 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
17196 <desc>The bandwidth group which changed.</desc>
17197 </param>
17198 </method>
17199
17200 <method name="accessGuestProperty">
17201 <desc>
17202 Called by <link to="IMachine::getGuestProperty"/> and by
17203 <link to="IMachine::setGuestProperty"/> in order to read and
17204 modify guest properties.
17205
17206 <result name="VBOX_E_INVALID_VM_STATE">
17207 Machine session is not open.
17208 </result>
17209 <result name="VBOX_E_INVALID_OBJECT_STATE">
17210 Session type is not direct.
17211 </result>
17212
17213 </desc>
17214 <param name="name" type="wstring" dir="in"/>
17215 <param name="value" type="wstring" dir="in"/>
17216 <param name="flags" type="wstring" dir="in"/>
17217 <param name="isSetter" type="boolean" dir="in"/>
17218 <param name="retValue" type="wstring" dir="out"/>
17219 <param name="retTimestamp" type="long long" dir="out"/>
17220 <param name="retFlags" type="wstring" dir="out"/>
17221 </method>
17222
17223 <method name="enumerateGuestProperties" const="yes">
17224 <desc>
17225 Return a list of the guest properties matching a set of patterns along
17226 with their values, time stamps and flags.
17227
17228 <result name="VBOX_E_INVALID_VM_STATE">
17229 Machine session is not open.
17230 </result>
17231 <result name="VBOX_E_INVALID_OBJECT_STATE">
17232 Session type is not direct.
17233 </result>
17234
17235 </desc>
17236 <param name="patterns" type="wstring" dir="in">
17237 <desc>
17238 The patterns to match the properties against as a comma-separated
17239 string. If this is empty, all properties currently set will be
17240 returned.
17241 </desc>
17242 </param>
17243 <param name="key" type="wstring" dir="out" safearray="yes">
17244 <desc>
17245 The key names of the properties returned.
17246 </desc>
17247 </param>
17248 <param name="value" type="wstring" dir="out" safearray="yes">
17249 <desc>
17250 The values of the properties returned. The array entries match the
17251 corresponding entries in the @a key array.
17252 </desc>
17253 </param>
17254 <param name="timestamp" type="long long" dir="out" safearray="yes">
17255 <desc>
17256 The time stamps of the properties returned. The array entries match
17257 the corresponding entries in the @a key array.
17258 </desc>
17259 </param>
17260 <param name="flags" type="wstring" dir="out" safearray="yes">
17261 <desc>
17262 The flags of the properties returned. The array entries match the
17263 corresponding entries in the @a key array.
17264 </desc>
17265 </param>
17266 </method>
17267
17268 <method name="onlineMergeMedium">
17269 <desc>
17270 Triggers online merging of a hard disk. Used internally when deleting
17271 a snapshot while a VM referring to the same hard disk chain is running.
17272
17273 <result name="VBOX_E_INVALID_VM_STATE">
17274 Machine session is not open.
17275 </result>
17276 <result name="VBOX_E_INVALID_OBJECT_STATE">
17277 Session type is not direct.
17278 </result>
17279
17280 </desc>
17281 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17282 <desc>The medium attachment to identify the medium chain.</desc>
17283 </param>
17284 <param name="sourceIdx" type="unsigned long" dir="in">
17285 <desc>The index of the source image in the chain.
17286 Redundant, but drastically reduces IPC.</desc>
17287 </param>
17288 <param name="targetIdx" type="unsigned long" dir="in">
17289 <desc>The index of the target image in the chain.
17290 Redundant, but drastically reduces IPC.</desc>
17291 </param>
17292 <param name="source" type="IMedium" dir="in">
17293 <desc>Merge source medium.</desc>
17294 </param>
17295 <param name="target" type="IMedium" dir="in">
17296 <desc>Merge target medium.</desc>
17297 </param>
17298 <param name="mergeForward" type="boolean" dir="in">
17299 <desc>Merge direction.</desc>
17300 </param>
17301 <param name="parentForTarget" type="IMedium" dir="in">
17302 <desc>For forward merges: new parent for target medium.</desc>
17303 </param>
17304 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
17305 <desc>For backward merges: list of media which need their parent UUID
17306 updated.</desc>
17307 </param>
17308 <param name="progress" type="IProgress" dir="in">
17309 <desc>
17310 Progress object for this operation.
17311 </desc>
17312 </param>
17313 </method>
17314
17315 <method name="enableVMMStatistics">
17316 <desc>
17317 Enables or disables collection of VMM RAM statistics.
17318
17319 <result name="VBOX_E_INVALID_VM_STATE">
17320 Machine session is not open.
17321 </result>
17322 <result name="VBOX_E_INVALID_OBJECT_STATE">
17323 Session type is not direct.
17324 </result>
17325
17326 </desc>
17327 <param name="enable" type="boolean" dir="in">
17328 <desc>True enables statistics collection.</desc>
17329 </param>
17330 </method>
17331
17332 </interface>
17333
17334 <interface
17335 name="ISession" extends="$unknown"
17336 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
17337 wsmap="managed"
17338 >
17339 <desc>
17340 The ISession interface represents a client process and allows for locking
17341 virtual machines (represented by IMachine objects) to prevent conflicting
17342 changes to the machine.
17343
17344 Any caller wishing to manipulate a virtual machine needs to create a session
17345 object first, which lives in its own process space. Such session objects are
17346 then associated with <link to="IMachine" /> objects living in the VirtualBox
17347 server process to coordinate such changes.
17348
17349 There are two typical scenarios in which sessions are used:
17350
17351 <ul>
17352 <li>To alter machine settings or control a running virtual machine, one
17353 needs to lock a machine for a given session (client process) by calling
17354 <link to="IMachine::lockMachine"/>.
17355
17356 Whereas multiple sessions may control a running virtual machine, only
17357 one process can obtain a write lock on the machine to prevent conflicting
17358 changes. A write lock is also needed if a process wants to actually run a
17359 virtual machine in its own context, such as the VirtualBox GUI or
17360 VBoxHeadless front-ends. They must also lock a machine for their own
17361 sessions before they are allowed to power up the virtual machine.
17362
17363 As a result, no machine settings can be altered while another process is
17364 already using it, either because that process is modifying machine settings
17365 or because the machine is running.
17366 </li>
17367 <li>
17368 To start a VM using one of the existing VirtualBox front-ends (e.g. the
17369 VirtualBox GUI or VBoxHeadless), one would use
17370 <link to="IMachine::launchVMProcess"/>, which also takes a session object
17371 as its first parameter. This session then identifies the caller and lets the
17372 caller control the started machine (for example, pause machine execution or
17373 power it down) as well as be notified about machine execution state changes.
17374 </li>
17375 </ul>
17376
17377 How sessions objects are created in a client process depends on whether you use
17378 the Main API via COM or via the webservice:
17379
17380 <ul>
17381 <li>When using the COM API directly, an object of the Session class from the
17382 VirtualBox type library needs to be created. In regular COM C++ client code,
17383 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
17384 This object will then act as a local session object in further calls to open
17385 a session.
17386 </li>
17387
17388 <li>In the webservice, the session manager (IWebsessionManager) instead creates
17389 a session object automatically whenever <link to="IWebsessionManager::logon" />
17390 is called. A managed object reference to that session object can be retrieved by
17391 calling <link to="IWebsessionManager::getSessionObject" />.
17392 </li>
17393 </ul>
17394 </desc>
17395
17396 <attribute name="state" type="SessionState" readonly="yes">
17397 <desc>Current state of this session.</desc>
17398 </attribute>
17399
17400 <attribute name="type" type="SessionType" readonly="yes">
17401 <desc>
17402 Type of this session. The value of this attribute is valid only
17403 if the session currently has a machine locked (i.e. its
17404 <link to="#state" /> is Locked), otherwise an error will be returned.
17405 </desc>
17406 </attribute>
17407
17408 <attribute name="machine" type="IMachine" readonly="yes">
17409 <desc>Machine object associated with this session.</desc>
17410 </attribute>
17411
17412 <attribute name="console" type="IConsole" readonly="yes">
17413 <desc>Console object associated with this session.</desc>
17414 </attribute>
17415
17416 <method name="unlockMachine">
17417 <desc>
17418 Unlocks a machine that was previously locked for the current session.
17419
17420 Calling this method is required every time a machine has been locked
17421 for a particular session using the <link to="IMachine::launchVMProcess" />
17422 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
17423 the machine will be set to <link to="MachineState_Aborted" /> on the
17424 server, and changes made to the machine settings will be lost.
17425
17426 Generally, it is recommended to unlock all machines explicitly
17427 before terminating the application (regardless of the reason for
17428 the termination).
17429
17430 <note>
17431 Do not expect the session state (<link to="ISession::state" />
17432 to return to "Unlocked" immediately after you invoke this method,
17433 particularly if you have started a new VM process. The session
17434 state will automatically return to "Unlocked" once the VM is no
17435 longer executing, which can of course take a very long time.
17436 </note>
17437
17438 <result name="E_UNEXPECTED">
17439 Session is not locked.
17440 </result>
17441
17442 </desc>
17443 </method>
17444
17445 </interface>
17446
17447 <!--
17448 // IStorageController
17449 /////////////////////////////////////////////////////////////////////////
17450 -->
17451
17452 <enum
17453 name="StorageBus"
17454 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
17455 >
17456 <desc>
17457 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
17458 see <link to="IStorageController::bus" />.
17459 </desc>
17460 <const name="Null" value="0">
17461 <desc>@c null value. Never used by the API.</desc>
17462 </const>
17463 <const name="IDE" value="1"/>
17464 <const name="SATA" value="2"/>
17465 <const name="SCSI" value="3"/>
17466 <const name="Floppy" value="4"/>
17467 <const name="SAS" value="5"/>
17468 </enum>
17469
17470 <enum
17471 name="StorageControllerType"
17472 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
17473 >
17474 <desc>
17475 The exact variant of storage controller hardware presented
17476 to the guest; see <link to="IStorageController::controllerType" />.
17477 </desc>
17478
17479 <const name="Null" value="0">
17480 <desc>@c null value. Never used by the API.</desc>
17481 </const>
17482 <const name="LsiLogic" value="1">
17483 <desc>A SCSI controller of the LsiLogic variant.</desc>
17484 </const>
17485 <const name="BusLogic" value="2">
17486 <desc>A SCSI controller of the BusLogic variant.</desc>
17487 </const>
17488 <const name="IntelAhci" value="3">
17489 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
17490 </const>
17491 <const name="PIIX3" value="4">
17492 <desc>An IDE controller of the PIIX3 variant.</desc>
17493 </const>
17494 <const name="PIIX4" value="5">
17495 <desc>An IDE controller of the PIIX4 variant.</desc>
17496 </const>
17497 <const name="ICH6" value="6">
17498 <desc>An IDE controller of the ICH6 variant.</desc>
17499 </const>
17500 <const name="I82078" value="7">
17501 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
17502 </const>
17503 <const name="LsiLogicSas" value="8">
17504 <desc>A variant of the LsiLogic controller using SAS.</desc>
17505 </const>
17506 </enum>
17507
17508 <enum
17509 name="ChipsetType"
17510 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
17511 >
17512 <desc>
17513 Type of emulated chipset (mostly southbridge).
17514 </desc>
17515
17516 <const name="Null" value="0">
17517 <desc>@c null value. Never used by the API.</desc>
17518 </const>
17519 <const name="PIIX3" value="1">
17520 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
17521 </const>
17522 <const name="ICH9" value="2">
17523 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
17524 </const>
17525 </enum>
17526
17527 <interface
17528 name="IStorageController" extends="$unknown"
17529 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17530 wsmap="managed"
17531 >
17532 <desc>
17533 Represents a storage controller that is attached to a virtual machine
17534 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17535 attached to storage controllers in a real computer, virtual drives
17536 (represented by <link to="IMediumAttachment" />) are attached to virtual
17537 storage controllers, represented by this interface.
17538
17539 As opposed to physical hardware, VirtualBox has a very generic concept
17540 of a storage controller, and for purposes of the Main API, all virtual
17541 storage is attached to virtual machines via instances of this interface.
17542 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17543 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17544 is used, certain sub-types may be available and can be selected in
17545 <link to="#controllerType" />.
17546
17547 Depending on these settings, the guest operating system might see
17548 significantly different virtual hardware.
17549 </desc>
17550
17551 <attribute name="name" type="wstring" readonly="yes">
17552 <desc>
17553 Name of the storage controller, as originally specified with
17554 <link to="IMachine::addStorageController" />. This then uniquely
17555 identifies this controller with other method calls such as
17556 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17557 </desc>
17558 </attribute>
17559
17560 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17561 <desc>
17562 Maximum number of devices which can be attached to one port.
17563 </desc>
17564 </attribute>
17565
17566 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17567 <desc>
17568 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17569 </desc>
17570 </attribute>
17571
17572 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17573 <desc>
17574 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17575 </desc>
17576 </attribute>
17577
17578 <attribute name="instance" type="unsigned long">
17579 <desc>
17580 The instance number of the device in the running VM.
17581 </desc>
17582 </attribute>
17583
17584 <attribute name="portCount" type="unsigned long">
17585 <desc>
17586 The number of currently usable ports on the controller.
17587 The minimum and maximum number of ports for one controller are
17588 stored in <link to="IStorageController::minPortCount"/>
17589 and <link to="IStorageController::maxPortCount"/>.
17590 </desc>
17591 </attribute>
17592
17593 <attribute name="bus" type="StorageBus" readonly="yes">
17594 <desc>
17595 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17596 </desc>
17597 </attribute>
17598
17599 <attribute name="controllerType" type="StorageControllerType">
17600 <desc>
17601 The exact variant of storage controller hardware presented
17602 to the guest.
17603 Depending on this value, VirtualBox will provide a different
17604 virtual storage controller hardware to the guest.
17605 For SATA, SAS and floppy controllers, only one variant is
17606 available, but for IDE and SCSI, there are several.
17607
17608 For SCSI controllers, the default type is LsiLogic.
17609 </desc>
17610 </attribute>
17611
17612 <attribute name="useHostIOCache" type="boolean">
17613 <desc>
17614 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17615 caches and use synchronous file APIs on the host. This was the only option in the API before
17616 VirtualBox 3.2 and is still the default for IDE controllers.
17617
17618 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17619 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17620 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17621 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17622 virtual machines are running at the same time to prevent I/O cache related hangs.
17623 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17624 </desc>
17625 </attribute>
17626
17627 <attribute name="bootable" type="boolean" readonly="yes">
17628 <desc>
17629 Returns whether it is possible to boot from disks attached to this controller.
17630 </desc>
17631 </attribute>
17632
17633 <method name="getIDEEmulationPort">
17634 <desc>
17635 Gets the corresponding port number which is emulated as an IDE device.
17636 Works only with SATA controllers.
17637
17638 <result name="E_INVALIDARG">
17639 The @a devicePosition is not in the range 0 to 3.
17640 </result>
17641 <result name="E_NOTIMPL">
17642 The storage controller type is not SATAIntelAhci.
17643 </result>
17644
17645 </desc>
17646 <param name="devicePosition" type="long" dir="in"/>
17647 <param name="portNumber" type="long" dir="return"/>
17648 </method>
17649
17650 <method name="setIDEEmulationPort">
17651 <desc>
17652 Sets the port number which is emulated as an IDE device.
17653 Works only with SATA controllers.
17654
17655 <result name="E_INVALIDARG">
17656 The @a devicePosition is not in the range 0 to 3 or the
17657 @a portNumber is not in the range 0 to 29.
17658 </result>
17659 <result name="E_NOTIMPL">
17660 The storage controller type is not SATAIntelAhci.
17661 </result>
17662
17663 </desc>
17664 <param name="devicePosition" type="long" dir="in"/>
17665 <param name="portNumber" type="long" dir="in"/>
17666 </method>
17667
17668 </interface>
17669
17670<if target="wsdl">
17671
17672 <!--
17673 // IManagedObjectRef
17674 /////////////////////////////////////////////////////////////////////////
17675 -->
17676
17677 <interface
17678 name="IManagedObjectRef" extends="$unknown"
17679 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17680 internal="yes"
17681 wsmap="managed"
17682 wscpp="hardcoded"
17683 >
17684 <desc>
17685 Managed object reference.
17686
17687 Only within the webservice, a managed object reference (which is really
17688 an opaque number) allows a webservice client to address an object
17689 that lives in the address space of the webservice server.
17690
17691 Behind each managed object reference, there is a COM object that lives
17692 in the webservice server's address space. The COM object is not freed
17693 until the managed object reference is released, either by an explicit
17694 call to <link to="IManagedObjectRef::release" /> or by logging off from
17695 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17696 all objects created during the webservice session.
17697
17698 Whenever a method call of the VirtualBox API returns a COM object, the
17699 webservice representation of that method will instead return a
17700 managed object reference, which can then be used to invoke methods
17701 on that object.
17702 </desc>
17703
17704 <method name="getInterfaceName">
17705 <desc>
17706 Returns the name of the interface that this managed object represents,
17707 for example, "IMachine", as a string.
17708 </desc>
17709 <param name="return" type="wstring" dir="return"/>
17710 </method>
17711
17712 <method name="release">
17713 <desc>
17714 Releases this managed object reference and frees the resources that
17715 were allocated for it in the webservice server process. After calling
17716 this method, the identifier of the reference can no longer be used.
17717 </desc>
17718 </method>
17719
17720 </interface>
17721
17722 <!--
17723 // IWebsessionManager
17724 /////////////////////////////////////////////////////////////////////////
17725 -->
17726
17727 <interface
17728 name="IWebsessionManager" extends="$unknown"
17729 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17730 internal="yes"
17731 wsmap="global"
17732 wscpp="hardcoded"
17733 >
17734 <desc>
17735 Websession manager. This provides essential services
17736 to webservice clients.
17737 </desc>
17738 <method name="logon">
17739 <desc>
17740 Logs a new client onto the webservice and returns a managed object reference to
17741 the IVirtualBox instance, which the client can then use as a basis to further
17742 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17743 interface, in one way or the other.
17744 </desc>
17745 <param name="username" type="wstring" dir="in"/>
17746 <param name="password" type="wstring" dir="in"/>
17747 <param name="return" type="IVirtualBox" dir="return"/>
17748 </method>
17749
17750 <method name="getSessionObject">
17751 <desc>
17752 Returns a managed object reference to the internal ISession object that was created
17753 for this web service session when the client logged on.
17754
17755 <see><link to="ISession"/></see>
17756 </desc>
17757 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17758 <param name="return" type="ISession" dir="return"/>
17759 </method>
17760
17761 <method name="logoff">
17762 <desc>
17763 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17764 and destroys all resources associated with the session (most importantly, all
17765 managed objects created in the server while the session was active).
17766 </desc>
17767 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17768 </method>
17769
17770 </interface>
17771
17772</if>
17773
17774 <!--
17775 // IPerformanceCollector & friends
17776 /////////////////////////////////////////////////////////////////////////
17777 -->
17778
17779 <interface
17780 name="IPerformanceMetric" extends="$unknown"
17781 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17782 >
17783 <desc>
17784 The IPerformanceMetric interface represents parameters of the given
17785 performance metric.
17786 </desc>
17787
17788 <attribute name="metricName" type="wstring" readonly="yes">
17789 <desc>
17790 Name of the metric.
17791 </desc>
17792 </attribute>
17793
17794 <attribute name="object" type="$unknown" readonly="yes">
17795 <desc>
17796 Object this metric belongs to.
17797 </desc>
17798 </attribute>
17799
17800 <attribute name="description" type="wstring" readonly="yes">
17801 <desc>
17802 Textual description of the metric.
17803 </desc>
17804 </attribute>
17805
17806 <attribute name="period" type="unsigned long" readonly="yes">
17807 <desc>
17808 Time interval between samples, measured in seconds.
17809 </desc>
17810 </attribute>
17811
17812 <attribute name="count" type="unsigned long" readonly="yes">
17813 <desc>
17814 Number of recent samples retained by the performance collector for this
17815 metric.
17816
17817 When the collected sample count exceeds this number, older samples
17818 are discarded.
17819 </desc>
17820 </attribute>
17821
17822 <attribute name="unit" type="wstring" readonly="yes">
17823 <desc>
17824 Unit of measurement.
17825 </desc>
17826 </attribute>
17827
17828 <attribute name="minimumValue" type="long" readonly="yes">
17829 <desc>
17830 Minimum possible value of this metric.
17831 </desc>
17832 </attribute>
17833
17834 <attribute name="maximumValue" type="long" readonly="yes">
17835 <desc>
17836 Maximum possible value of this metric.
17837 </desc>
17838 </attribute>
17839 </interface>
17840
17841 <interface
17842 name="IPerformanceCollector" extends="$unknown"
17843 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17844 wsmap="managed"
17845 >
17846 <desc>
17847 The IPerformanceCollector interface represents a service that collects
17848 and stores performance metrics data.
17849
17850 Performance metrics are associated with objects of interfaces like IHost
17851 and IMachine. Each object has a distinct set of performance metrics. The
17852 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17853
17854 Metric data is collected at the specified intervals and is retained
17855 internally. The interval and the number of retained samples can be set
17856 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17857 and collection settings are not persistent, they are discarded as soon as
17858 VBoxSVC process terminates. Moreover, metric settings and data associated
17859 with a particular VM only exist while VM is running. They disappear as
17860 soon as VM shuts down. It is not possible to set up metrics for machines
17861 that are powered off. One needs to start VM first, then set up metric
17862 collection parameters.
17863
17864 Metrics are organized hierarchically, with each level separated by a
17865 slash (/) character. Generally, the scheme for metric names is like this:
17866
17867 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17868
17869 "Category/Metric" together form the base metric name. A base metric is
17870 the smallest unit for which a sampling interval and the number of
17871 retained samples can be set. Only base metrics can be enabled and
17872 disabled. All sub-metrics are collected when their base metric is
17873 collected. Collected values for any set of sub-metrics can be queried
17874 with <link to="IPerformanceCollector::queryMetricsData" />.
17875
17876 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17877 category, "Load" metric, "User" submetric, "average" aggregate. An
17878 aggregate function is computed over all retained data. Valid aggregate
17879 functions are:
17880
17881 <ul>
17882 <li>avg -- average</li>
17883 <li>min -- minimum</li>
17884 <li>max -- maximum</li>
17885 </ul>
17886
17887 When setting up metric parameters, querying metric data, enabling or
17888 disabling metrics wildcards can be used in metric names to specify a
17889 subset of metrics. For example, to select all CPU-related metrics
17890 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17891 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17892
17893 The valid names for base metrics are:
17894
17895 <ul>
17896 <li>CPU/Load</li>
17897 <li>CPU/MHz</li>
17898 <li>RAM/Usage</li>
17899 <li>RAM/VMM</li>
17900 </ul>
17901
17902 The general sequence for collecting and retrieving the metrics is:
17903 <ul>
17904 <li>
17905 Obtain an instance of IPerformanceCollector with
17906 <link to="IVirtualBox::performanceCollector" />
17907 </li>
17908 <li>
17909 Allocate and populate an array with references to objects the metrics
17910 will be collected for. Use references to IHost and IMachine objects.
17911 </li>
17912 <li>
17913 Allocate and populate an array with base metric names the data will
17914 be collected for.
17915 </li>
17916 <li>
17917 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17918 the metric data will be collected and stored.
17919 </li>
17920 <li>
17921 Wait for the data to get collected.
17922 </li>
17923 <li>
17924 Allocate and populate an array with references to objects the metric
17925 values will be queried for. You can re-use the object array used for
17926 setting base metrics.
17927 </li>
17928 <li>
17929 Allocate and populate an array with metric names the data will be
17930 collected for. Note that metric names differ from base metric names.
17931 </li>
17932 <li>
17933 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17934 that have been collected so far are returned. Note that the values
17935 are still retained internally and data collection continues.
17936 </li>
17937 </ul>
17938
17939 For an example of usage refer to the following files in VirtualBox SDK:
17940 <ul>
17941 <li>
17942 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17943 </li>
17944 <li>
17945 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17946 </li>
17947 </ul>
17948 </desc>
17949
17950 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17951 <desc>
17952 Array of unique names of metrics.
17953
17954 This array represents all metrics supported by the performance
17955 collector. Individual objects do not necessarily support all of them.
17956 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17957 list of supported metrics for a particular object.
17958 </desc>
17959 </attribute>
17960
17961 <method name="getMetrics">
17962 <desc>
17963 Returns parameters of specified metrics for a set of objects.
17964 <note>
17965 @c Null metrics array means all metrics. @c Null object array means
17966 all existing objects.
17967 </note>
17968 </desc>
17969 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17970 <desc>
17971 Metric name filter. Currently, only a comma-separated list of metrics
17972 is supported.
17973 </desc>
17974 </param>
17975 <param name="objects" type="$unknown" dir="in" safearray="yes">
17976 <desc>
17977 Set of objects to return metric parameters for.
17978 </desc>
17979 </param>
17980 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17981 <desc>
17982 Array of returned metric parameters.
17983 </desc>
17984 </param>
17985 </method>
17986
17987 <method name="setupMetrics">
17988 <desc>
17989 Sets parameters of specified base metrics for a set of objects. Returns
17990 an array of <link to="IPerformanceMetric" /> describing the metrics
17991 have been affected.
17992 <note>
17993 @c Null or empty metric name array means all metrics. @c Null or
17994 empty object array means all existing objects. If metric name array
17995 contains a single element and object array contains many, the single
17996 metric name array element is applied to each object array element to
17997 form metric/object pairs.
17998 </note>
17999 </desc>
18000 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18001 <desc>
18002 Metric name filter. Comma-separated list of metrics with wildcard
18003 support.
18004 </desc>
18005 </param>
18006 <param name="objects" type="$unknown" dir="in" safearray="yes">
18007 <desc>
18008 Set of objects to setup metric parameters for.
18009 </desc>
18010 </param>
18011 <param name="period" type="unsigned long" dir="in">
18012 <desc>
18013 Time interval in seconds between two consecutive samples of
18014 performance data.
18015 </desc>
18016 </param>
18017 <param name="count" type="unsigned long" dir="in">
18018 <desc>
18019 Number of samples to retain in performance data history. Older
18020 samples get discarded.
18021 </desc>
18022 </param>
18023 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18024 <desc>
18025 Array of metrics that have been modified by the call to this method.
18026 </desc>
18027 </param>
18028 </method>
18029
18030 <method name="enableMetrics">
18031 <desc>
18032 Turns on collecting specified base metrics. Returns an array of
18033 <link to="IPerformanceMetric" /> describing the metrics have been
18034 affected.
18035 <note>
18036 @c Null or empty metric name array means all metrics. @c Null or
18037 empty object array means all existing objects. If metric name array
18038 contains a single element and object array contains many, the single
18039 metric name array element is applied to each object array element to
18040 form metric/object pairs.
18041 </note>
18042 </desc>
18043 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18044 <desc>
18045 Metric name filter. Comma-separated list of metrics with wildcard
18046 support.
18047 </desc>
18048 </param>
18049 <param name="objects" type="$unknown" dir="in" safearray="yes">
18050 <desc>
18051 Set of objects to enable metrics for.
18052 </desc>
18053 </param>
18054 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18055 <desc>
18056 Array of metrics that have been modified by the call to this method.
18057 </desc>
18058 </param>
18059 </method>
18060
18061 <method name="disableMetrics">
18062 <desc>
18063 Turns off collecting specified base metrics. Returns an array of
18064 <link to="IPerformanceMetric" /> describing the metrics have been
18065 affected.
18066 <note>
18067 @c Null or empty metric name array means all metrics. @c Null or
18068 empty object array means all existing objects. If metric name array
18069 contains a single element and object array contains many, the single
18070 metric name array element is applied to each object array element to
18071 form metric/object pairs.
18072 </note>
18073 </desc>
18074 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18075 <desc>
18076 Metric name filter. Comma-separated list of metrics with wildcard
18077 support.
18078 </desc>
18079 </param>
18080 <param name="objects" type="$unknown" dir="in" safearray="yes">
18081 <desc>
18082 Set of objects to disable metrics for.
18083 </desc>
18084 </param>
18085 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18086 <desc>
18087 Array of metrics that have been modified by the call to this method.
18088 </desc>
18089 </param>
18090 </method>
18091
18092 <method name="queryMetricsData">
18093 <desc>
18094 Queries collected metrics data for a set of objects.
18095
18096 The data itself and related metric information are returned in seven
18097 parallel and one flattened array of arrays. Elements of
18098 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
18099 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
18100 the same index describe one set of values corresponding to a single
18101 metric.
18102
18103 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
18104 start and length of a sub-array is indicated by
18105 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
18106 value for metric <tt>metricNames[i]</tt> is at
18107 <tt>returnData[returnIndices[i]]</tt>.
18108
18109 <note>
18110 @c Null or empty metric name array means all metrics. @c Null or
18111 empty object array means all existing objects. If metric name array
18112 contains a single element and object array contains many, the single
18113 metric name array element is applied to each object array element to
18114 form metric/object pairs.
18115 </note>
18116 <note>
18117 Data collection continues behind the scenes after call to @c
18118 queryMetricsData. The return data can be seen as the snapshot of the
18119 current state at the time of @c queryMetricsData call. The internally
18120 kept metric values are not cleared by the call. This makes possible
18121 querying different subsets of metrics or aggregates with subsequent
18122 calls. If periodic querying is needed it is highly suggested to query
18123 the values with @c interval*count period to avoid confusion. This way
18124 a completely new set of data values will be provided by each query.
18125 </note>
18126 </desc>
18127 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18128 <desc>
18129 Metric name filter. Comma-separated list of metrics with wildcard
18130 support.
18131 </desc>
18132 </param>
18133 <param name="objects" type="$unknown" dir="in" safearray="yes">
18134 <desc>
18135 Set of objects to query metrics for.
18136 </desc>
18137 </param>
18138 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
18139 <desc>
18140 Names of metrics returned in @c returnData.
18141 </desc>
18142 </param>
18143 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
18144 <desc>
18145 Objects associated with metrics returned in @c returnData.
18146 </desc>
18147 </param>
18148 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
18149 <desc>
18150 Units of measurement for each returned metric.
18151 </desc>
18152 </param>
18153 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
18154 <desc>
18155 Divisor that should be applied to return values in order to get
18156 floating point values. For example:
18157 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
18158 will retrieve the floating point value of i-th sample of the first
18159 metric.
18160 </desc>
18161 </param>
18162 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
18163 <desc>
18164 Sequence numbers of the first elements of value sequences of
18165 particular metrics returned in @c returnData. For aggregate metrics
18166 it is the sequence number of the sample the aggregate started
18167 calculation from.
18168 </desc>
18169 </param>
18170 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
18171 <desc>
18172 Indices of the first elements of value sequences of particular
18173 metrics returned in @c returnData.
18174 </desc>
18175 </param>
18176 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
18177 <desc>
18178 Lengths of value sequences of particular metrics.
18179 </desc>
18180 </param>
18181 <param name="returnData" type="long" dir="return" safearray="yes">
18182 <desc>
18183 Flattened array of all metric data containing sequences of values for
18184 each metric.
18185 </desc>
18186 </param>
18187 </method>
18188
18189 </interface>
18190
18191 <enum
18192 name="NATAliasMode"
18193 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
18194 >
18195 <desc></desc>
18196 <const name="AliasLog" value="0x1">
18197 <desc></desc>
18198 </const>
18199 <const name="AliasProxyOnly" value="0x02">
18200 <desc></desc>
18201 </const>
18202 <const name="AliasUseSamePorts" value="0x04">
18203 <desc></desc>
18204 </const>
18205 </enum>
18206
18207 <enum
18208 name="NATProtocol"
18209 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
18210 >
18211 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
18212 <const name="UDP" value="0">
18213 <desc>Port-forwarding uses UDP protocol.</desc>
18214 </const>
18215 <const name="TCP" value="1">
18216 <desc>Port-forwarding uses TCP protocol.</desc>
18217 </const>
18218 </enum>
18219
18220 <interface
18221 name="INATEngine" extends="$unknown"
18222 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
18223 wsmap="managed"
18224 >
18225 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
18226 allows for changing NAT behavior such as port-forwarding rules. This interface is
18227 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
18228 <attribute name="network" type="wstring">
18229 <desc>The network attribute of the NAT engine (the same value is used with built-in
18230 DHCP server to fill corresponding fields of DHCP leases).</desc>
18231 </attribute>
18232 <attribute name="hostIP" type="wstring">
18233 <desc>IP of host interface to bind all opened sockets to.
18234 <note>Changing this does not change binding of port forwarding.</note>
18235 </desc>
18236 </attribute>
18237 <attribute name="TFTPPrefix" type="wstring">
18238 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
18239 the corresponding fields of DHCP leases.</desc>
18240 </attribute>
18241 <attribute name="TFTPBootFile" type="wstring">
18242 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
18243 the corresponding fields of DHCP leases.</desc>
18244 </attribute>
18245 <attribute name="TFTPNextServer" type="wstring">
18246 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
18247 the corresponding fields of DHCP leases.
18248 <note>The preferred form is IPv4 addresses.</note>
18249 </desc>
18250 </attribute>
18251 <attribute name="aliasMode" type="unsigned long">
18252 <desc></desc>
18253 </attribute>
18254 <attribute name="DNSPassDomain" type="boolean">
18255 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
18256 </attribute>
18257 <attribute name="DNSProxy" type="boolean">
18258 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18259 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
18260 </attribute>
18261 <attribute name="DNSUseHostResolver" type="boolean">
18262 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18263 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
18264 </attribute>
18265 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
18266 <desc>Array of NAT port-forwarding rules in string representation, in the following
18267 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
18268 </attribute>
18269 <method name="setNetworkSettings">
18270 <desc>Sets network configuration of the NAT engine.</desc>
18271 <param name="mtu" type="unsigned long" dir="in">
18272 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
18273 </param>
18274 <param name="sockSnd" type="unsigned long" dir="in">
18275 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
18276 </param>
18277 <param name="sockRcv" type="unsigned long" dir="in">
18278 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
18279 </param>
18280 <param name="TcpWndSnd" type="unsigned long" dir="in">
18281 <desc>Initial size of the NAT engine's sending TCP window in bytes when
18282 establishing a new TCP connection.</desc>
18283 </param>
18284 <param name="TcpWndRcv" type="unsigned long" dir="in">
18285 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
18286 establishing a new TCP connection.</desc>
18287 </param>
18288 </method>
18289 <method name="getNetworkSettings">
18290 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
18291 for parameter descriptions.</desc>
18292 <param name="mtu" type="unsigned long" dir="out" />
18293 <param name="sockSnd" type="unsigned long" dir="out" />
18294 <param name="sockRcv" type="unsigned long" dir="out" />
18295 <param name="TcpWndSnd" type="unsigned long" dir="out" />
18296 <param name="TcpWndRcv" type="unsigned long" dir="out" />
18297 </method>
18298 <method name="addRedirect">
18299 <desc>Adds a new NAT port-forwarding rule.</desc>
18300 <param name="name" type="wstring" dir="in">
18301 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
18302 auto-generates one using the other parameters.</desc>
18303 </param>
18304 <param name="proto" type="NATProtocol" dir="in">
18305 <desc>Protocol handled with the rule.</desc>
18306 </param>
18307 <param name="hostIP" type="wstring" dir="in">
18308 <desc>IP of the host interface to which the rule should apply. An empty ip address is
18309 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
18310 </param>
18311 <param name="hostPort" type="unsigned short" dir="in">
18312 <desc>The port number to listen on.</desc>
18313 </param>
18314 <param name="guestIP" type="wstring" dir="in">
18315 <desc>The IP address of the guest which the NAT engine will forward matching packets
18316 to. An empty IP address is acceptable, in which case the NAT engine will forward
18317 packets to the first DHCP lease (x.x.x.15).</desc>
18318 </param>
18319 <param name="guestPort" type="unsigned short" dir="in">
18320 <desc>The port number to forward.</desc>
18321 </param>
18322 </method>
18323 <method name="removeRedirect">
18324 <desc>Removes a port-forwarding rule that was previously registered.</desc>
18325 <param name="name" type="wstring" dir="in">
18326 <desc>The name of the rule to delete.</desc>
18327 </param>
18328 </method>
18329 </interface>
18330
18331 <!--
18332 // IExtPackManager
18333 /////////////////////////////////////////////////////////////////////////
18334 -->
18335
18336 <interface
18337 name="IExtPackPlugIn" extends="$unknown"
18338 uuid="58000040-e718-4746-bbce-4b86d96da461"
18339 wsmap="suppress"
18340 >
18341 <desc>
18342 Interface for keeping information about a plug-in that ships with an
18343 extension pack.
18344 </desc>
18345 <attribute name="name" type="wstring" readonly="yes">
18346 <desc>The plug-in name.</desc>
18347 </attribute>
18348 <attribute name="description" type="wstring" readonly="yes">
18349 <desc>The plug-in description.</desc>
18350 </attribute>
18351 <attribute name="frontend" type="wstring" readonly="yes">
18352 <desc>
18353 The name of the frontend or component name this plug-in plugs into.
18354 </desc>
18355 </attribute>
18356 <attribute name="modulePath" type="wstring" readonly="yes">
18357 <desc> The module path. </desc>
18358 </attribute>
18359 </interface>
18360
18361 <interface
18362 name="IExtPackBase" extends="$unknown"
18363 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
18364 wsmap="suppress"
18365 >
18366 <desc>
18367 Interface for querying information about an extension pack as well as
18368 accessing COM objects within it.
18369 </desc>
18370 <attribute name="name" type="wstring" readonly="yes">
18371 <desc>The extension pack name. This is unique.</desc>
18372 </attribute>
18373 <attribute name="description" type="wstring" readonly="yes">
18374 <desc>The extension pack description.</desc>
18375 </attribute>
18376 <attribute name="version" type="wstring" readonly="yes">
18377 <desc>
18378 The extension pack version string. This is restricted to the dotted
18379 version number and optionally a build indicator. No tree revision or
18380 tag will be included in the string as those things are available as
18381 separate properties. An optional publisher tag may be present like for
18382 <link to="IVirtualBox::version"/>.
18383
18384 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
18385 </desc>
18386 </attribute>
18387 <attribute name="revision" type="unsigned long" readonly="yes">
18388 <desc>The extension pack internal revision number.</desc>
18389 </attribute>
18390 <attribute name="edition" type="wstring" readonly="yes">
18391 <desc>
18392 Edition indicator. This is usually empty.
18393
18394 Can for instance be used to help distinguishing between two editions
18395 of the same extension pack where only the license, service contract or
18396 something differs.
18397 </desc>
18398 </attribute>
18399 <attribute name="VRDEModule" type="wstring" readonly="yes">
18400 <desc>The name of the VRDE module if the extension pack sports one.</desc>
18401 </attribute>
18402 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
18403 <desc>Plug-ins provided by this extension pack.</desc>
18404 </attribute>
18405 <attribute name="usable" type="boolean" readonly="yes">
18406 <desc>
18407 Indicates whether the extension pack is usable or not.
18408
18409 There are a number of reasons why an extension pack might be unusable,
18410 typical examples would be broken installation/file or that it is
18411 incompatible with the current VirtualBox version.
18412 </desc>
18413 </attribute>
18414 <attribute name="whyUnusable" type="wstring" readonly="yes">
18415 <desc>
18416 String indicating why the extension pack is not usable. This is an
18417 empty string if usable and always a non-empty string if not usable.
18418 </desc>
18419 </attribute>
18420 <attribute name="showLicense" type="boolean" readonly="yes">
18421 <desc>Whether to show the license before installation</desc>
18422 </attribute>
18423 <attribute name="license" type="wstring" readonly="yes">
18424 <desc>
18425 The default HTML license text for the extension pack. Same as
18426 calling <link to="#queryLicense">queryLicense</link> with
18427 preferredLocale and preferredLanguage as empty strings and format set
18428 to html.
18429 </desc>
18430 </attribute>
18431
18432 <method name="queryLicense">
18433 <desc>
18434 Full feature version of the license attribute.
18435 </desc>
18436 <param name="preferredLocale" type="wstring" dir="in">
18437 <desc>
18438 The preferred license locale. Pass an empty string to get the default
18439 license.
18440 </desc>
18441 </param>
18442 <param name="preferredLanguage" type="wstring" dir="in">
18443 <desc>
18444 The preferred license language. Pass an empty string to get the
18445 default language for the locale.
18446 </desc>
18447 </param>
18448 <param name="format" type="wstring" dir="in">
18449 <desc>
18450 The license format: html, rtf or txt. If a license is present there
18451 will always be an HTML of it, the rich text format (RTF) and plain
18452 text (txt) versions are optional. If
18453 </desc>
18454 </param>
18455 <param name="licenseText" type="wstring" dir="return">
18456 <desc>The license text.</desc>
18457 </param>
18458 </method>
18459
18460 </interface>
18461
18462 <interface
18463 name="IExtPack" extends="IExtPackBase"
18464 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
18465 wsmap="suppress"
18466 >
18467 <desc>
18468 Interface for querying information about an extension pack as well as
18469 accessing COM objects within it.
18470 </desc>
18471 <method name="queryObject">
18472 <desc>
18473 Queries the IUnknown interface to an object in the extension pack
18474 main module. This allows plug-ins and others to talk directly to an
18475 extension pack.
18476 </desc>
18477 <param name="objUuid" type="wstring" dir="in">
18478 <desc>The object ID. What exactly this is </desc>
18479 </param>
18480 <param name="returnInterface" type="$unknown" dir="return">
18481 <desc>The queried interface.</desc>
18482 </param>
18483 </method>
18484 </interface>
18485
18486 <interface
18487 name="IExtPackFile" extends="IExtPackBase"
18488 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
18489 wsmap="suppress"
18490 >
18491 <desc>
18492 Extension pack file (aka tarball, .vbox-extpack) representation returned
18493 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
18494 extension pack information with the addition of the file name.
18495 </desc>
18496 <attribute name="filePath" type="wstring" readonly="yes">
18497 <desc>
18498 The path to the extension pack file.
18499 </desc>
18500 </attribute>
18501
18502 <method name="install">
18503 <desc>
18504 Install the extension pack.
18505 </desc>
18506 <param name="replace" type="boolean" dir="in">
18507 <desc>
18508 Set this to automatically uninstall any existing extension pack with
18509 the same name as the one being installed.
18510 </desc>
18511 </param>
18512 <param name="displayInfo" type="wstring" dir="in">
18513 <desc>
18514 Platform specific display information. Reserved for future hacks.
18515 </desc>
18516 </param>
18517 <param name="progess" type="IProgress" dir="return">
18518 <desc>
18519 Progress object for the operation.
18520 </desc>
18521 </param>
18522 </method>
18523 </interface>
18524
18525 <interface
18526 name="IExtPackManager" extends="$unknown"
18527 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
18528 wsmap="suppress"
18529 >
18530 <desc>
18531 Interface for managing VirtualBox Extension Packs.
18532
18533 TODO: Describe extension packs, how they are managed and how to create
18534 one.
18535 </desc>
18536
18537 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
18538 <desc>
18539 List of the installed extension packs.
18540 </desc>
18541 </attribute>
18542
18543 <method name="find">
18544 <desc>
18545 Returns the extension pack with the specified name if found.
18546
18547 <result name="VBOX_E_OBJECT_NOT_FOUND">
18548 No extension pack matching @a name was found.
18549 </result>
18550 </desc>
18551 <param name="name" type="wstring" dir="in">
18552 <desc>The name of the extension pack to locate.</desc>
18553 </param>
18554 <param name="returnData" type="IExtPack" dir="return">
18555 <desc>The extension pack if found.</desc>
18556 </param>
18557 </method>
18558
18559 <method name="openExtPackFile">
18560 <desc>
18561 Attempts to open an extension pack file in preparation for
18562 installation.
18563 </desc>
18564 <param name="path" type="wstring" dir="in">
18565 <desc>The path of the extension pack tarball. This can optionally be
18566 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18567 </param>
18568 <param name="file" type="IExtPackFile" dir="return">
18569 <desc>The interface of the extension pack file object.</desc>
18570 </param>
18571 </method>
18572
18573 <method name="uninstall">
18574 <desc>Uninstalls an extension pack, removing all related files.</desc>
18575 <param name="name" type="wstring" dir="in">
18576 <desc>The name of the extension pack to uninstall.</desc>
18577 </param>
18578 <param name="forcedRemoval" type="boolean" dir="in">
18579 <desc>
18580 Forced removal of the extension pack. This means that the uninstall
18581 hook will not be called.
18582 </desc>
18583 </param>
18584 <param name="displayInfo" type="wstring" dir="in">
18585 <desc>
18586 Platform specific display information. Reserved for future hacks.
18587 </desc>
18588 </param>
18589 <param name="progess" type="IProgress" dir="return">
18590 <desc>
18591 Progress object for the operation.
18592 </desc>
18593 </param>
18594 </method>
18595
18596 <method name="cleanup">
18597 <desc>Cleans up failed installs and uninstalls</desc>
18598 </method>
18599
18600 <method name="queryAllPlugInsForFrontend">
18601 <desc>
18602 Gets the path to all the plug-in modules for a given frontend.
18603
18604 This is a convenience method that is intended to simplify the plug-in
18605 loading process for a frontend.
18606 </desc>
18607 <param name="frontendName" type="wstring" dir="in">
18608 <desc>The name of the frontend or component.</desc>
18609 </param>
18610 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18611 <desc>Array containing the plug-in modules (full paths).</desc>
18612 </param>
18613 </method>
18614
18615 <method name="isExtPackUsable">
18616 <desc>Check if the given extension pack is loaded and usable.</desc>
18617 <param name="name" type="wstring" dir="in">
18618 <desc>The name of the extension pack to check for.</desc>
18619 </param>
18620 <param name="usable" type="boolean" dir="return">
18621 <desc>Is the given extension pack loaded and usable.</desc>
18622 </param>
18623 </method>
18624
18625 </interface>
18626
18627 <!--
18628 // BandwidthGroupType
18629 /////////////////////////////////////////////////////////////////////////
18630 -->
18631 <enum
18632 name="BandwidthGroupType"
18633 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18634
18635 <desc>
18636 Type of a bandwidth control group.
18637 </desc>
18638
18639 <const name="Null" value="0">
18640 <desc>
18641 Null type, must be first.
18642 </desc>
18643 </const>
18644
18645 <const name="Disk" value="1">
18646 <desc>
18647 The bandwidth group controls disk I/O.
18648 </desc>
18649 </const>
18650
18651 <const name="Network" value="2">
18652 <desc>
18653 The bandwidth group controls network I/O.
18654 </desc>
18655 </const>
18656
18657 </enum>
18658
18659 <!--
18660 // IBandwidthGroup
18661 /////////////////////////////////////////////////////////////////////////
18662 -->
18663 <interface
18664 name="IBandwidthGroup" extends="$unknown"
18665 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18666 wsmap="managed"
18667 >
18668 <desc>Represents one bandwidth group.</desc>
18669
18670 <attribute name="name" type="wstring" readonly="yes">
18671 <desc>Name of the group.</desc>
18672 </attribute>
18673
18674 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18675 <desc>Type of the group.</desc>
18676 </attribute>
18677
18678 <attribute name="reference" type="unsigned long" readonly="yes">
18679 <desc>How many devices/medium attachements use this group.</desc>
18680 </attribute>
18681
18682 <attribute name="maxBytesPerSec" type="long long">
18683 <desc>The maximum number of bytes which can be transfered by all
18684 entities attached to this group during one second.</desc>
18685 </attribute>
18686
18687 </interface>
18688
18689 <!--
18690 // IBandwidthControl
18691 /////////////////////////////////////////////////////////////////////////
18692 -->
18693 <interface
18694 name="IBandwidthControl" extends="$unknown"
18695 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18696 wsmap="managed"
18697 >
18698 <desc>
18699 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18700 This includes network and disk I/O.
18701 </desc>
18702
18703 <attribute name="numGroups" type="unsigned long" readonly="yes">
18704 <desc>
18705 The current number of existing bandwidth groups managed.
18706 </desc>
18707 </attribute>
18708
18709 <method name="createBandwidthGroup">
18710 <desc>
18711 Creates a new bandwidth group.
18712 </desc>
18713
18714 <param name="name" type="wstring" dir="in">
18715 <desc>Name of the bandwidth group.</desc>
18716 </param>
18717 <param name="type" type="BandwidthGroupType" dir="in">
18718 <desc>The type of the bandwidth group (network or disk).</desc>
18719 </param>
18720 <param name="maxBytesPerSec" type="long long" dir="in">
18721 <desc>The maximum number of bytes which can be transfered by all
18722 entities attached to this group during one second.</desc>
18723 </param>
18724 </method>
18725
18726 <method name="deleteBandwidthGroup">
18727 <desc>
18728 Deletes a new bandwidth group.
18729 </desc>
18730
18731 <param name="name" type="wstring" dir="in">
18732 <desc>Name of the bandwidth group to delete.</desc>
18733 </param>
18734 </method>
18735
18736 <method name="getBandwidthGroup" const="yes">
18737 <desc>
18738 Get a bandwidth group by name.
18739 </desc>
18740
18741 <param name="name" type="wstring" dir="in">
18742 <desc>Name of the bandwidth group to get.</desc>
18743 </param>
18744 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18745 <desc>Where to store the bandwidth group on success.</desc>
18746 </param>
18747 </method>
18748
18749 <method name="getAllBandwidthGroups" const="yes">
18750 <desc>
18751 Get all managed bandwidth groups.
18752 </desc>
18753
18754 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18755 <desc>The array of managed bandwidth groups.</desc>
18756 </param>
18757 </method>
18758 </interface>
18759
18760 <!--
18761 // IVirtualBoxClient
18762 /////////////////////////////////////////////////////////////////////////
18763 -->
18764
18765 <interface
18766 name="IVirtualBoxClient" extends="$unknown"
18767 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
18768 wsmap="suppress"
18769 >
18770 <desc>
18771 Convenience interface for client applications. Treat this as a
18772 singleton, i.e. never create more than one instance of this interface.
18773
18774 At the moment only available for clients of the local API (not usable
18775 via the webservice). Once the session logic is redesigned this might
18776 change.
18777 </desc>
18778
18779 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18780 <desc>
18781 Reference to the server-side API root object.
18782 </desc>
18783 </attribute>
18784
18785 <attribute name="session" type="ISession" readonly="yes">
18786 <desc>
18787 Create a new session object and return the reference to it.
18788 </desc>
18789 </attribute>
18790
18791 <attribute name="eventSource" type="IEventSource" readonly="yes">
18792 <desc>
18793 Event source for VirtualBoxClient events.
18794 </desc>
18795 </attribute>
18796
18797 </interface>
18798
18799 <!--
18800 // Events
18801 /////////////////////////////////////////////////////////////////////////
18802 -->
18803 <enum
18804 name="VBoxEventType"
18805 uuid="0d67e79e-b7b1-4919-aab3-b36866075515"
18806 >
18807
18808 <desc>
18809 Type of an event.
18810 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18811 </desc>
18812
18813 <const name="Invalid" value="0">
18814 <desc>
18815 Invalid event, must be first.
18816 </desc>
18817 </const>
18818
18819 <const name="Any" value="1">
18820 <desc>
18821 Wildcard for all events.
18822 Events of this type are never delivered, and only used in
18823 <link to="IEventSource::registerListener"/> call to simplify registration.
18824 </desc>
18825 </const>
18826
18827 <const name="Vetoable" value="2">
18828 <desc>
18829 Wildcard for all vetoable events. Events of this type are never delivered, and only
18830 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18831 </desc>
18832 </const>
18833
18834 <const name="MachineEvent" value="3">
18835 <desc>
18836 Wildcard for all machine events. Events of this type are never delivered, and only used in
18837 <link to="IEventSource::registerListener"/> call to simplify registration.
18838 </desc>
18839 </const>
18840
18841 <const name="SnapshotEvent" value="4">
18842 <desc>
18843 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18844 <link to="IEventSource::registerListener"/> call to simplify registration.
18845 </desc>
18846 </const>
18847
18848 <const name="InputEvent" value="5">
18849 <desc>
18850 Wildcard for all input device (keyboard, mouse) events.
18851 Events of this type are never delivered, and only used in
18852 <link to="IEventSource::registerListener"/> call to simplify registration.
18853 </desc>
18854 </const>
18855
18856 <const name="LastWildcard" value="31">
18857 <desc>
18858 Last wildcard.
18859 </desc>
18860 </const>
18861
18862 <const name="OnMachineStateChanged" value="32">
18863 <desc>
18864 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18865 </desc>
18866 </const>
18867 <const name="OnMachineDataChanged" value="33">
18868 <desc>
18869 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18870 </desc>
18871 </const>
18872 <const name="OnExtraDataChanged" value="34">
18873 <desc>
18874 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18875 </desc>
18876 </const>
18877 <const name="OnExtraDataCanChange" value="35">
18878 <desc>
18879 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18880 </desc>
18881 </const>
18882 <const name="OnMediumRegistered" value="36">
18883 <desc>
18884 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18885 </desc>
18886 </const>
18887 <const name="OnMachineRegistered" value="37">
18888 <desc>
18889 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18890 </desc>
18891 </const>
18892 <const name="OnSessionStateChanged" value="38">
18893 <desc>
18894 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18895 </desc>
18896 </const>
18897 <const name="OnSnapshotTaken" value="39">
18898 <desc>
18899 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18900 </desc>
18901 </const>
18902 <const name="OnSnapshotDeleted" value="40">
18903 <desc>
18904 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18905 </desc>
18906 </const>
18907 <const name="OnSnapshotChanged" value="41">
18908 <desc>
18909 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18910 </desc>
18911 </const>
18912 <const name="OnGuestPropertyChanged" value="42">
18913 <desc>
18914 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18915 </desc>
18916 </const>
18917 <!-- Console events -->
18918 <const name="OnMousePointerShapeChanged" value="43">
18919 <desc>
18920 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18921 </desc>
18922 </const>
18923 <const name="OnMouseCapabilityChanged" value="44">
18924 <desc>
18925 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18926 </desc>
18927 </const>
18928 <const name="OnKeyboardLedsChanged" value="45">
18929 <desc>
18930 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18931 </desc>
18932 </const>
18933 <const name="OnStateChanged" value="46">
18934 <desc>
18935 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18936 </desc>
18937 </const>
18938 <const name="OnAdditionsStateChanged" value="47">
18939 <desc>
18940 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18941 </desc>
18942 </const>
18943 <const name="OnNetworkAdapterChanged" value="48">
18944 <desc>
18945 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18946 </desc>
18947 </const>
18948 <const name="OnSerialPortChanged" value="49">
18949 <desc>
18950 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18951 </desc>
18952 </const>
18953 <const name="OnParallelPortChanged" value="50">
18954 <desc>
18955 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18956 </desc>
18957 </const>
18958 <const name="OnStorageControllerChanged" value="51">
18959 <desc>
18960 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18961 </desc>
18962 </const>
18963 <const name="OnMediumChanged" value="52">
18964 <desc>
18965 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18966 </desc>
18967 </const>
18968 <const name="OnVRDEServerChanged" value="53">
18969 <desc>
18970 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18971 </desc>
18972 </const>
18973 <const name="OnUSBControllerChanged" value="54">
18974 <desc>
18975 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18976 </desc>
18977 </const>
18978 <const name="OnUSBDeviceStateChanged" value="55">
18979 <desc>
18980 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18981 </desc>
18982 </const>
18983 <const name="OnSharedFolderChanged" value="56">
18984 <desc>
18985 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18986 </desc>
18987 </const>
18988 <const name="OnRuntimeError" value="57">
18989 <desc>
18990 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18991 </desc>
18992 </const>
18993 <const name="OnCanShowWindow" value="58">
18994 <desc>
18995 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18996 </desc>
18997 </const>
18998 <const name="OnShowWindow" value="59">
18999 <desc>
19000 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
19001 </desc>
19002 </const>
19003 <const name="OnCPUChanged" value="60">
19004 <desc>
19005 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
19006 </desc>
19007 </const>
19008 <const name="OnVRDEServerInfoChanged" value="61">
19009 <desc>
19010 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
19011 </desc>
19012 </const>
19013 <const name="OnEventSourceChanged" value="62">
19014 <desc>
19015 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
19016 </desc>
19017 </const>
19018 <const name="OnCPUExecutionCapChanged" value="63">
19019 <desc>
19020 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
19021 </desc>
19022 </const>
19023 <const name="OnGuestKeyboard" value="64">
19024 <desc>
19025 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
19026 </desc>
19027 </const>
19028 <const name="OnGuestMouse" value="65">
19029 <desc>
19030 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
19031 </desc>
19032 </const>
19033 <const name="OnNATRedirect" value="66">
19034 <desc>
19035 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
19036 </desc>
19037 </const>
19038 <const name="OnHostPCIDevicePlug" value="67">
19039 <desc>
19040 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
19041 </desc>
19042 </const>
19043 <const name="OnVBoxSVCAvailabilityChanged" value="68">
19044 <desc>
19045 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
19046 </desc>
19047 </const>
19048 <const name="OnBandwidthGroupChanged" value="69">
19049 <desc>
19050 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
19051 </desc>
19052 </const>
19053 <const name="OnGuestMonitorChanged" value="70">
19054 <desc>
19055 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
19056 </desc>
19057 </const>
19058 <const name="OnStorageDeviceChanged" value="71">
19059 <desc>
19060 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
19061 </desc>
19062 </const>
19063 <const name="OnClipboardModeChanged" value="72">
19064 <desc>
19065 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
19066 </desc>
19067 </const>
19068 <const name="OnDragAndDropModeChanged" value="73">
19069 <desc>
19070 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
19071 </desc>
19072 </const>
19073
19074 <!-- Last event marker -->
19075 <const name="Last" value="74">
19076 <desc>
19077 Must be last event, used for iterations and structures relying on numerical event values.
19078 </desc>
19079 </const>
19080
19081 </enum>
19082
19083 <interface
19084 name="IEventSource" extends="$unknown"
19085 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
19086 wsmap="managed"
19087 >
19088 <desc>
19089 Event source. Generally, any object which could generate events can be an event source,
19090 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
19091 an event source can work with listeners in either active or passive mode. In active mode it is up to
19092 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
19093 event source keeps track of pending events for each listener and returns available events on demand.
19094
19095 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19096 </desc>
19097
19098 <method name="createListener">
19099 <desc>
19100 Creates a new listener object, useful for passive mode.
19101 </desc>
19102 <param name="listener" type="IEventListener" dir="return"/>
19103 </method>
19104
19105 <method name="createAggregator">
19106 <desc>
19107 Creates an aggregator event source, collecting events from multiple sources.
19108 This way a single listener can listen for events coming from multiple sources,
19109 using a single blocking <link to="#getEvent"/> on the returned aggregator.
19110 </desc>
19111 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
19112 <desc>
19113 Subordinate event source this one aggregatres.
19114 </desc>
19115 </param>
19116 <param name="result" type="IEventSource" dir="return">
19117 <desc>
19118 Event source aggregating passed sources.
19119 </desc>
19120 </param>
19121 </method>
19122
19123 <method name="registerListener">
19124 <desc>
19125 Register an event listener.
19126
19127 <note>
19128 To avoid system overload, the VirtualBox server process checks if passive event
19129 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
19130 current implementation, if more than 500 pending events are detected for a passive
19131 event listener, it is forcefully unregistered by the system, and further
19132 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
19133 </note>
19134 </desc>
19135 <param name="listener" type="IEventListener" dir="in">
19136 <desc>Listener to register.</desc>
19137 </param>
19138 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
19139 <desc>
19140 Event types listener is interested in. One can use wildcards like -
19141 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
19142 than one event.
19143 </desc>
19144 </param>
19145 <param name="active" type="boolean" dir="in">
19146 <desc>
19147 Which mode this listener is operating in.
19148 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
19149 In passive mode, an internal event queue is created for this this IEventListener.
19150 For each event coming in, it is added to queues for all interested registered passive
19151 listeners. It is then up to the external code to call the listener's
19152 <link to="IEventListener::handleEvent" /> method. When done with an event, the
19153 external code must call <link to="#eventProcessed" />.
19154 </desc>
19155 </param>
19156 </method>
19157
19158 <method name="unregisterListener">
19159 <desc>
19160 Unregister an event listener. If listener is passive, and some waitable events are still
19161 in queue they are marked as processed automatically.
19162 </desc>
19163 <param name="listener" type="IEventListener" dir="in">
19164 <desc>Listener to unregister.</desc>
19165 </param>
19166 </method>
19167
19168 <method name="fireEvent">
19169 <desc>
19170 Fire an event for this source.
19171 </desc>
19172 <param name="event" type="IEvent" dir="in">
19173 <desc>Event to deliver.</desc>
19174 </param>
19175 <param name="timeout" type="long" dir="in">
19176 <desc>
19177 Maximum time to wait for event processing (if event is waitable), in ms;
19178 0 = no wait, -1 = indefinite wait.
19179 </desc>
19180 </param>
19181 <param name="result" type="boolean" dir="return">
19182 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
19183 </param>
19184 </method>
19185
19186 <method name="getEvent">
19187 <desc>
19188 Get events from this peer's event queue (for passive mode). Calling this method
19189 regularly is required for passive event listeners to avoid system overload;
19190 see <link to="IEventSource::registerListener" /> for details.
19191
19192 <result name="VBOX_E_OBJECT_NOT_FOUND">
19193 Listener is not registered, or autounregistered.
19194 </result>
19195 </desc>
19196 <param name="listener" type="IEventListener" dir="in">
19197 <desc>Which listener to get data for.</desc>
19198 </param>
19199 <param name="timeout" type="long" dir="in">
19200 <desc>
19201 Maximum time to wait for events, in ms;
19202 0 = no wait, -1 = indefinite wait.
19203 </desc>
19204 </param>
19205 <param name="event" type="IEvent" dir="return">
19206 <desc>Event retrieved, or null if none available.</desc>
19207 </param>
19208 </method>
19209
19210 <method name="eventProcessed">
19211 <desc>
19212 Must be called for waitable events after a particular listener finished its
19213 event processing. When all listeners of a particular event have called this
19214 method, the system will then call <link to="IEvent::setProcessed" />.
19215 </desc>
19216 <param name="listener" type="IEventListener" dir="in">
19217 <desc>Which listener processed event.</desc>
19218 </param>
19219 <param name="event" type="IEvent" dir="in">
19220 <desc>Which event.</desc>
19221 </param>
19222 </method>
19223
19224 </interface>
19225
19226 <interface
19227 name="IEventListener" extends="$unknown"
19228 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
19229 wsmap="managed"
19230 >
19231 <desc>
19232 Event listener. An event listener can work in either active or passive mode, depending on the way
19233 it was registered.
19234 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19235 </desc>
19236
19237 <method name="handleEvent">
19238 <desc>
19239 Handle event callback for active listeners. It is not called for
19240 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
19241 and having received acknowledgement from all passive listeners via
19242 <link to="IEventSource::eventProcessed"/>, the event is marked as
19243 processed and <link to="IEvent::waitProcessed"/> will return
19244 immediately.
19245 </desc>
19246 <param name="event" type="IEvent" dir="in">
19247 <desc>Event available.</desc>
19248 </param>
19249 </method>
19250
19251 </interface>
19252
19253 <interface
19254 name="IEvent" extends="$unknown"
19255 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
19256 wsmap="managed"
19257 >
19258 <desc>
19259 Abstract parent interface for VirtualBox events. Actual events will typically implement
19260 a more specific interface which derives from this (see below).
19261
19262 <b>Introduction to VirtualBox events</b>
19263
19264 Generally speaking, an event (represented by this interface) signals that something
19265 happened, while an event listener (see <link to="IEventListener" />) represents an
19266 entity that is interested in certain events. In order for this to work with
19267 unidirectional protocols (i.e. web services), the concepts of passive and active
19268 listener are used.
19269
19270 Event consumers can register themselves as listeners, providing an array of
19271 events they are interested in (see <link to="IEventSource::registerListener" />).
19272 When an event triggers, the listener is notified about the event. The exact
19273 mechanism of the notification depends on whether the listener was registered as
19274 an active or passive listener:
19275
19276 <ul>
19277 <li>An active listener is very similar to a callback: it is a function invoked
19278 by the API. As opposed to the callbacks that were used in the API before
19279 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
19280 </li>
19281
19282 <li>Passive listeners are somewhat trickier to implement, but do not require
19283 a client function to be callable, which is not an option with scripting
19284 languages or web service clients. Internally the <link to="IEventSource" />
19285 implementation maintains an event queue for each passive listener, and
19286 newly arrived events are put in this queue. When the listener calls
19287 <link to="IEventSource::getEvent"/>, first element from its internal event
19288 queue is returned. When the client completes processing of an event,
19289 the <link to="IEventSource::eventProcessed" /> function must be called,
19290 acknowledging that the event was processed. It supports implementing
19291 waitable events. On passive listener unregistration, all events from its
19292 queue are auto-acknowledged.
19293 </li>
19294 </ul>
19295
19296 Waitable events are useful in situations where the event generator wants to track
19297 delivery or a party wants to wait until all listeners have completed the event. A
19298 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
19299 listeners might veto a certain action, and thus the event producer has to make
19300 sure that all listeners have processed the event and not vetoed before taking
19301 the action.
19302
19303 A given event may have both passive and active listeners at the same time.
19304
19305 <b>Using events</b>
19306
19307 Any VirtualBox object capable of producing externally visible events provides an
19308 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
19309 This event source object is notified by VirtualBox once something has happened, so
19310 consumers may register event listeners with this event source. To register a listener,
19311 an object implementing the <link to="IEventListener" /> interface must be provided.
19312 For active listeners, such an object is typically created by the consumer, while for
19313 passive listeners <link to="IEventSource::createListener" /> should be used. Please
19314 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
19315
19316 Once created, the listener must be registered to listen for the desired events
19317 (see <link to="IEventSource::registerListener" />), providing an array of
19318 <link to="VBoxEventType" /> enums. Those elements can either be the individual
19319 event IDs or wildcards matching multiple event IDs.
19320
19321 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
19322 called automatically when the event is triggered, while passive listeners have to call
19323 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
19324 an event processing loop.
19325
19326 The IEvent interface is an abstract parent interface for all such VirtualBox events
19327 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
19328 or the event processing loop is to check the <link to="#type" /> attribute of the event and
19329 then cast to the appropriate specific interface using @c QueryInterface().
19330 </desc>
19331
19332 <attribute name="type" readonly="yes" type="VBoxEventType">
19333 <desc>
19334 Event type.
19335 </desc>
19336 </attribute>
19337
19338 <attribute name="source" readonly="yes" type="IEventSource">
19339 <desc>
19340 Source of this event.
19341 </desc>
19342 </attribute>
19343
19344 <attribute name="waitable" readonly="yes" type="boolean">
19345 <desc>
19346 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
19347 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
19348 as no additional overhead associated with waitability imposed.
19349 Waitable events are needed when one need to be able to wait for particular event processed,
19350 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
19351 until all consumers confirmed events.
19352 </desc>
19353 </attribute>
19354
19355 <method name="setProcessed">
19356 <desc>
19357 Internal method called by the system when all listeners of a particular event have called
19358 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
19359 </desc>
19360 </method>
19361
19362 <method name="waitProcessed">
19363 <desc>
19364 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
19365 described semantics, for non-waitable returns true immediately.
19366 </desc>
19367 <param name="timeout" type="long" dir="in">
19368 <desc>
19369 Maximum time to wait for event processeing, in ms;
19370 0 = no wait, -1 = indefinite wait.
19371 </desc>
19372 </param>
19373 <param name="result" type="boolean" dir="return">
19374 <desc>If this event was processed before timeout.</desc>
19375 </param>
19376 </method>
19377 </interface>
19378
19379
19380 <interface
19381 name="IReusableEvent" extends="IEvent"
19382 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
19383 wsmap="managed"
19384 >
19385 <desc>Base abstract interface for all reusable events.</desc>
19386
19387 <attribute name="generation" readonly="yes" type="unsigned long">
19388 <desc>Current generation of event, incremented on reuse.</desc>
19389 </attribute>
19390
19391 <method name="reuse">
19392 <desc>
19393 Marks an event as reused, increments 'generation', fields shall no
19394 longer be considered valid.
19395 </desc>
19396 </method>
19397 </interface>
19398
19399 <interface
19400 name="IMachineEvent" extends="IEvent"
19401 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
19402 wsmap="managed" id="MachineEvent"
19403 >
19404 <desc>Base abstract interface for all machine events.</desc>
19405
19406 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
19407 <desc>ID of the machine this event relates to.</desc>
19408 </attribute>
19409
19410 </interface>
19411
19412 <interface
19413 name="IMachineStateChangedEvent" extends="IMachineEvent"
19414 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
19415 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
19416 >
19417 <desc>Machine state change event.</desc>
19418
19419 <attribute name="state" readonly="yes" type="MachineState">
19420 <desc>New execution state.</desc>
19421 </attribute>
19422 </interface>
19423
19424 <interface
19425 name="IMachineDataChangedEvent" extends="IMachineEvent"
19426 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
19427 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
19428 >
19429 <desc>
19430 Any of the settings of the given machine has changed.
19431 </desc>
19432
19433 <attribute name="temporary" readonly="yes" type="boolean">
19434 <desc>@c true if the settings change is temporary. All permanent
19435 settings changes will trigger an event, and only temporary settings
19436 changes for running VMs will trigger an event. Note: sending events
19437 for temporary changes is NOT IMPLEMENTED.</desc>
19438 </attribute>
19439 </interface>
19440
19441 <interface
19442 name="IMediumRegisteredEvent" extends="IEvent"
19443 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
19444 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
19445 >
19446 <desc>
19447 The given medium was registered or unregistered
19448 within this VirtualBox installation.
19449 </desc>
19450
19451 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
19452 <desc>ID of the medium this event relates to.</desc>
19453 </attribute>
19454
19455 <attribute name="mediumType" readonly="yes" type="DeviceType">
19456 <desc>Type of the medium this event relates to.</desc>
19457 </attribute>
19458
19459 <attribute name="registered" type="boolean" readonly="yes">
19460 <desc>
19461 If @c true, the medium was registered, otherwise it was
19462 unregistered.
19463 </desc>
19464 </attribute>
19465 </interface>
19466
19467 <interface
19468 name="IMachineRegisteredEvent" extends="IMachineEvent"
19469 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
19470 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
19471 >
19472 <desc>
19473 The given machine was registered or unregistered
19474 within this VirtualBox installation.
19475 </desc>
19476
19477 <attribute name="registered" type="boolean" readonly="yes">
19478 <desc>
19479 If @c true, the machine was registered, otherwise it was
19480 unregistered.
19481 </desc>
19482 </attribute>
19483 </interface>
19484
19485 <interface
19486 name="ISessionStateChangedEvent" extends="IMachineEvent"
19487 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
19488 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
19489 >
19490 <desc>
19491 The state of the session for the given machine was changed.
19492 <see><link to="IMachine::sessionState"/></see>
19493 </desc>
19494
19495 <attribute name="state" type="SessionState" readonly="yes">
19496 <desc>
19497 New session state.
19498 </desc>
19499 </attribute>
19500 </interface>
19501
19502 <interface
19503 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
19504 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
19505 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
19506 >
19507 <desc>
19508 Notification when a guest property has changed.
19509 </desc>
19510
19511 <attribute name="name" readonly="yes" type="wstring">
19512 <desc>
19513 The name of the property that has changed.
19514 </desc>
19515 </attribute>
19516
19517 <attribute name="value" readonly="yes" type="wstring">
19518 <desc>
19519 The new property value.
19520 </desc>
19521 </attribute>
19522
19523 <attribute name="flags" readonly="yes" type="wstring">
19524 <desc>
19525 The new property flags.
19526 </desc>
19527 </attribute>
19528
19529 </interface>
19530
19531 <interface
19532 name="ISnapshotEvent" extends="IMachineEvent"
19533 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
19534 wsmap="managed" id="SnapshotEvent"
19535 >
19536 <desc>Base interface for all snapshot events.</desc>
19537
19538 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
19539 <desc>ID of the snapshot this event relates to.</desc>
19540 </attribute>
19541
19542 </interface>
19543
19544 <interface
19545 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
19546 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
19547 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
19548 >
19549 <desc>
19550 A new snapshot of the machine has been taken.
19551 <see><link to="ISnapshot"/></see>
19552 </desc>
19553 </interface>
19554
19555 <interface
19556 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
19557 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
19558 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
19559 >
19560 <desc>
19561 Snapshot of the given machine has been deleted.
19562
19563 <note>
19564 This notification is delivered <b>after</b> the snapshot
19565 object has been uninitialized on the server (so that any
19566 attempt to call its methods will return an error).
19567 </note>
19568
19569 <see><link to="ISnapshot"/></see>
19570 </desc>
19571 </interface>
19572
19573 <interface
19574 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19575 uuid="07541941-8079-447a-a33e-47a69c7980db"
19576 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19577 >
19578 <desc>
19579 Snapshot properties (name and/or description) have been changed.
19580 <see><link to="ISnapshot"/></see>
19581 </desc>
19582 </interface>
19583
19584 <interface
19585 name="IMousePointerShapeChangedEvent" extends="IEvent"
19586 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19587 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19588 >
19589 <desc>
19590 Notification when the guest mouse pointer shape has
19591 changed. The new shape data is given.
19592 </desc>
19593
19594 <attribute name="visible" type="boolean" readonly="yes">
19595 <desc>
19596 Flag whether the pointer is visible.
19597 </desc>
19598 </attribute>
19599 <attribute name="alpha" type="boolean" readonly="yes">
19600 <desc>
19601 Flag whether the pointer has an alpha channel.
19602 </desc>
19603 </attribute>
19604 <attribute name="xhot" type="unsigned long" readonly="yes">
19605 <desc>
19606 The pointer hot spot X coordinate.
19607 </desc>
19608 </attribute>
19609 <attribute name="yhot" type="unsigned long" readonly="yes">
19610 <desc>
19611 The pointer hot spot Y coordinate.
19612 </desc>
19613 </attribute>
19614 <attribute name="width" type="unsigned long" readonly="yes">
19615 <desc>
19616 Width of the pointer shape in pixels.
19617 </desc>
19618 </attribute>
19619 <attribute name="height" type="unsigned long" readonly="yes">
19620 <desc>
19621 Height of the pointer shape in pixels.
19622 </desc>
19623 </attribute>
19624 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19625 <desc>
19626 Shape buffer arrays.
19627
19628 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19629 followed by a 32-bpp XOR (color) mask.
19630
19631 For pointers without alpha channel the XOR mask pixels are 32
19632 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19633 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19634
19635 An AND mask is used for pointers with alpha channel, so if the
19636 callback does not support alpha, the pointer could be
19637 displayed as a normal color pointer.
19638
19639 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19640 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19641 height</tt>. The padding bits at the end of each scanline are
19642 undefined.
19643
19644 The XOR mask follows the AND mask on the next 4-byte aligned
19645 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19646 Bytes in the gap between the AND and the XOR mask are undefined.
19647 The XOR mask scanlines have no gap between them and the size of
19648 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19649
19650 <note>
19651 If @a shape is 0, only the pointer visibility is changed.
19652 </note>
19653 </desc>
19654 </attribute>
19655 </interface>
19656
19657 <interface
19658 name="IMouseCapabilityChangedEvent" extends="IEvent"
19659 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19660 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19661 >
19662 <desc>
19663 Notification when the mouse capabilities reported by the
19664 guest have changed. The new capabilities are passed.
19665 </desc>
19666 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19667 <desc>
19668 Supports absolute coordinates.
19669 </desc>
19670 </attribute>
19671 <attribute name="supportsRelative" type="boolean" readonly="yes">
19672 <desc>
19673 Supports relative coordinates.
19674 </desc>
19675 </attribute>
19676 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19677 <desc>
19678 If host cursor is needed.
19679 </desc>
19680 </attribute>
19681 </interface>
19682
19683 <interface
19684 name="IKeyboardLedsChangedEvent" extends="IEvent"
19685 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19686 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19687 >
19688 <desc>
19689 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19690 to alter the state of the keyboard LEDs.
19691 </desc>
19692 <attribute name="numLock" type="boolean" readonly="yes">
19693 <desc>
19694 NumLock status.
19695 </desc>
19696 </attribute>
19697 <attribute name="capsLock" type="boolean" readonly="yes">
19698 <desc>
19699 CapsLock status.
19700 </desc>
19701 </attribute>
19702 <attribute name="scrollLock" type="boolean" readonly="yes">
19703 <desc>
19704 ScrollLock status.
19705 </desc>
19706 </attribute>
19707 </interface>
19708
19709 <interface
19710 name="IStateChangedEvent" extends="IEvent"
19711 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19712 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19713 >
19714 <desc>
19715 Notification when the execution state of the machine has changed.
19716 The new state is given.
19717 </desc>
19718 <attribute name="state" type="MachineState" readonly="yes">
19719 <desc>
19720 New machine state.
19721 </desc>
19722 </attribute>
19723 </interface>
19724
19725 <interface
19726 name="IAdditionsStateChangedEvent" extends="IEvent"
19727 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19728 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19729 >
19730 <desc>
19731 Notification when a Guest Additions property changes.
19732 Interested callees should query IGuest attributes to
19733 find out what has changed.
19734 </desc>
19735 </interface>
19736
19737 <interface
19738 name="INetworkAdapterChangedEvent" extends="IEvent"
19739 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19740 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19741 >
19742 <desc>
19743 Notification when a property of one of the
19744 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19745 changes. Interested callees should use INetworkAdapter methods and
19746 attributes to find out what has changed.
19747 </desc>
19748 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19749 <desc>
19750 Network adapter that is subject to change.
19751 </desc>
19752 </attribute>
19753 </interface>
19754
19755 <interface
19756 name="ISerialPortChangedEvent" extends="IEvent"
19757 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19758 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19759 >
19760 <desc>
19761 Notification when a property of one of the
19762 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19763 Interested callees should use ISerialPort methods and attributes
19764 to find out what has changed.
19765 </desc>
19766 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19767 <desc>
19768 Serial port that is subject to change.
19769 </desc>
19770 </attribute>
19771 </interface>
19772
19773 <interface
19774 name="IParallelPortChangedEvent" extends="IEvent"
19775 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19776 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19777 >
19778 <desc>
19779 Notification when a property of one of the
19780 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19781 changes. Interested callees should use ISerialPort methods and
19782 attributes to find out what has changed.
19783 </desc>
19784 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19785 <desc>
19786 Parallel port that is subject to change.
19787 </desc>
19788 </attribute>
19789 </interface>
19790
19791 <interface
19792 name="IStorageControllerChangedEvent" extends="IEvent"
19793 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19794 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19795 >
19796 <desc>
19797 Notification when a
19798 <link to="IMachine::mediumAttachments">medium attachment</link>
19799 changes.
19800 </desc>
19801 </interface>
19802
19803 <interface
19804 name="IMediumChangedEvent" extends="IEvent"
19805 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19806 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19807 >
19808 <desc>
19809 Notification when a
19810 <link to="IMachine::mediumAttachments">medium attachment</link>
19811 changes.
19812 </desc>
19813 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19814 <desc>
19815 Medium attachment that is subject to change.
19816 </desc>
19817 </attribute>
19818 </interface>
19819
19820 <interface
19821 name="IClipboardModeChangedEvent" extends="IEvent"
19822 uuid="cac21692-7997-4595-a731-3a509db604e5"
19823 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19824 >
19825 <desc>
19826 Notification when the shared clipboard mode changes.
19827 </desc>
19828 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19829 <desc>
19830 The new clipboard mode.
19831 </desc>
19832 </attribute>
19833 </interface>
19834
19835 <interface
19836 name="IDragAndDropModeChangedEvent" extends="IEvent"
19837 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19838 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19839 >
19840 <desc>
19841 Notification when the drag'n'drop mode changes.
19842 </desc>
19843 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19844 <desc>
19845 The new drag'n'drop mode.
19846 </desc>
19847 </attribute>
19848 </interface>
19849
19850 <interface
19851 name="ICPUChangedEvent" extends="IEvent"
19852 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19853 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19854 >
19855 <desc>
19856 Notification when a CPU changes.
19857 </desc>
19858 <attribute name="CPU" type="unsigned long" readonly="yes">
19859 <desc>
19860 The CPU which changed.
19861 </desc>
19862 </attribute>
19863 <attribute name="add" type="boolean" readonly="yes">
19864 <desc>
19865 Flag whether the CPU was added or removed.
19866 </desc>
19867 </attribute>
19868 </interface>
19869
19870 <interface
19871 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19872 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19873 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19874 >
19875 <desc>
19876 Notification when the CPU execution cap changes.
19877 </desc>
19878 <attribute name="executionCap" type="unsigned long" readonly="yes">
19879 <desc>
19880 The new CPU execution cap value. (1-100)
19881 </desc>
19882 </attribute>
19883 </interface>
19884
19885 <interface
19886 name="IGuestKeyboardEvent" extends="IEvent"
19887 uuid="88394258-7006-40d4-b339-472ee3801844"
19888 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19889 >
19890 <desc>
19891 Notification when guest keyboard event happens.
19892 </desc>
19893 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19894 <desc>
19895 Array of scancodes.
19896 </desc>
19897 </attribute>
19898 </interface>
19899
19900 <interface
19901 name="IGuestMouseEvent" extends="IReusableEvent"
19902 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19903 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19904 >
19905 <desc>
19906 Notification when guest mouse event happens.
19907 </desc>
19908
19909 <attribute name="absolute" type="boolean" readonly="yes">
19910 <desc>
19911 If this event is relative or absolute.
19912 </desc>
19913 </attribute>
19914
19915 <attribute name="x" type="long" readonly="yes">
19916 <desc>
19917 New X position, or X delta.
19918 </desc>
19919 </attribute>
19920
19921 <attribute name="y" type="long" readonly="yes">
19922 <desc>
19923 New Y position, or Y delta.
19924 </desc>
19925 </attribute>
19926
19927 <attribute name="z" type="long" readonly="yes">
19928 <desc>
19929 Z delta.
19930 </desc>
19931 </attribute>
19932
19933 <attribute name="w" type="long" readonly="yes">
19934 <desc>
19935 W delta.
19936 </desc>
19937 </attribute>
19938
19939 <attribute name="buttons" type="long" readonly="yes">
19940 <desc>
19941 Button state bitmask.
19942 </desc>
19943 </attribute>
19944
19945 </interface>
19946
19947
19948 <interface
19949 name="IVRDEServerChangedEvent" extends="IEvent"
19950 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
19951 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
19952 >
19953 <desc>
19954 Notification when a property of the
19955 <link to="IMachine::VRDEServer">VRDE server</link> changes.
19956 Interested callees should use IVRDEServer methods and attributes to
19957 find out what has changed.
19958 </desc>
19959 </interface>
19960
19961 <interface
19962 name="IVRDEServerInfoChangedEvent" extends="IEvent"
19963 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
19964 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
19965 >
19966 <desc>
19967 Notification when the status of the VRDE server changes. Interested callees
19968 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
19969 attributes to find out what is the current status.
19970 </desc>
19971 </interface>
19972
19973 <interface
19974 name="IUSBControllerChangedEvent" extends="IEvent"
19975 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
19976 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
19977 >
19978 <desc>
19979 Notification when a property of the virtual
19980 <link to="IMachine::USBController">USB controller</link> changes.
19981 Interested callees should use IUSBController methods and attributes to
19982 find out what has changed.
19983 </desc>
19984 </interface>
19985
19986 <interface
19987 name="IUSBDeviceStateChangedEvent" extends="IEvent"
19988 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
19989 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
19990 >
19991 <desc>
19992 Notification when a USB device is attached to or detached from
19993 the virtual USB controller.
19994
19995 This notification is sent as a result of the indirect
19996 request to attach the device because it matches one of the
19997 machine USB filters, or as a result of the direct request
19998 issued by <link to="IConsole::attachUSBDevice"/> or
19999 <link to="IConsole::detachUSBDevice"/>.
20000
20001 This notification is sent in case of both a succeeded and a
20002 failed request completion. When the request succeeds, the
20003 @a error parameter is @c null, and the given device has been
20004 already added to (when @a attached is @c true) or removed from
20005 (when @a attached is @c false) the collection represented by
20006 <link to="IConsole::USBDevices"/>. On failure, the collection
20007 doesn't change and the @a error parameter represents the error
20008 message describing the failure.
20009 </desc>
20010 <attribute name="device" type="IUSBDevice" readonly="yes">
20011 <desc>
20012 Device that is subject to state change.
20013 </desc>
20014 </attribute>
20015 <attribute name="attached" type="boolean" readonly="yes">
20016 <desc>
20017 @c true if the device was attached and @c false otherwise.
20018 </desc>
20019 </attribute>
20020 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
20021 <desc>
20022 @c null on success or an error message object on failure.
20023 </desc>
20024 </attribute>
20025 </interface>
20026
20027 <interface
20028 name="ISharedFolderChangedEvent" extends="IEvent"
20029 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
20030 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
20031 >
20032 <desc>
20033 Notification when a shared folder is added or removed.
20034 The @a scope argument defines one of three scopes:
20035 <link to="IVirtualBox::sharedFolders">global shared folders</link>
20036 (<link to="Scope_Global">Global</link>),
20037 <link to="IMachine::sharedFolders">permanent shared folders</link> of
20038 the machine (<link to="Scope_Machine">Machine</link>) or <link
20039 to="IConsole::sharedFolders">transient shared folders</link> of the
20040 machine (<link to="Scope_Session">Session</link>). Interested callees
20041 should use query the corresponding collections to find out what has
20042 changed.
20043 </desc>
20044 <attribute name="scope" type="Scope" readonly="yes">
20045 <desc>
20046 Scope of the notification.
20047 </desc>
20048 </attribute>
20049 </interface>
20050
20051 <interface
20052 name="IRuntimeErrorEvent" extends="IEvent"
20053 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
20054 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
20055 >
20056 <desc>
20057 Notification when an error happens during the virtual
20058 machine execution.
20059
20060 There are three kinds of runtime errors:
20061 <ul>
20062 <li><i>fatal</i></li>
20063 <li><i>non-fatal with retry</i></li>
20064 <li><i>non-fatal warnings</i></li>
20065 </ul>
20066
20067 <b>Fatal</b> errors are indicated by the @a fatal parameter set
20068 to @c true. In case of fatal errors, the virtual machine
20069 execution is always paused before calling this notification, and
20070 the notification handler is supposed either to immediately save
20071 the virtual machine state using <link to="IConsole::saveState"/>
20072 or power it off using <link to="IConsole::powerDown"/>.
20073 Resuming the execution can lead to unpredictable results.
20074
20075 <b>Non-fatal</b> errors and warnings are indicated by the
20076 @a fatal parameter set to @c false. If the virtual machine
20077 is in the Paused state by the time the error notification is
20078 received, it means that the user can <i>try to resume</i> the machine
20079 execution after attempting to solve the problem that caused the
20080 error. In this case, the notification handler is supposed
20081 to show an appropriate message to the user (depending on the
20082 value of the @a id parameter) that offers several actions such
20083 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
20084 wants to retry, the notification handler should continue
20085 the machine execution using the <link to="IConsole::resume"/>
20086 call. If the machine execution is not Paused during this
20087 notification, then it means this notification is a <i>warning</i>
20088 (for example, about a fatal condition that can happen very soon);
20089 no immediate action is required from the user, the machine
20090 continues its normal execution.
20091
20092 Note that in either case the notification handler
20093 <b>must not</b> perform any action directly on a thread
20094 where this notification is called. Everything it is allowed to
20095 do is to post a message to another thread that will then talk
20096 to the user and take the corresponding action.
20097
20098 Currently, the following error identifiers are known:
20099 <ul>
20100 <li><tt>"HostMemoryLow"</tt></li>
20101 <li><tt>"HostAudioNotResponding"</tt></li>
20102 <li><tt>"VDIStorageFull"</tt></li>
20103 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
20104 </ul>
20105 </desc>
20106 <attribute name="fatal" type="boolean" readonly="yes">
20107 <desc>
20108 Whether the error is fatal or not.
20109 </desc>
20110 </attribute>
20111 <attribute name="id" type="wstring" readonly="yes">
20112 <desc>
20113 Error identifier.
20114 </desc>
20115 </attribute>
20116 <attribute name="message" type="wstring" readonly="yes">
20117 <desc>
20118 Optional error message.
20119 </desc>
20120 </attribute>
20121 </interface>
20122
20123
20124 <interface
20125 name="IEventSourceChangedEvent" extends="IEvent"
20126 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
20127 waitable="yes"
20128 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
20129 >
20130 <desc>
20131 Notification when an event source state changes (listener added or removed).
20132 </desc>
20133
20134 <attribute name="listener" type="IEventListener" readonly="yes">
20135 <desc>
20136 Event listener which has changed.
20137 </desc>
20138 </attribute>
20139
20140 <attribute name="add" type="boolean" readonly="yes">
20141 <desc>
20142 Flag whether listener was added or removed.
20143 </desc>
20144 </attribute>
20145 </interface>
20146
20147 <interface
20148 name="IExtraDataChangedEvent" extends="IEvent"
20149 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
20150 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
20151 >
20152 <desc>
20153 Notification when machine specific or global extra data
20154 has changed.
20155 </desc>
20156 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20157 <desc>
20158 ID of the machine this event relates to.
20159 Null for global extra data changes.
20160 </desc>
20161 </attribute>
20162 <attribute name="key" type="wstring" readonly="yes">
20163 <desc>
20164 Extra data key that has changed.
20165 </desc>
20166 </attribute>
20167 <attribute name="value" type="wstring" readonly="yes">
20168 <desc>
20169 Extra data value for the given key.
20170 </desc>
20171 </attribute>
20172 </interface>
20173
20174 <interface
20175 name="IVetoEvent" extends="IEvent"
20176 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
20177 wsmap="managed"
20178 >
20179 <desc>Base abstract interface for veto events.</desc>
20180
20181 <method name="addVeto">
20182 <desc>
20183 Adds a veto on this event.
20184 </desc>
20185 <param name="reason" type="wstring" dir="in">
20186 <desc>
20187 Reason for veto, could be null or empty string.
20188 </desc>
20189 </param>
20190 </method>
20191
20192 <method name="isVetoed">
20193 <desc>
20194 If this event was vetoed.
20195 </desc>
20196 <param name="result" type="boolean" dir="return">
20197 <desc>
20198 Reason for veto.
20199 </desc>
20200 </param>
20201 </method>
20202
20203 <method name="getVetos">
20204 <desc>
20205 Current veto reason list, if size is 0 - no veto.
20206 </desc>
20207 <param name="result" type="wstring" dir="return" safearray="yes">
20208 <desc>
20209 Array of reasons for veto provided by different event handlers.
20210 </desc>
20211 </param>
20212 </method>
20213
20214 </interface>
20215
20216 <interface
20217 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
20218 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
20219 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
20220 waitable="true"
20221 >
20222 <desc>
20223 Notification when someone tries to change extra data for
20224 either the given machine or (if @c null) global extra data.
20225 This gives the chance to veto against changes.
20226 </desc>
20227 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20228 <desc>
20229 ID of the machine this event relates to.
20230 Null for global extra data changes.
20231 </desc>
20232 </attribute>
20233 <attribute name="key" type="wstring" readonly="yes">
20234 <desc>
20235 Extra data key that has changed.
20236 </desc>
20237 </attribute>
20238 <attribute name="value" type="wstring" readonly="yes">
20239 <desc>
20240 Extra data value for the given key.
20241 </desc>
20242 </attribute>
20243 </interface>
20244
20245 <interface
20246 name="ICanShowWindowEvent" extends="IVetoEvent"
20247 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
20248 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
20249 waitable="true"
20250 >
20251 <desc>
20252 Notification when a call to
20253 <link to="IMachine::canShowConsoleWindow"/> is made by a
20254 front-end to check if a subsequent call to
20255 <link to="IMachine::showConsoleWindow"/> can succeed.
20256
20257 The callee should give an answer appropriate to the current
20258 machine state using event veto. This answer must
20259 remain valid at least until the next
20260 <link to="IConsole::state">machine state</link> change.
20261 </desc>
20262 </interface>
20263
20264 <interface
20265 name="IShowWindowEvent" extends="IEvent"
20266 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
20267 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
20268 waitable="true"
20269 >
20270 <desc>
20271 Notification when a call to
20272 <link to="IMachine::showConsoleWindow"/>
20273 requests the console window to be activated and brought to
20274 foreground on the desktop of the host PC.
20275
20276 This notification should cause the VM console process to
20277 perform the requested action as described above. If it is
20278 impossible to do it at a time of this notification, this
20279 method should return a failure.
20280
20281 Note that many modern window managers on many platforms
20282 implement some sort of focus stealing prevention logic, so
20283 that it may be impossible to activate a window without the
20284 help of the currently active application (which is supposedly
20285 an initiator of this notification). In this case, this method
20286 must return a non-zero identifier that represents the
20287 top-level window of the VM console process. The caller, if it
20288 represents a currently active process, is responsible to use
20289 this identifier (in a platform-dependent manner) to perform
20290 actual window activation.
20291
20292 This method must set @a winId to zero if it has performed all
20293 actions necessary to complete the request and the console
20294 window is now active and in foreground, to indicate that no
20295 further action is required on the caller's side.
20296 </desc>
20297 <attribute name="winId" type="long long">
20298 <desc>
20299 Platform-dependent identifier of the top-level VM console
20300 window, or zero if this method has performed all actions
20301 necessary to implement the <i>show window</i> semantics for
20302 the given platform and/or this VirtualBox front-end.
20303 </desc>
20304 </attribute>
20305 </interface>
20306
20307 <interface
20308 name="INATRedirectEvent" extends="IMachineEvent"
20309 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
20310 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
20311 >
20312 <desc>
20313 Notification when NAT redirect rule added or removed.
20314 </desc>
20315 <attribute name="slot" type="unsigned long" readonly="yes">
20316 <desc>
20317 Adapter which NAT attached to.
20318 </desc>
20319 </attribute>
20320 <attribute name="remove" type="boolean" readonly="yes">
20321 <desc>
20322 Whether rule remove or add.
20323 </desc>
20324 </attribute>
20325 <attribute name="name" type="wstring" readonly="yes">
20326 <desc>
20327 Name of the rule.
20328 </desc>
20329 </attribute>
20330 <attribute name="proto" type="NATProtocol" readonly="yes">
20331 <desc>
20332 Protocol (TCP or UDP) of the redirect rule.
20333 </desc>
20334 </attribute>
20335 <attribute name="hostIP" type="wstring" readonly="yes">
20336 <desc>
20337 Host ip address to bind socket on.
20338 </desc>
20339 </attribute>
20340 <attribute name="hostPort" type="long" readonly="yes">
20341 <desc>
20342 Host port to bind socket on.
20343 </desc>
20344 </attribute>
20345 <attribute name="guestIP" type="wstring" readonly="yes">
20346 <desc>
20347 Guest ip address to redirect to.
20348 </desc>
20349 </attribute>
20350 <attribute name="guestPort" type="long" readonly="yes">
20351 <desc>
20352 Guest port to redirect to.
20353 </desc>
20354 </attribute>
20355 </interface>
20356
20357 <interface
20358 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
20359 waitable="yes"
20360 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
20361 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
20362 >
20363 <desc>
20364 Notification when host PCI device is plugged/unplugged. Plugging
20365 usually takes place on VM startup, unplug - when
20366 <link to="IMachine::detachHostPCIDevice"/> is called.
20367
20368 <see><link to="IMachine::detachHostPCIDevice"/></see>
20369
20370 </desc>
20371
20372 <attribute name="plugged" type="boolean" readonly="yes">
20373 <desc>
20374 If device successfully plugged or unplugged.
20375 </desc>
20376 </attribute>
20377
20378 <attribute name="success" type="boolean" readonly="yes">
20379 <desc>
20380 If operation was successful, if false - 'message' attribute
20381 may be of interest.
20382 </desc>
20383 </attribute>
20384
20385 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
20386 <desc>
20387 Attachment info for this device.
20388 </desc>
20389 </attribute>
20390
20391 <attribute name="message" type="wstring" readonly="yes">
20392 <desc>
20393 Optional error message.
20394 </desc>
20395 </attribute>
20396
20397 </interface>
20398
20399 <interface
20400 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
20401 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
20402 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
20403 >
20404 <desc>
20405 Notification when VBoxSVC becomes unavailable (due to a crash or similar
20406 unexpected circumstances) or available again.
20407 </desc>
20408
20409 <attribute name="available" type="boolean" readonly="yes">
20410 <desc>
20411 Whether VBoxSVC is available now.
20412 </desc>
20413 </attribute>
20414 </interface>
20415
20416 <interface
20417 name="IBandwidthGroupChangedEvent" extends="IEvent"
20418 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
20419 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
20420 >
20421 <desc>
20422 Notification when one of the bandwidth groups changed
20423 </desc>
20424 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
20425 <desc>
20426 The changed bandwidth group.
20427 </desc>
20428 </attribute>
20429 </interface>
20430
20431 <enum
20432 name="GuestMonitorChangedEventType"
20433 uuid="ef172985-7e36-4297-95be-e46396968d66"
20434 >
20435
20436 <desc>
20437 How the guest monitor has been changed.
20438 </desc>
20439
20440 <const name="Enabled" value="0">
20441 <desc>
20442 The guest monitor has been enabled by the guest.
20443 </desc>
20444 </const>
20445
20446 <const name="Disabled" value="1">
20447 <desc>
20448 The guest monitor has been disabled by the guest.
20449 </desc>
20450 </const>
20451
20452 <const name="NewOrigin" value="2">
20453 <desc>
20454 The guest monitor origin has changed in the guest.
20455 </desc>
20456 </const>
20457 </enum>
20458
20459 <interface
20460 name="IGuestMonitorChangedEvent" extends="IEvent"
20461 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
20462 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
20463 >
20464 <desc>
20465 Notification when the guest enables one of its monitors.
20466 </desc>
20467
20468 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
20469 <desc>
20470 What was changed for this guest monitor.
20471 </desc>
20472 </attribute>
20473
20474 <attribute name="screenId" type="unsigned long" readonly="yes">
20475 <desc>
20476 The monitor which was changed.
20477 </desc>
20478 </attribute>
20479
20480 <attribute name="originX" type="unsigned long" readonly="yes">
20481 <desc>
20482 Physical X origin relative to the primary screen.
20483 Valid for Enabled and NewOrigin.
20484 </desc>
20485 </attribute>
20486
20487 <attribute name="originY" type="unsigned long" readonly="yes">
20488 <desc>
20489 Physical Y origin relative to the primary screen.
20490 Valid for Enabled and NewOrigin.
20491 </desc>
20492 </attribute>
20493
20494 <attribute name="width" type="unsigned long" readonly="yes">
20495 <desc>
20496 Width of the screen.
20497 Valid for Enabled.
20498 </desc>
20499 </attribute>
20500
20501 <attribute name="height" type="unsigned long" readonly="yes">
20502 <desc>
20503 Height of the screen.
20504 Valid for Enabled.
20505 </desc>
20506 </attribute>
20507
20508 </interface>
20509
20510 <interface
20511 name="IStorageDeviceChangedEvent" extends="IEvent"
20512 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
20513 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
20514 >
20515 <desc>
20516 Notification when a
20517 <link to="IMachine::mediumAttachments">storage device</link>
20518 is attached or removed.
20519 </desc>
20520 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
20521 <desc>
20522 Storage device that is subject to change.
20523 </desc>
20524 </attribute>
20525 <attribute name="removed" type="boolean" readonly="yes">
20526 <desc>
20527 Flag whether the device was removed or added to the VM.
20528 </desc>
20529 </attribute>
20530 </interface>
20531
20532 <module name="VBoxSVC" context="LocalServer">
20533 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
20534 namespace="virtualbox.org">
20535 <interface name="IVirtualBox" default="yes"/>
20536 </class>
20537 </module>
20538
20539 <module name="VBoxC" context="InprocServer" threadingModel="Free">
20540 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
20541 namespace="virtualbox.org">
20542 <interface name="IVirtualBoxClient" default="yes"/>
20543 </class>
20544
20545 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
20546 namespace="virtualbox.org">
20547 <interface name="ISession" default="yes"/>
20548 </class>
20549 </module>
20550
20551</library>
20552
20553</idl>
20554
20555<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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