VirtualBox

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

Last change on this file since 17149 was 17099, checked in by vboxsync, 16 years ago

OVF: appliance export, initial code.

  • Property svn:eol-style set to native
File size: 472.0 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, <tt>NULL</tt>). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="MachineState"
363 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
364 >
365 <desc>
366 Virtual machine execution state.
367
368 This enumeration represents possible values of the <link
369 to="IMachine::state"/> attribute.
370
371 Below is the basic virtual machine state diagram. It shows how the state
372 changes during virtual machine execution. The text in square braces shows
373 a method of the IConsole interface that performs the given state
374 transition.
375
376 <pre>
377 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
378 V |
379 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
380 | | | | V |
381 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
382 | | ^ | ^ |
383 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
384 | ^ | | | |
385 | | +-----------------------------------------+-|-------------------+ +
386 | | | | |
387 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
388 | | | |
389 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
390 | | |
391 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
392 </pre>
393
394 Note that states to the right from PoweredOff, Aborted and Saved in the
395 above diagram are called <i>online VM states</i>. These states
396 represent the virtual machine which is being executed in a dedicated
397 process (usually with a GUI window attached to it where you can see the
398 activity of the virtual machine and interact with it). There are two
399 special pseudo-states, FirstOnline and LastOnline, that can be used in
400 relational expressions to detect if the given machine state is online or
401 not:
402
403 <pre>
404 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
405 machine.GetState() &lt;= MachineState_LastOnline)
406 {
407 ...the machine is being executed...
408 }
409 </pre>
410
411 When the virtual machine is in one of the online VM states (that is, being
412 executed), only a few machine settings can be modified. Methods working
413 with such settings contain an explicit note about that. An attempt to
414 change any oter setting or perform a modifying operation during this time
415 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
416
417 All online states except Running, Paused and Stuck are transitional: they
418 represent temporary conditions of the virtual machine that will last as
419 long as the operation that initiated such a condition.
420
421 The Stuck state is a special case. It means that execution of the machine
422 has reached the "Guru Meditation" condition. This condition indicates an
423 internal VMM (virtual machine manager) failure which may happen as a
424 result of either an unhandled low-level virtual hardware exception or one
425 of the recompiler exceptions (such as the <i>too-many-traps</i>
426 condition).
427
428 Note also that any online VM state may transit to the Aborted state. This
429 happens if the process that is executing the virtual machine terminates
430 unexpectedly (for example, crashes). Other than that, the Aborted state is
431 equivalent to PoweredOff.
432
433 There are also a few additional state diagrams that do not deal with
434 virtual machine execution and therefore are shown separately. The states
435 shown on these diagrams are called <i>offline VM states</i> (this includes
436 PoweredOff, Aborted and Saved too).
437
438 The first diagram shows what happens when a lengthy setup operation is
439 being executed (such as <link to="IMachine::attachHardDisk"/>).
440
441 <pre>
442 +-----------------------------------(same sate as before the call)------+
443 | |
444 +-&gt; PoweredOff --+ |
445 | | |
446 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
447 | |
448 +-&gt; Saved -------+
449 </pre>
450
451 The next two diagrams demonstrate the process of taking a snapshot of a
452 powered off virtual machine and performing one of the "discard..."
453 operations, respectively.
454
455 <pre>
456 +-----------------------------------(same sate as before the call)------+
457 | |
458 +-&gt; PoweredOff --+ |
459 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
460 +-&gt; Aborted -----+
461
462 +-&gt; PoweredOff --+
463 | |
464 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
465 | | [discardCurrentState()] |
466 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
467 | |
468 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
469 </pre>
470
471 Note that the Saving state is present in both the offline state group and
472 online state group. Currently, the only way to determine what group is
473 assumed in a particular case is to remember the previous machine state: if
474 it was Running or Paused, then Saving is an online state, otherwise it is
475 an offline state. This inconsistency may be removed in one of the future
476 versions of VirtualBox by adding a new state.
477
478 <note internal="yes">
479 For whoever decides to touch this enum: In order to keep the
480 comparisons involving FirstOnline and LastOnline pseudo-states valid,
481 the numeric values of these states must be correspondingly updated if
482 needed: for any online VM state, the condition
483 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
484 <tt>true</tt>. The same relates to transient states for which
485 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
486 <tt>true</tt>.
487 </note>
488 </desc>
489
490 <const name="Null" value="0">
491 <desc>Null value (nver used by the API).</desc>
492 </const>
493 <const name="PoweredOff" value="1">
494 <desc>
495 The machine is not running.
496 </desc>
497 </const>
498 <const name="Saved" value="2">
499 <desc>
500 The machine is not currently running, but the execution state of the machine
501 has been saved to an external file when it was running.
502 </desc>
503 </const>
504 <const name="Aborted" value="3">
505 <desc>
506 The process running the machine has terminated abnormally.
507 </desc>
508 </const>
509 <const name="Running" value="4">
510 <desc>
511 The machine is currently being executed.
512 <note internal="yes">
513 For whoever decides to touch this enum: In order to keep the
514 comparisons in the old source code valid, this state must immediately
515 precede the Paused state.
516 </note>
517 </desc>
518 </const>
519 <const name="Paused" value="5">
520 <desc>
521 Execution of the machine has been paused.
522 <note internal="yes">
523 For whoever decides to touch this enum: In order to keep the
524 comparisons in the old source code valid, this state must immediately
525 follow the Running state.
526 </note>
527 </desc>
528 </const>
529 <const name="Stuck" value="6">
530 <desc>
531 Execution of the machine has reached the "Guru Meditation"
532 condition.
533 </desc>
534 </const>
535 <const name="Starting" value="7">
536 <desc>
537 Machine is being started after powering it on from a
538 zero execution state.
539 </desc>
540 </const>
541 <const name="Stopping" value="8">
542 <desc>
543 Machine is being normally stopped powering it off, or after the guest OS
544 has initiated a shutdown sequence.
545 </desc>
546 </const>
547 <const name="Saving" value="9">
548 <desc>
549 Machine is saving its execution state to a file or an online
550 snapshot of the machine is being taken.
551 </desc>
552 </const>
553 <const name="Restoring" value="10">
554 <desc>
555 Execution state of the machine is being restored from a file
556 after powering it on from the saved execution state.
557 </desc>
558 </const>
559 <const name="Discarding" value="11">
560 <desc>
561 Snapshot of the machine is being discarded.
562 </desc>
563 </const>
564 <const name="SettingUp" value="12">
565 <desc>
566 Lengthy setup operation is in progress.
567 </desc>
568 </const>
569
570 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
571 <desc>
572 Pseudo-state: first online state (for use in relational expressions).
573 </desc>
574 </const>
575 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
576 <desc>
577 Pseudo-state: last online state (for use in relational expressions).
578 </desc>
579 </const>
580
581 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
582 <desc>
583 Pseudo-state: first transient state (for use in relational expressions).
584 </desc>
585 </const>
586 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
587 <desc>
588 Pseudo-state: last transient state (for use in relational expressions).
589 </desc>
590 </const>
591
592 </enum>
593
594 <enum
595 name="SessionState"
596 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
597 >
598 <desc>
599 Session state. This enumeration represents possible values of
600 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
601 attributes. See individual enumerator descriptions for the meaning for
602 every value.
603 </desc>
604
605 <const name="Null" value="0">
606 <desc>Null value (never used by the API).</desc>
607 </const>
608 <const name="Closed" value="1">
609 <desc>
610 The machine has no open sessions (<link to="IMachine::sessionState"/>);
611 the session is closed (<link to="ISession::state"/>)
612 </desc>
613 </const>
614 <const name="Open" value="2">
615 <desc>
616 The machine has an open direct session (<link to="IMachine::sessionState"/>);
617 the session is open (<link to="ISession::state"/>)
618 </desc>
619 </const>
620 <const name="Spawning" value="3">
621 <desc>
622 A new (direct) session is being opened for the machine
623 as a result of <link to="IVirtualBox::openRemoteSession"/>
624 call (<link to="IMachine::sessionState"/>);
625 the session is currently being opened
626 as a result of <link to="IVirtualBox::openRemoteSession"/>
627 call (<link to="ISession::state"/>)
628 </desc>
629 </const>
630 <const name="Closing" value="4">
631 <desc>
632 The direct session is being closed (<link to="IMachine::sessionState"/>);
633 the session is being closed (<link to="ISession::state"/>)
634 </desc>
635 </const>
636 </enum>
637
638 <enum
639 name="SessionType"
640 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
641 >
642 <desc>
643 Session type. This enumeration represents possible values of the
644 <link to="ISession::type"/> attribute.
645 </desc>
646
647 <const name="Null" value="0">
648 <desc>Null value (never used by the API).</desc>
649 </const>
650 <const name="Direct" value="1">
651 <desc>
652 Direct session
653 (opened by <link to="IVirtualBox::openSession"/>)
654 </desc>
655 </const>
656 <const name="Remote" value="2">
657 <desc>
658 Remote session
659 (opened by <link to="IVirtualBox::openRemoteSession"/>)
660 </desc>
661 </const>
662 <const name="Existing" value="3">
663 <desc>
664 Existing session
665 (opened by <link to="IVirtualBox::openExistingSession"/>)
666 </desc>
667 </const>
668 </enum>
669
670 <enum
671 name="DeviceType"
672 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
673 >
674 <desc>
675 Device type.
676 </desc>
677 <const name="Null" value="0">
678 <desc>
679 Null value, may also mean "no device" (not allowed for
680 <link to="IConsole::getDeviceActivity"/>).
681 </desc>
682 </const>
683 <const name="Floppy" value="1">
684 <desc>Floppy device.</desc>
685 </const>
686 <const name="DVD" value="2">
687 <desc>CD/DVD-ROM device.</desc>
688 </const>
689 <const name="HardDisk" value="3">
690 <desc>Hard disk device.</desc>
691 </const>
692 <const name="Network" value="4">
693 <desc>Network device.</desc>
694 </const>
695 <const name="USB" value="5">
696 <desc>USB device.</desc>
697 </const>
698 <const name="SharedFolder" value="6">
699 <desc>Shared folder device.</desc>
700 </const>
701 </enum>
702
703 <enum
704 name="DeviceActivity"
705 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
706 >
707 <desc>
708 Device activity for <link to="IConsole::getDeviceActivity"/>.
709 </desc>
710
711 <const name="Null" value="0"/>
712 <const name="Idle" value="1"/>
713 <const name="Reading" value="2"/>
714 <const name="Writing" value="3"/>
715 </enum>
716
717 <enum
718 name="StorageBus"
719 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
720 >
721 <desc>Interface bus type for storage devices.</desc>
722
723 <const name="Null" value="0">
724 <desc>Null value (never used by the API).</desc>
725 </const>
726
727 <const name="IDE" value="1"/>
728 <const name="SATA" value="2"/>
729 </enum>
730
731 <enum
732 name="ClipboardMode"
733 uuid="33364716-4008-4701-8f14-be0fa3d62950"
734 >
735 <desc>
736 Host-Guest clipboard interchange mode.
737 </desc>
738
739 <const name="Disabled" value="0"/>
740 <const name="HostToGuest" value="1"/>
741 <const name="GuestToHost" value="2"/>
742 <const name="Bidirectional" value="3"/>
743 </enum>
744
745 <enum
746 name="Scope"
747 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
748 >
749 <desc>
750 Scope of the operation.
751
752 A generic enumeration used in various methods to define the action or
753 argument scope.
754 </desc>
755
756 <const name="Global" value="0"/>
757 <const name="Machine" value="1"/>
758 <const name="Session" value="2"/>
759 </enum>
760
761 <enum
762 name="GuestStatisticType"
763 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
764 >
765 <desc>
766 Statistics type for <link to="IGuest::getStatistic"/>.
767 </desc>
768
769 <const name="CPULoad_Idle" value="0">
770 <desc>
771 Idle CPU load (0-100%) for last interval.
772 </desc>
773 </const>
774 <const name="CPULoad_Kernel" value="1">
775 <desc>
776 Kernel CPU load (0-100%) for last interval.
777 </desc>
778 </const>
779 <const name="CPULoad_User" value="2">
780 <desc>
781 User CPU load (0-100%) for last interval.
782 </desc>
783 </const>
784 <const name="Threads" value="3">
785 <desc>
786 Total number of threads in the system.
787 </desc>
788 </const>
789 <const name="Processes" value="4">
790 <desc>
791 Total number of processes in the system.
792 </desc>
793 </const>
794 <const name="Handles" value="5">
795 <desc>
796 Total number of handles in the system.
797 </desc>
798 </const>
799 <const name="MemoryLoad" value="6">
800 <desc>
801 Memory load (0-100%).
802 </desc>
803 </const>
804 <const name="PhysMemTotal" value="7">
805 <desc>
806 Total physical memory in megabytes.
807 </desc>
808 </const>
809 <const name="PhysMemAvailable" value="8">
810 <desc>
811 Free physical memory in megabytes.
812 </desc>
813 </const>
814 <const name="PhysMemBalloon" value="9">
815 <desc>
816 Ballooned physical memory in megabytes.
817 </desc>
818 </const>
819 <const name="MemCommitTotal" value="10">
820 <desc>
821 Total amount of memory in the committed state in megabytes.
822 </desc>
823 </const>
824 <const name="MemKernelTotal" value="11">
825 <desc>
826 Total amount of memory used by the guest OS's kernel in megabytes.
827 </desc>
828 </const>
829 <const name="MemKernelPaged" value="12">
830 <desc>
831 Total amount of paged memory used by the guest OS's kernel in megabytes.
832 </desc>
833 </const>
834 <const name="MemKernelNonpaged" value="13">
835 <desc>
836 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
837 </desc>
838 </const>
839 <const name="MemSystemCache" value="14">
840 <desc>
841 Total amount of memory used by the guest OS's system cache in megabytes.
842 </desc>
843 </const>
844 <const name="PageFileSize" value="15">
845 <desc>
846 Pagefile size in megabytes.
847 </desc>
848 </const>
849 <const name="SampleNumber" value="16">
850 <desc>
851 Statistics sample number
852 </desc>
853 </const>
854 <const name="MaxVal" value="17"/>
855 </enum>
856
857 <enum
858 name="BIOSBootMenuMode"
859 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
860 >
861 <desc>
862 BIOS boot menu mode.
863 </desc>
864
865 <const name="Disabled" value="0"/>
866 <const name="MenuOnly" value="1"/>
867 <const name="MessageAndMenu" value="2"/>
868 </enum>
869
870 <enum
871 name="IDEControllerType"
872 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
873 >
874 <desc>
875 IDE controller type.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="PIIX3" value="1"/>
882 <const name="PIIX4" value="2"/>
883 <const name="ICH6" value="3"/>
884 </enum>
885
886 <enum
887 name="DriveState"
888 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
889 >
890 <const name="Null" value="0">
891 <desc>Null value (never used by the API).</desc>
892 </const>
893 <const name="NotMounted" value="1"/>
894 <const name="ImageMounted" value="2"/>
895 <const name="HostDriveCaptured" value="3"/>
896 </enum>
897
898 <enum
899 name="ProcessorFeature"
900 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
901 >
902 <desc>
903 CPU features.
904 </desc>
905
906 <const name="HWVirtEx" value="0"/>
907 <const name="PAE" value="1"/>
908 <const name="LongMode" value="2"/>
909 </enum>
910
911
912 <!--
913 // IVirtualBoxErrorInfo
914 /////////////////////////////////////////////////////////////////////////
915 -->
916
917 <interface
918 name="IVirtualBoxErrorInfo" extends="$errorinfo"
919 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
920 supportsErrorInfo="no"
921 wsmap="suppress"
922 >
923 <desc>
924 The IVirtualBoxErrorInfo interface represents extended error information.
925
926 Extended error information can be set by VirtualBox components after
927 unsuccessful or partially successful method invocation. This information
928 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
929 and then shown to the client in addition to the plain 32-bit result code.
930
931 In MS COM, this interface extends the IErrorInfo interface,
932 in XPCOM, it extends the nsIException interface. In both cases,
933 it provides a set of common attributes to retrieve error
934 information.
935
936 Sometimes invocation of some component's method may involve methods of
937 other components that may also fail (independently of this method's
938 failure), or a series of non-fatal errors may precede a fatal error that
939 causes method failure. In cases like that, it may be desirable to preserve
940 information about all errors happened during method invocation and deliver
941 it to the caller. The <link to="#next"/> attribute is intended
942 specifically for this purpose and allows to represent a chain of errors
943 through a single IVirtualBoxErrorInfo object set after method invocation.
944
945 Note that errors are stored to a chain in the reverse order, i.e. the
946 initial error object you query right after method invocation is the last
947 error set by the callee, the object it points to in the @a next attribute
948 is the previous error and so on, up to the first error (which is the last
949 in the chain).
950 </desc>
951
952 <attribute name="resultCode" type="result" readonly="yes">
953 <desc>
954 Result code of the error.
955 Usually, it will be the same as the result code returned
956 by the method that provided this error information, but not
957 always. For example, on Win32, CoCreateInstance() will most
958 likely return E_NOINTERFACE upon unsuccessful component
959 instantiation attempt, but not the value the component factory
960 returned.
961 <note>
962 In MS COM, there is no equivalent.
963 In XPCOM, it is the same as nsIException::result.
964 </note>
965 </desc>
966 </attribute>
967
968 <attribute name="interfaceID" type="uuid" readonly="yes">
969 <desc>
970 UUID of the interface that defined the error.
971 <note>
972 In MS COM, it is the same as IErrorInfo::GetGUID.
973 In XPCOM, there is no equivalent.
974 </note>
975 </desc>
976 </attribute>
977
978 <attribute name="component" type="wstring" readonly="yes">
979 <desc>
980 Name of the component that generated the error.
981 <note>
982 In MS COM, it is the same as IErrorInfo::GetSource.
983 In XPCOM, there is no equivalent.
984 </note>
985 </desc>
986 </attribute>
987
988 <attribute name="text" type="wstring" readonly="yes">
989 <desc>
990 Text description of the error.
991 <note>
992 In MS COM, it is the same as IErrorInfo::GetDescription.
993 In XPCOM, it is the same as nsIException::message.
994 </note>
995 </desc>
996 </attribute>
997
998 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
999 <desc>
1000 Next error object if there is any, or @c null otherwise.
1001 <note>
1002 In MS COM, there is no equivalent.
1003 In XPCOM, it is the same as nsIException::inner.
1004 </note>
1005 </desc>
1006 </attribute>
1007
1008 </interface>
1009
1010
1011 <!--
1012 // IVirtualBox
1013 /////////////////////////////////////////////////////////////////////////
1014 -->
1015
1016 <interface
1017 name="IVirtualBoxCallback" extends="$unknown"
1018 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
1019 wsmap="suppress"
1020 >
1021 <method name="onMachineStateChange">
1022 <desc>
1023 The execution state of the given machine has changed.
1024 <see>IMachine::state</see>
1025 </desc>
1026 <param name="machineId" type="uuid" dir="in">
1027 <desc>ID of the machine this event relates to.</desc>
1028 </param>
1029 <param name="state" type="MachineState" dir="in">
1030 <desc>New execution state.</desc>
1031 </param>
1032 </method>
1033
1034 <method name="onMachineDataChange">
1035 <desc>
1036 Any of the settings of the given machine has changed.
1037 </desc>
1038 <param name="machineId" type="uuid" dir="in">
1039 <desc>ID of the machine this event relates to.</desc>
1040 </param>
1041 </method>
1042
1043 <method name="onExtraDataCanChange">
1044 <desc>
1045 Notification when someone tries to change extra data for
1046 either the given machine or (if null) global extra data.
1047 This gives the chance to veto against changes.
1048 </desc>
1049 <param name="machineId" type="uuid" dir="in">
1050 <desc>
1051 ID of the machine this event relates to
1052 (null ID for global extra data change requests).
1053 </desc>
1054 </param>
1055 <param name="key" type="wstring" dir="in">
1056 <desc>
1057 Extra data key for the attempted write.
1058 </desc>
1059 </param>
1060 <param name="value" type="wstring" dir="in">
1061 <desc>
1062 Extra data value for the given key.
1063 </desc>
1064 </param>
1065 <param name="error" type="wstring" dir="out">
1066 <desc>
1067 Optional error message describing the reason of the
1068 veto (ignored if this notification returns @c true).
1069 </desc>
1070 </param>
1071 <param name="allowChange" type="boolean" dir="return">
1072 <desc>
1073 Flag to indicate whether the callee agrees (@c true)
1074 or vetoes against the change (@c false).
1075 </desc>
1076 </param>
1077 </method>
1078
1079 <method name="onExtraDataChange">
1080 <desc>
1081 Notification when machine specific or global extra data
1082 has changed.
1083 </desc>
1084 <param name="machineId" type="uuid" dir="in">
1085 <desc>
1086 ID of the machine this event relates to.
1087 Null for global extra data changes.
1088 </desc>
1089 </param>
1090 <param name="key" type="wstring" dir="in">
1091 <desc>
1092 Extra data key that has changed.
1093 </desc>
1094 </param>
1095 <param name="value" type="wstring" dir="in">
1096 <desc>
1097 Extra data value for the given key.
1098 </desc>
1099 </param>
1100 </method>
1101
1102 <method name="onMediaRegistered">
1103 <desc>
1104 The given media was registered or unregistered
1105 within this VirtualBox installation.
1106
1107 The @a mediaType parameter describes what type of
1108 media the specified @a mediaId refers to. Possible
1109 values are:
1110
1111 <ul>
1112 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1113 that, if registered, can be obtained using the
1114 <link to="IVirtualBox::getHardDisk"/> call.</li>
1115 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1116 that, if registered, can be obtained using the
1117 <link to="IVirtualBox::getDVDImage"/> call.</li>
1118 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1119 that, if registered, can be obtained using the
1120 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1121 </ul>
1122
1123 Note that if this is a deregistration notification,
1124 there is no way to access the object representing the
1125 unregistered media. It is supposed that the
1126 application will do required cleanup based on the
1127 @a mediaId value.
1128 </desc>
1129 <param name="mediaId" type="uuid" dir="in">
1130 <desc>ID of the media this event relates to.</desc>
1131 </param>
1132 <param name="mediaType" type="DeviceType" dir="in">
1133 <desc>Type of the media this event relates to.</desc>
1134 </param>
1135 <param name="registered" type="boolean" dir="in">
1136 <desc>
1137 If true, the media was registered, otherwise it was
1138 unregistered.
1139 </desc>
1140 </param>
1141 </method>
1142
1143 <method name="onMachineRegistered">
1144 <desc>
1145 The given machine was registered or unregistered
1146 within this VirtualBox installation.
1147 </desc>
1148 <param name="machineId" type="uuid" dir="in">
1149 <desc>ID of the machine this event relates to.</desc>
1150 </param>
1151 <param name="registered" type="boolean" dir="in">
1152 <desc>
1153 If true, the machine was registered, otherwise it was
1154 unregistered.
1155 </desc>
1156 </param>
1157 </method>
1158
1159 <method name="onSessionStateChange">
1160 <desc>
1161 The state of the session for the given machine was changed.
1162 <see>IMachine::sessionState</see>
1163 </desc>
1164 <param name="machineId" type="uuid" dir="in">
1165 <desc>ID of the machine this event relates to.</desc>
1166 </param>
1167 <param name="state" type="SessionState" dir="in">
1168 <desc>New session state.</desc>
1169 </param>
1170 </method>
1171
1172 <method name="onSnapshotTaken">
1173 <desc>
1174 A new snapshot of the machine has been taken.
1175 <see>ISnapshot</see>
1176 </desc>
1177 <param name="machineId" type="uuid" dir="in">
1178 <desc>ID of the machine this event relates to.</desc>
1179 </param>
1180 <param name="snapshotId" type="uuid" dir="in">
1181 <desc>ID of the new snapshot.</desc>
1182 </param>
1183 </method>
1184
1185 <method name="onSnapshotDiscarded">
1186 <desc>
1187 Snapshot of the given machine has been discarded.
1188
1189 <note>
1190 This notification is delivered <b>after</b> the snapshot
1191 object has been uninitialized on the server (so that any
1192 attempt to call its methods will return an error).
1193 </note>
1194
1195 <see>ISnapshot</see>
1196 </desc>
1197 <param name="machineId" type="uuid" dir="in">
1198 <desc>ID of the machine this event relates to.</desc>
1199 </param>
1200 <param name="snapshotId" type="uuid" dir="in">
1201 <desc>
1202 ID of the discarded snapshot. <tt>null</tt> means the
1203 current machine state has been discarded (restored from
1204 the current snapshot).
1205 </desc>
1206 </param>
1207 </method>
1208
1209 <method name="onSnapshotChange">
1210 <desc>
1211 Snapshot properties (name and/or description) have been changed.
1212 <see>ISnapshot</see>
1213 </desc>
1214 <param name="machineId" type="uuid" dir="in">
1215 <desc>ID of the machine this event relates to.</desc>
1216 </param>
1217 <param name="snapshotId" type="uuid" dir="in">
1218 <desc>ID of the changed snapshot.</desc>
1219 </param>
1220 </method>
1221
1222 <method name="onGuestPropertyChange">
1223 <desc>
1224 Notification when a guest property has changed.
1225 </desc>
1226 <param name="machineId" type="uuid" dir="in">
1227 <desc>
1228 ID of the machine this event relates to.
1229 </desc>
1230 </param>
1231 <param name="name" type="wstring" dir="in">
1232 <desc>
1233 The name of the property that has changed.
1234 </desc>
1235 </param>
1236 <param name="value" type="wstring" dir="in">
1237 <desc>
1238 The new property value.
1239 </desc>
1240 </param>
1241 <param name="flags" type="wstring" dir="in">
1242 <desc>
1243 The new property flags.
1244 </desc>
1245 </param>
1246 </method>
1247
1248 </interface>
1249
1250 <interface
1251 name="IVirtualBox" extends="$dispatched"
1252 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1253 wsmap="managed"
1254 >
1255 <desc>
1256 The IVirtualBox interface represents the main interface exposed by the
1257 product that provides virtual machine management.
1258
1259 An instance of IVirtualBox is required for the product to do anything
1260 useful. Even though the interface does not expose this, internally,
1261 IVirtualBox is implemented as a singleton and actually lives in the
1262 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1263 IVirtualBox can track the state of all virtual machines on a particular
1264 host, regardless of which frontend started them.
1265
1266 To enumerate all the virtual machines on the host, use the
1267 <link to="IVirtualBox::machines2"/> attribute.
1268 </desc>
1269
1270 <attribute name="version" type="wstring" readonly="yes">
1271 <desc>
1272 A string representing the version number of the product. The
1273 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1274 last number represents the build number and will frequently change.
1275 </desc>
1276 </attribute>
1277
1278 <attribute name="revision" type="unsigned long" readonly="yes">
1279 <desc>
1280 The internal build revision number of the product.
1281 </desc>
1282 </attribute>
1283
1284 <attribute name="packageType" type="wstring" readonly="yes">
1285 <desc>
1286 A string representing the package type of this product. The
1287 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1288 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1289 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1290 this.
1291 </desc>
1292 </attribute>
1293
1294 <attribute name="homeFolder" type="wstring" readonly="yes">
1295 <desc>
1296 Full path to the directory where the global settings file,
1297 <tt>VirtualBox.xml</tt>, is stored.
1298
1299 In this version of VirtualBox, the value of this property is
1300 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1301 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1302 as determined by the host OS), and cannot be changed.
1303
1304 This path is also used as the base to resolve relative paths in
1305 places where relative paths are allowed (unless otherwise
1306 expressly indicated).
1307 </desc>
1308 </attribute>
1309
1310 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1311 <desc>
1312 Full name of the global settings file.
1313 The value of this property corresponds to the value of
1314 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1315 </desc>
1316 </attribute>
1317
1318 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1319 <desc>
1320 Current version of the format of the global VirtualBox settings file
1321 (<tt>VirtualBox.xml</tt>).
1322
1323 The version string has the following format:
1324 <pre>
1325 x.y-platform
1326 </pre>
1327 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1328 versions, and <tt>platform</tt> is the platform identifier.
1329
1330 The current version usually matches the value of the
1331 <link to="#settingsFormatVersion"/> attribute unless the
1332 settings file was created by an older version of VirtualBox and there
1333 was a change of the settings file format since then.
1334
1335 Note that VirtualBox automatically converts settings files from older
1336 versions to the most recent version when reading them (usually at
1337 VirtualBox startup) but it doesn't save the changes back until
1338 you call a method that implicitly saves settings (such as
1339 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1340 explicitly. Therefore, if the value of this attribute differs from the
1341 value of <link to="#settingsFormatVersion"/>, then it
1342 means that the settings file was converted but the result of the
1343 conversion is not yet saved to disk.
1344
1345 The above feature may be used by interactive front-ends to inform users
1346 about the settings file format change and offer them to explicitly save
1347 all converted settings files (the global and VM-specific ones),
1348 optionally create backup copies of the old settings files before saving,
1349 etc.
1350
1351 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1356 <desc>
1357 Most recent version of the settings file format.
1358
1359 The version string has the following format:
1360 <pre>
1361 x.y-platform
1362 </pre>
1363 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1364 versions, and <tt>platform</tt> is the platform identifier.
1365
1366 VirtualBox uses this version of the format when saving settings files
1367 (either as a result of method calls that require to save settings or as
1368 a result of an explicit call to <link to="#saveSettings"/>).
1369
1370 <see>settingsFileVersion</see>
1371 </desc>
1372 </attribute>
1373
1374 <attribute name="host" type="IHost" readonly="yes">
1375 <desc>Associated host object.</desc>
1376 </attribute>
1377
1378 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1379 <desc>Associated system information object.</desc>
1380 </attribute>
1381
1382 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1383 <desc>
1384 Array of machine objects registered within this VirtualBox instance.
1385 </desc>
1386 </attribute>
1387
1388 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1389 <desc>
1390 Array of hard disk objects known to this VirtualBox installation.
1391
1392 This array contains only base (root) hard disks. All differencing
1393 hard disks of the given base hard disk can be enumerated using
1394 <link to="IHardDisk::children"/>.
1395 </desc>
1396 </attribute>
1397
1398 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1399 <desc>
1400 Array of CD/DVD image objects registered with this VirtualBox instance.
1401 </desc>
1402 </attribute>
1403
1404 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1405 <desc>
1406 Array of floppy image objects registered with this VirtualBox instance.
1407 </desc>
1408 </attribute>
1409
1410 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1411
1412 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1413
1414 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1415 <desc>
1416 Collection of global shared folders. Global shared folders are
1417 available to all virtual machines.
1418
1419 New shared folders are added to the collection using
1420 <link to="#createSharedFolder"/>. Existing shared folders can be
1421 removed using <link to="#removeSharedFolder"/>.
1422
1423 <note>
1424 In the current version of the product, global shared folders are not
1425 implemented and therefore this collection is always empty.
1426 </note>
1427 </desc>
1428 </attribute>
1429
1430 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1431 <desc>
1432 Associated performance collector object.
1433 </desc>
1434 </attribute>
1435
1436 <method name="createMachine">
1437 <desc>
1438 Creates a new virtual machine.
1439
1440 The new machine is created unregistered, with the initial configuration
1441 set according to the specified guest OS type. A typical sequence of
1442 actions to create a new virtual machine is as follows:
1443
1444 <ol>
1445 <li>
1446 Call this method to have a new machine created. The returned machine
1447 object will be "mutable" allowing to change any machine property.
1448 </li>
1449
1450 <li>
1451 Configure the machine using the appropriate attributes and methods.
1452 </li>
1453
1454 <li>
1455 Call <link to="IMachine::saveSettings" /> to write the settings
1456 to the machine's XML settings file. The configuration of the newly
1457 created machine will not be saved to disk until this method is
1458 called.
1459 </li>
1460
1461 <li>
1462 Call <link to="#registerMachine" /> to add the machine to the list
1463 of machines known to VirtualBox.
1464 </li>
1465 </ol>
1466
1467 You should specify valid name for the newly created machine when calling
1468 this method. See the <link to="IMachine::name"/> attribute description
1469 for more details about the machine name.
1470
1471 The specified guest OS type identifier must match an ID of one of known
1472 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1473 array.
1474
1475 Every machine has a <i>settings file</i> that is used to store
1476 the machine configuration. This file is stored in a directory called the
1477 <i>machine settings subfolder</i>. Both the settings subfolder and file
1478 will have a name that corresponds to the name of the virtual machine.
1479 You can specify where to create the machine setting subfolder using the
1480 @a baseFolder argument. The base folder can be absolute (full path) or
1481 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1482 directory</link>.
1483
1484 If @a baseFolder is a null or empty string (which is recommended), the
1485 <link to="ISystemProperties::defaultMachineFolder">default machine
1486 settings folder</link> will be used as a base folder for the created
1487 machine. Otherwise the given base folder will be used. In either case,
1488 the full path to the resulting settings file has the following
1489 structure:
1490 <pre>
1491 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1492 </pre>
1493
1494 Note that if the resulting settings file already exists, this method
1495 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1496
1497 Optionally, you may specify an UUID of to assign to the created machine.
1498 However, this is not recommended and you should normally pass an empty
1499 (null) UUID to this method so that a new UUID will be automatically
1500 generated for every created machine. You can use UUID
1501 00000000-0000-0000-0000-000000000000 as null value.
1502
1503 <note>
1504 There is no way to change the name of the settings file or
1505 subfolder of the created machine directly.
1506 </note>
1507
1508 <result name="VBOX_E_OBJECT_NOT_FOUND">
1509 @a osTypeId is invalid.
1510 </result>
1511 <result name="VBOX_E_FILE_ERROR">
1512 Resulting settings file name is invalid or the settings file already
1513 exists or could not be created due to an I/O error.
1514 </result>
1515 <result name="E_INVALIDARG">
1516 @a name is empty or null.
1517 </result>
1518 </desc>
1519
1520 <param name="name" type="wstring" dir="in">
1521 <desc>Machine name.</desc>
1522 </param>
1523 <param name="osTypeId" type="wstring" dir="in">
1524 <desc>Guest OS Type ID.</desc>
1525 </param>
1526 <param name="baseFolder" type="wstring" dir="in">
1527 <desc>Base machine folder (optional).</desc>
1528 </param>
1529 <param name="id" type="uuid" dir="in">
1530 <desc>Machine UUID (optional).</desc>
1531 </param>
1532 <param name="machine" type="IMachine" dir="return">
1533 <desc>Created machine object.</desc>
1534 </param>
1535 </method>
1536
1537 <method name="createLegacyMachine">
1538 <desc>
1539 Creates a new virtual machine in "legacy" mode, using the specified
1540 settings file to store machine settings.
1541
1542 As opposed to machines created by <link to="#createMachine"/>,
1543 the settings file of the machine created in "legacy" mode is not
1544 automatically renamed when the machine name is changed -- it will always
1545 remain the same as specified in this method call.
1546
1547 The specified settings file name can be absolute (full path) or relative
1548 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1549 directory</link>. If the file name doesn't contain an extension, the
1550 default extension (.xml) will be appended.
1551
1552 Note that the configuration of the newly created machine is not
1553 saved to disk (and therefore no settings file is created)
1554 until <link to="IMachine::saveSettings"/> is called. If the
1555 specified settings file already exists, this method
1556 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1557
1558 See <link to="#createMachine"/> for more information.
1559
1560 @deprecated This method may be removed later. Use <link
1561 to="IVirtualBox::createMachine"/> instead.
1562
1563 <note>
1564 There is no way to change the name of the settings file
1565 of the machine created in "legacy" mode.
1566 </note>
1567
1568 <result name="VBOX_E_OBJECT_NOT_FOUND">
1569 @a osTypeId is invalid.
1570 </result>
1571 <result name="VBOX_E_FILE_ERROR">
1572 @a settingsFile is invalid or the settings file already exists or
1573 could not be created due to an I/O error.
1574 </result>
1575 <result name="E_INVALIDARG">
1576 @a name or @a settingsFile is empty or null.
1577 </result>
1578 </desc>
1579
1580 <param name="name" type="wstring" dir="in">
1581 <desc>Machine name.</desc>
1582 </param>
1583 <param name="osTypeId" type="wstring" dir="in">
1584 <desc>Machine OS Type ID.</desc>
1585 </param>
1586 <param name="settingsFile" type="wstring" dir="in">
1587 <desc>Name of the machine settings file.</desc>
1588 </param>
1589 <param name="id" type="uuid" dir="in">
1590 <desc>Machine UUID (optional).</desc>
1591 </param>
1592 <param name="machine" type="IMachine" dir="return">
1593 <desc>Created machine object.</desc>
1594 </param>
1595 </method>
1596
1597 <method name="openMachine">
1598 <desc>
1599 Opens a virtual machine from the existing settings file.
1600 The opened machine remains unregistered until you call
1601 <link to="#registerMachine"/>.
1602
1603 The specified settings file name can be absolute
1604 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1605 VirtualBox home directory</link>. This file must exist
1606 and must be a valid machine settings file whose contents
1607 will be used to construct the machine object.
1608
1609 @deprecated Will be removed soon.
1610 <result name="VBOX_E_FILE_ERROR">
1611 Settings file name invalid, not found or sharing violation.
1612 </result>
1613 </desc>
1614 <param name="settingsFile" type="wstring" dir="in">
1615 <desc>
1616 Name of the machine settings file.
1617 </desc>
1618 </param>
1619 <param name="machine" type="IMachine" dir="return">
1620 <desc>Opened machine object.</desc>
1621 </param>
1622 <note>
1623 <link to="IMachine::settingsModified"/> will return
1624 false for the created machine, until any of machine settings
1625 are changed.
1626 </note>
1627 </method>
1628
1629 <method name="registerMachine">
1630 <desc>
1631
1632 Registers the machine previously created using
1633 <link to="#createMachine"/> or opened using
1634 <link to="#openMachine"/> within this VirtualBox installation. After
1635 successful method invocation, the
1636 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1637 to all registered callbacks.
1638
1639 <note>
1640 This method implicitly calls <link to="IMachine::saveSettings"/>
1641 to save all current machine settings before registering it.
1642 </note>
1643
1644 <result name="VBOX_E_OBJECT_NOT_FOUND">
1645 No matching virtual machine found.
1646 </result>
1647 <result name="VBOX_E_INVALID_OBJECT_STATE">
1648 Virtual machine was not created within this VirtualBox instance.
1649 </result>
1650
1651 </desc>
1652 <param name="machine" type="IMachine" dir="in"/>
1653 </method>
1654
1655 <method name="getMachine">
1656 <desc>
1657 Attempts to find a virtual machine given its UUID.
1658 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1659 instead.
1660
1661 <result name="VBOX_E_OBJECT_NOT_FOUND">
1662 Could not find registered machine matching @a id.
1663 </result>
1664
1665 </desc>
1666 <param name="id" type="uuid" dir="in"/>
1667 <param name="machine" type="IMachine" dir="return"/>
1668 </method>
1669
1670 <method name="findMachine">
1671 <desc>
1672 Attempts to find a virtual machine given its name.
1673 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1674 instead.
1675
1676 <result name="VBOX_E_OBJECT_NOT_FOUND">
1677 Could not find registered machine matching @a name.
1678 </result>
1679
1680 </desc>
1681 <param name="name" type="wstring" dir="in"/>
1682 <param name="machine" type="IMachine" dir="return"/>
1683 </method>
1684
1685 <method name="unregisterMachine">
1686 <desc>
1687
1688 Unregisters the machine previously registered using
1689 <link to="#registerMachine"/>. After successful method invocation, the
1690 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1691 to all registered callbacks.
1692
1693 <note>
1694 The specified machine must not be in the Saved state, have an open
1695 (or a spawning) direct session associated with it, have snapshots or
1696 have hard disks attached.
1697 </note>
1698
1699 <note>
1700 This method implicitly calls <link to="IMachine::saveSettings"/> to
1701 save all current machine settings before unregistering it.
1702 </note>
1703
1704 <note>
1705 If the given machine is inaccessible (see
1706 <link to="IMachine::accessible"/>), it will be unregistered and
1707 fully uninitialized right afterwards. As a result, the returned
1708 machine object will be unusable and an attempt to call
1709 <b>any</b> method will return the "Object not ready" error.
1710 </note>
1711
1712 <result name="VBOX_E_OBJECT_NOT_FOUND">
1713 Could not find registered machine matching @a id.
1714 </result>
1715 <result name="VBOX_E_INVALID_VM_STATE">
1716 Machine is in Saved state.
1717 </result>
1718 <result name="VBOX_E_INVALID_OBJECT_STATE">
1719 Machine has snapshot or open session or hard disk attached.
1720 </result>
1721
1722 </desc>
1723 <param name="id" type="uuid" dir="in">
1724 <desc>UUID of the machine to unregister.</desc>
1725 </param>
1726 <param name="machine" type="IMachine" dir="return">
1727 <desc>Unregistered machine object.</desc>
1728 </param>
1729 </method>
1730
1731 <method name="createAppliance">
1732 <desc>
1733 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1734 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1735 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1736 </desc>
1737 <param name="appliance" type="IAppliance" dir="return">
1738 <desc>New appliance.</desc>
1739 </param>
1740 </method>
1741
1742 <method name="createHardDisk">
1743 <desc>
1744 Creates a new base hard disk object that will use the given storage
1745 format and location for hard disk data.
1746
1747 Note that the actual storage unit is not created by this method. In
1748 order to do it, and before you are able to attach the created hard disk
1749 to virtual machines, you must call one of the following methods to
1750 allocate a format-specific storage unit at the specified location:
1751 <ul>
1752 <li><link to="IHardDisk::createDynamicStorage"/></li>
1753 <li><link to="IHardDisk::createFixedStorage"/></li>
1754 <li><link to="IHardDisk::createDiffStorage"/></li>
1755 </ul>
1756
1757 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1758 remain uninitialized until the hard disk storage unit is successfully
1759 created by one of the above methods.
1760
1761 After the storage unit is successfully created, the hard disk gets
1762 remembered by this VirtualBox installation and will be accessible
1763 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1764 methods. Remembered root (base) hard disks are also returned as part of
1765 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1766
1767 The list of all storage formats supported by this VirtualBox
1768 installation can be obtained using
1769 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1770 attribute is empty or <tt>null</tt> then the default storage format
1771 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1772 be used for creating a storage unit of the hard disk.
1773
1774 Note that the format of the location string is storage format specific.
1775 See <link to="IMedium::location"/>, IHardDisk and
1776 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1777
1778 <result name="VBOX_E_OBJECT_NOT_FOUND">
1779 @a format identifier is invalid. See
1780 <link to="ISystemProperties::hardDiskFormats"/>.
1781 </result>
1782 <result name="VBOX_E_FILE_ERROR">
1783 @a location is a not valid file name (for file-based formats only).
1784 </result>
1785 <result name="E_INVALIDARG">
1786 @a format is a null or empty string.
1787 </result>
1788 </desc>
1789 <param name="format" type="wstring" dir="in">
1790 <desc>
1791 Identifier of the storage format to use for the new hard disk.
1792 </desc>
1793 </param>
1794 <param name="location" type="wstring" dir="in">
1795 <desc>
1796 Location of the storage unit for the new hard disk.
1797 </desc>
1798 </param>
1799 <param name="hardDisk" type="IHardDisk" dir="return">
1800 <desc>Created hard disk object.</desc>
1801 </param>
1802 </method>
1803
1804 <method name="openHardDisk">
1805 <desc>
1806 Opens a hard disk from an existing location.
1807
1808 After the hard disk is successfully opened by this method, it gets
1809 remembered by (known to) this VirtualBox installation and will be
1810 accessible through <link to="#getHardDisk"/> and
1811 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1812 are also returned as part of the <link to="#hardDisks"/> array and can
1813 be attached to virtual machines. See IHardDisk for more details.
1814
1815 If a differencing hard disk is to be opened by this method, the
1816 operation will succeed only if its parent hard disk and all ancestors,
1817 if any, are already known to this VirtualBox installation (for example,
1818 were opened by this method before).
1819
1820 This method tries to guess the storage format of the specified hard disk
1821 by reading hard disk data at the specified location.
1822
1823 Note that the format of the location string is storage format specific.
1824 See <link to="IMedium::location"/>, IHardDisk and
1825 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1826
1827
1828 <result name="VBOX_E_FILE_ERROR">
1829 Invalid hard disk storage file location.
1830 </result>
1831 <result name="VBOX_E_IPRT_ERROR">
1832 Could not get hard disk storage format.
1833 </result>
1834 <result name="E_INVALIDARG">
1835 Invalid hard disk storage format.
1836 </result>
1837
1838 </desc>
1839 <param name="location" type="wstring" dir="in">
1840 <desc>
1841 Location of the storage unit that contains hard disk data in one of
1842 the supported storage formats.
1843 </desc>
1844 </param>
1845 <param name="hardDisk" type="IHardDisk" dir="return">
1846 <desc>Opened hard disk object.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getHardDisk" const="yes">
1851 <desc>
1852 Returns a hard disk with the given UUID.
1853
1854 The hard disk with the given UUID must be known to this VirtualBox
1855 installation, i.e. it must be previously created by
1856 <link to="#createHardDisk"/> or opened by <link
1857 to="#openHardDisk"/>, or attached to some known virtual machine.
1858
1859 <result name="VBOX_E_OBJECT_NOT_FOUND">
1860 No hard disk object matching @a id found.
1861 </result>
1862
1863 </desc>
1864 <param name="id" type="uuid" dir="in">
1865 <desc>UUID of the hard disk to look for.</desc>
1866 </param>
1867 <param name="hardDisk" type="IHardDisk" dir="return">
1868 <desc>Found hard disk object.</desc>
1869 </param>
1870 </method>
1871
1872 <method name="findHardDisk">
1873 <desc>
1874 Returns a hard disk that uses the given location to store hard
1875 disk data.
1876
1877 The given hard disk must be known to this VirtualBox installation, i.e.
1878 it must be previously created by
1879 <link to="#createHardDisk"/> or opened by <link
1880 to="#openHardDisk"/>, or attached to some known virtual machine.
1881
1882 The search is done by comparing the value of the @a location argument to
1883 the <link to="IHardDisk::location"/> attribute of each known hard
1884 disk.
1885
1886 For locations represented by file names in the host's file system, the
1887 requested location can be a path relative to the
1888 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1889 only a file name without any path is given, the
1890 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1891 folder</link> will be prepended to the file name before searching. Note
1892 that on case sensitive file systems, a case sensitive comparison is
1893 performed, otherwise the case of symbols in the file path is ignored.
1894
1895 <result name="VBOX_E_OBJECT_NOT_FOUND">
1896 No hard disk object matching @a location found.
1897 </result>
1898
1899 </desc>
1900 <param name="location" type="wstring" dir="in">
1901 <desc>Location string to search for.</desc>
1902 </param>
1903 <param name="hardDisk" type="IHardDisk" dir="return">
1904 <desc>Found hard disk object.</desc>
1905 </param>
1906 </method>
1907
1908 <method name="openDVDImage">
1909 <desc>
1910 Opens a CD/DVD image contained in the specified file of the supported
1911 format and assigns it the given UUID.
1912
1913 After the image is successfully opened by this method, it gets
1914 remembered by (known to) this VirtualBox installation and will be
1915 accessible through <link to="#getDVDImage"/> and
1916 <link to="#findDVDImage"/> methods. Remembered images are also
1917 returned as part of the <link to="#DVDImages"/> array and can be mounted
1918 to virtual machines. See IMedium for more details.
1919
1920 See <link to="IMedium::location"/> to get more details about the format
1921 of the location string.
1922
1923 <note>
1924 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1925 </note>
1926
1927 <result name="VBOX_E_INVALID_OBJECT_STATE">
1928 CD/DVD image already exists in the media registry.
1929 </result>
1930
1931 </desc>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Full path to the file that contains a valid CD/DVD image.
1935 </desc>
1936 </param>
1937 <param name="id" type="uuid" dir="in">
1938 <desc>
1939 UUID to assign to the given image within this VirtualBox installation.
1940 If an empty (null) UUID is specified, the system will randomly
1941 generate a new UUID.
1942 </desc>
1943 </param>
1944 <param name="image" type="IDVDImage" dir="return">
1945 <desc>Opened CD/DVD image object.</desc>
1946 </param>
1947 </method>
1948
1949 <method name="getDVDImage">
1950 <desc>
1951 Returns a CD/DVD image with the given UUID.
1952
1953 The image with the given UUID must be known to this VirtualBox
1954 installation, i.e. it must be previously opened by <link
1955 to="#openDVDImage"/>, or mounted to some known virtual machine.
1956
1957 <result name="VBOX_E_OBJECT_NOT_FOUND">
1958 No matching DVD image found in the media registry.
1959 </result>
1960
1961 </desc>
1962 <param name="id" type="uuid" dir="in">
1963 <desc>UUID of the image to look for.</desc>
1964 </param>
1965 <param name="image" type="IDVDImage" dir="return">
1966 <desc>Found CD/DVD image object.</desc>
1967 </param>
1968 </method>
1969
1970 <method name="findDVDImage">
1971 <desc>
1972 Returns a CD/DVD image with the given image location.
1973
1974 The image with the given UUID must be known to this VirtualBox
1975 installation, i.e. it must be previously opened by <link
1976 to="#openDVDImage"/>, or mounted to some known virtual machine.
1977
1978 The search is done by comparing the value of the @a location argument to
1979 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1980
1981 The requested location can be a path relative to the
1982 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1983 only a file name without any path is given, the
1984 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1985 folder</link> will be prepended to the file name before searching. Note
1986 that on case sensitive file systems, a case sensitive comparison is
1987 performed, otherwise the case in the file path is ignored.
1988
1989 <result name="VBOX_E_FILE_ERROR">
1990 Invalid image file location.
1991 </result>
1992 <result name="VBOX_E_OBJECT_NOT_FOUND">
1993 No matching DVD image found in the media registry.
1994 </result>
1995
1996 </desc>
1997 <param name="location" type="wstring" dir="in">
1998 <desc>CD/DVD image file path to look for.</desc>
1999 </param>
2000 <param name="image" type="IDVDImage" dir="return">
2001 <desc>Found CD/DVD image object.</desc>
2002 </param>
2003 </method>
2004
2005 <method name="openFloppyImage">
2006 <desc>
2007 Opens a floppy image contained in the specified file of the supported
2008 format and assigns it the given UUID.
2009
2010 After the image is successfully opened by this method, it gets
2011 remembered by (known to) this VirtualBox installation and will be
2012 accessible through <link to="#getFloppyImage"/> and
2013 <link to="#findFloppyImage"/> methods. Remembered images are also
2014 returned as part of the <link to="#floppyImages"/> array and can be
2015 mounted to virtual machines. See IMedium for more details.
2016
2017 See <link to="IMedium::location"/> to get more details about the format
2018 of the location string.
2019
2020 <result name="VBOX_E_FILE_ERROR">
2021 Floppy image specified by @a location not accessible.
2022 </result>
2023 <result name="VBOX_E_INVALID_OBJECT_STATE">
2024 Floppy image already exists in the media registry.
2025 </result>
2026
2027 <note>
2028 Currently, only raw floppy images are supported by VirtualBox.
2029 </note>
2030 </desc>
2031 <param name="location" type="wstring" dir="in">
2032 <desc>
2033 Full path to the file that contains a valid floppy image.
2034 </desc>
2035 </param>
2036 <param name="id" type="uuid" dir="in">
2037 <desc>
2038 UUID to assign to the given image file within this VirtualBox
2039 installation. If an empty (null) UUID is specified, the system will
2040 randomly generate a new UUID.
2041 </desc>
2042 </param>
2043 <param name="image" type="IFloppyImage" dir="return">
2044 <desc>Opened floppy image object.</desc>
2045 </param>
2046 </method>
2047
2048 <method name="getFloppyImage">
2049 <desc>
2050 Returns a floppy image with the given UUID.
2051
2052 The image with the given UUID must be known to this VirtualBox
2053 installation, i.e. it must be previously opened by <link
2054 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2055
2056 <result name="VBOX_E_OBJECT_NOT_FOUND">
2057 No matching floppy image found in the media registry.
2058 </result>
2059
2060 </desc>
2061 <param name="id" type="uuid" dir="in">
2062 <desc>UUID of the image to look for.</desc>
2063 </param>
2064 <param name="image" type="IFloppyImage" dir="return">
2065 <desc>Found floppy image object.</desc>
2066 </param>
2067 </method>
2068
2069 <method name="findFloppyImage">
2070 <desc>
2071 Returns a floppy image with the given image location.
2072
2073 The image with the given UUID must be known to this VirtualBox
2074 installation, i.e. it must be previously opened by <link
2075 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2076
2077 The search is done by comparing the value of the @a location argument to
2078 the <link to="IMedium::location"/> attribute of each known floppy image.
2079
2080 The requested location can be a path relative to the
2081 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2082 only a file name without any path is given, the
2083 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2084 folder</link> will be prepended to the file name before searching. Note
2085 that on case sensitive file systems, a case sensitive comparison is
2086 performed, otherwise the case of symbols in the file path is ignored.
2087
2088 <result name="VBOX_E_FILE_ERROR">
2089 Invalid image file location.
2090 </result>
2091 <result name="VBOX_E_OBJECT_NOT_FOUND">
2092 No matching floppy image found in the media registry.
2093 </result>
2094
2095 </desc>
2096 <param name="location" type="wstring" dir="in">
2097 <desc>Floppy image file path to look for.</desc>
2098 </param>
2099 <param name="image" type="IFloppyImage" dir="return">
2100 <desc>Found floppy image object.</desc>
2101 </param>
2102 </method>
2103
2104 <method name="getGuestOSType">
2105 <desc>
2106 Returns an object describing the specified guest OS type.
2107
2108 The requested guest OS type is specified using a string which is a
2109 mnemonic identifier of the guest operating system, such as
2110 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2111 particular virtual machine can be read or set using the
2112 <link to="IMachine::OSTypeId"/> attribute.
2113
2114 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2115 available guest OS type objects. Each object has an
2116 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2117 the guest OS this object describes.
2118
2119 <result name="E_INVALIDARG">
2120 @a id is not a valid Guest OS type.
2121 </result>
2122
2123 </desc>
2124 <param name="id" type="wstring" dir="in">
2125 <desc>Guest OS type ID string.</desc>
2126 </param>
2127 <param name="type" type="IGuestOSType" dir="return">
2128 <desc>Guest OS type object.</desc>
2129 </param>
2130 </method>
2131
2132 <method name="createSharedFolder">
2133 <desc>
2134 Creates a new global shared folder by associating the given logical
2135 name with the given host path, adds it to the collection of shared
2136 folders and starts sharing it. Refer to the description of
2137 <link to="ISharedFolder"/> to read more about logical names.
2138 <note>
2139 In the current implementation, this operation is not
2140 implemented.
2141 </note>
2142 </desc>
2143 <param name="name" type="wstring" dir="in">
2144 <desc>Unique logical name of the shared folder.</desc>
2145 </param>
2146 <param name="hostPath" type="wstring" dir="in">
2147 <desc>Full path to the shared folder in the host file system.</desc>
2148 </param>
2149 <param name="writable" type="boolean" dir="in">
2150 <desc>Whether the share is writable or readonly</desc>
2151 </param>
2152 </method>
2153
2154 <method name="removeSharedFolder">
2155 <desc>
2156 Removes the global shared folder with the given name previously
2157 created by <link to="#createSharedFolder"/> from the collection of
2158 shared folders and stops sharing it.
2159 <note>
2160 In the current implementation, this operation is not
2161 implemented.
2162 </note>
2163 </desc>
2164 <param name="name" type="wstring" dir="in">
2165 <desc>Logical name of the shared folder to remove.</desc>
2166 </param>
2167 </method>
2168
2169 <method name="getNextExtraDataKey">
2170 <desc>
2171 Returns the global extra data key name following the supplied key.
2172
2173 An error is returned if the supplied @a key does not exist. @c NULL is
2174 returned in @a nextKey if the supplied key is the last key. When
2175 supplying @c NULL for the @a key, the first key item is returned in
2176 @a nextKey (if there is any). @a nextValue is an optional parameter and
2177 if supplied, the next key's value is returned in it.
2178
2179 <result name="VBOX_E_OBJECT_NOT_FOUND">
2180 Extra data @a key not found.
2181 </result>
2182
2183 </desc>
2184 <param name="key" type="wstring" dir="in">
2185 <desc>Name of the data key to follow.</desc>
2186 </param>
2187 <param name="nextKey" type="wstring" dir="out">
2188 <desc>Name of the next data key.</desc>
2189 </param>
2190 <param name="nextValue" type="wstring" dir="out">
2191 <desc>Value of the next data key.</desc>
2192 </param>
2193 </method>
2194
2195 <method name="getExtraData">
2196 <desc>
2197 Returns associated global extra data.
2198
2199 If the requested data @a key does not exist, this function will
2200 succeed and return @c NULL in the @a value argument.
2201
2202 <result name="VBOX_E_FILE_ERROR">
2203 Settings file not accessible.
2204 </result>
2205 <result name="VBOX_E_XML_ERROR">
2206 Could not parse the settings file.
2207 </result>
2208
2209 </desc>
2210 <param name="key" type="wstring" dir="in">
2211 <desc>Name of the data key to get.</desc>
2212 </param>
2213 <param name="value" type="wstring" dir="return">
2214 <desc>Value of the requested data key.</desc>
2215 </param>
2216 </method>
2217
2218 <method name="setExtraData">
2219 <desc>
2220 Sets associated global extra data.
2221
2222 If you pass @c NULL as a key @a value, the given @a key will be
2223 deleted.
2224
2225 <note>
2226 Before performing the actual data change, this method will ask all
2227 registered callbacks using the
2228 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2229 notification for a permission. If one of the callbacks refuses the
2230 new value, the change will not be performed.
2231 </note>
2232 <note>
2233 On success, the
2234 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2235 is called to inform all registered callbacks about a successful data
2236 change.
2237 </note>
2238
2239 <result name="VBOX_E_FILE_ERROR">
2240 Settings file not accessible.
2241 </result>
2242 <result name="VBOX_E_XML_ERROR">
2243 Could not parse the settings file.
2244 </result>
2245 <result name="E_ACCESSDENIED">
2246 Modification request refused.
2247 </result>
2248
2249 </desc>
2250 <param name="key" type="wstring" dir="in">
2251 <desc>Name of the data key to set.</desc>
2252 </param>
2253 <param name="value" type="wstring" dir="in">
2254 <desc>Value to assign to the key.</desc>
2255 </param>
2256 </method>
2257
2258 <method name="openSession">
2259 <desc>
2260 Opens a new direct session with the given virtual machine.
2261
2262 A direct session acts as a local lock on the given VM.
2263 There can be only one direct session open at a time for every
2264 virtual machine, protecting the VM from being manipulated by
2265 conflicting actions from different processes. Only after a
2266 direct session has been opened, one can change all VM settings
2267 and execute the VM in the process space of the session object.
2268
2269 Sessions therefore can be compared to mutex semaphores that
2270 lock a given VM for modification and execution.
2271 See <link to="ISession">ISession</link> for details.
2272
2273 <note>Unless you are writing a new VM frontend, you will not
2274 want to execute a VM in the current process. To spawn a new
2275 process that executes a VM, use
2276 <link to="IVirtualBox::openRemoteSession" />
2277 instead.</note>
2278
2279 Upon successful return, the session object can be used to
2280 get access to the machine and to the VM console.
2281
2282 In VirtualBox terminology, the machine becomes "mutable" after
2283 a session has been opened. Note that the "mutable" machine
2284 object, on which you may invoke IMachine methods to change its
2285 settings, will be a different object from the immutable IMachine
2286 objects returned by various IVirtualBox methods. To obtain a
2287 mutable IMachine object (upon which you can invoke settings methods),
2288 use the <link to="ISession::machine" /> attribute.
2289
2290 One must always call <link to="ISession::close" /> to release the
2291 lock on the machine, or the machine's state will eventually be
2292 set to "Aborted".
2293
2294 In other words, to change settings on a machine, the following
2295 sequence is typically performed:
2296
2297 <ol>
2298 <li>Call this method (openSession) to have a machine locked for
2299 the current session.</li>
2300
2301 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2302
2303 <li>Change the settings of the machine.</li>
2304
2305 <li>Call <link to="IMachine::saveSettings" />.</li>
2306
2307 <li>Close the session by calling <link to="ISession::close"/>.</li>
2308 </ol>
2309
2310 <result name="E_UNEXPECTED">
2311 Virtual machine not registered.
2312 </result>
2313 <result name="E_ACCESSDENIED">
2314 Process not started by OpenRemoteSession.
2315 </result>
2316 <result name="VBOX_E_OBJECT_NOT_FOUND">
2317 No matching virtual machine found.
2318 </result>
2319 <result name="VBOX_E_INVALID_OBJECT_STATE">
2320 Session already open or being opened.
2321 </result>
2322 <result name="VBOX_E_VM_ERROR">
2323 Failed to assign machine to session.
2324 </result>
2325
2326 </desc>
2327 <param name="session" type="ISession" dir="in">
2328 <desc>
2329 Session object that will represent the opened session after
2330 successful method invocation. This object must not represent
2331 the already open session.
2332 <note>
2333 This session will be automatically closed if the
2334 VirtualBox server is terminated for some reason.
2335 </note>
2336 </desc>
2337 </param>
2338 <param name="machineId" type="uuid" dir="in">
2339 <desc>ID of the virtual machine to open a session with.</desc>
2340 </param>
2341 </method>
2342
2343 <method name="openRemoteSession">
2344 <desc>
2345 Spawns a new process that executes a virtual machine (called a
2346 "remote session").
2347
2348 Opening a remote session causes the VirtualBox server to start a new
2349 process that opens a direct session with the given VM. As a result, the
2350 VM is locked by that direct session in the new process, preventing
2351 conflicting changes from other processes. Since sessions act as locks
2352 that prevent conflicting changes, one cannot open a remote session
2353 for a VM that already has another open session (direct or remote), or
2354 is currently in the process of opening one (see <link
2355 to="IMachine::sessionState"/>).
2356
2357 While the remote session still provides some level of control over the
2358 VM execution to the caller (using the <link to="IConsole" /> interface),
2359 not all VM settings are available for modification within the remote
2360 session context.
2361
2362 This operation can take some time (a new VM is started in a new process,
2363 for which memory and other resources need to be set up). Because of this,
2364 an <link to="IProgress" /> is returned to allow the caller to wait for this
2365 asynchronous operation to be completed. Until then, the remote session
2366 object remains in the closed state, and accessing the machine or its
2367 console through it is invalid. It is recommended to use
2368 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2369 completion.
2370
2371 As with all <link to="ISession" /> objects, it is recommended to call
2372 <link to="ISession::close" /> on the local session object once openRemoteSession()
2373 has been called. However, the session's state (see <link to="ISession::state" />)
2374 will not return to "Closed" until the remote session has also closed (i.e.
2375 until the VM is no longer running). In that case, however, the state of
2376 the session will automatically change back to "Closed".
2377
2378 Currently supported session types (values of the @a type
2379 argument) are:
2380 <ul>
2381 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2382 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2383 </ul>
2384
2385 The @a environment argument is a string containing definitions of
2386 environment variables in the following format:
2387 @code
2388 NAME[=VALUE]\n
2389 NAME[=VALUE]\n
2390 ...
2391 @endcode
2392 where <tt>\\n</tt> is the new line character. These environment
2393 variables will be appended to the environment of the VirtualBox server
2394 process. If an environment variable exists both in the server process
2395 and in this list, the value from this list takes precedence over the
2396 server's variable. If the value of the environment variable is
2397 omitted, this variable will be removed from the resulting environment.
2398 If the environment string is @c null, the server environment is
2399 inherited by the started process as is.
2400
2401 <see>openExistingSession</see>
2402
2403 <result name="E_UNEXPECTED">
2404 Virtual machine not registered.
2405 </result>
2406 <result name="E_INVALIDARG">
2407 Invalid session type @a type.
2408 </result>
2409 <result name="VBOX_E_OBJECT_NOT_FOUND">
2410 No machine matching @a machineId found.
2411 </result>
2412 <result name="VBOX_E_INVALID_OBJECT_STATE">
2413 Session already open or being opened.
2414 </result>
2415 <result name="VBOX_E_IPRT_ERROR">
2416 Launching process for machine failed.
2417 </result>
2418 <result name="VBOX_E_VM_ERROR">
2419 Failed to assign machine to session.
2420 </result>
2421
2422 </desc>
2423 <param name="session" type="ISession" dir="in">
2424 <desc>
2425 Session object that will represent the opened remote session
2426 after successful method invocation (this object must not
2427 represent an already open session).
2428 </desc>
2429 </param>
2430 <param name="machineId" type="uuid" dir="in">
2431 <desc>ID of the virtual machine to open a session with.</desc>
2432 </param>
2433 <param name="type" type="wstring" dir="in">
2434 <desc>
2435 Type of the remote session (case sensitive).
2436 </desc>
2437 </param>
2438 <param name="environment" type="wstring" dir="in">
2439 <desc>
2440 Environment to pass to the opened session (may be @c null).
2441 </desc>
2442 </param>
2443 <param name="progress" type="IProgress" dir="return">
2444 <desc>Progress object to track the operation completion.</desc>
2445 </param>
2446 </method>
2447
2448 <method name="openExistingSession">
2449 <desc>
2450 Opens a new remote session with the virtual machine for
2451 which a direct session is already open.
2452
2453 The remote session provides some level of control over the VM
2454 execution (using the IConsole interface) to the caller; however,
2455 within the remote session context, not all VM settings are available
2456 for modification.
2457
2458 As opposed to <link to="#openRemoteSession"/>, the number of
2459 remote sessions opened this way is not limited by the API
2460
2461 <note>
2462 It is an error to open a remote session with the machine that
2463 doesn't have an open direct session.
2464 </note>
2465
2466 <result name="E_UNEXPECTED">
2467 Virtual machine not registered.
2468 </result>
2469 <result name="VBOX_E_OBJECT_NOT_FOUND">
2470 No machine matching @a machineId found.
2471 </result>
2472 <result name="VBOX_E_INVALID_OBJECT_STATE">
2473 Session already open or being opened.
2474 </result>
2475 <result name="VBOX_E_INVALID_SESSION_STATE">
2476 Direct session state not Open.
2477 </result>
2478 <result name="VBOX_E_VM_ERROR">
2479 Failed to get console object from direct session or assign
2480 machine to session.
2481 </result>
2482
2483 <see>openRemoteSession</see>
2484 </desc>
2485 <param name="session" type="ISession" dir="in">
2486 <desc>
2487 Session object that will represent the open remote session
2488 after successful method invocation. This object must not
2489 represent an already open session.
2490 <note>
2491 This session will be automatically closed when the peer
2492 (direct) session dies or gets closed.
2493 </note>
2494 </desc>
2495 </param>
2496 <param name="machineId" type="uuid" dir="in">
2497 <desc>ID of the virtual machine to open a session with.</desc>
2498 </param>
2499 </method>
2500
2501 <method name="registerCallback">
2502 <desc>
2503 Registers a new global VirtualBox callback. The methods of the given
2504 callback object will be called by VirtualBox when an appropriate
2505 event occurs.
2506
2507 <result name="E_INVALIDARG">
2508 A @c NULL callback cannot be registered.
2509 </result>
2510
2511 </desc>
2512 <param name="callback" type="IVirtualBoxCallback" dir="in">
2513 <desc>Callback object to register.</desc>
2514 </param>
2515 </method>
2516
2517 <method name="unregisterCallback">
2518 <desc>
2519 Unregisters the previously registered global VirtualBox callback.
2520
2521 <result name="E_INVALIDARG">
2522 Specified @a callback not registered.
2523 </result>
2524
2525 </desc>
2526 <param name="callback" type="IVirtualBoxCallback" dir="in">
2527 <desc>Callback object to unregister.</desc>
2528 </param>
2529 </method>
2530
2531 <method name="waitForPropertyChange">
2532 <desc>
2533 Blocks the caller until any of the properties represented by the
2534 @a what argument changes the value or until the given timeout interval
2535 expires.
2536
2537 The @a what argument is a comma separated list of property masks that
2538 describe properties the caller is interested in. The property mask is
2539 a string in the following format:
2540
2541 <pre>
2542 [[group.]subgroup.]name
2543 </pre>
2544
2545 where @c name is the property name and @c group, @c subgroup are zero
2546 or more property group specifiers. Each element (group or name) in
2547 the property mask may be either a Latin string or an asterisk symbol
2548 (@c "*") which is used to match any string for the given element. A
2549 property mask that doesn't contain asterisk symbols represents a
2550 single fully qualified property name.
2551
2552 Groups in the fully qualified property name go from more generic (the
2553 left-most part) to more specific (the right-most part). The first
2554 element is usually a name of the object the property belongs to. The
2555 second element may be either a property name, or a child object name,
2556 or an index if the preceding element names an object which is one of
2557 many objects of the same type. This way, property names form a
2558 hierarchy of properties. Here are some examples of property names:
2559
2560 <table>
2561 <tr>
2562 <td><tt>VirtualBox.version</tt></td>
2563 <td><link to="IVirtualBox::version"/> property</td>
2564 </tr>
2565 <tr>
2566 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2567 <td><link to="IMachine::name"/> property of the machine with the
2568 given UUID</td>
2569 </tr>
2570 </table>
2571
2572 Most property names directly correspond to the properties of objects
2573 (components) provided by the VirtualBox library and may be used to
2574 track changes to these properties. However, there may be
2575 pseudo-property names that don't correspond to any existing object's
2576 property directly, as well as there may be object properties that
2577 don't have a corresponding property name that is understood by this
2578 method, and therefore changes to such properties cannot be
2579 tracked. See individual object's property descriptions to get a
2580 fully qualified property name that can be used with this method (if
2581 any).
2582
2583 There is a special property mask @c "*" (i.e. a string consisting of a
2584 single asterisk symbol) that can be used to match all properties.
2585 Below are more examples of property masks:
2586
2587 <table>
2588 <tr>
2589 <td><tt>VirtualBox.*</tt></td>
2590 <td>Track all properties of the VirtualBox object</td>
2591 </tr>
2592 <tr>
2593 <td><tt>Machine.*.name</tt></td>
2594 <td>Track changes to the <link to="IMachine::name"/> property of
2595 all registered virtual machines</td>
2596 </tr>
2597 </table>
2598
2599 <note>
2600 This function is not implemented in the current version of the
2601 product.
2602 </note>
2603 </desc>
2604 <param name="what" type="wstring" dir="in">
2605 <desc>Comma separated list of property masks.</desc>
2606 </param>
2607 <param name="timeout" type="unsigned long" dir="in">
2608 <desc>
2609 Wait timeout in milliseconds.
2610 Specify -1 for an indefinite wait.
2611 </desc>
2612 </param>
2613 <param name="changed" type="wstring" dir="out">
2614 <desc>
2615 Comma separated list of properties that have been changed and caused
2616 this method to return to the caller.
2617 </desc>
2618 </param>
2619 <param name="values" type="wstring" dir="out">
2620 <desc>Reserved, not currently used.</desc>
2621 </param>
2622 </method>
2623
2624 <method name="saveSettings">
2625 <desc>
2626 Saves the global settings to the global settings file
2627 (<link to="#settingsFilePath"/>).
2628
2629 This method is only useful for explicitly saving the global settings
2630 file after it has been auto-converted from the old format to the most
2631 recent format (see <link to="#settingsFileVersion"/> for details).
2632 Normally, the global settings file is implicitly saved when a global
2633 setting is changed.
2634
2635 <result name="VBOX_E_FILE_ERROR">
2636 Settings file not accessible.
2637 </result>
2638 <result name="VBOX_E_XML_ERROR">
2639 Could not parse the settings file.
2640 </result>
2641
2642 </desc>
2643 </method>
2644
2645 <method name="saveSettingsWithBackup">
2646 <desc>
2647 Creates a backup copy of the global settings file
2648 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2649 calls <link to="#saveSettings"/>.
2650
2651 Note that the backup copy is created <b>only</b> if the settings file
2652 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2653 details). Otherwise, this call is fully equivalent to
2654 <link to="#saveSettings"/> and no backup copying is done.
2655
2656 The backup copy is created in the same directory where the original
2657 settings file is located. It is given the following file name:
2658 <pre>
2659 original.xml.x.y-platform.bak
2660 </pre>
2661 where <tt>original.xml</tt> is the original settings file name
2662 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2663 format of the settings file (before auto-conversion).
2664
2665 If the given backup file already exists, this method will try to add the
2666 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2667 0 to 9) and copy it again until it succeeds. If all suffixes are
2668 occupied, or if any other copy error occurs, this method will return a
2669 failure.
2670
2671 If the copy operation succeeds, the @a bakFileName return argument will
2672 receive a full path to the created backup file (for informational
2673 purposes). Note that this will happen even if the subsequent
2674 <link to="#saveSettings"/> call performed by this method after the
2675 copy operation, fails.
2676
2677 <note>
2678 The VirtualBox API never calls this method. It is intended purely for
2679 the purposes of creating backup copies of the settings files by
2680 front-ends before saving the results of the automatically performed
2681 settings conversion to disk.
2682 </note>
2683
2684 <see>settingsFileVersion</see>
2685
2686 <result name="VBOX_E_FILE_ERROR">
2687 Settings file not accessible.
2688 </result>
2689 <result name="VBOX_E_XML_ERROR">
2690 Could not parse the settings file.
2691 </result>
2692 <result name="VBOX_E_IPRT_ERROR">
2693 Could not copy the settings file.
2694 </result>
2695
2696 </desc>
2697 <param name="bakFileName" type="wstring" dir="return">
2698 <desc>Full path to the created backup copy.</desc>
2699 </param>
2700 </method>
2701
2702 </interface>
2703
2704 <!--
2705 // IAppliance
2706 /////////////////////////////////////////////////////////////////////////
2707 -->
2708
2709 <enum
2710 name="CIMOSType"
2711 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2712 >
2713 <desc>
2714 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2715 </desc>
2716
2717 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2718 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2719 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2720 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2721 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2722 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2723 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2724 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2725 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2726 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2727 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2728 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2729 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2730 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2731 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2732 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2733 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2734 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2735 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2736 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2737 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2738 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2739 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2740 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2741 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2742 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2743 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2744 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2745 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2746 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2747 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2748 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2749 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2750 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2751 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2752 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2753 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2754 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2755 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2756 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2757 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2758 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2759 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2760 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2761 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2762 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2763 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2764 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2765 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2766 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2767 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2768 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2769 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2770 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2771 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2772 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2773 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2774 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2775 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2776 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2777 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2778 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2779 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2780 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2781 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2782 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2783 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2784 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2785 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2786 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2787 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2788 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2789 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2790 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2791 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2792 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2793 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2794 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2795 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2796 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2797 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2798 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2799 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2800 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2801 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2802 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2803 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2804 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2805 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2806 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2807 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2808 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2809 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2810 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2811 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2812 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2813 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2814 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2815 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2816 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2817 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2818 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2819 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2820 </enum>
2821
2822 <enum
2823 name="OVFResourceType"
2824 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2825 >
2826 <desc>
2827 OVF resource type.
2828 </desc>
2829
2830 <const name="Other" value="1" />
2831 <const name="ComputerSystem" value="2" />
2832 <const name="Processor" value="3" />
2833 <const name="Memory" value="4" />
2834 <const name="IdeController" value="5" />
2835 <const name="ParallelScsiHba" value="6" />
2836 <const name="FcHba" value="7" />
2837 <const name="iScsiHba" value="8" />
2838 <const name="IbHca" value="9" />
2839 <const name="EthernetAdapter" value="10" />
2840 <const name="OtherNetworkAdapter" value="11" />
2841 <const name="IoSlot" value="12" />
2842 <const name="IoDevice" value="13" />
2843 <const name="FloppyDrive" value="14" />
2844 <const name="CdDrive" value="15" />
2845 <const name="DvdDrive" value="16" />
2846 <const name="HardDisk" value="17" />
2847 <const name="UsbController" value="23" />
2848 <const name="SoundCard" value="35" />
2849 </enum>
2850
2851 <interface
2852 name="IAppliance" extends="$unknown"
2853 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2854 wsmap="managed"
2855 >
2856 <desc>
2857 Represents a platform-independent appliance in OVF format. An instance of this is returned
2858 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2859 appliances with VirtualBox.
2860
2861 The OVF standard suggests two different physical file formats:
2862
2863 <ol>
2864 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2865 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2866 this descriptor file references other files, as OVF appliances distributed as a set of
2867 files most likely do, those files must be in the same directory as the descriptor file.</li>
2868
2869 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2870 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2871 files and optionally other files.
2872
2873 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2874 be added with a later version.</li>
2875 </ol>
2876
2877 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2878 <link to="IMachine" /> involves the following sequence of API calls:
2879
2880 <ol>
2881 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2882 </li>
2883
2884 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2885 would like to import. So long as this file is syntactically valid, this will succeed
2886 and return an instance of IAppliance that contains the parsed data from the OVF file.
2887 </li>
2888
2889 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2890 contents of the IAppliance attributes accordingly. These can be inspected by a
2891 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2892 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2893 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2894 systems in the OVF, which in turn describe the virtual hardware prescribed by the
2895 OVF (network and hardware adapters, virtual disk images, memory size and so on).
2896 The GUI can then give the user the option to confirm and/or change these suggestions.
2897 </li>
2898
2899 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2900 virtual system to override the suggestions made by VirtualBox.
2901 </li>
2902
2903 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2904 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2905 virtual system descriptions.
2906 </li>
2907 </ol>
2908
2909 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2910
2911 <ol>
2912 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2913 an empty IAppliance object.
2914 </li>
2915
2916 <li>For each machine you would like to export, call <link to="IMachine::export" />
2917 with the IAppliance object you just created. This creates an instance of
2918 <link to="IVirtualSystemDescription" /> inside the appliance.
2919 </li>
2920
2921 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2922 file written.</li>
2923 </ol>
2924
2925 </desc>
2926
2927 <attribute name="path" type="wstring" readonly="yes">
2928 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2929 the <tt>.ova</tt> file passed to <link to="IAppliance::read" />.</desc>
2930 </attribute>
2931
2932 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2933 <desc>
2934 Array of virtual disk definitions. One such description exists for each
2935 disk definition in the OVF; each string array item represents one such piece of
2936 disk information, with the information fields separated by tab (\t) characters.
2937
2938 The caller should be prepared for additional fields being appended to
2939 this string in future versions of VirtualBox and therefore check for
2940 the number of tabs in the strings returned.
2941
2942 In the current version, the following eight fields are returned per string
2943 in the array:
2944
2945 <ol>
2946 <li>Disk ID (unique string identifier given to disk)</li>
2947
2948 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2949
2950 <li>Populated size (optional unsigned integer indicating the current size of the
2951 disk; can be approximate; -1 if unspecified)</li>
2952
2953 <li>Format (string identifying the disk format, typically
2954 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2955
2956 <li>Reference (where to find the disk image, typically a file name; if empty,
2957 then the disk should be created on import)</li>
2958
2959 <li>Image size (optional unsigned integer indicating the size of the image,
2960 which need not necessarily be the same as the values specified above, since
2961 the image may be compressed or sparse; -1 if not specified)</li>
2962
2963 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2964 presently unsupported and always -1)</li>
2965
2966 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2967 </ol>
2968 </desc>
2969 </attribute>
2970
2971 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2972 <desc> Array of virtual system descriptions. One such description is created
2973 for each virtual system found in the OVF. The array is empty until after <link to="#interpret" />
2974 has been called.
2975 </desc>
2976 </attribute>
2977
2978 <method name="read">
2979 <desc>
2980 Reads an OVF file into the appliance object.
2981
2982 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2983 mere fact that this method returns successfully does not mean that VirtualBox supports all
2984 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2985 </desc>
2986 <param name="file" type="wstring" dir="in">
2987 <desc>
2988 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2989 on whether the appliance is distributed as a set of files or as a single file, respectively).
2990 </desc>
2991 </param>
2992 </method>
2993
2994 <method name="interpret">
2995 <desc>
2996 Interprets the OVF data that was read when the appliance was constructed. After
2997 calling this method, one can inspect the
2998 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2999 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3000 the appliance.
3001
3002 Calling this method is the second step of importing an appliance into VirtualBox;
3003 see <link to="IAppliance" /> for an overview.
3004 </desc>
3005 </method>
3006
3007 <method name="importMachines">
3008 <desc>
3009 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3010 and other interfaces that match the information contained in the appliance as
3011 closely as possible, as represented by the import instructions in the
3012 <link to="#virtualSystemDescriptions" /> array.
3013
3014 Calling this method is the final step of importing an appliance into VirtualBox;
3015 see <link to="IAppliance" /> for an overview.
3016
3017 Since importing the appliance may imply copying disk images, which can take a long
3018 time, this method operates asynchronously and returns an IProgress object to allow
3019 the caller to monitor the progress.
3020 </desc>
3021
3022 <param name="aProgress" type="IProgress" dir="return">
3023 <desc></desc>
3024 </param>
3025 </method>
3026
3027 <method name="write">
3028 <desc>
3029 Writes the contents of the appliance exports into a new OVF file.
3030
3031 Calling this method is the final step of exporting an appliance from VirtualBox;
3032 see <link to="IAppliance" /> for an overview.
3033 </desc>
3034 <param name="path" type="wstring" dir="in">
3035 <desc>
3036 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3037 on whether the appliance is distributed as a set of files or as a single file, respectively).
3038 </desc>
3039 </param>
3040 </method>
3041
3042 </interface>
3043
3044 <enum
3045 name="VirtualSystemDescriptionType"
3046 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3047 >
3048 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3049 a configuration value.</desc>
3050
3051 <const name="Ignore" value="1" />
3052 <const name="OS" value="2" />
3053 <const name="Name" value="3" />
3054 <const name="CPU" value="4" />
3055 <const name="Memory" value="5" />
3056 <const name="HardDiskControllerIDE" value="6" />
3057 <const name="HardDiskControllerSATA" value="7" />
3058 <const name="HardDiskControllerSCSI" value="8" />
3059 <const name="HardDiskImage" value="9" />
3060 <const name="Floppy" value="10" />
3061 <const name="CDROM" value="11" />
3062 <const name="LogicalNetwork" value="12" />
3063 <const name="NetworkAdapter" value="13" />
3064 <const name="USBController" value="14" />
3065 <const name="SoundCard" value="15" />
3066
3067 </enum>
3068
3069 <interface
3070 name="IVirtualSystemDescription" extends="$unknown"
3071 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3072 wsmap="managed"
3073 >
3074
3075 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3076 After <link to="IAppliance::interpret" /> has been called, that array contains
3077 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3078 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3079 into VirtualBox.
3080 </desc>
3081
3082 <attribute name="count" type="unsigned long" readonly="yes">
3083 <desc>Return the number of virtual system description entries.</desc>
3084 </attribute>
3085
3086 <method name="getDescription">
3087 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3088 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3089
3090 The list below identifies the value sets that are possible depending on the
3091 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3092 the array item with the same index in aOrigValue[] will contain the original value as contained
3093 in the OVF file (just for informational purposes), and the corresponding item in aConfigValues[]
3094 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3095 the aExtraConfigValues[] array item may also be used.
3096
3097 <ul>
3098 <li>
3099 "OS": the guest operating system type. There must be exactly one such array item on import. The
3100 corresponding item in aConfigValues[] contains the suggested guest operating system for VirtualBox.
3101 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3102 item in aOrigValues[] will contain a numerical value that described the operating system in the OVF
3103 (see <link to="CIMOSType" />).
3104 </li>
3105 <li>
3106 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3107 if none is present on import, then an automatic name will be created from the operating system
3108 type. The correponding item im aOrigValues[] will contain the suggested virtual machine name
3109 from the OVF file, and aConfigValues[] will contain a suggestion for a unique VirtualBox
3110 <link to="IMachine" /> name that does not exist yet.
3111 </li>
3112 <li>
3113 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3114 </li>
3115 <li>
3116 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3117 is present on import, then VirtualBox will set a meaningful default based on the operating system
3118 type.
3119 </li>
3120 <li>
3121 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3122 has no value in aOrigValues[] or aConfigValues[].
3123 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3124 type can use to specify which hard disk controller a virtual disk should be connected to.
3125 </li>
3126 <li>
3127 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3128 has no value in aOrigValues[] or aConfigValues[].
3129 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3130 </li>
3131 <li>
3132 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3133 The items in aOrigValues[] and aConfigValues[] will either be "LsiLogic" or "BusLogic".
3134 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3135 </li>
3136 <li>
3137 "Harddisk": a virtual hard disk, most probably as a reference to an image file. There can be an
3138 arbitrary number of these items, one for each virtual disk image that accompanies the OVF. The
3139 array item in aOrigValues[] will contain the file specification from the OVF file, whereas the
3140 item in aConfigValues[] will contain a qualified path specification to where the hard disk image
3141 should be copied; this target image will then be registered with VirtualBox.
3142 The matching item in the aExtraConfigValues[] array must contain a string of the following
3143 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3144 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3145 the image to. That number must be the index of an array item with one of the hard disk controller
3146 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3147 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3148 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3149 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3150 SCSI conrollers, the channel can range from 0-29.
3151 </li>
3152 <li>
3153 "LogicalNetwork": a logical network to which virtual machines can connect. This is taken from
3154 the Network section in the OVF that is shared between several virtual systems. OVF has no
3155 formal description of how the network shall be set up (e.g. whether to use NAT or host interface
3156 networking), but OVFs typically name the logical networks "nat" or "bridged" to suggest such
3157 a configuration.
3158 </li>
3159 <li>
3160 "NetworkAdapter": a network adapter. The array item in aConfigValues[] will specify the hardware
3161 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3162 of the "network=&lt;nw&gt;" format, where &lt;nw&gt; must be one of the networks as specified with the
3163 LogicalNetwork type.
3164 </li>
3165 <li>
3166 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3167 present, sound support will be enabled for the new virtual machine. Note that the virtual
3168 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3169 may be different from the virtual soundcard expected by the appliance.
3170 </li>
3171 </ul>
3172
3173 </desc>
3174
3175 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3176 <desc></desc>
3177 </param>
3178
3179 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3180 <desc></desc>
3181 </param>
3182
3183 <param name="aOrigValues" type="wstring" dir="out" safearray="yes">
3184 <desc></desc>
3185 </param>
3186
3187 <param name="aConfigValues" type="wstring" dir="out" safearray="yes">
3188 <desc></desc>
3189 </param>
3190
3191 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3192 <desc></desc>
3193 </param>
3194
3195 </method>
3196
3197 <method name="setFinalValues">
3198 <desc>
3199 This method allows the appliance's user to change the configuration for the virtual
3200 system descriptions. For each array item returned from <link to="getDescription" />,
3201 you must pass in one boolean value and one configuration value.
3202
3203 Each item in the boolean array determines whether the particular configuration item
3204 should be enabled.
3205 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3206 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3207 and SoundCard.
3208
3209 For the configuration and "extra" configuration values, if you pass in the same arrays
3210 as returned in the aConfigValues and aExtraConfigValues arrays from getDescription(),
3211 the configuration remains unchanged. Please see the documentation for getDescription()
3212 for valid configuration values for the individual array item types. If the
3213 corresponding item in the aEnabled array is false, the configuration value is ignored.
3214 </desc>
3215
3216 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3217 <desc></desc>
3218 </param>
3219
3220 <param name="aConfigValues" type="wstring" dir="in" safearray="yes">
3221 <desc></desc>
3222 </param>
3223
3224 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3225 <desc></desc>
3226 </param>
3227 </method>
3228
3229 <method name="getWarnings">
3230 <desc>Returns textual warnings which occurs on the virtual system
3231 interpretion.</desc>
3232
3233 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3234 <desc></desc>
3235 </param>
3236 </method>
3237
3238 </interface>
3239
3240
3241 <!--
3242 // IMachine
3243 /////////////////////////////////////////////////////////////////////////
3244 -->
3245
3246 <enumerator
3247 name="IMachineEnumerator" type="IMachine"
3248 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
3249 />
3250
3251 <collection
3252 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
3253 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
3254 readonly="yes"
3255 />
3256
3257 <interface
3258 name="IInternalMachineControl" extends="$unknown"
3259 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3260 internal="yes"
3261 wsmap="suppress"
3262 >
3263 <method name="updateState">
3264 <desc>
3265 Updates the VM state.
3266 <note>
3267 This operation will also update the settings file with
3268 the correct information about the saved state file
3269 and delete this file from disk when appropriate.
3270 </note>
3271 </desc>
3272 <param name="state" type="MachineState" dir="in"/>
3273 </method>
3274
3275 <method name="getIPCId">
3276 <param name="id" type="wstring" dir="return"/>
3277 </method>
3278
3279 <method name="runUSBDeviceFilters">
3280 <desc>
3281 Asks the server to run USB devices filters of the associated
3282 machine against the given USB device and tell if there is
3283 a match.
3284 <note>
3285 Intended to be used only for remote USB devices. Local
3286 ones don't require to call this method (this is done
3287 implicitly by the Host and USBProxyService).
3288 </note>
3289 </desc>
3290 <param name="device" type="IUSBDevice" dir="in"/>
3291 <param name="matched" type="boolean" dir="out"/>
3292 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3293 </method>
3294
3295 <method name="captureUSBDevice">
3296 <desc>
3297 Requests a capture of the given host USB device.
3298 When the request is completed, the VM process will
3299 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3300 notification.
3301 </desc>
3302 <param name="id" type="uuid" dir="in"/>
3303 </method>
3304
3305 <method name="detachUSBDevice">
3306 <desc>
3307 Notification that a VM is going to detach (done = false) or has
3308 already detached (done = true) the given USB device.
3309 When the done = true request is completed, the VM process will
3310 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3311 notification.
3312 <note>
3313 In the done = true case, the server must run its own filters
3314 and filters of all VMs but this one on the detached device
3315 as if it were just attached to the host computer.
3316 </note>
3317 </desc>
3318 <param name="id" type="uuid" dir="in"/>
3319 <param name="done" type="boolean" dir="in"/>
3320 </method>
3321
3322 <method name="autoCaptureUSBDevices">
3323 <desc>
3324 Requests a capture all matching USB devices attached to the host.
3325 When the request is completed, the VM process will
3326 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3327 notification per every captured device.
3328 </desc>
3329 </method>
3330
3331 <method name="detachAllUSBDevices">
3332 <desc>
3333 Notification that a VM that is being powered down. The done
3334 parameter indicates whether which stage of the power down
3335 we're at. When done = false the VM is announcing its
3336 intentions, while when done = true the VM is reporting
3337 what it has done.
3338 <note>
3339 In the done = true case, the server must run its own filters
3340 and filters of all VMs but this one on all detach devices as
3341 if they were just attached to the host computer.
3342 </note>
3343 </desc>
3344 <param name="done" type="boolean" dir="in"/>
3345 </method>
3346
3347 <method name="onSessionEnd">
3348 <desc>
3349 Triggered by the given session object when the session is about
3350 to close normally.
3351 </desc>
3352 <param name="session" type="ISession" dir="in">
3353 <desc>Session that is being closed</desc>
3354 </param>
3355 <param name="progress" type="IProgress" dir="return">
3356 <desc>
3357 Used to wait until the corresponding machine is actually
3358 dissociated from the given session on the server.
3359 Returned only when this session is a direct one.
3360 </desc>
3361 </param>
3362 </method>
3363
3364 <method name="beginSavingState">
3365 <desc>
3366 Called by the VM process to inform the server it wants to
3367 save the current state and stop the VM execution.
3368 </desc>
3369 <param name="progress" type="IProgress" dir="in">
3370 <desc>
3371 Progress object created by the VM process to wait until
3372 the state is saved.
3373 </desc>
3374 </param>
3375 <param name="stateFilePath" type="wstring" dir="out">
3376 <desc>
3377 File path the VM process must save the execution state to.
3378 </desc>
3379 </param>
3380 </method>
3381
3382 <method name="endSavingState">
3383 <desc>
3384 Called by the VM process to inform the server that saving
3385 the state previously requested by #beginSavingState is either
3386 successfully finished or there was a failure.
3387
3388 <result name="VBOX_E_FILE_ERROR">
3389 Settings file not accessible.
3390 </result>
3391 <result name="VBOX_E_XML_ERROR">
3392 Could not parse the settings file.
3393 </result>
3394
3395 </desc>
3396
3397 <param name="success" type="boolean" dir="in">
3398 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3399 otherwise.
3400 </desc>
3401 </param>
3402 </method>
3403
3404 <method name="adoptSavedState">
3405 <desc>
3406 Gets called by IConsole::adoptSavedState.
3407 <result name="VBOX_E_FILE_ERROR">
3408 Invalid saved state file path.
3409 </result>
3410 </desc>
3411 <param name="savedStateFile" type="wstring" dir="in">
3412 <desc>Path to the saved state file to adopt.</desc>
3413 </param>
3414 </method>
3415
3416 <method name="beginTakingSnapshot">
3417 <desc>
3418 Called by the VM process to inform the server it wants to
3419 take a snapshot.
3420
3421 <result name="VBOX_E_FILE_ERROR">
3422 Settings file not accessible.
3423 </result>
3424 <result name="VBOX_E_XML_ERROR">
3425 Could not parse the settings file.
3426 </result>
3427 </desc>
3428 <param name="initiator" type="IConsole" dir="in">
3429 <desc>The console object that initiated this call.</desc>
3430 </param>
3431 <param name="name" type="wstring" dir="in">
3432 <desc>Snapshot name.</desc>
3433 </param>
3434 <param name="description" type="wstring" dir="in">
3435 <desc>Snapshot description.</desc>
3436 </param>
3437 <param name="progress" type="IProgress" dir="in">
3438 <desc>
3439 Progress object created by the VM process to wait until
3440 the state is saved (only for online snapshots).
3441 </desc>
3442 </param>
3443 <param name="stateFilePath" type="wstring" dir="out">
3444 <desc>
3445 File path the VM process must save the execution state to.
3446 </desc>
3447 </param>
3448 <param name="serverProgress" type="IProgress" dir="out">
3449 <desc>
3450 Progress object created by the server process to wait until
3451 the snapshot is taken (VDI diff creation, etc.).
3452 </desc>
3453 </param>
3454 </method>
3455
3456 <method name="endTakingSnapshot">
3457 <desc>
3458 Called by the VM process to inform the server that the snapshot
3459 previously requested by #beginTakingSnapshot is either
3460 successfully taken or there was a failure.
3461 </desc>
3462
3463 <param name="success" type="boolean" dir="in">
3464 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3465 </param>
3466 </method>
3467
3468 <method name="discardSnapshot">
3469 <desc>
3470 Gets called by IConsole::discardSnapshot.
3471 <result name="VBOX_E_INVALID_OBJECT_STATE">
3472 Snapshot has more than one child snapshot.
3473 </result>
3474 </desc>
3475 <param name="initiator" type="IConsole" dir="in">
3476 <desc>The console object that initiated this call.</desc>
3477 </param>
3478 <param name="id" type="uuid" dir="in">
3479 <desc>UUID of the snapshot to discard.</desc>
3480 </param>
3481 <param name="machineState" type="MachineState" dir="out">
3482 <desc>New machine state after this operation is started.</desc>
3483 </param>
3484 <param name="progress" type="IProgress" dir="return">
3485 <desc>Progress object to track the operation completion.</desc>
3486 </param>
3487 </method>
3488
3489 <method name="discardCurrentState">
3490 <desc>
3491 Gets called by IConsole::discardCurrentState.
3492 <result name="VBOX_E_INVALID_OBJECT_STATE">
3493 Virtual machine does not have any snapshot.
3494 </result>
3495 </desc>
3496 <param name="initiator" type="IConsole" dir="in">
3497 <desc>The console object that initiated this call.</desc>
3498 </param>
3499 <param name="machineState" type="MachineState" dir="out">
3500 <desc>New machine state after this operation is started.</desc>
3501 </param>
3502 <param name="progress" type="IProgress" dir="return">
3503 <desc>Progress object to track the operation completion.</desc>
3504 </param>
3505 </method>
3506
3507 <method name="discardCurrentSnapshotAndState">
3508 <desc>
3509 Gets called by IConsole::discardCurrentSnapshotAndState.
3510 <result name="VBOX_E_INVALID_OBJECT_STATE">
3511 Virtual machine does not have any snapshot.
3512 </result>
3513 </desc>
3514 <param name="initiator" type="IConsole" dir="in">
3515 <desc>The console object that initiated this call.</desc>
3516 </param>
3517 <param name="machineState" type="MachineState" dir="out">
3518 <desc>New machine state after this operation is started.</desc>
3519 </param>
3520 <param name="progress" type="IProgress" dir="return">
3521 <desc>Progress object to track the operation completion.</desc>
3522 </param>
3523 </method>
3524
3525 <method name="pullGuestProperties">
3526 <desc>
3527 Get the list of the guest properties matching a set of patterns along
3528 with their values, time stamps and flags and give responsibility for
3529 managing properties to the console.
3530 </desc>
3531 <param name="name" type="wstring" dir="out" safearray="yes">
3532 <desc>
3533 The names of the properties returned.
3534 </desc>
3535 </param>
3536 <param name="value" type="wstring" dir="out" safearray="yes">
3537 <desc>
3538 The values of the properties returned. The array entries match the
3539 corresponding entries in the @a name array.
3540 </desc>
3541 </param>
3542 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3543 <desc>
3544 The time stamps of the properties returned. The array entries match
3545 the corresponding entries in the @a name array.
3546 </desc>
3547 </param>
3548 <param name="flags" type="wstring" dir="out" safearray="yes">
3549 <desc>
3550 The flags of the properties returned. The array entries match the
3551 corresponding entries in the @a name array.
3552 </desc>
3553 </param>
3554 </method>
3555
3556 <method name="pushGuestProperties">
3557 <desc>
3558 Set the list of the guest properties matching a set of patterns along
3559 with their values, time stamps and flags and return responsibility for
3560 managing properties to IMachine.
3561 </desc>
3562 <param name="name" type="wstring" dir="in" safearray="yes">
3563 <desc>
3564 The names of the properties.
3565 </desc>
3566 </param>
3567 <param name="value" type="wstring" dir="in" safearray="yes">
3568 <desc>
3569 The values of the properties. The array entries match the
3570 corresponding entries in the @a name array.
3571 </desc>
3572 </param>
3573 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3574 <desc>
3575 The time stamps of the properties. The array entries match
3576 the corresponding entries in the @a name array.
3577 </desc>
3578 </param>
3579 <param name="flags" type="wstring" dir="in" safearray="yes">
3580 <desc>
3581 The flags of the properties. The array entries match the
3582 corresponding entries in the @a name array.
3583 </desc>
3584 </param>
3585 </method>
3586 <method name="pushGuestProperty">
3587 <desc>
3588 Update a single guest property in IMachine.
3589 </desc>
3590 <param name="name" type="wstring" dir="in">
3591 <desc>
3592 The name of the property to be updated.
3593 </desc>
3594 </param>
3595 <param name="value" type="wstring" dir="in">
3596 <desc>
3597 The value of the property.
3598 </desc>
3599 </param>
3600 <param name="timestamp" type="unsigned long long" dir="in">
3601 <desc>
3602 The timestamp of the property.
3603 </desc>
3604 </param>
3605 <param name="flags" type="wstring" dir="in">
3606 <desc>
3607 The flags of the property.
3608 </desc>
3609 </param>
3610 </method>
3611 </interface>
3612
3613 <interface
3614 name="IBIOSSettings" extends="$unknown"
3615 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3616 wsmap="managed"
3617 >
3618 <desc>
3619 The IBIOSSettings interface represents BIOS settings of the virtual
3620 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3621 </desc>
3622 <attribute name="logoFadeIn" type="boolean">
3623 <desc>Fade in flag for BIOS logo animation.</desc>
3624 </attribute>
3625
3626 <attribute name="logoFadeOut" type="boolean">
3627 <desc>Fade out flag for BIOS logo animation.</desc>
3628 </attribute>
3629
3630 <attribute name="logoDisplayTime" type="unsigned long">
3631 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3632 </attribute>
3633
3634 <attribute name="logoImagePath" type="wstring">
3635 <desc>Local file system path for external BIOS image.</desc>
3636 </attribute>
3637
3638 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3639 <desc>Mode of the BIOS boot device menu.</desc>
3640 </attribute>
3641
3642 <attribute name="ACPIEnabled" type="boolean">
3643 <desc>ACPI support flag.</desc>
3644 </attribute>
3645
3646 <attribute name="IOAPICEnabled" type="boolean">
3647 <desc>
3648 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3649 and support IRQs above 15.
3650 </desc>
3651 </attribute>
3652
3653 <attribute name="timeOffset" type="long long">
3654 <desc>
3655 Offset in milliseconds from the host system time. This allows for
3656 guests running with a different system date/time than the host.
3657 It is equivalent to setting the system date/time in the BIOS except
3658 it is not an absolute value but a relative one. Guest Additions
3659 time synchronization honors this offset.
3660 </desc>
3661 </attribute>
3662
3663 <attribute name="PXEDebugEnabled" type="boolean">
3664 <desc>
3665 PXE debug logging flag. If set, VirtualBox will write extensive
3666 PXE trace information to the release log.
3667 </desc>
3668 </attribute>
3669
3670 <attribute name="IDEControllerType" type="IDEControllerType">
3671 <desc>
3672 Type of the virtual IDE controller. Depending on this value,
3673 VirtualBox will provide different virtual IDE hardware
3674 devices to the guest.
3675 </desc>
3676 </attribute>
3677
3678 </interface>
3679
3680 <interface
3681 name="IMachine" extends="$unknown"
3682 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3683 wsmap="managed"
3684 >
3685 <desc>
3686 The IMachine interface represents a virtual machine, or guest, created
3687 in VirtualBox.
3688
3689 This interface is used in two contexts. First of all, a collection of
3690 objects implementing this interface is stored in the
3691 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3692 machines that are currently registered with this VirtualBox
3693 installation. Also, once a session has been opened for the given virtual
3694 machine (e.g. the virtual machine is running), the machine object
3695 associated with the open session can be queried from the session object;
3696 see <link to="ISession"/> for details.
3697
3698 The main role of this interface is to expose the settings of the virtual
3699 machine and provide methods to change various aspects of the virtual
3700 machine's configuration. For machine objects stored in the
3701 <link to="IVirtualBox::machines2"/> collection, all attributes are
3702 read-only unless explicitly stated otherwise in individual attribute
3703 and method descriptions. In order to change a machine setting, a session
3704 for this machine must be opened using one of
3705 <link to="IVirtualBox::openSession"/>,
3706 <link to="IVirtualBox::openRemoteSession"/> or
3707 <link to="IVirtualBox::openExistingSession"/> methods. After the
3708 session has been successfully opened, a mutable machine object needs to
3709 be queried from the session object and then the desired settings changes
3710 can be applied to the returned object using IMachine attributes and
3711 methods. See the ISession interface description for more information
3712 about sessions.
3713
3714 Note that the IMachine interface does not provide methods to control
3715 virtual machine execution (such as start the machine, or power it
3716 down) -- these methods are grouped in a separate IConsole
3717 interface. Refer to the IConsole interface description to get more
3718 information about this topic.
3719
3720 <see>ISession, IConsole</see>
3721 </desc>
3722
3723 <attribute name="parent" type="IVirtualBox" readonly="yes">
3724 <desc>Associated parent object.</desc>
3725 </attribute>
3726
3727 <attribute name="accessible" type="boolean" readonly="yes">
3728 <desc>
3729 Whether this virtual machine is currently accessible or not.
3730
3731 The machine is considered to be inaccessible when:
3732 <ul>
3733 <li>It is a registered virtual machine, and
3734 </li>
3735 <li>Its settings file is inaccessible (for example, it is
3736 located on a network share that is not accessible during
3737 VirtualBox startup, or becomes inaccessible later, or if
3738 the settings file can be read but is invalid).
3739 </li>
3740 </ul>
3741
3742 Otherwise, the value of this property is always <tt>true</tt>.
3743
3744 Every time this property is read, the accessibility state of
3745 this machine is re-evaluated. If the returned value is |false|,
3746 the <link to="#accessError"/> property may be used to get the
3747 detailed error information describing the reason of
3748 inaccessibility.
3749
3750 When the machine is inaccessible, only the following properties
3751 can be used on it:
3752 <ul>
3753 <li><link to="#parent"/></li>
3754 <li><link to="#id"/></li>
3755 <li><link to="#settingsFilePath"/></li>
3756 <li><link to="#accessible"/></li>
3757 <li><link to="#accessError"/></li>
3758 </ul>
3759
3760 An attempt to access any other property or method will return
3761 an error.
3762
3763 The only possible action you can perform on an inaccessible
3764 machine is to unregister it using the
3765 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3766 for the accessibility state once more by querying this
3767 property).
3768
3769 <note>
3770 In the current implementation, once this property returns
3771 <tt>true</tt>, the machine will never become inaccessible
3772 later, even if its settings file cannot be successfully
3773 read/written any more (at least, until the VirtualBox
3774 server is restarted). This limitation may be removed in
3775 future releases.
3776 </note>
3777 </desc>
3778 </attribute>
3779
3780 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3781 <desc>
3782 Error information describing the reason of machine
3783 inaccessibility.
3784
3785 Reading this property is only valid after the last call to
3786 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3787 machine is currently unaccessible). Otherwise, a null
3788 IVirtualBoxErrorInfo object will be returned.
3789 </desc>
3790 </attribute>
3791
3792 <attribute name="name" type="wstring">
3793 <desc>
3794 Name of the virtual machine.
3795
3796 Besides being used for human-readable identification purposes
3797 everywhere in VirtualBox, the virtual machine name is also used
3798 as a name of the machine's settings file and as a name of the
3799 subdirectory this settings file resides in. Thus, every time you
3800 change the value of this property, the settings file will be
3801 renamed once you call <link to="#saveSettings"/> to confirm the
3802 change. The containing subdirectory will be also renamed, but
3803 only if it has exactly the same name as the settings file
3804 itself prior to changing this property (for backward compatibility
3805 with previous API releases). The above implies the following
3806 limitations:
3807 <ul>
3808 <li>The machine name cannot be empty.</li>
3809 <li>The machine name can contain only characters that are valid
3810 file name characters according to the rules of the file
3811 system used to store VirtualBox configuration.</li>
3812 <li>You cannot have two or more machines with the same name
3813 if they use the same subdirectory for storing the machine
3814 settings files.</li>
3815 <li>You cannot change the name of the machine if it is running,
3816 or if any file in the directory containing the settings file
3817 is being used by another running machine or by any other
3818 process in the host operating system at a time when
3819 <link to="#saveSettings"/> is called.
3820 </li>
3821 </ul>
3822 If any of the above limitations are hit, <link to="#saveSettings"/>
3823 will return an appropriate error message explaining the exact
3824 reason and the changes you made to this machine will not be
3825 saved.
3826 <note>
3827 For "legacy" machines created using the
3828 <link to="IVirtualBox::createLegacyMachine"/> call,
3829 the above naming limitations do not apply because the
3830 machine name does not affect the settings file name.
3831 The settings file name remains the same as it was specified
3832 during machine creation and never changes.
3833 </note>
3834 </desc>
3835 </attribute>
3836
3837 <attribute name="description" type="wstring">
3838 <desc>
3839 Description of the virtual machine.
3840
3841 The description attribute can contain any text and is
3842 typically used to describe the hardware and software
3843 configuration of the virtual machine in detail (i.e. network
3844 settings, versions of the installed software and so on).
3845 </desc>
3846 </attribute>
3847
3848 <attribute name="id" type="uuid" readonly="yes">
3849 <desc>UUID of the virtual machine.</desc>
3850 </attribute>
3851
3852 <attribute name="OSTypeId" type="wstring">
3853 <desc>
3854 User-defined identifier of the Guest OS type.
3855 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3856 an IGuestOSType object representing details about the given
3857 Guest OS type.
3858 <note>
3859 This value may differ from the value returned by
3860 <link to="IGuest::OSTypeId"/> if Guest Additions are
3861 installed to the guest OS.
3862 </note>
3863 </desc>
3864 </attribute>
3865
3866 <attribute name="HardwareVersion" type="wstring">
3867 <desc>Hardware version identifier. Internal use only for now.</desc>
3868 </attribute>
3869
3870 <attribute name="CPUCount" type="unsigned long">
3871 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3872 </attribute>
3873
3874 <attribute name="memorySize" type="unsigned long">
3875 <desc>System memory size in megabytes.</desc>
3876 </attribute>
3877
3878 <attribute name="memoryBalloonSize" type="unsigned long">
3879 <desc>Initial memory balloon size in megabytes.</desc>
3880 </attribute>
3881
3882 <attribute name="statisticsUpdateInterval" type="unsigned long">
3883 <desc>Initial interval to update guest statistics in seconds.</desc>
3884 </attribute>
3885
3886 <attribute name="VRAMSize" type="unsigned long">
3887 <desc>Video memory size in megabytes.</desc>
3888 </attribute>
3889
3890 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3891 <desc>
3892 This setting determines whether VirtualBox allows guests to make use
3893 of the 3D graphics support available on the host. Currently limited
3894 to OpenGL only. </desc>
3895 </attribute>
3896
3897 <attribute name="monitorCount" type="unsigned long">
3898 <desc>
3899 Number of virtual monitors.
3900 <note>
3901 Only effective on Windows XP and later guests with
3902 Guest Additions installed.
3903 </note>
3904 </desc>
3905 </attribute>
3906
3907 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3908 <desc>Object containing all BIOS settings.</desc>
3909 </attribute>
3910
3911 <attribute name="HWVirtExEnabled" type="TSBool">
3912 <desc>
3913 This setting determines whether VirtualBox will try to make use of
3914 the host CPU's hardware virtualization extensions such as Intel VT-x
3915 and AMD-V. Note that in case such extensions are not available,
3916 they will not be used.
3917 </desc>
3918 </attribute>
3919
3920 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3921 <desc>
3922 This setting determines whether VirtualBox will try to make use of
3923 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3924 such extensions are not available, they will not be used.
3925 </desc>
3926 </attribute>
3927
3928 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3929 <desc>
3930 This setting determines whether VirtualBox will try to make use of
3931 the VPID extension of Intel VT-x. Note that in case such extensions are
3932 not available, they will not be used.
3933 </desc>
3934 </attribute>
3935
3936 <attribute name="PAEEnabled" type="boolean" default="false">
3937 <desc>
3938 This setting determines whether VirtualBox will expose the Physical Address
3939 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3940 is not available, it will not be reported.
3941 </desc>
3942 </attribute>
3943
3944 <attribute name="snapshotFolder" type="wstring">
3945 <desc>
3946 Full path to the directory used to store snapshot data
3947 (differencing hard disks and saved state files) of this machine.
3948
3949 The initial value of this property is
3950 <tt>&lt;</tt><link to="#settingsFilePath">
3951 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3952 <link to="#id">machine_uuid</link>
3953 <tt>&gt;</tt>.
3954
3955 Currently, it is an error to try to change this property on
3956 a machine that has snapshots (because this would require to
3957 move possibly large files to a different location).
3958 A separate method will be available for this purpose later.
3959
3960 <note>
3961 Setting this property to <tt>null</tt> will restore the
3962 initial value.
3963 </note>
3964 <note>
3965 When setting this property, the specified path can be
3966 absolute (full path) or relative to the directory where the
3967 <link to="#settingsFilePath">machine settings file</link>
3968 is located. When reading this property, a full path is
3969 always returned.
3970 </note>
3971 <note>
3972 The specified path may not exist, it will be created
3973 when necessary.
3974 </note>
3975 </desc>
3976 </attribute>
3977
3978 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3979 <desc>VRDP server object.</desc>
3980 </attribute>
3981
3982 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3983 <desc>Array of hard disks attached to this machine.</desc>
3984 </attribute>
3985
3986 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3987 <desc>Associated DVD drive object.</desc>
3988 </attribute>
3989
3990 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3991 <desc>Associated floppy drive object.</desc>
3992 </attribute>
3993
3994 <attribute name="USBController" type="IUSBController" readonly="yes">
3995 <desc>
3996 Associated USB controller object.
3997
3998 <note>
3999 This method may set a @ref com_warnings "warning result code".
4000 </note>
4001 <note>
4002 If USB functionality is not available in the given edition of
4003 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4004 </note>
4005 </desc>
4006 </attribute>
4007
4008 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4009 <desc>Associated audio adapter, always present.</desc>
4010 </attribute>
4011
4012 <attribute name="SATAController" type="ISATAController" readonly="yes">
4013 <desc>
4014 Associated SATA controller object.
4015 </desc>
4016 </attribute>
4017
4018 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4019 <desc>
4020 Full name of the file containing machine settings data.
4021 </desc>
4022 </attribute>
4023
4024 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4025 <desc>
4026 Current version of the format of the settings file of this machine
4027 (<link to="#settingsFilePath"/>).
4028
4029 The version string has the following format:
4030 <pre>
4031 x.y-platform
4032 </pre>
4033 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4034 versions, and <tt>platform</tt> is the platform identifier.
4035
4036 The current version usually matches the value of the
4037 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4038 settings file was created by an older version of VirtualBox and there
4039 was a change of the settings file format since then.
4040
4041 Note that VirtualBox automatically converts settings files from older
4042 versions to the most recent version when reading them (usually at
4043 VirtualBox startup) but it doesn't save the changes back until
4044 you call a method that implicitly saves settings (such as
4045 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4046 explicitly. Therefore, if the value of this attribute differs from the
4047 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4048 means that the settings file was converted but the result of the
4049 conversion is not yet saved to disk.
4050
4051 The above feature may be used by interactive front-ends to inform users
4052 about the settings file format change and offer them to explicitly save
4053 all converted settings files (the global and VM-specific ones),
4054 optionally create backup copies of the old settings files before saving,
4055 etc.
4056
4057 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4058 </desc>
4059 </attribute>
4060
4061 <attribute name="settingsModified" type="boolean" readonly="yes">
4062 <desc>
4063 Whether the settings of this machine have been modified
4064 (but neither yet saved nor discarded).
4065 <note>
4066 Reading this property is only valid on instances returned
4067 by <link to="ISession::machine"/> and on new machines
4068 created by <link to="IVirtualBox::createMachine"/> or opened
4069 by <link to="IVirtualBox::openMachine"/> but not
4070 yet registered, or on unregistered machines after calling
4071 <link to="IVirtualBox::unregisterMachine"/>. For all other
4072 cases, the settings can never be modified.
4073 </note>
4074 <note>
4075 For newly created unregistered machines, the value of this
4076 property is always TRUE until <link to="#saveSettings"/>
4077 is called (no matter if any machine settings have been
4078 changed after the creation or not). For opened machines
4079 the value is set to FALSE (and then follows to normal rules).
4080 </note>
4081 </desc>
4082 </attribute>
4083
4084 <attribute name="sessionState" type="SessionState" readonly="yes">
4085 <desc>Current session state for this machine.</desc>
4086 </attribute>
4087
4088 <attribute name="sessionType" type="wstring" readonly="yes">
4089 <desc>
4090 Type of the session. If <link to="#sessionState"/> is
4091 SessionSpawning or SessionOpen, this attribute contains the
4092 same value as passed to the
4093 <link to="IVirtualBox::openRemoteSession"/> method in the
4094 @a type parameter. If the session was opened directly using
4095 <link to="IVirtualBox::openSession"/>, or if
4096 <link to="#sessionState"/> is SessionClosed, the value of this
4097 attribute is @c null.
4098 </desc>
4099 </attribute>
4100
4101 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4102 <desc>
4103 Identifier of the session process. This attribute contains the
4104 platform-dependent identifier of the process that has opened a
4105 direct session for this machine using the
4106 <link to="IVirtualBox::openSession"/> call. The returned value
4107 is only valid if <link to="#sessionState"/> is SessionOpen or
4108 SessionClosing (i.e. a session is currently open or being
4109 closed) by the time this property is read.
4110 </desc>
4111 </attribute>
4112
4113 <attribute name="state" type="MachineState" readonly="yes">
4114 <desc>Current execution state of this machine.</desc>
4115 </attribute>
4116
4117 <attribute name="lastStateChange" type="long long" readonly="yes">
4118 <desc>
4119 Time stamp of the last execution state change,
4120 in milliseconds since 1970-01-01 UTC.
4121 </desc>
4122 </attribute>
4123
4124 <attribute name="stateFilePath" type="wstring" readonly="yes">
4125 <desc>
4126 Full path to the file that stores the execution state of
4127 the machine when it is in the <link to="MachineState_Saved"/> state.
4128 <note>
4129 When the machine is not in the Saved state, this attribute
4130 <tt>null</tt>.
4131 </note>
4132 </desc>
4133 </attribute>
4134
4135 <attribute name="logFolder" type="wstring" readonly="yes">
4136 <desc>
4137 Full path to the folder that stores a set of rotated log files
4138 recorded during machine execution. The most recent log file is
4139 named <tt>VBox.log</tt>, the previous log file is
4140 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4141 in the current version).
4142 </desc>
4143 </attribute>
4144
4145 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4146 <desc>
4147 Current snapshot of this machine.
4148 <note>
4149 A <tt>null</tt> object is returned if the machine doesn't
4150 have snapshots.
4151 </note>
4152 <see><link to="ISnapshot"/></see>
4153 </desc>
4154 </attribute>
4155
4156 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4157 <desc>
4158 Number of snapshots taken on this machine. Zero means the
4159 machine doesn't have any snapshots.
4160 </desc>
4161 </attribute>
4162
4163 <attribute name="currentStateModified" type="boolean" readonly="yes">
4164 <desc>
4165 Returns <tt>true</tt> if the current state of the machine is not
4166 identical to the state stored in the current snapshot.
4167
4168 The current state is identical to the current snapshot right
4169 after one of the following calls are made:
4170 <ul>
4171 <li><link to="IConsole::discardCurrentState"/> or
4172 <link to="IConsole::discardCurrentSnapshotAndState"/>
4173 </li>
4174 <li><link to="IConsole::takeSnapshot"/> (issued on a
4175 powered off or saved machine, for which
4176 <link to="#settingsModified"/> returns <tt>false</tt>)
4177 </li>
4178 <li><link to="IMachine::setCurrentSnapshot"/>
4179 </li>
4180 </ul>
4181
4182 The current state remains identical until one of the following
4183 happens:
4184 <ul>
4185 <li>settings of the machine are changed</li>
4186 <li>the saved state is discarded</li>
4187 <li>the current snapshot is discarded</li>
4188 <li>an attempt to execute the machine is made</li>
4189 </ul>
4190
4191 <note>
4192 For machines that don't have snapshots, this property is
4193 always <tt>false</tt>.
4194 </note>
4195 </desc>
4196 </attribute>
4197
4198 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4199 <desc>
4200 Collection of shared folders for this machine (permanent shared
4201 folders). These folders are shared automatically at machine startup
4202 and available only to the guest OS installed within this machine.
4203
4204 New shared folders are added to the collection using
4205 <link to="#createSharedFolder"/>. Existing shared folders can be
4206 removed using <link to="#removeSharedFolder"/>.
4207 </desc>
4208 </attribute>
4209
4210 <attribute name="clipboardMode" type="ClipboardMode">
4211 <desc>
4212 Synchronization mode between the host OS clipboard
4213 and the guest OS clipboard.
4214 </desc>
4215 </attribute>
4216
4217 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4218 <desc>
4219 A comma-separated list of simple glob patterns. Changes to guest
4220 properties whose name matches one of the patterns will generate an
4221 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4222 </desc>
4223 </attribute>
4224
4225 <method name="setBootOrder">
4226 <desc>
4227 Puts the given device to the specified position in
4228 the boot order.
4229
4230 To indicate that no device is associated with the given position,
4231 <link to="DeviceType_Null"/> should be used.
4232
4233 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4234
4235 <result name="E_INVALIDARG">
4236 Boot @a position out of range.
4237 </result>
4238 <result name="E_NOTIMPL">
4239 Booting from USB @a device currently not supported.
4240 </result>
4241
4242 </desc>
4243 <param name="position" type="unsigned long" dir="in">
4244 <desc>
4245 Position in the boot order (<tt>1</tt> to the total number of
4246 devices the machine can boot from, as returned by
4247 <link to="ISystemProperties::maxBootPosition"/>).
4248 </desc>
4249 </param>
4250 <param name="device" type="DeviceType" dir="in">
4251 <desc>
4252 The type of the device used to boot at the given position.
4253 </desc>
4254 </param>
4255 </method>
4256
4257 <method name="getBootOrder" const="yes">
4258 <desc>
4259 Returns the device type that occupies the specified
4260 position in the boot order.
4261
4262 @todo [remove?]
4263 If the machine can have more than one device of the returned type
4264 (such as hard disks), then a separate method should be used to
4265 retrieve the individual device that occupies the given position.
4266
4267 If here are no devices at the given position, then
4268 <link to="DeviceType_Null"/> is returned.
4269
4270 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4271
4272 <result name="E_INVALIDARG">
4273 Boot @a position out of range.
4274 </result>
4275
4276 </desc>
4277 <param name="position" type="unsigned long" dir="in">
4278 <desc>
4279 Position in the boot order (<tt>1</tt> to the total number of
4280 devices the machine can boot from, as returned by
4281 <link to="ISystemProperties::maxBootPosition"/>).
4282 </desc>
4283 </param>
4284 <param name="device" type="DeviceType" dir="return">
4285 <desc>
4286 Device at the given position.
4287 </desc>
4288 </param>
4289 </method>
4290
4291 <method name="attachHardDisk">
4292 <desc>
4293 Attaches a virtual hard disk identified by the given UUID @a id
4294 to a device slot of the specified bus.
4295
4296 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4297 specify the primary or secondary IDE controller, respectively. The
4298 SATA bus supports 30 channels, so this parameter can be a number
4299 ranging from @c 0 to @c 29.
4300
4301 For the primary controller of the IDE bus, the @a device number can be
4302 either @c 0 or @c 1, to specify the master or the slave device,
4303 respectively. For the secondary IDE controller, the device number is
4304 always @c 1 because the master device is reserved for the CD-ROM drive.
4305
4306 For the SATA bus, the @a device parameter is currently unused and
4307 must be @c 0.
4308
4309 The specified device slot must not have another disk attached to it, or
4310 this method will fail.
4311
4312 See <link to="IHardDisk"/> for more detailed information about
4313 attaching hard disks.
4314
4315 <note>
4316 You cannot attach a hard disk to a running machine. Also, you cannot
4317 attach a hard disk to a newly created machine until this machine's
4318 settings are saved to disk using <link to="#saveSettings"/>.
4319 </note>
4320 <note>
4321 If the hard disk is being attached indirectly, a new differencing hard
4322 disk will implicitly be created for it and attached instead. If the
4323 changes made to the machine settings (including this indirect
4324 attachment) are later cancelled using <link to="#discardSettings"/>,
4325 this implicitly created differencing hard disk will implicitly
4326 be deleted.
4327 </note>
4328
4329 <result name="E_INVALIDARG">
4330 SATA device, SATA channel, IDE channel or IDE slot out of range.
4331 </result>
4332 <result name="VBOX_E_INVALID_OBJECT_STATE">
4333 Attempt to attach hard disk to an unregistered virtual machine.
4334 </result>
4335 <result name="VBOX_E_INVALID_VM_STATE">
4336 Invalid machine state.
4337 </result>
4338 <result name="VBOX_E_OBJECT_IN_USE">
4339 Hard disk already attached to this or another virtual machine.
4340 </result>
4341
4342 </desc>
4343 <param name="id" type="uuid" dir="in">
4344 <desc>UUID of the hard disk to attach.</desc>
4345 </param>
4346 <param name="bus" type="StorageBus" dir="in">
4347 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4348 </param>
4349 <param name="channel" type="long" dir="in">
4350 <desc>Channel to attach the hard disk to.</desc>
4351 </param>
4352 <param name="device" type="long" dir="in">
4353 <desc>
4354 Device slot in the given channel to attach the hard disk to.
4355 </desc>
4356 </param>
4357 </method>
4358
4359 <method name="getHardDisk" const="yes">
4360 <desc>
4361 Returns the virtual hard disk attached to a device slot of the specified
4362 bus.
4363
4364 Note that if the hard disk was indirectly attached by
4365 <link to="#attachHardDisk"/> to the given device slot then this
4366 method will return not the same object as passed to the
4367 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4368 more detailed information about attaching hard disks.
4369
4370 <result name="VBOX_E_OBJECT_NOT_FOUND">
4371 No hard disk attached to given slot/bus.
4372 </result>
4373
4374 </desc>
4375 <param name="bus" type="StorageBus" dir="in">
4376 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4377 </param>
4378 <param name="channel" type="long" dir="in">
4379 <desc>Channel to query.</desc>
4380 </param>
4381 <param name="device" type="long" dir="in">
4382 <desc>Device slot in the given channel to query.</desc>
4383 </param>
4384 <param name="hardDisk" type="IHardDisk" dir="return">
4385 <desc>Attached hard disk object.</desc>
4386 </param>
4387 </method>
4388
4389 <method name="detachHardDisk">
4390 <desc>
4391 Detaches the virtual hard disk attached to a device slot of the
4392 specified bus.
4393
4394 Detaching the hard disk from the virtual machine is deferred. This means
4395 that the hard disk remains associated with the machine when this method
4396 returns and gets actually de-associated only after a successful
4397 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4398 for more detailed information about attaching hard disks.
4399
4400 <note>
4401 You cannot detach the hard disk from a running machine.
4402 </note>
4403 <note>
4404 Detaching differencing hard disks implicitly created by <link
4405 to="#attachHardDisk"/> for the indirect attachment using this
4406 method will <b>not</b> implicitly delete them. The
4407 <link to="IHardDisk::deleteStorage"/> operation should be
4408 explicitly performed by the caller after the hard disk is successfully
4409 detached and the settings are saved with
4410 <link to="#saveSettings"/>, if it is the desired action.
4411 </note>
4412
4413 <result name="VBOX_E_INVALID_VM_STATE">
4414 Attempt to detach hard disk from a running virtual machine.
4415 </result>
4416 <result name="VBOX_E_OBJECT_NOT_FOUND">
4417 No hard disk attached to given slot/bus.
4418 </result>
4419 <result name="VBOX_E_NOT_SUPPORTED">
4420 Hard disk format does not support storage deletion.
4421 </result>
4422
4423 </desc>
4424 <param name="bus" type="StorageBus" dir="in">
4425 <desc>Bus to detach the hard disk from.</desc>
4426 </param>
4427 <param name="channel" type="long" dir="in">
4428 <desc>Channel number to detach the hard disk from.</desc>
4429 </param>
4430 <param name="device" type="long" dir="in">
4431 <desc>Device slot number to detach the hard disk from.</desc>
4432 </param>
4433 </method>
4434
4435 <method name="getNetworkAdapter" const="yes">
4436 <desc>
4437 Returns the network adapter associated with the given slot.
4438 Slots are numbered sequentially, starting with zero. The total
4439 number of adapters per machine is defined by the
4440 <link to="ISystemProperties::networkAdapterCount"/> property,
4441 so the maximum slot number is one less than that property's value.
4442
4443 <result name="E_INVALIDARG">
4444 Invalid @a slot number.
4445 </result>
4446
4447 </desc>
4448 <param name="slot" type="unsigned long" dir="in"/>
4449 <param name="adapter" type="INetworkAdapter" dir="return"/>
4450 </method>
4451
4452 <method name="getSerialPort" const="yes">
4453 <desc>
4454 Returns the serial port associated with the given slot.
4455 Slots are numbered sequentially, starting with zero. The total
4456 number of serial ports per machine is defined by the
4457 <link to="ISystemProperties::serialPortCount"/> property,
4458 so the maximum slot number is one less than that property's value.
4459
4460 <result name="E_INVALIDARG">
4461 Invalid @a slot number.
4462 </result>
4463
4464 </desc>
4465 <param name="slot" type="unsigned long" dir="in"/>
4466 <param name="port" type="ISerialPort" dir="return"/>
4467 </method>
4468
4469 <method name="getParallelPort" const="yes">
4470 <desc>
4471 Returns the parallel port associated with the given slot.
4472 Slots are numbered sequentially, starting with zero. The total
4473 number of parallel ports per machine is defined by the
4474 <link to="ISystemProperties::parallelPortCount"/> property,
4475 so the maximum slot number is one less than that property's value.
4476
4477 <result name="E_INVALIDARG">
4478 Invalid @a slot number.
4479 </result>
4480
4481 </desc>
4482 <param name="slot" type="unsigned long" dir="in"/>
4483 <param name="port" type="IParallelPort" dir="return"/>
4484 </method>
4485
4486 <method name="getNextExtraDataKey">
4487 <desc>
4488 Returns the machine-specific extra data key name following the
4489 supplied key.
4490
4491 An error is returned if the supplied @a key does not exist. @c NULL is
4492 returned in @a nextKey if the supplied key is the last key. When
4493 supplying @c NULL for the @a key, the first key item is returned in
4494 @a nextKey (if there is any). @a nextValue is an optional parameter and
4495 if supplied, the next key's value is returned in it.
4496
4497 <result name="VBOX_E_OBJECT_NOT_FOUND">
4498 Extra data @a key not found.
4499 </result>
4500
4501 </desc>
4502 <param name="key" type="wstring" dir="in">
4503 <desc>Name of the data key to follow.</desc>
4504 </param>
4505 <param name="nextKey" type="wstring" dir="out">
4506 <desc>Name of the next data key.</desc>
4507 </param>
4508 <param name="nextValue" type="wstring" dir="out">
4509 <desc>Value of the next data key.</desc>
4510 </param>
4511 </method>
4512
4513 <method name="getExtraData">
4514 <desc>
4515 Returns associated machine-specific extra data.
4516
4517 If the requested data @a key does not exist, this function will
4518 succeed and return @c NULL in the @a value argument.
4519
4520 <result name="VBOX_E_FILE_ERROR">
4521 Settings file not accessible.
4522 </result>
4523 <result name="VBOX_E_XML_ERROR">
4524 Could not parse the settings file.
4525 </result>
4526
4527 </desc>
4528 <param name="key" type="wstring" dir="in">
4529 <desc>Name of the data key to get.</desc>
4530 </param>
4531 <param name="value" type="wstring" dir="return">
4532 <desc>Value of the requested data key.</desc>
4533 </param>
4534 </method>
4535
4536 <method name="setExtraData">
4537 <desc>
4538 Sets associated machine-specific extra data.
4539
4540 If you pass @c NULL as a key @a value, the given @a key will be
4541 deleted.
4542
4543 <note>
4544 Before performing the actual data change, this method will ask all
4545 registered callbacks using the
4546 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4547 notification for a permission. If one of the callbacks refuses the
4548 new value, the change will not be performed.
4549 </note>
4550 <note>
4551 On success, the
4552 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4553 is called to inform all registered callbacks about a successful data
4554 change.
4555 </note>
4556 <note>
4557 This method can be called outside the machine session and therefore
4558 it's a caller's responsibility to handle possible race conditions
4559 when several clients change the same key at the same time.
4560 </note>
4561
4562 <result name="VBOX_E_FILE_ERROR">
4563 Settings file not accessible.
4564 </result>
4565 <result name="VBOX_E_XML_ERROR">
4566 Could not parse the settings file.
4567 </result>
4568
4569 </desc>
4570 <param name="key" type="wstring" dir="in">
4571 <desc>Name of the data key to set.</desc>
4572 </param>
4573 <param name="value" type="wstring" dir="in">
4574 <desc>Value to assign to the key.</desc>
4575 </param>
4576 </method>
4577
4578 <method name="saveSettings">
4579 <desc>
4580 Saves any changes to machine settings made since the session
4581 has been opened or a new machine has been created, or since the
4582 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4583 For registered machines, new settings become visible to all
4584 other VirtualBox clients after successful invocation of this
4585 method.
4586 <note>
4587 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4588 notification event after the configuration has been successfully
4589 saved (only for registered machines).
4590 </note>
4591 <note>
4592 Calling this method is only valid on instances returned
4593 by <link to="ISession::machine"/> and on new machines
4594 created by <link to="IVirtualBox::createMachine"/> but not
4595 yet registered, or on unregistered machines after calling
4596 <link to="IVirtualBox::unregisterMachine"/>.
4597 </note>
4598
4599 <result name="VBOX_E_FILE_ERROR">
4600 Settings file not accessible.
4601 </result>
4602 <result name="VBOX_E_XML_ERROR">
4603 Could not parse the settings file.
4604 </result>
4605 <result name="E_ACCESSDENIED">
4606 Modification request refused.
4607 </result>
4608
4609 </desc>
4610 </method>
4611
4612 <method name="saveSettingsWithBackup">
4613 <desc>
4614 Creates a backup copy of the machine settings file (<link
4615 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4616 <link to="#saveSettings"/>.
4617
4618 Note that the backup copy is created <b>only</b> if the settings file
4619 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4620 details). Otherwise, this call is fully equivalent to
4621 <link to="#saveSettings"/> and no backup copying is done.
4622
4623 The backup copy is created in the same directory where the original
4624 settings file is located. It is given the following file name:
4625 <pre>
4626 original.xml.x.y-platform.bak
4627 </pre>
4628 where <tt>original.xml</tt> is the original settings file name
4629 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4630 format of the settings file (before auto-conversion).
4631
4632 If the given backup file already exists, this method will try to add the
4633 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4634 0 to 9) and copy it again until it succeeds. If all suffixes are
4635 occupied, or if any other copy error occurs, this method will return a
4636 failure.
4637
4638 If the copy operation succeeds, the @a bakFileName return argument will
4639 receive a full path to the created backup file (for informational
4640 purposes). Note that this will happen even if the subsequent
4641 <link to="#saveSettings"/> call performed by this method after the
4642 copy operation, fails.
4643
4644 <note>
4645 The VirtualBox API never calls this method. It is intended purely for
4646 the purposes of creating backup copies of the settings files by
4647 front-ends before saving the results of the automatically performed
4648 settings conversion to disk.
4649 </note>
4650
4651 <see>settingsFileVersion</see>
4652
4653 <result name="VBOX_E_FILE_ERROR">
4654 Settings file not accessible.
4655 </result>
4656 <result name="VBOX_E_XML_ERROR">
4657 Could not parse the settings file.
4658 </result>
4659 <result name="VBOX_E_INVALID_VM_STATE">
4660 Virtual machine is not mutable.
4661 </result>
4662 <result name="E_ACCESSDENIED">
4663 Modification request refused.
4664 </result>
4665
4666 </desc>
4667 <param name="bakFileName" type="wstring" dir="return">
4668 <desc>Full path to the created backup copy.</desc>
4669 </param>
4670 </method>
4671
4672 <method name="discardSettings">
4673 <desc>
4674 Discards any changes to the machine settings made since the session
4675 has been opened or since the last call to <link to="#saveSettings"/>
4676 or <link to="#discardSettings"/>.
4677 <note>
4678 Calling this method is only valid on instances returned
4679 by <link to="ISession::machine"/> and on new machines
4680 created by <link to="IVirtualBox::createMachine"/> or
4681 opened by <link to="IVirtualBox::openMachine"/> but not
4682 yet registered, or on unregistered machines after calling
4683 <link to="IVirtualBox::unregisterMachine"/>.
4684 </note>
4685
4686 <result name="VBOX_E_INVALID_VM_STATE">
4687 Virtual machine is not mutable.
4688 </result>
4689
4690 </desc>
4691 </method>
4692
4693 <method name="deleteSettings">
4694 <desc>
4695 Deletes the settings file of this machine from disk.
4696 The machine must not be registered in order for this operation
4697 to succeed.
4698 <note>
4699 <link to="#settingsModified"/> will return TRUE after this
4700 method successfully returns.
4701 </note>
4702 <note>
4703 Calling this method is only valid on instances returned
4704 by <link to="ISession::machine"/> and on new machines
4705 created by <link to="IVirtualBox::createMachine"/> or
4706 opened by <link to="IVirtualBox::openMachine"/> but not
4707 yet registered, or on unregistered machines after calling
4708 <link to="IVirtualBox::unregisterMachine"/>.
4709 </note>
4710 <note>
4711 The deleted machine settings file can be restored (saved again)
4712 by calling <link to="#saveSettings"/>.
4713 </note>
4714
4715 <result name="VBOX_E_INVALID_VM_STATE">
4716 Cannot delete settings of a registered machine or
4717 machine not mutable.
4718 </result>
4719 <result name="VBOX_E_IPRT_ERROR">
4720 Could not delete the settings file.
4721 </result>
4722
4723 </desc>
4724 </method>
4725
4726 <method name="export">
4727 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
4728 steps required to export VirtualBox machines to OVF.
4729 </desc>
4730
4731 <param name="appliance" type="IAppliance" dir="in">
4732 <desc>Appliance to export this machine to.</desc>
4733 </param>
4734 </method >
4735
4736 <method name="getSnapshot">
4737 <desc>
4738 Returns a snapshot of this machine with the given UUID.
4739 A <tt>null</tt> UUID can be used to obtain the first snapshot
4740 taken on this machine. This is useful if you want to traverse
4741 the whole tree of snapshots starting from the root.
4742
4743 <result name="VBOX_E_OBJECT_NOT_FOUND">
4744 Virtual machine has no snapshots or snapshot not found.
4745 </result>
4746
4747 </desc>
4748 <param name="id" type="uuid" dir="in">
4749 <desc>UUID of the snapshot to get</desc>
4750 </param>
4751 <param name="snapshot" type="ISnapshot" dir="return">
4752 <desc>Snapshot object with the given UUID.</desc>
4753 </param>
4754 </method>
4755
4756 <method name="findSnapshot">
4757 <desc>
4758 Returns a snapshot of this machine with the given name.
4759
4760 <result name="VBOX_E_OBJECT_NOT_FOUND">
4761 Virtual machine has no snapshots or snapshot not found.
4762 </result>
4763
4764 </desc>
4765 <param name="name" type="wstring" dir="in">
4766 <desc>Name of the snapshot to find</desc>
4767 </param>
4768 <param name="snapshot" type="ISnapshot" dir="return">
4769 <desc>Snapshot object with the given name.</desc>
4770 </param>
4771 </method>
4772
4773 <method name="setCurrentSnapshot">
4774 <desc>
4775 Sets the current snapshot of this machine.
4776 <note>
4777 In the current implementation, this operation is not
4778 implemented.
4779 </note>
4780 </desc>
4781 <param name="id" type="uuid" dir="in">
4782 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4783 </param>
4784 </method>
4785
4786 <method name="createSharedFolder">
4787 <desc>
4788 Creates a new permanent shared folder by associating the given logical
4789 name with the given host path, adds it to the collection of shared
4790 folders and starts sharing it. Refer to the description of
4791 <link to="ISharedFolder"/> to read more about logical names.
4792
4793 <result name="VBOX_E_OBJECT_IN_USE">
4794 Shared folder already exists.
4795 </result>
4796 <result name="VBOX_E_FILE_ERROR">
4797 Shared folder @a hostPath not accessible.
4798 </result>
4799
4800 </desc>
4801 <param name="name" type="wstring" dir="in">
4802 <desc>Unique logical name of the shared folder.</desc>
4803 </param>
4804 <param name="hostPath" type="wstring" dir="in">
4805 <desc>Full path to the shared folder in the host file system.</desc>
4806 </param>
4807 <param name="writable" type="boolean" dir="in">
4808 <desc>Whether the share is writable or readonly</desc>
4809 </param>
4810 </method>
4811
4812 <method name="removeSharedFolder">
4813 <desc>
4814 Removes the permanent shared folder with the given name previously
4815 created by <link to="#createSharedFolder"/> from the collection of
4816 shared folders and stops sharing it.
4817
4818 <result name="VBOX_E_INVALID_VM_STATE">
4819 Virtual machine is not mutable.
4820 </result>
4821 <result name="VBOX_E_OBJECT_NOT_FOUND">
4822 Shared folder @a name does not exist.
4823 </result>
4824
4825 </desc>
4826 <param name="name" type="wstring" dir="in">
4827 <desc>Logical name of the shared folder to remove.</desc>
4828 </param>
4829 </method>
4830
4831 <method name="canShowConsoleWindow">
4832 <desc>
4833 Returns @c true if the VM console process can activate the
4834 console window and bring it to foreground on the desktop of
4835 the host PC.
4836 <note>
4837 This method will fail if a session for this machine is not
4838 currently open.
4839 </note>
4840
4841 <result name="VBOX_E_INVALID_VM_STATE">
4842 Machine session is not open.
4843 </result>
4844
4845 </desc>
4846 <param name="canShow" type="boolean" dir="return">
4847 <desc>
4848 @c true if the console window can be shown and @c
4849 false otherwise.
4850 </desc>
4851 </param>
4852 </method>
4853
4854 <method name="showConsoleWindow">
4855 <desc>
4856 Activates the console window and brings it to foreground on
4857 the desktop of the host PC. Many modern window managers on
4858 many platforms implement some sort of focus stealing
4859 prevention logic, so that it may be impossible to activate
4860 a window without the help of the currently active
4861 application. In this case, this method will return a non-zero
4862 identifier that represents the top-level window of the VM
4863 console process. The caller, if it represents a currently
4864 active process, is responsible to use this identifier (in a
4865 platform-dependent manner) to perform actual window
4866 activation.
4867 <note>
4868 This method will fail if a session for this machine is not
4869 currently open.
4870 </note>
4871
4872 <result name="VBOX_E_INVALID_VM_STATE">
4873 Machine session is not open.
4874 </result>
4875
4876 </desc>
4877 <param name="winId" type="unsigned long long" dir="return">
4878 <desc>
4879 Platform-dependent identifier of the top-level VM console
4880 window, or zero if this method has performed all actions
4881 necessary to implement the <i>show window</i> semantics for
4882 the given platform and/or VirtualBox front-end.
4883 </desc>
4884 </param>
4885 </method>
4886
4887 <method name="getGuestProperty">
4888 <desc>
4889 Reads an entry from the machine's guest property store.
4890
4891 <result name="VBOX_E_INVALID_VM_STATE">
4892 Machine session is not open.
4893 </result>
4894
4895 </desc>
4896 <param name="name" type="wstring" dir="in">
4897 <desc>
4898 The name of the property to read.
4899 </desc>
4900 </param>
4901 <param name="value" type="wstring" dir="out">
4902 <desc>
4903 The value of the property. If the property does not exist then this
4904 will be empty.
4905 </desc>
4906 </param>
4907 <param name="timestamp" type="unsigned long long" dir="out">
4908 <desc>
4909 The time at which the property was last modified, as seen by the
4910 server process.
4911 </desc>
4912 </param>
4913 <param name="flags" type="wstring" dir="out">
4914 <desc>
4915 Additional property parameters, passed as a comma-separated list of
4916 "name=value" type entries.
4917 </desc>
4918 </param>
4919 </method>
4920
4921 <method name="getGuestPropertyValue">
4922 <desc>
4923 Reads a value from the machine's guest property store.
4924
4925 <result name="VBOX_E_INVALID_VM_STATE">
4926 Machine session is not open.
4927 </result>
4928
4929 </desc>
4930 <param name="property" type="wstring" dir="in">
4931 <desc>
4932 The name of the property to read.
4933 </desc>
4934 </param>
4935 <param name="value" type="wstring" dir="return">
4936 <desc>
4937 The value of the property. If the property does not exist then this
4938 will be empty.
4939 </desc>
4940 </param>
4941 </method>
4942
4943 <method name="getGuestPropertyTimestamp">
4944 <desc>
4945 Reads a property timestamp from the machine's guest property store.
4946
4947 <result name="VBOX_E_INVALID_VM_STATE">
4948 Machine session is not open.
4949 </result>
4950
4951 </desc>
4952 <param name="property" type="wstring" dir="in">
4953 <desc>
4954 The name of the property to read.
4955 </desc>
4956 </param>
4957 <param name="value" type="unsigned long long" dir="return">
4958 <desc>
4959 The timestamp. If the property does not exist then this will be
4960 empty.
4961 </desc>
4962 </param>
4963 </method>
4964
4965 <method name="setGuestProperty">
4966 <desc>
4967 Sets, changes or deletes an entry in the machine's guest property
4968 store.
4969
4970 <result name="E_ACCESSDENIED">
4971 Property cannot be changed.
4972 </result>
4973 <result name="E_INVALIDARG">
4974 Invalid @a flags.
4975 </result>
4976 <result name="VBOX_E_INVALID_VM_STATE">
4977 Virtual machine is not mutable or session not open.
4978 </result>
4979 <result name="VBOX_E_INVALID_OBJECT_STATE">
4980 Cannot set transient property when machine not running.
4981 </result>
4982
4983 </desc>
4984 <param name="property" type="wstring" dir="in">
4985 <desc>
4986 The name of the property to set, change or delete.
4987 </desc>
4988 </param>
4989 <param name="value" type="wstring" dir="in">
4990 <desc>
4991 The new value of the property to set, change or delete. If the
4992 property does not yet exist and value is non-empty, it will be
4993 created. If the value is empty, the key will be deleted if it
4994 exists.
4995 </desc>
4996 </param>
4997 <param name="flags" type="wstring" dir="in">
4998 <desc>
4999 Additional property parameters, passed as a comma-separated list of
5000 "name=value" type entries.
5001 </desc>
5002 </param>
5003 </method>
5004
5005 <method name="setGuestPropertyValue">
5006 <desc>
5007 Sets, changes or deletes a value in the machine's guest property
5008 store. The flags field will be left unchanged or created empty for a
5009 new property.
5010
5011 <result name="E_ACCESSDENIED">
5012 Property cannot be changed.
5013 </result>
5014 <result name="VBOX_E_INVALID_VM_STATE">
5015 Virtual machine is not mutable or session not open.
5016 </result>
5017 <result name="VBOX_E_INVALID_OBJECT_STATE">
5018 Cannot set transient property when machine not running.
5019 </result>
5020 </desc>
5021
5022 <param name="property" type="wstring" dir="in">
5023 <desc>
5024 The name of the property to set, change or delete.
5025 </desc>
5026 </param>
5027 <param name="value" type="wstring" dir="in">
5028 <desc>
5029 The new value of the property to set, change or delete. If the
5030 property does not yet exist and value is non-empty, it will be
5031 created. If value is empty, the property will be deleted if it
5032 exists.
5033 </desc>
5034 </param>
5035 </method>
5036
5037 <method name="enumerateGuestProperties">
5038 <desc>
5039 Return a list of the guest properties matching a set of patterns along
5040 with their values, time stamps and flags.
5041 </desc>
5042 <param name="patterns" type="wstring" dir="in">
5043 <desc>
5044 The patterns to match the properties against, separated by '|'
5045 characters. If this is empty or NULL, all properties will match.
5046 </desc>
5047 </param>
5048 <param name="name" type="wstring" dir="out" safearray="yes">
5049 <desc>
5050 The names of the properties returned.
5051 </desc>
5052 </param>
5053 <param name="value" type="wstring" dir="out" safearray="yes">
5054 <desc>
5055 The values of the properties returned. The array entries match the
5056 corresponding entries in the @a name array.
5057 </desc>
5058 </param>
5059 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5060 <desc>
5061 The time stamps of the properties returned. The array entries match
5062 the corresponding entries in the @a name array.
5063 </desc>
5064 </param>
5065 <param name="flags" type="wstring" dir="out" safearray="yes">
5066 <desc>
5067 The flags of the properties returned. The array entries match the
5068 corresponding entries in the @a name array.
5069 </desc>
5070 </param>
5071 </method>
5072</interface>
5073
5074 <!--
5075 // IConsole
5076 /////////////////////////////////////////////////////////////////////////
5077 -->
5078
5079 <interface
5080 name="IConsoleCallback" extends="$unknown"
5081 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5082 wsmap="suppress"
5083 >
5084
5085 <method name="onMousePointerShapeChange">
5086 <desc>
5087 Notification when the guest mouse pointer shape has
5088 changed. The new shape data is given.
5089 </desc>
5090 <param name="visible" type="boolean" dir="in">
5091 <desc>
5092 Flag whether the pointer is visible.
5093 </desc>
5094 </param>
5095 <param name="alpha" type="boolean" dir="in">
5096 <desc>
5097 Flag whether the pointer has an alpha channel.
5098 </desc>
5099 </param>
5100 <param name="xHot" type="unsigned long" dir="in">
5101 <desc>
5102 The pointer hot spot x coordinate.
5103 </desc>
5104 </param>
5105 <param name="yHot" type="unsigned long" dir="in">
5106 <desc>
5107 The pointer hot spot y coordinate.
5108 </desc>
5109 </param>
5110 <param name="width" type="unsigned long" dir="in">
5111 <desc>
5112 Width of the pointer shape in pixels.
5113 </desc>
5114 </param>
5115 <param name="height" type="unsigned long" dir="in">
5116 <desc>
5117 Height of the pointer shape in pixels.
5118 </desc>
5119 </param>
5120 <param name="shape" type="octet" mod="ptr" dir="in">
5121 <desc>
5122 Address of the shape buffer.
5123
5124 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5125 followed by a 32-bpp XOR (color) mask.
5126
5127 For pointers without alpha channel the XOR mask pixels are 32
5128 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5129 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5130
5131 An AND mask is used for pointers with alpha channel, so if the
5132 callback does not support alpha, the pointer could be
5133 displayed as a normal color pointer.
5134
5135 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5136 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5137 height</tt>. The padding bits at the end of each scanline are
5138 undefined.
5139
5140 The XOR mask follows the AND mask on the next 4-byte aligned
5141 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5142 Bytes in the gap between the AND and the XOR mask are undefined.
5143 The XOR mask scanlines have no gap between them and the size of
5144 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5145
5146 <note>
5147 If @a shape is 0, only the pointer visibility is changed.
5148 </note>
5149 </desc>
5150 </param>
5151 </method>
5152
5153 <method name="onMouseCapabilityChange">
5154 <desc>
5155 Notification when the mouse capabilities reported by the
5156 guest have changed. The new capabilities are passed.
5157 </desc>
5158 <param name="supportsAbsolute" type="boolean" dir="in"/>
5159 <param name="needsHostCursor" type="boolean" dir="in"/>
5160 </method>
5161
5162 <method name="onKeyboardLedsChange">
5163 <desc>
5164 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5165 to alter the state of the keyboard LEDs.
5166 </desc>
5167 <param name="numLock" type="boolean" dir="in"/>
5168 <param name="capsLock" type="boolean" dir="in"/>
5169 <param name="scrollLock" type="boolean" dir="in"/>
5170 </method>
5171
5172 <method name="onStateChange">
5173 <desc>
5174 Notification when the execution state of the machine has changed.
5175 The new state will be given.
5176 </desc>
5177 <param name="state" type="MachineState" dir="in"/>
5178 </method>
5179
5180 <method name="onAdditionsStateChange">
5181 <desc>
5182 Notification when a Guest Additions property changes.
5183 Interested callees should query IGuest attributes to
5184 find out what has changed.
5185 </desc>
5186 </method>
5187
5188 <method name="onDVDDriveChange">
5189 <desc>
5190 Notification when a property of the
5191 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5192 Interested callees should use IDVDDrive methods to find out what has
5193 changed.
5194 </desc>
5195 </method>
5196
5197 <method name="onFloppyDriveChange">
5198 <desc>
5199 Notification when a property of the
5200 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5201 Interested callees should use IFloppyDrive methods to find out what
5202 has changed.
5203 </desc>
5204 </method>
5205
5206 <method name="onNetworkAdapterChange">
5207 <desc>
5208 Notification when a property of one of the
5209 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5210 changes. Interested callees should use INetworkAdapter methods and
5211 attributes to find out what has changed.
5212 </desc>
5213 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5214 <desc>Network adapter that is subject to change.</desc>
5215 </param>
5216 </method>
5217
5218 <method name="onSerialPortChange">
5219 <desc>
5220 Notification when a property of one of the
5221 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5222 Interested callees should use ISerialPort methods and attributes
5223 to find out what has changed.
5224 </desc>
5225 <param name="serialPort" type="ISerialPort" dir="in">
5226 <desc>Serial port that is subject to change.</desc>
5227 </param>
5228 </method>
5229
5230 <method name="onParallelPortChange">
5231 <desc>
5232 Notification when a property of one of the
5233 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5234 changes. Interested callees should use ISerialPort methods and
5235 attributes to find out what has changed.
5236 </desc>
5237 <param name="parallelPort" type="IParallelPort" dir="in">
5238 <desc>Parallel port that is subject to change.</desc>
5239 </param>
5240 </method>
5241
5242 <method name="onVRDPServerChange">
5243 <desc>
5244 Notification when a property of the
5245 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5246 Interested callees should use IVRDPServer methods and attributes to
5247 find out what has changed.
5248 </desc>
5249 </method>
5250
5251 <method name="onUSBControllerChange">
5252 <desc>
5253 Notification when a property of the virtual
5254 <link to="IMachine::USBController">USB controller</link> changes.
5255 Interested callees should use IUSBController methods and attributes to
5256 find out what has changed.
5257 </desc>
5258 </method>
5259
5260 <method name="onUSBDeviceStateChange">
5261 <desc>
5262 Notification when a USB device is attached to or detached from
5263 the virtual USB controller.
5264
5265 This notification is sent as a result of the indirect
5266 request to attach the device because it matches one of the
5267 machine USB filters, or as a result of the direct request
5268 issued by <link to="IConsole::attachUSBDevice"/> or
5269 <link to="IConsole::detachUSBDevice"/>.
5270
5271 This notification is sent in case of both a succeeded and a
5272 failed request completion. When the request succeeds, the
5273 @a error parameter is @c null, and the given device has been
5274 already added to (when @a attached is @c true) or removed from
5275 (when @a attached is @c false) the collection represented by
5276 <link to="IConsole::USBDevices"/>. On failure, the collection
5277 doesn't change and the @a error parameter represents the error
5278 message describing the failure.
5279
5280 </desc>
5281 <param name="device" type="IUSBDevice" dir="in">
5282 <desc>Device that is subject to state change.</desc>
5283 </param>
5284 <param name="attached" type="boolean" dir="in">
5285 <desc>
5286 <tt>true</tt> if the device was attached
5287 and <tt>false</tt> otherwise.
5288 </desc>
5289 </param>
5290 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5291 <desc>
5292 <tt>null</tt> on success or an error message object on
5293 failure.
5294 </desc>
5295 </param>
5296 </method>
5297
5298 <method name="onSharedFolderChange">
5299 <desc>
5300 Notification when a shared folder is added or removed.
5301 The @a scope argument defines one of three scopes:
5302 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5303 (<link to="Scope_Global">Global</link>),
5304 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5305 the machine (<link to="Scope_Machine">Machine</link>) or <link
5306 to="IConsole::sharedFolders">transient shared folders</link> of the
5307 machine (<link to="Scope_Session">Session</link>). Interested callees
5308 should use query the corresponding collections to find out what has
5309 changed.
5310 </desc>
5311 <param name="scope" type="Scope" dir="in">
5312 <desc>Scope of the notification.</desc>
5313 </param>
5314 </method>
5315
5316 <method name="onRuntimeError">
5317 <desc>
5318 Notification when an error happens during the virtual
5319 machine execution.
5320
5321 There are three kinds of runtime errors:
5322 <ul>
5323 <li><i>fatal</i></li>
5324 <li><i>non-fatal with retry</i></li>
5325 <li><i>non-fatal warnings</i></li>
5326 </ul>
5327
5328 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5329 to <tt>true</tt>. In case of fatal errors, the virtual machine
5330 execution is always paused before calling this notification, and
5331 the notification handler is supposed either to immediately save
5332 the virtual machine state using <link to="IConsole::saveState"/>
5333 or power it off using <link to="IConsole::powerDown"/>.
5334 Resuming the execution can lead to unpredictable results.
5335
5336 <b>Non-fatal</b> errors and warnings are indicated by the
5337 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5338 is in the Paused state by the time the error notification is
5339 received, it means that the user can <i>try to resume</i> the machine
5340 execution after attempting to solve the problem that caused the
5341 error. In this case, the notification handler is supposed
5342 to show an appropriate message to the user (depending on the
5343 value of the @a id parameter) that offers several actions such
5344 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5345 wants to retry, the notification handler should continue
5346 the machine execution using the <link to="IConsole::resume"/>
5347 call. If the machine execution is not Paused during this
5348 notification, then it means this notification is a <i>warning</i>
5349 (for example, about a fatal condition that can happen very soon);
5350 no immediate action is required from the user, the machine
5351 continues its normal execution.
5352
5353 Note that in either case the notification handler
5354 <b>must not</b> perform any action directly on a thread
5355 where this notification is called. Everything it is allowed to
5356 do is to post a message to another thread that will then talk
5357 to the user and take the corresponding action.
5358
5359 Currently, the following error identifiers are known:
5360 <ul>
5361 <li><tt>"HostMemoryLow"</tt></li>
5362 <li><tt>"HostAudioNotResponding"</tt></li>
5363 <li><tt>"VDIStorageFull"</tt></li>
5364 </ul>
5365
5366 <note>
5367 This notification is not designed to be implemented by
5368 more than one callback at a time. If you have multiple
5369 IConsoleCallback instances registered on the given
5370 IConsole object, make sure you simply do nothing but
5371 return @c S_OK from all but one of them that does actual
5372 user notification and performs necessary actions.
5373 </note>
5374
5375 </desc>
5376 <param name="fatal" type="boolean" dir="in">
5377 <desc>Whether the error is fatal or not</desc>
5378 </param>
5379 <param name="id" type="wstring" dir="in">
5380 <desc>Error identifier</desc>
5381 </param>
5382 <param name="message" type="wstring" dir="in">
5383 <desc>Optional error message</desc>
5384 </param>
5385 </method>
5386
5387 <method name="onCanShowWindow">
5388 <desc>
5389 Notification when a call to
5390 <link to="IMachine::canShowConsoleWindow"/> is made by a
5391 front-end to check if a subsequent call to
5392 <link to="IMachine::showConsoleWindow"/> can succeed.
5393
5394 The callee should give an answer appropriate to the current
5395 machine state in the @a canShow argument. This answer must
5396 remain valid at least until the next
5397 <link to="IConsole::state">machine state</link> change.
5398
5399 <note>
5400 This notification is not designed to be implemented by
5401 more than one callback at a time. If you have multiple
5402 IConsoleCallback instances registered on the given
5403 IConsole object, make sure you simply do nothing but
5404 return @c true and @c S_OK from all but one of them that
5405 actually manages console window activation.
5406 </note>
5407 </desc>
5408 <param name="canShow" type="boolean" dir="return">
5409 <desc>
5410 @c true if the console window can be shown and @c
5411 false otherwise.
5412 </desc>
5413 </param>
5414 </method>
5415
5416 <method name="onShowWindow">
5417 <desc>
5418 Notification when a call to
5419 <link to="IMachine::showConsoleWindow"/>
5420 requests the console window to be activated and brought to
5421 foreground on the desktop of the host PC.
5422
5423 This notification should cause the VM console process to
5424 perform the requested action as described above. If it is
5425 impossible to do it at a time of this notification, this
5426 method should return a failure.
5427
5428 Note that many modern window managers on many platforms
5429 implement some sort of focus stealing prevention logic, so
5430 that it may be impossible to activate a window without the
5431 help of the currently active application (which is supposedly
5432 an initiator of this notification). In this case, this method
5433 must return a non-zero identifier that represents the
5434 top-level window of the VM console process. The caller, if it
5435 represents a currently active process, is responsible to use
5436 this identifier (in a platform-dependent manner) to perform
5437 actual window activation.
5438
5439 This method must set @a winId to zero if it has performed all
5440 actions necessary to complete the request and the console
5441 window is now active and in foreground, to indicate that no
5442 further action is required on the caller's side.
5443
5444 <note>
5445 This notification is not designed to be implemented by
5446 more than one callback at a time. If you have multiple
5447 IConsoleCallback instances registered on the given
5448 IConsole object, make sure you simply do nothing but
5449 return @c S_OK from all but one of them that actually
5450 manages console window activation.
5451 </note>
5452 </desc>
5453 <param name="winId" type="unsigned long long" dir="return">
5454 <desc>
5455 Platform-dependent identifier of the top-level VM console
5456 window, or zero if this method has performed all actions
5457 necessary to implement the <i>show window</i> semantics for
5458 the given platform and/or this VirtualBox front-end.
5459 </desc>
5460 </param>
5461 </method>
5462
5463 </interface>
5464
5465 <interface
5466 name="IRemoteDisplayInfo" extends="$unknown"
5467 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5468 wsmap="struct"
5469 >
5470 <desc>
5471 Contains information about the remote display (VRDP) capabilities and status.
5472 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5473 </desc>
5474
5475 <attribute name="active" type="boolean" readonly="yes">
5476 <desc>
5477 Whether the remote display connection is active.
5478 </desc>
5479 </attribute>
5480
5481 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5482 <desc>
5483 How many times a client connected.
5484 </desc>
5485 </attribute>
5486
5487 <attribute name="beginTime" type="long long" readonly="yes">
5488 <desc>
5489 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5490 </desc>
5491 </attribute>
5492
5493 <attribute name="endTime" type="long long" readonly="yes">
5494 <desc>
5495 When the last connection was terminated or the current time, if
5496 connection is still active, in milliseconds since 1970-01-01 UTC.
5497 </desc>
5498 </attribute>
5499
5500 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5501 <desc>
5502 How many bytes were sent in last or current, if still active, connection.
5503 </desc>
5504 </attribute>
5505
5506 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5507 <desc>
5508 How many bytes were sent in all connections.
5509 </desc>
5510 </attribute>
5511
5512 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5513 <desc>
5514 How many bytes were received in last or current, if still active, connection.
5515 </desc>
5516 </attribute>
5517
5518 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5519 <desc>
5520 How many bytes were received in all connections.
5521 </desc>
5522 </attribute>
5523
5524 <attribute name="user" type="wstring" readonly="yes">
5525 <desc>
5526 Login user name supplied by the client.
5527 </desc>
5528 </attribute>
5529
5530 <attribute name="domain" type="wstring" readonly="yes">
5531 <desc>
5532 Login domain name supplied by the client.
5533 </desc>
5534 </attribute>
5535
5536 <attribute name="clientName" type="wstring" readonly="yes">
5537 <desc>
5538 The client name supplied by the client.
5539 </desc>
5540 </attribute>
5541
5542 <attribute name="clientIP" type="wstring" readonly="yes">
5543 <desc>
5544 The IP address of the client.
5545 </desc>
5546 </attribute>
5547
5548 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5549 <desc>
5550 The client software version number.
5551 </desc>
5552 </attribute>
5553
5554 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5555 <desc>
5556 Public key exchange method used when connection was established.
5557 Values: 0 - RDP4 public key exchange scheme.
5558 1 - X509 certificates were sent to client.
5559 </desc>
5560 </attribute>
5561
5562 </interface>
5563
5564 <interface
5565 name="IConsole" extends="$unknown"
5566 uuid="e3c6d4a1-a935-47ca-b16d-f9e9c496e53e"
5567 wsmap="managed"
5568 >
5569 <desc>
5570 The IConsole interface represents an interface to control virtual
5571 machine execution.
5572
5573 The console object that implements the IConsole interface is obtained
5574 from a session object after the session for the given machine has been
5575 opened using one of <link to="IVirtualBox::openSession"/>,
5576 <link to="IVirtualBox::openRemoteSession"/> or
5577 <link to="IVirtualBox::openExistingSession"/> methods.
5578
5579 Methods of the IConsole interface allow the caller to query the current
5580 virtual machine execution state, pause the machine or power it down, save
5581 the machine state or take a snapshot, attach and detach removable media
5582 and so on.
5583
5584 <see>ISession</see>
5585 </desc>
5586
5587 <attribute name="machine" type="IMachine" readonly="yes">
5588 <desc>
5589 Machine object this console is sessioned with.
5590 <note>
5591 This is a convenience property, it has the same value as
5592 <link to="ISession::machine"/> of the corresponding session
5593 object.
5594 </note>
5595 </desc>
5596 </attribute>
5597
5598 <attribute name="state" type="MachineState" readonly="yes">
5599 <desc>
5600 Current execution state of the machine.
5601 <note>
5602 This property always returns the same value as the corresponding
5603 property of the IMachine object this console is sessioned with.
5604 For the process that owns (executes) the VM, this is the
5605 preferable way of querying the VM state, because no IPC
5606 calls are made.
5607 </note>
5608 </desc>
5609 </attribute>
5610
5611 <attribute name="guest" type="IGuest" readonly="yes">
5612 <desc>Guest object.</desc>
5613 </attribute>
5614
5615 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5616 <desc>
5617 Virtual keyboard object.
5618 <note>
5619 If the machine is not running, any attempt to use
5620 the returned object will result in an error.
5621 </note>
5622 </desc>
5623 </attribute>
5624
5625 <attribute name="mouse" type="IMouse" readonly="yes">
5626 <desc>
5627 Virtual mouse object.
5628 <note>
5629 If the machine is not running, any attempt to use
5630 the returned object will result in an error.
5631 </note>
5632 </desc>
5633 </attribute>
5634
5635 <attribute name="display" type="IDisplay" readonly="yes">
5636 <desc>Virtual display object.
5637 <note>
5638 If the machine is not running, any attempt to use
5639 the returned object will result in an error.
5640 </note>
5641 </desc>
5642 </attribute>
5643
5644 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5645 <desc>Debugging interface.</desc>
5646 </attribute>
5647
5648 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
5649 <desc>
5650 Collection of USB devices currently attached to the virtual
5651 USB controller.
5652 <note>
5653 The collection is empty if the machine is not running.
5654 </note>
5655 </desc>
5656 </attribute>
5657
5658 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5659 <desc>
5660 List of USB devices currently attached to the remote VRDP client.
5661 Once a new device is physically attached to the remote host computer,
5662 it appears in this list and remains there until detached.
5663 </desc>
5664 </attribute>
5665
5666 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5667 <desc>
5668 Collection of shared folders for the current session. These folders
5669 are called transient shared folders because they are available to the
5670 guest OS running inside the associated virtual machine only for the
5671 duration of the session (as opposed to
5672 <link to="IMachine::sharedFolders"/> which represent permanent shared
5673 folders). When the session is closed (e.g. the machine is powered down),
5674 these folders are automatically discarded.
5675
5676 New shared folders are added to the collection using
5677 <link to="#createSharedFolder"/>. Existing shared folders can be
5678 removed using <link to="#removeSharedFolder"/>.
5679 </desc>
5680 </attribute>
5681
5682 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5683 <desc>
5684 Interface that provides information on Remote Display (VRDP) connection.
5685 </desc>
5686 </attribute>
5687
5688 <method name="powerUp">
5689 <desc>
5690 Starts the virtual machine execution using the current machine
5691 state (that is, its current execution state, current settings and
5692 current hard disks).
5693
5694 If the machine is powered off or aborted, the execution will
5695 start from the beginning (as if the real hardware were just
5696 powered on).
5697
5698 If the machine is in the <link to="MachineState_Saved"/> state,
5699 it will continue its execution the point where the state has
5700 been saved.
5701
5702 <note>
5703 Unless you are trying to write a new VirtualBox front-end that
5704 performs direct machine execution (like the VirtualBox or VBoxSDL
5705 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5706 session opened by <link to="IVirtualBox::openSession"/> and use this
5707 session only to change virtual machine settings. If you simply want to
5708 start virtual machine execution using one of the existing front-ends
5709 (for example the VirtualBox GUI or headless server), simply use
5710 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5711 power up the machine automatically for you.
5712 </note>
5713
5714 <see>#saveState</see>
5715 <result name="VBOX_E_INVALID_VM_STATE">
5716 Virtual machine already running.
5717 </result>
5718 <result name="VBOX_E_HOST_ERROR">
5719 Host interface does not exist or name not set.
5720 </result>
5721 <result name="VBOX_E_FILE_ERROR">
5722 Invalid saved state file.
5723 </result>
5724 </desc>
5725 <param name="progress" type="IProgress" dir="return">
5726 <desc>Progress object to track the operation completion.</desc>
5727 </param>
5728 </method>
5729
5730 <method name="powerUpPaused">
5731 <desc>
5732 Identical to powerUp except that the VM will enter the
5733 <link to="MachineState_Paused"/> state, instead of
5734 <link to="MachineState_Running"/>.
5735
5736 <see>#powerUp</see>
5737 <result name="VBOX_E_INVALID_VM_STATE">
5738 Virtual machine already running.
5739 </result>
5740 <result name="VBOX_E_HOST_ERROR">
5741 Host interface does not exist or name not set.
5742 </result>
5743 <result name="VBOX_E_FILE_ERROR">
5744 Invalid saved state file.
5745 </result>
5746 </desc>
5747 <param name="progress" type="IProgress" dir="return">
5748 <desc>Progress object to track the operation completion.</desc>
5749 </param>
5750 </method>
5751
5752 <method name="powerDown">
5753 <desc>
5754 Stops the virtual machine execution.
5755 After this operation completes, the machine will go to the
5756 PoweredOff state.
5757
5758 @deprecated This method will be removed in VirtualBox 2.1 where the
5759 powerDownAsync() method will take its name. Do not use this method in
5760 the code.
5761 <result name="VBOX_E_INVALID_VM_STATE">
5762 Virtual machine must be Running, Paused or Stuck to be powered down.
5763 </result>
5764 <result name="VBOX_E_VM_ERROR">
5765 Unable to power off or destroy virtual machine.
5766 </result>
5767 </desc>
5768 </method>
5769
5770 <method name="powerDownAsync">
5771 <desc>
5772 Initiates the power down procedure to stop the virtual machine
5773 execution.
5774
5775 The completion of the power down procedure is tracked using the returned
5776 IProgress object. After the operation is complete, the machine will go
5777 to the PoweredOff state.
5778
5779 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5780 where the original powerDown() method will be removed. You will need to
5781 rename "powerDownAsync" to "powerDown" in your sources to make them
5782 build with version 2.1.
5783 <result name="VBOX_E_INVALID_VM_STATE">
5784 Virtual machine must be Running, Paused or Stuck to be powered down.
5785 </result>
5786 </desc>
5787 <param name="progress" type="IProgress" dir="return">
5788 <desc>Progress object to track the operation completion.</desc>
5789 </param>
5790 </method>
5791
5792 <method name="reset">
5793 <desc>Resets the virtual machine.
5794 <result name="VBOX_E_INVALID_VM_STATE">
5795 Virtual machine not in Running state.
5796 </result>
5797 <result name="VBOX_E_VM_ERROR">
5798 Virtual machine error in reset operation.
5799 </result>
5800 </desc>
5801 </method>
5802
5803 <method name="pause">
5804 <desc>Pauses the virtual machine execution.
5805 <result name="VBOX_E_INVALID_VM_STATE">
5806 Virtual machine not in Running state.
5807 </result>
5808 <result name="VBOX_E_VM_ERROR">
5809 Virtual machine error in suspend operation.
5810 </result>
5811 </desc>
5812 </method>
5813
5814 <method name="resume">
5815 <desc>Resumes the virtual machine execution.
5816 <result name="VBOX_E_INVALID_VM_STATE">
5817 Virtual machine not in Paused state.
5818 </result>
5819 <result name="VBOX_E_VM_ERROR">
5820 Virtual machine error in resume operation.
5821 </result>
5822 </desc>
5823 </method>
5824
5825 <method name="powerButton">
5826 <desc>Sends the ACPI power button event to the guest.
5827 <result name="VBOX_E_INVALID_VM_STATE">
5828 Virtual machine not in Running state.
5829 </result>
5830 <result name="VBOX_E_PDM_ERROR">
5831 Controlled power off failed.
5832 </result>
5833 </desc>
5834 </method>
5835
5836 <method name="sleepButton">
5837 <desc>Sends the ACPI sleep button event to the guest.
5838 <result name="VBOX_E_INVALID_VM_STATE">
5839 Virtual machine not in Running state.
5840 </result>
5841 <result name="VBOX_E_PDM_ERROR">
5842 Sending sleep button event failed.
5843 </result>
5844 </desc>
5845 </method>
5846
5847 <method name="getPowerButtonHandled">
5848 <desc>Checks if the last power button event was handled by guest.
5849 <result name="VBOX_E_PDM_ERROR">
5850 Checking if the event was handled by the guest OS failed.
5851 </result>
5852 </desc>
5853 <param name="handled" type="boolean" dir="return"/>
5854 </method>
5855
5856 <method name="getGuestEnteredACPIMode">
5857 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5858 G1 (sleeping). If this method returns false, the guest will
5859 most likely not respond to external ACPI events.
5860 <result name="VBOX_E_INVALID_VM_STATE">
5861 Virtual machine not in Running state.
5862 </result>
5863 </desc>
5864 <param name="entered" type="boolean" dir="return"/>
5865 </method>
5866
5867 <method name="saveState">
5868 <desc>
5869 Saves the current execution state of a running virtual machine
5870 and stops its execution.
5871
5872 After this operation completes, the machine will go to the
5873 Saved state. Next time it is powered up, this state will
5874 be restored and the machine will continue its execution from
5875 the place where it was saved.
5876
5877 This operation differs from taking a snapshot to the effect
5878 that it doesn't create new differencing hard disks. Also, once
5879 the machine is powered up from the state saved using this method,
5880 the saved state is deleted, so it will be impossible to return
5881 to this state later.
5882
5883 <note>
5884 On success, this method implicitly calls
5885 <link to="IMachine::saveSettings"/> to save all current machine
5886 settings (including runtime changes to the DVD drive, etc.).
5887 Together with the impossibility to change any VM settings when it is
5888 in the Saved state, this guarantees adequate hardware
5889 configuration of the machine when it is restored from the saved
5890 state file.
5891 </note>
5892
5893 <note>
5894 The machine must be in the Running or Paused state, otherwise
5895 the operation will fail.
5896 </note>
5897 <result name="VBOX_E_INVALID_VM_STATE">
5898 Virtual machine state neither Running nor Paused.
5899 </result>
5900 <result name="VBOX_E_FILE_ERROR">
5901 Failed to create directory for saved state file.
5902 </result>
5903
5904 <see><link to="#takeSnapshot"/></see>
5905 </desc>
5906 <param name="progress" type="IProgress" dir="return">
5907 <desc>Progress object to track the operation completion.</desc>
5908 </param>
5909 </method>
5910
5911 <method name="adoptSavedState">
5912 <desc>
5913 Associates the given saved state file to the virtual machine.
5914
5915 On success, the machine will go to the Saved state. Next time it is
5916 powered up, it will be restored from the adopted saved state and
5917 continue execution from the place where the saved state file was
5918 created.
5919
5920 The specified saved state file path may be absolute or relative to the
5921 folder the VM normally saves the state to (usually,
5922 <link to="IMachine::snapshotFolder"/>).
5923
5924 <note>
5925 It's a caller's responsibility to make sure the given saved state
5926 file is compatible with the settings of this virtual machine that
5927 represent its virtual hardware (memory size, hard disk configuration
5928 etc.). If there is a mismatch, the behavior of the virtual machine
5929 is undefined.
5930 </note>
5931 <result name="VBOX_E_INVALID_VM_STATE">
5932 Virtual machine state neither PoweredOff nor Aborted.
5933 </result>
5934 </desc>
5935 <param name="savedStateFile" type="wstring" dir="in">
5936 <desc>Path to the saved state file to adopt.</desc>
5937 </param>
5938 </method>
5939
5940 <method name="discardSavedState">
5941 <desc>
5942 Discards (deletes) the saved state of the virtual machine
5943 previously created by <link to="#saveState"/>. Next time the
5944 machine is powered up, a clean boot will occur.
5945 <note>
5946 This operation is equivalent to resetting or powering off
5947 the machine without doing a proper shutdown in the guest OS.
5948 </note>
5949 <result name="VBOX_E_INVALID_VM_STATE">
5950 Virtual machine not in state Saved.
5951 </result>
5952 </desc>
5953 </method>
5954
5955 <method name="getDeviceActivity">
5956 <desc>
5957 Gets the current activity type of a given device or device group.
5958 <result name="E_INVALIDARG">
5959 Invalid device type.
5960 </result>
5961 </desc>
5962 <param name="type" type="DeviceType" dir="in"/>
5963 <param name="activity" type="DeviceActivity" dir="return"/>
5964 </method>
5965
5966 <method name="attachUSBDevice">
5967 <desc>
5968 Attaches a host USB device with the given UUID to the
5969 USB controller of the virtual machine.
5970
5971 The device needs to be in one of the following states:
5972 <link to="USBDeviceState_Busy"/>,
5973 <link to="USBDeviceState_Available"/> or
5974 <link to="USBDeviceState_Held"/>,
5975 otherwise an error is immediately returned.
5976
5977 When the device state is
5978 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5979 be returned if the host computer refuses to release it for some reason.
5980
5981 <see>IUSBController::deviceFilters, USBDeviceState</see>
5982 <result name="VBOX_E_INVALID_VM_STATE">
5983 Virtual machine state neither Running nor Paused.
5984 </result>
5985 <result name="VBOX_E_PDM_ERROR">
5986 Virtual machine does not have a USB controller.
5987 </result>
5988 </desc>
5989 <param name="id" type="uuid" dir="in">
5990 <desc>UUID of the host USB device to attach.</desc>
5991 </param>
5992 </method>
5993
5994 <method name="detachUSBDevice">
5995 <desc>
5996 Detaches an USB device with the given UUID from the USB controller
5997 of the virtual machine.
5998
5999 After this method succeeds, the VirtualBox server re-initiates
6000 all USB filters as if the device were just physically attached
6001 to the host, but filters of this machine are ignored to avoid
6002 a possible automatic re-attachment.
6003
6004 <see>IUSBController::deviceFilters, USBDeviceState</see>
6005
6006 <result name="VBOX_E_PDM_ERROR">
6007 Virtual machine does not have a USB controller.
6008 </result>
6009 <result name="E_INVALIDARG">
6010 USB device not attached to this virtual machine.
6011 </result>
6012 </desc>
6013 <param name="id" type="uuid" dir="in">
6014 <desc>UUID of the USB device to detach.</desc>
6015 </param>
6016 <param name="device" type="IUSBDevice" dir="return">
6017 <desc>Detached USB device.</desc>
6018 </param>
6019 </method>
6020
6021 <method name="createSharedFolder">
6022 <desc>
6023 Creates a transient new shared folder by associating the given logical
6024 name with the given host path, adds it to the collection of shared
6025 folders and starts sharing it. Refer to the description of
6026 <link to="ISharedFolder"/> to read more about logical names.
6027
6028 <result name="VBOX_E_INVALID_VM_STATE">
6029 Virtual machine in Saved state or currently changing state.
6030 </result>
6031 <result name="VBOX_E_FILE_ERROR">
6032 Shared folder already exists or not accessible.
6033 </result>
6034 </desc>
6035 <param name="name" type="wstring" dir="in">
6036 <desc>Unique logical name of the shared folder.</desc>
6037 </param>
6038 <param name="hostPath" type="wstring" dir="in">
6039 <desc>Full path to the shared folder in the host file system.</desc>
6040 </param>
6041 <param name="writable" type="boolean" dir="in">
6042 <desc>Whether the share is writable or readonly</desc>
6043 </param>
6044 </method>
6045
6046 <method name="removeSharedFolder">
6047 <desc>
6048 Removes a transient shared folder with the given name previously
6049 created by <link to="#createSharedFolder"/> from the collection of
6050 shared folders and stops sharing it.
6051 <result name="VBOX_E_INVALID_VM_STATE">
6052 Virtual machine in Saved state or currently changing state.
6053 </result>
6054 <result name="VBOX_E_FILE_ERROR">
6055 Shared folder does not exists.
6056 </result>
6057 </desc>
6058 <param name="name" type="wstring" dir="in">
6059 <desc>Logical name of the shared folder to remove.</desc>
6060 </param>
6061 </method>
6062
6063 <method name="takeSnapshot">
6064 <desc>
6065 Saves the current execution state and all settings of the
6066 machine and creates differencing images for all
6067 normal (non-independent) hard disks.
6068
6069 This method can be called for a PoweredOff, Saved, Running or
6070 Paused virtual machine. When the machine is PoweredOff, an
6071 offline <link to="ISnapshot">snapshot</link> is created,
6072 in all other cases -- an online snapshot.
6073
6074 The taken snapshot is always based on the
6075 <link to="IMachine::currentSnapshot">current
6076 snapshot</link> of the associated virtual machine and becomes
6077 a new current snapshot.
6078
6079 <note>
6080 This method implicitly calls <link to="IMachine::saveSettings"/> to
6081 save all current machine settings before taking an offline snapshot.
6082 </note>
6083
6084 <see>ISnapshot, <link to="#saveState"/></see>
6085 <result name="VBOX_E_INVALID_VM_STATE">
6086 Virtual machine currently changing state.
6087 </result>
6088 </desc>
6089 <param name="name" type="wstring" dir="in">
6090 <desc>Short name for the snapshot.</desc>
6091 </param>
6092 <param name="description" type="wstring" dir="in">
6093 <desc>Optional description of the snapshot.</desc>
6094 </param>
6095 <param name="progress" type="IProgress" dir="return">
6096 <desc>Progress object to track the operation completion.</desc>
6097 </param>
6098 </method>
6099
6100 <method name="discardSnapshot">
6101 <desc>
6102
6103 Starts discarding the specified snapshot. The execution state
6104 and settings of the associated machine stored in the snapshot
6105 will be deleted. The contents of all differencing hard disks of
6106 this snapshot will be merged with the contents of their
6107 dependent child hard disks to keep the, disks valid (in other
6108 words, all changes represented by hard disks being discarded
6109 will be propagated to their child hard disks). After that, this
6110 snapshot's differencing hard disks will be deleted. The parent
6111 of this snapshot will become a new parent for all its child
6112 snapshots.
6113
6114 If the discarded snapshot is the current one, its parent
6115 snapshot will become a new current snapshot. The current machine
6116 state is not directly affected in this case, except that
6117 currently attached differencing hard disks based on hard disks
6118 of the discarded snapshot will be also merged as described
6119 above.
6120
6121 If the discarded snapshot is the first one (the root snapshot)
6122 and it has exactly one child snapshot, this child snapshot will
6123 become the first snapshot after discarding. If there are no
6124 children at all (i.e. the first snapshot is the only snapshot of
6125 the machine), both the current and the first snapshot of the
6126 machine will be set to null. In all other cases, the first
6127 snapshot cannot be discarded.
6128
6129 You cannot discard the snapshot if it
6130 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6131 hard disks that have differencing hard disks based on them. Snapshots of
6132 such kind can be discarded only when every normal hard disk has either
6133 no children at all or exactly one child. In the former case, the normal
6134 hard disk simply becomes unused (i.e. not attached to any VM). In the
6135 latter case, it receives all the changes stored in the child hard disk,
6136 and then it replaces the child hard disk in the configuration of the
6137 corresponding snapshot or machine.
6138
6139 Also, you cannot discard the snapshot if it stores hard disks
6140 (of any type) having differencing child hard disks that belong
6141 to other machines. Such snapshots can be only discarded after
6142 you discard all snapshots of other machines containing "foreign"
6143 child disks, or detach these "foreign" child disks from machines
6144 they are attached to.
6145
6146 One particular example of the snapshot storing normal hard disks
6147 is the first snapshot of a virtual machine that had normal hard
6148 disks attached when taking the snapshot. Be careful when
6149 discarding such snapshots because this implicitly commits
6150 changes (made since the snapshot being discarded has been taken)
6151 to normal hard disks (as described above), which may be not what
6152 you want.
6153
6154 The virtual machine is put to
6155 the <link to="MachineState_Discarding">Discarding</link> state until
6156 the discard operation is completed.
6157
6158 <note>
6159 The machine must not be running, otherwise the operation
6160 will fail.
6161 </note>
6162
6163 <note>
6164 Child hard disks of all normal hard disks of the discarded snapshot
6165 must be accessible (see <link to="IMedium::state"/>) for this
6166 operation to succeed. In particular, this means that all virtual
6167 machines, whose hard disks are directly or indirectly based on the
6168 hard disks of discarded snapshot, must be powered off.
6169 </note>
6170 <note>
6171 Merging hard disk contents can be very time and disk space
6172 consuming, if these disks are big in size and have many
6173 children. However, if the snapshot being discarded is the last
6174 (head) snapshot on the branch, the operation will be rather
6175 quick.
6176 </note>
6177 <note>
6178 Note that discarding the current snapshot
6179 will implicitly call <link to="IMachine::saveSettings"/> to
6180 make all current machine settings permanent.
6181 </note>
6182 <result name="VBOX_E_INVALID_VM_STATE">
6183 Virtual machine is running.
6184 </result>
6185 </desc>
6186 <param name="id" type="uuid" dir="in">
6187 <desc>UUID of the snapshot to discard.</desc>
6188 </param>
6189 <param name="progress" type="IProgress" dir="return">
6190 <desc>Progress object to track the operation completion.</desc>
6191 </param>
6192 </method>
6193
6194 <method name="discardCurrentState">
6195 <desc>
6196 This operation is similar to <link to="#discardSnapshot"/> but
6197 affects the current machine state. This means that the state stored in
6198 the current snapshot will become a new current state, and all current
6199 settings of the machine and changes stored in differencing hard disks
6200 will be lost.
6201
6202 After this operation is successfully completed, new empty differencing
6203 hard disks are created for all normal hard disks of the machine.
6204
6205 If the current snapshot of the machine is an online snapshot, the
6206 machine will go to the <link to="MachineState_Saved"> saved
6207 state</link>, so that the next time it is powered on, the execution
6208 state will be restored from the current snapshot.
6209
6210 <note>
6211 The machine must not be running, otherwise the operation will fail.
6212 </note>
6213
6214 <note>
6215 If the machine state is <link to="MachineState_Saved">Saved</link>
6216 prior to this operation, the saved state file will be implicitly
6217 discarded (as if <link to="IConsole::discardSavedState"/> were
6218 called).
6219 </note>
6220
6221 <result name="VBOX_E_INVALID_VM_STATE">
6222 Virtual machine is running.
6223 </result>
6224 </desc>
6225 <param name="progress" type="IProgress" dir="return">
6226 <desc>Progress object to track the operation completion.</desc>
6227 </param>
6228 </method>
6229
6230 <method name="discardCurrentSnapshotAndState">
6231 <desc>
6232
6233 This method is equivalent to
6234 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6235 (currentSnapshot.id(), progress) followed by
6236 <link to="#discardCurrentState"/>.
6237
6238 As a result, the machine will be fully restored from the
6239 snapshot preceding the current snapshot, while both the current
6240 snapshot and the current machine state will be discarded.
6241
6242 If the current snapshot is the first snapshot of the machine (i.e. it
6243 has the only snapshot), the current machine state will be
6244 discarded <b>before</b> discarding the snapshot. In other words, the
6245 machine will be restored from its last snapshot, before discarding
6246 it. This differs from performing a single
6247 <link to="#discardSnapshot"/> call (note that no
6248 <link to="#discardCurrentState"/> will be possible after it)
6249 to the effect that the latter will preserve the current state instead of
6250 discarding it.
6251
6252 Unless explicitly mentioned otherwise, all remarks and
6253 limitations of the above two methods also apply to this method.
6254
6255 <note>
6256 The machine must not be running, otherwise the operation
6257 will fail.
6258 </note>
6259
6260 <note>
6261 If the machine state is <link to="MachineState_Saved">Saved</link>
6262 prior to this operation, the saved state file will be implicitly
6263 discarded (as if <link to="#discardSavedState"/> were
6264 called).
6265 </note>
6266
6267 <note>
6268 This method is more efficient than calling both of the above
6269 methods separately: it requires less IPC calls and provides
6270 a single progress object.
6271 </note>
6272
6273 <result name="VBOX_E_INVALID_VM_STATE">
6274 Virtual machine is running.
6275 </result>
6276 </desc>
6277 <param name="progress" type="IProgress" dir="return">
6278 <desc>Progress object to track the operation completion.</desc>
6279 </param>
6280 </method>
6281
6282 <method name="registerCallback">
6283 <desc>
6284 Registers a new console callback on this instance. The methods of the
6285 callback interface will be called by this instance when the appropriate
6286 event occurs.
6287 </desc>
6288 <param name="callback" type="IConsoleCallback" dir="in"/>
6289 </method>
6290
6291 <method name="unregisterCallback">
6292 <desc>
6293 Unregisters the console callback previously registered using
6294 <link to="#registerCallback"/>.
6295 <result name="E_INVALIDARG">
6296 Given @a callback handler is not registered.
6297 </result>
6298 </desc>
6299 <param name="callback" type="IConsoleCallback" dir="in"/>
6300 </method>
6301 </interface>
6302
6303 <!--
6304 // IHost
6305 /////////////////////////////////////////////////////////////////////////
6306 -->
6307
6308 <interface
6309 name="IHostDVDDrive" extends="$unknown"
6310 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6311 wsmap="managed"
6312 >
6313 <desc>
6314 The IHostDVDDrive interface represents the physical CD/DVD drive
6315 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6316 </desc>
6317
6318 <attribute name="name" type="wstring" readonly="yes">
6319 <desc>
6320 Returns the platform-specific device identifier.
6321 On DOS-like platforms, it is a drive name (e.g. R:).
6322 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6323 </desc>
6324 </attribute>
6325 <attribute name="description" type="wstring" readonly="yes">
6326 <desc>
6327 Returns a human readable description for the drive. This
6328 description usually contains the product and vendor name. A
6329 @c null string is returned if the description is not available.
6330 </desc>
6331 </attribute>
6332 <attribute name="udi" type="wstring" readonly="yes">
6333 <desc>
6334 Returns the unique device identifier for the drive. This
6335 attribute is reserved for future use instead of
6336 <link to="#name"/>. Currently it is not used and may return
6337 @c null on some platforms.
6338 </desc>
6339 </attribute>
6340
6341 </interface>
6342
6343 <enumerator
6344 name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
6345 uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
6346 />
6347
6348 <collection
6349 name="IHostDVDDriveCollection" type="IHostDVDDrive"
6350 enumerator="IHostDVDDriveEnumerator"
6351 uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
6352 readonly="yes"
6353 >
6354 <method name="findByName">
6355 <desc>
6356 Searches this collection for a host drive with the given name.
6357 <note>
6358 The method returns an error if the given name does not
6359 correspond to any host drive in the collection.
6360 </note>
6361 </desc>
6362 <param name="name" type="wstring" dir="in">
6363 <desc>Name of the host drive to search for</desc>
6364 </param>
6365 <param name="drive" type="IHostDVDDrive" dir="return">
6366 <desc>Found host drive object</desc>
6367 </param>
6368 </method>
6369 </collection>
6370
6371 <interface
6372 name="IHostFloppyDrive" extends="$unknown"
6373 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
6374 wsmap="managed"
6375 >
6376 <desc>
6377 The IHostFloppyDrive interface represents the physical floppy drive
6378 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6379 </desc>
6380 <attribute name="name" type="wstring" readonly="yes">
6381 <desc>
6382 Returns the platform-specific device identifier.
6383 On DOS-like platforms, it is a drive name (e.g. A:).
6384 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6385 </desc>
6386 </attribute>
6387 <attribute name="description" type="wstring" readonly="yes">
6388 <desc>
6389 Returns a human readable description for the drive. This
6390 description usually contains the product and vendor name. A
6391 @c null string is returned if the description is not available.
6392 </desc>
6393 </attribute>
6394 <attribute name="udi" type="wstring" readonly="yes">
6395 <desc>
6396 Returns the unique device identifier for the drive. This
6397 attribute is reserved for future use instead of
6398 <link to="#name"/>. Currently it is not used and may return
6399 @c null on some platforms.
6400 </desc>
6401 </attribute>
6402 </interface>
6403
6404 <enumerator
6405 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
6406 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
6407 />
6408
6409 <collection
6410 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
6411 enumerator="IHostFloppyDriveEnumerator"
6412 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
6413 readonly="yes"
6414 >
6415 <method name="findByName">
6416 <desc>
6417 Searches this collection for a host drive with the given name.
6418 <note>
6419 The method returns an error if the given name does not
6420 correspond to any host drive in the collection.
6421 </note>
6422 </desc>
6423 <param name="name" type="wstring" dir="in">
6424 <desc>Name of the host drive to search for</desc>
6425 </param>
6426 <param name="drive" type="IHostFloppyDrive" dir="return">
6427 <desc>Found host drive object</desc>
6428 </param>
6429 </method>
6430 </collection>
6431
6432 <enum
6433 name="HostNetworkInterfaceType"
6434 uuid="763754FA-3246-4539-9590-9E603EDBF706"
6435 >
6436 <desc>
6437 Type of encapsulation. Ethernet encapsulation includes both wired and
6438 wireless Ethernet connections.
6439 <see>IHostNetworkInterface</see>
6440 </desc>
6441
6442 <const name="Unknown" value="0">
6443 <desc>
6444 The type of interface cannot be determined.
6445 </desc>
6446 </const>
6447 <const name="Ethernet" value="1">
6448 <desc>
6449 Ethernet frame encapsulation.
6450 </desc>
6451 </const>
6452 <const name="PPP" value="2">
6453 <desc>
6454 Point-to-point protocol encapsulation.
6455 </desc>
6456 </const>
6457 <const name="SLIP" value="3">
6458 <desc>
6459 Serial line IP encapsulation.
6460 </desc>
6461 </const>
6462 </enum>
6463
6464 <enum
6465 name="HostNetworkInterfaceStatus"
6466 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6467 >
6468 <desc>
6469 Current status of the interface.
6470 <see>IHostNetworkInterface</see>
6471 </desc>
6472
6473 <const name="Unknown" value="0">
6474 <desc>
6475 The state of interface cannot be determined.
6476 </desc>
6477 </const>
6478 <const name="Up" value="1">
6479 <desc>
6480 The interface is fully operational.
6481 </desc>
6482 </const>
6483 <const name="Down" value="2">
6484 <desc>
6485 The interface is not functioning.
6486 </desc>
6487 </const>
6488 </enum>
6489
6490 <interface
6491 name="IHostNetworkInterface" extends="$unknown"
6492 uuid="4fc2445f-fb73-4f55-b3b4-ecee47c7077b"
6493 wsmap="managed"
6494 >
6495 <desc>
6496 Reprents one of host's network interfaces. IP V6 address and network
6497 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6498 separated by colons.
6499 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6500 </desc>
6501 <attribute name="name" type="wstring" readonly="yes">
6502 <desc>Returns the host network interface name.</desc>
6503 </attribute>
6504
6505 <attribute name="id" type="uuid" readonly="yes">
6506 <desc>Returns the interface UUID.</desc>
6507 </attribute>
6508
6509 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6510 <desc>Returns the IP V4 address of the interface.</desc>
6511 </attribute>
6512
6513 <attribute name="networkMask" type="unsigned long" readonly="yes">
6514 <desc>Returns the network mask of the interface.</desc>
6515 </attribute>
6516
6517 <attribute name="IPV6Address" type="wstring" readonly="yes">
6518 <desc>Returns the IP V6 address of the interface.</desc>
6519 </attribute>
6520
6521 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6522 <desc>Returns the IP V6 network mask of the interface.</desc>
6523 </attribute>
6524
6525 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6526 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6527 </attribute>
6528
6529 <attribute name="type" type="HostNetworkInterfaceType" readonly="yes">
6530 <desc>Type of protocol encapsulation used.</desc>
6531 </attribute>
6532
6533 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6534 <desc>Status of the interface.</desc>
6535 </attribute>
6536
6537 <attribute name="real" type="boolean" readonly="yes">
6538 <desc>True if this is a real interface false
6539 if this is a Virtualbox Host Adapter interface.</desc>
6540 </attribute>
6541 </interface>
6542
6543 <interface
6544 name="IHost" extends="$unknown"
6545 uuid="7c172c42-b209-4bdc-9ddf-a84f222bd59a"
6546 wsmap="managed"
6547 >
6548 <desc>
6549 The IHost interface represents the physical machine that this VirtualBox
6550 installation runs on.
6551
6552 An object implementing this interface is returned by the
6553 <link to="IVirtualBox::host" /> attribute. This interface contains
6554 read-only information about the host's physical hardware (such as what
6555 processors and disks are available, what the host operating system is,
6556 and so on) and also allows for manipulating some of the host's hardware,
6557 such as global USB device filters and host interface networking.
6558
6559 </desc>
6560 <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
6561 <desc>List of DVD drives available on the host.</desc>
6562 </attribute>
6563
6564 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
6565 <desc>List of floppy drives available on the host.</desc>
6566 </attribute>
6567
6568 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6569 <desc>
6570 List of USB devices currently attached to the host.
6571 Once a new device is physically attached to the host computer,
6572 it appears in this list and remains there until detached.
6573
6574 <note>
6575 This method may set a @ref com_warnings "warning result code".
6576 </note>
6577 <note>
6578 If USB functionality is not available in the given edition of
6579 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6580 </note>
6581 </desc>
6582 </attribute>
6583
6584 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
6585 <desc>
6586 List of USB device filters in action.
6587 When a new device is physically attached to the host computer,
6588 filters from this list are applied to it (in order they are stored
6589 in the list). The first matched filter will determine the
6590 <link to="IHostUSBDeviceFilter::action">action</link>
6591 performed on the device.
6592
6593 Unless the device is ignored by these filters, filters of all
6594 currently running virtual machines
6595 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6596
6597 <note>
6598 This method may set a @ref com_warnings "warning result code".
6599 </note>
6600 <note>
6601 If USB functionality is not available in the given edition of
6602 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6603 </note>
6604
6605 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6606 </desc>
6607 </attribute>
6608
6609 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6610 <desc>List of host network interfaces currently defined on the host.</desc>
6611 </attribute>
6612
6613 <attribute name="processorCount" type="unsigned long" readonly="yes">
6614 <desc>Number of (logical) CPUs installed in the host system.</desc>
6615 </attribute>
6616
6617 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6618 <desc>Number of (logical) CPUs online in the host system.</desc>
6619 </attribute>
6620
6621 <method name="getProcessorSpeed">
6622 <desc>Query the (approximate) maximum speed of a specified host CPU in
6623 Megahertz.
6624 </desc>
6625 <param name="cpuId" type="unsigned long" dir="in">
6626 <desc>
6627 Identifier of the CPU.
6628 </desc>
6629 </param>
6630 <param name="speed" type="unsigned long" dir="return">
6631 <desc>
6632 Speed value. 0 is returned if value is not known or @a cpuId is
6633 invalid.
6634 </desc>
6635 </param>
6636 </method>
6637
6638 <method name="getProcessorFeature">
6639 <desc>Query whether a CPU feature is supported or not.</desc>
6640 <param name="feature" type="ProcessorFeature" dir="in">
6641 <desc>
6642 CPU Feature identifier.
6643 </desc>
6644 </param>
6645 <param name="supported" type="boolean" dir="return">
6646 <desc>
6647 Feature is supported or not.
6648 </desc>
6649 </param>
6650 </method>
6651
6652 <method name="getProcessorDescription">
6653 <desc>Query the model string of a specified host CPU.
6654 <note>
6655 This function is not implemented in the current version of the
6656 product.
6657 </note>
6658 </desc>
6659 <param name="cpuId" type="unsigned long" dir="in">
6660 <desc>
6661 Identifier of the CPU.
6662 </desc>
6663 </param>
6664 <param name="description" type="wstring" dir="return">
6665 <desc>
6666 Model string. A NULL string is returned if value is not known or
6667 @a cpuId is invalid.
6668 </desc>
6669 </param>
6670 </method>
6671
6672 <attribute name="memorySize" type="unsigned long" readonly="yes">
6673 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6674 </attribute>
6675
6676 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6677 <desc>Available system memory in the host system.</desc>
6678 </attribute>
6679
6680 <attribute name="operatingSystem" type="wstring" readonly="yes">
6681 <desc>Name of the host system's operating system.</desc>
6682 </attribute>
6683
6684 <attribute name="OSVersion" type="wstring" readonly="yes">
6685 <desc>Host operating system's version string.</desc>
6686 </attribute>
6687
6688 <attribute name="UTCTime" type="long long" readonly="yes">
6689 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6690 </attribute>
6691
6692<if target="midl">
6693 <method name="createHostNetworkInterface">
6694 <desc>
6695 Creates a new adapter for Host Interface Networking.
6696 <result name="E_INVALIDARG">
6697 Host network interface @a name already exists.
6698 </result>
6699 </desc>
6700 <param name="name" type="wstring" dir="in">
6701 <desc>
6702 Adapter name.
6703 </desc>
6704 </param>
6705 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6706 <desc>
6707 Created host interface object.
6708 </desc>
6709 </param>
6710 <param name="progress" type="IProgress" dir="return">
6711 <desc>
6712 Progress object to track the operation completion.
6713 </desc>
6714 </param>
6715 </method>
6716 <method name="removeHostNetworkInterface">
6717 <desc>
6718 Removes the given host network interface.
6719 <result name="VBOX_E_OBJECT_NOT_FOUND">
6720 No host network interface matching @a id found.
6721 </result>
6722 </desc>
6723 <param name="id" type="uuid" dir="in">
6724 <desc>
6725 Adapter GUID.
6726 </desc>
6727 </param>
6728 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6729 <desc>
6730 Removed host interface object.
6731 </desc>
6732 </param>
6733 <param name="progress" type="IProgress" dir="return">
6734 <desc>
6735 Progress object to track the operation completion.
6736 </desc>
6737 </param>
6738 </method>
6739</if>
6740
6741 <method name="createUSBDeviceFilter">
6742 <desc>
6743 Creates a new USB device filter. All attributes except
6744 the filter name are set to <tt>null</tt> (any match),
6745 <i>active</i> is <tt>false</tt> (the filter is not active).
6746
6747 The created filter can be added to the list of filters using
6748 <link to="#insertUSBDeviceFilter"/>.
6749
6750 <see>#USBDeviceFilters</see>
6751 </desc>
6752 <param name="name" type="wstring" dir="in">
6753 <desc>
6754 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6755 for more info.
6756 </desc>
6757 </param>
6758 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6759 <desc>Created filter object.</desc>
6760 </param>
6761 </method>
6762
6763 <method name="insertUSBDeviceFilter">
6764 <desc>
6765 Inserts the given USB device to the specified position
6766 in the list of filters.
6767
6768 Positions are numbered starting from <tt>0</tt>. If the specified
6769 position is equal to or greater than the number of elements in
6770 the list, the filter is added at the end of the collection.
6771
6772 <note>
6773 Duplicates are not allowed, so an attempt to insert a
6774 filter that is already in the list, will return an
6775 error.
6776 </note>
6777 <note>
6778 This method may set a @ref com_warnings "warning result code".
6779 </note>
6780 <note>
6781 If USB functionality is not available in the given edition of
6782 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6783 </note>
6784
6785 <see>#USBDeviceFilters</see>
6786
6787 <result name="VBOX_E_INVALID_OBJECT_STATE">
6788 USB device filter is not created within this VirtualBox instance.
6789 </result>
6790 <result name="E_INVALIDARG">
6791 USB device filter already in list.
6792 </result>
6793
6794 </desc>
6795 <param name="position" type="unsigned long" dir="in">
6796 <desc>Position to insert the filter to.</desc>
6797 </param>
6798 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6799 <desc>USB device filter to insert.</desc>
6800 </param>
6801 </method>
6802
6803 <method name="removeUSBDeviceFilter">
6804 <desc>
6805 Removes a USB device filter from the specified position in the
6806 list of filters.
6807
6808 Positions are numbered starting from <tt>0</tt>. Specifying a
6809 position equal to or greater than the number of elements in
6810 the list will produce an error.
6811
6812 <note>
6813 This method may set a @ref com_warnings "warning result code".
6814 </note>
6815 <note>
6816 If USB functionality is not available in the given edition of
6817 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6818 </note>
6819
6820 <see>#USBDeviceFilters</see>
6821
6822 <result name="E_INVALIDARG">
6823 USB device filter list empty or invalid @a position.
6824 </result>
6825
6826 </desc>
6827 <param name="position" type="unsigned long" dir="in">
6828 <desc>Position to remove the filter from.</desc>
6829 </param>
6830 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6831 <desc>Removed USB device filter.</desc>
6832 </param>
6833 </method>
6834
6835 <method name="findHostNetworkInterfaceByName">
6836 <desc>
6837 Searches through all host network interfaces for an interface with
6838 the given name.
6839 <note>
6840 The method returns an error if the given name does not
6841 correspond to any host network interface.
6842 </note>
6843 </desc>
6844 <param name="name" type="wstring" dir="in">
6845 <desc>Name of the host network interface to search for.</desc>
6846 </param>
6847 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6848 <desc>Found host network interface object.</desc>
6849 </param>
6850 </method>
6851 <method name="findHostNetworkInterfaceById">
6852 <desc>
6853 Searches through all host network interfaces for an interface with
6854 the given GUID.
6855 <note>
6856 The method returns an error if the given GUID does not
6857 correspond to any host network interface.
6858 </note>
6859 </desc>
6860 <param name="id" type="uuid" dir="in">
6861 <desc>GUID of the host network interface to search for.</desc>
6862 </param>
6863 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6864 <desc>Found host network interface object.</desc>
6865 </param>
6866 </method>
6867 </interface>
6868
6869 <!--
6870 // ISystemProperties
6871 /////////////////////////////////////////////////////////////////////////
6872 -->
6873
6874 <interface
6875 name="ISystemProperties"
6876 extends="$unknown"
6877 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6878 wsmap="managed"
6879 >
6880 <desc>
6881 The ISystemProperties interface represents global properties of the given
6882 VirtualBox installation.
6883
6884 These properties define limits and default values for various attributes
6885 and parameters. Most of the properties are read-only, but some can be
6886 changed by a user.
6887 </desc>
6888
6889 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6890 <desc>Minimum guest system memory in Megabytes.</desc>
6891 </attribute>
6892
6893 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6894 <desc>Maximum guest system memory in Megabytes.</desc>
6895 </attribute>
6896
6897 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6898 <desc>Minimum guest video memory in Megabytes.</desc>
6899 </attribute>
6900
6901 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6902 <desc>Maximum guest video memory in Megabytes.</desc>
6903 </attribute>
6904
6905 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6906 <desc>Minimum CPU count.</desc>
6907 </attribute>
6908
6909 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6910 <desc>Maximum CPU count.</desc>
6911 </attribute>
6912
6913 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6914 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6915 </attribute>
6916
6917 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6918 <desc>
6919 Number of network adapters associated with every
6920 <link to="IMachine"/> instance.
6921 </desc>
6922 </attribute>
6923
6924 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
6925 <desc>
6926 Number of serial ports associated with every
6927 <link to="IMachine"/> instance.
6928 </desc>
6929 </attribute>
6930
6931 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
6932 <desc>
6933 Number of parallel ports associated with every
6934 <link to="IMachine"/> instance.
6935 </desc>
6936 </attribute>
6937
6938 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
6939 <desc>
6940 Maximum device position in the boot order. This value corresponds
6941 to the total number of devices a machine can boot from, to make it
6942 possible to include all possible devices to the boot list.
6943 <see><link to="IMachine::setBootOrder"/></see>
6944 </desc>
6945 </attribute>
6946
6947 <attribute name="defaultMachineFolder" type="wstring">
6948 <desc>
6949 Full path to the default directory used to create new or open
6950 existing machines when a settings file name contains no
6951 path.
6952
6953 The initial value of this property is
6954 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
6955 VirtualBox_home</link><tt>&gt;/Machines</tt>.
6956
6957 <note>
6958 Setting this property to <tt>null</tt> will restore the
6959 initial value.
6960 </note>
6961 <note>
6962 When settings this property, the specified path can be
6963 absolute (full path) or relative
6964 to the <link to="IVirtualBox::homeFolder">
6965 VirtualBox home directory</link>.
6966 When reading this property, a full path is
6967 always returned.
6968 </note>
6969 <note>
6970 The specified path may not exist, it will be created
6971 when necessary.
6972 </note>
6973
6974 <see>
6975 <link to="IVirtualBox::createMachine"/>,
6976 <link to="IVirtualBox::openMachine"/>
6977 </see>
6978 </desc>
6979 </attribute>
6980
6981 <attribute name="defaultHardDiskFolder" type="wstring">
6982 <desc>
6983 Full path to the default directory used to create new or open existing
6984 virtual disks.
6985
6986 This path is used when the storage unit of a hard disk is a regular file
6987 in the host's file system and only a file name that contains no path is
6988 given.
6989
6990 The initial value of this property is
6991 <tt>&lt;</tt>
6992 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
6993 <tt>&gt;/HardDisks</tt>.
6994
6995 <note>
6996 Setting this property to <tt>null</tt> will restore the
6997 initial value.
6998 </note>
6999 <note>
7000 When settings this property, the specified path can be relative
7001 to the
7002 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7003 absolute. When reading this property, a full path is
7004 always returned.
7005 </note>
7006 <note>
7007 The specified path may not exist, it will be created
7008 when necessary.
7009 </note>
7010
7011 <see>
7012 IHardDisk,
7013 <link to="IVirtualBox::createHardDisk"/>,
7014 <link to="IVirtualBox::openHardDisk"/>,
7015 <link to="IMedium::location"/>
7016 </see>
7017 </desc>
7018 </attribute>
7019
7020 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7021 <desc>
7022 List of all hard disk storage formats supported by this VirtualBox
7023 installation.
7024
7025 Keep in mind that the hard disk format identifier
7026 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7027 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7028 hard disk format is a case-insensitive string. This means that, for
7029 example, all of the following strings:
7030 <pre>
7031 "VDI"
7032 "vdi"
7033 "VdI"</pre>
7034 refer to the same hard disk format.
7035
7036 Note that the virtual hard disk framework is backend-based, therefore
7037 the list of supported formats depends on what backends are currently
7038 installed.
7039
7040 <see>
7041 <link to="IHardDiskFormat"/>,
7042 </see>
7043 </desc>
7044 </attribute>
7045
7046 <attribute name="defaultHardDiskFormat" type="wstring">
7047 <desc>
7048 Identifier of the default hard disk format used by VirtualBox.
7049
7050 The hard disk format set by this attribute is used by VirtualBox
7051 when the hard disk format was not specified explicitly. One example is
7052 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7053 format argument. A more complex example is implicit creation of
7054 differencing hard disks when taking a snapshot of a virtual machine:
7055 this operation will try to use a format of the parent hard disk first
7056 and if this format does not support differencing hard disks the default
7057 format specified by this argument will be used.
7058
7059 The list of supported hard disk formats may be obtained by the
7060 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7061 format must have a capability to create differencing hard disks;
7062 otherwise opeartions that create hard disks implicitly may fail
7063 unexpectedly.
7064
7065 The initial value of this property is <tt>VDI</tt> in the current
7066 version of the VirtualBox product, but may change in the future.
7067
7068 <note>
7069 Setting this property to <tt>null</tt> will restore the
7070 initial value.
7071 </note>
7072
7073 <see>
7074 <link to="#hardDiskFormats"/>,
7075 <link to="IHardDiskFormat::id"/>,
7076 <link to="IVirtualBox::createHardDisk"/>
7077 </see>
7078 </desc>
7079 </attribute>
7080
7081 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7082 <desc>
7083 Library that provides authentication for VRDP clients. The library
7084 is used if a virtual machine's authentication type is set to "external"
7085 in the VM RemoteDisplay configuration.
7086
7087 The system library extension (".DLL" or ".so") must be omitted.
7088 A full path can be specified; if not, then the library must reside on the
7089 system's default library path.
7090
7091 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7092 of that name in one of the default VirtualBox library directories.
7093
7094 For details about VirtualBox authentication libraries and how to implement
7095 them, please refer to the VirtualBox manual.
7096
7097 <note>
7098 Setting this property to <tt>null</tt> will restore the
7099 initial value.
7100 </note>
7101 </desc>
7102 </attribute>
7103
7104 <attribute name="webServiceAuthLibrary" type="wstring">
7105 <desc>
7106 Library that provides authentication for webservice clients. The library
7107 is used if a virtual machine's authentication type is set to "external"
7108 in the VM RemoteDisplay configuration and will be called from
7109 within the <link to="IWebsessionManager::logon" /> implementation.
7110
7111 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7112 there is no per-VM setting for this, as the webservice is a global
7113 resource (if it is running). Only for this setting (for the webservice),
7114 setting this value to a literal "null" string disables authentication,
7115 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7116 no matter what user name and password are supplied.
7117
7118 The initial value of this property is <tt>VRDPAuth</tt>,
7119 meaning that the webservice will use the same authentication
7120 library that is used by default for VBoxVRDP (again, see
7121 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7122 The format and calling convention of authentication libraries
7123 is the same for the webservice as it is for VBoxVRDP.
7124
7125 </desc>
7126 </attribute>
7127
7128 <attribute name="HWVirtExEnabled" type="boolean">
7129 <desc>
7130 This specifies the default value for hardware virtualization
7131 extensions. If enabled, virtual machines will make use of
7132 hardware virtualization extensions such as Intel VT-x and
7133 AMD-V by default. This value can be overridden by each VM
7134 using their <link to="IMachine::HWVirtExEnabled" /> property.
7135 </desc>
7136 </attribute>
7137
7138 <attribute name="LogHistoryCount" type="unsigned long">
7139 <desc>
7140 This value specifies how many old release log files are kept.
7141 </desc>
7142 </attribute>
7143 </interface>
7144
7145 <!--
7146 // IGuest
7147 /////////////////////////////////////////////////////////////////////////
7148 -->
7149
7150 <interface
7151 name="IGuestOSType" extends="$unknown"
7152 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7153 wsmap="struct"
7154 >
7155 <desc>
7156 </desc>
7157
7158 <attribute name="familyId" type="wstring" readonly="yes">
7159 <desc>Guest OS family identifier string.</desc>
7160 </attribute>
7161
7162 <attribute name="familyDescription" type="wstring" readonly="yes">
7163 <desc>Human readable description of the guest OS family.</desc>
7164 </attribute>
7165
7166 <attribute name="id" type="wstring" readonly="yes">
7167 <desc>Guest OS identifier string.</desc>
7168 </attribute>
7169
7170 <attribute name="description" type="wstring" readonly="yes">
7171 <desc>Human readable description of the guest OS.</desc>
7172 </attribute>
7173
7174 <attribute name="is64Bit" type="boolean" readonly="yes">
7175 <desc>Returns @c true if the given OS is 64-bit</desc>
7176 </attribute>
7177
7178 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7179 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7180 </attribute>
7181
7182 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7183 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7184 </attribute>
7185
7186 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7187 <desc>Recommended RAM size in Megabytes.</desc>
7188 </attribute>
7189
7190 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7191 <desc>Recommended video RAM size in Megabytes.</desc>
7192 </attribute>
7193
7194 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7195 <desc>Recommended hard disk size in Megabytes.</desc>
7196 </attribute>
7197
7198 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7199 <desc>Returns recommended network adapter for this OS type.</desc>
7200 </attribute>
7201 </interface>
7202
7203 <interface
7204 name="IGuest" extends="$unknown"
7205 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7206
7207 wsmap="suppress"
7208 >
7209 <desc>
7210 The IGuest interface represents information about the operating system
7211 running inside the virtual machine. Used in
7212 <link to="IConsole::guest"/>.
7213
7214 IGuest provides information about the guest operating system, whether
7215 Guest Additions are installed and other OS-specific virtual machine
7216 properties.
7217 </desc>
7218
7219 <attribute name="OSTypeId" type="wstring" readonly="yes">
7220 <desc>
7221 Identifier of the Guest OS type as reported by the Guest
7222 Additions.
7223 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7224 an IGuestOSType object representing details about the given
7225 Guest OS type.
7226 <note>
7227 If Guest Additions are not installed, this value will be
7228 the same as <link to="IMachine::OSTypeId"/>.
7229 </note>
7230 </desc>
7231 </attribute>
7232
7233 <attribute name="additionsActive" type="boolean" readonly="yes">
7234 <desc>
7235 Flag whether the Guest Additions are installed and active
7236 in which case their version will be returned by the
7237 <link to="#additionsVersion"/> property.
7238 </desc>
7239 </attribute>
7240
7241 <attribute name="additionsVersion" type="wstring" readonly="yes">
7242 <desc>
7243 Version of the Guest Additions (3 decimal numbers separated
7244 by dots) or empty when the Additions are not installed. The
7245 Additions may also report a version but yet not be active as
7246 the version might be refused by VirtualBox (incompatible) or
7247 other failures occurred.
7248 </desc>
7249 </attribute>
7250
7251 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7252 <desc>
7253 Flag whether seamless guest display rendering (seamless desktop
7254 integration) is supported.
7255 </desc>
7256 </attribute>
7257
7258 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7259 <desc>
7260 Flag whether the guest is in graphics mode. If it is not, then
7261 seamless rendering will not work, resize hints are not immediately
7262 acted on and guest display resizes are probably not initiated by
7263 the guest additions.
7264 </desc>
7265 </attribute>
7266
7267 <attribute name="memoryBalloonSize" type="unsigned long">
7268 <desc>Guest system memory balloon size in megabytes.</desc>
7269 </attribute>
7270
7271 <attribute name="statisticsUpdateInterval" type="unsigned long">
7272 <desc>Interval to update guest statistics in seconds.</desc>
7273 </attribute>
7274
7275 <method name="setCredentials">
7276 <desc>
7277 Store login credentials that can be queried by guest operating
7278 systems with Additions installed. The credentials are transient
7279 to the session and the guest may also choose to erase them. Note
7280 that the caller cannot determine whether the guest operating system
7281 has queried or made use of the credentials.
7282
7283 <result name="VBOX_E_VM_ERROR">
7284 VMM device is not available.
7285 </result>
7286
7287 </desc>
7288 <param name="userName" type="wstring" dir="in">
7289 <desc>User name string, can be empty</desc>
7290 </param>
7291 <param name="password" type="wstring" dir="in">
7292 <desc>Password string, can be empty</desc>
7293 </param>
7294 <param name="domain" type="wstring" dir="in">
7295 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7296 </param>
7297 <param name="allowInteractiveLogon" type="boolean" dir="in">
7298 <desc>
7299 Flag whether the guest should alternatively allow the user to
7300 interactively specify different credentials. This flag might
7301 not be supported by all versions of the Additions.
7302 </desc>
7303 </param>
7304 </method>
7305
7306 <method name="getStatistic">
7307 <desc>
7308 Query specified guest statistics as reported by the VirtualBox Additions.
7309 </desc>
7310 <param name="cpuId" type="unsigned long" dir="in">
7311 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7312 </param>
7313 <param name="statistic" type="GuestStatisticType" dir="in">
7314 <desc>Statistic type.</desc>
7315 </param>
7316 <param name="statVal" type="unsigned long" dir="out">
7317 <desc>Statistics value</desc>
7318 </param>
7319 </method>
7320
7321 </interface>
7322
7323
7324 <!--
7325 // IProgress
7326 /////////////////////////////////////////////////////////////////////////
7327 -->
7328
7329 <interface
7330 name="IProgress" extends="$unknown"
7331 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7332 wsmap="managed"
7333 >
7334 <desc>
7335 The IProgress interface represents a task progress object that allows
7336 to wait for the completion of some asynchronous task.
7337
7338 The task consists of one or more operations that run sequentially,
7339 one by one. There is an individual percentage of completion of the
7340 current operation and the percentage of completion of the task as a
7341 whole. Similarly, you can wait for the completion of a particular
7342 operation or for the completion of the whole task.
7343
7344 Every operation is identified by a number (starting from 0)
7345 and has a separate description.
7346 </desc>
7347
7348 <attribute name="id" type="uuid" readonly="yes">
7349 <desc>ID of the task.</desc>
7350 </attribute>
7351
7352 <attribute name="description" type="wstring" readonly="yes">
7353 <desc>Description of the task.</desc>
7354 </attribute>
7355
7356 <attribute name="initiator" type="$unknown" readonly="yes">
7357 <desc>Initiator of the task.</desc>
7358 </attribute>
7359
7360 <attribute name="cancelable" type="boolean" readonly="yes">
7361 <desc>Whether the task can be interrupted.</desc>
7362 </attribute>
7363
7364 <attribute name="percent" type="long" readonly="yes">
7365 <desc>
7366 Current task progress value in percent.
7367 This value depends on how many operations are already complete.
7368 </desc>
7369 </attribute>
7370
7371 <attribute name="completed" type="boolean" readonly="yes">
7372 <desc>Whether the task has been completed.</desc>
7373 </attribute>
7374
7375 <attribute name="canceled" type="boolean" readonly="yes">
7376 <desc>Whether the task has been canceled.</desc>
7377 </attribute>
7378
7379 <attribute name="resultCode" type="result" readonly="yes">
7380 <desc>
7381 Result code of the progress task.
7382 Valid only if <link to="#completed"/> is true.
7383 </desc>
7384 </attribute>
7385
7386 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7387 <desc>
7388 Extended information about the unsuccessful result of the
7389 progress operation. May be NULL when no extended information
7390 is available.
7391 Valid only if <link to="#completed"/> is true and
7392 <link to="#resultCode"/> indicates a failure.
7393 </desc>
7394 </attribute>
7395
7396 <attribute name="operationCount" type="unsigned long" readonly="yes">
7397 <desc>
7398 Number of operations this task is divided into.
7399 Every task consists of at least one operation.
7400 </desc>
7401 </attribute>
7402
7403 <attribute name="operation" type="unsigned long" readonly="yes">
7404 <desc>Number of the operation being currently executed.</desc>
7405 </attribute>
7406
7407 <attribute name="operationDescription" type="wstring" readonly="yes">
7408 <desc>
7409 Description of the operation being currently executed.
7410 </desc>
7411 </attribute>
7412
7413 <attribute name="operationPercent" type="long" readonly="yes">
7414 <desc>Current operation progress value in percent.</desc>
7415 </attribute>
7416
7417 <method name="waitForCompletion">
7418 <desc>
7419 Waits until the task is done (including all operations) with a
7420 given timeout.
7421
7422 <result name="VBOX_E_IPRT_ERROR">
7423 Failed to wait for task completion.
7424 </result>
7425
7426 </desc>
7427 <param name="timeout" type="long" dir="in">
7428 <desc>
7429 Timeout value in milliseconds.
7430 Specify -1 for an indefinite wait.
7431 </desc>
7432 </param>
7433 </method>
7434
7435 <method name="waitForOperationCompletion">
7436 <desc>
7437 Waits until the given operation is done with a given timeout.
7438
7439 <result name="VBOX_E_IPRT_ERROR">
7440 Failed to wait for operation completion.
7441 </result>
7442
7443 </desc>
7444 <param name="operation" type="unsigned long" dir="in">
7445 <desc>
7446 Number of the operation to wait for.
7447 Must be less than <link to="#operationCount"/>.
7448 </desc>
7449 </param>
7450 <param name="timeout" type="long" dir="in">
7451 <desc>
7452 Timeout value in milliseconds.
7453 Specify -1 for an indefinite wait.
7454 </desc>
7455 </param>
7456 </method>
7457
7458 <method name="cancel">
7459 <desc>
7460 Cancels the task.
7461 <note>
7462 If <link to="#cancelable"/> is <tt>false</tt>, then
7463 this method will fail.
7464 </note>
7465
7466 <result name="VBOX_E_INVALID_OBJECT_STATE">
7467 Operation cannot be canceled.
7468 </result>
7469
7470 </desc>
7471 </method>
7472
7473 </interface>
7474
7475
7476 <!--
7477 // ISnapshot
7478 /////////////////////////////////////////////////////////////////////////
7479 -->
7480
7481 <enumerator
7482 name="ISnapshotEnumerator" type="ISnapshot"
7483 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
7484 />
7485
7486 <collection
7487 name="ISnapshotCollection" type="ISnapshot"
7488 enumerator="ISnapshotEnumerator"
7489 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
7490 readonly="yes"
7491 />
7492
7493 <interface
7494 name="ISnapshot" extends="$unknown"
7495 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
7496 wsmap="managed"
7497 >
7498 <desc>
7499 The ISnapshot interface represents a snapshot of the virtual
7500 machine.
7501
7502 The <i>snapshot</i> stores all the information about a virtual
7503 machine necessary to bring it to exactly the same state as it was at
7504 the time of taking the snapshot. The snapshot includes:
7505
7506 <ul>
7507 <li>all settings of the virtual machine (i.e. its hardware
7508 configuration: RAM size, attached hard disks, etc.)
7509 </li>
7510 <li>the execution state of the virtual machine (memory contents,
7511 CPU state, etc.).
7512 </li>
7513 </ul>
7514
7515 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7516 or <i>online</i> (taken when the VM is running). The execution
7517 state of the offline snapshot is called a <i>zero execution state</i>
7518 (it doesn't actually contain any information about memory contents
7519 or the CPU state, assuming that all hardware is just powered off).
7520
7521 <h3>Snapshot branches</h3>
7522
7523 Snapshots can be chained. Chained snapshots form a branch where
7524 every next snapshot is based on the previous one. This chaining is
7525 mostly related to hard disk branching (see <link to="IHardDisk"/>
7526 description). This means that every time a new snapshot is created,
7527 a new differencing hard disk is implicitly created for all normal
7528 hard disks attached to the given virtual machine. This allows to
7529 fully restore hard disk contents when the machine is later reverted
7530 to a particular snapshot.
7531
7532 In the current implementation, multiple snapshot branches within one
7533 virtual machine are not allowed. Every machine has a single branch,
7534 and <link to="IConsole::takeSnapshot"/> operation adds a new
7535 snapshot to the top of that branch.
7536
7537 Existing snapshots can be discarded using
7538 <link to="IConsole::discardSnapshot"/>.
7539
7540 <h3>Current snapshot</h3>
7541
7542 Every virtual machine has a current snapshot, identified by
7543 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7544 a base for the <i>current machine state</i> (see below), to the effect
7545 that all normal hard disks of the machine and its execution
7546 state are based on this snapshot.
7547
7548 In the current implementation, the current snapshot is always the
7549 last taken snapshot (i.e. the head snapshot on the branch) and it
7550 cannot be changed.
7551
7552 The current snapshot is <tt>null</tt> if the machine doesn't have
7553 snapshots at all; in this case the current machine state is just
7554 current settings of this machine plus its current execution state.
7555
7556 <h3>Current machine state</h3>
7557
7558 The current machine state is what represented by IMachine instances got
7559 directly from IVirtualBox
7560 using <link
7561 to="IVirtualBox::getMachine">getMachine()</link>, <link
7562 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7563 to instances returned by <link to="ISnapshot::machine"/>). This state
7564 is always used when the machine is <link to="IConsole::powerUp"> powered
7565 on</link>.
7566
7567 The current machine state also includes the current execution state.
7568 If the machine is being currently executed
7569 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7570 and above), its execution state is just what's happening now.
7571 If it is powered off (<link to="MachineState_PoweredOff"/> or
7572 <link to="MachineState_Aborted"/>), it has a zero execution state.
7573 If the machine is saved (<link to="MachineState_Saved"/>), its
7574 execution state is what saved in the execution state file
7575 (<link to="IMachine::stateFilePath"/>).
7576
7577 If the machine is in the saved state, then, next time it is powered
7578 on, its execution state will be fully restored from the saved state
7579 file and the execution will continue from the point where the state
7580 was saved.
7581
7582 Similarly to snapshots, the current machine state can be discarded
7583 using <link to="IConsole::discardCurrentState"/>.
7584
7585 <h3>Taking and discarding snapshots</h3>
7586
7587 The table below briefly explains the meaning of every snapshot
7588 operation:
7589
7590 <table>
7591 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7592
7593 <tr><td><link to="IConsole::takeSnapshot"/></td>
7594
7595 <td>Save the current state of the virtual machine, including all
7596 settings, contents of normal hard disks and the current modifications
7597 to immutable hard disks (for online snapshots)</td>
7598
7599 <td>The current state is not changed (the machine will continue
7600 execution if it is being executed when the snapshot is
7601 taken)</td></tr>
7602
7603 <tr><td><link to="IConsole::discardSnapshot"/></td>
7604
7605 <td>Forget the state of the virtual machine stored in the snapshot:
7606 dismiss all saved settings and delete the saved execution state (for
7607 online snapshots)</td>
7608
7609 <td>Other snapshots (including child snapshots, if any) and the
7610 current state are not directly affected</td></tr>
7611
7612 <tr><td><link to="IConsole::discardCurrentState"/></td>
7613
7614 <td>Restore the current state of the virtual machine from the state
7615 stored in the current snapshot, including all settings and hard disk
7616 contents</td>
7617
7618 <td>The current state of the machine existed prior to this operation
7619 is lost</td></tr>
7620
7621 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7622
7623 <td>Completely revert the virtual machine to the state it was in
7624 before the current snapshot has been taken</td>
7625
7626 <td>The current state, as well as the current snapshot, are
7627 lost</td></tr>
7628
7629 </table>
7630
7631 </desc>
7632
7633 <attribute name="id" type="uuid" readonly="yes">
7634 <desc>UUID of the snapshot.</desc>
7635 </attribute>
7636
7637 <attribute name="name" type="wstring">
7638 <desc>Short name of the snapshot.</desc>
7639 </attribute>
7640
7641 <attribute name="description" type="wstring">
7642 <desc>Optional description of the snapshot.</desc>
7643 </attribute>
7644
7645 <attribute name="timeStamp" type="long long" readonly="yes">
7646 <desc>
7647 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7648 </desc>
7649 </attribute>
7650
7651 <attribute name="online" type="boolean" readonly="yes">
7652 <desc>
7653 <tt>true</tt> if this snapshot is an online snapshot and
7654 <tt>false</tt> otherwise.
7655
7656 <note>
7657 When this attribute is <tt>true</tt>, the
7658 <link to="IMachine::stateFilePath"/> attribute of the
7659 <link to="#machine"/> object associated with this snapshot
7660 will point to the saved state file. Otherwise, it will be
7661 <tt>null</tt>.
7662 </note>
7663 </desc>
7664 </attribute>
7665
7666 <attribute name="machine" type="IMachine" readonly="yes">
7667 <desc>
7668 Virtual machine this snapshot is taken on. This object
7669 stores all settings the machine had when taking this snapshot.
7670 <note>
7671 The returned machine object is immutable, i.e. no
7672 any settings can be changed.
7673 </note>
7674 </desc>
7675 </attribute>
7676
7677 <attribute name="parent" type="ISnapshot" readonly="yes">
7678 <desc>
7679 Parent snapshot (a snapshot this one is based on).
7680 <note>
7681 It's not an error to read this attribute on a snapshot
7682 that doesn't have a parent -- a null object will be
7683 returned to indicate this.
7684 </note>
7685 </desc>
7686 </attribute>
7687
7688 <attribute name="children" type="ISnapshotCollection" readonly="yes">
7689 <desc>
7690 Child snapshots (all snapshots having this one as a parent).
7691 <note>
7692 In the current implementation, there can be only one
7693 child snapshot, or no children at all, meaning this is the
7694 last (head) snapshot.
7695 </note>
7696 </desc>
7697 </attribute>
7698
7699 </interface>
7700
7701
7702 <!--
7703 // IMedia
7704 /////////////////////////////////////////////////////////////////////////
7705 -->
7706
7707 <enum
7708 name="MediaState"
7709 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7710 >
7711 <desc>
7712 Virtual media state.
7713 <see>IMedia</see>
7714 </desc>
7715
7716 <const name="NotCreated" value="0">
7717 <desc>
7718 Associated media storage does not exist (either was not created yet or
7719 was deleted).
7720 </desc>
7721 </const>
7722 <const name="Created" value="1">
7723 <desc>
7724 Associated storage exists and accessible.
7725 </desc>
7726 </const>
7727 <const name="LockedRead" value="2">
7728 <desc>
7729 Media is locked for reading, no data modification is possible.
7730 </desc>
7731 </const>
7732 <const name="LockedWrite" value="3">
7733 <desc>
7734 Media is locked for writing, no concurrent data reading or modification
7735 is possible.
7736 </desc>
7737 </const>
7738 <const name="Inaccessible" value="4">
7739 <desc>
7740 Associated media storage is not accessible.
7741 </desc>
7742 </const>
7743 <const name="Creating" value="5">
7744 <desc>
7745 Associated media storage is being created.
7746 </desc>
7747 </const>
7748 <const name="Deleting" value="6">
7749 <desc>
7750 Associated media storage is being deleted.
7751 </desc>
7752 </const>
7753 </enum>
7754
7755 <interface
7756 name="IMedium" extends="$unknown"
7757 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7758 wsmap="managed"
7759 >
7760 <desc>
7761 The IMedium interface is a common interface for all objects representing
7762 virtual media such as hard disks, DVD images.
7763
7764 Each medium is associated with a storage unit (such as a file on the host
7765 computer or a network resource) that holds actual data. The location of
7766 the storage unit is represented by the #location attribute. The value of
7767 this attribute is media type dependent.
7768
7769 The exact media type may be determined by querying the appropriate
7770 interface such as:
7771 <ul>
7772 <li>IHardDisk (virtual hard disks)</li>
7773 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7774 <li>IFloppyImage (raw floppy image files)</li>
7775 </ul>
7776
7777 Existing media are opened using the following methods, depending on the
7778 media type:
7779 <ul>
7780 <li><link to="IVirtualBox::openHardDisk"/></li>
7781 <li><link to="IVirtualBox::openDVDImage"/></li>
7782 <li><link to="IVirtualBox::openFloppyImage"/></li>
7783 </ul>
7784
7785 New hard disk media are created using the
7786 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7787 images are created outside VirtualBox, usually by storing a copy
7788 of the real medium of the corresponding type in a regular file.
7789
7790 <h3>Known Media</h3>
7791
7792 When an existing medium gets opened for the first time, it gets
7793 automatically remembered by the given VirtualBox installation or, in other
7794 words, becomes a <i>known medium</i>. Known media are stored in the media
7795 registry transparently maintained by VirtualBox and stored in settings
7796 files so that this registry is preserved when VirtualBox is not running.
7797
7798 Newly created virtual hard disks get remembered only when the associated
7799 storage unit is actually created (see IHardDisk for more details).
7800
7801 All known media can be enumerated using
7802 <link to="IVirtualBox::hardDisks"/>,
7803 <link to="IVirtualBox::DVDImages"/> and
7804 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7805 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7806 and similar methods or by location using
7807 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7808
7809 Only known media can be attached to virtual machines.
7810
7811 Removing known media from the media registry is performed when the given
7812 medium is closed using the <link to="#close"/> method or when its
7813 associated storage unit is deleted (only for hard disks).
7814
7815 <h3>Accessibility Checks</h3>
7816
7817 The given medium (with the created storage unit) is considered to be
7818 <i>accessible</i> when its storage unit can be successfully read from.
7819 Accessible media are indicated by the <link to="MediaState_Created"/>
7820 value of the <link to="#state"/> attribute. When the storage unit cannot
7821 be read (for example, because it is located on a disconnected network
7822 resource, or was accidentally deleted outside VirtualBox), the medium is
7823 considered to be <i>inaccessible</i> which is indicated by the
7824 <link to="MediaState_Inaccessible"/> state. The details about the reason
7825 of being inaccessible can be obtained using the
7826 <link to="#lastAccessError"/> attribute.
7827
7828 A new accessibility check is performed each time the <link to="#state"/>
7829 attribute is read. Please note that this check may take long time (several
7830 seconds or even minutes, depending on the storage unit location and
7831 format), and will block the calling thread until finished. For this
7832 reason, it is recommended to never read this attribute on the main UI
7833 thread to avoid making the UI unresponsive.
7834
7835 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7836 created for the first time), all known media are in the
7837 <link to="MediaState_Inaccessible"/> state but the value of the <link
7838 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7839 accessibility check is made on startup. This is done to make the
7840 VirtualBox object ready for serving requests as
7841 fast as possible and let the end-user application decide if it needs to
7842 check media accessibility right away or not.
7843 </desc>
7844
7845 <attribute name="id" type="uuid" readonly="yes">
7846 <desc>
7847 UUID of the medium. For a newly created medium, this value is a randomly
7848 generated UUID.
7849
7850 <note>
7851 For media in one of MediaState_NotCreated, MediaState_Creating or
7852 MediaState_Deleting states, the value of this property is undefined
7853 and will most likely be an empty UUID.
7854 </note>
7855 </desc>
7856 </attribute>
7857
7858 <attribute name="description" type="wstring">
7859 <desc>
7860 Optional description of the medium. For newly created media, the value
7861 of this attribute value is <tt>null</tt>.
7862
7863 Media types that don't support this attribute will return E_NOTIMPL in
7864 attempt to get or set this attribute's value.
7865
7866 <note>
7867 For some storage types, reading this attribute may return an outdated
7868 (last known) value when <link to="#state"/> is <link
7869 to="MediaState_Inaccessible"/> or <link
7870 to="MediaState_LockedWrite"/> because the value of this attribute is
7871 stored within the storage unit itself. Also note that changing the
7872 attribute value is not possible in such case, as well as when the
7873 medium is the <link to="MediaState_LockedRead"/> state.
7874 </note>
7875 </desc>
7876 </attribute>
7877
7878 <attribute name="state" type="MediaState" readonly="yes">
7879 <desc>
7880 Current media state. Inspect <link to="MediaState"/> values for details.
7881
7882 Reading this attribute may take long time because a new accessibility
7883 check of the storage unit is performed every time the attribute is read.
7884 This check may cause a significant delay if the storage unit of the
7885 given medium is, for example, a file located on a network share which is
7886 not currently accessible due to connectivity problems -- the call will
7887 not return until a timeout interval defined by the host OS for this
7888 operation expires.
7889
7890 If the last known state of the medium is <link to="MediaState_Created"/>
7891 and the accessibility check fails then the state would be set to
7892 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7893 may be used to get more details about the failure. If the state of the
7894 medium is <link to="MediaState_LockedRead"/> or
7895 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7896 non-null value of <link to="#lastAccessError"/> will indicate a failed
7897 accessibility check in this case.
7898
7899 Note that not all media states are applicable to certain media types.
7900 For example, states <link to="MediaState_NotCreated"/>,
7901 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7902 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
7903 IFloppyImage media.
7904 </desc>
7905 </attribute>
7906
7907 <attribute name="location" type="wstring">
7908 <desc>
7909 Location of the storage unit holding media data.
7910
7911 The format of the location string is media type specific. For media
7912 types that use regular files in a host's file system, the location
7913 string is just a full file name.
7914
7915 Some media types may support changing the storage unit location by
7916 simply changing the value of this property. If this operation is not
7917 supported, the implementation will return E_NOTIMPL in attempt to set
7918 this attribute's value.
7919
7920 When setting a value of the location attribute which is a regular file
7921 in the host's file system, the given file name may be either relative to
7922 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7923 absolute. Note that if the given location specification does not contain
7924 the file extension part then a proper default extension will be
7925 automatically appended by the implementation depending on the media type.
7926 </desc>
7927 </attribute>
7928
7929 <attribute name="name" type="wstring" readonly="yes">
7930 <desc>
7931 Name of the storage unit holding media data.
7932
7933 The returned string is a short version of the <link to="#location"/>
7934 attribute that is suitable for representing the medium in situations
7935 where the full location specification is too long (such as lists
7936 and comboboxes in GUI frontends). This string is also used by frontends
7937 to sort the media list alphabetically when needed.
7938
7939 For example, for locations that are regular files in the host's file
7940 system, the value of this attribute is just a file name (+ extension),
7941 without the path specification.
7942
7943 Note that as opposed to the <link to="#location"/> attribute, the name
7944 attribute will not necessary be unique for a list of media of the
7945 given type and format.
7946 </desc>
7947 </attribute>
7948
7949 <attribute name="size" type="unsigned long long" readonly="yes">
7950 <desc>
7951 Physical size of the storage unit used to hold media data (in bytes).
7952
7953 <note>
7954 For media whose <link to="#state"/> is <link
7955 to="MediaState_Inaccessible"/>, the value of this property is the
7956 last known size. For <link to="MediaState_NotCreated"/> media,
7957 the returned value is zero.
7958 </note>
7959 </desc>
7960 </attribute>
7961
7962 <attribute name="lastAccessError" type="wstring" readonly="yes">
7963 <desc>
7964 Text message that represents the result of the last accessibility
7965 check.
7966
7967 Accessibility checks are performed each time the <link to="#state"/>
7968 attribute is read. A @c null string is returned if the last
7969 accessibility check was successful. A non-null string indicates a
7970 failure and should normally describe a reason of the failure (for
7971 example, a file read error).
7972 </desc>
7973 </attribute>
7974
7975 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
7976 <desc>
7977 Array of UUIDs of all machines this medium is attached to.
7978
7979 A <tt>null</tt> array is returned if this medium is not attached to any
7980 machine or to any machine's snapshot.
7981
7982 <note>
7983 The returned array will include a machine even if this medium is not
7984 attached to that machine in the current state but attached to it in
7985 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
7986 details.
7987 </note>
7988 </desc>
7989 </attribute>
7990
7991 <method name="getSnapshotIds">
7992 <desc>
7993 Returns an array of UUIDs of all snapshots of the given machine where
7994 this medium is attached to it.
7995
7996 If the medium is attached to the machine in the current state, then the
7997 first element in the array will always be the ID of the queried machine
7998 (i.e. the value equal to the @c machineId argument), followed by
7999 snapshot IDs (if any).
8000
8001 If the medium is not attached to the machine in the current state, then
8002 the array will contain only snapshot IDs.
8003
8004 The returned array may be <tt>null</tt> if this medium is not attached
8005 to the given machine at all, neither in the current state nor in one of
8006 snapshots.
8007 </desc>
8008 <param name="machineId" type="uuid" dir="in">
8009 <desc>
8010 UUID of the machine to query.
8011 </desc>
8012 </param>
8013 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
8014 <desc>
8015 Array of snapshot UUIDs of the given machine using this medium.
8016 </desc>
8017 </param>
8018 </method>
8019
8020 <method name="lockRead">
8021 <desc>
8022 Locks this medium for reading.
8023
8024 The read lock is shared: many clients can simultaneously lock the
8025 same media for reading unless it is already locked for writing (see
8026 <link to="#lockWrite"/>) in which case an error is returned.
8027
8028 When the medium is locked for reading, it cannot be modified
8029 from within VirtualBox. This means that any method that changes
8030 the properties of this medium or contents of the storage unit
8031 will return an error (unless explicitly stated otherwise) and
8032 that an attempt to start a virtual machine that wants to modify
8033 the medium will also fail.
8034
8035 When the virtual machine is started up, it locks for reading all
8036 media it uses in read-only mode. If some media cannot be locked
8037 for reading, the startup procedure will fail.
8038
8039 The medium locked for reading must be unlocked using the <link
8040 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8041 can be nested and must be followed by the same number of paired
8042 <link to="#unlockRead"/> calls.
8043
8044 This method sets the media state to <link
8045 to="MediaState_LockedRead"/> on success. The state prior to
8046 this call must be <link to="MediaState_Created"/>, <link
8047 to="MediaState_Inaccessible"/> or <link
8048 to="MediaState_LockedRead"/>. As you can see, inaccessible
8049 media can be locked too. This is not an error; this method
8050 performs a logical lock that prevents modifications of this
8051 media through the VirtualBox API, not a physical lock of the
8052 underlying storage unit.
8053
8054 This method returns the current state of the medium
8055 <b>before</b> the operation.
8056
8057 <result name="VBOX_E_INVALID_OBJECT_STATE">
8058 Invalid media state (e.g. not created, locked, inaccessible,
8059 creating, deleting).
8060 </result>
8061
8062 </desc>
8063 <param name="state" type="MediaState" dir="return">
8064 <desc>
8065 State of the medium after the operation.
8066 </desc>
8067 </param>
8068 </method>
8069
8070 <method name="unlockRead">
8071 <desc>
8072 Cancels the read lock previously set by <link to="#lockRead"/>.
8073
8074 Either on success or on failure, this method returns the current state
8075 of the medium <b>after</b> the operation.
8076
8077 See <link to="#lockRead"/> for more details.
8078
8079 <result name="VBOX_E_INVALID_OBJECT_STATE">
8080 Medium not locked for reading.
8081 </result>
8082
8083 </desc>
8084 <param name="state" type="MediaState" dir="return">
8085 <desc>
8086 State of the medium after the operation.
8087 </desc>
8088 </param>
8089 </method>
8090
8091 <method name="lockWrite">
8092 <desc>
8093 Locks this medium for writing.
8094
8095 The write lock, as opposed to <link to="#lockRead"/>, is
8096 exclusive: there may be only one client that holds a write lock
8097 and there may be no read locks while the write lock is held.
8098
8099 When the medium is locked for writing, it cannot be modified
8100 from within VirtualBox and it is not guaranteed that the values
8101 of its properties are up-to-date. Any method that changes the
8102 properties of this medium or contents of the storage unit will
8103 return an error ((unless explicitly stated otherwise) and an
8104 attempt to start a virtual machine that wants to modify or to
8105 read the medium will also fail.
8106
8107 When the virtual machine is started up, it locks for writing all
8108 media it uses to write data to. If some media cannot be locked
8109 for writing, the startup procedure will fail.
8110
8111 The medium locked for writing must be unlocked using the <link
8112 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8113 can <b>not</b> be nested and must be followed by a paired <link
8114 to="#unlockWrite"/> call.
8115
8116 This method sets the media state to <link
8117 to="MediaState_LockedWrite"/> on success. The state prior to
8118 this call must be <link to="MediaState_Created"/> or <link
8119 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8120 media can be locked too. This is not an error; this method
8121 performs a logical lock that prevents modifications of this
8122 media through the VirtualBox API, not a physical lock of the
8123 underlying storage unit.
8124
8125 Either on success or on failure, this method returns the current
8126 state of the medium <b>before</b> the operation.
8127
8128 <result name="VBOX_E_INVALID_OBJECT_STATE">
8129 Invalid media state (e.g. not created, locked, inaccessible,
8130 creating, deleting).
8131 </result>
8132
8133 </desc>
8134 <param name="state" type="MediaState" dir="return">
8135 <desc>
8136 State of the medium after the operation.
8137 </desc>
8138 </param>
8139 </method>
8140
8141 <method name="unlockWrite">
8142 <desc>
8143 Cancels the write lock previously set by <link to="#lockWrite"/>.
8144
8145 Either on success or on failure, this method returns the current
8146 state of the medium <b>after</b> the operation.
8147
8148 See <link to="#lockWrite"/> for more details.
8149
8150 <result name="VBOX_E_INVALID_OBJECT_STATE">
8151 Medium not locked for writing.
8152 </result>
8153
8154 </desc>
8155 <param name="state" type="MediaState" dir="return">
8156 <desc>
8157 State of the medium after the operation.
8158 </desc>
8159 </param>
8160 </method>
8161
8162 <method name="close">
8163 <desc>
8164 Closes this medium.
8165
8166 The hard disk must not be attached to any known virtual machine
8167 and must not have any known child hard disks, otherwise the
8168 operation will fail.
8169
8170 When the hard disk is successfully closed, it gets removed from
8171 the list of remembered hard disks, but its storage unit is not
8172 deleted. In particular, this means that this hard disk can be
8173 later opened again using the <link
8174 to="IVirtualBox::openHardDisk"/> call.
8175
8176 Note that after this method successfully returns, the given hard
8177 disk object becomes uninitialized. This means that any attempt
8178 to call any of its methods or attributes will fail with the
8179 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8180
8181 <result name="VBOX_E_INVALID_OBJECT_STATE">
8182 Invalid media state (other than not created, created or
8183 inaccessible).
8184 </result>
8185 <result name="VBOX_E_OBJECT_IN_USE">
8186 Medium attached to virtual machine.
8187 </result>
8188 <result name="VBOX_E_FILE_ERROR">
8189 Settings file not accessible.
8190 </result>
8191 <result name="VBOX_E_XML_ERROR">
8192 Could not parse the settings file.
8193 </result>
8194
8195 </desc>
8196 </method>
8197
8198 </interface>
8199
8200
8201 <!--
8202 // IHardDisk
8203 /////////////////////////////////////////////////////////////////////////
8204 -->
8205
8206 <enum
8207 name="HardDiskType"
8208 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8209 >
8210 <desc>
8211 Virtual hard disk type.
8212 <see>IHardDisk</see>
8213 </desc>
8214
8215 <const name="Normal" value="0">
8216 <desc>
8217 Normal hard disk (attached directly or indirectly, preserved
8218 when taking snapshots).
8219 </desc>
8220 </const>
8221 <const name="Immutable" value="1">
8222 <desc>
8223 Immutable hard disk (attached indirectly, changes are wiped out
8224 after powering off the virtual machine).
8225 </desc>
8226 </const>
8227 <const name="Writethrough" value="2">
8228 <desc>
8229 Write through hard disk (attached directly, ignored when
8230 taking snapshots).
8231 </desc>
8232 </const>
8233 </enum>
8234
8235 <interface
8236 name="IHardDiskAttachment" extends="$unknown"
8237 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8238 wsmap="struct"
8239 >
8240 <desc>
8241 The IHardDiskAttachment interface represents a hard disk attachment of a
8242 virtual machine.
8243
8244 Every hard disk attachment specifies a slot of the virtual hard disk
8245 controller and a virtual hard disk attached to this slot.
8246
8247 The array of hard disk attachments is returned by
8248 <link to="IMachine::hardDiskAttachments"/>.
8249
8250 <note>
8251 With the COM API, this is an interface like all the others. With the
8252 webservice, this is mapped to a structure, so querying the attribute
8253 will not return an object, but a complete structure.
8254 </note>
8255 </desc>
8256 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8257 <desc>Hard disk object associated with this attachment.</desc>
8258 </attribute>
8259
8260 <attribute name="bus" type="StorageBus" readonly="yes">
8261 <desc>Interface bus of this attachment.</desc>
8262 </attribute>
8263
8264 <attribute name="channel" type="long" readonly="yes">
8265 <desc>Channel number of this attachment.</desc>
8266 </attribute>
8267
8268 <attribute name="device" type="long" readonly="yes">
8269 <desc>Device slot number of this attachment.</desc>
8270 </attribute>
8271
8272 </interface>
8273
8274 <interface
8275 name="IHardDisk" extends="IMedium"
8276 uuid="244f89fe-1943-464d-baad-2efd73e5d532"
8277 wsmap="managed"
8278 >
8279 <desc>
8280 The IHardDisk interface represents a virtual hard disk drive
8281 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8282
8283 Virtual hard disk objects virtualize the hard disk hardware and look like
8284 regular hard disks for the guest OS running inside the virtual machine.
8285
8286 <h3>Hard Disk Types</h3>
8287
8288 There are three types of hard disks:
8289 <link to="HardDiskType_Normal">Normal</link>,
8290 <link to="HardDiskType_Immutable">Immutable</link> and
8291 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8292 hard disk defines how the hard disk is attached to a virtual machine and
8293 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8294 machine with the attached hard disk is taken. The type of the hard disk is
8295 defined by the <link to="#type"/> attribute.
8296
8297 All hard disks can be also divided in two big groups: <i>base</i> hard
8298 disks and <i>differencing</i> hard disks. A base hard disk contains all
8299 sectors of the hard disk data in its storage unit and therefore can be
8300 used independently. On the contrary, a differencing hard disk contains
8301 only some part of the hard disk data (a subset of sectors) and needs
8302 another hard disk to get access to the missing sectors of data. This
8303 another hard disk is called a <i>parent</i> hard disk and defines a hard
8304 disk to which this differencing hard disk is known to be <i>linked to</i>.
8305 The parent hard disk may be itself a differencing hard disk. This
8306 way, differencing hard disks form a linked hard disk chain. This chain
8307 always ends with the base hard disk which is sometimes referred to as the
8308 root hard disk of this chain. Note that several differencing hard disks
8309 may be linked to the same parent hard disk. This way, all known hard disks
8310 form a hard disk tree which is based on their parent-child relationship.
8311
8312 Differencing hard disks can be distinguished from base hard disks by
8313 querying the <link to="#parent"/> attribute: base hard disks do not have
8314 parents they would depend on, so the value of this attribute is always
8315 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8316 the hard disk tree (from the child hard disk to its parent). It is also
8317 possible to walk down the tree using the <link to="#children"/>
8318 attribute.
8319
8320 Note that the type of all differencing hard disks is
8321 <link to="HardDiskType_Normal">Normal</link>; all other values are
8322 meaningless for them. Base hard disks may be of any type.
8323
8324 <h3>Creating Hard Disks</h3>
8325
8326 New base hard disks are created using
8327 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8328 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8329 disks are usually implicitly created by VirtualBox when needed but may
8330 also be created explicitly using <link to="#createDiffStorage"/>.
8331
8332 After the hard disk is successfully created (including the storage unit)
8333 or opened, it becomes a known hard disk (remembered in the internal media
8334 registry). Known hard disks can be attached to a virtual machine, accessed
8335 through <link to="IVirtualBox::getHardDisk"/> and
8336 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8337 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8338
8339 The following methods, besides <link to="IMedium::close"/>,
8340 automatically remove the hard disk from the media registry:
8341 <ul>
8342 <li><link to="#deleteStorage"/></li>
8343 <li><link to="#mergeTo"/></li>
8344 </ul>
8345
8346 If the storage unit of the hard disk is a regular file in the host's
8347 file system then the rules stated in the description of the
8348 <link to="IMedium::location"/> attribute apply when setting its value. In
8349 addition, a plain file name without any path may be given, in which case
8350 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8351 folder</link> will be prepended to it.
8352
8353 <h4>Automatic composition of the file name part</h4>
8354
8355 Another extension to the <link to="IMedium::location"/> attribute is that
8356 there is a possibility to cause VirtualBox to compose a unique value for
8357 the file name part of the location using the UUID of the hard disk. This
8358 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8359 e.g. before the storage unit is created, and works as follows. You set the
8360 value of the <link to="IMedium::location"/> attribute to a location
8361 specification which only contains the path specification but not the file
8362 name part and ends with either a forward slash or a backslash character.
8363 In response, VirtualBox will generate a new UUID for the hard disk and
8364 compose the file name using the following pattern:
8365 <pre>
8366 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8367 </pre>
8368 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8369 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8370 is the default extension for the storage format of this hard disk. After
8371 that, you may call any of the methods that create a new hard disk storage
8372 unit and they will use the generated UUID and file name.
8373
8374 <h3>Attaching Hard Disks</h3>
8375
8376 Hard disks are attached to virtual machines using the
8377 <link to="IMachine::attachHardDisk"/> method and detached using the
8378 <link to="IMachine::detachHardDisk"/> method. Depending on their
8379 <link to="#type"/>, hard disks are attached either
8380 <i>directly</i> or <i>indirectly</i>.
8381
8382 When a hard disk is being attached directly, it is associated with the
8383 virtual machine and used for hard disk operations when the machine is
8384 running. When a hard disk is being attached indirectly, a new differencing
8385 hard disk linked to it is implicitly created and this differencing hard
8386 disk is associated with the machine and used for hard disk operations.
8387 This also means that if <link to="IMachine::attachHardDisk"/> performs
8388 a direct attachment then the same hard disk will be returned in response
8389 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8390 an indirect attachment is performed then
8391 <link to="IMachine::getHardDisk"/> will return the implicitly created
8392 differencing hard disk, not the original one passed to <link
8393 to="IMachine::attachHardDisk"/>. The following table shows the
8394 dependency of the attachment type on the hard disk type:
8395
8396 <table>
8397 <tr>
8398 <th>Hard Disk Type</th>
8399 <th>Direct or Indirect?</th>
8400 </tr>
8401 <tr>
8402 <td>Normal (Base)</td>
8403 <td>
8404 Normal base hard disks that do not have children (i.e. differencing
8405 hard disks linked to them) and that are not already attached to
8406 virtual machines in snapshots are attached <b>directly</b>.
8407 Otherwise, they are attached <b>indirectly</b> because having
8408 dependent children or being part of the snapshot makes it impossible
8409 to modify hard disk contents without breaking the integrity of the
8410 dependent party. The <link to="#readOnly"/> attribute allows to
8411 quickly determine the kind of the attachment for the given hard
8412 disk. Note that if a normal base hard disk is to be indirectly
8413 attached to a virtual machine with snapshots then a special
8414 procedure called <i>smart attachment</i> is performed (see below).
8415 </td>
8416 </tr>
8417 <tr>
8418 <td>Normal (Differencing)</td>
8419 <td>
8420 Differencing hard disks are like normal base hard disks: attached
8421 <b>directly</b> if they do not have children and are not attached to
8422 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8423 that the smart attachment procedure is never performed for
8424 differencing hard disks.
8425 </td>
8426 </tr>
8427 <tr>
8428 <td>Immutable</td>
8429 <td>
8430 Immutable hard disks are always attached <b>indirectly</b> because
8431 they are designed to be non-writable. If an immutable hard disk is
8432 attached to a virtual machine with snapshots then a special
8433 procedure called smart attachment is performed (see below).
8434 </td>
8435 </tr>
8436 <tr>
8437 <td>Writethrough</td>
8438 <td>
8439 Writethrough hard disks are always attached <b>directly</b>, also as
8440 designed. This also means that writethrough hard disks cannot have
8441 other hard disks linked to them at all.
8442 </td>
8443 </tr>
8444 </table>
8445
8446 Note that the same hard disk, regardless of its type, may be attached to
8447 more than one virtual machine at a time. In this case, the machine that is
8448 started first gains exclusive access to the hard disk and attempts to
8449 start other machines having this hard disk attached will fail until the
8450 first machine is powered down.
8451
8452 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8453 that the given hard disk remains associated with the given machine after a
8454 successful <link to="IMachine::detachHardDisk"/> call until
8455 <link to="IMachine::saveSettings"/> is called to save all changes to
8456 machine settings to disk. This deferring is necessary to guarantee that
8457 the hard disk configuration may be restored at any time by a call to
8458 <link to="IMachine::discardSettings"/> before the settings
8459 are saved (committed).
8460
8461 Note that if <link to="IMachine::discardSettings"/> is called after
8462 indirectly attaching some hard disks to the machine but before a call to
8463 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8464 all differencing hard disks implicitly created by
8465 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8466 Such implicitly created hard disks will also be immediately deleted when
8467 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8468 call if it is made before <link to="IMachine::saveSettings"/>. This
8469 implicit deletion is safe because newly created differencing hard
8470 disks do not contain any user data.
8471
8472 However, keep in mind that detaching differencing hard disks that were
8473 implicitly created by <link to="IMachine::attachHardDisk"/>
8474 before the last <link to="IMachine::saveSettings"/> call will
8475 <b>not</b> implicitly delete them as they may already contain some data
8476 (for example, as a result of virtual machine execution). If these hard
8477 disks are no more necessary, the caller can always delete them explicitly
8478 using <link to="#deleteStorage"/> after they are actually de-associated
8479 from this machine by the <link to="IMachine::saveSettings"/> call.
8480
8481 <h3>Smart Attachment</h3>
8482
8483 When normal base or immutable hard disks are indirectly attached to a
8484 virtual machine then some additional steps are performed to make sure the
8485 virtual machine will have the most recent "view" of the hard disk being
8486 attached. These steps include walking through the machine's snapshots
8487 starting from the current one and going through ancestors up to the first
8488 snapshot. Hard disks attached to the virtual machine in all
8489 of the encountered snapshots are checked whether they are descendants of
8490 the given normal base or immutable hard disk. The first found child (which
8491 is the differencing hard disk) will be used instead of the normal base or
8492 immutable hard disk as a parent for creating a new differencing hard disk
8493 that will be actually attached to the machine. And only if no descendants
8494 are found or if the virtual machine does not have any snapshots then the
8495 normal base or immutable hard disk will be used itself as a parent for
8496 this differencing hard disk.
8497
8498 It is easier to explain what smart attachment does using the
8499 following example:
8500 <pre>
8501BEFORE attaching B.vdi: AFTER attaching B.vdi:
8502
8503Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8504 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8505 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8506 Snapshot 4 (none) Snapshot 4 (none)
8507 CurState (none) CurState (D3->D2.vdi)
8508
8509 NOT
8510 ...
8511 CurState (D3->B.vdi)
8512 </pre>
8513 The first column is the virtual machine configuration before the base hard
8514 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8515 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8516 mean that the hard disk that is actually attached to the machine is a
8517 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8518 another hard disk, <tt>B.vdi</tt>.
8519
8520 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8521 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8522 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8523 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8524 it cannot be attached directly and needs an indirect attachment (i.e.
8525 implicit creation of a new differencing hard disk). Due to the smart
8526 attachment procedure, the new differencing hard disk
8527 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8528 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8529 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8530 machine.
8531
8532 Note that if there is more than one descendant hard disk of the given base
8533 hard disk found in a snapshot, and there is an exact device, channel and
8534 bus match, then this exact match will be used. Otherwise, the youngest
8535 descendant will be picked up.
8536
8537 There is one more important aspect of the smart attachment procedure which
8538 is not related to snapshots at all. Before walking through the snapshots
8539 as described above, the backup copy of the current list of hard disk
8540 attachment is searched for descendants. This backup copy is created when
8541 the hard disk configuration is changed for the first time after the last
8542 <link to="IMachine::saveSettings"/> call and used by
8543 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8544 changes. When such a descendant is found in this backup copy, it will be
8545 simply re-attached back, without creating a new differencing hard disk for
8546 it. This optimization is necessary to make it possible to re-attach the
8547 base or immutable hard disk to a different bus, channel or device slot
8548 without losing the contents of the differencing hard disk actually
8549 attached to the machine in place of it.
8550 </desc>
8551
8552 <attribute name="format" type="wstring" readonly="yes">
8553 <desc>
8554 Storage format of this hard disk.
8555
8556 The value of this attribute is a string that specifies a backend used to
8557 store hard disk data. The storage format is defined when you create a
8558 new hard disk or automatically detected when you open an existing hard
8559 disk medium, and cannot be changed later.
8560
8561 The list of all storage formats supported by this VirtualBox
8562 installation can be obtained using
8563 <link to="ISystemProperties::hardDiskFormats"/>.
8564 </desc>
8565 </attribute>
8566
8567 <attribute name="type" type="HardDiskType">
8568 <desc>
8569 Type (role) of this hard disk.
8570
8571 The following constraints apply when changing the value of this
8572 attribute:
8573 <ul>
8574 <li>If a hard disk is attached to a virtual machine (either in the
8575 current state or in one of the snapshots), its type cannot be
8576 changed.
8577 </li>
8578 <li>As long as the hard disk has children, its type cannot be set
8579 to <link to="HardDiskType_Writethrough"/>.
8580 </li>
8581 <li>The type of all differencing hard disks is
8582 <link to="HardDiskType_Normal"/> and cannot be changed.
8583 </li>
8584 </ul>
8585
8586 The type of a newly created or opened hard disk is set to
8587 <link to="HardDiskType_Normal"/>.
8588 </desc>
8589 </attribute>
8590
8591 <attribute name="parent" type="IHardDisk" readonly="yes">
8592 <desc>
8593 Parent of this hard disk (a hard disk this hard disk is directly based
8594 on).
8595
8596 Only differencing hard disks have parents. For base (non-differencing)
8597 hard disks, <tt>null</tt> is returned.
8598 </desc>
8599 </attribute>
8600
8601 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8602 <desc>
8603 Children of this hard disk (all differencing hard disks directly based
8604 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8605 does not have any children.
8606 </desc>
8607 </attribute>
8608
8609 <attribute name="root" type="IHardDisk" readonly="yes">
8610 <desc>
8611 Root hard disk of this hard disk.
8612
8613 If this is a differencing hard disk, its root hard disk is the base hard
8614 disk the given hard disk branch starts from. For all other types of hard
8615 disks, this property returns the hard disk object itself (i.e. the same
8616 object this property is read on).
8617 </desc>
8618 </attribute>
8619
8620 <attribute name="readOnly" type="boolean" readonly="yes">
8621 <desc>
8622 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8623 otherwise.
8624
8625 A hard disk is considered to be read-only when its contents cannot be
8626 modified without breaking the integrity of other parties that depend on
8627 this hard disk such as its child hard disks or snapshots of virtual
8628 machines where this hard disk is attached to these machines. If there
8629 are no children and no such snapshots then there is no dependency and
8630 the hard disk is not read-only.
8631
8632 The value of this attribute can be used to determine the kind of the
8633 attachment that will take place when attaching this hard disk to a
8634 virtual machine. If the value is <tt>false</tt> then the hard disk will
8635 be attached directly. If the value is <tt>true</tt> then the hard disk
8636 will be attached indirectly by creating a new differencing child hard
8637 disk for that. See the interface description for more information.
8638
8639 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8640 disks are always read-only while all
8641 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8642 always not.
8643
8644 <note>
8645 The read-only condition represented by this attribute is related to
8646 the hard disk type and usage, not to the current
8647 <link to="IMedium::state">media state</link> and not to the read-only
8648 state of the storage unit.
8649 </note>
8650 </desc>
8651 </attribute>
8652
8653 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8654 <desc>
8655 Logical size of this hard disk (in megabytes), as reported to the
8656 guest OS running inside the virtual machine this disk is
8657 attached to. The logical size is defined when the hard disk is created
8658 and cannot be changed later.
8659
8660 <note>
8661 Reading this property on a differencing hard disk will return the size
8662 of its <link to="#root"/> hard disk.
8663 </note>
8664 <note>
8665 For hard disks whose state is <link to="#state"/> is <link
8666 to="MediaState_Inaccessible"/>, the value of this property is the
8667 last known logical size. For <link to="MediaState_NotCreated"/> hard
8668 disks, the returned value is zero.
8669 </note>
8670 </desc>
8671 </attribute>
8672
8673 <!-- storage methods -->
8674
8675 <method name="getProperty">
8676 <desc>
8677 Returns the value of the custom hard disk property with the given name.
8678
8679 The list of all properties supported by the given hard disk format can
8680 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8681
8682 Note that if this method returns a <tt>null</tt> @a value, the requested
8683 property is supported but currently not assigned any value.
8684
8685 <result name="VBOX_E_OBJECT_NOT_FOUND">
8686 Requested property does not exist (not supported by the format).
8687 </result>
8688 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8689 </desc>
8690 <param name="name" type="wstring" dir="in">
8691 <desc>Name of the property to get.</desc>
8692 </param>
8693 <param name="value" type="wstring" dir="return">
8694 <desc>Current property value.</desc>
8695 </param>
8696 </method>
8697
8698 <method name="setProperty">
8699 <desc>
8700 Sets the value of the custom hard disk property with the given name.
8701
8702 The list of all properties supported by the given hard disk format can
8703 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8704
8705 Note that setting the property value to <tt>null</tt> is equivalent to
8706 deleting the existing value. A default value (if it is defined for this
8707 property) will be used by the format backend in this case.
8708
8709 <result name="VBOX_E_OBJECT_NOT_FOUND">
8710 Requested property does not exist (not supported by the format).
8711 </result>
8712 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8713 </desc>
8714 <param name="name" type="wstring" dir="in">
8715 <desc>Name of the property to set.</desc>
8716 </param>
8717 <param name="value" type="wstring" dir="in">
8718 <desc>Property value to set.</desc>
8719 </param>
8720 </method>
8721
8722 <method name="getProperties">
8723 <desc>
8724 Returns values for a group of properties in one call.
8725
8726 The names of the properties to get are specified using the @a names
8727 argument which is a list of comma-separated property names or
8728 <tt>null</tt> if all properties are to be returned. Note that currently
8729 the value of this argument is ignored and the method always returns all
8730 existing properties.
8731
8732 The list of all properties supported by the given hard disk format can
8733 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8734
8735 The method returns two arrays, the array of property names corresponding
8736 to the @a names argument and the current values of these properties.
8737 Both arrays have the same number of elements with each elemend at the
8738 given index in the first array corresponds to an element at the same
8739 index in the second array.
8740
8741 Note that for properties that do not have assigned values,
8742 <tt>null</tt> is returned at the appropriate index in the
8743 @a returnValues array.
8744
8745 </desc>
8746 <param name="names" type="wstring" dir="in">
8747 <desc>
8748 Names of properties to get.
8749 </desc>
8750 </param>
8751 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8752 <desc>Names of returned properties.</desc>
8753 </param>
8754 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8755 <desc>Values of returned properties.</desc>
8756 </param>
8757 </method>
8758
8759 <method name="setProperties">
8760 <desc>
8761 Sets values for a group of properties in one call.
8762
8763 The names of the properties to set are passed in the @a names
8764 array along with the new values for them in the @a values array. Both
8765 arrays have the same number of elements with each elemend at the given
8766 index in the first array corresponding to an element at the same index
8767 in the second array.
8768
8769 If there is at least one property name in @a names that is not valid,
8770 the method will fail before changing the values of any other properties
8771 from the @a names array.
8772
8773 Using this method over <link to="#setProperty"/> is preferred if you
8774 need to set several properties at once since it will result into less
8775 IPC calls.
8776
8777 The list of all properties supported by the given hard disk format can
8778 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8779
8780 Note that setting the property value to <tt>null</tt> is equivalent to
8781 deleting the existing value. A default value (if it is defined for this
8782 property) will be used by the format backend in this case.
8783 </desc>
8784 <param name="names" type="wstring" safearray="yes" dir="in">
8785 <desc>Names of properties to set.</desc>
8786 </param>
8787 <param name="values" type="wstring" safearray="yes" dir="in">
8788 <desc>Values of properties to set.</desc>
8789 </param>
8790 </method>
8791
8792 <!-- storage methods -->
8793
8794 <method name="createDynamicStorage">
8795 <desc>
8796 Starts creating a dynamically expanding hard disk storage unit in the
8797 background. The previous storage unit created for this object, if
8798 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8799 the operation will fail.
8800
8801 Before the operation starts, the hard disk is placed in
8802 <link to="MediaState_Creating"/> state. If the create operation
8803 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8804 state.
8805
8806 After the returned progress object reports that the operation has
8807 successfully completed, the media state will be set to <link
8808 to="MediaState_Created"/>, the hard disk will be remembered by this
8809 VirtualBox installation and may be attached to virtual machines.
8810
8811 <result name="VBOX_E_NOT_SUPPORTED">
8812 Dynamic storage creation operation is not supported. See <link
8813 to="IHardDiskFormat::capabilities"/>.
8814 </result>
8815 </desc>
8816 <param name="logicalSize" type="unsigned long long" dir="in">
8817 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8818 </param>
8819 <param name="progress" type="IProgress" dir="return">
8820 <desc>Progress object to track the operation completion.</desc>
8821 </param>
8822 </method>
8823
8824 <method name="createFixedStorage">
8825 <desc>
8826 Starts creating a fixed-size hard disk storage unit in the background.
8827 The previous storage unit created for this object, if
8828 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8829 the operation will fail.
8830
8831 Before the operation starts, the hard disk is placed to
8832 <link to="MediaState_Creating"/> state. If the create operation
8833 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8834 state.
8835
8836 After the returned progress object reports that the operation is
8837 successfully complete, the media state will be set to <link
8838 to="MediaState_Created"/>, the hard disk will be remembered by this
8839 VirtualBox installation and may be attached to virtual machines.
8840
8841 <result name="VBOX_E_NOT_SUPPORTED">
8842 Fixed storage creation operation is not supported. See
8843 <link to="IHardDiskFormat::capabilities"/>.
8844 </result>
8845 </desc>
8846 <param name="logicalSize" type="unsigned long long" dir="in">
8847 <desc>Logical size of the hard disk in megabytes.</desc>
8848 </param>
8849 <param name="progress" type="IProgress" dir="return">
8850 <desc>Progress object to track the operation completion.</desc>
8851 </param>
8852 </method>
8853
8854 <method name="deleteStorage">
8855 <desc>
8856 Starts deleting the storage unit of this hard disk.
8857
8858 The hard disk must not be attached to any known virtual machine and must
8859 not have any known child hard disks, otherwise the operation will fail.
8860 It will also fail if there is no storage unit to delete or if deletion
8861 is already in progress, or if the hard disk is being in use (locked for
8862 read or for write) or inaccessible. Therefore, the only valid state for
8863 this operation to succeed is <link to="MediaState_Created"/>.
8864
8865 Before the operation starts, the hard disk is placed to
8866 <link to="MediaState_Deleting"/> state and gets removed from the list
8867 of remembered hard disks (media registry). If the delete operation
8868 fails, the media will be remembered again and placed back to
8869 <link to="MediaState_Created"/> state.
8870
8871 After the returned progress object reports that the operation is
8872 complete, the media state will be set to
8873 <link to="MediaState_NotCreated"/> and you will be able to use one of
8874 the storage creation methods to create it again.
8875
8876 <see>#close()</see>
8877
8878 <result name="VBOX_E_OBJECT_IN_USE">
8879 Hard disk is attached to a virtual machine.
8880 </result>
8881 <result name="VBOX_E_NOT_SUPPORTED">
8882 Storage deletion is not allowed because neither of storage creation
8883 operations are supported. See
8884 <link to="IHardDiskFormat::capabilities"/>.
8885 </result>
8886
8887 <note>
8888 If the deletion operation fails, it is not guaranteed that the storage
8889 unit still exists. You may check the <link to="IMedium::state"/> value
8890 to answer this question.
8891 </note>
8892 </desc>
8893 <param name="progress" type="IProgress" dir="return">
8894 <desc>Progress object to track the operation completion.</desc>
8895 </param>
8896 </method>
8897
8898 <!-- diff methods -->
8899
8900 <method name="createDiffStorage">
8901 <desc>
8902 Starts creating an empty differencing storage unit based on this hard
8903 disk in the format and at the location defined by the @a target
8904 argument.
8905
8906 The target hard disk must be in <link to="MediaState_NotCreated"/>
8907 state (i.e. must not have an existing storage unit). Upon successful
8908 completion, this operation will set the type of the target hard disk to
8909 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8910 represent the differencing hard disk data in the given format (according
8911 to the storage format of the target object).
8912
8913 After the returned progress object reports that the operation is
8914 successfully complete, the target hard disk gets remembered by this
8915 VirtualBox installation and may be attached to virtual machines.
8916
8917 <note>
8918 The hard disk will be set to <link to="MediaState_LockedRead"/>
8919 state for the duration of this operation.
8920 </note>
8921 <result name="VBOX_E_OBJECT_IN_USE">
8922 Hard disk not in NotCreated state.
8923 </result>
8924 </desc>
8925 <param name="target" type="IHardDisk" dir="in">
8926 <desc>Target hard disk.</desc>
8927 </param>
8928 <param name="progress" type="IProgress" dir="return">
8929 <desc>Progress object to track the operation completion.</desc>
8930 </param>
8931 </method>
8932
8933 <method name="mergeTo">
8934 <desc>
8935 Starts merging the contents of this hard disk and all intermediate
8936 differencing hard disks in the chain to the given target hard disk.
8937
8938 The target hard disk must be either a descendant of this hard disk or
8939 its ancestor (otherwise this method will immediately return a failure).
8940 It follows that there are two logical directions of the merge operation:
8941 from ancestor to descendant (<i>forward merge</i>) and from descendant to
8942 ancestor (<i>backward merge</i>). Let us consider the following hard disk
8943 chain:
8944
8945 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
8946
8947 Here, calling this method on the <tt>Base</tt> hard disk object with
8948 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
8949 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
8950 merge. Note that in both cases the contents of the resulting hard disk
8951 will be the same, the only difference is the hard disk object that takes
8952 the result of the merge operation. In case of the forward merge in the
8953 above example, the result will be written to <tt>Diff_2</tt>; in case of
8954 the backward merge, the result will be written to <tt>Base</tt>. In
8955 other words, the result of the operation is always stored in the target
8956 hard disk.
8957
8958 Upon successful operation completion, the storage units of all hard
8959 disks in the chain between this (source) hard disk and the target hard
8960 disk, including the source hard disk itself, will be automatically
8961 deleted and the relevant hard disk objects (including this hard disk)
8962 will become uninitialized. This means that any attempt to call any of
8963 their methods or attributes will fail with the
8964 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
8965 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
8966 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
8967 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
8968 disk itself since it will no longer be based on any other hard disk.
8969
8970 Considering the above, all of the following conditions must be met in
8971 order for the merge operation to succeed:
8972 <ul>
8973 <li>
8974 Neither this (source) hard disk nor any intermediate
8975 differencing hard disk in the chain between it and the target
8976 hard disk is attached to any virtual machine.
8977 </li>
8978 <li>
8979 Neither the source hard disk nor the target hard disk is an
8980 <link to="HardDiskType_Immutable"/> hard disk.
8981 </li>
8982 <li>
8983 The part of the hard disk tree from the source hard disk to the
8984 target hard disk is a linear chain, i.e. all hard disks in this
8985 chain have exactly one child which is the next hard disk in this
8986 chain. The only exception from this rule is the target hard disk in
8987 the forward merge operation; it is allowed to have any number of
8988 child hard disks because the merge operation will hot change its
8989 logical contents (as it is seen by the guest OS or by children).
8990 </li>
8991 <li>
8992 None of the involved hard disks are in
8993 <link to="MediaState_LockedRead"/> or
8994 <link to="MediaState_LockedWrite"/> state.
8995 </li>
8996 </ul>
8997
8998 <note>
8999 This (source) hard disk and all intermediates will be placed to <link
9000 to="MediaState_Deleting"/> state and the target hard disk will be
9001 placed to <link to="MediaState_LockedWrite"/> state and for the
9002 duration of this operation.
9003 </note>
9004 </desc>
9005 <param name="targetId" type="uuid" dir="in">
9006 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9007 </param>
9008 <param name="progress" type="IProgress" dir="return">
9009 <desc>Progress object to track the operation completion.</desc>
9010 </param>
9011 </method>
9012
9013 <!-- clone methods -->
9014
9015 <method name="cloneTo">
9016 <desc>
9017 Starts creating a clone of this hard disk in the format and at the
9018 location defined by the @a target argument.
9019
9020 The target hard disk must be in <link to="MediaState_NotCreated"/>
9021 state (i.e. must not have an existing storage unit). Upon successful
9022 completion, the cloned hard disk will contain exactly the same sector
9023 data as the hard disk being cloned, except that a new UUID for the clone
9024 will be randomly generated.
9025
9026 After the returned progress object reports that the operation is
9027 successfully complete, the target hard disk gets remembered by this
9028 VirtualBox installation and may be attached to virtual machines.
9029
9030 <note>
9031 If the cloned hard disk is a differencing hard disk, it will inherit
9032 parent dependency of the original hard disk.
9033 </note>
9034 <note>
9035 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9036 state for the duration of this operation.
9037 </note>
9038 </desc>
9039 <param name="target" type="IHardDisk" dir="in">
9040 <desc>Target hard disk.</desc>
9041 </param>
9042 <param name="progress" type="IProgress" dir="return">
9043 <desc>Progress object to track the operation completion.</desc>
9044 </param>
9045 </method>
9046
9047 <method name="flattenTo">
9048 <desc>
9049 Starts creating a deep (independent) clone of this hard disk in the
9050 format and at the location defined by the @a target argument.
9051
9052 This operation is similar to <link to="#cloneTo"/> except that when
9053 applied to a differencing hard disk, it will also copy missing hard disk
9054 data from all parent hard disks it is linked to. This will make the
9055 created clone an independent base hard disk that contains all hard disk
9056 data and does not need any other hard disks to operate.
9057
9058 After the returned progress object reports that the operation is
9059 successfully complete, the target hard disk gets remembered by this
9060 VirtualBox installation and may be attached to virtual machines.
9061
9062 <note>
9063 For base hard disks, this operation is identical to
9064 <link to="#cloneTo"/>.
9065 </note>
9066 <note>
9067 This hard disk and all its parent hard disks will be placed to <link
9068 to="MediaState_LockedRead"/> state for the duration of this
9069 operation.
9070 </note>
9071 </desc>
9072 <param name="target" type="IHardDisk" dir="in">
9073 <desc>Target hard disk.</desc>
9074 </param>
9075 <param name="progress" type="IProgress" dir="return">
9076 <desc>Progress object to track the operation completion.</desc>
9077 </param>
9078 </method>
9079
9080 <method name="compact">
9081 <desc>
9082 Starts compacting of this hard disk. This means that the disk is
9083 transformed into a possibly more compact storage representation.
9084 This potentially creates temporary images, which can require a
9085 substantial amount of additional disk space.
9086
9087 After the returned progress object reports that the operation is
9088 successfully complete, the media state will be set back to the
9089 current state.
9090
9091 <note>
9092 This hard disk and all its parent hard disks will be placed to <link
9093 to="MediaState_LockedRead"/> state for the duration of this
9094 operation.
9095 </note>
9096 </desc>
9097 <param name="progress" type="IProgress" dir="return">
9098 <desc>Progress object to track the operation completion.</desc>
9099 </param>
9100 </method>
9101
9102 </interface>
9103
9104
9105 <!--
9106 // IHardDiskFormat
9107 /////////////////////////////////////////////////////////////////////////
9108 -->
9109
9110 <enum
9111 name="DataType"
9112 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9113 >
9114 <const name="Int32" value="0"/>
9115 <const name="Int8" value="1"/>
9116 <const name="String" value="2"/>
9117 </enum>
9118
9119 <enum
9120 name="DataFlags"
9121 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9122 >
9123 <const name="None" value="0x00"/>
9124 <const name="Mandatory" value="0x01"/>
9125 <const name="Expert" value="0x02"/>
9126 <const name="Array" value="0x04"/>
9127 <const name="FlagMask" value="0x07"/>
9128 </enum>
9129
9130 <enum
9131 name="HardDiskFormatCapabilities"
9132 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9133 >
9134 <desc>
9135 Hard disk format capability flags.
9136 </desc>
9137
9138 <const name="Uuid" value="0x01">
9139 <desc>
9140 Supports UUIDs as expected by VirtualBox code.
9141 </desc>
9142 </const>
9143
9144 <const name="CreateFixed" value="0x02">
9145 <desc>
9146 Supports creating fixed size images, allocating all space instantly.
9147 </desc>
9148 </const>
9149
9150 <const name="CreateDynamic" value="0x04">
9151 <desc>
9152 Supports creating dynamically growing images, allocating space on
9153 demand.
9154 </desc>
9155 </const>
9156
9157 <const name="CreateSplit2G" value="0x08">
9158 <desc>
9159 Supports creating images split in chunks of a bit less than 2 GBytes.
9160 </desc>
9161 </const>
9162
9163 <const name="Differencing" value="0x10">
9164 <desc>
9165 Supports being used as a format for differencing hard disks (see <link
9166 to="IHardDisk::createDiffStorage"/>).
9167 </desc>
9168 </const>
9169
9170 <const name="Asynchronous" value="0x20">
9171 <desc>
9172 Supports asynchronous I/O operations for at least some configurations.
9173 </desc>
9174 </const>
9175
9176 <const name="File" value="0x40">
9177 <desc>
9178 The format backend operates on files (the <link to="IMedium::location"/>
9179 attribute of the hard disk specifies a file used to store hard disk
9180 data; for a list of supported file extensions see
9181 <link to="IHardDiskFormat::fileExtensions"/>).
9182 </desc>
9183 </const>
9184
9185 <const name="Properties" value="0x80">
9186 <desc>
9187 The format backend uses the property interface to configure the storage
9188 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9189 method is used to get access to properties supported by the given hard
9190 disk format).
9191 </desc>
9192 </const>
9193
9194 <const name="CapabilityMask" value="0xFF"/>
9195 </enum>
9196
9197 <interface
9198 name="IHardDiskFormat" extends="$unknown"
9199 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9200 wsmap="managed"
9201 >
9202 <desc>
9203 The IHardDiskFormat interface represents a virtual hard disk format.
9204
9205 Each hard disk format has an associated backend which is used to handle
9206 hard disks stored in this format. This interface provides information
9207 about the properties of the associated backend.
9208
9209 Each hard disk format is identified by a string represented by the
9210 <link to="#id"/> attribute. This string is used in calls like
9211 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9212 format.
9213
9214 The list of all supported hard disk formats can be obtained using
9215 <link to="ISystemProperties::hardDiskFormats"/>.
9216
9217 <see>IHardDisk</see>
9218 </desc>
9219
9220 <attribute name="id" type="wstring" readonly="yes">
9221 <desc>
9222 Identifier of this format.
9223
9224 The format identifier is a non-null non-empty ASCII string. Note that
9225 this string is case-insensitive. This means that, for example, all of
9226 the following strings:
9227 <pre>
9228 "VDI"
9229 "vdi"
9230 "VdI"</pre>
9231 refer to the same hard disk format.
9232
9233 This string is used in methods of other interfaces where it is necessary
9234 to specify a hard disk format, such as
9235 <link to="IVirtualBox::createHardDisk"/>.
9236 </desc>
9237 </attribute>
9238
9239 <attribute name="name" type="wstring" readonly="yes">
9240 <desc>
9241 Human readable description of this format.
9242
9243 Mainly for use in file open dialogs.
9244 </desc>
9245 </attribute>
9246
9247 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9248 <desc>
9249 Array of strings containing the supported file extensions.
9250
9251 The first extension in the array is the extension preferred by the
9252 backend. It is recommended to use this extension when specifying a
9253 location of the storage unit for a new hard disk.
9254
9255 Note that some backends do not work on files, so this array may be
9256 empty.
9257
9258 <see>IHardDiskFormat::capabilities</see>
9259 </desc>
9260 </attribute>
9261
9262 <attribute name="capabilities" type="unsigned long" readonly="yes">
9263 <desc>
9264 Capabilities of the format as a set of bit flags.
9265
9266 For the meaning of individual capability flags see
9267 <link to="HardDiskFormatCapabilities"/>.
9268 </desc>
9269 </attribute>
9270
9271 <method name="describeProperties">
9272 <desc>
9273 Returns several arrays describing the properties supported by this
9274 format.
9275
9276 An element with the given index in each array describes one
9277 property. Thus, the number of elements in each returned array is the
9278 same and corresponds to the number of supported properties.
9279
9280 The returned arrays are filled in only if the
9281 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9282 All arguments must be non-NULL.
9283
9284 <see>DataType</see>
9285 <see>DataFlags</see>
9286 </desc>
9287
9288 <param name="names" type="wstring" safearray="yes" dir="out">
9289 <desc>Array of property names.</desc>
9290 </param>
9291 <param name="description" type="wstring" safearray="yes" dir="out">
9292 <desc>Array of property descriptions.</desc>
9293 </param>
9294 <param name="types" type="DataType" safearray="yes" dir="out">
9295 <desc>Array of property types.</desc>
9296 </param>
9297 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9298 <desc>Array of property flags.</desc>
9299 </param>
9300 <param name="defaults" type="wstring" safearray="yes" dir="out">
9301 <desc>Array of default property values.</desc>
9302 </param>
9303 </method>
9304
9305 </interface>
9306
9307
9308 <!--
9309 // IFloppyImage
9310 /////////////////////////////////////////////////////////////////////////
9311 -->
9312
9313 <interface
9314 name="IFloppyImage" extends="IMedium"
9315 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9316 wsmap="managed"
9317 >
9318 <desc>
9319 The IFloppyImage interface represents a medium containing the image
9320 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9321 </desc>
9322
9323 </interface>
9324
9325
9326 <!--
9327 // IDVDImage
9328 /////////////////////////////////////////////////////////////////////////
9329 -->
9330
9331 <interface
9332 name="IDVDImage" extends="IMedium"
9333 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9334 wsmap="managed"
9335 >
9336 <desc>
9337 The IDVDImage interface represents a medium containing the image
9338 of a CD or DVD disk in the ISO format.
9339
9340 This is a subclass of <link to="IMedium" />; see remarks there.
9341 </desc>
9342
9343 </interface>
9344
9345
9346 <!--
9347 // IDVDDrive
9348 /////////////////////////////////////////////////////////////////////////
9349 -->
9350
9351 <interface
9352 name="IDVDDrive" extends="$unknown"
9353 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9354 wsmap="managed"
9355 >
9356 <desc>
9357 The IDVDDrive interface represents the virtual CD/DVD drive of the
9358 virtual machine. An object of this type is returned by
9359 <link to="IMachine::DVDDrive"/>.
9360 </desc>
9361
9362 <attribute name="state" type="DriveState" readonly="yes">
9363 <desc>Current drive state.</desc>
9364 </attribute>
9365
9366 <attribute name="passthrough" type="boolean">
9367 <desc>
9368 When a host drive is mounted and passthrough is enabled
9369 the guest OS will be able to directly send SCSI commands to
9370 the host drive. This enables the guest OS to use CD/DVD writers
9371 but is potentially dangerous.
9372 </desc>
9373 </attribute>
9374
9375 <method name="mountImage">
9376 <desc>Mounts a CD/DVD image with the specified UUID.
9377
9378 <result name="VBOX_E_FILE_ERROR">
9379 Invalid image file location.
9380 </result>
9381 <result name="VBOX_E_OBJECT_NOT_FOUND">
9382 Could not find a CD/DVD image matching @a imageID.
9383 </result>
9384 <result name="VBOX_E_INVALID_OBJECT_STATE">
9385 Invalid media state.
9386 </result>
9387
9388 </desc>
9389 <param name="imageId" type="uuid" dir="in"/>
9390 </method>
9391
9392 <method name="captureHostDrive">
9393 <desc>Captures the specified host CD/DVD drive.</desc>
9394 <param name="drive" type="IHostDVDDrive" dir="in"/>
9395 </method>
9396
9397 <method name="unmount">
9398 <desc>Unmounts the currently mounted image or host drive.</desc>
9399 </method>
9400
9401 <method name="getImage">
9402 <desc>Returns the currently mounted CD/DVD image.</desc>
9403 <param name="image" type="IDVDImage" dir="return"/>
9404 </method>
9405
9406 <method name="getHostDrive">
9407 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9408 <param name="drive" type="IHostDVDDrive" dir="return"/>
9409 </method>
9410
9411 </interface>
9412
9413
9414 <!--
9415 // IFloppyDrive
9416 /////////////////////////////////////////////////////////////////////////
9417 -->
9418
9419 <interface
9420 name="IFloppyDrive" extends="$unknown"
9421 uuid="159412cd-bab8-452e-8097-218a020825a6"
9422 wsmap="managed"
9423 >
9424 <desc>
9425 The IFloppyDrive interface represents the virtual floppy drive of the
9426 virtual machine. An object of this type is returned by
9427 <link to="IMachine::floppyDrive" />.
9428 </desc>
9429
9430 <attribute name="enabled" type="boolean">
9431 <desc>
9432 Flag whether the floppy drive is enabled. If it is disabled,
9433 the floppy drive will not be reported to the guest OS.
9434 </desc>
9435 </attribute>
9436
9437 <attribute name="state" type="DriveState" readonly="yes">
9438 <desc>Current drive state.</desc>
9439 </attribute>
9440
9441 <method name="mountImage">
9442 <desc>Mounts a floppy image with the specified UUID.
9443
9444 <result name="VBOX_E_FILE_ERROR">
9445 Invalid image file location.
9446 </result>
9447 <result name="VBOX_E_OBJECT_NOT_FOUND">
9448 Could not find a floppy image matching @a imageID.
9449 </result>
9450 <result name="VBOX_E_INVALID_OBJECT_STATE">
9451 Invalid media state.
9452 </result>
9453
9454 </desc>
9455 <param name="imageId" type="uuid" dir="in"/>
9456 </method>
9457
9458 <method name="captureHostDrive">
9459 <desc>Captures the specified host floppy drive.</desc>
9460 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9461 </method>
9462
9463 <method name="unmount">
9464 <desc>Unmounts the currently mounted image or host drive.</desc>
9465 </method>
9466
9467 <method name="getImage">
9468 <desc>Returns the currently mounted floppy image.</desc>
9469 <param name="image" type="IFloppyImage" dir="return"/>
9470 </method>
9471
9472 <method name="getHostDrive">
9473 <desc>Returns the currently mounted host floppy drive.</desc>
9474 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9475 </method>
9476
9477 </interface>
9478
9479
9480 <!--
9481 // IKeyboard
9482 /////////////////////////////////////////////////////////////////////////
9483 -->
9484
9485 <interface
9486 name="IKeyboard" extends="$unknown"
9487 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9488 wsmap="managed"
9489 >
9490 <desc>
9491 The IKeyboard interface represents the virtual machine's keyboard. Used
9492 in <link to="IConsole::keyboard"/>.
9493
9494 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9495 to the virtual machine.
9496
9497 </desc>
9498 <method name="putScancode">
9499 <desc>Sends a scancode to the keyboard.
9500
9501 <result name="VBOX_E_IPRT_ERROR">
9502 Could not send scan code to virtual keyboard.
9503 </result>
9504
9505 </desc>
9506 <param name="scancode" type="long" dir="in"/>
9507 </method>
9508
9509 <method name="putScancodes">
9510 <desc>Sends an array of scancodes to the keyboard.
9511
9512 <result name="VBOX_E_IPRT_ERROR">
9513 Could not send all scan codes to virtual keyboard.
9514 </result>
9515
9516 </desc>
9517 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9518 <param name="codesStored" type="unsigned long" dir="return"/>
9519 </method>
9520
9521 <method name="putCAD">
9522 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9523 function is nothing special, it is just a convenience function
9524 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9525
9526 <result name="VBOX_E_IPRT_ERROR">
9527 Could not send all scan codes to virtual keyboard.
9528 </result>
9529
9530 </desc>
9531 </method>
9532
9533 </interface>
9534
9535
9536 <!--
9537 // IMouse
9538 /////////////////////////////////////////////////////////////////////////
9539 -->
9540
9541 <enum
9542 name="MouseButtonState"
9543 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9544 >
9545 <desc>
9546 Mouse button state.
9547 </desc>
9548
9549 <const name="LeftButton" value="0x01"/>
9550 <const name="RightButton" value="0x02"/>
9551 <const name="MiddleButton" value="0x04"/>
9552 <const name="WheelUp" value="0x08"/>
9553 <const name="WheelDown" value="0x10"/>
9554 <const name="MouseStateMask" value="0x1F"/>
9555 </enum>
9556
9557 <interface
9558 name="IMouse" extends="$unknown"
9559 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9560 wsmap="managed"
9561 >
9562 <desc>
9563 The IMouse interface represents the virtual machine's mouse. Used in
9564 <link to="IConsole::mouse"/>.
9565
9566 Through this interface, the virtual machine's virtual mouse can be
9567 controlled.
9568 </desc>
9569
9570 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9571 <desc>
9572 Whether the guest OS supports absolute mouse pointer positioning
9573 or not.
9574 <note>
9575 VirtualBox Guest Tools need to be installed to the guest OS
9576 in order to enable absolute mouse positioning support.
9577 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9578 callback to be instantly informed about changes of this attribute
9579 during virtual machine execution.
9580 </note>
9581 <see><link to="#putMouseEventAbsolute"/></see>
9582 </desc>
9583 </attribute>
9584
9585 <method name="putMouseEvent">
9586 <desc>
9587 Initiates a mouse event using relative pointer movements
9588 along x and y axis.
9589
9590 <result name="E_ACCESSDENIED">
9591 Console not powered up.
9592 </result>
9593 <result name="VBOX_E_IPRT_ERROR">
9594 Could not send mouse event to virtual mouse.
9595 </result>
9596
9597 </desc>
9598
9599 <param name="dx" type="long" dir="in">
9600 <desc>
9601 Amount of pixels the mouse should move to the right.
9602 Negative values move the mouse to the left.
9603 </desc>
9604 </param>
9605 <param name="dy" type="long" dir="in">
9606 <desc>
9607 Amount of pixels the mouse should move downwards.
9608 Negative values move the mouse upwards.
9609 </desc>
9610 </param>
9611 <param name="dz" type="long" dir="in">
9612 <desc>
9613 Amount of mouse wheel moves.
9614 Positive values describe clockwise wheel rotations,
9615 negative values describe counterclockwise rotations.
9616 </desc>
9617 </param>
9618 <param name="buttonState" type="long" dir="in">
9619 <desc>
9620 The current state of mouse buttons. Every bit represents
9621 a mouse button as follows:
9622 <table>
9623 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9624 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9625 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9626 </table>
9627 A value of <tt>1</tt> means the corresponding button is pressed.
9628 otherwise it is released.
9629 </desc>
9630 </param>
9631 </method>
9632
9633 <method name="putMouseEventAbsolute">
9634 <desc>
9635 Positions the mouse pointer using absolute x and y coordinates.
9636 These coordinates are expressed in pixels and
9637 start from <tt>[1,1]</tt> which corresponds to the top left
9638 corner of the virtual display.
9639
9640 <result name="E_ACCESSDENIED">
9641 Console not powered up.
9642 </result>
9643 <result name="VBOX_E_IPRT_ERROR">
9644 Could not send mouse event to virtual mouse.
9645 </result>
9646
9647 <note>
9648 This method will have effect only if absolute mouse
9649 positioning is supported by the guest OS.
9650 </note>
9651
9652 <see><link to="#absoluteSupported"/></see>
9653 </desc>
9654
9655 <param name="x" type="long" dir="in">
9656 <desc>
9657 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9658 </desc>
9659 </param>
9660 <param name="y" type="long" dir="in">
9661 <desc>
9662 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9663 </desc>
9664 </param>
9665 <param name="dz" type="long" dir="in">
9666 <desc>
9667 Amount of mouse wheel moves.
9668 Positive values describe clockwise wheel rotations,
9669 negative values describe counterclockwise rotations.
9670 </desc>
9671 </param>
9672 <param name="buttonState" type="long" dir="in">
9673 <desc>
9674 The current state of mouse buttons. Every bit represents
9675 a mouse button as follows:
9676 <table>
9677 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9678 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9679 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9680 </table>
9681 A value of <tt>1</tt> means the corresponding button is pressed.
9682 otherwise it is released.
9683 </desc>
9684 </param>
9685 </method>
9686
9687 </interface>
9688
9689 <!--
9690 // IDisplay
9691 /////////////////////////////////////////////////////////////////////////
9692 -->
9693
9694 <enum
9695 name="FramebufferAccelerationOperation"
9696 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9697 >
9698 <desc>
9699 Frame buffer acceleration operation.
9700 </desc>
9701
9702 <const name="SolidFillAcceleration" value="1"/>
9703 <const name="ScreenCopyAcceleration" value="2"/>
9704 </enum>
9705
9706 <enum
9707 name="FramebufferPixelFormat"
9708 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9709 >
9710 <desc>
9711 Format of the video memory buffer. Constants represented by this enum can
9712 be used to test for particular values of <link
9713 to="IFramebuffer::pixelFormat"/>. See also <link
9714 to="IFramebuffer::requestResize"/>.
9715
9716 See also www.fourcc.org for more information about FOURCC pixel formats.
9717 </desc>
9718
9719 <const name="Opaque" value="0">
9720 <desc>
9721 Unknown buffer format (the user may not assume any particular format of
9722 the buffer).
9723 </desc>
9724 </const>
9725 <const name="FOURCC_RGB" value="0x32424752">
9726 <desc>
9727 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9728 bit layout).
9729 </desc>
9730 </const>
9731 </enum>
9732
9733 <interface
9734 name="IFramebuffer" extends="$unknown"
9735 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9736 wsmap="suppress"
9737 >
9738 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9739 <desc>Address of the start byte of the frame buffer.</desc>
9740 </attribute>
9741
9742 <attribute name="width" type="unsigned long" readonly="yes">
9743 <desc>Frame buffer width, in pixels.</desc>
9744 </attribute>
9745
9746 <attribute name="height" type="unsigned long" readonly="yes">
9747 <desc>Frame buffer height, in pixels.</desc>
9748 </attribute>
9749
9750 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9751 <desc>
9752 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9753 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9754 are: 8, 15, 16, 24 and 32.
9755 </desc>
9756 </attribute>
9757
9758 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9759 <desc>
9760 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9761 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9762 size of the scan line must be aligned to 32 bits.
9763 </desc>
9764 </attribute>
9765
9766 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9767 <desc>
9768 Frame buffer pixel format. It's either one of the values defined by <link
9769 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9770 <note>
9771 This attribute must never return <link
9772 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9773 <link to="#address"/> points to must be always known.
9774 </note>
9775 </desc>
9776 </attribute>
9777
9778 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9779 <desc>
9780 Defines whether this frame buffer uses the virtual video card's memory
9781 buffer (guest VRAM) directly or not. See <link
9782 to="IFramebuffer::requestResize"/> for more information.
9783 </desc>
9784 </attribute>
9785
9786 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9787 <desc>
9788 Hint from the frame buffer about how much of the standard
9789 screen height it wants to use for itself. This information is
9790 exposed to the guest through the VESA BIOS and VMMDev interface
9791 so that it can use it for determining its video mode table. It
9792 is not guaranteed that the guest respects the value.
9793 </desc>
9794 </attribute>
9795
9796 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9797 <desc>
9798 An alpha-blended overlay which is superposed over the frame buffer.
9799 The initial purpose is to allow the display of icons providing
9800 information about the VM state, including disk activity, in front
9801 ends which do not have other means of doing that. The overlay is
9802 designed to controlled exclusively by IDisplay. It has no locking
9803 of its own, and any changes made to it are not guaranteed to be
9804 visible until the affected portion of IFramebuffer is updated. The
9805 overlay can be created lazily the first time it is requested. This
9806 attribute can also return NULL to signal that the overlay is not
9807 implemented.
9808 </desc>
9809 </attribute>
9810
9811 <attribute name="winId" type="unsigned long long" readonly="yes">
9812 <desc>
9813 Platform-dependent identifier of the window where context of this
9814 frame buffer is drawn, or zero if there's no such window.
9815 </desc>
9816 </attribute>
9817
9818 <method name="lock">
9819 <desc>
9820 Locks the frame buffer.
9821 Gets called by the IDisplay object where this frame buffer is
9822 bound to.
9823 </desc>
9824 </method>
9825
9826 <method name="unlock">
9827 <desc>
9828 Unlocks the frame buffer.
9829 Gets called by the IDisplay object where this frame buffer is
9830 bound to.
9831 </desc>
9832 </method>
9833
9834 <method name="notifyUpdate">
9835 <desc>
9836 Informs about an update.
9837 Gets called by the display object where this buffer is
9838 registered.
9839 </desc>
9840 <param name="x" type="unsigned long" dir="in"/>
9841 <param name="y" type="unsigned long" dir="in"/>
9842 <param name="width" type="unsigned long" dir="in"/>
9843 <param name="height" type="unsigned long" dir="in"/>
9844 <param name="finished" type="boolean" dir="return"/>
9845 </method>
9846
9847 <method name="requestResize">
9848 <desc>
9849 Requests a size and pixel format change.
9850
9851 There are two modes of working with the video buffer of the virtual
9852 machine. The <i>indirect</i> mode implies that the IFramebuffer
9853 implementation allocates a memory buffer for the requested display mode
9854 and provides it to the virtual machine. In <i>direct</i> mode, the
9855 IFramebuffer implementation uses the memory buffer allocated and owned
9856 by the virtual machine. This buffer represents the video memory of the
9857 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9858 usually faster because the implementation gets a raw pointer to the
9859 guest VRAM buffer which it can directly use for visualizing the contents
9860 of the virtual display, as opposed to the indirect mode where the
9861 contents of guest VRAM are copied to the memory buffer provided by
9862 the implementation every time a display update occurs.
9863
9864 It is important to note that the direct mode is really fast only when
9865 the implementation uses the given guest VRAM buffer directly, for
9866 example, by blitting it to the window representing the virtual machine's
9867 display, which saves at least one copy operation comparing to the
9868 indirect mode. However, using the guest VRAM buffer directly is not
9869 always possible: the format and the color depth of this buffer may be
9870 not supported by the target window, or it may be unknown (opaque) as in
9871 case of text or non-linear multi-plane VGA video modes. In this case,
9872 the indirect mode (that is always available) should be used as a
9873 fallback: when the guest VRAM contents are copied to the
9874 implementation-provided memory buffer, color and format conversion is
9875 done automatically by the underlying code.
9876
9877 The @a pixelFormat parameter defines whether the direct mode is
9878 available or not. If @a pixelFormat is <link
9879 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9880 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
9881 @a bytesPerLine parameters must be ignored and the implementation must use
9882 the indirect mode (where it provides its own buffer in one of the
9883 supported formats). In all other cases, @a pixelFormat together with
9884 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
9885 buffer pointed to by the @a VRAM parameter and the implementation is
9886 free to choose which mode to use. To indicate that this frame buffer uses
9887 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9888 attribute must return <tt>true</tt> and <link to="#address"/> must
9889 return exactly the same address that is passed in the @a VRAM parameter
9890 of this method; otherwise it is assumed that the indirect strategy is
9891 chosen.
9892
9893 The @a width and @a height parameters represent the size of the
9894 requested display mode in both modes. In case of indirect mode, the
9895 provided memory buffer should be big enough to store data of the given
9896 display mode. In case of direct mode, it is guaranteed that the given
9897 @a VRAM buffer contains enough space to represent the display mode of the
9898 given size. Note that this frame buffer's <link to="#width"/> and <link
9899 to="#height"/> attributes must return exactly the same values as
9900 passed to this method after the resize is completed (see below).
9901
9902 The @a finished output parameter determines if the implementation has
9903 finished resizing the frame buffer or not. If, for some reason, the
9904 resize cannot be finished immediately during this call, @a finished
9905 must be set to @c false, and the implementation must call
9906 <link to="IDisplay::resizeCompleted"/> after it has returned from
9907 this method as soon as possible. If @a finished is @c false, the
9908 machine will not call any frame buffer methods until
9909 <link to="IDisplay::resizeCompleted"/> is called.
9910
9911 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
9912 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
9913 this frame buffer must return exactly the same values as specified in the
9914 parameters of this method, after the resize is completed. If the
9915 indirect mode is chosen, these attributes must return values describing
9916 the format of the implementation's own memory buffer <link
9917 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
9918 value must always correlate with <link to="#pixelFormat"/>. Note that
9919 the <link to="#pixelFormat"/> attribute must never return <link
9920 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
9921
9922 <note>
9923 This method is called by the IDisplay object under the
9924 <link to="#lock"/> provided by this IFramebuffer
9925 implementation. If this method returns @c false in @a finished, then
9926 this lock is not released until
9927 <link to="IDisplay::resizeCompleted"/> is called.
9928 </note>
9929 </desc>
9930 <param name="screenId" type="unsigned long" dir="in">
9931 <desc>
9932 Logical screen number. Must be used in the corresponding call to
9933 <link to="IDisplay::resizeCompleted"/> if this call is made.
9934 </desc>
9935 </param>
9936 <param name="pixelFormat" type="unsigned long" dir="in">
9937 <desc>
9938 Pixel format of the memory buffer pointed to by @a VRAM.
9939 See also <link to="FramebufferPixelFormat"/>.
9940 </desc>
9941 </param>
9942 <param name="VRAM" type="octet" mod="ptr" dir="in">
9943 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
9944 </param>
9945 <param name="bitsPerPixel" type="unsigned long" dir="in">
9946 <desc>Color depth, bits per pixel.</desc>
9947 </param>
9948 <param name="bytesPerLine" type="unsigned long" dir="in">
9949 <desc>Size of one scan line, in bytes.</desc>
9950 </param>
9951 <param name="width" type="unsigned long" dir="in">
9952 <desc>Width of the guest display, in pixels.</desc>
9953 </param>
9954 <param name="height" type="unsigned long" dir="in">
9955 <desc>Height of the guest display, in pixels.</desc>
9956 </param>
9957 <param name="finished" type="boolean" dir="return">
9958 <desc>
9959 Can the VM start using the new frame buffer immediately
9960 after this method returns or it should wait for
9961 <link to="IDisplay::resizeCompleted"/>.
9962 </desc>
9963 </param>
9964 </method>
9965
9966 <method name="operationSupported">
9967 <desc>
9968 Returns whether the given acceleration operation is supported
9969 by the IFramebuffer implementation. If not, the display object
9970 will not attempt to call the corresponding IFramebuffer entry
9971 point. Even if an operation is indicated as supported, the
9972 IFramebuffer implementation always has the option to return non
9973 supported from the corresponding acceleration method in which
9974 case the operation will be performed by the display engine. This
9975 allows for reduced IFramebuffer implementation complexity where
9976 only common cases are handled.
9977 </desc>
9978 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
9979 <param name="supported" type="boolean" dir="return"/>
9980 </method>
9981
9982 <method name="videoModeSupported">
9983 <desc>
9984 Returns whether the frame buffer implementation is willing to
9985 support a given video mode. In case it is not able to render
9986 the video mode (or for some reason not willing), it should
9987 return false. Usually this method is called when the guest
9988 asks the VMM device whether a given video mode is supported
9989 so the information returned is directly exposed to the guest.
9990 It is important that this method returns very quickly.
9991 </desc>
9992 <param name="width" type="unsigned long" dir="in"/>
9993 <param name="height" type="unsigned long" dir="in"/>
9994 <param name="bpp" type="unsigned long" dir="in"/>
9995 <param name="supported" type="boolean" dir="return"/>
9996 </method>
9997
9998 <method name="solidFill">
9999 <desc>
10000 Fills the specified rectangle on screen with a solid color.
10001 </desc>
10002 <param name="x" type="unsigned long" dir="in"/>
10003 <param name="y" type="unsigned long" dir="in"/>
10004 <param name="width" type="unsigned long" dir="in"/>
10005 <param name="height" type="unsigned long" dir="in"/>
10006 <param name="color" type="unsigned long" dir="in"/>
10007 <param name="handled" type="boolean" dir="return"/>
10008 </method>
10009
10010 <method name="copyScreenBits">
10011 <desc>
10012 Copies specified rectangle on the screen.
10013 </desc>
10014 <param name="xDst" type="unsigned long" dir="in"/>
10015 <param name="yDst" type="unsigned long" dir="in"/>
10016 <param name="xSrc" type="unsigned long" dir="in"/>
10017 <param name="ySrc" type="unsigned long" dir="in"/>
10018 <param name="width" type="unsigned long" dir="in"/>
10019 <param name="height" type="unsigned long" dir="in"/>
10020 <param name="handled" type="boolean" dir="return"/>
10021 </method>
10022
10023 <method name="getVisibleRegion">
10024 <desc>
10025 Returns the visible region of this frame buffer.
10026
10027 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10028 @a count parameter is ignored and the number of elements necessary to
10029 describe the current visible region is returned in @a countCopied.
10030
10031 If @a rectangles is not <tt>NULL</tt> but @a count is less
10032 than the required number of elements to store region data, the method
10033 will report a failure. If @a count is equal or greater than the
10034 required number of elements, then the actual number of elements copied
10035 to the provided array will be returned in @a countCopied.
10036
10037 <note>
10038 The address of the provided array must be in the process space of
10039 this IFramebuffer object.
10040 </note>
10041 <note>
10042 Method not yet implemented.
10043 </note>
10044 </desc>
10045 <param name="rectangles" type="octet" mod="ptr" dir="in">
10046 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10047 </param>
10048 <param name="count" type="unsigned long" dir="in">
10049 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10050 </param>
10051 <param name="countCopied" type="unsigned long" dir="return">
10052 <desc>Number of elements copied to the @a rectangles array.</desc>
10053 </param>
10054 </method>
10055
10056 <method name="setVisibleRegion">
10057 <desc>
10058 Suggests a new visible region to this frame buffer. This region
10059 represents the area of the VM display which is a union of regions of
10060 all top-level windows of the guest operating system running inside the
10061 VM (if the Guest Additions for this system support this
10062 functionality). This information may be used by the frontends to
10063 implement the seamless desktop integration feature.
10064
10065 <note>
10066 The address of the provided array must be in the process space of
10067 this IFramebuffer object.
10068 </note>
10069 <note>
10070 The IFramebuffer implementation must make a copy of the provided
10071 array of rectangles.
10072 </note>
10073 <note>
10074 Method not yet implemented.
10075 </note>
10076 </desc>
10077 <param name="rectangles" type="octet" mod="ptr" dir="in">
10078 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10079 </param>
10080 <param name="count" type="unsigned long" dir="in">
10081 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10082 </param>
10083 </method>
10084
10085 </interface>
10086
10087 <interface
10088 name="IFramebufferOverlay" extends="IFramebuffer"
10089 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10090 wsmap="suppress"
10091 >
10092 <desc>
10093 The IFramebufferOverlay interface represents an alpha blended overlay
10094 for displaying status icons above an IFramebuffer. It is always created
10095 not visible, so that it must be explicitly shown. It only covers a
10096 portion of the IFramebuffer, determined by its width, height and
10097 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10098 that order) format, and may be written to directly. Do re-read the
10099 width though, after setting it, as it may be adjusted (increased) to
10100 make it more suitable for the front end.
10101 </desc>
10102 <attribute name="x" type="unsigned long" readonly="yes">
10103 <desc>X position of the overlay, relative to the frame buffer.</desc>
10104 </attribute>
10105
10106 <attribute name="y" type="unsigned long" readonly="yes">
10107 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10108 </attribute>
10109
10110 <attribute name="visible" type="boolean" readonly="no">
10111 <desc>
10112 Whether the overlay is currently visible.
10113 </desc>
10114 </attribute>
10115
10116 <attribute name="alpha" type="unsigned long" readonly="no">
10117 <desc>
10118 The global alpha value for the overlay. This may or may not be
10119 supported by a given front end.
10120 </desc>
10121 </attribute>
10122
10123 <method name="move">
10124 <desc>
10125 Changes the overlay's position relative to the IFramebuffer.
10126 </desc>
10127 <param name="x" type="unsigned long" dir="in"/>
10128 <param name="y" type="unsigned long" dir="in"/>
10129 </method>
10130
10131 </interface>
10132
10133 <interface
10134 name="IDisplay" extends="$unknown"
10135 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10136 wsmap="suppress"
10137 >
10138 <desc>
10139 The IDisplay interface represents the virtual machine's display.
10140
10141 The object implementing this interface is contained in each
10142 <link to="IConsole::display"/> attribute and represents the visual
10143 output of the virtual machine.
10144
10145 The virtual display supports pluggable output targets represented by the
10146 IFramebuffer interface. Examples of the output target are a window on
10147 the host computer or an RDP session's display on a remote computer.
10148 </desc>
10149 <attribute name="width" type="unsigned long" readonly="yes">
10150 <desc>Current display width.</desc>
10151 </attribute>
10152
10153 <attribute name="height" type="unsigned long" readonly="yes">
10154 <desc>Current display height.</desc>
10155 </attribute>
10156
10157 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10158 <desc>
10159 Current guest display color depth. Note that this may differ
10160 from <link to="IFramebuffer::bitsPerPixel"/>.
10161 </desc>
10162 </attribute>
10163
10164 <method name="setupInternalFramebuffer">
10165 <desc>
10166 Prepares an internally managed frame buffer.
10167 </desc>
10168 <param name="depth" type="unsigned long" dir="in"/>
10169 </method>
10170
10171 <method name="lockFramebuffer">
10172 <desc>
10173 Requests access to the internal frame buffer.
10174
10175 <result name="VBOX_E_NOT_SUPPORTED">
10176 Attempt to lock a non-internal frame buffer.
10177 </result>
10178
10179 </desc>
10180 <param name="address" type="octet" mod="ptr" dir="return"/>
10181 </method>
10182
10183 <method name="unlockFramebuffer">
10184 <desc>
10185 Releases access to the internal frame buffer.
10186
10187 <result name="VBOX_E_NOT_SUPPORTED">
10188 Attempt to unlock a non-internal frame buffer.
10189 </result>
10190
10191 </desc>
10192 </method>
10193
10194 <method name="registerExternalFramebuffer">
10195 <desc>
10196 Registers an external frame buffer.
10197 </desc>
10198 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10199 </method>
10200
10201 <method name="setFramebuffer">
10202 <desc>
10203 Sets the framebuffer for given screen.
10204 </desc>
10205 <param name="screenId" type="unsigned long" dir="in"/>
10206 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10207 </method>
10208
10209 <method name="getFramebuffer">
10210 <desc>
10211 Queries the framebuffer for given screen.
10212 </desc>
10213 <param name="screenId" type="unsigned long" dir="in"/>
10214 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10215 <param name="xOrigin" type="long" dir="out"/>
10216 <param name="yOrigin" type="long" dir="out"/>
10217 </method>
10218
10219 <method name="setVideoModeHint">
10220 <desc>
10221 Asks VirtualBox to request the given video mode from
10222 the guest. This is just a hint and it cannot be guaranteed
10223 that the requested resolution will be used. Guest Additions
10224 are required for the request to be seen by guests. The caller
10225 should issue the request and wait for a resolution change and
10226 after a timeout retry.
10227
10228 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10229 parameters means that the corresponding values should be taken from the
10230 current video mode (i.e. left unchanged).
10231
10232 If the guest OS supports multi-monitor configuration then the @a display
10233 parameter specifies the number of the guest display to send the hint to:
10234 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10235 so on. If the multi-monitor configuration is not supported, @a display
10236 must be <tt>0</tt>.
10237
10238 <result name="E_INVALIDARG">
10239 The @a display is not associated with any monitor.
10240 </result>
10241
10242 </desc>
10243 <param name="width" type="unsigned long" dir="in"/>
10244 <param name="height" type="unsigned long" dir="in"/>
10245 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10246 <param name="display" type="unsigned long" dir="in"/>
10247 </method>
10248
10249 <method name="setSeamlessMode">
10250 <desc>
10251 Enables or disables seamless guest display rendering (seamless desktop
10252 integration) mode.
10253 <note>
10254 Calling this method has no effect if <link
10255 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10256 </note>
10257 </desc>
10258 <param name="enabled" type="boolean" dir="in"/>
10259 </method>
10260
10261 <method name="takeScreenShot">
10262 <desc>
10263 Takes a screen shot of the requested size and copies it to the
10264 32-bpp buffer allocated by the caller.
10265
10266 <result name="E_NOTIMPL">
10267 Feature not implemented.
10268 </result>
10269 <result name="VBOX_E_IPRT_ERROR">
10270 Could not take a screenshot.
10271 </result>
10272
10273 </desc>
10274 <param name="address" type="octet" mod="ptr" dir="in"/>
10275 <param name="width" type="unsigned long" dir="in"/>
10276 <param name="height" type="unsigned long" dir="in"/>
10277 </method>
10278
10279 <method name="drawToScreen">
10280 <desc>
10281 Draws a 32-bpp image of the specified size from the given buffer
10282 to the given point on the VM display.
10283
10284 <result name="E_NOTIMPL">
10285 Feature not implemented.
10286 </result>
10287 <result name="VBOX_E_IPRT_ERROR">
10288 Could not draw to screen.
10289 </result>
10290
10291 </desc>
10292 <param name="address" type="octet" mod="ptr" dir="in"/>
10293 <param name="x" type="unsigned long" dir="in"/>
10294 <param name="y" type="unsigned long" dir="in"/>
10295 <param name="width" type="unsigned long" dir="in"/>
10296 <param name="height" type="unsigned long" dir="in"/>
10297 </method>
10298
10299 <method name="invalidateAndUpdate">
10300 <desc>
10301 Does a full invalidation of the VM display and instructs the VM
10302 to update it.
10303
10304 <result name="VBOX_E_IPRT_ERROR">
10305 Could not invalidate and update screen.
10306 </result>
10307
10308 </desc>
10309 </method>
10310
10311 <method name="resizeCompleted">
10312 <desc>
10313 Signals that a framebuffer has completed the resize operation.
10314
10315 <result name="VBOX_E_NOT_SUPPORTED">
10316 Operation only valid for external frame buffers.
10317 </result>
10318
10319 </desc>
10320 <param name="screenId" type="unsigned long" dir="in"/>
10321 </method>
10322
10323 <method name="updateCompleted">
10324 <desc>
10325 Signals that a framebuffer has completed the update operation.
10326
10327 <result name="VBOX_E_NOT_SUPPORTED">
10328 Operation only valid for external frame buffers.
10329 </result>
10330
10331 </desc>
10332 </method>
10333
10334 </interface>
10335
10336 <!--
10337 // INetworkAdapter
10338 /////////////////////////////////////////////////////////////////////////
10339 -->
10340
10341 <enum
10342 name="NetworkAttachmentType"
10343 uuid="64e770dc-dd1d-4879-9f12-5bd6bc879b78"
10344 >
10345 <desc>
10346 Network attachment type.
10347 </desc>
10348
10349 <const name="Null" value="0">
10350 <desc>Null value, also means "not attached".</desc>
10351 </const>
10352 <const name="NAT" value="1"/>
10353 <const name="HostInterface" value="2"/>
10354 <const name="Internal" value="3"/>
10355 <const name="HostOnly" value="4"/>
10356 </enum>
10357
10358 <enum
10359 name="NetworkAdapterType"
10360 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10361 >
10362 <desc>
10363 Network adapter type.
10364 </desc>
10365
10366 <const name="Null" value="0">
10367 <desc>Null value (never used by the API).</desc>
10368 </const>
10369 <const name="Am79C970A" value="1"/>
10370 <const name="Am79C973" value="2"/>
10371 <const name="I82540EM" value="3"/>
10372 <const name="I82543GC" value="4"/>
10373 </enum>
10374
10375 <interface
10376 name="INetworkAdapter" extends="$unknown"
10377 uuid="4a1ee64e-6c5f-47dd-acfa-f834d7cb74fb"
10378 wsmap="managed"
10379 >
10380 <attribute name="adapterType" type="NetworkAdapterType">
10381 <desc>
10382 Type of the virtual network adapter. Depending on this value,
10383 VirtualBox will provide a different virtual network hardware
10384 to the guest.
10385 </desc>
10386 </attribute>
10387
10388 <attribute name="slot" type="unsigned long" readonly="yes">
10389 <desc>
10390 Slot number this adapter is plugged into. Corresponds to
10391 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10392 to obtain this instance.
10393 </desc>
10394 </attribute>
10395
10396 <attribute name="enabled" type="boolean">
10397 <desc>
10398 Flag whether the network adapter is present in the
10399 guest system. If disabled, the virtual guest hardware will
10400 not contain this network adapter. Can only be changed when
10401 the VM is not running.
10402 </desc>
10403 </attribute>
10404
10405 <attribute name="MACAddress" type="wstring">
10406 <desc>
10407 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10408 it to NULL, VirtualBox will generate a unique MAC address.
10409 </desc>
10410 </attribute>
10411
10412 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10413
10414 <attribute name="hostInterface" type="wstring">
10415 <desc>
10416 Name of the host network interface the VM is attached to.
10417 </desc>
10418 </attribute>
10419
10420 <attribute name="internalNetwork" type="wstring">
10421 <desc>
10422 Name of the internal network the VM is attached to.
10423 </desc>
10424 </attribute>
10425
10426 <attribute name="NATNetwork" type="wstring">
10427 <desc>
10428 Name of the NAT network the VM is attached to.
10429 </desc>
10430 </attribute>
10431
10432 <attribute name="cableConnected" type="boolean">
10433 <desc>
10434 Flag whether the adapter reports the cable as connected or not.
10435 It can be used to report offline situations to a VM.
10436 </desc>
10437 </attribute>
10438
10439 <attribute name="lineSpeed" type="unsigned long">
10440 <desc>
10441 Line speed reported by custom drivers, in units of 1 kbps.
10442 </desc>
10443 </attribute>
10444
10445 <attribute name="traceEnabled" type="boolean">
10446 <desc>
10447 Flag whether network traffic from/to the network card should be traced.
10448 Can only be toggled when the VM is turned off.
10449 </desc>
10450 </attribute>
10451
10452 <attribute name="traceFile" type="wstring">
10453 <desc>
10454 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10455 will be used.
10456 </desc>
10457 </attribute>
10458
10459 <method name="attachToNAT">
10460 <desc>
10461 Attach the network adapter to the Network Address Translation (NAT) interface.
10462 </desc>
10463 </method>
10464
10465 <method name="attachToHostInterface">
10466 <desc>
10467 Attach the network adapter to a host interface.
10468 </desc>
10469 </method>
10470
10471 <method name="attachToInternalNetwork">
10472 <desc>
10473 Attach the network adapter to an internal network.
10474 </desc>
10475 </method>
10476
10477 <method name="attachToHostOnlyNetwork">
10478 <desc>
10479 Attach the network adapter to the host-only network.
10480 </desc>
10481 </method>
10482
10483 <method name="detach">
10484 <desc>
10485 Detach the network adapter
10486 </desc>
10487 </method>
10488 </interface>
10489
10490
10491 <!--
10492 // ISerialPort
10493 /////////////////////////////////////////////////////////////////////////
10494 -->
10495
10496 <enum
10497 name="PortMode"
10498 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10499 >
10500 <desc>
10501 The PortMode enumeration represents possible communication modes for
10502 the virtual serial port device.
10503 </desc>
10504
10505 <const name="Disconnected" value="0">
10506 <desc>Virtual device is not attached to any real host device.</desc>
10507 </const>
10508 <const name="HostPipe" value="1">
10509 <desc>Virtual device is attached to a host pipe.</desc>
10510 </const>
10511 <const name="HostDevice" value="2">
10512 <desc>Virtual device is attached to a host device.</desc>
10513 </const>
10514 </enum>
10515
10516 <interface
10517 name="ISerialPort" extends="$unknown"
10518 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10519 wsmap="managed"
10520 >
10521
10522 <desc>
10523 The ISerialPort interface represents the virtual serial port device.
10524
10525 The virtual serial port device acts like an ordinary serial port
10526 inside the virtual machine. This device communicates to the real
10527 serial port hardware in one of two modes: host pipe or host device.
10528
10529 In host pipe mode, the #path attribute specifies the path to the pipe on
10530 the host computer that represents a serial port. The #server attribute
10531 determines if this pipe is created by the virtual machine process at
10532 machine startup or it must already exist before starting machine
10533 execution.
10534
10535 In host device mode, the #path attribute specifies the name of the
10536 serial port device on the host computer.
10537
10538 There is also a third communication mode: the disconnected mode. In this
10539 mode, the guest OS running inside the virtual machine will be able to
10540 detect the serial port, but all port write operations will be discarded
10541 and all port read operations will return no data.
10542
10543 <see>IMachine::getSerialPort</see>
10544 </desc>
10545
10546 <attribute name="slot" type="unsigned long" readonly="yes">
10547 <desc>
10548 Slot number this serial port is plugged into. Corresponds to
10549 the value you pass to <link to="IMachine::getSerialPort"/>
10550 to obtain this instance.
10551 </desc>
10552 </attribute>
10553
10554 <attribute name="enabled" type="boolean">
10555 <desc>
10556 Flag whether the serial port is enabled. If disabled,
10557 the serial port will not be reported to the guest OS.
10558 </desc>
10559 </attribute>
10560
10561 <attribute name="IOBase" type="unsigned long">
10562 <desc>Base I/O address of the serial port.</desc>
10563 </attribute>
10564
10565 <attribute name="IRQ" type="unsigned long">
10566 <desc>IRQ number of the serial port.</desc>
10567 </attribute>
10568
10569 <attribute name="hostMode" type="PortMode">
10570 <desc>
10571 How is this port connected to the host.
10572 <note>
10573 Changing this attribute may fail if the conditions for
10574 <link to="#path"/> are not met.
10575 </note>
10576 </desc>
10577 </attribute>
10578
10579 <attribute name="server" type="boolean">
10580 <desc>
10581 Flag whether this serial port acts as a server (creates a new pipe on
10582 the host) or as a client (uses the existing pipe). This attribute is
10583 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10584 </desc>
10585 </attribute>
10586
10587 <attribute name="path" type="wstring">
10588 <desc>
10589 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10590 PortMode_HostPipe, or the host serial device name when
10591 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10592 cases, setting a @c null or an empty string as the attribute's value
10593 will result into an error. Otherwise, the value of this property is
10594 ignored.
10595 </desc>
10596 </attribute>
10597
10598 </interface>
10599
10600 <!--
10601 // IParallelPort
10602 /////////////////////////////////////////////////////////////////////////
10603 -->
10604
10605 <interface
10606 name="IParallelPort" extends="$unknown"
10607 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10608 wsmap="managed"
10609 >
10610
10611 <desc>
10612 The IParallelPort interface represents the virtual parallel port device.
10613
10614 The virtual parallel port device acts like an ordinary parallel port
10615 inside the virtual machine. This device communicates to the real
10616 parallel port hardware using the name of the parallel device on the host
10617 computer specified in the #path attribute.
10618
10619 Each virtual parallel port device is assigned a base I/O address and an
10620 IRQ number that will be reported to the guest operating system and used
10621 to operate the given parallel port from within the virtual machine.
10622
10623 <see>IMachine::getParallelPort</see>
10624 </desc>
10625
10626 <attribute name="slot" type="unsigned long" readonly="yes">
10627 <desc>
10628 Slot number this parallel port is plugged into. Corresponds to
10629 the value you pass to <link to="IMachine::getParallelPort"/>
10630 to obtain this instance.
10631 </desc>
10632 </attribute>
10633
10634 <attribute name="enabled" type="boolean">
10635 <desc>
10636 Flag whether the parallel port is enabled. If disabled,
10637 the parallel port will not be reported to the guest OS.
10638 </desc>
10639 </attribute>
10640
10641 <attribute name="IOBase" type="unsigned long">
10642 <desc>Base I/O address of the parallel port.</desc>
10643 </attribute>
10644
10645 <attribute name="IRQ" type="unsigned long">
10646 <desc>IRQ number of the parallel port.</desc>
10647 </attribute>
10648
10649 <attribute name="path" type="wstring">
10650 <desc>
10651 Host parallel device name. If this parallel port is enabled, setting a
10652 @c null or an empty string as this attribute's value will result into
10653 an error.
10654 </desc>
10655 </attribute>
10656
10657 </interface>
10658
10659
10660 <!--
10661 // IMachineDebugger
10662 /////////////////////////////////////////////////////////////////////////
10663 -->
10664
10665 <interface
10666 name="IMachineDebugger" extends="$unknown"
10667 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10668 wsmap="suppress"
10669 >
10670 <method name="resetStats">
10671 <desc>
10672 Reset VM statistics.
10673 </desc>
10674 <param name="pattern" type="wstring" dir="in">
10675 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10676 </param>
10677 </method>
10678
10679 <method name="dumpStats">
10680 <desc>
10681 Dumps VM statistics.
10682 </desc>
10683 <param name="pattern" type="wstring" dir="in">
10684 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10685 </param>
10686 </method>
10687
10688 <method name="getStats">
10689 <desc>
10690 Get the VM statistics in a XMLish format.
10691 </desc>
10692 <param name="pattern" type="wstring" dir="in">
10693 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10694 </param>
10695 <param name="withDescriptions" type="boolean" dir="in">
10696 <desc>Whether to include the descriptions.</desc>
10697 </param>
10698 <param name="stats" type="wstring" dir="out">
10699 <desc>The XML document containing the statistics.</desc>
10700 </param>
10701 </method>
10702
10703 <method name="injectNMI">
10704 <desc>
10705 Inject an NMI into a running VT-x/AMD-V VM.
10706 </desc>
10707 </method>
10708
10709 <attribute name="singlestep" type="boolean">
10710 <desc>Switch for enabling singlestepping.</desc>
10711 </attribute>
10712
10713 <attribute name="recompileUser" type="boolean">
10714 <desc>Switch for forcing code recompilation for user mode code.</desc>
10715 </attribute>
10716
10717 <attribute name="recompileSupervisor" type="boolean">
10718 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10719 </attribute>
10720
10721 <attribute name="PATMEnabled" type="boolean">
10722 <desc>Switch for enabling and disabling the PATM component.</desc>
10723 </attribute>
10724
10725 <attribute name="CSAMEnabled" type="boolean">
10726 <desc>Switch for enabling and disabling the CSAM component.</desc>
10727 </attribute>
10728
10729 <attribute name="logEnabled" type="boolean">
10730 <desc>Switch for enabling and disabling logging.</desc>
10731 </attribute>
10732
10733 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10734 <desc>
10735 Flag indicating whether the VM is currently making use of CPU hardware
10736 virtualization extensions.
10737 </desc>
10738 </attribute>
10739
10740 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10741 <desc>
10742 Flag indicating whether the VM is currently making use of the nested paging
10743 CPU hardware virtualization extension.
10744 </desc>
10745 </attribute>
10746
10747 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10748 <desc>
10749 Flag indicating whether the VM is currently making use of the VPID
10750 VT-x extension.
10751 </desc>
10752 </attribute>
10753
10754 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10755 <desc>
10756 Flag indicating whether the VM is currently making use of the Physical
10757 Address Extension CPU feature.
10758 </desc>
10759 </attribute>
10760
10761 <attribute name="virtualTimeRate" type="unsigned long">
10762 <desc>
10763 The rate at which the virtual time runs expressed as a percentage.
10764 The accepted range is 2% to 20000%.
10765 </desc>
10766 </attribute>
10767
10768 <!-- @todo method for setting log flags, groups and destination! -->
10769
10770 <attribute name="VM" type="unsigned long long" readonly="yes">
10771 <desc>
10772 Gets the VM handle. This is only for internal use while
10773 we carve the details of this interface.
10774 </desc>
10775 </attribute>
10776
10777 </interface>
10778
10779 <!--
10780 // IUSBController
10781 /////////////////////////////////////////////////////////////////////////
10782 -->
10783
10784 <interface
10785 name="IUSBController" extends="$unknown"
10786 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
10787 wsmap="managed"
10788 >
10789 <attribute name="enabled" type="boolean">
10790 <desc>
10791 Flag whether the USB controller is present in the
10792 guest system. If disabled, the virtual guest hardware will
10793 not contain any USB controller. Can only be changed when
10794 the VM is powered off.
10795 </desc>
10796 </attribute>
10797
10798 <attribute name="enabledEhci" type="boolean">
10799 <desc>
10800 Flag whether the USB EHCI controller is present in the
10801 guest system. If disabled, the virtual guest hardware will
10802 not contain a USB EHCI controller. Can only be changed when
10803 the VM is powered off.
10804 </desc>
10805 </attribute>
10806
10807 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10808 <desc>
10809 USB standard version which the controller implements.
10810 This is a BCD which means that the major version is in the
10811 high byte and minor version is in the low byte.
10812 </desc>
10813 </attribute>
10814
10815 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
10816 <desc>
10817 List of USB device filters associated with the machine.
10818
10819 If the machine is currently running, these filters are activated
10820 every time a new (supported) USB device is attached to the host
10821 computer that was not ignored by global filters
10822 (<link to="IHost::USBDeviceFilters"/>).
10823
10824 These filters are also activated when the machine is powered up.
10825 They are run against a list of all currently available USB
10826 devices (in states
10827 <link to="USBDeviceState_Available"/>,
10828 <link to="USBDeviceState_Busy"/>,
10829 <link to="USBDeviceState_Held"/>) that were not previously
10830 ignored by global filters.
10831
10832 If at least one filter matches the USB device in question, this
10833 device is automatically captured (attached to) the virtual USB
10834 controller of this machine.
10835
10836 <see>IUSBDeviceFilter, ::IUSBController</see>
10837 </desc>
10838 </attribute>
10839
10840 <method name="createDeviceFilter">
10841 <desc>
10842 Creates a new USB device filter. All attributes except
10843 the filter name are set to <tt>null</tt> (any match),
10844 <i>active</i> is <tt>false</tt> (the filter is not active).
10845
10846 The created filter can then be added to the list of filters using
10847 <link to="#insertDeviceFilter"/>.
10848
10849 <result name="VBOX_E_INVALID_VM_STATE">
10850 The virtual machine is not mutable.
10851 </result>
10852
10853 <see>#deviceFilters</see>
10854 </desc>
10855 <param name="name" type="wstring" dir="in">
10856 <desc>
10857 Filter name. See <link to="IUSBDeviceFilter::name"/>
10858 for more info.
10859 </desc>
10860 </param>
10861 <param name="filter" type="IUSBDeviceFilter" dir="return">
10862 <desc>Created filter object.</desc>
10863 </param>
10864 </method>
10865
10866 <method name="insertDeviceFilter">
10867 <desc>
10868 Inserts the given USB device to the specified position
10869 in the list of filters.
10870
10871 Positions are numbered starting from <tt>0</tt>. If the specified
10872 position is equal to or greater than the number of elements in
10873 the list, the filter is added to the end of the collection.
10874
10875 <note>
10876 Duplicates are not allowed, so an attempt to insert a
10877 filter that is already in the collection, will return an
10878 error.
10879 </note>
10880
10881 <result name="VBOX_E_INVALID_VM_STATE">
10882 Virtual machine is not mutable.
10883 </result>
10884 <result name="E_INVALIDARG">
10885 USB device filter not created within this VirtualBox instance.
10886 </result>
10887 <result name="VBOX_E_INVALID_OBJECT_STATE">
10888 USB device filter already in list.
10889 </result>
10890
10891 <see>#deviceFilters</see>
10892 </desc>
10893 <param name="position" type="unsigned long" dir="in">
10894 <desc>Position to insert the filter to.</desc>
10895 </param>
10896 <param name="filter" type="IUSBDeviceFilter" dir="in">
10897 <desc>USB device filter to insert.</desc>
10898 </param>
10899 </method>
10900
10901 <method name="removeDeviceFilter">
10902 <desc>
10903 Removes a USB device filter from the specified position in the
10904 list of filters.
10905
10906 Positions are numbered starting from <tt>0</tt>. Specifying a
10907 position equal to or greater than the number of elements in
10908 the list will produce an error.
10909
10910 <see>#deviceFilters</see>
10911
10912 <result name="VBOX_E_INVALID_VM_STATE">
10913 Virtual machine is not mutable.
10914 </result>
10915 <result name="E_INVALIDARG">
10916 USB device filter list empty or invalid @a position.
10917 </result>
10918
10919 </desc>
10920 <param name="position" type="unsigned long" dir="in">
10921 <desc>Position to remove the filter from.</desc>
10922 </param>
10923 <param name="filter" type="IUSBDeviceFilter" dir="return">
10924 <desc>Removed USB device filter.</desc>
10925 </param>
10926 </method>
10927
10928 </interface>
10929
10930
10931 <!--
10932 // IUSBDevice
10933 /////////////////////////////////////////////////////////////////////////
10934 -->
10935
10936 <enumerator
10937 name="IUSBDeviceEnumerator" type="IUSBDevice"
10938 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
10939 />
10940
10941 <collection
10942 name="IUSBDeviceCollection" type="IUSBDevice"
10943 enumerator="IUSBDeviceEnumerator"
10944 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
10945 readonly="yes"
10946 >
10947 <method name="findById">
10948 <desc>
10949 Searches this collection for a USB device with the given UUID.
10950 <note>
10951 The method returns an error if the given UUID does not
10952 correspond to any USB device in the collection.
10953 </note>
10954 <see>IUSBDevice::id</see>
10955 </desc>
10956 <param name="id" type="uuid" dir="in">
10957 <desc>UUID of the USB device to search for.</desc>
10958 </param>
10959 <param name="device" type="IUSBDevice" dir="return">
10960 <desc>Found USB device object.</desc>
10961 </param>
10962 </method>
10963
10964 <method name="findByAddress">
10965 <desc>
10966 Searches this collection for a USB device with the given
10967 host address.
10968 <note>
10969 The method returns an error if the given address does not
10970 correspond to any USB device in the collection.
10971 </note>
10972 <see>IUSBDevice::address</see>
10973 </desc>
10974 <param name="name" type="wstring" dir="in">
10975 <desc>
10976 Address of the USB device (as assigned by the host) to
10977 search for.
10978 </desc>
10979 </param>
10980 <param name="device" type="IUSBDevice" dir="return">
10981 <desc>Found USB device object.</desc>
10982 </param>
10983 </method>
10984
10985 </collection>
10986
10987 <interface
10988 name="IUSBDevice" extends="$unknown"
10989 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
10990 wsmap="managed"
10991 >
10992 <desc>
10993 The IUSBDevice interface represents a virtual USB device attached to the
10994 virtual machine.
10995
10996 A collection of objects implementing this interface is stored in the
10997 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
10998 attached to a running virtual machine's USB controller.
10999 </desc>
11000
11001 <attribute name="id" type="uuid" readonly="yes">
11002 <desc>
11003 Unique USB device ID. This ID is built from #vendorId,
11004 #productId, #revision and #serialNumber.
11005 </desc>
11006 </attribute>
11007
11008 <attribute name="vendorId" type="unsigned short" readonly="yes">
11009 <desc>Vendor ID.</desc>
11010 </attribute>
11011
11012 <attribute name="productId" type="unsigned short" readonly="yes">
11013 <desc>Product ID.</desc>
11014 </attribute>
11015
11016 <attribute name="revision" type="unsigned short" readonly="yes">
11017 <desc>
11018 Product revision number. This is a packed BCD represented as
11019 unsigned short. The high byte is the integer part and the low
11020 byte is the decimal.
11021 </desc>
11022 </attribute>
11023
11024 <attribute name="manufacturer" type="wstring" readonly="yes">
11025 <desc>Manufacturer string.</desc>
11026 </attribute>
11027
11028 <attribute name="product" type="wstring" readonly="yes">
11029 <desc>Product string.</desc>
11030 </attribute>
11031
11032 <attribute name="serialNumber" type="wstring" readonly="yes">
11033 <desc>Serial number string.</desc>
11034 </attribute>
11035
11036 <attribute name="address" type="wstring" readonly="yes">
11037 <desc>Host specific address of the device.</desc>
11038 </attribute>
11039
11040 <attribute name="port" type="unsigned short" readonly="yes">
11041 <desc>
11042 Host USB port number the device is physically
11043 connected to.
11044 </desc>
11045 </attribute>
11046
11047 <attribute name="version" type="unsigned short" readonly="yes">
11048 <desc>
11049 The major USB version of the device - 1 or 2.
11050 </desc>
11051 </attribute>
11052
11053 <attribute name="portVersion" type="unsigned short" readonly="yes">
11054 <desc>
11055 The major USB version of the host USB port the device is
11056 physically connected to - 1 or 2. For devices not connected to
11057 anything this will have the same value as the version attribute.
11058 </desc>
11059 </attribute>
11060
11061 <attribute name="remote" type="boolean" readonly="yes">
11062 <desc>
11063 Whether the device is physically connected to a remote VRDP
11064 client or to a local host machine.
11065 </desc>
11066 </attribute>
11067
11068 </interface>
11069
11070
11071 <!--
11072 // IUSBDeviceFilter
11073 /////////////////////////////////////////////////////////////////////////
11074 -->
11075
11076 <enumerator
11077 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
11078 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
11079 />
11080
11081 <collection
11082 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
11083 enumerator="IUSBDeviceFilterEnumerator"
11084 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
11085 readonly="yes"
11086 />
11087
11088 <interface
11089 name="IUSBDeviceFilter" extends="$unknown"
11090 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11091 wsmap="managed"
11092 >
11093 <desc>
11094 The IUSBDeviceFilter interface represents an USB device filter used
11095 to perform actions on a group of USB devices.
11096
11097 This type of filters is used by running virtual machines to
11098 automatically capture selected USB devices once they are physically
11099 attached to the host computer.
11100
11101 A USB device is matched to the given device filter if and only if all
11102 attributes of the device match the corresponding attributes of the
11103 filter (that is, attributes are joined together using the logical AND
11104 operation). On the other hand, all together, filters in the list of
11105 filters carry the semantics of the logical OR operation. So if it is
11106 desirable to create a match like "this vendor id OR this product id",
11107 one needs to create two filters and specify "any match" (see below)
11108 for unused attributes.
11109
11110 All filter attributes used for matching are strings. Each string
11111 is an expression representing a set of values of the corresponding
11112 device attribute, that will match the given filter. Currently, the
11113 following filtering expressions are supported:
11114
11115 <ul>
11116 <li><i>Interval filters</i>. Used to specify valid intervals for
11117 integer device attributes (Vendor ID, Product ID and Revision).
11118 The format of the string is:
11119
11120 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11121
11122 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11123 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11124 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11125 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11126 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11127 possible integer is assumed.
11128 </li>
11129 <li><i>Boolean filters</i>. Used to specify acceptable values for
11130 boolean device attributes. The format of the string is:
11131
11132 <tt>true|false|yes|no|0|1</tt>
11133
11134 </li>
11135 <li><i>Exact match</i>. Used to specify a single value for the given
11136 device attribute. Any string that doesn't start with <tt>int:</tt>
11137 represents the exact match. String device attributes are compared to
11138 this string including case of symbols. Integer attributes are first
11139 converted to a string (see individual filter attributes) and then
11140 compared ignoring case.
11141
11142 </li>
11143 <li><i>Any match</i>. Any value of the corresponding device attribute
11144 will match the given filter. An empty or <tt>null</tt> string is
11145 used to construct this type of filtering expressions.
11146
11147 </li>
11148 </ul>
11149
11150 <note>
11151 On the Windows host platform, interval filters are not currently
11152 available. Also all string filter attributes
11153 (<link to="#manufacturer"/>, <link to="#product"/>,
11154 <link to="#serialNumber"/>) are ignored, so they behave as
11155 <i>any match</i> no matter what string expression is specified.
11156 </note>
11157
11158 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11159 </desc>
11160
11161 <attribute name="name" type="wstring">
11162 <desc>
11163 Visible name for this filter.
11164 This name is used to visually distinguish one filter from another,
11165 so it can neither be <tt>null</tt> nor an empty string.
11166 </desc>
11167 </attribute>
11168
11169 <attribute name="active" type="boolean">
11170 <desc>Whether this filter active or has been temporarily disabled.</desc>
11171 </attribute>
11172
11173 <attribute name="vendorId" type="wstring">
11174 <desc>
11175 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11176 The string representation for the <i>exact matching</i>
11177 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11178 (including leading zeroes).
11179 </desc>
11180 </attribute>
11181
11182 <attribute name="productId" type="wstring">
11183 <desc>
11184 <link to="IUSBDevice::productId">Product ID</link> filter.
11185 The string representation for the <i>exact matching</i>
11186 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11187 (including leading zeroes).
11188 </desc>
11189 </attribute>
11190
11191 <attribute name="revision" type="wstring">
11192 <desc>
11193 <link to="IUSBDevice::productId">Product revision number</link>
11194 filter. The string representation for the <i>exact matching</i>
11195 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11196 of the integer part of the revision, and <tt>F</tt> is the
11197 decimal digit of its fractional part (including leading and
11198 trailing zeros).
11199 Note that for interval filters, it's best to use the hexadecimal
11200 form, because the revision is stored as a 16 bit packed BCD value;
11201 so the expression <tt>int:0x0100-0x0199</tt> will match any
11202 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11203 </desc>
11204 </attribute>
11205
11206 <attribute name="manufacturer" type="wstring">
11207 <desc>
11208 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11209 </desc>
11210 </attribute>
11211
11212 <attribute name="product" type="wstring">
11213 <desc>
11214 <link to="IUSBDevice::product">Product</link> filter.
11215 </desc>
11216 </attribute>
11217
11218 <attribute name="serialNumber" type="wstring">
11219 <desc>
11220 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11221 </desc>
11222 </attribute>
11223
11224 <attribute name="port" type="wstring">
11225 <desc>
11226 <link to="IUSBDevice::port">Host USB port</link> filter.
11227 </desc>
11228 </attribute>
11229
11230 <attribute name="remote" type="wstring">
11231 <desc>
11232 <link to="IUSBDevice::remote">Remote state</link> filter.
11233 <note>
11234 This filter makes sense only for machine USB filters,
11235 i.e. it is ignored by IHostUSBDeviceFilter objects.
11236 </note>
11237 </desc>
11238 </attribute>
11239
11240 <attribute name="maskedInterfaces" type="unsigned long">
11241 <desc>
11242 This is an advanced option for hiding one or more USB interfaces
11243 from the guest. The value is a bit mask where the bits that are set
11244 means the corresponding USB interface should be hidden, masked off
11245 if you like.
11246 This feature only works on Linux hosts.
11247 </desc>
11248 </attribute>
11249
11250 </interface>
11251
11252
11253 <!--
11254 // IHostUSBDevice
11255 /////////////////////////////////////////////////////////////////////////
11256 -->
11257
11258 <enum
11259 name="USBDeviceState"
11260 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11261 >
11262 <desc>
11263 USB device state. This enumeration represents all possible states
11264 of the USB device physically attached to the host computer regarding
11265 its state on the host computer and availability to guest computers
11266 (all currently running virtual machines).
11267
11268 Once a supported USB device is attached to the host, global USB
11269 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11270 either ignore the device, or put it to USBDeviceState_Held state, or do
11271 nothing. Unless the device is ignored by global filters, filters of all
11272 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11273 activated that can put it to USBDeviceState_Captured state.
11274
11275 If the device was ignored by global filters, or didn't match
11276 any filters at all (including guest ones), it is handled by the host
11277 in a normal way. In this case, the device state is determined by
11278 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11279 or USBDeviceState_Available, depending on the current device usage.
11280
11281 Besides auto-capturing based on filters, the device can be manually
11282 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11283 state is USBDeviceState_Busy, USBDeviceState_Available or
11284 USBDeviceState_Held.
11285
11286 <note>
11287 Due to differences in USB stack implementations in Linux and Win32,
11288 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11289 only to the Linux version of the product. This also means that (<link
11290 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11291 device state is USBDeviceState_Held.
11292 </note>
11293
11294 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11295 </desc>
11296
11297 <const name="NotSupported" value="0">
11298 <desc>
11299 Not supported by the VirtualBox server, not available to guests.
11300 </desc>
11301 </const>
11302 <const name="Unavailable" value="1">
11303 <desc>
11304 Being used by the host computer exclusively,
11305 not available to guests.
11306 </desc>
11307 </const>
11308 <const name="Busy" value="2">
11309 <desc>
11310 Being used by the host computer, potentially available to guests.
11311 </desc>
11312 </const>
11313 <const name="Available" value="3">
11314 <desc>
11315 Not used by the host computer, available to guests (the host computer
11316 can also start using the device at any time).
11317 </desc>
11318 </const>
11319 <const name="Held" value="4">
11320 <desc>
11321 Held by the VirtualBox server (ignored by the host computer),
11322 available to guests.
11323 </desc>
11324 </const>
11325 <const name="Captured" value="5">
11326 <desc>
11327 Captured by one of the guest computers, not available
11328 to anybody else.
11329 </desc>
11330 </const>
11331 </enum>
11332
11333 <enumerator
11334 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11335 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11336 />
11337
11338 <collection
11339 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11340 enumerator="IHostUSBDeviceEnumerator"
11341 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11342 readonly="yes"
11343 >
11344 <method name="findById">
11345 <desc>
11346 Searches this collection for a USB device with the given UUID.
11347 <note>
11348 The method returns an error if the given UUID does not
11349 correspond to any USB device in the collection.
11350 </note>
11351 <see>IHostUSBDevice::id</see>
11352 </desc>
11353 <param name="id" type="uuid" dir="in">
11354 <desc>UUID of the USB device to search for.</desc>
11355 </param>
11356 <param name="device" type="IHostUSBDevice" dir="return">
11357 <desc>Found USB device object.</desc>
11358 </param>
11359 </method>
11360
11361 <method name="findByAddress">
11362 <desc>
11363 Searches this collection for a USB device with the given
11364 host address.
11365 <note>
11366 The method returns an error if the given address does not
11367 correspond to any USB device in the collection.
11368 </note>
11369 <see>IHostUSBDevice::address</see>
11370 </desc>
11371 <param name="name" type="wstring" dir="in">
11372 <desc>
11373 Address of the USB device (as assigned by the host) to
11374 search for.
11375 </desc>
11376 </param>
11377 <param name="device" type="IHostUSBDevice" dir="return">
11378 <desc>Found USB device object.</desc>
11379 </param>
11380 </method>
11381
11382 </collection>
11383
11384 <interface
11385 name="IHostUSBDevice" extends="IUSBDevice"
11386 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11387 wsmap="managed"
11388 >
11389 <desc>
11390 The IHostUSBDevice interface represents a physical USB device attached
11391 to the host computer.
11392
11393 Besides properties inherited from IUSBDevice, this interface adds the
11394 <link to="#state"/> property that holds the current state of the USB
11395 device.
11396
11397 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11398 </desc>
11399
11400 <attribute name="state" type="USBDeviceState" readonly="yes">
11401 <desc>
11402 Current state of the device.
11403 </desc>
11404 </attribute>
11405
11406 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11407
11408 </interface>
11409
11410
11411 <!--
11412 // IHostUSBDeviceFilter
11413 /////////////////////////////////////////////////////////////////////////
11414 -->
11415
11416 <enum
11417 name="USBDeviceFilterAction"
11418 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11419 >
11420 <desc>
11421 Actions for host USB device filters.
11422 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11423 </desc>
11424
11425 <const name="Null" value="0">
11426 <desc>Null value (never used by the API).</desc>
11427 </const>
11428 <const name="Ignore" value="1">
11429 <desc>Ignore the matched USB device.</desc>
11430 </const>
11431 <const name="Hold" value="2">
11432 <desc>Hold the matched USB device.</desc>
11433 </const>
11434 </enum>
11435
11436 <enumerator
11437 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
11438 uuid="ff735211-903e-4642-9c37-189eb44579fe"
11439 />
11440
11441 <collection
11442 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
11443 enumerator="IHostUSBDeviceFilterEnumerator"
11444 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
11445 readonly="yes"
11446 />
11447
11448 <interface
11449 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11450 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11451 wsmap="managed"
11452 >
11453 <desc>
11454 The IHostUSBDeviceFilter interface represents a global filter for a
11455 physical USB device used by the host computer. Used indirectly in
11456 <link to="IHost::USBDeviceFilters"/>.
11457
11458 Using filters of this type, the host computer determines the initial
11459 state of the USB device after it is physically attached to the
11460 host's USB controller.
11461
11462 <note>
11463 The <link to="#remote"/> attribute is ignored by this type of
11464 filters, because it makes sense only for
11465 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11466 </note>
11467
11468 <see>IHost::USBDeviceFilters</see>
11469 </desc>
11470
11471 <attribute name="action" type="USBDeviceFilterAction">
11472 <desc>
11473 Action performed by the host when an attached USB device
11474 matches this filter.
11475 </desc>
11476 </attribute>
11477
11478 </interface>
11479
11480 <!--
11481 // IAudioAdapter
11482 /////////////////////////////////////////////////////////////////////////
11483 -->
11484
11485 <enum
11486 name="AudioDriverType"
11487 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11488 >
11489 <desc>
11490 Host audio driver type.
11491 </desc>
11492
11493 <const name="Null" value="0">
11494 <desc>Null value, also means "dummy audio driver".</desc>
11495 </const>
11496 <const name="WinMM" value="1"/>
11497 <const name="OSS" value="2"/>
11498 <const name="ALSA" value="3"/>
11499 <const name="DirectSound" value="4"/>
11500 <const name="CoreAudio" value="5"/>
11501 <const name="MMPM" value="6"/>
11502 <const name="Pulse" value="7"/>
11503 <const name="SolAudio" value="8"/>
11504 </enum>
11505
11506 <enum
11507 name="AudioControllerType"
11508 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11509 >
11510 <desc>
11511 Virtual audio controller type.
11512 </desc>
11513
11514 <const name="AC97" value="0"/>
11515 <const name="SB16" value="1"/>
11516 </enum>
11517
11518 <interface
11519 name="IAudioAdapter" extends="$unknown"
11520 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11521 wsmap="managed"
11522 >
11523 <desc>
11524 The IAudioAdapter interface represents the virtual audio adapter of
11525 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11526 </desc>
11527 <attribute name="enabled" type="boolean">
11528 <desc>
11529 Flag whether the audio adapter is present in the
11530 guest system. If disabled, the virtual guest hardware will
11531 not contain any audio adapter. Can only be changed when
11532 the VM is not running.
11533 </desc>
11534 </attribute>
11535 <attribute name="audioController" type="AudioControllerType">
11536 <desc>
11537 The audio hardware we emulate.
11538 </desc>
11539 </attribute>
11540 <attribute name="audioDriver" type="AudioDriverType">
11541 <desc>
11542 Audio driver the adapter is connected to. This setting
11543 can only be changed when the VM is not running.
11544 </desc>
11545 </attribute>
11546 </interface>
11547
11548 <!--
11549 // IVRDPServer
11550 /////////////////////////////////////////////////////////////////////////
11551 -->
11552
11553 <enum
11554 name="VRDPAuthType"
11555 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11556 >
11557 <desc>
11558 VRDP authentication type.
11559 </desc>
11560
11561 <const name="Null" value="0">
11562 <desc>Null value, also means "no authentication".</desc>
11563 </const>
11564 <const name="External" value="1"/>
11565 <const name="Guest" value="2"/>
11566 </enum>
11567
11568 <interface
11569 name="IVRDPServer" extends="$unknown"
11570 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11571 wsmap="managed"
11572 >
11573 <attribute name="enabled" type="boolean">
11574 <desc>VRDP server status.</desc>
11575 </attribute>
11576
11577 <attribute name="port" type="unsigned long">
11578 <desc>
11579 VRDP server port number.
11580 <note>
11581 Setting the value of this property to <tt>0</tt> will reset the port
11582 number to the default value which is
11583 currently <tt>3389</tt>. Reading this property will always return a
11584 real port number, even after it has been set to <tt>0</tt> (in which
11585 case the default port is returned).
11586 </note>
11587 </desc>
11588 </attribute>
11589
11590 <attribute name="netAddress" type="wstring">
11591 <desc>VRDP server address.</desc>
11592 </attribute>
11593
11594 <attribute name="authType" type="VRDPAuthType">
11595 <desc>VRDP authentication method.</desc>
11596 </attribute>
11597
11598 <attribute name="authTimeout" type="unsigned long">
11599 <desc>Timeout for guest authentication. Milliseconds.</desc>
11600 </attribute>
11601
11602 <attribute name="allowMultiConnection" type="boolean">
11603 <desc>
11604 Flag whether multiple simultaneous connections to the VM are permitted.
11605 Note that this will be replaced by a more powerful mechanism in the future.
11606 </desc>
11607 </attribute>
11608
11609 <attribute name="reuseSingleConnection" type="boolean">
11610 <desc>
11611 Flag whether the existing connection must be dropped and a new connection
11612 must be established by the VRDP server, when a new client connects in single
11613 connection mode.
11614 </desc>
11615 </attribute>
11616
11617 </interface>
11618
11619
11620 <!--
11621 // ISharedFolder
11622 /////////////////////////////////////////////////////////////////////////
11623 -->
11624
11625 <interface
11626 name="ISharedFolder" extends="$unknown"
11627 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
11628 wsmap="struct"
11629 >
11630 <desc>
11631 The ISharedFolder interface represents a folder in the host computer's
11632 file system accessible from the guest OS running inside a virtual
11633 machine using an associated logical name.
11634
11635 There are three types of shared folders:
11636 <ul>
11637 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11638 folders available to all virtual machines.</li>
11639 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11640 VM-specific shared folders available to the given virtual machine at
11641 startup.</li>
11642 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11643 VM-specific shared folders created in the session context (for
11644 example, when the virtual machine is running) and automatically
11645 discarded when the session is closed (the VM is powered off).</li>
11646 </ul>
11647
11648 Logical names of shared folders must be unique within the given scope
11649 (global, permanent or transient). However, they do not need to be unique
11650 across scopes. In this case, the definition of the shared folder in a
11651 more specific scope takes precedence over definitions in all other
11652 scopes. The order of precedence is (more specific to more general):
11653 <ol>
11654 <li>Transient definitions</li>
11655 <li>Permanent definitions</li>
11656 <li>Global definitions</li>
11657 </ol>
11658
11659 For example, if MyMachine has a shared folder named
11660 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11661 transient shared folder named <tt>C_DRIVE</tt> (that points
11662 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11663 of <tt>C_DRIVE</tt> in the guest OS so
11664 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11665 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11666 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11667 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11668 to <tt>C:\\</tt> if it still exists.
11669
11670 Note that permanent and transient shared folders of different machines
11671 are in different name spaces, so they don't overlap and don't need to
11672 have unique logical names.
11673
11674 <note>
11675 Global shared folders are not implemented in the current version of the
11676 product.
11677 </note>
11678 </desc>
11679
11680 <attribute name="name" type="wstring" readonly="yes">
11681 <desc>Logical name of the shared folder.</desc>
11682 </attribute>
11683
11684 <attribute name="hostPath" type="wstring" readonly="yes">
11685 <desc>Full path to the shared folder in the host file system.</desc>
11686 </attribute>
11687
11688 <attribute name="accessible" type="boolean" readonly="yes">
11689 <desc>
11690 Whether the folder defined by the host path is currently
11691 accessible or not.
11692 For example, the folder can be unaccessible if it is placed
11693 on the network share that is not available by the time
11694 this property is read.
11695 </desc>
11696 </attribute>
11697
11698 <attribute name="writable" type="boolean" readonly="yes">
11699 <desc>
11700 Whether the folder defined by the host path is writable or
11701 not.
11702 </desc>
11703 </attribute>
11704
11705 <attribute name="lastAccessError" type="wstring" readonly="yes">
11706 <desc>
11707 Text message that represents the result of the last accessibility
11708 check.
11709
11710 Accessibility checks are performed each time the <link to="#accessible"/>
11711 attribute is read. A @c null string is returned if the last
11712 accessibility check was successful. A non-null string indicates a
11713 failure and should normally describe a reason of the failure (for
11714 example, a file read error).
11715 </desc>
11716 </attribute>
11717
11718 </interface>
11719
11720 <!--
11721 // ISession
11722 /////////////////////////////////////////////////////////////////////////
11723 -->
11724
11725 <interface
11726 name="IInternalSessionControl" extends="$unknown"
11727 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11728 internal="yes"
11729 wsmap="suppress"
11730 >
11731 <method name="getPID">
11732 <desc>PID of the process that has created this Session object.
11733 </desc>
11734 <param name="pid" type="unsigned long" dir="return"/>
11735 </method>
11736
11737 <method name="getRemoteConsole">
11738 <desc>
11739 Returns the console object suitable for remote control.
11740
11741 <result name="VBOX_E_INVALID_VM_STATE">
11742 Session state prevents operation.
11743 </result>
11744 <result name="VBOX_E_INVALID_OBJECT_STATE">
11745 Session type prevents operation.
11746 </result>
11747
11748 </desc>
11749 <param name="console" type="IConsole" dir="return"/>
11750 </method>
11751
11752 <method name="assignMachine">
11753 <desc>
11754 Assigns the machine object associated with this direct-type
11755 session or informs the session that it will be a remote one
11756 (if @a machine == NULL).
11757
11758 <result name="VBOX_E_INVALID_VM_STATE">
11759 Session state prevents operation.
11760 </result>
11761 <result name="VBOX_E_INVALID_OBJECT_STATE">
11762 Session type prevents operation.
11763 </result>
11764
11765 </desc>
11766 <param name="machine" type="IMachine" dir="in"/>
11767 </method>
11768
11769 <method name="assignRemoteMachine">
11770 <desc>
11771 Assigns the machine and the (remote) console object associated with
11772 this remote-type session.
11773
11774 <result name="VBOX_E_INVALID_VM_STATE">
11775 Session state prevents operation.
11776 </result>
11777
11778 </desc>
11779 <param name="machine" type="IMachine" dir="in"/>
11780 <param name="console" type="IConsole" dir="in"/>
11781 </method>
11782
11783 <method name="updateMachineState">
11784 <desc>
11785 Updates the machine state in the VM process.
11786 Must be called only in certain cases
11787 (see the method implementation).
11788
11789 <result name="VBOX_E_INVALID_VM_STATE">
11790 Session state prevents operation.
11791 </result>
11792 <result name="VBOX_E_INVALID_OBJECT_STATE">
11793 Session type prevents operation.
11794 </result>
11795
11796 </desc>
11797 <param name="aMachineState" type="MachineState" dir="in"/>
11798 </method>
11799
11800 <method name="uninitialize">
11801 <desc>
11802 Uninitializes (closes) this session. Used by VirtualBox to close
11803 the corresponding remote session when the direct session dies
11804 or gets closed.
11805
11806 <result name="VBOX_E_INVALID_VM_STATE">
11807 Session state prevents operation.
11808 </result>
11809
11810 </desc>
11811 </method>
11812
11813 <method name="onDVDDriveChange">
11814 <desc>
11815 Triggered when settings of the DVD drive object of the
11816 associated virtual machine have changed.
11817
11818 <result name="VBOX_E_INVALID_VM_STATE">
11819 Session state prevents operation.
11820 </result>
11821 <result name="VBOX_E_INVALID_OBJECT_STATE">
11822 Session type prevents operation.
11823 </result>
11824
11825 </desc>
11826 </method>
11827
11828 <method name="onFloppyDriveChange">
11829 <desc>
11830 Triggered when settings of the floppy drive object of the
11831 associated virtual machine have changed.
11832
11833 <result name="VBOX_E_INVALID_VM_STATE">
11834 Session state prevents operation.
11835 </result>
11836 <result name="VBOX_E_INVALID_OBJECT_STATE">
11837 Session type prevents operation.
11838 </result>
11839
11840 </desc>
11841 </method>
11842
11843 <method name="onNetworkAdapterChange">
11844 <desc>
11845 Triggered when settings of a network adapter of the
11846 associated virtual machine have changed.
11847
11848 <result name="VBOX_E_INVALID_VM_STATE">
11849 Session state prevents operation.
11850 </result>
11851 <result name="VBOX_E_INVALID_OBJECT_STATE">
11852 Session type prevents operation.
11853 </result>
11854
11855 </desc>
11856 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11857 </method>
11858
11859 <method name="onSerialPortChange">
11860 <desc>
11861 Triggered when settings of a serial port of the
11862 associated virtual machine have changed.
11863
11864 <result name="VBOX_E_INVALID_VM_STATE">
11865 Session state prevents operation.
11866 </result>
11867 <result name="VBOX_E_INVALID_OBJECT_STATE">
11868 Session type prevents operation.
11869 </result>
11870
11871 </desc>
11872 <param name="serialPort" type="ISerialPort" dir="in"/>
11873 </method>
11874
11875 <method name="onParallelPortChange">
11876 <desc>
11877 Triggered when settings of a parallel port of the
11878 associated virtual machine have changed.
11879
11880 <result name="VBOX_E_INVALID_VM_STATE">
11881 Session state prevents operation.
11882 </result>
11883 <result name="VBOX_E_INVALID_OBJECT_STATE">
11884 Session type prevents operation.
11885 </result>
11886
11887 </desc>
11888 <param name="parallelPort" type="IParallelPort" dir="in"/>
11889 </method>
11890
11891 <method name="onVRDPServerChange">
11892 <desc>
11893 Triggered when settings of the VRDP server object of the
11894 associated virtual machine have changed.
11895
11896 <result name="VBOX_E_INVALID_VM_STATE">
11897 Session state prevents operation.
11898 </result>
11899 <result name="VBOX_E_INVALID_OBJECT_STATE">
11900 Session type prevents operation.
11901 </result>
11902
11903 </desc>
11904 </method>
11905
11906 <method name="onUSBControllerChange">
11907 <desc>
11908 Triggered when settings of the USB controller object of the
11909 associated virtual machine have changed.
11910
11911 <result name="VBOX_E_INVALID_VM_STATE">
11912 Session state prevents operation.
11913 </result>
11914 <result name="VBOX_E_INVALID_OBJECT_STATE">
11915 Session type prevents operation.
11916 </result>
11917
11918 </desc>
11919 </method>
11920
11921 <method name="onSharedFolderChange">
11922 <desc>
11923 Triggered when a permanent (global or machine) shared folder has been
11924 created or removed.
11925 <note>
11926 We don't pass shared folder parameters in this notification because
11927 the order in which parallel notifications are delivered is not defined,
11928 therefore it could happen that these parameters were outdated by the
11929 time of processing this notification.
11930 </note>
11931
11932 <result name="VBOX_E_INVALID_VM_STATE">
11933 Session state prevents operation.
11934 </result>
11935 <result name="VBOX_E_INVALID_OBJECT_STATE">
11936 Session type prevents operation.
11937 </result>
11938
11939 </desc>
11940 <param name="global" type="boolean" dir="in"/>
11941 </method>
11942
11943 <method name="onUSBDeviceAttach">
11944 <desc>
11945 Triggered when a request to capture a USB device (as a result
11946 of matched USB filters or direct call to
11947 <link to="IConsole::attachUSBDevice"/>) has completed.
11948 A @c null @a error object means success, otherwise it
11949 describes a failure.
11950
11951 <result name="VBOX_E_INVALID_VM_STATE">
11952 Session state prevents operation.
11953 </result>
11954 <result name="VBOX_E_INVALID_OBJECT_STATE">
11955 Session type prevents operation.
11956 </result>
11957
11958 </desc>
11959 <param name="device" type="IUSBDevice" dir="in"/>
11960 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11961 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
11962 </method>
11963
11964 <method name="onUSBDeviceDetach">
11965 <desc>
11966 Triggered when a request to release the USB device (as a result
11967 of machine termination or direct call to
11968 <link to="IConsole::detachUSBDevice"/>) has completed.
11969 A @c null @a error object means success, otherwise it
11970
11971 <result name="VBOX_E_INVALID_VM_STATE">
11972 Session state prevents operation.
11973 </result>
11974 <result name="VBOX_E_INVALID_OBJECT_STATE">
11975 Session type prevents operation.
11976 </result>
11977
11978 </desc>
11979 <param name="id" type="uuid" dir="in"/>
11980 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11981 </method>
11982
11983 <method name="onShowWindow">
11984 <desc>
11985 Called by <link to="IMachine::canShowConsoleWindow"/> and by
11986 <link to="IMachine::showConsoleWindow"/> in order to notify
11987 console callbacks
11988 <link to="IConsoleCallback::onCanShowWindow"/>
11989 and <link to="IConsoleCallback::onShowWindow"/>.
11990
11991 <result name="VBOX_E_INVALID_OBJECT_STATE">
11992 Session type prevents operation.
11993 </result>
11994
11995 </desc>
11996 <param name="check" type="boolean" dir="in"/>
11997 <param name="canShow" type="boolean" dir="out"/>
11998 <param name="winId" type="unsigned long long" dir="out"/>
11999 </method>
12000
12001 <method name="accessGuestProperty">
12002 <desc>
12003 Called by <link to="IMachine::getGuestProperty"/> and by
12004 <link to="IMachine::setGuestProperty"/> in order to read and
12005 modify guest properties.
12006
12007 <result name="VBOX_E_INVALID_VM_STATE">
12008 Machine session is not open.
12009 </result>
12010 <result name="VBOX_E_INVALID_OBJECT_STATE">
12011 Session type is not direct.
12012 </result>
12013
12014 </desc>
12015 <param name="name" type="wstring" dir="in"/>
12016 <param name="value" type="wstring" dir="in"/>
12017 <param name="flags" type="wstring" dir="in"/>
12018 <param name="isSetter" type="boolean" dir="in"/>
12019 <param name="retValue" type="wstring" dir="out"/>
12020 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12021 <param name="retFlags" type="wstring" dir="out"/>
12022 </method>
12023
12024 <method name="enumerateGuestProperties">
12025 <desc>
12026 Return a list of the guest properties matching a set of patterns along
12027 with their values, time stamps and flags.
12028
12029 <result name="VBOX_E_INVALID_VM_STATE">
12030 Machine session is not open.
12031 </result>
12032 <result name="VBOX_E_INVALID_OBJECT_STATE">
12033 Session type is not direct.
12034 </result>
12035
12036 </desc>
12037 <param name="patterns" type="wstring" dir="in">
12038 <desc>
12039 The patterns to match the properties against as a comma-separated
12040 string. If this is empty, all properties currently set will be
12041 returned.
12042 </desc>
12043 </param>
12044 <param name="key" type="wstring" dir="out" safearray="yes">
12045 <desc>
12046 The key names of the properties returned.
12047 </desc>
12048 </param>
12049 <param name="value" type="wstring" dir="out" safearray="yes">
12050 <desc>
12051 The values of the properties returned. The array entries match the
12052 corresponding entries in the @a key array.
12053 </desc>
12054 </param>
12055 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12056 <desc>
12057 The time stamps of the properties returned. The array entries match
12058 the corresponding entries in the @a key array.
12059 </desc>
12060 </param>
12061 <param name="flags" type="wstring" dir="out" safearray="yes">
12062 <desc>
12063 The flags of the properties returned. The array entries match the
12064 corresponding entries in the @a key array.
12065 </desc>
12066 </param>
12067 </method>
12068
12069 </interface>
12070
12071 <interface
12072 name="ISession" extends="$dispatched"
12073 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12074 wsmap="managed"
12075 >
12076 <desc>
12077 The ISession interface represents a serialization primitive for virtual
12078 machines.
12079
12080 With VirtualBox, every time one wishes to manipulate a virtual machine
12081 (e.g. change its settings or start execution), a session object is
12082 required. Such an object must be passed to one of the session methods
12083 that open the given session, which then initiates the machine manipulation.
12084
12085 A session serves several purposes: it identifies to the inter-process VirtualBox
12086 code which process is currently working with the virtual machine, and it ensures
12087 that there are no incompatible requests from several processes for the
12088 same virtual machine. Session objects can therefore be thought of as mutex
12089 semaphores that lock virtual machines to prevent conflicting accesses from
12090 several processes.
12091
12092 How sessions objects are used depends on whether you use the Main API
12093 via COM or via the webservice:
12094
12095 <ul>
12096 <li>When using the COM API directly, an object of the Session class from the
12097 VirtualBox type library needs to be created. In regular COM C++ client code,
12098 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12099 This object will then act as a local session object in further calls to open
12100 a session.
12101 </li>
12102
12103 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12104 one session object automatically when <link to="IWebsessionManager::logon" />
12105 is called. A managed object reference to that session object can be retrieved by
12106 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12107 reference can then be used to open sessions.
12108 </li>
12109 </ul>
12110
12111 Sessions are mainly used in two variations:
12112
12113 <ul>
12114 <li>
12115 To start a virtual machine in a separate process, one would call
12116 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12117 object as its first parameter. This session then identifies the caller
12118 and lets him control the started machine (for example, pause machine
12119 execution or power it down) as well as be notified about machine
12120 execution state changes.
12121 </li>
12122
12123 <li>To alter machine settings, or to start machine execution within the
12124 current process, one needs to open a direct session for the machine first by
12125 calling <link to="IVirtualBox::openSession"/>. While a direct session
12126 is open within one process, no any other process may open another direct
12127 session for the same machine. This prevents the machine from being changed
12128 by other processes while it is running or while the machine is being configured.
12129 </li>
12130 </ul>
12131
12132 One also can attach to an existing direct session already opened by
12133 another process (for example, in order to send a control request to the
12134 virtual machine such as the pause or the reset request). This is done by
12135 calling <link to="IVirtualBox::openExistingSession"/>.
12136
12137 <note>
12138 Unless you are trying to write a new VirtualBox front-end that
12139 performs direct machine execution (like the VirtualBox or VBoxSDL
12140 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12141 session opened by <link to="IVirtualBox::openSession"/> and use this
12142 session only to change virtual machine settings. If you simply want to
12143 start virtual machine execution using one of the existing front-ends
12144 (for example the VirtualBox GUI or headless server), simply use
12145 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12146 will power up the machine automatically for you.
12147 </note>
12148 </desc>
12149
12150 <attribute name="state" type="SessionState" readonly="yes">
12151 <desc>Current state of this session.</desc>
12152 </attribute>
12153
12154 <attribute name="type" type="SessionType" readonly="yes">
12155 <desc>
12156 Type of this session. The value of this attribute is valid only
12157 if the session is currently open (i.e. its #state is
12158 SessionType_SessionOpen), otherwise an error will be returned.
12159 </desc>
12160 </attribute>
12161
12162 <attribute name="machine" type="IMachine" readonly="yes">
12163 <desc>Machine object associated with this session.</desc>
12164 </attribute>
12165
12166 <attribute name="console" type="IConsole" readonly="yes">
12167 <desc>Console object associated with this session.</desc>
12168 </attribute>
12169
12170 <method name="close">
12171 <desc>
12172 Closes a session that was previously opened.
12173
12174 It is recommended that every time an "open session" method (such as
12175 <link to="IVirtualBox::openRemoteSession" /> or
12176 <link to="IVirtualBox::openSession" />) has been called to
12177 manipulate a virtual machine, the caller invoke
12178 ISession::close() when it's done doing so. Since sessions are
12179 serialization primitives much like ordinary mutexes, they are
12180 best used the same way: for each "open" call, there should be
12181 a matching "close" call, even when errors occur.
12182
12183 Otherwise, if a direct session for a machine opened with
12184 <link to="IVirtualBox::openSession"/> is not explicitly closed
12185 when the application terminates, the state of the machine will
12186 be set to <link to="MachineState_Aborted" /> on the server.
12187
12188 Generally, it is recommended to close all open sessions explicitly
12189 before terminating the application (regardless of the reason for
12190 the termination).
12191
12192 <note>
12193 Do not expect the session state (<link to="ISession::state" />
12194 to return to "Closed" immediately after you invoke
12195 ISession::close(), particularly if you have started a remote
12196 session to execute the VM in a new process. The session state will
12197 automatically return to "Closed" once the VM is no longer executing,
12198 which can of course take a very long time.
12199 </note>
12200
12201 <result name="E_UNEXPECTED">
12202 Session is not open.
12203 </result>
12204
12205 </desc>
12206 </method>
12207
12208 </interface>
12209
12210 <!--
12211 // ISATAController
12212 /////////////////////////////////////////////////////////////////////////
12213 -->
12214
12215 <interface
12216 name="ISATAController" extends="$unknown"
12217 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12218 wsmap="managed"
12219 >
12220 <attribute name="enabled" type="boolean">
12221 <desc>
12222 Flag whether the SATA controller is present in the
12223 guest system. If disabled, the virtual guest hardware will
12224 not contain any SATA controller. Can only be changed when
12225 the VM is powered off.
12226 </desc>
12227 </attribute>
12228
12229 <attribute name="portCount" type="unsigned long">
12230 <desc>
12231 The number of usable ports on the SATA controller.
12232 It ranges from 1 to 30.
12233 </desc>
12234 </attribute>
12235
12236 <method name="GetIDEEmulationPort">
12237 <desc>
12238 Gets the corresponding port number which is emulated as an IDE device.
12239
12240 <result name="E_INVALIDARG">
12241 The @a devicePosition is not in the range 0 to 3.
12242 </result>
12243
12244 </desc>
12245 <param name="devicePosition" type="long" dir="in"/>
12246 <param name="portNumber" type="long" dir="return"/>
12247 </method>
12248
12249 <method name="SetIDEEmulationPort">
12250 <desc>
12251 Sets the port number which is emulated as an IDE device.
12252
12253 <result name="E_INVALIDARG">
12254 The @a devicePosition is not in the range 0 to 3 or the
12255 @a portNumber is not in the range 0 to 29.
12256 </result>
12257
12258 </desc>
12259 <param name="devicePosition" type="long" dir="in"/>
12260 <param name="portNumber" type="long" dir="in"/>
12261 </method>
12262
12263 </interface>
12264
12265<if target="wsdl">
12266
12267 <!--
12268 // IManagedObjectRef
12269 /////////////////////////////////////////////////////////////////////////
12270 -->
12271
12272 <interface
12273 name="IManagedObjectRef" extends="$unknown"
12274 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12275 internal="yes"
12276 wsmap="managed"
12277 wscpp="hardcoded"
12278 >
12279 <desc>
12280 Managed object reference.
12281
12282 Only within the webservice, a managed object reference (which is really
12283 an opaque number) allows a webservice client to address an object
12284 that lives in the address space of the webservice server.
12285
12286 Behind each managed object reference, there is a COM object that lives
12287 in the webservice server's address space. The COM object is not freed
12288 until the managed object reference is released, either by an explicit
12289 call to <link to="IManagedObjectRef::release" /> or by logging off from
12290 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12291 all objects created during the webservice session.
12292
12293 Whenever a method call of the VirtualBox API returns a COM object, the
12294 webservice representation of that method will instead return a
12295 managed object reference, which can then be used to invoke methods
12296 on that object.
12297 </desc>
12298
12299 <method name="getInterfaceName">
12300 <desc>
12301 Returns the name of the interface that this managed object represents,
12302 for example, "IMachine", as a string.
12303 </desc>
12304 <param name="return" type="wstring" dir="return"/>
12305 </method>
12306
12307 <method name="release">
12308 <desc>
12309 Releases this managed object reference and frees the resources that
12310 were allocated for it in the webservice server process. After calling
12311 this method, the identifier of the reference can no longer be used.
12312 </desc>
12313 </method>
12314
12315 </interface>
12316
12317 <!--
12318 // IWebsessionManager
12319 /////////////////////////////////////////////////////////////////////////
12320 -->
12321
12322 <interface
12323 name="IWebsessionManager" extends="$unknown"
12324 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12325 internal="yes"
12326 wsmap="global"
12327 wscpp="hardcoded"
12328 >
12329 <desc>
12330 Websession manager. This provides essential services
12331 to webservice clients.
12332 </desc>
12333 <method name="logon">
12334 <desc>
12335 Logs a new client onto the webservice and returns a managed object reference to
12336 the IVirtualBox instance, which the client can then use as a basis to further
12337 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12338 interface, in one way or the other.
12339 </desc>
12340 <param name="username" type="wstring" dir="in"/>
12341 <param name="password" type="wstring" dir="in"/>
12342 <param name="return" type="IVirtualBox" dir="return"/>
12343 </method>
12344
12345 <method name="getSessionObject">
12346 <desc>
12347 Returns a managed object reference to the internal ISession object that was created
12348 for this web service session when the client logged on.
12349
12350 <see>ISession</see>
12351 </desc>
12352 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12353 <param name="return" type="ISession" dir="return"/>
12354 </method>
12355
12356 <method name="logoff">
12357 <desc>
12358 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12359 and destroys all resources associated with the session (most importantly, all
12360 managed objects created in the server while the session was active).
12361 </desc>
12362 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12363 </method>
12364
12365 </interface>
12366
12367</if>
12368
12369 <!--
12370 // IPerformanceCollector & friends
12371 /////////////////////////////////////////////////////////////////////////
12372 -->
12373
12374 <interface
12375 name="IPerformanceMetric" extends="$unknown"
12376 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12377 >
12378 <desc>
12379 The IPerformanceMetric interface represents parameters of the given
12380 performance metric.
12381 </desc>
12382
12383 <attribute name="metricName" type="wstring" readonly="yes">
12384 <desc>
12385 Name of the metric.
12386 </desc>
12387 </attribute>
12388
12389 <attribute name="object" type="$unknown" readonly="yes">
12390 <desc>
12391 Object this metric belongs to.
12392 </desc>
12393 </attribute>
12394
12395 <attribute name="description" type="wstring" readonly="yes">
12396 <desc>
12397 Textual description of the metric.
12398 </desc>
12399 </attribute>
12400
12401 <attribute name="period" type="unsigned long" readonly="yes">
12402 <desc>
12403 Time interval between samples, measured in seconds.
12404 </desc>
12405 </attribute>
12406
12407 <attribute name="count" type="unsigned long" readonly="yes">
12408 <desc>
12409 Number of recent samples retained by the performance collector for this
12410 metric.
12411
12412 When the collected sample count exceeds this number, older samples
12413 are discarded.
12414 </desc>
12415 </attribute>
12416
12417 <attribute name="unit" type="wstring" readonly="yes">
12418 <desc>
12419 Unit of measurement.
12420 </desc>
12421 </attribute>
12422
12423 <attribute name="minimumValue" type="long" readonly="yes">
12424 <desc>
12425 Minimum possible value of this metric.
12426 </desc>
12427 </attribute>
12428
12429 <attribute name="maximumValue" type="long" readonly="yes">
12430 <desc>
12431 Maximum possible value of this metric.
12432 </desc>
12433 </attribute>
12434 </interface>
12435
12436 <interface
12437 name="IPerformanceCollector" extends="$unknown"
12438 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12439 wsmap="managed"
12440 >
12441 <desc>
12442 The IPerformanceCollector interface represents a service that collects and
12443 stores performance metrics data.
12444
12445 Performance metrics are associated with objects like IHost and
12446 IMachine. Each object has a distinct set of performance metrics.
12447 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12448
12449 Metric data are collected at the specified intervals and are retained
12450 internally. The interval and the number of samples retained can be set
12451 with <link to="IPerformanceCollector::setupMetrics" />.
12452
12453 Metrics are organized hierarchically, each level separated by slash (/).
12454 General scheme for metric name is
12455 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12456 metric name stands for: CPU category, Load metric, User submetric, average
12457 aggregate. An aggregate function is computed over all retained data. Valid
12458 aggregate functions are:
12459
12460 <ul>
12461 <li>avg -- average</li>
12462 <li>min -- minimum</li>
12463 <li>max -- maximum</li>
12464 </ul>
12465
12466 "Category/Metric" together form base metric name. A base metric is the
12467 smallest unit for which a sampling interval and the number of retained
12468 samples can be set. Only base metrics can be enabled and disabled. All
12469 sub-metrics are collected when their base metric is collected.
12470 Collected values for any set of sub-metrics can be queried with
12471 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12472 metric parameters, querying metric data, enabling or disabling metrics
12473 wildcards can be used in metric names to specify a subset of metrics. For
12474 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12475 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12476 values without aggregates <tt>*:</tt> can be used.
12477
12478 The valid names for base metrics are:
12479
12480 <ul>
12481 <li>CPU/Load</li>
12482 <li>CPU/MHz</li>
12483 <li>RAM/Usage</li>
12484 </ul>
12485
12486 The general sequence for collecting and retrieving the metrics is:
12487 <ul>
12488 <li>
12489 Obtain an instance of IPerformanceCollector with
12490 <link to="IVirtualBox::performanceCollector" />
12491 </li>
12492 <li>
12493 Allocate and populate an array with references to objects the metrics
12494 will be collected for. Use references to IHost and IMachine objects.
12495 </li>
12496 <li>
12497 Allocate and populate an array with base metric names the data will be
12498 collected for.
12499 </li>
12500 <li>
12501 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12502 metric data will be collected and stored.
12503 </li>
12504 <li>
12505 Wait for the data to get collected.
12506 </li>
12507 <li>
12508 Allocate and populate an array with references to objects the metric
12509 values will be queried for. You can re-use the object array used for
12510 setting base metrics.
12511 </li>
12512 <li>
12513 Allocate and populate an array with metric names the data will be
12514 collected for. Note that metric names differ from base metric names.
12515 </li>
12516 <li>
12517 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12518 have been collected so far are returned. Note that the values are still
12519 retained internally and data collection continues.
12520 </li>
12521 </ul>
12522
12523 For an example of usage refer to the following files in VirtualBox SDK:
12524 <ul>
12525 <li>
12526 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12527 </li>
12528 <li>
12529 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12530 </li>
12531 </ul>
12532 </desc>
12533
12534 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12535 <desc>
12536 Array of unique names of metrics.
12537
12538 This array represents all metrics supported by the performance
12539 collector. Individual objects do not necessarily support all of them.
12540 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12541 list of supported metrics for a particular object.
12542 </desc>
12543 </attribute>
12544
12545 <method name="getMetrics">
12546 <desc>
12547 Returns parameters of specified metrics for a set of objects.
12548 <note>
12549 @c Null metrics array means all metrics. @c Null object array means
12550 all existing objects.
12551 </note>
12552 </desc>
12553 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12554 <desc>
12555 Metric name filter. Currently, only a comma-separated list of metrics
12556 is supported.
12557 </desc>
12558 </param>
12559 <param name="objects" type="$unknown" dir="in" safearray="yes">
12560 <desc>
12561 Set of objects to return metric parameters for.
12562 </desc>
12563 </param>
12564 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12565 <desc>
12566 Array of returned metric parameters.
12567 </desc>
12568 </param>
12569 </method>
12570
12571 <method name="setupMetrics">
12572 <desc>
12573 Sets parameters of specified base metrics for a set of objects. Returns
12574 an array of <link to="IPerformanceMetric" /> describing the metrics have
12575 been affected.
12576 <note>
12577 @c Null or empty metric name array means all metrics. @c Null or empty
12578 object array means all existing objects. If metric name array contains
12579 a single element and object array contains many, the single metric
12580 name array element is applied to each object array element to form
12581 metric/object pairs.
12582 </note>
12583 </desc>
12584 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12585 <desc>
12586 Metric name filter. Comma-separated list of metrics with wildcard
12587 support.
12588 </desc>
12589 </param>
12590 <param name="objects" type="$unknown" dir="in" safearray="yes">
12591 <desc>
12592 Set of objects to setup metric parameters for.
12593 </desc>
12594 </param>
12595 <param name="period" type="unsigned long" dir="in">
12596 <desc>
12597 Time interval in seconds between two consecutive samples of performance
12598 data.
12599 </desc>
12600 </param>
12601 <param name="count" type="unsigned long" dir="in">
12602 <desc>
12603 Number of samples to retain in performance data history. Older samples
12604 get discarded.
12605 </desc>
12606 </param>
12607 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12608 <desc>
12609 Array of metrics that have been modified by the call to this method.
12610 </desc>
12611 </param>
12612 </method>
12613
12614 <method name="enableMetrics">
12615 <desc>
12616 Turns on collecting specified base metrics. Returns an array of
12617 <link to="IPerformanceMetric" /> describing the metrics have been
12618 affected.
12619 <note>
12620 @c Null or empty metric name array means all metrics. @c Null or empty
12621 object array means all existing objects. If metric name array contains
12622 a single element and object array contains many, the single metric
12623 name array element is applied to each object array element to form
12624 metric/object pairs.
12625 </note>
12626 </desc>
12627 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12628 <desc>
12629 Metric name filter. Comma-separated list of metrics with wildcard
12630 support.
12631 </desc>
12632 </param>
12633 <param name="objects" type="$unknown" dir="in" safearray="yes">
12634 <desc>
12635 Set of objects to enable metrics for.
12636 </desc>
12637 </param>
12638 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12639 <desc>
12640 Array of metrics that have been modified by the call to this method.
12641 </desc>
12642 </param>
12643 </method>
12644
12645 <method name="disableMetrics">
12646 <desc>
12647 Turns off collecting specified base metrics. Returns an array of
12648 <link to="IPerformanceMetric" /> describing the metrics have been
12649 affected.
12650 <note>
12651 @c Null or empty metric name array means all metrics. @c Null or empty
12652 object array means all existing objects. If metric name array contains
12653 a single element and object array contains many, the single metric
12654 name array element is applied to each object array element to form
12655 metric/object pairs.
12656 </note>
12657 </desc>
12658 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12659 <desc>
12660 Metric name filter. Comma-separated list of metrics with wildcard
12661 support.
12662 </desc>
12663 </param>
12664 <param name="objects" type="$unknown" dir="in" safearray="yes">
12665 <desc>
12666 Set of objects to disable metrics for.
12667 </desc>
12668 </param>
12669 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12670 <desc>
12671 Array of metrics that have been modified by the call to this method.
12672 </desc>
12673 </param>
12674 </method>
12675
12676 <method name="queryMetricsData">
12677 <desc>
12678 Queries collected metrics data for a set of objects.
12679
12680 The data itself and related metric information are returned in seven
12681 parallel and one flattened array of arrays. Elements of
12682 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12683 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12684 the same index describe one set of values corresponding to a single
12685 metric.
12686
12687 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12688 start and length of a sub-array is indicated by
12689 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12690 value for metric <tt>metricNames[i]</tt> is at
12691 <tt>returnData[returnIndices[i]]</tt>.
12692
12693 <note>
12694 @c Null or empty metric name array means all metrics. @c Null or empty
12695 object array means all existing objects. If metric name array contains
12696 a single element and object array contains many, the single metric
12697 name array element is applied to each object array element to form
12698 metric/object pairs.
12699 </note>
12700 <note>
12701 Data collection continues behind the scenes after call to
12702 @c queryMetricsData. The return data can be seen as the snapshot of
12703 the current state at the time of @c queryMetricsData call. The
12704 internally kept metric values are not cleared by the call. This makes
12705 possible querying different subsets of metrics or aggregates with
12706 subsequent calls. If periodic querying is needed it is highly
12707 suggested to query the values with @c interval*count period to avoid
12708 confusion. This way a completely new set of data values will be
12709 provided by each query.
12710 </note>
12711 </desc>
12712 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12713 <desc>
12714 Metric name filter. Comma-separated list of metrics with wildcard
12715 support.
12716 </desc>
12717 </param>
12718 <param name="objects" type="$unknown" dir="in" safearray="yes">
12719 <desc>
12720 Set of objects to query metrics for.
12721 </desc>
12722 </param>
12723 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12724 <desc>
12725 Names of metrics returned in @c returnData.
12726 </desc>
12727 </param>
12728 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12729 <desc>
12730 Objects associated with metrics returned in @c returnData.
12731 </desc>
12732 </param>
12733 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12734 <desc>
12735 Units of measurement for each returned metric.
12736 </desc>
12737 </param>
12738 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12739 <desc>
12740 Divisor that should be applied to return values in order to get
12741 floating point values. For example:
12742 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12743 will retrieve the floating point value of i-th sample of the first
12744 metric.
12745 </desc>
12746 </param>
12747 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12748 <desc>
12749 Sequence numbers of the first elements of value sequences of particular metrics
12750 returned in @c returnData. For aggregate metrics it is the sequence number of
12751 the sample the aggregate started calculation from.
12752 </desc>
12753 </param>
12754 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12755 <desc>
12756 Indices of the first elements of value sequences of particular metrics
12757 returned in @c returnData.
12758 </desc>
12759 </param>
12760 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12761 <desc>
12762 Lengths of value sequences of particular metrics.
12763 </desc>
12764 </param>
12765 <param name="returnData" type="long" dir="return" safearray="yes">
12766 <desc>
12767 Flattened array of all metric data containing sequences of values for
12768 each metric.
12769 </desc>
12770 </param>
12771 </method>
12772
12773 </interface>
12774
12775 <module name="VBoxSVC" context="LocalServer">
12776 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12777 namespace="virtualbox.org">
12778 <interface name="IVirtualBox" default="yes"/>
12779 </class>
12780 </module>
12781
12782 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12783 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12784 namespace="virtualbox.org">
12785 <interface name="ISession" default="yes"/>
12786 </class>
12787 </module>
12788
12789</library>
12790
12791</idl>
12792
12793<!-- 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