VirtualBox

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

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

reverted: r84411. (need to solve issues with java first.)

  • Property svn:eol-style set to native
File size: 731.6 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2013 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="d5b15ca7-3de7-46b2-a63a-ddcce42bfa3f"
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 <const name="v1_14" value="16">
505 <desc>Settings version "1.14", written by VirtualBox 4.3.x.</desc>
506 <!--
507 Machine changes: default frontend.
508 -->
509 </const>
510
511 <const name="Future" value="99999">
512 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
513 </const>
514 </enum>
515
516 <enum
517 name="AccessMode"
518 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
519 >
520 <desc>
521 Access mode for opening files.
522 </desc>
523
524 <const name="ReadOnly" value="1"/>
525 <const name="ReadWrite" value="2"/>
526 </enum>
527
528 <enum
529 name="MachineState"
530 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
531 >
532 <desc>
533 Virtual machine execution state.
534
535 This enumeration represents possible values of the <link
536 to="IMachine::state"/> attribute.
537
538 Below is the basic virtual machine state diagram. It shows how the state
539 changes during virtual machine execution. The text in square braces shows
540 a method of the IConsole interface that performs the given state
541 transition.
542
543 <pre>
544 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
545 V |
546 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
547 | | | | V |
548 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
549 | | ^ | ^ |
550 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
551 | ^ | | | |
552 | | +-----------------------------------------+-|-------------------+ +
553 | | | | |
554 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
555 | | | |
556 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
557 | | |
558 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
559 </pre>
560
561 Note that states to the right from PoweredOff, Aborted and Saved in the
562 above diagram are called <i>online VM states</i>. These states
563 represent the virtual machine which is being executed in a dedicated
564 process (usually with a GUI window attached to it where you can see the
565 activity of the virtual machine and interact with it). There are two
566 special pseudo-states, FirstOnline and LastOnline, that can be used in
567 relational expressions to detect if the given machine state is online or
568 not:
569
570 <pre>
571 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
572 machine.GetState() &lt;= MachineState_LastOnline)
573 {
574 ...the machine is being executed...
575 }
576 </pre>
577
578 When the virtual machine is in one of the online VM states (that is, being
579 executed), only a few machine settings can be modified. Methods working
580 with such settings contain an explicit note about that. An attempt to
581 change any other setting or perform a modifying operation during this time
582 will result in the @c VBOX_E_INVALID_VM_STATE error.
583
584 All online states except Running, Paused and Stuck are transitional: they
585 represent temporary conditions of the virtual machine that will last as
586 long as the operation that initiated such a condition.
587
588 The Stuck state is a special case. It means that execution of the machine
589 has reached the "Guru Meditation" condition. This condition indicates an
590 internal VMM (virtual machine manager) failure which may happen as a
591 result of either an unhandled low-level virtual hardware exception or one
592 of the recompiler exceptions (such as the <i>too-many-traps</i>
593 condition).
594
595 Note also that any online VM state may transit to the Aborted state. This
596 happens if the process that is executing the virtual machine terminates
597 unexpectedly (for example, crashes). Other than that, the Aborted state is
598 equivalent to PoweredOff.
599
600 There are also a few additional state diagrams that do not deal with
601 virtual machine execution and therefore are shown separately. The states
602 shown on these diagrams are called <i>offline VM states</i> (this includes
603 PoweredOff, Aborted and Saved too).
604
605 The first diagram shows what happens when a lengthy setup operation is
606 being executed (such as <link to="IMachine::attachDevice"/>).
607
608 <pre>
609 +----------------------------------(same state as before the call)------+
610 | |
611 +-&gt; PoweredOff --+ |
612 | | |
613 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
614 | |
615 +-&gt; Saved -------+
616 </pre>
617
618 The next two diagrams demonstrate the process of taking a snapshot of a
619 powered off virtual machine, restoring the state to that as of a snapshot
620 or deleting a snapshot, respectively.
621
622 <pre>
623 +----------------------------------(same state as before the call)------+
624 | |
625 +-&gt; PoweredOff --+ |
626 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
627 +-&gt; Aborted -----+
628
629 +-&gt; PoweredOff --+
630 | |
631 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
632 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
633 +-&gt; Saved -------+ |
634 | |
635 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
636 </pre>
637
638 Note that the Saving state is present in both the offline state group and
639 online state group. Currently, the only way to determine what group is
640 assumed in a particular case is to remember the previous machine state: if
641 it was Running or Paused, then Saving is an online state, otherwise it is
642 an offline state. This inconsistency may be removed in one of the future
643 versions of VirtualBox by adding a new state.
644
645 <note internal="yes">
646 For whoever decides to touch this enum: In order to keep the
647 comparisons involving FirstOnline and LastOnline pseudo-states valid,
648 the numeric values of these states must be correspondingly updated if
649 needed: for any online VM state, the condition
650 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
651 @c true. The same relates to transient states for which
652 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
653 @c true.
654 </note>
655 </desc>
656
657 <const name="Null" value="0">
658 <desc>Null value (never used by the API).</desc>
659 </const>
660 <const name="PoweredOff" value="1">
661 <desc>
662 The machine is not running and has no saved execution state; it has
663 either never been started or been shut down successfully.
664 </desc>
665 </const>
666 <const name="Saved" value="2">
667 <desc>
668 The machine is not currently running, but the execution state of the machine
669 has been saved to an external file when it was running, from where
670 it can be resumed.
671 </desc>
672 </const>
673 <const name="Teleported" value="3">
674 <desc>
675 The machine was teleported to a different host (or process) and then
676 powered off. Take care when powering it on again may corrupt resources
677 it shares with the teleportation target (e.g. disk and network).
678 </desc>
679 </const>
680 <const name="Aborted" value="4">
681 <desc>
682 The process running the machine has terminated abnormally. This may
683 indicate a crash of the VM process in host execution context, or
684 the VM process has been terminated externally.
685 </desc>
686 </const>
687 <const name="Running" value="5">
688 <desc>
689 The machine is currently being executed.
690 <note internal="yes">
691 For whoever decides to touch this enum: In order to keep the
692 comparisons in the old source code valid, this state must immediately
693 precede the Paused state.
694 TODO: Lift this spectacularly wonderful restriction.
695 </note>
696 </desc>
697 </const>
698 <const name="Paused" value="6">
699 <desc>
700 Execution of the machine has been paused.
701 <note internal="yes">
702 For whoever decides to touch this enum: In order to keep the
703 comparisons in the old source code valid, this state must immediately
704 follow the Running state.
705 TODO: Lift this spectacularly wonderful restriction.
706 </note>
707 </desc>
708 </const>
709 <const name="Stuck" value="7">
710 <desc>
711 Execution of the machine has reached the "Guru Meditation"
712 condition. This indicates a severe error in the hypervisor itself.
713 <note internal="yes">
714 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
715 "Guru", perhaps? Or are there some other VMM states that are
716 intended to be lumped in here as well?
717 </note>
718 </desc>
719 </const>
720 <const name="Teleporting" value="8">
721 <desc>
722 The machine is about to be teleported to a different host or process.
723 It is possible to pause a machine in this state, but it will go to the
724 @c TeleportingPausedVM state and it will not be
725 possible to resume it again unless the teleportation fails.
726 </desc>
727 </const>
728 <const name="LiveSnapshotting" value="9">
729 <desc>
730 A live snapshot is being taken. The machine is running normally, but
731 some of the runtime configuration options are inaccessible. Also, if
732 paused while in this state it will transition to
733 @c Saving and it will not be resume the
734 execution until the snapshot operation has completed.
735 </desc>
736 </const>
737 <const name="Starting" value="10">
738 <desc>
739 Machine is being started after powering it on from a
740 zero execution state.
741 </desc>
742 </const>
743 <const name="Stopping" value="11">
744 <desc>
745 Machine is being normally stopped powering it off, or after the guest OS
746 has initiated a shutdown sequence.
747 </desc>
748 </const>
749 <const name="Saving" value="12">
750 <desc>
751 Machine is saving its execution state to a file, or an online
752 snapshot of the machine is being taken.
753 </desc>
754 </const>
755 <const name="Restoring" value="13">
756 <desc>
757 Execution state of the machine is being restored from a file
758 after powering it on from the saved execution state.
759 </desc>
760 </const>
761 <const name="TeleportingPausedVM" value="14">
762 <desc>
763 The machine is being teleported to another host or process, but it is
764 not running. This is the paused variant of the
765 @c state.
766 </desc>
767 </const>
768 <const name="TeleportingIn" value="15">
769 <desc>
770 Teleporting the machine state in from another host or process.
771 </desc>
772 </const>
773 <const name="FaultTolerantSyncing" value="16">
774 <desc>
775 The machine is being synced with a fault tolerant VM running elsewhere.
776 </desc>
777 </const>
778 <const name="DeletingSnapshotOnline" value="17">
779 <desc>
780 Like @c DeletingSnapshot, but the merging of media is ongoing in
781 the background while the machine is running.
782 </desc>
783 </const>
784 <const name="DeletingSnapshotPaused" value="18">
785 <desc>
786 Like @c DeletingSnapshotOnline, but the machine was paused when the
787 merging of differencing media was started.
788 </desc>
789 </const>
790 <const name="RestoringSnapshot" value="19">
791 <desc>
792 A machine snapshot is being restored; this typically does not take long.
793 </desc>
794 </const>
795 <const name="DeletingSnapshot" value="20">
796 <desc>
797 A machine snapshot is being deleted; this can take a long time since this
798 may require merging differencing media. This value indicates that the
799 machine is not running while the snapshot is being deleted.
800 </desc>
801 </const>
802 <const name="SettingUp" value="21">
803 <desc>
804 Lengthy setup operation is in progress.
805 </desc>
806 </const>
807
808 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
809 <desc>
810 Pseudo-state: first online state (for use in relational expressions).
811 </desc>
812 </const>
813 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
814 <desc>
815 Pseudo-state: last online state (for use in relational expressions).
816 </desc>
817 </const>
818
819 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
820 <desc>
821 Pseudo-state: first transient state (for use in relational expressions).
822 </desc>
823 </const>
824 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
825 <desc>
826 Pseudo-state: last transient state (for use in relational expressions).
827 </desc>
828 </const>
829
830 </enum>
831
832 <enum
833 name="SessionState"
834 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
835 >
836 <desc>
837 Session state. This enumeration represents possible values of
838 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
839 attributes.
840 </desc>
841
842 <const name="Null" value="0">
843 <desc>Null value (never used by the API).</desc>
844 </const>
845 <const name="Unlocked" value="1">
846 <desc>
847 In <link to="IMachine::sessionState"/>, this means that the machine
848 is not locked for any sessions.
849
850 In <link to="ISession::state"/>, this means that no machine is
851 currently locked for this session.
852 </desc>
853 </const>
854 <const name="Locked" value="2">
855 <desc>
856 In <link to="IMachine::sessionState"/>, this means that the machine
857 is currently locked for a session, whose process identifier can
858 then be found in the <link to="IMachine::sessionPID" /> attribute.
859
860 In <link to="ISession::state"/>, this means that a machine is
861 currently locked for this session, and the mutable machine object
862 can be found in the <link to="ISession::machine"/> attribute
863 (see <link to="IMachine::lockMachine" /> for details).
864 </desc>
865 </const>
866 <const name="Spawning" value="3">
867 <desc>
868 A new process is being spawned for the machine as a result of
869 <link to="IMachine::launchVMProcess"/> call. This state also occurs
870 as a short transient state during an <link to="IMachine::lockMachine"/>
871 call.
872 </desc>
873 </const>
874 <const name="Unlocking" value="4">
875 <desc>
876 The session is being unlocked.
877 </desc>
878 </const>
879 </enum>
880
881 <enum
882 name="CPUPropertyType"
883 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
884 >
885 <desc>
886 Virtual CPU property type. This enumeration represents possible values of the
887 IMachine get- and setCPUProperty methods.
888 </desc>
889 <const name="Null" value="0">
890 <desc>Null value (never used by the API).</desc>
891 </const>
892 <const name="PAE" value="1">
893 <desc>
894 This setting determines whether VirtualBox will expose the Physical Address
895 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
896 is not available, it will not be reported.
897 </desc>
898 </const>
899 <const name="Synthetic" value="2">
900 <desc>
901 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
902 teleporting between host systems that differ significantly.
903 </desc>
904 </const>
905 </enum>
906
907
908 <enum
909 name="HWVirtExPropertyType"
910 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
911 >
912 <desc>
913 Hardware virtualization property type. This enumeration represents possible values
914 for the <link to="IMachine::getHWVirtExProperty"/> and
915 <link to="IMachine::setHWVirtExProperty"/> methods.
916 </desc>
917 <const name="Null" value="0">
918 <desc>Null value (never used by the API).</desc>
919 </const>
920 <const name="Enabled" value="1">
921 <desc>
922 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
923 such extensions are not available, they will not be used.
924 </desc>
925 </const>
926 <const name="Exclusive" value="2">
927 <desc>
928 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
929 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
930 feature of the host. To share these with other hypervisors, you must disable this property.
931 </desc>
932 </const>
933 <const name="VPID" value="3">
934 <desc>
935 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
936 </desc>
937 </const>
938 <const name="NestedPaging" value="4">
939 <desc>
940 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
941 </desc>
942 </const>
943 <const name="LargePages" value="5">
944 <desc>
945 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
946 </desc>
947 </const>
948 <const name="Force" value="6">
949 <desc>
950 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
951 not set, there will be an automatic fallback to software virtualization.
952 </desc>
953 </const>
954 </enum>
955
956 <enum
957 name="FaultToleranceState"
958 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
959 >
960 <desc>
961 Used with <link to="IMachine::faultToleranceState" />.
962 </desc>
963 <const name="Inactive" value="1">
964 <desc>No fault tolerance enabled.</desc>
965 </const>
966 <const name="Master" value="2">
967 <desc>Fault tolerant master VM.</desc>
968 </const>
969 <const name="Standby" value="3">
970 <desc>Fault tolerant standby VM.</desc>
971 </const>
972 </enum>
973
974 <enum
975 name="LockType"
976 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
977 >
978 <desc>
979 Used with <link to="IMachine::lockMachine" />.
980 </desc>
981 <const name="Write" value="2">
982 <desc>Lock the machine for writing.</desc>
983 </const>
984 <const name="Shared" value="1">
985 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
986 </const>
987 <const name="VM" value="3">
988 <desc>Lock the machine for writing, and create objects necessary for
989 running a VM in this process.</desc>
990 </const>
991 </enum>
992
993 <enum
994 name="SessionType"
995 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
996 >
997 <desc>
998 Session type. This enumeration represents possible values of the
999 <link to="ISession::type"/> attribute.
1000 </desc>
1001
1002 <const name="Null" value="0">
1003 <desc>Null value (never used by the API).</desc>
1004 </const>
1005 <const name="WriteLock" value="1">
1006 <desc>
1007 Session has acquired an exclusive write lock on a machine
1008 using <link to="IMachine::lockMachine"/>.
1009 </desc>
1010 </const>
1011 <const name="Remote" value="2">
1012 <desc>
1013 Session has launched a VM process using
1014 <link to="IMachine::launchVMProcess"/>
1015 </desc>
1016 </const>
1017 <const name="Shared" value="3">
1018 <desc>
1019 Session has obtained a link to another session using
1020 <link to="IMachine::lockMachine"/>
1021 </desc>
1022 </const>
1023 </enum>
1024
1025 <enum
1026 name="DeviceType"
1027 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1028 >
1029 <desc>
1030 Device type.
1031 </desc>
1032 <const name="Null" value="0">
1033 <desc>
1034 Null value, may also mean "no device" (not allowed for
1035 <link to="IConsole::getDeviceActivity"/>).
1036 </desc>
1037 </const>
1038 <const name="Floppy" value="1">
1039 <desc>Floppy device.</desc>
1040 </const>
1041 <const name="DVD" value="2">
1042 <desc>CD/DVD-ROM device.</desc>
1043 </const>
1044 <const name="HardDisk" value="3">
1045 <desc>Hard disk device.</desc>
1046 </const>
1047 <const name="Network" value="4">
1048 <desc>Network device.</desc>
1049 </const>
1050 <const name="USB" value="5">
1051 <desc>USB device.</desc>
1052 </const>
1053 <const name="SharedFolder" value="6">
1054 <desc>Shared folder device.</desc>
1055 </const>
1056 </enum>
1057
1058 <enum
1059 name="DeviceActivity"
1060 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1061 >
1062 <desc>
1063 Device activity for <link to="IConsole::getDeviceActivity"/>.
1064 </desc>
1065
1066 <const name="Null" value="0"/>
1067 <const name="Idle" value="1"/>
1068 <const name="Reading" value="2"/>
1069 <const name="Writing" value="3"/>
1070 </enum>
1071
1072 <enum
1073 name="ClipboardMode"
1074 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1075 >
1076 <desc>
1077 Host-Guest clipboard interchange mode.
1078 </desc>
1079
1080 <const name="Disabled" value="0"/>
1081 <const name="HostToGuest" value="1"/>
1082 <const name="GuestToHost" value="2"/>
1083 <const name="Bidirectional" value="3"/>
1084 </enum>
1085
1086 <enum
1087 name="DragAndDropMode"
1088 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1089 >
1090 <desc>
1091 Drag'n'Drop interchange mode.
1092 </desc>
1093
1094 <const name="Disabled" value="0"/>
1095 <const name="HostToGuest" value="1"/>
1096 <const name="GuestToHost" value="2"/>
1097 <const name="Bidirectional" value="3"/>
1098 </enum>
1099
1100 <enum
1101 name="Scope"
1102 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1103 >
1104 <desc>
1105 Scope of the operation.
1106
1107 A generic enumeration used in various methods to define the action or
1108 argument scope.
1109 </desc>
1110
1111 <const name="Global" value="0"/>
1112 <const name="Machine" value="1"/>
1113 <const name="Session" value="2"/>
1114 </enum>
1115
1116 <enum
1117 name="BIOSBootMenuMode"
1118 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1119 >
1120 <desc>
1121 BIOS boot menu mode.
1122 </desc>
1123
1124 <const name="Disabled" value="0"/>
1125 <const name="MenuOnly" value="1"/>
1126 <const name="MessageAndMenu" value="2"/>
1127 </enum>
1128
1129 <enum
1130 name="ProcessorFeature"
1131 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1132 >
1133 <desc>
1134 CPU features.
1135 </desc>
1136
1137 <const name="HWVirtEx" value="0"/>
1138 <const name="PAE" value="1"/>
1139 <const name="LongMode" value="2"/>
1140 <const name="NestedPaging" value="3"/>
1141 </enum>
1142
1143 <enum
1144 name="FirmwareType"
1145 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1146 >
1147 <desc>
1148 Firmware type.
1149 </desc>
1150 <const name="BIOS" value="1">
1151 <desc>BIOS Firmware.</desc>
1152 </const>
1153 <const name="EFI" value="2">
1154 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1155 </const>
1156 <const name="EFI32" value="3">
1157 <desc>Efi firmware, 32-bit.</desc>
1158 </const>
1159 <const name="EFI64" value="4">
1160 <desc>Efi firmware, 64-bit.</desc>
1161 </const>
1162 <const name="EFIDUAL" value="5">
1163 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1164 </const>
1165 </enum>
1166
1167 <enum
1168 name="PointingHIDType"
1169 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1170 >
1171 <desc>
1172 Type of pointing device used in a virtual machine.
1173 </desc>
1174 <const name="None" value="1">
1175 <desc>No mouse.</desc>
1176 </const>
1177 <const name="PS2Mouse" value="2">
1178 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1179 </const>
1180 <const name="USBMouse" value="3">
1181 <desc>USB mouse (relative pointer).</desc>
1182 </const>
1183 <const name="USBTablet" value="4">
1184 <desc>USB tablet (absolute pointer).</desc>
1185 </const>
1186 <const name="ComboMouse" value="5">
1187 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1188 Using of such device can have negative performance implications. </desc>
1189 </const>
1190 </enum>
1191
1192 <enum
1193 name="KeyboardHIDType"
1194 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1195 >
1196 <desc>
1197 Type of keyboard device used in a virtual machine.
1198 </desc>
1199 <const name="None" value="1">
1200 <desc>No keyboard.</desc>
1201 </const>
1202 <const name="PS2Keyboard" value="2">
1203 <desc>PS/2 keyboard.</desc>
1204 </const>
1205 <const name="USBKeyboard" value="3">
1206 <desc>USB keyboard.</desc>
1207 </const>
1208 <const name="ComboKeyboard" value="4">
1209 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1210 Using of such device can have negative performance implications. </desc>
1211 </const>
1212 </enum>
1213
1214 <!--
1215 // IVirtualBoxErrorInfo
1216 /////////////////////////////////////////////////////////////////////////
1217 -->
1218
1219 <interface
1220 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1221 uuid="f91e6e91-49e1-4fd2-b21e-269003350d06"
1222 supportsErrorInfo="no"
1223 wsmap="managed"
1224 >
1225 <desc>
1226 The IVirtualBoxErrorInfo interface represents extended error information.
1227
1228 Extended error information can be set by VirtualBox components after
1229 unsuccessful or partially successful method invocation. This information
1230 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1231 and then shown to the client in addition to the plain 32-bit result code.
1232
1233 In MS COM, this interface extends the IErrorInfo interface,
1234 in XPCOM, it extends the nsIException interface. In both cases,
1235 it provides a set of common attributes to retrieve error
1236 information.
1237
1238 Sometimes invocation of some component's method may involve methods of
1239 other components that may also fail (independently of this method's
1240 failure), or a series of non-fatal errors may precede a fatal error that
1241 causes method failure. In cases like that, it may be desirable to preserve
1242 information about all errors happened during method invocation and deliver
1243 it to the caller. The <link to="#next"/> attribute is intended
1244 specifically for this purpose and allows to represent a chain of errors
1245 through a single IVirtualBoxErrorInfo object set after method invocation.
1246
1247 <note>errors are stored to a chain in the reverse order, i.e. the
1248 initial error object you query right after method invocation is the last
1249 error set by the callee, the object it points to in the @a next attribute
1250 is the previous error and so on, up to the first error (which is the last
1251 in the chain).</note>
1252 </desc>
1253
1254 <attribute name="resultCode" type="long" readonly="yes">
1255 <desc>
1256 Result code of the error.
1257 Usually, it will be the same as the result code returned
1258 by the method that provided this error information, but not
1259 always. For example, on Win32, CoCreateInstance() will most
1260 likely return E_NOINTERFACE upon unsuccessful component
1261 instantiation attempt, but not the value the component factory
1262 returned. Value is typed 'long', not 'result',
1263 to make interface usable from scripting languages.
1264 <note>
1265 In MS COM, there is no equivalent.
1266 In XPCOM, it is the same as nsIException::result.
1267 </note>
1268 </desc>
1269 </attribute>
1270
1271 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1272 <desc>
1273 UUID of the interface that defined the error.
1274 <note>
1275 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1276 data type.
1277 In XPCOM, there is no equivalent.
1278 </note>
1279 </desc>
1280 </attribute>
1281
1282 <attribute name="component" type="wstring" readonly="yes">
1283 <desc>
1284 Name of the component that generated the error.
1285 <note>
1286 In MS COM, it is the same as IErrorInfo::GetSource.
1287 In XPCOM, there is no equivalent.
1288 </note>
1289 </desc>
1290 </attribute>
1291
1292 <attribute name="text" type="wstring" readonly="yes">
1293 <desc>
1294 Text description of the error.
1295 <note>
1296 In MS COM, it is the same as IErrorInfo::GetDescription.
1297 In XPCOM, it is the same as nsIException::message.
1298 </note>
1299 </desc>
1300 </attribute>
1301
1302 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1303 <desc>
1304 Next error object if there is any, or @c null otherwise.
1305 <note>
1306 In MS COM, there is no equivalent.
1307 In XPCOM, it is the same as nsIException::inner.
1308 </note>
1309 </desc>
1310 </attribute>
1311
1312 </interface>
1313
1314 <!--
1315 // IVirtualBox
1316 /////////////////////////////////////////////////////////////////////////
1317 -->
1318
1319 <interface
1320 name="IDHCPServer" extends="$unknown"
1321 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1322 wsmap="managed"
1323 >
1324 <desc>
1325 The IDHCPServer interface represents the vbox DHCP server configuration.
1326
1327 To enumerate all the DHCP servers on the host, use the
1328 <link to="IVirtualBox::DHCPServers"/> attribute.
1329 </desc>
1330
1331 <attribute name="enabled" type="boolean">
1332 <desc>
1333 specifies if the DHCP server is enabled
1334 </desc>
1335 </attribute>
1336
1337 <attribute name="IPAddress" type="wstring" readonly="yes">
1338 <desc>
1339 specifies server IP
1340 </desc>
1341 </attribute>
1342
1343 <attribute name="networkMask" type="wstring" readonly="yes">
1344 <desc>
1345 specifies server network mask
1346 </desc>
1347 </attribute>
1348
1349 <attribute name="networkName" type="wstring" readonly="yes">
1350 <desc>
1351 specifies internal network name the server is used for
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="lowerIP" type="wstring" readonly="yes">
1356 <desc>
1357 specifies from IP address in server address range
1358 </desc>
1359 </attribute>
1360
1361 <attribute name="upperIP" type="wstring" readonly="yes">
1362 <desc>
1363 specifies to IP address in server address range
1364 </desc>
1365 </attribute>
1366
1367 <method name="setConfiguration">
1368 <desc>
1369 configures the server
1370 <result name="E_INVALIDARG">
1371 invalid configuration supplied
1372 </result>
1373 </desc>
1374 <param name="IPAddress" type="wstring" dir="in">
1375 <desc>
1376 server IP address
1377 </desc>
1378 </param>
1379 <param name="networkMask" type="wstring" dir="in">
1380 <desc>
1381 server network mask
1382 </desc>
1383 </param>
1384 <param name="FromIPAddress" type="wstring" dir="in">
1385 <desc>
1386 server From IP address for address range
1387 </desc>
1388 </param>
1389 <param name="ToIPAddress" type="wstring" dir="in">
1390 <desc>
1391 server To IP address for address range
1392 </desc>
1393 </param>
1394 </method>
1395
1396 <method name="start">
1397 <desc>
1398 Starts DHCP server process.
1399 <result name="E_FAIL">
1400 Failed to start the process.
1401 </result>
1402 </desc>
1403 <param name="networkName" type="wstring" dir="in">
1404 <desc>
1405 Name of internal network DHCP server should attach to.
1406 </desc>
1407 </param>
1408 <param name="trunkName" type="wstring" dir="in">
1409 <desc>
1410 Name of internal network trunk.
1411 </desc>
1412 </param>
1413 <param name="trunkType" type="wstring" dir="in">
1414 <desc>
1415 Type of internal network trunk.
1416 </desc>
1417 </param>
1418 </method>
1419
1420 <method name="stop">
1421 <desc>
1422 Stops DHCP server process.
1423 <result name="E_FAIL">
1424 Failed to stop the process.
1425 </result>
1426 </desc>
1427 </method>
1428 </interface>
1429
1430 <interface
1431 name="IVirtualBox" extends="$unknown"
1432 uuid="3b2f08eb-b810-4715-bee0-bb06b9880ad2"
1433 wsmap="managed"
1434 >
1435 <desc>
1436 The IVirtualBox interface represents the main interface exposed by the
1437 product that provides virtual machine management.
1438
1439 An instance of IVirtualBox is required for the product to do anything
1440 useful. Even though the interface does not expose this, internally,
1441 IVirtualBox is implemented as a singleton and actually lives in the
1442 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1443 IVirtualBox can track the state of all virtual machines on a particular
1444 host, regardless of which frontend started them.
1445
1446 To enumerate all the virtual machines on the host, use the
1447 <link to="IVirtualBox::machines"/> attribute.
1448 </desc>
1449
1450 <attribute name="version" type="wstring" readonly="yes">
1451 <desc>
1452 A string representing the version number of the product. The
1453 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1454 last number represents the build number and will frequently change.
1455
1456 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1457 in prerelease builds. Non-Oracle builds may (/shall) also have a
1458 publisher tag, at the end. The publisher tag starts with an underscore
1459 just like the prerelease build type tag.
1460 </desc>
1461 </attribute>
1462
1463 <attribute name="versionNormalized" type="wstring" readonly="yes">
1464 <desc>
1465 A string representing the version number of the product,
1466 without the publisher information (but still with other tags).
1467 See <link to="#version" />.
1468 </desc>
1469 </attribute>
1470
1471 <attribute name="revision" type="unsigned long" readonly="yes">
1472 <desc>
1473 The internal build revision number of the product.
1474 </desc>
1475 </attribute>
1476
1477 <attribute name="packageType" type="wstring" readonly="yes">
1478 <desc>
1479 A string representing the package type of this product. The
1480 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1481 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1482 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1483 this.
1484 </desc>
1485 </attribute>
1486
1487 <attribute name="APIVersion" type="wstring" readonly="yes">
1488 <desc>
1489 A string representing the VirtualBox API version number. The format is
1490 2 integer numbers divided by an underscore (e.g. 1_0). After the
1491 first public release of packages with a particular API version the
1492 API will not be changed in an incompatible way. Note that this
1493 guarantee does not apply to development builds, and also there is no
1494 guarantee that this version is identical to the first two integer
1495 numbers of the package version.
1496 </desc>
1497 </attribute>
1498
1499 <attribute name="homeFolder" type="wstring" readonly="yes">
1500 <desc>
1501 Full path to the directory where the global settings file,
1502 <tt>VirtualBox.xml</tt>, is stored.
1503
1504 In this version of VirtualBox, the value of this property is
1505 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1506 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1507 as determined by the host OS), and cannot be changed.
1508
1509 This path is also used as the base to resolve relative paths in
1510 places where relative paths are allowed (unless otherwise
1511 expressly indicated).
1512 </desc>
1513 </attribute>
1514
1515 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1516 <desc>
1517 Full name of the global settings file.
1518 The value of this property corresponds to the value of
1519 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1520 </desc>
1521 </attribute>
1522
1523 <attribute name="host" type="IHost" readonly="yes">
1524 <desc>Associated host object.</desc>
1525 </attribute>
1526
1527 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1528 <desc>Associated system information object.</desc>
1529 </attribute>
1530
1531 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1532 <desc>
1533 Array of machine objects registered within this VirtualBox instance.
1534 </desc>
1535 </attribute>
1536
1537 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1538 <desc>
1539 Array of all machine group names which are used by the machines which
1540 are accessible. Each group is only listed once, however they are listed
1541 in no particular order and there is no guarantee that there are no gaps
1542 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1543 is a valid result).
1544 </desc>
1545 </attribute>
1546
1547 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1548 <desc>
1549 Array of medium objects known to this VirtualBox installation.
1550
1551 This array contains only base media. All differencing
1552 media of the given base medium can be enumerated using
1553 <link to="IMedium::children"/>.
1554 </desc>
1555 </attribute>
1556
1557 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1558 <desc>
1559 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1560 </desc>
1561 </attribute>
1562
1563 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1564 <desc>
1565 Array of floppy image objects currently in use by this VirtualBox instance.
1566 </desc>
1567 </attribute>
1568
1569 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1570
1571 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1572
1573 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1574 <desc>
1575 Collection of global shared folders. Global shared folders are
1576 available to all virtual machines.
1577
1578 New shared folders are added to the collection using
1579 <link to="#createSharedFolder"/>. Existing shared folders can be
1580 removed using <link to="#removeSharedFolder"/>.
1581
1582 <note>
1583 In the current version of the product, global shared folders are not
1584 implemented and therefore this collection is always empty.
1585 </note>
1586 </desc>
1587 </attribute>
1588
1589 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1590 <desc>
1591 Associated performance collector object.
1592 </desc>
1593 </attribute>
1594
1595 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1596 <desc>
1597 DHCP servers.
1598 </desc>
1599 </attribute>
1600
1601 <attribute name="eventSource" type="IEventSource" readonly="yes">
1602 <desc>
1603 Event source for VirtualBox events.
1604 </desc>
1605 </attribute>
1606
1607 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1608 <desc>
1609 The extension pack manager.
1610 </desc>
1611 </attribute>
1612
1613
1614 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1615 <desc>
1616 Names of all internal networks.
1617 </desc>
1618 </attribute>
1619
1620 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1621 <desc>
1622 Names of all generic network drivers.
1623 </desc>
1624 </attribute>
1625
1626 <method name="composeMachineFilename">
1627 <desc>
1628 Returns a recommended full path of the settings file name for a new virtual
1629 machine.
1630
1631 This API serves two purposes:
1632
1633 <ul>
1634 <li>It gets called by <link to="#createMachine" /> if @c null or
1635 empty string (which is recommended) is specified for the
1636 @a settingsFile argument there, which means that API should use
1637 a recommended default file name.</li>
1638
1639 <li>It can be called manually by a client software before creating a machine,
1640 e.g. if that client wants to pre-create the machine directory to create
1641 virtual hard disks in that directory together with the new machine
1642 settings file. In that case, the file name should be stripped from the
1643 full settings file path returned by this function to obtain the
1644 machine directory.</li>
1645 </ul>
1646
1647 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1648 details about the machine name.
1649
1650 @a groupName defines which additional subdirectory levels should be
1651 included. It must be either a valid group name or @c null or empty
1652 string which designates that the machine will not be related to a
1653 machine group.
1654
1655 If @a baseFolder is a @c null or empty string (which is recommended), the
1656 default machine settings folder
1657 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1658 a base folder for the created machine, resulting in a file name like
1659 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1660 will be used.
1661
1662 This method does not access the host disks. In particular, it does not check
1663 for whether a machine with this name already exists.
1664 </desc>
1665 <param name="name" type="wstring" dir="in">
1666 <desc>Suggested machine name.</desc>
1667 </param>
1668 <param name="group" type="wstring" dir="in">
1669 <desc>Machine group name for the new machine or machine group. It is
1670 used to determine the right subdirectory.</desc>
1671 </param>
1672 <param name="createFlags" type="wstring" dir="in">
1673 <desc>Machine creation flags, see <link to="#createMachine" /> (optional).</desc>
1674 </param>
1675 <param name="baseFolder" type="wstring" dir="in">
1676 <desc>Base machine folder (optional).</desc>
1677 </param>
1678 <param name="file" type="wstring" dir="return">
1679 <desc>Fully qualified path where the machine would be created.</desc>
1680 </param>
1681 </method>
1682
1683 <method name="createMachine">
1684 <desc>
1685 Creates a new virtual machine by creating a machine settings file at
1686 the given location.
1687
1688 VirtualBox machine settings files use a custom XML dialect. Starting
1689 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1690 and machine files can be created at arbitrary locations.
1691
1692 However, it is recommended that machines are created in the default
1693 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1694 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1695 @c null or empty string (which is recommended) for the @a settingsFile
1696 argument, <link to="#composeMachineFilename" /> is called automatically
1697 to have such a recommended name composed based on the machine name
1698 given in the @a name argument and the primary group.
1699
1700 If the resulting settings file already exists, this method will fail,
1701 unless the forceOverwrite flag is set.
1702
1703 The new machine is created unregistered, with the initial configuration
1704 set according to the specified guest OS type. A typical sequence of
1705 actions to create a new virtual machine is as follows:
1706
1707 <ol>
1708 <li>
1709 Call this method to have a new machine created. The returned machine
1710 object will be "mutable" allowing to change any machine property.
1711 </li>
1712
1713 <li>
1714 Configure the machine using the appropriate attributes and methods.
1715 </li>
1716
1717 <li>
1718 Call <link to="IMachine::saveSettings" /> to write the settings
1719 to the machine's XML settings file. The configuration of the newly
1720 created machine will not be saved to disk until this method is
1721 called.
1722 </li>
1723
1724 <li>
1725 Call <link to="#registerMachine" /> to add the machine to the list
1726 of machines known to VirtualBox.
1727 </li>
1728 </ol>
1729
1730 The specified guest OS type identifier must match an ID of one of known
1731 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1732 array.
1733
1734 <note>
1735 There is no way to change the name of the settings file or
1736 subfolder of the created machine directly.
1737 </note>
1738
1739 <result name="VBOX_E_OBJECT_NOT_FOUND">
1740 @a osTypeId is invalid.
1741 </result>
1742 <result name="VBOX_E_FILE_ERROR">
1743 Resulting settings file name is invalid or the settings file already
1744 exists or could not be created due to an I/O error.
1745 </result>
1746 <result name="E_INVALIDARG">
1747 @a name is empty or @c null.
1748 </result>
1749 </desc>
1750
1751 <param name="settingsFile" type="wstring" dir="in">
1752 <desc>Fully qualified path where the settings file should be created,
1753 empty string or @c null for a default folder and file based on the
1754 @a name argument and the primary group.
1755 (see <link to="#composeMachineFilename" />).</desc>
1756 </param>
1757 <param name="name" type="wstring" dir="in">
1758 <desc>Machine name.</desc>
1759 </param>
1760 <param name="groups" type="wstring" safearray="yes" dir="in">
1761 <desc>Array of group names. @c null or an empty array have the same
1762 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1763 create a machine without group association.</desc>
1764 </param>
1765 <param name="osTypeId" type="wstring" dir="in">
1766 <desc>Guest OS Type ID.</desc>
1767 </param>
1768 <param name="flags" type="wstring" dir="in">
1769 <desc>
1770 Additional property parameters, passed as a comma-separated list of
1771 "name=value" type entries. The following ones are recognized:
1772 <tt>forceOverwrite=1</tt> to overwrite an existing machine settings
1773 file, <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID and
1774 <tt>directoryIncludesUUID=1</tt> to switch to a special VM directory
1775 naming scheme which should not be used unless necessary.
1776 </desc>
1777 </param>
1778 <param name="machine" type="IMachine" dir="return">
1779 <desc>Created machine object.</desc>
1780 </param>
1781 </method>
1782
1783 <method name="openMachine">
1784 <desc>
1785 Opens a virtual machine from the existing settings file.
1786 The opened machine remains unregistered until you call
1787 <link to="#registerMachine"/>.
1788
1789 The specified settings file name must be fully qualified.
1790 The file must exist and be a valid machine XML settings file
1791 whose contents will be used to construct the machine object.
1792
1793 <result name="VBOX_E_FILE_ERROR">
1794 Settings file name invalid, not found or sharing violation.
1795 </result>
1796 </desc>
1797 <param name="settingsFile" type="wstring" dir="in">
1798 <desc>
1799 Name of the machine settings file.
1800 </desc>
1801 </param>
1802 <param name="machine" type="IMachine" dir="return">
1803 <desc>Opened machine object.</desc>
1804 </param>
1805 <note>
1806 <link to="IMachine::settingsModified"/> will return
1807 @c false for the created machine, until any of machine settings
1808 are changed.
1809 </note>
1810 </method>
1811
1812 <method name="registerMachine">
1813 <desc>
1814
1815 Registers the machine previously created using
1816 <link to="#createMachine"/> or opened using
1817 <link to="#openMachine"/> within this VirtualBox installation. After
1818 successful method invocation, the
1819 <link to="IMachineRegisteredEvent"/> event is fired.
1820
1821 <note>
1822 This method implicitly calls <link to="IMachine::saveSettings"/>
1823 to save all current machine settings before registering it.
1824 </note>
1825
1826 <result name="VBOX_E_OBJECT_NOT_FOUND">
1827 No matching virtual machine found.
1828 </result>
1829 <result name="VBOX_E_INVALID_OBJECT_STATE">
1830 Virtual machine was not created within this VirtualBox instance.
1831 </result>
1832
1833 </desc>
1834 <param name="machine" type="IMachine" dir="in"/>
1835 </method>
1836
1837 <method name="findMachine">
1838 <desc>
1839 Attempts to find a virtual machine given its name or UUID.
1840
1841 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1842 cannot safely be determined.</note>
1843
1844 <result name="VBOX_E_OBJECT_NOT_FOUND">
1845 Could not find registered machine matching @a nameOrId.
1846 </result>
1847
1848 </desc>
1849 <param name="nameOrId" type="wstring" dir="in">
1850 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1851 </param>
1852 <param name="machine" type="IMachine" dir="return">
1853 <desc>Machine object, if found.</desc>
1854 </param>
1855 </method>
1856
1857 <method name="getMachinesByGroups">
1858 <desc>
1859 Gets all machine references which are in one of the specified groups.
1860 </desc>
1861 <param name="groups" type="wstring" dir="in" safearray="yes">
1862 <desc>What groups to match. The usual group list rules apply, i.e.
1863 passing an empty list will match VMs in the toplevel group, likewise
1864 the empty string.</desc>
1865 </param>
1866 <param name="machines" type="IMachine" dir="return" safearray="yes">
1867 <desc>All machines which matched.</desc>
1868 </param>
1869 </method>
1870
1871 <method name="getMachineStates">
1872 <desc>
1873 Gets the state of several machines in a single operation.
1874 </desc>
1875 <param name="machines" type="IMachine" dir="in" safearray="yes">
1876 <desc>Array with the machine references.</desc>
1877 </param>
1878 <param name="states" type="MachineState" dir="return" safearray="yes">
1879 <desc>Machine states, corresponding to the machines.</desc>
1880 </param>
1881 </method>
1882
1883 <method name="createAppliance">
1884 <desc>
1885 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1886 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1887 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1888 </desc>
1889 <param name="appliance" type="IAppliance" dir="return">
1890 <desc>New appliance.</desc>
1891 </param>
1892 </method>
1893
1894 <method name="createHardDisk">
1895 <desc>
1896 Creates a new base medium object that will use the given storage
1897 format and location for medium data.
1898
1899 The actual storage unit is not created by this method. In order to
1900 do it, and before you are able to attach the created medium to
1901 virtual machines, you must call one of the following methods to
1902 allocate a format-specific storage unit at the specified location:
1903 <ul>
1904 <li><link to="IMedium::createBaseStorage"/></li>
1905 <li><link to="IMedium::createDiffStorage"/></li>
1906 </ul>
1907
1908 Some medium attributes, such as <link to="IMedium::id"/>, may
1909 remain uninitialized until the medium storage unit is successfully
1910 created by one of the above methods.
1911
1912 After the storage unit is successfully created, it will be
1913 accessible through the <link to="#openMedium"/> method and can
1914 be found in the <link to="#hardDisks"/> array.
1915
1916 The list of all storage formats supported by this VirtualBox
1917 installation can be obtained using
1918 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1919 attribute is empty or @c null then the default storage format
1920 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1921 be used for creating a storage unit of the medium.
1922
1923 Note that the format of the location string is storage format specific.
1924 See <link to="IMedium::location"/> and IMedium for more details.
1925
1926 <result name="VBOX_E_OBJECT_NOT_FOUND">
1927 @a format identifier is invalid. See
1928 <link to="ISystemProperties::mediumFormats"/>.
1929 </result>
1930 <result name="VBOX_E_FILE_ERROR">
1931 @a location is a not valid file name (for file-based formats only).
1932 </result>
1933 </desc>
1934 <param name="format" type="wstring" dir="in">
1935 <desc>
1936 Identifier of the storage format to use for the new medium.
1937 </desc>
1938 </param>
1939 <param name="location" type="wstring" dir="in">
1940 <desc>
1941 Location of the storage unit for the new medium.
1942 </desc>
1943 </param>
1944 <param name="medium" type="IMedium" dir="return">
1945 <desc>Created medium object.</desc>
1946 </param>
1947 </method>
1948
1949 <method name="openMedium">
1950 <desc>
1951 Finds existing media or opens a medium from an existing storage location.
1952
1953 Once a medium has been opened, it can be passed to other VirtualBox
1954 methods, in particular to <link to="IMachine::attachDevice" />.
1955
1956 Depending on the given device type, the file at the storage location
1957 must be in one of the media formats understood by VirtualBox:
1958
1959 <ul>
1960 <li>With a "HardDisk" device type, the file must be a hard disk image
1961 in one of the formats supported by VirtualBox (see
1962 <link to="ISystemProperties::mediumFormats" />).
1963 After this method succeeds, if the medium is a base medium, it
1964 will be added to the <link to="#hardDisks"/> array attribute. </li>
1965 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1966 After this method succeeds, the medium will be added to the
1967 <link to="#DVDImages"/> array attribute.</li>
1968 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1969 After this method succeeds, the medium will be added to the
1970 <link to="#floppyImages"/> array attribute.</li>
1971 </ul>
1972
1973 After having been opened, the medium can be re-found by this method
1974 and can be attached to virtual machines. See <link to="IMedium" /> for
1975 more details.
1976
1977 The UUID of the newly opened medium will either be retrieved from the
1978 storage location, if the format supports it (e.g. for hard disk images),
1979 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1980 If for some reason you need to change the medium's UUID, use
1981 <link to="IMedium::setIds" />.
1982
1983 If a differencing hard disk medium is to be opened by this method, the
1984 operation will succeed only if its parent medium and all ancestors,
1985 if any, are already known to this VirtualBox installation (for example,
1986 were opened by this method before).
1987
1988 This method attempts to guess the storage format of the specified medium
1989 by reading medium data at the specified location.
1990
1991 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1992 the image is opened for read/write access and must have according permissions,
1993 as VirtualBox may actually write status information into the disk's metadata
1994 sections.
1995
1996 Note that write access is required for all typical hard disk usage in VirtualBox,
1997 since VirtualBox may need to write metadata such as a UUID into the image.
1998 The only exception is opening a source image temporarily for copying and
1999 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
2000 again soon.
2001
2002 The format of the location string is storage format specific. See
2003 <link to="IMedium::location"/> and IMedium for more details.
2004
2005 <result name="VBOX_E_FILE_ERROR">
2006 Invalid medium storage file location or could not find the medium
2007 at the specified location.
2008 </result>
2009 <result name="VBOX_E_IPRT_ERROR">
2010 Could not get medium storage format.
2011 </result>
2012 <result name="E_INVALIDARG">
2013 Invalid medium storage format.
2014 </result>
2015 <result name="VBOX_E_INVALID_OBJECT_STATE">
2016 Medium has already been added to a media registry.
2017 </result>
2018 </desc>
2019 <param name="location" type="wstring" dir="in">
2020 <desc>
2021 Location of the storage unit that contains medium data in one of
2022 the supported storage formats.
2023 </desc>
2024 </param>
2025 <param name="deviceType" type="DeviceType" dir="in">
2026 <desc>
2027 Must be one of "HardDisk", "DVD" or "Floppy".
2028 </desc>
2029 </param>
2030 <param name="accessMode" type="AccessMode" dir="in">
2031 <desc>Whether to open the image in read/write or read-only mode. For
2032 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2033 </param>
2034 <param name="forceNewUuid" type="boolean" dir="in">
2035 <desc>Allows the caller to request a completely new medium UUID for
2036 the image which is to be opened. Useful if one intends to open an exact
2037 copy of a previously opened image, as this would normally fail due to
2038 the duplicate UUID.</desc>
2039 </param>
2040 <param name="medium" type="IMedium" dir="return">
2041 <desc>Opened medium object.</desc>
2042 </param>
2043 </method>
2044
2045 <method name="getGuestOSType">
2046 <desc>
2047 Returns an object describing the specified guest OS type.
2048
2049 The requested guest OS type is specified using a string which is a
2050 mnemonic identifier of the guest operating system, such as
2051 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2052 particular virtual machine can be read or set using the
2053 <link to="IMachine::OSTypeId"/> attribute.
2054
2055 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2056 available guest OS type objects. Each object has an
2057 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2058 the guest OS this object describes.
2059
2060 <result name="E_INVALIDARG">
2061 @a id is not a valid Guest OS type.
2062 </result>
2063
2064 </desc>
2065 <param name="id" type="uuid" mod="string" dir="in">
2066 <desc>Guest OS type ID string.</desc>
2067 </param>
2068 <param name="type" type="IGuestOSType" dir="return">
2069 <desc>Guest OS type object.</desc>
2070 </param>
2071 </method>
2072
2073 <method name="createSharedFolder">
2074 <desc>
2075 Creates a new global shared folder by associating the given logical
2076 name with the given host path, adds it to the collection of shared
2077 folders and starts sharing it. Refer to the description of
2078 <link to="ISharedFolder"/> to read more about logical names.
2079 <note>
2080 In the current implementation, this operation is not
2081 implemented.
2082 </note>
2083 </desc>
2084 <param name="name" type="wstring" dir="in">
2085 <desc>Unique logical name of the shared folder.</desc>
2086 </param>
2087 <param name="hostPath" type="wstring" dir="in">
2088 <desc>Full path to the shared folder in the host file system.</desc>
2089 </param>
2090 <param name="writable" type="boolean" dir="in">
2091 <desc>Whether the share is writable or readonly</desc>
2092 </param>
2093 <param name="automount" type="boolean" dir="in">
2094 <desc>Whether the share gets automatically mounted by the guest
2095 or not.</desc>
2096 </param>
2097 </method>
2098
2099 <method name="removeSharedFolder">
2100 <desc>
2101 Removes the global shared folder with the given name previously
2102 created by <link to="#createSharedFolder"/> from the collection of
2103 shared folders and stops sharing it.
2104 <note>
2105 In the current implementation, this operation is not
2106 implemented.
2107 </note>
2108 </desc>
2109 <param name="name" type="wstring" dir="in">
2110 <desc>Logical name of the shared folder to remove.</desc>
2111 </param>
2112 </method>
2113
2114 <method name="getExtraDataKeys">
2115 <desc>
2116 Returns an array representing the global extra data keys which currently
2117 have values defined.
2118 </desc>
2119 <param name="keys" type="wstring" dir="return" safearray="yes">
2120 <desc>Array of extra data keys.</desc>
2121 </param>
2122 </method>
2123
2124 <method name="getExtraData">
2125 <desc>
2126 Returns associated global extra data.
2127
2128 If the requested data @a key does not exist, this function will
2129 succeed and return an empty string in the @a value argument.
2130
2131 <result name="VBOX_E_FILE_ERROR">
2132 Settings file not accessible.
2133 </result>
2134 <result name="VBOX_E_XML_ERROR">
2135 Could not parse the settings file.
2136 </result>
2137
2138 </desc>
2139 <param name="key" type="wstring" dir="in">
2140 <desc>Name of the data key to get.</desc>
2141 </param>
2142 <param name="value" type="wstring" dir="return">
2143 <desc>Value of the requested data key.</desc>
2144 </param>
2145 </method>
2146
2147 <method name="setExtraData">
2148 <desc>
2149 Sets associated global extra data.
2150
2151 If you pass @c null or empty string as a key @a value, the given @a key
2152 will be deleted.
2153
2154 <note>
2155 Before performing the actual data change, this method will ask all
2156 registered event listener using the
2157 <link to="IExtraDataCanChangeEvent"/>
2158 notification for a permission. If one of the listeners refuses the
2159 new value, the change will not be performed.
2160 </note>
2161 <note>
2162 On success, the
2163 <link to="IExtraDataChangedEvent"/> notification
2164 is called to inform all registered listeners about a successful data
2165 change.
2166 </note>
2167
2168 <result name="VBOX_E_FILE_ERROR">
2169 Settings file not accessible.
2170 </result>
2171 <result name="VBOX_E_XML_ERROR">
2172 Could not parse the settings file.
2173 </result>
2174 <result name="E_ACCESSDENIED">
2175 Modification request refused.
2176 </result>
2177
2178 </desc>
2179 <param name="key" type="wstring" dir="in">
2180 <desc>Name of the data key to set.</desc>
2181 </param>
2182 <param name="value" type="wstring" dir="in">
2183 <desc>Value to assign to the key.</desc>
2184 </param>
2185 </method>
2186
2187 <method name="setSettingsSecret">
2188 <desc>
2189 Unlocks the secret data by passing the unlock password to the
2190 server. The server will cache the password for that machine.
2191
2192 <result name="VBOX_E_INVALID_VM_STATE">
2193 Virtual machine is not mutable.
2194 </result>
2195
2196 </desc>
2197 <param name="password" type="wstring" dir="in">
2198 <desc>
2199 The cipher key.
2200 </desc>
2201 </param>
2202 </method>
2203
2204 <!--method name="createDHCPServerForInterface">
2205 <desc>
2206 Creates a DHCP server settings to be used for the given interface
2207 <result name="E_INVALIDARG">
2208 Host network interface @a name already exists.
2209 </result>
2210 </desc>
2211 <param name="interface" type="IHostNetworkInterface" dir="in">
2212 <desc>Network Interface</desc>
2213 </param>
2214 <param name="server" type="IDHCPServer" dir="out">
2215 <desc>DHCP server settings</desc>
2216 </param>
2217 </method-->
2218
2219 <method name="createDHCPServer">
2220 <desc>
2221 Creates a DHCP server settings to be used for the given internal network name
2222 <result name="E_INVALIDARG">
2223 Host network interface @a name already exists.
2224 </result>
2225 </desc>
2226 <param name="name" type="wstring" dir="in">
2227 <desc>server name</desc>
2228 </param>
2229 <param name="server" type="IDHCPServer" dir="return">
2230 <desc>DHCP server settings</desc>
2231 </param>
2232 </method>
2233
2234 <method name="findDHCPServerByNetworkName">
2235 <desc>
2236 Searches a DHCP server settings to be used for the given internal network name
2237 <result name="E_INVALIDARG">
2238 Host network interface @a name already exists.
2239 </result>
2240
2241 </desc>
2242 <param name="name" type="wstring" dir="in">
2243 <desc>server name</desc>
2244 </param>
2245 <param name="server" type="IDHCPServer" dir="return">
2246 <desc>DHCP server settings</desc>
2247 </param>
2248 </method>
2249
2250 <!--method name="findDHCPServerForInterface">
2251 <desc>
2252 Searches a DHCP server settings to be used for the given interface
2253 <result name="E_INVALIDARG">
2254 Host network interface @a name already exists.
2255 </result>
2256 </desc>
2257 <param name="interface" type="IHostNetworkInterface" dir="in">
2258 <desc>Network Interface</desc>
2259 </param>
2260 <param name="server" type="IDHCPServer" dir="out">
2261 <desc>DHCP server settings</desc>
2262 </param>
2263 </method-->
2264
2265 <method name="removeDHCPServer">
2266 <desc>
2267 Removes the DHCP server settings
2268 <result name="E_INVALIDARG">
2269 Host network interface @a name already exists.
2270 </result>
2271 </desc>
2272 <param name="server" type="IDHCPServer" dir="in">
2273 <desc>DHCP server settings to be removed</desc>
2274 </param>
2275 </method>
2276
2277
2278 <method name="checkFirmwarePresent">
2279 <desc>
2280 Check if this VirtualBox installation has a firmware
2281 of the given type available, either system-wide or per-user.
2282 Optionally, this may return a hint where this firmware can be
2283 downloaded from.
2284 </desc>
2285 <param name="firmwareType" type="FirmwareType" dir="in">
2286 <desc>
2287 Type of firmware to check.
2288 </desc>
2289 </param>
2290 <param name="version" type="wstring" dir="in">
2291 <desc>Expected version number, usually empty string (presently ignored).</desc>
2292 </param>
2293
2294 <param name="url" type="wstring" dir="out">
2295 <desc>
2296 Suggested URL to download this firmware from.
2297 </desc>
2298 </param>
2299
2300 <param name="file" type="wstring" dir="out">
2301 <desc>
2302 Filename of firmware, only valid if result == TRUE.
2303 </desc>
2304 </param>
2305
2306 <param name="result" type="boolean" dir="return">
2307 <desc>If firmware of this type and version is available.</desc>
2308 </param>
2309 </method>
2310
2311 </interface>
2312
2313 <!--
2314 // IVFSExplorer
2315 /////////////////////////////////////////////////////////////////////////
2316 -->
2317
2318 <enum
2319 name="VFSType"
2320 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2321 >
2322 <desc>
2323 Virtual file systems supported by VFSExplorer.
2324 </desc>
2325
2326 <const name="File" value="1" />
2327 <const name="Cloud" value="2" />
2328 <const name="S3" value="3" />
2329 <const name="WebDav" value="4" />
2330 </enum>
2331
2332 <enum
2333 name="VFSFileType"
2334 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2335 >
2336 <desc>
2337 File types known by VFSExplorer.
2338 </desc>
2339
2340 <const name="Unknown" value="1" />
2341 <const name="Fifo" value="2" />
2342 <const name="DevChar" value="3" />
2343 <const name="Directory" value="4" />
2344 <const name="DevBlock" value="5" />
2345 <const name="File" value="6" />
2346 <const name="SymLink" value="7" />
2347 <const name="Socket" value="8" />
2348 <const name="WhiteOut" value="9" />
2349 </enum>
2350
2351 <interface
2352 name="IVFSExplorer" extends="$unknown"
2353 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2354 wsmap="managed"
2355 >
2356 <desc>
2357 The VFSExplorer interface unifies access to different file system
2358 types. This includes local file systems as well remote file systems like
2359 S3. For a list of supported types see <link to="VFSType" />.
2360 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2361 </desc>
2362
2363 <attribute name="path" type="wstring" readonly="yes">
2364 <desc>Returns the current path in the virtual file system.</desc>
2365 </attribute>
2366
2367 <attribute name="type" type="VFSType" readonly="yes">
2368 <desc>Returns the file system type which is currently in use.</desc>
2369 </attribute>
2370
2371 <method name="update">
2372 <desc>Updates the internal list of files/directories from the
2373 current directory level. Use <link to="#entryList" /> to get the full list
2374 after a call to this method.</desc>
2375
2376 <param name="progress" type="IProgress" dir="return">
2377 <desc>Progress object to track the operation completion.</desc>
2378 </param>
2379 </method>
2380
2381 <method name="cd">
2382 <desc>Change the current directory level.</desc>
2383
2384 <param name="dir" type="wstring" dir="in">
2385 <desc>The name of the directory to go in.</desc>
2386 </param>
2387
2388 <param name="progress" type="IProgress" dir="return">
2389 <desc>Progress object to track the operation completion.</desc>
2390 </param>
2391 </method>
2392
2393 <method name="cdUp">
2394 <desc>Go one directory upwards from the current directory level.</desc>
2395
2396 <param name="progress" type="IProgress" dir="return">
2397 <desc>Progress object to track the operation completion.</desc>
2398 </param>
2399 </method>
2400
2401 <method name="entryList">
2402 <desc>Returns a list of files/directories after a call to <link
2403 to="#update" />. The user is responsible for keeping this internal
2404 list up do date.</desc>
2405
2406 <param name="names" type="wstring" safearray="yes" dir="out">
2407 <desc>The list of names for the entries.</desc>
2408 </param>
2409
2410 <param name="types" type="unsigned long" safearray="yes" dir="out">
2411 <desc>The list of types for the entries.</desc>
2412 </param>
2413
2414 <param name="sizes" type="unsigned long" safearray="yes" dir="out">
2415 <desc>The list of sizes (in bytes) for the entries.</desc>
2416 </param>
2417
2418 <param name="modes" type="unsigned long" safearray="yes" dir="out">
2419 <desc>The list of file modes (in octal form) for the entries.</desc>
2420 </param>
2421 </method>
2422
2423 <method name="exists">
2424 <desc>Checks if the given file list exists in the current directory
2425 level.</desc>
2426
2427 <param name="names" type="wstring" safearray="yes" dir="in">
2428 <desc>The names to check.</desc>
2429 </param>
2430
2431 <param name="exists" type="wstring" safearray="yes" dir="return">
2432 <desc>The names which exist.</desc>
2433 </param>
2434 </method>
2435
2436 <method name="remove">
2437 <desc>Deletes the given files in the current directory level.</desc>
2438
2439 <param name="names" type="wstring" safearray="yes" dir="in">
2440 <desc>The names to remove.</desc>
2441 </param>
2442
2443 <param name="progress" type="IProgress" dir="return">
2444 <desc>Progress object to track the operation completion.</desc>
2445 </param>
2446 </method>
2447
2448 </interface>
2449
2450 <enum
2451 name="ImportOptions" extends="$unknown"
2452 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2453 >
2454
2455 <desc>
2456 Import options, used with <link to="IAppliance::importMachines" />.
2457 </desc>
2458
2459 <const name="KeepAllMACs" value="1">
2460 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2461 </const>
2462 <const name="KeepNATMACs" value="2">
2463 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2464 </const>
2465
2466 </enum>
2467
2468
2469 <!--
2470 // IAppliance
2471 /////////////////////////////////////////////////////////////////////////
2472 -->
2473
2474 <interface
2475 name="IAppliance" extends="$unknown"
2476 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2477 wsmap="managed"
2478 >
2479 <desc>
2480 Represents a platform-independent appliance in OVF format. An instance of this is returned
2481 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2482 virtual machines within an appliance with VirtualBox.
2483
2484 The OVF standard suggests two different physical file formats:
2485
2486 <ol>
2487 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2488 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2489 this descriptor file references other files such as disk images, as OVF appliances typically
2490 do, those additional files must be in the same directory as the descriptor file.</li>
2491
2492 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2493 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2494 files and optionally other files.
2495
2496 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2497 be added with a later version.</li>
2498 </ol>
2499
2500 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2501 <link to="IMachine" /> involves the following sequence of API calls:
2502
2503 <ol>
2504 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2505 </li>
2506
2507 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2508 would like to import. So long as this file is syntactically valid, this will succeed
2509 and fill the appliance object with the parsed data from the OVF file.
2510 </li>
2511
2512 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2513 contents of the IAppliance attributes accordingly. These can be inspected by a
2514 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2515 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2516 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2517 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2518 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2519 The GUI can then give the user the option to confirm and/or change these suggestions.
2520 </li>
2521
2522 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2523 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2524 </li>
2525
2526 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2527 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2528 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2529 can be found in the <link to="#machines" /> array attribute.
2530 </li>
2531 </ol>
2532
2533 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2534
2535 <ol>
2536 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2537 an empty IAppliance object.
2538 </li>
2539
2540 <li>For each machine you would like to export, call <link to="IMachine::exportTo" />
2541 with the IAppliance object you just created. Each such call creates one instance of
2542 <link to="IVirtualSystemDescription" /> inside the appliance.
2543 </li>
2544
2545 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2546 virtual system (machine) to override the suggestions made by the <link to="IMachine::exportTo"/> routine.
2547 </li>
2548
2549 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2550 file written.</li>
2551 </ol>
2552
2553 </desc>
2554
2555 <attribute name="path" type="wstring" readonly="yes">
2556 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2557 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2558 <link to="#write" /> (for export).
2559 This attribute is empty until one of these methods has been called.
2560 </desc>
2561 </attribute>
2562
2563 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2564 <desc>
2565 Array of virtual disk definitions. One such description exists for each
2566 disk definition in the OVF; each string array item represents one such piece of
2567 disk information, with the information fields separated by tab (\\t) characters.
2568
2569 The caller should be prepared for additional fields being appended to
2570 this string in future versions of VirtualBox and therefore check for
2571 the number of tabs in the strings returned.
2572
2573 In the current version, the following eight fields are returned per string
2574 in the array:
2575
2576 <ol>
2577 <li>Disk ID (unique string identifier given to disk)</li>
2578
2579 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2580
2581 <li>Populated size (optional unsigned integer indicating the current size of the
2582 disk; can be approximate; -1 if unspecified)</li>
2583
2584 <li>Format (string identifying the disk format, typically
2585 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2586
2587 <li>Reference (where to find the disk image, typically a file name; if empty,
2588 then the disk should be created on import)</li>
2589
2590 <li>Image size (optional unsigned integer indicating the size of the image,
2591 which need not necessarily be the same as the values specified above, since
2592 the image may be compressed or sparse; -1 if not specified)</li>
2593
2594 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2595 presently unsupported and always -1)</li>
2596
2597 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2598 </ol>
2599 </desc>
2600 </attribute>
2601
2602 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2603 <desc> Array of virtual system descriptions. One such description is created
2604 for each virtual system (machine) found in the OVF.
2605 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::exportTo" />
2606 (for export) has been called.
2607 </desc>
2608 </attribute>
2609
2610 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2611 <desc>
2612 Contains the UUIDs of the machines created from the information in this appliances. This is only
2613 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2614 succeeded.
2615 </desc>
2616 </attribute>
2617
2618 <method name="read">
2619 <desc>
2620 Reads an OVF file into the appliance object.
2621
2622 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2623 mere fact that this method returns successfully does not mean that VirtualBox supports all
2624 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2625 </desc>
2626 <param name="file" type="wstring" dir="in">
2627 <desc>
2628 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2629 on whether the appliance is distributed as a set of files or as a single file, respectively).
2630 </desc>
2631 </param>
2632 <param name="progress" type="IProgress" dir="return">
2633 <desc>Progress object to track the operation completion.</desc>
2634 </param>
2635 </method>
2636
2637 <method name="interpret">
2638 <desc>
2639 Interprets the OVF data that was read when the appliance was constructed. After
2640 calling this method, one can inspect the
2641 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2642 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2643 the appliance.
2644
2645 Calling this method is the second step of importing an appliance into VirtualBox;
2646 see <link to="IAppliance" /> for an overview.
2647
2648 After calling this method, one should call <link to="#getWarnings" /> to find out
2649 if problems were encountered during the processing which might later lead to
2650 errors.
2651 </desc>
2652 </method>
2653
2654 <method name="importMachines">
2655 <desc>
2656 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2657 and other interfaces that match the information contained in the appliance as
2658 closely as possible, as represented by the import instructions in the
2659 <link to="#virtualSystemDescriptions" /> array.
2660
2661 Calling this method is the final step of importing an appliance into VirtualBox;
2662 see <link to="IAppliance" /> for an overview.
2663
2664 Since importing the appliance will most probably involve copying and converting
2665 disk images, which can take a long time, this method operates asynchronously and
2666 returns an IProgress object to allow the caller to monitor the progress.
2667
2668 After the import succeeded, the UUIDs of the IMachine instances created can be
2669 retrieved from the <link to="#machines" /> array attribute.
2670 </desc>
2671
2672 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2673 <desc>Options for the importing operation.</desc>
2674 </param>
2675
2676 <param name="progress" type="IProgress" dir="return">
2677 <desc>Progress object to track the operation completion.</desc>
2678 </param>
2679 </method>
2680
2681 <method name="createVFSExplorer">
2682 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2683
2684 <param name="URI" type="wstring" dir="in">
2685 <desc>The URI describing the file system to use.</desc>
2686 </param>
2687
2688 <param name="explorer" type="IVFSExplorer" dir="return">
2689 <desc></desc>
2690 </param>
2691 </method>
2692
2693 <method name="write">
2694 <desc>
2695 Writes the contents of the appliance exports into a new OVF file.
2696
2697 Calling this method is the final step of exporting an appliance from VirtualBox;
2698 see <link to="IAppliance" /> for an overview.
2699
2700 Since exporting the appliance will most probably involve copying and converting
2701 disk images, which can take a long time, this method operates asynchronously and
2702 returns an IProgress object to allow the caller to monitor the progress.
2703 </desc>
2704 <param name="format" type="wstring" dir="in">
2705 <desc>
2706 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2707 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2708 </desc>
2709 </param>
2710 <param name="manifest" type="boolean" dir="in">
2711 <desc>
2712 Indicate if the optional manifest file (.mf) should be written. The manifest file
2713 is used for integrity checks prior import.
2714 </desc>
2715 </param>
2716 <param name="path" type="wstring" dir="in">
2717 <desc>
2718 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2719 on whether the appliance is distributed as a set of files or as a single file, respectively).
2720 </desc>
2721 </param>
2722 <param name="progress" type="IProgress" dir="return">
2723 <desc>Progress object to track the operation completion.</desc>
2724 </param>
2725 </method>
2726
2727 <method name="getWarnings">
2728 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2729
2730 <param name="warnings" type="wstring" dir="return" safearray="yes">
2731 <desc></desc>
2732 </param>
2733 </method>
2734
2735 </interface>
2736
2737 <enum
2738 name="VirtualSystemDescriptionType"
2739 uuid="303c0900-a746-4612-8c67-79003e91f459"
2740 >
2741 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2742 a configuration value.</desc>
2743
2744 <const name="Ignore" value="1" />
2745 <const name="OS" value="2" />
2746 <const name="Name" value="3" />
2747 <const name="Product" value="4" />
2748 <const name="Vendor" value="5" />
2749 <const name="Version" value="6" />
2750 <const name="ProductUrl" value="7" />
2751 <const name="VendorUrl" value="8" />
2752 <const name="Description" value="9" />
2753 <const name="License" value="10" />
2754 <const name="Miscellaneous" value="11" />
2755 <const name="CPU" value="12" />
2756 <const name="Memory" value="13" />
2757 <const name="HardDiskControllerIDE" value="14" />
2758 <const name="HardDiskControllerSATA" value="15" />
2759 <const name="HardDiskControllerSCSI" value="16" />
2760 <const name="HardDiskControllerSAS" value="17" />
2761 <const name="HardDiskImage" value="18" />
2762 <const name="Floppy" value="19" />
2763 <const name="CDROM" value="20" />
2764 <const name="NetworkAdapter" value="21" />
2765 <const name="USBController" value="22" />
2766 <const name="SoundCard" value="23" />
2767 <const name="SettingsFile" value="24">
2768 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2769 </const>
2770 </enum>
2771
2772 <enum
2773 name="VirtualSystemDescriptionValueType"
2774 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2775 >
2776 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2777 type to fetch.</desc>
2778
2779 <const name="Reference" value="1" />
2780 <const name="Original" value="2" />
2781 <const name="Auto" value="3" />
2782 <const name="ExtraConfig" value="4" />
2783
2784 </enum>
2785
2786 <interface
2787 name="IVirtualSystemDescription" extends="$unknown"
2788 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2789 wsmap="managed"
2790 >
2791
2792 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2793 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2794 <link to="IAppliance::interpret" /> has been called, that array contains information
2795 about how the virtual systems described in the OVF should best be imported into
2796 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2797 import an OVF into VirtualBox.
2798 </desc>
2799
2800 <attribute name="count" type="unsigned long" readonly="yes">
2801 <desc>Return the number of virtual system description entries.</desc>
2802 </attribute>
2803
2804 <method name="getDescription">
2805 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2806 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2807
2808 The list below identifies the value sets that are possible depending on the
2809 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2810 the array item with the same index in @a OVFValues[] will contain the original value as contained
2811 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2812 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2813 the @a aExtraConfigValues[] array item may also be used.
2814
2815 <ul>
2816 <li>
2817 "OS": the guest operating system type. There must be exactly one such array item on import. The
2818 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2819 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2820 item in @a OVFValues[] will contain a numerical value that described the operating system in the OVF.
2821 </li>
2822 <li>
2823 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2824 if none is present on import, then an automatic name will be created from the operating system
2825 type. The corresponding item im @a OVFValues[] will contain the suggested virtual machine name
2826 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2827 <link to="IMachine" /> name that does not exist yet.
2828 </li>
2829 <li>
2830 "Description": an arbitrary description.
2831 </li>
2832 <li>
2833 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2834 code to display such a license for agreement; the Main API does not enforce any such policy.
2835 </li>
2836 <li>
2837 Miscellaneous: reserved for future use.
2838 </li>
2839 <li>
2840 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2841 </li>
2842 <li>
2843 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2844 is present on import, then VirtualBox will set a meaningful default based on the operating system
2845 type.
2846 </li>
2847 <li>
2848 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2849 An optional value in @a OVFValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2850 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2851 writes into the OVF.
2852 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2853 type can use to specify which hard disk controller a virtual disk should be connected to.
2854 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2855 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2856 its virtual machines supports four channels (primary master, primary slave, secondary master,
2857 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2858 </li>
2859 <li>
2860 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2861 has no value in @a OVFValues[] or @a aVBoxValues[].
2862 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2863 </li>
2864 <li>
2865 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2866 The items in @a OVFValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2867 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2868 whereas VirtualBox considers it a class of storage controllers of its own; see
2869 <link to="StorageControllerType" />).
2870 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2871 </li>
2872 <li>
2873 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2874 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2875
2876 The array item in @a OVFValues[] will contain the file specification from the OVF file (without
2877 a path since the image file should be in the same location as the OVF file itself), whereas the
2878 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2879 hard disk image. This means that on import the image will be copied and converted from the
2880 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2881
2882 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2883 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2884 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2885 the image to. That number must be the index of an array item with one of the hard disk controller
2886 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2887 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2888 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2889 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2890 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2891 </li>
2892 <li>
2893 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2894 attachment information as with "HardDiskImage" items.
2895 </li>
2896 <li>
2897 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2898 attachment information as with "HardDiskImage" items.
2899 </li>
2900 <li>
2901 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2902 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2903 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2904 </li>
2905 <li>
2906 "USBController": a USB controller. There can be at most one such item. If and only if such an
2907 item ispresent, USB support will be enabled for the new virtual machine.
2908 </li>
2909 <li>
2910 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2911 present, sound support will be enabled for the new virtual machine. Note that the virtual
2912 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2913 may be different from the virtual soundcard expected by the appliance.
2914 </li>
2915 </ul>
2916
2917 </desc>
2918
2919 <param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2920 <desc></desc>
2921 </param>
2922
2923 <param name="refs" type="wstring" dir="out" safearray="yes">
2924 <desc></desc>
2925 </param>
2926
2927 <param name="OVFValues" type="wstring" dir="out" safearray="yes">
2928 <desc></desc>
2929 </param>
2930
2931 <param name="VBoxValues" type="wstring" dir="out" safearray="yes">
2932 <desc></desc>
2933 </param>
2934
2935 <param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
2936 <desc></desc>
2937 </param>
2938
2939 </method>
2940
2941 <method name="getDescriptionByType">
2942 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2943 should be returned.</desc>
2944
2945 <param name="type" type="VirtualSystemDescriptionType" dir="in">
2946 <desc></desc>
2947 </param>
2948
2949 <param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2950 <desc></desc>
2951 </param>
2952
2953 <param name="refs" type="wstring" dir="out" safearray="yes">
2954 <desc></desc>
2955 </param>
2956
2957 <param name="OVFValues" type="wstring" dir="out" safearray="yes">
2958 <desc></desc>
2959 </param>
2960
2961 <param name="VBoxValues" type="wstring" dir="out" safearray="yes">
2962 <desc></desc>
2963 </param>
2964
2965 <param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
2966 <desc></desc>
2967 </param>
2968
2969 </method>
2970
2971 <method name="getValuesByType">
2972 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2973 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2974 values.</desc>
2975
2976 <param name="type" type="VirtualSystemDescriptionType" dir="in">
2977 <desc></desc>
2978 </param>
2979
2980 <param name="which" type="VirtualSystemDescriptionValueType" dir="in">
2981 <desc></desc>
2982 </param>
2983
2984 <param name="values" type="wstring" dir="return" safearray="yes">
2985 <desc></desc>
2986 </param>
2987
2988 </method>
2989
2990 <method name="setFinalValues">
2991 <desc>
2992 This method allows the appliance's user to change the configuration for the virtual
2993 system descriptions. For each array item returned from <link to="#getDescription" />,
2994 you must pass in one boolean value and one configuration value.
2995
2996 Each item in the boolean array determines whether the particular configuration item
2997 should be enabled.
2998 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2999 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3000 and SoundCard.
3001
3002 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3003 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
3004 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
3005 for valid configuration values for the individual array item types. If the
3006 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3007 </desc>
3008
3009 <param name="enabled" type="boolean" dir="in" safearray="yes">
3010 <desc></desc>
3011 </param>
3012
3013 <param name="VBoxValues" type="wstring" dir="in" safearray="yes">
3014 <desc></desc>
3015 </param>
3016
3017 <param name="extraConfigValues" type="wstring" dir="in" safearray="yes">
3018 <desc></desc>
3019 </param>
3020 </method>
3021
3022 <method name="addDescription">
3023 <desc>
3024 This method adds an additional description entry to the stack of already
3025 available descriptions for this virtual system. This is handy for writing
3026 values which aren't directly supported by VirtualBox. One example would
3027 be the License type of <link to="VirtualSystemDescriptionType" />.
3028 </desc>
3029
3030 <param name="type" type="VirtualSystemDescriptionType" dir="in">
3031 <desc></desc>
3032 </param>
3033
3034 <param name="VBoxValue" type="wstring" dir="in">
3035 <desc></desc>
3036 </param>
3037
3038 <param name="extraConfigValue" type="wstring" dir="in">
3039 <desc></desc>
3040 </param>
3041 </method>
3042 </interface>
3043
3044
3045 <!--
3046 // IMachine
3047 /////////////////////////////////////////////////////////////////////////
3048 -->
3049
3050 <interface
3051 name="IInternalMachineControl" extends="$unknown"
3052 uuid="dca36a92-703c-4649-98a4-f40c1ef0c336"
3053 internal="yes"
3054 wsmap="suppress"
3055 >
3056 <method name="setRemoveSavedStateFile">
3057 <desc>
3058 Updates the flag whether the saved state file is removed on a
3059 machine state change from Saved to PoweredOff.
3060 </desc>
3061 <param name="remove" type="boolean" dir="in"/>
3062 </method>
3063
3064 <method name="updateState">
3065 <desc>
3066 Updates the VM state.
3067 <note>
3068 This operation will also update the settings file with the correct
3069 information about the saved state file and delete this file from disk
3070 when appropriate.
3071 </note>
3072 </desc>
3073 <param name="state" type="MachineState" dir="in"/>
3074 </method>
3075
3076 <method name="getIPCId">
3077 <param name="id" type="wstring" dir="return"/>
3078 </method>
3079
3080 <method name="beginPowerUp">
3081 <desc>
3082 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3083 gives it the progress object that should be part of any pending
3084 <link to="IMachine::launchVMProcess"/> operations. The progress
3085 object may be called back to reflect an early cancelation, so some care
3086 have to be taken with respect to any cancelation callbacks. The console
3087 object will call <link to="IInternalMachineControl::endPowerUp"/>
3088 to signal the completion of the progress object.
3089 </desc>
3090 <param name="progress" type="IProgress" dir="in" />
3091 </method>
3092
3093 <method name="endPowerUp">
3094 <desc>
3095 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3096 This method may query status information from the progress object it
3097 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3098 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3099 call in order to complete that progress object.
3100 </desc>
3101 <param name="result" type="long" dir="in"/>
3102 </method>
3103
3104 <method name="beginPoweringDown">
3105 <desc>
3106 Called by the VM process to inform the server it wants to
3107 stop the VM execution and power down.
3108 </desc>
3109 <param name="progress" type="IProgress" dir="out">
3110 <desc>
3111 Progress object created by VBoxSVC to wait until
3112 the VM is powered down.
3113 </desc>
3114 </param>
3115 </method>
3116
3117 <method name="endPoweringDown">
3118 <desc>
3119 Called by the VM process to inform the server that powering
3120 down previously requested by #beginPoweringDown is either
3121 successfully finished or there was a failure.
3122
3123 <result name="VBOX_E_FILE_ERROR">
3124 Settings file not accessible.
3125 </result>
3126 <result name="VBOX_E_XML_ERROR">
3127 Could not parse the settings file.
3128 </result>
3129
3130 </desc>
3131
3132 <param name="result" type="long" dir="in">
3133 <desc>@c S_OK to indicate success.
3134 </desc>
3135 </param>
3136 <param name="errMsg" type="wstring" dir="in">
3137 <desc>@c human readable error message in case of failure.
3138 </desc>
3139 </param>
3140 </method>
3141
3142 <method name="runUSBDeviceFilters">
3143 <desc>
3144 Asks the server to run USB devices filters of the associated
3145 machine against the given USB device and tell if there is
3146 a match.
3147 <note>
3148 Intended to be used only for remote USB devices. Local
3149 ones don't require to call this method (this is done
3150 implicitly by the Host and USBProxyService).
3151 </note>
3152 </desc>
3153 <param name="device" type="IUSBDevice" dir="in"/>
3154 <param name="matched" type="boolean" dir="out"/>
3155 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3156 </method>
3157
3158 <method name="captureUSBDevice">
3159 <desc>
3160 Requests a capture of the given host USB device.
3161 When the request is completed, the VM process will
3162 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3163 notification.
3164 </desc>
3165 <param name="id" type="uuid" mod="string" dir="in"/>
3166 </method>
3167
3168 <method name="detachUSBDevice">
3169 <desc>
3170 Notification that a VM is going to detach (@a done = @c false) or has
3171 already detached (@a done = @c true) the given USB device.
3172 When the @a done = @c true request is completed, the VM process will
3173 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3174 notification.
3175 <note>
3176 In the @a done = @c true case, the server must run its own filters
3177 and filters of all VMs but this one on the detached device
3178 as if it were just attached to the host computer.
3179 </note>
3180 </desc>
3181 <param name="id" type="uuid" mod="string" dir="in"/>
3182 <param name="done" type="boolean" dir="in"/>
3183 </method>
3184
3185 <method name="autoCaptureUSBDevices">
3186 <desc>
3187 Requests a capture all matching USB devices attached to the host.
3188 When the request is completed, the VM process will
3189 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3190 notification per every captured device.
3191 </desc>
3192 </method>
3193
3194 <method name="detachAllUSBDevices">
3195 <desc>
3196 Notification that a VM that is being powered down. The done
3197 parameter indicates whether which stage of the power down
3198 we're at. When @a done = @c false the VM is announcing its
3199 intentions, while when @a done = @c true the VM is reporting
3200 what it has done.
3201 <note>
3202 In the @a done = @c true case, the server must run its own filters
3203 and filters of all VMs but this one on all detach devices as
3204 if they were just attached to the host computer.
3205 </note>
3206 </desc>
3207 <param name="done" type="boolean" dir="in"/>
3208 </method>
3209
3210 <method name="onSessionEnd">
3211 <desc>
3212 Triggered by the given session object when the session is about
3213 to close normally.
3214 </desc>
3215 <param name="session" type="ISession" dir="in">
3216 <desc>Session that is being closed</desc>
3217 </param>
3218 <param name="progress" type="IProgress" dir="return">
3219 <desc>
3220 Used to wait until the corresponding machine is actually
3221 dissociated from the given session on the server.
3222 Returned only when this session is a direct one.
3223 </desc>
3224 </param>
3225 </method>
3226
3227 <method name="beginSavingState">
3228 <desc>
3229 Called by the VM process to inform the server it wants to
3230 save the current state and stop the VM execution.
3231 </desc>
3232 <param name="progress" type="IProgress" dir="out">
3233 <desc>
3234 Progress object created by VBoxSVC to wait until
3235 the state is saved.
3236 </desc>
3237 </param>
3238 <param name="stateFilePath" type="wstring" dir="out">
3239 <desc>
3240 File path the VM process must save the execution state to.
3241 </desc>
3242 </param>
3243 </method>
3244
3245 <method name="endSavingState">
3246 <desc>
3247 Called by the VM process to inform the server that saving
3248 the state previously requested by #beginSavingState is either
3249 successfully finished or there was a failure.
3250
3251 <result name="VBOX_E_FILE_ERROR">
3252 Settings file not accessible.
3253 </result>
3254 <result name="VBOX_E_XML_ERROR">
3255 Could not parse the settings file.
3256 </result>
3257
3258 </desc>
3259
3260 <param name="result" type="long" dir="in">
3261 <desc>@c S_OK to indicate success.
3262 </desc>
3263 </param>
3264 <param name="errMsg" type="wstring" dir="in">
3265 <desc>@c human readable error message in case of failure.
3266 </desc>
3267 </param>
3268 </method>
3269
3270 <method name="adoptSavedState">
3271 <desc>
3272 Gets called by <link to="IConsole::adoptSavedState"/>.
3273 <result name="VBOX_E_FILE_ERROR">
3274 Invalid saved state file path.
3275 </result>
3276 </desc>
3277 <param name="savedStateFile" type="wstring" dir="in">
3278 <desc>Path to the saved state file to adopt.</desc>
3279 </param>
3280 </method>
3281
3282 <method name="beginTakingSnapshot">
3283 <desc>
3284 Called from the VM process to request from the server to perform the
3285 server-side actions of creating a snapshot (creating differencing images
3286 and the snapshot object).
3287
3288 <result name="VBOX_E_FILE_ERROR">
3289 Settings file not accessible.
3290 </result>
3291 <result name="VBOX_E_XML_ERROR">
3292 Could not parse the settings file.
3293 </result>
3294 </desc>
3295 <param name="initiator" type="IConsole" dir="in">
3296 <desc>The console object that initiated this call.</desc>
3297 </param>
3298 <param name="name" type="wstring" dir="in">
3299 <desc>Snapshot name.</desc>
3300 </param>
3301 <param name="description" type="wstring" dir="in">
3302 <desc>Snapshot description.</desc>
3303 </param>
3304 <param name="consoleProgress" type="IProgress" dir="in">
3305 <desc>
3306 Progress object created by the VM process tracking the
3307 snapshot's progress. This has the following sub-operations:
3308 <ul>
3309 <li>setting up (weight 1);</li>
3310 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3311 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3312 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3313 <li>finishing up (weight 1)</li>
3314 </ul>
3315 </desc>
3316 </param>
3317 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3318 <desc>
3319 Whether this is an online snapshot (i.e. the machine is running).
3320 </desc>
3321 </param>
3322 <param name="stateFilePath" type="wstring" dir="out">
3323 <desc>
3324 File path the VM process must save the execution state to.
3325 </desc>
3326 </param>
3327 </method>
3328
3329 <method name="endTakingSnapshot">
3330 <desc>
3331 Called by the VM process to inform the server that the snapshot
3332 previously requested by #beginTakingSnapshot is either
3333 successfully taken or there was a failure.
3334 </desc>
3335
3336 <param name="success" type="boolean" dir="in">
3337 <desc>@c true to indicate success and @c false otherwise</desc>
3338 </param>
3339 </method>
3340
3341 <method name="deleteSnapshot">
3342 <desc>
3343 Gets called by <link to="IConsole::deleteSnapshot"/>,
3344 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3345 <link to="IConsole::deleteSnapshotRange"/>.
3346 <result name="VBOX_E_INVALID_OBJECT_STATE">
3347 Snapshot has more than one child snapshot. Only possible if the
3348 delete operation does not delete all children or the range does
3349 not meet the linearity condition.
3350 </result>
3351 </desc>
3352 <param name="initiator" type="IConsole" dir="in">
3353 <desc>The console object that initiated this call.</desc>
3354 </param>
3355 <param name="startId" type="uuid" mod="string" dir="in">
3356 <desc>UUID of the first snapshot to delete.</desc>
3357 </param>
3358 <param name="endId" type="uuid" mod="string" dir="in">
3359 <desc>UUID of the last snapshot to delete.</desc>
3360 </param>
3361 <param name="deleteAllChildren" type="boolean" dir="in">
3362 <desc>Whether all children should be deleted.</desc>
3363 </param>
3364 <param name="machineState" type="MachineState" dir="out">
3365 <desc>New machine state after this operation is started.</desc>
3366 </param>
3367 <param name="progress" type="IProgress" dir="return">
3368 <desc>Progress object to track the operation completion.</desc>
3369 </param>
3370 </method>
3371
3372 <method name="finishOnlineMergeMedium">
3373 <desc>
3374 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3375 </desc>
3376 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3377 <desc>The medium attachment which needs to be cleaned up.</desc>
3378 </param>
3379 <param name="source" type="IMedium" dir="in">
3380 <desc>Merge source medium.</desc>
3381 </param>
3382 <param name="target" type="IMedium" dir="in">
3383 <desc>Merge target medium.</desc>
3384 </param>
3385 <param name="mergeForward" type="boolean" dir="in">
3386 <desc>Merge direction.</desc>
3387 </param>
3388 <param name="parentForTarget" type="IMedium" dir="in">
3389 <desc>For forward merges: new parent for target medium.</desc>
3390 </param>
3391 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3392 <desc>For backward merges: list of media which need their parent UUID
3393 updated.</desc>
3394 </param>
3395 </method>
3396
3397 <method name="restoreSnapshot">
3398 <desc>
3399 Gets called by <link to="IConsole::restoreSnapshot"/>.
3400 </desc>
3401 <param name="initiator" type="IConsole" dir="in">
3402 <desc>The console object that initiated this call.</desc>
3403 </param>
3404 <param name="snapshot" type="ISnapshot" dir="in">
3405 <desc>The snapshot to restore the VM state from.</desc>
3406 </param>
3407 <param name="machineState" type="MachineState" dir="out">
3408 <desc>New machine state after this operation is started.</desc>
3409 </param>
3410 <param name="progress" type="IProgress" dir="return">
3411 <desc>Progress object to track the operation completion.</desc>
3412 </param>
3413 </method>
3414
3415 <method name="pullGuestProperties">
3416 <desc>
3417 Get the list of the guest properties matching a set of patterns along
3418 with their values, time stamps and flags and give responsibility for
3419 managing properties to the console.
3420 </desc>
3421 <param name="names" type="wstring" dir="out" safearray="yes">
3422 <desc>
3423 The names of the properties returned.
3424 </desc>
3425 </param>
3426 <param name="values" type="wstring" dir="out" safearray="yes">
3427 <desc>
3428 The values of the properties returned. The array entries match the
3429 corresponding entries in the @a name array.
3430 </desc>
3431 </param>
3432 <param name="timestamps" type="long long" dir="out" safearray="yes">
3433 <desc>
3434 The time stamps of the properties returned. The array entries match
3435 the corresponding entries in the @a name array.
3436 </desc>
3437 </param>
3438 <param name="flags" type="wstring" dir="out" safearray="yes">
3439 <desc>
3440 The flags of the properties returned. The array entries match the
3441 corresponding entries in the @a name array.
3442 </desc>
3443 </param>
3444 </method>
3445
3446 <method name="pushGuestProperty">
3447 <desc>
3448 Update a single guest property in IMachine.
3449 </desc>
3450 <param name="name" type="wstring" dir="in">
3451 <desc>
3452 The name of the property to be updated.
3453 </desc>
3454 </param>
3455 <param name="value" type="wstring" dir="in">
3456 <desc>
3457 The value of the property.
3458 </desc>
3459 </param>
3460 <param name="timestamp" type="long long" dir="in">
3461 <desc>
3462 The timestamp of the property.
3463 </desc>
3464 </param>
3465 <param name="flags" type="wstring" dir="in">
3466 <desc>
3467 The flags of the property.
3468 </desc>
3469 </param>
3470 </method>
3471
3472 <method name="lockMedia">
3473 <desc>
3474 Locks all media attached to the machine for writing and parents of
3475 attached differencing media (if any) for reading. This operation is
3476 atomic so that if it fails no media is actually locked.
3477
3478 This method is intended to be called when the machine is in Starting or
3479 Restoring state. The locked media will be automatically unlocked when
3480 the machine is powered off or crashed.
3481 </desc>
3482 </method>
3483 <method name="unlockMedia">
3484 <desc>
3485 Unlocks all media previously locked using
3486 <link to="IInternalMachineControl::lockMedia"/>.
3487
3488 This method is intended to be used with teleportation so that it is
3489 possible to teleport between processes on the same machine.
3490 </desc>
3491 </method>
3492
3493 <method name="ejectMedium">
3494 <desc>
3495 Tells VBoxSVC that the guest has ejected the medium associated with
3496 the medium attachment.
3497 </desc>
3498 <param name="attachment" type="IMediumAttachment" dir="in">
3499 <desc>
3500 The medium attachment where the eject happened.
3501 </desc>
3502 </param>
3503 <param name="newAttachment" type="IMediumAttachment" dir="return">
3504 <desc>
3505 A new reference to the medium attachment, as the config change can
3506 result in the creation of a new instance.
3507 </desc>
3508 </param>
3509 </method>
3510
3511 <method name="reportVmStatistics">
3512 <desc>
3513 Passes statistics collected by VM (including guest statistics) to VBoxSVC.
3514 </desc>
3515 <param name="validStats" type="unsigned long" dir="in">
3516 <desc>
3517 Mask defining which parameters are valid. For example: 0x11 means
3518 that cpuIdle and XXX are valid. Other parameters should be ignored.
3519 </desc>
3520 </param>
3521 <param name="cpuUser" type="unsigned long" dir="in">
3522 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3523 </param>
3524 <param name="cpuKernel" type="unsigned long" dir="in">
3525 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3526 </param>
3527 <param name="cpuIdle" type="unsigned long" dir="in">
3528 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3529 </param>
3530 <param name="memTotal" type="unsigned long" dir="in">
3531 <desc>Total amount of physical guest RAM.</desc>
3532 </param>
3533 <param name="memFree" type="unsigned long" dir="in">
3534 <desc>Free amount of physical guest RAM.</desc>
3535 </param>
3536 <param name="memBalloon" type="unsigned long" dir="in">
3537 <desc>Amount of ballooned physical guest RAM.</desc>
3538 </param>
3539 <param name="memShared" type="unsigned long" dir="in">
3540 <desc>Amount of shared physical guest RAM.</desc>
3541 </param>
3542 <param name="memCache" type="unsigned long" dir="in">
3543 <desc>Total amount of guest (disk) cache memory.</desc>
3544 </param>
3545 <param name="pagedTotal" type="unsigned long" dir="in">
3546 <desc>Total amount of space in the page file.</desc>
3547 </param>
3548 <param name="memAllocTotal" type="unsigned long" dir="in">
3549 <desc>Total amount of memory allocated by the hypervisor.</desc>
3550 </param>
3551 <param name="memFreeTotal" type="unsigned long" dir="in">
3552 <desc>Total amount of free memory available in the hypervisor.</desc>
3553 </param>
3554 <param name="memBalloonTotal" type="unsigned long" dir="in">
3555 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3556 </param>
3557 <param name="memSharedTotal" type="unsigned long" dir="in">
3558 <desc>Total amount of shared memory in the hypervisor.</desc>
3559 </param>
3560 <param name="vmNetRx" type="unsigned long" dir="in">
3561 <desc>Network receive rate for VM.</desc>
3562 </param>
3563 <param name="vmNetTx" type="unsigned long" dir="in">
3564 <desc>Network transmit rate for VM.</desc>
3565 </param>
3566 </method>
3567 </interface>
3568
3569 <interface
3570 name="IBIOSSettings" extends="$unknown"
3571 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3572 wsmap="managed"
3573 >
3574 <desc>
3575 The IBIOSSettings interface represents BIOS settings of the virtual
3576 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3577 </desc>
3578 <attribute name="logoFadeIn" type="boolean">
3579 <desc>Fade in flag for BIOS logo animation.</desc>
3580 </attribute>
3581
3582 <attribute name="logoFadeOut" type="boolean">
3583 <desc>Fade out flag for BIOS logo animation.</desc>
3584 </attribute>
3585
3586 <attribute name="logoDisplayTime" type="unsigned long">
3587 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3588 </attribute>
3589
3590 <attribute name="logoImagePath" type="wstring">
3591 <desc>
3592 Local file system path for external BIOS splash image. Empty string
3593 means the default image is shown on boot.
3594 </desc>
3595 </attribute>
3596
3597 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3598 <desc>Mode of the BIOS boot device menu.</desc>
3599 </attribute>
3600
3601 <attribute name="ACPIEnabled" type="boolean">
3602 <desc>ACPI support flag.</desc>
3603 </attribute>
3604
3605 <attribute name="IOAPICEnabled" type="boolean">
3606 <desc>
3607 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3608 and support IRQs above 15.
3609 </desc>
3610 </attribute>
3611
3612 <attribute name="timeOffset" type="long long">
3613 <desc>
3614 Offset in milliseconds from the host system time. This allows for
3615 guests running with a different system date/time than the host.
3616 It is equivalent to setting the system date/time in the BIOS except
3617 it is not an absolute value but a relative one. Guest Additions
3618 time synchronization honors this offset.
3619 </desc>
3620 </attribute>
3621
3622 <attribute name="PXEDebugEnabled" type="boolean">
3623 <desc>
3624 PXE debug logging flag. If set, VirtualBox will write extensive
3625 PXE trace information to the release log.
3626 </desc>
3627 </attribute>
3628 </interface>
3629
3630 <enum
3631 name="CleanupMode"
3632 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3633 >
3634 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3635 </desc>
3636 <const name="UnregisterOnly" value="1">
3637 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3638 </const>
3639 <const name="DetachAllReturnNone" value="2">
3640 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3641 </const>
3642 <const name="DetachAllReturnHardDisksOnly" value="3">
3643 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3644 </const>
3645 <const name="Full" value="4">
3646 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3647 </const>
3648 </enum>
3649
3650 <interface
3651 name="IPCIAddress" extends="$unknown"
3652 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3653 wsmap="struct"
3654 >
3655
3656 <desc>
3657 Address on the PCI bus.
3658 </desc>
3659
3660 <attribute name="bus" type="short">
3661 <desc>
3662 Bus number.
3663 </desc>
3664 </attribute>
3665
3666 <attribute name="device" type="short">
3667 <desc>
3668 Device number.
3669 </desc>
3670 </attribute>
3671
3672 <attribute name="devFunction" type="short">
3673 <desc>
3674 Device function number.
3675 </desc>
3676 </attribute>
3677
3678 <method name="asLong">
3679 <desc>
3680 Convert PCI address into long.
3681 </desc>
3682 <param name="result" type="long" dir="return" />
3683 </method>
3684
3685 <method name="fromLong">
3686 <desc>
3687 Make PCI address from long.
3688 </desc>
3689 <param name="number" type="long" dir="in" />
3690 </method>
3691 </interface>
3692
3693 <interface
3694 name="IPCIDeviceAttachment" extends="$unknown"
3695 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3696 wsmap="struct"
3697 >
3698
3699 <desc>
3700 Information about PCI attachments.
3701 </desc>
3702
3703 <attribute name="name" type="wstring" readonly="yes">
3704 <desc>
3705 Device name.
3706 </desc>
3707 </attribute>
3708
3709 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3710 <desc>
3711 If this is physical or virtual device.
3712 </desc>
3713 </attribute>
3714
3715 <attribute name="hostAddress" type="long" readonly="yes">
3716 <desc>
3717 Address of device on the host, applicable only to host devices.
3718 </desc>
3719 </attribute>
3720
3721 <attribute name="guestAddress" type="long" readonly="yes">
3722 <desc>
3723 Address of device on the guest.
3724 </desc>
3725 </attribute>
3726
3727 </interface>
3728
3729 <enum
3730 name="CloneMode" extends="$unknown"
3731 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3732 >
3733
3734 <desc>
3735 Clone mode, used with <link to="IMachine::cloneTo" />.
3736 </desc>
3737
3738 <const name="MachineState" value="1">
3739 <desc>Clone the state of the selected machine.</desc>
3740 </const>
3741 <const name="MachineAndChildStates" value="2">
3742 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3743 </const>
3744 <const name="AllStates" value="3">
3745 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3746 </const>
3747
3748 </enum>
3749
3750 <enum
3751 name="CloneOptions" extends="$unknown"
3752 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3753 >
3754
3755 <desc>
3756 Clone options, used with <link to="IMachine::cloneTo" />.
3757 </desc>
3758
3759 <const name="Link" value="1">
3760 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3761 </const>
3762 <const name="KeepAllMACs" value="2">
3763 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3764 </const>
3765 <const name="KeepNATMACs" value="3">
3766 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3767 </const>
3768 <const name="KeepDiskNames" value="4">
3769 <desc>Don't change the disk names.</desc>
3770 </const>
3771
3772 </enum>
3773
3774 <enum
3775 name="AutostopType" extends="$unknown"
3776 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3777 >
3778
3779 <desc>
3780 Autostop types, used with <link to="IMachine::autostopType" />.
3781 </desc>
3782
3783 <const name="Disabled" value="1">
3784 <desc>Stopping the VM during system shutdown is disabled.</desc>
3785 </const>
3786 <const name="SaveState" value="2">
3787 <desc>The state of the VM will be saved when the system shuts down.</desc>
3788 </const>
3789 <const name="PowerOff" value="3">
3790 <desc>The VM is powered off when the system shuts down.</desc>
3791 </const>
3792 <const name="AcpiShutdown" value="4">
3793 <desc>An ACPI shutdown event is generated.</desc>
3794 </const>
3795
3796 </enum>
3797
3798
3799 <interface
3800 name="IMachine" extends="$unknown"
3801 uuid="381e3f31-2b27-45b7-818a-30609ade86b3"
3802 wsmap="managed"
3803 >
3804 <desc>
3805 The IMachine interface represents a virtual machine, or guest, created
3806 in VirtualBox.
3807
3808 This interface is used in two contexts. First of all, a collection of
3809 objects implementing this interface is stored in the
3810 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3811 machines that are currently registered with this VirtualBox
3812 installation. Also, once a session has been opened for the given virtual
3813 machine (e.g. the virtual machine is running), the machine object
3814 associated with the open session can be queried from the session object;
3815 see <link to="ISession"/> for details.
3816
3817 The main role of this interface is to expose the settings of the virtual
3818 machine and provide methods to change various aspects of the virtual
3819 machine's configuration. For machine objects stored in the
3820 <link to="IVirtualBox::machines"/> collection, all attributes are
3821 read-only unless explicitly stated otherwise in individual attribute
3822 and method descriptions.
3823
3824 In order to change a machine setting, a session for this machine must be
3825 opened using one of the <link to="IMachine::lockMachine" /> or
3826 <link to="IMachine::launchVMProcess"/> methods. After the
3827 machine has been successfully locked for a session, a mutable machine object
3828 needs to be queried from the session object and then the desired settings
3829 changes can be applied to the returned object using IMachine attributes and
3830 methods. See the <link to="ISession"/> interface description for more
3831 information about sessions.
3832
3833 Note that IMachine does not provide methods to control virtual machine
3834 execution (such as start the machine, or power it down) -- these methods
3835 are grouped in a separate interface called <link to="IConsole" />.
3836
3837 <see><link to="ISession"/>, <link to="IConsole"/></see>
3838 </desc>
3839
3840 <attribute name="parent" type="IVirtualBox" readonly="yes">
3841 <desc>Associated parent object.</desc>
3842 </attribute>
3843
3844 <attribute name="accessible" type="boolean" readonly="yes">
3845 <desc>
3846 Whether this virtual machine is currently accessible or not.
3847
3848 A machine is always deemed accessible unless it is registered <i>and</i>
3849 its settings file cannot be read or parsed (either because the file itself
3850 is unavailable or has invalid XML contents).
3851
3852 Every time this property is read, the accessibility state of
3853 this machine is re-evaluated. If the returned value is @c false,
3854 the <link to="#accessError"/> property may be used to get the
3855 detailed error information describing the reason of
3856 inaccessibility, including XML error messages.
3857
3858 When the machine is inaccessible, only the following properties
3859 can be used on it:
3860 <ul>
3861 <li><link to="#parent"/></li>
3862 <li><link to="#id"/></li>
3863 <li><link to="#settingsFilePath"/></li>
3864 <li><link to="#accessible"/></li>
3865 <li><link to="#accessError"/></li>
3866 </ul>
3867
3868 An attempt to access any other property or method will return
3869 an error.
3870
3871 The only possible action you can perform on an inaccessible
3872 machine is to unregister it using the
3873 <link to="IMachine::unregister"/> call (or, to check
3874 for the accessibility state once more by querying this
3875 property).
3876
3877 <note>
3878 In the current implementation, once this property returns
3879 @c true, the machine will never become inaccessible
3880 later, even if its settings file cannot be successfully
3881 read/written any more (at least, until the VirtualBox
3882 server is restarted). This limitation may be removed in
3883 future releases.
3884 </note>
3885 </desc>
3886 </attribute>
3887
3888 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3889 <desc>
3890 Error information describing the reason of machine
3891 inaccessibility.
3892
3893 Reading this property is only valid after the last call to
3894 <link to="#accessible"/> returned @c false (i.e. the
3895 machine is currently inaccessible). Otherwise, a @c null
3896 IVirtualBoxErrorInfo object will be returned.
3897 </desc>
3898 </attribute>
3899
3900 <attribute name="name" type="wstring">
3901 <desc>
3902 Name of the virtual machine.
3903
3904 Besides being used for human-readable identification purposes
3905 everywhere in VirtualBox, the virtual machine name is also used
3906 as a name of the machine's settings file and as a name of the
3907 subdirectory this settings file resides in. Thus, every time you
3908 change the value of this property, the settings file will be
3909 renamed once you call <link to="#saveSettings"/> to confirm the
3910 change. The containing subdirectory will be also renamed, but
3911 only if it has exactly the same name as the settings file
3912 itself prior to changing this property (for backward compatibility
3913 with previous API releases). The above implies the following
3914 limitations:
3915 <ul>
3916 <li>The machine name cannot be empty.</li>
3917 <li>The machine name can contain only characters that are valid
3918 file name characters according to the rules of the file
3919 system used to store VirtualBox configuration.</li>
3920 <li>You cannot have two or more machines with the same name
3921 if they use the same subdirectory for storing the machine
3922 settings files.</li>
3923 <li>You cannot change the name of the machine if it is running,
3924 or if any file in the directory containing the settings file
3925 is being used by another running machine or by any other
3926 process in the host operating system at a time when
3927 <link to="#saveSettings"/> is called.
3928 </li>
3929 </ul>
3930 If any of the above limitations are hit, <link to="#saveSettings"/>
3931 will return an appropriate error message explaining the exact
3932 reason and the changes you made to this machine will not be saved.
3933
3934 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
3935 file is recommended, but not enforced. (Previous versions always
3936 used a generic ".xml" extension.)
3937 </desc>
3938 </attribute>
3939
3940 <attribute name="description" type="wstring">
3941 <desc>
3942 Description of the virtual machine.
3943
3944 The description attribute can contain any text and is
3945 typically used to describe the hardware and software
3946 configuration of the virtual machine in detail (i.e. network
3947 settings, versions of the installed software and so on).
3948 </desc>
3949 </attribute>
3950
3951 <attribute name="id" type="uuid" mod="string" readonly="yes">
3952 <desc>UUID of the virtual machine.</desc>
3953 </attribute>
3954
3955 <attribute name="groups" type="wstring" safearray="yes">
3956 <desc>
3957 Array of machine group names of which this machine is a member.
3958 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
3959 group is only listed once, however they are listed in no particular
3960 order and there is no guarantee that there are no gaps in the group
3961 hierarchy (i.e. <tt>"/group"</tt>,
3962 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
3963 </desc>
3964 </attribute>
3965
3966 <attribute name="OSTypeId" type="wstring">
3967 <desc>
3968 User-defined identifier of the Guest OS type.
3969 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3970 an IGuestOSType object representing details about the given
3971 Guest OS type.
3972 <note>
3973 This value may differ from the value returned by
3974 <link to="IGuest::OSTypeId"/> if Guest Additions are
3975 installed to the guest OS.
3976 </note>
3977 </desc>
3978 </attribute>
3979
3980 <attribute name="hardwareVersion" type="wstring">
3981 <desc>Hardware version identifier. Internal use only for now.</desc>
3982 </attribute>
3983
3984 <attribute name="hardwareUUID" type="uuid" mod="string">
3985 <desc>
3986 The UUID presented to the guest via memory tables, hardware and guest
3987 properties. For most VMs this is the same as the @a id, but for VMs
3988 which have been cloned or teleported it may be the same as the source
3989 VM. The latter is because the guest shouldn't notice that it was
3990 cloned or teleported.
3991 </desc>
3992 </attribute>
3993
3994 <attribute name="CPUCount" type="unsigned long">
3995 <desc>Number of virtual CPUs in the VM.</desc>
3996 </attribute>
3997
3998 <attribute name="CPUHotPlugEnabled" type="boolean">
3999 <desc>
4000 This setting determines whether VirtualBox allows CPU
4001 hotplugging for this machine.</desc>
4002 </attribute>
4003
4004 <attribute name="CPUExecutionCap" type="unsigned long">
4005 <desc>
4006 Means to limit the number of CPU cycles a guest can use. The unit
4007 is percentage of host CPU cycles per second. The valid range
4008 is 1 - 100. 100 (the default) implies no limit.
4009 </desc>
4010 </attribute>
4011
4012 <attribute name="memorySize" type="unsigned long">
4013 <desc>System memory size in megabytes.</desc>
4014 </attribute>
4015
4016 <attribute name="memoryBalloonSize" type="unsigned long">
4017 <desc>Memory balloon size in megabytes.</desc>
4018 </attribute>
4019
4020 <attribute name="pageFusionEnabled" type="boolean">
4021 <desc>
4022 This setting determines whether VirtualBox allows page
4023 fusion for this machine (64 bits host only).
4024 </desc>
4025 </attribute>
4026
4027 <attribute name="VRAMSize" type="unsigned long">
4028 <desc>Video memory size in megabytes.</desc>
4029 </attribute>
4030
4031 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4032 <desc>
4033 This setting determines whether VirtualBox allows this machine to make
4034 use of the 3D graphics support available on the host.</desc>
4035 </attribute>
4036
4037 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4038 <desc>
4039 This setting determines whether VirtualBox allows this machine to make
4040 use of the 2D video acceleration support available on the host.</desc>
4041 </attribute>
4042
4043 <attribute name="monitorCount" type="unsigned long">
4044 <desc>
4045 Number of virtual monitors.
4046 <note>
4047 Only effective on Windows XP and later guests with
4048 Guest Additions installed.
4049 </note>
4050 </desc>
4051 </attribute>
4052
4053 <attribute name="VideoCaptureEnabled" type="boolean" default="false">
4054 <desc>
4055 This setting determines whether VirtualBox uses video recording to
4056 record VM session.</desc>
4057 </attribute>
4058
4059 <attribute name="VideoCaptureFile" type="wstring" default="Test.webm">
4060 <desc>
4061 This setting determines what filename VirtualBox uses to save
4062 the recorded content.</desc>
4063 </attribute>
4064
4065 <attribute name="VideoCaptureWidth" type="unsigned long" default="640">
4066 <desc>
4067 This setting determines what should be the horizontal resolution of
4068 recorded video.</desc>
4069 </attribute>
4070
4071 <attribute name="VideoCaptureHeight" type="unsigned long" default="480">
4072 <desc>
4073 This setting determines what should be the vertical resolution
4074 of recorded video.</desc>
4075 </attribute>
4076
4077 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4078 <desc>Object containing all BIOS settings.</desc>
4079 </attribute>
4080
4081 <attribute name="firmwareType" type="FirmwareType">
4082 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4083 bootstrap in this VM.</desc>
4084 </attribute>
4085
4086 <attribute name="pointingHIDType" type="PointingHIDType">
4087 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4088 The default is typically "PS2Mouse" but can vary depending on the
4089 requirements of the guest operating system.</desc>
4090 </attribute>
4091
4092 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4093 <desc>Type of keyboard HID used in this VM.
4094 The default is typically "PS2Keyboard" but can vary depending on the
4095 requirements of the guest operating system.</desc>
4096 </attribute>
4097
4098 <attribute name="HPETEnabled" type="boolean">
4099 <desc>This attribute controls if High Precision Event Timer (HPET) is
4100 enabled in this VM. Use this property if you want to provide guests
4101 with additional time source, or if guest requires HPET to function correctly.
4102 Default is false.</desc>
4103 </attribute>
4104
4105 <attribute name="chipsetType" type="ChipsetType">
4106 <desc>Chipset type used in this VM.</desc>
4107 </attribute>
4108
4109 <attribute name="snapshotFolder" type="wstring">
4110 <desc>
4111 Full path to the directory used to store snapshot data
4112 (differencing media and saved state files) of this machine.
4113
4114 The initial value of this property is
4115 <tt>&lt;</tt><link to="#settingsFilePath">
4116 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4117 <link to="#id">machine_uuid</link>
4118 <tt>&gt;</tt>.
4119
4120 Currently, it is an error to try to change this property on
4121 a machine that has snapshots (because this would require to
4122 move possibly large files to a different location).
4123 A separate method will be available for this purpose later.
4124
4125 <note>
4126 Setting this property to @c null or to an empty string will restore
4127 the initial value.
4128 </note>
4129 <note>
4130 When setting this property, the specified path can be
4131 absolute (full path) or relative to the directory where the
4132 <link to="#settingsFilePath">machine settings file</link>
4133 is located. When reading this property, a full path is
4134 always returned.
4135 </note>
4136 <note>
4137 The specified path may not exist, it will be created
4138 when necessary.
4139 </note>
4140 </desc>
4141 </attribute>
4142
4143 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4144 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4145 </attribute>
4146
4147 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4148 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4149
4150 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4151 <desc>Array of media attached to this machine.</desc>
4152 </attribute>
4153
4154 <attribute name="USBController" type="IUSBController" readonly="yes">
4155 <desc>
4156 Associated USB controller object.
4157
4158 <note>
4159 If USB functionality is not available in the given edition of
4160 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4161 </note>
4162 </desc>
4163 </attribute>
4164
4165 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4166 <desc>Associated audio adapter, always present.</desc>
4167 </attribute>
4168
4169 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4170 <desc>Array of storage controllers attached to this machine.</desc>
4171 </attribute>
4172
4173 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4174 <desc>
4175 Full name of the file containing machine settings data.
4176 </desc>
4177 </attribute>
4178
4179 <attribute name="settingsModified" type="boolean" readonly="yes">
4180 <desc>
4181 Whether the settings of this machine have been modified
4182 (but neither yet saved nor discarded).
4183 <note>
4184 Reading this property is only valid on instances returned
4185 by <link to="ISession::machine"/> and on new machines
4186 created by <link to="IVirtualBox::createMachine"/> or opened
4187 by <link to="IVirtualBox::openMachine"/> but not
4188 yet registered, or on unregistered machines after calling
4189 <link to="IMachine::unregister"/>. For all other
4190 cases, the settings can never be modified.
4191 </note>
4192 <note>
4193 For newly created unregistered machines, the value of this
4194 property is always @c true until <link to="#saveSettings"/>
4195 is called (no matter if any machine settings have been
4196 changed after the creation or not). For opened machines
4197 the value is set to @c false (and then follows to normal rules).
4198 </note>
4199 </desc>
4200 </attribute>
4201
4202 <attribute name="sessionState" type="SessionState" readonly="yes">
4203 <desc>Current session state for this machine.</desc>
4204 </attribute>
4205
4206 <attribute name="sessionType" type="wstring" readonly="yes">
4207 <desc>
4208 Type of the session. If <link to="#sessionState"/> is
4209 Spawning or Locked, this attribute contains the
4210 same value as passed to the
4211 <link to="IMachine::launchVMProcess"/> method in the
4212 @a type parameter. If the session was used with
4213 <link to="IMachine::lockMachine" />, or if
4214 <link to="#sessionState"/> is SessionClosed, the value of this
4215 attribute is an empty string.
4216 </desc>
4217 </attribute>
4218
4219 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4220 <desc>
4221 Identifier of the session process. This attribute contains the
4222 platform-dependent identifier of the process whose session was
4223 used with <link to="IMachine::lockMachine" /> call. The returned
4224 value is only valid if <link to="#sessionState"/> is Locked or
4225 Unlocking by the time this property is read.
4226 </desc>
4227 </attribute>
4228
4229 <attribute name="state" type="MachineState" readonly="yes">
4230 <desc>Current execution state of this machine.</desc>
4231 </attribute>
4232
4233 <attribute name="lastStateChange" type="long long" readonly="yes">
4234 <desc>
4235 Time stamp of the last execution state change,
4236 in milliseconds since 1970-01-01 UTC.
4237 </desc>
4238 </attribute>
4239
4240 <attribute name="stateFilePath" type="wstring" readonly="yes">
4241 <desc>
4242 Full path to the file that stores the execution state of
4243 the machine when it is in the <link to="MachineState_Saved"/> state.
4244 <note>
4245 When the machine is not in the Saved state, this attribute is
4246 an empty string.
4247 </note>
4248 </desc>
4249 </attribute>
4250
4251 <attribute name="logFolder" type="wstring" readonly="yes">
4252 <desc>
4253 Full path to the folder that stores a set of rotated log files
4254 recorded during machine execution. The most recent log file is
4255 named <tt>VBox.log</tt>, the previous log file is
4256 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4257 in the current version).
4258 </desc>
4259 </attribute>
4260
4261 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4262 <desc>
4263 Current snapshot of this machine. This is @c null if the machine
4264 currently has no snapshots. If it is not @c null, then it was
4265 set by one of <link to="IConsole::takeSnapshot" />,
4266 <link to="IConsole::deleteSnapshot" />
4267 or <link to="IConsole::restoreSnapshot" />, depending on which
4268 was called last. See <link to="ISnapshot"/> for details.
4269 </desc>
4270 </attribute>
4271
4272 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4273 <desc>
4274 Number of snapshots taken on this machine. Zero means the
4275 machine doesn't have any snapshots.
4276 </desc>
4277 </attribute>
4278
4279 <attribute name="currentStateModified" type="boolean" readonly="yes">
4280 <desc>
4281 Returns @c true if the current state of the machine is not
4282 identical to the state stored in the current snapshot.
4283
4284 The current state is identical to the current snapshot only
4285 directly after one of the following calls are made:
4286
4287 <ul>
4288 <li><link to="IConsole::restoreSnapshot"/>
4289 </li>
4290 <li><link to="IConsole::takeSnapshot"/> (issued on a
4291 "powered off" or "saved" machine, for which
4292 <link to="#settingsModified"/> returns @c false)
4293 </li>
4294 </ul>
4295
4296 The current state remains identical until one of the following
4297 happens:
4298 <ul>
4299 <li>settings of the machine are changed</li>
4300 <li>the saved state is deleted</li>
4301 <li>the current snapshot is deleted</li>
4302 <li>an attempt to execute the machine is made</li>
4303 </ul>
4304
4305 <note>
4306 For machines that don't have snapshots, this property is
4307 always @c false.
4308 </note>
4309 </desc>
4310 </attribute>
4311
4312 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4313 <desc>
4314 Collection of shared folders for this machine (permanent shared
4315 folders). These folders are shared automatically at machine startup
4316 and available only to the guest OS installed within this machine.
4317
4318 New shared folders are added to the collection using
4319 <link to="#createSharedFolder"/>. Existing shared folders can be
4320 removed using <link to="#removeSharedFolder"/>.
4321 </desc>
4322 </attribute>
4323
4324 <attribute name="clipboardMode" type="ClipboardMode">
4325 <desc>
4326 Synchronization mode between the host OS clipboard
4327 and the guest OS clipboard.
4328 </desc>
4329 </attribute>
4330
4331 <attribute name="dragAndDropMode" type="DragAndDropMode">
4332 <desc>
4333 Which mode is allowed for drag'n'drop.
4334 </desc>
4335 </attribute>
4336
4337 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4338 <desc>
4339 A comma-separated list of simple glob patterns. Changes to guest
4340 properties whose name matches one of the patterns will generate an
4341 <link to="IGuestPropertyChangedEvent"/> signal.
4342 </desc>
4343 </attribute>
4344
4345 <attribute name="teleporterEnabled" type="boolean">
4346 <desc>
4347 When set to @a true, the virtual machine becomes a target teleporter
4348 the next time it is powered on. This can only set to @a true when the
4349 VM is in the @a PoweredOff or @a Aborted state.
4350
4351 <!-- This property is automatically set to @a false when the VM is powered
4352 on. (bird: This doesn't work yet ) -->
4353 </desc>
4354 </attribute>
4355
4356 <attribute name="teleporterPort" type="unsigned long">
4357 <desc>
4358 The TCP port the target teleporter will listen for incoming
4359 teleportations on.
4360
4361 0 means the port is automatically selected upon power on. The actual
4362 value can be read from this property while the machine is waiting for
4363 incoming teleportations.
4364 </desc>
4365 </attribute>
4366
4367 <attribute name="teleporterAddress" type="wstring">
4368 <desc>
4369 The address the target teleporter will listen on. If set to an empty
4370 string, it will listen on all addresses.
4371 </desc>
4372 </attribute>
4373
4374 <attribute name="teleporterPassword" type="wstring">
4375 <desc>
4376 The password to check for on the target teleporter. This is just a
4377 very basic measure to prevent simple hacks and operators accidentally
4378 beaming a virtual machine to the wrong place.
4379
4380 Note that you SET a plain text password while reading back a HASHED
4381 password. Setting a hashed password is currently not supported.
4382 </desc>
4383 </attribute>
4384
4385 <attribute name="faultToleranceState" type="FaultToleranceState">
4386 <desc>
4387 Fault tolerance state; disabled, source or target.
4388 This property can be changed at any time. If you change it for a running
4389 VM, then the fault tolerance address and port must be set beforehand.
4390 </desc>
4391 </attribute>
4392
4393 <attribute name="faultTolerancePort" type="unsigned long">
4394 <desc>
4395 The TCP port the fault tolerance source or target will use for
4396 communication.
4397 </desc>
4398 </attribute>
4399
4400 <attribute name="faultToleranceAddress" type="wstring">
4401 <desc>
4402 The address the fault tolerance source or target.
4403 </desc>
4404 </attribute>
4405
4406 <attribute name="faultTolerancePassword" type="wstring">
4407 <desc>
4408 The password to check for on the standby VM. This is just a
4409 very basic measure to prevent simple hacks and operators accidentally
4410 choosing the wrong standby VM.
4411 </desc>
4412 </attribute>
4413
4414 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4415 <desc>
4416 The interval in ms used for syncing the state between source and target.
4417 </desc>
4418 </attribute>
4419
4420 <attribute name="RTCUseUTC" type="boolean">
4421 <desc>
4422 When set to @a true, the RTC device of the virtual machine will run
4423 in UTC time, otherwise in local time. Especially Unix guests prefer
4424 the time in UTC.
4425 </desc>
4426 </attribute>
4427
4428 <attribute name="IOCacheEnabled" type="boolean">
4429 <desc>
4430 When set to @a true, the builtin I/O cache of the virtual machine
4431 will be enabled.
4432 </desc>
4433 </attribute>
4434
4435 <attribute name="IOCacheSize" type="unsigned long">
4436 <desc>
4437 Maximum size of the I/O cache in MB.
4438 </desc>
4439 </attribute>
4440
4441 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4442 <desc>Array of PCI devices assigned to this machine, to get list of all
4443 PCI devices attached to the machine use
4444 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4445 is intended to list only devices additional to what described in
4446 virtual hardware config. Usually, this list keeps host's physical
4447 devices assigned to the particular machine.
4448 </desc>
4449 </attribute>
4450
4451 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4452 <desc>
4453 Bandwidth control manager.
4454 </desc>
4455 </attribute>
4456
4457 <attribute name="tracingEnabled" type="boolean">
4458 <desc>
4459 Enables the tracing facility in the VMM (including PDM devices +
4460 drivers). The VMM will consume about 0.5MB of more memory when
4461 enabled and there may be some extra overhead from tracepoints that are
4462 always enabled.
4463 </desc>
4464 </attribute>
4465
4466 <attribute name="tracingConfig" type="wstring">
4467 <desc>
4468 Tracepoint configuration to apply at startup when
4469 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4470 a space separated of tracepoint group names to enable. The special
4471 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4472 more details on available tracepoint groups and such.
4473
4474 Note that on hosts supporting DTrace (or similar), a lot of the
4475 tracepoints may be implemented exclusivly as DTrace probes. So, the
4476 effect of the same config may differ between Solaris and Windows for
4477 example.
4478 </desc>
4479 </attribute>
4480
4481 <attribute name="allowTracingToAccessVM" type="boolean">
4482 <desc>
4483 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4484 structures when firing off trace points. This is especially useful
4485 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4486 pointer to obtain useful information such as guest register state.
4487
4488 This is disabled by default because devices and drivers normally has no
4489 business accessing the VMCPU or VM structures, and are therefore unable
4490 to get any pointers to these.
4491 </desc>
4492 </attribute>
4493
4494 <attribute name="autostartEnabled" type="boolean">
4495 <desc>
4496 Enables autostart of the VM during system boot.
4497 </desc>
4498 </attribute>
4499
4500 <attribute name="autostartDelay" type="unsigned long">
4501 <desc>
4502 Number of seconds to wait until the VM should be started during system boot.
4503 </desc>
4504 </attribute>
4505
4506 <attribute name="autostopType" type="AutostopType">
4507 <desc>
4508 Action type to do when the system is shutting down.
4509 </desc>
4510 </attribute>
4511
4512 <attribute name="defaultFrontend" type="wstring">
4513 <desc>
4514 Selects which VM frontend should be used by default when launching
4515 this VM through the <link to="IMachine::launchVMProcess" /> method.
4516 Empty or @c null strings do not define a particular default, it is up
4517 to <link to="IMachine::launchVMProcess" /> to select one. See the
4518 description of <link to="IMachine::launchVMProcess" /> for the valid
4519 frontend types.
4520
4521 This per-VM setting overrides the default defined by
4522 <link to="ISystemProperties::defaultFrontend" /> attribute, and is
4523 overridden by a frontend type passed to
4524 <link to="IMachine::launchVMProcess" />.
4525 </desc>
4526 </attribute>
4527
4528 <method name="lockMachine">
4529 <desc>
4530 Locks the machine for the given session to enable the caller
4531 to make changes to the machine or start the VM or control
4532 VM execution.
4533
4534 There are two ways to lock a machine for such uses:
4535
4536 <ul>
4537 <li>If you want to make changes to the machine settings,
4538 you must obtain an exclusive write lock on the machine
4539 by setting @a lockType to @c Write.
4540
4541 This will only succeed if no other process has locked
4542 the machine to prevent conflicting changes. Only after
4543 an exclusive write lock has been obtained using this method, one
4544 can change all VM settings or execute the VM in the process
4545 space of the session object. (Note that the latter is only of
4546 interest if you actually want to write a new front-end for
4547 virtual machines; but this API gets called internally by
4548 the existing front-ends such as VBoxHeadless and the VirtualBox
4549 GUI to acquire a write lock on the machine that they are running.)
4550
4551 On success, write-locking the machine for a session creates
4552 a second copy of the IMachine object. It is this second object
4553 upon which changes can be made; in VirtualBox terminology, the
4554 second copy is "mutable". It is only this second, mutable machine
4555 object upon which you can call methods that change the
4556 machine state. After having called this method, you can
4557 obtain this second, mutable machine object using the
4558 <link to="ISession::machine" /> attribute.
4559 </li>
4560 <li>If you only want to check the machine state or control
4561 machine execution without actually changing machine
4562 settings (e.g. to get access to VM statistics or take
4563 a snapshot or save the machine state), then set the
4564 @a lockType argument to @c Shared.
4565
4566 If no other session has obtained a lock, you will obtain an
4567 exclusive write lock as described above. However, if another
4568 session has already obtained such a lock, then a link to that
4569 existing session will be established which allows you
4570 to control that existing session.
4571
4572 To find out which type of lock was obtained, you can
4573 inspect <link to="ISession::type" />, which will have been
4574 set to either @c WriteLock or @c Shared.
4575 </li>
4576 </ul>
4577
4578 In either case, you can get access to the <link to="IConsole" />
4579 object which controls VM execution.
4580
4581 Also in all of the above cases, one must always call
4582 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4583 the machine's state will eventually be set to "Aborted".
4584
4585 To change settings on a machine, the following sequence is typically
4586 performed:
4587
4588 <ol>
4589 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4590
4591 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4592
4593 <li>Change the settings of the machine by invoking IMachine methods.</li>
4594
4595 <li>Call <link to="IMachine::saveSettings" />.</li>
4596
4597 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4598 </ol>
4599
4600 <result name="E_UNEXPECTED">
4601 Virtual machine not registered.
4602 </result>
4603 <result name="E_ACCESSDENIED">
4604 Process not started by OpenRemoteSession.
4605 </result>
4606 <result name="VBOX_E_INVALID_OBJECT_STATE">
4607 Session already open or being opened.
4608 </result>
4609 <result name="VBOX_E_VM_ERROR">
4610 Failed to assign machine to session.
4611 </result>
4612 </desc>
4613 <param name="session" type="ISession" dir="in">
4614 <desc>
4615 Session object for which the machine will be locked.
4616 </desc>
4617 </param>
4618 <param name="lockType" type="LockType" dir="in">
4619 <desc>
4620 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4621 If set to @c Shared, then either acquire an exclusive write lock or establish
4622 a link to an existing session.
4623 </desc>
4624 </param>
4625 </method>
4626
4627 <method name="launchVMProcess">
4628 <desc>
4629 Spawns a new process that will execute the virtual machine and obtains a shared
4630 lock on the machine for the calling session.
4631
4632 If launching the VM succeeds, the new VM process will create its own session
4633 and write-lock the machine for it, preventing conflicting changes from other
4634 processes. If the machine is already locked (because it is already running or
4635 because another session has a write lock), launching the VM process will therefore
4636 fail. Reversely, future attempts to obtain a write lock will also fail while the
4637 machine is running.
4638
4639 The caller's session object remains separate from the session opened by the new
4640 VM process. It receives its own <link to="IConsole" /> object which can be used
4641 to control machine execution, but it cannot be used to change all VM settings
4642 which would be available after a <link to="#lockMachine" /> call.
4643
4644 The caller must eventually release the session's shared lock by calling
4645 <link to="ISession::unlockMachine" /> on the local session object once this call
4646 has returned. However, the session's state (see <link to="ISession::state" />)
4647 will not return to "Unlocked" until the remote session has also unlocked
4648 the machine (i.e. the machine has stopped running).
4649
4650 Launching a VM process can take some time (a new VM is started in a new process,
4651 for which memory and other resources need to be set up). Because of this,
4652 an <link to="IProgress" /> object is returned to allow the caller to wait
4653 for this asynchronous operation to be completed. Until then, the caller's
4654 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4655 and <link to="ISession::console" /> attributes cannot be accessed.
4656 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4657 similar calls to wait for completion. Completion is signalled when the VM
4658 is powered on. If launching the VM fails, error messages can be queried
4659 via the progress object, if available.
4660
4661 The progress object will have at least 2 sub-operations. The first
4662 operation covers the period up to the new VM process calls powerUp.
4663 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4664 progress object. Because <link to="IConsole::powerUp"/> may require
4665 some extra sub-operations, the <link to="IProgress::operationCount"/>
4666 may change at the completion of operation.
4667
4668 For details on the teleportation progress operation, see
4669 <link to="IConsole::powerUp"/>.
4670
4671 The @a environment argument is a string containing definitions of
4672 environment variables in the following format:
4673 <pre>
4674 NAME[=VALUE]\n
4675 NAME[=VALUE]\n
4676 ...
4677 </pre>
4678 where <tt>\\n</tt> is the new line character. These environment
4679 variables will be appended to the environment of the VirtualBox server
4680 process. If an environment variable exists both in the server process
4681 and in this list, the value from this list takes precedence over the
4682 server's variable. If the value of the environment variable is
4683 omitted, this variable will be removed from the resulting environment.
4684 If the environment string is @c null or empty, the server environment
4685 is inherited by the started process as is.
4686
4687 <result name="E_UNEXPECTED">
4688 Virtual machine not registered.
4689 </result>
4690 <result name="E_INVALIDARG">
4691 Invalid session type @a type.
4692 </result>
4693 <result name="VBOX_E_OBJECT_NOT_FOUND">
4694 No machine matching @a machineId found.
4695 </result>
4696 <result name="VBOX_E_INVALID_OBJECT_STATE">
4697 Session already open or being opened.
4698 </result>
4699 <result name="VBOX_E_IPRT_ERROR">
4700 Launching process for machine failed.
4701 </result>
4702 <result name="VBOX_E_VM_ERROR">
4703 Failed to assign machine to session.
4704 </result>
4705 </desc>
4706 <param name="session" type="ISession" dir="in">
4707 <desc>
4708 Client session object to which the VM process will be connected (this
4709 must be in "Unlocked" state).
4710 </desc>
4711 </param>
4712 <param name="type" type="wstring" dir="in">
4713 <desc>
4714 Front-end to use for the new VM process. The following are currently supported:
4715 <ul>
4716 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4717 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4718 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4719 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4720 the currently running VM or session owner. In this case the
4721 @a session parameter may be @c null (if it is non-null it isn't
4722 used in any way), and the @a progress return value will be always
4723 @c null. The operation completes immediately.</li>
4724 <li><tt>""</tt>: use the per-VM default frontend if set, otherwise
4725 the global default defined in the system properties. If neither
4726 are set, the API will launch a <tt>"gui"</tt> session, which may
4727 fail if there is no windowing environment available. See
4728 <link to="IMachine::defaultFrontend"/> and
4729 <link to="ISystemProperties::defaultFrontend"/>.</li>
4730 </ul>
4731 </desc>
4732 </param>
4733 <param name="environment" type="wstring" dir="in">
4734 <desc>
4735 Environment to pass to the VM process.
4736 </desc>
4737 </param>
4738 <param name="progress" type="IProgress" dir="return">
4739 <desc>Progress object to track the operation completion.</desc>
4740 </param>
4741 </method>
4742
4743 <method name="setBootOrder">
4744 <desc>
4745 Puts the given device to the specified position in
4746 the boot order.
4747
4748 To indicate that no device is associated with the given position,
4749 <link to="DeviceType_Null"/> should be used.
4750
4751 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4752
4753 <result name="E_INVALIDARG">
4754 Boot @a position out of range.
4755 </result>
4756 <result name="E_NOTIMPL">
4757 Booting from USB @a device currently not supported.
4758 </result>
4759
4760 </desc>
4761 <param name="position" type="unsigned long" dir="in">
4762 <desc>
4763 Position in the boot order (@c 1 to the total number of
4764 devices the machine can boot from, as returned by
4765 <link to="ISystemProperties::maxBootPosition"/>).
4766 </desc>
4767 </param>
4768 <param name="device" type="DeviceType" dir="in">
4769 <desc>
4770 The type of the device used to boot at the given position.
4771 </desc>
4772 </param>
4773 </method>
4774
4775 <method name="getBootOrder" const="yes">
4776 <desc>
4777 Returns the device type that occupies the specified
4778 position in the boot order.
4779
4780 @todo [remove?]
4781 If the machine can have more than one device of the returned type
4782 (such as hard disks), then a separate method should be used to
4783 retrieve the individual device that occupies the given position.
4784
4785 If here are no devices at the given position, then
4786 <link to="DeviceType_Null"/> is returned.
4787
4788 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4789
4790 <result name="E_INVALIDARG">
4791 Boot @a position out of range.
4792 </result>
4793
4794 </desc>
4795 <param name="position" type="unsigned long" dir="in">
4796 <desc>
4797 Position in the boot order (@c 1 to the total number of
4798 devices the machine can boot from, as returned by
4799 <link to="ISystemProperties::maxBootPosition"/>).
4800 </desc>
4801 </param>
4802 <param name="device" type="DeviceType" dir="return">
4803 <desc>
4804 Device at the given position.
4805 </desc>
4806 </param>
4807 </method>
4808
4809 <method name="attachDevice">
4810 <desc>
4811 Attaches a device and optionally mounts a medium to the given storage
4812 controller (<link to="IStorageController" />, identified by @a name),
4813 at the indicated port and device.
4814
4815 This method is intended for managing storage devices in general while a
4816 machine is powered off. It can be used to attach and detach fixed
4817 and removable media. The following kind of media can be attached
4818 to a machine:
4819
4820 <ul>
4821 <li>For fixed and removable media, you can pass in a medium that was
4822 previously opened using <link to="IVirtualBox::openMedium" />.
4823 </li>
4824
4825 <li>Only for storage devices supporting removable media (such as
4826 DVDs and floppies), you can also specify a null pointer to
4827 indicate an empty drive or one of the medium objects listed
4828 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4829 arrays to indicate a host drive.
4830 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4831 to change the media while the machine is running.
4832 </li>
4833 </ul>
4834
4835 In a VM's default configuration of virtual machines, the secondary
4836 master of the IDE controller is used for a CD/DVD drive.
4837
4838 After calling this returns successfully, a new instance of
4839 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4840 attachments (see <link to="IMachine::mediumAttachments"/>).
4841
4842 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4843 information about attaching media.
4844
4845 The specified device slot must not have a device attached to it,
4846 or this method will fail.
4847
4848 <note>
4849 You cannot attach a device to a newly created machine until
4850 this machine's settings are saved to disk using
4851 <link to="#saveSettings"/>.
4852 </note>
4853 <note>
4854 If the medium is being attached indirectly, a new differencing medium
4855 will implicitly be created for it and attached instead. If the
4856 changes made to the machine settings (including this indirect
4857 attachment) are later cancelled using <link to="#discardSettings"/>,
4858 this implicitly created differencing medium will implicitly
4859 be deleted.
4860 </note>
4861
4862 <result name="E_INVALIDARG">
4863 SATA device, SATA port, IDE port or IDE slot out of range, or
4864 file or UUID not found.
4865 </result>
4866 <result name="VBOX_E_INVALID_OBJECT_STATE">
4867 Machine must be registered before media can be attached.
4868 </result>
4869 <result name="VBOX_E_INVALID_VM_STATE">
4870 Invalid machine state.
4871 </result>
4872 <result name="VBOX_E_OBJECT_IN_USE">
4873 A medium is already attached to this or another virtual machine.
4874 </result>
4875
4876 </desc>
4877 <param name="name" type="wstring" dir="in">
4878 <desc>Name of the storage controller to attach the device to.</desc>
4879 </param>
4880 <param name="controllerPort" type="long" dir="in">
4881 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4882 the primary controller and 1 specifies the secondary controller.
4883 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4884 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4885 </param>
4886 <param name="device" type="long" dir="in">
4887 <desc>Device slot in the given port to attach the device to. This is only
4888 relevant for IDE controllers, for which 0 specifies the master device and
4889 1 specifies the slave device. For all other controller types, this must
4890 be 0.</desc>
4891 </param>
4892 <param name="type" type="DeviceType" dir="in">
4893 <desc>Device type of the attached device. For media opened by
4894 <link to="IVirtualBox::openMedium" />, this must match the device type
4895 specified there.</desc>
4896 </param>
4897 <param name="medium" type="IMedium" dir="in">
4898 <desc>Medium to mount or @c null for an empty drive.</desc>
4899 </param>
4900 </method>
4901
4902 <method name="attachDeviceWithoutMedium">
4903 <desc>
4904 Attaches a device and optionally mounts a medium to the given storage
4905 controller (<link to="IStorageController" />, identified by @a name),
4906 at the indicated port and device.
4907
4908 This method is intended for managing storage devices in general while a
4909 machine is powered off. It can be used to attach and detach fixed
4910 and removable media. The following kind of media can be attached
4911 to a machine:
4912 <ul>
4913 <li>
4914 For fixed and removable media, you can pass in a medium that was
4915 previously opened using <link to="IVirtualBox::openMedium" />.
4916 </li>
4917
4918 <li>Only for storage devices supporting removable media (such as
4919 DVDs and floppies) with an empty drive or one of the medium objects listed
4920 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4921 arrays to indicate a host drive.
4922 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4923 to change the media while the machine is running.
4924 </li>
4925 </ul>
4926
4927 In a VM's default configuration of virtual machines, the secondary
4928 master of the IDE controller is used for a CD/DVD drive.
4929 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4930 attachments (see <link to="IMachine::mediumAttachments"/>).
4931
4932 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4933 information about attaching media.
4934
4935 The specified device slot must not have a device attached to it,
4936 or this method will fail.
4937 <note>
4938 You cannot attach a device to a newly created machine until
4939 this machine's settings are saved to disk using
4940 <link to="#saveSettings"/>.
4941 </note>
4942 <note>
4943 If the medium is being attached indirectly, a new differencing medium
4944 will implicitly be created for it and attached instead. If the
4945 changes made to the machine settings (including this indirect
4946 attachment) are later cancelled using <link to="#discardSettings"/>,
4947 this implicitly created differencing medium will implicitly
4948 be deleted.
4949 </note>
4950
4951 <result name="E_INVALIDARG">
4952 SATA device, SATA port, IDE port or IDE slot out of range, or
4953 file or UUID not found.
4954 </result>
4955 <result name="VBOX_E_INVALID_OBJECT_STATE">
4956 Machine must be registered before media can be attached.
4957 </result>
4958 <result name="VBOX_E_INVALID_VM_STATE">
4959 Invalid machine state.
4960 </result>
4961 <result name="VBOX_E_OBJECT_IN_USE">
4962 A medium is already attached to this or another virtual machine.
4963 </result>
4964 </desc>
4965 <param name="name" type="wstring" dir="in">
4966 <desc>Name of the storage controller to attach the device to.</desc>
4967 </param>
4968 <param name="controllerPort" type="long" dir="in">
4969 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4970 the primary controller and 1 specifies the secondary controller.
4971 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4972 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4973 </param>
4974 <param name="device" type="long" dir="in">
4975 <desc>Device slot in the given port to attach the device to. This is only
4976 relevant for IDE controllers, for which 0 specifies the master device and
4977 1 specifies the slave device. For all other controller types, this must
4978 be 0.</desc>
4979 </param>
4980 <param name="type" type="DeviceType" dir="in">
4981 <desc>Device type of the attached device. For media opened by
4982 <link to="IVirtualBox::openMedium" />, this must match the device type
4983 specified there.</desc>
4984 </param>
4985 </method>
4986
4987 <method name="detachDevice">
4988 <desc>
4989 Detaches the device attached to a device slot of the specified bus.
4990
4991 Detaching the device from the virtual machine is deferred. This means
4992 that the medium remains associated with the machine when this method
4993 returns and gets actually de-associated only after a successful
4994 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4995 for more detailed information about attaching media.
4996
4997 <note>
4998 You cannot detach a device from a running machine.
4999 </note>
5000 <note>
5001 Detaching differencing media implicitly created by <link
5002 to="#attachDevice"/> for the indirect attachment using this
5003 method will <b>not</b> implicitly delete them. The
5004 <link to="IMedium::deleteStorage"/> operation should be
5005 explicitly performed by the caller after the medium is successfully
5006 detached and the settings are saved with
5007 <link to="#saveSettings"/>, if it is the desired action.
5008 </note>
5009
5010 <result name="VBOX_E_INVALID_VM_STATE">
5011 Attempt to detach medium from a running virtual machine.
5012 </result>
5013 <result name="VBOX_E_OBJECT_NOT_FOUND">
5014 No medium attached to given slot/bus.
5015 </result>
5016 <result name="VBOX_E_NOT_SUPPORTED">
5017 Medium format does not support storage deletion (only for implicitly
5018 created differencing media, should not happen).
5019 </result>
5020
5021 </desc>
5022 <param name="name" type="wstring" dir="in">
5023 <desc>Name of the storage controller to detach the medium from.</desc>
5024 </param>
5025 <param name="controllerPort" type="long" dir="in">
5026 <desc>Port number to detach the medium from.</desc>
5027 </param>
5028 <param name="device" type="long" dir="in">
5029 <desc>Device slot number to detach the medium from.</desc>
5030 </param>
5031 </method>
5032
5033 <method name="passthroughDevice">
5034 <desc>
5035 Sets the passthrough mode of an existing DVD device. Changing the
5036 setting while the VM is running is forbidden. The setting is only used
5037 if at VM start the device is configured as a host DVD drive, in all
5038 other cases it is ignored. The device must already exist; see
5039 <link to="IMachine::attachDevice"/> for how to attach a new device.
5040
5041 The @a controllerPort and @a device parameters specify the device slot and
5042 have have the same meaning as with <link to="IMachine::attachDevice" />.
5043
5044 <result name="E_INVALIDARG">
5045 SATA device, SATA port, IDE port or IDE slot out of range.
5046 </result>
5047 <result name="VBOX_E_INVALID_OBJECT_STATE">
5048 Attempt to modify an unregistered virtual machine.
5049 </result>
5050 <result name="VBOX_E_INVALID_VM_STATE">
5051 Invalid machine state.
5052 </result>
5053
5054 </desc>
5055 <param name="name" type="wstring" dir="in">
5056 <desc>Name of the storage controller.</desc>
5057 </param>
5058 <param name="controllerPort" type="long" dir="in">
5059 <desc>Storage controller port.</desc>
5060 </param>
5061 <param name="device" type="long" dir="in">
5062 <desc>Device slot in the given port.</desc>
5063 </param>
5064 <param name="passthrough" type="boolean" dir="in">
5065 <desc>New value for the passthrough setting.</desc>
5066 </param>
5067 </method>
5068
5069 <method name="temporaryEjectDevice">
5070 <desc>
5071 Sets the behavior for guest-triggered medium eject. In some situations
5072 it is desirable that such ejects update the VM configuration, and in
5073 others the eject should keep the VM configuration. The device must
5074 already exist; see <link to="IMachine::attachDevice"/> for how to
5075 attach a new device.
5076
5077 The @a controllerPort and @a device parameters specify the device slot and
5078 have have the same meaning as with <link to="IMachine::attachDevice" />.
5079
5080 <result name="E_INVALIDARG">
5081 SATA device, SATA port, IDE port or IDE slot out of range.
5082 </result>
5083 <result name="VBOX_E_INVALID_OBJECT_STATE">
5084 Attempt to modify an unregistered virtual machine.
5085 </result>
5086 <result name="VBOX_E_INVALID_VM_STATE">
5087 Invalid machine state.
5088 </result>
5089
5090 </desc>
5091 <param name="name" type="wstring" dir="in">
5092 <desc>Name of the storage controller.</desc>
5093 </param>
5094 <param name="controllerPort" type="long" dir="in">
5095 <desc>Storage controller port.</desc>
5096 </param>
5097 <param name="device" type="long" dir="in">
5098 <desc>Device slot in the given port.</desc>
5099 </param>
5100 <param name="temporaryEject" type="boolean" dir="in">
5101 <desc>New value for the eject behavior.</desc>
5102 </param>
5103 </method>
5104
5105 <method name="nonRotationalDevice">
5106 <desc>
5107 Sets a flag in the device information which indicates that the medium
5108 is not based on rotational technology, i.e. that the access times are
5109 more or less independent of the position on the medium. This may or may
5110 not be supported by a particular drive, and is silently ignored in the
5111 latter case. At the moment only hard disks (which is a misnomer in this
5112 context) accept this setting. Changing the setting while the VM is
5113 running is forbidden. The device must already exist; see
5114 <link to="IMachine::attachDevice"/> for how to attach a new device.
5115
5116 The @a controllerPort and @a device parameters specify the device slot and
5117 have have the same meaning as with <link to="IMachine::attachDevice" />.
5118
5119 <result name="E_INVALIDARG">
5120 SATA device, SATA port, IDE port or IDE slot out of range.
5121 </result>
5122 <result name="VBOX_E_INVALID_OBJECT_STATE">
5123 Attempt to modify an unregistered virtual machine.
5124 </result>
5125 <result name="VBOX_E_INVALID_VM_STATE">
5126 Invalid machine state.
5127 </result>
5128
5129 </desc>
5130 <param name="name" type="wstring" dir="in">
5131 <desc>Name of the storage controller.</desc>
5132 </param>
5133 <param name="controllerPort" type="long" dir="in">
5134 <desc>Storage controller port.</desc>
5135 </param>
5136 <param name="device" type="long" dir="in">
5137 <desc>Device slot in the given port.</desc>
5138 </param>
5139 <param name="nonRotational" type="boolean" dir="in">
5140 <desc>New value for the non-rotational device flag.</desc>
5141 </param>
5142 </method>
5143
5144 <method name="setAutoDiscardForDevice">
5145 <desc>
5146 Sets a flag in the device information which indicates that the medium
5147 supports discarding unsused blocks (called trimming for SATA or unmap
5148 for SCSI devices) .This may or may not be supported by a particular drive,
5149 and is silently ignored in the latter case. At the moment only hard disks
5150 (which is a misnomer in this context) accept this setting. Changing the
5151 setting while the VM is running is forbidden. The device must already
5152 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5153 device.
5154
5155 The @a controllerPort and @a device parameters specify the device slot and
5156 have have the same meaning as with <link to="IMachine::attachDevice" />.
5157
5158 <result name="E_INVALIDARG">
5159 SATA device, SATA port, SCSI port out of range.
5160 </result>
5161 <result name="VBOX_E_INVALID_OBJECT_STATE">
5162 Attempt to modify an unregistered virtual machine.
5163 </result>
5164 <result name="VBOX_E_INVALID_VM_STATE">
5165 Invalid machine state.
5166 </result>
5167
5168 </desc>
5169 <param name="name" type="wstring" dir="in">
5170 <desc>Name of the storage controller.</desc>
5171 </param>
5172 <param name="controllerPort" type="long" dir="in">
5173 <desc>Storage controller port.</desc>
5174 </param>
5175 <param name="device" type="long" dir="in">
5176 <desc>Device slot in the given port.</desc>
5177 </param>
5178 <param name="discard" type="boolean" dir="in">
5179 <desc>New value for the discard device flag.</desc>
5180 </param>
5181 </method>
5182
5183 <method name="setBandwidthGroupForDevice">
5184 <desc>
5185 Sets the bandwidth group of an existing storage device.
5186 The device must already exist; see <link to="IMachine::attachDevice"/>
5187 for how to attach a new device.
5188
5189 The @a controllerPort and @a device parameters specify the device slot and
5190 have have the same meaning as with <link to="IMachine::attachDevice" />.
5191
5192 <result name="E_INVALIDARG">
5193 SATA device, SATA port, IDE port or IDE slot out of range.
5194 </result>
5195 <result name="VBOX_E_INVALID_OBJECT_STATE">
5196 Attempt to modify an unregistered virtual machine.
5197 </result>
5198 <result name="VBOX_E_INVALID_VM_STATE">
5199 Invalid machine state.
5200 </result>
5201
5202 </desc>
5203 <param name="name" type="wstring" dir="in">
5204 <desc>Name of the storage controller.</desc>
5205 </param>
5206 <param name="controllerPort" type="long" dir="in">
5207 <desc>Storage controller port.</desc>
5208 </param>
5209 <param name="device" type="long" dir="in">
5210 <desc>Device slot in the given port.</desc>
5211 </param>
5212 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5213 <desc>New value for the bandwidth group or @c null for no group.</desc>
5214 </param>
5215 </method>
5216
5217 <method name="setNoBandwidthGroupForDevice">
5218 <desc>
5219 Sets no bandwidth group for an existing storage device.
5220 The device must already exist; see <link to="IMachine::attachDevice"/>
5221 for how to attach a new device.
5222 The @a controllerPort and @a device parameters specify the device slot and
5223 have have the same meaning as with <link to="IMachine::attachDevice" />.
5224 <result name="E_INVALIDARG">
5225 SATA device, SATA port, IDE port or IDE slot out of range.
5226 </result>
5227 <result name="VBOX_E_INVALID_OBJECT_STATE">
5228 Attempt to modify an unregistered virtual machine.
5229 </result>
5230 <result name="VBOX_E_INVALID_VM_STATE">
5231 Invalid machine state.
5232 </result>
5233
5234 </desc>
5235 <param name="name" type="wstring" dir="in">
5236 <desc>Name of the storage controller.</desc>
5237 </param>
5238 <param name="controllerPort" type="long" dir="in">
5239 <desc>Storage controller port.</desc>
5240 </param>
5241 <param name="device" type="long" dir="in">
5242 <desc>Device slot in the given port.</desc>
5243 </param>
5244 </method>
5245
5246
5247 <method name="unmountMedium">
5248 <desc>
5249 Unmounts any currently mounted medium (<link to="IMedium" />,
5250 identified by the given UUID @a id) to the given storage controller
5251 (<link to="IStorageController" />, identified by @a name),
5252 at the indicated port and device. The device must already exist;
5253
5254 This method is intended only for managing removable media, where the
5255 device is fixed but media is changeable at runtime (such as DVDs
5256 and floppies). It cannot be used for fixed media such as hard disks.
5257
5258 The @a controllerPort and @a device parameters specify the device slot
5259 and have have the same meaning as with
5260 <link to="IMachine::attachDevice" />.
5261
5262 The specified device slot must have a medium mounted, which will be
5263 unmounted. If there is no mounted medium it will do nothing.
5264 See <link to="IMedium"/> for more detailed information about
5265 attaching/unmounting media.
5266
5267 <result name="E_INVALIDARG">
5268 SATA device, SATA port, IDE port or IDE slot out of range.
5269 </result>
5270 <result name="VBOX_E_INVALID_OBJECT_STATE">
5271 Attempt to unmount medium that is not removeable - not dvd or floppy.
5272 </result>
5273 <result name="VBOX_E_INVALID_VM_STATE">
5274 Invalid machine state.
5275 </result>
5276 <result name="VBOX_E_OBJECT_IN_USE">
5277 Medium already attached to this or another virtual machine.
5278 </result>
5279 <result name="VBOX_E_OBJECT_NOT_FOUND">
5280 Medium not attached to specified port, device, controller.
5281 </result>
5282
5283 </desc>
5284 <param name="name" type="wstring" dir="in">
5285 <desc>Name of the storage controller to unmount the medium from.</desc>
5286 </param>
5287 <param name="controllerPort" type="long" dir="in">
5288 <desc>Port to unmount the medium from.</desc>
5289 </param>
5290 <param name="device" type="long" dir="in">
5291 <desc>Device slot in the given port to unmount the medium from.</desc>
5292 </param>
5293 <param name="force" type="boolean" dir="in">
5294 <desc>Allows to force unmount of a medium which is locked by
5295 the device slot in the given port medium is attached to.</desc>
5296 </param>
5297 </method>
5298
5299 <method name="mountMedium">
5300 <desc>
5301 Mounts a medium (<link to="IMedium" />, identified
5302 by the given UUID @a id) to the given storage controller
5303 (<link to="IStorageController" />, identified by @a name),
5304 at the indicated port and device. The device must already exist;
5305 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5306
5307 This method is intended only for managing removable media, where the
5308 device is fixed but media is changeable at runtime (such as DVDs
5309 and floppies). It cannot be used for fixed media such as hard disks.
5310
5311 The @a controllerPort and @a device parameters specify the device slot and
5312 have have the same meaning as with <link to="IMachine::attachDevice" />.
5313
5314 The specified device slot can have a medium mounted, which will be
5315 unmounted first. Specifying a zero UUID (or an empty string) for
5316 @a medium does just an unmount.
5317
5318 See <link to="IMedium"/> for more detailed information about
5319 attaching media.
5320
5321 <result name="E_INVALIDARG">
5322 SATA device, SATA port, IDE port or IDE slot out of range.
5323 </result>
5324 <result name="VBOX_E_INVALID_OBJECT_STATE">
5325 Attempt to attach medium to an unregistered virtual machine.
5326 </result>
5327 <result name="VBOX_E_INVALID_VM_STATE">
5328 Invalid machine state.
5329 </result>
5330 <result name="VBOX_E_OBJECT_IN_USE">
5331 Medium already attached to this or another virtual machine.
5332 </result>
5333
5334 </desc>
5335 <param name="name" type="wstring" dir="in">
5336 <desc>Name of the storage controller to attach the medium to.</desc>
5337 </param>
5338 <param name="controllerPort" type="long" dir="in">
5339 <desc>Port to attach the medium to.</desc>
5340 </param>
5341 <param name="device" type="long" dir="in">
5342 <desc>Device slot in the given port to attach the medium to.</desc>
5343 </param>
5344 <param name="medium" type="IMedium" dir="in">
5345 <desc>Medium to mount or @c null for an empty drive.</desc>
5346 </param>
5347 <param name="force" type="boolean" dir="in">
5348 <desc>Allows to force unmount/mount of a medium which is locked by
5349 the device slot in the given port to attach the medium to.</desc>
5350 </param>
5351 </method>
5352
5353 <method name="getMedium" const="yes">
5354 <desc>
5355 Returns the virtual medium attached to a device slot of the specified
5356 bus.
5357
5358 Note that if the medium was indirectly attached by
5359 <link to="#mountMedium"/> to the given device slot then this
5360 method will return not the same object as passed to the
5361 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5362 more detailed information about mounting a medium.
5363
5364 <result name="VBOX_E_OBJECT_NOT_FOUND">
5365 No medium attached to given slot/bus.
5366 </result>
5367
5368 </desc>
5369 <param name="name" type="wstring" dir="in">
5370 <desc>Name of the storage controller the medium is attached to.</desc>
5371 </param>
5372 <param name="controllerPort" type="long" dir="in">
5373 <desc>Port to query.</desc>
5374 </param>
5375 <param name="device" type="long" dir="in">
5376 <desc>Device slot in the given port to query.</desc>
5377 </param>
5378 <param name="medium" type="IMedium" dir="return">
5379 <desc>Attached medium object.</desc>
5380 </param>
5381 </method>
5382
5383 <method name="getMediumAttachmentsOfController" const="yes">
5384 <desc>
5385 Returns an array of medium attachments which are attached to the
5386 the controller with the given name.
5387
5388 <result name="VBOX_E_OBJECT_NOT_FOUND">
5389 A storage controller with given name doesn't exist.
5390 </result>
5391 </desc>
5392 <param name="name" type="wstring" dir="in"/>
5393 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5394 </method>
5395
5396 <method name="getMediumAttachment" const="yes">
5397 <desc>
5398 Returns a medium attachment which corresponds to the controller with
5399 the given name, on the given port and device slot.
5400
5401 <result name="VBOX_E_OBJECT_NOT_FOUND">
5402 No attachment exists for the given controller/port/device combination.
5403 </result>
5404 </desc>
5405 <param name="name" type="wstring" dir="in"/>
5406 <param name="controllerPort" type="long" dir="in"/>
5407 <param name="device" type="long" dir="in"/>
5408 <param name="attachment" type="IMediumAttachment" dir="return"/>
5409 </method>
5410
5411 <method name="attachHostPCIDevice">
5412 <desc>
5413 Attaches host PCI device with the given (host) PCI address to the
5414 PCI bus of the virtual machine. Please note, that this operation
5415 is two phase, as real attachment will happen when VM will start,
5416 and most information will be delivered as IHostPCIDevicePlugEvent
5417 on IVirtualBox event source.
5418
5419 <see><link to="IHostPCIDevicePlugEvent"/></see>
5420
5421 <result name="VBOX_E_INVALID_VM_STATE">
5422 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5423 </result>
5424 <result name="VBOX_E_PDM_ERROR">
5425 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5426 </result>
5427 <result name="VBOX_E_NOT_SUPPORTED">
5428 Hardware or host OS doesn't allow PCI device passthrought.
5429 </result>
5430 </desc>
5431 <param name="hostAddress" type="long" dir="in">
5432 <desc>Address of the host PCI device.</desc>
5433 </param>
5434 <param name="desiredGuestAddress" type="long" dir="in">
5435 <desc>Desired position of this device on guest PCI bus.</desc>
5436 </param>
5437 <param name="tryToUnbind" type="boolean" dir="in">
5438 <desc>If VMM shall try to unbind existing drivers from the
5439 device before attaching it to the guest.</desc>
5440 </param>
5441 </method>
5442
5443 <method name="detachHostPCIDevice">
5444 <desc>
5445 Detach host PCI device from the virtual machine.
5446 Also HostPCIDevicePlugEvent on IVirtualBox event source
5447 will be delivered. As currently we don't support hot device
5448 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5449
5450 <see><link to="IHostPCIDevicePlugEvent"/></see>
5451
5452 <result name="VBOX_E_INVALID_VM_STATE">
5453 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5454 </result>
5455 <result name="VBOX_E_OBJECT_NOT_FOUND">
5456 This host device is not attached to this machine.
5457 </result>
5458 <result name="VBOX_E_PDM_ERROR">
5459 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5460 </result>
5461 <result name="VBOX_E_NOT_SUPPORTED">
5462 Hardware or host OS doesn't allow PCI device passthrought.
5463 </result>
5464 </desc>
5465 <param name="hostAddress" type="long" dir="in">
5466 <desc>Address of the host PCI device.</desc>
5467 </param>
5468 </method>
5469
5470 <method name="getNetworkAdapter" const="yes">
5471 <desc>
5472 Returns the network adapter associated with the given slot.
5473 Slots are numbered sequentially, starting with zero. The total
5474 number of adapters per machine is defined by the
5475 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5476 so the maximum slot number is one less than that property's value.
5477
5478 <result name="E_INVALIDARG">
5479 Invalid @a slot number.
5480 </result>
5481
5482 </desc>
5483 <param name="slot" type="unsigned long" dir="in"/>
5484 <param name="adapter" type="INetworkAdapter" dir="return"/>
5485 </method>
5486
5487 <method name="addStorageController">
5488 <desc>
5489 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5490 machine and returns it as an instance of
5491 <link to="IStorageController" />.
5492
5493 @a name identifies the controller for subsequent calls such as
5494 <link to="#getStorageControllerByName" />,
5495 <link to="#getStorageControllerByInstance" />,
5496 <link to="#removeStorageController" />,
5497 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5498
5499 After the controller has been added, you can set its exact
5500 type by setting the <link to="IStorageController::controllerType" />.
5501
5502 <result name="VBOX_E_OBJECT_IN_USE">
5503 A storage controller with given name exists already.
5504 </result>
5505 <result name="E_INVALIDARG">
5506 Invalid @a controllerType.
5507 </result>
5508 </desc>
5509 <param name="name" type="wstring" dir="in"/>
5510 <param name="connectionType" type="StorageBus" dir="in"/>
5511 <param name="controller" type="IStorageController" dir="return"/>
5512 </method>
5513
5514 <method name="getStorageControllerByName" const="yes">
5515 <desc>
5516 Returns a storage controller with the given name.
5517
5518 <result name="VBOX_E_OBJECT_NOT_FOUND">
5519 A storage controller with given name doesn't exist.
5520 </result>
5521 </desc>
5522 <param name="name" type="wstring" dir="in"/>
5523 <param name="storageController" type="IStorageController" dir="return"/>
5524 </method>
5525
5526 <method name="getStorageControllerByInstance" const="yes">
5527 <desc>
5528 Returns a storage controller with the given instance number.
5529
5530 <result name="VBOX_E_OBJECT_NOT_FOUND">
5531 A storage controller with given instance number doesn't exist.
5532 </result>
5533 </desc>
5534 <param name="instance" type="unsigned long" dir="in"/>
5535 <param name="storageController" type="IStorageController" dir="return"/>
5536 </method>
5537
5538 <method name="removeStorageController">
5539 <desc>
5540 Removes a storage controller from the machine with all devices attached to it.
5541
5542 <result name="VBOX_E_OBJECT_NOT_FOUND">
5543 A storage controller with given name doesn't exist.
5544 </result>
5545 <result name="VBOX_E_NOT_SUPPORTED">
5546 Medium format does not support storage deletion (only for implicitly
5547 created differencing media, should not happen).
5548 </result>
5549 </desc>
5550 <param name="name" type="wstring" dir="in"/>
5551 </method>
5552
5553 <method name="setStorageControllerBootable">
5554 <desc>
5555 Sets the bootable flag of the storage controller with the given name.
5556
5557 <result name="VBOX_E_OBJECT_NOT_FOUND">
5558 A storage controller with given name doesn't exist.
5559 </result>
5560 <result name="VBOX_E_OBJECT_IN_USE">
5561 Another storage controller is marked as bootable already.
5562 </result>
5563 </desc>
5564 <param name="name" type="wstring" dir="in"/>
5565 <param name="bootable" type="boolean" dir="in"/>
5566 </method>
5567
5568 <method name="getSerialPort" const="yes">
5569 <desc>
5570 Returns the serial port associated with the given slot.
5571 Slots are numbered sequentially, starting with zero. The total
5572 number of serial ports per machine is defined by the
5573 <link to="ISystemProperties::serialPortCount"/> property,
5574 so the maximum slot number is one less than that property's value.
5575
5576 <result name="E_INVALIDARG">
5577 Invalid @a slot number.
5578 </result>
5579
5580 </desc>
5581 <param name="slot" type="unsigned long" dir="in"/>
5582 <param name="port" type="ISerialPort" dir="return"/>
5583 </method>
5584
5585 <method name="getParallelPort" const="yes">
5586 <desc>
5587 Returns the parallel port associated with the given slot.
5588 Slots are numbered sequentially, starting with zero. The total
5589 number of parallel ports per machine is defined by the
5590 <link to="ISystemProperties::parallelPortCount"/> property,
5591 so the maximum slot number is one less than that property's value.
5592
5593 <result name="E_INVALIDARG">
5594 Invalid @a slot number.
5595 </result>
5596
5597 </desc>
5598 <param name="slot" type="unsigned long" dir="in"/>
5599 <param name="port" type="IParallelPort" dir="return"/>
5600 </method>
5601
5602 <method name="getExtraDataKeys">
5603 <desc>
5604 Returns an array representing the machine-specific extra data keys
5605 which currently have values defined.
5606 </desc>
5607 <param name="keys" type="wstring" dir="return" safearray="yes">
5608 <desc>Array of extra data keys.</desc>
5609 </param>
5610 </method>
5611
5612 <method name="getExtraData">
5613 <desc>
5614 Returns associated machine-specific extra data.
5615
5616 If the requested data @a key does not exist, this function will
5617 succeed and return an empty string in the @a value argument.
5618
5619 <result name="VBOX_E_FILE_ERROR">
5620 Settings file not accessible.
5621 </result>
5622 <result name="VBOX_E_XML_ERROR">
5623 Could not parse the settings file.
5624 </result>
5625
5626 </desc>
5627 <param name="key" type="wstring" dir="in">
5628 <desc>Name of the data key to get.</desc>
5629 </param>
5630 <param name="value" type="wstring" dir="return">
5631 <desc>Value of the requested data key.</desc>
5632 </param>
5633 </method>
5634
5635 <method name="setExtraData">
5636 <desc>
5637 Sets associated machine-specific extra data.
5638
5639 If you pass @c null or an empty string as a key @a value, the given
5640 @a key will be deleted.
5641
5642 <note>
5643 Before performing the actual data change, this method will ask all
5644 registered listeners using the
5645 <link to="IExtraDataCanChangeEvent"/>
5646 notification for a permission. If one of the listeners refuses the
5647 new value, the change will not be performed.
5648 </note>
5649 <note>
5650 On success, the
5651 <link to="IExtraDataChangedEvent"/> notification
5652 is called to inform all registered listeners about a successful data
5653 change.
5654 </note>
5655 <note>
5656 This method can be called outside the machine session and therefore
5657 it's a caller's responsibility to handle possible race conditions
5658 when several clients change the same key at the same time.
5659 </note>
5660
5661 <result name="VBOX_E_FILE_ERROR">
5662 Settings file not accessible.
5663 </result>
5664 <result name="VBOX_E_XML_ERROR">
5665 Could not parse the settings file.
5666 </result>
5667
5668 </desc>
5669 <param name="key" type="wstring" dir="in">
5670 <desc>Name of the data key to set.</desc>
5671 </param>
5672 <param name="value" type="wstring" dir="in">
5673 <desc>Value to assign to the key.</desc>
5674 </param>
5675 </method>
5676
5677 <method name="getCPUProperty" const="yes">
5678 <desc>
5679 Returns the virtual CPU boolean value of the specified property.
5680
5681 <result name="E_INVALIDARG">
5682 Invalid property.
5683 </result>
5684
5685 </desc>
5686 <param name="property" type="CPUPropertyType" dir="in">
5687 <desc>
5688 Property type to query.
5689 </desc>
5690 </param>
5691 <param name="value" type="boolean" dir="return">
5692 <desc>
5693 Property value.
5694 </desc>
5695 </param>
5696 </method>
5697
5698 <method name="setCPUProperty">
5699 <desc>
5700 Sets the virtual CPU boolean value of the specified property.
5701
5702 <result name="E_INVALIDARG">
5703 Invalid property.
5704 </result>
5705
5706 </desc>
5707 <param name="property" type="CPUPropertyType" dir="in">
5708 <desc>
5709 Property type to query.
5710 </desc>
5711 </param>
5712 <param name="value" type="boolean" dir="in">
5713 <desc>
5714 Property value.
5715 </desc>
5716 </param>
5717 </method>
5718
5719 <method name="getCPUIDLeaf" const="yes">
5720 <desc>
5721 Returns the virtual CPU cpuid information for the specified leaf.
5722
5723 Currently supported index values for cpuid:
5724 Standard CPUID leafs: 0 - 0xA
5725 Extended CPUID leafs: 0x80000000 - 0x8000000A
5726
5727 See the Intel and AMD programmer's manuals for detailed information
5728 about the cpuid instruction and its leafs.
5729 <result name="E_INVALIDARG">
5730 Invalid id.
5731 </result>
5732
5733 </desc>
5734 <param name="id" type="unsigned long" dir="in">
5735 <desc>
5736 CPUID leaf index.
5737 </desc>
5738 </param>
5739 <param name="valEax" type="unsigned long" dir="out">
5740 <desc>
5741 CPUID leaf value for register eax.
5742 </desc>
5743 </param>
5744 <param name="valEbx" type="unsigned long" dir="out">
5745 <desc>
5746 CPUID leaf value for register ebx.
5747 </desc>
5748 </param>
5749 <param name="valEcx" type="unsigned long" dir="out">
5750 <desc>
5751 CPUID leaf value for register ecx.
5752 </desc>
5753 </param>
5754 <param name="valEdx" type="unsigned long" dir="out">
5755 <desc>
5756 CPUID leaf value for register edx.
5757 </desc>
5758 </param>
5759 </method>
5760
5761 <method name="setCPUIDLeaf">
5762 <desc>
5763 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5764 are not passed unmodified. VirtualBox clears features that it doesn't support.
5765
5766 Currently supported index values for cpuid:
5767 Standard CPUID leafs: 0 - 0xA
5768 Extended CPUID leafs: 0x80000000 - 0x8000000A
5769
5770 See the Intel and AMD programmer's manuals for detailed information
5771 about the cpuid instruction and its leafs.
5772
5773 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5774 random crashes inside VMs.
5775 <result name="E_INVALIDARG">
5776 Invalid id.
5777 </result>
5778
5779 </desc>
5780 <param name="id" type="unsigned long" dir="in">
5781 <desc>
5782 CPUID leaf index.
5783 </desc>
5784 </param>
5785 <param name="valEax" type="unsigned long" dir="in">
5786 <desc>
5787 CPUID leaf value for register eax.
5788 </desc>
5789 </param>
5790 <param name="valEbx" type="unsigned long" dir="in">
5791 <desc>
5792 CPUID leaf value for register ebx.
5793 </desc>
5794 </param>
5795 <param name="valEcx" type="unsigned long" dir="in">
5796 <desc>
5797 CPUID leaf value for register ecx.
5798 </desc>
5799 </param>
5800 <param name="valEdx" type="unsigned long" dir="in">
5801 <desc>
5802 CPUID leaf value for register edx.
5803 </desc>
5804 </param>
5805 </method>
5806
5807 <method name="removeCPUIDLeaf">
5808 <desc>
5809 Removes the virtual CPU cpuid leaf for the specified index
5810
5811 <result name="E_INVALIDARG">
5812 Invalid id.
5813 </result>
5814
5815 </desc>
5816 <param name="id" type="unsigned long" dir="in">
5817 <desc>
5818 CPUID leaf index.
5819 </desc>
5820 </param>
5821 </method>
5822
5823 <method name="removeAllCPUIDLeaves">
5824 <desc>
5825 Removes all the virtual CPU cpuid leaves
5826 </desc>
5827 </method>
5828
5829 <method name="getHWVirtExProperty" const="yes">
5830 <desc>
5831 Returns the value of the specified hardware virtualization boolean property.
5832
5833 <result name="E_INVALIDARG">
5834 Invalid property.
5835 </result>
5836
5837 </desc>
5838 <param name="property" type="HWVirtExPropertyType" dir="in">
5839 <desc>
5840 Property type to query.
5841 </desc>
5842 </param>
5843 <param name="value" type="boolean" dir="return">
5844 <desc>
5845 Property value.
5846 </desc>
5847 </param>
5848 </method>
5849
5850 <method name="setHWVirtExProperty">
5851 <desc>
5852 Sets a new value for the specified hardware virtualization boolean property.
5853
5854 <result name="E_INVALIDARG">
5855 Invalid property.
5856 </result>
5857
5858 </desc>
5859 <param name="property" type="HWVirtExPropertyType" dir="in">
5860 <desc>
5861 Property type to set.
5862 </desc>
5863 </param>
5864 <param name="value" type="boolean" dir="in">
5865 <desc>
5866 New property value.
5867 </desc>
5868 </param>
5869 </method>
5870
5871 <method name="saveSettings">
5872 <desc>
5873 Saves any changes to machine settings made since the session
5874 has been opened or a new machine has been created, or since the
5875 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5876 For registered machines, new settings become visible to all
5877 other VirtualBox clients after successful invocation of this
5878 method.
5879 <note>
5880 The method sends <link to="IMachineDataChangedEvent"/>
5881 notification event after the configuration has been successfully
5882 saved (only for registered machines).
5883 </note>
5884 <note>
5885 Calling this method is only valid on instances returned
5886 by <link to="ISession::machine"/> and on new machines
5887 created by <link to="IVirtualBox::createMachine"/> but not
5888 yet registered, or on unregistered machines after calling
5889 <link to="IMachine::unregister"/>.
5890 </note>
5891
5892 <result name="VBOX_E_FILE_ERROR">
5893 Settings file not accessible.
5894 </result>
5895 <result name="VBOX_E_XML_ERROR">
5896 Could not parse the settings file.
5897 </result>
5898 <result name="E_ACCESSDENIED">
5899 Modification request refused.
5900 </result>
5901
5902 </desc>
5903 </method>
5904
5905 <method name="discardSettings">
5906 <desc>
5907 Discards any changes to the machine settings made since the session
5908 has been opened or since the last call to <link to="#saveSettings"/>
5909 or <link to="#discardSettings"/>.
5910 <note>
5911 Calling this method is only valid on instances returned
5912 by <link to="ISession::machine"/> and on new machines
5913 created by <link to="IVirtualBox::createMachine"/> or
5914 opened by <link to="IVirtualBox::openMachine"/> but not
5915 yet registered, or on unregistered machines after calling
5916 <link to="IMachine::unregister"/>.
5917 </note>
5918
5919 <result name="VBOX_E_INVALID_VM_STATE">
5920 Virtual machine is not mutable.
5921 </result>
5922
5923 </desc>
5924 </method>
5925
5926 <method name="unregister">
5927 <desc>
5928 Unregisters a machine previously registered with
5929 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5930 cleanup before the machine is unregistered.
5931
5932 This method does not delete any files. It only changes the machine configuration and
5933 the list of registered machines in the VirtualBox object. To delete the files which
5934 belonged to the machine, including the XML file of the machine itself, call
5935 <link to="#deleteConfig"/>, optionally with the array of IMedium objects which was returned
5936 from this method.
5937
5938 How thoroughly this method cleans up the machine configuration before unregistering
5939 the machine depends on the @a cleanupMode argument.
5940
5941 <ul>
5942 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5943 cleanup will be performed. The call will fail if the machine is in "Saved" state
5944 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5945 It is the responsibility of the caller to delete all such configuration in this mode.
5946 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5947 which it replaces.</li>
5948 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5949 state or if it has snapshots or media attached. All media attached to the current machine
5950 state or in snapshots will be detached. No medium objects will be returned;
5951 all of the machine's media will remain open.</li>
5952 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5953 except that all the hard disk medium objects which were detached from the machine will
5954 be returned as an array. This allows for quickly passing them to the <link to="#deleteConfig" />
5955 API for closing and deletion.</li>
5956 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5957 that all media will be returned in the array, including removable media like DVDs and
5958 floppies. This might be useful if the user wants to inspect in detail which media were
5959 attached to the machine. Be careful when passing the media array to <link to="#deleteConfig" />
5960 in that case because users will typically want to preserve ISO and RAW image files.</li>
5961 </ul>
5962
5963 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5964 resulting IMedium array to <link to="#deleteConfig"/>. This way, the machine is completely
5965 deleted with all its saved states and hard disk images, but images for removable
5966 drives (such as ISO and RAW files) will remain on disk.
5967
5968 This API does not verify whether the media files returned in the array are still
5969 attached to other machines (i.e. shared between several machines). If such a shared
5970 image is passed to <link to="#deleteConfig" /> however, closing the image will fail there
5971 and the image will be silently skipped.
5972
5973 This API may, however, move media from this machine's media registry to other media
5974 registries (see <link to="IMedium" /> for details on media registries). For machines
5975 created with VirtualBox 4.0 or later, if media from this machine's media registry
5976 are also attached to another machine (shared attachments), each such medium will be
5977 moved to another machine's registry. This is because without this machine's media
5978 registry, the other machine cannot find its media any more and would become inaccessible.
5979
5980 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5981 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5982 if media are moved to other machines' media registries.
5983
5984 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5985 is fired.
5986
5987 The call will fail if the machine is currently locked (see <link to="ISession" />).
5988
5989 <note>
5990 If the given machine is inaccessible (see <link to="#accessible"/>), it
5991 will be unregistered and fully uninitialized right afterwards. As a result,
5992 the returned machine object will be unusable and an attempt to call
5993 <b>any</b> method will return the "Object not ready" error.
5994 </note>
5995
5996 <result name="VBOX_E_INVALID_OBJECT_STATE">
5997 Machine is currently locked for a session.
5998 </result>
5999 </desc>
6000
6001 <param name="cleanupMode" type="CleanupMode" dir="in">
6002 <desc>How to clean up after the machine has been unregistered.</desc>
6003 </param>
6004 <param name="media" type="IMedium" safearray="yes" dir="return">
6005 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
6006 </param>
6007 </method>
6008
6009 <method name="deleteConfig">
6010 <desc>
6011 Deletes the files associated with this machine from disk. If medium objects are passed
6012 in with the @a aMedia argument, they are closed and, if closing was successful, their
6013 storage files are deleted as well. For convenience, this array of media files can be
6014 the same as the one returned from a previous <link to="#unregister" /> call.
6015
6016 This method must only be called on machines which are either write-locked (i.e. on instances
6017 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
6018 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
6019 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
6020
6021 The following files will be deleted by this method:
6022 <ul>
6023 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
6024 argument other than "UnregisterOnly", this will delete all saved state files that
6025 the machine had in use; possibly one if the machine was in "Saved" state and one
6026 for each online snapshot that the machine had.</li>
6027 <li>On each medium object passed in the @a aMedia array, this will call
6028 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
6029 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
6030 in use, e.g. because it is still attached to a second machine; in that case the
6031 storage will not be deleted.</li>
6032 <li>Finally, the machine's own XML file will be deleted.</li>
6033 </ul>
6034
6035 Since deleting large disk image files can be a time-consuming I/O operation, this
6036 method operates asynchronously and returns an IProgress object to allow the caller
6037 to monitor the progress. There will be one sub-operation for each file that is
6038 being deleted (saved state or medium storage file).
6039
6040 <note>
6041 <link to="#settingsModified"/> will return @c true after this
6042 method successfully returns.
6043 </note>
6044
6045 <result name="VBOX_E_INVALID_VM_STATE">
6046 Machine is registered but not write-locked.
6047 </result>
6048 <result name="VBOX_E_IPRT_ERROR">
6049 Could not delete the settings file.
6050 </result>
6051 </desc>
6052 <param name="media" type="IMedium" safearray="yes" dir="in">
6053 <desc>List of media to be closed and whose storage files will be deleted.</desc>
6054 </param>
6055 <param name="progress" type="IProgress" dir="return">
6056 <desc>Progress object to track the operation completion.</desc>
6057 </param>
6058 </method>
6059
6060 <method name="exportTo">
6061 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6062 steps required to export VirtualBox machines to OVF.
6063 </desc>
6064
6065 <param name="appliance" type="IAppliance" dir="in">
6066 <desc>Appliance to export this machine to.</desc>
6067 </param>
6068 <param name="location" type="wstring" dir="in">
6069 <desc>The target location.</desc>
6070 </param>
6071 <param name="description" type="IVirtualSystemDescription" dir="return">
6072 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6073 </param>
6074 </method >
6075
6076 <method name="findSnapshot">
6077 <desc>
6078 Returns a snapshot of this machine with the given name or UUID.
6079
6080 Returns a snapshot of this machine with the given UUID.
6081 A @c null argument can be used to obtain the first snapshot
6082 taken on this machine. To traverse the whole tree of snapshots
6083 starting from the root, inspect the root snapshot's
6084 <link to="ISnapshot::children" /> attribute and recurse over those children.
6085
6086 <result name="VBOX_E_OBJECT_NOT_FOUND">
6087 Virtual machine has no snapshots or snapshot not found.
6088 </result>
6089
6090 </desc>
6091 <param name="nameOrId" type="wstring" dir="in">
6092 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6093 </param>
6094 <param name="snapshot" type="ISnapshot" dir="return">
6095 <desc>Snapshot object with the given name.</desc>
6096 </param>
6097 </method>
6098
6099 <method name="createSharedFolder">
6100 <desc>
6101 Creates a new permanent shared folder by associating the given logical
6102 name with the given host path, adds it to the collection of shared
6103 folders and starts sharing it. Refer to the description of
6104 <link to="ISharedFolder"/> to read more about logical names.
6105
6106 <result name="VBOX_E_OBJECT_IN_USE">
6107 Shared folder already exists.
6108 </result>
6109 <result name="VBOX_E_FILE_ERROR">
6110 Shared folder @a hostPath not accessible.
6111 </result>
6112
6113 </desc>
6114 <param name="name" type="wstring" dir="in">
6115 <desc>Unique logical name of the shared folder.</desc>
6116 </param>
6117 <param name="hostPath" type="wstring" dir="in">
6118 <desc>Full path to the shared folder in the host file system.</desc>
6119 </param>
6120 <param name="writable" type="boolean" dir="in">
6121 <desc>Whether the share is writable or readonly.</desc>
6122 </param>
6123 <param name="automount" type="boolean" dir="in">
6124 <desc>Whether the share gets automatically mounted by the guest
6125 or not.</desc>
6126 </param>
6127 </method>
6128
6129 <method name="removeSharedFolder">
6130 <desc>
6131 Removes the permanent shared folder with the given name previously
6132 created by <link to="#createSharedFolder"/> from the collection of
6133 shared folders and stops sharing it.
6134
6135 <result name="VBOX_E_INVALID_VM_STATE">
6136 Virtual machine is not mutable.
6137 </result>
6138 <result name="VBOX_E_OBJECT_NOT_FOUND">
6139 Shared folder @a name does not exist.
6140 </result>
6141
6142 </desc>
6143 <param name="name" type="wstring" dir="in">
6144 <desc>Logical name of the shared folder to remove.</desc>
6145 </param>
6146 </method>
6147
6148 <method name="canShowConsoleWindow">
6149 <desc>
6150 Returns @c true if the VM console process can activate the
6151 console window and bring it to foreground on the desktop of
6152 the host PC.
6153 <note>
6154 This method will fail if a session for this machine is not
6155 currently open.
6156 </note>
6157
6158 <result name="VBOX_E_INVALID_VM_STATE">
6159 Machine session is not open.
6160 </result>
6161
6162 </desc>
6163 <param name="canShow" type="boolean" dir="return">
6164 <desc>
6165 @c true if the console window can be shown and @c false otherwise.
6166 </desc>
6167 </param>
6168 </method>
6169
6170 <method name="showConsoleWindow">
6171 <desc>
6172 Activates the console window and brings it to foreground on
6173 the desktop of the host PC. Many modern window managers on
6174 many platforms implement some sort of focus stealing
6175 prevention logic, so that it may be impossible to activate
6176 a window without the help of the currently active
6177 application. In this case, this method will return a non-zero
6178 identifier that represents the top-level window of the VM
6179 console process. The caller, if it represents a currently
6180 active process, is responsible to use this identifier (in a
6181 platform-dependent manner) to perform actual window
6182 activation.
6183 <note>
6184 This method will fail if a session for this machine is not
6185 currently open.
6186 </note>
6187
6188 <result name="VBOX_E_INVALID_VM_STATE">
6189 Machine session is not open.
6190 </result>
6191
6192 </desc>
6193 <param name="winId" type="long long" dir="return">
6194 <desc>
6195 Platform-dependent identifier of the top-level VM console
6196 window, or zero if this method has performed all actions
6197 necessary to implement the <i>show window</i> semantics for
6198 the given platform and/or VirtualBox front-end.
6199 </desc>
6200 </param>
6201 </method>
6202
6203 <method name="getGuestProperty" const="yes">
6204 <desc>
6205 Reads an entry from the machine's guest property store.
6206
6207 <result name="VBOX_E_INVALID_VM_STATE">
6208 Machine session is not open.
6209 </result>
6210
6211 </desc>
6212 <param name="name" type="wstring" dir="in">
6213 <desc>
6214 The name of the property to read.
6215 </desc>
6216 </param>
6217 <param name="value" type="wstring" dir="out">
6218 <desc>
6219 The value of the property. If the property does not exist then this
6220 will be empty.
6221 </desc>
6222 </param>
6223 <param name="timestamp" type="long long" dir="out">
6224 <desc>
6225 The time at which the property was last modified, as seen by the
6226 server process.
6227 </desc>
6228 </param>
6229 <param name="flags" type="wstring" dir="out">
6230 <desc>
6231 Additional property parameters, passed as a comma-separated list of
6232 "name=value" type entries.
6233 </desc>
6234 </param>
6235 </method>
6236
6237 <method name="getGuestPropertyValue" const="yes">
6238 <desc>
6239 Reads a value from the machine's guest property store.
6240
6241 <result name="VBOX_E_INVALID_VM_STATE">
6242 Machine session is not open.
6243 </result>
6244
6245 </desc>
6246 <param name="property" type="wstring" dir="in">
6247 <desc>
6248 The name of the property to read.
6249 </desc>
6250 </param>
6251 <param name="value" type="wstring" dir="return">
6252 <desc>
6253 The value of the property. If the property does not exist then this
6254 will be empty.
6255 </desc>
6256 </param>
6257 </method>
6258
6259 <method name="getGuestPropertyTimestamp" const="yes">
6260 <desc>
6261 Reads a property timestamp from the machine's guest property store.
6262
6263 <result name="VBOX_E_INVALID_VM_STATE">
6264 Machine session is not open.
6265 </result>
6266
6267 </desc>
6268 <param name="property" type="wstring" dir="in">
6269 <desc>
6270 The name of the property to read.
6271 </desc>
6272 </param>
6273 <param name="value" type="long long" dir="return">
6274 <desc>
6275 The timestamp. If the property does not exist then this will be
6276 empty.
6277 </desc>
6278 </param>
6279 </method>
6280
6281 <method name="setGuestProperty">
6282 <desc>
6283 Sets, changes or deletes an entry in the machine's guest property
6284 store.
6285
6286 <result name="E_ACCESSDENIED">
6287 Property cannot be changed.
6288 </result>
6289 <result name="E_INVALIDARG">
6290 Invalid @a flags.
6291 </result>
6292 <result name="VBOX_E_INVALID_VM_STATE">
6293 Virtual machine is not mutable or session not open.
6294 </result>
6295 <result name="VBOX_E_INVALID_OBJECT_STATE">
6296 Cannot set transient property when machine not running.
6297 </result>
6298
6299 </desc>
6300 <param name="property" type="wstring" dir="in">
6301 <desc>
6302 The name of the property to set, change or delete.
6303 </desc>
6304 </param>
6305 <param name="value" type="wstring" dir="in">
6306 <desc>
6307 The new value of the property to set, change or delete. If the
6308 property does not yet exist and value is non-empty, it will be
6309 created. If the value is @c null or empty, the property will be
6310 deleted if it exists.
6311 </desc>
6312 </param>
6313 <param name="flags" type="wstring" dir="in">
6314 <desc>
6315 Additional property parameters, passed as a comma-separated list of
6316 "name=value" type entries.
6317 </desc>
6318 </param>
6319 </method>
6320
6321 <method name="setGuestPropertyValue">
6322 <desc>
6323 Sets or changes a value in the machine's guest property
6324 store. The flags field will be left unchanged or created empty for a
6325 new property.
6326
6327 <result name="E_ACCESSDENIED">
6328 Property cannot be changed.
6329 </result>
6330 <result name="VBOX_E_INVALID_VM_STATE">
6331 Virtual machine is not mutable or session not open.
6332 </result>
6333 <result name="VBOX_E_INVALID_OBJECT_STATE">
6334 Cannot set transient property when machine not running.
6335 </result>
6336 </desc>
6337
6338 <param name="property" type="wstring" dir="in">
6339 <desc>
6340 The name of the property to set or change.
6341 </desc>
6342 </param>
6343 <param name="value" type="wstring" dir="in">
6344 <desc>
6345 The new value of the property to set or change. If the
6346 property does not yet exist and value is non-empty, it will be
6347 created.
6348 </desc>
6349 </param>
6350 </method>
6351
6352 <method name="deleteGuestProperty" const="yes">
6353 <desc>
6354 Deletes an entry from the machine's guest property store.
6355
6356 <result name="VBOX_E_INVALID_VM_STATE">
6357 Machine session is not open.
6358 </result>
6359
6360 </desc>
6361 <param name="name" type="wstring" dir="in">
6362 <desc>
6363 The name of the property to delete.
6364 </desc>
6365 </param>
6366 </method>
6367
6368 <method name="enumerateGuestProperties" const="yes">
6369 <desc>
6370 Return a list of the guest properties matching a set of patterns along
6371 with their values, time stamps and flags.
6372 </desc>
6373 <param name="patterns" type="wstring" dir="in">
6374 <desc>
6375 The patterns to match the properties against, separated by '|'
6376 characters. If this is empty or @c null, all properties will match.
6377 </desc>
6378 </param>
6379 <param name="names" type="wstring" dir="out" safearray="yes">
6380 <desc>
6381 The names of the properties returned.
6382 </desc>
6383 </param>
6384 <param name="values" type="wstring" dir="out" safearray="yes">
6385 <desc>
6386 The values of the properties returned. The array entries match the
6387 corresponding entries in the @a name array.
6388 </desc>
6389 </param>
6390 <param name="timestamps" type="long long" dir="out" safearray="yes">
6391 <desc>
6392 The time stamps of the properties returned. The array entries match
6393 the corresponding entries in the @a name array.
6394 </desc>
6395 </param>
6396 <param name="flags" type="wstring" dir="out" safearray="yes">
6397 <desc>
6398 The flags of the properties returned. The array entries match the
6399 corresponding entries in the @a name array.
6400 </desc>
6401 </param>
6402 </method>
6403
6404 <method name="querySavedGuestScreenInfo" const="yes">
6405 <desc>
6406 Returns the guest dimensions from the saved state.
6407 </desc>
6408 <param name="screenId" type="unsigned long" dir="in">
6409 <desc>
6410 Saved guest screen to query info from.
6411 </desc>
6412 </param>
6413 <param name="originX" type="unsigned long" dir="out">
6414 <desc>
6415 The X position of the guest monitor top left corner.
6416 </desc>
6417 </param>
6418 <param name="originY" type="unsigned long" dir="out">
6419 <desc>
6420 The Y position of the guest monitor top left corner.
6421 </desc>
6422 </param>
6423 <param name="width" type="unsigned long" dir="out">
6424 <desc>
6425 Guest width at the time of the saved state was taken.
6426 </desc>
6427 </param>
6428 <param name="height" type="unsigned long" dir="out">
6429 <desc>
6430 Guest height at the time of the saved state was taken.
6431 </desc>
6432 </param>
6433 <param name="enabled" type="boolean" dir="out">
6434 <desc>
6435 Whether the monitor is enabled in the guest.
6436 </desc>
6437 </param>
6438 </method>
6439
6440 <method name="querySavedThumbnailSize">
6441 <desc>
6442 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6443 </desc>
6444 <param name="screenId" type="unsigned long" dir="in">
6445 <desc>
6446 Saved guest screen to query info from.
6447 </desc>
6448 </param>
6449 <param name="size" type="unsigned long" dir="out">
6450 <desc>
6451 Size of buffer required to store the bitmap.
6452 </desc>
6453 </param>
6454 <param name="width" type="unsigned long" dir="out">
6455 <desc>
6456 Bitmap width.
6457 </desc>
6458 </param>
6459 <param name="height" type="unsigned long" dir="out">
6460 <desc>
6461 Bitmap height.
6462 </desc>
6463 </param>
6464 </method>
6465
6466 <method name="readSavedThumbnailToArray">
6467 <desc>
6468 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6469 </desc>
6470 <param name="screenId" type="unsigned long" dir="in">
6471 <desc>
6472 Saved guest screen to read from.
6473 </desc>
6474 </param>
6475 <param name="BGR" type="boolean" dir="in">
6476 <desc>
6477 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6478 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6479 </desc>
6480 </param>
6481 <param name="width" type="unsigned long" dir="out">
6482 <desc>
6483 Bitmap width.
6484 </desc>
6485 </param>
6486 <param name="height" type="unsigned long" dir="out">
6487 <desc>
6488 Bitmap height.
6489 </desc>
6490 </param>
6491 <param name="data" type="octet" safearray="yes" dir="return">
6492 <desc>
6493 Array with resulting bitmap data.
6494 </desc>
6495 </param>
6496 </method>
6497
6498 <method name="readSavedThumbnailPNGToArray">
6499 <desc>
6500 Thumbnail in PNG format is retrieved to an array of bytes.
6501 </desc>
6502 <param name="screenId" type="unsigned long" dir="in">
6503 <desc>
6504 Saved guest screen to read from.
6505 </desc>
6506 </param>
6507 <param name="width" type="unsigned long" dir="out">
6508 <desc>
6509 Image width.
6510 </desc>
6511 </param>
6512 <param name="height" type="unsigned long" dir="out">
6513 <desc>
6514 Image height.
6515 </desc>
6516 </param>
6517 <param name="data" type="octet" dir="return" safearray="yes">
6518 <desc>
6519 Array with resulting PNG data.
6520 </desc>
6521 </param>
6522 </method>
6523
6524 <method name="querySavedScreenshotPNGSize">
6525 <desc>
6526 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6527 </desc>
6528 <param name="screenId" type="unsigned long" dir="in">
6529 <desc>
6530 Saved guest screen to query info from.
6531 </desc>
6532 </param>
6533 <param name="size" type="unsigned long" dir="out">
6534 <desc>
6535 Size of buffer required to store the PNG binary data.
6536 </desc>
6537 </param>
6538 <param name="width" type="unsigned long" dir="out">
6539 <desc>
6540 Image width.
6541 </desc>
6542 </param>
6543 <param name="height" type="unsigned long" dir="out">
6544 <desc>
6545 Image height.
6546 </desc>
6547 </param>
6548 </method>
6549
6550 <method name="readSavedScreenshotPNGToArray">
6551 <desc>
6552 Screenshot in PNG format is retrieved to an array of bytes.
6553 </desc>
6554 <param name="screenId" type="unsigned long" dir="in">
6555 <desc>
6556 Saved guest screen to read from.
6557 </desc>
6558 </param>
6559 <param name="width" type="unsigned long" dir="out">
6560 <desc>
6561 Image width.
6562 </desc>
6563 </param>
6564 <param name="height" type="unsigned long" dir="out">
6565 <desc>
6566 Image height.
6567 </desc>
6568 </param>
6569 <param name="data" type="octet" dir="return" safearray="yes">
6570 <desc>
6571 Array with resulting PNG data.
6572 </desc>
6573 </param>
6574 </method>
6575
6576 <method name="hotPlugCPU">
6577 <desc>
6578 Plugs a CPU into the machine.
6579 </desc>
6580 <param name="cpu" type="unsigned long" dir="in">
6581 <desc>
6582 The CPU id to insert.
6583 </desc>
6584 </param>
6585 </method>
6586
6587 <method name="hotUnplugCPU">
6588 <desc>
6589 Removes a CPU from the machine.
6590 </desc>
6591 <param name="cpu" type="unsigned long" dir="in">
6592 <desc>
6593 The CPU id to remove.
6594 </desc>
6595 </param>
6596 </method>
6597
6598 <method name="getCPUStatus">
6599 <desc>
6600 Returns the current status of the given CPU.
6601 </desc>
6602 <param name="cpu" type="unsigned long" dir="in">
6603 <desc>
6604 The CPU id to check for.
6605 </desc>
6606 </param>
6607 <param name="attached" type="boolean" dir="return">
6608 <desc>
6609 Status of the CPU.
6610 </desc>
6611 </param>
6612 </method>
6613
6614 <method name="queryLogFilename">
6615 <desc>
6616 Queries for the VM log file name of an given index. Returns an empty
6617 string if a log file with that index doesn't exists.
6618 </desc>
6619 <param name="idx" type="unsigned long" dir="in">
6620 <desc>
6621 Which log file name to query. 0=current log file.
6622 </desc>
6623 </param>
6624 <param name="filename" type="wstring" dir="return">
6625 <desc>
6626 On return the full path to the log file or an empty string on error.
6627 </desc>
6628 </param>
6629 </method>
6630
6631 <method name="readLog">
6632 <desc>
6633 Reads the VM log file. The chunk size is limited, so even if you
6634 ask for a big piece there might be less data returned.
6635 </desc>
6636 <param name="idx" type="unsigned long" dir="in">
6637 <desc>
6638 Which log file to read. 0=current log file.
6639 </desc>
6640 </param>
6641 <param name="offset" type="long long" dir="in">
6642 <desc>
6643 Offset in the log file.
6644 </desc>
6645 </param>
6646 <param name="size" type="long long" dir="in">
6647 <desc>
6648 Chunk size to read in the log file.
6649 </desc>
6650 </param>
6651 <param name="data" type="octet" dir="return" safearray="yes">
6652 <desc>
6653 Data read from the log file. A data size of 0 means end of file
6654 if the requested chunk size was not 0. This is the unprocessed
6655 file data, i.e. the line ending style depends on the platform of
6656 the system the server is running on.
6657 </desc>
6658 </param>
6659 </method>
6660
6661 <method name="cloneTo">
6662 <desc>
6663 Creates a clone of this machine, either as a full clone (which means
6664 creating independent copies of the hard disk media, save states and so
6665 on), or as a linked clone (which uses its own differencing media,
6666 sharing the parent media with the source machine).
6667
6668 The target machine object must have been created previously with <link
6669 to="IVirtualBox::createMachine"/>, and all the settings will be
6670 transferred except the VM name and the hardware UUID. You can set the
6671 VM name and the new hardware UUID when creating the target machine. The
6672 network MAC addresses are newly created for all newtwork adapters. You
6673 can change that behaviour with the options parameter. The operation is
6674 performed asynchronously, so the machine object will be not be usable
6675 until the @a progress object signals completion.
6676
6677 <result name="E_INVALIDARG">
6678 @a target is @c null.
6679 </result>
6680 </desc>
6681
6682 <param name="target" type="IMachine" dir="in">
6683 <desc>Target machine object.</desc>
6684 </param>
6685 <param name="mode" type="CloneMode" dir="in">
6686 <desc>Which states should be cloned.</desc>
6687 </param>
6688 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6689 <desc>Options for the cloning operation.</desc>
6690 </param>
6691 <param name="progress" type="IProgress" dir="return">
6692 <desc>Progress object to track the operation completion.</desc>
6693 </param>
6694 </method>
6695
6696 </interface>
6697
6698 <!--
6699 // IConsole
6700 /////////////////////////////////////////////////////////////////////////
6701 -->
6702
6703 <interface
6704 name="IVRDEServerInfo" extends="$unknown"
6705 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6706 wsmap="struct"
6707 >
6708 <desc>
6709 Contains information about the remote desktop (VRDE) server capabilities and status.
6710 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6711 </desc>
6712
6713 <attribute name="active" type="boolean" readonly="yes">
6714 <desc>
6715 Whether the remote desktop connection is active.
6716 </desc>
6717 </attribute>
6718
6719 <attribute name="port" type="long" readonly="yes">
6720 <desc>
6721 VRDE server port number. If this property is equal to <tt>0</tt>, then
6722 the VRDE server failed to start, usually because there are no free IP
6723 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6724 server has not yet been started.
6725 </desc>
6726 </attribute>
6727
6728 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6729 <desc>
6730 How many times a client connected.
6731 </desc>
6732 </attribute>
6733
6734 <attribute name="beginTime" type="long long" readonly="yes">
6735 <desc>
6736 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6737 </desc>
6738 </attribute>
6739
6740 <attribute name="endTime" type="long long" readonly="yes">
6741 <desc>
6742 When the last connection was terminated or the current time, if
6743 connection is still active, in milliseconds since 1970-01-01 UTC.
6744 </desc>
6745 </attribute>
6746
6747 <attribute name="bytesSent" type="long long" readonly="yes">
6748 <desc>
6749 How many bytes were sent in last or current, if still active, connection.
6750 </desc>
6751 </attribute>
6752
6753 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6754 <desc>
6755 How many bytes were sent in all connections.
6756 </desc>
6757 </attribute>
6758
6759 <attribute name="bytesReceived" type="long long" readonly="yes">
6760 <desc>
6761 How many bytes were received in last or current, if still active, connection.
6762 </desc>
6763 </attribute>
6764
6765 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6766 <desc>
6767 How many bytes were received in all connections.
6768 </desc>
6769 </attribute>
6770
6771 <attribute name="user" type="wstring" readonly="yes">
6772 <desc>
6773 Login user name supplied by the client.
6774 </desc>
6775 </attribute>
6776
6777 <attribute name="domain" type="wstring" readonly="yes">
6778 <desc>
6779 Login domain name supplied by the client.
6780 </desc>
6781 </attribute>
6782
6783 <attribute name="clientName" type="wstring" readonly="yes">
6784 <desc>
6785 The client name supplied by the client.
6786 </desc>
6787 </attribute>
6788
6789 <attribute name="clientIP" type="wstring" readonly="yes">
6790 <desc>
6791 The IP address of the client.
6792 </desc>
6793 </attribute>
6794
6795 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6796 <desc>
6797 The client software version number.
6798 </desc>
6799 </attribute>
6800
6801 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6802 <desc>
6803 Public key exchange method used when connection was established.
6804 Values: 0 - RDP4 public key exchange scheme.
6805 1 - X509 certificates were sent to client.
6806 </desc>
6807 </attribute>
6808
6809 </interface>
6810
6811 <interface
6812 name="IConsole" extends="$unknown"
6813 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6814 wsmap="managed"
6815 >
6816 <desc>
6817 The IConsole interface represents an interface to control virtual
6818 machine execution.
6819
6820 A console object gets created when a machine has been locked for a
6821 particular session (client process) using <link to="IMachine::lockMachine" />
6822 or <link to="IMachine::launchVMProcess"/>. The console object can
6823 then be found in the session's <link to="ISession::console" /> attribute.
6824
6825 Methods of the IConsole interface allow the caller to query the current
6826 virtual machine execution state, pause the machine or power it down, save
6827 the machine state or take a snapshot, attach and detach removable media
6828 and so on.
6829
6830 <see><link to="ISession"/></see>
6831 </desc>
6832
6833 <attribute name="machine" type="IMachine" readonly="yes">
6834 <desc>
6835 Machine object for this console session.
6836 <note>
6837 This is a convenience property, it has the same value as
6838 <link to="ISession::machine"/> of the corresponding session
6839 object.
6840 </note>
6841 </desc>
6842 </attribute>
6843
6844 <attribute name="state" type="MachineState" readonly="yes">
6845 <desc>
6846 Current execution state of the machine.
6847 <note>
6848 This property always returns the same value as the corresponding
6849 property of the IMachine object for this console session.
6850 For the process that owns (executes) the VM, this is the
6851 preferable way of querying the VM state, because no IPC
6852 calls are made.
6853 </note>
6854 </desc>
6855 </attribute>
6856
6857 <attribute name="guest" type="IGuest" readonly="yes">
6858 <desc>Guest object.</desc>
6859 </attribute>
6860
6861 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6862 <desc>
6863 Virtual keyboard object.
6864 <note>
6865 If the machine is not running, any attempt to use
6866 the returned object will result in an error.
6867 </note>
6868 </desc>
6869 </attribute>
6870
6871 <attribute name="mouse" type="IMouse" readonly="yes">
6872 <desc>
6873 Virtual mouse object.
6874 <note>
6875 If the machine is not running, any attempt to use
6876 the returned object will result in an error.
6877 </note>
6878 </desc>
6879 </attribute>
6880
6881 <attribute name="display" type="IDisplay" readonly="yes">
6882 <desc>Virtual display object.
6883 <note>
6884 If the machine is not running, any attempt to use
6885 the returned object will result in an error.
6886 </note>
6887 </desc>
6888 </attribute>
6889
6890 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6891 <desc>Debugging interface.</desc>
6892 </attribute>
6893
6894 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6895 <desc>
6896 Collection of USB devices currently attached to the virtual
6897 USB controller.
6898 <note>
6899 The collection is empty if the machine is not running.
6900 </note>
6901 </desc>
6902 </attribute>
6903
6904 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6905 <desc>
6906 List of USB devices currently attached to the remote VRDE client.
6907 Once a new device is physically attached to the remote host computer,
6908 it appears in this list and remains there until detached.
6909 </desc>
6910 </attribute>
6911
6912 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6913 <desc>
6914 Collection of shared folders for the current session. These folders
6915 are called transient shared folders because they are available to the
6916 guest OS running inside the associated virtual machine only for the
6917 duration of the session (as opposed to
6918 <link to="IMachine::sharedFolders"/> which represent permanent shared
6919 folders). When the session is closed (e.g. the machine is powered down),
6920 these folders are automatically discarded.
6921
6922 New shared folders are added to the collection using
6923 <link to="#createSharedFolder"/>. Existing shared folders can be
6924 removed using <link to="#removeSharedFolder"/>.
6925 </desc>
6926 </attribute>
6927
6928 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6929 <desc>
6930 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6931 </desc>
6932 </attribute>
6933
6934 <attribute name="eventSource" type="IEventSource" readonly="yes">
6935 <desc>
6936 Event source for console events.
6937 </desc>
6938 </attribute>
6939
6940 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
6941 <desc>Array of PCI devices attached to this machine.</desc>
6942 </attribute>
6943
6944 <attribute name="useHostClipboard" type="boolean">
6945 <desc>
6946 Whether the guest clipboard should be connected to the host one or
6947 whether it should only be allowed access to the VRDE clipboard. This
6948 setting may not affect existing guest clipboard connections which
6949 are already connected to the host clipboard.
6950 </desc>
6951 </attribute>
6952
6953 <method name="powerUp">
6954 <desc>
6955 Starts the virtual machine execution using the current machine
6956 state (that is, its current execution state, current settings and
6957 current storage devices).
6958
6959 <note>
6960 This method is only useful for front-ends that want to actually
6961 execute virtual machines in their own process (like the VirtualBox
6962 or VBoxSDL front-ends). Unless you are intending to write such a
6963 front-end, do not call this method. If you simply want to
6964 start virtual machine execution using one of the existing front-ends
6965 (for example the VirtualBox GUI or headless server), use
6966 <link to="IMachine::launchVMProcess"/> instead; these
6967 front-ends will power up the machine automatically for you.
6968 </note>
6969
6970 If the machine is powered off or aborted, the execution will
6971 start from the beginning (as if the real hardware were just
6972 powered on).
6973
6974 If the machine is in the <link to="MachineState_Saved"/> state,
6975 it will continue its execution the point where the state has
6976 been saved.
6977
6978 If the machine <link to="IMachine::teleporterEnabled"/> property is
6979 enabled on the machine being powered up, the machine will wait for an
6980 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6981 state. The returned progress object will have at least three
6982 operations where the last three are defined as: (1) powering up and
6983 starting TCP server, (2) waiting for incoming teleportations, and
6984 (3) perform teleportation. These operations will be reflected as the
6985 last three operations of the progress objected returned by
6986 <link to="IMachine::launchVMProcess"/> as well.
6987
6988 <see><link to="#saveState"/></see>
6989
6990 <result name="VBOX_E_INVALID_VM_STATE">
6991 Virtual machine already running.
6992 </result>
6993 <result name="VBOX_E_HOST_ERROR">
6994 Host interface does not exist or name not set.
6995 </result>
6996 <result name="VBOX_E_FILE_ERROR">
6997 Invalid saved state file.
6998 </result>
6999 </desc>
7000 <param name="progress" type="IProgress" dir="return">
7001 <desc>Progress object to track the operation completion.</desc>
7002 </param>
7003 </method>
7004
7005 <method name="powerUpPaused">
7006 <desc>
7007 Identical to powerUp except that the VM will enter the
7008 <link to="MachineState_Paused"/> state, instead of
7009 <link to="MachineState_Running"/>.
7010
7011 <see><link to="#powerUp"/></see>
7012 <result name="VBOX_E_INVALID_VM_STATE">
7013 Virtual machine already running.
7014 </result>
7015 <result name="VBOX_E_HOST_ERROR">
7016 Host interface does not exist or name not set.
7017 </result>
7018 <result name="VBOX_E_FILE_ERROR">
7019 Invalid saved state file.
7020 </result>
7021 </desc>
7022 <param name="progress" type="IProgress" dir="return">
7023 <desc>Progress object to track the operation completion.</desc>
7024 </param>
7025 </method>
7026
7027 <method name="powerDown">
7028 <desc>
7029 Initiates the power down procedure to stop the virtual machine
7030 execution.
7031
7032 The completion of the power down procedure is tracked using the returned
7033 IProgress object. After the operation is complete, the machine will go
7034 to the PoweredOff state.
7035 <result name="VBOX_E_INVALID_VM_STATE">
7036 Virtual machine must be Running, Paused or Stuck to be powered down.
7037 </result>
7038 </desc>
7039 <param name="progress" type="IProgress" dir="return">
7040 <desc>Progress object to track the operation completion.</desc>
7041 </param>
7042 </method>
7043
7044 <method name="reset">
7045 <desc>Resets the virtual machine.
7046 <result name="VBOX_E_INVALID_VM_STATE">
7047 Virtual machine not in Running state.
7048 </result>
7049 <result name="VBOX_E_VM_ERROR">
7050 Virtual machine error in reset operation.
7051 </result>
7052 </desc>
7053 </method>
7054
7055 <method name="pause">
7056 <desc>Pauses the virtual machine execution.
7057 <result name="VBOX_E_INVALID_VM_STATE">
7058 Virtual machine not in Running state.
7059 </result>
7060 <result name="VBOX_E_VM_ERROR">
7061 Virtual machine error in suspend operation.
7062 </result>
7063 </desc>
7064 </method>
7065
7066 <method name="resume">
7067 <desc>Resumes the virtual machine execution.
7068 <result name="VBOX_E_INVALID_VM_STATE">
7069 Virtual machine not in Paused state.
7070 </result>
7071 <result name="VBOX_E_VM_ERROR">
7072 Virtual machine error in resume operation.
7073 </result>
7074 </desc>
7075 </method>
7076
7077 <method name="powerButton">
7078 <desc>Sends the ACPI power button event to the guest.
7079 <result name="VBOX_E_INVALID_VM_STATE">
7080 Virtual machine not in Running state.
7081 </result>
7082 <result name="VBOX_E_PDM_ERROR">
7083 Controlled power off failed.
7084 </result>
7085 </desc>
7086 </method>
7087
7088 <method name="sleepButton">
7089 <desc>Sends the ACPI sleep button event to the guest.
7090 <result name="VBOX_E_INVALID_VM_STATE">
7091 Virtual machine not in Running state.
7092 </result>
7093 <result name="VBOX_E_PDM_ERROR">
7094 Sending sleep button event failed.
7095 </result>
7096 </desc>
7097 </method>
7098
7099 <method name="getPowerButtonHandled">
7100 <desc>Checks if the last power button event was handled by guest.
7101 <result name="VBOX_E_PDM_ERROR">
7102 Checking if the event was handled by the guest OS failed.
7103 </result>
7104 </desc>
7105 <param name="handled" type="boolean" dir="return"/>
7106 </method>
7107
7108 <method name="getGuestEnteredACPIMode">
7109 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7110 G1 (sleeping). If this method returns @c false, the guest will
7111 most likely not respond to external ACPI events.
7112 <result name="VBOX_E_INVALID_VM_STATE">
7113 Virtual machine not in Running state.
7114 </result>
7115 </desc>
7116 <param name="entered" type="boolean" dir="return"/>
7117 </method>
7118
7119 <method name="saveState">
7120 <desc>
7121 Saves the current execution state of a running virtual machine
7122 and stops its execution.
7123
7124 After this operation completes, the machine will go to the
7125 Saved state. Next time it is powered up, this state will
7126 be restored and the machine will continue its execution from
7127 the place where it was saved.
7128
7129 This operation differs from taking a snapshot to the effect
7130 that it doesn't create new differencing media. Also, once
7131 the machine is powered up from the state saved using this method,
7132 the saved state is deleted, so it will be impossible to return
7133 to this state later.
7134
7135 <note>
7136 On success, this method implicitly calls
7137 <link to="IMachine::saveSettings"/> to save all current machine
7138 settings (including runtime changes to the DVD medium, etc.).
7139 Together with the impossibility to change any VM settings when it is
7140 in the Saved state, this guarantees adequate hardware
7141 configuration of the machine when it is restored from the saved
7142 state file.
7143 </note>
7144
7145 <note>
7146 The machine must be in the Running or Paused state, otherwise
7147 the operation will fail.
7148 </note>
7149 <result name="VBOX_E_INVALID_VM_STATE">
7150 Virtual machine state neither Running nor Paused.
7151 </result>
7152 <result name="VBOX_E_FILE_ERROR">
7153 Failed to create directory for saved state file.
7154 </result>
7155
7156 <see><link to="#takeSnapshot"/></see>
7157 </desc>
7158 <param name="progress" type="IProgress" dir="return">
7159 <desc>Progress object to track the operation completion.</desc>
7160 </param>
7161 </method>
7162
7163 <method name="adoptSavedState">
7164 <desc>
7165 Associates the given saved state file to the virtual machine.
7166
7167 On success, the machine will go to the Saved state. Next time it is
7168 powered up, it will be restored from the adopted saved state and
7169 continue execution from the place where the saved state file was
7170 created.
7171
7172 The specified saved state file path may be absolute or relative to the
7173 folder the VM normally saves the state to (usually,
7174 <link to="IMachine::snapshotFolder"/>).
7175
7176 <note>
7177 It's a caller's responsibility to make sure the given saved state
7178 file is compatible with the settings of this virtual machine that
7179 represent its virtual hardware (memory size, storage disk configuration
7180 etc.). If there is a mismatch, the behavior of the virtual machine
7181 is undefined.
7182 </note>
7183 <result name="VBOX_E_INVALID_VM_STATE">
7184 Virtual machine state neither PoweredOff nor Aborted.
7185 </result>
7186 </desc>
7187 <param name="savedStateFile" type="wstring" dir="in">
7188 <desc>Path to the saved state file to adopt.</desc>
7189 </param>
7190 </method>
7191
7192 <method name="discardSavedState">
7193 <desc>
7194 Forcibly resets the machine to "Powered Off" state if it is
7195 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7196 Next time the machine is powered up, a clean boot will occur.
7197 <note>
7198 This operation is equivalent to resetting or powering off
7199 the machine without doing a proper shutdown of the guest
7200 operating system; as with resetting a running phyiscal
7201 computer, it can can lead to data loss.
7202 </note>
7203 If @a fRemoveFile is @c true, the file in the machine directory
7204 into which the machine state was saved is also deleted. If
7205 this is @c false, then the state can be recovered and later
7206 re-inserted into a machine using <link to="#adoptSavedState" />.
7207 The location of the file can be found in the
7208 <link to="IMachine::stateFilePath" /> attribute.
7209 <result name="VBOX_E_INVALID_VM_STATE">
7210 Virtual machine not in state Saved.
7211 </result>
7212 </desc>
7213 <param name="fRemoveFile" type="boolean" dir="in" >
7214 <desc>Whether to also remove the saved state file.</desc>
7215 </param>
7216 </method>
7217
7218 <method name="getDeviceActivity">
7219 <desc>
7220 Gets the current activity type of a given device or device group.
7221 <result name="E_INVALIDARG">
7222 Invalid device type.
7223 </result>
7224 </desc>
7225 <param name="type" type="DeviceType" dir="in"/>
7226 <param name="activity" type="DeviceActivity" dir="return"/>
7227 </method>
7228
7229 <method name="attachUSBDevice">
7230 <desc>
7231 Attaches a host USB device with the given UUID to the
7232 USB controller of the virtual machine.
7233
7234 The device needs to be in one of the following states:
7235 <link to="USBDeviceState_Busy"/>,
7236 <link to="USBDeviceState_Available"/> or
7237 <link to="USBDeviceState_Held"/>,
7238 otherwise an error is immediately returned.
7239
7240 When the device state is
7241 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7242 be returned if the host computer refuses to release it for some reason.
7243
7244 <see><link to="IUSBController::deviceFilters"/>,
7245 <link to="USBDeviceState"/></see>
7246 <result name="VBOX_E_INVALID_VM_STATE">
7247 Virtual machine state neither Running nor Paused.
7248 </result>
7249 <result name="VBOX_E_PDM_ERROR">
7250 Virtual machine does not have a USB controller.
7251 </result>
7252 </desc>
7253 <param name="id" type="uuid" mod="string" dir="in">
7254 <desc>UUID of the host USB device to attach.</desc>
7255 </param>
7256 </method>
7257
7258 <method name="detachUSBDevice">
7259 <desc>
7260 Detaches an USB device with the given UUID from the USB controller
7261 of the virtual machine.
7262
7263 After this method succeeds, the VirtualBox server re-initiates
7264 all USB filters as if the device were just physically attached
7265 to the host, but filters of this machine are ignored to avoid
7266 a possible automatic re-attachment.
7267
7268 <see><link to="IUSBController::deviceFilters"/>,
7269 <link to="USBDeviceState"/></see>
7270
7271 <result name="VBOX_E_PDM_ERROR">
7272 Virtual machine does not have a USB controller.
7273 </result>
7274 <result name="E_INVALIDARG">
7275 USB device not attached to this virtual machine.
7276 </result>
7277 </desc>
7278 <param name="id" type="uuid" mod="string" dir="in">
7279 <desc>UUID of the USB device to detach.</desc>
7280 </param>
7281 <param name="device" type="IUSBDevice" dir="return">
7282 <desc>Detached USB device.</desc>
7283 </param>
7284 </method>
7285
7286 <method name="findUSBDeviceByAddress">
7287 <desc>
7288 Searches for a USB device with the given host address.
7289
7290 <result name="VBOX_E_OBJECT_NOT_FOUND">
7291 Given @c name does not correspond to any USB device.
7292 </result>
7293
7294 <see><link to="IUSBDevice::address"/></see>
7295 </desc>
7296 <param name="name" type="wstring" dir="in">
7297 <desc>
7298 Address of the USB device (as assigned by the host) to
7299 search for.
7300 </desc>
7301 </param>
7302 <param name="device" type="IUSBDevice" dir="return">
7303 <desc>Found USB device object.</desc>
7304 </param>
7305 </method>
7306
7307 <method name="findUSBDeviceById">
7308 <desc>
7309 Searches for a USB device with the given UUID.
7310
7311 <result name="VBOX_E_OBJECT_NOT_FOUND">
7312 Given @c id does not correspond to any USB device.
7313 </result>
7314
7315 <see><link to="IUSBDevice::id"/></see>
7316 </desc>
7317 <param name="id" type="uuid" mod="string" dir="in">
7318 <desc>UUID of the USB device to search for.</desc>
7319 </param>
7320 <param name="device" type="IUSBDevice" dir="return">
7321 <desc>Found USB device object.</desc>
7322 </param>
7323 </method>
7324
7325 <method name="createSharedFolder">
7326 <desc>
7327 Creates a transient new shared folder by associating the given logical
7328 name with the given host path, adds it to the collection of shared
7329 folders and starts sharing it. Refer to the description of
7330 <link to="ISharedFolder"/> to read more about logical names.
7331
7332 <result name="VBOX_E_INVALID_VM_STATE">
7333 Virtual machine in Saved state or currently changing state.
7334 </result>
7335 <result name="VBOX_E_FILE_ERROR">
7336 Shared folder already exists or not accessible.
7337 </result>
7338 </desc>
7339 <param name="name" type="wstring" dir="in">
7340 <desc>Unique logical name of the shared folder.</desc>
7341 </param>
7342 <param name="hostPath" type="wstring" dir="in">
7343 <desc>Full path to the shared folder in the host file system.</desc>
7344 </param>
7345 <param name="writable" type="boolean" dir="in">
7346 <desc>Whether the share is writable or readonly</desc>
7347 </param>
7348 <param name="automount" type="boolean" dir="in">
7349 <desc>Whether the share gets automatically mounted by the guest
7350 or not.</desc>
7351 </param>
7352 </method>
7353
7354 <method name="removeSharedFolder">
7355 <desc>
7356 Removes a transient shared folder with the given name previously
7357 created by <link to="#createSharedFolder"/> from the collection of
7358 shared folders and stops sharing it.
7359 <result name="VBOX_E_INVALID_VM_STATE">
7360 Virtual machine in Saved state or currently changing state.
7361 </result>
7362 <result name="VBOX_E_FILE_ERROR">
7363 Shared folder does not exists.
7364 </result>
7365 </desc>
7366 <param name="name" type="wstring" dir="in">
7367 <desc>Logical name of the shared folder to remove.</desc>
7368 </param>
7369 </method>
7370
7371 <method name="takeSnapshot">
7372 <desc>
7373 Saves the current execution state
7374 and all settings of the machine and creates differencing images
7375 for all normal (non-independent) media.
7376 See <link to="ISnapshot" /> for an introduction to snapshots.
7377
7378 This method can be called for a PoweredOff, Saved (see
7379 <link to="#saveState"/>), Running or
7380 Paused virtual machine. When the machine is PoweredOff, an
7381 offline snapshot is created. When the machine is Running a live
7382 snapshot is created, and an online snapshot is created when Paused.
7383
7384 The taken snapshot is always based on the
7385 <link to="IMachine::currentSnapshot">current snapshot</link>
7386 of the associated virtual machine and becomes a new current snapshot.
7387
7388 <note>
7389 This method implicitly calls <link to="IMachine::saveSettings"/> to
7390 save all current machine settings before taking an offline snapshot.
7391 </note>
7392
7393 <result name="VBOX_E_INVALID_VM_STATE">
7394 Virtual machine currently changing state.
7395 </result>
7396 </desc>
7397 <param name="name" type="wstring" dir="in">
7398 <desc>Short name for the snapshot.</desc>
7399 </param>
7400 <param name="description" type="wstring" dir="in">
7401 <desc>Optional description of the snapshot.</desc>
7402 </param>
7403 <param name="progress" type="IProgress" dir="return">
7404 <desc>Progress object to track the operation completion.</desc>
7405 </param>
7406 </method>
7407
7408 <method name="deleteSnapshot">
7409 <desc>
7410 Starts deleting the specified snapshot asynchronously.
7411 See <link to="ISnapshot" /> for an introduction to snapshots.
7412
7413 The execution state and settings of the associated machine stored in
7414 the snapshot will be deleted. The contents of all differencing media of
7415 this snapshot will be merged with the contents of their dependent child
7416 media to keep the medium chain valid (in other words, all changes
7417 represented by media being deleted will be propagated to their child
7418 medium). After that, this snapshot's differencing medium will be
7419 deleted. The parent of this snapshot will become a new parent for all
7420 its child snapshots.
7421
7422 If the deleted snapshot is the current one, its parent snapshot will
7423 become a new current snapshot. The current machine state is not directly
7424 affected in this case, except that currently attached differencing
7425 media based on media of the deleted snapshot will be also merged as
7426 described above.
7427
7428 If the deleted snapshot is the first or current snapshot, then the
7429 respective IMachine attributes will be adjusted. Deleting the current
7430 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7431 to make all current machine settings permanent.
7432
7433 Deleting a snapshot has the following preconditions:
7434
7435 <ul>
7436 <li>Child media of all normal media of the deleted snapshot
7437 must be accessible (see <link to="IMedium::state"/>) for this
7438 operation to succeed. If only one running VM refers to all images
7439 which participates in merging the operation can be performed while
7440 the VM is running. Otherwise all virtual machines whose media are
7441 directly or indirectly based on the media of deleted snapshot must
7442 be powered off. In any case, online snapshot deleting usually is
7443 slower than the same operation without any running VM.</li>
7444
7445 <li>You cannot delete the snapshot if a medium attached to it has
7446 more than one child medium (differencing images) because otherwise
7447 merging would be impossible. This might be the case if there is
7448 more than one child snapshot or differencing images were created
7449 for other reason (e.g. implicitly because of multiple machine
7450 attachments).</li>
7451 </ul>
7452
7453 The virtual machine's <link to="IMachine::state">state</link> is
7454 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7455 "DeletingSnapshotPaused" while this operation is in progress.
7456
7457 <note>
7458 Merging medium contents can be very time and disk space
7459 consuming, if these media are big in size and have many
7460 children. However, if the snapshot being deleted is the last
7461 (head) snapshot on the branch, the operation will be rather
7462 quick.
7463 </note>
7464 <result name="VBOX_E_INVALID_VM_STATE">
7465 The running virtual machine prevents deleting this snapshot. This
7466 happens only in very specific situations, usually snapshots can be
7467 deleted without trouble while a VM is running. The error message
7468 text explains the reason for the failure.
7469 </result>
7470 </desc>
7471 <param name="id" type="uuid" mod="string" dir="in">
7472 <desc>UUID of the snapshot to delete.</desc>
7473 </param>
7474 <param name="progress" type="IProgress" dir="return">
7475 <desc>Progress object to track the operation completion.</desc>
7476 </param>
7477 </method>
7478
7479 <method name="deleteSnapshotAndAllChildren">
7480 <desc>
7481 Starts deleting the specified snapshot and all its children
7482 asynchronously. See <link to="ISnapshot" /> for an introduction to
7483 snapshots. The conditions and many details are the same as with
7484 <link to="#deleteSnapshot"/>.
7485
7486 This operation is very fast if the snapshot subtree does not include
7487 the current state. It is still significantly faster than deleting the
7488 snapshots one by one if the current state is in the subtree and there
7489 are more than one snapshots from current state to the snapshot which
7490 marks the subtree, since it eliminates the incremental image merging.
7491
7492 <note>This API method is right now not implemented!</note>
7493
7494 <result name="VBOX_E_INVALID_VM_STATE">
7495 The running virtual machine prevents deleting this snapshot. This
7496 happens only in very specific situations, usually snapshots can be
7497 deleted without trouble while a VM is running. The error message
7498 text explains the reason for the failure.
7499 </result>
7500 <result name="E_NOTIMPL">
7501 The method is not implemented yet.
7502 </result>
7503 </desc>
7504 <param name="id" type="uuid" mod="string" dir="in">
7505 <desc>UUID of the snapshot to delete, including all its children.</desc>
7506 </param>
7507 <param name="progress" type="IProgress" dir="return">
7508 <desc>Progress object to track the operation completion.</desc>
7509 </param>
7510 </method>
7511
7512 <method name="deleteSnapshotRange">
7513 <desc>
7514 Starts deleting the specified snapshot range. This is limited to
7515 linear snapshot lists, which means there may not be any other child
7516 snapshots other than the direct sequence between the start and end
7517 snapshot. If the start and end snapshot point to the same snapshot this
7518 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7519 <link to="ISnapshot" /> for an introduction to snapshots. The
7520 conditions and many details are the same as with
7521 <link to="#deleteSnapshot"/>.
7522
7523 This operation is generally faster than deleting snapshots one by one
7524 and often also needs less extra disk space before freeing up disk space
7525 by deleting the removed disk images corresponding to the snapshot.
7526
7527 <note>This API method is right now not implemented!</note>
7528
7529 <result name="VBOX_E_INVALID_VM_STATE">
7530 The running virtual machine prevents deleting this snapshot. This
7531 happens only in very specific situations, usually snapshots can be
7532 deleted without trouble while a VM is running. The error message
7533 text explains the reason for the failure.
7534 </result>
7535 <result name="E_NOTIMPL">
7536 The method is not implemented yet.
7537 </result>
7538 </desc>
7539 <param name="startId" type="uuid" mod="string" dir="in">
7540 <desc>UUID of the first snapshot to delete.</desc>
7541 </param>
7542 <param name="endId" type="uuid" mod="string" dir="in">
7543 <desc>UUID of the last snapshot to delete.</desc>
7544 </param>
7545 <param name="progress" type="IProgress" dir="return">
7546 <desc>Progress object to track the operation completion.</desc>
7547 </param>
7548 </method>
7549
7550 <method name="restoreSnapshot">
7551 <desc>
7552 Starts resetting the machine's current state to the state contained
7553 in the given snapshot, asynchronously. All current settings of the
7554 machine will be reset and changes stored in differencing media
7555 will be lost.
7556 See <link to="ISnapshot" /> for an introduction to snapshots.
7557
7558 After this operation is successfully completed, new empty differencing
7559 media are created for all normal media of the machine.
7560
7561 If the given snapshot is an online snapshot, the machine will go to
7562 the <link to="MachineState_Saved"> saved state</link>, so that the
7563 next time it is powered on, the execution state will be restored
7564 from the state of the snapshot.
7565
7566 <note>
7567 The machine must not be running, otherwise the operation will fail.
7568 </note>
7569
7570 <note>
7571 If the machine state is <link to="MachineState_Saved">Saved</link>
7572 prior to this operation, the saved state file will be implicitly
7573 deleted (as if <link to="IConsole::discardSavedState"/> were
7574 called).
7575 </note>
7576
7577 <result name="VBOX_E_INVALID_VM_STATE">
7578 Virtual machine is running.
7579 </result>
7580 </desc>
7581 <param name="snapshot" type="ISnapshot" dir="in">
7582 <desc>The snapshot to restore the VM state from.</desc>
7583 </param>
7584 <param name="progress" type="IProgress" dir="return">
7585 <desc>Progress object to track the operation completion.</desc>
7586 </param>
7587 </method>
7588
7589 <method name="teleport">
7590 <desc>
7591 Teleport the VM to a different host machine or process.
7592
7593 TODO explain the details.
7594
7595 <result name="VBOX_E_INVALID_VM_STATE">
7596 Virtual machine not running or paused.
7597 </result>
7598 </desc>
7599 <param name="hostname" type="wstring" dir="in">
7600 <desc>The name or IP of the host to teleport to.</desc>
7601 </param>
7602 <param name="tcpport" type="unsigned long" dir="in">
7603 <desc>The TCP port to connect to (1..65535).</desc>
7604 </param>
7605 <param name="password" type="wstring" dir="in">
7606 <desc>The password.</desc>
7607 </param>
7608 <param name="maxDowntime" type="unsigned long" dir="in">
7609 <desc>
7610 The maximum allowed downtime given as milliseconds. 0 is not a valid
7611 value. Recommended value: 250 ms.
7612
7613 The higher the value is, the greater the chance for a successful
7614 teleportation. A small value may easily result in the teleportation
7615 process taking hours and eventually fail.
7616
7617 <note>
7618 The current implementation treats this a guideline, not as an
7619 absolute rule.
7620 </note>
7621 </desc>
7622 </param>
7623 <param name="progress" type="IProgress" dir="return">
7624 <desc>Progress object to track the operation completion.</desc>
7625 </param>
7626 </method>
7627
7628 </interface>
7629
7630 <!--
7631 // IHost
7632 /////////////////////////////////////////////////////////////////////////
7633 -->
7634
7635 <enum
7636 name="HostNetworkInterfaceMediumType"
7637 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7638 >
7639 <desc>
7640 Type of encapsulation. Ethernet encapsulation includes both wired and
7641 wireless Ethernet connections.
7642 <see><link to="IHostNetworkInterface"/></see>
7643 </desc>
7644
7645 <const name="Unknown" value="0">
7646 <desc>
7647 The type of interface cannot be determined.
7648 </desc>
7649 </const>
7650 <const name="Ethernet" value="1">
7651 <desc>
7652 Ethernet frame encapsulation.
7653 </desc>
7654 </const>
7655 <const name="PPP" value="2">
7656 <desc>
7657 Point-to-point protocol encapsulation.
7658 </desc>
7659 </const>
7660 <const name="SLIP" value="3">
7661 <desc>
7662 Serial line IP encapsulation.
7663 </desc>
7664 </const>
7665 </enum>
7666
7667 <enum
7668 name="HostNetworkInterfaceStatus"
7669 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7670 >
7671 <desc>
7672 Current status of the interface.
7673 <see><link to="IHostNetworkInterface"/></see>
7674 </desc>
7675
7676 <const name="Unknown" value="0">
7677 <desc>
7678 The state of interface cannot be determined.
7679 </desc>
7680 </const>
7681 <const name="Up" value="1">
7682 <desc>
7683 The interface is fully operational.
7684 </desc>
7685 </const>
7686 <const name="Down" value="2">
7687 <desc>
7688 The interface is not functioning.
7689 </desc>
7690 </const>
7691 </enum>
7692
7693 <enum
7694 name="HostNetworkInterfaceType"
7695 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7696 >
7697 <desc>
7698 Network interface type.
7699 </desc>
7700 <const name="Bridged" value="1"/>
7701 <const name="HostOnly" value="2"/>
7702 </enum>
7703
7704 <interface
7705 name="IHostNetworkInterface" extends="$unknown"
7706 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7707 wsmap="managed"
7708 >
7709 <desc>
7710 Represents one of host's network interfaces. IP V6 address and network
7711 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7712 separated by colons.
7713 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7714 </desc>
7715 <attribute name="name" type="wstring" readonly="yes">
7716 <desc>Returns the host network interface name.</desc>
7717 </attribute>
7718
7719 <attribute name="id" type="uuid" mod="string" readonly="yes">
7720 <desc>Returns the interface UUID.</desc>
7721 </attribute>
7722
7723 <attribute name="networkName" type="wstring" readonly="yes">
7724 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7725 </attribute>
7726
7727 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7728 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7729 </attribute>
7730
7731 <attribute name="IPAddress" type="wstring" readonly="yes">
7732 <desc>Returns the IP V4 address of the interface.</desc>
7733 </attribute>
7734
7735 <attribute name="networkMask" type="wstring" readonly="yes">
7736 <desc>Returns the network mask of the interface.</desc>
7737 </attribute>
7738
7739 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7740 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7741 </attribute>
7742
7743 <attribute name="IPV6Address" type="wstring" readonly="yes">
7744 <desc>Returns the IP V6 address of the interface.</desc>
7745 </attribute>
7746
7747 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7748 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7749 </attribute>
7750
7751 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7752 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7753 </attribute>
7754
7755 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7756 <desc>Type of protocol encapsulation used.</desc>
7757 </attribute>
7758
7759 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7760 <desc>Status of the interface.</desc>
7761 </attribute>
7762
7763 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7764 <desc>specifies the host interface type.</desc>
7765 </attribute>
7766
7767 <method name="enableStaticIPConfig">
7768 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7769 <param name="IPAddress" type="wstring" dir="in">
7770 <desc>
7771 IP address.
7772 </desc>
7773 </param>
7774 <param name="networkMask" type="wstring" dir="in">
7775 <desc>
7776 network mask.
7777 </desc>
7778 </param>
7779 </method>
7780
7781 <method name="enableStaticIPConfigV6">
7782 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7783 <param name="IPV6Address" type="wstring" dir="in">
7784 <desc>
7785 IP address.
7786 </desc>
7787 </param>
7788 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7789 <desc>
7790 network mask.
7791 </desc>
7792 </param>
7793 </method>
7794
7795 <method name="enableDynamicIPConfig">
7796 <desc>enables the dynamic IP configuration.</desc>
7797 </method>
7798
7799 <method name="DHCPRediscover">
7800 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7801 </method>
7802
7803 </interface>
7804
7805 <interface
7806 name="IHost" extends="$unknown"
7807 uuid="30678943-32df-4830-b413-931b25ac86a0"
7808 wsmap="managed"
7809 >
7810 <desc>
7811 The IHost interface represents the physical machine that this VirtualBox
7812 installation runs on.
7813
7814 An object implementing this interface is returned by the
7815 <link to="IVirtualBox::host" /> attribute. This interface contains
7816 read-only information about the host's physical hardware (such as what
7817 processors and disks are available, what the host operating system is,
7818 and so on) and also allows for manipulating some of the host's hardware,
7819 such as global USB device filters and host interface networking.
7820
7821 </desc>
7822 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7823 <desc>List of DVD drives available on the host.</desc>
7824 </attribute>
7825
7826 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7827 <desc>List of floppy drives available on the host.</desc>
7828 </attribute>
7829
7830 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7831 <desc>
7832 List of USB devices currently attached to the host.
7833 Once a new device is physically attached to the host computer,
7834 it appears in this list and remains there until detached.
7835
7836 <note>
7837 If USB functionality is not available in the given edition of
7838 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7839 </note>
7840 </desc>
7841 </attribute>
7842
7843 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7844 <desc>
7845 List of USB device filters in action.
7846 When a new device is physically attached to the host computer,
7847 filters from this list are applied to it (in order they are stored
7848 in the list). The first matched filter will determine the
7849 <link to="IHostUSBDeviceFilter::action">action</link>
7850 performed on the device.
7851
7852 Unless the device is ignored by these filters, filters of all
7853 currently running virtual machines
7854 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7855
7856 <note>
7857 If USB functionality is not available in the given edition of
7858 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7859 </note>
7860
7861 <see><link to="IHostUSBDeviceFilter"/>,
7862 <link to="USBDeviceState"/></see>
7863 </desc>
7864 </attribute>
7865
7866 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7867 <desc>List of host network interfaces currently defined on the host.</desc>
7868 </attribute>
7869
7870 <attribute name="processorCount" type="unsigned long" readonly="yes">
7871 <desc>Number of (logical) CPUs installed in the host system.</desc>
7872 </attribute>
7873
7874 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7875 <desc>Number of (logical) CPUs online in the host system.</desc>
7876 </attribute>
7877
7878 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7879 <desc>Number of physical processor cores installed in the host system.</desc>
7880 </attribute>
7881
7882 <method name="getProcessorSpeed">
7883 <desc>Query the (approximate) maximum speed of a specified host CPU in
7884 Megahertz.
7885 </desc>
7886 <param name="cpuId" type="unsigned long" dir="in">
7887 <desc>
7888 Identifier of the CPU.
7889 </desc>
7890 </param>
7891 <param name="speed" type="unsigned long" dir="return">
7892 <desc>
7893 Speed value. 0 is returned if value is not known or @a cpuId is
7894 invalid.
7895 </desc>
7896 </param>
7897 </method>
7898
7899 <method name="getProcessorFeature">
7900 <desc>Query whether a CPU feature is supported or not.</desc>
7901 <param name="feature" type="ProcessorFeature" dir="in">
7902 <desc>
7903 CPU Feature identifier.
7904 </desc>
7905 </param>
7906 <param name="supported" type="boolean" dir="return">
7907 <desc>
7908 Feature is supported or not.
7909 </desc>
7910 </param>
7911 </method>
7912
7913 <method name="getProcessorDescription">
7914 <desc>Query the model string of a specified host CPU.
7915 </desc>
7916 <param name="cpuId" type="unsigned long" dir="in">
7917 <desc>
7918 Identifier of the CPU.
7919 <note>
7920 The current implementation might not necessarily return the
7921 description for this exact CPU.
7922 </note>
7923 </desc>
7924 </param>
7925 <param name="description" type="wstring" dir="return">
7926 <desc>
7927 Model string. An empty string is returned if value is not known or
7928 @a cpuId is invalid.
7929 </desc>
7930 </param>
7931 </method>
7932
7933 <method name="getProcessorCPUIDLeaf">
7934 <desc>
7935 Returns the CPU cpuid information for the specified leaf.
7936 </desc>
7937 <param name="cpuId" type="unsigned long" dir="in">
7938 <desc>
7939 Identifier of the CPU. The CPU most be online.
7940 <note>
7941 The current implementation might not necessarily return the
7942 description for this exact CPU.
7943 </note>
7944 </desc>
7945 </param>
7946 <param name="leaf" type="unsigned long" dir="in">
7947 <desc>
7948 CPUID leaf index (eax).
7949 </desc>
7950 </param>
7951 <param name="subLeaf" type="unsigned long" dir="in">
7952 <desc>
7953 CPUID leaf sub index (ecx). This currently only applies to cache
7954 information on Intel CPUs. Use 0 if retrieving values for
7955 <link to="IMachine::setCPUIDLeaf"/>.
7956 </desc>
7957 </param>
7958 <param name="valEax" type="unsigned long" dir="out">
7959 <desc>
7960 CPUID leaf value for register eax.
7961 </desc>
7962 </param>
7963 <param name="valEbx" type="unsigned long" dir="out">
7964 <desc>
7965 CPUID leaf value for register ebx.
7966 </desc>
7967 </param>
7968 <param name="valEcx" type="unsigned long" dir="out">
7969 <desc>
7970 CPUID leaf value for register ecx.
7971 </desc>
7972 </param>
7973 <param name="valEdx" type="unsigned long" dir="out">
7974 <desc>
7975 CPUID leaf value for register edx.
7976 </desc>
7977 </param>
7978 </method>
7979
7980 <attribute name="memorySize" type="unsigned long" readonly="yes">
7981 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7982 </attribute>
7983
7984 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7985 <desc>Available system memory in the host system.</desc>
7986 </attribute>
7987
7988 <attribute name="operatingSystem" type="wstring" readonly="yes">
7989 <desc>Name of the host system's operating system.</desc>
7990 </attribute>
7991
7992 <attribute name="OSVersion" type="wstring" readonly="yes">
7993 <desc>Host operating system's version string.</desc>
7994 </attribute>
7995
7996 <attribute name="UTCTime" type="long long" readonly="yes">
7997 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7998 </attribute>
7999
8000 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
8001 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
8002 </attribute>
8003
8004 <method name="createHostOnlyNetworkInterface">
8005 <desc>
8006 Creates a new adapter for Host Only Networking.
8007 <result name="E_INVALIDARG">
8008 Host network interface @a name already exists.
8009 </result>
8010 </desc>
8011 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
8012 <desc>
8013 Created host interface object.
8014 </desc>
8015 </param>
8016 <param name="progress" type="IProgress" dir="return">
8017 <desc>
8018 Progress object to track the operation completion.
8019 </desc>
8020 </param>
8021 </method>
8022
8023 <method name="removeHostOnlyNetworkInterface">
8024 <desc>
8025 Removes the given Host Only Networking interface.
8026 <result name="VBOX_E_OBJECT_NOT_FOUND">
8027 No host network interface matching @a id found.
8028 </result>
8029 </desc>
8030 <param name="id" type="uuid" mod="string" dir="in">
8031 <desc>
8032 Adapter GUID.
8033 </desc>
8034 </param>
8035 <param name="progress" type="IProgress" dir="return">
8036 <desc>
8037 Progress object to track the operation completion.
8038 </desc>
8039 </param>
8040 </method>
8041
8042 <method name="createUSBDeviceFilter">
8043 <desc>
8044 Creates a new USB device filter. All attributes except
8045 the filter name are set to empty (any match),
8046 <i>active</i> is @c false (the filter is not active).
8047
8048 The created filter can be added to the list of filters using
8049 <link to="#insertUSBDeviceFilter"/>.
8050
8051 <see><link to="#USBDeviceFilters"/></see>
8052 </desc>
8053 <param name="name" type="wstring" dir="in">
8054 <desc>
8055 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
8056 </desc>
8057 </param>
8058 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8059 <desc>Created filter object.</desc>
8060 </param>
8061 </method>
8062
8063 <method name="insertUSBDeviceFilter">
8064 <desc>
8065 Inserts the given USB device to the specified position
8066 in the list of filters.
8067
8068 Positions are numbered starting from @c 0. If the specified
8069 position is equal to or greater than the number of elements in
8070 the list, the filter is added at the end of the collection.
8071
8072 <note>
8073 Duplicates are not allowed, so an attempt to insert a
8074 filter already in the list is an error.
8075 </note>
8076 <note>
8077 If USB functionality is not available in the given edition of
8078 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8079 </note>
8080
8081 <see><link to="#USBDeviceFilters"/></see>
8082
8083 <result name="VBOX_E_INVALID_OBJECT_STATE">
8084 USB device filter is not created within this VirtualBox instance.
8085 </result>
8086 <result name="E_INVALIDARG">
8087 USB device filter already in list.
8088 </result>
8089
8090 </desc>
8091 <param name="position" type="unsigned long" dir="in">
8092 <desc>Position to insert the filter to.</desc>
8093 </param>
8094 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8095 <desc>USB device filter to insert.</desc>
8096 </param>
8097 </method>
8098
8099 <method name="removeUSBDeviceFilter">
8100 <desc>
8101 Removes a USB device filter from the specified position in the
8102 list of filters.
8103
8104 Positions are numbered starting from @c 0. Specifying a
8105 position equal to or greater than the number of elements in
8106 the list will produce an error.
8107
8108 <note>
8109 If USB functionality is not available in the given edition of
8110 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8111 </note>
8112
8113 <see><link to="#USBDeviceFilters"/></see>
8114
8115 <result name="E_INVALIDARG">
8116 USB device filter list empty or invalid @a position.
8117 </result>
8118
8119 </desc>
8120 <param name="position" type="unsigned long" dir="in">
8121 <desc>Position to remove the filter from.</desc>
8122 </param>
8123 </method>
8124
8125 <method name="findHostDVDDrive">
8126 <desc>
8127 Searches for a host DVD drive with the given @c name.
8128
8129 <result name="VBOX_E_OBJECT_NOT_FOUND">
8130 Given @c name does not correspond to any host drive.
8131 </result>
8132
8133 </desc>
8134 <param name="name" type="wstring" dir="in">
8135 <desc>Name of the host drive to search for</desc>
8136 </param>
8137 <param name="drive" type="IMedium" dir="return">
8138 <desc>Found host drive object</desc>
8139 </param>
8140 </method>
8141
8142 <method name="findHostFloppyDrive">
8143 <desc>
8144 Searches for a host floppy drive with the given @c name.
8145
8146 <result name="VBOX_E_OBJECT_NOT_FOUND">
8147 Given @c name does not correspond to any host floppy drive.
8148 </result>
8149
8150 </desc>
8151 <param name="name" type="wstring" dir="in">
8152 <desc>Name of the host floppy drive to search for</desc>
8153 </param>
8154 <param name="drive" type="IMedium" dir="return">
8155 <desc>Found host floppy drive object</desc>
8156 </param>
8157 </method>
8158
8159 <method name="findHostNetworkInterfaceByName">
8160 <desc>
8161 Searches through all host network interfaces for an interface with
8162 the given @c name.
8163 <note>
8164 The method returns an error if the given @c name does not
8165 correspond to any host network interface.
8166 </note>
8167 </desc>
8168 <param name="name" type="wstring" dir="in">
8169 <desc>Name of the host network interface to search for.</desc>
8170 </param>
8171 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8172 <desc>Found host network interface object.</desc>
8173 </param>
8174 </method>
8175 <method name="findHostNetworkInterfaceById">
8176 <desc>
8177 Searches through all host network interfaces for an interface with
8178 the given GUID.
8179 <note>
8180 The method returns an error if the given GUID does not
8181 correspond to any host network interface.
8182 </note>
8183 </desc>
8184 <param name="id" type="uuid" mod="string" dir="in">
8185 <desc>GUID of the host network interface to search for.</desc>
8186 </param>
8187 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8188 <desc>Found host network interface object.</desc>
8189 </param>
8190 </method>
8191 <method name="findHostNetworkInterfacesOfType">
8192 <desc>
8193 Searches through all host network interfaces and returns a list of interfaces of the specified type
8194 </desc>
8195 <param name="type" type="HostNetworkInterfaceType" dir="in">
8196 <desc>type of the host network interfaces to search for.</desc>
8197 </param>
8198 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8199 <desc>Found host network interface objects.</desc>
8200 </param>
8201 </method>
8202
8203 <method name="findUSBDeviceById">
8204 <desc>
8205 Searches for a USB device with the given UUID.
8206
8207 <result name="VBOX_E_OBJECT_NOT_FOUND">
8208 Given @c id does not correspond to any USB device.
8209 </result>
8210
8211 <see><link to="IUSBDevice::id"/></see>
8212 </desc>
8213 <param name="id" type="uuid" mod="string" dir="in">
8214 <desc>UUID of the USB device to search for.</desc>
8215 </param>
8216 <param name="device" type="IHostUSBDevice" dir="return">
8217 <desc>Found USB device object.</desc>
8218 </param>
8219 </method>
8220
8221 <method name="findUSBDeviceByAddress">
8222 <desc>
8223 Searches for a USB device with the given host address.
8224
8225 <result name="VBOX_E_OBJECT_NOT_FOUND">
8226 Given @c name does not correspond to any USB device.
8227 </result>
8228
8229 <see><link to="IUSBDevice::address"/></see>
8230 </desc>
8231 <param name="name" type="wstring" dir="in">
8232 <desc>
8233 Address of the USB device (as assigned by the host) to
8234 search for.
8235 </desc>
8236 </param>
8237 <param name="device" type="IHostUSBDevice" dir="return">
8238 <desc>Found USB device object.</desc>
8239 </param>
8240 </method>
8241
8242 <method name="generateMACAddress">
8243 <desc>
8244 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8245 </desc>
8246 <param name="address" type="wstring" dir="return">
8247 <desc>New Ethernet MAC address.</desc>
8248 </param>
8249 </method>
8250
8251 </interface>
8252
8253 <!--
8254 // ISystemProperties
8255 /////////////////////////////////////////////////////////////////////////
8256 -->
8257
8258 <interface
8259 name="ISystemProperties"
8260 extends="$unknown"
8261 uuid="413ea94c-efd9-491e-81fc-5df0c4d864bb"
8262 wsmap="managed"
8263 >
8264 <desc>
8265 The ISystemProperties interface represents global properties of the given
8266 VirtualBox installation.
8267
8268 These properties define limits and default values for various attributes
8269 and parameters. Most of the properties are read-only, but some can be
8270 changed by a user.
8271 </desc>
8272
8273 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8274 <desc>Minimum guest system memory in Megabytes.</desc>
8275 </attribute>
8276
8277 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8278 <desc>Maximum guest system memory in Megabytes.</desc>
8279 </attribute>
8280
8281 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8282 <desc>Minimum guest video memory in Megabytes.</desc>
8283 </attribute>
8284
8285 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8286 <desc>Maximum guest video memory in Megabytes.</desc>
8287 </attribute>
8288
8289 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8290 <desc>Minimum CPU count.</desc>
8291 </attribute>
8292
8293 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8294 <desc>Maximum CPU count.</desc>
8295 </attribute>
8296
8297 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8298 <desc>Maximum of monitors which could be connected.</desc>
8299 </attribute>
8300
8301 <attribute name="infoVDSize" type="long long" readonly="yes">
8302 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8303 does not reflect the limits of any virtual disk image format.</desc>
8304 </attribute>
8305
8306 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8307 <desc>
8308 Maximum number of serial ports associated with every
8309 <link to="IMachine"/> instance.
8310 </desc>
8311 </attribute>
8312
8313 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8314 <desc>
8315 Maximum number of parallel ports associated with every
8316 <link to="IMachine"/> instance.
8317 </desc>
8318 </attribute>
8319
8320 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8321 <desc>
8322 Maximum device position in the boot order. This value corresponds
8323 to the total number of devices a machine can boot from, to make it
8324 possible to include all possible devices to the boot list.
8325 <see><link to="IMachine::setBootOrder"/></see>
8326 </desc>
8327 </attribute>
8328
8329 <attribute name="defaultMachineFolder" type="wstring">
8330 <desc>
8331 Full path to the default directory used to create new or open
8332 existing machines when a machine settings file name contains no
8333 path.
8334
8335 Starting with VirtualBox 4.0, by default, this attribute contains
8336 the full path of folder named "VirtualBox VMs" in the user's
8337 home directory, which depends on the host platform.
8338
8339 When setting this attribute, a full path must be specified.
8340 Setting this property to @c null or an empty string or the
8341 special value "Machines" (for compatibility reasons) will restore
8342 that default value.
8343
8344 If the folder specified herein does not exist, it will be created
8345 automatically as needed.
8346
8347 <see>
8348 <link to="IVirtualBox::createMachine"/>,
8349 <link to="IVirtualBox::openMachine"/>
8350 </see>
8351 </desc>
8352 </attribute>
8353
8354 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8355 <desc>
8356 List of all medium storage formats supported by this VirtualBox
8357 installation.
8358
8359 Keep in mind that the medium format identifier
8360 (<link to="IMediumFormat::id"/>) used in other API calls like
8361 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8362 medium format is a case-insensitive string. This means that, for
8363 example, all of the following strings:
8364 <pre>
8365 "VDI"
8366 "vdi"
8367 "VdI"</pre>
8368 refer to the same medium format.
8369
8370 Note that the virtual medium framework is backend-based, therefore
8371 the list of supported formats depends on what backends are currently
8372 installed.
8373
8374 <see><link to="IMediumFormat"/></see>
8375 </desc>
8376 </attribute>
8377
8378 <attribute name="defaultHardDiskFormat" type="wstring">
8379 <desc>
8380 Identifier of the default medium format used by VirtualBox.
8381
8382 The medium format set by this attribute is used by VirtualBox
8383 when the medium format was not specified explicitly. One example is
8384 <link to="IVirtualBox::createHardDisk"/> with the empty
8385 format argument. A more complex example is implicit creation of
8386 differencing media when taking a snapshot of a virtual machine:
8387 this operation will try to use a format of the parent medium first
8388 and if this format does not support differencing media the default
8389 format specified by this argument will be used.
8390
8391 The list of supported medium formats may be obtained by the
8392 <link to="#mediumFormats"/> call. Note that the default medium
8393 format must have a capability to create differencing media;
8394 otherwise operations that create media implicitly may fail
8395 unexpectedly.
8396
8397 The initial value of this property is <tt>"VDI"</tt> in the current
8398 version of the VirtualBox product, but may change in the future.
8399
8400 <note>
8401 Setting this property to @c null or empty string will restore the
8402 initial value.
8403 </note>
8404
8405 <see>
8406 <link to="#mediumFormats"/>,
8407 <link to="IMediumFormat::id"/>,
8408 <link to="IVirtualBox::createHardDisk"/>
8409 </see>
8410 </desc>
8411 </attribute>
8412
8413 <attribute name="freeDiskSpaceWarning" type="long long">
8414 <desc>Issue a warning if the free disk space is below (or in some disk
8415 intensive operation is expected to go below) the given size in
8416 bytes.</desc>
8417 </attribute>
8418
8419 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8420 <desc>Issue a warning if the free disk space is below (or in some disk
8421 intensive operation is expected to go below) the given percentage.</desc>
8422 </attribute>
8423
8424 <attribute name="freeDiskSpaceError" type="long long">
8425 <desc>Issue an error if the free disk space is below (or in some disk
8426 intensive operation is expected to go below) the given size in
8427 bytes.</desc>
8428 </attribute>
8429
8430 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8431 <desc>Issue an error if the free disk space is below (or in some disk
8432 intensive operation is expected to go below) the given percentage.</desc>
8433 </attribute>
8434
8435 <attribute name="VRDEAuthLibrary" type="wstring">
8436 <desc>
8437 Library that provides authentication for Remote Desktop clients. The library
8438 is used if a virtual machine's authentication type is set to "external"
8439 in the VM RemoteDisplay configuration.
8440
8441 The system library extension (".DLL" or ".so") must be omitted.
8442 A full path can be specified; if not, then the library must reside on the
8443 system's default library path.
8444
8445 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8446 of that name in one of the default VirtualBox library directories.
8447
8448 For details about VirtualBox authentication libraries and how to implement
8449 them, please refer to the VirtualBox manual.
8450
8451 <note>
8452 Setting this property to @c null or empty string will restore the
8453 initial value.
8454 </note>
8455 </desc>
8456 </attribute>
8457
8458 <attribute name="webServiceAuthLibrary" type="wstring">
8459 <desc>
8460 Library that provides authentication for webservice clients. The library
8461 is used if a virtual machine's authentication type is set to "external"
8462 in the VM RemoteDisplay configuration and will be called from
8463 within the <link to="IWebsessionManager::logon" /> implementation.
8464
8465 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8466 there is no per-VM setting for this, as the webservice is a global
8467 resource (if it is running). Only for this setting (for the webservice),
8468 setting this value to a literal <tt>"null"</tt> string disables authentication,
8469 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8470 no matter what user name and password are supplied.
8471
8472 The initial value of this property is <tt>"VBoxAuth"</tt>,
8473 meaning that the webservice will use the same authentication
8474 library that is used by default for VRDE (again, see
8475 <link to="ISystemProperties::VRDEAuthLibrary" />).
8476 The format and calling convention of authentication libraries
8477 is the same for the webservice as it is for VRDE.
8478
8479 <note>
8480 Setting this property to @c null or empty string will restore the
8481 initial value.
8482 </note>
8483 </desc>
8484 </attribute>
8485
8486 <attribute name="defaultVRDEExtPack" type="wstring">
8487 <desc>
8488 The name of the extension pack providing the default VRDE.
8489
8490 This attribute is for choosing between multiple extension packs
8491 providing VRDE. If only one is installed, it will automatically be the
8492 default one. The attribute value can be empty if no VRDE extension
8493 pack is installed.
8494
8495 For details about VirtualBox Remote Desktop Extension and how to
8496 implement one, please refer to the VirtualBox SDK.
8497 </desc>
8498 </attribute>
8499
8500 <attribute name="logHistoryCount" type="unsigned long">
8501 <desc>
8502 This value specifies how many old release log files are kept.
8503 </desc>
8504 </attribute>
8505
8506 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8507 <desc>This value hold the default audio driver for the current
8508 system.</desc>
8509 </attribute>
8510
8511 <attribute name="autostartDatabasePath" type="wstring">
8512 <desc>
8513 The path to the autostart database. Depending on the host this might
8514 be a filesystem path or something else.
8515 </desc>
8516 </attribute>
8517
8518 <attribute name="defaultAdditionsISO" type="wstring">
8519 <desc>
8520 The path to the default Guest Additions ISO image. Can be empty if
8521 the location is not known in this installation.
8522 </desc>
8523 </attribute>
8524
8525 <attribute name="defaultFrontend" type="wstring">
8526 <desc>
8527 Selects which VM frontend should be used by default when launching
8528 a VM through the <link to="IMachine::launchVMProcess" /> method.
8529 Empty or @c null strings do not define a particular default, it is up
8530 to <link to="IMachine::launchVMProcess" /> to select one. See the
8531 description of <link to="IMachine::launchVMProcess" /> for the valid
8532 frontend types.
8533
8534 This global setting is overridden by the per-VM attribute
8535 <link to="IMachine::defaultFrontend" /> or a frontend type
8536 passed to <link to="IMachine::launchVMProcess" />.
8537 </desc>
8538 </attribute>
8539
8540 <method name="getMaxNetworkAdapters">
8541 <desc>
8542 Maximum total number of network adapters associated with every
8543 <link to="IMachine"/> instance.
8544 </desc>
8545
8546 <param name="chipset" type="ChipsetType" dir="in">
8547 <desc>The chipset type to get the value for.</desc>
8548 </param>
8549
8550
8551 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8552 <desc>The maximum total number of network adapters allowed.</desc>
8553 </param>
8554
8555 </method>
8556
8557 <method name="getMaxNetworkAdaptersOfType">
8558 <desc>
8559 Maximum number of network adapters of a given attachment type,
8560 associated with every <link to="IMachine"/> instance.
8561 </desc>
8562
8563 <param name="chipset" type="ChipsetType" dir="in">
8564 <desc>The chipset type to get the value for.</desc>
8565 </param>
8566
8567 <param name="type" type="NetworkAttachmentType" dir="in">
8568 <desc>Type of attachment.</desc>
8569 </param>
8570
8571 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8572 <desc>The maximum number of network adapters allowed for
8573 particular chipset and attachment type.</desc>
8574 </param>
8575
8576 </method>
8577
8578
8579 <method name="getMaxDevicesPerPortForStorageBus">
8580 <desc>Returns the maximum number of devices which can be attached to a port
8581 for the given storage bus.</desc>
8582
8583 <param name="bus" type="StorageBus" dir="in">
8584 <desc>The storage bus type to get the value for.</desc>
8585 </param>
8586
8587 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8588 <desc>The maximum number of devices which can be attached to the port for the given
8589 storage bus.</desc>
8590 </param>
8591 </method>
8592
8593 <method name="getMinPortCountForStorageBus">
8594 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8595
8596 <param name="bus" type="StorageBus" dir="in">
8597 <desc>The storage bus type to get the value for.</desc>
8598 </param>
8599
8600 <param name="minPortCount" type="unsigned long" dir="return">
8601 <desc>The minimum number of ports for the given storage bus.</desc>
8602 </param>
8603 </method>
8604
8605 <method name="getMaxPortCountForStorageBus">
8606 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8607
8608 <param name="bus" type="StorageBus" dir="in">
8609 <desc>The storage bus type to get the value for.</desc>
8610 </param>
8611
8612 <param name="maxPortCount" type="unsigned long" dir="return">
8613 <desc>The maximum number of ports for the given storage bus.</desc>
8614 </param>
8615 </method>
8616
8617 <method name="getMaxInstancesOfStorageBus">
8618 <desc>Returns the maximum number of storage bus instances which
8619 can be configured for each VM. This corresponds to the number of
8620 storage controllers one can have. Value may depend on chipset type
8621 used.</desc>
8622
8623 <param name="chipset" type="ChipsetType" dir="in">
8624 <desc>The chipset type to get the value for.</desc>
8625 </param>
8626
8627 <param name="bus" type="StorageBus" dir="in">
8628 <desc>The storage bus type to get the value for.</desc>
8629 </param>
8630
8631 <param name="maxInstances" type="unsigned long" dir="return">
8632 <desc>The maximum number of instances for the given storage bus.</desc>
8633 </param>
8634 </method>
8635
8636 <method name="getDeviceTypesForStorageBus">
8637 <desc>Returns list of all the supported device types
8638 (<link to="DeviceType"/>) for the given type of storage
8639 bus.</desc>
8640
8641 <param name="bus" type="StorageBus" dir="in">
8642 <desc>The storage bus type to get the value for.</desc>
8643 </param>
8644
8645 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8646 <desc>The list of all supported device types for the given storage bus.</desc>
8647 </param>
8648 </method>
8649
8650 <method name="getDefaultIoCacheSettingForStorageController">
8651 <desc>Returns the default I/O cache setting for the
8652 given storage controller</desc>
8653
8654 <param name="controllerType" type="StorageControllerType" dir="in">
8655 <desc>The storage controller to the setting for.</desc>
8656 </param>
8657
8658 <param name="enabled" type="boolean" dir="return">
8659 <desc>Returned flag indicating the default value</desc>
8660 </param>
8661 </method>
8662 </interface>
8663
8664 <!--
8665 // IGuest
8666 /////////////////////////////////////////////////////////////////////////
8667 -->
8668
8669 <interface
8670 name="IGuestOSType" extends="$unknown"
8671 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8672 wsmap="struct"
8673 >
8674 <desc>
8675 </desc>
8676
8677 <attribute name="familyId" type="wstring" readonly="yes">
8678 <desc>Guest OS family identifier string.</desc>
8679 </attribute>
8680
8681 <attribute name="familyDescription" type="wstring" readonly="yes">
8682 <desc>Human readable description of the guest OS family.</desc>
8683 </attribute>
8684
8685 <attribute name="id" type="wstring" readonly="yes">
8686 <desc>Guest OS identifier string.</desc>
8687 </attribute>
8688
8689 <attribute name="description" type="wstring" readonly="yes">
8690 <desc>Human readable description of the guest OS.</desc>
8691 </attribute>
8692
8693 <attribute name="is64Bit" type="boolean" readonly="yes">
8694 <desc>Returns @c true if the given OS is 64-bit</desc>
8695 </attribute>
8696
8697 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8698 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8699 </attribute>
8700
8701 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8702 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8703 </attribute>
8704
8705 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8706 <desc>Recommended RAM size in Megabytes.</desc>
8707 </attribute>
8708
8709 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8710 <desc>Recommended video RAM size in Megabytes.</desc>
8711 </attribute>
8712
8713 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8714 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8715 </attribute>
8716
8717 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8718 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8719 </attribute>
8720
8721 <attribute name="recommendedHDD" type="long long" readonly="yes">
8722 <desc>Recommended hard disk size in bytes.</desc>
8723 </attribute>
8724
8725 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8726 <desc>Returns recommended network adapter for this OS type.</desc>
8727 </attribute>
8728
8729 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8730 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8731 </attribute>
8732
8733 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8734 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8735 </attribute>
8736
8737 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8738 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8739 </attribute>
8740
8741 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8742 <desc>Recommended storage controller type for HD drives.</desc>
8743 </attribute>
8744
8745 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8746 <desc>Recommended storage bus type for HD drives.</desc>
8747 </attribute>
8748
8749 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8750 <desc>Recommended firmware type.</desc>
8751 </attribute>
8752
8753 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8754 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8755 </attribute>
8756
8757 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8758 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8759 </attribute>
8760
8761 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8762 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8763 </attribute>
8764
8765 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8766 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8767 </attribute>
8768
8769 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8770 <desc>Recommended chipset type.</desc>
8771 </attribute>
8772
8773 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8774 <desc>Recommended audio type.</desc>
8775 </attribute>
8776
8777 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8778 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8779 </attribute>
8780
8781 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8782 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8783 </attribute>
8784
8785 </interface>
8786
8787 <enum
8788 name="AdditionsFacilityType"
8789 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8790 >
8791 <desc>
8792 Guest Additions facility IDs.
8793 </desc>
8794
8795 <const name="None" value="0">
8796 <desc>No/invalid facility.</desc>
8797 </const>
8798 <const name="VBoxGuestDriver" value="20">
8799 <desc>VirtualBox base driver (VBoxGuest).</desc>
8800 </const>
8801 <const name="AutoLogon" value="90">
8802 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8803 </const>
8804 <const name="VBoxService" value="100">
8805 <desc>VirtualBox system service (VBoxService).</desc>
8806 </const>
8807 <const name="VBoxTrayClient" value="101">
8808 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8809 </const>
8810 <const name="Seamless" value="1000">
8811 <desc>Seamless guest desktop integration.</desc>
8812 </const>
8813 <const name="Graphics" value="1100">
8814 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8815 are not immediately acted on and guest display resizes are probably not initiated by
8816 the guest additions.
8817 </desc>
8818 </const>
8819 <const name="All" value="2147483646">
8820 <desc>All facilities selected.</desc>
8821 </const>
8822 </enum>
8823
8824 <enum
8825 name="AdditionsFacilityClass"
8826 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8827 >
8828 <desc>
8829 Guest Additions facility classes.
8830 </desc>
8831
8832 <const name="None" value="0">
8833 <desc>No/invalid class.</desc>
8834 </const>
8835 <const name="Driver" value="10">
8836 <desc>Driver.</desc>
8837 </const>
8838 <const name="Service" value="30">
8839 <desc>System service.</desc>
8840 </const>
8841 <const name="Program" value="50">
8842 <desc>Program.</desc>
8843 </const>
8844 <const name="Feature" value="100">
8845 <desc>Feature.</desc>
8846 </const>
8847 <const name="ThirdParty" value="999">
8848 <desc>Third party.</desc>
8849 </const>
8850 <const name="All" value="2147483646">
8851 <desc>All facility classes selected.</desc>
8852 </const>
8853 </enum>
8854
8855 <enum
8856 name="AdditionsFacilityStatus"
8857 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8858 >
8859 <desc>
8860 Guest Additions facility states.
8861 </desc>
8862
8863 <const name="Inactive" value="0">
8864 <desc>Facility is not active.</desc>
8865 </const>
8866 <const name="Paused" value="1">
8867 <desc>Facility has been paused.</desc>
8868 </const>
8869 <const name="PreInit" value="20">
8870 <desc>Facility is preparing to initialize.</desc>
8871 </const>
8872 <const name="Init" value="30">
8873 <desc>Facility is initializing.</desc>
8874 </const>
8875 <const name="Active" value="50">
8876 <desc>Facility is up and running.</desc>
8877 </const>
8878 <const name="Terminating" value="100">
8879 <desc>Facility is shutting down.</desc>
8880 </const>
8881 <const name="Terminated" value="101">
8882 <desc>Facility successfully shut down.</desc>
8883 </const>
8884 <const name="Failed" value="800">
8885 <desc>Facility failed to start.</desc>
8886 </const>
8887 <const name="Unknown" value="999">
8888 <desc>Facility status is unknown.</desc>
8889 </const>
8890 </enum>
8891
8892 <interface
8893 name="IAdditionsFacility" extends="$unknown"
8894 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8895 wsmap="struct"
8896 >
8897 <desc>
8898 Structure representing a Guest Additions facility.
8899 </desc>
8900
8901 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8902 <desc>The class this facility is part of.</desc>
8903 </attribute>
8904
8905 <attribute name="lastUpdated" type="long long" readonly="yes">
8906 <desc>
8907 Time stamp of the last status update,
8908 in milliseconds since 1970-01-01 UTC.
8909 </desc>
8910 </attribute>
8911
8912 <attribute name="name" type="wstring" readonly="yes">
8913 <desc>The facility's friendly name.</desc>
8914 </attribute>
8915
8916 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8917 <desc>The current status.</desc>
8918 </attribute>
8919
8920 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8921 <desc>The facility's type ID.</desc>
8922 </attribute>
8923 </interface>
8924
8925 <enum
8926 name="AdditionsRunLevelType"
8927 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8928 >
8929 <desc>
8930 Guest Additions run level type.
8931 </desc>
8932
8933 <const name="None" value="0">
8934 <desc>Guest Additions are not loaded.</desc>
8935 </const>
8936 <const name="System" value="1">
8937 <desc>Guest drivers are loaded.</desc>
8938 </const>
8939 <const name="Userland" value="2">
8940 <desc>Common components (such as application services) are loaded.</desc>
8941 </const>
8942 <const name="Desktop" value="3">
8943 <desc>Per-user desktop components are loaded.</desc>
8944 </const>
8945 </enum>
8946
8947 <enum
8948 name="AdditionsUpdateFlag"
8949 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8950 >
8951 <desc>
8952 Guest Additions update flags.
8953 </desc>
8954
8955 <const name="None" value="0">
8956 <desc>No flag set.</desc>
8957 </const>
8958 <const name="WaitForUpdateStartOnly" value="1">
8959 <desc>Starts the regular updating process and waits until the
8960 actual Guest Additions update inside the guest was started.
8961 This can be necessary due to needed interaction with the guest
8962 OS during the installation phase.</desc>
8963 </const>
8964 </enum>
8965
8966 <enum
8967 name="GuestSessionStatus"
8968 uuid="ac2669da-4624-44f2-85b5-0b0bfb8d8673"
8969 >
8970 <desc>
8971 Guest session status. This enumeration represents possible values of
8972 the <link to="IGuestSession::status"/> attribute.
8973 </desc>
8974 <const name="Undefined" value="0">
8975 <desc>Guest session is in an undefined state.</desc>
8976 </const>
8977 <const name="Starting" value="10">
8978 <desc>Guest session is being started.</desc>
8979 </const>
8980 <const name="Started" value="100">
8981 <desc>Guest session has been started.</desc>
8982 </const>
8983 <const name="Terminating" value="480">
8984 <desc>Guest session is being terminated.</desc>
8985 </const>
8986 <const name="Terminated" value="500">
8987 <desc>Guest session terminated normally.</desc>
8988 </const>
8989 <const name="TimedOutKilled" value="512">
8990 <desc>Guest session timed out and was killed.</desc>
8991 </const>
8992 <const name="TimedOutAbnormally" value="513">
8993 <desc>Guest session timed out and was not killed successfully.</desc>
8994 </const>
8995 <const name="Down" value="600">
8996 <desc>Service/OS is stopping, guest session was killed.</desc>
8997 </const>
8998 <const name="Error" value="800">
8999 <desc>Something went wrong.</desc>
9000 </const>
9001 </enum>
9002
9003 <enum
9004 name="GuestSessionWaitForFlag"
9005 uuid="bb7a372a-f635-4e11-a81a-e707f3a52ef5"
9006 >
9007 <desc>
9008 Guest session waiting flags. Multiple flags can be combined.
9009 </desc>
9010
9011 <const name="None" value="0">
9012 <desc>No waiting flags specified. Do not use this.</desc>
9013 </const>
9014 <const name="Start" value="1">
9015 <desc>Wait for the guest session being started.</desc>
9016 </const>
9017 <const name="Terminate" value="2">
9018 <desc>Wait for the guest session being terminated.</desc>
9019 </const>
9020 <const name="Status" value="4">
9021 <desc>Wait for the next guest session status change.</desc>
9022 </const>
9023 </enum>
9024
9025 <enum
9026 name="GuestSessionWaitResult"
9027 uuid="c0f6a8a5-fdb6-42bf-a582-56c6f82bcd2d"
9028 >
9029 <desc>
9030 Guest session waiting results. Depending on the session waiting flags (for
9031 more information see <link to="GuestSessionWaitForFlag"/>) the waiting result
9032 can vary based on the session's current status.
9033
9034 To wait for a guest session to terminate after it has been
9035 created by <link to="IGuest::createSession"/> one would specify
9036 GuestSessionWaitResult_Terminate.
9037 </desc>
9038
9039 <const name="None" value="0">
9040 <desc>No result was returned. Not being used.</desc>
9041 </const>
9042 <const name="Start" value="1">
9043 <desc>The guest session has been started.</desc>
9044 </const>
9045 <const name="Terminate" value="2">
9046 <desc>The guest session has been terminated.</desc>
9047 </const>
9048 <const name="Status" value="3">
9049 <desc>
9050 The guest session has changed its status. The status then can
9051 be retrieved via <link to="IGuestSession::status"/>.
9052 </desc>
9053 </const>
9054 <const name="Error" value="4">
9055 <desc>Error while executing the process.</desc>
9056 </const>
9057 <const name="Timeout" value="5">
9058 <desc>
9059 The waiting operation timed out. This also will happen
9060 when no event has been occured matching the
9061 current waiting flags in a <link to="IGuestSession::waitFor"/> call.
9062 </desc>
9063 </const>
9064 <const name="WaitFlagNotSupported" value="6">
9065 <desc>
9066 A waiting flag specified in the <link to="IGuestSession::waitFor"/> call
9067 is not supported by the guest.
9068 </desc>
9069 </const>
9070 </enum>
9071
9072 <enum
9073 name="FileSeekType"
9074 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
9075 >
9076 <desc>
9077 File seeking types.
9078 </desc>
9079
9080 <const name="Set" value="0">
9081 <desc>Seek from the start of the file.</desc>
9082 </const>
9083 <const name="Current" value="1">
9084 <desc>Seek from the current file position.</desc>
9085 </const>
9086 </enum>
9087
9088 <enum
9089 name="ProcessInputFlag"
9090 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
9091 >
9092 <desc>
9093 Guest process input flags.
9094 </desc>
9095 <const name="None" value="0">
9096 <desc>No flag set.</desc>
9097 </const>
9098 <const name="EndOfFile" value="1">
9099 <desc>End of file (input) reached.</desc>
9100 </const>
9101 </enum>
9102
9103 <enum
9104 name="ProcessOutputFlag"
9105 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
9106 >
9107 <desc>
9108 Guest process output flags for specifying which
9109 type of output to retrieve.
9110 </desc>
9111 <const name="None" value="0">
9112 <desc>No flags set. Get output from stdout.</desc>
9113 </const>
9114 <const name="StdErr" value="1">
9115 <desc>Get output from stderr.</desc>
9116 </const>
9117 </enum>
9118
9119 <enum
9120 name="ProcessWaitForFlag"
9121 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
9122 >
9123 <desc>
9124 Process waiting flags. Multiple flags can be combined.
9125 </desc>
9126
9127 <const name="None" value="0">
9128 <desc>No waiting flags specified. Do not use this.</desc>
9129 </const>
9130 <const name="Start" value="1">
9131 <desc>Wait for the process being started.</desc>
9132 </const>
9133 <const name="Terminate" value="2">
9134 <desc>Wait for the process being terminated.</desc>
9135 </const>
9136 <const name="StdIn" value="4">
9137 <desc>Wait for stdin becoming available.</desc>
9138 </const>
9139 <const name="StdOut" value="8">
9140 <desc>Wait for data becoming available on stdout.</desc>
9141 </const>
9142 <const name="StdErr" value="16">
9143 <desc>Wait for data becoming available on stderr.</desc>
9144 </const>
9145 </enum>
9146
9147 <enum
9148 name="ProcessWaitResult"
9149 uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
9150 >
9151 <desc>
9152 Process waiting results. Depending on the process waiting flags (for
9153 more information see <link to="ProcessWaitForFlag"/>) the waiting result
9154 can vary based on the processes' current status.
9155
9156 To wait for a guest process to terminate after it has been
9157 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9158 one would specify ProcessWaitResult_Terminate.
9159
9160 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9161 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9162 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9163 ProcessWaitResult_StdErr.
9164 </desc>
9165
9166 <const name="None" value="0">
9167 <desc>No result was returned. Not being used.</desc>
9168 </const>
9169 <const name="Start" value="1">
9170 <desc>The process has been started.</desc>
9171 </const>
9172 <const name="Terminate" value="2">
9173 <desc>The process has been terminated.</desc>
9174 </const>
9175 <const name="Status" value="3">
9176 <desc>
9177 The process has changed its status. The status then can
9178 be retrieved via <link to="IProcess::status"/>.
9179 </desc>
9180 </const>
9181 <const name="Error" value="4">
9182 <desc>Error while executing the process.</desc>
9183 </const>
9184 <const name="Timeout" value="5">
9185 <desc>
9186 The waiting operation timed out. This also will happen
9187 when no event has been occured matching the
9188 current waiting flags in a <link to="IProcess::waitFor"/> call.
9189 </desc>
9190 </const>
9191 <const name="StdIn" value="6">
9192 <desc>
9193 The process signalled that stdin became available for writing
9194 and that the process awaits input now.</desc>
9195 </const>
9196 <const name="StdOut" value="7">
9197 <desc>Data on stdout became available for reading.</desc>
9198 </const>
9199 <const name="StdErr" value="8">
9200 <desc>Data on stderr became available for reading.</desc>
9201 </const>
9202 <const name="WaitFlagNotSupported" value="9">
9203 <desc>
9204 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9205 is not supported by the guest.
9206 </desc>
9207 </const>
9208 </enum>
9209
9210 <enum
9211 name="CopyFileFlag"
9212 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9213 >
9214 <desc>
9215 File copying flags.
9216 </desc>
9217 <const name="None" value="0">
9218 <desc>No flag set.</desc>
9219 </const>
9220 <const name="Recursive" value="1">
9221 <desc>Copy directories recursively.</desc>
9222 </const>
9223 <const name="Update" value="2">
9224 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9225 </const>
9226 <const name="FollowLinks" value="4">
9227 <desc>Follow symbolic links.</desc>
9228 </const>
9229 </enum>
9230
9231 <enum
9232 name="DirectoryCreateFlag"
9233 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9234 >
9235 <desc>
9236 Directory creation flags.
9237 </desc>
9238 <const name="None" value="0">
9239 <desc>No flag set.</desc>
9240 </const>
9241 <const name="Parents" value="1">
9242 <desc>No error if existing, make parent directories as needed.</desc>
9243 </const>
9244 </enum>
9245
9246 <enum
9247 name="DirectoryRemoveRecFlag"
9248 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9249 >
9250 <desc>
9251 Directory recursive removement flags.
9252 </desc>
9253
9254 <const name="None" value="0">
9255 <desc>No flag set.</desc>
9256 </const>
9257 <const name="ContentAndDir" value="1">
9258 <desc>Delete the content of the directory and the directory itself.</desc>
9259 </const>
9260 <const name="ContentOnly" value="2">
9261 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9262 </const>
9263 </enum>
9264
9265 <enum
9266 name="PathRenameFlag"
9267 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9268 >
9269 <desc>
9270 Path renaming flags.
9271 </desc>
9272
9273 <const name="None" value="0">
9274 <desc>No flag set.</desc>
9275 </const>
9276 <const name="NoReplace" value="1">
9277 <desc>Do not replace anything.</desc>
9278 </const>
9279 <const name="Replace" value="2">
9280 <desc>This will replace attempt any target which isn't a directory.</desc>
9281 </const>
9282 <const name="NoSymlinks" value="4">
9283 <desc>Don't allow symbolic links as part of the path.</desc>
9284 </const>
9285 </enum>
9286
9287 <enum
9288 name="ProcessCreateFlag"
9289 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9290 >
9291 <desc>
9292 Guest process execution flags.
9293 </desc>
9294
9295 <const name="None" value="0">
9296 <desc>No flag set.</desc>
9297 </const>
9298 <const name="WaitForProcessStartOnly" value="1">
9299 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9300 process itself then uses an infinite timeout.</desc>
9301 </const>
9302 <const name="IgnoreOrphanedProcesses" value="2">
9303 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9304 </const>
9305 <const name="Hidden" value="4">
9306 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9307 </const>
9308 <const name="NoProfile" value="8">
9309 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9310 </const>
9311 <const name="WaitForStdOut" value="16">
9312 <desc>The guest process waits until all data from stdout is read out.</desc>
9313 </const>
9314 <const name="WaitForStdErr" value="32">
9315 <desc>The guest process waits until all data from stderr is read out.</desc>
9316 </const>
9317 <const name="ExpandArguments" value="64">
9318 <desc>Expands environment variables in process arguments.</desc>
9319 </const>
9320 </enum>
9321
9322 <enum
9323 name="ProcessPriority"
9324 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9325 >
9326 <desc>
9327 Process priorities.
9328 </desc>
9329
9330 <const name="Invalid" value="0">
9331 <desc>Invalid priority, do not use.</desc>
9332 </const>
9333 <const name="Default" value="1">
9334 <desc>Default process priority determined by the OS.</desc>
9335 </const>
9336 </enum>
9337
9338 <enum
9339 name="SymlinkType"
9340 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9341 >
9342 <desc>
9343 Symbolic link types.
9344 </desc>
9345
9346 <const name="Unknown" value="0">
9347 <desc>It is not known what is being targeted.</desc>
9348 </const>
9349 <const name="Directory" value="1">
9350 <desc>The link targets a directory.</desc>
9351 </const>
9352 <const name="File" value="2">
9353 <desc>The link targets a file (or whatever else).</desc>
9354 </const>
9355 </enum>
9356
9357 <enum
9358 name="SymlinkReadFlag"
9359 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9360 >
9361 <desc>
9362 Symbolic link reading flags.
9363 </desc>
9364
9365 <const name="None" value="0">
9366 <desc>No flags set.</desc>
9367 </const>
9368 <const name="NoSymlinks" value="1">
9369 <desc>Don't allow symbolic links as part of the path.</desc>
9370 </const>
9371 </enum>
9372
9373 <enum
9374 name="ProcessStatus"
9375 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9376 >
9377 <desc>
9378 Process execution statuses.
9379 </desc>
9380 <const name="Undefined" value="0">
9381 <desc>Process is in an undefined state.</desc>
9382 </const>
9383 <const name="Starting" value="10">
9384 <desc>Process is being started.</desc>
9385 </const>
9386 <const name="Started" value="100">
9387 <desc>Process has been started.</desc>
9388 </const>
9389 <const name="Paused" value="110">
9390 <desc>Process has been paused.</desc>
9391 </const>
9392 <const name="Terminating" value="480">
9393 <desc>Process is being terminated.</desc>
9394 </const>
9395 <const name="TerminatedNormally" value="500">
9396 <desc>Process terminated normally.</desc>
9397 </const>
9398 <const name="TerminatedSignal" value="510">
9399 <desc>Process terminated via signal.</desc>
9400 </const>
9401 <const name="TerminatedAbnormally" value="511">
9402 <desc>Process terminated abnormally.</desc>
9403 </const>
9404 <const name="TimedOutKilled" value="512">
9405 <desc>Process timed out and was killed.</desc>
9406 </const>
9407 <const name="TimedOutAbnormally" value="513">
9408 <desc>Process timed out and was not killed successfully.</desc>
9409 </const>
9410 <const name="Down" value="600">
9411 <desc>Service/OS is stopping, process was killed.</desc>
9412 </const>
9413 <const name="Error" value="800">
9414 <desc>Something went wrong.</desc>
9415 </const>
9416 </enum>
9417
9418 <enum
9419 name="FsObjType"
9420 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9421 >
9422 <desc>
9423 File system object type.
9424 </desc>
9425
9426 <const name="Undefined" value="0">
9427 <desc>Type is undefined / unknown.</desc>
9428 </const>
9429 <const name="FIFO" value="1">
9430 <desc>Named pipe.</desc>
9431 </const>
9432 <const name="DevChar" value="10">
9433 <desc>Character device.</desc>
9434 </const>
9435 <const name="DevBlock" value="11">
9436 <desc>Block device.</desc>
9437 </const>
9438 <const name="Directory" value="50">
9439 <desc>Directory.</desc>
9440 </const>
9441 <const name="File" value="80">
9442 <desc>File.</desc>
9443 </const>
9444 <const name="Symlink" value="100">
9445 <desc>Symlink.</desc>
9446 </const>
9447 <const name="Socket" value="200">
9448 <desc>Socket.</desc>
9449 </const>
9450 <const name="Whiteout" value="400">
9451 <desc>Whiteout.</desc>
9452 </const>
9453 </enum>
9454
9455 <enum
9456 name="DragAndDropAction"
9457 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9458 >
9459 <desc>
9460 Possible actions within an Drag and Drop operation.
9461 </desc>
9462
9463 <const name="Ignore" value="0">
9464 <desc>Do nothing.</desc>
9465 </const>
9466
9467 <const name="Copy" value="1">
9468 <desc>Copy the item to the target.</desc>
9469 </const>
9470
9471 <const name="Move" value="2">
9472 <desc>Move the item to the target.</desc>
9473 </const>
9474
9475 <const name="Link" value="3">
9476 <desc>Link the item from within the target.</desc>
9477 </const>
9478 </enum>
9479
9480 <enum
9481 name="DirectoryOpenFlag"
9482 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9483 >
9484 <desc>
9485 Directory open flags.
9486 </desc>
9487 <const name="None" value="0">
9488 <desc>No flag set.</desc>
9489 </const>
9490 <const name="NoSymlinks" value="1">
9491 <desc>Don't allow symbolic links as part of the path.</desc>
9492 </const>
9493 </enum>
9494
9495 <interface
9496 name="IGuestSession" extends="$unknown"
9497 uuid="56f551a2-f924-43ab-8a69-a954109db878"
9498 wsmap="managed"
9499 >
9500 <desc>
9501 A guest session represents one impersonated user account on the guest, so
9502 every operation will use the same credentials specified when creating
9503 the session object via <link to="IGuest::createSession"/>.
9504
9505 There can be a maximum of 32 sessions at once per VM. Each session keeps
9506 track of its started guest processes, opened guest files or guest directories.
9507 To work on guest files or directories a guest session offers methods to open
9508 or create such objects (see <link to="IGuestSession::fileOpen"/> or
9509 <link to="IGuestSession::directoryOpen"/> for example).
9510
9511 When done with either of these objects, including the guest session itself,
9512 use the appropriate close() method to let the object do its cleanup work.
9513
9514 Every guest session has its own environment variable block which gets
9515 automatically applied when starting a new guest process via
9516 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
9517 To override (or unset) certain environment variables already set by the
9518 guest session, one can specify a per-process environment block when using
9519 one of the both above mentioned process creation calls.
9520 </desc>
9521
9522 <attribute name="user" type="wstring" readonly="yes">
9523 <desc>Returns the user name used by this session to impersonate
9524 users on the guest.
9525 </desc>
9526 </attribute>
9527
9528 <attribute name="domain" type="wstring" readonly="yes">
9529 <desc>Returns the domain name used by this session to impersonate
9530 users on the guest.
9531 </desc>
9532 </attribute>
9533
9534 <attribute name="name" type="wstring" readonly="yes">
9535 <desc>Returns the session's friendly name.</desc>
9536 </attribute>
9537
9538 <attribute name="id" type="unsigned long" readonly="yes">
9539 <desc>Returns the internal session ID.</desc>
9540 </attribute>
9541
9542 <attribute name="timeout" type="unsigned long">
9543 <desc>
9544 Returns the session timeout (in ms).
9545 <result name="E_NOTIMPL">
9546 The method is not implemented yet.
9547 </result>
9548 </desc>
9549 </attribute>
9550
9551 <attribute name="status" type="GuestSessionStatus" readonly="yes">
9552 <desc>Returns the current session status.</desc>
9553 </attribute>
9554
9555 <attribute name="environment" type="wstring" safearray="yes">
9556 <desc>
9557 Returns the current session environment.
9558 </desc>
9559 </attribute>
9560
9561 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9562 <desc>
9563 Returns all current guest processes.
9564 </desc>
9565 </attribute>
9566
9567 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9568 <desc>
9569 Returns all currently opened guest directories.
9570 </desc>
9571 </attribute>
9572
9573 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9574 <desc>
9575 Returns all currently opened guest files.
9576 </desc>
9577 </attribute>
9578
9579 <method name="close">
9580 <desc>
9581 Closes this session. All opened guest directories, files and
9582 processes which are not referenced by clients anymore will be
9583 uninitialized.
9584 </desc>
9585 </method>
9586
9587 <method name="copyFrom">
9588 <desc>
9589 Copies a file from guest to the host.
9590
9591 <result name="VBOX_E_IPRT_ERROR">
9592 Error starting the copy operation.
9593 </result>
9594 </desc>
9595 <param name="source" type="wstring" dir="in">
9596 <desc>Source file on the guest to copy to the host.</desc>
9597 </param>
9598 <param name="dest" type="wstring" dir="in">
9599 <desc>Destination file name on the host.</desc>
9600 </param>
9601 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9602 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9603 </param>
9604 <param name="progress" type="IProgress" dir="return">
9605 <desc>Progress object to track the operation completion.</desc>
9606 </param>
9607 </method>
9608
9609 <method name="copyTo">
9610 <desc>
9611 Copies a file from host to the guest.
9612
9613 <result name="VBOX_E_IPRT_ERROR">
9614 Error starting the copy operation.
9615 </result>
9616 </desc>
9617 <param name="source" type="wstring" dir="in">
9618 <desc>Source file on the host to copy to the guest.</desc>
9619 </param>
9620 <param name="dest" type="wstring" dir="in">
9621 <desc>Destination file name on the guest.</desc>
9622 </param>
9623 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9624 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9625 </param>
9626 <param name="progress" type="IProgress" dir="return">
9627 <desc>Progress object to track the operation completion.</desc>
9628 </param>
9629 </method>
9630
9631 <method name="directoryCreate">
9632 <desc>
9633 Create a directory on the guest.
9634
9635 <result name="VBOX_E_IPRT_ERROR">
9636 Error while creating the directory.
9637 </result>
9638 </desc>
9639 <param name="path" type="wstring" dir="in">
9640 <desc>Full path of directory to create.</desc>
9641 </param>
9642 <param name="mode" type="unsigned long" dir="in">
9643 <desc>File creation mode.</desc>
9644 </param>
9645 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9646 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9647 </param>
9648 </method>
9649
9650 <method name="directoryCreateTemp">
9651 <desc>
9652 Create a temporary directory on the guest.
9653
9654 <result name="VBOX_E_NOT_SUPPORTED">
9655 The operation is not possible as requested on this particular
9656 guest type.
9657 </result>
9658 <result name="E_INVALIDARG">
9659 Invalid argument. This includes an incorrectly formatted template,
9660 or a non-absolute path.
9661 </result>
9662 <result name="VBOX_E_IPRT_ERROR">
9663 The temporary directory could not be created. Possible reasons
9664 include a non-existing path or an insecure path when the secure
9665 option was requested.
9666 </result>
9667 </desc>
9668 <param name="templateName" type="wstring" dir="in">
9669 <desc>Template for the name of the directory to create. This must
9670 contain at least one 'X' character. The first group of consecutive
9671 'X' characters in the template will be replaced by a random
9672 alphanumeric string to produce a unique name.</desc>
9673 </param>
9674 <param name="mode" type="unsigned long" dir="in">
9675 <desc>The mode of the directory to create. Use 0700 unless there are
9676 reasons not to. This parameter is ignored if "secure" is specified.
9677 </desc>
9678 </param>
9679 <param name="path" type="wstring" dir="in">
9680 <desc>The absolute path to create the temporary directory in.</desc>
9681 </param>
9682 <param name="secure" type="boolean" dir="in">
9683 <desc>Whether to fail if the directory can not be securely created.
9684 Currently this means that another unprivileged user cannot
9685 manipulate the path specified or remove the temporary directory
9686 after it has been created. Also causes the mode specified to be
9687 ignored. May not be supported on all guest types.</desc>
9688 </param>
9689 <param name="directory" type="wstring" dir="return">
9690 <desc>On success this will contain the name of the directory created
9691 with full path.</desc>
9692 </param>
9693 </method>
9694
9695 <method name="directoryExists">
9696 <desc>
9697 Checks whether a directory exists on the guest or not.
9698
9699 <result name="VBOX_E_IPRT_ERROR">
9700 Error while checking existence of the directory specified.
9701 </result>
9702 </desc>
9703 <param name="path" type="wstring" dir="in">
9704 <desc>Directory to check existence for.</desc>
9705 </param>
9706 <param name="exists" type="boolean" dir="return">
9707 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9708 </param>
9709 </method>
9710
9711 <method name="directoryOpen">
9712 <desc>
9713 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9714 can be used for further operations.
9715
9716 <result name="VBOX_E_OBJECT_NOT_FOUND">
9717 Directory to open was not found.
9718 </result>
9719 <result name="VBOX_E_IPRT_ERROR">
9720 Error while opening the directory.
9721 </result>
9722 </desc>
9723 <param name="path" type="wstring" dir="in">
9724 <desc>Full path to file to open.</desc>
9725 </param>
9726 <param name="filter" type="wstring" dir="in">
9727 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
9728 </param>
9729 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9730 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
9731 </param>
9732 <param name="directory" type="IGuestDirectory" dir="return">
9733 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
9734 </param>
9735 </method>
9736
9737 <method name="directoryQueryInfo">
9738 <desc>
9739 Queries information of a directory on the guest.
9740
9741 <result name="VBOX_E_OBJECT_NOT_FOUND">
9742 Directory to query information for was not found.
9743 </result>
9744 <result name="VBOX_E_IPRT_ERROR">
9745 Error querying information.
9746 </result>
9747 </desc>
9748 <param name="path" type="wstring" dir="in">
9749 <desc>Directory to query information for.</desc>
9750 </param>
9751 <param name="info" type="IGuestFsObjInfo" dir="return">
9752 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9753 </param>
9754 </method>
9755
9756 <method name="directoryRemove">
9757 <desc>
9758 Removes a guest directory if not empty.
9759
9760 <result name="E_NOTIMPL">
9761 The method is not implemented yet.
9762 </result>
9763 </desc>
9764 <param name="path" type="wstring" dir="in">
9765 <desc>Full path of directory to remove.</desc>
9766 </param>
9767 </method>
9768
9769 <method name="directoryRemoveRecursive">
9770 <desc>
9771 Removes a guest directory recursively.
9772
9773 <result name="E_NOTIMPL">
9774 The method is not implemented yet.
9775 </result>
9776 </desc>
9777 <param name="path" type="wstring" dir="in">
9778 <desc>Full path of directory to remove recursively.</desc>
9779 </param>
9780 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
9781 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
9782 </param>
9783 <param name="progress" type="IProgress" dir="return">
9784 <desc>Progress object to track the operation completion.</desc>
9785 </param>
9786 </method>
9787
9788 <method name="directoryRename">
9789 <desc>
9790 Renames a directory on the guest.
9791
9792 <result name="E_NOTIMPL">
9793 The method is not implemented yet.
9794 </result>
9795 </desc>
9796 <param name="source" type="wstring" dir="in">
9797 <desc>Source directory to rename.</desc>
9798 </param>
9799 <param name="dest" type="wstring" dir="in">
9800 <desc>Destination directory to rename the source to.</desc>
9801 </param>
9802 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9803 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9804 </param>
9805 </method>
9806
9807 <method name="directorySetACL">
9808 <desc>
9809 Sets the ACL (Access Control List) of a guest directory.
9810
9811 <result name="E_NOTIMPL">
9812 The method is not implemented yet.
9813 </result>
9814 </desc>
9815 <param name="path" type="wstring" dir="in">
9816 <desc>Full path of directory to set the ACL for.</desc>
9817 </param>
9818 <param name="acl" type="wstring" dir="in">
9819 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9820 </param>
9821 </method>
9822
9823 <method name="environmentClear">
9824 <desc>
9825 Clears (deletes) all session environment variables.
9826
9827 <result name="VBOX_E_IPRT_ERROR">
9828 Error while clearing the session environment variables.
9829 </result>
9830 </desc>
9831 </method>
9832
9833 <method name="environmentGet">
9834 <desc>
9835 Gets the value of a session environment variable.
9836
9837 <result name="VBOX_E_IPRT_ERROR">
9838 Error while getting the value of the session environment variable.
9839 </result>
9840 </desc>
9841 <param name="name" type="wstring" dir="in">
9842 <desc>Name of session environment variable to get the value for.</desc>
9843 </param>
9844 <param name="value" type="wstring" dir="return">
9845 <desc>
9846 Value of the session environment variable specified. If this variable
9847 does not exist and empty value will be returned.
9848 </desc>
9849 </param>
9850 </method>
9851
9852 <method name="environmentSet">
9853 <desc>
9854 Sets a session environment variable.
9855
9856 <result name="VBOX_E_IPRT_ERROR">
9857 Error while setting the session environment variable.
9858 </result>
9859 </desc>
9860 <param name="name" type="wstring" dir="in">
9861 <desc>Name of session environment variable to set.</desc>
9862 </param>
9863 <param name="value" type="wstring" dir="in">
9864 <desc>Value to set the session environment variable to.</desc>
9865 </param>
9866 </method>
9867
9868 <method name="environmentUnset">
9869 <desc>
9870 Unsets session environment variable.
9871
9872 <result name="VBOX_E_IPRT_ERROR">
9873 Error while unsetting the session environment variable.
9874 </result>
9875 </desc>
9876 <param name="name" type="wstring" dir="in">
9877 <desc>Name of session environment variable to unset (clear).</desc>
9878 </param>
9879 </method>
9880
9881 <method name="fileCreateTemp">
9882 <desc>
9883 Creates a temporary file on the guest.
9884
9885 <result name="VBOX_E_NOT_SUPPORTED">
9886 The operation is not possible as requested on this particular
9887 guest type.
9888 </result>
9889 <result name="E_INVALIDARG">
9890 Invalid argument. This includes an incorrectly formatted template,
9891 or a non-absolute path.
9892 </result>
9893 <result name="VBOX_E_IPRT_ERROR">
9894 The temporary file could not be created. Possible reasons include
9895 a non-existing path or an insecure path when the secure
9896 option was requested.
9897 </result>
9898 </desc>
9899 <param name="templateName" type="wstring" dir="in">
9900 <desc>Template for the name of the file to create. This must contain
9901 at least one 'X' character. The first group of consecutive 'X'
9902 characters in the template will be replaced by a random
9903 alphanumeric string to produce a unique name.
9904 </desc>
9905 </param>
9906 <param name="mode" type="unsigned long" dir="in">
9907 <desc>The mode of the file to create. Use 0700 unless there are
9908 reasons not to. This parameter is ignored if "secure" is specified.
9909 </desc>
9910 </param>
9911 <param name="path" type="wstring" dir="in">
9912 <desc>The absolute path to create the temporary file in.</desc>
9913 </param>
9914 <param name="secure" type="boolean" dir="in">
9915 <desc>Whether to fail if the file can not be securely created.
9916 Currently this means that another unprivileged user cannot
9917 manipulate the path specified or remove the temporary file after
9918 it has been created. Also causes the mode specified to be ignored.
9919 May not be supported on all guest types.</desc>
9920 </param>
9921 <param name="file" type="IGuestFile" dir="return">
9922 <desc>On success this will contain an open file object for the new
9923 temporary file.
9924 </desc>
9925 </param>
9926 </method>
9927
9928 <method name="fileExists">
9929 <desc>
9930 Checks whether a file exists on the guest or not.
9931
9932 <result name="VBOX_E_IPRT_ERROR">
9933 Error while checking existence of the file specified.
9934 </result>
9935 </desc>
9936 <param name="path" type="wstring" dir="in">
9937 <desc>File to check existence for.</desc>
9938 </param>
9939 <param name="exists" type="boolean" dir="return">
9940 <desc>Returns @c true if the file exists, @c false if not.</desc>
9941 </param>
9942 </method>
9943
9944 <method name="fileRemove">
9945 <desc>
9946 Removes a single file on the guest.
9947
9948 <result name="VBOX_E_OBJECT_NOT_FOUND">
9949 File to remove was not found.
9950 </result>
9951 <result name="VBOX_E_IPRT_ERROR">
9952 Error while removing the file.
9953 </result>
9954 </desc>
9955 <param name="path" type="wstring" dir="in">
9956 <desc>Path to the file to remove.</desc>
9957 </param>
9958 </method>
9959
9960 <method name="fileOpen">
9961 <desc>
9962 Opens a file and creates a <link to="IGuestFile"/> object that
9963 can be used for further operations.
9964
9965 <result name="VBOX_E_OBJECT_NOT_FOUND">
9966 File to open was not found.
9967 </result>
9968 <result name="VBOX_E_IPRT_ERROR">
9969 Error while opening the file.
9970 </result>
9971 </desc>
9972 <param name="path" type="wstring" dir="in">
9973 <desc>Full path to file to open.</desc>
9974 </param>
9975 <param name="openMode" type="wstring" dir="in">
9976 <desc>The file open mode.</desc>
9977 </param>
9978 <param name="disposition" type="wstring" dir="in">
9979 <desc>The file disposition.</desc>
9980 </param>
9981 <param name="creationMode" type="unsigned long" dir="in">
9982 <desc>The file creation mode.</desc>
9983 </param>
9984 <param name="offset" type="long long" dir="in">
9985 <desc>The initial read/write offset.</desc>
9986 </param>
9987 <param name="file" type="IGuestFile" dir="return">
9988 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
9989 </param>
9990 </method>
9991
9992 <method name="fileQueryInfo">
9993 <desc>
9994 Queries information of a file on the guest.
9995
9996 <result name="VBOX_E_OBJECT_NOT_FOUND">
9997 File to query information for was not found.
9998 </result>
9999 <result name="VBOX_E_IPRT_ERROR">
10000 Error querying information.
10001 </result>
10002 </desc>
10003 <param name="path" type="wstring" dir="in">
10004 <desc>File to query information for.</desc>
10005 </param>
10006 <param name="info" type="IGuestFsObjInfo" dir="return">
10007 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
10008 </param>
10009 </method>
10010
10011 <method name="fileQuerySize">
10012 <desc>
10013 Queries the size of a file on the guest.
10014
10015 <result name="VBOX_E_OBJECT_NOT_FOUND">
10016 File to rename was not found.
10017 </result>
10018 <result name="VBOX_E_IPRT_ERROR">
10019 Error querying file size.
10020 </result>
10021 </desc>
10022 <param name="path" type="wstring" dir="in">
10023 <desc>File to query the size for.</desc>
10024 </param>
10025 <param name="size" type="long long" dir="return">
10026 <desc>Queried file size.</desc>
10027 </param>
10028 </method>
10029
10030 <method name="fileRename">
10031 <desc>
10032 Renames a file on the guest.
10033
10034 <result name="E_NOTIMPL">
10035 The method is not implemented yet.
10036 </result>
10037 </desc>
10038 <param name="source" type="wstring" dir="in">
10039 <desc>Source file to rename.</desc>
10040 </param>
10041 <param name="dest" type="wstring" dir="in">
10042 <desc>Destination file to rename the source to.</desc>
10043 </param>
10044 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
10045 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
10046 </param>
10047 </method>
10048
10049 <method name="fileSetACL">
10050 <desc>
10051 Sets the ACL (Access Control List) of a file on the guest.
10052
10053 <result name="E_NOTIMPL">
10054 The method is not implemented yet.
10055 </result>
10056 </desc>
10057 <param name="file" type="wstring" dir="in">
10058 <desc>Full path of file to set the ACL for.</desc>
10059 </param>
10060 <param name="acl" type="wstring" dir="in">
10061 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
10062 </param>
10063 </method>
10064
10065 <method name="processCreate">
10066 <desc>
10067 Executes an existing program inside the guest VM.
10068
10069 <note>
10070 Starting at VirtualBox 4.2 guest process execution by default is limited
10071 to serve up to 255 guest processes at a time. If all 255 guest processes
10072 are still active and running, starting a new guest process will result in an
10073 appropriate error message.
10074
10075 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10076 is / are set, the guest process will not exit until all data from the specified
10077 stream(s) is / are read out.
10078
10079 To raise or lower the guest process execution limit, either the guest property
10080 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10081 command line by specifying "--control-procs-max-kept" needs to be modified.
10082 A restart of the guest OS is required afterwards. To serve unlimited guest
10083 processes, a value of "0" needs to be set (not recommended).
10084 </note>
10085
10086 <result name="VBOX_E_IPRT_ERROR">
10087 Could not create process.
10088 </result>
10089 </desc>
10090 <param name="command" type="wstring" dir="in">
10091 <desc>
10092 Full path name of the command to execute on the guest; the
10093 commands has to exists in the guest VM in order to be executed.
10094 </desc>
10095 </param>
10096 <param name="arguments" type="wstring" dir="in" safearray="yes">
10097 <desc>Array of arguments passed to the execution command.</desc>
10098 </param>
10099 <param name="environment" type="wstring" dir="in" safearray="yes">
10100 <desc>
10101 Environment variables that can be set while the command is being
10102 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10103 variable just set its name ("NAME") without a value.
10104
10105 This parameter can be used to override environment variables set by
10106 the guest session, which will be applied to the newly started process
10107 in any case.
10108 </desc>
10109 </param>
10110 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10111 <desc>
10112 Process creation flags;
10113 see <link to="ProcessCreateFlag"/> for more information.
10114 </desc>
10115 </param>
10116 <param name="timeoutMS" type="unsigned long" dir="in">
10117 <desc>
10118 Timeout (in ms) to wait for the operation to complete.
10119 Pass 0 for an infinite timeout.
10120 </desc>
10121 </param>
10122 <param name="guestProcess" type="IGuestProcess" dir="return">
10123 <desc>Guest process object of the newly created process.</desc>
10124 </param>
10125 </method>
10126
10127 <method name="processCreateEx">
10128 <desc>
10129 Executes an existing program inside the guest VM. Extended version for
10130 also setting the process priority and affinity.
10131
10132 <note>
10133 Starting at VirtualBox 4.2 guest process execution by default is limited
10134 to serve up to 255 guest processes at a time. If all 255 guest processes
10135 are still active and running, starting a new guest process will result in an
10136 appropriate error message.
10137
10138 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10139 is / are set, the guest process will not exit until all data from the specified
10140 stream(s) is / are read out.
10141
10142 To raise or lower the guest process execution limit, either the guest property
10143 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10144 command line by specifying "--control-procs-max-kept" needs to be modified.
10145 A restart of the guest OS is required afterwards. To serve unlimited guest
10146 processes, a value of "0" needs to be set (not recommended).
10147 </note>
10148
10149 <result name="VBOX_E_IPRT_ERROR">
10150 Could not create process.
10151 </result>
10152 </desc>
10153 <param name="command" type="wstring" dir="in">
10154 <desc>
10155 Full path name of the command to execute on the guest; the
10156 commands has to exists in the guest VM in order to be executed.
10157 </desc>
10158 </param>
10159 <param name="arguments" type="wstring" dir="in" safearray="yes">
10160 <desc>Array of arguments passed to the execution command.</desc>
10161 </param>
10162 <param name="environment" type="wstring" dir="in" safearray="yes">
10163 <desc>
10164 Environment variables that can be set while the command is being
10165 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10166 variable just set its name ("NAME") without a value.
10167
10168 This parameter can be used to override environment variables set by
10169 the guest session, which will be applied to the newly started process
10170 in any case.
10171 </desc>
10172 </param>
10173 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10174 <desc>
10175 Process creation flags;
10176 see <link to="ProcessCreateFlag"/> for more information.
10177 </desc>
10178 </param>
10179 <param name="timeoutMS" type="unsigned long" dir="in">
10180 <desc>
10181 Timeout (in ms) to wait for the operation to complete.
10182 Pass 0 for an infinite timeout.
10183 </desc>
10184 </param>
10185 <param name="priority" type="ProcessPriority" dir="in">
10186 <desc>
10187 Process priority to use for execution;
10188 see see <link to="ProcessPriority"/> for more information.</desc>
10189 </param>
10190 <param name="affinity" type="long" dir="in" safearray="yes">
10191 <desc>
10192 Process affinity to use for execution. This parameter
10193 is not implemented yet.
10194 </desc>
10195 </param>
10196 <param name="guestProcess" type="IGuestProcess" dir="return">
10197 <desc>Guest process object of the newly created process.</desc>
10198 </param>
10199 </method>
10200
10201 <method name="processGet">
10202 <desc>
10203 Gets a certain guest process by its process ID (PID).
10204 </desc>
10205 <param name="pid" type="unsigned long" dir="in">
10206 <desc>Process ID (PID) to get guest process for.</desc>
10207 </param>
10208 <param name="guestProcess" type="IGuestProcess" dir="return">
10209 <desc>Guest process of specified process ID (PID).</desc>
10210 </param>
10211 </method>
10212
10213 <method name="symlinkCreate">
10214 <desc>
10215 Creates a symbolic link on the guest.
10216
10217 <result name="E_NOTIMPL">
10218 The method is not implemented yet.
10219 </result>
10220 </desc>
10221 <param name="source" type="wstring" dir="in">
10222 <desc>The name of the symbolic link.</desc>
10223 </param>
10224 <param name="target" type="wstring" dir="in">
10225 <desc>The path to the symbolic link target.</desc>
10226 </param>
10227 <param name="type" type="SymlinkType" dir="in">
10228 <desc>
10229 The symbolic link type;
10230 see <link to="SymlinkReadFlag"/> for more information.
10231 </desc>
10232 </param>
10233 </method>
10234
10235 <method name="symlinkExists">
10236 <desc>
10237 Checks whether a symbolic link exists on the guest or not.
10238
10239 <result name="E_NOTIMPL">
10240 The method is not implemented yet.
10241 </result>
10242 </desc>
10243 <param name="symlink" type="wstring" dir="in">
10244 <desc>Symbolic link to check existence for.</desc>
10245 </param>
10246 <param name="exists" type="boolean" dir="return">
10247 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10248 </param>
10249 </method>
10250
10251 <method name="symlinkRead">
10252 <desc>
10253 Reads a symbolic link on the guest.
10254
10255 <result name="E_NOTIMPL">
10256 The method is not implemented yet.
10257 </result>
10258 </desc>
10259 <param name="symlink" type="wstring" dir="in">
10260 <desc>Full path to symbolic link to read.</desc>
10261 </param>
10262 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10263 <desc>
10264 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10265 </desc>
10266 </param>
10267 <param name="target" type="wstring" dir="return">
10268 <desc>
10269 Target of the symbolic link pointing to, if found.
10270 </desc>
10271 </param>
10272 </method>
10273
10274 <method name="symlinkRemoveDirectory">
10275 <desc>
10276 Removes a symbolic link on the guest if it's a directory.
10277
10278 <result name="E_NOTIMPL">
10279 The method is not implemented yet.
10280 </result>
10281 </desc>
10282 <param name="path" type="wstring" dir="in">
10283 <desc>Symbolic link to remove.</desc>
10284 </param>
10285 </method>
10286
10287 <method name="symlinkRemoveFile">
10288 <desc>
10289 Removes a symbolic link on the guest if it's a file.
10290
10291 <result name="E_NOTIMPL">
10292 The method is not implemented yet.
10293 </result>
10294 </desc>
10295 <param name="file" type="wstring" dir="in">
10296 <desc>Symbolic link to remove.</desc>
10297 </param>
10298 </method>
10299
10300 <method name="waitFor">
10301 <desc>
10302 Waits for one more events to happen.
10303 </desc>
10304 <param name="waitFor" type="unsigned long" dir="in">
10305 <desc>
10306 Specifies what to wait for;
10307 see <link to="GuestSessionWaitForFlag"/> for more information.
10308 </desc>
10309 </param>
10310 <param name="timeoutMS" type="unsigned long" dir="in">
10311 <desc>
10312 Timeout (in ms) to wait for the operation to complete.
10313 Pass 0 for an infinite timeout.
10314 </desc>
10315 </param>
10316 <param name="reason" type="GuestSessionWaitResult" dir="return">
10317 <desc>
10318 The overall wait result;
10319 see <link to="GuestSessionWaitResult"/> for more information.
10320 </desc>
10321 </param>
10322 </method>
10323
10324 <method name="waitForArray">
10325 <desc>
10326 Waits for one more events to happen.
10327 Scriptable version of <link to="#waitFor" />.
10328 </desc>
10329 <param name="waitFor" type="GuestSessionWaitForFlag" dir="in" safearray="yes">
10330 <desc>
10331 Specifies what to wait for;
10332 see <link to="GuestSessionWaitForFlag"/> for more information.
10333 </desc>
10334 </param>
10335 <param name="timeoutMS" type="unsigned long" dir="in">
10336 <desc>
10337 Timeout (in ms) to wait for the operation to complete.
10338 Pass 0 for an infinite timeout.
10339 </desc>
10340 </param>
10341 <param name="reason" type="GuestSessionWaitResult" dir="return">
10342 <desc>
10343 The overall wait result;
10344 see <link to="GuestSessionWaitResult"/> for more information.
10345 </desc>
10346 </param>
10347 </method>
10348
10349 </interface>
10350
10351 <interface
10352 name="IProcess" extends="$unknown"
10353 uuid="08864d56-96ab-418b-adbc-5a679532aeb0"
10354 wsmap="managed"
10355 >
10356 <desc>
10357 Abstract parent interface for processes handled by VirtualBox.
10358 </desc>
10359 <attribute name="PID" type="unsigned long" readonly="yes">
10360 <desc>
10361 The process ID (PID).
10362 </desc>
10363 </attribute>
10364 <attribute name="status" type="ProcessStatus" readonly="yes">
10365 <desc>
10366 The current process status; see <link to="ProcessStatus"/>
10367 for more information.
10368 </desc>
10369 </attribute>
10370 <attribute name="exitCode" type="long" readonly="yes">
10371 <desc>
10372 The exit code. Only available when the process has been
10373 terminated normally.
10374 </desc>
10375 </attribute>
10376 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10377 <desc>
10378 The environment block this process is using during execution.
10379 </desc>
10380 </attribute>
10381 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10382 <desc>
10383 The arguments this process is using for execution.
10384 </desc>
10385 </attribute>
10386 <attribute name="executablePath" type="wstring" readonly="yes">
10387 <desc>Full path of the actual executable image.</desc>
10388 </attribute>
10389 <attribute name="name" type="wstring" readonly="yes">
10390 <desc>The friendly name of this process.</desc>
10391 </attribute>
10392
10393 <method name="waitFor">
10394 <desc>
10395 Waits for one more events to happen.
10396 </desc>
10397 <param name="waitFor" type="unsigned long" dir="in">
10398 <desc>
10399 Specifies what to wait for;
10400 see <link to="ProcessWaitForFlag"/> for more information.
10401 </desc>
10402 </param>
10403 <param name="timeoutMS" type="unsigned long" dir="in">
10404 <desc>
10405 Timeout (in ms) to wait for the operation to complete.
10406 Pass 0 for an infinite timeout.
10407 </desc>
10408 </param>
10409 <param name="reason" type="ProcessWaitResult" dir="return">
10410 <desc>
10411 The overall wait result;
10412 see <link to="ProcessWaitResult"/> for more information.
10413 </desc>
10414 </param>
10415 </method>
10416
10417 <method name="waitForArray">
10418 <desc>
10419 Waits for one more events to happen.
10420 Scriptable version of <link to="#waitFor" />.
10421 </desc>
10422 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10423 <desc>
10424 Specifies what to wait for;
10425 see <link to="ProcessWaitForFlag"/> for more information.
10426 </desc>
10427 </param>
10428 <param name="timeoutMS" type="unsigned long" dir="in">
10429 <desc>
10430 Timeout (in ms) to wait for the operation to complete.
10431 Pass 0 for an infinite timeout.
10432 </desc>
10433 </param>
10434 <param name="reason" type="ProcessWaitResult" dir="return">
10435 <desc>
10436 The overall wait result;
10437 see <link to="ProcessWaitResult"/> for more information.
10438 </desc>
10439 </param>
10440 </method>
10441
10442 <method name="read">
10443 <desc>
10444 Reads data from a running process.
10445 </desc>
10446 <param name="handle" type="unsigned long" dir="in">
10447 <desc>Handle to read from. Usually 0 is stdin.</desc>
10448 </param>
10449 <param name="toRead" type="unsigned long" dir="in">
10450 <desc>Number of bytes to read.</desc>
10451 </param>
10452 <param name="timeoutMS" type="unsigned long" dir="in">
10453 <desc>
10454 Timeout (in ms) to wait for the operation to complete.
10455 Pass 0 for an infinite timeout.
10456 </desc>
10457 </param>
10458 <param name="data" type="octet" dir="return" safearray="yes">
10459 <desc>Array of data read.</desc>
10460 </param>
10461 </method>
10462
10463 <method name="write">
10464 <desc>
10465 Writes data to a running process.
10466 </desc>
10467 <param name="handle" type="unsigned long" dir="in">
10468 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10469 </param>
10470 <param name="flags" type="unsigned long" dir="in">
10471 <desc>
10472 A combination of <link to="ProcessInputFlag"/> flags.
10473 </desc>
10474 </param>
10475 <param name="data" type="octet" dir="in" safearray="yes">
10476 <desc>
10477 Array of bytes to write. The size of the array also specifies
10478 how much to write.
10479 </desc>
10480 </param>
10481 <param name="timeoutMS" type="unsigned long" dir="in">
10482 <desc>
10483 Timeout (in ms) to wait for the operation to complete.
10484 Pass 0 for an infinite timeout.
10485 </desc>
10486 </param>
10487 <param name="written" type="unsigned long" dir="return">
10488 <desc>How much bytes were written.</desc>
10489 </param>
10490 </method>
10491
10492 <method name="writeArray">
10493 <desc>
10494 Writes data to a running process.
10495 Scriptable version of <link to="#write" />.
10496 </desc>
10497 <param name="handle" type="unsigned long" dir="in">
10498 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10499 </param>
10500 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10501 <desc>
10502 A combination of <link to="ProcessInputFlag"/> flags.
10503 </desc>
10504 </param>
10505 <param name="data" type="octet" dir="in" safearray="yes">
10506 <desc>
10507 Array of bytes to write. The size of the array also specifies
10508 how much to write.
10509 </desc>
10510 </param>
10511 <param name="timeoutMS" type="unsigned long" dir="in">
10512 <desc>
10513 Timeout (in ms) to wait for the operation to complete.
10514 Pass 0 for an infinite timeout.
10515 </desc>
10516 </param>
10517 <param name="written" type="unsigned long" dir="return">
10518 <desc>How much bytes were written.</desc>
10519 </param>
10520 </method>
10521
10522 <method name="terminate">
10523 <desc>
10524 Terminates (kills) a running process.
10525 </desc>
10526 </method>
10527 </interface>
10528
10529 <interface
10530 name="IGuestProcess" extends="IProcess"
10531 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10532 wsmap="managed"
10533 >
10534 <desc>
10535 Implementation of the <link to="IProcess" /> object
10536 for processes on the guest.
10537 </desc>
10538 </interface>
10539
10540 <interface
10541 name="IDirectory" extends="$unknown"
10542 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10543 wsmap="managed"
10544 >
10545 <desc>
10546 Abstract parent interface for directories handled by VirtualBox.
10547 </desc>
10548
10549 <attribute name="directoryName" type="wstring" readonly="yes">
10550 <desc>
10551 Full path of directory.
10552 </desc>
10553 </attribute>
10554
10555 <attribute name="filter" type="wstring" readonly="yes">
10556 <desc>
10557 The open filter.
10558 </desc>
10559 </attribute>
10560
10561 <method name="close">
10562 <desc>
10563 Closes this directory. After closing operations like reading the next
10564 directory entry will not be possible anymore.
10565 </desc>
10566 </method>
10567
10568 <method name="read">
10569 <desc>
10570 Reads the next directory entry of this directory.
10571 <result name="VBOX_E_OBJECT_NOT_FOUND">
10572 No more directory entries to read.
10573 </result>
10574 </desc>
10575 <param name="objInfo" type="IFsObjInfo" dir="return">
10576 <desc>Object information of the current directory entry read. Also see
10577 <link to="IFsObjInfo"/>.</desc>
10578 </param>
10579 </method>
10580 </interface>
10581
10582 <interface
10583 name="IGuestDirectory" extends="IDirectory"
10584 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10585 wsmap="managed"
10586 >
10587 <desc>
10588 Implementation of the <link to="IDirectory" /> object
10589 for directories on the guest.
10590 </desc>
10591 </interface>
10592
10593 <interface
10594 name="IFile" extends="$unknown"
10595 uuid="b702a560-6139-4a8e-a892-bbf14b97bf97"
10596 wsmap="managed"
10597 >
10598 <desc>
10599 Abstract parent interface for files handled by VirtualBox.
10600 </desc>
10601 <attribute name="creationMode" type="unsigned long" readonly="yes">
10602 <desc>
10603 The creation mode.
10604 </desc>
10605 </attribute>
10606 <attribute name="disposition" type="unsigned long" readonly="yes">
10607 <desc>
10608 The disposition mode.
10609 </desc>
10610 </attribute>
10611 <attribute name="fileName" type="wstring" readonly="yes">
10612 <desc>
10613 Full path of the actual file name of this file.
10614 </desc>
10615 </attribute>
10616 <attribute name="initialSize" type="long long" readonly="yes">
10617 <desc>
10618 The initial size in bytes when opened.
10619 </desc>
10620 </attribute>
10621 <attribute name="openMode" type="unsigned long" readonly="yes">
10622 <desc>
10623 The open mode.
10624 </desc>
10625 </attribute>
10626 <attribute name="offset" type="long long" readonly="yes">
10627 <desc>
10628 Current read/write offset in bytes.
10629 </desc>
10630 </attribute>
10631
10632 <method name="close">
10633 <desc>
10634 Closes this file. After closing operations like reading data,
10635 writing data or querying information will not be possible anymore.
10636 </desc>
10637 </method>
10638
10639 <method name="queryInfo">
10640 <desc>
10641 Queries information about this file.
10642
10643 <result name="E_NOTIMPL">
10644 The method is not implemented yet.
10645 </result>
10646 </desc>
10647 <param name="objInfo" type="IFsObjInfo" dir="return">
10648 <desc>Object information of this file. Also see
10649 <link to="IFsObjInfo"/>.</desc>
10650 </param>
10651 </method>
10652
10653 <method name="read">
10654 <desc>
10655 Reads data from this file.
10656
10657 <result name="E_NOTIMPL">
10658 The method is not implemented yet.
10659 </result>
10660 </desc>
10661 <param name="toRead" type="unsigned long" dir="in">
10662 <desc>Number of bytes to read.</desc>
10663 </param>
10664 <param name="timeoutMS" type="unsigned long" dir="in">
10665 <desc>
10666 Timeout (in ms) to wait for the operation to complete.
10667 Pass 0 for an infinite timeout.
10668 </desc>
10669 </param>
10670 <param name="data" type="octet" dir="return" safearray="yes">
10671 <desc>Array of data read.</desc>
10672 </param>
10673 </method>
10674
10675 <method name="readAt">
10676 <desc>
10677 Reads data from an offset of this file.
10678
10679 <result name="E_NOTIMPL">
10680 The method is not implemented yet.
10681 </result>
10682 </desc>
10683 <param name="offset" type="long long" dir="in">
10684 <desc>Offset in bytes to start reading.</desc>
10685 </param>
10686 <param name="toRead" type="unsigned long" dir="in">
10687 <desc>Number of bytes to read.</desc>
10688 </param>
10689 <param name="timeoutMS" type="unsigned long" dir="in">
10690 <desc>
10691 Timeout (in ms) to wait for the operation to complete.
10692 Pass 0 for an infinite timeout.
10693 </desc>
10694 </param>
10695 <param name="data" type="octet" dir="return" safearray="yes">
10696 <desc>Array of data read.</desc>
10697 </param>
10698 </method>
10699
10700 <method name="seek">
10701 <desc>
10702 Changes the read and write position of this file.
10703
10704 <result name="E_NOTIMPL">
10705 The method is not implemented yet.
10706 </result>
10707 </desc>
10708 <param name="offset" type="long long" dir="in">
10709 <desc>Offset to seek.</desc>
10710 </param>
10711 <param name="whence" type="FileSeekType" dir="in">
10712 <desc>
10713 Seek mode; see <link to="FileSeekType"/> for more information.
10714 </desc>
10715 </param>
10716 </method>
10717
10718 <method name="setACL">
10719 <desc>
10720 Sets the ACL of this file.
10721
10722 <result name="E_NOTIMPL">
10723 The method is not implemented yet.
10724 </result>
10725 </desc>
10726 <param name="acl" type="wstring" dir="in">
10727 <desc>ACL string to set.</desc>
10728 </param>
10729 </method>
10730
10731 <method name="write">
10732 <desc>
10733 Writes bytes to this file.
10734 </desc>
10735 <param name="data" type="octet" dir="in" safearray="yes">
10736 <desc>
10737 Array of bytes to write. The size of the array also specifies
10738 how much to write.
10739 </desc>
10740 </param>
10741 <param name="timeoutMS" type="unsigned long" dir="in">
10742 <desc>
10743 Timeout (in ms) to wait for the operation to complete.
10744 Pass 0 for an infinite timeout.
10745 </desc>
10746 </param>
10747 <param name="written" type="unsigned long" dir="return">
10748 <desc>How much bytes were written.</desc>
10749 </param>
10750 </method>
10751
10752 <method name="writeAt">
10753 <desc>
10754 Writes bytes at a certain offset to this file.
10755
10756 <result name="E_NOTIMPL">
10757 The method is not implemented yet.
10758 </result>
10759 </desc>
10760 <param name="offset" type="long long" dir="in">
10761 <desc>Offset in bytes to start writing.</desc>
10762 </param>
10763 <param name="data" type="octet" dir="in" safearray="yes">
10764 <desc>
10765 Array of bytes to write. The size of the array also specifies
10766 how much to write.
10767 </desc>
10768 </param>
10769 <param name="timeoutMS" type="unsigned long" dir="in">
10770 <desc>
10771 Timeout (in ms) to wait for the operation to complete.
10772 Pass 0 for an infinite timeout.
10773 </desc>
10774 </param>
10775 <param name="written" type="unsigned long" dir="return">
10776 <desc>How much bytes were written.</desc>
10777 </param>
10778 </method>
10779
10780 </interface>
10781
10782 <interface
10783 name="IGuestFile" extends="IFile"
10784 uuid="60661aec-145f-4d11-b80e-8ea151598093"
10785 wsmap="managed"
10786 >
10787 <desc>
10788 Implementation of the <link to="IFile" /> object
10789 for files on the guest.
10790 </desc>
10791 </interface>
10792
10793 <interface
10794 name="IFsObjInfo" extends="$unknown"
10795 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
10796 wsmap="managed"
10797 >
10798 <desc>
10799 Abstract parent interface for VirtualBox file system object information.
10800 This can be information about a file or a directory, for example.
10801 </desc>
10802
10803 <attribute name="accessTime" type="long long" readonly="yes">
10804 <desc>
10805 Time of last access (st_atime).
10806 </desc>
10807 </attribute>
10808 <attribute name="allocatedSize" type="long long" readonly="yes">
10809 <desc>
10810 Disk allocation size (st_blocks * DEV_BSIZE).
10811 </desc>
10812 </attribute>
10813 <attribute name="birthTime" type="long long" readonly="yes">
10814 <desc>
10815 Time of file birth (st_birthtime).
10816 </desc>
10817 </attribute>
10818 <attribute name="changeTime" type="long long" readonly="yes">
10819 <desc>
10820 Time of last status change (st_ctime).
10821 </desc>
10822 </attribute>
10823 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
10824 <desc>
10825 The device number of a character or block device type object (st_rdev).
10826 </desc>
10827 </attribute>
10828 <attribute name="fileAttributes" type="wstring" readonly="yes">
10829 <desc>
10830 File attributes. Not implemented yet.
10831 </desc>
10832 </attribute>
10833 <attribute name="generationId" type="unsigned long" readonly="yes">
10834 <desc>
10835 The current generation number (st_gen).
10836 </desc>
10837 </attribute>
10838 <attribute name="GID" type="unsigned long" readonly="yes">
10839 <desc>
10840 The group the filesystem object is assigned (st_gid).
10841 </desc>
10842 </attribute>
10843 <attribute name="groupName" type="wstring" readonly="yes">
10844 <desc>
10845 The group name.
10846 </desc>
10847 </attribute>
10848 <attribute name="hardLinks" type="unsigned long" readonly="yes">
10849 <desc>
10850 Number of hard links to this filesystem object (st_nlink).
10851 </desc>
10852 </attribute>
10853 <attribute name="modificationTime" type="long long" readonly="yes">
10854 <desc>
10855 Time of last data modification (st_mtime).
10856 </desc>
10857 </attribute>
10858 <attribute name="name" type="wstring" readonly="yes">
10859 <desc>
10860 The object's name.
10861 </desc>
10862 </attribute>
10863 <attribute name="nodeId" type="long long" readonly="yes">
10864 <desc>
10865 The unique identifier (within the filesystem) of this filesystem object (st_ino).
10866 </desc>
10867 </attribute>
10868 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
10869 <desc>
10870 The device number of the device which this filesystem object resides on (st_dev).
10871 </desc>
10872 </attribute>
10873 <attribute name="objectSize" type="long long" readonly="yes">
10874 <desc>
10875 The logical size (st_size). For normal files this is the size of the file.
10876 For symbolic links, this is the length of the path name contained in the
10877 symbolic link. For other objects this fields needs to be specified.
10878 </desc>
10879 </attribute>
10880 <attribute name="type" type="FsObjType" readonly="yes">
10881 <desc>
10882 The object type. See <link to="FsObjType" /> for more.
10883 </desc>
10884 </attribute>
10885 <attribute name="UID" type="unsigned long" readonly="yes">
10886 <desc>
10887 The user owning the filesystem object (st_uid).
10888 </desc>
10889 </attribute>
10890 <attribute name="userFlags" type="unsigned long" readonly="yes">
10891 <desc>
10892 User flags (st_flags).
10893 </desc>
10894 </attribute>
10895 <attribute name="userName" type="wstring" readonly="yes">
10896 <desc>
10897 The user name.
10898 </desc>
10899 </attribute>
10900
10901 </interface>
10902
10903 <interface
10904 name="IGuestFsObjInfo" extends="IFsObjInfo"
10905 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
10906 wsmap="managed"
10907 >
10908 <desc>
10909 Represents the guest implementation of the
10910 <link to="IFsObjInfo" /> object.
10911 </desc>
10912 </interface>
10913
10914 <interface
10915 name="IGuest" extends="$unknown"
10916 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
10917 wsmap="managed"
10918 >
10919 <desc>
10920 The IGuest interface represents information about the operating system
10921 running inside the virtual machine. Used in
10922 <link to="IConsole::guest"/>.
10923
10924 IGuest provides information about the guest operating system, whether
10925 Guest Additions are installed and other OS-specific virtual machine
10926 properties.
10927 </desc>
10928
10929 <attribute name="OSTypeId" type="wstring" readonly="yes">
10930 <desc>
10931 Identifier of the Guest OS type as reported by the Guest
10932 Additions.
10933 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
10934 an IGuestOSType object representing details about the given
10935 Guest OS type.
10936 <note>
10937 If Guest Additions are not installed, this value will be
10938 the same as <link to="IMachine::OSTypeId"/>.
10939 </note>
10940 </desc>
10941 </attribute>
10942
10943 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
10944 <desc>
10945 Current run level of the Guest Additions.
10946 </desc>
10947 </attribute>
10948
10949 <attribute name="additionsVersion" type="wstring" readonly="yes">
10950 <desc>
10951 Version of the Guest Additions in the same format as
10952 <link to="IVirtualBox::version"/>.
10953 </desc>
10954 </attribute>
10955
10956 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
10957 <desc>
10958 The internal build revision number of the additions.
10959
10960 See also <link to="IVirtualBox::revision"/>.
10961 </desc>
10962 </attribute>
10963
10964 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
10965 <desc>
10966 Array of current known facilities. Only returns facilities where a status is known,
10967 e.g. facilities with an unknown status will not be returned.
10968 </desc>
10969 </attribute>
10970
10971 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
10972 <desc>Returns a collection of all opened guest sessions.</desc>
10973 </attribute>
10974
10975 <attribute name="memoryBalloonSize" type="unsigned long">
10976 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
10977 </attribute>
10978
10979 <attribute name="statisticsUpdateInterval" type="unsigned long">
10980 <desc>Interval to update guest statistics in seconds.</desc>
10981 </attribute>
10982
10983 <method name="internalGetStatistics">
10984 <desc>
10985 Internal method; do not use as it might change at any time.
10986 </desc>
10987 <param name="cpuUser" type="unsigned long" dir="out">
10988 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
10989 </param>
10990 <param name="cpuKernel" type="unsigned long" dir="out">
10991 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
10992 </param>
10993 <param name="cpuIdle" type="unsigned long" dir="out">
10994 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
10995 </param>
10996 <param name="memTotal" type="unsigned long" dir="out">
10997 <desc>Total amount of physical guest RAM.</desc>
10998 </param>
10999 <param name="memFree" type="unsigned long" dir="out">
11000 <desc>Free amount of physical guest RAM.</desc>
11001 </param>
11002 <param name="memBalloon" type="unsigned long" dir="out">
11003 <desc>Amount of ballooned physical guest RAM.</desc>
11004 </param>
11005 <param name="memShared" type="unsigned long" dir="out">
11006 <desc>Amount of shared physical guest RAM.</desc>
11007 </param>
11008 <param name="memCache" type="unsigned long" dir="out">
11009 <desc>Total amount of guest (disk) cache memory.</desc>
11010 </param>
11011 <param name="pagedTotal" type="unsigned long" dir="out">
11012 <desc>Total amount of space in the page file.</desc>
11013 </param>
11014 <param name="memAllocTotal" type="unsigned long" dir="out">
11015 <desc>Total amount of memory allocated by the hypervisor.</desc>
11016 </param>
11017 <param name="memFreeTotal" type="unsigned long" dir="out">
11018 <desc>Total amount of free memory available in the hypervisor.</desc>
11019 </param>
11020 <param name="memBalloonTotal" type="unsigned long" dir="out">
11021 <desc>Total amount of memory ballooned by the hypervisor.</desc>
11022 </param>
11023 <param name="memSharedTotal" type="unsigned long" dir="out">
11024 <desc>Total amount of shared memory in the hypervisor.</desc>
11025 </param>
11026 </method>
11027
11028 <method name="getFacilityStatus">
11029 <desc>
11030 Get the current status of a Guest Additions facility.
11031 </desc>
11032 <param name="facility" type="AdditionsFacilityType" dir="in">
11033 <desc>Facility to check status for.</desc>
11034 </param>
11035 <param name="timestamp" type="long long" dir="out">
11036 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
11037 </param>
11038 <param name="status" type="AdditionsFacilityStatus" dir="return">
11039 <desc>The current (latest) facility status.</desc>
11040 </param>
11041 </method>
11042
11043 <method name="getAdditionsStatus">
11044 <desc>
11045 Retrieve the current status of a certain Guest Additions run level.
11046
11047 <result name="VBOX_E_NOT_SUPPORTED">
11048 Wrong status level specified.
11049 </result>
11050
11051 </desc>
11052 <param name="level" type="AdditionsRunLevelType" dir="in">
11053 <desc>Status level to check</desc>
11054 </param>
11055 <param name="active" type="boolean" dir="return">
11056 <desc>Flag whether the status level has been reached or not</desc>
11057 </param>
11058 </method>
11059
11060 <method name="setCredentials">
11061 <desc>
11062 Store login credentials that can be queried by guest operating
11063 systems with Additions installed. The credentials are transient
11064 to the session and the guest may also choose to erase them. Note
11065 that the caller cannot determine whether the guest operating system
11066 has queried or made use of the credentials.
11067
11068 <result name="VBOX_E_VM_ERROR">
11069 VMM device is not available.
11070 </result>
11071
11072 </desc>
11073 <param name="userName" type="wstring" dir="in">
11074 <desc>User name string, can be empty</desc>
11075 </param>
11076 <param name="password" type="wstring" dir="in">
11077 <desc>Password string, can be empty</desc>
11078 </param>
11079 <param name="domain" type="wstring" dir="in">
11080 <desc>Domain name (guest logon scheme specific), can be empty</desc>
11081 </param>
11082 <param name="allowInteractiveLogon" type="boolean" dir="in">
11083 <desc>
11084 Flag whether the guest should alternatively allow the user to
11085 interactively specify different credentials. This flag might
11086 not be supported by all versions of the Additions.
11087 </desc>
11088 </param>
11089 </method>
11090
11091 <method name="dragHGEnter">
11092 <desc>
11093 Informs the guest about a Drag and Drop enter event.
11094
11095 This is used in Host - Guest direction.
11096
11097 <result name="VBOX_E_VM_ERROR">
11098 VMM device is not available.
11099 </result>
11100
11101 </desc>
11102 <param name="screenId" type="unsigned long" dir="in">
11103 <desc>The screen id where the Drag and Drop event occured.</desc>
11104 </param>
11105 <param name="y" type="unsigned long" dir="in">
11106 <desc>y-position of the event.</desc>
11107 </param>
11108 <param name="x" type="unsigned long" dir="in">
11109 <desc>x-position of the event.</desc>
11110 </param>
11111 <param name="defaultAction" type="DragAndDropAction" dir="in">
11112 <desc>The default action to use.</desc>
11113 </param>
11114 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11115 <desc>The actions which are allowed.</desc>
11116 </param>
11117 <param name="formats" type="wstring" dir="in" safearray="yes">
11118 <desc>The supported mime types.</desc>
11119 </param>
11120 <param name="resultAction" type="DragAndDropAction" dir="return">
11121 <desc>The resulting action of this event.</desc>
11122 </param>
11123 </method>
11124
11125 <method name="dragHGMove">
11126 <desc>
11127 Informs the guest about a Drag and Drop move event.
11128
11129 This is used in Host - Guest direction.
11130
11131 <result name="VBOX_E_VM_ERROR">
11132 VMM device is not available.
11133 </result>
11134
11135 </desc>
11136 <param name="screenId" type="unsigned long" dir="in">
11137 <desc>The screen id where the Drag and Drop event occured.</desc>
11138 </param>
11139 <param name="x" type="unsigned long" dir="in">
11140 <desc>x-position of the event.</desc>
11141 </param>
11142 <param name="y" type="unsigned long" dir="in">
11143 <desc>y-position of the event.</desc>
11144 </param>
11145 <param name="defaultAction" type="DragAndDropAction" dir="in">
11146 <desc>The default action to use.</desc>
11147 </param>
11148 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11149 <desc>The actions which are allowed.</desc>
11150 </param>
11151 <param name="formats" type="wstring" dir="in" safearray="yes">
11152 <desc>The supported mime types.</desc>
11153 </param>
11154 <param name="resultAction" type="DragAndDropAction" dir="return">
11155 <desc>The resulting action of this event.</desc>
11156 </param>
11157 </method>
11158
11159 <method name="dragHGLeave">
11160 <desc>
11161 Informs the guest about a Drag and Drop leave event.
11162
11163 This is used in Host - Guest direction.
11164
11165 <result name="VBOX_E_VM_ERROR">
11166 VMM device is not available.
11167 </result>
11168
11169 </desc>
11170 <param name="screenId" type="unsigned long" dir="in">
11171 <desc>The screen id where the Drag and Drop event occured.</desc>
11172 </param>
11173 </method>
11174
11175 <method name="dragHGDrop">
11176 <desc>
11177 Informs the guest about a drop event.
11178
11179 This is used in Host - Guest direction.
11180
11181 <result name="VBOX_E_VM_ERROR">
11182 VMM device is not available.
11183 </result>
11184
11185 </desc>
11186 <param name="screenId" type="unsigned long" dir="in">
11187 <desc>The screen id where the Drag and Drop event occured.</desc>
11188 </param>
11189 <param name="x" type="unsigned long" dir="in">
11190 <desc>x-position of the event.</desc>
11191 </param>
11192 <param name="y" type="unsigned long" dir="in">
11193 <desc>y-position of the event.</desc>
11194 </param>
11195 <param name="defaultAction" type="DragAndDropAction" dir="in">
11196 <desc>The default action to use.</desc>
11197 </param>
11198 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11199 <desc>The actions which are allowed.</desc>
11200 </param>
11201 <param name="formats" type="wstring" dir="in" safearray="yes">
11202 <desc>The supported mime types.</desc>
11203 </param>
11204 <param name="format" type="wstring" dir="out">
11205 <desc>The resulting format of this event.</desc>
11206 </param>
11207 <param name="resultAction" type="DragAndDropAction" dir="return">
11208 <desc>The resulting action of this event.</desc>
11209 </param>
11210 </method>
11211
11212 <method name="dragHGPutData">
11213 <desc>
11214 Informs the guest about a drop data event.
11215
11216 This is used in Host - Guest direction.
11217
11218 <result name="VBOX_E_VM_ERROR">
11219 VMM device is not available.
11220 </result>
11221
11222 </desc>
11223 <param name="screenId" type="unsigned long" dir="in">
11224 <desc>The screen id where the Drag and Drop event occured.</desc>
11225 </param>
11226 <param name="format" type="wstring" dir="in">
11227 <desc>The mime type the data is in.</desc>
11228 </param>
11229 <param name="data" type="octet" dir="in" safearray="yes">
11230 <desc>The actual data.</desc>
11231 </param>
11232 <param name="progress" type="IProgress" dir="return">
11233 <desc>Progress object to track the operation completion.</desc>
11234 </param>
11235 </method>
11236
11237 <method name="dragGHPending">
11238 <desc>
11239 Ask the guest if there is any Drag and Drop operation pending in the guest.
11240
11241 If no Drag and Drop operation is pending currently, Ignore is returned.
11242
11243 This is used in Guest - Host direction.
11244
11245 <result name="VBOX_E_VM_ERROR">
11246 VMM device is not available.
11247 </result>
11248
11249 </desc>
11250 <param name="screenId" type="unsigned long" dir="in">
11251 <desc>The screen id where the Drag and Drop event occured.</desc>
11252 </param>
11253 <param name="formats" type="wstring" dir="out" safearray="yes">
11254 <desc>On return the supported mime types.</desc>
11255 </param>
11256 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11257 <desc>On return the actions which are allowed.</desc>
11258 </param>
11259 <param name="defaultAction" type="DragAndDropAction" dir="return">
11260 <desc>On return the default action to use.</desc>
11261 </param>
11262 </method>
11263
11264 <method name="dragGHDropped">
11265 <desc>
11266 Informs the guest that a drop event occured for a pending Drag and Drop event.
11267
11268 This is used in Guest - Host direction.
11269
11270 <result name="VBOX_E_VM_ERROR">
11271 VMM device is not available.
11272 </result>
11273
11274 </desc>
11275
11276 <param name="format" type="wstring" dir="in">
11277 <desc>The mime type the data must be in.</desc>
11278 </param>
11279 <param name="action" type="DragAndDropAction" dir="in">
11280 <desc>The action to use.</desc>
11281 </param>
11282 <param name="progress" type="IProgress" dir="return">
11283 <desc>Progress object to track the operation completion.</desc>
11284 </param>
11285 </method>
11286
11287 <method name="dragGHGetData">
11288 <desc>
11289 Fetch the data of a previously Drag and Drop event from the guest.
11290
11291 This is used in Guest - Host direction.
11292
11293 <result name="VBOX_E_VM_ERROR">
11294 VMM device is not available.
11295 </result>
11296
11297 </desc>
11298
11299 <param name="data" type="octet" safearray="yes" dir="return">
11300 <desc>The actual data.</desc>
11301 </param>
11302 </method>
11303
11304 <method name="createSession">
11305 <desc>
11306 Creates a new guest session for controlling the guest.
11307
11308 A guest session represents one impersonated user account on the guest, so
11309 every operation will use the same credentials specified when creating
11310 the session object via <link to="IGuest::createSession"/>. Anonymous
11311 sessions, that is, sessions without specifying a valid
11312 user account on the guest are not allowed due to security reasons.
11313
11314 There can be a maximum of 32 sessions at once per VM. Each session keeps
11315 track of its started guest processes, opened guest files or guest directories.
11316 To work on guest files or directories a guest session offers methods to open
11317 or create such objects (see <link to="IGuestSession::fileOpen"/> or
11318 <link to="IGuestSession::directoryOpen"/> for example).
11319
11320 When done with either of these objects, including the guest session itself,
11321 use the appropriate close() method to let the object do its cleanup work.
11322
11323 Every guest session has its own environment variable block which gets
11324 automatically applied when starting a new guest process via
11325 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
11326 To override (or unset) certain environment variables already set by the
11327 guest session, one can specify a per-process environment block when using
11328 one of the both above mentioned process creation calls.
11329
11330 Closing a session via <link to="IGuestSession::close" /> will try to close
11331 all the mentioned objects above unless these objects are still used by
11332 a client.
11333 </desc>
11334 <param name="user" type="wstring" dir="in">
11335 <desc>
11336 User name this session will be using to control the guest; has to exist
11337 and have the appropriate rights to execute programs in the VM. Must not
11338 be empty.
11339 </desc>
11340 </param>
11341 <param name="password" type="wstring" dir="in">
11342 <desc>
11343 Password of the user account to be used. Empty passwords are allowed.
11344 </desc>
11345 </param>
11346 <param name="domain" type="wstring" dir="in">
11347 <desc>
11348 Domain name of the user account to be used if the guest is part of
11349 a domain. Optional. This feature is not implemented yet.
11350 </desc>
11351 </param>
11352 <param name="sessionName" type="wstring" dir="in">
11353 <desc>
11354 The session's friendly name. Optional, can be empty.
11355 </desc>
11356 </param>
11357 <param name="guestSession" type="IGuestSession" dir="return">
11358 <desc>
11359 The newly created session object.
11360 </desc>
11361 </param>
11362 </method>
11363
11364 <method name="findSession">
11365 <desc>
11366 Finds guest sessions by their friendly name and returns an interface
11367 array with all found guest sessions.
11368 </desc>
11369 <param name="sessionName" type="wstring" dir="in">
11370 <desc>
11371 The session's friendly name to find. Wildcards like ? and * are allowed.
11372 </desc>
11373 </param>
11374 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11375 <desc>
11376 Array with all guest sessions found matching the name specified.
11377 </desc>
11378 </param>
11379 </method>
11380
11381 <method name="updateGuestAdditions">
11382 <desc>
11383 Automatically updates already installed Guest Additions in a VM.
11384
11385 At the moment only Windows guests are supported.
11386
11387 Because the VirtualBox Guest Additions drivers are not WHQL-certified
11388 yet there might be warning dialogs during the actual Guest Additions
11389 update. These need to be confirmed manually in order to continue the
11390 installation process. This applies to Windows 2000 and Windows XP guests
11391 and therefore these guests can't be updated in a fully automated fashion
11392 without user interaction. However, to start a Guest Additions update for
11393 the mentioned Windows versions anyway, the flag
11394 AdditionsUpdateFlag_WaitForUpdateStartOnly can be specified. See
11395 <link to="AdditionsUpdateFlag"/> for more information.
11396
11397 <result name="VBOX_E_NOT_SUPPORTED">
11398 Guest OS is not supported for automated Guest Additions updates or the
11399 already installed Guest Additions are not ready yet.
11400 </result>
11401
11402 <result name="VBOX_E_IPRT_ERROR">
11403 Error while updating.
11404 </result>
11405
11406 </desc>
11407 <param name="source" type="wstring" dir="in">
11408 <desc>
11409 Path to the Guest Additions .ISO file to use for the upate.
11410 </desc>
11411 </param>
11412 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11413 <desc>
11414 <link to="AdditionsUpdateFlag"/> flags.
11415 </desc>
11416 </param>
11417 <param name="progress" type="IProgress" dir="return">
11418 <desc>Progress object to track the operation completion.</desc>
11419 </param>
11420 </method>
11421
11422 </interface>
11423
11424
11425 <!--
11426 // IProgress
11427 /////////////////////////////////////////////////////////////////////////
11428 -->
11429
11430 <interface
11431 name="IProgress" extends="$unknown"
11432 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11433 wsmap="managed"
11434 >
11435 <desc>
11436 The IProgress interface is used to track and control
11437 asynchronous tasks within VirtualBox.
11438
11439 An instance of this is returned every time VirtualBox starts
11440 an asynchronous task (in other words, a separate thread) which
11441 continues to run after a method call returns. For example,
11442 <link to="IConsole::saveState" />, which saves the state of
11443 a running virtual machine, can take a long time to complete.
11444 To be able to display a progress bar, a user interface such as
11445 the VirtualBox graphical user interface can use the IProgress
11446 object returned by that method.
11447
11448 Note that IProgress is a "read-only" interface in the sense
11449 that only the VirtualBox internals behind the Main API can
11450 create and manipulate progress objects, whereas client code
11451 can only use the IProgress object to monitor a task's
11452 progress and, if <link to="#cancelable" /> is @c true,
11453 cancel the task by calling <link to="#cancel" />.
11454
11455 A task represented by IProgress consists of either one or
11456 several sub-operations that run sequentially, one by one (see
11457 <link to="#operation" /> and <link to="#operationCount" />).
11458 Every operation is identified by a number (starting from 0)
11459 and has a separate description.
11460
11461 You can find the individual percentage of completion of the current
11462 operation in <link to="#operationPercent" /> and the
11463 percentage of completion of the task as a whole
11464 in <link to="#percent" />.
11465
11466 Similarly, you can wait for the completion of a particular
11467 operation via <link to="#waitForOperationCompletion" /> or
11468 for the completion of the whole task via
11469 <link to="#waitForCompletion" />.
11470 </desc>
11471
11472 <attribute name="id" type="uuid" mod="string" readonly="yes">
11473 <desc>ID of the task.</desc>
11474 </attribute>
11475
11476 <attribute name="description" type="wstring" readonly="yes">
11477 <desc>Description of the task.</desc>
11478 </attribute>
11479
11480 <attribute name="initiator" type="$unknown" readonly="yes">
11481 <desc>Initiator of the task.</desc>
11482 </attribute>
11483
11484 <attribute name="cancelable" type="boolean" readonly="yes">
11485 <desc>Whether the task can be interrupted.</desc>
11486 </attribute>
11487
11488 <attribute name="percent" type="unsigned long" readonly="yes">
11489 <desc>
11490 Current progress value of the task as a whole, in percent.
11491 This value depends on how many operations are already complete.
11492 Returns 100 if <link to="#completed" /> is @c true.
11493 </desc>
11494 </attribute>
11495
11496 <attribute name="timeRemaining" type="long" readonly="yes">
11497 <desc>
11498 Estimated remaining time until the task completes, in
11499 seconds. Returns 0 once the task has completed; returns -1
11500 if the remaining time cannot be computed, in particular if
11501 the current progress is 0.
11502
11503 Even if a value is returned, the estimate will be unreliable
11504 for low progress values. It will become more reliable as the
11505 task progresses; it is not recommended to display an ETA
11506 before at least 20% of a task have completed.
11507 </desc>
11508 </attribute>
11509
11510 <attribute name="completed" type="boolean" readonly="yes">
11511 <desc>Whether the task has been completed.</desc>
11512 </attribute>
11513
11514 <attribute name="canceled" type="boolean" readonly="yes">
11515 <desc>Whether the task has been canceled.</desc>
11516 </attribute>
11517
11518 <attribute name="resultCode" type="long" readonly="yes">
11519 <desc>
11520 Result code of the progress task.
11521 Valid only if <link to="#completed"/> is @c true.
11522 </desc>
11523 </attribute>
11524
11525 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11526 <desc>
11527 Extended information about the unsuccessful result of the
11528 progress operation. May be @c null if no extended information
11529 is available.
11530 Valid only if <link to="#completed"/> is @c true and
11531 <link to="#resultCode"/> indicates a failure.
11532 </desc>
11533 </attribute>
11534
11535 <attribute name="operationCount" type="unsigned long" readonly="yes">
11536 <desc>
11537 Number of sub-operations this task is divided into.
11538 Every task consists of at least one suboperation.
11539 </desc>
11540 </attribute>
11541
11542 <attribute name="operation" type="unsigned long" readonly="yes">
11543 <desc>Number of the sub-operation being currently executed.</desc>
11544 </attribute>
11545
11546 <attribute name="operationDescription" type="wstring" readonly="yes">
11547 <desc>
11548 Description of the sub-operation being currently executed.
11549 </desc>
11550 </attribute>
11551
11552 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11553 <desc>Progress value of the current sub-operation only, in percent.</desc>
11554 </attribute>
11555
11556 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11557 <desc>Weight value of the current sub-operation only.</desc>
11558 </attribute>
11559
11560 <attribute name="timeout" type="unsigned long">
11561 <desc>
11562 When non-zero, this specifies the number of milliseconds after which
11563 the operation will automatically be canceled. This can only be set on
11564 cancelable objects.
11565 </desc>
11566 </attribute>
11567
11568 <method name="setCurrentOperationProgress">
11569 <desc>Internal method, not to be called externally.</desc>
11570 <param name="percent" type="unsigned long" dir="in" />
11571 </method>
11572 <method name="setNextOperation">
11573 <desc>Internal method, not to be called externally.</desc>
11574 <param name="nextOperationDescription" type="wstring" dir="in" />
11575 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11576 </method>
11577
11578 <method name="waitForCompletion">
11579 <desc>
11580 Waits until the task is done (including all sub-operations)
11581 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11582
11583 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11584 thread are not processed while waiting. Neglecting event queues may
11585 have dire consequences (degrade performance, resource hogs,
11586 deadlocks, etc.), this is specially so for the main thread on
11587 platforms using XPCOM. Callers are adviced wait for short periods
11588 and service their event queues between calls, or to create a worker
11589 thread to do the waiting.
11590
11591 <result name="VBOX_E_IPRT_ERROR">
11592 Failed to wait for task completion.
11593 </result>
11594 </desc>
11595
11596 <param name="timeout" type="long" dir="in">
11597 <desc>
11598 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11599 </desc>
11600 </param>
11601 </method>
11602
11603 <method name="waitForOperationCompletion">
11604 <desc>
11605 Waits until the given operation is done with a given timeout in
11606 milliseconds; specify -1 for an indefinite wait.
11607
11608 See <link to="#waitForCompletion"> for event queue considerations.</link>
11609
11610 <result name="VBOX_E_IPRT_ERROR">
11611 Failed to wait for operation completion.
11612 </result>
11613
11614 </desc>
11615 <param name="operation" type="unsigned long" dir="in">
11616 <desc>
11617 Number of the operation to wait for.
11618 Must be less than <link to="#operationCount"/>.
11619 </desc>
11620 </param>
11621 <param name="timeout" type="long" dir="in">
11622 <desc>
11623 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11624 </desc>
11625 </param>
11626 </method>
11627
11628 <method name="waitForAsyncProgressCompletion">
11629 <desc>
11630 Waits until the other task is completed (including all
11631 sub-operations) and forward all changes from the other progress to
11632 this progress. This means sub-operation number, description, percent
11633 and so on.
11634
11635 You have to take care on setting up at least the same count on
11636 sub-operations in this progress object like there are in the other
11637 progress object.
11638
11639 If the other progress object supports cancel and this object gets any
11640 cancel request (when here enabled as well), it will be forwarded to
11641 the other progress object.
11642
11643 If there is an error in the other progress, this error isn't
11644 automatically transfered to this progress object. So you have to
11645 check any operation error within the other progress object, after
11646 this method returns.
11647 </desc>
11648
11649 <param name="pProgressAsync" type="IProgress" dir="in">
11650 <desc>
11651 The progress object of the asynchrony process.
11652 </desc>
11653 </param>
11654 </method>
11655
11656 <method name="cancel">
11657 <desc>
11658 Cancels the task.
11659 <note>
11660 If <link to="#cancelable"/> is @c false, then this method will fail.
11661 </note>
11662
11663 <result name="VBOX_E_INVALID_OBJECT_STATE">
11664 Operation cannot be canceled.
11665 </result>
11666
11667 </desc>
11668 </method>
11669
11670 </interface>
11671
11672 <!--
11673 // ISnapshot
11674 /////////////////////////////////////////////////////////////////////////
11675 -->
11676
11677 <interface
11678 name="ISnapshot" extends="$unknown"
11679 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11680 wsmap="managed"
11681 >
11682 <desc>
11683 The ISnapshot interface represents a snapshot of the virtual
11684 machine.
11685
11686 Together with the differencing media that are created
11687 when a snapshot is taken, a machine can be brought back to
11688 the exact state it was in when the snapshot was taken.
11689
11690 The ISnapshot interface has no methods, only attributes; snapshots
11691 are controlled through methods of the <link to="IConsole" /> interface
11692 which also manage the media associated with the snapshot.
11693 The following operations exist:
11694
11695 <ul>
11696 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11697 by creating new, empty differencing images for the machine's
11698 media and saving the VM settings and (if the VM is running)
11699 the current VM state in the snapshot.
11700
11701 The differencing images will then receive all data written to
11702 the machine's media, while their parent (base) images
11703 remain unmodified after the snapshot has been taken (see
11704 <link to="IMedium" /> for details about differencing images).
11705 This simplifies restoring a machine to the state of a snapshot:
11706 only the differencing images need to be deleted.
11707
11708 The current machine state is not changed by taking a snapshot
11709 except that <link to="IMachine::currentSnapshot" /> is set to
11710 the newly created snapshot, which is also added to the machine's
11711 snapshots tree.
11712 </li>
11713
11714 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
11715 the state of a previous snapshot by deleting the differencing
11716 image of each of the machine's media and setting the machine's
11717 settings and state to the state that was saved in the snapshot (if any).
11718
11719 This destroys the machine's current state. After calling this,
11720 <link to="IMachine::currentSnapshot" /> points to the snapshot
11721 that was restored.
11722 </li>
11723
11724 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
11725 without affecting the current machine state.
11726
11727 This does not change the current machine state, but instead frees the
11728 resources allocated when the snapshot was taken: the settings and machine
11729 state file are deleted (if any), and the snapshot's differencing image for
11730 each of the machine's media gets merged with its parent image.
11731
11732 Neither the current machine state nor other snapshots are affected
11733 by this operation, except that parent media will be modified
11734 to contain the disk data associated with the snapshot being deleted.
11735
11736 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
11737 attribute is set to the current snapshot's parent or @c null if it
11738 has no parent. Otherwise the attribute is unchanged.
11739 </li>
11740 </ul>
11741
11742 Each snapshot contains a copy of virtual machine's settings (hardware
11743 configuration etc.). This copy is contained in an immutable (read-only)
11744 instance of <link to="IMachine" /> which is available from the snapshot's
11745 <link to="#machine" /> attribute. When restoring the snapshot, these
11746 settings are copied back to the original machine.
11747
11748 In addition, if the machine was running when the
11749 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
11750 the current VM state is saved in the snapshot (similarly to what happens
11751 when a VM's state is saved). The snapshot is then said to be <i>online</i>
11752 because when restoring it, the VM will be running.
11753
11754 If the machine was in <link to="MachineState_Saved">saved</link> saved,
11755 the snapshot receives a copy of the execution state file
11756 (<link to="IMachine::stateFilePath"/>).
11757
11758 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
11759 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
11760 it then contains a so-called "zero execution state", representing a
11761 machine that is powered off.
11762 </desc>
11763
11764 <attribute name="id" type="uuid" mod="string" readonly="yes">
11765 <desc>UUID of the snapshot.</desc>
11766 </attribute>
11767
11768 <attribute name="name" type="wstring">
11769 <desc>Short name of the snapshot.
11770 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11771 be called implicitly.</note>
11772 </desc>
11773 </attribute>
11774
11775 <attribute name="description" type="wstring">
11776 <desc>Optional description of the snapshot.
11777 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11778 be called implicitly.</note>
11779 </desc>
11780 </attribute>
11781
11782 <attribute name="timeStamp" type="long long" readonly="yes">
11783 <desc>
11784 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
11785 </desc>
11786 </attribute>
11787
11788 <attribute name="online" type="boolean" readonly="yes">
11789 <desc>
11790 @c true if this snapshot is an online snapshot and @c false otherwise.
11791
11792 When this attribute is @c true, the
11793 <link to="IMachine::stateFilePath"/> attribute of the
11794 <link to="#machine"/> object associated with this snapshot
11795 will point to the saved state file. Otherwise, it will be
11796 an empty string.
11797 </desc>
11798 </attribute>
11799
11800 <attribute name="machine" type="IMachine" readonly="yes">
11801 <desc>
11802 Virtual machine this snapshot is taken on. This object
11803 stores all settings the machine had when taking this snapshot.
11804 <note>
11805 The returned machine object is immutable, i.e. no
11806 any settings can be changed.
11807 </note>
11808 </desc>
11809 </attribute>
11810
11811 <attribute name="parent" type="ISnapshot" readonly="yes">
11812 <desc>
11813 Parent snapshot (a snapshot this one is based on), or
11814 @c null if the snapshot has no parent (i.e. is the first snapshot).
11815 </desc>
11816 </attribute>
11817
11818 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
11819 <desc>
11820 Child snapshots (all snapshots having this one as a parent).
11821 By inspecting this attribute starting with a machine's root snapshot
11822 (which can be obtained by calling <link to="IMachine::findSnapshot" />
11823 with a @c null UUID), a machine's snapshots tree can be iterated over.
11824 </desc>
11825 </attribute>
11826
11827 <method name="getChildrenCount" const="yes">
11828 <desc>
11829 Returns the number of direct childrens of this snapshot.
11830 </desc>
11831 <param name="childrenCount" type="unsigned long" dir="return">
11832 <desc>
11833 </desc>
11834 </param>
11835 </method>
11836
11837 </interface>
11838
11839
11840 <!--
11841 // IMedium
11842 /////////////////////////////////////////////////////////////////////////
11843 -->
11844
11845 <enum
11846 name="MediumState"
11847 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
11848 >
11849 <desc>
11850 Virtual medium state.
11851 <see><link to="IMedium"/></see>
11852 </desc>
11853
11854 <const name="NotCreated" value="0">
11855 <desc>
11856 Associated medium storage does not exist (either was not created yet or
11857 was deleted).
11858 </desc>
11859 </const>
11860 <const name="Created" value="1">
11861 <desc>
11862 Associated storage exists and accessible; this gets set if the
11863 accessibility check performed by <link to="IMedium::refreshState" />
11864 was successful.
11865 </desc>
11866 </const>
11867 <const name="LockedRead" value="2">
11868 <desc>
11869 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
11870 no data modification is possible.
11871 </desc>
11872 </const>
11873 <const name="LockedWrite" value="3">
11874 <desc>
11875 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
11876 no concurrent data reading or modification is possible.
11877 </desc>
11878 </const>
11879 <const name="Inaccessible" value="4">
11880 <desc>
11881 Medium accessibility check (see <link to="IMedium::refreshState" />) has
11882 not yet been performed, or else, associated medium storage is not
11883 accessible. In the first case, <link to="IMedium::lastAccessError"/>
11884 is empty, in the second case, it describes the error that occurred.
11885 </desc>
11886 </const>
11887 <const name="Creating" value="5">
11888 <desc>
11889 Associated medium storage is being created.
11890 </desc>
11891 </const>
11892 <const name="Deleting" value="6">
11893 <desc>
11894 Associated medium storage is being deleted.
11895 </desc>
11896 </const>
11897 </enum>
11898
11899 <enum
11900 name="MediumType"
11901 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
11902 >
11903 <desc>
11904 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
11905 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
11906 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
11907 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
11908 </desc>
11909
11910 <const name="Normal" value="0">
11911 <desc>
11912 Normal medium (attached directly or indirectly, preserved
11913 when taking snapshots).
11914 </desc>
11915 </const>
11916 <const name="Immutable" value="1">
11917 <desc>
11918 Immutable medium (attached indirectly, changes are wiped out
11919 the next time the virtual machine is started).
11920 </desc>
11921 </const>
11922 <const name="Writethrough" value="2">
11923 <desc>
11924 Write through medium (attached directly, ignored when
11925 taking snapshots).
11926 </desc>
11927 </const>
11928 <const name="Shareable" value="3">
11929 <desc>
11930 Allow using this medium concurrently by several machines.
11931 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
11932 </desc>
11933 </const>
11934 <const name="Readonly" value="4">
11935 <desc>
11936 A readonly medium, which can of course be used by several machines.
11937 <note>Present and accepted since VirtualBox 4.0.</note>
11938 </desc>
11939 </const>
11940 <const name="MultiAttach" value="5">
11941 <desc>
11942 A medium which is indirectly attached, so that one base medium can
11943 be used for several VMs which have their own differencing medium to
11944 store their modifications. In some sense a variant of Immutable
11945 with unset AutoReset flag in each differencing medium.
11946 <note>Present and accepted since VirtualBox 4.0.</note>
11947 </desc>
11948 </const>
11949 </enum>
11950
11951 <enum
11952 name="MediumVariant"
11953 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
11954 >
11955 <desc>
11956 Virtual medium image variant. More than one flag may be set.
11957 <see><link to="IMedium"/></see>
11958 </desc>
11959
11960 <const name="Standard" value="0">
11961 <desc>
11962 No particular variant requested, results in using the backend default.
11963 </desc>
11964 </const>
11965 <const name="VmdkSplit2G" value="0x01">
11966 <desc>
11967 VMDK image split in chunks of less than 2GByte.
11968 </desc>
11969 </const>
11970 <const name="VmdkRawDisk" value="0x02">
11971 <desc>
11972 VMDK image representing a raw disk.
11973 </desc>
11974 </const>
11975 <const name="VmdkStreamOptimized" value="0x04">
11976 <desc>
11977 VMDK streamOptimized image. Special import/export format which is
11978 read-only/append-only.
11979 </desc>
11980 </const>
11981 <const name="VmdkESX" value="0x08">
11982 <desc>
11983 VMDK format variant used on ESX products.
11984 </desc>
11985 </const>
11986 <const name="Fixed" value="0x10000">
11987 <desc>
11988 Fixed image. Only allowed for base images.
11989 </desc>
11990 </const>
11991 <const name="Diff" value="0x20000">
11992 <desc>
11993 Differencing image. Only allowed for child images.
11994 </desc>
11995 </const>
11996 <const name="NoCreateDir" value="0x40000000">
11997 <desc>
11998 Special flag which suppresses automatic creation of the subdirectory.
11999 Only used when passing the medium variant as an input parameter.
12000 </desc>
12001 </const>
12002 </enum>
12003
12004 <interface
12005 name="IMediumAttachment" extends="$unknown"
12006 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
12007 wsmap="struct"
12008 >
12009 <desc>
12010 The IMediumAttachment interface links storage media to virtual machines.
12011 For each medium (<link to="IMedium"/>) which has been attached to a
12012 storage controller (<link to="IStorageController"/>) of a machine
12013 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
12014 method, one instance of IMediumAttachment is added to the machine's
12015 <link to="IMachine::mediumAttachments"/> array attribute.
12016
12017 Each medium attachment specifies the storage controller as well as a
12018 port and device number and the IMedium instance representing a virtual
12019 hard disk or floppy or DVD image.
12020
12021 For removable media (DVDs or floppies), there are two additional
12022 options. For one, the IMedium instance can be @c null to represent
12023 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
12024 secondly, the medium can be one of the pseudo-media for host drives
12025 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
12026
12027 <h3>Attaching Hard Disks</h3>
12028
12029 Hard disks are attached to virtual machines using the
12030 <link to="IMachine::attachDevice"/> method and detached using the
12031 <link to="IMachine::detachDevice"/> method. Depending on a medium's
12032 type (see <link to="IMedium::type" />), hard disks are attached either
12033 <i>directly</i> or <i>indirectly</i>.
12034
12035 When a hard disk is being attached directly, it is associated with the
12036 virtual machine and used for hard disk operations when the machine is
12037 running. When a hard disk is being attached indirectly, a new differencing
12038 hard disk linked to it is implicitly created and this differencing hard
12039 disk is associated with the machine and used for hard disk operations.
12040 This also means that if <link to="IMachine::attachDevice"/> performs
12041 a direct attachment then the same hard disk will be returned in response
12042 to the subsequent <link to="IMachine::getMedium"/> call; however if
12043 an indirect attachment is performed then
12044 <link to="IMachine::getMedium"/> will return the implicitly created
12045 differencing hard disk, not the original one passed to <link
12046 to="IMachine::attachDevice"/>. In detail:
12047
12048 <ul>
12049 <li><b>Normal base</b> hard disks that do not have children (i.e.
12050 differencing hard disks linked to them) and that are not already
12051 attached to virtual machines in snapshots are attached <b>directly</b>.
12052 Otherwise, they are attached <b>indirectly</b> because having
12053 dependent children or being part of the snapshot makes it impossible
12054 to modify hard disk contents without breaking the integrity of the
12055 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
12056 quickly determine the kind of the attachment for the given hard
12057 disk. Note that if a normal base hard disk is to be indirectly
12058 attached to a virtual machine with snapshots then a special
12059 procedure called <i>smart attachment</i> is performed (see below).</li>
12060 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
12061 they are attached <b>directly</b> if they do not have children and are
12062 not attached to virtual machines in snapshots, and <b>indirectly</b>
12063 otherwise. Note that the smart attachment procedure is never performed
12064 for differencing hard disks.</li>
12065 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
12066 they are designed to be non-writable. If an immutable hard disk is
12067 attached to a virtual machine with snapshots then a special
12068 procedure called smart attachment is performed (see below).</li>
12069 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
12070 also as designed. This also means that writethrough hard disks cannot
12071 have other hard disks linked to them at all.</li>
12072 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
12073 also as designed. This also means that shareable hard disks cannot
12074 have other hard disks linked to them at all. They behave almost
12075 like writethrough hard disks, except that shareable hard disks can
12076 be attached to several virtual machines which are running, allowing
12077 concurrent accesses. You need special cluster software running in
12078 the virtual machines to make use of such disks.</li>
12079 </ul>
12080
12081 Note that the same hard disk, regardless of its type, may be attached to
12082 more than one virtual machine at a time. In this case, the machine that is
12083 started first gains exclusive access to the hard disk and attempts to
12084 start other machines having this hard disk attached will fail until the
12085 first machine is powered down.
12086
12087 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
12088 that the given hard disk remains associated with the given machine after a
12089 successful <link to="IMachine::detachDevice"/> call until
12090 <link to="IMachine::saveSettings"/> is called to save all changes to
12091 machine settings to disk. This deferring is necessary to guarantee that
12092 the hard disk configuration may be restored at any time by a call to
12093 <link to="IMachine::discardSettings"/> before the settings
12094 are saved (committed).
12095
12096 Note that if <link to="IMachine::discardSettings"/> is called after
12097 indirectly attaching some hard disks to the machine but before a call to
12098 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
12099 all differencing hard disks implicitly created by
12100 <link to="IMachine::attachDevice"/> for these indirect attachments.
12101 Such implicitly created hard disks will also be immediately deleted when
12102 detached explicitly using the <link to="IMachine::detachDevice"/>
12103 call if it is made before <link to="IMachine::saveSettings"/>. This
12104 implicit deletion is safe because newly created differencing hard
12105 disks do not contain any user data.
12106
12107 However, keep in mind that detaching differencing hard disks that were
12108 implicitly created by <link to="IMachine::attachDevice"/>
12109 before the last <link to="IMachine::saveSettings"/> call will
12110 <b>not</b> implicitly delete them as they may already contain some data
12111 (for example, as a result of virtual machine execution). If these hard
12112 disks are no more necessary, the caller can always delete them explicitly
12113 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
12114 from this machine by the <link to="IMachine::saveSettings"/> call.
12115
12116 <h3>Smart Attachment</h3>
12117
12118 When normal base or immutable hard disks are indirectly attached to a
12119 virtual machine then some additional steps are performed to make sure the
12120 virtual machine will have the most recent "view" of the hard disk being
12121 attached. These steps include walking through the machine's snapshots
12122 starting from the current one and going through ancestors up to the first
12123 snapshot. Hard disks attached to the virtual machine in all
12124 of the encountered snapshots are checked whether they are descendants of
12125 the given normal base or immutable hard disk. The first found child (which
12126 is the differencing hard disk) will be used instead of the normal base or
12127 immutable hard disk as a parent for creating a new differencing hard disk
12128 that will be actually attached to the machine. And only if no descendants
12129 are found or if the virtual machine does not have any snapshots then the
12130 normal base or immutable hard disk will be used itself as a parent for
12131 this differencing hard disk.
12132
12133 It is easier to explain what smart attachment does using the
12134 following example:
12135 <pre>
12136BEFORE attaching B.vdi: AFTER attaching B.vdi:
12137
12138Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
12139 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
12140 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
12141 Snapshot 4 (none) Snapshot 4 (none)
12142 CurState (none) CurState (D3->D2.vdi)
12143
12144 NOT
12145 ...
12146 CurState (D3->B.vdi)
12147 </pre>
12148 The first column is the virtual machine configuration before the base hard
12149 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
12150 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
12151 mean that the hard disk that is actually attached to the machine is a
12152 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
12153 another hard disk, <tt>B.vdi</tt>.
12154
12155 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
12156 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
12157 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
12158 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
12159 it cannot be attached directly and needs an indirect attachment (i.e.
12160 implicit creation of a new differencing hard disk). Due to the smart
12161 attachment procedure, the new differencing hard disk
12162 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
12163 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
12164 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
12165 machine.
12166
12167 Note that if there is more than one descendant hard disk of the given base
12168 hard disk found in a snapshot, and there is an exact device, channel and
12169 bus match, then this exact match will be used. Otherwise, the youngest
12170 descendant will be picked up.
12171
12172 There is one more important aspect of the smart attachment procedure which
12173 is not related to snapshots at all. Before walking through the snapshots
12174 as described above, the backup copy of the current list of hard disk
12175 attachment is searched for descendants. This backup copy is created when
12176 the hard disk configuration is changed for the first time after the last
12177 <link to="IMachine::saveSettings"/> call and used by
12178 <link to="IMachine::discardSettings"/> to undo the recent hard disk
12179 changes. When such a descendant is found in this backup copy, it will be
12180 simply re-attached back, without creating a new differencing hard disk for
12181 it. This optimization is necessary to make it possible to re-attach the
12182 base or immutable hard disk to a different bus, channel or device slot
12183 without losing the contents of the differencing hard disk actually
12184 attached to the machine in place of it.
12185
12186 </desc>
12187
12188 <attribute name="medium" type="IMedium" readonly="yes">
12189 <desc>Medium object associated with this attachment; it
12190 can be @c null for removable devices.</desc>
12191 </attribute>
12192
12193 <attribute name="controller" type="wstring" readonly="yes">
12194 <desc>Name of the storage controller of this attachment; this
12195 refers to one of the controllers in <link to="IMachine::storageControllers" />
12196 by name.</desc>
12197 </attribute>
12198
12199 <attribute name="port" type="long" readonly="yes">
12200 <desc>Port number of this attachment.
12201 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12202 </desc>
12203 </attribute>
12204
12205 <attribute name="device" type="long" readonly="yes">
12206 <desc>Device slot number of this attachment.
12207 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12208 </desc>
12209 </attribute>
12210
12211 <attribute name="type" type="DeviceType" readonly="yes">
12212 <desc>Device type of this attachment.</desc>
12213 </attribute>
12214
12215 <attribute name="passthrough" type="boolean" readonly="yes">
12216 <desc>Pass I/O requests through to a device on the host.</desc>
12217 </attribute>
12218
12219 <attribute name="temporaryEject" type="boolean" readonly="yes">
12220 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12221 </attribute>
12222
12223 <attribute name="isEjected" type="boolean" readonly="yes">
12224 <desc>Signals that the removable medium has been ejected. This is not
12225 necessarily equivalent to having a @c null medium association.</desc>
12226 </attribute>
12227
12228 <attribute name="nonRotational" type="boolean" readonly="yes">
12229 <desc>Whether the associated medium is non-rotational.</desc>
12230 </attribute>
12231
12232 <attribute name="discard" type="boolean" readonly="yes">
12233 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12234 </attribute>
12235
12236 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12237 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12238 </attribute>
12239
12240 </interface>
12241
12242 <interface
12243 name="IMedium" extends="$unknown"
12244 uuid="86fd6208-4c8c-40c2-a4e3-f6b47ac6ef07"
12245 wsmap="managed"
12246 >
12247 <desc>
12248 The IMedium interface represents virtual storage for a machine's
12249 hard disks, CD/DVD or floppy drives. It will typically represent
12250 a disk image on the host, for example a VDI or VMDK file representing
12251 a virtual hard disk, or an ISO or RAW file representing virtual
12252 removable media, but can also point to a network location (e.g.
12253 for iSCSI targets).
12254
12255 Instances of IMedium are connected to virtual machines by way of medium
12256 attachments, which link the storage medium to a particular device slot
12257 of a storage controller of the virtual machine.
12258 In the VirtualBox API, virtual storage is therefore always represented
12259 by the following chain of object links:
12260
12261 <ul>
12262 <li><link to="IMachine::storageControllers"/> contains an array of
12263 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12264 these are instances of <link to="IStorageController"/>).</li>
12265 <li><link to="IMachine::mediumAttachments"/> contains an array of
12266 medium attachments (instances of <link to="IMediumAttachment"/>
12267 created by <link to="IMachine::attachDevice" />),
12268 each containing a storage controller from the above array, a
12269 port/device specification, and an instance of IMedium representing
12270 the medium storage (image file).
12271
12272 For removable media, the storage medium is optional; a medium
12273 attachment with no medium represents a CD/DVD or floppy drive
12274 with no medium inserted. By contrast, hard disk attachments
12275 will always have an IMedium object attached.</li>
12276 <li>Each IMedium in turn points to a storage unit (such as a file
12277 on the host computer or a network resource) that holds actual
12278 data. This location is represented by the <link to="#location"/>
12279 attribute.</li>
12280 </ul>
12281
12282 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12283 new hard disk media can be created with the VirtualBox API using the
12284 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12285 disks (see below) are usually implicitly created by VirtualBox as
12286 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12287 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12288 should be created with external tools and then opened from within VirtualBox.
12289
12290 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12291 drive. In that case the <link to="#id" /> attribute contains the UUID of
12292 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12293
12294 <h3>Media registries</h3>
12295
12296 When a medium has been opened or created using one of the aforementioned
12297 APIs, it becomes "known" to VirtualBox. Known media can be attached
12298 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12299 They also appear in the global
12300 <link to="IVirtualBox::hardDisks" />,
12301 <link to="IVirtualBox::DVDImages" /> and
12302 <link to="IVirtualBox::floppyImages" /> arrays.
12303
12304 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12305 in the VirtualBox.xml file, which was shared between all machines and made
12306 transporting machines and their media from one host to another difficult.
12307
12308 Starting with VirtualBox 4.0, media are only added to a registry when they are
12309 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12310 backwards compatibility, which registry a medium is added to depends on which
12311 VirtualBox version created a machine:
12312
12313 <ul>
12314 <li>If the medium has first been attached to a machine which was created by
12315 VirtualBox 4.0 or later, it is added to that machine's media registry in
12316 the machine XML settings file. This way all information about a machine's
12317 media attachments is contained in a single file and can be transported
12318 easily.</li>
12319 <li>For older media attachments (i.e. if the medium was first attached to a
12320 machine which was created with a VirtualBox version before 4.0), media
12321 continue to be registered in the global VirtualBox settings file, for
12322 backwards compatibility.</li>
12323 </ul>
12324
12325 See <link to="IVirtualBox::openMedium" /> for more information.
12326
12327 Media are removed from media registries by the <link to="IMedium::close"/>,
12328 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12329
12330 <h3>Accessibility checks</h3>
12331
12332 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12333 method is called explicitly on a medium. This is done to make the VirtualBox object
12334 ready for serving requests as fast as possible and let the end-user
12335 application decide if it needs to check media accessibility right away or not.
12336
12337 As a result, when VirtualBox starts up (e.g. the VirtualBox
12338 object gets created for the first time), all known media are in the
12339 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12340 attribute is an empty string because no actual accessibility check has
12341 been made yet.
12342
12343 After calling <link to="#refreshState" />, a medium is considered
12344 <i>accessible</i> if its storage unit can be read. In that case, the
12345 <link to="#state"/> attribute has a value of "Created". If the storage
12346 unit cannot be read (for example, because it is located on a disconnected
12347 network resource, or was accidentally deleted outside VirtualBox),
12348 the medium is considered <i>inaccessible</i>, which is indicated by the
12349 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12350 obtained by reading the <link to="#lastAccessError"/> attribute.
12351
12352 <h3>Medium types</h3>
12353
12354 There are five types of medium behavior which are stored in the
12355 <link to="#type"/> attribute (see <link to="MediumType" />) and
12356 which define the medium's behavior with attachments and snapshots.
12357
12358 All media can be also divided in two groups: <i>base</i> media and
12359 <i>differencing</i> media. A base medium contains all sectors of the
12360 medium data in its own storage and therefore can be used independently.
12361 In contrast, a differencing medium is a "delta" to some other medium and
12362 contains only those sectors which differ from that other medium, which is
12363 then called a <i>parent</i>. The differencing medium is said to be
12364 <i>linked to</i> that parent. The parent may be itself a differencing
12365 medium, thus forming a chain of linked media. The last element in that
12366 chain must always be a base medium. Note that several differencing
12367 media may be linked to the same parent medium.
12368
12369 Differencing media can be distinguished from base media by querying the
12370 <link to="#parent"/> attribute: base media do not have parents they would
12371 depend on, so the value of this attribute is always @c null for them.
12372 Using this attribute, it is possible to walk up the medium tree (from the
12373 child medium to its parent). It is also possible to walk down the tree
12374 using the <link to="#children"/> attribute.
12375
12376 Note that the type of all differencing media is "normal"; all other
12377 values are meaningless for them. Base media may be of any type.
12378
12379 <h3>Automatic composition of the file name part</h3>
12380
12381 Another extension to the <link to="IMedium::location"/> attribute is that
12382 there is a possibility to cause VirtualBox to compose a unique value for
12383 the file name part of the location using the UUID of the hard disk. This
12384 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12385 e.g. before the storage unit is created, and works as follows. You set the
12386 value of the <link to="IMedium::location"/> attribute to a location
12387 specification which only contains the path specification but not the file
12388 name part and ends with either a forward slash or a backslash character.
12389 In response, VirtualBox will generate a new UUID for the hard disk and
12390 compose the file name using the following pattern:
12391 <pre>
12392 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12393 </pre>
12394 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12395 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12396 is the default extension for the storage format of this hard disk. After
12397 that, you may call any of the methods that create a new hard disk storage
12398 unit and they will use the generated UUID and file name.
12399 </desc>
12400
12401 <attribute name="id" type="uuid" mod="string" readonly="yes">
12402 <desc>
12403 UUID of the medium. For a newly created medium, this value is a randomly
12404 generated UUID.
12405
12406 <note>
12407 For media in one of MediumState_NotCreated, MediumState_Creating or
12408 MediumState_Deleting states, the value of this property is undefined
12409 and will most likely be an empty UUID.
12410 </note>
12411 </desc>
12412 </attribute>
12413
12414 <attribute name="description" type="wstring">
12415 <desc>
12416 Optional description of the medium. For a newly created medium the value
12417 of this attribute is an empty string.
12418
12419 Medium types that don't support this attribute will return E_NOTIMPL in
12420 attempt to get or set this attribute's value.
12421
12422 <note>
12423 For some storage types, reading this attribute may return an outdated
12424 (last known) value when <link to="#state"/> is <link
12425 to="MediumState_Inaccessible"/> or <link
12426 to="MediumState_LockedWrite"/> because the value of this attribute is
12427 stored within the storage unit itself. Also note that changing the
12428 attribute value is not possible in such case, as well as when the
12429 medium is the <link to="MediumState_LockedRead"/> state.
12430 </note>
12431 </desc>
12432 </attribute>
12433
12434 <attribute name="state" type="MediumState" readonly="yes">
12435 <desc>
12436 Returns the current medium state, which is the last state set by
12437 the accessibility check performed by <link to="#refreshState"/>.
12438 If that method has not yet been called on the medium, the state
12439 is "Inaccessible"; as opposed to truly inaccessible media, the
12440 value of <link to="#lastAccessError"/> will be an empty string in
12441 that case.
12442
12443 <note>As of version 3.1, this no longer performs an accessibility check
12444 automatically; call <link to="#refreshState"/> for that.
12445 </note>
12446 </desc>
12447 </attribute>
12448
12449 <attribute name="variant" type="MediumVariant" safearray="yes" readonly="yes">
12450 <desc>
12451 Returns the storage format variant information for this medium
12452 as an aaray of the flags described at <link to="MediumVariant" />.
12453 Before <link to="#refreshState"/> is called this method returns
12454 an undefined value.
12455 </desc>
12456 </attribute>
12457
12458 <attribute name="location" type="wstring">
12459 <desc>
12460 Location of the storage unit holding medium data.
12461
12462 The format of the location string is medium type specific. For medium
12463 types using regular files in a host's file system, the location
12464 string is the full file name.
12465
12466 Some medium types may support changing the storage unit location by
12467 simply changing the value of this property. If this operation is not
12468 supported, the implementation will return E_NOTIMPL in attempt to set
12469 this attribute's value.
12470
12471 When setting a value of the location attribute which is a regular file
12472 in the host's file system, the given file name may be either relative to
12473 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12474 absolute. Note that if the given location specification does not contain
12475 the file extension part then a proper default extension will be
12476 automatically appended by the implementation depending on the medium type.
12477 </desc>
12478 </attribute>
12479
12480 <attribute name="name" type="wstring" readonly="yes">
12481 <desc>
12482 Name of the storage unit holding medium data.
12483
12484 The returned string is a short version of the <link to="#location"/>
12485 attribute that is suitable for representing the medium in situations
12486 where the full location specification is too long (such as lists
12487 and comboboxes in GUI frontends). This string is also used by frontends
12488 to sort the media list alphabetically when needed.
12489
12490 For example, for locations that are regular files in the host's file
12491 system, the value of this attribute is just the file name (+ extension),
12492 without the path specification.
12493
12494 Note that as opposed to the <link to="#location"/> attribute, the name
12495 attribute will not necessary be unique for a list of media of the
12496 given type and format.
12497 </desc>
12498 </attribute>
12499
12500 <attribute name="deviceType" type="DeviceType" readonly="yes">
12501 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12502 medium.</desc>
12503 </attribute>
12504
12505 <attribute name="hostDrive" type="boolean" readonly="yes">
12506 <desc>True if this corresponds to a drive on the host.</desc>
12507 </attribute>
12508
12509 <attribute name="size" type="long long" readonly="yes">
12510 <desc>
12511 Physical size of the storage unit used to hold medium data (in bytes).
12512
12513 <note>
12514 For media whose <link to="#state"/> is <link
12515 to="MediumState_Inaccessible"/>, the value of this property is the
12516 last known size. For <link to="MediumState_NotCreated"/> media,
12517 the returned value is zero.
12518 </note>
12519 </desc>
12520 </attribute>
12521
12522 <attribute name="format" type="wstring" readonly="yes">
12523 <desc>
12524 Storage format of this medium.
12525
12526 The value of this attribute is a string that specifies a backend used
12527 to store medium data. The storage format is defined when you create a
12528 new medium or automatically detected when you open an existing medium,
12529 and cannot be changed later.
12530
12531 The list of all storage formats supported by this VirtualBox
12532 installation can be obtained using
12533 <link to="ISystemProperties::mediumFormats"/>.
12534 </desc>
12535 </attribute>
12536
12537 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12538 <desc>
12539 Storage medium format object corresponding to this medium.
12540
12541 The value of this attribute is a reference to the medium format object
12542 that specifies the backend properties used to store medium data. The
12543 storage format is defined when you create a new medium or automatically
12544 detected when you open an existing medium, and cannot be changed later.
12545
12546 <note>@c null is returned if there is no associated medium format
12547 object. This can e.g. happen for medium objects representing host
12548 drives and other special medium objects.</note>
12549 </desc>
12550 </attribute>
12551
12552 <attribute name="type" type="MediumType">
12553 <desc>
12554 Type (role) of this medium.
12555
12556 The following constraints apply when changing the value of this
12557 attribute:
12558 <ul>
12559 <li>If a medium is attached to a virtual machine (either in the
12560 current state or in one of the snapshots), its type cannot be
12561 changed.
12562 </li>
12563 <li>As long as the medium has children, its type cannot be set
12564 to <link to="MediumType_Writethrough"/>.
12565 </li>
12566 <li>The type of all differencing media is
12567 <link to="MediumType_Normal"/> and cannot be changed.
12568 </li>
12569 </ul>
12570
12571 The type of a newly created or opened medium is set to
12572 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12573 which have a type of <link to="MediumType_Writethrough"/>.
12574 </desc>
12575 </attribute>
12576
12577 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12578 <desc>
12579 Returns which medium types can selected for this medium.
12580
12581 <result name="E_NOTIMPL">
12582 This attribute is not implemented at the moment.
12583 </result>
12584 </desc>
12585 </attribute>
12586
12587 <attribute name="parent" type="IMedium" readonly="yes">
12588 <desc>
12589 Parent of this medium (the medium this medium is directly based
12590 on).
12591
12592 Only differencing media have parents. For base (non-differencing)
12593 media, @c null is returned.
12594 </desc>
12595 </attribute>
12596
12597 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12598 <desc>
12599 Children of this medium (all differencing media directly based
12600 on this medium). A @c null array is returned if this medium
12601 does not have any children.
12602 </desc>
12603 </attribute>
12604
12605 <attribute name="base" type="IMedium" readonly="yes">
12606 <desc>
12607 Base medium of this medium.
12608
12609 If this is a differencing medium, its base medium is the medium
12610 the given medium branch starts from. For all other types of media, this
12611 property returns the medium object itself (i.e. the same object this
12612 property is read on).
12613 </desc>
12614 </attribute>
12615
12616 <attribute name="readOnly" type="boolean" readonly="yes">
12617 <desc>
12618 Returns @c true if this medium is read-only and @c false otherwise.
12619
12620 A medium is considered to be read-only when its contents cannot be
12621 modified without breaking the integrity of other parties that depend on
12622 this medium such as its child media or snapshots of virtual machines
12623 where this medium is attached to these machines. If there are no
12624 children and no such snapshots then there is no dependency and the
12625 medium is not read-only.
12626
12627 The value of this attribute can be used to determine the kind of the
12628 attachment that will take place when attaching this medium to a
12629 virtual machine. If the value is @c false then the medium will
12630 be attached directly. If the value is @c true then the medium
12631 will be attached indirectly by creating a new differencing child
12632 medium for that. See the interface description for more information.
12633
12634 Note that all <link to="MediumType_Immutable">Immutable</link> media
12635 are always read-only while all
12636 <link to="MediumType_Writethrough">Writethrough</link> media are
12637 always not.
12638
12639 <note>
12640 The read-only condition represented by this attribute is related to
12641 the medium type and usage, not to the current
12642 <link to="IMedium::state">medium state</link> and not to the read-only
12643 state of the storage unit.
12644 </note>
12645 </desc>
12646 </attribute>
12647
12648 <attribute name="logicalSize" type="long long" readonly="yes">
12649 <desc>
12650 Logical size of this medium (in bytes), as reported to the
12651 guest OS running inside the virtual machine this medium is
12652 attached to. The logical size is defined when the medium is created
12653 and cannot be changed later.
12654
12655 <note>
12656 For media whose state is <link to="#state"/> is <link
12657 to="MediumState_Inaccessible"/>, the value of this property is the
12658 last known logical size. For <link to="MediumState_NotCreated"/>
12659 media, the returned value is zero.
12660 </note>
12661 </desc>
12662 </attribute>
12663
12664 <attribute name="autoReset" type="boolean">
12665 <desc>
12666 Whether this differencing medium will be automatically reset each
12667 time a virtual machine it is attached to is powered up. This
12668 attribute is automatically set to @c true for the last
12669 differencing image of an "immutable" medium (see
12670 <link to="MediumType" />).
12671
12672 See <link to="#reset"/> for more information about resetting
12673 differencing media.
12674
12675 <note>
12676 Reading this property on a base (non-differencing) medium will
12677 always @c false. Changing the value of this property in this
12678 case is not supported.
12679 </note>
12680
12681 <result name="VBOX_E_NOT_SUPPORTED">
12682 This is not a differencing medium (when changing the attribute
12683 value).
12684 </result>
12685 </desc>
12686 </attribute>
12687
12688 <attribute name="lastAccessError" type="wstring" readonly="yes">
12689 <desc>
12690 Text message that represents the result of the last accessibility
12691 check performed by <link to="#refreshState"/>.
12692
12693 An empty string is returned if the last accessibility check
12694 was successful or has not yet been called. As a result, if
12695 <link to="#state" /> is "Inaccessible" and this attribute is empty,
12696 then <link to="#refreshState"/> has yet to be called; this is the
12697 default value of media after VirtualBox initialization.
12698 A non-empty string indicates a failure and should normally describe
12699 a reason of the failure (for example, a file read error).
12700 </desc>
12701 </attribute>
12702
12703 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
12704 <desc>
12705 Array of UUIDs of all machines this medium is attached to.
12706
12707 A @c null array is returned if this medium is not attached to any
12708 machine or to any machine's snapshot.
12709
12710 <note>
12711 The returned array will include a machine even if this medium is not
12712 attached to that machine in the current state but attached to it in
12713 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
12714 details.
12715 </note>
12716 </desc>
12717 </attribute>
12718
12719 <method name="setIds">
12720 <desc>
12721 Changes the UUID and parent UUID for a hard disk medium.
12722 </desc>
12723 <param name="setImageId" type="boolean" dir="in">
12724 <desc>
12725 Select whether a new image UUID is set or not.
12726 </desc>
12727 </param>
12728 <param name="imageId" type="uuid" mod="string" dir="in">
12729 <desc>
12730 New UUID for the image. If an empty string is passed, then a new
12731 UUID is automatically created, provided that @a setImageId is @c true.
12732 Specifying a zero UUID is not allowed.
12733 </desc>
12734 </param>
12735 <param name="setParentId" type="boolean" dir="in">
12736 <desc>
12737 Select whether a new parent UUID is set or not.
12738 </desc>
12739 </param>
12740 <param name="parentId" type="uuid" mod="string" dir="in">
12741 <desc>
12742 New parent UUID for the image. If an empty string is passed, then a
12743 new UUID is automatically created, provided @a setParentId is
12744 @c true. A zero UUID is valid.
12745 </desc>
12746 </param>
12747 <result name="E_INVALIDARG">
12748 Invalid parameter combination.
12749 </result>
12750 <result name="VBOX_E_NOT_SUPPORTED">
12751 Medium is not a hard disk medium.
12752 </result>
12753 </method>
12754
12755 <method name="refreshState">
12756 <desc>
12757 If the current medium state (see <link to="MediumState"/>) is one of
12758 "Created", "Inaccessible" or "LockedRead", then this performs an
12759 accessibility check on the medium and sets the value of the <link to="#state"/>
12760 attribute accordingly; that value is also returned for convenience.
12761
12762 For all other state values, this does not perform a refresh but returns
12763 the state only.
12764
12765 The refresh, if performed, may take a long time (several seconds or even
12766 minutes, depending on the storage unit location and format) because it performs an
12767 accessibility check of the storage unit. This check may cause a significant
12768 delay if the storage unit of the given medium is, for example, a file located
12769 on a network share which is not currently accessible due to connectivity
12770 problems. In that case, the call will not return until a timeout
12771 interval defined by the host OS for this operation expires. For this reason,
12772 it is recommended to never read this attribute on the main UI thread to avoid
12773 making the UI unresponsive.
12774
12775 If the last known state of the medium is "Created" and the accessibility
12776 check fails, then the state would be set to "Inaccessible", and
12777 <link to="#lastAccessError"/> may be used to get more details about the
12778 failure. If the state of the medium is "LockedRead", then it remains the
12779 same, and a non-empty value of <link to="#lastAccessError"/> will
12780 indicate a failed accessibility check in this case.
12781
12782 Note that not all medium states are applicable to all medium types.
12783 </desc>
12784 <param name="state" type="MediumState" dir="return">
12785 <desc>
12786 New medium state.
12787 </desc>
12788 </param>
12789 </method>
12790
12791 <method name="getSnapshotIds">
12792 <desc>
12793 Returns an array of UUIDs of all snapshots of the given machine where
12794 this medium is attached to.
12795
12796 If the medium is attached to the machine in the current state, then the
12797 first element in the array will always be the ID of the queried machine
12798 (i.e. the value equal to the @c machineId argument), followed by
12799 snapshot IDs (if any).
12800
12801 If the medium is not attached to the machine in the current state, then
12802 the array will contain only snapshot IDs.
12803
12804 The returned array may be @c null if this medium is not attached
12805 to the given machine at all, neither in the current state nor in one of
12806 the snapshots.
12807 </desc>
12808 <param name="machineId" type="uuid" mod="string" dir="in">
12809 <desc>
12810 UUID of the machine to query.
12811 </desc>
12812 </param>
12813 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
12814 <desc>
12815 Array of snapshot UUIDs of the given machine using this medium.
12816 </desc>
12817 </param>
12818 </method>
12819
12820 <method name="lockRead">
12821 <desc>
12822 Locks this medium for reading.
12823
12824 A read lock is shared: many clients can simultaneously lock the
12825 same medium for reading unless it is already locked for writing (see
12826 <link to="#lockWrite"/>) in which case an error is returned.
12827
12828 When the medium is locked for reading, it cannot be modified
12829 from within VirtualBox. This means that any method that changes
12830 the properties of this medium or contents of the storage unit
12831 will return an error (unless explicitly stated otherwise). That
12832 includes an attempt to start a virtual machine that wants to
12833 write to the the medium.
12834
12835 When the virtual machine is started up, it locks for reading all
12836 media it uses in read-only mode. If some medium cannot be locked
12837 for reading, the startup procedure will fail.
12838 A medium is typically locked for reading while it is used by a running
12839 virtual machine but has a depending differencing image that receives
12840 the actual write operations. This way one base medium can have
12841 multiple child differencing images which can be written to
12842 simultaneously. Read-only media such as DVD and floppy images are
12843 also locked for reading only (so they can be in use by multiple
12844 machines simultaneously).
12845
12846 A medium is also locked for reading when it is the source of a
12847 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12848
12849 The medium locked for reading must be unlocked using the <link
12850 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
12851 can be nested and must be followed by the same number of paired
12852 <link to="#unlockRead"/> calls.
12853
12854 This method sets the medium state (see <link to="#state"/>) to
12855 "LockedRead" on success. The medium's previous state must be
12856 one of "Created", "Inaccessible" or "LockedRead".
12857
12858 Locking an inaccessible medium is not an error; this method performs
12859 a logical lock that prevents modifications of this medium through
12860 the VirtualBox API, not a physical file-system lock of the underlying
12861 storage unit.
12862
12863 This method returns the current state of the medium
12864 <i>before</i> the operation.
12865
12866 <result name="VBOX_E_INVALID_OBJECT_STATE">
12867 Invalid medium state (e.g. not created, locked, inaccessible,
12868 creating, deleting).
12869 </result>
12870
12871 </desc>
12872 <param name="state" type="MediumState" dir="return">
12873 <desc>
12874 State of the medium after the operation.
12875 </desc>
12876 </param>
12877 </method>
12878
12879 <method name="unlockRead">
12880 <desc>
12881 Cancels the read lock previously set by <link to="#lockRead"/>.
12882
12883 For both success and failure, this method returns the current state
12884 of the medium <i>after</i> the operation.
12885
12886 See <link to="#lockRead"/> for more details.
12887
12888 <result name="VBOX_E_INVALID_OBJECT_STATE">
12889 Medium not locked for reading.
12890 </result>
12891
12892 </desc>
12893 <param name="state" type="MediumState" dir="return">
12894 <desc>
12895 State of the medium after the operation.
12896 </desc>
12897 </param>
12898 </method>
12899
12900 <method name="lockWrite">
12901 <desc>
12902 Locks this medium for writing.
12903
12904 A write lock, as opposed to <link to="#lockRead"/>, is
12905 exclusive: there may be only one client holding a write lock,
12906 and there may be no read locks while the write lock is held.
12907 As a result, read-locking fails if a write lock is held, and
12908 write-locking fails if either a read or another write lock is held.
12909
12910 When a medium is locked for writing, it cannot be modified
12911 from within VirtualBox, and it is not guaranteed that the values
12912 of its properties are up-to-date. Any method that changes the
12913 properties of this medium or contents of the storage unit will
12914 return an error (unless explicitly stated otherwise).
12915
12916 When a virtual machine is started up, it locks for writing all
12917 media it uses to write data to. If any medium could not be locked
12918 for writing, the startup procedure will fail. If a medium has
12919 differencing images, then while the machine is running, only
12920 the last ("leaf") differencing image is locked for writing,
12921 whereas its parents are locked for reading only.
12922
12923 A medium is also locked for writing when it is the target of a
12924 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12925
12926 The medium locked for writing must be unlocked using the <link
12927 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
12928
12929 This method sets the medium state (see <link to="#state"/>) to
12930 "LockedWrite" on success. The medium's previous state must be
12931 either "Created" or "Inaccessible".
12932
12933 Locking an inaccessible medium is not an error; this method performs
12934 a logical lock that prevents modifications of this medium through
12935 the VirtualBox API, not a physical file-system lock of the underlying
12936 storage unit.
12937
12938 For both, success and failure, this method returns the current
12939 state of the medium <i>before</i> the operation.
12940
12941 <result name="VBOX_E_INVALID_OBJECT_STATE">
12942 Invalid medium state (e.g. not created, locked, inaccessible,
12943 creating, deleting).
12944 </result>
12945
12946 </desc>
12947 <param name="state" type="MediumState" dir="return">
12948 <desc>
12949 State of the medium after the operation.
12950 </desc>
12951 </param>
12952 </method>
12953
12954 <method name="unlockWrite">
12955 <desc>
12956 Cancels the write lock previously set by <link to="#lockWrite"/>.
12957
12958 For both success and failure, this method returns the current
12959 state of the medium <i>after</i> the operation.
12960
12961 See <link to="#lockWrite"/> for more details.
12962
12963 <result name="VBOX_E_INVALID_OBJECT_STATE">
12964 Medium not locked for writing.
12965 </result>
12966
12967 </desc>
12968 <param name="state" type="MediumState" dir="return">
12969 <desc>
12970 State of the medium after the operation.
12971 </desc>
12972 </param>
12973 </method>
12974
12975 <method name="close">
12976 <desc>
12977 Closes this medium.
12978
12979 The medium must not be attached to any known virtual machine
12980 and must not have any known child media, otherwise the
12981 operation will fail.
12982
12983 When the medium is successfully closed, it is removed from
12984 the list of registered media, but its storage unit is not
12985 deleted. In particular, this means that this medium can
12986 later be opened again using the <link to="IVirtualBox::openMedium"/>
12987 call.
12988
12989 Note that after this method successfully returns, the given medium
12990 object becomes uninitialized. This means that any attempt
12991 to call any of its methods or attributes will fail with the
12992 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
12993
12994 <result name="VBOX_E_INVALID_OBJECT_STATE">
12995 Invalid medium state (other than not created, created or
12996 inaccessible).
12997 </result>
12998 <result name="VBOX_E_OBJECT_IN_USE">
12999 Medium attached to virtual machine.
13000 </result>
13001 <result name="VBOX_E_FILE_ERROR">
13002 Settings file not accessible.
13003 </result>
13004 <result name="VBOX_E_XML_ERROR">
13005 Could not parse the settings file.
13006 </result>
13007
13008 </desc>
13009 </method>
13010
13011 <!-- property methods -->
13012
13013 <method name="getProperty" const="yes">
13014 <desc>
13015 Returns the value of the custom medium property with the given name.
13016
13017 The list of all properties supported by the given medium format can
13018 be obtained with <link to="IMediumFormat::describeProperties"/>.
13019
13020 <note>If this method returns an empty string in @a value, the requested
13021 property is supported but currently not assigned any value.</note>
13022
13023 <result name="VBOX_E_OBJECT_NOT_FOUND">
13024 Requested property does not exist (not supported by the format).
13025 </result>
13026 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13027 </desc>
13028 <param name="name" type="wstring" dir="in">
13029 <desc>Name of the property to get.</desc>
13030 </param>
13031 <param name="value" type="wstring" dir="return">
13032 <desc>Current property value.</desc>
13033 </param>
13034 </method>
13035
13036 <method name="setProperty">
13037 <desc>
13038 Sets the value of the custom medium property with the given name.
13039
13040 The list of all properties supported by the given medium format can
13041 be obtained with <link to="IMediumFormat::describeProperties"/>.
13042
13043 <note>Setting the property value to @c null or an empty string is
13044 equivalent to deleting the existing value. A default value (if it is
13045 defined for this property) will be used by the format backend in this
13046 case.</note>
13047
13048 <result name="VBOX_E_OBJECT_NOT_FOUND">
13049 Requested property does not exist (not supported by the format).
13050 </result>
13051 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13052 </desc>
13053 <param name="name" type="wstring" dir="in">
13054 <desc>Name of the property to set.</desc>
13055 </param>
13056 <param name="value" type="wstring" dir="in">
13057 <desc>Property value to set.</desc>
13058 </param>
13059 </method>
13060
13061 <method name="getProperties" const="yes">
13062 <desc>
13063 Returns values for a group of properties in one call.
13064
13065 The names of the properties to get are specified using the @a names
13066 argument which is a list of comma-separated property names or
13067 an empty string if all properties are to be returned.
13068 <note>Currently the value of this argument is ignored and the method
13069 always returns all existing properties.</note>
13070
13071 The list of all properties supported by the given medium format can
13072 be obtained with <link to="IMediumFormat::describeProperties"/>.
13073
13074 The method returns two arrays, the array of property names corresponding
13075 to the @a names argument and the current values of these properties.
13076 Both arrays have the same number of elements with each element at the
13077 given index in the first array corresponds to an element at the same
13078 index in the second array.
13079
13080 For properties that do not have assigned values, an empty string is
13081 returned at the appropriate index in the @a returnValues array.
13082
13083 </desc>
13084 <param name="names" type="wstring" dir="in">
13085 <desc>
13086 Names of properties to get.
13087 </desc>
13088 </param>
13089 <param name="returnNames" type="wstring" safearray="yes" dir="out">
13090 <desc>Names of returned properties.</desc>
13091 </param>
13092 <param name="returnValues" type="wstring" safearray="yes" dir="return">
13093 <desc>Values of returned properties.</desc>
13094 </param>
13095 </method>
13096
13097 <method name="setProperties">
13098 <desc>
13099 Sets values for a group of properties in one call.
13100
13101 The names of the properties to set are passed in the @a names
13102 array along with the new values for them in the @a values array. Both
13103 arrays have the same number of elements with each element at the given
13104 index in the first array corresponding to an element at the same index
13105 in the second array.
13106
13107 If there is at least one property name in @a names that is not valid,
13108 the method will fail before changing the values of any other properties
13109 from the @a names array.
13110
13111 Using this method over <link to="#setProperty"/> is preferred if you
13112 need to set several properties at once since it is more efficient.
13113
13114 The list of all properties supported by the given medium format can
13115 be obtained with <link to="IMediumFormat::describeProperties"/>.
13116
13117 Setting the property value to @c null or an empty string is equivalent
13118 to deleting the existing value. A default value (if it is defined for
13119 this property) will be used by the format backend in this case.
13120 </desc>
13121 <param name="names" type="wstring" safearray="yes" dir="in">
13122 <desc>Names of properties to set.</desc>
13123 </param>
13124 <param name="values" type="wstring" safearray="yes" dir="in">
13125 <desc>Values of properties to set.</desc>
13126 </param>
13127 </method>
13128
13129 <!-- storage methods -->
13130
13131 <method name="createBaseStorage">
13132 <desc>
13133 Starts creating a hard disk storage unit (fixed/dynamic, according
13134 to the variant flags) in in the background. The previous storage unit
13135 created for this object, if any, must first be deleted using
13136 <link to="#deleteStorage"/>, otherwise the operation will fail.
13137
13138 Before the operation starts, the medium is placed in
13139 <link to="MediumState_Creating"/> state. If the create operation
13140 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
13141 state.
13142
13143 After the returned progress object reports that the operation has
13144 successfully completed, the medium state will be set to <link
13145 to="MediumState_Created"/>, the medium will be remembered by this
13146 VirtualBox installation and may be attached to virtual machines.
13147
13148 <result name="VBOX_E_NOT_SUPPORTED">
13149 The variant of storage creation operation is not supported. See <link
13150 to="IMediumFormat::capabilities"/>.
13151 </result>
13152 </desc>
13153 <param name="logicalSize" type="long long" dir="in">
13154 <desc>Maximum logical size of the medium in bytes.</desc>
13155 </param>
13156 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13157 <desc>Exact image variant which should be created (as a combination of
13158 <link to="MediumVariant" /> flags).</desc>
13159 </param>
13160 <param name="progress" type="IProgress" dir="return">
13161 <desc>Progress object to track the operation completion.</desc>
13162 </param>
13163 </method>
13164
13165 <method name="deleteStorage">
13166 <desc>
13167 Starts deleting the storage unit of this medium.
13168
13169 The medium must not be attached to any known virtual machine and must
13170 not have any known child media, otherwise the operation will fail.
13171 It will also fail if there is no storage unit to delete or if deletion
13172 is already in progress, or if the medium is being in use (locked for
13173 read or for write) or inaccessible. Therefore, the only valid state for
13174 this operation to succeed is <link to="MediumState_Created"/>.
13175
13176 Before the operation starts, the medium is placed in
13177 <link to="MediumState_Deleting"/> state and gets removed from the list
13178 of remembered hard disks (media registry). If the delete operation
13179 fails, the medium will be remembered again and placed back to
13180 <link to="MediumState_Created"/> state.
13181
13182 After the returned progress object reports that the operation is
13183 complete, the medium state will be set to
13184 <link to="MediumState_NotCreated"/> and you will be able to use one of
13185 the storage creation methods to create it again.
13186
13187 <see><link to="#close"/></see>
13188
13189 <result name="VBOX_E_OBJECT_IN_USE">
13190 Medium is attached to a virtual machine.
13191 </result>
13192 <result name="VBOX_E_NOT_SUPPORTED">
13193 Storage deletion is not allowed because neither of storage creation
13194 operations are supported. See
13195 <link to="IMediumFormat::capabilities"/>.
13196 </result>
13197
13198 <note>
13199 If the deletion operation fails, it is not guaranteed that the storage
13200 unit still exists. You may check the <link to="IMedium::state"/> value
13201 to answer this question.
13202 </note>
13203 </desc>
13204 <param name="progress" type="IProgress" dir="return">
13205 <desc>Progress object to track the operation completion.</desc>
13206 </param>
13207 </method>
13208
13209 <!-- diff methods -->
13210
13211 <method name="createDiffStorage">
13212 <desc>
13213 Starts creating an empty differencing storage unit based on this
13214 medium in the format and at the location defined by the @a target
13215 argument.
13216
13217 The target medium must be in <link to="MediumState_NotCreated"/>
13218 state (i.e. must not have an existing storage unit). Upon successful
13219 completion, this operation will set the type of the target medium to
13220 <link to="MediumType_Normal"/> and create a storage unit necessary to
13221 represent the differencing medium data in the given format (according
13222 to the storage format of the target object).
13223
13224 After the returned progress object reports that the operation is
13225 successfully complete, the target medium gets remembered by this
13226 VirtualBox installation and may be attached to virtual machines.
13227
13228 <note>
13229 The medium will be set to <link to="MediumState_LockedRead"/>
13230 state for the duration of this operation.
13231 </note>
13232 <result name="VBOX_E_OBJECT_IN_USE">
13233 Medium not in @c NotCreated state.
13234 </result>
13235 </desc>
13236 <param name="target" type="IMedium" dir="in">
13237 <desc>Target medium.</desc>
13238 </param>
13239 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13240 <desc>Exact image variant which should be created (as a combination of
13241 <link to="MediumVariant" /> flags).</desc>
13242 </param>
13243 <param name="progress" type="IProgress" dir="return">
13244 <desc>Progress object to track the operation completion.</desc>
13245 </param>
13246 </method>
13247
13248 <method name="mergeTo">
13249 <desc>
13250 Starts merging the contents of this medium and all intermediate
13251 differencing media in the chain to the given target medium.
13252
13253 The target medium must be either a descendant of this medium or
13254 its ancestor (otherwise this method will immediately return a failure).
13255 It follows that there are two logical directions of the merge operation:
13256 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13257 ancestor (<i>backward merge</i>). Let us consider the following medium
13258 chain:
13259
13260 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13261
13262 Here, calling this method on the <tt>Base</tt> medium object with
13263 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13264 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13265 merge. Note that in both cases the contents of the resulting medium
13266 will be the same, the only difference is the medium object that takes
13267 the result of the merge operation. In case of the forward merge in the
13268 above example, the result will be written to <tt>Diff_2</tt>; in case of
13269 the backward merge, the result will be written to <tt>Base</tt>. In
13270 other words, the result of the operation is always stored in the target
13271 medium.
13272
13273 Upon successful operation completion, the storage units of all media in
13274 the chain between this (source) medium and the target medium, including
13275 the source medium itself, will be automatically deleted and the
13276 relevant medium objects (including this medium) will become
13277 uninitialized. This means that any attempt to call any of
13278 their methods or attributes will fail with the
13279 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13280 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13281 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13282 Note that <tt>Diff_2</tt> in this case will become a base medium
13283 itself since it will no longer be based on any other medium.
13284
13285 Considering the above, all of the following conditions must be met in
13286 order for the merge operation to succeed:
13287 <ul>
13288 <li>
13289 Neither this (source) medium nor any intermediate
13290 differencing medium in the chain between it and the target
13291 medium is attached to any virtual machine.
13292 </li>
13293 <li>
13294 Neither the source medium nor the target medium is an
13295 <link to="MediumType_Immutable"/> medium.
13296 </li>
13297 <li>
13298 The part of the medium tree from the source medium to the
13299 target medium is a linear chain, i.e. all medium in this
13300 chain have exactly one child which is the next medium in this
13301 chain. The only exception from this rule is the target medium in
13302 the forward merge operation; it is allowed to have any number of
13303 child media because the merge operation will not change its
13304 logical contents (as it is seen by the guest OS or by children).
13305 </li>
13306 <li>
13307 None of the involved media are in
13308 <link to="MediumState_LockedRead"/> or
13309 <link to="MediumState_LockedWrite"/> state.
13310 </li>
13311 </ul>
13312
13313 <note>
13314 This (source) medium and all intermediates will be placed to <link
13315 to="MediumState_Deleting"/> state and the target medium will be
13316 placed to <link to="MediumState_LockedWrite"/> state and for the
13317 duration of this operation.
13318 </note>
13319 </desc>
13320 <param name="target" type="IMedium" dir="in">
13321 <desc>Target medium.</desc>
13322 </param>
13323 <param name="progress" type="IProgress" dir="return">
13324 <desc>Progress object to track the operation completion.</desc>
13325 </param>
13326 </method>
13327
13328 <!-- clone method -->
13329
13330 <method name="cloneTo">
13331 <desc>
13332 Starts creating a clone of this medium in the format and at the
13333 location defined by the @a target argument.
13334
13335 The target medium must be either in <link to="MediumState_NotCreated"/>
13336 state (i.e. must not have an existing storage unit) or in
13337 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13338 big enough to hold the data or else the copy will be partial). Upon
13339 successful completion, the cloned medium will contain exactly the
13340 same sector data as the medium being cloned, except that in the
13341 first case a new UUID for the clone will be randomly generated, and in
13342 the second case the UUID will remain unchanged.
13343
13344 The @a parent argument defines which medium will be the parent
13345 of the clone. Passing a @c null reference indicates that the clone will
13346 be a base image, i.e. completely independent. It is possible to specify
13347 an arbitrary medium for this parameter, including the parent of the
13348 medium which is being cloned. Even cloning to a child of the source
13349 medium is possible. Note that when cloning to an existing image, the
13350 @a parent argument is ignored.
13351
13352 After the returned progress object reports that the operation is
13353 successfully complete, the target medium gets remembered by this
13354 VirtualBox installation and may be attached to virtual machines.
13355
13356 <note>
13357 This medium will be placed to <link to="MediumState_LockedRead"/>
13358 state for the duration of this operation.
13359 </note>
13360 <result name="E_NOTIMPL">
13361 The specified cloning variant is not supported at the moment.
13362 </result>
13363 </desc>
13364 <param name="target" type="IMedium" dir="in">
13365 <desc>Target medium.</desc>
13366 </param>
13367 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13368 <desc>Exact image variant which should be created (as a combination of
13369 <link to="MediumVariant" /> flags).</desc>
13370 </param>
13371 <param name="parent" type="IMedium" dir="in">
13372 <desc>Parent of the cloned medium.</desc>
13373 </param>
13374 <param name="progress" type="IProgress" dir="return">
13375 <desc>Progress object to track the operation completion.</desc>
13376 </param>
13377 </method>
13378
13379 <method name="cloneToBase">
13380 <desc>
13381 Starts creating a clone of this medium in the format and at the
13382 location defined by the @a target argument.
13383
13384 The target medium must be either in <link to="MediumState_NotCreated"/>
13385 state (i.e. must not have an existing storage unit) or in
13386 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13387 big enough to hold the data or else the copy will be partial). Upon
13388 successful completion, the cloned medium will contain exactly the
13389 same sector data as the medium being cloned, except that in the
13390 first case a new UUID for the clone will be randomly generated, and in
13391 the second case the UUID will remain unchanged.
13392
13393 The @a parent argument defines which medium will be the parent
13394 of the clone. In this case the clone will be a base image, i.e.
13395 completely independent. It is possible to specify an arbitrary
13396 medium for this parameter, including the parent of the
13397 medium which is being cloned. Even cloning to a child of the source
13398 medium is possible. Note that when cloning to an existing image, the
13399 @a parent argument is ignored.
13400
13401 After the returned progress object reports that the operation is
13402 successfully complete, the target medium gets remembered by this
13403 VirtualBox installation and may be attached to virtual machines.
13404
13405 <note>
13406 This medium will be placed to <link to="MediumState_LockedRead"/>
13407 state for the duration of this operation.
13408 </note>
13409 <result name="E_NOTIMPL">
13410 The specified cloning variant is not supported at the moment.
13411 </result>
13412 </desc>
13413 <param name="target" type="IMedium" dir="in">
13414 <desc>Target medium.</desc>
13415 </param>
13416 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13417 <desc><link to="MediumVariant" /> flags).</desc>
13418 </param>
13419 <param name="progress" type="IProgress" dir="return">
13420 <desc>Progress object to track the operation completion.</desc>
13421 </param>
13422 </method>
13423
13424 <!-- other methods -->
13425
13426 <method name="compact">
13427 <desc>
13428 Starts compacting of this medium. This means that the medium is
13429 transformed into a possibly more compact storage representation.
13430 This potentially creates temporary images, which can require a
13431 substantial amount of additional disk space.
13432
13433 This medium will be placed to <link to="MediumState_LockedWrite"/>
13434 state and all its parent media (if any) will be placed to
13435 <link to="MediumState_LockedRead"/> state for the duration of this
13436 operation.
13437
13438 Please note that the results can be either returned straight away,
13439 or later as the result of the background operation via the object
13440 returned via the @a progress parameter.
13441
13442 <result name="VBOX_E_NOT_SUPPORTED">
13443 Medium format does not support compacting (but potentially
13444 needs it).
13445 </result>
13446 </desc>
13447 <param name="progress" type="IProgress" dir="return">
13448 <desc>Progress object to track the operation completion.</desc>
13449 </param>
13450 </method>
13451
13452 <method name="resize">
13453 <desc>
13454 Starts resizing this medium. This means that the nominal size of the
13455 medium is set to the new value. Both increasing and decreasing the
13456 size is possible, and there are no safety checks, since VirtualBox
13457 does not make any assumptions about the medium contents.
13458
13459 Resizing usually needs additional disk space, and possibly also
13460 some temporary disk space. Note that resize does not create a full
13461 temporary copy of the medium, so the additional disk space requirement
13462 is usually much lower than using the clone operation.
13463
13464 This medium will be placed to <link to="MediumState_LockedWrite"/>
13465 state for the duration of this operation.
13466
13467 Please note that the results can be either returned straight away,
13468 or later as the result of the background operation via the object
13469 returned via the @a progress parameter.
13470
13471 <result name="VBOX_E_NOT_SUPPORTED">
13472 Medium format does not support resizing.
13473 </result>
13474 </desc>
13475 <param name="logicalSize" type="long long" dir="in">
13476 <desc>New nominal capacity of the medium in bytes.</desc>
13477 </param>
13478 <param name="progress" type="IProgress" dir="return">
13479 <desc>Progress object to track the operation completion.</desc>
13480 </param>
13481 </method>
13482
13483 <method name="reset">
13484 <desc>
13485 Starts erasing the contents of this differencing medium.
13486
13487 This operation will reset the differencing medium to its initial
13488 state when it does not contain any sector data and any read operation is
13489 redirected to its parent medium. This automatically gets called
13490 during VM power-up for every medium whose <link to="#autoReset" />
13491 attribute is @c true.
13492
13493 The medium will be write-locked for the duration of this operation (see
13494 <link to="#lockWrite" />).
13495
13496 <result name="VBOX_E_NOT_SUPPORTED">
13497 This is not a differencing medium.
13498 </result>
13499 <result name="VBOX_E_INVALID_OBJECT_STATE">
13500 Medium is not in <link to="MediumState_Created"/> or
13501 <link to="MediumState_Inaccessible"/> state.
13502 </result>
13503 </desc>
13504 <param name="progress" type="IProgress" dir="return">
13505 <desc>Progress object to track the operation completion.</desc>
13506 </param>
13507 </method>
13508
13509 </interface>
13510
13511
13512 <!--
13513 // IMediumFormat
13514 /////////////////////////////////////////////////////////////////////////
13515 -->
13516
13517 <enum
13518 name="DataType"
13519 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13520 >
13521 <const name="Int32" value="0"/>
13522 <const name="Int8" value="1"/>
13523 <const name="String" value="2"/>
13524 </enum>
13525
13526 <enum
13527 name="DataFlags"
13528 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13529 >
13530 <const name="None" value="0x00"/>
13531 <const name="Mandatory" value="0x01"/>
13532 <const name="Expert" value="0x02"/>
13533 <const name="Array" value="0x04"/>
13534 <const name="FlagMask" value="0x07"/>
13535 </enum>
13536
13537 <enum
13538 name="MediumFormatCapabilities"
13539 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13540 >
13541 <desc>
13542 Medium format capability flags.
13543 </desc>
13544
13545 <const name="Uuid" value="0x01">
13546 <desc>
13547 Supports UUIDs as expected by VirtualBox code.
13548 </desc>
13549 </const>
13550
13551 <const name="CreateFixed" value="0x02">
13552 <desc>
13553 Supports creating fixed size images, allocating all space instantly.
13554 </desc>
13555 </const>
13556
13557 <const name="CreateDynamic" value="0x04">
13558 <desc>
13559 Supports creating dynamically growing images, allocating space on
13560 demand.
13561 </desc>
13562 </const>
13563
13564 <const name="CreateSplit2G" value="0x08">
13565 <desc>
13566 Supports creating images split in chunks of a bit less than 2 GBytes.
13567 </desc>
13568 </const>
13569
13570 <const name="Differencing" value="0x10">
13571 <desc>
13572 Supports being used as a format for differencing media (see <link
13573 to="IMedium::createDiffStorage"/>).
13574 </desc>
13575 </const>
13576
13577 <const name="Asynchronous" value="0x20">
13578 <desc>
13579 Supports asynchronous I/O operations for at least some configurations.
13580 </desc>
13581 </const>
13582
13583 <const name="File" value="0x40">
13584 <desc>
13585 The format backend operates on files (the <link to="IMedium::location"/>
13586 attribute of the medium specifies a file used to store medium
13587 data; for a list of supported file extensions see
13588 <link to="IMediumFormat::describeFileExtensions"/>).
13589 </desc>
13590 </const>
13591
13592 <const name="Properties" value="0x80">
13593 <desc>
13594 The format backend uses the property interface to configure the storage
13595 location and properties (the <link to="IMediumFormat::describeProperties"/>
13596 method is used to get access to properties supported by the given medium format).
13597 </desc>
13598 </const>
13599
13600 <const name="TcpNetworking" value="0x100">
13601 <desc>
13602 The format backend uses the TCP networking interface for network access.
13603 </desc>
13604 </const>
13605
13606 <const name="VFS" value="0x200">
13607 <desc>
13608 The format backend supports virtual filesystem functionality.
13609 </desc>
13610 </const>
13611
13612 <const name="CapabilityMask" value="0x3FF"/>
13613 </enum>
13614
13615 <interface
13616 name="IMediumFormat" extends="$unknown"
13617 uuid="6238e1cf-a17d-4ec1-8172-418bfb22b93a"
13618 wsmap="managed"
13619 >
13620 <desc>
13621 The IMediumFormat interface represents a medium format.
13622
13623 Each medium format has an associated backend which is used to handle
13624 media stored in this format. This interface provides information
13625 about the properties of the associated backend.
13626
13627 Each medium format is identified by a string represented by the
13628 <link to="#id"/> attribute. This string is used in calls like
13629 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13630 format.
13631
13632 The list of all supported medium formats can be obtained using
13633 <link to="ISystemProperties::mediumFormats"/>.
13634
13635 <see><link to="IMedium"/></see>
13636 </desc>
13637
13638 <attribute name="id" type="wstring" readonly="yes">
13639 <desc>
13640 Identifier of this format.
13641
13642 The format identifier is a non-@c null non-empty ASCII string. Note that
13643 this string is case-insensitive. This means that, for example, all of
13644 the following strings:
13645 <pre>
13646 "VDI"
13647 "vdi"
13648 "VdI"</pre>
13649 refer to the same medium format.
13650
13651 This string is used in methods of other interfaces where it is necessary
13652 to specify a medium format, such as
13653 <link to="IVirtualBox::createHardDisk"/>.
13654 </desc>
13655 </attribute>
13656
13657 <attribute name="name" type="wstring" readonly="yes">
13658 <desc>
13659 Human readable description of this format.
13660
13661 Mainly for use in file open dialogs.
13662 </desc>
13663 </attribute>
13664
13665 <attribute name="capabilities" type="MediumFormatCapabilities" safearray="yes" readonly="yes">
13666 <desc>
13667 Capabilities of the format as an array of the flags.
13668
13669 For the meaning of individual capability flags see
13670 <link to="MediumFormatCapabilities"/>.
13671 </desc>
13672 </attribute>
13673
13674 <method name="describeFileExtensions">
13675 <desc>
13676 Returns two arrays describing the supported file extensions.
13677
13678 The first array contains the supported extensions and the seconds one
13679 the type each extension supports. Both have the same size.
13680
13681 Note that some backends do not work on files, so this array may be
13682 empty.
13683
13684 <see><link to="IMediumFormat::capabilities"/></see>
13685 </desc>
13686 <param name="extensions" type="wstring" safearray="yes" dir="out">
13687 <desc>The array of supported extensions.</desc>
13688 </param>
13689 <param name="types" type="DeviceType" safearray="yes" dir="out">
13690 <desc>The array which indicates the device type for every given extension.</desc>
13691 </param>
13692 </method>
13693
13694 <method name="describeProperties" const="yes">
13695 <desc>
13696 Returns several arrays describing the properties supported by this
13697 format.
13698
13699 An element with the given index in each array describes one
13700 property. Thus, the number of elements in each returned array is the
13701 same and corresponds to the number of supported properties.
13702
13703 The returned arrays are filled in only if the
13704 <link to="MediumFormatCapabilities_Properties"/> flag is set.
13705 All arguments must be non-@c null.
13706
13707 <see><link to="DataType"/>, <link to="DataFlags"/></see>
13708 </desc>
13709
13710 <param name="names" type="wstring" safearray="yes" dir="out">
13711 <desc>Array of property names.</desc>
13712 </param>
13713 <param name="descriptions" type="wstring" safearray="yes" dir="out">
13714 <desc>Array of property descriptions.</desc>
13715 </param>
13716 <param name="types" type="DataType" safearray="yes" dir="out">
13717 <desc>Array of property types.</desc>
13718 </param>
13719 <param name="flags" type="unsigned long" safearray="yes" dir="out">
13720 <desc>Array of property flags.</desc>
13721 </param>
13722 <param name="defaults" type="wstring" safearray="yes" dir="out">
13723 <desc>Array of default property values.</desc>
13724 </param>
13725 </method>
13726
13727 </interface>
13728
13729
13730 <!--
13731 // IKeyboard
13732 /////////////////////////////////////////////////////////////////////////
13733 -->
13734
13735 <interface
13736 name="IKeyboard" extends="$unknown"
13737 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
13738 wsmap="managed"
13739 >
13740 <desc>
13741 The IKeyboard interface represents the virtual machine's keyboard. Used
13742 in <link to="IConsole::keyboard"/>.
13743
13744 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
13745 to the virtual machine.
13746
13747 </desc>
13748 <method name="putScancode">
13749 <desc>Sends a scancode to the keyboard.
13750
13751 <result name="VBOX_E_IPRT_ERROR">
13752 Could not send scan code to virtual keyboard.
13753 </result>
13754
13755 </desc>
13756 <param name="scancode" type="long" dir="in"/>
13757 </method>
13758
13759 <method name="putScancodes">
13760 <desc>Sends an array of scancodes to the keyboard.
13761
13762 <result name="VBOX_E_IPRT_ERROR">
13763 Could not send all scan codes to virtual keyboard.
13764 </result>
13765
13766 </desc>
13767 <param name="scancodes" type="long" dir="in" safearray="yes"/>
13768 <param name="codesStored" type="unsigned long" dir="return"/>
13769 </method>
13770
13771 <method name="putCAD">
13772 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
13773 function is nothing special, it is just a convenience function
13774 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
13775
13776 <result name="VBOX_E_IPRT_ERROR">
13777 Could not send all scan codes to virtual keyboard.
13778 </result>
13779
13780 </desc>
13781 </method>
13782
13783 <attribute name="eventSource" type="IEventSource" readonly="yes">
13784 <desc>
13785 Event source for keyboard events.
13786 </desc>
13787 </attribute>
13788
13789 </interface>
13790
13791
13792 <!--
13793 // IMouse
13794 /////////////////////////////////////////////////////////////////////////
13795 -->
13796
13797 <enum
13798 name="MouseButtonState"
13799 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
13800 >
13801 <desc>
13802 Mouse button state.
13803 </desc>
13804
13805 <const name="LeftButton" value="0x01"/>
13806 <const name="RightButton" value="0x02"/>
13807 <const name="MiddleButton" value="0x04"/>
13808 <const name="WheelUp" value="0x08"/>
13809 <const name="WheelDown" value="0x10"/>
13810 <const name="XButton1" value="0x20"/>
13811 <const name="XButton2" value="0x40"/>
13812 <const name="MouseStateMask" value="0x7F"/>
13813 </enum>
13814
13815 <interface
13816 name="IMouse" extends="$unknown"
13817 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
13818 wsmap="managed"
13819 >
13820 <desc>
13821 The IMouse interface represents the virtual machine's mouse. Used in
13822 <link to="IConsole::mouse"/>.
13823
13824 Through this interface, the virtual machine's virtual mouse can be
13825 controlled.
13826 </desc>
13827
13828 <attribute name="absoluteSupported" type="boolean" readonly="yes">
13829 <desc>
13830 Whether the guest OS supports absolute mouse pointer positioning
13831 or not.
13832 <note>
13833 You can use the <link to="IMouseCapabilityChangedEvent"/>
13834 event to be instantly informed about changes of this attribute
13835 during virtual machine execution.
13836 </note>
13837 <see><link to="#putMouseEventAbsolute"/></see>
13838 </desc>
13839 </attribute>
13840
13841 <attribute name="relativeSupported" type="boolean" readonly="yes">
13842 <desc>
13843 Whether the guest OS supports relative mouse pointer positioning
13844 or not.
13845 <note>
13846 You can use the <link to="IMouseCapabilityChangedEvent"/>
13847 event to be instantly informed about changes of this attribute
13848 during virtual machine execution.
13849 </note>
13850 <see><link to="#putMouseEvent"/></see>
13851 </desc>
13852 </attribute>
13853
13854 <attribute name="needsHostCursor" type="boolean" readonly="yes">
13855 <desc>
13856 Whether the guest OS can currently switch to drawing it's own mouse
13857 cursor on demand.
13858 <note>
13859 You can use the <link to="IMouseCapabilityChangedEvent"/>
13860 event to be instantly informed about changes of this attribute
13861 during virtual machine execution.
13862 </note>
13863 <see><link to="#putMouseEvent"/></see>
13864 </desc>
13865 </attribute>
13866
13867 <method name="putMouseEvent">
13868 <desc>
13869 Initiates a mouse event using relative pointer movements
13870 along x and y axis.
13871
13872 <result name="E_ACCESSDENIED">
13873 Console not powered up.
13874 </result>
13875 <result name="VBOX_E_IPRT_ERROR">
13876 Could not send mouse event to virtual mouse.
13877 </result>
13878
13879 </desc>
13880
13881 <param name="dx" type="long" dir="in">
13882 <desc>
13883 Amount of pixels the mouse should move to the right.
13884 Negative values move the mouse to the left.
13885 </desc>
13886 </param>
13887 <param name="dy" type="long" dir="in">
13888 <desc>
13889 Amount of pixels the mouse should move downwards.
13890 Negative values move the mouse upwards.
13891 </desc>
13892 </param>
13893 <param name="dz" type="long" dir="in">
13894 <desc>
13895 Amount of mouse wheel moves.
13896 Positive values describe clockwise wheel rotations,
13897 negative values describe counterclockwise rotations.
13898 </desc>
13899 </param>
13900 <param name="dw" type="long" dir="in">
13901 <desc>
13902 Amount of horizontal mouse wheel moves.
13903 Positive values describe a movement to the left,
13904 negative values describe a movement to the right.
13905 </desc>
13906 </param>
13907 <param name="buttonState" type="long" dir="in">
13908 <desc>
13909 The current state of mouse buttons. Every bit represents
13910 a mouse button as follows:
13911 <table>
13912 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13913 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13914 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13915 </table>
13916 A value of <tt>1</tt> means the corresponding button is pressed.
13917 otherwise it is released.
13918 </desc>
13919 </param>
13920 </method>
13921
13922 <method name="putMouseEventAbsolute">
13923 <desc>
13924 Positions the mouse pointer using absolute x and y coordinates.
13925 These coordinates are expressed in pixels and
13926 start from <tt>[1,1]</tt> which corresponds to the top left
13927 corner of the virtual display.
13928
13929 <result name="E_ACCESSDENIED">
13930 Console not powered up.
13931 </result>
13932 <result name="VBOX_E_IPRT_ERROR">
13933 Could not send mouse event to virtual mouse.
13934 </result>
13935
13936 <note>
13937 This method will have effect only if absolute mouse
13938 positioning is supported by the guest OS.
13939 </note>
13940
13941 <see><link to="#absoluteSupported"/></see>
13942 </desc>
13943
13944 <param name="x" type="long" dir="in">
13945 <desc>
13946 X coordinate of the pointer in pixels, starting from @c 1.
13947 </desc>
13948 </param>
13949 <param name="y" type="long" dir="in">
13950 <desc>
13951 Y coordinate of the pointer in pixels, starting from @c 1.
13952 </desc>
13953 </param>
13954 <param name="dz" type="long" dir="in">
13955 <desc>
13956 Amount of mouse wheel moves.
13957 Positive values describe clockwise wheel rotations,
13958 negative values describe counterclockwise rotations.
13959 </desc>
13960 </param>
13961 <param name="dw" type="long" dir="in">
13962 <desc>
13963 Amount of horizontal mouse wheel moves.
13964 Positive values describe a movement to the left,
13965 negative values describe a movement to the right.
13966 </desc>
13967 </param>
13968 <param name="buttonState" type="long" dir="in">
13969 <desc>
13970 The current state of mouse buttons. Every bit represents
13971 a mouse button as follows:
13972 <table>
13973 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13974 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13975 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13976 </table>
13977 A value of @c 1 means the corresponding button is pressed.
13978 otherwise it is released.
13979 </desc>
13980 </param>
13981 </method>
13982
13983 <attribute name="eventSource" type="IEventSource" readonly="yes">
13984 <desc>
13985 Event source for mouse events.
13986 </desc>
13987 </attribute>
13988
13989 </interface>
13990
13991 <!--
13992 // IDisplay
13993 /////////////////////////////////////////////////////////////////////////
13994 -->
13995
13996 <enum
13997 name="FramebufferPixelFormat"
13998 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
13999 >
14000 <desc>
14001 Format of the video memory buffer. Constants represented by this enum can
14002 be used to test for particular values of <link
14003 to="IFramebuffer::pixelFormat"/>. See also <link
14004 to="IFramebuffer::requestResize"/>.
14005
14006 See also www.fourcc.org for more information about FOURCC pixel formats.
14007 </desc>
14008
14009 <const name="Opaque" value="0">
14010 <desc>
14011 Unknown buffer format (the user may not assume any particular format of
14012 the buffer).
14013 </desc>
14014 </const>
14015 <const name="FOURCC_RGB" value="0x32424752">
14016 <desc>
14017 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
14018 bit layout).
14019 </desc>
14020 </const>
14021 </enum>
14022
14023 <interface
14024 name="IFramebuffer" extends="$unknown"
14025 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
14026 wsmap="suppress"
14027 >
14028 <attribute name="address" type="octet" mod="ptr" readonly="yes">
14029 <desc>Address of the start byte of the frame buffer.</desc>
14030 </attribute>
14031
14032 <attribute name="width" type="unsigned long" readonly="yes">
14033 <desc>Frame buffer width, in pixels.</desc>
14034 </attribute>
14035
14036 <attribute name="height" type="unsigned long" readonly="yes">
14037 <desc>Frame buffer height, in pixels.</desc>
14038 </attribute>
14039
14040 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
14041 <desc>
14042 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
14043 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
14044 are: 8, 15, 16, 24 and 32.
14045 </desc>
14046 </attribute>
14047
14048 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
14049 <desc>
14050 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
14051 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
14052 size of the scan line must be aligned to 32 bits.
14053 </desc>
14054 </attribute>
14055
14056 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
14057 <desc>
14058 Frame buffer pixel format. It's either one of the values defined by <link
14059 to="FramebufferPixelFormat"/> or a raw FOURCC code.
14060 <note>
14061 This attribute must never return <link
14062 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
14063 <link to="#address"/> points to must be always known.
14064 </note>
14065 </desc>
14066 </attribute>
14067
14068 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
14069 <desc>
14070 Defines whether this frame buffer uses the virtual video card's memory
14071 buffer (guest VRAM) directly or not. See <link
14072 to="IFramebuffer::requestResize"/> for more information.
14073 </desc>
14074 </attribute>
14075
14076 <attribute name="heightReduction" type="unsigned long" readonly="yes">
14077 <desc>
14078 Hint from the frame buffer about how much of the standard
14079 screen height it wants to use for itself. This information is
14080 exposed to the guest through the VESA BIOS and VMMDev interface
14081 so that it can use it for determining its video mode table. It
14082 is not guaranteed that the guest respects the value.
14083 </desc>
14084 </attribute>
14085
14086 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
14087 <desc>
14088 An alpha-blended overlay which is superposed over the frame buffer.
14089 The initial purpose is to allow the display of icons providing
14090 information about the VM state, including disk activity, in front
14091 ends which do not have other means of doing that. The overlay is
14092 designed to controlled exclusively by IDisplay. It has no locking
14093 of its own, and any changes made to it are not guaranteed to be
14094 visible until the affected portion of IFramebuffer is updated. The
14095 overlay can be created lazily the first time it is requested. This
14096 attribute can also return @c null to signal that the overlay is not
14097 implemented.
14098 </desc>
14099 </attribute>
14100
14101 <attribute name="winId" type="long long" readonly="yes">
14102 <desc>
14103 Platform-dependent identifier of the window where context of this
14104 frame buffer is drawn, or zero if there's no such window.
14105 </desc>
14106 </attribute>
14107
14108 <method name="lock">
14109 <desc>
14110 Locks the frame buffer.
14111 Gets called by the IDisplay object where this frame buffer is
14112 bound to.
14113 </desc>
14114 </method>
14115
14116 <method name="unlock">
14117 <desc>
14118 Unlocks the frame buffer.
14119 Gets called by the IDisplay object where this frame buffer is
14120 bound to.
14121 </desc>
14122 </method>
14123
14124 <method name="notifyUpdate">
14125 <desc>
14126 Informs about an update.
14127 Gets called by the display object where this buffer is
14128 registered.
14129 </desc>
14130 <param name="x" type="unsigned long" dir="in"/>
14131 <param name="y" type="unsigned long" dir="in"/>
14132 <param name="width" type="unsigned long" dir="in"/>
14133 <param name="height" type="unsigned long" dir="in"/>
14134 </method>
14135
14136 <method name="requestResize">
14137 <desc>
14138 Requests a size and pixel format change.
14139
14140 There are two modes of working with the video buffer of the virtual
14141 machine. The <i>indirect</i> mode implies that the IFramebuffer
14142 implementation allocates a memory buffer for the requested display mode
14143 and provides it to the virtual machine. In <i>direct</i> mode, the
14144 IFramebuffer implementation uses the memory buffer allocated and owned
14145 by the virtual machine. This buffer represents the video memory of the
14146 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
14147 usually faster because the implementation gets a raw pointer to the
14148 guest VRAM buffer which it can directly use for visualizing the contents
14149 of the virtual display, as opposed to the indirect mode where the
14150 contents of guest VRAM are copied to the memory buffer provided by
14151 the implementation every time a display update occurs.
14152
14153 It is important to note that the direct mode is really fast only when
14154 the implementation uses the given guest VRAM buffer directly, for
14155 example, by blitting it to the window representing the virtual machine's
14156 display, which saves at least one copy operation comparing to the
14157 indirect mode. However, using the guest VRAM buffer directly is not
14158 always possible: the format and the color depth of this buffer may be
14159 not supported by the target window, or it may be unknown (opaque) as in
14160 case of text or non-linear multi-plane VGA video modes. In this case,
14161 the indirect mode (that is always available) should be used as a
14162 fallback: when the guest VRAM contents are copied to the
14163 implementation-provided memory buffer, color and format conversion is
14164 done automatically by the underlying code.
14165
14166 The @a pixelFormat parameter defines whether the direct mode is
14167 available or not. If @a pixelFormat is <link
14168 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
14169 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
14170 @a bytesPerLine parameters must be ignored and the implementation must use
14171 the indirect mode (where it provides its own buffer in one of the
14172 supported formats). In all other cases, @a pixelFormat together with
14173 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
14174 buffer pointed to by the @a VRAM parameter and the implementation is
14175 free to choose which mode to use. To indicate that this frame buffer uses
14176 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
14177 attribute must return @c true and <link to="#address"/> must
14178 return exactly the same address that is passed in the @a VRAM parameter
14179 of this method; otherwise it is assumed that the indirect strategy is
14180 chosen.
14181
14182 The @a width and @a height parameters represent the size of the
14183 requested display mode in both modes. In case of indirect mode, the
14184 provided memory buffer should be big enough to store data of the given
14185 display mode. In case of direct mode, it is guaranteed that the given
14186 @a VRAM buffer contains enough space to represent the display mode of the
14187 given size. Note that this frame buffer's <link to="#width"/> and <link
14188 to="#height"/> attributes must return exactly the same values as
14189 passed to this method after the resize is completed (see below).
14190
14191 The @a finished output parameter determines if the implementation has
14192 finished resizing the frame buffer or not. If, for some reason, the
14193 resize cannot be finished immediately during this call, @a finished
14194 must be set to @c false, and the implementation must call
14195 <link to="IDisplay::resizeCompleted"/> after it has returned from
14196 this method as soon as possible. If @a finished is @c false, the
14197 machine will not call any frame buffer methods until
14198 <link to="IDisplay::resizeCompleted"/> is called.
14199
14200 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
14201 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
14202 this frame buffer must return exactly the same values as specified in the
14203 parameters of this method, after the resize is completed. If the
14204 indirect mode is chosen, these attributes must return values describing
14205 the format of the implementation's own memory buffer <link
14206 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14207 value must always correlate with <link to="#pixelFormat"/>. Note that
14208 the <link to="#pixelFormat"/> attribute must never return <link
14209 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14210
14211 <note>
14212 This method is called by the IDisplay object under the
14213 <link to="#lock"/> provided by this IFramebuffer
14214 implementation. If this method returns @c false in @a finished, then
14215 this lock is not released until
14216 <link to="IDisplay::resizeCompleted"/> is called.
14217 </note>
14218 </desc>
14219 <param name="screenId" type="unsigned long" dir="in">
14220 <desc>
14221 Logical screen number. Must be used in the corresponding call to
14222 <link to="IDisplay::resizeCompleted"/> if this call is made.
14223 </desc>
14224 </param>
14225 <param name="pixelFormat" type="unsigned long" dir="in">
14226 <desc>
14227 Pixel format of the memory buffer pointed to by @a VRAM.
14228 See also <link to="FramebufferPixelFormat"/>.
14229 </desc>
14230 </param>
14231 <param name="VRAM" type="octet" mod="ptr" dir="in">
14232 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14233 </param>
14234 <param name="bitsPerPixel" type="unsigned long" dir="in">
14235 <desc>Color depth, bits per pixel.</desc>
14236 </param>
14237 <param name="bytesPerLine" type="unsigned long" dir="in">
14238 <desc>Size of one scan line, in bytes.</desc>
14239 </param>
14240 <param name="width" type="unsigned long" dir="in">
14241 <desc>Width of the guest display, in pixels.</desc>
14242 </param>
14243 <param name="height" type="unsigned long" dir="in">
14244 <desc>Height of the guest display, in pixels.</desc>
14245 </param>
14246 <param name="finished" type="boolean" dir="return">
14247 <desc>
14248 Can the VM start using the new frame buffer immediately
14249 after this method returns or it should wait for
14250 <link to="IDisplay::resizeCompleted"/>.
14251 </desc>
14252 </param>
14253 </method>
14254
14255 <method name="videoModeSupported">
14256 <desc>
14257 Returns whether the frame buffer implementation is willing to
14258 support a given video mode. In case it is not able to render
14259 the video mode (or for some reason not willing), it should
14260 return @c false. Usually this method is called when the guest
14261 asks the VMM device whether a given video mode is supported
14262 so the information returned is directly exposed to the guest.
14263 It is important that this method returns very quickly.
14264 </desc>
14265 <param name="width" type="unsigned long" dir="in"/>
14266 <param name="height" type="unsigned long" dir="in"/>
14267 <param name="bpp" type="unsigned long" dir="in"/>
14268 <param name="supported" type="boolean" dir="return"/>
14269 </method>
14270
14271 <method name="getVisibleRegion">
14272 <desc>
14273 Returns the visible region of this frame buffer.
14274
14275 If the @a rectangles parameter is @c null then the value of the
14276 @a count parameter is ignored and the number of elements necessary to
14277 describe the current visible region is returned in @a countCopied.
14278
14279 If @a rectangles is not @c null but @a count is less
14280 than the required number of elements to store region data, the method
14281 will report a failure. If @a count is equal or greater than the
14282 required number of elements, then the actual number of elements copied
14283 to the provided array will be returned in @a countCopied.
14284
14285 <note>
14286 The address of the provided array must be in the process space of
14287 this IFramebuffer object.
14288 </note>
14289 <note>
14290 Method not yet implemented.
14291 </note>
14292 </desc>
14293 <param name="rectangles" type="octet" mod="ptr" dir="in">
14294 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14295 </param>
14296 <param name="count" type="unsigned long" dir="in">
14297 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14298 </param>
14299 <param name="countCopied" type="unsigned long" dir="return">
14300 <desc>Number of elements copied to the @a rectangles array.</desc>
14301 </param>
14302 </method>
14303
14304 <method name="setVisibleRegion">
14305 <desc>
14306 Suggests a new visible region to this frame buffer. This region
14307 represents the area of the VM display which is a union of regions of
14308 all top-level windows of the guest operating system running inside the
14309 VM (if the Guest Additions for this system support this
14310 functionality). This information may be used by the frontends to
14311 implement the seamless desktop integration feature.
14312
14313 <note>
14314 The address of the provided array must be in the process space of
14315 this IFramebuffer object.
14316 </note>
14317 <note>
14318 The IFramebuffer implementation must make a copy of the provided
14319 array of rectangles.
14320 </note>
14321 <note>
14322 Method not yet implemented.
14323 </note>
14324 </desc>
14325 <param name="rectangles" type="octet" mod="ptr" dir="in">
14326 <desc>Pointer to the @c RTRECT array.</desc>
14327 </param>
14328 <param name="count" type="unsigned long" dir="in">
14329 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14330 </param>
14331 </method>
14332
14333 <method name="processVHWACommand">
14334 <desc>
14335 Posts a Video HW Acceleration Command to the frame buffer for processing.
14336 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14337 are posted from quest to the host to be processed by the host hardware.
14338
14339 <note>
14340 The address of the provided command must be in the process space of
14341 this IFramebuffer object.
14342 </note>
14343 </desc>
14344
14345 <param name="command" type="octet" mod="ptr" dir="in">
14346 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14347 </param>
14348 </method>
14349
14350 </interface>
14351
14352 <interface
14353 name="IFramebufferOverlay" extends="IFramebuffer"
14354 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14355 wsmap="suppress"
14356 >
14357 <desc>
14358 The IFramebufferOverlay interface represents an alpha blended overlay
14359 for displaying status icons above an IFramebuffer. It is always created
14360 not visible, so that it must be explicitly shown. It only covers a
14361 portion of the IFramebuffer, determined by its width, height and
14362 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14363 that order) format, and may be written to directly. Do re-read the
14364 width though, after setting it, as it may be adjusted (increased) to
14365 make it more suitable for the front end.
14366 </desc>
14367 <attribute name="x" type="unsigned long" readonly="yes">
14368 <desc>X position of the overlay, relative to the frame buffer.</desc>
14369 </attribute>
14370
14371 <attribute name="y" type="unsigned long" readonly="yes">
14372 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14373 </attribute>
14374
14375 <attribute name="visible" type="boolean">
14376 <desc>
14377 Whether the overlay is currently visible.
14378 </desc>
14379 </attribute>
14380
14381 <attribute name="alpha" type="unsigned long">
14382 <desc>
14383 The global alpha value for the overlay. This may or may not be
14384 supported by a given front end.
14385 </desc>
14386 </attribute>
14387
14388 <method name="move">
14389 <desc>
14390 Changes the overlay's position relative to the IFramebuffer.
14391 </desc>
14392 <param name="x" type="unsigned long" dir="in"/>
14393 <param name="y" type="unsigned long" dir="in"/>
14394 </method>
14395
14396 </interface>
14397
14398 <interface
14399 name="IDisplay" extends="$unknown"
14400 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14401 wsmap="managed"
14402 >
14403 <desc>
14404 The IDisplay interface represents the virtual machine's display.
14405
14406 The object implementing this interface is contained in each
14407 <link to="IConsole::display"/> attribute and represents the visual
14408 output of the virtual machine.
14409
14410 The virtual display supports pluggable output targets represented by the
14411 IFramebuffer interface. Examples of the output target are a window on
14412 the host computer or an RDP session's display on a remote computer.
14413 </desc>
14414 <method name="getScreenResolution">
14415 <desc>Queries display width, height and color depth for given screen.</desc>
14416 <param name="screenId" type="unsigned long" dir="in"/>
14417 <param name="width" type="unsigned long" dir="out"/>
14418 <param name="height" type="unsigned long" dir="out"/>
14419 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14420 </method>
14421
14422 <method name="setFramebuffer">
14423 <desc>
14424 Sets the framebuffer for given screen.
14425 </desc>
14426 <param name="screenId" type="unsigned long" dir="in"/>
14427 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14428 </method>
14429
14430 <method name="getFramebuffer">
14431 <desc>
14432 Queries the framebuffer for given screen.
14433 </desc>
14434 <param name="screenId" type="unsigned long" dir="in"/>
14435 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14436 <param name="xOrigin" type="long" dir="out"/>
14437 <param name="yOrigin" type="long" dir="out"/>
14438 </method>
14439
14440 <method name="setVideoModeHint">
14441 <desc>
14442 Asks VirtualBox to request the given video mode from
14443 the guest. This is just a hint and it cannot be guaranteed
14444 that the requested resolution will be used. Guest Additions
14445 are required for the request to be seen by guests. The caller
14446 should issue the request and wait for a resolution change and
14447 after a timeout retry.
14448
14449 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14450 parameters means that the corresponding values should be taken from the
14451 current video mode (i.e. left unchanged).
14452
14453 If the guest OS supports multi-monitor configuration then the @a display
14454 parameter specifies the number of the guest display to send the hint to:
14455 @c 0 is the primary display, @c 1 is the first secondary and
14456 so on. If the multi-monitor configuration is not supported, @a display
14457 must be @c 0.
14458
14459 <result name="E_INVALIDARG">
14460 The @a display is not associated with any monitor.
14461 </result>
14462
14463 </desc>
14464 <param name="display" type="unsigned long" dir="in">
14465 <desc>
14466 The number of the guest display to send the hint to.
14467 </desc>
14468 </param>
14469 <param name="enabled" type="boolean" dir="in">
14470 <desc>
14471 @c True, if this guest screen is enabled,
14472 @c False otherwise.
14473 </desc>
14474 </param>
14475 <param name="changeOrigin" type="boolean" dir="in">
14476 <desc>
14477 @c True, if the origin of the guest screen should be changed,
14478 @c False otherwise.
14479 </desc>
14480 </param>
14481 <param name="originX" type="long" dir="in">
14482 <desc>
14483 The X origin of the guest screen.
14484 </desc>
14485 </param>
14486 <param name="originY" type="long" dir="in">
14487 <desc>
14488 The Y origin of the guest screen.
14489 </desc>
14490 </param>
14491 <param name="width" type="unsigned long" dir="in"/>
14492 <param name="height" type="unsigned long" dir="in"/>
14493 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14494 </method>
14495
14496 <method name="setSeamlessMode">
14497 <desc>
14498 Enables or disables seamless guest display rendering (seamless desktop
14499 integration) mode.
14500 <note>
14501 Calling this method has no effect if <link
14502 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14503 does not return @c Active.
14504 </note>
14505 </desc>
14506 <param name="enabled" type="boolean" dir="in"/>
14507 </method>
14508
14509 <method name="takeScreenShot">
14510 <desc>
14511 Takes a screen shot of the requested size and copies it to the
14512 32-bpp buffer allocated by the caller and pointed to by @a address.
14513 A pixel consists of 4 bytes in order: B, G, R, 0.
14514
14515 <note>This API can be used only locally by a VM process through the
14516 COM/XPCOM C++ API as it requires pointer support. It is not
14517 available for scripting langages, Java or any webservice clients.
14518 Unless you are writing a new VM frontend use
14519 <link to="#takeScreenShotToArray" />.
14520 </note>
14521
14522 <result name="E_NOTIMPL">
14523 Feature not implemented.
14524 </result>
14525 <result name="VBOX_E_IPRT_ERROR">
14526 Could not take a screenshot.
14527 </result>
14528
14529 </desc>
14530 <param name="screenId" type="unsigned long" dir="in"/>
14531 <param name="address" type="octet" mod="ptr" dir="in"/>
14532 <param name="width" type="unsigned long" dir="in"/>
14533 <param name="height" type="unsigned long" dir="in"/>
14534 </method>
14535
14536 <method name="takeScreenShotToArray">
14537 <desc>
14538 Takes a guest screen shot of the requested size and returns it as
14539 an array of bytes in uncompressed 32-bit RGBA format.
14540 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14541
14542 This API is slow, but could be the only option to get guest screenshot
14543 for scriptable languages not allowed to manipulate with addresses
14544 directly.
14545
14546 <result name="E_NOTIMPL">
14547 Feature not implemented.
14548 </result>
14549 <result name="VBOX_E_IPRT_ERROR">
14550 Could not take a screenshot.
14551 </result>
14552 </desc>
14553 <param name="screenId" type="unsigned long" dir="in">
14554 <desc>
14555 Monitor to take screenshot from.
14556 </desc>
14557 </param>
14558 <param name="width" type="unsigned long" dir="in">
14559 <desc>
14560 Desired image width.
14561 </desc>
14562 </param>
14563 <param name="height" type="unsigned long" dir="in">
14564 <desc>
14565 Desired image height.
14566 </desc>
14567 </param>
14568 <param name="screenData" type="octet" dir="return" safearray="yes">
14569 <desc>
14570 Array with resulting screen data.
14571 </desc>
14572 </param>
14573 </method>
14574
14575 <method name="takeScreenShotPNGToArray">
14576 <desc>
14577 Takes a guest screen shot of the requested size and returns it as
14578 PNG image in array.
14579
14580 <result name="E_NOTIMPL">
14581 Feature not implemented.
14582 </result>
14583 <result name="VBOX_E_IPRT_ERROR">
14584 Could not take a screenshot.
14585 </result>
14586 </desc>
14587 <param name="screenId" type="unsigned long" dir="in">
14588 <desc>
14589 Monitor to take the screenshot from.
14590 </desc>
14591 </param>
14592 <param name="width" type="unsigned long" dir="in">
14593 <desc>
14594 Desired image width.
14595 </desc>
14596 </param>
14597 <param name="height" type="unsigned long" dir="in">
14598 <desc>
14599 Desired image height.
14600 </desc>
14601 </param>
14602 <param name="screenData" type="octet" dir="return" safearray="yes">
14603 <desc>
14604 Array with resulting screen data.
14605 </desc>
14606 </param>
14607 </method>
14608
14609 <method name="drawToScreen">
14610 <desc>
14611 Draws a 32-bpp image of the specified size from the given buffer
14612 to the given point on the VM display.
14613
14614 <result name="E_NOTIMPL">
14615 Feature not implemented.
14616 </result>
14617 <result name="VBOX_E_IPRT_ERROR">
14618 Could not draw to screen.
14619 </result>
14620
14621 </desc>
14622 <param name="screenId" type="unsigned long" dir="in">
14623 <desc>
14624 Monitor to take the screenshot from.
14625 </desc>
14626 </param>
14627 <param name="address" type="octet" mod="ptr" dir="in">
14628 <desc>
14629 Address to store the screenshot to
14630 </desc>
14631 </param>
14632 <param name="x" type="unsigned long" dir="in">
14633 <desc>
14634 Relative to the screen top left corner.
14635 </desc>
14636 </param>
14637 <param name="y" type="unsigned long" dir="in">
14638 <desc>
14639 Relative to the screen top left corner.
14640 </desc>
14641 </param>
14642 <param name="width" type="unsigned long" dir="in">
14643 <desc>
14644 Desired image width.
14645 </desc>
14646 </param>
14647 <param name="height" type="unsigned long" dir="in">
14648 <desc>
14649 Desired image height.
14650 </desc>
14651 </param>
14652 </method>
14653
14654 <method name="invalidateAndUpdate">
14655 <desc>
14656 Does a full invalidation of the VM display and instructs the VM
14657 to update it.
14658
14659 <result name="VBOX_E_IPRT_ERROR">
14660 Could not invalidate and update screen.
14661 </result>
14662
14663 </desc>
14664 </method>
14665
14666 <method name="resizeCompleted">
14667 <desc>
14668 Signals that a framebuffer has completed the resize operation.
14669
14670 <result name="VBOX_E_NOT_SUPPORTED">
14671 Operation only valid for external frame buffers.
14672 </result>
14673
14674 </desc>
14675 <param name="screenId" type="unsigned long" dir="in"/>
14676 </method>
14677
14678 <method name="completeVHWACommand">
14679 <desc>
14680 Signals that the Video HW Acceleration command has completed.
14681 </desc>
14682
14683 <param name="command" type="octet" mod="ptr" dir="in">
14684 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14685 </param>
14686 </method>
14687
14688 <method name="viewportChanged">
14689 <desc>
14690 Signals that framebuffer window viewport has changed.
14691
14692 <result name="E_INVALIDARG">
14693 The specified viewport data is invalid.
14694 </result>
14695
14696 </desc>
14697
14698 <param name="screenId" type="unsigned long" dir="in">
14699 <desc>
14700 Monitor to take the screenshot from.
14701 </desc>
14702 </param>
14703 <param name="x" type="unsigned long" dir="in">
14704 <desc>
14705 Framebuffer x offset.
14706 </desc>
14707 </param>
14708 <param name="y" type="unsigned long" dir="in">
14709 <desc>
14710 Framebuffer y offset.
14711 </desc>
14712 </param>
14713 <param name="width" type="unsigned long" dir="in">
14714 <desc>
14715 Viewport width.
14716 </desc>
14717 </param>
14718 <param name="height" type="unsigned long" dir="in">
14719 <desc>
14720 Viewport height.
14721 </desc>
14722 </param>
14723 </method>
14724 </interface>
14725
14726 <!--
14727 // INetworkAdapter
14728 /////////////////////////////////////////////////////////////////////////
14729 -->
14730
14731 <enum
14732 name="NetworkAttachmentType"
14733 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
14734 >
14735 <desc>
14736 Network attachment type.
14737 </desc>
14738
14739 <const name="Null" value="0">
14740 <desc>Null value, also means "not attached".</desc>
14741 </const>
14742 <const name="NAT" value="1"/>
14743 <const name="Bridged" value="2"/>
14744 <const name="Internal" value="3"/>
14745 <const name="HostOnly" value="4"/>
14746 <const name="Generic" value="5"/>
14747 </enum>
14748
14749 <enum
14750 name="NetworkAdapterType"
14751 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
14752 >
14753 <desc>
14754 Network adapter type.
14755 </desc>
14756
14757 <const name="Null" value="0">
14758 <desc>Null value (never used by the API).</desc>
14759 </const>
14760 <const name="Am79C970A" value="1">
14761 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
14762 </const>
14763 <const name="Am79C973" value="2">
14764 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
14765 </const>
14766 <const name="I82540EM" value="3">
14767 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
14768 </const>
14769 <const name="I82543GC" value="4">
14770 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
14771 </const>
14772 <const name="I82545EM" value="5">
14773 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
14774 </const>
14775 <const name="Virtio" value="6">
14776 <desc>Virtio network device.</desc>
14777 </const>
14778 </enum>
14779
14780 <enum
14781 name="NetworkAdapterPromiscModePolicy"
14782 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
14783 >
14784 <desc>
14785 The promiscuous mode policy of an interface.
14786 </desc>
14787
14788 <const name="Deny" value="1">
14789 <desc>Deny promiscuous mode requests.</desc>
14790 </const>
14791 <const name="AllowNetwork" value="2">
14792 <desc>
14793 Allow promicuous mode, but restrict the scope it to the internal
14794 network so that it only applies to other VMs.
14795 </desc>
14796 </const>
14797 <const name="AllowAll" value="3">
14798 <desc>
14799 Allow promicuous mode, include unrelated traffic going over the wire
14800 and internally on the host.
14801 </desc>
14802 </const>
14803 </enum>
14804
14805 <interface
14806 name="INetworkAdapter" extends="$unknown"
14807 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
14808 wsmap="managed"
14809 >
14810 <desc>
14811 Represents a virtual network adapter that is attached to a virtual machine.
14812 Each virtual machine has a fixed number of network adapter slots with one
14813 instance of this attached to each of them. Call
14814 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
14815 is attached to a given slot in a given machine.
14816
14817 Each network adapter can be in one of five attachment modes, which are
14818 represented by the <link to="NetworkAttachmentType" /> enumeration;
14819 see the <link to="#attachmentType" /> attribute.
14820 </desc>
14821
14822 <attribute name="adapterType" type="NetworkAdapterType">
14823 <desc>
14824 Type of the virtual network adapter. Depending on this value,
14825 VirtualBox will provide a different virtual network hardware
14826 to the guest.
14827 </desc>
14828 </attribute>
14829
14830 <attribute name="slot" type="unsigned long" readonly="yes">
14831 <desc>
14832 Slot number this adapter is plugged into. Corresponds to
14833 the value you pass to <link to="IMachine::getNetworkAdapter"/>
14834 to obtain this instance.
14835 </desc>
14836 </attribute>
14837
14838 <attribute name="enabled" type="boolean">
14839 <desc>
14840 Flag whether the network adapter is present in the
14841 guest system. If disabled, the virtual guest hardware will
14842 not contain this network adapter. Can only be changed when
14843 the VM is not running.
14844 </desc>
14845 </attribute>
14846
14847 <attribute name="MACAddress" type="wstring">
14848 <desc>
14849 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
14850 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
14851 </desc>
14852 </attribute>
14853
14854 <attribute name="attachmentType" type="NetworkAttachmentType">
14855 <desc>
14856 Sets/Gets network attachment type of this network adapter.
14857 </desc>
14858 </attribute>
14859
14860 <attribute name="bridgedInterface" type="wstring">
14861 <desc>
14862 Name of the network interface the VM should be bridged to.
14863 </desc>
14864 </attribute>
14865
14866 <attribute name="hostOnlyInterface" type="wstring">
14867 <desc>
14868 Name of the host only network interface the VM is attached to.
14869 </desc>
14870 </attribute>
14871
14872 <attribute name="internalNetwork" type="wstring">
14873 <desc>
14874 Name of the internal network the VM is attached to.
14875 </desc>
14876 </attribute>
14877
14878 <attribute name="NATNetwork" type="wstring">
14879 <desc>
14880 Name of the NAT network the VM is attached to.
14881 </desc>
14882 </attribute>
14883
14884 <attribute name="genericDriver" type="wstring">
14885 <desc>
14886 Name of the driver to use for the "Generic" network attachment type.
14887 </desc>
14888 </attribute>
14889
14890 <attribute name="cableConnected" type="boolean">
14891 <desc>
14892 Flag whether the adapter reports the cable as connected or not.
14893 It can be used to report offline situations to a VM.
14894 </desc>
14895 </attribute>
14896
14897 <attribute name="lineSpeed" type="unsigned long">
14898 <desc>
14899 Line speed reported by custom drivers, in units of 1 kbps.
14900 </desc>
14901 </attribute>
14902
14903 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
14904 <desc>
14905 The promiscuous mode policy of the network adapter when attached to an
14906 internal network, host only network or a bridge.
14907 </desc>
14908 </attribute>
14909
14910 <attribute name="traceEnabled" type="boolean">
14911 <desc>
14912 Flag whether network traffic from/to the network card should be traced.
14913 Can only be toggled when the VM is turned off.
14914 </desc>
14915 </attribute>
14916
14917 <attribute name="traceFile" type="wstring">
14918 <desc>
14919 Filename where a network trace will be stored. If not set, VBox-pid.pcap
14920 will be used.
14921 </desc>
14922 </attribute>
14923
14924 <attribute name="NATEngine" type="INATEngine" readonly="yes">
14925 <desc>
14926 Points to the NAT engine which handles the network address translation
14927 for this interface. This is active only when the interface actually uses
14928 NAT.
14929 </desc>
14930 </attribute>
14931
14932 <attribute name="bootPriority" type="unsigned long">
14933 <desc>
14934 Network boot priority of the adapter. Priority 1 is highest. If not set,
14935 the priority is considered to be at the lowest possible setting.
14936 </desc>
14937 </attribute>
14938
14939 <attribute name="bandwidthGroup" type="IBandwidthGroup">
14940 <desc>The bandwidth group this network adapter is assigned to.</desc>
14941 </attribute>
14942
14943 <!-- property methods -->
14944
14945 <method name="getProperty" const="yes">
14946 <desc>
14947 Returns the value of the network attachment property with the given name.
14948
14949 If the requested data @a key does not exist, this function will
14950 succeed and return an empty string in the @a value argument.
14951
14952 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14953 </desc>
14954 <param name="key" type="wstring" dir="in">
14955 <desc>Name of the property to get.</desc>
14956 </param>
14957 <param name="value" type="wstring" dir="return">
14958 <desc>Current property value.</desc>
14959 </param>
14960 </method>
14961
14962 <method name="setProperty">
14963 <desc>
14964 Sets the value of the network attachment property with the given name.
14965
14966 Setting the property value to @c null or an empty string is equivalent
14967 to deleting the existing value.
14968
14969 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14970 </desc>
14971 <param name="key" type="wstring" dir="in">
14972 <desc>Name of the property to set.</desc>
14973 </param>
14974 <param name="value" type="wstring" dir="in">
14975 <desc>Property value to set.</desc>
14976 </param>
14977 </method>
14978
14979 <method name="getProperties" const="yes">
14980 <desc>
14981 Returns values for a group of properties in one call.
14982
14983 The names of the properties to get are specified using the @a names
14984 argument which is a list of comma-separated property names or
14985 an empty string if all properties are to be returned.
14986 <note>Currently the value of this argument is ignored and the method
14987 always returns all existing properties.</note>
14988
14989 The method returns two arrays, the array of property names corresponding
14990 to the @a names argument and the current values of these properties.
14991 Both arrays have the same number of elements with each element at the
14992 given index in the first array corresponds to an element at the same
14993 index in the second array.
14994 </desc>
14995 <param name="names" type="wstring" dir="in">
14996 <desc>
14997 Names of properties to get.
14998 </desc>
14999 </param>
15000 <param name="returnNames" type="wstring" safearray="yes" dir="out">
15001 <desc>Names of returned properties.</desc>
15002 </param>
15003 <param name="returnValues" type="wstring" safearray="yes" dir="return">
15004 <desc>Values of returned properties.</desc>
15005 </param>
15006 </method>
15007
15008 </interface>
15009
15010
15011 <!--
15012 // ISerialPort
15013 /////////////////////////////////////////////////////////////////////////
15014 -->
15015
15016 <enum
15017 name="PortMode"
15018 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
15019 >
15020 <desc>
15021 The PortMode enumeration represents possible communication modes for
15022 the virtual serial port device.
15023 </desc>
15024
15025 <const name="Disconnected" value="0">
15026 <desc>Virtual device is not attached to any real host device.</desc>
15027 </const>
15028 <const name="HostPipe" value="1">
15029 <desc>Virtual device is attached to a host pipe.</desc>
15030 </const>
15031 <const name="HostDevice" value="2">
15032 <desc>Virtual device is attached to a host device.</desc>
15033 </const>
15034 <const name="RawFile" value="3">
15035 <desc>Virtual device is attached to a raw file.</desc>
15036 </const>
15037 </enum>
15038
15039 <interface
15040 name="ISerialPort" extends="$unknown"
15041 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
15042 wsmap="managed"
15043 >
15044
15045 <desc>
15046 The ISerialPort interface represents the virtual serial port device.
15047
15048 The virtual serial port device acts like an ordinary serial port
15049 inside the virtual machine. This device communicates to the real
15050 serial port hardware in one of two modes: host pipe or host device.
15051
15052 In host pipe mode, the #path attribute specifies the path to the pipe on
15053 the host computer that represents a serial port. The #server attribute
15054 determines if this pipe is created by the virtual machine process at
15055 machine startup or it must already exist before starting machine
15056 execution.
15057
15058 In host device mode, the #path attribute specifies the name of the
15059 serial port device on the host computer.
15060
15061 There is also a third communication mode: the disconnected mode. In this
15062 mode, the guest OS running inside the virtual machine will be able to
15063 detect the serial port, but all port write operations will be discarded
15064 and all port read operations will return no data.
15065
15066 <see><link to="IMachine::getSerialPort"/></see>
15067 </desc>
15068
15069 <attribute name="slot" type="unsigned long" readonly="yes">
15070 <desc>
15071 Slot number this serial port is plugged into. Corresponds to
15072 the value you pass to <link to="IMachine::getSerialPort"/>
15073 to obtain this instance.
15074 </desc>
15075 </attribute>
15076
15077 <attribute name="enabled" type="boolean">
15078 <desc>
15079 Flag whether the serial port is enabled. If disabled,
15080 the serial port will not be reported to the guest OS.
15081 </desc>
15082 </attribute>
15083
15084 <attribute name="IOBase" type="unsigned long">
15085 <desc>Base I/O address of the serial port.</desc>
15086 </attribute>
15087
15088 <attribute name="IRQ" type="unsigned long">
15089 <desc>IRQ number of the serial port.</desc>
15090 </attribute>
15091
15092 <attribute name="hostMode" type="PortMode">
15093 <desc>
15094 How is this port connected to the host.
15095 <note>
15096 Changing this attribute may fail if the conditions for
15097 <link to="#path"/> are not met.
15098 </note>
15099 </desc>
15100 </attribute>
15101
15102 <attribute name="server" type="boolean">
15103 <desc>
15104 Flag whether this serial port acts as a server (creates a new pipe on
15105 the host) or as a client (uses the existing pipe). This attribute is
15106 used only when <link to="#hostMode"/> is PortMode_HostPipe.
15107 </desc>
15108 </attribute>
15109
15110 <attribute name="path" type="wstring">
15111 <desc>
15112 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
15113 PortMode_HostPipe, or the host serial device name when
15114 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
15115 cases, setting a @c null or empty string as the attribute's value
15116 is an error. Otherwise, the value of this property is ignored.
15117 </desc>
15118 </attribute>
15119
15120 </interface>
15121
15122 <!--
15123 // IParallelPort
15124 /////////////////////////////////////////////////////////////////////////
15125 -->
15126
15127 <interface
15128 name="IParallelPort" extends="$unknown"
15129 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
15130 wsmap="managed"
15131 >
15132
15133 <desc>
15134 The IParallelPort interface represents the virtual parallel port device.
15135
15136 The virtual parallel port device acts like an ordinary parallel port
15137 inside the virtual machine. This device communicates to the real
15138 parallel port hardware using the name of the parallel device on the host
15139 computer specified in the #path attribute.
15140
15141 Each virtual parallel port device is assigned a base I/O address and an
15142 IRQ number that will be reported to the guest operating system and used
15143 to operate the given parallel port from within the virtual machine.
15144
15145 <see><link to="IMachine::getParallelPort"/></see>
15146 </desc>
15147
15148 <attribute name="slot" type="unsigned long" readonly="yes">
15149 <desc>
15150 Slot number this parallel port is plugged into. Corresponds to
15151 the value you pass to <link to="IMachine::getParallelPort"/>
15152 to obtain this instance.
15153 </desc>
15154 </attribute>
15155
15156 <attribute name="enabled" type="boolean">
15157 <desc>
15158 Flag whether the parallel port is enabled. If disabled,
15159 the parallel port will not be reported to the guest OS.
15160 </desc>
15161 </attribute>
15162
15163 <attribute name="IOBase" type="unsigned long">
15164 <desc>Base I/O address of the parallel port.</desc>
15165 </attribute>
15166
15167 <attribute name="IRQ" type="unsigned long">
15168 <desc>IRQ number of the parallel port.</desc>
15169 </attribute>
15170
15171 <attribute name="path" type="wstring">
15172 <desc>
15173 Host parallel device name. If this parallel port is enabled, setting a
15174 @c null or an empty string as this attribute's value will result in
15175 an error.
15176 </desc>
15177 </attribute>
15178
15179 </interface>
15180
15181
15182 <!--
15183 // IMachineDebugger
15184 /////////////////////////////////////////////////////////////////////////
15185 -->
15186
15187 <interface
15188 name="IMachineDebugger" extends="$unknown"
15189 uuid="a80bb82c-37c5-4155-a524-9c1d0a1689ba"
15190 wsmap="managed"
15191 >
15192 <method name="dumpGuestCore">
15193 <desc>
15194 Takes a core dump of the guest.
15195
15196 See include/VBox/dbgfcorefmt.h for details on the file format.
15197 </desc>
15198 <param name="filename" type="wstring" dir="in">
15199 <desc>
15200 The name of the output file. The file must not exist.
15201 </desc>
15202 </param>
15203 <param name="compression" type="wstring" dir="in">
15204 <desc>
15205 Reserved for future compression method indicator.
15206 </desc>
15207 </param>
15208 </method>
15209
15210 <method name="dumpHostProcessCore">
15211 <desc>
15212 Takes a core dump of the VM process on the host.
15213
15214 This feature is not implemented in the 4.0.0 release but it may show up
15215 in a dot release.
15216 </desc>
15217 <param name="filename" type="wstring" dir="in">
15218 <desc>
15219 The name of the output file. The file must not exist.
15220 </desc>
15221 </param>
15222 <param name="compression" type="wstring" dir="in">
15223 <desc>
15224 Reserved for future compression method indicator.
15225 </desc>
15226 </param>
15227 </method>
15228
15229 <method name="info">
15230 <desc>
15231 Interfaces with the info dumpers (DBGFInfo).
15232
15233 This feature is not implemented in the 4.0.0 release but it may show up
15234 in a dot release.
15235 </desc>
15236 <param name="name" type="wstring" dir="in">
15237 <desc>
15238 The name of the info item.
15239 </desc>
15240 </param>
15241 <param name="args" type="wstring" dir="in">
15242 <desc>
15243 Arguments to the info dumper.
15244 </desc>
15245 </param>
15246 <param name="info" type="wstring" dir="return">
15247 <desc>
15248 The into string.
15249 </desc>
15250 </param>
15251 </method>
15252
15253 <method name="injectNMI">
15254 <desc>
15255 Inject an NMI into a running VT-x/AMD-V VM.
15256 </desc>
15257 </method>
15258
15259 <method name="modifyLogGroups">
15260 <desc>
15261 Modifies the group settings of the debug or release logger.
15262 </desc>
15263 <param name="settings" type="wstring" dir="in">
15264 <desc>
15265 The group settings string. See iprt/log.h for details. To target the
15266 release logger, prefix the string with "release:".
15267 </desc>
15268 </param>
15269 </method>
15270
15271 <method name="modifyLogFlags">
15272 <desc>
15273 Modifies the debug or release logger flags.
15274 </desc>
15275 <param name="settings" type="wstring" dir="in">
15276 <desc>
15277 The flags settings string. See iprt/log.h for details. To target the
15278 release logger, prefix the string with "release:".
15279 </desc>
15280 </param>
15281 </method>
15282
15283 <method name="modifyLogDestinations">
15284 <desc>
15285 Modifies the debug or release logger destinations.
15286 </desc>
15287 <param name="settings" type="wstring" dir="in">
15288 <desc>
15289 The destination settings string. See iprt/log.h for details. To target the
15290 release logger, prefix the string with "release:".
15291 </desc>
15292 </param>
15293 </method>
15294
15295 <method name="readPhysicalMemory">
15296 <desc>
15297 Reads guest physical memory, no side effects (MMIO++).
15298
15299 This feature is not implemented in the 4.0.0 release but may show up
15300 in a dot release.
15301 </desc>
15302 <param name="address" type="long long" dir="in">
15303 <desc>The guest physical address.</desc>
15304 </param>
15305 <param name="size" type="unsigned long" dir="in">
15306 <desc>The number of bytes to read.</desc>
15307 </param>
15308 <param name="bytes" type="octet" safearray="yes" dir="return">
15309 <desc>The bytes read.</desc>
15310 </param>
15311 </method>
15312
15313 <method name="writePhysicalMemory">
15314 <desc>
15315 Writes guest physical memory, access handles (MMIO++) are ignored.
15316
15317 This feature is not implemented in the 4.0.0 release but may show up
15318 in a dot release.
15319 </desc>
15320 <param name="address" type="long long" dir="in">
15321 <desc>The guest physical address.</desc>
15322 </param>
15323 <param name="size" type="unsigned long" dir="in">
15324 <desc>The number of bytes to read.</desc>
15325 </param>
15326 <param name="bytes" type="octet" safearray="yes" dir="in">
15327 <desc>The bytes to write.</desc>
15328 </param>
15329 </method>
15330
15331 <method name="readVirtualMemory">
15332 <desc>
15333 Reads guest virtual memory, no side effects (MMIO++).
15334
15335 This feature is not implemented in the 4.0.0 release but may show up
15336 in a dot release.
15337 </desc>
15338 <param name="cpuId" type="unsigned long" dir="in">
15339 <desc>The identifier of the Virtual CPU.</desc>
15340 </param>
15341 <param name="address" type="long long" dir="in">
15342 <desc>The guest virtual address.</desc>
15343 </param>
15344 <param name="size" type="unsigned long" dir="in">
15345 <desc>The number of bytes to read.</desc>
15346 </param>
15347 <param name="bytes" type="octet" safearray="yes" dir="return">
15348 <desc>The bytes read.</desc>
15349 </param>
15350 </method>
15351
15352 <method name="writeVirtualMemory">
15353 <desc>
15354 Writes guest virtual memory, access handles (MMIO++) are ignored.
15355
15356 This feature is not implemented in the 4.0.0 release but may show up
15357 in a dot release.
15358 </desc>
15359 <param name="cpuId" type="unsigned long" dir="in">
15360 <desc>The identifier of the Virtual CPU.</desc>
15361 </param>
15362 <param name="address" type="long long" dir="in">
15363 <desc>The guest virtual address.</desc>
15364 </param>
15365 <param name="size" type="unsigned long" dir="in">
15366 <desc>The number of bytes to read.</desc>
15367 </param>
15368 <param name="bytes" type="octet" safearray="yes" dir="in">
15369 <desc>The bytes to write.</desc>
15370 </param>
15371 </method>
15372
15373 <method name="detectOS">
15374 <desc>
15375 Tries to (re-)detect the guest OS kernel.
15376
15377 This feature is not implemented in the 4.0.0 release but may show up
15378 in a dot release.
15379 </desc>
15380 <param name="os" type="wstring" dir="return">
15381 <desc>
15382 The detected OS kernel on success.
15383 </desc>
15384 </param>
15385 </method>
15386
15387 <method name="getRegister">
15388 <desc>
15389 Gets one register.
15390
15391 This feature is not implemented in the 4.0.0 release but may show up
15392 in a dot release.
15393 </desc>
15394 <param name="cpuId" type="unsigned long" dir="in">
15395 <desc>The identifier of the Virtual CPU.</desc>
15396 </param>
15397 <param name="name" type="wstring" dir="in">
15398 <desc>The register name, case is ignored.</desc>
15399 </param>
15400 <param name="value" type="wstring" dir="return">
15401 <desc>
15402 The register value. This is usually a hex value (always 0x prefixed)
15403 but other format may be used for floating point registers (TBD).
15404 </desc>
15405 </param>
15406 </method>
15407
15408 <method name="getRegisters">
15409 <desc>
15410 Gets all the registers for the given CPU.
15411
15412 This feature is not implemented in the 4.0.0 release but may show up
15413 in a dot release.
15414 </desc>
15415 <param name="cpuId" type="unsigned long" dir="in">
15416 <desc>The identifier of the Virtual CPU.</desc>
15417 </param>
15418 <param name="names" type="wstring" dir="out" safearray="yes">
15419 <desc>Array containing the lowercase register names.</desc>
15420 </param>
15421 <param name="values" type="wstring" dir="out" safearray="yes">
15422 <desc>
15423 Array paralell to the names holding the register values as if the
15424 register was returned by <link to="IMachineDebugger::getRegister"/>.
15425 </desc>
15426 </param>
15427 </method>
15428
15429 <method name="setRegister">
15430 <desc>
15431 Gets one register.
15432
15433 This feature is not implemented in the 4.0.0 release but may show up
15434 in a dot release.
15435 </desc>
15436 <param name="cpuId" type="unsigned long" dir="in">
15437 <desc>The identifier of the Virtual CPU.</desc>
15438 </param>
15439 <param name="name" type="wstring" dir="in">
15440 <desc>The register name, case is ignored.</desc>
15441 </param>
15442 <param name="value" type="wstring" dir="in">
15443 <desc>
15444 The new register value. Hexadecimal, decimal and octal formattings
15445 are supported in addition to any special formattings returned by
15446 the getters.
15447 </desc>
15448 </param>
15449 </method>
15450
15451 <method name="setRegisters">
15452 <desc>
15453 Sets zero or more registers atomically.
15454
15455 This feature is not implemented in the 4.0.0 release but may show up
15456 in a dot release.
15457 </desc>
15458 <param name="cpuId" type="unsigned long" dir="in">
15459 <desc>The identifier of the Virtual CPU.</desc>
15460 </param>
15461 <param name="names" type="wstring" dir="in" safearray="yes">
15462 <desc>Array containing the register names, case ignored.</desc>
15463 </param>
15464 <param name="values" type="wstring" dir="in" safearray="yes">
15465 <desc>
15466 Array paralell to the names holding the register values. See
15467 <link to="IMachineDebugger::setRegister"/> for formatting
15468 guidelines.
15469 </desc>
15470 </param>
15471 </method>
15472
15473 <method name="dumpGuestStack">
15474 <desc>
15475 Produce a simple stack dump using the current guest state.
15476
15477 This feature is not implemented in the 4.0.0 release but may show up
15478 in a dot release.
15479 </desc>
15480 <param name="cpuId" type="unsigned long" dir="in">
15481 <desc>The identifier of the Virtual CPU.</desc>
15482 </param>
15483 <param name="stack" type="wstring" dir="return">
15484 <desc>String containing the formatted stack dump.</desc>
15485 </param>
15486 </method>
15487
15488 <method name="resetStats">
15489 <desc>
15490 Reset VM statistics.
15491 </desc>
15492 <param name="pattern" type="wstring" dir="in">
15493 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15494 </param>
15495 </method>
15496
15497 <method name="dumpStats">
15498 <desc>
15499 Dumps VM statistics.
15500 </desc>
15501 <param name="pattern" type="wstring" dir="in">
15502 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15503 </param>
15504 </method>
15505
15506 <method name="getStats">
15507 <desc>
15508 Get the VM statistics in a XMLish format.
15509 </desc>
15510 <param name="pattern" type="wstring" dir="in">
15511 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15512 </param>
15513 <param name="withDescriptions" type="boolean" dir="in">
15514 <desc>Whether to include the descriptions.</desc>
15515 </param>
15516 <param name="stats" type="wstring" dir="return">
15517 <desc>The XML document containing the statistics.</desc>
15518 </param>
15519 </method>
15520
15521 <attribute name="singleStep" type="boolean">
15522 <desc>Switch for enabling single-stepping.</desc>
15523 </attribute>
15524
15525 <attribute name="recompileUser" type="boolean">
15526 <desc>Switch for forcing code recompilation for user mode code.</desc>
15527 </attribute>
15528
15529 <attribute name="recompileSupervisor" type="boolean">
15530 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15531 </attribute>
15532
15533 <attribute name="PATMEnabled" type="boolean">
15534 <desc>Switch for enabling and disabling the PATM component.</desc>
15535 </attribute>
15536
15537 <attribute name="CSAMEnabled" type="boolean">
15538 <desc>Switch for enabling and disabling the CSAM component.</desc>
15539 </attribute>
15540
15541 <attribute name="logEnabled" type="boolean">
15542 <desc>Switch for enabling and disabling the debug logger.</desc>
15543 </attribute>
15544
15545 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15546 <desc>The debug logger flags.</desc>
15547 </attribute>
15548
15549 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15550 <desc>The debug logger's group settings.</desc>
15551 </attribute>
15552
15553 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15554 <desc>The debug logger's destination settings.</desc>
15555 </attribute>
15556
15557 <attribute name="logRelFlags" type="wstring" readonly="yes">
15558 <desc>The release logger flags.</desc>
15559 </attribute>
15560
15561 <attribute name="logRelGroups" type="wstring" readonly="yes">
15562 <desc>The release logger's group settings.</desc>
15563 </attribute>
15564
15565 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15566 <desc>The relase logger's destination settings.</desc>
15567 </attribute>
15568
15569 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15570 <desc>
15571 Flag indicating whether the VM is currently making use of CPU hardware
15572 virtualization extensions.
15573 </desc>
15574 </attribute>
15575
15576 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15577 <desc>
15578 Flag indicating whether the VM is currently making use of the nested paging
15579 CPU hardware virtualization extension.
15580 </desc>
15581 </attribute>
15582
15583 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15584 <desc>
15585 Flag indicating whether the VM is currently making use of the VPID
15586 VT-x extension.
15587 </desc>
15588 </attribute>
15589
15590 <attribute name="OSName" type="wstring" readonly="yes">
15591 <desc>
15592 Query the guest OS kernel name as detected by the DBGF.
15593
15594 This feature is not implemented in the 4.0.0 release but may show up
15595 in a dot release.
15596 </desc>
15597 </attribute>
15598
15599 <attribute name="OSVersion" type="wstring" readonly="yes">
15600 <desc>
15601 Query the guest OS kernel version string as detected by the DBGF.
15602
15603 This feature is not implemented in the 4.0.0 release but may show up
15604 in a dot release.
15605 </desc>
15606 </attribute>
15607
15608 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15609 <desc>
15610 Flag indicating whether the VM is currently making use of the Physical
15611 Address Extension CPU feature.
15612 </desc>
15613 </attribute>
15614
15615 <attribute name="virtualTimeRate" type="unsigned long">
15616 <desc>
15617 The rate at which the virtual time runs expressed as a percentage.
15618 The accepted range is 2% to 20000%.
15619 </desc>
15620 </attribute>
15621
15622 <attribute name="VM" type="long long" readonly="yes" wsmap="suppress">
15623 <desc>
15624 Gets the user-mode VM handle, with a reference. Must be passed to
15625 VMR3ReleaseUVM when done. This is only for internal use while we carve
15626 the details of this interface.
15627 </desc>
15628 </attribute>
15629
15630 </interface>
15631
15632 <!--
15633 // IUSBController
15634 /////////////////////////////////////////////////////////////////////////
15635 -->
15636
15637 <interface
15638 name="IUSBController" extends="$unknown"
15639 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15640 wsmap="managed"
15641 >
15642 <attribute name="enabled" type="boolean">
15643 <desc>
15644 Flag whether the USB controller is present in the
15645 guest system. If disabled, the virtual guest hardware will
15646 not contain any USB controller. Can only be changed when
15647 the VM is powered off.
15648 </desc>
15649 </attribute>
15650
15651 <attribute name="enabledEHCI" type="boolean">
15652 <desc>
15653 Flag whether the USB EHCI controller is present in the
15654 guest system. If disabled, the virtual guest hardware will
15655 not contain a USB EHCI controller. Can only be changed when
15656 the VM is powered off.
15657 </desc>
15658 </attribute>
15659
15660 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15661 <desc>
15662 Flag whether there is an USB proxy available.
15663 </desc>
15664 </attribute>
15665
15666 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15667 <desc>
15668 USB standard version which the controller implements.
15669 This is a BCD which means that the major version is in the
15670 high byte and minor version is in the low byte.
15671 </desc>
15672 </attribute>
15673
15674 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15675 <desc>
15676 List of USB device filters associated with the machine.
15677
15678 If the machine is currently running, these filters are activated
15679 every time a new (supported) USB device is attached to the host
15680 computer that was not ignored by global filters
15681 (<link to="IHost::USBDeviceFilters"/>).
15682
15683 These filters are also activated when the machine is powered up.
15684 They are run against a list of all currently available USB
15685 devices (in states
15686 <link to="USBDeviceState_Available"/>,
15687 <link to="USBDeviceState_Busy"/>,
15688 <link to="USBDeviceState_Held"/>) that were not previously
15689 ignored by global filters.
15690
15691 If at least one filter matches the USB device in question, this
15692 device is automatically captured (attached to) the virtual USB
15693 controller of this machine.
15694
15695 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
15696 </desc>
15697 </attribute>
15698
15699 <method name="createDeviceFilter">
15700 <desc>
15701 Creates a new USB device filter. All attributes except
15702 the filter name are set to empty (any match),
15703 <i>active</i> is @c false (the filter is not active).
15704
15705 The created filter can then be added to the list of filters using
15706 <link to="#insertDeviceFilter"/>.
15707
15708 <result name="VBOX_E_INVALID_VM_STATE">
15709 The virtual machine is not mutable.
15710 </result>
15711
15712 <see><link to="#deviceFilters"/></see>
15713 </desc>
15714 <param name="name" type="wstring" dir="in">
15715 <desc>
15716 Filter name. See <link to="IUSBDeviceFilter::name"/>
15717 for more info.
15718 </desc>
15719 </param>
15720 <param name="filter" type="IUSBDeviceFilter" dir="return">
15721 <desc>Created filter object.</desc>
15722 </param>
15723 </method>
15724
15725 <method name="insertDeviceFilter">
15726 <desc>
15727 Inserts the given USB device to the specified position
15728 in the list of filters.
15729
15730 Positions are numbered starting from <tt>0</tt>. If the specified
15731 position is equal to or greater than the number of elements in
15732 the list, the filter is added to the end of the collection.
15733
15734 <note>
15735 Duplicates are not allowed, so an attempt to insert a
15736 filter that is already in the collection, will return an
15737 error.
15738 </note>
15739
15740 <result name="VBOX_E_INVALID_VM_STATE">
15741 Virtual machine is not mutable.
15742 </result>
15743 <result name="E_INVALIDARG">
15744 USB device filter not created within this VirtualBox instance.
15745 </result>
15746 <result name="VBOX_E_INVALID_OBJECT_STATE">
15747 USB device filter already in list.
15748 </result>
15749
15750 <see><link to="#deviceFilters"/></see>
15751 </desc>
15752 <param name="position" type="unsigned long" dir="in">
15753 <desc>Position to insert the filter to.</desc>
15754 </param>
15755 <param name="filter" type="IUSBDeviceFilter" dir="in">
15756 <desc>USB device filter to insert.</desc>
15757 </param>
15758 </method>
15759
15760 <method name="removeDeviceFilter">
15761 <desc>
15762 Removes a USB device filter from the specified position in the
15763 list of filters.
15764
15765 Positions are numbered starting from <tt>0</tt>. Specifying a
15766 position equal to or greater than the number of elements in
15767 the list will produce an error.
15768
15769 <see><link to="#deviceFilters"/></see>
15770
15771 <result name="VBOX_E_INVALID_VM_STATE">
15772 Virtual machine is not mutable.
15773 </result>
15774 <result name="E_INVALIDARG">
15775 USB device filter list empty or invalid @a position.
15776 </result>
15777
15778 </desc>
15779 <param name="position" type="unsigned long" dir="in">
15780 <desc>Position to remove the filter from.</desc>
15781 </param>
15782 <param name="filter" type="IUSBDeviceFilter" dir="return">
15783 <desc>Removed USB device filter.</desc>
15784 </param>
15785 </method>
15786
15787 </interface>
15788
15789
15790 <!--
15791 // IUSBDevice
15792 /////////////////////////////////////////////////////////////////////////
15793 -->
15794
15795 <interface
15796 name="IUSBDevice" extends="$unknown"
15797 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
15798 wsmap="managed"
15799 >
15800 <desc>
15801 The IUSBDevice interface represents a virtual USB device attached to the
15802 virtual machine.
15803
15804 A collection of objects implementing this interface is stored in the
15805 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
15806 attached to a running virtual machine's USB controller.
15807 </desc>
15808
15809 <attribute name="id" type="uuid" mod="string" readonly="yes">
15810 <desc>
15811 Unique USB device ID. This ID is built from #vendorId,
15812 #productId, #revision and #serialNumber.
15813 </desc>
15814 </attribute>
15815
15816 <attribute name="vendorId" type="unsigned short" readonly="yes">
15817 <desc>Vendor ID.</desc>
15818 </attribute>
15819
15820 <attribute name="productId" type="unsigned short" readonly="yes">
15821 <desc>Product ID.</desc>
15822 </attribute>
15823
15824 <attribute name="revision" type="unsigned short" readonly="yes">
15825 <desc>
15826 Product revision number. This is a packed BCD represented as
15827 unsigned short. The high byte is the integer part and the low
15828 byte is the decimal.
15829 </desc>
15830 </attribute>
15831
15832 <attribute name="manufacturer" type="wstring" readonly="yes">
15833 <desc>Manufacturer string.</desc>
15834 </attribute>
15835
15836 <attribute name="product" type="wstring" readonly="yes">
15837 <desc>Product string.</desc>
15838 </attribute>
15839
15840 <attribute name="serialNumber" type="wstring" readonly="yes">
15841 <desc>Serial number string.</desc>
15842 </attribute>
15843
15844 <attribute name="address" type="wstring" readonly="yes">
15845 <desc>Host specific address of the device.</desc>
15846 </attribute>
15847
15848 <attribute name="port" type="unsigned short" readonly="yes">
15849 <desc>
15850 Host USB port number the device is physically
15851 connected to.
15852 </desc>
15853 </attribute>
15854
15855 <attribute name="version" type="unsigned short" readonly="yes">
15856 <desc>
15857 The major USB version of the device - 1 or 2.
15858 </desc>
15859 </attribute>
15860
15861 <attribute name="portVersion" type="unsigned short" readonly="yes">
15862 <desc>
15863 The major USB version of the host USB port the device is
15864 physically connected to - 1 or 2. For devices not connected to
15865 anything this will have the same value as the version attribute.
15866 </desc>
15867 </attribute>
15868
15869 <attribute name="remote" type="boolean" readonly="yes">
15870 <desc>
15871 Whether the device is physically connected to a remote VRDE
15872 client or to a local host machine.
15873 </desc>
15874 </attribute>
15875
15876 </interface>
15877
15878
15879 <!--
15880 // IUSBDeviceFilter
15881 /////////////////////////////////////////////////////////////////////////
15882 -->
15883
15884 <interface
15885 name="IUSBDeviceFilter" extends="$unknown"
15886 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
15887 wsmap="managed"
15888 >
15889 <desc>
15890 The IUSBDeviceFilter interface represents an USB device filter used
15891 to perform actions on a group of USB devices.
15892
15893 This type of filters is used by running virtual machines to
15894 automatically capture selected USB devices once they are physically
15895 attached to the host computer.
15896
15897 A USB device is matched to the given device filter if and only if all
15898 attributes of the device match the corresponding attributes of the
15899 filter (that is, attributes are joined together using the logical AND
15900 operation). On the other hand, all together, filters in the list of
15901 filters carry the semantics of the logical OR operation. So if it is
15902 desirable to create a match like "this vendor id OR this product id",
15903 one needs to create two filters and specify "any match" (see below)
15904 for unused attributes.
15905
15906 All filter attributes used for matching are strings. Each string
15907 is an expression representing a set of values of the corresponding
15908 device attribute, that will match the given filter. Currently, the
15909 following filtering expressions are supported:
15910
15911 <ul>
15912 <li><i>Interval filters</i>. Used to specify valid intervals for
15913 integer device attributes (Vendor ID, Product ID and Revision).
15914 The format of the string is:
15915
15916 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
15917
15918 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
15919 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
15920 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
15921 is omitted before a dash (<tt>-</tt>), the minimum possible integer
15922 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
15923 possible integer is assumed.
15924 </li>
15925 <li><i>Boolean filters</i>. Used to specify acceptable values for
15926 boolean device attributes. The format of the string is:
15927
15928 <tt>true|false|yes|no|0|1</tt>
15929
15930 </li>
15931 <li><i>Exact match</i>. Used to specify a single value for the given
15932 device attribute. Any string that doesn't start with <tt>int:</tt>
15933 represents the exact match. String device attributes are compared to
15934 this string including case of symbols. Integer attributes are first
15935 converted to a string (see individual filter attributes) and then
15936 compared ignoring case.
15937
15938 </li>
15939 <li><i>Any match</i>. Any value of the corresponding device attribute
15940 will match the given filter. An empty or @c null string is
15941 used to construct this type of filtering expressions.
15942
15943 </li>
15944 </ul>
15945
15946 <note>
15947 On the Windows host platform, interval filters are not currently
15948 available. Also all string filter attributes
15949 (<link to="#manufacturer"/>, <link to="#product"/>,
15950 <link to="#serialNumber"/>) are ignored, so they behave as
15951 <i>any match</i> no matter what string expression is specified.
15952 </note>
15953
15954 <see><link to="IUSBController::deviceFilters"/>,
15955 <link to="IHostUSBDeviceFilter"/></see>
15956 </desc>
15957
15958 <attribute name="name" type="wstring">
15959 <desc>
15960 Visible name for this filter.
15961 This name is used to visually distinguish one filter from another,
15962 so it can neither be @c null nor an empty string.
15963 </desc>
15964 </attribute>
15965
15966 <attribute name="active" type="boolean">
15967 <desc>Whether this filter active or has been temporarily disabled.</desc>
15968 </attribute>
15969
15970 <attribute name="vendorId" type="wstring">
15971 <desc>
15972 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
15973 The string representation for the <i>exact matching</i>
15974 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15975 (including leading zeroes).
15976 </desc>
15977 </attribute>
15978
15979 <attribute name="productId" type="wstring">
15980 <desc>
15981 <link to="IUSBDevice::productId">Product ID</link> filter.
15982 The string representation for the <i>exact matching</i>
15983 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15984 (including leading zeroes).
15985 </desc>
15986 </attribute>
15987
15988 <attribute name="revision" type="wstring">
15989 <desc>
15990 <link to="IUSBDevice::productId">Product revision number</link>
15991 filter. The string representation for the <i>exact matching</i>
15992 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
15993 of the integer part of the revision, and <tt>F</tt> is the
15994 decimal digit of its fractional part (including leading and
15995 trailing zeros).
15996 Note that for interval filters, it's best to use the hexadecimal
15997 form, because the revision is stored as a 16 bit packed BCD value;
15998 so the expression <tt>int:0x0100-0x0199</tt> will match any
15999 revision from <tt>1.0</tt> to <tt>1.99</tt>.
16000 </desc>
16001 </attribute>
16002
16003 <attribute name="manufacturer" type="wstring">
16004 <desc>
16005 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
16006 </desc>
16007 </attribute>
16008
16009 <attribute name="product" type="wstring">
16010 <desc>
16011 <link to="IUSBDevice::product">Product</link> filter.
16012 </desc>
16013 </attribute>
16014
16015 <attribute name="serialNumber" type="wstring">
16016 <desc>
16017 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
16018 </desc>
16019 </attribute>
16020
16021 <attribute name="port" type="wstring">
16022 <desc>
16023 <link to="IUSBDevice::port">Host USB port</link> filter.
16024 </desc>
16025 </attribute>
16026
16027 <attribute name="remote" type="wstring">
16028 <desc>
16029 <link to="IUSBDevice::remote">Remote state</link> filter.
16030 <note>
16031 This filter makes sense only for machine USB filters,
16032 i.e. it is ignored by IHostUSBDeviceFilter objects.
16033 </note>
16034 </desc>
16035 </attribute>
16036
16037 <attribute name="maskedInterfaces" type="unsigned long">
16038 <desc>
16039 This is an advanced option for hiding one or more USB interfaces
16040 from the guest. The value is a bit mask where the bits that are set
16041 means the corresponding USB interface should be hidden, masked off
16042 if you like.
16043 This feature only works on Linux hosts.
16044 </desc>
16045 </attribute>
16046
16047 </interface>
16048
16049
16050 <!--
16051 // IHostUSBDevice
16052 /////////////////////////////////////////////////////////////////////////
16053 -->
16054
16055 <enum
16056 name="USBDeviceState"
16057 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
16058 >
16059 <desc>
16060 USB device state. This enumeration represents all possible states
16061 of the USB device physically attached to the host computer regarding
16062 its state on the host computer and availability to guest computers
16063 (all currently running virtual machines).
16064
16065 Once a supported USB device is attached to the host, global USB
16066 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
16067 either ignore the device, or put it to USBDeviceState_Held state, or do
16068 nothing. Unless the device is ignored by global filters, filters of all
16069 currently running guests (<link to="IUSBController::deviceFilters"/>) are
16070 activated that can put it to USBDeviceState_Captured state.
16071
16072 If the device was ignored by global filters, or didn't match
16073 any filters at all (including guest ones), it is handled by the host
16074 in a normal way. In this case, the device state is determined by
16075 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
16076 or USBDeviceState_Available, depending on the current device usage.
16077
16078 Besides auto-capturing based on filters, the device can be manually
16079 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
16080 state is USBDeviceState_Busy, USBDeviceState_Available or
16081 USBDeviceState_Held.
16082
16083 <note>
16084 Due to differences in USB stack implementations in Linux and Win32,
16085 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
16086 only to the Linux version of the product. This also means that (<link
16087 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
16088 device state is USBDeviceState_Held.
16089 </note>
16090
16091 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
16092 </desc>
16093
16094 <const name="NotSupported" value="0">
16095 <desc>
16096 Not supported by the VirtualBox server, not available to guests.
16097 </desc>
16098 </const>
16099 <const name="Unavailable" value="1">
16100 <desc>
16101 Being used by the host computer exclusively,
16102 not available to guests.
16103 </desc>
16104 </const>
16105 <const name="Busy" value="2">
16106 <desc>
16107 Being used by the host computer, potentially available to guests.
16108 </desc>
16109 </const>
16110 <const name="Available" value="3">
16111 <desc>
16112 Not used by the host computer, available to guests (the host computer
16113 can also start using the device at any time).
16114 </desc>
16115 </const>
16116 <const name="Held" value="4">
16117 <desc>
16118 Held by the VirtualBox server (ignored by the host computer),
16119 available to guests.
16120 </desc>
16121 </const>
16122 <const name="Captured" value="5">
16123 <desc>
16124 Captured by one of the guest computers, not available
16125 to anybody else.
16126 </desc>
16127 </const>
16128 </enum>
16129
16130 <interface
16131 name="IHostUSBDevice" extends="IUSBDevice"
16132 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
16133 wsmap="managed"
16134 >
16135 <desc>
16136 The IHostUSBDevice interface represents a physical USB device attached
16137 to the host computer.
16138
16139 Besides properties inherited from IUSBDevice, this interface adds the
16140 <link to="#state"/> property that holds the current state of the USB
16141 device.
16142
16143 <see><link to="IHost::USBDevices"/>,
16144 <link to="IHost::USBDeviceFilters"/></see>
16145 </desc>
16146
16147 <attribute name="state" type="USBDeviceState" readonly="yes">
16148 <desc>
16149 Current state of the device.
16150 </desc>
16151 </attribute>
16152
16153 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
16154
16155 </interface>
16156
16157
16158 <!--
16159 // IHostUSBDeviceFilter
16160 /////////////////////////////////////////////////////////////////////////
16161 -->
16162
16163 <enum
16164 name="USBDeviceFilterAction"
16165 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
16166 >
16167 <desc>
16168 Actions for host USB device filters.
16169 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
16170 </desc>
16171
16172 <const name="Null" value="0">
16173 <desc>Null value (never used by the API).</desc>
16174 </const>
16175 <const name="Ignore" value="1">
16176 <desc>Ignore the matched USB device.</desc>
16177 </const>
16178 <const name="Hold" value="2">
16179 <desc>Hold the matched USB device.</desc>
16180 </const>
16181 </enum>
16182
16183 <interface
16184 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
16185 uuid="4cc70246-d74a-400f-8222-3900489c0374"
16186 wsmap="managed"
16187 >
16188 <desc>
16189 The IHostUSBDeviceFilter interface represents a global filter for a
16190 physical USB device used by the host computer. Used indirectly in
16191 <link to="IHost::USBDeviceFilters"/>.
16192
16193 Using filters of this type, the host computer determines the initial
16194 state of the USB device after it is physically attached to the
16195 host's USB controller.
16196
16197 <note>
16198 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
16199 filters, because it makes sense only for
16200 <link to="IUSBController::deviceFilters">machine USB filters</link>.
16201 </note>
16202
16203 <see><link to="IHost::USBDeviceFilters"/></see>
16204 </desc>
16205
16206 <attribute name="action" type="USBDeviceFilterAction">
16207 <desc>
16208 Action performed by the host when an attached USB device
16209 matches this filter.
16210 </desc>
16211 </attribute>
16212
16213 </interface>
16214
16215 <!--
16216 // IAudioAdapter
16217 /////////////////////////////////////////////////////////////////////////
16218 -->
16219
16220 <enum
16221 name="AudioDriverType"
16222 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16223 >
16224 <desc>
16225 Host audio driver type.
16226 </desc>
16227
16228 <const name="Null" value="0">
16229 <desc>Null value, also means "dummy audio driver".</desc>
16230 </const>
16231 <const name="WinMM" value="1">
16232 <desc>Windows multimedia (Windows hosts only).</desc>
16233 </const>
16234 <const name="OSS" value="2">
16235 <desc>Open Sound System (Linux hosts only).</desc>
16236 </const>
16237 <const name="ALSA" value="3">
16238 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16239 </const>
16240 <const name="DirectSound" value="4">
16241 <desc>DirectSound (Windows hosts only).</desc>
16242 </const>
16243 <const name="CoreAudio" value="5">
16244 <desc>CoreAudio (Mac hosts only).</desc>
16245 </const>
16246 <const name="MMPM" value="6">
16247 <desc>Reserved for historical reasons.</desc>
16248 </const>
16249 <const name="Pulse" value="7">
16250 <desc>PulseAudio (Linux hosts only).</desc>
16251 </const>
16252 <const name="SolAudio" value="8">
16253 <desc>Solaris audio (Solaris hosts only).</desc>
16254 </const>
16255 </enum>
16256
16257 <enum
16258 name="AudioControllerType"
16259 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16260 >
16261 <desc>
16262 Virtual audio controller type.
16263 </desc>
16264
16265 <const name="AC97" value="0"/>
16266 <const name="SB16" value="1"/>
16267 <const name="HDA" value="2"/>
16268 </enum>
16269
16270 <interface
16271 name="IAudioAdapter" extends="$unknown"
16272 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16273 wsmap="managed"
16274 >
16275 <desc>
16276 The IAudioAdapter interface represents the virtual audio adapter of
16277 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16278 </desc>
16279 <attribute name="enabled" type="boolean">
16280 <desc>
16281 Flag whether the audio adapter is present in the
16282 guest system. If disabled, the virtual guest hardware will
16283 not contain any audio adapter. Can only be changed when
16284 the VM is not running.
16285 </desc>
16286 </attribute>
16287 <attribute name="audioController" type="AudioControllerType">
16288 <desc>
16289 The audio hardware we emulate.
16290 </desc>
16291 </attribute>
16292 <attribute name="audioDriver" type="AudioDriverType">
16293 <desc>
16294 Audio driver the adapter is connected to. This setting
16295 can only be changed when the VM is not running.
16296 </desc>
16297 </attribute>
16298 </interface>
16299
16300 <enum
16301 name="AuthType"
16302 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16303 >
16304 <desc>
16305 VirtualBox authentication type.
16306 </desc>
16307
16308 <const name="Null" value="0">
16309 <desc>Null value, also means "no authentication".</desc>
16310 </const>
16311 <const name="External" value="1"/>
16312 <const name="Guest" value="2"/>
16313 </enum>
16314
16315 <!--
16316 // IVRDEServer
16317 /////////////////////////////////////////////////////////////////////////
16318 -->
16319
16320 <interface
16321 name="IVRDEServer" extends="$unknown"
16322 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16323 wsmap="managed"
16324 >
16325 <attribute name="enabled" type="boolean">
16326 <desc>VRDE server status.</desc>
16327 </attribute>
16328
16329 <attribute name="authType" type="AuthType">
16330 <desc>VRDE authentication method.</desc>
16331 </attribute>
16332
16333 <attribute name="authTimeout" type="unsigned long">
16334 <desc>Timeout for guest authentication. Milliseconds.</desc>
16335 </attribute>
16336
16337 <attribute name="allowMultiConnection" type="boolean">
16338 <desc>
16339 Flag whether multiple simultaneous connections to the VM are permitted.
16340 Note that this will be replaced by a more powerful mechanism in the future.
16341 </desc>
16342 </attribute>
16343
16344 <attribute name="reuseSingleConnection" type="boolean">
16345 <desc>
16346 Flag whether the existing connection must be dropped and a new connection
16347 must be established by the VRDE server, when a new client connects in single
16348 connection mode.
16349 </desc>
16350 </attribute>
16351
16352 <attribute name="VRDEExtPack" type="wstring">
16353 <desc>
16354 The name of Extension Pack providing VRDE for this VM. Overrides
16355 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16356 </desc>
16357 </attribute>
16358
16359 <attribute name="authLibrary" type="wstring">
16360 <desc>
16361 Library used for authentication of RDP clients by this VM. Overrides
16362 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16363 </desc>
16364 </attribute>
16365
16366 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16367 <desc>
16368 Array of names of properties, which are supported by this VRDE server.
16369 </desc>
16370 </attribute>
16371
16372 <method name="setVRDEProperty">
16373 <desc>
16374 Sets a VRDE specific property string.
16375
16376 If you pass @c null or empty string as a key @a value, the given @a key
16377 will be deleted.
16378
16379 </desc>
16380 <param name="key" type="wstring" dir="in">
16381 <desc>Name of the key to set.</desc>
16382 </param>
16383 <param name="value" type="wstring" dir="in">
16384 <desc>Value to assign to the key.</desc>
16385 </param>
16386 </method>
16387
16388 <method name="getVRDEProperty" const="yes">
16389 <desc>
16390 Returns a VRDE specific property string.
16391
16392 If the requested data @a key does not exist, this function will
16393 succeed and return an empty string in the @a value argument.
16394
16395 </desc>
16396 <param name="key" type="wstring" dir="in">
16397 <desc>Name of the key to get.</desc>
16398 </param>
16399 <param name="value" type="wstring" dir="return">
16400 <desc>Value of the requested key.</desc>
16401 </param>
16402 </method>
16403
16404 </interface>
16405
16406
16407 <!--
16408 // ISharedFolder
16409 /////////////////////////////////////////////////////////////////////////
16410 -->
16411
16412 <interface
16413 name="ISharedFolder" extends="$unknown"
16414 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16415 wsmap="struct"
16416 >
16417 <desc>
16418 The ISharedFolder interface represents a folder in the host computer's
16419 file system accessible from the guest OS running inside a virtual
16420 machine using an associated logical name.
16421
16422 There are three types of shared folders:
16423 <ul>
16424 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16425 folders available to all virtual machines.</li>
16426 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16427 VM-specific shared folders available to the given virtual machine at
16428 startup.</li>
16429 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16430 VM-specific shared folders created in the session context (for
16431 example, when the virtual machine is running) and automatically
16432 discarded when the session is closed (the VM is powered off).</li>
16433 </ul>
16434
16435 Logical names of shared folders must be unique within the given scope
16436 (global, permanent or transient). However, they do not need to be unique
16437 across scopes. In this case, the definition of the shared folder in a
16438 more specific scope takes precedence over definitions in all other
16439 scopes. The order of precedence is (more specific to more general):
16440 <ol>
16441 <li>Transient definitions</li>
16442 <li>Permanent definitions</li>
16443 <li>Global definitions</li>
16444 </ol>
16445
16446 For example, if MyMachine has a shared folder named
16447 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16448 transient shared folder named <tt>C_DRIVE</tt> (that points
16449 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16450 of <tt>C_DRIVE</tt> in the guest OS so
16451 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16452 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16453 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16454 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16455 to <tt>C:\\</tt> if it still exists.
16456
16457 Note that permanent and transient shared folders of different machines
16458 are in different name spaces, so they don't overlap and don't need to
16459 have unique logical names.
16460
16461 <note>
16462 Global shared folders are not implemented in the current version of the
16463 product.
16464 </note>
16465 </desc>
16466
16467 <attribute name="name" type="wstring" readonly="yes">
16468 <desc>Logical name of the shared folder.</desc>
16469 </attribute>
16470
16471 <attribute name="hostPath" type="wstring" readonly="yes">
16472 <desc>Full path to the shared folder in the host file system.</desc>
16473 </attribute>
16474
16475 <attribute name="accessible" type="boolean" readonly="yes">
16476 <desc>
16477 Whether the folder defined by the host path is currently
16478 accessible or not.
16479 For example, the folder can be inaccessible if it is placed
16480 on the network share that is not available by the time
16481 this property is read.
16482 </desc>
16483 </attribute>
16484
16485 <attribute name="writable" type="boolean" readonly="yes">
16486 <desc>
16487 Whether the folder defined by the host path is writable or
16488 not.
16489 </desc>
16490 </attribute>
16491
16492 <attribute name="autoMount" type="boolean" readonly="yes">
16493 <desc>
16494 Whether the folder gets automatically mounted by the guest or not.
16495 </desc>
16496 </attribute>
16497
16498 <attribute name="lastAccessError" type="wstring" readonly="yes">
16499 <desc>
16500 Text message that represents the result of the last accessibility
16501 check.
16502
16503 Accessibility checks are performed each time the <link to="#accessible"/>
16504 attribute is read. An empty string is returned if the last
16505 accessibility check was successful. A non-empty string indicates a
16506 failure and should normally describe a reason of the failure (for
16507 example, a file read error).
16508 </desc>
16509 </attribute>
16510
16511 </interface>
16512
16513 <!--
16514 // ISession
16515 /////////////////////////////////////////////////////////////////////////
16516 -->
16517
16518 <interface
16519 name="IInternalSessionControl" extends="$unknown"
16520 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16521 internal="yes"
16522 wsmap="suppress"
16523 >
16524 <method name="getPID">
16525 <desc>PID of the process that has created this Session object.
16526 </desc>
16527 <param name="pid" type="unsigned long" dir="return"/>
16528 </method>
16529
16530 <method name="getRemoteConsole">
16531 <desc>
16532 Returns the console object suitable for remote control.
16533
16534 <result name="VBOX_E_INVALID_VM_STATE">
16535 Session state prevents operation.
16536 </result>
16537 <result name="VBOX_E_INVALID_OBJECT_STATE">
16538 Session type prevents operation.
16539 </result>
16540
16541 </desc>
16542 <param name="console" type="IConsole" dir="return"/>
16543 </method>
16544
16545 <method name="assignMachine">
16546 <desc>
16547 Assigns the machine object associated with this direct-type
16548 session or informs the session that it will be a remote one
16549 (if @a machine == @c null).
16550
16551 <result name="VBOX_E_INVALID_VM_STATE">
16552 Session state prevents operation.
16553 </result>
16554 <result name="VBOX_E_INVALID_OBJECT_STATE">
16555 Session type prevents operation.
16556 </result>
16557
16558 </desc>
16559 <param name="machine" type="IMachine" dir="in"/>
16560 <param name="lockType" type="LockType" dir="in"/>
16561 </method>
16562
16563 <method name="assignRemoteMachine">
16564 <desc>
16565 Assigns the machine and the (remote) console object associated with
16566 this remote-type session.
16567
16568 <result name="VBOX_E_INVALID_VM_STATE">
16569 Session state prevents operation.
16570 </result>
16571
16572 </desc>
16573 <param name="machine" type="IMachine" dir="in"/>
16574 <param name="console" type="IConsole" dir="in"/>
16575 </method>
16576
16577 <method name="updateMachineState">
16578 <desc>
16579 Updates the machine state in the VM process.
16580 Must be called only in certain cases
16581 (see the method implementation).
16582
16583 <result name="VBOX_E_INVALID_VM_STATE">
16584 Session state prevents operation.
16585 </result>
16586 <result name="VBOX_E_INVALID_OBJECT_STATE">
16587 Session type prevents operation.
16588 </result>
16589
16590 </desc>
16591 <param name="machineState" type="MachineState" dir="in"/>
16592 </method>
16593
16594 <method name="uninitialize">
16595 <desc>
16596 Uninitializes (closes) this session. Used by VirtualBox to close
16597 the corresponding remote session when the direct session dies
16598 or gets closed.
16599
16600 <result name="VBOX_E_INVALID_VM_STATE">
16601 Session state prevents operation.
16602 </result>
16603
16604 </desc>
16605 </method>
16606
16607 <method name="onNetworkAdapterChange">
16608 <desc>
16609 Triggered when settings of a network adapter of the
16610 associated virtual machine have changed.
16611
16612 <result name="VBOX_E_INVALID_VM_STATE">
16613 Session state prevents operation.
16614 </result>
16615 <result name="VBOX_E_INVALID_OBJECT_STATE">
16616 Session type prevents operation.
16617 </result>
16618
16619 </desc>
16620 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16621 <param name="changeAdapter" type="boolean" dir="in"/>
16622 </method>
16623
16624 <method name="onSerialPortChange">
16625 <desc>
16626 Triggered when settings of a serial port of the
16627 associated virtual machine have changed.
16628
16629 <result name="VBOX_E_INVALID_VM_STATE">
16630 Session state prevents operation.
16631 </result>
16632 <result name="VBOX_E_INVALID_OBJECT_STATE">
16633 Session type prevents operation.
16634 </result>
16635
16636 </desc>
16637 <param name="serialPort" type="ISerialPort" dir="in"/>
16638 </method>
16639
16640 <method name="onParallelPortChange">
16641 <desc>
16642 Triggered when settings of a parallel port of the
16643 associated virtual machine have changed.
16644
16645 <result name="VBOX_E_INVALID_VM_STATE">
16646 Session state prevents operation.
16647 </result>
16648 <result name="VBOX_E_INVALID_OBJECT_STATE">
16649 Session type prevents operation.
16650 </result>
16651
16652 </desc>
16653 <param name="parallelPort" type="IParallelPort" dir="in"/>
16654 </method>
16655
16656 <method name="onStorageControllerChange">
16657 <desc>
16658 Triggered when settings of a storage controller of the
16659 associated virtual machine have changed.
16660
16661 <result name="VBOX_E_INVALID_VM_STATE">
16662 Session state prevents operation.
16663 </result>
16664 <result name="VBOX_E_INVALID_OBJECT_STATE">
16665 Session type prevents operation.
16666 </result>
16667
16668 </desc>
16669 </method>
16670
16671 <method name="onMediumChange">
16672 <desc>
16673 Triggered when attached media of the
16674 associated virtual machine have changed.
16675
16676 <result name="VBOX_E_INVALID_VM_STATE">
16677 Session state prevents operation.
16678 </result>
16679 <result name="VBOX_E_INVALID_OBJECT_STATE">
16680 Session type prevents operation.
16681 </result>
16682
16683 </desc>
16684
16685 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16686 <desc>The medium attachment which changed.</desc>
16687 </param>
16688 <param name="force" type="boolean" dir="in">
16689 <desc>If the medium change was forced.</desc>
16690 </param>
16691 </method>
16692
16693 <method name="onStorageDeviceChange">
16694 <desc>
16695 Triggered when attached storage devices of the
16696 associated virtual machine have changed.
16697
16698 <result name="VBOX_E_INVALID_VM_STATE">
16699 Session state prevents operation.
16700 </result>
16701 <result name="VBOX_E_INVALID_OBJECT_STATE">
16702 Session type prevents operation.
16703 </result>
16704
16705 </desc>
16706
16707 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16708 <desc>The medium attachment which changed.</desc>
16709 </param>
16710 <param name="remove" type="boolean" dir="in">
16711 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
16712 </param>
16713 </method>
16714
16715 <method name="onClipboardModeChange">
16716 <desc>
16717 Notification when the shared clipboard mode changes.
16718 </desc>
16719 <param name="clipboardMode" type="ClipboardMode" dir="in">
16720 <desc>The new shared clipboard mode.</desc>
16721 </param>
16722 </method>
16723
16724 <method name="onDragAndDropModeChange">
16725 <desc>
16726 Notification when the drag'n'drop mode changes.
16727 </desc>
16728 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
16729 <desc>The new mode for drag'n'drop.</desc>
16730 </param>
16731 </method>
16732
16733 <method name="onCPUChange">
16734 <desc>
16735 Notification when a CPU changes.
16736 </desc>
16737 <param name="cpu" type="unsigned long" dir="in">
16738 <desc>The CPU which changed</desc>
16739 </param>
16740 <param name="add" type="boolean" dir="in">
16741 <desc>Flag whether the CPU was added or removed</desc>
16742 </param>
16743 </method>
16744
16745 <method name="onCPUExecutionCapChange">
16746 <desc>
16747 Notification when the CPU execution cap changes.
16748 </desc>
16749 <param name="executionCap" type="unsigned long" dir="in">
16750 <desc>The new CPU execution cap value. (1-100)</desc>
16751 </param>
16752 </method>
16753
16754 <method name="onVRDEServerChange">
16755 <desc>
16756 Triggered when settings of the VRDE server object of the
16757 associated virtual machine have changed.
16758
16759 <result name="VBOX_E_INVALID_VM_STATE">
16760 Session state prevents operation.
16761 </result>
16762 <result name="VBOX_E_INVALID_OBJECT_STATE">
16763 Session type prevents operation.
16764 </result>
16765
16766 </desc>
16767 <param name="restart" type="boolean" dir="in">
16768 <desc>Flag whether the server must be restarted</desc>
16769 </param>
16770 </method>
16771
16772 <method name="onUSBControllerChange">
16773 <desc>
16774 Triggered when settings of the USB controller object of the
16775 associated virtual machine have changed.
16776
16777 <result name="VBOX_E_INVALID_VM_STATE">
16778 Session state prevents operation.
16779 </result>
16780 <result name="VBOX_E_INVALID_OBJECT_STATE">
16781 Session type prevents operation.
16782 </result>
16783
16784 </desc>
16785 </method>
16786
16787 <method name="onSharedFolderChange">
16788 <desc>
16789 Triggered when a permanent (global or machine) shared folder has been
16790 created or removed.
16791 <note>
16792 We don't pass shared folder parameters in this notification because
16793 the order in which parallel notifications are delivered is not defined,
16794 therefore it could happen that these parameters were outdated by the
16795 time of processing this notification.
16796 </note>
16797
16798 <result name="VBOX_E_INVALID_VM_STATE">
16799 Session state prevents operation.
16800 </result>
16801 <result name="VBOX_E_INVALID_OBJECT_STATE">
16802 Session type prevents operation.
16803 </result>
16804
16805 </desc>
16806 <param name="global" type="boolean" dir="in"/>
16807 </method>
16808
16809 <method name="onUSBDeviceAttach">
16810 <desc>
16811 Triggered when a request to capture a USB device (as a result
16812 of matched USB filters or direct call to
16813 <link to="IConsole::attachUSBDevice"/>) has completed.
16814 A @c null @a error object means success, otherwise it
16815 describes a failure.
16816
16817 <result name="VBOX_E_INVALID_VM_STATE">
16818 Session state prevents operation.
16819 </result>
16820 <result name="VBOX_E_INVALID_OBJECT_STATE">
16821 Session type prevents operation.
16822 </result>
16823
16824 </desc>
16825 <param name="device" type="IUSBDevice" dir="in"/>
16826 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16827 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
16828 </method>
16829
16830 <method name="onUSBDeviceDetach">
16831 <desc>
16832 Triggered when a request to release the USB device (as a result
16833 of machine termination or direct call to
16834 <link to="IConsole::detachUSBDevice"/>) has completed.
16835 A @c null @a error object means success, otherwise it
16836 describes a failure.
16837
16838 <result name="VBOX_E_INVALID_VM_STATE">
16839 Session state prevents operation.
16840 </result>
16841 <result name="VBOX_E_INVALID_OBJECT_STATE">
16842 Session type prevents operation.
16843 </result>
16844
16845 </desc>
16846 <param name="id" type="uuid" mod="string" dir="in"/>
16847 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16848 </method>
16849
16850 <method name="onShowWindow">
16851 <desc>
16852 Called by <link to="IMachine::canShowConsoleWindow"/> and by
16853 <link to="IMachine::showConsoleWindow"/> in order to notify
16854 console listeners
16855 <link to="ICanShowWindowEvent"/>
16856 and <link to="IShowWindowEvent"/>.
16857
16858 <result name="VBOX_E_INVALID_OBJECT_STATE">
16859 Session type prevents operation.
16860 </result>
16861
16862 </desc>
16863 <param name="check" type="boolean" dir="in"/>
16864 <param name="canShow" type="boolean" dir="out"/>
16865 <param name="winId" type="long long" dir="out"/>
16866 </method>
16867
16868 <method name="onBandwidthGroupChange">
16869 <desc>
16870 Notification when one of the bandwidth groups change.
16871 </desc>
16872 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
16873 <desc>The bandwidth group which changed.</desc>
16874 </param>
16875 </method>
16876
16877 <method name="accessGuestProperty">
16878 <desc>
16879 Called by <link to="IMachine::getGuestProperty"/> and by
16880 <link to="IMachine::setGuestProperty"/> in order to read and
16881 modify guest properties.
16882
16883 <result name="VBOX_E_INVALID_VM_STATE">
16884 Machine session is not open.
16885 </result>
16886 <result name="VBOX_E_INVALID_OBJECT_STATE">
16887 Session type is not direct.
16888 </result>
16889
16890 </desc>
16891 <param name="name" type="wstring" dir="in"/>
16892 <param name="value" type="wstring" dir="in"/>
16893 <param name="flags" type="wstring" dir="in"/>
16894 <param name="isSetter" type="boolean" dir="in"/>
16895 <param name="retValue" type="wstring" dir="out"/>
16896 <param name="retTimestamp" type="long long" dir="out"/>
16897 <param name="retFlags" type="wstring" dir="out"/>
16898 </method>
16899
16900 <method name="enumerateGuestProperties" const="yes">
16901 <desc>
16902 Return a list of the guest properties matching a set of patterns along
16903 with their values, time stamps and flags.
16904
16905 <result name="VBOX_E_INVALID_VM_STATE">
16906 Machine session is not open.
16907 </result>
16908 <result name="VBOX_E_INVALID_OBJECT_STATE">
16909 Session type is not direct.
16910 </result>
16911
16912 </desc>
16913 <param name="patterns" type="wstring" dir="in">
16914 <desc>
16915 The patterns to match the properties against as a comma-separated
16916 string. If this is empty, all properties currently set will be
16917 returned.
16918 </desc>
16919 </param>
16920 <param name="keys" type="wstring" dir="out" safearray="yes">
16921 <desc>
16922 The key names of the properties returned.
16923 </desc>
16924 </param>
16925 <param name="values" type="wstring" dir="out" safearray="yes">
16926 <desc>
16927 The values of the properties returned. The array entries match the
16928 corresponding entries in the @a key array.
16929 </desc>
16930 </param>
16931 <param name="timestamps" type="long long" dir="out" safearray="yes">
16932 <desc>
16933 The time stamps of the properties returned. The array entries match
16934 the corresponding entries in the @a key array.
16935 </desc>
16936 </param>
16937 <param name="flags" type="wstring" dir="out" safearray="yes">
16938 <desc>
16939 The flags of the properties returned. The array entries match the
16940 corresponding entries in the @a key array.
16941 </desc>
16942 </param>
16943 </method>
16944
16945 <method name="onlineMergeMedium">
16946 <desc>
16947 Triggers online merging of a hard disk. Used internally when deleting
16948 a snapshot while a VM referring to the same hard disk chain is running.
16949
16950 <result name="VBOX_E_INVALID_VM_STATE">
16951 Machine session is not open.
16952 </result>
16953 <result name="VBOX_E_INVALID_OBJECT_STATE">
16954 Session type is not direct.
16955 </result>
16956
16957 </desc>
16958 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16959 <desc>The medium attachment to identify the medium chain.</desc>
16960 </param>
16961 <param name="sourceIdx" type="unsigned long" dir="in">
16962 <desc>The index of the source image in the chain.
16963 Redundant, but drastically reduces IPC.</desc>
16964 </param>
16965 <param name="targetIdx" type="unsigned long" dir="in">
16966 <desc>The index of the target image in the chain.
16967 Redundant, but drastically reduces IPC.</desc>
16968 </param>
16969 <param name="source" type="IMedium" dir="in">
16970 <desc>Merge source medium.</desc>
16971 </param>
16972 <param name="target" type="IMedium" dir="in">
16973 <desc>Merge target medium.</desc>
16974 </param>
16975 <param name="mergeForward" type="boolean" dir="in">
16976 <desc>Merge direction.</desc>
16977 </param>
16978 <param name="parentForTarget" type="IMedium" dir="in">
16979 <desc>For forward merges: new parent for target medium.</desc>
16980 </param>
16981 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
16982 <desc>For backward merges: list of media which need their parent UUID
16983 updated.</desc>
16984 </param>
16985 <param name="progress" type="IProgress" dir="in">
16986 <desc>
16987 Progress object for this operation.
16988 </desc>
16989 </param>
16990 </method>
16991
16992 <method name="enableVMMStatistics">
16993 <desc>
16994 Enables or disables collection of VMM RAM statistics.
16995
16996 <result name="VBOX_E_INVALID_VM_STATE">
16997 Machine session is not open.
16998 </result>
16999 <result name="VBOX_E_INVALID_OBJECT_STATE">
17000 Session type is not direct.
17001 </result>
17002
17003 </desc>
17004 <param name="enable" type="boolean" dir="in">
17005 <desc>True enables statistics collection.</desc>
17006 </param>
17007 </method>
17008
17009 </interface>
17010
17011 <interface
17012 name="ISession" extends="$unknown"
17013 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
17014 wsmap="managed"
17015 >
17016 <desc>
17017 The ISession interface represents a client process and allows for locking
17018 virtual machines (represented by IMachine objects) to prevent conflicting
17019 changes to the machine.
17020
17021 Any caller wishing to manipulate a virtual machine needs to create a session
17022 object first, which lives in its own process space. Such session objects are
17023 then associated with <link to="IMachine" /> objects living in the VirtualBox
17024 server process to coordinate such changes.
17025
17026 There are two typical scenarios in which sessions are used:
17027
17028 <ul>
17029 <li>To alter machine settings or control a running virtual machine, one
17030 needs to lock a machine for a given session (client process) by calling
17031 <link to="IMachine::lockMachine"/>.
17032
17033 Whereas multiple sessions may control a running virtual machine, only
17034 one process can obtain a write lock on the machine to prevent conflicting
17035 changes. A write lock is also needed if a process wants to actually run a
17036 virtual machine in its own context, such as the VirtualBox GUI or
17037 VBoxHeadless front-ends. They must also lock a machine for their own
17038 sessions before they are allowed to power up the virtual machine.
17039
17040 As a result, no machine settings can be altered while another process is
17041 already using it, either because that process is modifying machine settings
17042 or because the machine is running.
17043 </li>
17044 <li>
17045 To start a VM using one of the existing VirtualBox front-ends (e.g. the
17046 VirtualBox GUI or VBoxHeadless), one would use
17047 <link to="IMachine::launchVMProcess"/>, which also takes a session object
17048 as its first parameter. This session then identifies the caller and lets the
17049 caller control the started machine (for example, pause machine execution or
17050 power it down) as well as be notified about machine execution state changes.
17051 </li>
17052 </ul>
17053
17054 How sessions objects are created in a client process depends on whether you use
17055 the Main API via COM or via the webservice:
17056
17057 <ul>
17058 <li>When using the COM API directly, an object of the Session class from the
17059 VirtualBox type library needs to be created. In regular COM C++ client code,
17060 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
17061 This object will then act as a local session object in further calls to open
17062 a session.
17063 </li>
17064
17065 <li>In the webservice, the session manager (IWebsessionManager) instead creates
17066 a session object automatically whenever <link to="IWebsessionManager::logon" />
17067 is called. A managed object reference to that session object can be retrieved by
17068 calling <link to="IWebsessionManager::getSessionObject" />.
17069 </li>
17070 </ul>
17071 </desc>
17072
17073 <attribute name="state" type="SessionState" readonly="yes">
17074 <desc>Current state of this session.</desc>
17075 </attribute>
17076
17077 <attribute name="type" type="SessionType" readonly="yes">
17078 <desc>
17079 Type of this session. The value of this attribute is valid only
17080 if the session currently has a machine locked (i.e. its
17081 <link to="#state" /> is Locked), otherwise an error will be returned.
17082 </desc>
17083 </attribute>
17084
17085 <attribute name="machine" type="IMachine" readonly="yes">
17086 <desc>Machine object associated with this session.</desc>
17087 </attribute>
17088
17089 <attribute name="console" type="IConsole" readonly="yes">
17090 <desc>Console object associated with this session.</desc>
17091 </attribute>
17092
17093 <method name="unlockMachine">
17094 <desc>
17095 Unlocks a machine that was previously locked for the current session.
17096
17097 Calling this method is required every time a machine has been locked
17098 for a particular session using the <link to="IMachine::launchVMProcess" />
17099 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
17100 the machine will be set to <link to="MachineState_Aborted" /> on the
17101 server, and changes made to the machine settings will be lost.
17102
17103 Generally, it is recommended to unlock all machines explicitly
17104 before terminating the application (regardless of the reason for
17105 the termination).
17106
17107 <note>
17108 Do not expect the session state (<link to="ISession::state" />
17109 to return to "Unlocked" immediately after you invoke this method,
17110 particularly if you have started a new VM process. The session
17111 state will automatically return to "Unlocked" once the VM is no
17112 longer executing, which can of course take a very long time.
17113 </note>
17114
17115 <result name="E_UNEXPECTED">
17116 Session is not locked.
17117 </result>
17118
17119 </desc>
17120 </method>
17121
17122 </interface>
17123
17124 <!--
17125 // IStorageController
17126 /////////////////////////////////////////////////////////////////////////
17127 -->
17128
17129 <enum
17130 name="StorageBus"
17131 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
17132 >
17133 <desc>
17134 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
17135 see <link to="IStorageController::bus" />.
17136 </desc>
17137 <const name="Null" value="0">
17138 <desc>@c null value. Never used by the API.</desc>
17139 </const>
17140 <const name="IDE" value="1"/>
17141 <const name="SATA" value="2"/>
17142 <const name="SCSI" value="3"/>
17143 <const name="Floppy" value="4"/>
17144 <const name="SAS" value="5"/>
17145 </enum>
17146
17147 <enum
17148 name="StorageControllerType"
17149 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
17150 >
17151 <desc>
17152 The exact variant of storage controller hardware presented
17153 to the guest; see <link to="IStorageController::controllerType" />.
17154 </desc>
17155
17156 <const name="Null" value="0">
17157 <desc>@c null value. Never used by the API.</desc>
17158 </const>
17159 <const name="LsiLogic" value="1">
17160 <desc>A SCSI controller of the LsiLogic variant.</desc>
17161 </const>
17162 <const name="BusLogic" value="2">
17163 <desc>A SCSI controller of the BusLogic variant.</desc>
17164 </const>
17165 <const name="IntelAhci" value="3">
17166 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
17167 </const>
17168 <const name="PIIX3" value="4">
17169 <desc>An IDE controller of the PIIX3 variant.</desc>
17170 </const>
17171 <const name="PIIX4" value="5">
17172 <desc>An IDE controller of the PIIX4 variant.</desc>
17173 </const>
17174 <const name="ICH6" value="6">
17175 <desc>An IDE controller of the ICH6 variant.</desc>
17176 </const>
17177 <const name="I82078" value="7">
17178 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
17179 </const>
17180 <const name="LsiLogicSas" value="8">
17181 <desc>A variant of the LsiLogic controller using SAS.</desc>
17182 </const>
17183 </enum>
17184
17185 <enum
17186 name="ChipsetType"
17187 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
17188 >
17189 <desc>
17190 Type of emulated chipset (mostly southbridge).
17191 </desc>
17192
17193 <const name="Null" value="0">
17194 <desc>@c null value. Never used by the API.</desc>
17195 </const>
17196 <const name="PIIX3" value="1">
17197 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
17198 </const>
17199 <const name="ICH9" value="2">
17200 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
17201 </const>
17202 </enum>
17203
17204 <interface
17205 name="IStorageController" extends="$unknown"
17206 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17207 wsmap="managed"
17208 >
17209 <desc>
17210 Represents a storage controller that is attached to a virtual machine
17211 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17212 attached to storage controllers in a real computer, virtual drives
17213 (represented by <link to="IMediumAttachment" />) are attached to virtual
17214 storage controllers, represented by this interface.
17215
17216 As opposed to physical hardware, VirtualBox has a very generic concept
17217 of a storage controller, and for purposes of the Main API, all virtual
17218 storage is attached to virtual machines via instances of this interface.
17219 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17220 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17221 is used, certain sub-types may be available and can be selected in
17222 <link to="#controllerType" />.
17223
17224 Depending on these settings, the guest operating system might see
17225 significantly different virtual hardware.
17226 </desc>
17227
17228 <attribute name="name" type="wstring" readonly="yes">
17229 <desc>
17230 Name of the storage controller, as originally specified with
17231 <link to="IMachine::addStorageController" />. This then uniquely
17232 identifies this controller with other method calls such as
17233 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17234 </desc>
17235 </attribute>
17236
17237 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17238 <desc>
17239 Maximum number of devices which can be attached to one port.
17240 </desc>
17241 </attribute>
17242
17243 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17244 <desc>
17245 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17246 </desc>
17247 </attribute>
17248
17249 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17250 <desc>
17251 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17252 </desc>
17253 </attribute>
17254
17255 <attribute name="instance" type="unsigned long">
17256 <desc>
17257 The instance number of the device in the running VM.
17258 </desc>
17259 </attribute>
17260
17261 <attribute name="portCount" type="unsigned long">
17262 <desc>
17263 The number of currently usable ports on the controller.
17264 The minimum and maximum number of ports for one controller are
17265 stored in <link to="IStorageController::minPortCount"/>
17266 and <link to="IStorageController::maxPortCount"/>.
17267 </desc>
17268 </attribute>
17269
17270 <attribute name="bus" type="StorageBus" readonly="yes">
17271 <desc>
17272 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17273 </desc>
17274 </attribute>
17275
17276 <attribute name="controllerType" type="StorageControllerType">
17277 <desc>
17278 The exact variant of storage controller hardware presented
17279 to the guest.
17280 Depending on this value, VirtualBox will provide a different
17281 virtual storage controller hardware to the guest.
17282 For SATA, SAS and floppy controllers, only one variant is
17283 available, but for IDE and SCSI, there are several.
17284
17285 For SCSI controllers, the default type is LsiLogic.
17286 </desc>
17287 </attribute>
17288
17289 <attribute name="useHostIOCache" type="boolean">
17290 <desc>
17291 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17292 caches and use synchronous file APIs on the host. This was the only option in the API before
17293 VirtualBox 3.2 and is still the default for IDE controllers.
17294
17295 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17296 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17297 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17298 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17299 virtual machines are running at the same time to prevent I/O cache related hangs.
17300 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17301 </desc>
17302 </attribute>
17303
17304 <attribute name="bootable" type="boolean" readonly="yes">
17305 <desc>
17306 Returns whether it is possible to boot from disks attached to this controller.
17307 </desc>
17308 </attribute>
17309 </interface>
17310
17311<if target="wsdl">
17312
17313 <!--
17314 // IManagedObjectRef
17315 /////////////////////////////////////////////////////////////////////////
17316 -->
17317
17318 <interface
17319 name="IManagedObjectRef" extends="$unknown"
17320 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17321 internal="yes"
17322 wsmap="managed"
17323 wscpp="hardcoded"
17324 >
17325 <desc>
17326 Managed object reference.
17327
17328 Only within the webservice, a managed object reference (which is really
17329 an opaque number) allows a webservice client to address an object
17330 that lives in the address space of the webservice server.
17331
17332 Behind each managed object reference, there is a COM object that lives
17333 in the webservice server's address space. The COM object is not freed
17334 until the managed object reference is released, either by an explicit
17335 call to <link to="IManagedObjectRef::release" /> or by logging off from
17336 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17337 all objects created during the webservice session.
17338
17339 Whenever a method call of the VirtualBox API returns a COM object, the
17340 webservice representation of that method will instead return a
17341 managed object reference, which can then be used to invoke methods
17342 on that object.
17343 </desc>
17344
17345 <method name="getInterfaceName">
17346 <desc>
17347 Returns the name of the interface that this managed object represents,
17348 for example, "IMachine", as a string.
17349 </desc>
17350 <param name="return" type="wstring" dir="return"/>
17351 </method>
17352
17353 <method name="release">
17354 <desc>
17355 Releases this managed object reference and frees the resources that
17356 were allocated for it in the webservice server process. After calling
17357 this method, the identifier of the reference can no longer be used.
17358 </desc>
17359 </method>
17360
17361 </interface>
17362
17363 <!--
17364 // IWebsessionManager
17365 /////////////////////////////////////////////////////////////////////////
17366 -->
17367
17368 <interface
17369 name="IWebsessionManager" extends="$unknown"
17370 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17371 internal="yes"
17372 wsmap="global"
17373 wscpp="hardcoded"
17374 >
17375 <desc>
17376 Websession manager. This provides essential services
17377 to webservice clients.
17378 </desc>
17379 <method name="logon">
17380 <desc>
17381 Logs a new client onto the webservice and returns a managed object reference to
17382 the IVirtualBox instance, which the client can then use as a basis to further
17383 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17384 interface, in one way or the other.
17385 </desc>
17386 <param name="username" type="wstring" dir="in"/>
17387 <param name="password" type="wstring" dir="in"/>
17388 <param name="return" type="IVirtualBox" dir="return"/>
17389 </method>
17390
17391 <method name="getSessionObject">
17392 <desc>
17393 Returns a managed object reference to the internal ISession object that was created
17394 for this web service session when the client logged on.
17395
17396 <see><link to="ISession"/></see>
17397 </desc>
17398 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17399 <param name="return" type="ISession" dir="return"/>
17400 </method>
17401
17402 <method name="logoff">
17403 <desc>
17404 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17405 and destroys all resources associated with the session (most importantly, all
17406 managed objects created in the server while the session was active).
17407 </desc>
17408 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17409 </method>
17410
17411 </interface>
17412
17413</if>
17414
17415 <!--
17416 // IPerformanceCollector & friends
17417 /////////////////////////////////////////////////////////////////////////
17418 -->
17419
17420 <interface
17421 name="IPerformanceMetric" extends="$unknown"
17422 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17423 >
17424 <desc>
17425 The IPerformanceMetric interface represents parameters of the given
17426 performance metric.
17427 </desc>
17428
17429 <attribute name="metricName" type="wstring" readonly="yes">
17430 <desc>
17431 Name of the metric.
17432 </desc>
17433 </attribute>
17434
17435 <attribute name="object" type="$unknown" readonly="yes">
17436 <desc>
17437 Object this metric belongs to.
17438 </desc>
17439 </attribute>
17440
17441 <attribute name="description" type="wstring" readonly="yes">
17442 <desc>
17443 Textual description of the metric.
17444 </desc>
17445 </attribute>
17446
17447 <attribute name="period" type="unsigned long" readonly="yes">
17448 <desc>
17449 Time interval between samples, measured in seconds.
17450 </desc>
17451 </attribute>
17452
17453 <attribute name="count" type="unsigned long" readonly="yes">
17454 <desc>
17455 Number of recent samples retained by the performance collector for this
17456 metric.
17457
17458 When the collected sample count exceeds this number, older samples
17459 are discarded.
17460 </desc>
17461 </attribute>
17462
17463 <attribute name="unit" type="wstring" readonly="yes">
17464 <desc>
17465 Unit of measurement.
17466 </desc>
17467 </attribute>
17468
17469 <attribute name="minimumValue" type="long" readonly="yes">
17470 <desc>
17471 Minimum possible value of this metric.
17472 </desc>
17473 </attribute>
17474
17475 <attribute name="maximumValue" type="long" readonly="yes">
17476 <desc>
17477 Maximum possible value of this metric.
17478 </desc>
17479 </attribute>
17480 </interface>
17481
17482 <interface
17483 name="IPerformanceCollector" extends="$unknown"
17484 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17485 wsmap="managed"
17486 >
17487 <desc>
17488 The IPerformanceCollector interface represents a service that collects
17489 and stores performance metrics data.
17490
17491 Performance metrics are associated with objects of interfaces like IHost
17492 and IMachine. Each object has a distinct set of performance metrics. The
17493 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17494
17495 Metric data is collected at the specified intervals and is retained
17496 internally. The interval and the number of retained samples can be set
17497 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17498 and collection settings are not persistent, they are discarded as soon as
17499 VBoxSVC process terminates. Moreover, metric settings and data associated
17500 with a particular VM only exist while VM is running. They disappear as
17501 soon as VM shuts down. It is not possible to set up metrics for machines
17502 that are powered off. One needs to start VM first, then set up metric
17503 collection parameters.
17504
17505 Metrics are organized hierarchically, with each level separated by a
17506 slash (/) character. Generally, the scheme for metric names is like this:
17507
17508 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17509
17510 "Category/Metric" together form the base metric name. A base metric is
17511 the smallest unit for which a sampling interval and the number of
17512 retained samples can be set. Only base metrics can be enabled and
17513 disabled. All sub-metrics are collected when their base metric is
17514 collected. Collected values for any set of sub-metrics can be queried
17515 with <link to="IPerformanceCollector::queryMetricsData" />.
17516
17517 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17518 category, "Load" metric, "User" submetric, "average" aggregate. An
17519 aggregate function is computed over all retained data. Valid aggregate
17520 functions are:
17521
17522 <ul>
17523 <li>avg -- average</li>
17524 <li>min -- minimum</li>
17525 <li>max -- maximum</li>
17526 </ul>
17527
17528 When setting up metric parameters, querying metric data, enabling or
17529 disabling metrics wildcards can be used in metric names to specify a
17530 subset of metrics. For example, to select all CPU-related metrics
17531 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17532 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17533
17534 The valid names for base metrics are:
17535
17536 <ul>
17537 <li>CPU/Load</li>
17538 <li>CPU/MHz</li>
17539 <li>RAM/Usage</li>
17540 <li>RAM/VMM</li>
17541 </ul>
17542
17543 The general sequence for collecting and retrieving the metrics is:
17544 <ul>
17545 <li>
17546 Obtain an instance of IPerformanceCollector with
17547 <link to="IVirtualBox::performanceCollector" />
17548 </li>
17549 <li>
17550 Allocate and populate an array with references to objects the metrics
17551 will be collected for. Use references to IHost and IMachine objects.
17552 </li>
17553 <li>
17554 Allocate and populate an array with base metric names the data will
17555 be collected for.
17556 </li>
17557 <li>
17558 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17559 the metric data will be collected and stored.
17560 </li>
17561 <li>
17562 Wait for the data to get collected.
17563 </li>
17564 <li>
17565 Allocate and populate an array with references to objects the metric
17566 values will be queried for. You can re-use the object array used for
17567 setting base metrics.
17568 </li>
17569 <li>
17570 Allocate and populate an array with metric names the data will be
17571 collected for. Note that metric names differ from base metric names.
17572 </li>
17573 <li>
17574 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17575 that have been collected so far are returned. Note that the values
17576 are still retained internally and data collection continues.
17577 </li>
17578 </ul>
17579
17580 For an example of usage refer to the following files in VirtualBox SDK:
17581 <ul>
17582 <li>
17583 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17584 </li>
17585 <li>
17586 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17587 </li>
17588 </ul>
17589 </desc>
17590
17591 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17592 <desc>
17593 Array of unique names of metrics.
17594
17595 This array represents all metrics supported by the performance
17596 collector. Individual objects do not necessarily support all of them.
17597 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17598 list of supported metrics for a particular object.
17599 </desc>
17600 </attribute>
17601
17602 <method name="getMetrics">
17603 <desc>
17604 Returns parameters of specified metrics for a set of objects.
17605 <note>
17606 @c Null metrics array means all metrics. @c Null object array means
17607 all existing objects.
17608 </note>
17609 </desc>
17610 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17611 <desc>
17612 Metric name filter. Currently, only a comma-separated list of metrics
17613 is supported.
17614 </desc>
17615 </param>
17616 <param name="objects" type="$unknown" dir="in" safearray="yes">
17617 <desc>
17618 Set of objects to return metric parameters for.
17619 </desc>
17620 </param>
17621 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17622 <desc>
17623 Array of returned metric parameters.
17624 </desc>
17625 </param>
17626 </method>
17627
17628 <method name="setupMetrics">
17629 <desc>
17630 Sets parameters of specified base metrics for a set of objects. Returns
17631 an array of <link to="IPerformanceMetric" /> describing the metrics
17632 have been affected.
17633 <note>
17634 @c Null or empty metric name array means all metrics. @c Null or
17635 empty object array means all existing objects. If metric name array
17636 contains a single element and object array contains many, the single
17637 metric name array element is applied to each object array element to
17638 form metric/object pairs.
17639 </note>
17640 </desc>
17641 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17642 <desc>
17643 Metric name filter. Comma-separated list of metrics with wildcard
17644 support.
17645 </desc>
17646 </param>
17647 <param name="objects" type="$unknown" dir="in" safearray="yes">
17648 <desc>
17649 Set of objects to setup metric parameters for.
17650 </desc>
17651 </param>
17652 <param name="period" type="unsigned long" dir="in">
17653 <desc>
17654 Time interval in seconds between two consecutive samples of
17655 performance data.
17656 </desc>
17657 </param>
17658 <param name="count" type="unsigned long" dir="in">
17659 <desc>
17660 Number of samples to retain in performance data history. Older
17661 samples get discarded.
17662 </desc>
17663 </param>
17664 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17665 <desc>
17666 Array of metrics that have been modified by the call to this method.
17667 </desc>
17668 </param>
17669 </method>
17670
17671 <method name="enableMetrics">
17672 <desc>
17673 Turns on collecting specified base metrics. Returns an array of
17674 <link to="IPerformanceMetric" /> describing the metrics have been
17675 affected.
17676 <note>
17677 @c Null or empty metric name array means all metrics. @c Null or
17678 empty object array means all existing objects. If metric name array
17679 contains a single element and object array contains many, the single
17680 metric name array element is applied to each object array element to
17681 form metric/object pairs.
17682 </note>
17683 </desc>
17684 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17685 <desc>
17686 Metric name filter. Comma-separated list of metrics with wildcard
17687 support.
17688 </desc>
17689 </param>
17690 <param name="objects" type="$unknown" dir="in" safearray="yes">
17691 <desc>
17692 Set of objects to enable metrics for.
17693 </desc>
17694 </param>
17695 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17696 <desc>
17697 Array of metrics that have been modified by the call to this method.
17698 </desc>
17699 </param>
17700 </method>
17701
17702 <method name="disableMetrics">
17703 <desc>
17704 Turns off collecting specified base metrics. Returns an array of
17705 <link to="IPerformanceMetric" /> describing the metrics have been
17706 affected.
17707 <note>
17708 @c Null or empty metric name array means all metrics. @c Null or
17709 empty object array means all existing objects. If metric name array
17710 contains a single element and object array contains many, the single
17711 metric name array element is applied to each object array element to
17712 form metric/object pairs.
17713 </note>
17714 </desc>
17715 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17716 <desc>
17717 Metric name filter. Comma-separated list of metrics with wildcard
17718 support.
17719 </desc>
17720 </param>
17721 <param name="objects" type="$unknown" dir="in" safearray="yes">
17722 <desc>
17723 Set of objects to disable metrics for.
17724 </desc>
17725 </param>
17726 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17727 <desc>
17728 Array of metrics that have been modified by the call to this method.
17729 </desc>
17730 </param>
17731 </method>
17732
17733 <method name="queryMetricsData">
17734 <desc>
17735 Queries collected metrics data for a set of objects.
17736
17737 The data itself and related metric information are returned in seven
17738 parallel and one flattened array of arrays. Elements of
17739 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
17740 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
17741 the same index describe one set of values corresponding to a single
17742 metric.
17743
17744 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
17745 start and length of a sub-array is indicated by
17746 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
17747 value for metric <tt>metricNames[i]</tt> is at
17748 <tt>returnData[returnIndices[i]]</tt>.
17749
17750 <note>
17751 @c Null or empty metric name array means all metrics. @c Null or
17752 empty object array means all existing objects. If metric name array
17753 contains a single element and object array contains many, the single
17754 metric name array element is applied to each object array element to
17755 form metric/object pairs.
17756 </note>
17757 <note>
17758 Data collection continues behind the scenes after call to @c
17759 queryMetricsData. The return data can be seen as the snapshot of the
17760 current state at the time of @c queryMetricsData call. The internally
17761 kept metric values are not cleared by the call. This makes possible
17762 querying different subsets of metrics or aggregates with subsequent
17763 calls. If periodic querying is needed it is highly suggested to query
17764 the values with @c interval*count period to avoid confusion. This way
17765 a completely new set of data values will be provided by each query.
17766 </note>
17767 </desc>
17768 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17769 <desc>
17770 Metric name filter. Comma-separated list of metrics with wildcard
17771 support.
17772 </desc>
17773 </param>
17774 <param name="objects" type="$unknown" dir="in" safearray="yes">
17775 <desc>
17776 Set of objects to query metrics for.
17777 </desc>
17778 </param>
17779 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
17780 <desc>
17781 Names of metrics returned in @c returnData.
17782 </desc>
17783 </param>
17784 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
17785 <desc>
17786 Objects associated with metrics returned in @c returnData.
17787 </desc>
17788 </param>
17789 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
17790 <desc>
17791 Units of measurement for each returned metric.
17792 </desc>
17793 </param>
17794 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
17795 <desc>
17796 Divisor that should be applied to return values in order to get
17797 floating point values. For example:
17798 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
17799 will retrieve the floating point value of i-th sample of the first
17800 metric.
17801 </desc>
17802 </param>
17803 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
17804 <desc>
17805 Sequence numbers of the first elements of value sequences of
17806 particular metrics returned in @c returnData. For aggregate metrics
17807 it is the sequence number of the sample the aggregate started
17808 calculation from.
17809 </desc>
17810 </param>
17811 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
17812 <desc>
17813 Indices of the first elements of value sequences of particular
17814 metrics returned in @c returnData.
17815 </desc>
17816 </param>
17817 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
17818 <desc>
17819 Lengths of value sequences of particular metrics.
17820 </desc>
17821 </param>
17822 <param name="returnData" type="long" dir="return" safearray="yes">
17823 <desc>
17824 Flattened array of all metric data containing sequences of values for
17825 each metric.
17826 </desc>
17827 </param>
17828 </method>
17829
17830 </interface>
17831
17832 <enum
17833 name="NATAliasMode"
17834 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
17835 >
17836 <desc></desc>
17837 <const name="AliasLog" value="0x1">
17838 <desc></desc>
17839 </const>
17840 <const name="AliasProxyOnly" value="0x02">
17841 <desc></desc>
17842 </const>
17843 <const name="AliasUseSamePorts" value="0x04">
17844 <desc></desc>
17845 </const>
17846 </enum>
17847
17848 <enum
17849 name="NATProtocol"
17850 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
17851 >
17852 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
17853 <const name="UDP" value="0">
17854 <desc>Port-forwarding uses UDP protocol.</desc>
17855 </const>
17856 <const name="TCP" value="1">
17857 <desc>Port-forwarding uses TCP protocol.</desc>
17858 </const>
17859 </enum>
17860
17861 <interface
17862 name="INATEngine" extends="$unknown"
17863 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
17864 wsmap="managed"
17865 >
17866 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
17867 allows for changing NAT behavior such as port-forwarding rules. This interface is
17868 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
17869 <attribute name="network" type="wstring">
17870 <desc>The network attribute of the NAT engine (the same value is used with built-in
17871 DHCP server to fill corresponding fields of DHCP leases).</desc>
17872 </attribute>
17873 <attribute name="hostIP" type="wstring">
17874 <desc>IP of host interface to bind all opened sockets to.
17875 <note>Changing this does not change binding of port forwarding.</note>
17876 </desc>
17877 </attribute>
17878 <attribute name="TFTPPrefix" type="wstring">
17879 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
17880 the corresponding fields of DHCP leases.</desc>
17881 </attribute>
17882 <attribute name="TFTPBootFile" type="wstring">
17883 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
17884 the corresponding fields of DHCP leases.</desc>
17885 </attribute>
17886 <attribute name="TFTPNextServer" type="wstring">
17887 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
17888 the corresponding fields of DHCP leases.
17889 <note>The preferred form is IPv4 addresses.</note>
17890 </desc>
17891 </attribute>
17892 <attribute name="aliasMode" type="unsigned long">
17893 <desc></desc>
17894 </attribute>
17895 <attribute name="DNSPassDomain" type="boolean">
17896 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
17897 </attribute>
17898 <attribute name="DNSProxy" type="boolean">
17899 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17900 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
17901 </attribute>
17902 <attribute name="DNSUseHostResolver" type="boolean">
17903 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17904 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
17905 </attribute>
17906 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
17907 <desc>Array of NAT port-forwarding rules in string representation, in the following
17908 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
17909 </attribute>
17910 <method name="setNetworkSettings">
17911 <desc>Sets network configuration of the NAT engine.</desc>
17912 <param name="mtu" type="unsigned long" dir="in">
17913 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
17914 </param>
17915 <param name="sockSnd" type="unsigned long" dir="in">
17916 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
17917 </param>
17918 <param name="sockRcv" type="unsigned long" dir="in">
17919 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
17920 </param>
17921 <param name="TcpWndSnd" type="unsigned long" dir="in">
17922 <desc>Initial size of the NAT engine's sending TCP window in bytes when
17923 establishing a new TCP connection.</desc>
17924 </param>
17925 <param name="TcpWndRcv" type="unsigned long" dir="in">
17926 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
17927 establishing a new TCP connection.</desc>
17928 </param>
17929 </method>
17930 <method name="getNetworkSettings">
17931 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
17932 for parameter descriptions.</desc>
17933 <param name="mtu" type="unsigned long" dir="out" />
17934 <param name="sockSnd" type="unsigned long" dir="out" />
17935 <param name="sockRcv" type="unsigned long" dir="out" />
17936 <param name="TcpWndSnd" type="unsigned long" dir="out" />
17937 <param name="TcpWndRcv" type="unsigned long" dir="out" />
17938 </method>
17939 <method name="addRedirect">
17940 <desc>Adds a new NAT port-forwarding rule.</desc>
17941 <param name="name" type="wstring" dir="in">
17942 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
17943 auto-generates one using the other parameters.</desc>
17944 </param>
17945 <param name="proto" type="NATProtocol" dir="in">
17946 <desc>Protocol handled with the rule.</desc>
17947 </param>
17948 <param name="hostIP" type="wstring" dir="in">
17949 <desc>IP of the host interface to which the rule should apply. An empty ip address is
17950 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
17951 </param>
17952 <param name="hostPort" type="unsigned short" dir="in">
17953 <desc>The port number to listen on.</desc>
17954 </param>
17955 <param name="guestIP" type="wstring" dir="in">
17956 <desc>The IP address of the guest which the NAT engine will forward matching packets
17957 to. An empty IP address is acceptable, in which case the NAT engine will forward
17958 packets to the first DHCP lease (x.x.x.15).</desc>
17959 </param>
17960 <param name="guestPort" type="unsigned short" dir="in">
17961 <desc>The port number to forward.</desc>
17962 </param>
17963 </method>
17964 <method name="removeRedirect">
17965 <desc>Removes a port-forwarding rule that was previously registered.</desc>
17966 <param name="name" type="wstring" dir="in">
17967 <desc>The name of the rule to delete.</desc>
17968 </param>
17969 </method>
17970 </interface>
17971
17972 <!--
17973 // IExtPackManager
17974 /////////////////////////////////////////////////////////////////////////
17975 -->
17976
17977 <interface
17978 name="IExtPackPlugIn" extends="$unknown"
17979 uuid="58000040-e718-4746-bbce-4b86d96da461"
17980 wsmap="suppress"
17981 >
17982 <desc>
17983 Interface for keeping information about a plug-in that ships with an
17984 extension pack.
17985 </desc>
17986 <attribute name="name" type="wstring" readonly="yes">
17987 <desc>The plug-in name.</desc>
17988 </attribute>
17989 <attribute name="description" type="wstring" readonly="yes">
17990 <desc>The plug-in description.</desc>
17991 </attribute>
17992 <attribute name="frontend" type="wstring" readonly="yes">
17993 <desc>
17994 The name of the frontend or component name this plug-in plugs into.
17995 </desc>
17996 </attribute>
17997 <attribute name="modulePath" type="wstring" readonly="yes">
17998 <desc> The module path. </desc>
17999 </attribute>
18000 </interface>
18001
18002 <interface
18003 name="IExtPackBase" extends="$unknown"
18004 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
18005 wsmap="suppress"
18006 >
18007 <desc>
18008 Interface for querying information about an extension pack as well as
18009 accessing COM objects within it.
18010 </desc>
18011 <attribute name="name" type="wstring" readonly="yes">
18012 <desc>The extension pack name. This is unique.</desc>
18013 </attribute>
18014 <attribute name="description" type="wstring" readonly="yes">
18015 <desc>The extension pack description.</desc>
18016 </attribute>
18017 <attribute name="version" type="wstring" readonly="yes">
18018 <desc>
18019 The extension pack version string. This is restricted to the dotted
18020 version number and optionally a build indicator. No tree revision or
18021 tag will be included in the string as those things are available as
18022 separate properties. An optional publisher tag may be present like for
18023 <link to="IVirtualBox::version"/>.
18024
18025 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
18026 </desc>
18027 </attribute>
18028 <attribute name="revision" type="unsigned long" readonly="yes">
18029 <desc>The extension pack internal revision number.</desc>
18030 </attribute>
18031 <attribute name="edition" type="wstring" readonly="yes">
18032 <desc>
18033 Edition indicator. This is usually empty.
18034
18035 Can for instance be used to help distinguishing between two editions
18036 of the same extension pack where only the license, service contract or
18037 something differs.
18038 </desc>
18039 </attribute>
18040 <attribute name="VRDEModule" type="wstring" readonly="yes">
18041 <desc>The name of the VRDE module if the extension pack sports one.</desc>
18042 </attribute>
18043 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
18044 <desc>Plug-ins provided by this extension pack.</desc>
18045 </attribute>
18046 <attribute name="usable" type="boolean" readonly="yes">
18047 <desc>
18048 Indicates whether the extension pack is usable or not.
18049
18050 There are a number of reasons why an extension pack might be unusable,
18051 typical examples would be broken installation/file or that it is
18052 incompatible with the current VirtualBox version.
18053 </desc>
18054 </attribute>
18055 <attribute name="whyUnusable" type="wstring" readonly="yes">
18056 <desc>
18057 String indicating why the extension pack is not usable. This is an
18058 empty string if usable and always a non-empty string if not usable.
18059 </desc>
18060 </attribute>
18061 <attribute name="showLicense" type="boolean" readonly="yes">
18062 <desc>Whether to show the license before installation</desc>
18063 </attribute>
18064 <attribute name="license" type="wstring" readonly="yes">
18065 <desc>
18066 The default HTML license text for the extension pack. Same as
18067 calling <link to="#queryLicense">queryLicense</link> with
18068 preferredLocale and preferredLanguage as empty strings and format set
18069 to html.
18070 </desc>
18071 </attribute>
18072
18073 <method name="queryLicense">
18074 <desc>
18075 Full feature version of the license attribute.
18076 </desc>
18077 <param name="preferredLocale" type="wstring" dir="in">
18078 <desc>
18079 The preferred license locale. Pass an empty string to get the default
18080 license.
18081 </desc>
18082 </param>
18083 <param name="preferredLanguage" type="wstring" dir="in">
18084 <desc>
18085 The preferred license language. Pass an empty string to get the
18086 default language for the locale.
18087 </desc>
18088 </param>
18089 <param name="format" type="wstring" dir="in">
18090 <desc>
18091 The license format: html, rtf or txt. If a license is present there
18092 will always be an HTML of it, the rich text format (RTF) and plain
18093 text (txt) versions are optional. If
18094 </desc>
18095 </param>
18096 <param name="licenseText" type="wstring" dir="return">
18097 <desc>The license text.</desc>
18098 </param>
18099 </method>
18100
18101 </interface>
18102
18103 <interface
18104 name="IExtPack" extends="IExtPackBase"
18105 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
18106 wsmap="suppress"
18107 >
18108 <desc>
18109 Interface for querying information about an extension pack as well as
18110 accessing COM objects within it.
18111 </desc>
18112 <method name="queryObject">
18113 <desc>
18114 Queries the IUnknown interface to an object in the extension pack
18115 main module. This allows plug-ins and others to talk directly to an
18116 extension pack.
18117 </desc>
18118 <param name="objUuid" type="wstring" dir="in">
18119 <desc>The object ID. What exactly this is </desc>
18120 </param>
18121 <param name="returnInterface" type="$unknown" dir="return">
18122 <desc>The queried interface.</desc>
18123 </param>
18124 </method>
18125 </interface>
18126
18127 <interface
18128 name="IExtPackFile" extends="IExtPackBase"
18129 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
18130 wsmap="suppress"
18131 >
18132 <desc>
18133 Extension pack file (aka tarball, .vbox-extpack) representation returned
18134 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
18135 extension pack information with the addition of the file name.
18136 </desc>
18137 <attribute name="filePath" type="wstring" readonly="yes">
18138 <desc>
18139 The path to the extension pack file.
18140 </desc>
18141 </attribute>
18142
18143 <method name="install">
18144 <desc>
18145 Install the extension pack.
18146 </desc>
18147 <param name="replace" type="boolean" dir="in">
18148 <desc>
18149 Set this to automatically uninstall any existing extension pack with
18150 the same name as the one being installed.
18151 </desc>
18152 </param>
18153 <param name="displayInfo" type="wstring" dir="in">
18154 <desc>
18155 Platform specific display information. Reserved for future hacks.
18156 </desc>
18157 </param>
18158 <param name="progess" type="IProgress" dir="return">
18159 <desc>
18160 Progress object for the operation.
18161 </desc>
18162 </param>
18163 </method>
18164 </interface>
18165
18166 <interface
18167 name="IExtPackManager" extends="$unknown"
18168 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
18169 wsmap="suppress"
18170 >
18171 <desc>
18172 Interface for managing VirtualBox Extension Packs.
18173
18174 TODO: Describe extension packs, how they are managed and how to create
18175 one.
18176 </desc>
18177
18178 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
18179 <desc>
18180 List of the installed extension packs.
18181 </desc>
18182 </attribute>
18183
18184 <method name="find">
18185 <desc>
18186 Returns the extension pack with the specified name if found.
18187
18188 <result name="VBOX_E_OBJECT_NOT_FOUND">
18189 No extension pack matching @a name was found.
18190 </result>
18191 </desc>
18192 <param name="name" type="wstring" dir="in">
18193 <desc>The name of the extension pack to locate.</desc>
18194 </param>
18195 <param name="returnData" type="IExtPack" dir="return">
18196 <desc>The extension pack if found.</desc>
18197 </param>
18198 </method>
18199
18200 <method name="openExtPackFile">
18201 <desc>
18202 Attempts to open an extension pack file in preparation for
18203 installation.
18204 </desc>
18205 <param name="path" type="wstring" dir="in">
18206 <desc>The path of the extension pack tarball. This can optionally be
18207 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18208 </param>
18209 <param name="file" type="IExtPackFile" dir="return">
18210 <desc>The interface of the extension pack file object.</desc>
18211 </param>
18212 </method>
18213
18214 <method name="uninstall">
18215 <desc>Uninstalls an extension pack, removing all related files.</desc>
18216 <param name="name" type="wstring" dir="in">
18217 <desc>The name of the extension pack to uninstall.</desc>
18218 </param>
18219 <param name="forcedRemoval" type="boolean" dir="in">
18220 <desc>
18221 Forced removal of the extension pack. This means that the uninstall
18222 hook will not be called.
18223 </desc>
18224 </param>
18225 <param name="displayInfo" type="wstring" dir="in">
18226 <desc>
18227 Platform specific display information. Reserved for future hacks.
18228 </desc>
18229 </param>
18230 <param name="progess" type="IProgress" dir="return">
18231 <desc>
18232 Progress object for the operation.
18233 </desc>
18234 </param>
18235 </method>
18236
18237 <method name="cleanup">
18238 <desc>Cleans up failed installs and uninstalls</desc>
18239 </method>
18240
18241 <method name="queryAllPlugInsForFrontend">
18242 <desc>
18243 Gets the path to all the plug-in modules for a given frontend.
18244
18245 This is a convenience method that is intended to simplify the plug-in
18246 loading process for a frontend.
18247 </desc>
18248 <param name="frontendName" type="wstring" dir="in">
18249 <desc>The name of the frontend or component.</desc>
18250 </param>
18251 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18252 <desc>Array containing the plug-in modules (full paths).</desc>
18253 </param>
18254 </method>
18255
18256 <method name="isExtPackUsable">
18257 <desc>Check if the given extension pack is loaded and usable.</desc>
18258 <param name="name" type="wstring" dir="in">
18259 <desc>The name of the extension pack to check for.</desc>
18260 </param>
18261 <param name="usable" type="boolean" dir="return">
18262 <desc>Is the given extension pack loaded and usable.</desc>
18263 </param>
18264 </method>
18265
18266 </interface>
18267
18268 <!--
18269 // BandwidthGroupType
18270 /////////////////////////////////////////////////////////////////////////
18271 -->
18272 <enum
18273 name="BandwidthGroupType"
18274 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18275
18276 <desc>
18277 Type of a bandwidth control group.
18278 </desc>
18279
18280 <const name="Null" value="0">
18281 <desc>
18282 Null type, must be first.
18283 </desc>
18284 </const>
18285
18286 <const name="Disk" value="1">
18287 <desc>
18288 The bandwidth group controls disk I/O.
18289 </desc>
18290 </const>
18291
18292 <const name="Network" value="2">
18293 <desc>
18294 The bandwidth group controls network I/O.
18295 </desc>
18296 </const>
18297
18298 </enum>
18299
18300 <!--
18301 // IBandwidthGroup
18302 /////////////////////////////////////////////////////////////////////////
18303 -->
18304 <interface
18305 name="IBandwidthGroup" extends="$unknown"
18306 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18307 wsmap="managed"
18308 >
18309 <desc>Represents one bandwidth group.</desc>
18310
18311 <attribute name="name" type="wstring" readonly="yes">
18312 <desc>Name of the group.</desc>
18313 </attribute>
18314
18315 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18316 <desc>Type of the group.</desc>
18317 </attribute>
18318
18319 <attribute name="reference" type="unsigned long" readonly="yes">
18320 <desc>How many devices/medium attachements use this group.</desc>
18321 </attribute>
18322
18323 <attribute name="maxBytesPerSec" type="long long">
18324 <desc>The maximum number of bytes which can be transfered by all
18325 entities attached to this group during one second.</desc>
18326 </attribute>
18327
18328 </interface>
18329
18330 <!--
18331 // IBandwidthControl
18332 /////////////////////////////////////////////////////////////////////////
18333 -->
18334 <interface
18335 name="IBandwidthControl" extends="$unknown"
18336 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18337 wsmap="managed"
18338 >
18339 <desc>
18340 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18341 This includes network and disk I/O.
18342 </desc>
18343
18344 <attribute name="numGroups" type="unsigned long" readonly="yes">
18345 <desc>
18346 The current number of existing bandwidth groups managed.
18347 </desc>
18348 </attribute>
18349
18350 <method name="createBandwidthGroup">
18351 <desc>
18352 Creates a new bandwidth group.
18353 </desc>
18354
18355 <param name="name" type="wstring" dir="in">
18356 <desc>Name of the bandwidth group.</desc>
18357 </param>
18358 <param name="type" type="BandwidthGroupType" dir="in">
18359 <desc>The type of the bandwidth group (network or disk).</desc>
18360 </param>
18361 <param name="maxBytesPerSec" type="long long" dir="in">
18362 <desc>The maximum number of bytes which can be transfered by all
18363 entities attached to this group during one second.</desc>
18364 </param>
18365 </method>
18366
18367 <method name="deleteBandwidthGroup">
18368 <desc>
18369 Deletes a new bandwidth group.
18370 </desc>
18371
18372 <param name="name" type="wstring" dir="in">
18373 <desc>Name of the bandwidth group to delete.</desc>
18374 </param>
18375 </method>
18376
18377 <method name="getBandwidthGroup" const="yes">
18378 <desc>
18379 Get a bandwidth group by name.
18380 </desc>
18381
18382 <param name="name" type="wstring" dir="in">
18383 <desc>Name of the bandwidth group to get.</desc>
18384 </param>
18385 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18386 <desc>Where to store the bandwidth group on success.</desc>
18387 </param>
18388 </method>
18389
18390 <method name="getAllBandwidthGroups" const="yes">
18391 <desc>
18392 Get all managed bandwidth groups.
18393 </desc>
18394
18395 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18396 <desc>The array of managed bandwidth groups.</desc>
18397 </param>
18398 </method>
18399 </interface>
18400
18401 <!--
18402 // IVirtualBoxClient
18403 /////////////////////////////////////////////////////////////////////////
18404 -->
18405
18406 <interface
18407 name="IVirtualBoxClient" extends="$unknown"
18408 uuid="d191281f-b0cb-4d83-a8fa-0d9fd6ba234c"
18409 wsmap="suppress"
18410 >
18411 <desc>
18412 Convenience interface for client applications. Treat this as a
18413 singleton, i.e. never create more than one instance of this interface.
18414
18415 At the moment only available for clients of the local API (not usable
18416 via the webservice). Once the session logic is redesigned this might
18417 change.
18418 </desc>
18419
18420 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18421 <desc>
18422 Reference to the server-side API root object.
18423 </desc>
18424 </attribute>
18425
18426 <attribute name="session" type="ISession" readonly="yes">
18427 <desc>
18428 Create a new session object and return the reference to it.
18429 </desc>
18430 </attribute>
18431
18432 <attribute name="eventSource" type="IEventSource" readonly="yes">
18433 <desc>
18434 Event source for VirtualBoxClient events.
18435 </desc>
18436 </attribute>
18437
18438 <method name="checkMachineError">
18439 <desc>
18440 Perform error checking before using an <link to="IMachine"/> object.
18441 Generally useful before starting a VM and all other uses. If anything
18442 is not as it should be then this method will return an appropriate
18443 error.
18444 </desc>
18445
18446 <param name="machine" type="IMachine" dir="in">
18447 <desc>The machine object to check.</desc>
18448 </param>
18449 </method>
18450 </interface>
18451
18452 <!--
18453 // Events
18454 /////////////////////////////////////////////////////////////////////////
18455 -->
18456 <enum
18457 name="VBoxEventType"
18458 uuid="0d67e79e-b7b1-4919-aab3-b36866075515"
18459 >
18460
18461 <desc>
18462 Type of an event.
18463 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18464 </desc>
18465
18466 <const name="Invalid" value="0">
18467 <desc>
18468 Invalid event, must be first.
18469 </desc>
18470 </const>
18471
18472 <const name="Any" value="1">
18473 <desc>
18474 Wildcard for all events.
18475 Events of this type are never delivered, and only used in
18476 <link to="IEventSource::registerListener"/> call to simplify registration.
18477 </desc>
18478 </const>
18479
18480 <const name="Vetoable" value="2">
18481 <desc>
18482 Wildcard for all vetoable events. Events of this type are never delivered, and only
18483 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18484 </desc>
18485 </const>
18486
18487 <const name="MachineEvent" value="3">
18488 <desc>
18489 Wildcard for all machine events. Events of this type are never delivered, and only used in
18490 <link to="IEventSource::registerListener"/> call to simplify registration.
18491 </desc>
18492 </const>
18493
18494 <const name="SnapshotEvent" value="4">
18495 <desc>
18496 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18497 <link to="IEventSource::registerListener"/> call to simplify registration.
18498 </desc>
18499 </const>
18500
18501 <const name="InputEvent" value="5">
18502 <desc>
18503 Wildcard for all input device (keyboard, mouse) events.
18504 Events of this type are never delivered, and only used in
18505 <link to="IEventSource::registerListener"/> call to simplify registration.
18506 </desc>
18507 </const>
18508
18509 <const name="LastWildcard" value="31">
18510 <desc>
18511 Last wildcard.
18512 </desc>
18513 </const>
18514
18515 <const name="OnMachineStateChanged" value="32">
18516 <desc>
18517 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18518 </desc>
18519 </const>
18520 <const name="OnMachineDataChanged" value="33">
18521 <desc>
18522 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18523 </desc>
18524 </const>
18525 <const name="OnExtraDataChanged" value="34">
18526 <desc>
18527 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18528 </desc>
18529 </const>
18530 <const name="OnExtraDataCanChange" value="35">
18531 <desc>
18532 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18533 </desc>
18534 </const>
18535 <const name="OnMediumRegistered" value="36">
18536 <desc>
18537 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18538 </desc>
18539 </const>
18540 <const name="OnMachineRegistered" value="37">
18541 <desc>
18542 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18543 </desc>
18544 </const>
18545 <const name="OnSessionStateChanged" value="38">
18546 <desc>
18547 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18548 </desc>
18549 </const>
18550 <const name="OnSnapshotTaken" value="39">
18551 <desc>
18552 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18553 </desc>
18554 </const>
18555 <const name="OnSnapshotDeleted" value="40">
18556 <desc>
18557 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18558 </desc>
18559 </const>
18560 <const name="OnSnapshotChanged" value="41">
18561 <desc>
18562 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18563 </desc>
18564 </const>
18565 <const name="OnGuestPropertyChanged" value="42">
18566 <desc>
18567 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18568 </desc>
18569 </const>
18570 <!-- Console events -->
18571 <const name="OnMousePointerShapeChanged" value="43">
18572 <desc>
18573 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18574 </desc>
18575 </const>
18576 <const name="OnMouseCapabilityChanged" value="44">
18577 <desc>
18578 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18579 </desc>
18580 </const>
18581 <const name="OnKeyboardLedsChanged" value="45">
18582 <desc>
18583 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18584 </desc>
18585 </const>
18586 <const name="OnStateChanged" value="46">
18587 <desc>
18588 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18589 </desc>
18590 </const>
18591 <const name="OnAdditionsStateChanged" value="47">
18592 <desc>
18593 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18594 </desc>
18595 </const>
18596 <const name="OnNetworkAdapterChanged" value="48">
18597 <desc>
18598 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18599 </desc>
18600 </const>
18601 <const name="OnSerialPortChanged" value="49">
18602 <desc>
18603 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18604 </desc>
18605 </const>
18606 <const name="OnParallelPortChanged" value="50">
18607 <desc>
18608 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18609 </desc>
18610 </const>
18611 <const name="OnStorageControllerChanged" value="51">
18612 <desc>
18613 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18614 </desc>
18615 </const>
18616 <const name="OnMediumChanged" value="52">
18617 <desc>
18618 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18619 </desc>
18620 </const>
18621 <const name="OnVRDEServerChanged" value="53">
18622 <desc>
18623 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18624 </desc>
18625 </const>
18626 <const name="OnUSBControllerChanged" value="54">
18627 <desc>
18628 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18629 </desc>
18630 </const>
18631 <const name="OnUSBDeviceStateChanged" value="55">
18632 <desc>
18633 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18634 </desc>
18635 </const>
18636 <const name="OnSharedFolderChanged" value="56">
18637 <desc>
18638 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18639 </desc>
18640 </const>
18641 <const name="OnRuntimeError" value="57">
18642 <desc>
18643 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18644 </desc>
18645 </const>
18646 <const name="OnCanShowWindow" value="58">
18647 <desc>
18648 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18649 </desc>
18650 </const>
18651 <const name="OnShowWindow" value="59">
18652 <desc>
18653 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18654 </desc>
18655 </const>
18656 <const name="OnCPUChanged" value="60">
18657 <desc>
18658 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18659 </desc>
18660 </const>
18661 <const name="OnVRDEServerInfoChanged" value="61">
18662 <desc>
18663 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18664 </desc>
18665 </const>
18666 <const name="OnEventSourceChanged" value="62">
18667 <desc>
18668 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
18669 </desc>
18670 </const>
18671 <const name="OnCPUExecutionCapChanged" value="63">
18672 <desc>
18673 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
18674 </desc>
18675 </const>
18676 <const name="OnGuestKeyboard" value="64">
18677 <desc>
18678 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
18679 </desc>
18680 </const>
18681 <const name="OnGuestMouse" value="65">
18682 <desc>
18683 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
18684 </desc>
18685 </const>
18686 <const name="OnNATRedirect" value="66">
18687 <desc>
18688 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
18689 </desc>
18690 </const>
18691 <const name="OnHostPCIDevicePlug" value="67">
18692 <desc>
18693 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
18694 </desc>
18695 </const>
18696 <const name="OnVBoxSVCAvailabilityChanged" value="68">
18697 <desc>
18698 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
18699 </desc>
18700 </const>
18701 <const name="OnBandwidthGroupChanged" value="69">
18702 <desc>
18703 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
18704 </desc>
18705 </const>
18706 <const name="OnGuestMonitorChanged" value="70">
18707 <desc>
18708 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
18709 </desc>
18710 </const>
18711 <const name="OnStorageDeviceChanged" value="71">
18712 <desc>
18713 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
18714 </desc>
18715 </const>
18716 <const name="OnClipboardModeChanged" value="72">
18717 <desc>
18718 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
18719 </desc>
18720 </const>
18721 <const name="OnDragAndDropModeChanged" value="73">
18722 <desc>
18723 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
18724 </desc>
18725 </const>
18726
18727 <!-- Last event marker -->
18728 <const name="Last" value="74">
18729 <desc>
18730 Must be last event, used for iterations and structures relying on numerical event values.
18731 </desc>
18732 </const>
18733
18734 </enum>
18735
18736 <interface
18737 name="IEventSource" extends="$unknown"
18738 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
18739 wsmap="managed"
18740 >
18741 <desc>
18742 Event source. Generally, any object which could generate events can be an event source,
18743 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
18744 an event source can work with listeners in either active or passive mode. In active mode it is up to
18745 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
18746 event source keeps track of pending events for each listener and returns available events on demand.
18747
18748 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18749 </desc>
18750
18751 <method name="createListener">
18752 <desc>
18753 Creates a new listener object, useful for passive mode.
18754 </desc>
18755 <param name="listener" type="IEventListener" dir="return"/>
18756 </method>
18757
18758 <method name="createAggregator">
18759 <desc>
18760 Creates an aggregator event source, collecting events from multiple sources.
18761 This way a single listener can listen for events coming from multiple sources,
18762 using a single blocking <link to="#getEvent"/> on the returned aggregator.
18763 </desc>
18764 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
18765 <desc>
18766 Subordinate event source this one aggregatres.
18767 </desc>
18768 </param>
18769 <param name="result" type="IEventSource" dir="return">
18770 <desc>
18771 Event source aggregating passed sources.
18772 </desc>
18773 </param>
18774 </method>
18775
18776 <method name="registerListener">
18777 <desc>
18778 Register an event listener.
18779
18780 <note>
18781 To avoid system overload, the VirtualBox server process checks if passive event
18782 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
18783 current implementation, if more than 500 pending events are detected for a passive
18784 event listener, it is forcefully unregistered by the system, and further
18785 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
18786 </note>
18787 </desc>
18788 <param name="listener" type="IEventListener" dir="in">
18789 <desc>Listener to register.</desc>
18790 </param>
18791 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
18792 <desc>
18793 Event types listener is interested in. One can use wildcards like -
18794 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
18795 than one event.
18796 </desc>
18797 </param>
18798 <param name="active" type="boolean" dir="in">
18799 <desc>
18800 Which mode this listener is operating in.
18801 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
18802 In passive mode, an internal event queue is created for this this IEventListener.
18803 For each event coming in, it is added to queues for all interested registered passive
18804 listeners. It is then up to the external code to call the listener's
18805 <link to="IEventListener::handleEvent" /> method. When done with an event, the
18806 external code must call <link to="#eventProcessed" />.
18807 </desc>
18808 </param>
18809 </method>
18810
18811 <method name="unregisterListener">
18812 <desc>
18813 Unregister an event listener. If listener is passive, and some waitable events are still
18814 in queue they are marked as processed automatically.
18815 </desc>
18816 <param name="listener" type="IEventListener" dir="in">
18817 <desc>Listener to unregister.</desc>
18818 </param>
18819 </method>
18820
18821 <method name="fireEvent">
18822 <desc>
18823 Fire an event for this source.
18824 </desc>
18825 <param name="event" type="IEvent" dir="in">
18826 <desc>Event to deliver.</desc>
18827 </param>
18828 <param name="timeout" type="long" dir="in">
18829 <desc>
18830 Maximum time to wait for event processing (if event is waitable), in ms;
18831 0 = no wait, -1 = indefinite wait.
18832 </desc>
18833 </param>
18834 <param name="result" type="boolean" dir="return">
18835 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
18836 </param>
18837 </method>
18838
18839 <method name="getEvent">
18840 <desc>
18841 Get events from this peer's event queue (for passive mode). Calling this method
18842 regularly is required for passive event listeners to avoid system overload;
18843 see <link to="IEventSource::registerListener" /> for details.
18844
18845 <result name="VBOX_E_OBJECT_NOT_FOUND">
18846 Listener is not registered, or autounregistered.
18847 </result>
18848 </desc>
18849 <param name="listener" type="IEventListener" dir="in">
18850 <desc>Which listener to get data for.</desc>
18851 </param>
18852 <param name="timeout" type="long" dir="in">
18853 <desc>
18854 Maximum time to wait for events, in ms;
18855 0 = no wait, -1 = indefinite wait.
18856 </desc>
18857 </param>
18858 <param name="event" type="IEvent" dir="return">
18859 <desc>Event retrieved, or null if none available.</desc>
18860 </param>
18861 </method>
18862
18863 <method name="eventProcessed">
18864 <desc>
18865 Must be called for waitable events after a particular listener finished its
18866 event processing. When all listeners of a particular event have called this
18867 method, the system will then call <link to="IEvent::setProcessed" />.
18868 </desc>
18869 <param name="listener" type="IEventListener" dir="in">
18870 <desc>Which listener processed event.</desc>
18871 </param>
18872 <param name="event" type="IEvent" dir="in">
18873 <desc>Which event.</desc>
18874 </param>
18875 </method>
18876
18877 </interface>
18878
18879 <interface
18880 name="IEventListener" extends="$unknown"
18881 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
18882 wsmap="managed"
18883 >
18884 <desc>
18885 Event listener. An event listener can work in either active or passive mode, depending on the way
18886 it was registered.
18887 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18888 </desc>
18889
18890 <method name="handleEvent">
18891 <desc>
18892 Handle event callback for active listeners. It is not called for
18893 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
18894 and having received acknowledgement from all passive listeners via
18895 <link to="IEventSource::eventProcessed"/>, the event is marked as
18896 processed and <link to="IEvent::waitProcessed"/> will return
18897 immediately.
18898 </desc>
18899 <param name="event" type="IEvent" dir="in">
18900 <desc>Event available.</desc>
18901 </param>
18902 </method>
18903
18904 </interface>
18905
18906 <interface
18907 name="IEvent" extends="$unknown"
18908 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
18909 wsmap="managed"
18910 >
18911 <desc>
18912 Abstract parent interface for VirtualBox events. Actual events will typically implement
18913 a more specific interface which derives from this (see below).
18914
18915 <b>Introduction to VirtualBox events</b>
18916
18917 Generally speaking, an event (represented by this interface) signals that something
18918 happened, while an event listener (see <link to="IEventListener" />) represents an
18919 entity that is interested in certain events. In order for this to work with
18920 unidirectional protocols (i.e. web services), the concepts of passive and active
18921 listener are used.
18922
18923 Event consumers can register themselves as listeners, providing an array of
18924 events they are interested in (see <link to="IEventSource::registerListener" />).
18925 When an event triggers, the listener is notified about the event. The exact
18926 mechanism of the notification depends on whether the listener was registered as
18927 an active or passive listener:
18928
18929 <ul>
18930 <li>An active listener is very similar to a callback: it is a function invoked
18931 by the API. As opposed to the callbacks that were used in the API before
18932 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
18933 </li>
18934
18935 <li>Passive listeners are somewhat trickier to implement, but do not require
18936 a client function to be callable, which is not an option with scripting
18937 languages or web service clients. Internally the <link to="IEventSource" />
18938 implementation maintains an event queue for each passive listener, and
18939 newly arrived events are put in this queue. When the listener calls
18940 <link to="IEventSource::getEvent"/>, first element from its internal event
18941 queue is returned. When the client completes processing of an event,
18942 the <link to="IEventSource::eventProcessed" /> function must be called,
18943 acknowledging that the event was processed. It supports implementing
18944 waitable events. On passive listener unregistration, all events from its
18945 queue are auto-acknowledged.
18946 </li>
18947 </ul>
18948
18949 Waitable events are useful in situations where the event generator wants to track
18950 delivery or a party wants to wait until all listeners have completed the event. A
18951 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
18952 listeners might veto a certain action, and thus the event producer has to make
18953 sure that all listeners have processed the event and not vetoed before taking
18954 the action.
18955
18956 A given event may have both passive and active listeners at the same time.
18957
18958 <b>Using events</b>
18959
18960 Any VirtualBox object capable of producing externally visible events provides an
18961 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
18962 This event source object is notified by VirtualBox once something has happened, so
18963 consumers may register event listeners with this event source. To register a listener,
18964 an object implementing the <link to="IEventListener" /> interface must be provided.
18965 For active listeners, such an object is typically created by the consumer, while for
18966 passive listeners <link to="IEventSource::createListener" /> should be used. Please
18967 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
18968
18969 Once created, the listener must be registered to listen for the desired events
18970 (see <link to="IEventSource::registerListener" />), providing an array of
18971 <link to="VBoxEventType" /> enums. Those elements can either be the individual
18972 event IDs or wildcards matching multiple event IDs.
18973
18974 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
18975 called automatically when the event is triggered, while passive listeners have to call
18976 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
18977 an event processing loop.
18978
18979 The IEvent interface is an abstract parent interface for all such VirtualBox events
18980 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
18981 or the event processing loop is to check the <link to="#type" /> attribute of the event and
18982 then cast to the appropriate specific interface using @c QueryInterface().
18983 </desc>
18984
18985 <attribute name="type" readonly="yes" type="VBoxEventType">
18986 <desc>
18987 Event type.
18988 </desc>
18989 </attribute>
18990
18991 <attribute name="source" readonly="yes" type="IEventSource">
18992 <desc>
18993 Source of this event.
18994 </desc>
18995 </attribute>
18996
18997 <attribute name="waitable" readonly="yes" type="boolean">
18998 <desc>
18999 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
19000 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
19001 as no additional overhead associated with waitability imposed.
19002 Waitable events are needed when one need to be able to wait for particular event processed,
19003 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
19004 until all consumers confirmed events.
19005 </desc>
19006 </attribute>
19007
19008 <method name="setProcessed">
19009 <desc>
19010 Internal method called by the system when all listeners of a particular event have called
19011 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
19012 </desc>
19013 </method>
19014
19015 <method name="waitProcessed">
19016 <desc>
19017 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
19018 described semantics, for non-waitable returns true immediately.
19019 </desc>
19020 <param name="timeout" type="long" dir="in">
19021 <desc>
19022 Maximum time to wait for event processeing, in ms;
19023 0 = no wait, -1 = indefinite wait.
19024 </desc>
19025 </param>
19026 <param name="result" type="boolean" dir="return">
19027 <desc>If this event was processed before timeout.</desc>
19028 </param>
19029 </method>
19030 </interface>
19031
19032
19033 <interface
19034 name="IReusableEvent" extends="IEvent"
19035 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
19036 wsmap="managed"
19037 >
19038 <desc>Base abstract interface for all reusable events.</desc>
19039
19040 <attribute name="generation" readonly="yes" type="unsigned long">
19041 <desc>Current generation of event, incremented on reuse.</desc>
19042 </attribute>
19043
19044 <method name="reuse">
19045 <desc>
19046 Marks an event as reused, increments 'generation', fields shall no
19047 longer be considered valid.
19048 </desc>
19049 </method>
19050 </interface>
19051
19052 <interface
19053 name="IMachineEvent" extends="IEvent"
19054 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
19055 wsmap="managed" id="MachineEvent"
19056 >
19057 <desc>Base abstract interface for all machine events.</desc>
19058
19059 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
19060 <desc>ID of the machine this event relates to.</desc>
19061 </attribute>
19062
19063 </interface>
19064
19065 <interface
19066 name="IMachineStateChangedEvent" extends="IMachineEvent"
19067 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
19068 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
19069 >
19070 <desc>Machine state change event.</desc>
19071
19072 <attribute name="state" readonly="yes" type="MachineState">
19073 <desc>New execution state.</desc>
19074 </attribute>
19075 </interface>
19076
19077 <interface
19078 name="IMachineDataChangedEvent" extends="IMachineEvent"
19079 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
19080 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
19081 >
19082 <desc>
19083 Any of the settings of the given machine has changed.
19084 </desc>
19085
19086 <attribute name="temporary" readonly="yes" type="boolean">
19087 <desc>@c true if the settings change is temporary. All permanent
19088 settings changes will trigger an event, and only temporary settings
19089 changes for running VMs will trigger an event. Note: sending events
19090 for temporary changes is NOT IMPLEMENTED.</desc>
19091 </attribute>
19092 </interface>
19093
19094 <interface
19095 name="IMediumRegisteredEvent" extends="IEvent"
19096 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
19097 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
19098 >
19099 <desc>
19100 The given medium was registered or unregistered
19101 within this VirtualBox installation.
19102 </desc>
19103
19104 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
19105 <desc>ID of the medium this event relates to.</desc>
19106 </attribute>
19107
19108 <attribute name="mediumType" readonly="yes" type="DeviceType">
19109 <desc>Type of the medium this event relates to.</desc>
19110 </attribute>
19111
19112 <attribute name="registered" type="boolean" readonly="yes">
19113 <desc>
19114 If @c true, the medium was registered, otherwise it was
19115 unregistered.
19116 </desc>
19117 </attribute>
19118 </interface>
19119
19120 <interface
19121 name="IMachineRegisteredEvent" extends="IMachineEvent"
19122 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
19123 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
19124 >
19125 <desc>
19126 The given machine was registered or unregistered
19127 within this VirtualBox installation.
19128 </desc>
19129
19130 <attribute name="registered" type="boolean" readonly="yes">
19131 <desc>
19132 If @c true, the machine was registered, otherwise it was
19133 unregistered.
19134 </desc>
19135 </attribute>
19136 </interface>
19137
19138 <interface
19139 name="ISessionStateChangedEvent" extends="IMachineEvent"
19140 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
19141 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
19142 >
19143 <desc>
19144 The state of the session for the given machine was changed.
19145 <see><link to="IMachine::sessionState"/></see>
19146 </desc>
19147
19148 <attribute name="state" type="SessionState" readonly="yes">
19149 <desc>
19150 New session state.
19151 </desc>
19152 </attribute>
19153 </interface>
19154
19155 <interface
19156 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
19157 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
19158 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
19159 >
19160 <desc>
19161 Notification when a guest property has changed.
19162 </desc>
19163
19164 <attribute name="name" readonly="yes" type="wstring">
19165 <desc>
19166 The name of the property that has changed.
19167 </desc>
19168 </attribute>
19169
19170 <attribute name="value" readonly="yes" type="wstring">
19171 <desc>
19172 The new property value.
19173 </desc>
19174 </attribute>
19175
19176 <attribute name="flags" readonly="yes" type="wstring">
19177 <desc>
19178 The new property flags.
19179 </desc>
19180 </attribute>
19181
19182 </interface>
19183
19184 <interface
19185 name="ISnapshotEvent" extends="IMachineEvent"
19186 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
19187 wsmap="managed" id="SnapshotEvent"
19188 >
19189 <desc>Base interface for all snapshot events.</desc>
19190
19191 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
19192 <desc>ID of the snapshot this event relates to.</desc>
19193 </attribute>
19194
19195 </interface>
19196
19197 <interface
19198 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
19199 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
19200 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
19201 >
19202 <desc>
19203 A new snapshot of the machine has been taken.
19204 <see><link to="ISnapshot"/></see>
19205 </desc>
19206 </interface>
19207
19208 <interface
19209 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
19210 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
19211 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
19212 >
19213 <desc>
19214 Snapshot of the given machine has been deleted.
19215
19216 <note>
19217 This notification is delivered <b>after</b> the snapshot
19218 object has been uninitialized on the server (so that any
19219 attempt to call its methods will return an error).
19220 </note>
19221
19222 <see><link to="ISnapshot"/></see>
19223 </desc>
19224 </interface>
19225
19226 <interface
19227 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19228 uuid="07541941-8079-447a-a33e-47a69c7980db"
19229 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19230 >
19231 <desc>
19232 Snapshot properties (name and/or description) have been changed.
19233 <see><link to="ISnapshot"/></see>
19234 </desc>
19235 </interface>
19236
19237 <interface
19238 name="IMousePointerShapeChangedEvent" extends="IEvent"
19239 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19240 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19241 >
19242 <desc>
19243 Notification when the guest mouse pointer shape has
19244 changed. The new shape data is given.
19245 </desc>
19246
19247 <attribute name="visible" type="boolean" readonly="yes">
19248 <desc>
19249 Flag whether the pointer is visible.
19250 </desc>
19251 </attribute>
19252 <attribute name="alpha" type="boolean" readonly="yes">
19253 <desc>
19254 Flag whether the pointer has an alpha channel.
19255 </desc>
19256 </attribute>
19257 <attribute name="xhot" type="unsigned long" readonly="yes">
19258 <desc>
19259 The pointer hot spot X coordinate.
19260 </desc>
19261 </attribute>
19262 <attribute name="yhot" type="unsigned long" readonly="yes">
19263 <desc>
19264 The pointer hot spot Y coordinate.
19265 </desc>
19266 </attribute>
19267 <attribute name="width" type="unsigned long" readonly="yes">
19268 <desc>
19269 Width of the pointer shape in pixels.
19270 </desc>
19271 </attribute>
19272 <attribute name="height" type="unsigned long" readonly="yes">
19273 <desc>
19274 Height of the pointer shape in pixels.
19275 </desc>
19276 </attribute>
19277 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19278 <desc>
19279 Shape buffer arrays.
19280
19281 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19282 followed by a 32-bpp XOR (color) mask.
19283
19284 For pointers without alpha channel the XOR mask pixels are 32
19285 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19286 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19287
19288 An AND mask is used for pointers with alpha channel, so if the
19289 callback does not support alpha, the pointer could be
19290 displayed as a normal color pointer.
19291
19292 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19293 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19294 height</tt>. The padding bits at the end of each scanline are
19295 undefined.
19296
19297 The XOR mask follows the AND mask on the next 4-byte aligned
19298 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19299 Bytes in the gap between the AND and the XOR mask are undefined.
19300 The XOR mask scanlines have no gap between them and the size of
19301 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19302
19303 <note>
19304 If @a shape is 0, only the pointer visibility is changed.
19305 </note>
19306 </desc>
19307 </attribute>
19308 </interface>
19309
19310 <interface
19311 name="IMouseCapabilityChangedEvent" extends="IEvent"
19312 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19313 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19314 >
19315 <desc>
19316 Notification when the mouse capabilities reported by the
19317 guest have changed. The new capabilities are passed.
19318 </desc>
19319 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19320 <desc>
19321 Supports absolute coordinates.
19322 </desc>
19323 </attribute>
19324 <attribute name="supportsRelative" type="boolean" readonly="yes">
19325 <desc>
19326 Supports relative coordinates.
19327 </desc>
19328 </attribute>
19329 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19330 <desc>
19331 If host cursor is needed.
19332 </desc>
19333 </attribute>
19334 </interface>
19335
19336 <interface
19337 name="IKeyboardLedsChangedEvent" extends="IEvent"
19338 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19339 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19340 >
19341 <desc>
19342 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19343 to alter the state of the keyboard LEDs.
19344 </desc>
19345 <attribute name="numLock" type="boolean" readonly="yes">
19346 <desc>
19347 NumLock status.
19348 </desc>
19349 </attribute>
19350 <attribute name="capsLock" type="boolean" readonly="yes">
19351 <desc>
19352 CapsLock status.
19353 </desc>
19354 </attribute>
19355 <attribute name="scrollLock" type="boolean" readonly="yes">
19356 <desc>
19357 ScrollLock status.
19358 </desc>
19359 </attribute>
19360 </interface>
19361
19362 <interface
19363 name="IStateChangedEvent" extends="IEvent"
19364 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19365 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19366 >
19367 <desc>
19368 Notification when the execution state of the machine has changed.
19369 The new state is given.
19370 </desc>
19371 <attribute name="state" type="MachineState" readonly="yes">
19372 <desc>
19373 New machine state.
19374 </desc>
19375 </attribute>
19376 </interface>
19377
19378 <interface
19379 name="IAdditionsStateChangedEvent" extends="IEvent"
19380 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19381 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19382 >
19383 <desc>
19384 Notification when a Guest Additions property changes.
19385 Interested callees should query IGuest attributes to
19386 find out what has changed.
19387 </desc>
19388 </interface>
19389
19390 <interface
19391 name="INetworkAdapterChangedEvent" extends="IEvent"
19392 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19393 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19394 >
19395 <desc>
19396 Notification when a property of one of the
19397 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19398 changes. Interested callees should use INetworkAdapter methods and
19399 attributes to find out what has changed.
19400 </desc>
19401 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19402 <desc>
19403 Network adapter that is subject to change.
19404 </desc>
19405 </attribute>
19406 </interface>
19407
19408 <interface
19409 name="ISerialPortChangedEvent" extends="IEvent"
19410 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19411 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19412 >
19413 <desc>
19414 Notification when a property of one of the
19415 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19416 Interested callees should use ISerialPort methods and attributes
19417 to find out what has changed.
19418 </desc>
19419 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19420 <desc>
19421 Serial port that is subject to change.
19422 </desc>
19423 </attribute>
19424 </interface>
19425
19426 <interface
19427 name="IParallelPortChangedEvent" extends="IEvent"
19428 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19429 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19430 >
19431 <desc>
19432 Notification when a property of one of the
19433 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19434 changes. Interested callees should use ISerialPort methods and
19435 attributes to find out what has changed.
19436 </desc>
19437 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19438 <desc>
19439 Parallel port that is subject to change.
19440 </desc>
19441 </attribute>
19442 </interface>
19443
19444 <interface
19445 name="IStorageControllerChangedEvent" extends="IEvent"
19446 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19447 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19448 >
19449 <desc>
19450 Notification when a
19451 <link to="IMachine::mediumAttachments">medium attachment</link>
19452 changes.
19453 </desc>
19454 </interface>
19455
19456 <interface
19457 name="IMediumChangedEvent" extends="IEvent"
19458 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19459 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19460 >
19461 <desc>
19462 Notification when a
19463 <link to="IMachine::mediumAttachments">medium attachment</link>
19464 changes.
19465 </desc>
19466 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19467 <desc>
19468 Medium attachment that is subject to change.
19469 </desc>
19470 </attribute>
19471 </interface>
19472
19473 <interface
19474 name="IClipboardModeChangedEvent" extends="IEvent"
19475 uuid="cac21692-7997-4595-a731-3a509db604e5"
19476 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19477 >
19478 <desc>
19479 Notification when the shared clipboard mode changes.
19480 </desc>
19481 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19482 <desc>
19483 The new clipboard mode.
19484 </desc>
19485 </attribute>
19486 </interface>
19487
19488 <interface
19489 name="IDragAndDropModeChangedEvent" extends="IEvent"
19490 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19491 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19492 >
19493 <desc>
19494 Notification when the drag'n'drop mode changes.
19495 </desc>
19496 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19497 <desc>
19498 The new drag'n'drop mode.
19499 </desc>
19500 </attribute>
19501 </interface>
19502
19503 <interface
19504 name="ICPUChangedEvent" extends="IEvent"
19505 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19506 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19507 >
19508 <desc>
19509 Notification when a CPU changes.
19510 </desc>
19511 <attribute name="CPU" type="unsigned long" readonly="yes">
19512 <desc>
19513 The CPU which changed.
19514 </desc>
19515 </attribute>
19516 <attribute name="add" type="boolean" readonly="yes">
19517 <desc>
19518 Flag whether the CPU was added or removed.
19519 </desc>
19520 </attribute>
19521 </interface>
19522
19523 <interface
19524 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19525 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19526 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19527 >
19528 <desc>
19529 Notification when the CPU execution cap changes.
19530 </desc>
19531 <attribute name="executionCap" type="unsigned long" readonly="yes">
19532 <desc>
19533 The new CPU execution cap value. (1-100)
19534 </desc>
19535 </attribute>
19536 </interface>
19537
19538 <interface
19539 name="IGuestKeyboardEvent" extends="IEvent"
19540 uuid="88394258-7006-40d4-b339-472ee3801844"
19541 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19542 >
19543 <desc>
19544 Notification when guest keyboard event happens.
19545 </desc>
19546 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19547 <desc>
19548 Array of scancodes.
19549 </desc>
19550 </attribute>
19551 </interface>
19552
19553 <interface
19554 name="IGuestMouseEvent" extends="IReusableEvent"
19555 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19556 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19557 >
19558 <desc>
19559 Notification when guest mouse event happens.
19560 </desc>
19561
19562 <attribute name="absolute" type="boolean" readonly="yes">
19563 <desc>
19564 If this event is relative or absolute.
19565 </desc>
19566 </attribute>
19567
19568 <attribute name="x" type="long" readonly="yes">
19569 <desc>
19570 New X position, or X delta.
19571 </desc>
19572 </attribute>
19573
19574 <attribute name="y" type="long" readonly="yes">
19575 <desc>
19576 New Y position, or Y delta.
19577 </desc>
19578 </attribute>
19579
19580 <attribute name="z" type="long" readonly="yes">
19581 <desc>
19582 Z delta.
19583 </desc>
19584 </attribute>
19585
19586 <attribute name="w" type="long" readonly="yes">
19587 <desc>
19588 W delta.
19589 </desc>
19590 </attribute>
19591
19592 <attribute name="buttons" type="long" readonly="yes">
19593 <desc>
19594 Button state bitmask.
19595 </desc>
19596 </attribute>
19597
19598 </interface>
19599
19600
19601 <interface
19602 name="IVRDEServerChangedEvent" extends="IEvent"
19603 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
19604 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
19605 >
19606 <desc>
19607 Notification when a property of the
19608 <link to="IMachine::VRDEServer">VRDE server</link> changes.
19609 Interested callees should use IVRDEServer methods and attributes to
19610 find out what has changed.
19611 </desc>
19612 </interface>
19613
19614 <interface
19615 name="IVRDEServerInfoChangedEvent" extends="IEvent"
19616 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
19617 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
19618 >
19619 <desc>
19620 Notification when the status of the VRDE server changes. Interested callees
19621 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
19622 attributes to find out what is the current status.
19623 </desc>
19624 </interface>
19625
19626 <interface
19627 name="IUSBControllerChangedEvent" extends="IEvent"
19628 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
19629 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
19630 >
19631 <desc>
19632 Notification when a property of the virtual
19633 <link to="IMachine::USBController">USB controller</link> changes.
19634 Interested callees should use IUSBController methods and attributes to
19635 find out what has changed.
19636 </desc>
19637 </interface>
19638
19639 <interface
19640 name="IUSBDeviceStateChangedEvent" extends="IEvent"
19641 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
19642 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
19643 >
19644 <desc>
19645 Notification when a USB device is attached to or detached from
19646 the virtual USB controller.
19647
19648 This notification is sent as a result of the indirect
19649 request to attach the device because it matches one of the
19650 machine USB filters, or as a result of the direct request
19651 issued by <link to="IConsole::attachUSBDevice"/> or
19652 <link to="IConsole::detachUSBDevice"/>.
19653
19654 This notification is sent in case of both a succeeded and a
19655 failed request completion. When the request succeeds, the
19656 @a error parameter is @c null, and the given device has been
19657 already added to (when @a attached is @c true) or removed from
19658 (when @a attached is @c false) the collection represented by
19659 <link to="IConsole::USBDevices"/>. On failure, the collection
19660 doesn't change and the @a error parameter represents the error
19661 message describing the failure.
19662 </desc>
19663 <attribute name="device" type="IUSBDevice" readonly="yes">
19664 <desc>
19665 Device that is subject to state change.
19666 </desc>
19667 </attribute>
19668 <attribute name="attached" type="boolean" readonly="yes">
19669 <desc>
19670 @c true if the device was attached and @c false otherwise.
19671 </desc>
19672 </attribute>
19673 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
19674 <desc>
19675 @c null on success or an error message object on failure.
19676 </desc>
19677 </attribute>
19678 </interface>
19679
19680 <interface
19681 name="ISharedFolderChangedEvent" extends="IEvent"
19682 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
19683 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
19684 >
19685 <desc>
19686 Notification when a shared folder is added or removed.
19687 The @a scope argument defines one of three scopes:
19688 <link to="IVirtualBox::sharedFolders">global shared folders</link>
19689 (<link to="Scope_Global">Global</link>),
19690 <link to="IMachine::sharedFolders">permanent shared folders</link> of
19691 the machine (<link to="Scope_Machine">Machine</link>) or <link
19692 to="IConsole::sharedFolders">transient shared folders</link> of the
19693 machine (<link to="Scope_Session">Session</link>). Interested callees
19694 should use query the corresponding collections to find out what has
19695 changed.
19696 </desc>
19697 <attribute name="scope" type="Scope" readonly="yes">
19698 <desc>
19699 Scope of the notification.
19700 </desc>
19701 </attribute>
19702 </interface>
19703
19704 <interface
19705 name="IRuntimeErrorEvent" extends="IEvent"
19706 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
19707 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
19708 >
19709 <desc>
19710 Notification when an error happens during the virtual
19711 machine execution.
19712
19713 There are three kinds of runtime errors:
19714 <ul>
19715 <li><i>fatal</i></li>
19716 <li><i>non-fatal with retry</i></li>
19717 <li><i>non-fatal warnings</i></li>
19718 </ul>
19719
19720 <b>Fatal</b> errors are indicated by the @a fatal parameter set
19721 to @c true. In case of fatal errors, the virtual machine
19722 execution is always paused before calling this notification, and
19723 the notification handler is supposed either to immediately save
19724 the virtual machine state using <link to="IConsole::saveState"/>
19725 or power it off using <link to="IConsole::powerDown"/>.
19726 Resuming the execution can lead to unpredictable results.
19727
19728 <b>Non-fatal</b> errors and warnings are indicated by the
19729 @a fatal parameter set to @c false. If the virtual machine
19730 is in the Paused state by the time the error notification is
19731 received, it means that the user can <i>try to resume</i> the machine
19732 execution after attempting to solve the problem that caused the
19733 error. In this case, the notification handler is supposed
19734 to show an appropriate message to the user (depending on the
19735 value of the @a id parameter) that offers several actions such
19736 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
19737 wants to retry, the notification handler should continue
19738 the machine execution using the <link to="IConsole::resume"/>
19739 call. If the machine execution is not Paused during this
19740 notification, then it means this notification is a <i>warning</i>
19741 (for example, about a fatal condition that can happen very soon);
19742 no immediate action is required from the user, the machine
19743 continues its normal execution.
19744
19745 Note that in either case the notification handler
19746 <b>must not</b> perform any action directly on a thread
19747 where this notification is called. Everything it is allowed to
19748 do is to post a message to another thread that will then talk
19749 to the user and take the corresponding action.
19750
19751 Currently, the following error identifiers are known:
19752 <ul>
19753 <li><tt>"HostMemoryLow"</tt></li>
19754 <li><tt>"HostAudioNotResponding"</tt></li>
19755 <li><tt>"VDIStorageFull"</tt></li>
19756 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
19757 </ul>
19758 </desc>
19759 <attribute name="fatal" type="boolean" readonly="yes">
19760 <desc>
19761 Whether the error is fatal or not.
19762 </desc>
19763 </attribute>
19764 <attribute name="id" type="wstring" readonly="yes">
19765 <desc>
19766 Error identifier.
19767 </desc>
19768 </attribute>
19769 <attribute name="message" type="wstring" readonly="yes">
19770 <desc>
19771 Optional error message.
19772 </desc>
19773 </attribute>
19774 </interface>
19775
19776
19777 <interface
19778 name="IEventSourceChangedEvent" extends="IEvent"
19779 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
19780 waitable="yes"
19781 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
19782 >
19783 <desc>
19784 Notification when an event source state changes (listener added or removed).
19785 </desc>
19786
19787 <attribute name="listener" type="IEventListener" readonly="yes">
19788 <desc>
19789 Event listener which has changed.
19790 </desc>
19791 </attribute>
19792
19793 <attribute name="add" type="boolean" readonly="yes">
19794 <desc>
19795 Flag whether listener was added or removed.
19796 </desc>
19797 </attribute>
19798 </interface>
19799
19800 <interface
19801 name="IExtraDataChangedEvent" extends="IEvent"
19802 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
19803 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
19804 >
19805 <desc>
19806 Notification when machine specific or global extra data
19807 has changed.
19808 </desc>
19809 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19810 <desc>
19811 ID of the machine this event relates to.
19812 Null for global extra data changes.
19813 </desc>
19814 </attribute>
19815 <attribute name="key" type="wstring" readonly="yes">
19816 <desc>
19817 Extra data key that has changed.
19818 </desc>
19819 </attribute>
19820 <attribute name="value" type="wstring" readonly="yes">
19821 <desc>
19822 Extra data value for the given key.
19823 </desc>
19824 </attribute>
19825 </interface>
19826
19827 <interface
19828 name="IVetoEvent" extends="IEvent"
19829 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
19830 wsmap="managed"
19831 >
19832 <desc>Base abstract interface for veto events.</desc>
19833
19834 <method name="addVeto">
19835 <desc>
19836 Adds a veto on this event.
19837 </desc>
19838 <param name="reason" type="wstring" dir="in">
19839 <desc>
19840 Reason for veto, could be null or empty string.
19841 </desc>
19842 </param>
19843 </method>
19844
19845 <method name="isVetoed">
19846 <desc>
19847 If this event was vetoed.
19848 </desc>
19849 <param name="result" type="boolean" dir="return">
19850 <desc>
19851 Reason for veto.
19852 </desc>
19853 </param>
19854 </method>
19855
19856 <method name="getVetos">
19857 <desc>
19858 Current veto reason list, if size is 0 - no veto.
19859 </desc>
19860 <param name="result" type="wstring" dir="return" safearray="yes">
19861 <desc>
19862 Array of reasons for veto provided by different event handlers.
19863 </desc>
19864 </param>
19865 </method>
19866
19867 </interface>
19868
19869 <interface
19870 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
19871 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
19872 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
19873 waitable="true"
19874 >
19875 <desc>
19876 Notification when someone tries to change extra data for
19877 either the given machine or (if @c null) global extra data.
19878 This gives the chance to veto against changes.
19879 </desc>
19880 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19881 <desc>
19882 ID of the machine this event relates to.
19883 Null for global extra data changes.
19884 </desc>
19885 </attribute>
19886 <attribute name="key" type="wstring" readonly="yes">
19887 <desc>
19888 Extra data key that has changed.
19889 </desc>
19890 </attribute>
19891 <attribute name="value" type="wstring" readonly="yes">
19892 <desc>
19893 Extra data value for the given key.
19894 </desc>
19895 </attribute>
19896 </interface>
19897
19898 <interface
19899 name="ICanShowWindowEvent" extends="IVetoEvent"
19900 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
19901 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
19902 waitable="true"
19903 >
19904 <desc>
19905 Notification when a call to
19906 <link to="IMachine::canShowConsoleWindow"/> is made by a
19907 front-end to check if a subsequent call to
19908 <link to="IMachine::showConsoleWindow"/> can succeed.
19909
19910 The callee should give an answer appropriate to the current
19911 machine state using event veto. This answer must
19912 remain valid at least until the next
19913 <link to="IConsole::state">machine state</link> change.
19914 </desc>
19915 </interface>
19916
19917 <interface
19918 name="IShowWindowEvent" extends="IEvent"
19919 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
19920 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
19921 waitable="true"
19922 >
19923 <desc>
19924 Notification when a call to
19925 <link to="IMachine::showConsoleWindow"/>
19926 requests the console window to be activated and brought to
19927 foreground on the desktop of the host PC.
19928
19929 This notification should cause the VM console process to
19930 perform the requested action as described above. If it is
19931 impossible to do it at a time of this notification, this
19932 method should return a failure.
19933
19934 Note that many modern window managers on many platforms
19935 implement some sort of focus stealing prevention logic, so
19936 that it may be impossible to activate a window without the
19937 help of the currently active application (which is supposedly
19938 an initiator of this notification). In this case, this method
19939 must return a non-zero identifier that represents the
19940 top-level window of the VM console process. The caller, if it
19941 represents a currently active process, is responsible to use
19942 this identifier (in a platform-dependent manner) to perform
19943 actual window activation.
19944
19945 This method must set @a winId to zero if it has performed all
19946 actions necessary to complete the request and the console
19947 window is now active and in foreground, to indicate that no
19948 further action is required on the caller's side.
19949 </desc>
19950 <attribute name="winId" type="long long">
19951 <desc>
19952 Platform-dependent identifier of the top-level VM console
19953 window, or zero if this method has performed all actions
19954 necessary to implement the <i>show window</i> semantics for
19955 the given platform and/or this VirtualBox front-end.
19956 </desc>
19957 </attribute>
19958 </interface>
19959
19960 <interface
19961 name="INATRedirectEvent" extends="IMachineEvent"
19962 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
19963 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
19964 >
19965 <desc>
19966 Notification when NAT redirect rule added or removed.
19967 </desc>
19968 <attribute name="slot" type="unsigned long" readonly="yes">
19969 <desc>
19970 Adapter which NAT attached to.
19971 </desc>
19972 </attribute>
19973 <attribute name="remove" type="boolean" readonly="yes">
19974 <desc>
19975 Whether rule remove or add.
19976 </desc>
19977 </attribute>
19978 <attribute name="name" type="wstring" readonly="yes">
19979 <desc>
19980 Name of the rule.
19981 </desc>
19982 </attribute>
19983 <attribute name="proto" type="NATProtocol" readonly="yes">
19984 <desc>
19985 Protocol (TCP or UDP) of the redirect rule.
19986 </desc>
19987 </attribute>
19988 <attribute name="hostIP" type="wstring" readonly="yes">
19989 <desc>
19990 Host ip address to bind socket on.
19991 </desc>
19992 </attribute>
19993 <attribute name="hostPort" type="long" readonly="yes">
19994 <desc>
19995 Host port to bind socket on.
19996 </desc>
19997 </attribute>
19998 <attribute name="guestIP" type="wstring" readonly="yes">
19999 <desc>
20000 Guest ip address to redirect to.
20001 </desc>
20002 </attribute>
20003 <attribute name="guestPort" type="long" readonly="yes">
20004 <desc>
20005 Guest port to redirect to.
20006 </desc>
20007 </attribute>
20008 </interface>
20009
20010 <interface
20011 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
20012 waitable="yes"
20013 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
20014 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
20015 >
20016 <desc>
20017 Notification when host PCI device is plugged/unplugged. Plugging
20018 usually takes place on VM startup, unplug - when
20019 <link to="IMachine::detachHostPCIDevice"/> is called.
20020
20021 <see><link to="IMachine::detachHostPCIDevice"/></see>
20022
20023 </desc>
20024
20025 <attribute name="plugged" type="boolean" readonly="yes">
20026 <desc>
20027 If device successfully plugged or unplugged.
20028 </desc>
20029 </attribute>
20030
20031 <attribute name="success" type="boolean" readonly="yes">
20032 <desc>
20033 If operation was successful, if false - 'message' attribute
20034 may be of interest.
20035 </desc>
20036 </attribute>
20037
20038 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
20039 <desc>
20040 Attachment info for this device.
20041 </desc>
20042 </attribute>
20043
20044 <attribute name="message" type="wstring" readonly="yes">
20045 <desc>
20046 Optional error message.
20047 </desc>
20048 </attribute>
20049
20050 </interface>
20051
20052 <interface
20053 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
20054 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
20055 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
20056 >
20057 <desc>
20058 Notification when VBoxSVC becomes unavailable (due to a crash or similar
20059 unexpected circumstances) or available again.
20060 </desc>
20061
20062 <attribute name="available" type="boolean" readonly="yes">
20063 <desc>
20064 Whether VBoxSVC is available now.
20065 </desc>
20066 </attribute>
20067 </interface>
20068
20069 <interface
20070 name="IBandwidthGroupChangedEvent" extends="IEvent"
20071 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
20072 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
20073 >
20074 <desc>
20075 Notification when one of the bandwidth groups changed
20076 </desc>
20077 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
20078 <desc>
20079 The changed bandwidth group.
20080 </desc>
20081 </attribute>
20082 </interface>
20083
20084 <enum
20085 name="GuestMonitorChangedEventType"
20086 uuid="ef172985-7e36-4297-95be-e46396968d66"
20087 >
20088
20089 <desc>
20090 How the guest monitor has been changed.
20091 </desc>
20092
20093 <const name="Enabled" value="0">
20094 <desc>
20095 The guest monitor has been enabled by the guest.
20096 </desc>
20097 </const>
20098
20099 <const name="Disabled" value="1">
20100 <desc>
20101 The guest monitor has been disabled by the guest.
20102 </desc>
20103 </const>
20104
20105 <const name="NewOrigin" value="2">
20106 <desc>
20107 The guest monitor origin has changed in the guest.
20108 </desc>
20109 </const>
20110 </enum>
20111
20112 <interface
20113 name="IGuestMonitorChangedEvent" extends="IEvent"
20114 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
20115 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
20116 >
20117 <desc>
20118 Notification when the guest enables one of its monitors.
20119 </desc>
20120
20121 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
20122 <desc>
20123 What was changed for this guest monitor.
20124 </desc>
20125 </attribute>
20126
20127 <attribute name="screenId" type="unsigned long" readonly="yes">
20128 <desc>
20129 The monitor which was changed.
20130 </desc>
20131 </attribute>
20132
20133 <attribute name="originX" type="unsigned long" readonly="yes">
20134 <desc>
20135 Physical X origin relative to the primary screen.
20136 Valid for Enabled and NewOrigin.
20137 </desc>
20138 </attribute>
20139
20140 <attribute name="originY" type="unsigned long" readonly="yes">
20141 <desc>
20142 Physical Y origin relative to the primary screen.
20143 Valid for Enabled and NewOrigin.
20144 </desc>
20145 </attribute>
20146
20147 <attribute name="width" type="unsigned long" readonly="yes">
20148 <desc>
20149 Width of the screen.
20150 Valid for Enabled.
20151 </desc>
20152 </attribute>
20153
20154 <attribute name="height" type="unsigned long" readonly="yes">
20155 <desc>
20156 Height of the screen.
20157 Valid for Enabled.
20158 </desc>
20159 </attribute>
20160
20161 </interface>
20162
20163 <interface
20164 name="IStorageDeviceChangedEvent" extends="IEvent"
20165 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
20166 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
20167 >
20168 <desc>
20169 Notification when a
20170 <link to="IMachine::mediumAttachments">storage device</link>
20171 is attached or removed.
20172 </desc>
20173 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
20174 <desc>
20175 Storage device that is subject to change.
20176 </desc>
20177 </attribute>
20178 <attribute name="removed" type="boolean" readonly="yes">
20179 <desc>
20180 Flag whether the device was removed or added to the VM.
20181 </desc>
20182 </attribute>
20183 </interface>
20184
20185 <module name="VBoxSVC" context="LocalServer">
20186 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
20187 namespace="virtualbox.org">
20188 <interface name="IVirtualBox" default="yes"/>
20189 </class>
20190 </module>
20191
20192 <module name="VBoxC" context="InprocServer" threadingModel="Free">
20193 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
20194 namespace="virtualbox.org">
20195 <interface name="IVirtualBoxClient" default="yes"/>
20196 </class>
20197
20198 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
20199 namespace="virtualbox.org">
20200 <interface name="ISession" default="yes"/>
20201 </class>
20202 </module>
20203
20204</library>
20205
20206</idl>
20207
20208<!-- 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