VirtualBox

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

Last change on this file since 17581 was 17566, checked in by vboxsync, 16 years ago

OVF: implement NAT/Bridged network import/export; some network API documentation

  • Property svn:eol-style set to native
File size: 473.6 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="#read" /> (for import) or
2930 <link to="#write" /> (for export).
2931 This attribute is empty until one of these methods has been called.
2932 </desc>
2933 </attribute>
2934
2935 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2936 <desc>
2937 Array of virtual disk definitions. One such description exists for each
2938 disk definition in the OVF; each string array item represents one such piece of
2939 disk information, with the information fields separated by tab (\t) characters.
2940
2941 The caller should be prepared for additional fields being appended to
2942 this string in future versions of VirtualBox and therefore check for
2943 the number of tabs in the strings returned.
2944
2945 In the current version, the following eight fields are returned per string
2946 in the array:
2947
2948 <ol>
2949 <li>Disk ID (unique string identifier given to disk)</li>
2950
2951 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2952
2953 <li>Populated size (optional unsigned integer indicating the current size of the
2954 disk; can be approximate; -1 if unspecified)</li>
2955
2956 <li>Format (string identifying the disk format, typically
2957 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2958
2959 <li>Reference (where to find the disk image, typically a file name; if empty,
2960 then the disk should be created on import)</li>
2961
2962 <li>Image size (optional unsigned integer indicating the size of the image,
2963 which need not necessarily be the same as the values specified above, since
2964 the image may be compressed or sparse; -1 if not specified)</li>
2965
2966 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2967 presently unsupported and always -1)</li>
2968
2969 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2970 </ol>
2971 </desc>
2972 </attribute>
2973
2974 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2975 <desc> Array of virtual system descriptions. One such description is created
2976 for each virtual system found in the OVF.
2977 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2978 (for export) has been called.
2979 </desc>
2980 </attribute>
2981
2982 <method name="read">
2983 <desc>
2984 Reads an OVF file into the appliance object.
2985
2986 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2987 mere fact that this method returns successfully does not mean that VirtualBox supports all
2988 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2989 </desc>
2990 <param name="file" type="wstring" dir="in">
2991 <desc>
2992 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2993 on whether the appliance is distributed as a set of files or as a single file, respectively).
2994 </desc>
2995 </param>
2996 </method>
2997
2998 <method name="interpret">
2999 <desc>
3000 Interprets the OVF data that was read when the appliance was constructed. After
3001 calling this method, one can inspect the
3002 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3003 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3004 the appliance.
3005
3006 Calling this method is the second step of importing an appliance into VirtualBox;
3007 see <link to="IAppliance" /> for an overview.
3008 </desc>
3009 </method>
3010
3011 <method name="importMachines">
3012 <desc>
3013 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3014 and other interfaces that match the information contained in the appliance as
3015 closely as possible, as represented by the import instructions in the
3016 <link to="#virtualSystemDescriptions" /> array.
3017
3018 Calling this method is the final step of importing an appliance into VirtualBox;
3019 see <link to="IAppliance" /> for an overview.
3020
3021 Since importing the appliance will most probably involve copying and converting
3022 disk images, which can take a long time, this method operates asynchronously and
3023 returns an IProgress object to allow the caller to monitor the progress.
3024 </desc>
3025
3026 <param name="aProgress" type="IProgress" dir="return">
3027 <desc></desc>
3028 </param>
3029 </method>
3030
3031 <method name="write">
3032 <desc>
3033 Writes the contents of the appliance exports into a new OVF file.
3034
3035 Calling this method is the final step of exporting an appliance from VirtualBox;
3036 see <link to="IAppliance" /> for an overview.
3037
3038 Since importing the appliance will most probably involve copying and converting
3039 disk images, which can take a long time, this method operates asynchronously and
3040 returns an IProgress object to allow the caller to monitor the progress.
3041 </desc>
3042 <param name="path" type="wstring" dir="in">
3043 <desc>
3044 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3045 on whether the appliance is distributed as a set of files or as a single file, respectively).
3046 </desc>
3047 </param>
3048 <param name="aProgress" type="IProgress" dir="return">
3049 <desc></desc>
3050 </param>
3051 </method>
3052
3053 </interface>
3054
3055 <enum
3056 name="VirtualSystemDescriptionType"
3057 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3058 >
3059 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3060 a configuration value.</desc>
3061
3062 <const name="Ignore" value="1" />
3063 <const name="OS" value="2" />
3064 <const name="Name" value="3" />
3065 <const name="CPU" value="4" />
3066 <const name="Memory" value="5" />
3067 <const name="HardDiskControllerIDE" value="6" />
3068 <const name="HardDiskControllerSATA" value="7" />
3069 <const name="HardDiskControllerSCSI" value="8" />
3070 <const name="HardDiskImage" value="9" />
3071 <const name="Floppy" value="10" />
3072 <const name="CDROM" value="11" />
3073 <const name="NetworkAdapter" value="12" />
3074 <const name="USBController" value="13" />
3075 <const name="SoundCard" value="14" />
3076
3077 </enum>
3078
3079 <interface
3080 name="IVirtualSystemDescription" extends="$unknown"
3081 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3082 wsmap="managed"
3083 >
3084
3085 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3086 After <link to="IAppliance::interpret" /> has been called, that array contains
3087 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3088 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3089 into VirtualBox.
3090 </desc>
3091
3092 <attribute name="count" type="unsigned long" readonly="yes">
3093 <desc>Return the number of virtual system description entries.</desc>
3094 </attribute>
3095
3096 <method name="getDescription">
3097 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3098 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3099
3100 The list below identifies the value sets that are possible depending on the
3101 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3102 the array item with the same index in aOvfValues[] will contain the original value as contained
3103 in the OVF file (just for informational purposes), and the corresponding item in aVboxValues[]
3104 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3105 the aExtraConfigValues[] array item may also be used.
3106
3107 <ul>
3108 <li>
3109 "OS": the guest operating system type. There must be exactly one such array item on import. The
3110 corresponding item in aVboxValues[] contains the suggested guest operating system for VirtualBox.
3111 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3112 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3113 (see <link to="CIMOSType" />).
3114 </li>
3115 <li>
3116 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3117 if none is present on import, then an automatic name will be created from the operating system
3118 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3119 from the OVF file, and aVboxValues[] will contain a suggestion for a unique VirtualBox
3120 <link to="IMachine" /> name that does not exist yet.
3121 </li>
3122 <li>
3123 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3124 </li>
3125 <li>
3126 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3127 is present on import, then VirtualBox will set a meaningful default based on the operating system
3128 type.
3129 </li>
3130 <li>
3131 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3132 has no value in aOvfValues[] or aVboxValues[].
3133 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3134 type can use to specify which hard disk controller a virtual disk should be connected to.
3135 </li>
3136 <li>
3137 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3138 has no value in aOvfValues[] or aVboxValues[].
3139 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3140 </li>
3141 <li>
3142 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3143 The items in aOvfValues[] and aVboxValues[] will either be "LsiLogic" or "BusLogic".
3144 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3145 </li>
3146 <li>
3147 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3148 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3149
3150 The array item in aOvfValues[] will contain the file specification from the OVF file,
3151 whereas the item in aVboxValues[] will contain a qualified path specification to where
3152 VirtualBox uses the hard disk image. This means that on import the image will be copied
3153 and converted from the "ovf" location to the "vbox" location; on export, this will be
3154 handled the other way round. On import, the target image will also be registered with VirtualBox.
3155
3156 The matching item in the aExtraConfigValues[] array must contain a string of the following
3157 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3158 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3159 the image to. That number must be the index of an array item with one of the hard disk controller
3160 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3161 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3162 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3163 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3164 SCSI conrollers, the channel can range from 0-29.
3165 </li>
3166 <li>
3167 "NetworkAdapter": a network adapter. The array item in aVboxValues[] will specify the hardware
3168 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3169 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3170 </li>
3171 <li>
3172 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3173 present, sound support will be enabled for the new virtual machine. Note that the virtual
3174 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3175 may be different from the virtual soundcard expected by the appliance.
3176 </li>
3177 </ul>
3178
3179 </desc>
3180
3181 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3182 <desc></desc>
3183 </param>
3184
3185 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3186 <desc></desc>
3187 </param>
3188
3189 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3190 <desc></desc>
3191 </param>
3192
3193 <param name="aVboxValues" type="wstring" dir="out" safearray="yes">
3194 <desc></desc>
3195 </param>
3196
3197 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3198 <desc></desc>
3199 </param>
3200
3201 </method>
3202
3203 <method name="setFinalValues">
3204 <desc>
3205 This method allows the appliance's user to change the configuration for the virtual
3206 system descriptions. For each array item returned from <link to="getDescription" />,
3207 you must pass in one boolean value and one configuration value.
3208
3209 Each item in the boolean array determines whether the particular configuration item
3210 should be enabled.
3211 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3212 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3213 and SoundCard.
3214
3215 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3216 as returned in the aVboxValues and aExtraConfigValues arrays from getDescription(),
3217 the configuration remains unchanged. Please see the documentation for getDescription()
3218 for valid configuration values for the individual array item types. If the
3219 corresponding item in the aEnabled array is false, the configuration value is ignored.
3220 </desc>
3221
3222 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3223 <desc></desc>
3224 </param>
3225
3226 <param name="aVboxValues" type="wstring" dir="in" safearray="yes">
3227 <desc></desc>
3228 </param>
3229
3230 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3231 <desc></desc>
3232 </param>
3233 </method>
3234
3235 <method name="getWarnings">
3236 <desc>Returns textual warnings which occured during the virtual system
3237 interpretion.</desc>
3238
3239 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3240 <desc></desc>
3241 </param>
3242 </method>
3243
3244 </interface>
3245
3246
3247 <!--
3248 // IMachine
3249 /////////////////////////////////////////////////////////////////////////
3250 -->
3251
3252 <interface
3253 name="IInternalMachineControl" extends="$unknown"
3254 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3255 internal="yes"
3256 wsmap="suppress"
3257 >
3258 <method name="updateState">
3259 <desc>
3260 Updates the VM state.
3261 <note>
3262 This operation will also update the settings file with
3263 the correct information about the saved state file
3264 and delete this file from disk when appropriate.
3265 </note>
3266 </desc>
3267 <param name="state" type="MachineState" dir="in"/>
3268 </method>
3269
3270 <method name="getIPCId">
3271 <param name="id" type="wstring" dir="return"/>
3272 </method>
3273
3274 <method name="runUSBDeviceFilters">
3275 <desc>
3276 Asks the server to run USB devices filters of the associated
3277 machine against the given USB device and tell if there is
3278 a match.
3279 <note>
3280 Intended to be used only for remote USB devices. Local
3281 ones don't require to call this method (this is done
3282 implicitly by the Host and USBProxyService).
3283 </note>
3284 </desc>
3285 <param name="device" type="IUSBDevice" dir="in"/>
3286 <param name="matched" type="boolean" dir="out"/>
3287 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3288 </method>
3289
3290 <method name="captureUSBDevice">
3291 <desc>
3292 Requests a capture of the given host USB device.
3293 When the request is completed, the VM process will
3294 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3295 notification.
3296 </desc>
3297 <param name="id" type="uuid" dir="in"/>
3298 </method>
3299
3300 <method name="detachUSBDevice">
3301 <desc>
3302 Notification that a VM is going to detach (done = false) or has
3303 already detached (done = true) the given USB device.
3304 When the done = true request is completed, the VM process will
3305 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3306 notification.
3307 <note>
3308 In the done = true case, the server must run its own filters
3309 and filters of all VMs but this one on the detached device
3310 as if it were just attached to the host computer.
3311 </note>
3312 </desc>
3313 <param name="id" type="uuid" dir="in"/>
3314 <param name="done" type="boolean" dir="in"/>
3315 </method>
3316
3317 <method name="autoCaptureUSBDevices">
3318 <desc>
3319 Requests a capture all matching USB devices attached to the host.
3320 When the request is completed, the VM process will
3321 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3322 notification per every captured device.
3323 </desc>
3324 </method>
3325
3326 <method name="detachAllUSBDevices">
3327 <desc>
3328 Notification that a VM that is being powered down. The done
3329 parameter indicates whether which stage of the power down
3330 we're at. When done = false the VM is announcing its
3331 intentions, while when done = true the VM is reporting
3332 what it has done.
3333 <note>
3334 In the done = true case, the server must run its own filters
3335 and filters of all VMs but this one on all detach devices as
3336 if they were just attached to the host computer.
3337 </note>
3338 </desc>
3339 <param name="done" type="boolean" dir="in"/>
3340 </method>
3341
3342 <method name="onSessionEnd">
3343 <desc>
3344 Triggered by the given session object when the session is about
3345 to close normally.
3346 </desc>
3347 <param name="session" type="ISession" dir="in">
3348 <desc>Session that is being closed</desc>
3349 </param>
3350 <param name="progress" type="IProgress" dir="return">
3351 <desc>
3352 Used to wait until the corresponding machine is actually
3353 dissociated from the given session on the server.
3354 Returned only when this session is a direct one.
3355 </desc>
3356 </param>
3357 </method>
3358
3359 <method name="beginSavingState">
3360 <desc>
3361 Called by the VM process to inform the server it wants to
3362 save the current state and stop the VM execution.
3363 </desc>
3364 <param name="progress" type="IProgress" dir="in">
3365 <desc>
3366 Progress object created by the VM process to wait until
3367 the state is saved.
3368 </desc>
3369 </param>
3370 <param name="stateFilePath" type="wstring" dir="out">
3371 <desc>
3372 File path the VM process must save the execution state to.
3373 </desc>
3374 </param>
3375 </method>
3376
3377 <method name="endSavingState">
3378 <desc>
3379 Called by the VM process to inform the server that saving
3380 the state previously requested by #beginSavingState is either
3381 successfully finished or there was a failure.
3382
3383 <result name="VBOX_E_FILE_ERROR">
3384 Settings file not accessible.
3385 </result>
3386 <result name="VBOX_E_XML_ERROR">
3387 Could not parse the settings file.
3388 </result>
3389
3390 </desc>
3391
3392 <param name="success" type="boolean" dir="in">
3393 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3394 otherwise.
3395 </desc>
3396 </param>
3397 </method>
3398
3399 <method name="adoptSavedState">
3400 <desc>
3401 Gets called by IConsole::adoptSavedState.
3402 <result name="VBOX_E_FILE_ERROR">
3403 Invalid saved state file path.
3404 </result>
3405 </desc>
3406 <param name="savedStateFile" type="wstring" dir="in">
3407 <desc>Path to the saved state file to adopt.</desc>
3408 </param>
3409 </method>
3410
3411 <method name="beginTakingSnapshot">
3412 <desc>
3413 Called by the VM process to inform the server it wants to
3414 take a snapshot.
3415
3416 <result name="VBOX_E_FILE_ERROR">
3417 Settings file not accessible.
3418 </result>
3419 <result name="VBOX_E_XML_ERROR">
3420 Could not parse the settings file.
3421 </result>
3422 </desc>
3423 <param name="initiator" type="IConsole" dir="in">
3424 <desc>The console object that initiated this call.</desc>
3425 </param>
3426 <param name="name" type="wstring" dir="in">
3427 <desc>Snapshot name.</desc>
3428 </param>
3429 <param name="description" type="wstring" dir="in">
3430 <desc>Snapshot description.</desc>
3431 </param>
3432 <param name="progress" type="IProgress" dir="in">
3433 <desc>
3434 Progress object created by the VM process to wait until
3435 the state is saved (only for online snapshots).
3436 </desc>
3437 </param>
3438 <param name="stateFilePath" type="wstring" dir="out">
3439 <desc>
3440 File path the VM process must save the execution state to.
3441 </desc>
3442 </param>
3443 <param name="serverProgress" type="IProgress" dir="out">
3444 <desc>
3445 Progress object created by the server process to wait until
3446 the snapshot is taken (VDI diff creation, etc.).
3447 </desc>
3448 </param>
3449 </method>
3450
3451 <method name="endTakingSnapshot">
3452 <desc>
3453 Called by the VM process to inform the server that the snapshot
3454 previously requested by #beginTakingSnapshot is either
3455 successfully taken or there was a failure.
3456 </desc>
3457
3458 <param name="success" type="boolean" dir="in">
3459 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3460 </param>
3461 </method>
3462
3463 <method name="discardSnapshot">
3464 <desc>
3465 Gets called by IConsole::discardSnapshot.
3466 <result name="VBOX_E_INVALID_OBJECT_STATE">
3467 Snapshot has more than one child snapshot.
3468 </result>
3469 </desc>
3470 <param name="initiator" type="IConsole" dir="in">
3471 <desc>The console object that initiated this call.</desc>
3472 </param>
3473 <param name="id" type="uuid" dir="in">
3474 <desc>UUID of the snapshot to discard.</desc>
3475 </param>
3476 <param name="machineState" type="MachineState" dir="out">
3477 <desc>New machine state after this operation is started.</desc>
3478 </param>
3479 <param name="progress" type="IProgress" dir="return">
3480 <desc>Progress object to track the operation completion.</desc>
3481 </param>
3482 </method>
3483
3484 <method name="discardCurrentState">
3485 <desc>
3486 Gets called by IConsole::discardCurrentState.
3487 <result name="VBOX_E_INVALID_OBJECT_STATE">
3488 Virtual machine does not have any snapshot.
3489 </result>
3490 </desc>
3491 <param name="initiator" type="IConsole" dir="in">
3492 <desc>The console object that initiated this call.</desc>
3493 </param>
3494 <param name="machineState" type="MachineState" dir="out">
3495 <desc>New machine state after this operation is started.</desc>
3496 </param>
3497 <param name="progress" type="IProgress" dir="return">
3498 <desc>Progress object to track the operation completion.</desc>
3499 </param>
3500 </method>
3501
3502 <method name="discardCurrentSnapshotAndState">
3503 <desc>
3504 Gets called by IConsole::discardCurrentSnapshotAndState.
3505 <result name="VBOX_E_INVALID_OBJECT_STATE">
3506 Virtual machine does not have any snapshot.
3507 </result>
3508 </desc>
3509 <param name="initiator" type="IConsole" dir="in">
3510 <desc>The console object that initiated this call.</desc>
3511 </param>
3512 <param name="machineState" type="MachineState" dir="out">
3513 <desc>New machine state after this operation is started.</desc>
3514 </param>
3515 <param name="progress" type="IProgress" dir="return">
3516 <desc>Progress object to track the operation completion.</desc>
3517 </param>
3518 </method>
3519
3520 <method name="pullGuestProperties">
3521 <desc>
3522 Get the list of the guest properties matching a set of patterns along
3523 with their values, time stamps and flags and give responsibility for
3524 managing properties to the console.
3525 </desc>
3526 <param name="name" type="wstring" dir="out" safearray="yes">
3527 <desc>
3528 The names of the properties returned.
3529 </desc>
3530 </param>
3531 <param name="value" type="wstring" dir="out" safearray="yes">
3532 <desc>
3533 The values of the properties returned. The array entries match the
3534 corresponding entries in the @a name array.
3535 </desc>
3536 </param>
3537 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3538 <desc>
3539 The time stamps of the properties returned. The array entries match
3540 the corresponding entries in the @a name array.
3541 </desc>
3542 </param>
3543 <param name="flags" type="wstring" dir="out" safearray="yes">
3544 <desc>
3545 The flags of the properties returned. The array entries match the
3546 corresponding entries in the @a name array.
3547 </desc>
3548 </param>
3549 </method>
3550
3551 <method name="pushGuestProperties">
3552 <desc>
3553 Set the list of the guest properties matching a set of patterns along
3554 with their values, time stamps and flags and return responsibility for
3555 managing properties to IMachine.
3556 </desc>
3557 <param name="name" type="wstring" dir="in" safearray="yes">
3558 <desc>
3559 The names of the properties.
3560 </desc>
3561 </param>
3562 <param name="value" type="wstring" dir="in" safearray="yes">
3563 <desc>
3564 The values of the properties. The array entries match the
3565 corresponding entries in the @a name array.
3566 </desc>
3567 </param>
3568 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3569 <desc>
3570 The time stamps of the properties. The array entries match
3571 the corresponding entries in the @a name array.
3572 </desc>
3573 </param>
3574 <param name="flags" type="wstring" dir="in" safearray="yes">
3575 <desc>
3576 The flags of the properties. The array entries match the
3577 corresponding entries in the @a name array.
3578 </desc>
3579 </param>
3580 </method>
3581 <method name="pushGuestProperty">
3582 <desc>
3583 Update a single guest property in IMachine.
3584 </desc>
3585 <param name="name" type="wstring" dir="in">
3586 <desc>
3587 The name of the property to be updated.
3588 </desc>
3589 </param>
3590 <param name="value" type="wstring" dir="in">
3591 <desc>
3592 The value of the property.
3593 </desc>
3594 </param>
3595 <param name="timestamp" type="unsigned long long" dir="in">
3596 <desc>
3597 The timestamp of the property.
3598 </desc>
3599 </param>
3600 <param name="flags" type="wstring" dir="in">
3601 <desc>
3602 The flags of the property.
3603 </desc>
3604 </param>
3605 </method>
3606 </interface>
3607
3608 <interface
3609 name="IBIOSSettings" extends="$unknown"
3610 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3611 wsmap="managed"
3612 >
3613 <desc>
3614 The IBIOSSettings interface represents BIOS settings of the virtual
3615 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3616 </desc>
3617 <attribute name="logoFadeIn" type="boolean">
3618 <desc>Fade in flag for BIOS logo animation.</desc>
3619 </attribute>
3620
3621 <attribute name="logoFadeOut" type="boolean">
3622 <desc>Fade out flag for BIOS logo animation.</desc>
3623 </attribute>
3624
3625 <attribute name="logoDisplayTime" type="unsigned long">
3626 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3627 </attribute>
3628
3629 <attribute name="logoImagePath" type="wstring">
3630 <desc>Local file system path for external BIOS image.</desc>
3631 </attribute>
3632
3633 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3634 <desc>Mode of the BIOS boot device menu.</desc>
3635 </attribute>
3636
3637 <attribute name="ACPIEnabled" type="boolean">
3638 <desc>ACPI support flag.</desc>
3639 </attribute>
3640
3641 <attribute name="IOAPICEnabled" type="boolean">
3642 <desc>
3643 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3644 and support IRQs above 15.
3645 </desc>
3646 </attribute>
3647
3648 <attribute name="timeOffset" type="long long">
3649 <desc>
3650 Offset in milliseconds from the host system time. This allows for
3651 guests running with a different system date/time than the host.
3652 It is equivalent to setting the system date/time in the BIOS except
3653 it is not an absolute value but a relative one. Guest Additions
3654 time synchronization honors this offset.
3655 </desc>
3656 </attribute>
3657
3658 <attribute name="PXEDebugEnabled" type="boolean">
3659 <desc>
3660 PXE debug logging flag. If set, VirtualBox will write extensive
3661 PXE trace information to the release log.
3662 </desc>
3663 </attribute>
3664
3665 <attribute name="IDEControllerType" type="IDEControllerType">
3666 <desc>
3667 Type of the virtual IDE controller. Depending on this value,
3668 VirtualBox will provide different virtual IDE hardware
3669 devices to the guest.
3670 </desc>
3671 </attribute>
3672
3673 </interface>
3674
3675 <interface
3676 name="IMachine" extends="$unknown"
3677 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3678 wsmap="managed"
3679 >
3680 <desc>
3681 The IMachine interface represents a virtual machine, or guest, created
3682 in VirtualBox.
3683
3684 This interface is used in two contexts. First of all, a collection of
3685 objects implementing this interface is stored in the
3686 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3687 machines that are currently registered with this VirtualBox
3688 installation. Also, once a session has been opened for the given virtual
3689 machine (e.g. the virtual machine is running), the machine object
3690 associated with the open session can be queried from the session object;
3691 see <link to="ISession"/> for details.
3692
3693 The main role of this interface is to expose the settings of the virtual
3694 machine and provide methods to change various aspects of the virtual
3695 machine's configuration. For machine objects stored in the
3696 <link to="IVirtualBox::machines2"/> collection, all attributes are
3697 read-only unless explicitly stated otherwise in individual attribute
3698 and method descriptions. In order to change a machine setting, a session
3699 for this machine must be opened using one of
3700 <link to="IVirtualBox::openSession"/>,
3701 <link to="IVirtualBox::openRemoteSession"/> or
3702 <link to="IVirtualBox::openExistingSession"/> methods. After the
3703 session has been successfully opened, a mutable machine object needs to
3704 be queried from the session object and then the desired settings changes
3705 can be applied to the returned object using IMachine attributes and
3706 methods. See the ISession interface description for more information
3707 about sessions.
3708
3709 Note that the IMachine interface does not provide methods to control
3710 virtual machine execution (such as start the machine, or power it
3711 down) -- these methods are grouped in a separate IConsole
3712 interface. Refer to the IConsole interface description to get more
3713 information about this topic.
3714
3715 <see>ISession, IConsole</see>
3716 </desc>
3717
3718 <attribute name="parent" type="IVirtualBox" readonly="yes">
3719 <desc>Associated parent object.</desc>
3720 </attribute>
3721
3722 <attribute name="accessible" type="boolean" readonly="yes">
3723 <desc>
3724 Whether this virtual machine is currently accessible or not.
3725
3726 The machine is considered to be inaccessible when:
3727 <ul>
3728 <li>It is a registered virtual machine, and
3729 </li>
3730 <li>Its settings file is inaccessible (for example, it is
3731 located on a network share that is not accessible during
3732 VirtualBox startup, or becomes inaccessible later, or if
3733 the settings file can be read but is invalid).
3734 </li>
3735 </ul>
3736
3737 Otherwise, the value of this property is always <tt>true</tt>.
3738
3739 Every time this property is read, the accessibility state of
3740 this machine is re-evaluated. If the returned value is |false|,
3741 the <link to="#accessError"/> property may be used to get the
3742 detailed error information describing the reason of
3743 inaccessibility.
3744
3745 When the machine is inaccessible, only the following properties
3746 can be used on it:
3747 <ul>
3748 <li><link to="#parent"/></li>
3749 <li><link to="#id"/></li>
3750 <li><link to="#settingsFilePath"/></li>
3751 <li><link to="#accessible"/></li>
3752 <li><link to="#accessError"/></li>
3753 </ul>
3754
3755 An attempt to access any other property or method will return
3756 an error.
3757
3758 The only possible action you can perform on an inaccessible
3759 machine is to unregister it using the
3760 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3761 for the accessibility state once more by querying this
3762 property).
3763
3764 <note>
3765 In the current implementation, once this property returns
3766 <tt>true</tt>, the machine will never become inaccessible
3767 later, even if its settings file cannot be successfully
3768 read/written any more (at least, until the VirtualBox
3769 server is restarted). This limitation may be removed in
3770 future releases.
3771 </note>
3772 </desc>
3773 </attribute>
3774
3775 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3776 <desc>
3777 Error information describing the reason of machine
3778 inaccessibility.
3779
3780 Reading this property is only valid after the last call to
3781 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3782 machine is currently unaccessible). Otherwise, a null
3783 IVirtualBoxErrorInfo object will be returned.
3784 </desc>
3785 </attribute>
3786
3787 <attribute name="name" type="wstring">
3788 <desc>
3789 Name of the virtual machine.
3790
3791 Besides being used for human-readable identification purposes
3792 everywhere in VirtualBox, the virtual machine name is also used
3793 as a name of the machine's settings file and as a name of the
3794 subdirectory this settings file resides in. Thus, every time you
3795 change the value of this property, the settings file will be
3796 renamed once you call <link to="#saveSettings"/> to confirm the
3797 change. The containing subdirectory will be also renamed, but
3798 only if it has exactly the same name as the settings file
3799 itself prior to changing this property (for backward compatibility
3800 with previous API releases). The above implies the following
3801 limitations:
3802 <ul>
3803 <li>The machine name cannot be empty.</li>
3804 <li>The machine name can contain only characters that are valid
3805 file name characters according to the rules of the file
3806 system used to store VirtualBox configuration.</li>
3807 <li>You cannot have two or more machines with the same name
3808 if they use the same subdirectory for storing the machine
3809 settings files.</li>
3810 <li>You cannot change the name of the machine if it is running,
3811 or if any file in the directory containing the settings file
3812 is being used by another running machine or by any other
3813 process in the host operating system at a time when
3814 <link to="#saveSettings"/> is called.
3815 </li>
3816 </ul>
3817 If any of the above limitations are hit, <link to="#saveSettings"/>
3818 will return an appropriate error message explaining the exact
3819 reason and the changes you made to this machine will not be
3820 saved.
3821 <note>
3822 For "legacy" machines created using the
3823 <link to="IVirtualBox::createLegacyMachine"/> call,
3824 the above naming limitations do not apply because the
3825 machine name does not affect the settings file name.
3826 The settings file name remains the same as it was specified
3827 during machine creation and never changes.
3828 </note>
3829 </desc>
3830 </attribute>
3831
3832 <attribute name="description" type="wstring">
3833 <desc>
3834 Description of the virtual machine.
3835
3836 The description attribute can contain any text and is
3837 typically used to describe the hardware and software
3838 configuration of the virtual machine in detail (i.e. network
3839 settings, versions of the installed software and so on).
3840 </desc>
3841 </attribute>
3842
3843 <attribute name="id" type="uuid" readonly="yes">
3844 <desc>UUID of the virtual machine.</desc>
3845 </attribute>
3846
3847 <attribute name="OSTypeId" type="wstring">
3848 <desc>
3849 User-defined identifier of the Guest OS type.
3850 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3851 an IGuestOSType object representing details about the given
3852 Guest OS type.
3853 <note>
3854 This value may differ from the value returned by
3855 <link to="IGuest::OSTypeId"/> if Guest Additions are
3856 installed to the guest OS.
3857 </note>
3858 </desc>
3859 </attribute>
3860
3861 <attribute name="HardwareVersion" type="wstring">
3862 <desc>Hardware version identifier. Internal use only for now.</desc>
3863 </attribute>
3864
3865 <attribute name="CPUCount" type="unsigned long">
3866 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3867 </attribute>
3868
3869 <attribute name="memorySize" type="unsigned long">
3870 <desc>System memory size in megabytes.</desc>
3871 </attribute>
3872
3873 <attribute name="memoryBalloonSize" type="unsigned long">
3874 <desc>Initial memory balloon size in megabytes.</desc>
3875 </attribute>
3876
3877 <attribute name="statisticsUpdateInterval" type="unsigned long">
3878 <desc>Initial interval to update guest statistics in seconds.</desc>
3879 </attribute>
3880
3881 <attribute name="VRAMSize" type="unsigned long">
3882 <desc>Video memory size in megabytes.</desc>
3883 </attribute>
3884
3885 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3886 <desc>
3887 This setting determines whether VirtualBox allows guests to make use
3888 of the 3D graphics support available on the host. Currently limited
3889 to OpenGL only. </desc>
3890 </attribute>
3891
3892 <attribute name="monitorCount" type="unsigned long">
3893 <desc>
3894 Number of virtual monitors.
3895 <note>
3896 Only effective on Windows XP and later guests with
3897 Guest Additions installed.
3898 </note>
3899 </desc>
3900 </attribute>
3901
3902 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3903 <desc>Object containing all BIOS settings.</desc>
3904 </attribute>
3905
3906 <attribute name="HWVirtExEnabled" type="TSBool">
3907 <desc>
3908 This setting determines whether VirtualBox will try to make use of
3909 the host CPU's hardware virtualization extensions such as Intel VT-x
3910 and AMD-V. Note that in case such extensions are not available,
3911 they will not be used.
3912 </desc>
3913 </attribute>
3914
3915 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3916 <desc>
3917 This setting determines whether VirtualBox will try to make use of
3918 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3919 such extensions are not available, they will not be used.
3920 </desc>
3921 </attribute>
3922
3923 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3924 <desc>
3925 This setting determines whether VirtualBox will try to make use of
3926 the VPID extension of Intel VT-x. Note that in case such extensions are
3927 not available, they will not be used.
3928 </desc>
3929 </attribute>
3930
3931 <attribute name="PAEEnabled" type="boolean" default="false">
3932 <desc>
3933 This setting determines whether VirtualBox will expose the Physical Address
3934 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3935 is not available, it will not be reported.
3936 </desc>
3937 </attribute>
3938
3939 <attribute name="snapshotFolder" type="wstring">
3940 <desc>
3941 Full path to the directory used to store snapshot data
3942 (differencing hard disks and saved state files) of this machine.
3943
3944 The initial value of this property is
3945 <tt>&lt;</tt><link to="#settingsFilePath">
3946 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3947 <link to="#id">machine_uuid</link>
3948 <tt>&gt;</tt>.
3949
3950 Currently, it is an error to try to change this property on
3951 a machine that has snapshots (because this would require to
3952 move possibly large files to a different location).
3953 A separate method will be available for this purpose later.
3954
3955 <note>
3956 Setting this property to <tt>null</tt> will restore the
3957 initial value.
3958 </note>
3959 <note>
3960 When setting this property, the specified path can be
3961 absolute (full path) or relative to the directory where the
3962 <link to="#settingsFilePath">machine settings file</link>
3963 is located. When reading this property, a full path is
3964 always returned.
3965 </note>
3966 <note>
3967 The specified path may not exist, it will be created
3968 when necessary.
3969 </note>
3970 </desc>
3971 </attribute>
3972
3973 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3974 <desc>VRDP server object.</desc>
3975 </attribute>
3976
3977 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3978 <desc>Array of hard disks attached to this machine.</desc>
3979 </attribute>
3980
3981 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3982 <desc>Associated DVD drive object.</desc>
3983 </attribute>
3984
3985 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3986 <desc>Associated floppy drive object.</desc>
3987 </attribute>
3988
3989 <attribute name="USBController" type="IUSBController" readonly="yes">
3990 <desc>
3991 Associated USB controller object.
3992
3993 <note>
3994 This method may set a @ref com_warnings "warning result code".
3995 </note>
3996 <note>
3997 If USB functionality is not available in the given edition of
3998 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3999 </note>
4000 </desc>
4001 </attribute>
4002
4003 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4004 <desc>Associated audio adapter, always present.</desc>
4005 </attribute>
4006
4007 <attribute name="SATAController" type="ISATAController" readonly="yes">
4008 <desc>
4009 Associated SATA controller object.
4010 </desc>
4011 </attribute>
4012
4013 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4014 <desc>
4015 Full name of the file containing machine settings data.
4016 </desc>
4017 </attribute>
4018
4019 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4020 <desc>
4021 Current version of the format of the settings file of this machine
4022 (<link to="#settingsFilePath"/>).
4023
4024 The version string has the following format:
4025 <pre>
4026 x.y-platform
4027 </pre>
4028 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4029 versions, and <tt>platform</tt> is the platform identifier.
4030
4031 The current version usually matches the value of the
4032 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4033 settings file was created by an older version of VirtualBox and there
4034 was a change of the settings file format since then.
4035
4036 Note that VirtualBox automatically converts settings files from older
4037 versions to the most recent version when reading them (usually at
4038 VirtualBox startup) but it doesn't save the changes back until
4039 you call a method that implicitly saves settings (such as
4040 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4041 explicitly. Therefore, if the value of this attribute differs from the
4042 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4043 means that the settings file was converted but the result of the
4044 conversion is not yet saved to disk.
4045
4046 The above feature may be used by interactive front-ends to inform users
4047 about the settings file format change and offer them to explicitly save
4048 all converted settings files (the global and VM-specific ones),
4049 optionally create backup copies of the old settings files before saving,
4050 etc.
4051
4052 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4053 </desc>
4054 </attribute>
4055
4056 <attribute name="settingsModified" type="boolean" readonly="yes">
4057 <desc>
4058 Whether the settings of this machine have been modified
4059 (but neither yet saved nor discarded).
4060 <note>
4061 Reading this property is only valid on instances returned
4062 by <link to="ISession::machine"/> and on new machines
4063 created by <link to="IVirtualBox::createMachine"/> or opened
4064 by <link to="IVirtualBox::openMachine"/> but not
4065 yet registered, or on unregistered machines after calling
4066 <link to="IVirtualBox::unregisterMachine"/>. For all other
4067 cases, the settings can never be modified.
4068 </note>
4069 <note>
4070 For newly created unregistered machines, the value of this
4071 property is always TRUE until <link to="#saveSettings"/>
4072 is called (no matter if any machine settings have been
4073 changed after the creation or not). For opened machines
4074 the value is set to FALSE (and then follows to normal rules).
4075 </note>
4076 </desc>
4077 </attribute>
4078
4079 <attribute name="sessionState" type="SessionState" readonly="yes">
4080 <desc>Current session state for this machine.</desc>
4081 </attribute>
4082
4083 <attribute name="sessionType" type="wstring" readonly="yes">
4084 <desc>
4085 Type of the session. If <link to="#sessionState"/> is
4086 SessionSpawning or SessionOpen, this attribute contains the
4087 same value as passed to the
4088 <link to="IVirtualBox::openRemoteSession"/> method in the
4089 @a type parameter. If the session was opened directly using
4090 <link to="IVirtualBox::openSession"/>, or if
4091 <link to="#sessionState"/> is SessionClosed, the value of this
4092 attribute is @c null.
4093 </desc>
4094 </attribute>
4095
4096 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4097 <desc>
4098 Identifier of the session process. This attribute contains the
4099 platform-dependent identifier of the process that has opened a
4100 direct session for this machine using the
4101 <link to="IVirtualBox::openSession"/> call. The returned value
4102 is only valid if <link to="#sessionState"/> is SessionOpen or
4103 SessionClosing (i.e. a session is currently open or being
4104 closed) by the time this property is read.
4105 </desc>
4106 </attribute>
4107
4108 <attribute name="state" type="MachineState" readonly="yes">
4109 <desc>Current execution state of this machine.</desc>
4110 </attribute>
4111
4112 <attribute name="lastStateChange" type="long long" readonly="yes">
4113 <desc>
4114 Time stamp of the last execution state change,
4115 in milliseconds since 1970-01-01 UTC.
4116 </desc>
4117 </attribute>
4118
4119 <attribute name="stateFilePath" type="wstring" readonly="yes">
4120 <desc>
4121 Full path to the file that stores the execution state of
4122 the machine when it is in the <link to="MachineState_Saved"/> state.
4123 <note>
4124 When the machine is not in the Saved state, this attribute
4125 <tt>null</tt>.
4126 </note>
4127 </desc>
4128 </attribute>
4129
4130 <attribute name="logFolder" type="wstring" readonly="yes">
4131 <desc>
4132 Full path to the folder that stores a set of rotated log files
4133 recorded during machine execution. The most recent log file is
4134 named <tt>VBox.log</tt>, the previous log file is
4135 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4136 in the current version).
4137 </desc>
4138 </attribute>
4139
4140 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4141 <desc>
4142 Current snapshot of this machine.
4143 <note>
4144 A <tt>null</tt> object is returned if the machine doesn't
4145 have snapshots.
4146 </note>
4147 <see><link to="ISnapshot"/></see>
4148 </desc>
4149 </attribute>
4150
4151 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4152 <desc>
4153 Number of snapshots taken on this machine. Zero means the
4154 machine doesn't have any snapshots.
4155 </desc>
4156 </attribute>
4157
4158 <attribute name="currentStateModified" type="boolean" readonly="yes">
4159 <desc>
4160 Returns <tt>true</tt> if the current state of the machine is not
4161 identical to the state stored in the current snapshot.
4162
4163 The current state is identical to the current snapshot right
4164 after one of the following calls are made:
4165 <ul>
4166 <li><link to="IConsole::discardCurrentState"/> or
4167 <link to="IConsole::discardCurrentSnapshotAndState"/>
4168 </li>
4169 <li><link to="IConsole::takeSnapshot"/> (issued on a
4170 powered off or saved machine, for which
4171 <link to="#settingsModified"/> returns <tt>false</tt>)
4172 </li>
4173 <li><link to="IMachine::setCurrentSnapshot"/>
4174 </li>
4175 </ul>
4176
4177 The current state remains identical until one of the following
4178 happens:
4179 <ul>
4180 <li>settings of the machine are changed</li>
4181 <li>the saved state is discarded</li>
4182 <li>the current snapshot is discarded</li>
4183 <li>an attempt to execute the machine is made</li>
4184 </ul>
4185
4186 <note>
4187 For machines that don't have snapshots, this property is
4188 always <tt>false</tt>.
4189 </note>
4190 </desc>
4191 </attribute>
4192
4193 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4194 <desc>
4195 Collection of shared folders for this machine (permanent shared
4196 folders). These folders are shared automatically at machine startup
4197 and available only to the guest OS installed within this machine.
4198
4199 New shared folders are added to the collection using
4200 <link to="#createSharedFolder"/>. Existing shared folders can be
4201 removed using <link to="#removeSharedFolder"/>.
4202 </desc>
4203 </attribute>
4204
4205 <attribute name="clipboardMode" type="ClipboardMode">
4206 <desc>
4207 Synchronization mode between the host OS clipboard
4208 and the guest OS clipboard.
4209 </desc>
4210 </attribute>
4211
4212 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4213 <desc>
4214 A comma-separated list of simple glob patterns. Changes to guest
4215 properties whose name matches one of the patterns will generate an
4216 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4217 </desc>
4218 </attribute>
4219
4220 <method name="setBootOrder">
4221 <desc>
4222 Puts the given device to the specified position in
4223 the boot order.
4224
4225 To indicate that no device is associated with the given position,
4226 <link to="DeviceType_Null"/> should be used.
4227
4228 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4229
4230 <result name="E_INVALIDARG">
4231 Boot @a position out of range.
4232 </result>
4233 <result name="E_NOTIMPL">
4234 Booting from USB @a device currently not supported.
4235 </result>
4236
4237 </desc>
4238 <param name="position" type="unsigned long" dir="in">
4239 <desc>
4240 Position in the boot order (<tt>1</tt> to the total number of
4241 devices the machine can boot from, as returned by
4242 <link to="ISystemProperties::maxBootPosition"/>).
4243 </desc>
4244 </param>
4245 <param name="device" type="DeviceType" dir="in">
4246 <desc>
4247 The type of the device used to boot at the given position.
4248 </desc>
4249 </param>
4250 </method>
4251
4252 <method name="getBootOrder" const="yes">
4253 <desc>
4254 Returns the device type that occupies the specified
4255 position in the boot order.
4256
4257 @todo [remove?]
4258 If the machine can have more than one device of the returned type
4259 (such as hard disks), then a separate method should be used to
4260 retrieve the individual device that occupies the given position.
4261
4262 If here are no devices at the given position, then
4263 <link to="DeviceType_Null"/> is returned.
4264
4265 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4266
4267 <result name="E_INVALIDARG">
4268 Boot @a position out of range.
4269 </result>
4270
4271 </desc>
4272 <param name="position" type="unsigned long" dir="in">
4273 <desc>
4274 Position in the boot order (<tt>1</tt> to the total number of
4275 devices the machine can boot from, as returned by
4276 <link to="ISystemProperties::maxBootPosition"/>).
4277 </desc>
4278 </param>
4279 <param name="device" type="DeviceType" dir="return">
4280 <desc>
4281 Device at the given position.
4282 </desc>
4283 </param>
4284 </method>
4285
4286 <method name="attachHardDisk">
4287 <desc>
4288 Attaches a virtual hard disk identified by the given UUID @a id
4289 to a device slot of the specified bus.
4290
4291 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4292 specify the primary or secondary IDE controller, respectively. The
4293 SATA bus supports 30 channels, so this parameter can be a number
4294 ranging from @c 0 to @c 29.
4295
4296 For the primary controller of the IDE bus, the @a device number can be
4297 either @c 0 or @c 1, to specify the master or the slave device,
4298 respectively. For the secondary IDE controller, the device number is
4299 always @c 1 because the master device is reserved for the CD-ROM drive.
4300
4301 For the SATA bus, the @a device parameter is currently unused and
4302 must be @c 0.
4303
4304 The specified device slot must not have another disk attached to it, or
4305 this method will fail.
4306
4307 See <link to="IHardDisk"/> for more detailed information about
4308 attaching hard disks.
4309
4310 <note>
4311 You cannot attach a hard disk to a running machine. Also, you cannot
4312 attach a hard disk to a newly created machine until this machine's
4313 settings are saved to disk using <link to="#saveSettings"/>.
4314 </note>
4315 <note>
4316 If the hard disk is being attached indirectly, a new differencing hard
4317 disk will implicitly be created for it and attached instead. If the
4318 changes made to the machine settings (including this indirect
4319 attachment) are later cancelled using <link to="#discardSettings"/>,
4320 this implicitly created differencing hard disk will implicitly
4321 be deleted.
4322 </note>
4323
4324 <result name="E_INVALIDARG">
4325 SATA device, SATA channel, IDE channel or IDE slot out of range.
4326 </result>
4327 <result name="VBOX_E_INVALID_OBJECT_STATE">
4328 Attempt to attach hard disk to an unregistered virtual machine.
4329 </result>
4330 <result name="VBOX_E_INVALID_VM_STATE">
4331 Invalid machine state.
4332 </result>
4333 <result name="VBOX_E_OBJECT_IN_USE">
4334 Hard disk already attached to this or another virtual machine.
4335 </result>
4336
4337 </desc>
4338 <param name="id" type="uuid" dir="in">
4339 <desc>UUID of the hard disk to attach.</desc>
4340 </param>
4341 <param name="bus" type="StorageBus" dir="in">
4342 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4343 </param>
4344 <param name="channel" type="long" dir="in">
4345 <desc>Channel to attach the hard disk to.</desc>
4346 </param>
4347 <param name="device" type="long" dir="in">
4348 <desc>
4349 Device slot in the given channel to attach the hard disk to.
4350 </desc>
4351 </param>
4352 </method>
4353
4354 <method name="getHardDisk" const="yes">
4355 <desc>
4356 Returns the virtual hard disk attached to a device slot of the specified
4357 bus.
4358
4359 Note that if the hard disk was indirectly attached by
4360 <link to="#attachHardDisk"/> to the given device slot then this
4361 method will return not the same object as passed to the
4362 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4363 more detailed information about attaching hard disks.
4364
4365 <result name="VBOX_E_OBJECT_NOT_FOUND">
4366 No hard disk attached to given slot/bus.
4367 </result>
4368
4369 </desc>
4370 <param name="bus" type="StorageBus" dir="in">
4371 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4372 </param>
4373 <param name="channel" type="long" dir="in">
4374 <desc>Channel to query.</desc>
4375 </param>
4376 <param name="device" type="long" dir="in">
4377 <desc>Device slot in the given channel to query.</desc>
4378 </param>
4379 <param name="hardDisk" type="IHardDisk" dir="return">
4380 <desc>Attached hard disk object.</desc>
4381 </param>
4382 </method>
4383
4384 <method name="detachHardDisk">
4385 <desc>
4386 Detaches the virtual hard disk attached to a device slot of the
4387 specified bus.
4388
4389 Detaching the hard disk from the virtual machine is deferred. This means
4390 that the hard disk remains associated with the machine when this method
4391 returns and gets actually de-associated only after a successful
4392 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4393 for more detailed information about attaching hard disks.
4394
4395 <note>
4396 You cannot detach the hard disk from a running machine.
4397 </note>
4398 <note>
4399 Detaching differencing hard disks implicitly created by <link
4400 to="#attachHardDisk"/> for the indirect attachment using this
4401 method will <b>not</b> implicitly delete them. The
4402 <link to="IHardDisk::deleteStorage"/> operation should be
4403 explicitly performed by the caller after the hard disk is successfully
4404 detached and the settings are saved with
4405 <link to="#saveSettings"/>, if it is the desired action.
4406 </note>
4407
4408 <result name="VBOX_E_INVALID_VM_STATE">
4409 Attempt to detach hard disk from a running virtual machine.
4410 </result>
4411 <result name="VBOX_E_OBJECT_NOT_FOUND">
4412 No hard disk attached to given slot/bus.
4413 </result>
4414 <result name="VBOX_E_NOT_SUPPORTED">
4415 Hard disk format does not support storage deletion.
4416 </result>
4417
4418 </desc>
4419 <param name="bus" type="StorageBus" dir="in">
4420 <desc>Bus to detach the hard disk from.</desc>
4421 </param>
4422 <param name="channel" type="long" dir="in">
4423 <desc>Channel number to detach the hard disk from.</desc>
4424 </param>
4425 <param name="device" type="long" dir="in">
4426 <desc>Device slot number to detach the hard disk from.</desc>
4427 </param>
4428 </method>
4429
4430 <method name="getNetworkAdapter" const="yes">
4431 <desc>
4432 Returns the network adapter associated with the given slot.
4433 Slots are numbered sequentially, starting with zero. The total
4434 number of adapters per machine is defined by the
4435 <link to="ISystemProperties::networkAdapterCount"/> property,
4436 so the maximum slot number is one less than that property's value.
4437
4438 <result name="E_INVALIDARG">
4439 Invalid @a slot number.
4440 </result>
4441
4442 </desc>
4443 <param name="slot" type="unsigned long" dir="in"/>
4444 <param name="adapter" type="INetworkAdapter" dir="return"/>
4445 </method>
4446
4447 <method name="getSerialPort" const="yes">
4448 <desc>
4449 Returns the serial port associated with the given slot.
4450 Slots are numbered sequentially, starting with zero. The total
4451 number of serial ports per machine is defined by the
4452 <link to="ISystemProperties::serialPortCount"/> property,
4453 so the maximum slot number is one less than that property's value.
4454
4455 <result name="E_INVALIDARG">
4456 Invalid @a slot number.
4457 </result>
4458
4459 </desc>
4460 <param name="slot" type="unsigned long" dir="in"/>
4461 <param name="port" type="ISerialPort" dir="return"/>
4462 </method>
4463
4464 <method name="getParallelPort" const="yes">
4465 <desc>
4466 Returns the parallel port associated with the given slot.
4467 Slots are numbered sequentially, starting with zero. The total
4468 number of parallel ports per machine is defined by the
4469 <link to="ISystemProperties::parallelPortCount"/> property,
4470 so the maximum slot number is one less than that property's value.
4471
4472 <result name="E_INVALIDARG">
4473 Invalid @a slot number.
4474 </result>
4475
4476 </desc>
4477 <param name="slot" type="unsigned long" dir="in"/>
4478 <param name="port" type="IParallelPort" dir="return"/>
4479 </method>
4480
4481 <method name="getNextExtraDataKey">
4482 <desc>
4483 Returns the machine-specific extra data key name following the
4484 supplied key.
4485
4486 An error is returned if the supplied @a key does not exist. @c NULL is
4487 returned in @a nextKey if the supplied key is the last key. When
4488 supplying @c NULL for the @a key, the first key item is returned in
4489 @a nextKey (if there is any). @a nextValue is an optional parameter and
4490 if supplied, the next key's value is returned in it.
4491
4492 <result name="VBOX_E_OBJECT_NOT_FOUND">
4493 Extra data @a key not found.
4494 </result>
4495
4496 </desc>
4497 <param name="key" type="wstring" dir="in">
4498 <desc>Name of the data key to follow.</desc>
4499 </param>
4500 <param name="nextKey" type="wstring" dir="out">
4501 <desc>Name of the next data key.</desc>
4502 </param>
4503 <param name="nextValue" type="wstring" dir="out">
4504 <desc>Value of the next data key.</desc>
4505 </param>
4506 </method>
4507
4508 <method name="getExtraData">
4509 <desc>
4510 Returns associated machine-specific extra data.
4511
4512 If the requested data @a key does not exist, this function will
4513 succeed and return @c NULL in the @a value argument.
4514
4515 <result name="VBOX_E_FILE_ERROR">
4516 Settings file not accessible.
4517 </result>
4518 <result name="VBOX_E_XML_ERROR">
4519 Could not parse the settings file.
4520 </result>
4521
4522 </desc>
4523 <param name="key" type="wstring" dir="in">
4524 <desc>Name of the data key to get.</desc>
4525 </param>
4526 <param name="value" type="wstring" dir="return">
4527 <desc>Value of the requested data key.</desc>
4528 </param>
4529 </method>
4530
4531 <method name="setExtraData">
4532 <desc>
4533 Sets associated machine-specific extra data.
4534
4535 If you pass @c NULL as a key @a value, the given @a key will be
4536 deleted.
4537
4538 <note>
4539 Before performing the actual data change, this method will ask all
4540 registered callbacks using the
4541 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4542 notification for a permission. If one of the callbacks refuses the
4543 new value, the change will not be performed.
4544 </note>
4545 <note>
4546 On success, the
4547 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4548 is called to inform all registered callbacks about a successful data
4549 change.
4550 </note>
4551 <note>
4552 This method can be called outside the machine session and therefore
4553 it's a caller's responsibility to handle possible race conditions
4554 when several clients change the same key at the same time.
4555 </note>
4556
4557 <result name="VBOX_E_FILE_ERROR">
4558 Settings file not accessible.
4559 </result>
4560 <result name="VBOX_E_XML_ERROR">
4561 Could not parse the settings file.
4562 </result>
4563
4564 </desc>
4565 <param name="key" type="wstring" dir="in">
4566 <desc>Name of the data key to set.</desc>
4567 </param>
4568 <param name="value" type="wstring" dir="in">
4569 <desc>Value to assign to the key.</desc>
4570 </param>
4571 </method>
4572
4573 <method name="saveSettings">
4574 <desc>
4575 Saves any changes to machine settings made since the session
4576 has been opened or a new machine has been created, or since the
4577 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4578 For registered machines, new settings become visible to all
4579 other VirtualBox clients after successful invocation of this
4580 method.
4581 <note>
4582 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4583 notification event after the configuration has been successfully
4584 saved (only for registered machines).
4585 </note>
4586 <note>
4587 Calling this method is only valid on instances returned
4588 by <link to="ISession::machine"/> and on new machines
4589 created by <link to="IVirtualBox::createMachine"/> but not
4590 yet registered, or on unregistered machines after calling
4591 <link to="IVirtualBox::unregisterMachine"/>.
4592 </note>
4593
4594 <result name="VBOX_E_FILE_ERROR">
4595 Settings file not accessible.
4596 </result>
4597 <result name="VBOX_E_XML_ERROR">
4598 Could not parse the settings file.
4599 </result>
4600 <result name="E_ACCESSDENIED">
4601 Modification request refused.
4602 </result>
4603
4604 </desc>
4605 </method>
4606
4607 <method name="saveSettingsWithBackup">
4608 <desc>
4609 Creates a backup copy of the machine settings file (<link
4610 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4611 <link to="#saveSettings"/>.
4612
4613 Note that the backup copy is created <b>only</b> if the settings file
4614 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4615 details). Otherwise, this call is fully equivalent to
4616 <link to="#saveSettings"/> and no backup copying is done.
4617
4618 The backup copy is created in the same directory where the original
4619 settings file is located. It is given the following file name:
4620 <pre>
4621 original.xml.x.y-platform.bak
4622 </pre>
4623 where <tt>original.xml</tt> is the original settings file name
4624 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4625 format of the settings file (before auto-conversion).
4626
4627 If the given backup file already exists, this method will try to add the
4628 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4629 0 to 9) and copy it again until it succeeds. If all suffixes are
4630 occupied, or if any other copy error occurs, this method will return a
4631 failure.
4632
4633 If the copy operation succeeds, the @a bakFileName return argument will
4634 receive a full path to the created backup file (for informational
4635 purposes). Note that this will happen even if the subsequent
4636 <link to="#saveSettings"/> call performed by this method after the
4637 copy operation, fails.
4638
4639 <note>
4640 The VirtualBox API never calls this method. It is intended purely for
4641 the purposes of creating backup copies of the settings files by
4642 front-ends before saving the results of the automatically performed
4643 settings conversion to disk.
4644 </note>
4645
4646 <see>settingsFileVersion</see>
4647
4648 <result name="VBOX_E_FILE_ERROR">
4649 Settings file not accessible.
4650 </result>
4651 <result name="VBOX_E_XML_ERROR">
4652 Could not parse the settings file.
4653 </result>
4654 <result name="VBOX_E_INVALID_VM_STATE">
4655 Virtual machine is not mutable.
4656 </result>
4657 <result name="E_ACCESSDENIED">
4658 Modification request refused.
4659 </result>
4660
4661 </desc>
4662 <param name="bakFileName" type="wstring" dir="return">
4663 <desc>Full path to the created backup copy.</desc>
4664 </param>
4665 </method>
4666
4667 <method name="discardSettings">
4668 <desc>
4669 Discards any changes to the machine settings made since the session
4670 has been opened or since the last call to <link to="#saveSettings"/>
4671 or <link to="#discardSettings"/>.
4672 <note>
4673 Calling this method is only valid on instances returned
4674 by <link to="ISession::machine"/> and on new machines
4675 created by <link to="IVirtualBox::createMachine"/> or
4676 opened by <link to="IVirtualBox::openMachine"/> but not
4677 yet registered, or on unregistered machines after calling
4678 <link to="IVirtualBox::unregisterMachine"/>.
4679 </note>
4680
4681 <result name="VBOX_E_INVALID_VM_STATE">
4682 Virtual machine is not mutable.
4683 </result>
4684
4685 </desc>
4686 </method>
4687
4688 <method name="deleteSettings">
4689 <desc>
4690 Deletes the settings file of this machine from disk.
4691 The machine must not be registered in order for this operation
4692 to succeed.
4693 <note>
4694 <link to="#settingsModified"/> will return TRUE after this
4695 method successfully returns.
4696 </note>
4697 <note>
4698 Calling this method is only valid on instances returned
4699 by <link to="ISession::machine"/> and on new machines
4700 created by <link to="IVirtualBox::createMachine"/> or
4701 opened by <link to="IVirtualBox::openMachine"/> but not
4702 yet registered, or on unregistered machines after calling
4703 <link to="IVirtualBox::unregisterMachine"/>.
4704 </note>
4705 <note>
4706 The deleted machine settings file can be restored (saved again)
4707 by calling <link to="#saveSettings"/>.
4708 </note>
4709
4710 <result name="VBOX_E_INVALID_VM_STATE">
4711 Cannot delete settings of a registered machine or
4712 machine not mutable.
4713 </result>
4714 <result name="VBOX_E_IPRT_ERROR">
4715 Could not delete the settings file.
4716 </result>
4717
4718 </desc>
4719 </method>
4720
4721 <method name="export">
4722 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
4723 steps required to export VirtualBox machines to OVF.
4724 </desc>
4725
4726 <param name="appliance" type="IAppliance" dir="in">
4727 <desc>Appliance to export this machine to.</desc>
4728 </param>
4729 </method >
4730
4731 <method name="getSnapshot">
4732 <desc>
4733 Returns a snapshot of this machine with the given UUID.
4734 A <tt>null</tt> UUID can be used to obtain the first snapshot
4735 taken on this machine. This is useful if you want to traverse
4736 the whole tree of snapshots starting from the root.
4737
4738 <result name="VBOX_E_OBJECT_NOT_FOUND">
4739 Virtual machine has no snapshots or snapshot not found.
4740 </result>
4741
4742 </desc>
4743 <param name="id" type="uuid" dir="in">
4744 <desc>UUID of the snapshot to get</desc>
4745 </param>
4746 <param name="snapshot" type="ISnapshot" dir="return">
4747 <desc>Snapshot object with the given UUID.</desc>
4748 </param>
4749 </method>
4750
4751 <method name="findSnapshot">
4752 <desc>
4753 Returns a snapshot of this machine with the given name.
4754
4755 <result name="VBOX_E_OBJECT_NOT_FOUND">
4756 Virtual machine has no snapshots or snapshot not found.
4757 </result>
4758
4759 </desc>
4760 <param name="name" type="wstring" dir="in">
4761 <desc>Name of the snapshot to find</desc>
4762 </param>
4763 <param name="snapshot" type="ISnapshot" dir="return">
4764 <desc>Snapshot object with the given name.</desc>
4765 </param>
4766 </method>
4767
4768 <method name="setCurrentSnapshot">
4769 <desc>
4770 Sets the current snapshot of this machine.
4771 <note>
4772 In the current implementation, this operation is not
4773 implemented.
4774 </note>
4775 </desc>
4776 <param name="id" type="uuid" dir="in">
4777 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4778 </param>
4779 </method>
4780
4781 <method name="createSharedFolder">
4782 <desc>
4783 Creates a new permanent shared folder by associating the given logical
4784 name with the given host path, adds it to the collection of shared
4785 folders and starts sharing it. Refer to the description of
4786 <link to="ISharedFolder"/> to read more about logical names.
4787
4788 <result name="VBOX_E_OBJECT_IN_USE">
4789 Shared folder already exists.
4790 </result>
4791 <result name="VBOX_E_FILE_ERROR">
4792 Shared folder @a hostPath not accessible.
4793 </result>
4794
4795 </desc>
4796 <param name="name" type="wstring" dir="in">
4797 <desc>Unique logical name of the shared folder.</desc>
4798 </param>
4799 <param name="hostPath" type="wstring" dir="in">
4800 <desc>Full path to the shared folder in the host file system.</desc>
4801 </param>
4802 <param name="writable" type="boolean" dir="in">
4803 <desc>Whether the share is writable or readonly</desc>
4804 </param>
4805 </method>
4806
4807 <method name="removeSharedFolder">
4808 <desc>
4809 Removes the permanent shared folder with the given name previously
4810 created by <link to="#createSharedFolder"/> from the collection of
4811 shared folders and stops sharing it.
4812
4813 <result name="VBOX_E_INVALID_VM_STATE">
4814 Virtual machine is not mutable.
4815 </result>
4816 <result name="VBOX_E_OBJECT_NOT_FOUND">
4817 Shared folder @a name does not exist.
4818 </result>
4819
4820 </desc>
4821 <param name="name" type="wstring" dir="in">
4822 <desc>Logical name of the shared folder to remove.</desc>
4823 </param>
4824 </method>
4825
4826 <method name="canShowConsoleWindow">
4827 <desc>
4828 Returns @c true if the VM console process can activate the
4829 console window and bring it to foreground on the desktop of
4830 the host PC.
4831 <note>
4832 This method will fail if a session for this machine is not
4833 currently open.
4834 </note>
4835
4836 <result name="VBOX_E_INVALID_VM_STATE">
4837 Machine session is not open.
4838 </result>
4839
4840 </desc>
4841 <param name="canShow" type="boolean" dir="return">
4842 <desc>
4843 @c true if the console window can be shown and @c
4844 false otherwise.
4845 </desc>
4846 </param>
4847 </method>
4848
4849 <method name="showConsoleWindow">
4850 <desc>
4851 Activates the console window and brings it to foreground on
4852 the desktop of the host PC. Many modern window managers on
4853 many platforms implement some sort of focus stealing
4854 prevention logic, so that it may be impossible to activate
4855 a window without the help of the currently active
4856 application. In this case, this method will return a non-zero
4857 identifier that represents the top-level window of the VM
4858 console process. The caller, if it represents a currently
4859 active process, is responsible to use this identifier (in a
4860 platform-dependent manner) to perform actual window
4861 activation.
4862 <note>
4863 This method will fail if a session for this machine is not
4864 currently open.
4865 </note>
4866
4867 <result name="VBOX_E_INVALID_VM_STATE">
4868 Machine session is not open.
4869 </result>
4870
4871 </desc>
4872 <param name="winId" type="unsigned long long" dir="return">
4873 <desc>
4874 Platform-dependent identifier of the top-level VM console
4875 window, or zero if this method has performed all actions
4876 necessary to implement the <i>show window</i> semantics for
4877 the given platform and/or VirtualBox front-end.
4878 </desc>
4879 </param>
4880 </method>
4881
4882 <method name="getGuestProperty">
4883 <desc>
4884 Reads an entry from the machine's guest property store.
4885
4886 <result name="VBOX_E_INVALID_VM_STATE">
4887 Machine session is not open.
4888 </result>
4889
4890 </desc>
4891 <param name="name" type="wstring" dir="in">
4892 <desc>
4893 The name of the property to read.
4894 </desc>
4895 </param>
4896 <param name="value" type="wstring" dir="out">
4897 <desc>
4898 The value of the property. If the property does not exist then this
4899 will be empty.
4900 </desc>
4901 </param>
4902 <param name="timestamp" type="unsigned long long" dir="out">
4903 <desc>
4904 The time at which the property was last modified, as seen by the
4905 server process.
4906 </desc>
4907 </param>
4908 <param name="flags" type="wstring" dir="out">
4909 <desc>
4910 Additional property parameters, passed as a comma-separated list of
4911 "name=value" type entries.
4912 </desc>
4913 </param>
4914 </method>
4915
4916 <method name="getGuestPropertyValue">
4917 <desc>
4918 Reads a value from the machine's guest property store.
4919
4920 <result name="VBOX_E_INVALID_VM_STATE">
4921 Machine session is not open.
4922 </result>
4923
4924 </desc>
4925 <param name="property" type="wstring" dir="in">
4926 <desc>
4927 The name of the property to read.
4928 </desc>
4929 </param>
4930 <param name="value" type="wstring" dir="return">
4931 <desc>
4932 The value of the property. If the property does not exist then this
4933 will be empty.
4934 </desc>
4935 </param>
4936 </method>
4937
4938 <method name="getGuestPropertyTimestamp">
4939 <desc>
4940 Reads a property timestamp from the machine's guest property store.
4941
4942 <result name="VBOX_E_INVALID_VM_STATE">
4943 Machine session is not open.
4944 </result>
4945
4946 </desc>
4947 <param name="property" type="wstring" dir="in">
4948 <desc>
4949 The name of the property to read.
4950 </desc>
4951 </param>
4952 <param name="value" type="unsigned long long" dir="return">
4953 <desc>
4954 The timestamp. If the property does not exist then this will be
4955 empty.
4956 </desc>
4957 </param>
4958 </method>
4959
4960 <method name="setGuestProperty">
4961 <desc>
4962 Sets, changes or deletes an entry in the machine's guest property
4963 store.
4964
4965 <result name="E_ACCESSDENIED">
4966 Property cannot be changed.
4967 </result>
4968 <result name="E_INVALIDARG">
4969 Invalid @a flags.
4970 </result>
4971 <result name="VBOX_E_INVALID_VM_STATE">
4972 Virtual machine is not mutable or session not open.
4973 </result>
4974 <result name="VBOX_E_INVALID_OBJECT_STATE">
4975 Cannot set transient property when machine not running.
4976 </result>
4977
4978 </desc>
4979 <param name="property" type="wstring" dir="in">
4980 <desc>
4981 The name of the property to set, change or delete.
4982 </desc>
4983 </param>
4984 <param name="value" type="wstring" dir="in">
4985 <desc>
4986 The new value of the property to set, change or delete. If the
4987 property does not yet exist and value is non-empty, it will be
4988 created. If the value is empty, the key will be deleted if it
4989 exists.
4990 </desc>
4991 </param>
4992 <param name="flags" type="wstring" dir="in">
4993 <desc>
4994 Additional property parameters, passed as a comma-separated list of
4995 "name=value" type entries.
4996 </desc>
4997 </param>
4998 </method>
4999
5000 <method name="setGuestPropertyValue">
5001 <desc>
5002 Sets, changes or deletes a value in the machine's guest property
5003 store. The flags field will be left unchanged or created empty for a
5004 new property.
5005
5006 <result name="E_ACCESSDENIED">
5007 Property cannot be changed.
5008 </result>
5009 <result name="VBOX_E_INVALID_VM_STATE">
5010 Virtual machine is not mutable or session not open.
5011 </result>
5012 <result name="VBOX_E_INVALID_OBJECT_STATE">
5013 Cannot set transient property when machine not running.
5014 </result>
5015 </desc>
5016
5017 <param name="property" type="wstring" dir="in">
5018 <desc>
5019 The name of the property to set, change or delete.
5020 </desc>
5021 </param>
5022 <param name="value" type="wstring" dir="in">
5023 <desc>
5024 The new value of the property to set, change or delete. If the
5025 property does not yet exist and value is non-empty, it will be
5026 created. If value is empty, the property will be deleted if it
5027 exists.
5028 </desc>
5029 </param>
5030 </method>
5031
5032 <method name="enumerateGuestProperties">
5033 <desc>
5034 Return a list of the guest properties matching a set of patterns along
5035 with their values, time stamps and flags.
5036 </desc>
5037 <param name="patterns" type="wstring" dir="in">
5038 <desc>
5039 The patterns to match the properties against, separated by '|'
5040 characters. If this is empty or NULL, all properties will match.
5041 </desc>
5042 </param>
5043 <param name="name" type="wstring" dir="out" safearray="yes">
5044 <desc>
5045 The names of the properties returned.
5046 </desc>
5047 </param>
5048 <param name="value" type="wstring" dir="out" safearray="yes">
5049 <desc>
5050 The values of the properties returned. The array entries match the
5051 corresponding entries in the @a name array.
5052 </desc>
5053 </param>
5054 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5055 <desc>
5056 The time stamps of the properties returned. The array entries match
5057 the corresponding entries in the @a name array.
5058 </desc>
5059 </param>
5060 <param name="flags" type="wstring" dir="out" safearray="yes">
5061 <desc>
5062 The flags of the properties returned. The array entries match the
5063 corresponding entries in the @a name array.
5064 </desc>
5065 </param>
5066 </method>
5067</interface>
5068
5069 <!--
5070 // IConsole
5071 /////////////////////////////////////////////////////////////////////////
5072 -->
5073
5074 <interface
5075 name="IConsoleCallback" extends="$unknown"
5076 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5077 wsmap="suppress"
5078 >
5079
5080 <method name="onMousePointerShapeChange">
5081 <desc>
5082 Notification when the guest mouse pointer shape has
5083 changed. The new shape data is given.
5084 </desc>
5085 <param name="visible" type="boolean" dir="in">
5086 <desc>
5087 Flag whether the pointer is visible.
5088 </desc>
5089 </param>
5090 <param name="alpha" type="boolean" dir="in">
5091 <desc>
5092 Flag whether the pointer has an alpha channel.
5093 </desc>
5094 </param>
5095 <param name="xHot" type="unsigned long" dir="in">
5096 <desc>
5097 The pointer hot spot x coordinate.
5098 </desc>
5099 </param>
5100 <param name="yHot" type="unsigned long" dir="in">
5101 <desc>
5102 The pointer hot spot y coordinate.
5103 </desc>
5104 </param>
5105 <param name="width" type="unsigned long" dir="in">
5106 <desc>
5107 Width of the pointer shape in pixels.
5108 </desc>
5109 </param>
5110 <param name="height" type="unsigned long" dir="in">
5111 <desc>
5112 Height of the pointer shape in pixels.
5113 </desc>
5114 </param>
5115 <param name="shape" type="octet" mod="ptr" dir="in">
5116 <desc>
5117 Address of the shape buffer.
5118
5119 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5120 followed by a 32-bpp XOR (color) mask.
5121
5122 For pointers without alpha channel the XOR mask pixels are 32
5123 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5124 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5125
5126 An AND mask is used for pointers with alpha channel, so if the
5127 callback does not support alpha, the pointer could be
5128 displayed as a normal color pointer.
5129
5130 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5131 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5132 height</tt>. The padding bits at the end of each scanline are
5133 undefined.
5134
5135 The XOR mask follows the AND mask on the next 4-byte aligned
5136 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5137 Bytes in the gap between the AND and the XOR mask are undefined.
5138 The XOR mask scanlines have no gap between them and the size of
5139 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5140
5141 <note>
5142 If @a shape is 0, only the pointer visibility is changed.
5143 </note>
5144 </desc>
5145 </param>
5146 </method>
5147
5148 <method name="onMouseCapabilityChange">
5149 <desc>
5150 Notification when the mouse capabilities reported by the
5151 guest have changed. The new capabilities are passed.
5152 </desc>
5153 <param name="supportsAbsolute" type="boolean" dir="in"/>
5154 <param name="needsHostCursor" type="boolean" dir="in"/>
5155 </method>
5156
5157 <method name="onKeyboardLedsChange">
5158 <desc>
5159 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5160 to alter the state of the keyboard LEDs.
5161 </desc>
5162 <param name="numLock" type="boolean" dir="in"/>
5163 <param name="capsLock" type="boolean" dir="in"/>
5164 <param name="scrollLock" type="boolean" dir="in"/>
5165 </method>
5166
5167 <method name="onStateChange">
5168 <desc>
5169 Notification when the execution state of the machine has changed.
5170 The new state will be given.
5171 </desc>
5172 <param name="state" type="MachineState" dir="in"/>
5173 </method>
5174
5175 <method name="onAdditionsStateChange">
5176 <desc>
5177 Notification when a Guest Additions property changes.
5178 Interested callees should query IGuest attributes to
5179 find out what has changed.
5180 </desc>
5181 </method>
5182
5183 <method name="onDVDDriveChange">
5184 <desc>
5185 Notification when a property of the
5186 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5187 Interested callees should use IDVDDrive methods to find out what has
5188 changed.
5189 </desc>
5190 </method>
5191
5192 <method name="onFloppyDriveChange">
5193 <desc>
5194 Notification when a property of the
5195 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5196 Interested callees should use IFloppyDrive methods to find out what
5197 has changed.
5198 </desc>
5199 </method>
5200
5201 <method name="onNetworkAdapterChange">
5202 <desc>
5203 Notification when a property of one of the
5204 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5205 changes. Interested callees should use INetworkAdapter methods and
5206 attributes to find out what has changed.
5207 </desc>
5208 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5209 <desc>Network adapter that is subject to change.</desc>
5210 </param>
5211 </method>
5212
5213 <method name="onSerialPortChange">
5214 <desc>
5215 Notification when a property of one of the
5216 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5217 Interested callees should use ISerialPort methods and attributes
5218 to find out what has changed.
5219 </desc>
5220 <param name="serialPort" type="ISerialPort" dir="in">
5221 <desc>Serial port that is subject to change.</desc>
5222 </param>
5223 </method>
5224
5225 <method name="onParallelPortChange">
5226 <desc>
5227 Notification when a property of one of the
5228 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5229 changes. Interested callees should use ISerialPort methods and
5230 attributes to find out what has changed.
5231 </desc>
5232 <param name="parallelPort" type="IParallelPort" dir="in">
5233 <desc>Parallel port that is subject to change.</desc>
5234 </param>
5235 </method>
5236
5237 <method name="onVRDPServerChange">
5238 <desc>
5239 Notification when a property of the
5240 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5241 Interested callees should use IVRDPServer methods and attributes to
5242 find out what has changed.
5243 </desc>
5244 </method>
5245
5246 <method name="onUSBControllerChange">
5247 <desc>
5248 Notification when a property of the virtual
5249 <link to="IMachine::USBController">USB controller</link> changes.
5250 Interested callees should use IUSBController methods and attributes to
5251 find out what has changed.
5252 </desc>
5253 </method>
5254
5255 <method name="onUSBDeviceStateChange">
5256 <desc>
5257 Notification when a USB device is attached to or detached from
5258 the virtual USB controller.
5259
5260 This notification is sent as a result of the indirect
5261 request to attach the device because it matches one of the
5262 machine USB filters, or as a result of the direct request
5263 issued by <link to="IConsole::attachUSBDevice"/> or
5264 <link to="IConsole::detachUSBDevice"/>.
5265
5266 This notification is sent in case of both a succeeded and a
5267 failed request completion. When the request succeeds, the
5268 @a error parameter is @c null, and the given device has been
5269 already added to (when @a attached is @c true) or removed from
5270 (when @a attached is @c false) the collection represented by
5271 <link to="IConsole::USBDevices"/>. On failure, the collection
5272 doesn't change and the @a error parameter represents the error
5273 message describing the failure.
5274
5275 </desc>
5276 <param name="device" type="IUSBDevice" dir="in">
5277 <desc>Device that is subject to state change.</desc>
5278 </param>
5279 <param name="attached" type="boolean" dir="in">
5280 <desc>
5281 <tt>true</tt> if the device was attached
5282 and <tt>false</tt> otherwise.
5283 </desc>
5284 </param>
5285 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5286 <desc>
5287 <tt>null</tt> on success or an error message object on
5288 failure.
5289 </desc>
5290 </param>
5291 </method>
5292
5293 <method name="onSharedFolderChange">
5294 <desc>
5295 Notification when a shared folder is added or removed.
5296 The @a scope argument defines one of three scopes:
5297 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5298 (<link to="Scope_Global">Global</link>),
5299 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5300 the machine (<link to="Scope_Machine">Machine</link>) or <link
5301 to="IConsole::sharedFolders">transient shared folders</link> of the
5302 machine (<link to="Scope_Session">Session</link>). Interested callees
5303 should use query the corresponding collections to find out what has
5304 changed.
5305 </desc>
5306 <param name="scope" type="Scope" dir="in">
5307 <desc>Scope of the notification.</desc>
5308 </param>
5309 </method>
5310
5311 <method name="onRuntimeError">
5312 <desc>
5313 Notification when an error happens during the virtual
5314 machine execution.
5315
5316 There are three kinds of runtime errors:
5317 <ul>
5318 <li><i>fatal</i></li>
5319 <li><i>non-fatal with retry</i></li>
5320 <li><i>non-fatal warnings</i></li>
5321 </ul>
5322
5323 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5324 to <tt>true</tt>. In case of fatal errors, the virtual machine
5325 execution is always paused before calling this notification, and
5326 the notification handler is supposed either to immediately save
5327 the virtual machine state using <link to="IConsole::saveState"/>
5328 or power it off using <link to="IConsole::powerDown"/>.
5329 Resuming the execution can lead to unpredictable results.
5330
5331 <b>Non-fatal</b> errors and warnings are indicated by the
5332 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5333 is in the Paused state by the time the error notification is
5334 received, it means that the user can <i>try to resume</i> the machine
5335 execution after attempting to solve the problem that caused the
5336 error. In this case, the notification handler is supposed
5337 to show an appropriate message to the user (depending on the
5338 value of the @a id parameter) that offers several actions such
5339 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5340 wants to retry, the notification handler should continue
5341 the machine execution using the <link to="IConsole::resume"/>
5342 call. If the machine execution is not Paused during this
5343 notification, then it means this notification is a <i>warning</i>
5344 (for example, about a fatal condition that can happen very soon);
5345 no immediate action is required from the user, the machine
5346 continues its normal execution.
5347
5348 Note that in either case the notification handler
5349 <b>must not</b> perform any action directly on a thread
5350 where this notification is called. Everything it is allowed to
5351 do is to post a message to another thread that will then talk
5352 to the user and take the corresponding action.
5353
5354 Currently, the following error identifiers are known:
5355 <ul>
5356 <li><tt>"HostMemoryLow"</tt></li>
5357 <li><tt>"HostAudioNotResponding"</tt></li>
5358 <li><tt>"VDIStorageFull"</tt></li>
5359 </ul>
5360
5361 <note>
5362 This notification is not designed to be implemented by
5363 more than one callback at a time. If you have multiple
5364 IConsoleCallback instances registered on the given
5365 IConsole object, make sure you simply do nothing but
5366 return @c S_OK from all but one of them that does actual
5367 user notification and performs necessary actions.
5368 </note>
5369
5370 </desc>
5371 <param name="fatal" type="boolean" dir="in">
5372 <desc>Whether the error is fatal or not</desc>
5373 </param>
5374 <param name="id" type="wstring" dir="in">
5375 <desc>Error identifier</desc>
5376 </param>
5377 <param name="message" type="wstring" dir="in">
5378 <desc>Optional error message</desc>
5379 </param>
5380 </method>
5381
5382 <method name="onCanShowWindow">
5383 <desc>
5384 Notification when a call to
5385 <link to="IMachine::canShowConsoleWindow"/> is made by a
5386 front-end to check if a subsequent call to
5387 <link to="IMachine::showConsoleWindow"/> can succeed.
5388
5389 The callee should give an answer appropriate to the current
5390 machine state in the @a canShow argument. This answer must
5391 remain valid at least until the next
5392 <link to="IConsole::state">machine state</link> change.
5393
5394 <note>
5395 This notification is not designed to be implemented by
5396 more than one callback at a time. If you have multiple
5397 IConsoleCallback instances registered on the given
5398 IConsole object, make sure you simply do nothing but
5399 return @c true and @c S_OK from all but one of them that
5400 actually manages console window activation.
5401 </note>
5402 </desc>
5403 <param name="canShow" type="boolean" dir="return">
5404 <desc>
5405 @c true if the console window can be shown and @c
5406 false otherwise.
5407 </desc>
5408 </param>
5409 </method>
5410
5411 <method name="onShowWindow">
5412 <desc>
5413 Notification when a call to
5414 <link to="IMachine::showConsoleWindow"/>
5415 requests the console window to be activated and brought to
5416 foreground on the desktop of the host PC.
5417
5418 This notification should cause the VM console process to
5419 perform the requested action as described above. If it is
5420 impossible to do it at a time of this notification, this
5421 method should return a failure.
5422
5423 Note that many modern window managers on many platforms
5424 implement some sort of focus stealing prevention logic, so
5425 that it may be impossible to activate a window without the
5426 help of the currently active application (which is supposedly
5427 an initiator of this notification). In this case, this method
5428 must return a non-zero identifier that represents the
5429 top-level window of the VM console process. The caller, if it
5430 represents a currently active process, is responsible to use
5431 this identifier (in a platform-dependent manner) to perform
5432 actual window activation.
5433
5434 This method must set @a winId to zero if it has performed all
5435 actions necessary to complete the request and the console
5436 window is now active and in foreground, to indicate that no
5437 further action is required on the caller's side.
5438
5439 <note>
5440 This notification is not designed to be implemented by
5441 more than one callback at a time. If you have multiple
5442 IConsoleCallback instances registered on the given
5443 IConsole object, make sure you simply do nothing but
5444 return @c S_OK from all but one of them that actually
5445 manages console window activation.
5446 </note>
5447 </desc>
5448 <param name="winId" type="unsigned long long" dir="return">
5449 <desc>
5450 Platform-dependent identifier of the top-level VM console
5451 window, or zero if this method has performed all actions
5452 necessary to implement the <i>show window</i> semantics for
5453 the given platform and/or this VirtualBox front-end.
5454 </desc>
5455 </param>
5456 </method>
5457
5458 </interface>
5459
5460 <interface
5461 name="IRemoteDisplayInfo" extends="$unknown"
5462 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5463 wsmap="struct"
5464 >
5465 <desc>
5466 Contains information about the remote display (VRDP) capabilities and status.
5467 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5468 </desc>
5469
5470 <attribute name="active" type="boolean" readonly="yes">
5471 <desc>
5472 Whether the remote display connection is active.
5473 </desc>
5474 </attribute>
5475
5476 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5477 <desc>
5478 How many times a client connected.
5479 </desc>
5480 </attribute>
5481
5482 <attribute name="beginTime" type="long long" readonly="yes">
5483 <desc>
5484 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5485 </desc>
5486 </attribute>
5487
5488 <attribute name="endTime" type="long long" readonly="yes">
5489 <desc>
5490 When the last connection was terminated or the current time, if
5491 connection is still active, in milliseconds since 1970-01-01 UTC.
5492 </desc>
5493 </attribute>
5494
5495 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5496 <desc>
5497 How many bytes were sent in last or current, if still active, connection.
5498 </desc>
5499 </attribute>
5500
5501 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5502 <desc>
5503 How many bytes were sent in all connections.
5504 </desc>
5505 </attribute>
5506
5507 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5508 <desc>
5509 How many bytes were received in last or current, if still active, connection.
5510 </desc>
5511 </attribute>
5512
5513 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5514 <desc>
5515 How many bytes were received in all connections.
5516 </desc>
5517 </attribute>
5518
5519 <attribute name="user" type="wstring" readonly="yes">
5520 <desc>
5521 Login user name supplied by the client.
5522 </desc>
5523 </attribute>
5524
5525 <attribute name="domain" type="wstring" readonly="yes">
5526 <desc>
5527 Login domain name supplied by the client.
5528 </desc>
5529 </attribute>
5530
5531 <attribute name="clientName" type="wstring" readonly="yes">
5532 <desc>
5533 The client name supplied by the client.
5534 </desc>
5535 </attribute>
5536
5537 <attribute name="clientIP" type="wstring" readonly="yes">
5538 <desc>
5539 The IP address of the client.
5540 </desc>
5541 </attribute>
5542
5543 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5544 <desc>
5545 The client software version number.
5546 </desc>
5547 </attribute>
5548
5549 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5550 <desc>
5551 Public key exchange method used when connection was established.
5552 Values: 0 - RDP4 public key exchange scheme.
5553 1 - X509 certificates were sent to client.
5554 </desc>
5555 </attribute>
5556
5557 </interface>
5558
5559 <interface
5560 name="IConsole" extends="$unknown"
5561 uuid="3d458cf1-d8aa-4593-84db-41de9e7242d8"
5562 wsmap="managed"
5563 >
5564 <desc>
5565 The IConsole interface represents an interface to control virtual
5566 machine execution.
5567
5568 The console object that implements the IConsole interface is obtained
5569 from a session object after the session for the given machine has been
5570 opened using one of <link to="IVirtualBox::openSession"/>,
5571 <link to="IVirtualBox::openRemoteSession"/> or
5572 <link to="IVirtualBox::openExistingSession"/> methods.
5573
5574 Methods of the IConsole interface allow the caller to query the current
5575 virtual machine execution state, pause the machine or power it down, save
5576 the machine state or take a snapshot, attach and detach removable media
5577 and so on.
5578
5579 <see>ISession</see>
5580 </desc>
5581
5582 <attribute name="machine" type="IMachine" readonly="yes">
5583 <desc>
5584 Machine object this console is sessioned with.
5585 <note>
5586 This is a convenience property, it has the same value as
5587 <link to="ISession::machine"/> of the corresponding session
5588 object.
5589 </note>
5590 </desc>
5591 </attribute>
5592
5593 <attribute name="state" type="MachineState" readonly="yes">
5594 <desc>
5595 Current execution state of the machine.
5596 <note>
5597 This property always returns the same value as the corresponding
5598 property of the IMachine object this console is sessioned with.
5599 For the process that owns (executes) the VM, this is the
5600 preferable way of querying the VM state, because no IPC
5601 calls are made.
5602 </note>
5603 </desc>
5604 </attribute>
5605
5606 <attribute name="guest" type="IGuest" readonly="yes">
5607 <desc>Guest object.</desc>
5608 </attribute>
5609
5610 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5611 <desc>
5612 Virtual keyboard object.
5613 <note>
5614 If the machine is not running, any attempt to use
5615 the returned object will result in an error.
5616 </note>
5617 </desc>
5618 </attribute>
5619
5620 <attribute name="mouse" type="IMouse" readonly="yes">
5621 <desc>
5622 Virtual mouse object.
5623 <note>
5624 If the machine is not running, any attempt to use
5625 the returned object will result in an error.
5626 </note>
5627 </desc>
5628 </attribute>
5629
5630 <attribute name="display" type="IDisplay" readonly="yes">
5631 <desc>Virtual display object.
5632 <note>
5633 If the machine is not running, any attempt to use
5634 the returned object will result in an error.
5635 </note>
5636 </desc>
5637 </attribute>
5638
5639 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5640 <desc>Debugging interface.</desc>
5641 </attribute>
5642
5643 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
5644 <desc>
5645 Collection of USB devices currently attached to the virtual
5646 USB controller.
5647 <note>
5648 The collection is empty if the machine is not running.
5649 </note>
5650 </desc>
5651 </attribute>
5652
5653 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5654 <desc>
5655 List of USB devices currently attached to the remote VRDP client.
5656 Once a new device is physically attached to the remote host computer,
5657 it appears in this list and remains there until detached.
5658 </desc>
5659 </attribute>
5660
5661 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5662 <desc>
5663 Collection of shared folders for the current session. These folders
5664 are called transient shared folders because they are available to the
5665 guest OS running inside the associated virtual machine only for the
5666 duration of the session (as opposed to
5667 <link to="IMachine::sharedFolders"/> which represent permanent shared
5668 folders). When the session is closed (e.g. the machine is powered down),
5669 these folders are automatically discarded.
5670
5671 New shared folders are added to the collection using
5672 <link to="#createSharedFolder"/>. Existing shared folders can be
5673 removed using <link to="#removeSharedFolder"/>.
5674 </desc>
5675 </attribute>
5676
5677 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5678 <desc>
5679 Interface that provides information on Remote Display (VRDP) connection.
5680 </desc>
5681 </attribute>
5682
5683 <method name="powerUp">
5684 <desc>
5685 Starts the virtual machine execution using the current machine
5686 state (that is, its current execution state, current settings and
5687 current hard disks).
5688
5689 If the machine is powered off or aborted, the execution will
5690 start from the beginning (as if the real hardware were just
5691 powered on).
5692
5693 If the machine is in the <link to="MachineState_Saved"/> state,
5694 it will continue its execution the point where the state has
5695 been saved.
5696
5697 <note>
5698 Unless you are trying to write a new VirtualBox front-end that
5699 performs direct machine execution (like the VirtualBox or VBoxSDL
5700 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5701 session opened by <link to="IVirtualBox::openSession"/> and use this
5702 session only to change virtual machine settings. If you simply want to
5703 start virtual machine execution using one of the existing front-ends
5704 (for example the VirtualBox GUI or headless server), simply use
5705 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5706 power up the machine automatically for you.
5707 </note>
5708
5709 <see>#saveState</see>
5710 <result name="VBOX_E_INVALID_VM_STATE">
5711 Virtual machine already running.
5712 </result>
5713 <result name="VBOX_E_HOST_ERROR">
5714 Host interface does not exist or name not set.
5715 </result>
5716 <result name="VBOX_E_FILE_ERROR">
5717 Invalid saved state file.
5718 </result>
5719 </desc>
5720 <param name="progress" type="IProgress" dir="return">
5721 <desc>Progress object to track the operation completion.</desc>
5722 </param>
5723 </method>
5724
5725 <method name="powerUpPaused">
5726 <desc>
5727 Identical to powerUp except that the VM will enter the
5728 <link to="MachineState_Paused"/> state, instead of
5729 <link to="MachineState_Running"/>.
5730
5731 <see>#powerUp</see>
5732 <result name="VBOX_E_INVALID_VM_STATE">
5733 Virtual machine already running.
5734 </result>
5735 <result name="VBOX_E_HOST_ERROR">
5736 Host interface does not exist or name not set.
5737 </result>
5738 <result name="VBOX_E_FILE_ERROR">
5739 Invalid saved state file.
5740 </result>
5741 </desc>
5742 <param name="progress" type="IProgress" dir="return">
5743 <desc>Progress object to track the operation completion.</desc>
5744 </param>
5745 </method>
5746
5747 <method name="powerDown">
5748 <desc>
5749 Stops the virtual machine execution.
5750 After this operation completes, the machine will go to the
5751 PoweredOff state.
5752
5753 @deprecated This method will be removed in VirtualBox 2.1 where the
5754 powerDownAsync() method will take its name. Do not use this method in
5755 the code.
5756 <result name="VBOX_E_INVALID_VM_STATE">
5757 Virtual machine must be Running, Paused or Stuck to be powered down.
5758 </result>
5759 <result name="VBOX_E_VM_ERROR">
5760 Unable to power off or destroy virtual machine.
5761 </result>
5762 </desc>
5763 </method>
5764
5765 <method name="powerDownAsync">
5766 <desc>
5767 Initiates the power down procedure to stop the virtual machine
5768 execution.
5769
5770 The completion of the power down procedure is tracked using the returned
5771 IProgress object. After the operation is complete, the machine will go
5772 to the PoweredOff state.
5773
5774 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5775 where the original powerDown() method will be removed. You will need to
5776 rename "powerDownAsync" to "powerDown" in your sources to make them
5777 build with version 2.1.
5778 <result name="VBOX_E_INVALID_VM_STATE">
5779 Virtual machine must be Running, Paused or Stuck to be powered down.
5780 </result>
5781 </desc>
5782 <param name="progress" type="IProgress" dir="return">
5783 <desc>Progress object to track the operation completion.</desc>
5784 </param>
5785 </method>
5786
5787 <method name="reset">
5788 <desc>Resets the virtual machine.
5789 <result name="VBOX_E_INVALID_VM_STATE">
5790 Virtual machine not in Running state.
5791 </result>
5792 <result name="VBOX_E_VM_ERROR">
5793 Virtual machine error in reset operation.
5794 </result>
5795 </desc>
5796 </method>
5797
5798 <method name="pause">
5799 <desc>Pauses the virtual machine execution.
5800 <result name="VBOX_E_INVALID_VM_STATE">
5801 Virtual machine not in Running state.
5802 </result>
5803 <result name="VBOX_E_VM_ERROR">
5804 Virtual machine error in suspend operation.
5805 </result>
5806 </desc>
5807 </method>
5808
5809 <method name="resume">
5810 <desc>Resumes the virtual machine execution.
5811 <result name="VBOX_E_INVALID_VM_STATE">
5812 Virtual machine not in Paused state.
5813 </result>
5814 <result name="VBOX_E_VM_ERROR">
5815 Virtual machine error in resume operation.
5816 </result>
5817 </desc>
5818 </method>
5819
5820 <method name="powerButton">
5821 <desc>Sends the ACPI power button event to the guest.
5822 <result name="VBOX_E_INVALID_VM_STATE">
5823 Virtual machine not in Running state.
5824 </result>
5825 <result name="VBOX_E_PDM_ERROR">
5826 Controlled power off failed.
5827 </result>
5828 </desc>
5829 </method>
5830
5831 <method name="sleepButton">
5832 <desc>Sends the ACPI sleep button event to the guest.
5833 <result name="VBOX_E_INVALID_VM_STATE">
5834 Virtual machine not in Running state.
5835 </result>
5836 <result name="VBOX_E_PDM_ERROR">
5837 Sending sleep button event failed.
5838 </result>
5839 </desc>
5840 </method>
5841
5842 <method name="getPowerButtonHandled">
5843 <desc>Checks if the last power button event was handled by guest.
5844 <result name="VBOX_E_PDM_ERROR">
5845 Checking if the event was handled by the guest OS failed.
5846 </result>
5847 </desc>
5848 <param name="handled" type="boolean" dir="return"/>
5849 </method>
5850
5851 <method name="getGuestEnteredACPIMode">
5852 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5853 G1 (sleeping). If this method returns false, the guest will
5854 most likely not respond to external ACPI events.
5855 <result name="VBOX_E_INVALID_VM_STATE">
5856 Virtual machine not in Running state.
5857 </result>
5858 </desc>
5859 <param name="entered" type="boolean" dir="return"/>
5860 </method>
5861
5862 <method name="saveState">
5863 <desc>
5864 Saves the current execution state of a running virtual machine
5865 and stops its execution.
5866
5867 After this operation completes, the machine will go to the
5868 Saved state. Next time it is powered up, this state will
5869 be restored and the machine will continue its execution from
5870 the place where it was saved.
5871
5872 This operation differs from taking a snapshot to the effect
5873 that it doesn't create new differencing hard disks. Also, once
5874 the machine is powered up from the state saved using this method,
5875 the saved state is deleted, so it will be impossible to return
5876 to this state later.
5877
5878 <note>
5879 On success, this method implicitly calls
5880 <link to="IMachine::saveSettings"/> to save all current machine
5881 settings (including runtime changes to the DVD drive, etc.).
5882 Together with the impossibility to change any VM settings when it is
5883 in the Saved state, this guarantees adequate hardware
5884 configuration of the machine when it is restored from the saved
5885 state file.
5886 </note>
5887
5888 <note>
5889 The machine must be in the Running or Paused state, otherwise
5890 the operation will fail.
5891 </note>
5892 <result name="VBOX_E_INVALID_VM_STATE">
5893 Virtual machine state neither Running nor Paused.
5894 </result>
5895 <result name="VBOX_E_FILE_ERROR">
5896 Failed to create directory for saved state file.
5897 </result>
5898
5899 <see><link to="#takeSnapshot"/></see>
5900 </desc>
5901 <param name="progress" type="IProgress" dir="return">
5902 <desc>Progress object to track the operation completion.</desc>
5903 </param>
5904 </method>
5905
5906 <method name="adoptSavedState">
5907 <desc>
5908 Associates the given saved state file to the virtual machine.
5909
5910 On success, the machine will go to the Saved state. Next time it is
5911 powered up, it will be restored from the adopted saved state and
5912 continue execution from the place where the saved state file was
5913 created.
5914
5915 The specified saved state file path may be absolute or relative to the
5916 folder the VM normally saves the state to (usually,
5917 <link to="IMachine::snapshotFolder"/>).
5918
5919 <note>
5920 It's a caller's responsibility to make sure the given saved state
5921 file is compatible with the settings of this virtual machine that
5922 represent its virtual hardware (memory size, hard disk configuration
5923 etc.). If there is a mismatch, the behavior of the virtual machine
5924 is undefined.
5925 </note>
5926 <result name="VBOX_E_INVALID_VM_STATE">
5927 Virtual machine state neither PoweredOff nor Aborted.
5928 </result>
5929 </desc>
5930 <param name="savedStateFile" type="wstring" dir="in">
5931 <desc>Path to the saved state file to adopt.</desc>
5932 </param>
5933 </method>
5934
5935 <method name="discardSavedState">
5936 <desc>
5937 Discards (deletes) the saved state of the virtual machine
5938 previously created by <link to="#saveState"/>. Next time the
5939 machine is powered up, a clean boot will occur.
5940 <note>
5941 This operation is equivalent to resetting or powering off
5942 the machine without doing a proper shutdown in the guest OS.
5943 </note>
5944 <result name="VBOX_E_INVALID_VM_STATE">
5945 Virtual machine not in state Saved.
5946 </result>
5947 </desc>
5948 </method>
5949
5950 <method name="getDeviceActivity">
5951 <desc>
5952 Gets the current activity type of a given device or device group.
5953 <result name="E_INVALIDARG">
5954 Invalid device type.
5955 </result>
5956 </desc>
5957 <param name="type" type="DeviceType" dir="in"/>
5958 <param name="activity" type="DeviceActivity" dir="return"/>
5959 </method>
5960
5961 <method name="attachUSBDevice">
5962 <desc>
5963 Attaches a host USB device with the given UUID to the
5964 USB controller of the virtual machine.
5965
5966 The device needs to be in one of the following states:
5967 <link to="USBDeviceState_Busy"/>,
5968 <link to="USBDeviceState_Available"/> or
5969 <link to="USBDeviceState_Held"/>,
5970 otherwise an error is immediately returned.
5971
5972 When the device state is
5973 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5974 be returned if the host computer refuses to release it for some reason.
5975
5976 <see>IUSBController::deviceFilters, USBDeviceState</see>
5977 <result name="VBOX_E_INVALID_VM_STATE">
5978 Virtual machine state neither Running nor Paused.
5979 </result>
5980 <result name="VBOX_E_PDM_ERROR">
5981 Virtual machine does not have a USB controller.
5982 </result>
5983 </desc>
5984 <param name="id" type="uuid" dir="in">
5985 <desc>UUID of the host USB device to attach.</desc>
5986 </param>
5987 </method>
5988
5989 <method name="detachUSBDevice">
5990 <desc>
5991 Detaches an USB device with the given UUID from the USB controller
5992 of the virtual machine.
5993
5994 After this method succeeds, the VirtualBox server re-initiates
5995 all USB filters as if the device were just physically attached
5996 to the host, but filters of this machine are ignored to avoid
5997 a possible automatic re-attachment.
5998
5999 <see>IUSBController::deviceFilters, USBDeviceState</see>
6000
6001 <result name="VBOX_E_PDM_ERROR">
6002 Virtual machine does not have a USB controller.
6003 </result>
6004 <result name="E_INVALIDARG">
6005 USB device not attached to this virtual machine.
6006 </result>
6007 </desc>
6008 <param name="id" type="uuid" dir="in">
6009 <desc>UUID of the USB device to detach.</desc>
6010 </param>
6011 <param name="device" type="IUSBDevice" dir="return">
6012 <desc>Detached USB device.</desc>
6013 </param>
6014 </method>
6015
6016 <method name="findUSBDeviceByAddress">
6017 <desc>
6018 Searches for a USB device with the given host address.
6019
6020 <result name="VBOX_E_OBJECT_NOT_FOUND">
6021 Given @c name does not correspond to any USB device.
6022 </result>
6023
6024 <see>IUSBDevice::address</see>
6025 </desc>
6026 <param name="name" type="wstring" dir="in">
6027 <desc>
6028 Address of the USB device (as assigned by the host) to
6029 search for.
6030 </desc>
6031 </param>
6032 <param name="device" type="IUSBDevice" dir="return">
6033 <desc>Found USB device object.</desc>
6034 </param>
6035 </method>
6036
6037 <method name="findUSBDeviceById">
6038 <desc>
6039 Searches for a USB device with the given UUID.
6040
6041 <result name="VBOX_E_OBJECT_NOT_FOUND">
6042 Given @c id does not correspond to any USB device.
6043 </result>
6044
6045 <see>IUSBDevice::id</see>
6046 </desc>
6047 <param name="id" type="uuid" dir="in">
6048 <desc>UUID of the USB device to search for.</desc>
6049 </param>
6050 <param name="device" type="IUSBDevice" dir="return">
6051 <desc>Found USB device object.</desc>
6052 </param>
6053 </method>
6054
6055 <method name="createSharedFolder">
6056 <desc>
6057 Creates a transient new shared folder by associating the given logical
6058 name with the given host path, adds it to the collection of shared
6059 folders and starts sharing it. Refer to the description of
6060 <link to="ISharedFolder"/> to read more about logical names.
6061
6062 <result name="VBOX_E_INVALID_VM_STATE">
6063 Virtual machine in Saved state or currently changing state.
6064 </result>
6065 <result name="VBOX_E_FILE_ERROR">
6066 Shared folder already exists or not accessible.
6067 </result>
6068 </desc>
6069 <param name="name" type="wstring" dir="in">
6070 <desc>Unique logical name of the shared folder.</desc>
6071 </param>
6072 <param name="hostPath" type="wstring" dir="in">
6073 <desc>Full path to the shared folder in the host file system.</desc>
6074 </param>
6075 <param name="writable" type="boolean" dir="in">
6076 <desc>Whether the share is writable or readonly</desc>
6077 </param>
6078 </method>
6079
6080 <method name="removeSharedFolder">
6081 <desc>
6082 Removes a transient shared folder with the given name previously
6083 created by <link to="#createSharedFolder"/> from the collection of
6084 shared folders and stops sharing it.
6085 <result name="VBOX_E_INVALID_VM_STATE">
6086 Virtual machine in Saved state or currently changing state.
6087 </result>
6088 <result name="VBOX_E_FILE_ERROR">
6089 Shared folder does not exists.
6090 </result>
6091 </desc>
6092 <param name="name" type="wstring" dir="in">
6093 <desc>Logical name of the shared folder to remove.</desc>
6094 </param>
6095 </method>
6096
6097 <method name="takeSnapshot">
6098 <desc>
6099 Saves the current execution state and all settings of the
6100 machine and creates differencing images for all
6101 normal (non-independent) hard disks.
6102
6103 This method can be called for a PoweredOff, Saved, Running or
6104 Paused virtual machine. When the machine is PoweredOff, an
6105 offline <link to="ISnapshot">snapshot</link> is created,
6106 in all other cases -- an online snapshot.
6107
6108 The taken snapshot is always based on the
6109 <link to="IMachine::currentSnapshot">current
6110 snapshot</link> of the associated virtual machine and becomes
6111 a new current snapshot.
6112
6113 <note>
6114 This method implicitly calls <link to="IMachine::saveSettings"/> to
6115 save all current machine settings before taking an offline snapshot.
6116 </note>
6117
6118 <see>ISnapshot, <link to="#saveState"/></see>
6119 <result name="VBOX_E_INVALID_VM_STATE">
6120 Virtual machine currently changing state.
6121 </result>
6122 </desc>
6123 <param name="name" type="wstring" dir="in">
6124 <desc>Short name for the snapshot.</desc>
6125 </param>
6126 <param name="description" type="wstring" dir="in">
6127 <desc>Optional description of the snapshot.</desc>
6128 </param>
6129 <param name="progress" type="IProgress" dir="return">
6130 <desc>Progress object to track the operation completion.</desc>
6131 </param>
6132 </method>
6133
6134 <method name="discardSnapshot">
6135 <desc>
6136
6137 Starts discarding the specified snapshot. The execution state
6138 and settings of the associated machine stored in the snapshot
6139 will be deleted. The contents of all differencing hard disks of
6140 this snapshot will be merged with the contents of their
6141 dependent child hard disks to keep the, disks valid (in other
6142 words, all changes represented by hard disks being discarded
6143 will be propagated to their child hard disks). After that, this
6144 snapshot's differencing hard disks will be deleted. The parent
6145 of this snapshot will become a new parent for all its child
6146 snapshots.
6147
6148 If the discarded snapshot is the current one, its parent
6149 snapshot will become a new current snapshot. The current machine
6150 state is not directly affected in this case, except that
6151 currently attached differencing hard disks based on hard disks
6152 of the discarded snapshot will be also merged as described
6153 above.
6154
6155 If the discarded snapshot is the first one (the root snapshot)
6156 and it has exactly one child snapshot, this child snapshot will
6157 become the first snapshot after discarding. If there are no
6158 children at all (i.e. the first snapshot is the only snapshot of
6159 the machine), both the current and the first snapshot of the
6160 machine will be set to null. In all other cases, the first
6161 snapshot cannot be discarded.
6162
6163 You cannot discard the snapshot if it
6164 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6165 hard disks that have differencing hard disks based on them. Snapshots of
6166 such kind can be discarded only when every normal hard disk has either
6167 no children at all or exactly one child. In the former case, the normal
6168 hard disk simply becomes unused (i.e. not attached to any VM). In the
6169 latter case, it receives all the changes stored in the child hard disk,
6170 and then it replaces the child hard disk in the configuration of the
6171 corresponding snapshot or machine.
6172
6173 Also, you cannot discard the snapshot if it stores hard disks
6174 (of any type) having differencing child hard disks that belong
6175 to other machines. Such snapshots can be only discarded after
6176 you discard all snapshots of other machines containing "foreign"
6177 child disks, or detach these "foreign" child disks from machines
6178 they are attached to.
6179
6180 One particular example of the snapshot storing normal hard disks
6181 is the first snapshot of a virtual machine that had normal hard
6182 disks attached when taking the snapshot. Be careful when
6183 discarding such snapshots because this implicitly commits
6184 changes (made since the snapshot being discarded has been taken)
6185 to normal hard disks (as described above), which may be not what
6186 you want.
6187
6188 The virtual machine is put to
6189 the <link to="MachineState_Discarding">Discarding</link> state until
6190 the discard operation is completed.
6191
6192 <note>
6193 The machine must not be running, otherwise the operation
6194 will fail.
6195 </note>
6196
6197 <note>
6198 Child hard disks of all normal hard disks of the discarded snapshot
6199 must be accessible (see <link to="IMedium::state"/>) for this
6200 operation to succeed. In particular, this means that all virtual
6201 machines, whose hard disks are directly or indirectly based on the
6202 hard disks of discarded snapshot, must be powered off.
6203 </note>
6204 <note>
6205 Merging hard disk contents can be very time and disk space
6206 consuming, if these disks are big in size and have many
6207 children. However, if the snapshot being discarded is the last
6208 (head) snapshot on the branch, the operation will be rather
6209 quick.
6210 </note>
6211 <note>
6212 Note that discarding the current snapshot
6213 will implicitly call <link to="IMachine::saveSettings"/> to
6214 make all current machine settings permanent.
6215 </note>
6216 <result name="VBOX_E_INVALID_VM_STATE">
6217 Virtual machine is running.
6218 </result>
6219 </desc>
6220 <param name="id" type="uuid" dir="in">
6221 <desc>UUID of the snapshot to discard.</desc>
6222 </param>
6223 <param name="progress" type="IProgress" dir="return">
6224 <desc>Progress object to track the operation completion.</desc>
6225 </param>
6226 </method>
6227
6228 <method name="discardCurrentState">
6229 <desc>
6230 This operation is similar to <link to="#discardSnapshot"/> but
6231 affects the current machine state. This means that the state stored in
6232 the current snapshot will become a new current state, and all current
6233 settings of the machine and changes stored in differencing hard disks
6234 will be lost.
6235
6236 After this operation is successfully completed, new empty differencing
6237 hard disks are created for all normal hard disks of the machine.
6238
6239 If the current snapshot of the machine is an online snapshot, the
6240 machine will go to the <link to="MachineState_Saved"> saved
6241 state</link>, so that the next time it is powered on, the execution
6242 state will be restored from the current snapshot.
6243
6244 <note>
6245 The machine must not be running, otherwise the operation will fail.
6246 </note>
6247
6248 <note>
6249 If the machine state is <link to="MachineState_Saved">Saved</link>
6250 prior to this operation, the saved state file will be implicitly
6251 discarded (as if <link to="IConsole::discardSavedState"/> were
6252 called).
6253 </note>
6254
6255 <result name="VBOX_E_INVALID_VM_STATE">
6256 Virtual machine is running.
6257 </result>
6258 </desc>
6259 <param name="progress" type="IProgress" dir="return">
6260 <desc>Progress object to track the operation completion.</desc>
6261 </param>
6262 </method>
6263
6264 <method name="discardCurrentSnapshotAndState">
6265 <desc>
6266
6267 This method is equivalent to
6268 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6269 (currentSnapshot.id(), progress) followed by
6270 <link to="#discardCurrentState"/>.
6271
6272 As a result, the machine will be fully restored from the
6273 snapshot preceding the current snapshot, while both the current
6274 snapshot and the current machine state will be discarded.
6275
6276 If the current snapshot is the first snapshot of the machine (i.e. it
6277 has the only snapshot), the current machine state will be
6278 discarded <b>before</b> discarding the snapshot. In other words, the
6279 machine will be restored from its last snapshot, before discarding
6280 it. This differs from performing a single
6281 <link to="#discardSnapshot"/> call (note that no
6282 <link to="#discardCurrentState"/> will be possible after it)
6283 to the effect that the latter will preserve the current state instead of
6284 discarding it.
6285
6286 Unless explicitly mentioned otherwise, all remarks and
6287 limitations of the above two methods also apply to this method.
6288
6289 <note>
6290 The machine must not be running, otherwise the operation
6291 will fail.
6292 </note>
6293
6294 <note>
6295 If the machine state is <link to="MachineState_Saved">Saved</link>
6296 prior to this operation, the saved state file will be implicitly
6297 discarded (as if <link to="#discardSavedState"/> were
6298 called).
6299 </note>
6300
6301 <note>
6302 This method is more efficient than calling both of the above
6303 methods separately: it requires less IPC calls and provides
6304 a single progress object.
6305 </note>
6306
6307 <result name="VBOX_E_INVALID_VM_STATE">
6308 Virtual machine is running.
6309 </result>
6310 </desc>
6311 <param name="progress" type="IProgress" dir="return">
6312 <desc>Progress object to track the operation completion.</desc>
6313 </param>
6314 </method>
6315
6316 <method name="registerCallback">
6317 <desc>
6318 Registers a new console callback on this instance. The methods of the
6319 callback interface will be called by this instance when the appropriate
6320 event occurs.
6321 </desc>
6322 <param name="callback" type="IConsoleCallback" dir="in"/>
6323 </method>
6324
6325 <method name="unregisterCallback">
6326 <desc>
6327 Unregisters the console callback previously registered using
6328 <link to="#registerCallback"/>.
6329 <result name="E_INVALIDARG">
6330 Given @a callback handler is not registered.
6331 </result>
6332 </desc>
6333 <param name="callback" type="IConsoleCallback" dir="in"/>
6334 </method>
6335 </interface>
6336
6337 <!--
6338 // IHost
6339 /////////////////////////////////////////////////////////////////////////
6340 -->
6341
6342 <interface
6343 name="IHostDVDDrive" extends="$unknown"
6344 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6345 wsmap="managed"
6346 >
6347 <desc>
6348 The IHostDVDDrive interface represents the physical CD/DVD drive
6349 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6350 </desc>
6351
6352 <attribute name="name" type="wstring" readonly="yes">
6353 <desc>
6354 Returns the platform-specific device identifier.
6355 On DOS-like platforms, it is a drive name (e.g. R:).
6356 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6357 </desc>
6358 </attribute>
6359 <attribute name="description" type="wstring" readonly="yes">
6360 <desc>
6361 Returns a human readable description for the drive. This
6362 description usually contains the product and vendor name. A
6363 @c null string is returned if the description is not available.
6364 </desc>
6365 </attribute>
6366 <attribute name="udi" type="wstring" readonly="yes">
6367 <desc>
6368 Returns the unique device identifier for the drive. This
6369 attribute is reserved for future use instead of
6370 <link to="#name"/>. Currently it is not used and may return
6371 @c null on some platforms.
6372 </desc>
6373 </attribute>
6374
6375 </interface>
6376
6377 <interface
6378 name="IHostFloppyDrive" extends="$unknown"
6379 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6380 wsmap="managed"
6381 >
6382 <desc>
6383 The IHostFloppyDrive interface represents the physical floppy drive
6384 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6385 </desc>
6386 <attribute name="name" type="wstring" readonly="yes">
6387 <desc>
6388 Returns the platform-specific device identifier.
6389 On DOS-like platforms, it is a drive name (e.g. A:).
6390 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6391 </desc>
6392 </attribute>
6393 <attribute name="description" type="wstring" readonly="yes">
6394 <desc>
6395 Returns a human readable description for the drive. This
6396 description usually contains the product and vendor name. A
6397 @c null string is returned if the description is not available.
6398 </desc>
6399 </attribute>
6400 <attribute name="udi" type="wstring" readonly="yes">
6401 <desc>
6402 Returns the unique device identifier for the drive. This
6403 attribute is reserved for future use instead of
6404 <link to="#name"/>. Currently it is not used and may return
6405 @c null on some platforms.
6406 </desc>
6407 </attribute>
6408 </interface>
6409
6410 <enum
6411 name="HostNetworkInterfaceMediumType"
6412 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6413 >
6414 <desc>
6415 Type of encapsulation. Ethernet encapsulation includes both wired and
6416 wireless Ethernet connections.
6417 <see>IHostNetworkInterface</see>
6418 </desc>
6419
6420 <const name="Unknown" value="0">
6421 <desc>
6422 The type of interface cannot be determined.
6423 </desc>
6424 </const>
6425 <const name="Ethernet" value="1">
6426 <desc>
6427 Ethernet frame encapsulation.
6428 </desc>
6429 </const>
6430 <const name="PPP" value="2">
6431 <desc>
6432 Point-to-point protocol encapsulation.
6433 </desc>
6434 </const>
6435 <const name="SLIP" value="3">
6436 <desc>
6437 Serial line IP encapsulation.
6438 </desc>
6439 </const>
6440 </enum>
6441
6442 <enum
6443 name="HostNetworkInterfaceStatus"
6444 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6445 >
6446 <desc>
6447 Current status of the interface.
6448 <see>IHostNetworkInterface</see>
6449 </desc>
6450
6451 <const name="Unknown" value="0">
6452 <desc>
6453 The state of interface cannot be determined.
6454 </desc>
6455 </const>
6456 <const name="Up" value="1">
6457 <desc>
6458 The interface is fully operational.
6459 </desc>
6460 </const>
6461 <const name="Down" value="2">
6462 <desc>
6463 The interface is not functioning.
6464 </desc>
6465 </const>
6466 </enum>
6467
6468 <enum
6469 name="HostNetworkInterfaceType"
6470 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6471 >
6472 <desc>
6473 Network interface type.
6474 </desc>
6475 <const name="Bridged" value="1"/>
6476 <const name="HostOnly" value="2"/>
6477 </enum>
6478
6479 <interface
6480 name="IHostNetworkInterface" extends="$unknown"
6481 uuid="a82f7de2-695b-4bb9-ac13-f033e5fd75c2"
6482 wsmap="managed"
6483 >
6484 <desc>
6485 Reprents one of host's network interfaces. IP V6 address and network
6486 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6487 separated by colons.
6488 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6489 </desc>
6490 <attribute name="name" type="wstring" readonly="yes">
6491 <desc>Returns the host network interface name.</desc>
6492 </attribute>
6493
6494 <attribute name="id" type="uuid" readonly="yes">
6495 <desc>Returns the interface UUID.</desc>
6496 </attribute>
6497
6498 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6499 <desc>Returns the IP V4 address of the interface.</desc>
6500 </attribute>
6501
6502 <attribute name="networkMask" type="unsigned long" readonly="yes">
6503 <desc>Returns the network mask of the interface.</desc>
6504 </attribute>
6505
6506 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6507 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6508 </attribute>
6509
6510 <attribute name="IPV6Address" type="wstring" readonly="yes">
6511 <desc>Returns the IP V6 address of the interface.</desc>
6512 </attribute>
6513
6514 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6515 <desc>Returns the IP V6 network mask of the interface.</desc>
6516 </attribute>
6517
6518 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6519 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6520 </attribute>
6521
6522 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6523 <desc>Type of protocol encapsulation used.</desc>
6524 </attribute>
6525
6526 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6527 <desc>Status of the interface.</desc>
6528 </attribute>
6529
6530 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6531 <desc>specifies the host interface type.</desc>
6532 </attribute>
6533
6534 <method name="enableStaticIpConfig">
6535 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6536 <param name="IPAddress" type="unsigned long" dir="in">
6537 <desc>
6538 IP address.
6539 </desc>
6540 </param>
6541 <param name="networkMask" type="unsigned long" dir="in">
6542 <desc>
6543 network mask.
6544 </desc>
6545 </param>
6546 </method>
6547
6548 <method name="enableStaticIpConfigV6">
6549 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6550 <param name="IPV6Address" type="wstring" dir="in">
6551 <desc>
6552 IP address.
6553 </desc>
6554 </param>
6555 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6556 <desc>
6557 network mask.
6558 </desc>
6559 </param>
6560 </method>
6561
6562 <method name="enableDynamicIpConfig">
6563 <desc>enables the dynamic IP configuration.</desc>
6564 </method>
6565
6566 </interface>
6567
6568 <interface
6569 name="IHost" extends="$unknown"
6570 uuid="378cf146-6cd6-4dbc-bc60-cbd2004d99c5"
6571 wsmap="managed"
6572 >
6573 <desc>
6574 The IHost interface represents the physical machine that this VirtualBox
6575 installation runs on.
6576
6577 An object implementing this interface is returned by the
6578 <link to="IVirtualBox::host" /> attribute. This interface contains
6579 read-only information about the host's physical hardware (such as what
6580 processors and disks are available, what the host operating system is,
6581 and so on) and also allows for manipulating some of the host's hardware,
6582 such as global USB device filters and host interface networking.
6583
6584 </desc>
6585 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
6586 <desc>List of DVD drives available on the host.</desc>
6587 </attribute>
6588
6589 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
6590 <desc>List of floppy drives available on the host.</desc>
6591 </attribute>
6592
6593 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6594 <desc>
6595 List of USB devices currently attached to the host.
6596 Once a new device is physically attached to the host computer,
6597 it appears in this list and remains there until detached.
6598
6599 <note>
6600 This method may set a @ref com_warnings "warning result code".
6601 </note>
6602 <note>
6603 If USB functionality is not available in the given edition of
6604 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6605 </note>
6606 </desc>
6607 </attribute>
6608
6609 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6610 <desc>
6611 List of USB device filters in action.
6612 When a new device is physically attached to the host computer,
6613 filters from this list are applied to it (in order they are stored
6614 in the list). The first matched filter will determine the
6615 <link to="IHostUSBDeviceFilter::action">action</link>
6616 performed on the device.
6617
6618 Unless the device is ignored by these filters, filters of all
6619 currently running virtual machines
6620 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6621
6622 <note>
6623 This method may set a @ref com_warnings "warning result code".
6624 </note>
6625 <note>
6626 If USB functionality is not available in the given edition of
6627 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6628 </note>
6629
6630 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6631 </desc>
6632 </attribute>
6633
6634 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6635 <desc>List of host network interfaces currently defined on the host.</desc>
6636 </attribute>
6637
6638 <attribute name="processorCount" type="unsigned long" readonly="yes">
6639 <desc>Number of (logical) CPUs installed in the host system.</desc>
6640 </attribute>
6641
6642 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6643 <desc>Number of (logical) CPUs online in the host system.</desc>
6644 </attribute>
6645
6646 <method name="getProcessorSpeed">
6647 <desc>Query the (approximate) maximum speed of a specified host CPU in
6648 Megahertz.
6649 </desc>
6650 <param name="cpuId" type="unsigned long" dir="in">
6651 <desc>
6652 Identifier of the CPU.
6653 </desc>
6654 </param>
6655 <param name="speed" type="unsigned long" dir="return">
6656 <desc>
6657 Speed value. 0 is returned if value is not known or @a cpuId is
6658 invalid.
6659 </desc>
6660 </param>
6661 </method>
6662
6663 <method name="getProcessorFeature">
6664 <desc>Query whether a CPU feature is supported or not.</desc>
6665 <param name="feature" type="ProcessorFeature" dir="in">
6666 <desc>
6667 CPU Feature identifier.
6668 </desc>
6669 </param>
6670 <param name="supported" type="boolean" dir="return">
6671 <desc>
6672 Feature is supported or not.
6673 </desc>
6674 </param>
6675 </method>
6676
6677 <method name="getProcessorDescription">
6678 <desc>Query the model string of a specified host CPU.
6679 <note>
6680 This function is not implemented in the current version of the
6681 product.
6682 </note>
6683 </desc>
6684 <param name="cpuId" type="unsigned long" dir="in">
6685 <desc>
6686 Identifier of the CPU.
6687 </desc>
6688 </param>
6689 <param name="description" type="wstring" dir="return">
6690 <desc>
6691 Model string. A NULL string is returned if value is not known or
6692 @a cpuId is invalid.
6693 </desc>
6694 </param>
6695 </method>
6696
6697 <attribute name="memorySize" type="unsigned long" readonly="yes">
6698 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6699 </attribute>
6700
6701 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6702 <desc>Available system memory in the host system.</desc>
6703 </attribute>
6704
6705 <attribute name="operatingSystem" type="wstring" readonly="yes">
6706 <desc>Name of the host system's operating system.</desc>
6707 </attribute>
6708
6709 <attribute name="OSVersion" type="wstring" readonly="yes">
6710 <desc>Host operating system's version string.</desc>
6711 </attribute>
6712
6713 <attribute name="UTCTime" type="long long" readonly="yes">
6714 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6715 </attribute>
6716
6717<if target="midl">
6718 <method name="createHostOnlyNetworkInterface">
6719 <desc>
6720 Creates a new adapter for Host Only Networking.
6721 <result name="E_INVALIDARG">
6722 Host network interface @a name already exists.
6723 </result>
6724 </desc>
6725 <param name="name" type="wstring" dir="in">
6726 <desc>
6727 Adapter name.
6728 </desc>
6729 </param>
6730 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6731 <desc>
6732 Created host interface object.
6733 </desc>
6734 </param>
6735 <param name="progress" type="IProgress" dir="return">
6736 <desc>
6737 Progress object to track the operation completion.
6738 </desc>
6739 </param>
6740 </method>
6741 <method name="removeHostOnlyNetworkInterface">
6742 <desc>
6743 Removes the given Host Only Networking interface.
6744 <result name="VBOX_E_OBJECT_NOT_FOUND">
6745 No host network interface matching @a id found.
6746 </result>
6747 </desc>
6748 <param name="id" type="uuid" dir="in">
6749 <desc>
6750 Adapter GUID.
6751 </desc>
6752 </param>
6753 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6754 <desc>
6755 Removed host interface object.
6756 </desc>
6757 </param>
6758 <param name="progress" type="IProgress" dir="return">
6759 <desc>
6760 Progress object to track the operation completion.
6761 </desc>
6762 </param>
6763 </method>
6764</if>
6765
6766 <method name="createUSBDeviceFilter">
6767 <desc>
6768 Creates a new USB device filter. All attributes except
6769 the filter name are set to <tt>null</tt> (any match),
6770 <i>active</i> is <tt>false</tt> (the filter is not active).
6771
6772 The created filter can be added to the list of filters using
6773 <link to="#insertUSBDeviceFilter"/>.
6774
6775 <see>#USBDeviceFilters</see>
6776 </desc>
6777 <param name="name" type="wstring" dir="in">
6778 <desc>
6779 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6780 for more info.
6781 </desc>
6782 </param>
6783 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6784 <desc>Created filter object.</desc>
6785 </param>
6786 </method>
6787
6788 <method name="insertUSBDeviceFilter">
6789 <desc>
6790 Inserts the given USB device to the specified position
6791 in the list of filters.
6792
6793 Positions are numbered starting from <tt>0</tt>. If the specified
6794 position is equal to or greater than the number of elements in
6795 the list, the filter is added at the end of the collection.
6796
6797 <note>
6798 Duplicates are not allowed, so an attempt to insert a
6799 filter that is already in the list, will return an
6800 error.
6801 </note>
6802 <note>
6803 This method may set a @ref com_warnings "warning result code".
6804 </note>
6805 <note>
6806 If USB functionality is not available in the given edition of
6807 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6808 </note>
6809
6810 <see>#USBDeviceFilters</see>
6811
6812 <result name="VBOX_E_INVALID_OBJECT_STATE">
6813 USB device filter is not created within this VirtualBox instance.
6814 </result>
6815 <result name="E_INVALIDARG">
6816 USB device filter already in list.
6817 </result>
6818
6819 </desc>
6820 <param name="position" type="unsigned long" dir="in">
6821 <desc>Position to insert the filter to.</desc>
6822 </param>
6823 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6824 <desc>USB device filter to insert.</desc>
6825 </param>
6826 </method>
6827
6828 <method name="removeUSBDeviceFilter">
6829 <desc>
6830 Removes a USB device filter from the specified position in the
6831 list of filters.
6832
6833 Positions are numbered starting from <tt>0</tt>. Specifying a
6834 position equal to or greater than the number of elements in
6835 the list will produce an error.
6836
6837 <note>
6838 This method may set a @ref com_warnings "warning result code".
6839 </note>
6840 <note>
6841 If USB functionality is not available in the given edition of
6842 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6843 </note>
6844
6845 <see>#USBDeviceFilters</see>
6846
6847 <result name="E_INVALIDARG">
6848 USB device filter list empty or invalid @a position.
6849 </result>
6850
6851 </desc>
6852 <param name="position" type="unsigned long" dir="in">
6853 <desc>Position to remove the filter from.</desc>
6854 </param>
6855 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6856 <desc>Removed USB device filter.</desc>
6857 </param>
6858 </method>
6859
6860 <method name="findHostDVDDrive">
6861 <desc>
6862 Searches for a host DVD drive with the given @c name.
6863
6864 <result name="VBOX_E_OBJECT_NOT_FOUND">
6865 Given @c name does not correspond to any host drive.
6866 </result>
6867
6868 </desc>
6869 <param name="name" type="wstring" dir="in">
6870 <desc>Name of the host drive to search for</desc>
6871 </param>
6872 <param name="drive" type="IHostDVDDrive" dir="return">
6873 <desc>Found host drive object</desc>
6874 </param>
6875 </method>
6876
6877 <method name="findHostFloppyDrive">
6878 <desc>
6879 Searches for a host floppy drive with the given @c name.
6880
6881 <result name="VBOX_E_OBJECT_NOT_FOUND">
6882 Given @c name does not correspond to any host floppy drive.
6883 </result>
6884
6885 </desc>
6886 <param name="name" type="wstring" dir="in">
6887 <desc>Name of the host floppy drive to search for</desc>
6888 </param>
6889 <param name="drive" type="IHostFloppyDrive" dir="return">
6890 <desc>Found host floppy drive object</desc>
6891 </param>
6892 </method>
6893
6894 <method name="findHostNetworkInterfaceByName">
6895 <desc>
6896 Searches through all host network interfaces for an interface with
6897 the given @c name.
6898 <note>
6899 The method returns an error if the given @c name does not
6900 correspond to any host network interface.
6901 </note>
6902 </desc>
6903 <param name="name" type="wstring" dir="in">
6904 <desc>Name of the host network interface to search for.</desc>
6905 </param>
6906 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6907 <desc>Found host network interface object.</desc>
6908 </param>
6909 </method>
6910 <method name="findHostNetworkInterfaceById">
6911 <desc>
6912 Searches through all host network interfaces for an interface with
6913 the given GUID.
6914 <note>
6915 The method returns an error if the given GUID does not
6916 correspond to any host network interface.
6917 </note>
6918 </desc>
6919 <param name="id" type="uuid" dir="in">
6920 <desc>GUID of the host network interface to search for.</desc>
6921 </param>
6922 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6923 <desc>Found host network interface object.</desc>
6924 </param>
6925 </method>
6926 <method name="findHostNetworkInterfacesOfType">
6927 <desc>
6928 Searches through all host network interfaces and returns a list of interfaces of the specified type
6929 </desc>
6930 <param name="type" type="HostNetworkInterfaceType" dir="in">
6931 <desc>type of the host network interfaces to search for.</desc>
6932 </param>
6933 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
6934 <desc>Found host network interface objects.</desc>
6935 </param>
6936 </method>
6937 </interface>
6938
6939 <!--
6940 // ISystemProperties
6941 /////////////////////////////////////////////////////////////////////////
6942 -->
6943
6944 <interface
6945 name="ISystemProperties"
6946 extends="$unknown"
6947 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6948 wsmap="managed"
6949 >
6950 <desc>
6951 The ISystemProperties interface represents global properties of the given
6952 VirtualBox installation.
6953
6954 These properties define limits and default values for various attributes
6955 and parameters. Most of the properties are read-only, but some can be
6956 changed by a user.
6957 </desc>
6958
6959 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6960 <desc>Minimum guest system memory in Megabytes.</desc>
6961 </attribute>
6962
6963 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6964 <desc>Maximum guest system memory in Megabytes.</desc>
6965 </attribute>
6966
6967 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6968 <desc>Minimum guest video memory in Megabytes.</desc>
6969 </attribute>
6970
6971 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6972 <desc>Maximum guest video memory in Megabytes.</desc>
6973 </attribute>
6974
6975 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6976 <desc>Minimum CPU count.</desc>
6977 </attribute>
6978
6979 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6980 <desc>Maximum CPU count.</desc>
6981 </attribute>
6982
6983 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6984 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6985 </attribute>
6986
6987 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6988 <desc>
6989 Number of network adapters associated with every
6990 <link to="IMachine"/> instance.
6991 </desc>
6992 </attribute>
6993
6994 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
6995 <desc>
6996 Number of serial ports associated with every
6997 <link to="IMachine"/> instance.
6998 </desc>
6999 </attribute>
7000
7001 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7002 <desc>
7003 Number of parallel ports associated with every
7004 <link to="IMachine"/> instance.
7005 </desc>
7006 </attribute>
7007
7008 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7009 <desc>
7010 Maximum device position in the boot order. This value corresponds
7011 to the total number of devices a machine can boot from, to make it
7012 possible to include all possible devices to the boot list.
7013 <see><link to="IMachine::setBootOrder"/></see>
7014 </desc>
7015 </attribute>
7016
7017 <attribute name="defaultMachineFolder" type="wstring">
7018 <desc>
7019 Full path to the default directory used to create new or open
7020 existing machines when a settings file name contains no
7021 path.
7022
7023 The initial value of this property is
7024 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7025 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7026
7027 <note>
7028 Setting this property to <tt>null</tt> will restore the
7029 initial value.
7030 </note>
7031 <note>
7032 When settings this property, the specified path can be
7033 absolute (full path) or relative
7034 to the <link to="IVirtualBox::homeFolder">
7035 VirtualBox home directory</link>.
7036 When reading this property, a full path is
7037 always returned.
7038 </note>
7039 <note>
7040 The specified path may not exist, it will be created
7041 when necessary.
7042 </note>
7043
7044 <see>
7045 <link to="IVirtualBox::createMachine"/>,
7046 <link to="IVirtualBox::openMachine"/>
7047 </see>
7048 </desc>
7049 </attribute>
7050
7051 <attribute name="defaultHardDiskFolder" type="wstring">
7052 <desc>
7053 Full path to the default directory used to create new or open existing
7054 virtual disks.
7055
7056 This path is used when the storage unit of a hard disk is a regular file
7057 in the host's file system and only a file name that contains no path is
7058 given.
7059
7060 The initial value of this property is
7061 <tt>&lt;</tt>
7062 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7063 <tt>&gt;/HardDisks</tt>.
7064
7065 <note>
7066 Setting this property to <tt>null</tt> will restore the
7067 initial value.
7068 </note>
7069 <note>
7070 When settings this property, the specified path can be relative
7071 to the
7072 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7073 absolute. When reading this property, a full path is
7074 always returned.
7075 </note>
7076 <note>
7077 The specified path may not exist, it will be created
7078 when necessary.
7079 </note>
7080
7081 <see>
7082 IHardDisk,
7083 <link to="IVirtualBox::createHardDisk"/>,
7084 <link to="IVirtualBox::openHardDisk"/>,
7085 <link to="IMedium::location"/>
7086 </see>
7087 </desc>
7088 </attribute>
7089
7090 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7091 <desc>
7092 List of all hard disk storage formats supported by this VirtualBox
7093 installation.
7094
7095 Keep in mind that the hard disk format identifier
7096 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7097 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7098 hard disk format is a case-insensitive string. This means that, for
7099 example, all of the following strings:
7100 <pre>
7101 "VDI"
7102 "vdi"
7103 "VdI"</pre>
7104 refer to the same hard disk format.
7105
7106 Note that the virtual hard disk framework is backend-based, therefore
7107 the list of supported formats depends on what backends are currently
7108 installed.
7109
7110 <see>
7111 <link to="IHardDiskFormat"/>,
7112 </see>
7113 </desc>
7114 </attribute>
7115
7116 <attribute name="defaultHardDiskFormat" type="wstring">
7117 <desc>
7118 Identifier of the default hard disk format used by VirtualBox.
7119
7120 The hard disk format set by this attribute is used by VirtualBox
7121 when the hard disk format was not specified explicitly. One example is
7122 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7123 format argument. A more complex example is implicit creation of
7124 differencing hard disks when taking a snapshot of a virtual machine:
7125 this operation will try to use a format of the parent hard disk first
7126 and if this format does not support differencing hard disks the default
7127 format specified by this argument will be used.
7128
7129 The list of supported hard disk formats may be obtained by the
7130 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7131 format must have a capability to create differencing hard disks;
7132 otherwise opeartions that create hard disks implicitly may fail
7133 unexpectedly.
7134
7135 The initial value of this property is <tt>VDI</tt> in the current
7136 version of the VirtualBox product, but may change in the future.
7137
7138 <note>
7139 Setting this property to <tt>null</tt> will restore the
7140 initial value.
7141 </note>
7142
7143 <see>
7144 <link to="#hardDiskFormats"/>,
7145 <link to="IHardDiskFormat::id"/>,
7146 <link to="IVirtualBox::createHardDisk"/>
7147 </see>
7148 </desc>
7149 </attribute>
7150
7151 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7152 <desc>
7153 Library that provides authentication for VRDP clients. The library
7154 is used if a virtual machine's authentication type is set to "external"
7155 in the VM RemoteDisplay configuration.
7156
7157 The system library extension (".DLL" or ".so") must be omitted.
7158 A full path can be specified; if not, then the library must reside on the
7159 system's default library path.
7160
7161 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7162 of that name in one of the default VirtualBox library directories.
7163
7164 For details about VirtualBox authentication libraries and how to implement
7165 them, please refer to the VirtualBox manual.
7166
7167 <note>
7168 Setting this property to <tt>null</tt> will restore the
7169 initial value.
7170 </note>
7171 </desc>
7172 </attribute>
7173
7174 <attribute name="webServiceAuthLibrary" type="wstring">
7175 <desc>
7176 Library that provides authentication for webservice clients. The library
7177 is used if a virtual machine's authentication type is set to "external"
7178 in the VM RemoteDisplay configuration and will be called from
7179 within the <link to="IWebsessionManager::logon" /> implementation.
7180
7181 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7182 there is no per-VM setting for this, as the webservice is a global
7183 resource (if it is running). Only for this setting (for the webservice),
7184 setting this value to a literal "null" string disables authentication,
7185 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7186 no matter what user name and password are supplied.
7187
7188 The initial value of this property is <tt>VRDPAuth</tt>,
7189 meaning that the webservice will use the same authentication
7190 library that is used by default for VBoxVRDP (again, see
7191 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7192 The format and calling convention of authentication libraries
7193 is the same for the webservice as it is for VBoxVRDP.
7194
7195 </desc>
7196 </attribute>
7197
7198 <attribute name="HWVirtExEnabled" type="boolean">
7199 <desc>
7200 This specifies the default value for hardware virtualization
7201 extensions. If enabled, virtual machines will make use of
7202 hardware virtualization extensions such as Intel VT-x and
7203 AMD-V by default. This value can be overridden by each VM
7204 using their <link to="IMachine::HWVirtExEnabled" /> property.
7205 </desc>
7206 </attribute>
7207
7208 <attribute name="LogHistoryCount" type="unsigned long">
7209 <desc>
7210 This value specifies how many old release log files are kept.
7211 </desc>
7212 </attribute>
7213 </interface>
7214
7215 <!--
7216 // IGuest
7217 /////////////////////////////////////////////////////////////////////////
7218 -->
7219
7220 <interface
7221 name="IGuestOSType" extends="$unknown"
7222 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7223 wsmap="struct"
7224 >
7225 <desc>
7226 </desc>
7227
7228 <attribute name="familyId" type="wstring" readonly="yes">
7229 <desc>Guest OS family identifier string.</desc>
7230 </attribute>
7231
7232 <attribute name="familyDescription" type="wstring" readonly="yes">
7233 <desc>Human readable description of the guest OS family.</desc>
7234 </attribute>
7235
7236 <attribute name="id" type="wstring" readonly="yes">
7237 <desc>Guest OS identifier string.</desc>
7238 </attribute>
7239
7240 <attribute name="description" type="wstring" readonly="yes">
7241 <desc>Human readable description of the guest OS.</desc>
7242 </attribute>
7243
7244 <attribute name="is64Bit" type="boolean" readonly="yes">
7245 <desc>Returns @c true if the given OS is 64-bit</desc>
7246 </attribute>
7247
7248 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7249 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7250 </attribute>
7251
7252 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7253 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7254 </attribute>
7255
7256 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7257 <desc>Recommended RAM size in Megabytes.</desc>
7258 </attribute>
7259
7260 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7261 <desc>Recommended video RAM size in Megabytes.</desc>
7262 </attribute>
7263
7264 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7265 <desc>Recommended hard disk size in Megabytes.</desc>
7266 </attribute>
7267
7268 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7269 <desc>Returns recommended network adapter for this OS type.</desc>
7270 </attribute>
7271 </interface>
7272
7273 <interface
7274 name="IGuest" extends="$unknown"
7275 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7276
7277 wsmap="suppress"
7278 >
7279 <desc>
7280 The IGuest interface represents information about the operating system
7281 running inside the virtual machine. Used in
7282 <link to="IConsole::guest"/>.
7283
7284 IGuest provides information about the guest operating system, whether
7285 Guest Additions are installed and other OS-specific virtual machine
7286 properties.
7287 </desc>
7288
7289 <attribute name="OSTypeId" type="wstring" readonly="yes">
7290 <desc>
7291 Identifier of the Guest OS type as reported by the Guest
7292 Additions.
7293 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7294 an IGuestOSType object representing details about the given
7295 Guest OS type.
7296 <note>
7297 If Guest Additions are not installed, this value will be
7298 the same as <link to="IMachine::OSTypeId"/>.
7299 </note>
7300 </desc>
7301 </attribute>
7302
7303 <attribute name="additionsActive" type="boolean" readonly="yes">
7304 <desc>
7305 Flag whether the Guest Additions are installed and active
7306 in which case their version will be returned by the
7307 <link to="#additionsVersion"/> property.
7308 </desc>
7309 </attribute>
7310
7311 <attribute name="additionsVersion" type="wstring" readonly="yes">
7312 <desc>
7313 Version of the Guest Additions (3 decimal numbers separated
7314 by dots) or empty when the Additions are not installed. The
7315 Additions may also report a version but yet not be active as
7316 the version might be refused by VirtualBox (incompatible) or
7317 other failures occurred.
7318 </desc>
7319 </attribute>
7320
7321 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7322 <desc>
7323 Flag whether seamless guest display rendering (seamless desktop
7324 integration) is supported.
7325 </desc>
7326 </attribute>
7327
7328 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7329 <desc>
7330 Flag whether the guest is in graphics mode. If it is not, then
7331 seamless rendering will not work, resize hints are not immediately
7332 acted on and guest display resizes are probably not initiated by
7333 the guest additions.
7334 </desc>
7335 </attribute>
7336
7337 <attribute name="memoryBalloonSize" type="unsigned long">
7338 <desc>Guest system memory balloon size in megabytes.</desc>
7339 </attribute>
7340
7341 <attribute name="statisticsUpdateInterval" type="unsigned long">
7342 <desc>Interval to update guest statistics in seconds.</desc>
7343 </attribute>
7344
7345 <method name="setCredentials">
7346 <desc>
7347 Store login credentials that can be queried by guest operating
7348 systems with Additions installed. The credentials are transient
7349 to the session and the guest may also choose to erase them. Note
7350 that the caller cannot determine whether the guest operating system
7351 has queried or made use of the credentials.
7352
7353 <result name="VBOX_E_VM_ERROR">
7354 VMM device is not available.
7355 </result>
7356
7357 </desc>
7358 <param name="userName" type="wstring" dir="in">
7359 <desc>User name string, can be empty</desc>
7360 </param>
7361 <param name="password" type="wstring" dir="in">
7362 <desc>Password string, can be empty</desc>
7363 </param>
7364 <param name="domain" type="wstring" dir="in">
7365 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7366 </param>
7367 <param name="allowInteractiveLogon" type="boolean" dir="in">
7368 <desc>
7369 Flag whether the guest should alternatively allow the user to
7370 interactively specify different credentials. This flag might
7371 not be supported by all versions of the Additions.
7372 </desc>
7373 </param>
7374 </method>
7375
7376 <method name="getStatistic">
7377 <desc>
7378 Query specified guest statistics as reported by the VirtualBox Additions.
7379 </desc>
7380 <param name="cpuId" type="unsigned long" dir="in">
7381 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7382 </param>
7383 <param name="statistic" type="GuestStatisticType" dir="in">
7384 <desc>Statistic type.</desc>
7385 </param>
7386 <param name="statVal" type="unsigned long" dir="out">
7387 <desc>Statistics value</desc>
7388 </param>
7389 </method>
7390
7391 </interface>
7392
7393
7394 <!--
7395 // IProgress
7396 /////////////////////////////////////////////////////////////////////////
7397 -->
7398
7399 <interface
7400 name="IProgress" extends="$unknown"
7401 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7402 wsmap="managed"
7403 >
7404 <desc>
7405 The IProgress interface represents a task progress object that allows
7406 to wait for the completion of some asynchronous task.
7407
7408 The task consists of one or more operations that run sequentially,
7409 one by one. There is an individual percentage of completion of the
7410 current operation and the percentage of completion of the task as a
7411 whole. Similarly, you can wait for the completion of a particular
7412 operation or for the completion of the whole task.
7413
7414 Every operation is identified by a number (starting from 0)
7415 and has a separate description.
7416 </desc>
7417
7418 <attribute name="id" type="uuid" readonly="yes">
7419 <desc>ID of the task.</desc>
7420 </attribute>
7421
7422 <attribute name="description" type="wstring" readonly="yes">
7423 <desc>Description of the task.</desc>
7424 </attribute>
7425
7426 <attribute name="initiator" type="$unknown" readonly="yes">
7427 <desc>Initiator of the task.</desc>
7428 </attribute>
7429
7430 <attribute name="cancelable" type="boolean" readonly="yes">
7431 <desc>Whether the task can be interrupted.</desc>
7432 </attribute>
7433
7434 <attribute name="percent" type="long" readonly="yes">
7435 <desc>
7436 Current task progress value in percent.
7437 This value depends on how many operations are already complete.
7438 </desc>
7439 </attribute>
7440
7441 <attribute name="completed" type="boolean" readonly="yes">
7442 <desc>Whether the task has been completed.</desc>
7443 </attribute>
7444
7445 <attribute name="canceled" type="boolean" readonly="yes">
7446 <desc>Whether the task has been canceled.</desc>
7447 </attribute>
7448
7449 <attribute name="resultCode" type="result" readonly="yes">
7450 <desc>
7451 Result code of the progress task.
7452 Valid only if <link to="#completed"/> is true.
7453 </desc>
7454 </attribute>
7455
7456 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7457 <desc>
7458 Extended information about the unsuccessful result of the
7459 progress operation. May be NULL when no extended information
7460 is available.
7461 Valid only if <link to="#completed"/> is true and
7462 <link to="#resultCode"/> indicates a failure.
7463 </desc>
7464 </attribute>
7465
7466 <attribute name="operationCount" type="unsigned long" readonly="yes">
7467 <desc>
7468 Number of operations this task is divided into.
7469 Every task consists of at least one operation.
7470 </desc>
7471 </attribute>
7472
7473 <attribute name="operation" type="unsigned long" readonly="yes">
7474 <desc>Number of the operation being currently executed.</desc>
7475 </attribute>
7476
7477 <attribute name="operationDescription" type="wstring" readonly="yes">
7478 <desc>
7479 Description of the operation being currently executed.
7480 </desc>
7481 </attribute>
7482
7483 <attribute name="operationPercent" type="long" readonly="yes">
7484 <desc>Current operation progress value in percent.</desc>
7485 </attribute>
7486
7487 <method name="waitForCompletion">
7488 <desc>
7489 Waits until the task is done (including all operations) with a
7490 given timeout.
7491
7492 <result name="VBOX_E_IPRT_ERROR">
7493 Failed to wait for task completion.
7494 </result>
7495
7496 </desc>
7497 <param name="timeout" type="long" dir="in">
7498 <desc>
7499 Timeout value in milliseconds.
7500 Specify -1 for an indefinite wait.
7501 </desc>
7502 </param>
7503 </method>
7504
7505 <method name="waitForOperationCompletion">
7506 <desc>
7507 Waits until the given operation is done with a given timeout.
7508
7509 <result name="VBOX_E_IPRT_ERROR">
7510 Failed to wait for operation completion.
7511 </result>
7512
7513 </desc>
7514 <param name="operation" type="unsigned long" dir="in">
7515 <desc>
7516 Number of the operation to wait for.
7517 Must be less than <link to="#operationCount"/>.
7518 </desc>
7519 </param>
7520 <param name="timeout" type="long" dir="in">
7521 <desc>
7522 Timeout value in milliseconds.
7523 Specify -1 for an indefinite wait.
7524 </desc>
7525 </param>
7526 </method>
7527
7528 <method name="cancel">
7529 <desc>
7530 Cancels the task.
7531 <note>
7532 If <link to="#cancelable"/> is <tt>false</tt>, then
7533 this method will fail.
7534 </note>
7535
7536 <result name="VBOX_E_INVALID_OBJECT_STATE">
7537 Operation cannot be canceled.
7538 </result>
7539
7540 </desc>
7541 </method>
7542
7543 </interface>
7544
7545
7546 <!--
7547 // ISnapshot
7548 /////////////////////////////////////////////////////////////////////////
7549 -->
7550
7551 <interface
7552 name="ISnapshot" extends="$unknown"
7553 uuid="5db6b1d9-c76b-4424-a6f4-8257f642d6ea"
7554 wsmap="managed"
7555 >
7556 <desc>
7557 The ISnapshot interface represents a snapshot of the virtual
7558 machine.
7559
7560 The <i>snapshot</i> stores all the information about a virtual
7561 machine necessary to bring it to exactly the same state as it was at
7562 the time of taking the snapshot. The snapshot includes:
7563
7564 <ul>
7565 <li>all settings of the virtual machine (i.e. its hardware
7566 configuration: RAM size, attached hard disks, etc.)
7567 </li>
7568 <li>the execution state of the virtual machine (memory contents,
7569 CPU state, etc.).
7570 </li>
7571 </ul>
7572
7573 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7574 or <i>online</i> (taken when the VM is running). The execution
7575 state of the offline snapshot is called a <i>zero execution state</i>
7576 (it doesn't actually contain any information about memory contents
7577 or the CPU state, assuming that all hardware is just powered off).
7578
7579 <h3>Snapshot branches</h3>
7580
7581 Snapshots can be chained. Chained snapshots form a branch where
7582 every next snapshot is based on the previous one. This chaining is
7583 mostly related to hard disk branching (see <link to="IHardDisk"/>
7584 description). This means that every time a new snapshot is created,
7585 a new differencing hard disk is implicitly created for all normal
7586 hard disks attached to the given virtual machine. This allows to
7587 fully restore hard disk contents when the machine is later reverted
7588 to a particular snapshot.
7589
7590 In the current implementation, multiple snapshot branches within one
7591 virtual machine are not allowed. Every machine has a single branch,
7592 and <link to="IConsole::takeSnapshot"/> operation adds a new
7593 snapshot to the top of that branch.
7594
7595 Existing snapshots can be discarded using
7596 <link to="IConsole::discardSnapshot"/>.
7597
7598 <h3>Current snapshot</h3>
7599
7600 Every virtual machine has a current snapshot, identified by
7601 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7602 a base for the <i>current machine state</i> (see below), to the effect
7603 that all normal hard disks of the machine and its execution
7604 state are based on this snapshot.
7605
7606 In the current implementation, the current snapshot is always the
7607 last taken snapshot (i.e. the head snapshot on the branch) and it
7608 cannot be changed.
7609
7610 The current snapshot is <tt>null</tt> if the machine doesn't have
7611 snapshots at all; in this case the current machine state is just
7612 current settings of this machine plus its current execution state.
7613
7614 <h3>Current machine state</h3>
7615
7616 The current machine state is what represented by IMachine instances got
7617 directly from IVirtualBox
7618 using <link
7619 to="IVirtualBox::getMachine">getMachine()</link>, <link
7620 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7621 to instances returned by <link to="ISnapshot::machine"/>). This state
7622 is always used when the machine is <link to="IConsole::powerUp"> powered
7623 on</link>.
7624
7625 The current machine state also includes the current execution state.
7626 If the machine is being currently executed
7627 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7628 and above), its execution state is just what's happening now.
7629 If it is powered off (<link to="MachineState_PoweredOff"/> or
7630 <link to="MachineState_Aborted"/>), it has a zero execution state.
7631 If the machine is saved (<link to="MachineState_Saved"/>), its
7632 execution state is what saved in the execution state file
7633 (<link to="IMachine::stateFilePath"/>).
7634
7635 If the machine is in the saved state, then, next time it is powered
7636 on, its execution state will be fully restored from the saved state
7637 file and the execution will continue from the point where the state
7638 was saved.
7639
7640 Similarly to snapshots, the current machine state can be discarded
7641 using <link to="IConsole::discardCurrentState"/>.
7642
7643 <h3>Taking and discarding snapshots</h3>
7644
7645 The table below briefly explains the meaning of every snapshot
7646 operation:
7647
7648 <table>
7649 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7650
7651 <tr><td><link to="IConsole::takeSnapshot"/></td>
7652
7653 <td>Save the current state of the virtual machine, including all
7654 settings, contents of normal hard disks and the current modifications
7655 to immutable hard disks (for online snapshots)</td>
7656
7657 <td>The current state is not changed (the machine will continue
7658 execution if it is being executed when the snapshot is
7659 taken)</td></tr>
7660
7661 <tr><td><link to="IConsole::discardSnapshot"/></td>
7662
7663 <td>Forget the state of the virtual machine stored in the snapshot:
7664 dismiss all saved settings and delete the saved execution state (for
7665 online snapshots)</td>
7666
7667 <td>Other snapshots (including child snapshots, if any) and the
7668 current state are not directly affected</td></tr>
7669
7670 <tr><td><link to="IConsole::discardCurrentState"/></td>
7671
7672 <td>Restore the current state of the virtual machine from the state
7673 stored in the current snapshot, including all settings and hard disk
7674 contents</td>
7675
7676 <td>The current state of the machine existed prior to this operation
7677 is lost</td></tr>
7678
7679 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7680
7681 <td>Completely revert the virtual machine to the state it was in
7682 before the current snapshot has been taken</td>
7683
7684 <td>The current state, as well as the current snapshot, are
7685 lost</td></tr>
7686
7687 </table>
7688
7689 </desc>
7690
7691 <attribute name="id" type="uuid" readonly="yes">
7692 <desc>UUID of the snapshot.</desc>
7693 </attribute>
7694
7695 <attribute name="name" type="wstring">
7696 <desc>Short name of the snapshot.</desc>
7697 </attribute>
7698
7699 <attribute name="description" type="wstring">
7700 <desc>Optional description of the snapshot.</desc>
7701 </attribute>
7702
7703 <attribute name="timeStamp" type="long long" readonly="yes">
7704 <desc>
7705 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7706 </desc>
7707 </attribute>
7708
7709 <attribute name="online" type="boolean" readonly="yes">
7710 <desc>
7711 <tt>true</tt> if this snapshot is an online snapshot and
7712 <tt>false</tt> otherwise.
7713
7714 <note>
7715 When this attribute is <tt>true</tt>, the
7716 <link to="IMachine::stateFilePath"/> attribute of the
7717 <link to="#machine"/> object associated with this snapshot
7718 will point to the saved state file. Otherwise, it will be
7719 <tt>null</tt>.
7720 </note>
7721 </desc>
7722 </attribute>
7723
7724 <attribute name="machine" type="IMachine" readonly="yes">
7725 <desc>
7726 Virtual machine this snapshot is taken on. This object
7727 stores all settings the machine had when taking this snapshot.
7728 <note>
7729 The returned machine object is immutable, i.e. no
7730 any settings can be changed.
7731 </note>
7732 </desc>
7733 </attribute>
7734
7735 <attribute name="parent" type="ISnapshot" readonly="yes">
7736 <desc>
7737 Parent snapshot (a snapshot this one is based on).
7738 <note>
7739 It's not an error to read this attribute on a snapshot
7740 that doesn't have a parent -- a null object will be
7741 returned to indicate this.
7742 </note>
7743 </desc>
7744 </attribute>
7745
7746 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
7747 <desc>
7748 Child snapshots (all snapshots having this one as a parent).
7749 <note>
7750 In the current implementation, there can be only one
7751 child snapshot, or no children at all, meaning this is the
7752 last (head) snapshot.
7753 </note>
7754 </desc>
7755 </attribute>
7756
7757 </interface>
7758
7759
7760 <!--
7761 // IMedia
7762 /////////////////////////////////////////////////////////////////////////
7763 -->
7764
7765 <enum
7766 name="MediaState"
7767 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7768 >
7769 <desc>
7770 Virtual media state.
7771 <see>IMedia</see>
7772 </desc>
7773
7774 <const name="NotCreated" value="0">
7775 <desc>
7776 Associated media storage does not exist (either was not created yet or
7777 was deleted).
7778 </desc>
7779 </const>
7780 <const name="Created" value="1">
7781 <desc>
7782 Associated storage exists and accessible.
7783 </desc>
7784 </const>
7785 <const name="LockedRead" value="2">
7786 <desc>
7787 Media is locked for reading, no data modification is possible.
7788 </desc>
7789 </const>
7790 <const name="LockedWrite" value="3">
7791 <desc>
7792 Media is locked for writing, no concurrent data reading or modification
7793 is possible.
7794 </desc>
7795 </const>
7796 <const name="Inaccessible" value="4">
7797 <desc>
7798 Associated media storage is not accessible.
7799 </desc>
7800 </const>
7801 <const name="Creating" value="5">
7802 <desc>
7803 Associated media storage is being created.
7804 </desc>
7805 </const>
7806 <const name="Deleting" value="6">
7807 <desc>
7808 Associated media storage is being deleted.
7809 </desc>
7810 </const>
7811 </enum>
7812
7813 <interface
7814 name="IMedium" extends="$unknown"
7815 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7816 wsmap="managed"
7817 >
7818 <desc>
7819 The IMedium interface is a common interface for all objects representing
7820 virtual media such as hard disks, DVD images.
7821
7822 Each medium is associated with a storage unit (such as a file on the host
7823 computer or a network resource) that holds actual data. The location of
7824 the storage unit is represented by the #location attribute. The value of
7825 this attribute is media type dependent.
7826
7827 The exact media type may be determined by querying the appropriate
7828 interface such as:
7829 <ul>
7830 <li>IHardDisk (virtual hard disks)</li>
7831 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7832 <li>IFloppyImage (raw floppy image files)</li>
7833 </ul>
7834
7835 Existing media are opened using the following methods, depending on the
7836 media type:
7837 <ul>
7838 <li><link to="IVirtualBox::openHardDisk"/></li>
7839 <li><link to="IVirtualBox::openDVDImage"/></li>
7840 <li><link to="IVirtualBox::openFloppyImage"/></li>
7841 </ul>
7842
7843 New hard disk media are created using the
7844 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7845 images are created outside VirtualBox, usually by storing a copy
7846 of the real medium of the corresponding type in a regular file.
7847
7848 <h3>Known Media</h3>
7849
7850 When an existing medium gets opened for the first time, it gets
7851 automatically remembered by the given VirtualBox installation or, in other
7852 words, becomes a <i>known medium</i>. Known media are stored in the media
7853 registry transparently maintained by VirtualBox and stored in settings
7854 files so that this registry is preserved when VirtualBox is not running.
7855
7856 Newly created virtual hard disks get remembered only when the associated
7857 storage unit is actually created (see IHardDisk for more details).
7858
7859 All known media can be enumerated using
7860 <link to="IVirtualBox::hardDisks"/>,
7861 <link to="IVirtualBox::DVDImages"/> and
7862 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7863 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7864 and similar methods or by location using
7865 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7866
7867 Only known media can be attached to virtual machines.
7868
7869 Removing known media from the media registry is performed when the given
7870 medium is closed using the <link to="#close"/> method or when its
7871 associated storage unit is deleted (only for hard disks).
7872
7873 <h3>Accessibility Checks</h3>
7874
7875 The given medium (with the created storage unit) is considered to be
7876 <i>accessible</i> when its storage unit can be successfully read from.
7877 Accessible media are indicated by the <link to="MediaState_Created"/>
7878 value of the <link to="#state"/> attribute. When the storage unit cannot
7879 be read (for example, because it is located on a disconnected network
7880 resource, or was accidentally deleted outside VirtualBox), the medium is
7881 considered to be <i>inaccessible</i> which is indicated by the
7882 <link to="MediaState_Inaccessible"/> state. The details about the reason
7883 of being inaccessible can be obtained using the
7884 <link to="#lastAccessError"/> attribute.
7885
7886 A new accessibility check is performed each time the <link to="#state"/>
7887 attribute is read. Please note that this check may take long time (several
7888 seconds or even minutes, depending on the storage unit location and
7889 format), and will block the calling thread until finished. For this
7890 reason, it is recommended to never read this attribute on the main UI
7891 thread to avoid making the UI unresponsive.
7892
7893 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7894 created for the first time), all known media are in the
7895 <link to="MediaState_Inaccessible"/> state but the value of the <link
7896 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7897 accessibility check is made on startup. This is done to make the
7898 VirtualBox object ready for serving requests as
7899 fast as possible and let the end-user application decide if it needs to
7900 check media accessibility right away or not.
7901 </desc>
7902
7903 <attribute name="id" type="uuid" readonly="yes">
7904 <desc>
7905 UUID of the medium. For a newly created medium, this value is a randomly
7906 generated UUID.
7907
7908 <note>
7909 For media in one of MediaState_NotCreated, MediaState_Creating or
7910 MediaState_Deleting states, the value of this property is undefined
7911 and will most likely be an empty UUID.
7912 </note>
7913 </desc>
7914 </attribute>
7915
7916 <attribute name="description" type="wstring">
7917 <desc>
7918 Optional description of the medium. For newly created media, the value
7919 of this attribute value is <tt>null</tt>.
7920
7921 Media types that don't support this attribute will return E_NOTIMPL in
7922 attempt to get or set this attribute's value.
7923
7924 <note>
7925 For some storage types, reading this attribute may return an outdated
7926 (last known) value when <link to="#state"/> is <link
7927 to="MediaState_Inaccessible"/> or <link
7928 to="MediaState_LockedWrite"/> because the value of this attribute is
7929 stored within the storage unit itself. Also note that changing the
7930 attribute value is not possible in such case, as well as when the
7931 medium is the <link to="MediaState_LockedRead"/> state.
7932 </note>
7933 </desc>
7934 </attribute>
7935
7936 <attribute name="state" type="MediaState" readonly="yes">
7937 <desc>
7938 Current media state. Inspect <link to="MediaState"/> values for details.
7939
7940 Reading this attribute may take long time because a new accessibility
7941 check of the storage unit is performed every time the attribute is read.
7942 This check may cause a significant delay if the storage unit of the
7943 given medium is, for example, a file located on a network share which is
7944 not currently accessible due to connectivity problems -- the call will
7945 not return until a timeout interval defined by the host OS for this
7946 operation expires.
7947
7948 If the last known state of the medium is <link to="MediaState_Created"/>
7949 and the accessibility check fails then the state would be set to
7950 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7951 may be used to get more details about the failure. If the state of the
7952 medium is <link to="MediaState_LockedRead"/> or
7953 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7954 non-null value of <link to="#lastAccessError"/> will indicate a failed
7955 accessibility check in this case.
7956
7957 Note that not all media states are applicable to certain media types.
7958 For example, states <link to="MediaState_NotCreated"/>,
7959 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7960 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
7961 IFloppyImage media.
7962 </desc>
7963 </attribute>
7964
7965 <attribute name="location" type="wstring">
7966 <desc>
7967 Location of the storage unit holding media data.
7968
7969 The format of the location string is media type specific. For media
7970 types that use regular files in a host's file system, the location
7971 string is just a full file name.
7972
7973 Some media types may support changing the storage unit location by
7974 simply changing the value of this property. If this operation is not
7975 supported, the implementation will return E_NOTIMPL in attempt to set
7976 this attribute's value.
7977
7978 When setting a value of the location attribute which is a regular file
7979 in the host's file system, the given file name may be either relative to
7980 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7981 absolute. Note that if the given location specification does not contain
7982 the file extension part then a proper default extension will be
7983 automatically appended by the implementation depending on the media type.
7984 </desc>
7985 </attribute>
7986
7987 <attribute name="name" type="wstring" readonly="yes">
7988 <desc>
7989 Name of the storage unit holding media data.
7990
7991 The returned string is a short version of the <link to="#location"/>
7992 attribute that is suitable for representing the medium in situations
7993 where the full location specification is too long (such as lists
7994 and comboboxes in GUI frontends). This string is also used by frontends
7995 to sort the media list alphabetically when needed.
7996
7997 For example, for locations that are regular files in the host's file
7998 system, the value of this attribute is just a file name (+ extension),
7999 without the path specification.
8000
8001 Note that as opposed to the <link to="#location"/> attribute, the name
8002 attribute will not necessary be unique for a list of media of the
8003 given type and format.
8004 </desc>
8005 </attribute>
8006
8007 <attribute name="size" type="unsigned long long" readonly="yes">
8008 <desc>
8009 Physical size of the storage unit used to hold media data (in bytes).
8010
8011 <note>
8012 For media whose <link to="#state"/> is <link
8013 to="MediaState_Inaccessible"/>, the value of this property is the
8014 last known size. For <link to="MediaState_NotCreated"/> media,
8015 the returned value is zero.
8016 </note>
8017 </desc>
8018 </attribute>
8019
8020 <attribute name="lastAccessError" type="wstring" readonly="yes">
8021 <desc>
8022 Text message that represents the result of the last accessibility
8023 check.
8024
8025 Accessibility checks are performed each time the <link to="#state"/>
8026 attribute is read. A @c null string is returned if the last
8027 accessibility check was successful. A non-null string indicates a
8028 failure and should normally describe a reason of the failure (for
8029 example, a file read error).
8030 </desc>
8031 </attribute>
8032
8033 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
8034 <desc>
8035 Array of UUIDs of all machines this medium is attached to.
8036
8037 A <tt>null</tt> array is returned if this medium is not attached to any
8038 machine or to any machine's snapshot.
8039
8040 <note>
8041 The returned array will include a machine even if this medium is not
8042 attached to that machine in the current state but attached to it in
8043 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8044 details.
8045 </note>
8046 </desc>
8047 </attribute>
8048
8049 <method name="getSnapshotIds">
8050 <desc>
8051 Returns an array of UUIDs of all snapshots of the given machine where
8052 this medium is attached to it.
8053
8054 If the medium is attached to the machine in the current state, then the
8055 first element in the array will always be the ID of the queried machine
8056 (i.e. the value equal to the @c machineId argument), followed by
8057 snapshot IDs (if any).
8058
8059 If the medium is not attached to the machine in the current state, then
8060 the array will contain only snapshot IDs.
8061
8062 The returned array may be <tt>null</tt> if this medium is not attached
8063 to the given machine at all, neither in the current state nor in one of
8064 snapshots.
8065 </desc>
8066 <param name="machineId" type="uuid" dir="in">
8067 <desc>
8068 UUID of the machine to query.
8069 </desc>
8070 </param>
8071 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
8072 <desc>
8073 Array of snapshot UUIDs of the given machine using this medium.
8074 </desc>
8075 </param>
8076 </method>
8077
8078 <method name="lockRead">
8079 <desc>
8080 Locks this medium for reading.
8081
8082 The read lock is shared: many clients can simultaneously lock the
8083 same media for reading unless it is already locked for writing (see
8084 <link to="#lockWrite"/>) in which case an error is returned.
8085
8086 When the medium is locked for reading, it cannot be modified
8087 from within VirtualBox. This means that any method that changes
8088 the properties of this medium or contents of the storage unit
8089 will return an error (unless explicitly stated otherwise) and
8090 that an attempt to start a virtual machine that wants to modify
8091 the medium will also fail.
8092
8093 When the virtual machine is started up, it locks for reading all
8094 media it uses in read-only mode. If some media cannot be locked
8095 for reading, the startup procedure will fail.
8096
8097 The medium locked for reading must be unlocked using the <link
8098 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8099 can be nested and must be followed by the same number of paired
8100 <link to="#unlockRead"/> calls.
8101
8102 This method sets the media state to <link
8103 to="MediaState_LockedRead"/> on success. The state prior to
8104 this call must be <link to="MediaState_Created"/>, <link
8105 to="MediaState_Inaccessible"/> or <link
8106 to="MediaState_LockedRead"/>. As you can see, inaccessible
8107 media can be locked too. This is not an error; this method
8108 performs a logical lock that prevents modifications of this
8109 media through the VirtualBox API, not a physical lock of the
8110 underlying storage unit.
8111
8112 This method returns the current state of the medium
8113 <b>before</b> the operation.
8114
8115 <result name="VBOX_E_INVALID_OBJECT_STATE">
8116 Invalid media state (e.g. not created, locked, inaccessible,
8117 creating, deleting).
8118 </result>
8119
8120 </desc>
8121 <param name="state" type="MediaState" dir="return">
8122 <desc>
8123 State of the medium after the operation.
8124 </desc>
8125 </param>
8126 </method>
8127
8128 <method name="unlockRead">
8129 <desc>
8130 Cancels the read lock previously set by <link to="#lockRead"/>.
8131
8132 Either on success or on failure, this method returns the current state
8133 of the medium <b>after</b> the operation.
8134
8135 See <link to="#lockRead"/> for more details.
8136
8137 <result name="VBOX_E_INVALID_OBJECT_STATE">
8138 Medium not locked for reading.
8139 </result>
8140
8141 </desc>
8142 <param name="state" type="MediaState" dir="return">
8143 <desc>
8144 State of the medium after the operation.
8145 </desc>
8146 </param>
8147 </method>
8148
8149 <method name="lockWrite">
8150 <desc>
8151 Locks this medium for writing.
8152
8153 The write lock, as opposed to <link to="#lockRead"/>, is
8154 exclusive: there may be only one client that holds a write lock
8155 and there may be no read locks while the write lock is held.
8156
8157 When the medium is locked for writing, it cannot be modified
8158 from within VirtualBox and it is not guaranteed that the values
8159 of its properties are up-to-date. Any method that changes the
8160 properties of this medium or contents of the storage unit will
8161 return an error ((unless explicitly stated otherwise) and an
8162 attempt to start a virtual machine that wants to modify or to
8163 read the medium will also fail.
8164
8165 When the virtual machine is started up, it locks for writing all
8166 media it uses to write data to. If some media cannot be locked
8167 for writing, the startup procedure will fail.
8168
8169 The medium locked for writing must be unlocked using the <link
8170 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8171 can <b>not</b> be nested and must be followed by a paired <link
8172 to="#unlockWrite"/> call.
8173
8174 This method sets the media state to <link
8175 to="MediaState_LockedWrite"/> on success. The state prior to
8176 this call must be <link to="MediaState_Created"/> or <link
8177 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8178 media can be locked too. This is not an error; this method
8179 performs a logical lock that prevents modifications of this
8180 media through the VirtualBox API, not a physical lock of the
8181 underlying storage unit.
8182
8183 Either on success or on failure, this method returns the current
8184 state of the medium <b>before</b> the operation.
8185
8186 <result name="VBOX_E_INVALID_OBJECT_STATE">
8187 Invalid media state (e.g. not created, locked, inaccessible,
8188 creating, deleting).
8189 </result>
8190
8191 </desc>
8192 <param name="state" type="MediaState" dir="return">
8193 <desc>
8194 State of the medium after the operation.
8195 </desc>
8196 </param>
8197 </method>
8198
8199 <method name="unlockWrite">
8200 <desc>
8201 Cancels the write lock previously set by <link to="#lockWrite"/>.
8202
8203 Either on success or on failure, this method returns the current
8204 state of the medium <b>after</b> the operation.
8205
8206 See <link to="#lockWrite"/> for more details.
8207
8208 <result name="VBOX_E_INVALID_OBJECT_STATE">
8209 Medium not locked for writing.
8210 </result>
8211
8212 </desc>
8213 <param name="state" type="MediaState" dir="return">
8214 <desc>
8215 State of the medium after the operation.
8216 </desc>
8217 </param>
8218 </method>
8219
8220 <method name="close">
8221 <desc>
8222 Closes this medium.
8223
8224 The hard disk must not be attached to any known virtual machine
8225 and must not have any known child hard disks, otherwise the
8226 operation will fail.
8227
8228 When the hard disk is successfully closed, it gets removed from
8229 the list of remembered hard disks, but its storage unit is not
8230 deleted. In particular, this means that this hard disk can be
8231 later opened again using the <link
8232 to="IVirtualBox::openHardDisk"/> call.
8233
8234 Note that after this method successfully returns, the given hard
8235 disk object becomes uninitialized. This means that any attempt
8236 to call any of its methods or attributes will fail with the
8237 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8238
8239 <result name="VBOX_E_INVALID_OBJECT_STATE">
8240 Invalid media state (other than not created, created or
8241 inaccessible).
8242 </result>
8243 <result name="VBOX_E_OBJECT_IN_USE">
8244 Medium attached to virtual machine.
8245 </result>
8246 <result name="VBOX_E_FILE_ERROR">
8247 Settings file not accessible.
8248 </result>
8249 <result name="VBOX_E_XML_ERROR">
8250 Could not parse the settings file.
8251 </result>
8252
8253 </desc>
8254 </method>
8255
8256 </interface>
8257
8258
8259 <!--
8260 // IHardDisk
8261 /////////////////////////////////////////////////////////////////////////
8262 -->
8263
8264 <enum
8265 name="HardDiskType"
8266 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8267 >
8268 <desc>
8269 Virtual hard disk type.
8270 <see>IHardDisk</see>
8271 </desc>
8272
8273 <const name="Normal" value="0">
8274 <desc>
8275 Normal hard disk (attached directly or indirectly, preserved
8276 when taking snapshots).
8277 </desc>
8278 </const>
8279 <const name="Immutable" value="1">
8280 <desc>
8281 Immutable hard disk (attached indirectly, changes are wiped out
8282 after powering off the virtual machine).
8283 </desc>
8284 </const>
8285 <const name="Writethrough" value="2">
8286 <desc>
8287 Write through hard disk (attached directly, ignored when
8288 taking snapshots).
8289 </desc>
8290 </const>
8291 </enum>
8292
8293 <interface
8294 name="IHardDiskAttachment" extends="$unknown"
8295 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8296 wsmap="struct"
8297 >
8298 <desc>
8299 The IHardDiskAttachment interface represents a hard disk attachment of a
8300 virtual machine.
8301
8302 Every hard disk attachment specifies a slot of the virtual hard disk
8303 controller and a virtual hard disk attached to this slot.
8304
8305 The array of hard disk attachments is returned by
8306 <link to="IMachine::hardDiskAttachments"/>.
8307 </desc>
8308 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8309 <desc>Hard disk object associated with this attachment.</desc>
8310 </attribute>
8311
8312 <attribute name="bus" type="StorageBus" readonly="yes">
8313 <desc>Interface bus of this attachment.</desc>
8314 </attribute>
8315
8316 <attribute name="channel" type="long" readonly="yes">
8317 <desc>Channel number of this attachment.</desc>
8318 </attribute>
8319
8320 <attribute name="device" type="long" readonly="yes">
8321 <desc>Device slot number of this attachment.</desc>
8322 </attribute>
8323
8324 </interface>
8325
8326 <interface
8327 name="IHardDisk" extends="IMedium"
8328 uuid="a4d391a5-e2b1-474d-824e-2ff668a92d58"
8329 wsmap="managed"
8330 >
8331 <desc>
8332 The IHardDisk interface represents a virtual hard disk drive
8333 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8334
8335 Virtual hard disk objects virtualize the hard disk hardware and look like
8336 regular hard disks for the guest OS running inside the virtual machine.
8337
8338 <h3>Hard Disk Types</h3>
8339
8340 There are three types of hard disks:
8341 <link to="HardDiskType_Normal">Normal</link>,
8342 <link to="HardDiskType_Immutable">Immutable</link> and
8343 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8344 hard disk defines how the hard disk is attached to a virtual machine and
8345 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8346 machine with the attached hard disk is taken. The type of the hard disk is
8347 defined by the <link to="#type"/> attribute.
8348
8349 All hard disks can be also divided in two big groups: <i>base</i> hard
8350 disks and <i>differencing</i> hard disks. A base hard disk contains all
8351 sectors of the hard disk data in its storage unit and therefore can be
8352 used independently. On the contrary, a differencing hard disk contains
8353 only some part of the hard disk data (a subset of sectors) and needs
8354 another hard disk to get access to the missing sectors of data. This
8355 another hard disk is called a <i>parent</i> hard disk and defines a hard
8356 disk to which this differencing hard disk is known to be <i>linked to</i>.
8357 The parent hard disk may be itself a differencing hard disk. This
8358 way, differencing hard disks form a linked hard disk chain. This chain
8359 always ends with the base hard disk which is sometimes referred to as the
8360 root hard disk of this chain. Note that several differencing hard disks
8361 may be linked to the same parent hard disk. This way, all known hard disks
8362 form a hard disk tree which is based on their parent-child relationship.
8363
8364 Differencing hard disks can be distinguished from base hard disks by
8365 querying the <link to="#parent"/> attribute: base hard disks do not have
8366 parents they would depend on, so the value of this attribute is always
8367 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8368 the hard disk tree (from the child hard disk to its parent). It is also
8369 possible to walk down the tree using the <link to="#children"/>
8370 attribute.
8371
8372 Note that the type of all differencing hard disks is
8373 <link to="HardDiskType_Normal">Normal</link>; all other values are
8374 meaningless for them. Base hard disks may be of any type.
8375
8376 <h3>Creating Hard Disks</h3>
8377
8378 New base hard disks are created using
8379 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8380 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8381 disks are usually implicitly created by VirtualBox when needed but may
8382 also be created explicitly using <link to="#createDiffStorage"/>.
8383
8384 After the hard disk is successfully created (including the storage unit)
8385 or opened, it becomes a known hard disk (remembered in the internal media
8386 registry). Known hard disks can be attached to a virtual machine, accessed
8387 through <link to="IVirtualBox::getHardDisk"/> and
8388 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8389 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8390
8391 The following methods, besides <link to="IMedium::close"/>,
8392 automatically remove the hard disk from the media registry:
8393 <ul>
8394 <li><link to="#deleteStorage"/></li>
8395 <li><link to="#mergeTo"/></li>
8396 </ul>
8397
8398 If the storage unit of the hard disk is a regular file in the host's
8399 file system then the rules stated in the description of the
8400 <link to="IMedium::location"/> attribute apply when setting its value. In
8401 addition, a plain file name without any path may be given, in which case
8402 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8403 folder</link> will be prepended to it.
8404
8405 <h4>Automatic composition of the file name part</h4>
8406
8407 Another extension to the <link to="IMedium::location"/> attribute is that
8408 there is a possibility to cause VirtualBox to compose a unique value for
8409 the file name part of the location using the UUID of the hard disk. This
8410 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8411 e.g. before the storage unit is created, and works as follows. You set the
8412 value of the <link to="IMedium::location"/> attribute to a location
8413 specification which only contains the path specification but not the file
8414 name part and ends with either a forward slash or a backslash character.
8415 In response, VirtualBox will generate a new UUID for the hard disk and
8416 compose the file name using the following pattern:
8417 <pre>
8418 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8419 </pre>
8420 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8421 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8422 is the default extension for the storage format of this hard disk. After
8423 that, you may call any of the methods that create a new hard disk storage
8424 unit and they will use the generated UUID and file name.
8425
8426 <h3>Attaching Hard Disks</h3>
8427
8428 Hard disks are attached to virtual machines using the
8429 <link to="IMachine::attachHardDisk"/> method and detached using the
8430 <link to="IMachine::detachHardDisk"/> method. Depending on their
8431 <link to="#type"/>, hard disks are attached either
8432 <i>directly</i> or <i>indirectly</i>.
8433
8434 When a hard disk is being attached directly, it is associated with the
8435 virtual machine and used for hard disk operations when the machine is
8436 running. When a hard disk is being attached indirectly, a new differencing
8437 hard disk linked to it is implicitly created and this differencing hard
8438 disk is associated with the machine and used for hard disk operations.
8439 This also means that if <link to="IMachine::attachHardDisk"/> performs
8440 a direct attachment then the same hard disk will be returned in response
8441 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8442 an indirect attachment is performed then
8443 <link to="IMachine::getHardDisk"/> will return the implicitly created
8444 differencing hard disk, not the original one passed to <link
8445 to="IMachine::attachHardDisk"/>. The following table shows the
8446 dependency of the attachment type on the hard disk type:
8447
8448 <table>
8449 <tr>
8450 <th>Hard Disk Type</th>
8451 <th>Direct or Indirect?</th>
8452 </tr>
8453 <tr>
8454 <td>Normal (Base)</td>
8455 <td>
8456 Normal base hard disks that do not have children (i.e. differencing
8457 hard disks linked to them) and that are not already attached to
8458 virtual machines in snapshots are attached <b>directly</b>.
8459 Otherwise, they are attached <b>indirectly</b> because having
8460 dependent children or being part of the snapshot makes it impossible
8461 to modify hard disk contents without breaking the integrity of the
8462 dependent party. The <link to="#readOnly"/> attribute allows to
8463 quickly determine the kind of the attachment for the given hard
8464 disk. Note that if a normal base hard disk is to be indirectly
8465 attached to a virtual machine with snapshots then a special
8466 procedure called <i>smart attachment</i> is performed (see below).
8467 </td>
8468 </tr>
8469 <tr>
8470 <td>Normal (Differencing)</td>
8471 <td>
8472 Differencing hard disks are like normal base hard disks: attached
8473 <b>directly</b> if they do not have children and are not attached to
8474 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8475 that the smart attachment procedure is never performed for
8476 differencing hard disks.
8477 </td>
8478 </tr>
8479 <tr>
8480 <td>Immutable</td>
8481 <td>
8482 Immutable hard disks are always attached <b>indirectly</b> because
8483 they are designed to be non-writable. If an immutable hard disk is
8484 attached to a virtual machine with snapshots then a special
8485 procedure called smart attachment is performed (see below).
8486 </td>
8487 </tr>
8488 <tr>
8489 <td>Writethrough</td>
8490 <td>
8491 Writethrough hard disks are always attached <b>directly</b>, also as
8492 designed. This also means that writethrough hard disks cannot have
8493 other hard disks linked to them at all.
8494 </td>
8495 </tr>
8496 </table>
8497
8498 Note that the same hard disk, regardless of its type, may be attached to
8499 more than one virtual machine at a time. In this case, the machine that is
8500 started first gains exclusive access to the hard disk and attempts to
8501 start other machines having this hard disk attached will fail until the
8502 first machine is powered down.
8503
8504 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8505 that the given hard disk remains associated with the given machine after a
8506 successful <link to="IMachine::detachHardDisk"/> call until
8507 <link to="IMachine::saveSettings"/> is called to save all changes to
8508 machine settings to disk. This deferring is necessary to guarantee that
8509 the hard disk configuration may be restored at any time by a call to
8510 <link to="IMachine::discardSettings"/> before the settings
8511 are saved (committed).
8512
8513 Note that if <link to="IMachine::discardSettings"/> is called after
8514 indirectly attaching some hard disks to the machine but before a call to
8515 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8516 all differencing hard disks implicitly created by
8517 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8518 Such implicitly created hard disks will also be immediately deleted when
8519 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8520 call if it is made before <link to="IMachine::saveSettings"/>. This
8521 implicit deletion is safe because newly created differencing hard
8522 disks do not contain any user data.
8523
8524 However, keep in mind that detaching differencing hard disks that were
8525 implicitly created by <link to="IMachine::attachHardDisk"/>
8526 before the last <link to="IMachine::saveSettings"/> call will
8527 <b>not</b> implicitly delete them as they may already contain some data
8528 (for example, as a result of virtual machine execution). If these hard
8529 disks are no more necessary, the caller can always delete them explicitly
8530 using <link to="#deleteStorage"/> after they are actually de-associated
8531 from this machine by the <link to="IMachine::saveSettings"/> call.
8532
8533 <h3>Smart Attachment</h3>
8534
8535 When normal base or immutable hard disks are indirectly attached to a
8536 virtual machine then some additional steps are performed to make sure the
8537 virtual machine will have the most recent "view" of the hard disk being
8538 attached. These steps include walking through the machine's snapshots
8539 starting from the current one and going through ancestors up to the first
8540 snapshot. Hard disks attached to the virtual machine in all
8541 of the encountered snapshots are checked whether they are descendants of
8542 the given normal base or immutable hard disk. The first found child (which
8543 is the differencing hard disk) will be used instead of the normal base or
8544 immutable hard disk as a parent for creating a new differencing hard disk
8545 that will be actually attached to the machine. And only if no descendants
8546 are found or if the virtual machine does not have any snapshots then the
8547 normal base or immutable hard disk will be used itself as a parent for
8548 this differencing hard disk.
8549
8550 It is easier to explain what smart attachment does using the
8551 following example:
8552 <pre>
8553BEFORE attaching B.vdi: AFTER attaching B.vdi:
8554
8555Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8556 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8557 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8558 Snapshot 4 (none) Snapshot 4 (none)
8559 CurState (none) CurState (D3->D2.vdi)
8560
8561 NOT
8562 ...
8563 CurState (D3->B.vdi)
8564 </pre>
8565 The first column is the virtual machine configuration before the base hard
8566 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8567 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8568 mean that the hard disk that is actually attached to the machine is a
8569 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8570 another hard disk, <tt>B.vdi</tt>.
8571
8572 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8573 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8574 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8575 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8576 it cannot be attached directly and needs an indirect attachment (i.e.
8577 implicit creation of a new differencing hard disk). Due to the smart
8578 attachment procedure, the new differencing hard disk
8579 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8580 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8581 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8582 machine.
8583
8584 Note that if there is more than one descendant hard disk of the given base
8585 hard disk found in a snapshot, and there is an exact device, channel and
8586 bus match, then this exact match will be used. Otherwise, the youngest
8587 descendant will be picked up.
8588
8589 There is one more important aspect of the smart attachment procedure which
8590 is not related to snapshots at all. Before walking through the snapshots
8591 as described above, the backup copy of the current list of hard disk
8592 attachment is searched for descendants. This backup copy is created when
8593 the hard disk configuration is changed for the first time after the last
8594 <link to="IMachine::saveSettings"/> call and used by
8595 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8596 changes. When such a descendant is found in this backup copy, it will be
8597 simply re-attached back, without creating a new differencing hard disk for
8598 it. This optimization is necessary to make it possible to re-attach the
8599 base or immutable hard disk to a different bus, channel or device slot
8600 without losing the contents of the differencing hard disk actually
8601 attached to the machine in place of it.
8602 </desc>
8603
8604 <attribute name="format" type="wstring" readonly="yes">
8605 <desc>
8606 Storage format of this hard disk.
8607
8608 The value of this attribute is a string that specifies a backend used to
8609 store hard disk data. The storage format is defined when you create a
8610 new hard disk or automatically detected when you open an existing hard
8611 disk medium, and cannot be changed later.
8612
8613 The list of all storage formats supported by this VirtualBox
8614 installation can be obtained using
8615 <link to="ISystemProperties::hardDiskFormats"/>.
8616 </desc>
8617 </attribute>
8618
8619 <attribute name="type" type="HardDiskType">
8620 <desc>
8621 Type (role) of this hard disk.
8622
8623 The following constraints apply when changing the value of this
8624 attribute:
8625 <ul>
8626 <li>If a hard disk is attached to a virtual machine (either in the
8627 current state or in one of the snapshots), its type cannot be
8628 changed.
8629 </li>
8630 <li>As long as the hard disk has children, its type cannot be set
8631 to <link to="HardDiskType_Writethrough"/>.
8632 </li>
8633 <li>The type of all differencing hard disks is
8634 <link to="HardDiskType_Normal"/> and cannot be changed.
8635 </li>
8636 </ul>
8637
8638 The type of a newly created or opened hard disk is set to
8639 <link to="HardDiskType_Normal"/>.
8640 </desc>
8641 </attribute>
8642
8643 <attribute name="parent" type="IHardDisk" readonly="yes">
8644 <desc>
8645 Parent of this hard disk (a hard disk this hard disk is directly based
8646 on).
8647
8648 Only differencing hard disks have parents. For base (non-differencing)
8649 hard disks, <tt>null</tt> is returned.
8650 </desc>
8651 </attribute>
8652
8653 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8654 <desc>
8655 Children of this hard disk (all differencing hard disks directly based
8656 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8657 does not have any children.
8658 </desc>
8659 </attribute>
8660
8661 <attribute name="root" type="IHardDisk" readonly="yes">
8662 <desc>
8663 Root hard disk of this hard disk.
8664
8665 If this is a differencing hard disk, its root hard disk is the base hard
8666 disk the given hard disk branch starts from. For all other types of hard
8667 disks, this property returns the hard disk object itself (i.e. the same
8668 object this property is read on).
8669 </desc>
8670 </attribute>
8671
8672 <attribute name="readOnly" type="boolean" readonly="yes">
8673 <desc>
8674 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8675 otherwise.
8676
8677 A hard disk is considered to be read-only when its contents cannot be
8678 modified without breaking the integrity of other parties that depend on
8679 this hard disk such as its child hard disks or snapshots of virtual
8680 machines where this hard disk is attached to these machines. If there
8681 are no children and no such snapshots then there is no dependency and
8682 the hard disk is not read-only.
8683
8684 The value of this attribute can be used to determine the kind of the
8685 attachment that will take place when attaching this hard disk to a
8686 virtual machine. If the value is <tt>false</tt> then the hard disk will
8687 be attached directly. If the value is <tt>true</tt> then the hard disk
8688 will be attached indirectly by creating a new differencing child hard
8689 disk for that. See the interface description for more information.
8690
8691 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8692 disks are always read-only while all
8693 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8694 always not.
8695
8696 <note>
8697 The read-only condition represented by this attribute is related to
8698 the hard disk type and usage, not to the current
8699 <link to="IMedium::state">media state</link> and not to the read-only
8700 state of the storage unit.
8701 </note>
8702 </desc>
8703 </attribute>
8704
8705 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8706 <desc>
8707 Logical size of this hard disk (in megabytes), as reported to the
8708 guest OS running inside the virtual machine this disk is
8709 attached to. The logical size is defined when the hard disk is created
8710 and cannot be changed later.
8711
8712 <note>
8713 Reading this property on a differencing hard disk will return the size
8714 of its <link to="#root"/> hard disk.
8715 </note>
8716 <note>
8717 For hard disks whose state is <link to="#state"/> is <link
8718 to="MediaState_Inaccessible"/>, the value of this property is the
8719 last known logical size. For <link to="MediaState_NotCreated"/> hard
8720 disks, the returned value is zero.
8721 </note>
8722 </desc>
8723 </attribute>
8724
8725 <attribute name="autoReset" type="boolean">
8726 <desc>
8727 Whether this differencing hard disk will be automatically reset each
8728 time a virtual machine it is attached to is powered up.
8729
8730 See <link to="#reset()"/> for more information about resetting
8731 differencing hard disks.
8732
8733 <note>
8734 Reading this property on a base (non-differencing) hard disk will
8735 always <tt>false</tt>. Changing the value of this property in this
8736 case is not supported.
8737 </note>
8738
8739 <result name="VBOX_E_NOT_SUPPORTED">
8740 This is not a differencing hard disk (when changing the attribute
8741 value).
8742 </result>
8743 </desc>
8744 </attribute>
8745
8746 <!-- storage methods -->
8747
8748 <method name="getProperty">
8749 <desc>
8750 Returns the value of the custom hard disk property with the given name.
8751
8752 The list of all properties supported by the given hard disk format can
8753 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8754
8755 Note that if this method returns a <tt>null</tt> @a value, the requested
8756 property is supported but currently not assigned any value.
8757
8758 <result name="VBOX_E_OBJECT_NOT_FOUND">
8759 Requested property does not exist (not supported by the format).
8760 </result>
8761 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8762 </desc>
8763 <param name="name" type="wstring" dir="in">
8764 <desc>Name of the property to get.</desc>
8765 </param>
8766 <param name="value" type="wstring" dir="return">
8767 <desc>Current property value.</desc>
8768 </param>
8769 </method>
8770
8771 <method name="setProperty">
8772 <desc>
8773 Sets the value of the custom hard disk property with the given name.
8774
8775 The list of all properties supported by the given hard disk format can
8776 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8777
8778 Note that setting the property value to <tt>null</tt> is equivalent to
8779 deleting the existing value. A default value (if it is defined for this
8780 property) will be used by the format backend in this case.
8781
8782 <result name="VBOX_E_OBJECT_NOT_FOUND">
8783 Requested property does not exist (not supported by the format).
8784 </result>
8785 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8786 </desc>
8787 <param name="name" type="wstring" dir="in">
8788 <desc>Name of the property to set.</desc>
8789 </param>
8790 <param name="value" type="wstring" dir="in">
8791 <desc>Property value to set.</desc>
8792 </param>
8793 </method>
8794
8795 <method name="getProperties">
8796 <desc>
8797 Returns values for a group of properties in one call.
8798
8799 The names of the properties to get are specified using the @a names
8800 argument which is a list of comma-separated property names or
8801 <tt>null</tt> if all properties are to be returned. Note that currently
8802 the value of this argument is ignored and the method always returns all
8803 existing properties.
8804
8805 The list of all properties supported by the given hard disk format can
8806 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8807
8808 The method returns two arrays, the array of property names corresponding
8809 to the @a names argument and the current values of these properties.
8810 Both arrays have the same number of elements with each elemend at the
8811 given index in the first array corresponds to an element at the same
8812 index in the second array.
8813
8814 Note that for properties that do not have assigned values,
8815 <tt>null</tt> is returned at the appropriate index in the
8816 @a returnValues array.
8817
8818 </desc>
8819 <param name="names" type="wstring" dir="in">
8820 <desc>
8821 Names of properties to get.
8822 </desc>
8823 </param>
8824 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8825 <desc>Names of returned properties.</desc>
8826 </param>
8827 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8828 <desc>Values of returned properties.</desc>
8829 </param>
8830 </method>
8831
8832 <method name="setProperties">
8833 <desc>
8834 Sets values for a group of properties in one call.
8835
8836 The names of the properties to set are passed in the @a names
8837 array along with the new values for them in the @a values array. Both
8838 arrays have the same number of elements with each elemend at the given
8839 index in the first array corresponding to an element at the same index
8840 in the second array.
8841
8842 If there is at least one property name in @a names that is not valid,
8843 the method will fail before changing the values of any other properties
8844 from the @a names array.
8845
8846 Using this method over <link to="#setProperty"/> is preferred if you
8847 need to set several properties at once since it will result into less
8848 IPC calls.
8849
8850 The list of all properties supported by the given hard disk format can
8851 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8852
8853 Note that setting the property value to <tt>null</tt> is equivalent to
8854 deleting the existing value. A default value (if it is defined for this
8855 property) will be used by the format backend in this case.
8856 </desc>
8857 <param name="names" type="wstring" safearray="yes" dir="in">
8858 <desc>Names of properties to set.</desc>
8859 </param>
8860 <param name="values" type="wstring" safearray="yes" dir="in">
8861 <desc>Values of properties to set.</desc>
8862 </param>
8863 </method>
8864
8865 <!-- storage methods -->
8866
8867 <method name="createDynamicStorage">
8868 <desc>
8869 Starts creating a dynamically expanding hard disk storage unit in the
8870 background. The previous storage unit created for this object, if
8871 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8872 the operation will fail.
8873
8874 Before the operation starts, the hard disk is placed in
8875 <link to="MediaState_Creating"/> state. If the create operation
8876 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8877 state.
8878
8879 After the returned progress object reports that the operation has
8880 successfully completed, the media state will be set to <link
8881 to="MediaState_Created"/>, the hard disk will be remembered by this
8882 VirtualBox installation and may be attached to virtual machines.
8883
8884 <result name="VBOX_E_NOT_SUPPORTED">
8885 Dynamic storage creation operation is not supported. See <link
8886 to="IHardDiskFormat::capabilities"/>.
8887 </result>
8888 </desc>
8889 <param name="logicalSize" type="unsigned long long" dir="in">
8890 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8891 </param>
8892 <param name="progress" type="IProgress" dir="return">
8893 <desc>Progress object to track the operation completion.</desc>
8894 </param>
8895 </method>
8896
8897 <method name="createFixedStorage">
8898 <desc>
8899 Starts creating a fixed-size hard disk storage unit in the background.
8900 The previous storage unit created for this object, if
8901 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8902 the operation will fail.
8903
8904 Before the operation starts, the hard disk is placed to
8905 <link to="MediaState_Creating"/> state. If the create operation
8906 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8907 state.
8908
8909 After the returned progress object reports that the operation is
8910 successfully complete, the media state will be set to <link
8911 to="MediaState_Created"/>, the hard disk will be remembered by this
8912 VirtualBox installation and may be attached to virtual machines.
8913
8914 <result name="VBOX_E_NOT_SUPPORTED">
8915 Fixed storage creation operation is not supported. See
8916 <link to="IHardDiskFormat::capabilities"/>.
8917 </result>
8918 </desc>
8919 <param name="logicalSize" type="unsigned long long" dir="in">
8920 <desc>Logical size of the hard disk in megabytes.</desc>
8921 </param>
8922 <param name="progress" type="IProgress" dir="return">
8923 <desc>Progress object to track the operation completion.</desc>
8924 </param>
8925 </method>
8926
8927 <method name="deleteStorage">
8928 <desc>
8929 Starts deleting the storage unit of this hard disk.
8930
8931 The hard disk must not be attached to any known virtual machine and must
8932 not have any known child hard disks, otherwise the operation will fail.
8933 It will also fail if there is no storage unit to delete or if deletion
8934 is already in progress, or if the hard disk is being in use (locked for
8935 read or for write) or inaccessible. Therefore, the only valid state for
8936 this operation to succeed is <link to="MediaState_Created"/>.
8937
8938 Before the operation starts, the hard disk is placed to
8939 <link to="MediaState_Deleting"/> state and gets removed from the list
8940 of remembered hard disks (media registry). If the delete operation
8941 fails, the media will be remembered again and placed back to
8942 <link to="MediaState_Created"/> state.
8943
8944 After the returned progress object reports that the operation is
8945 complete, the media state will be set to
8946 <link to="MediaState_NotCreated"/> and you will be able to use one of
8947 the storage creation methods to create it again.
8948
8949 <see>#close()</see>
8950
8951 <result name="VBOX_E_OBJECT_IN_USE">
8952 Hard disk is attached to a virtual machine.
8953 </result>
8954 <result name="VBOX_E_NOT_SUPPORTED">
8955 Storage deletion is not allowed because neither of storage creation
8956 operations are supported. See
8957 <link to="IHardDiskFormat::capabilities"/>.
8958 </result>
8959
8960 <note>
8961 If the deletion operation fails, it is not guaranteed that the storage
8962 unit still exists. You may check the <link to="IMedium::state"/> value
8963 to answer this question.
8964 </note>
8965 </desc>
8966 <param name="progress" type="IProgress" dir="return">
8967 <desc>Progress object to track the operation completion.</desc>
8968 </param>
8969 </method>
8970
8971 <!-- diff methods -->
8972
8973 <method name="createDiffStorage">
8974 <desc>
8975 Starts creating an empty differencing storage unit based on this hard
8976 disk in the format and at the location defined by the @a target
8977 argument.
8978
8979 The target hard disk must be in <link to="MediaState_NotCreated"/>
8980 state (i.e. must not have an existing storage unit). Upon successful
8981 completion, this operation will set the type of the target hard disk to
8982 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8983 represent the differencing hard disk data in the given format (according
8984 to the storage format of the target object).
8985
8986 After the returned progress object reports that the operation is
8987 successfully complete, the target hard disk gets remembered by this
8988 VirtualBox installation and may be attached to virtual machines.
8989
8990 <note>
8991 The hard disk will be set to <link to="MediaState_LockedRead"/>
8992 state for the duration of this operation.
8993 </note>
8994 <result name="VBOX_E_OBJECT_IN_USE">
8995 Hard disk not in NotCreated state.
8996 </result>
8997 </desc>
8998 <param name="target" type="IHardDisk" dir="in">
8999 <desc>Target hard disk.</desc>
9000 </param>
9001 <param name="progress" type="IProgress" dir="return">
9002 <desc>Progress object to track the operation completion.</desc>
9003 </param>
9004 </method>
9005
9006 <method name="mergeTo">
9007 <desc>
9008 Starts merging the contents of this hard disk and all intermediate
9009 differencing hard disks in the chain to the given target hard disk.
9010
9011 The target hard disk must be either a descendant of this hard disk or
9012 its ancestor (otherwise this method will immediately return a failure).
9013 It follows that there are two logical directions of the merge operation:
9014 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9015 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9016 chain:
9017
9018 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9019
9020 Here, calling this method on the <tt>Base</tt> hard disk object with
9021 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9022 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9023 merge. Note that in both cases the contents of the resulting hard disk
9024 will be the same, the only difference is the hard disk object that takes
9025 the result of the merge operation. In case of the forward merge in the
9026 above example, the result will be written to <tt>Diff_2</tt>; in case of
9027 the backward merge, the result will be written to <tt>Base</tt>. In
9028 other words, the result of the operation is always stored in the target
9029 hard disk.
9030
9031 Upon successful operation completion, the storage units of all hard
9032 disks in the chain between this (source) hard disk and the target hard
9033 disk, including the source hard disk itself, will be automatically
9034 deleted and the relevant hard disk objects (including this hard disk)
9035 will become uninitialized. This means that any attempt to call any of
9036 their methods or attributes will fail with the
9037 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9038 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9039 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9040 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9041 disk itself since it will no longer be based on any other hard disk.
9042
9043 Considering the above, all of the following conditions must be met in
9044 order for the merge operation to succeed:
9045 <ul>
9046 <li>
9047 Neither this (source) hard disk nor any intermediate
9048 differencing hard disk in the chain between it and the target
9049 hard disk is attached to any virtual machine.
9050 </li>
9051 <li>
9052 Neither the source hard disk nor the target hard disk is an
9053 <link to="HardDiskType_Immutable"/> hard disk.
9054 </li>
9055 <li>
9056 The part of the hard disk tree from the source hard disk to the
9057 target hard disk is a linear chain, i.e. all hard disks in this
9058 chain have exactly one child which is the next hard disk in this
9059 chain. The only exception from this rule is the target hard disk in
9060 the forward merge operation; it is allowed to have any number of
9061 child hard disks because the merge operation will hot change its
9062 logical contents (as it is seen by the guest OS or by children).
9063 </li>
9064 <li>
9065 None of the involved hard disks are in
9066 <link to="MediaState_LockedRead"/> or
9067 <link to="MediaState_LockedWrite"/> state.
9068 </li>
9069 </ul>
9070
9071 <note>
9072 This (source) hard disk and all intermediates will be placed to <link
9073 to="MediaState_Deleting"/> state and the target hard disk will be
9074 placed to <link to="MediaState_LockedWrite"/> state and for the
9075 duration of this operation.
9076 </note>
9077 </desc>
9078 <param name="targetId" type="uuid" dir="in">
9079 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9080 </param>
9081 <param name="progress" type="IProgress" dir="return">
9082 <desc>Progress object to track the operation completion.</desc>
9083 </param>
9084 </method>
9085
9086 <!-- clone methods -->
9087
9088 <method name="cloneTo">
9089 <desc>
9090 Starts creating a clone of this hard disk in the format and at the
9091 location defined by the @a target argument.
9092
9093 The target hard disk must be in <link to="MediaState_NotCreated"/>
9094 state (i.e. must not have an existing storage unit). Upon successful
9095 completion, the cloned hard disk will contain exactly the same sector
9096 data as the hard disk being cloned, except that a new UUID for the clone
9097 will be randomly generated.
9098
9099 After the returned progress object reports that the operation is
9100 successfully complete, the target hard disk gets remembered by this
9101 VirtualBox installation and may be attached to virtual machines.
9102
9103 <note>
9104 If the cloned hard disk is a differencing hard disk, it will inherit
9105 parent dependency of the original hard disk.
9106 </note>
9107 <note>
9108 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9109 state for the duration of this operation.
9110 </note>
9111 </desc>
9112 <param name="target" type="IHardDisk" dir="in">
9113 <desc>Target hard disk.</desc>
9114 </param>
9115 <param name="progress" type="IProgress" dir="return">
9116 <desc>Progress object to track the operation completion.</desc>
9117 </param>
9118 </method>
9119
9120 <method name="flattenTo">
9121 <desc>
9122 Starts creating a deep (independent) clone of this hard disk in the
9123 format and at the location defined by the @a target argument.
9124
9125 This operation is similar to <link to="#cloneTo"/> except that when
9126 applied to a differencing hard disk, it will also copy missing hard disk
9127 data from all parent hard disks it is linked to. This will make the
9128 created clone an independent base hard disk that contains all hard disk
9129 data and does not need any other hard disks to operate.
9130
9131 After the returned progress object reports that the operation is
9132 successfully complete, the target hard disk gets remembered by this
9133 VirtualBox installation and may be attached to virtual machines.
9134
9135 <note>
9136 For base hard disks, this operation is identical to
9137 <link to="#cloneTo"/>.
9138 </note>
9139 <note>
9140 This hard disk and all its parent hard disks will be placed to <link
9141 to="MediaState_LockedRead"/> state for the duration of this
9142 operation.
9143 </note>
9144 </desc>
9145 <param name="target" type="IHardDisk" dir="in">
9146 <desc>Target hard disk.</desc>
9147 </param>
9148 <param name="progress" type="IProgress" dir="return">
9149 <desc>Progress object to track the operation completion.</desc>
9150 </param>
9151 </method>
9152
9153 <!-- other methods -->
9154
9155 <method name="compact">
9156 <desc>
9157 Starts compacting of this hard disk. This means that the disk is
9158 transformed into a possibly more compact storage representation.
9159 This potentially creates temporary images, which can require a
9160 substantial amount of additional disk space.
9161
9162 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9163 state and all its parent hard disks (if any) will be placed to
9164 <link to="MediaState_LockedRead"/> state for the duration of this
9165 operation.
9166 </desc>
9167 <param name="progress" type="IProgress" dir="return">
9168 <desc>Progress object to track the operation completion.</desc>
9169 </param>
9170 </method>
9171
9172 <method name="reset">
9173 <desc>
9174 Starts erasing the contents of this differencing hard disk.
9175
9176 This operation will reset the differencing hard disk to its initial
9177 state when it does not contain any sector data and any read operation is
9178 redirected to its parent hard disk.
9179
9180 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9181 for the duration of this operation.
9182
9183 <result name="VBOX_E_NOT_SUPPORTED">
9184 This is not a differencing hard disk.
9185 </result>
9186 <result name="VBOX_E_INVALID_OBJECT_STATE">
9187 Hard disk is not in <link to="MediaState_Created"/> or
9188 <link to="MediaState_Inaccessible"/> state.
9189 </result>
9190 </desc>
9191 <param name="progress" type="IProgress" dir="return">
9192 <desc>Progress object to track the operation completion.</desc>
9193 </param>
9194 </method>
9195
9196 </interface>
9197
9198
9199 <!--
9200 // IHardDiskFormat
9201 /////////////////////////////////////////////////////////////////////////
9202 -->
9203
9204 <enum
9205 name="DataType"
9206 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9207 >
9208 <const name="Int32" value="0"/>
9209 <const name="Int8" value="1"/>
9210 <const name="String" value="2"/>
9211 </enum>
9212
9213 <enum
9214 name="DataFlags"
9215 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9216 >
9217 <const name="None" value="0x00"/>
9218 <const name="Mandatory" value="0x01"/>
9219 <const name="Expert" value="0x02"/>
9220 <const name="Array" value="0x04"/>
9221 <const name="FlagMask" value="0x07"/>
9222 </enum>
9223
9224 <enum
9225 name="HardDiskFormatCapabilities"
9226 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9227 >
9228 <desc>
9229 Hard disk format capability flags.
9230 </desc>
9231
9232 <const name="Uuid" value="0x01">
9233 <desc>
9234 Supports UUIDs as expected by VirtualBox code.
9235 </desc>
9236 </const>
9237
9238 <const name="CreateFixed" value="0x02">
9239 <desc>
9240 Supports creating fixed size images, allocating all space instantly.
9241 </desc>
9242 </const>
9243
9244 <const name="CreateDynamic" value="0x04">
9245 <desc>
9246 Supports creating dynamically growing images, allocating space on
9247 demand.
9248 </desc>
9249 </const>
9250
9251 <const name="CreateSplit2G" value="0x08">
9252 <desc>
9253 Supports creating images split in chunks of a bit less than 2 GBytes.
9254 </desc>
9255 </const>
9256
9257 <const name="Differencing" value="0x10">
9258 <desc>
9259 Supports being used as a format for differencing hard disks (see <link
9260 to="IHardDisk::createDiffStorage"/>).
9261 </desc>
9262 </const>
9263
9264 <const name="Asynchronous" value="0x20">
9265 <desc>
9266 Supports asynchronous I/O operations for at least some configurations.
9267 </desc>
9268 </const>
9269
9270 <const name="File" value="0x40">
9271 <desc>
9272 The format backend operates on files (the <link to="IMedium::location"/>
9273 attribute of the hard disk specifies a file used to store hard disk
9274 data; for a list of supported file extensions see
9275 <link to="IHardDiskFormat::fileExtensions"/>).
9276 </desc>
9277 </const>
9278
9279 <const name="Properties" value="0x80">
9280 <desc>
9281 The format backend uses the property interface to configure the storage
9282 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9283 method is used to get access to properties supported by the given hard
9284 disk format).
9285 </desc>
9286 </const>
9287
9288 <const name="CapabilityMask" value="0xFF"/>
9289 </enum>
9290
9291 <interface
9292 name="IHardDiskFormat" extends="$unknown"
9293 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9294 wsmap="managed"
9295 >
9296 <desc>
9297 The IHardDiskFormat interface represents a virtual hard disk format.
9298
9299 Each hard disk format has an associated backend which is used to handle
9300 hard disks stored in this format. This interface provides information
9301 about the properties of the associated backend.
9302
9303 Each hard disk format is identified by a string represented by the
9304 <link to="#id"/> attribute. This string is used in calls like
9305 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9306 format.
9307
9308 The list of all supported hard disk formats can be obtained using
9309 <link to="ISystemProperties::hardDiskFormats"/>.
9310
9311 <see>IHardDisk</see>
9312 </desc>
9313
9314 <attribute name="id" type="wstring" readonly="yes">
9315 <desc>
9316 Identifier of this format.
9317
9318 The format identifier is a non-null non-empty ASCII string. Note that
9319 this string is case-insensitive. This means that, for example, all of
9320 the following strings:
9321 <pre>
9322 "VDI"
9323 "vdi"
9324 "VdI"</pre>
9325 refer to the same hard disk format.
9326
9327 This string is used in methods of other interfaces where it is necessary
9328 to specify a hard disk format, such as
9329 <link to="IVirtualBox::createHardDisk"/>.
9330 </desc>
9331 </attribute>
9332
9333 <attribute name="name" type="wstring" readonly="yes">
9334 <desc>
9335 Human readable description of this format.
9336
9337 Mainly for use in file open dialogs.
9338 </desc>
9339 </attribute>
9340
9341 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9342 <desc>
9343 Array of strings containing the supported file extensions.
9344
9345 The first extension in the array is the extension preferred by the
9346 backend. It is recommended to use this extension when specifying a
9347 location of the storage unit for a new hard disk.
9348
9349 Note that some backends do not work on files, so this array may be
9350 empty.
9351
9352 <see>IHardDiskFormat::capabilities</see>
9353 </desc>
9354 </attribute>
9355
9356 <attribute name="capabilities" type="unsigned long" readonly="yes">
9357 <desc>
9358 Capabilities of the format as a set of bit flags.
9359
9360 For the meaning of individual capability flags see
9361 <link to="HardDiskFormatCapabilities"/>.
9362 </desc>
9363 </attribute>
9364
9365 <method name="describeProperties">
9366 <desc>
9367 Returns several arrays describing the properties supported by this
9368 format.
9369
9370 An element with the given index in each array describes one
9371 property. Thus, the number of elements in each returned array is the
9372 same and corresponds to the number of supported properties.
9373
9374 The returned arrays are filled in only if the
9375 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9376 All arguments must be non-NULL.
9377
9378 <see>DataType</see>
9379 <see>DataFlags</see>
9380 </desc>
9381
9382 <param name="names" type="wstring" safearray="yes" dir="out">
9383 <desc>Array of property names.</desc>
9384 </param>
9385 <param name="description" type="wstring" safearray="yes" dir="out">
9386 <desc>Array of property descriptions.</desc>
9387 </param>
9388 <param name="types" type="DataType" safearray="yes" dir="out">
9389 <desc>Array of property types.</desc>
9390 </param>
9391 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9392 <desc>Array of property flags.</desc>
9393 </param>
9394 <param name="defaults" type="wstring" safearray="yes" dir="out">
9395 <desc>Array of default property values.</desc>
9396 </param>
9397 </method>
9398
9399 </interface>
9400
9401
9402 <!--
9403 // IFloppyImage
9404 /////////////////////////////////////////////////////////////////////////
9405 -->
9406
9407 <interface
9408 name="IFloppyImage" extends="IMedium"
9409 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9410 wsmap="managed"
9411 >
9412 <desc>
9413 The IFloppyImage interface represents a medium containing the image
9414 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9415 </desc>
9416
9417 </interface>
9418
9419
9420 <!--
9421 // IDVDImage
9422 /////////////////////////////////////////////////////////////////////////
9423 -->
9424
9425 <interface
9426 name="IDVDImage" extends="IMedium"
9427 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9428 wsmap="managed"
9429 >
9430 <desc>
9431 The IDVDImage interface represents a medium containing the image
9432 of a CD or DVD disk in the ISO format.
9433
9434 This is a subclass of <link to="IMedium" />; see remarks there.
9435 </desc>
9436
9437 </interface>
9438
9439
9440 <!--
9441 // IDVDDrive
9442 /////////////////////////////////////////////////////////////////////////
9443 -->
9444
9445 <interface
9446 name="IDVDDrive" extends="$unknown"
9447 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9448 wsmap="managed"
9449 >
9450 <desc>
9451 The IDVDDrive interface represents the virtual CD/DVD drive of the
9452 virtual machine. An object of this type is returned by
9453 <link to="IMachine::DVDDrive"/>.
9454 </desc>
9455
9456 <attribute name="state" type="DriveState" readonly="yes">
9457 <desc>Current drive state.</desc>
9458 </attribute>
9459
9460 <attribute name="passthrough" type="boolean">
9461 <desc>
9462 When a host drive is mounted and passthrough is enabled
9463 the guest OS will be able to directly send SCSI commands to
9464 the host drive. This enables the guest OS to use CD/DVD writers
9465 but is potentially dangerous.
9466 </desc>
9467 </attribute>
9468
9469 <method name="mountImage">
9470 <desc>Mounts a CD/DVD image with the specified UUID.
9471
9472 <result name="VBOX_E_FILE_ERROR">
9473 Invalid image file location.
9474 </result>
9475 <result name="VBOX_E_OBJECT_NOT_FOUND">
9476 Could not find a CD/DVD image matching @a imageID.
9477 </result>
9478 <result name="VBOX_E_INVALID_OBJECT_STATE">
9479 Invalid media state.
9480 </result>
9481
9482 </desc>
9483 <param name="imageId" type="uuid" dir="in"/>
9484 </method>
9485
9486 <method name="captureHostDrive">
9487 <desc>Captures the specified host CD/DVD drive.</desc>
9488 <param name="drive" type="IHostDVDDrive" dir="in"/>
9489 </method>
9490
9491 <method name="unmount">
9492 <desc>Unmounts the currently mounted image or host drive.</desc>
9493 </method>
9494
9495 <method name="getImage">
9496 <desc>Returns the currently mounted CD/DVD image.</desc>
9497 <param name="image" type="IDVDImage" dir="return"/>
9498 </method>
9499
9500 <method name="getHostDrive">
9501 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9502 <param name="drive" type="IHostDVDDrive" dir="return"/>
9503 </method>
9504
9505 </interface>
9506
9507
9508 <!--
9509 // IFloppyDrive
9510 /////////////////////////////////////////////////////////////////////////
9511 -->
9512
9513 <interface
9514 name="IFloppyDrive" extends="$unknown"
9515 uuid="159412cd-bab8-452e-8097-218a020825a6"
9516 wsmap="managed"
9517 >
9518 <desc>
9519 The IFloppyDrive interface represents the virtual floppy drive of the
9520 virtual machine. An object of this type is returned by
9521 <link to="IMachine::floppyDrive" />.
9522 </desc>
9523
9524 <attribute name="enabled" type="boolean">
9525 <desc>
9526 Flag whether the floppy drive is enabled. If it is disabled,
9527 the floppy drive will not be reported to the guest OS.
9528 </desc>
9529 </attribute>
9530
9531 <attribute name="state" type="DriveState" readonly="yes">
9532 <desc>Current drive state.</desc>
9533 </attribute>
9534
9535 <method name="mountImage">
9536 <desc>Mounts a floppy image with the specified UUID.
9537
9538 <result name="VBOX_E_FILE_ERROR">
9539 Invalid image file location.
9540 </result>
9541 <result name="VBOX_E_OBJECT_NOT_FOUND">
9542 Could not find a floppy image matching @a imageID.
9543 </result>
9544 <result name="VBOX_E_INVALID_OBJECT_STATE">
9545 Invalid media state.
9546 </result>
9547
9548 </desc>
9549 <param name="imageId" type="uuid" dir="in"/>
9550 </method>
9551
9552 <method name="captureHostDrive">
9553 <desc>Captures the specified host floppy drive.</desc>
9554 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9555 </method>
9556
9557 <method name="unmount">
9558 <desc>Unmounts the currently mounted image or host drive.</desc>
9559 </method>
9560
9561 <method name="getImage">
9562 <desc>Returns the currently mounted floppy image.</desc>
9563 <param name="image" type="IFloppyImage" dir="return"/>
9564 </method>
9565
9566 <method name="getHostDrive">
9567 <desc>Returns the currently mounted host floppy drive.</desc>
9568 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9569 </method>
9570
9571 </interface>
9572
9573
9574 <!--
9575 // IKeyboard
9576 /////////////////////////////////////////////////////////////////////////
9577 -->
9578
9579 <interface
9580 name="IKeyboard" extends="$unknown"
9581 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9582 wsmap="managed"
9583 >
9584 <desc>
9585 The IKeyboard interface represents the virtual machine's keyboard. Used
9586 in <link to="IConsole::keyboard"/>.
9587
9588 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9589 to the virtual machine.
9590
9591 </desc>
9592 <method name="putScancode">
9593 <desc>Sends a scancode to the keyboard.
9594
9595 <result name="VBOX_E_IPRT_ERROR">
9596 Could not send scan code to virtual keyboard.
9597 </result>
9598
9599 </desc>
9600 <param name="scancode" type="long" dir="in"/>
9601 </method>
9602
9603 <method name="putScancodes">
9604 <desc>Sends an array of scancodes to the keyboard.
9605
9606 <result name="VBOX_E_IPRT_ERROR">
9607 Could not send all scan codes to virtual keyboard.
9608 </result>
9609
9610 </desc>
9611 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9612 <param name="codesStored" type="unsigned long" dir="return"/>
9613 </method>
9614
9615 <method name="putCAD">
9616 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9617 function is nothing special, it is just a convenience function
9618 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9619
9620 <result name="VBOX_E_IPRT_ERROR">
9621 Could not send all scan codes to virtual keyboard.
9622 </result>
9623
9624 </desc>
9625 </method>
9626
9627 </interface>
9628
9629
9630 <!--
9631 // IMouse
9632 /////////////////////////////////////////////////////////////////////////
9633 -->
9634
9635 <enum
9636 name="MouseButtonState"
9637 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9638 >
9639 <desc>
9640 Mouse button state.
9641 </desc>
9642
9643 <const name="LeftButton" value="0x01"/>
9644 <const name="RightButton" value="0x02"/>
9645 <const name="MiddleButton" value="0x04"/>
9646 <const name="WheelUp" value="0x08"/>
9647 <const name="WheelDown" value="0x10"/>
9648 <const name="MouseStateMask" value="0x1F"/>
9649 </enum>
9650
9651 <interface
9652 name="IMouse" extends="$unknown"
9653 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9654 wsmap="managed"
9655 >
9656 <desc>
9657 The IMouse interface represents the virtual machine's mouse. Used in
9658 <link to="IConsole::mouse"/>.
9659
9660 Through this interface, the virtual machine's virtual mouse can be
9661 controlled.
9662 </desc>
9663
9664 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9665 <desc>
9666 Whether the guest OS supports absolute mouse pointer positioning
9667 or not.
9668 <note>
9669 VirtualBox Guest Tools need to be installed to the guest OS
9670 in order to enable absolute mouse positioning support.
9671 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9672 callback to be instantly informed about changes of this attribute
9673 during virtual machine execution.
9674 </note>
9675 <see><link to="#putMouseEventAbsolute"/></see>
9676 </desc>
9677 </attribute>
9678
9679 <method name="putMouseEvent">
9680 <desc>
9681 Initiates a mouse event using relative pointer movements
9682 along x and y axis.
9683
9684 <result name="E_ACCESSDENIED">
9685 Console not powered up.
9686 </result>
9687 <result name="VBOX_E_IPRT_ERROR">
9688 Could not send mouse event to virtual mouse.
9689 </result>
9690
9691 </desc>
9692
9693 <param name="dx" type="long" dir="in">
9694 <desc>
9695 Amount of pixels the mouse should move to the right.
9696 Negative values move the mouse to the left.
9697 </desc>
9698 </param>
9699 <param name="dy" type="long" dir="in">
9700 <desc>
9701 Amount of pixels the mouse should move downwards.
9702 Negative values move the mouse upwards.
9703 </desc>
9704 </param>
9705 <param name="dz" type="long" dir="in">
9706 <desc>
9707 Amount of mouse wheel moves.
9708 Positive values describe clockwise wheel rotations,
9709 negative values describe counterclockwise rotations.
9710 </desc>
9711 </param>
9712 <param name="buttonState" type="long" dir="in">
9713 <desc>
9714 The current state of mouse buttons. Every bit represents
9715 a mouse button as follows:
9716 <table>
9717 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9718 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9719 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9720 </table>
9721 A value of <tt>1</tt> means the corresponding button is pressed.
9722 otherwise it is released.
9723 </desc>
9724 </param>
9725 </method>
9726
9727 <method name="putMouseEventAbsolute">
9728 <desc>
9729 Positions the mouse pointer using absolute x and y coordinates.
9730 These coordinates are expressed in pixels and
9731 start from <tt>[1,1]</tt> which corresponds to the top left
9732 corner of the virtual display.
9733
9734 <result name="E_ACCESSDENIED">
9735 Console not powered up.
9736 </result>
9737 <result name="VBOX_E_IPRT_ERROR">
9738 Could not send mouse event to virtual mouse.
9739 </result>
9740
9741 <note>
9742 This method will have effect only if absolute mouse
9743 positioning is supported by the guest OS.
9744 </note>
9745
9746 <see><link to="#absoluteSupported"/></see>
9747 </desc>
9748
9749 <param name="x" type="long" dir="in">
9750 <desc>
9751 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9752 </desc>
9753 </param>
9754 <param name="y" type="long" dir="in">
9755 <desc>
9756 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9757 </desc>
9758 </param>
9759 <param name="dz" type="long" dir="in">
9760 <desc>
9761 Amount of mouse wheel moves.
9762 Positive values describe clockwise wheel rotations,
9763 negative values describe counterclockwise rotations.
9764 </desc>
9765 </param>
9766 <param name="buttonState" type="long" dir="in">
9767 <desc>
9768 The current state of mouse buttons. Every bit represents
9769 a mouse button as follows:
9770 <table>
9771 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9772 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9773 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9774 </table>
9775 A value of <tt>1</tt> means the corresponding button is pressed.
9776 otherwise it is released.
9777 </desc>
9778 </param>
9779 </method>
9780
9781 </interface>
9782
9783 <!--
9784 // IDisplay
9785 /////////////////////////////////////////////////////////////////////////
9786 -->
9787
9788 <enum
9789 name="FramebufferAccelerationOperation"
9790 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9791 >
9792 <desc>
9793 Frame buffer acceleration operation.
9794 </desc>
9795
9796 <const name="SolidFillAcceleration" value="1"/>
9797 <const name="ScreenCopyAcceleration" value="2"/>
9798 </enum>
9799
9800 <enum
9801 name="FramebufferPixelFormat"
9802 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9803 >
9804 <desc>
9805 Format of the video memory buffer. Constants represented by this enum can
9806 be used to test for particular values of <link
9807 to="IFramebuffer::pixelFormat"/>. See also <link
9808 to="IFramebuffer::requestResize"/>.
9809
9810 See also www.fourcc.org for more information about FOURCC pixel formats.
9811 </desc>
9812
9813 <const name="Opaque" value="0">
9814 <desc>
9815 Unknown buffer format (the user may not assume any particular format of
9816 the buffer).
9817 </desc>
9818 </const>
9819 <const name="FOURCC_RGB" value="0x32424752">
9820 <desc>
9821 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9822 bit layout).
9823 </desc>
9824 </const>
9825 </enum>
9826
9827 <interface
9828 name="IFramebuffer" extends="$unknown"
9829 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9830 wsmap="suppress"
9831 >
9832 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9833 <desc>Address of the start byte of the frame buffer.</desc>
9834 </attribute>
9835
9836 <attribute name="width" type="unsigned long" readonly="yes">
9837 <desc>Frame buffer width, in pixels.</desc>
9838 </attribute>
9839
9840 <attribute name="height" type="unsigned long" readonly="yes">
9841 <desc>Frame buffer height, in pixels.</desc>
9842 </attribute>
9843
9844 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9845 <desc>
9846 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9847 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9848 are: 8, 15, 16, 24 and 32.
9849 </desc>
9850 </attribute>
9851
9852 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9853 <desc>
9854 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9855 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9856 size of the scan line must be aligned to 32 bits.
9857 </desc>
9858 </attribute>
9859
9860 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9861 <desc>
9862 Frame buffer pixel format. It's either one of the values defined by <link
9863 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9864 <note>
9865 This attribute must never return <link
9866 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9867 <link to="#address"/> points to must be always known.
9868 </note>
9869 </desc>
9870 </attribute>
9871
9872 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9873 <desc>
9874 Defines whether this frame buffer uses the virtual video card's memory
9875 buffer (guest VRAM) directly or not. See <link
9876 to="IFramebuffer::requestResize"/> for more information.
9877 </desc>
9878 </attribute>
9879
9880 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9881 <desc>
9882 Hint from the frame buffer about how much of the standard
9883 screen height it wants to use for itself. This information is
9884 exposed to the guest through the VESA BIOS and VMMDev interface
9885 so that it can use it for determining its video mode table. It
9886 is not guaranteed that the guest respects the value.
9887 </desc>
9888 </attribute>
9889
9890 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9891 <desc>
9892 An alpha-blended overlay which is superposed over the frame buffer.
9893 The initial purpose is to allow the display of icons providing
9894 information about the VM state, including disk activity, in front
9895 ends which do not have other means of doing that. The overlay is
9896 designed to controlled exclusively by IDisplay. It has no locking
9897 of its own, and any changes made to it are not guaranteed to be
9898 visible until the affected portion of IFramebuffer is updated. The
9899 overlay can be created lazily the first time it is requested. This
9900 attribute can also return NULL to signal that the overlay is not
9901 implemented.
9902 </desc>
9903 </attribute>
9904
9905 <attribute name="winId" type="unsigned long long" readonly="yes">
9906 <desc>
9907 Platform-dependent identifier of the window where context of this
9908 frame buffer is drawn, or zero if there's no such window.
9909 </desc>
9910 </attribute>
9911
9912 <method name="lock">
9913 <desc>
9914 Locks the frame buffer.
9915 Gets called by the IDisplay object where this frame buffer is
9916 bound to.
9917 </desc>
9918 </method>
9919
9920 <method name="unlock">
9921 <desc>
9922 Unlocks the frame buffer.
9923 Gets called by the IDisplay object where this frame buffer is
9924 bound to.
9925 </desc>
9926 </method>
9927
9928 <method name="notifyUpdate">
9929 <desc>
9930 Informs about an update.
9931 Gets called by the display object where this buffer is
9932 registered.
9933 </desc>
9934 <param name="x" type="unsigned long" dir="in"/>
9935 <param name="y" type="unsigned long" dir="in"/>
9936 <param name="width" type="unsigned long" dir="in"/>
9937 <param name="height" type="unsigned long" dir="in"/>
9938 <param name="finished" type="boolean" dir="return"/>
9939 </method>
9940
9941 <method name="requestResize">
9942 <desc>
9943 Requests a size and pixel format change.
9944
9945 There are two modes of working with the video buffer of the virtual
9946 machine. The <i>indirect</i> mode implies that the IFramebuffer
9947 implementation allocates a memory buffer for the requested display mode
9948 and provides it to the virtual machine. In <i>direct</i> mode, the
9949 IFramebuffer implementation uses the memory buffer allocated and owned
9950 by the virtual machine. This buffer represents the video memory of the
9951 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9952 usually faster because the implementation gets a raw pointer to the
9953 guest VRAM buffer which it can directly use for visualizing the contents
9954 of the virtual display, as opposed to the indirect mode where the
9955 contents of guest VRAM are copied to the memory buffer provided by
9956 the implementation every time a display update occurs.
9957
9958 It is important to note that the direct mode is really fast only when
9959 the implementation uses the given guest VRAM buffer directly, for
9960 example, by blitting it to the window representing the virtual machine's
9961 display, which saves at least one copy operation comparing to the
9962 indirect mode. However, using the guest VRAM buffer directly is not
9963 always possible: the format and the color depth of this buffer may be
9964 not supported by the target window, or it may be unknown (opaque) as in
9965 case of text or non-linear multi-plane VGA video modes. In this case,
9966 the indirect mode (that is always available) should be used as a
9967 fallback: when the guest VRAM contents are copied to the
9968 implementation-provided memory buffer, color and format conversion is
9969 done automatically by the underlying code.
9970
9971 The @a pixelFormat parameter defines whether the direct mode is
9972 available or not. If @a pixelFormat is <link
9973 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9974 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
9975 @a bytesPerLine parameters must be ignored and the implementation must use
9976 the indirect mode (where it provides its own buffer in one of the
9977 supported formats). In all other cases, @a pixelFormat together with
9978 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
9979 buffer pointed to by the @a VRAM parameter and the implementation is
9980 free to choose which mode to use. To indicate that this frame buffer uses
9981 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9982 attribute must return <tt>true</tt> and <link to="#address"/> must
9983 return exactly the same address that is passed in the @a VRAM parameter
9984 of this method; otherwise it is assumed that the indirect strategy is
9985 chosen.
9986
9987 The @a width and @a height parameters represent the size of the
9988 requested display mode in both modes. In case of indirect mode, the
9989 provided memory buffer should be big enough to store data of the given
9990 display mode. In case of direct mode, it is guaranteed that the given
9991 @a VRAM buffer contains enough space to represent the display mode of the
9992 given size. Note that this frame buffer's <link to="#width"/> and <link
9993 to="#height"/> attributes must return exactly the same values as
9994 passed to this method after the resize is completed (see below).
9995
9996 The @a finished output parameter determines if the implementation has
9997 finished resizing the frame buffer or not. If, for some reason, the
9998 resize cannot be finished immediately during this call, @a finished
9999 must be set to @c false, and the implementation must call
10000 <link to="IDisplay::resizeCompleted"/> after it has returned from
10001 this method as soon as possible. If @a finished is @c false, the
10002 machine will not call any frame buffer methods until
10003 <link to="IDisplay::resizeCompleted"/> is called.
10004
10005 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10006 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10007 this frame buffer must return exactly the same values as specified in the
10008 parameters of this method, after the resize is completed. If the
10009 indirect mode is chosen, these attributes must return values describing
10010 the format of the implementation's own memory buffer <link
10011 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10012 value must always correlate with <link to="#pixelFormat"/>. Note that
10013 the <link to="#pixelFormat"/> attribute must never return <link
10014 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10015
10016 <note>
10017 This method is called by the IDisplay object under the
10018 <link to="#lock"/> provided by this IFramebuffer
10019 implementation. If this method returns @c false in @a finished, then
10020 this lock is not released until
10021 <link to="IDisplay::resizeCompleted"/> is called.
10022 </note>
10023 </desc>
10024 <param name="screenId" type="unsigned long" dir="in">
10025 <desc>
10026 Logical screen number. Must be used in the corresponding call to
10027 <link to="IDisplay::resizeCompleted"/> if this call is made.
10028 </desc>
10029 </param>
10030 <param name="pixelFormat" type="unsigned long" dir="in">
10031 <desc>
10032 Pixel format of the memory buffer pointed to by @a VRAM.
10033 See also <link to="FramebufferPixelFormat"/>.
10034 </desc>
10035 </param>
10036 <param name="VRAM" type="octet" mod="ptr" dir="in">
10037 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10038 </param>
10039 <param name="bitsPerPixel" type="unsigned long" dir="in">
10040 <desc>Color depth, bits per pixel.</desc>
10041 </param>
10042 <param name="bytesPerLine" type="unsigned long" dir="in">
10043 <desc>Size of one scan line, in bytes.</desc>
10044 </param>
10045 <param name="width" type="unsigned long" dir="in">
10046 <desc>Width of the guest display, in pixels.</desc>
10047 </param>
10048 <param name="height" type="unsigned long" dir="in">
10049 <desc>Height of the guest display, in pixels.</desc>
10050 </param>
10051 <param name="finished" type="boolean" dir="return">
10052 <desc>
10053 Can the VM start using the new frame buffer immediately
10054 after this method returns or it should wait for
10055 <link to="IDisplay::resizeCompleted"/>.
10056 </desc>
10057 </param>
10058 </method>
10059
10060 <method name="operationSupported">
10061 <desc>
10062 Returns whether the given acceleration operation is supported
10063 by the IFramebuffer implementation. If not, the display object
10064 will not attempt to call the corresponding IFramebuffer entry
10065 point. Even if an operation is indicated as supported, the
10066 IFramebuffer implementation always has the option to return non
10067 supported from the corresponding acceleration method in which
10068 case the operation will be performed by the display engine. This
10069 allows for reduced IFramebuffer implementation complexity where
10070 only common cases are handled.
10071 </desc>
10072 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
10073 <param name="supported" type="boolean" dir="return"/>
10074 </method>
10075
10076 <method name="videoModeSupported">
10077 <desc>
10078 Returns whether the frame buffer implementation is willing to
10079 support a given video mode. In case it is not able to render
10080 the video mode (or for some reason not willing), it should
10081 return false. Usually this method is called when the guest
10082 asks the VMM device whether a given video mode is supported
10083 so the information returned is directly exposed to the guest.
10084 It is important that this method returns very quickly.
10085 </desc>
10086 <param name="width" type="unsigned long" dir="in"/>
10087 <param name="height" type="unsigned long" dir="in"/>
10088 <param name="bpp" type="unsigned long" dir="in"/>
10089 <param name="supported" type="boolean" dir="return"/>
10090 </method>
10091
10092 <method name="solidFill">
10093 <desc>
10094 Fills the specified rectangle on screen with a solid color.
10095 </desc>
10096 <param name="x" type="unsigned long" dir="in"/>
10097 <param name="y" type="unsigned long" dir="in"/>
10098 <param name="width" type="unsigned long" dir="in"/>
10099 <param name="height" type="unsigned long" dir="in"/>
10100 <param name="color" type="unsigned long" dir="in"/>
10101 <param name="handled" type="boolean" dir="return"/>
10102 </method>
10103
10104 <method name="copyScreenBits">
10105 <desc>
10106 Copies specified rectangle on the screen.
10107 </desc>
10108 <param name="xDst" type="unsigned long" dir="in"/>
10109 <param name="yDst" type="unsigned long" dir="in"/>
10110 <param name="xSrc" type="unsigned long" dir="in"/>
10111 <param name="ySrc" type="unsigned long" dir="in"/>
10112 <param name="width" type="unsigned long" dir="in"/>
10113 <param name="height" type="unsigned long" dir="in"/>
10114 <param name="handled" type="boolean" dir="return"/>
10115 </method>
10116
10117 <method name="getVisibleRegion">
10118 <desc>
10119 Returns the visible region of this frame buffer.
10120
10121 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10122 @a count parameter is ignored and the number of elements necessary to
10123 describe the current visible region is returned in @a countCopied.
10124
10125 If @a rectangles is not <tt>NULL</tt> but @a count is less
10126 than the required number of elements to store region data, the method
10127 will report a failure. If @a count is equal or greater than the
10128 required number of elements, then the actual number of elements copied
10129 to the provided array will be returned in @a countCopied.
10130
10131 <note>
10132 The address of the provided array must be in the process space of
10133 this IFramebuffer object.
10134 </note>
10135 <note>
10136 Method not yet implemented.
10137 </note>
10138 </desc>
10139 <param name="rectangles" type="octet" mod="ptr" dir="in">
10140 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10141 </param>
10142 <param name="count" type="unsigned long" dir="in">
10143 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10144 </param>
10145 <param name="countCopied" type="unsigned long" dir="return">
10146 <desc>Number of elements copied to the @a rectangles array.</desc>
10147 </param>
10148 </method>
10149
10150 <method name="setVisibleRegion">
10151 <desc>
10152 Suggests a new visible region to this frame buffer. This region
10153 represents the area of the VM display which is a union of regions of
10154 all top-level windows of the guest operating system running inside the
10155 VM (if the Guest Additions for this system support this
10156 functionality). This information may be used by the frontends to
10157 implement the seamless desktop integration feature.
10158
10159 <note>
10160 The address of the provided array must be in the process space of
10161 this IFramebuffer object.
10162 </note>
10163 <note>
10164 The IFramebuffer implementation must make a copy of the provided
10165 array of rectangles.
10166 </note>
10167 <note>
10168 Method not yet implemented.
10169 </note>
10170 </desc>
10171 <param name="rectangles" type="octet" mod="ptr" dir="in">
10172 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10173 </param>
10174 <param name="count" type="unsigned long" dir="in">
10175 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10176 </param>
10177 </method>
10178
10179 </interface>
10180
10181 <interface
10182 name="IFramebufferOverlay" extends="IFramebuffer"
10183 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10184 wsmap="suppress"
10185 >
10186 <desc>
10187 The IFramebufferOverlay interface represents an alpha blended overlay
10188 for displaying status icons above an IFramebuffer. It is always created
10189 not visible, so that it must be explicitly shown. It only covers a
10190 portion of the IFramebuffer, determined by its width, height and
10191 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10192 that order) format, and may be written to directly. Do re-read the
10193 width though, after setting it, as it may be adjusted (increased) to
10194 make it more suitable for the front end.
10195 </desc>
10196 <attribute name="x" type="unsigned long" readonly="yes">
10197 <desc>X position of the overlay, relative to the frame buffer.</desc>
10198 </attribute>
10199
10200 <attribute name="y" type="unsigned long" readonly="yes">
10201 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10202 </attribute>
10203
10204 <attribute name="visible" type="boolean" readonly="no">
10205 <desc>
10206 Whether the overlay is currently visible.
10207 </desc>
10208 </attribute>
10209
10210 <attribute name="alpha" type="unsigned long" readonly="no">
10211 <desc>
10212 The global alpha value for the overlay. This may or may not be
10213 supported by a given front end.
10214 </desc>
10215 </attribute>
10216
10217 <method name="move">
10218 <desc>
10219 Changes the overlay's position relative to the IFramebuffer.
10220 </desc>
10221 <param name="x" type="unsigned long" dir="in"/>
10222 <param name="y" type="unsigned long" dir="in"/>
10223 </method>
10224
10225 </interface>
10226
10227 <interface
10228 name="IDisplay" extends="$unknown"
10229 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10230 wsmap="suppress"
10231 >
10232 <desc>
10233 The IDisplay interface represents the virtual machine's display.
10234
10235 The object implementing this interface is contained in each
10236 <link to="IConsole::display"/> attribute and represents the visual
10237 output of the virtual machine.
10238
10239 The virtual display supports pluggable output targets represented by the
10240 IFramebuffer interface. Examples of the output target are a window on
10241 the host computer or an RDP session's display on a remote computer.
10242 </desc>
10243 <attribute name="width" type="unsigned long" readonly="yes">
10244 <desc>Current display width.</desc>
10245 </attribute>
10246
10247 <attribute name="height" type="unsigned long" readonly="yes">
10248 <desc>Current display height.</desc>
10249 </attribute>
10250
10251 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10252 <desc>
10253 Current guest display color depth. Note that this may differ
10254 from <link to="IFramebuffer::bitsPerPixel"/>.
10255 </desc>
10256 </attribute>
10257
10258 <method name="setupInternalFramebuffer">
10259 <desc>
10260 Prepares an internally managed frame buffer.
10261 </desc>
10262 <param name="depth" type="unsigned long" dir="in"/>
10263 </method>
10264
10265 <method name="lockFramebuffer">
10266 <desc>
10267 Requests access to the internal frame buffer.
10268
10269 <result name="VBOX_E_NOT_SUPPORTED">
10270 Attempt to lock a non-internal frame buffer.
10271 </result>
10272
10273 </desc>
10274 <param name="address" type="octet" mod="ptr" dir="return"/>
10275 </method>
10276
10277 <method name="unlockFramebuffer">
10278 <desc>
10279 Releases access to the internal frame buffer.
10280
10281 <result name="VBOX_E_NOT_SUPPORTED">
10282 Attempt to unlock a non-internal frame buffer.
10283 </result>
10284
10285 </desc>
10286 </method>
10287
10288 <method name="registerExternalFramebuffer">
10289 <desc>
10290 Registers an external frame buffer.
10291 </desc>
10292 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10293 </method>
10294
10295 <method name="setFramebuffer">
10296 <desc>
10297 Sets the framebuffer for given screen.
10298 </desc>
10299 <param name="screenId" type="unsigned long" dir="in"/>
10300 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10301 </method>
10302
10303 <method name="getFramebuffer">
10304 <desc>
10305 Queries the framebuffer for given screen.
10306 </desc>
10307 <param name="screenId" type="unsigned long" dir="in"/>
10308 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10309 <param name="xOrigin" type="long" dir="out"/>
10310 <param name="yOrigin" type="long" dir="out"/>
10311 </method>
10312
10313 <method name="setVideoModeHint">
10314 <desc>
10315 Asks VirtualBox to request the given video mode from
10316 the guest. This is just a hint and it cannot be guaranteed
10317 that the requested resolution will be used. Guest Additions
10318 are required for the request to be seen by guests. The caller
10319 should issue the request and wait for a resolution change and
10320 after a timeout retry.
10321
10322 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10323 parameters means that the corresponding values should be taken from the
10324 current video mode (i.e. left unchanged).
10325
10326 If the guest OS supports multi-monitor configuration then the @a display
10327 parameter specifies the number of the guest display to send the hint to:
10328 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10329 so on. If the multi-monitor configuration is not supported, @a display
10330 must be <tt>0</tt>.
10331
10332 <result name="E_INVALIDARG">
10333 The @a display is not associated with any monitor.
10334 </result>
10335
10336 </desc>
10337 <param name="width" type="unsigned long" dir="in"/>
10338 <param name="height" type="unsigned long" dir="in"/>
10339 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10340 <param name="display" type="unsigned long" dir="in"/>
10341 </method>
10342
10343 <method name="setSeamlessMode">
10344 <desc>
10345 Enables or disables seamless guest display rendering (seamless desktop
10346 integration) mode.
10347 <note>
10348 Calling this method has no effect if <link
10349 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10350 </note>
10351 </desc>
10352 <param name="enabled" type="boolean" dir="in"/>
10353 </method>
10354
10355 <method name="takeScreenShot">
10356 <desc>
10357 Takes a screen shot of the requested size and copies it to the
10358 32-bpp buffer allocated by the caller.
10359
10360 <result name="E_NOTIMPL">
10361 Feature not implemented.
10362 </result>
10363 <result name="VBOX_E_IPRT_ERROR">
10364 Could not take a screenshot.
10365 </result>
10366
10367 </desc>
10368 <param name="address" type="octet" mod="ptr" dir="in"/>
10369 <param name="width" type="unsigned long" dir="in"/>
10370 <param name="height" type="unsigned long" dir="in"/>
10371 </method>
10372
10373 <method name="drawToScreen">
10374 <desc>
10375 Draws a 32-bpp image of the specified size from the given buffer
10376 to the given point on the VM display.
10377
10378 <result name="E_NOTIMPL">
10379 Feature not implemented.
10380 </result>
10381 <result name="VBOX_E_IPRT_ERROR">
10382 Could not draw to screen.
10383 </result>
10384
10385 </desc>
10386 <param name="address" type="octet" mod="ptr" dir="in"/>
10387 <param name="x" type="unsigned long" dir="in"/>
10388 <param name="y" type="unsigned long" dir="in"/>
10389 <param name="width" type="unsigned long" dir="in"/>
10390 <param name="height" type="unsigned long" dir="in"/>
10391 </method>
10392
10393 <method name="invalidateAndUpdate">
10394 <desc>
10395 Does a full invalidation of the VM display and instructs the VM
10396 to update it.
10397
10398 <result name="VBOX_E_IPRT_ERROR">
10399 Could not invalidate and update screen.
10400 </result>
10401
10402 </desc>
10403 </method>
10404
10405 <method name="resizeCompleted">
10406 <desc>
10407 Signals that a framebuffer has completed the resize operation.
10408
10409 <result name="VBOX_E_NOT_SUPPORTED">
10410 Operation only valid for external frame buffers.
10411 </result>
10412
10413 </desc>
10414 <param name="screenId" type="unsigned long" dir="in"/>
10415 </method>
10416
10417 <method name="updateCompleted">
10418 <desc>
10419 Signals that a framebuffer has completed the update operation.
10420
10421 <result name="VBOX_E_NOT_SUPPORTED">
10422 Operation only valid for external frame buffers.
10423 </result>
10424
10425 </desc>
10426 </method>
10427
10428 </interface>
10429
10430 <!--
10431 // INetworkAdapter
10432 /////////////////////////////////////////////////////////////////////////
10433 -->
10434
10435 <enum
10436 name="NetworkAttachmentType"
10437 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
10438 >
10439 <desc>
10440 Network attachment type.
10441 </desc>
10442
10443 <const name="Null" value="0">
10444 <desc>Null value, also means "not attached".</desc>
10445 </const>
10446 <const name="NAT" value="1"/>
10447 <const name="Bridged" value="2"/>
10448 <const name="Internal" value="3"/>
10449 <const name="HostOnly" value="4"/>
10450 </enum>
10451
10452 <enum
10453 name="NetworkAdapterType"
10454 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10455 >
10456 <desc>
10457 Network adapter type.
10458 </desc>
10459
10460 <const name="Null" value="0">
10461 <desc>Null value (never used by the API).</desc>
10462 </const>
10463 <const name="Am79C970A" value="1"/>
10464 <const name="Am79C973" value="2"/>
10465 <const name="I82540EM" value="3"/>
10466 <const name="I82543GC" value="4"/>
10467 </enum>
10468
10469 <interface
10470 name="INetworkAdapter" extends="$unknown"
10471 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
10472 wsmap="managed"
10473 >
10474 <desc>
10475 Represents a virtual network adapter that is attached to a virtual machine.
10476 Each virtual machine has a fixed number of network adapter slots with one
10477 instance of this attached to each of them. Call
10478 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
10479 is attached to a given slot in a given machine.
10480
10481 Each network adapter can be in one of five attachment modes, which are
10482 represented by the <link to="NetworkAttachmentType" /> enumeration;
10483 see the <link to="#attachmentType" /> attribute.
10484 </desc>
10485
10486 <attribute name="adapterType" type="NetworkAdapterType">
10487 <desc>
10488 Type of the virtual network adapter. Depending on this value,
10489 VirtualBox will provide a different virtual network hardware
10490 to the guest.
10491 </desc>
10492 </attribute>
10493
10494 <attribute name="slot" type="unsigned long" readonly="yes">
10495 <desc>
10496 Slot number this adapter is plugged into. Corresponds to
10497 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10498 to obtain this instance.
10499 </desc>
10500 </attribute>
10501
10502 <attribute name="enabled" type="boolean">
10503 <desc>
10504 Flag whether the network adapter is present in the
10505 guest system. If disabled, the virtual guest hardware will
10506 not contain this network adapter. Can only be changed when
10507 the VM is not running.
10508 </desc>
10509 </attribute>
10510
10511 <attribute name="MACAddress" type="wstring">
10512 <desc>
10513 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10514 it to NULL, VirtualBox will generate a unique MAC address.
10515 </desc>
10516 </attribute>
10517
10518 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10519
10520 <attribute name="hostInterface" type="wstring">
10521 <desc>
10522 Name of the host network interface the VM is attached to.
10523 </desc>
10524 </attribute>
10525
10526 <attribute name="internalNetwork" type="wstring">
10527 <desc>
10528 Name of the internal network the VM is attached to.
10529 </desc>
10530 </attribute>
10531
10532 <attribute name="NATNetwork" type="wstring">
10533 <desc>
10534 Name of the NAT network the VM is attached to.
10535 </desc>
10536 </attribute>
10537
10538 <attribute name="cableConnected" type="boolean">
10539 <desc>
10540 Flag whether the adapter reports the cable as connected or not.
10541 It can be used to report offline situations to a VM.
10542 </desc>
10543 </attribute>
10544
10545 <attribute name="lineSpeed" type="unsigned long">
10546 <desc>
10547 Line speed reported by custom drivers, in units of 1 kbps.
10548 </desc>
10549 </attribute>
10550
10551 <attribute name="traceEnabled" type="boolean">
10552 <desc>
10553 Flag whether network traffic from/to the network card should be traced.
10554 Can only be toggled when the VM is turned off.
10555 </desc>
10556 </attribute>
10557
10558 <attribute name="traceFile" type="wstring">
10559 <desc>
10560 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10561 will be used.
10562 </desc>
10563 </attribute>
10564
10565 <method name="attachToNAT">
10566 <desc>
10567 Attach the network adapter to the Network Address Translation (NAT) interface.
10568 </desc>
10569 </method>
10570
10571 <method name="attachToBridgedInterface">
10572 <desc>
10573 Attach the network adapter to a bridged host interface.
10574 </desc>
10575 </method>
10576
10577 <method name="attachToInternalNetwork">
10578 <desc>
10579 Attach the network adapter to an internal network.
10580 </desc>
10581 </method>
10582
10583 <method name="attachToHostOnlyInterface">
10584 <desc>
10585 Attach the network adapter to the host-only network.
10586 </desc>
10587 </method>
10588
10589 <method name="detach">
10590 <desc>
10591 Detach the network adapter
10592 </desc>
10593 </method>
10594 </interface>
10595
10596
10597 <!--
10598 // ISerialPort
10599 /////////////////////////////////////////////////////////////////////////
10600 -->
10601
10602 <enum
10603 name="PortMode"
10604 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10605 >
10606 <desc>
10607 The PortMode enumeration represents possible communication modes for
10608 the virtual serial port device.
10609 </desc>
10610
10611 <const name="Disconnected" value="0">
10612 <desc>Virtual device is not attached to any real host device.</desc>
10613 </const>
10614 <const name="HostPipe" value="1">
10615 <desc>Virtual device is attached to a host pipe.</desc>
10616 </const>
10617 <const name="HostDevice" value="2">
10618 <desc>Virtual device is attached to a host device.</desc>
10619 </const>
10620 </enum>
10621
10622 <interface
10623 name="ISerialPort" extends="$unknown"
10624 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10625 wsmap="managed"
10626 >
10627
10628 <desc>
10629 The ISerialPort interface represents the virtual serial port device.
10630
10631 The virtual serial port device acts like an ordinary serial port
10632 inside the virtual machine. This device communicates to the real
10633 serial port hardware in one of two modes: host pipe or host device.
10634
10635 In host pipe mode, the #path attribute specifies the path to the pipe on
10636 the host computer that represents a serial port. The #server attribute
10637 determines if this pipe is created by the virtual machine process at
10638 machine startup or it must already exist before starting machine
10639 execution.
10640
10641 In host device mode, the #path attribute specifies the name of the
10642 serial port device on the host computer.
10643
10644 There is also a third communication mode: the disconnected mode. In this
10645 mode, the guest OS running inside the virtual machine will be able to
10646 detect the serial port, but all port write operations will be discarded
10647 and all port read operations will return no data.
10648
10649 <see>IMachine::getSerialPort</see>
10650 </desc>
10651
10652 <attribute name="slot" type="unsigned long" readonly="yes">
10653 <desc>
10654 Slot number this serial port is plugged into. Corresponds to
10655 the value you pass to <link to="IMachine::getSerialPort"/>
10656 to obtain this instance.
10657 </desc>
10658 </attribute>
10659
10660 <attribute name="enabled" type="boolean">
10661 <desc>
10662 Flag whether the serial port is enabled. If disabled,
10663 the serial port will not be reported to the guest OS.
10664 </desc>
10665 </attribute>
10666
10667 <attribute name="IOBase" type="unsigned long">
10668 <desc>Base I/O address of the serial port.</desc>
10669 </attribute>
10670
10671 <attribute name="IRQ" type="unsigned long">
10672 <desc>IRQ number of the serial port.</desc>
10673 </attribute>
10674
10675 <attribute name="hostMode" type="PortMode">
10676 <desc>
10677 How is this port connected to the host.
10678 <note>
10679 Changing this attribute may fail if the conditions for
10680 <link to="#path"/> are not met.
10681 </note>
10682 </desc>
10683 </attribute>
10684
10685 <attribute name="server" type="boolean">
10686 <desc>
10687 Flag whether this serial port acts as a server (creates a new pipe on
10688 the host) or as a client (uses the existing pipe). This attribute is
10689 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10690 </desc>
10691 </attribute>
10692
10693 <attribute name="path" type="wstring">
10694 <desc>
10695 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10696 PortMode_HostPipe, or the host serial device name when
10697 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10698 cases, setting a @c null or an empty string as the attribute's value
10699 will result into an error. Otherwise, the value of this property is
10700 ignored.
10701 </desc>
10702 </attribute>
10703
10704 </interface>
10705
10706 <!--
10707 // IParallelPort
10708 /////////////////////////////////////////////////////////////////////////
10709 -->
10710
10711 <interface
10712 name="IParallelPort" extends="$unknown"
10713 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10714 wsmap="managed"
10715 >
10716
10717 <desc>
10718 The IParallelPort interface represents the virtual parallel port device.
10719
10720 The virtual parallel port device acts like an ordinary parallel port
10721 inside the virtual machine. This device communicates to the real
10722 parallel port hardware using the name of the parallel device on the host
10723 computer specified in the #path attribute.
10724
10725 Each virtual parallel port device is assigned a base I/O address and an
10726 IRQ number that will be reported to the guest operating system and used
10727 to operate the given parallel port from within the virtual machine.
10728
10729 <see>IMachine::getParallelPort</see>
10730 </desc>
10731
10732 <attribute name="slot" type="unsigned long" readonly="yes">
10733 <desc>
10734 Slot number this parallel port is plugged into. Corresponds to
10735 the value you pass to <link to="IMachine::getParallelPort"/>
10736 to obtain this instance.
10737 </desc>
10738 </attribute>
10739
10740 <attribute name="enabled" type="boolean">
10741 <desc>
10742 Flag whether the parallel port is enabled. If disabled,
10743 the parallel port will not be reported to the guest OS.
10744 </desc>
10745 </attribute>
10746
10747 <attribute name="IOBase" type="unsigned long">
10748 <desc>Base I/O address of the parallel port.</desc>
10749 </attribute>
10750
10751 <attribute name="IRQ" type="unsigned long">
10752 <desc>IRQ number of the parallel port.</desc>
10753 </attribute>
10754
10755 <attribute name="path" type="wstring">
10756 <desc>
10757 Host parallel device name. If this parallel port is enabled, setting a
10758 @c null or an empty string as this attribute's value will result into
10759 an error.
10760 </desc>
10761 </attribute>
10762
10763 </interface>
10764
10765
10766 <!--
10767 // IMachineDebugger
10768 /////////////////////////////////////////////////////////////////////////
10769 -->
10770
10771 <interface
10772 name="IMachineDebugger" extends="$unknown"
10773 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10774 wsmap="suppress"
10775 >
10776 <method name="resetStats">
10777 <desc>
10778 Reset VM statistics.
10779 </desc>
10780 <param name="pattern" type="wstring" dir="in">
10781 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10782 </param>
10783 </method>
10784
10785 <method name="dumpStats">
10786 <desc>
10787 Dumps VM statistics.
10788 </desc>
10789 <param name="pattern" type="wstring" dir="in">
10790 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10791 </param>
10792 </method>
10793
10794 <method name="getStats">
10795 <desc>
10796 Get the VM statistics in a XMLish format.
10797 </desc>
10798 <param name="pattern" type="wstring" dir="in">
10799 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10800 </param>
10801 <param name="withDescriptions" type="boolean" dir="in">
10802 <desc>Whether to include the descriptions.</desc>
10803 </param>
10804 <param name="stats" type="wstring" dir="out">
10805 <desc>The XML document containing the statistics.</desc>
10806 </param>
10807 </method>
10808
10809 <method name="injectNMI">
10810 <desc>
10811 Inject an NMI into a running VT-x/AMD-V VM.
10812 </desc>
10813 </method>
10814
10815 <attribute name="singlestep" type="boolean">
10816 <desc>Switch for enabling singlestepping.</desc>
10817 </attribute>
10818
10819 <attribute name="recompileUser" type="boolean">
10820 <desc>Switch for forcing code recompilation for user mode code.</desc>
10821 </attribute>
10822
10823 <attribute name="recompileSupervisor" type="boolean">
10824 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10825 </attribute>
10826
10827 <attribute name="PATMEnabled" type="boolean">
10828 <desc>Switch for enabling and disabling the PATM component.</desc>
10829 </attribute>
10830
10831 <attribute name="CSAMEnabled" type="boolean">
10832 <desc>Switch for enabling and disabling the CSAM component.</desc>
10833 </attribute>
10834
10835 <attribute name="logEnabled" type="boolean">
10836 <desc>Switch for enabling and disabling logging.</desc>
10837 </attribute>
10838
10839 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10840 <desc>
10841 Flag indicating whether the VM is currently making use of CPU hardware
10842 virtualization extensions.
10843 </desc>
10844 </attribute>
10845
10846 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10847 <desc>
10848 Flag indicating whether the VM is currently making use of the nested paging
10849 CPU hardware virtualization extension.
10850 </desc>
10851 </attribute>
10852
10853 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10854 <desc>
10855 Flag indicating whether the VM is currently making use of the VPID
10856 VT-x extension.
10857 </desc>
10858 </attribute>
10859
10860 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10861 <desc>
10862 Flag indicating whether the VM is currently making use of the Physical
10863 Address Extension CPU feature.
10864 </desc>
10865 </attribute>
10866
10867 <attribute name="virtualTimeRate" type="unsigned long">
10868 <desc>
10869 The rate at which the virtual time runs expressed as a percentage.
10870 The accepted range is 2% to 20000%.
10871 </desc>
10872 </attribute>
10873
10874 <!-- @todo method for setting log flags, groups and destination! -->
10875
10876 <attribute name="VM" type="unsigned long long" readonly="yes">
10877 <desc>
10878 Gets the VM handle. This is only for internal use while
10879 we carve the details of this interface.
10880 </desc>
10881 </attribute>
10882
10883 </interface>
10884
10885 <!--
10886 // IUSBController
10887 /////////////////////////////////////////////////////////////////////////
10888 -->
10889
10890 <interface
10891 name="IUSBController" extends="$unknown"
10892 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
10893 wsmap="managed"
10894 >
10895 <attribute name="enabled" type="boolean">
10896 <desc>
10897 Flag whether the USB controller is present in the
10898 guest system. If disabled, the virtual guest hardware will
10899 not contain any USB controller. Can only be changed when
10900 the VM is powered off.
10901 </desc>
10902 </attribute>
10903
10904 <attribute name="enabledEhci" type="boolean">
10905 <desc>
10906 Flag whether the USB EHCI controller is present in the
10907 guest system. If disabled, the virtual guest hardware will
10908 not contain a USB EHCI controller. Can only be changed when
10909 the VM is powered off.
10910 </desc>
10911 </attribute>
10912
10913 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10914 <desc>
10915 USB standard version which the controller implements.
10916 This is a BCD which means that the major version is in the
10917 high byte and minor version is in the low byte.
10918 </desc>
10919 </attribute>
10920
10921 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
10922 <desc>
10923 List of USB device filters associated with the machine.
10924
10925 If the machine is currently running, these filters are activated
10926 every time a new (supported) USB device is attached to the host
10927 computer that was not ignored by global filters
10928 (<link to="IHost::USBDeviceFilters"/>).
10929
10930 These filters are also activated when the machine is powered up.
10931 They are run against a list of all currently available USB
10932 devices (in states
10933 <link to="USBDeviceState_Available"/>,
10934 <link to="USBDeviceState_Busy"/>,
10935 <link to="USBDeviceState_Held"/>) that were not previously
10936 ignored by global filters.
10937
10938 If at least one filter matches the USB device in question, this
10939 device is automatically captured (attached to) the virtual USB
10940 controller of this machine.
10941
10942 <see>IUSBDeviceFilter, ::IUSBController</see>
10943 </desc>
10944 </attribute>
10945
10946 <method name="createDeviceFilter">
10947 <desc>
10948 Creates a new USB device filter. All attributes except
10949 the filter name are set to <tt>null</tt> (any match),
10950 <i>active</i> is <tt>false</tt> (the filter is not active).
10951
10952 The created filter can then be added to the list of filters using
10953 <link to="#insertDeviceFilter"/>.
10954
10955 <result name="VBOX_E_INVALID_VM_STATE">
10956 The virtual machine is not mutable.
10957 </result>
10958
10959 <see>#deviceFilters</see>
10960 </desc>
10961 <param name="name" type="wstring" dir="in">
10962 <desc>
10963 Filter name. See <link to="IUSBDeviceFilter::name"/>
10964 for more info.
10965 </desc>
10966 </param>
10967 <param name="filter" type="IUSBDeviceFilter" dir="return">
10968 <desc>Created filter object.</desc>
10969 </param>
10970 </method>
10971
10972 <method name="insertDeviceFilter">
10973 <desc>
10974 Inserts the given USB device to the specified position
10975 in the list of filters.
10976
10977 Positions are numbered starting from <tt>0</tt>. If the specified
10978 position is equal to or greater than the number of elements in
10979 the list, the filter is added to the end of the collection.
10980
10981 <note>
10982 Duplicates are not allowed, so an attempt to insert a
10983 filter that is already in the collection, will return an
10984 error.
10985 </note>
10986
10987 <result name="VBOX_E_INVALID_VM_STATE">
10988 Virtual machine is not mutable.
10989 </result>
10990 <result name="E_INVALIDARG">
10991 USB device filter not created within this VirtualBox instance.
10992 </result>
10993 <result name="VBOX_E_INVALID_OBJECT_STATE">
10994 USB device filter already in list.
10995 </result>
10996
10997 <see>#deviceFilters</see>
10998 </desc>
10999 <param name="position" type="unsigned long" dir="in">
11000 <desc>Position to insert the filter to.</desc>
11001 </param>
11002 <param name="filter" type="IUSBDeviceFilter" dir="in">
11003 <desc>USB device filter to insert.</desc>
11004 </param>
11005 </method>
11006
11007 <method name="removeDeviceFilter">
11008 <desc>
11009 Removes a USB device filter from the specified position in the
11010 list of filters.
11011
11012 Positions are numbered starting from <tt>0</tt>. Specifying a
11013 position equal to or greater than the number of elements in
11014 the list will produce an error.
11015
11016 <see>#deviceFilters</see>
11017
11018 <result name="VBOX_E_INVALID_VM_STATE">
11019 Virtual machine is not mutable.
11020 </result>
11021 <result name="E_INVALIDARG">
11022 USB device filter list empty or invalid @a position.
11023 </result>
11024
11025 </desc>
11026 <param name="position" type="unsigned long" dir="in">
11027 <desc>Position to remove the filter from.</desc>
11028 </param>
11029 <param name="filter" type="IUSBDeviceFilter" dir="return">
11030 <desc>Removed USB device filter.</desc>
11031 </param>
11032 </method>
11033
11034 </interface>
11035
11036
11037 <!--
11038 // IUSBDevice
11039 /////////////////////////////////////////////////////////////////////////
11040 -->
11041
11042 <interface
11043 name="IUSBDevice" extends="$unknown"
11044 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
11045 wsmap="managed"
11046 >
11047 <desc>
11048 The IUSBDevice interface represents a virtual USB device attached to the
11049 virtual machine.
11050
11051 A collection of objects implementing this interface is stored in the
11052 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11053 attached to a running virtual machine's USB controller.
11054 </desc>
11055
11056 <attribute name="id" type="uuid" readonly="yes">
11057 <desc>
11058 Unique USB device ID. This ID is built from #vendorId,
11059 #productId, #revision and #serialNumber.
11060 </desc>
11061 </attribute>
11062
11063 <attribute name="vendorId" type="unsigned short" readonly="yes">
11064 <desc>Vendor ID.</desc>
11065 </attribute>
11066
11067 <attribute name="productId" type="unsigned short" readonly="yes">
11068 <desc>Product ID.</desc>
11069 </attribute>
11070
11071 <attribute name="revision" type="unsigned short" readonly="yes">
11072 <desc>
11073 Product revision number. This is a packed BCD represented as
11074 unsigned short. The high byte is the integer part and the low
11075 byte is the decimal.
11076 </desc>
11077 </attribute>
11078
11079 <attribute name="manufacturer" type="wstring" readonly="yes">
11080 <desc>Manufacturer string.</desc>
11081 </attribute>
11082
11083 <attribute name="product" type="wstring" readonly="yes">
11084 <desc>Product string.</desc>
11085 </attribute>
11086
11087 <attribute name="serialNumber" type="wstring" readonly="yes">
11088 <desc>Serial number string.</desc>
11089 </attribute>
11090
11091 <attribute name="address" type="wstring" readonly="yes">
11092 <desc>Host specific address of the device.</desc>
11093 </attribute>
11094
11095 <attribute name="port" type="unsigned short" readonly="yes">
11096 <desc>
11097 Host USB port number the device is physically
11098 connected to.
11099 </desc>
11100 </attribute>
11101
11102 <attribute name="version" type="unsigned short" readonly="yes">
11103 <desc>
11104 The major USB version of the device - 1 or 2.
11105 </desc>
11106 </attribute>
11107
11108 <attribute name="portVersion" type="unsigned short" readonly="yes">
11109 <desc>
11110 The major USB version of the host USB port the device is
11111 physically connected to - 1 or 2. For devices not connected to
11112 anything this will have the same value as the version attribute.
11113 </desc>
11114 </attribute>
11115
11116 <attribute name="remote" type="boolean" readonly="yes">
11117 <desc>
11118 Whether the device is physically connected to a remote VRDP
11119 client or to a local host machine.
11120 </desc>
11121 </attribute>
11122
11123 </interface>
11124
11125
11126 <!--
11127 // IUSBDeviceFilter
11128 /////////////////////////////////////////////////////////////////////////
11129 -->
11130
11131 <interface
11132 name="IUSBDeviceFilter" extends="$unknown"
11133 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11134 wsmap="managed"
11135 >
11136 <desc>
11137 The IUSBDeviceFilter interface represents an USB device filter used
11138 to perform actions on a group of USB devices.
11139
11140 This type of filters is used by running virtual machines to
11141 automatically capture selected USB devices once they are physically
11142 attached to the host computer.
11143
11144 A USB device is matched to the given device filter if and only if all
11145 attributes of the device match the corresponding attributes of the
11146 filter (that is, attributes are joined together using the logical AND
11147 operation). On the other hand, all together, filters in the list of
11148 filters carry the semantics of the logical OR operation. So if it is
11149 desirable to create a match like "this vendor id OR this product id",
11150 one needs to create two filters and specify "any match" (see below)
11151 for unused attributes.
11152
11153 All filter attributes used for matching are strings. Each string
11154 is an expression representing a set of values of the corresponding
11155 device attribute, that will match the given filter. Currently, the
11156 following filtering expressions are supported:
11157
11158 <ul>
11159 <li><i>Interval filters</i>. Used to specify valid intervals for
11160 integer device attributes (Vendor ID, Product ID and Revision).
11161 The format of the string is:
11162
11163 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11164
11165 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11166 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11167 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11168 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11169 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11170 possible integer is assumed.
11171 </li>
11172 <li><i>Boolean filters</i>. Used to specify acceptable values for
11173 boolean device attributes. The format of the string is:
11174
11175 <tt>true|false|yes|no|0|1</tt>
11176
11177 </li>
11178 <li><i>Exact match</i>. Used to specify a single value for the given
11179 device attribute. Any string that doesn't start with <tt>int:</tt>
11180 represents the exact match. String device attributes are compared to
11181 this string including case of symbols. Integer attributes are first
11182 converted to a string (see individual filter attributes) and then
11183 compared ignoring case.
11184
11185 </li>
11186 <li><i>Any match</i>. Any value of the corresponding device attribute
11187 will match the given filter. An empty or <tt>null</tt> string is
11188 used to construct this type of filtering expressions.
11189
11190 </li>
11191 </ul>
11192
11193 <note>
11194 On the Windows host platform, interval filters are not currently
11195 available. Also all string filter attributes
11196 (<link to="#manufacturer"/>, <link to="#product"/>,
11197 <link to="#serialNumber"/>) are ignored, so they behave as
11198 <i>any match</i> no matter what string expression is specified.
11199 </note>
11200
11201 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11202 </desc>
11203
11204 <attribute name="name" type="wstring">
11205 <desc>
11206 Visible name for this filter.
11207 This name is used to visually distinguish one filter from another,
11208 so it can neither be <tt>null</tt> nor an empty string.
11209 </desc>
11210 </attribute>
11211
11212 <attribute name="active" type="boolean">
11213 <desc>Whether this filter active or has been temporarily disabled.</desc>
11214 </attribute>
11215
11216 <attribute name="vendorId" type="wstring">
11217 <desc>
11218 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11219 The string representation for the <i>exact matching</i>
11220 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11221 (including leading zeroes).
11222 </desc>
11223 </attribute>
11224
11225 <attribute name="productId" type="wstring">
11226 <desc>
11227 <link to="IUSBDevice::productId">Product ID</link> filter.
11228 The string representation for the <i>exact matching</i>
11229 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11230 (including leading zeroes).
11231 </desc>
11232 </attribute>
11233
11234 <attribute name="revision" type="wstring">
11235 <desc>
11236 <link to="IUSBDevice::productId">Product revision number</link>
11237 filter. The string representation for the <i>exact matching</i>
11238 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11239 of the integer part of the revision, and <tt>F</tt> is the
11240 decimal digit of its fractional part (including leading and
11241 trailing zeros).
11242 Note that for interval filters, it's best to use the hexadecimal
11243 form, because the revision is stored as a 16 bit packed BCD value;
11244 so the expression <tt>int:0x0100-0x0199</tt> will match any
11245 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11246 </desc>
11247 </attribute>
11248
11249 <attribute name="manufacturer" type="wstring">
11250 <desc>
11251 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11252 </desc>
11253 </attribute>
11254
11255 <attribute name="product" type="wstring">
11256 <desc>
11257 <link to="IUSBDevice::product">Product</link> filter.
11258 </desc>
11259 </attribute>
11260
11261 <attribute name="serialNumber" type="wstring">
11262 <desc>
11263 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11264 </desc>
11265 </attribute>
11266
11267 <attribute name="port" type="wstring">
11268 <desc>
11269 <link to="IUSBDevice::port">Host USB port</link> filter.
11270 </desc>
11271 </attribute>
11272
11273 <attribute name="remote" type="wstring">
11274 <desc>
11275 <link to="IUSBDevice::remote">Remote state</link> filter.
11276 <note>
11277 This filter makes sense only for machine USB filters,
11278 i.e. it is ignored by IHostUSBDeviceFilter objects.
11279 </note>
11280 </desc>
11281 </attribute>
11282
11283 <attribute name="maskedInterfaces" type="unsigned long">
11284 <desc>
11285 This is an advanced option for hiding one or more USB interfaces
11286 from the guest. The value is a bit mask where the bits that are set
11287 means the corresponding USB interface should be hidden, masked off
11288 if you like.
11289 This feature only works on Linux hosts.
11290 </desc>
11291 </attribute>
11292
11293 </interface>
11294
11295
11296 <!--
11297 // IHostUSBDevice
11298 /////////////////////////////////////////////////////////////////////////
11299 -->
11300
11301 <enum
11302 name="USBDeviceState"
11303 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11304 >
11305 <desc>
11306 USB device state. This enumeration represents all possible states
11307 of the USB device physically attached to the host computer regarding
11308 its state on the host computer and availability to guest computers
11309 (all currently running virtual machines).
11310
11311 Once a supported USB device is attached to the host, global USB
11312 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11313 either ignore the device, or put it to USBDeviceState_Held state, or do
11314 nothing. Unless the device is ignored by global filters, filters of all
11315 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11316 activated that can put it to USBDeviceState_Captured state.
11317
11318 If the device was ignored by global filters, or didn't match
11319 any filters at all (including guest ones), it is handled by the host
11320 in a normal way. In this case, the device state is determined by
11321 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11322 or USBDeviceState_Available, depending on the current device usage.
11323
11324 Besides auto-capturing based on filters, the device can be manually
11325 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11326 state is USBDeviceState_Busy, USBDeviceState_Available or
11327 USBDeviceState_Held.
11328
11329 <note>
11330 Due to differences in USB stack implementations in Linux and Win32,
11331 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11332 only to the Linux version of the product. This also means that (<link
11333 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11334 device state is USBDeviceState_Held.
11335 </note>
11336
11337 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11338 </desc>
11339
11340 <const name="NotSupported" value="0">
11341 <desc>
11342 Not supported by the VirtualBox server, not available to guests.
11343 </desc>
11344 </const>
11345 <const name="Unavailable" value="1">
11346 <desc>
11347 Being used by the host computer exclusively,
11348 not available to guests.
11349 </desc>
11350 </const>
11351 <const name="Busy" value="2">
11352 <desc>
11353 Being used by the host computer, potentially available to guests.
11354 </desc>
11355 </const>
11356 <const name="Available" value="3">
11357 <desc>
11358 Not used by the host computer, available to guests (the host computer
11359 can also start using the device at any time).
11360 </desc>
11361 </const>
11362 <const name="Held" value="4">
11363 <desc>
11364 Held by the VirtualBox server (ignored by the host computer),
11365 available to guests.
11366 </desc>
11367 </const>
11368 <const name="Captured" value="5">
11369 <desc>
11370 Captured by one of the guest computers, not available
11371 to anybody else.
11372 </desc>
11373 </const>
11374 </enum>
11375
11376 <enumerator
11377 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11378 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11379 />
11380
11381 <collection
11382 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11383 enumerator="IHostUSBDeviceEnumerator"
11384 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11385 readonly="yes"
11386 >
11387 <method name="findById">
11388 <desc>
11389 Searches this collection for a USB device with the given UUID.
11390 <note>
11391 The method returns an error if the given UUID does not
11392 correspond to any USB device in the collection.
11393 </note>
11394 <see>IHostUSBDevice::id</see>
11395 </desc>
11396 <param name="id" type="uuid" dir="in">
11397 <desc>UUID of the USB device to search for.</desc>
11398 </param>
11399 <param name="device" type="IHostUSBDevice" dir="return">
11400 <desc>Found USB device object.</desc>
11401 </param>
11402 </method>
11403
11404 <method name="findByAddress">
11405 <desc>
11406 Searches this collection for a USB device with the given
11407 host address.
11408 <note>
11409 The method returns an error if the given address does not
11410 correspond to any USB device in the collection.
11411 </note>
11412 <see>IHostUSBDevice::address</see>
11413 </desc>
11414 <param name="name" type="wstring" dir="in">
11415 <desc>
11416 Address of the USB device (as assigned by the host) to
11417 search for.
11418 </desc>
11419 </param>
11420 <param name="device" type="IHostUSBDevice" dir="return">
11421 <desc>Found USB device object.</desc>
11422 </param>
11423 </method>
11424
11425 </collection>
11426
11427 <interface
11428 name="IHostUSBDevice" extends="IUSBDevice"
11429 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11430 wsmap="managed"
11431 >
11432 <desc>
11433 The IHostUSBDevice interface represents a physical USB device attached
11434 to the host computer.
11435
11436 Besides properties inherited from IUSBDevice, this interface adds the
11437 <link to="#state"/> property that holds the current state of the USB
11438 device.
11439
11440 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11441 </desc>
11442
11443 <attribute name="state" type="USBDeviceState" readonly="yes">
11444 <desc>
11445 Current state of the device.
11446 </desc>
11447 </attribute>
11448
11449 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11450
11451 </interface>
11452
11453
11454 <!--
11455 // IHostUSBDeviceFilter
11456 /////////////////////////////////////////////////////////////////////////
11457 -->
11458
11459 <enum
11460 name="USBDeviceFilterAction"
11461 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11462 >
11463 <desc>
11464 Actions for host USB device filters.
11465 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11466 </desc>
11467
11468 <const name="Null" value="0">
11469 <desc>Null value (never used by the API).</desc>
11470 </const>
11471 <const name="Ignore" value="1">
11472 <desc>Ignore the matched USB device.</desc>
11473 </const>
11474 <const name="Hold" value="2">
11475 <desc>Hold the matched USB device.</desc>
11476 </const>
11477 </enum>
11478
11479 <interface
11480 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11481 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11482 wsmap="managed"
11483 >
11484 <desc>
11485 The IHostUSBDeviceFilter interface represents a global filter for a
11486 physical USB device used by the host computer. Used indirectly in
11487 <link to="IHost::USBDeviceFilters"/>.
11488
11489 Using filters of this type, the host computer determines the initial
11490 state of the USB device after it is physically attached to the
11491 host's USB controller.
11492
11493 <note>
11494 The <link to="#remote"/> attribute is ignored by this type of
11495 filters, because it makes sense only for
11496 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11497 </note>
11498
11499 <see>IHost::USBDeviceFilters</see>
11500 </desc>
11501
11502 <attribute name="action" type="USBDeviceFilterAction">
11503 <desc>
11504 Action performed by the host when an attached USB device
11505 matches this filter.
11506 </desc>
11507 </attribute>
11508
11509 </interface>
11510
11511 <!--
11512 // IAudioAdapter
11513 /////////////////////////////////////////////////////////////////////////
11514 -->
11515
11516 <enum
11517 name="AudioDriverType"
11518 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11519 >
11520 <desc>
11521 Host audio driver type.
11522 </desc>
11523
11524 <const name="Null" value="0">
11525 <desc>Null value, also means "dummy audio driver".</desc>
11526 </const>
11527 <const name="WinMM" value="1"/>
11528 <const name="OSS" value="2"/>
11529 <const name="ALSA" value="3"/>
11530 <const name="DirectSound" value="4"/>
11531 <const name="CoreAudio" value="5"/>
11532 <const name="MMPM" value="6"/>
11533 <const name="Pulse" value="7"/>
11534 <const name="SolAudio" value="8"/>
11535 </enum>
11536
11537 <enum
11538 name="AudioControllerType"
11539 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11540 >
11541 <desc>
11542 Virtual audio controller type.
11543 </desc>
11544
11545 <const name="AC97" value="0"/>
11546 <const name="SB16" value="1"/>
11547 </enum>
11548
11549 <interface
11550 name="IAudioAdapter" extends="$unknown"
11551 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11552 wsmap="managed"
11553 >
11554 <desc>
11555 The IAudioAdapter interface represents the virtual audio adapter of
11556 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11557 </desc>
11558 <attribute name="enabled" type="boolean">
11559 <desc>
11560 Flag whether the audio adapter is present in the
11561 guest system. If disabled, the virtual guest hardware will
11562 not contain any audio adapter. Can only be changed when
11563 the VM is not running.
11564 </desc>
11565 </attribute>
11566 <attribute name="audioController" type="AudioControllerType">
11567 <desc>
11568 The audio hardware we emulate.
11569 </desc>
11570 </attribute>
11571 <attribute name="audioDriver" type="AudioDriverType">
11572 <desc>
11573 Audio driver the adapter is connected to. This setting
11574 can only be changed when the VM is not running.
11575 </desc>
11576 </attribute>
11577 </interface>
11578
11579 <!--
11580 // IVRDPServer
11581 /////////////////////////////////////////////////////////////////////////
11582 -->
11583
11584 <enum
11585 name="VRDPAuthType"
11586 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11587 >
11588 <desc>
11589 VRDP authentication type.
11590 </desc>
11591
11592 <const name="Null" value="0">
11593 <desc>Null value, also means "no authentication".</desc>
11594 </const>
11595 <const name="External" value="1"/>
11596 <const name="Guest" value="2"/>
11597 </enum>
11598
11599 <interface
11600 name="IVRDPServer" extends="$unknown"
11601 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11602 wsmap="managed"
11603 >
11604 <attribute name="enabled" type="boolean">
11605 <desc>VRDP server status.</desc>
11606 </attribute>
11607
11608 <attribute name="port" type="unsigned long">
11609 <desc>
11610 VRDP server port number.
11611 <note>
11612 Setting the value of this property to <tt>0</tt> will reset the port
11613 number to the default value which is
11614 currently <tt>3389</tt>. Reading this property will always return a
11615 real port number, even after it has been set to <tt>0</tt> (in which
11616 case the default port is returned).
11617 </note>
11618 </desc>
11619 </attribute>
11620
11621 <attribute name="netAddress" type="wstring">
11622 <desc>VRDP server address.</desc>
11623 </attribute>
11624
11625 <attribute name="authType" type="VRDPAuthType">
11626 <desc>VRDP authentication method.</desc>
11627 </attribute>
11628
11629 <attribute name="authTimeout" type="unsigned long">
11630 <desc>Timeout for guest authentication. Milliseconds.</desc>
11631 </attribute>
11632
11633 <attribute name="allowMultiConnection" type="boolean">
11634 <desc>
11635 Flag whether multiple simultaneous connections to the VM are permitted.
11636 Note that this will be replaced by a more powerful mechanism in the future.
11637 </desc>
11638 </attribute>
11639
11640 <attribute name="reuseSingleConnection" type="boolean">
11641 <desc>
11642 Flag whether the existing connection must be dropped and a new connection
11643 must be established by the VRDP server, when a new client connects in single
11644 connection mode.
11645 </desc>
11646 </attribute>
11647
11648 </interface>
11649
11650
11651 <!--
11652 // ISharedFolder
11653 /////////////////////////////////////////////////////////////////////////
11654 -->
11655
11656 <interface
11657 name="ISharedFolder" extends="$unknown"
11658 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
11659 wsmap="struct"
11660 >
11661 <desc>
11662 The ISharedFolder interface represents a folder in the host computer's
11663 file system accessible from the guest OS running inside a virtual
11664 machine using an associated logical name.
11665
11666 There are three types of shared folders:
11667 <ul>
11668 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11669 folders available to all virtual machines.</li>
11670 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11671 VM-specific shared folders available to the given virtual machine at
11672 startup.</li>
11673 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11674 VM-specific shared folders created in the session context (for
11675 example, when the virtual machine is running) and automatically
11676 discarded when the session is closed (the VM is powered off).</li>
11677 </ul>
11678
11679 Logical names of shared folders must be unique within the given scope
11680 (global, permanent or transient). However, they do not need to be unique
11681 across scopes. In this case, the definition of the shared folder in a
11682 more specific scope takes precedence over definitions in all other
11683 scopes. The order of precedence is (more specific to more general):
11684 <ol>
11685 <li>Transient definitions</li>
11686 <li>Permanent definitions</li>
11687 <li>Global definitions</li>
11688 </ol>
11689
11690 For example, if MyMachine has a shared folder named
11691 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11692 transient shared folder named <tt>C_DRIVE</tt> (that points
11693 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11694 of <tt>C_DRIVE</tt> in the guest OS so
11695 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11696 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11697 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11698 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11699 to <tt>C:\\</tt> if it still exists.
11700
11701 Note that permanent and transient shared folders of different machines
11702 are in different name spaces, so they don't overlap and don't need to
11703 have unique logical names.
11704
11705 <note>
11706 Global shared folders are not implemented in the current version of the
11707 product.
11708 </note>
11709 </desc>
11710
11711 <attribute name="name" type="wstring" readonly="yes">
11712 <desc>Logical name of the shared folder.</desc>
11713 </attribute>
11714
11715 <attribute name="hostPath" type="wstring" readonly="yes">
11716 <desc>Full path to the shared folder in the host file system.</desc>
11717 </attribute>
11718
11719 <attribute name="accessible" type="boolean" readonly="yes">
11720 <desc>
11721 Whether the folder defined by the host path is currently
11722 accessible or not.
11723 For example, the folder can be unaccessible if it is placed
11724 on the network share that is not available by the time
11725 this property is read.
11726 </desc>
11727 </attribute>
11728
11729 <attribute name="writable" type="boolean" readonly="yes">
11730 <desc>
11731 Whether the folder defined by the host path is writable or
11732 not.
11733 </desc>
11734 </attribute>
11735
11736 <attribute name="lastAccessError" type="wstring" readonly="yes">
11737 <desc>
11738 Text message that represents the result of the last accessibility
11739 check.
11740
11741 Accessibility checks are performed each time the <link to="#accessible"/>
11742 attribute is read. A @c null string is returned if the last
11743 accessibility check was successful. A non-null string indicates a
11744 failure and should normally describe a reason of the failure (for
11745 example, a file read error).
11746 </desc>
11747 </attribute>
11748
11749 </interface>
11750
11751 <!--
11752 // ISession
11753 /////////////////////////////////////////////////////////////////////////
11754 -->
11755
11756 <interface
11757 name="IInternalSessionControl" extends="$unknown"
11758 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11759 internal="yes"
11760 wsmap="suppress"
11761 >
11762 <method name="getPID">
11763 <desc>PID of the process that has created this Session object.
11764 </desc>
11765 <param name="pid" type="unsigned long" dir="return"/>
11766 </method>
11767
11768 <method name="getRemoteConsole">
11769 <desc>
11770 Returns the console object suitable for remote control.
11771
11772 <result name="VBOX_E_INVALID_VM_STATE">
11773 Session state prevents operation.
11774 </result>
11775 <result name="VBOX_E_INVALID_OBJECT_STATE">
11776 Session type prevents operation.
11777 </result>
11778
11779 </desc>
11780 <param name="console" type="IConsole" dir="return"/>
11781 </method>
11782
11783 <method name="assignMachine">
11784 <desc>
11785 Assigns the machine object associated with this direct-type
11786 session or informs the session that it will be a remote one
11787 (if @a machine == NULL).
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="machine" type="IMachine" dir="in"/>
11798 </method>
11799
11800 <method name="assignRemoteMachine">
11801 <desc>
11802 Assigns the machine and the (remote) console object associated with
11803 this remote-type session.
11804
11805 <result name="VBOX_E_INVALID_VM_STATE">
11806 Session state prevents operation.
11807 </result>
11808
11809 </desc>
11810 <param name="machine" type="IMachine" dir="in"/>
11811 <param name="console" type="IConsole" dir="in"/>
11812 </method>
11813
11814 <method name="updateMachineState">
11815 <desc>
11816 Updates the machine state in the VM process.
11817 Must be called only in certain cases
11818 (see the method implementation).
11819
11820 <result name="VBOX_E_INVALID_VM_STATE">
11821 Session state prevents operation.
11822 </result>
11823 <result name="VBOX_E_INVALID_OBJECT_STATE">
11824 Session type prevents operation.
11825 </result>
11826
11827 </desc>
11828 <param name="aMachineState" type="MachineState" dir="in"/>
11829 </method>
11830
11831 <method name="uninitialize">
11832 <desc>
11833 Uninitializes (closes) this session. Used by VirtualBox to close
11834 the corresponding remote session when the direct session dies
11835 or gets closed.
11836
11837 <result name="VBOX_E_INVALID_VM_STATE">
11838 Session state prevents operation.
11839 </result>
11840
11841 </desc>
11842 </method>
11843
11844 <method name="onDVDDriveChange">
11845 <desc>
11846 Triggered when settings of the DVD drive object of the
11847 associated virtual machine have changed.
11848
11849 <result name="VBOX_E_INVALID_VM_STATE">
11850 Session state prevents operation.
11851 </result>
11852 <result name="VBOX_E_INVALID_OBJECT_STATE">
11853 Session type prevents operation.
11854 </result>
11855
11856 </desc>
11857 </method>
11858
11859 <method name="onFloppyDriveChange">
11860 <desc>
11861 Triggered when settings of the floppy drive object 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 </method>
11873
11874 <method name="onNetworkAdapterChange">
11875 <desc>
11876 Triggered when settings of a network adapter of the
11877 associated virtual machine have changed.
11878
11879 <result name="VBOX_E_INVALID_VM_STATE">
11880 Session state prevents operation.
11881 </result>
11882 <result name="VBOX_E_INVALID_OBJECT_STATE">
11883 Session type prevents operation.
11884 </result>
11885
11886 </desc>
11887 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11888 </method>
11889
11890 <method name="onSerialPortChange">
11891 <desc>
11892 Triggered when settings of a serial port of the
11893 associated virtual machine have changed.
11894
11895 <result name="VBOX_E_INVALID_VM_STATE">
11896 Session state prevents operation.
11897 </result>
11898 <result name="VBOX_E_INVALID_OBJECT_STATE">
11899 Session type prevents operation.
11900 </result>
11901
11902 </desc>
11903 <param name="serialPort" type="ISerialPort" dir="in"/>
11904 </method>
11905
11906 <method name="onParallelPortChange">
11907 <desc>
11908 Triggered when settings of a parallel port 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 <param name="parallelPort" type="IParallelPort" dir="in"/>
11920 </method>
11921
11922 <method name="onVRDPServerChange">
11923 <desc>
11924 Triggered when settings of the VRDP server object of the
11925 associated virtual machine have changed.
11926
11927 <result name="VBOX_E_INVALID_VM_STATE">
11928 Session state prevents operation.
11929 </result>
11930 <result name="VBOX_E_INVALID_OBJECT_STATE">
11931 Session type prevents operation.
11932 </result>
11933
11934 </desc>
11935 </method>
11936
11937 <method name="onUSBControllerChange">
11938 <desc>
11939 Triggered when settings of the USB controller object of the
11940 associated virtual machine have changed.
11941
11942 <result name="VBOX_E_INVALID_VM_STATE">
11943 Session state prevents operation.
11944 </result>
11945 <result name="VBOX_E_INVALID_OBJECT_STATE">
11946 Session type prevents operation.
11947 </result>
11948
11949 </desc>
11950 </method>
11951
11952 <method name="onSharedFolderChange">
11953 <desc>
11954 Triggered when a permanent (global or machine) shared folder has been
11955 created or removed.
11956 <note>
11957 We don't pass shared folder parameters in this notification because
11958 the order in which parallel notifications are delivered is not defined,
11959 therefore it could happen that these parameters were outdated by the
11960 time of processing this notification.
11961 </note>
11962
11963 <result name="VBOX_E_INVALID_VM_STATE">
11964 Session state prevents operation.
11965 </result>
11966 <result name="VBOX_E_INVALID_OBJECT_STATE">
11967 Session type prevents operation.
11968 </result>
11969
11970 </desc>
11971 <param name="global" type="boolean" dir="in"/>
11972 </method>
11973
11974 <method name="onUSBDeviceAttach">
11975 <desc>
11976 Triggered when a request to capture a USB device (as a result
11977 of matched USB filters or direct call to
11978 <link to="IConsole::attachUSBDevice"/>) has completed.
11979 A @c null @a error object means success, otherwise it
11980 describes a failure.
11981
11982 <result name="VBOX_E_INVALID_VM_STATE">
11983 Session state prevents operation.
11984 </result>
11985 <result name="VBOX_E_INVALID_OBJECT_STATE">
11986 Session type prevents operation.
11987 </result>
11988
11989 </desc>
11990 <param name="device" type="IUSBDevice" dir="in"/>
11991 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11992 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
11993 </method>
11994
11995 <method name="onUSBDeviceDetach">
11996 <desc>
11997 Triggered when a request to release the USB device (as a result
11998 of machine termination or direct call to
11999 <link to="IConsole::detachUSBDevice"/>) has completed.
12000 A @c null @a error object means success, otherwise it
12001
12002 <result name="VBOX_E_INVALID_VM_STATE">
12003 Session state prevents operation.
12004 </result>
12005 <result name="VBOX_E_INVALID_OBJECT_STATE">
12006 Session type prevents operation.
12007 </result>
12008
12009 </desc>
12010 <param name="id" type="uuid" dir="in"/>
12011 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12012 </method>
12013
12014 <method name="onShowWindow">
12015 <desc>
12016 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12017 <link to="IMachine::showConsoleWindow"/> in order to notify
12018 console callbacks
12019 <link to="IConsoleCallback::onCanShowWindow"/>
12020 and <link to="IConsoleCallback::onShowWindow"/>.
12021
12022 <result name="VBOX_E_INVALID_OBJECT_STATE">
12023 Session type prevents operation.
12024 </result>
12025
12026 </desc>
12027 <param name="check" type="boolean" dir="in"/>
12028 <param name="canShow" type="boolean" dir="out"/>
12029 <param name="winId" type="unsigned long long" dir="out"/>
12030 </method>
12031
12032 <method name="accessGuestProperty">
12033 <desc>
12034 Called by <link to="IMachine::getGuestProperty"/> and by
12035 <link to="IMachine::setGuestProperty"/> in order to read and
12036 modify guest properties.
12037
12038 <result name="VBOX_E_INVALID_VM_STATE">
12039 Machine session is not open.
12040 </result>
12041 <result name="VBOX_E_INVALID_OBJECT_STATE">
12042 Session type is not direct.
12043 </result>
12044
12045 </desc>
12046 <param name="name" type="wstring" dir="in"/>
12047 <param name="value" type="wstring" dir="in"/>
12048 <param name="flags" type="wstring" dir="in"/>
12049 <param name="isSetter" type="boolean" dir="in"/>
12050 <param name="retValue" type="wstring" dir="out"/>
12051 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12052 <param name="retFlags" type="wstring" dir="out"/>
12053 </method>
12054
12055 <method name="enumerateGuestProperties">
12056 <desc>
12057 Return a list of the guest properties matching a set of patterns along
12058 with their values, time stamps and flags.
12059
12060 <result name="VBOX_E_INVALID_VM_STATE">
12061 Machine session is not open.
12062 </result>
12063 <result name="VBOX_E_INVALID_OBJECT_STATE">
12064 Session type is not direct.
12065 </result>
12066
12067 </desc>
12068 <param name="patterns" type="wstring" dir="in">
12069 <desc>
12070 The patterns to match the properties against as a comma-separated
12071 string. If this is empty, all properties currently set will be
12072 returned.
12073 </desc>
12074 </param>
12075 <param name="key" type="wstring" dir="out" safearray="yes">
12076 <desc>
12077 The key names of the properties returned.
12078 </desc>
12079 </param>
12080 <param name="value" type="wstring" dir="out" safearray="yes">
12081 <desc>
12082 The values of the properties returned. The array entries match the
12083 corresponding entries in the @a key array.
12084 </desc>
12085 </param>
12086 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12087 <desc>
12088 The time stamps of the properties returned. The array entries match
12089 the corresponding entries in the @a key array.
12090 </desc>
12091 </param>
12092 <param name="flags" type="wstring" dir="out" safearray="yes">
12093 <desc>
12094 The flags of the properties returned. The array entries match the
12095 corresponding entries in the @a key array.
12096 </desc>
12097 </param>
12098 </method>
12099
12100 </interface>
12101
12102 <interface
12103 name="ISession" extends="$dispatched"
12104 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12105 wsmap="managed"
12106 >
12107 <desc>
12108 The ISession interface represents a serialization primitive for virtual
12109 machines.
12110
12111 With VirtualBox, every time one wishes to manipulate a virtual machine
12112 (e.g. change its settings or start execution), a session object is
12113 required. Such an object must be passed to one of the session methods
12114 that open the given session, which then initiates the machine manipulation.
12115
12116 A session serves several purposes: it identifies to the inter-process VirtualBox
12117 code which process is currently working with the virtual machine, and it ensures
12118 that there are no incompatible requests from several processes for the
12119 same virtual machine. Session objects can therefore be thought of as mutex
12120 semaphores that lock virtual machines to prevent conflicting accesses from
12121 several processes.
12122
12123 How sessions objects are used depends on whether you use the Main API
12124 via COM or via the webservice:
12125
12126 <ul>
12127 <li>When using the COM API directly, an object of the Session class from the
12128 VirtualBox type library needs to be created. In regular COM C++ client code,
12129 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12130 This object will then act as a local session object in further calls to open
12131 a session.
12132 </li>
12133
12134 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12135 one session object automatically when <link to="IWebsessionManager::logon" />
12136 is called. A managed object reference to that session object can be retrieved by
12137 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12138 reference can then be used to open sessions.
12139 </li>
12140 </ul>
12141
12142 Sessions are mainly used in two variations:
12143
12144 <ul>
12145 <li>
12146 To start a virtual machine in a separate process, one would call
12147 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12148 object as its first parameter. This session then identifies the caller
12149 and lets him control the started machine (for example, pause machine
12150 execution or power it down) as well as be notified about machine
12151 execution state changes.
12152 </li>
12153
12154 <li>To alter machine settings, or to start machine execution within the
12155 current process, one needs to open a direct session for the machine first by
12156 calling <link to="IVirtualBox::openSession"/>. While a direct session
12157 is open within one process, no any other process may open another direct
12158 session for the same machine. This prevents the machine from being changed
12159 by other processes while it is running or while the machine is being configured.
12160 </li>
12161 </ul>
12162
12163 One also can attach to an existing direct session already opened by
12164 another process (for example, in order to send a control request to the
12165 virtual machine such as the pause or the reset request). This is done by
12166 calling <link to="IVirtualBox::openExistingSession"/>.
12167
12168 <note>
12169 Unless you are trying to write a new VirtualBox front-end that
12170 performs direct machine execution (like the VirtualBox or VBoxSDL
12171 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12172 session opened by <link to="IVirtualBox::openSession"/> and use this
12173 session only to change virtual machine settings. If you simply want to
12174 start virtual machine execution using one of the existing front-ends
12175 (for example the VirtualBox GUI or headless server), simply use
12176 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12177 will power up the machine automatically for you.
12178 </note>
12179 </desc>
12180
12181 <attribute name="state" type="SessionState" readonly="yes">
12182 <desc>Current state of this session.</desc>
12183 </attribute>
12184
12185 <attribute name="type" type="SessionType" readonly="yes">
12186 <desc>
12187 Type of this session. The value of this attribute is valid only
12188 if the session is currently open (i.e. its #state is
12189 SessionType_SessionOpen), otherwise an error will be returned.
12190 </desc>
12191 </attribute>
12192
12193 <attribute name="machine" type="IMachine" readonly="yes">
12194 <desc>Machine object associated with this session.</desc>
12195 </attribute>
12196
12197 <attribute name="console" type="IConsole" readonly="yes">
12198 <desc>Console object associated with this session.</desc>
12199 </attribute>
12200
12201 <method name="close">
12202 <desc>
12203 Closes a session that was previously opened.
12204
12205 It is recommended that every time an "open session" method (such as
12206 <link to="IVirtualBox::openRemoteSession" /> or
12207 <link to="IVirtualBox::openSession" />) has been called to
12208 manipulate a virtual machine, the caller invoke
12209 ISession::close() when it's done doing so. Since sessions are
12210 serialization primitives much like ordinary mutexes, they are
12211 best used the same way: for each "open" call, there should be
12212 a matching "close" call, even when errors occur.
12213
12214 Otherwise, if a direct session for a machine opened with
12215 <link to="IVirtualBox::openSession"/> is not explicitly closed
12216 when the application terminates, the state of the machine will
12217 be set to <link to="MachineState_Aborted" /> on the server.
12218
12219 Generally, it is recommended to close all open sessions explicitly
12220 before terminating the application (regardless of the reason for
12221 the termination).
12222
12223 <note>
12224 Do not expect the session state (<link to="ISession::state" />
12225 to return to "Closed" immediately after you invoke
12226 ISession::close(), particularly if you have started a remote
12227 session to execute the VM in a new process. The session state will
12228 automatically return to "Closed" once the VM is no longer executing,
12229 which can of course take a very long time.
12230 </note>
12231
12232 <result name="E_UNEXPECTED">
12233 Session is not open.
12234 </result>
12235
12236 </desc>
12237 </method>
12238
12239 </interface>
12240
12241 <!--
12242 // ISATAController
12243 /////////////////////////////////////////////////////////////////////////
12244 -->
12245
12246 <interface
12247 name="ISATAController" extends="$unknown"
12248 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12249 wsmap="managed"
12250 >
12251 <attribute name="enabled" type="boolean">
12252 <desc>
12253 Flag whether the SATA controller is present in the
12254 guest system. If disabled, the virtual guest hardware will
12255 not contain any SATA controller. Can only be changed when
12256 the VM is powered off.
12257 </desc>
12258 </attribute>
12259
12260 <attribute name="portCount" type="unsigned long">
12261 <desc>
12262 The number of usable ports on the SATA controller.
12263 It ranges from 1 to 30.
12264 </desc>
12265 </attribute>
12266
12267 <method name="GetIDEEmulationPort">
12268 <desc>
12269 Gets the corresponding port number which is emulated as an IDE device.
12270
12271 <result name="E_INVALIDARG">
12272 The @a devicePosition is not in the range 0 to 3.
12273 </result>
12274
12275 </desc>
12276 <param name="devicePosition" type="long" dir="in"/>
12277 <param name="portNumber" type="long" dir="return"/>
12278 </method>
12279
12280 <method name="SetIDEEmulationPort">
12281 <desc>
12282 Sets the port number which is emulated as an IDE device.
12283
12284 <result name="E_INVALIDARG">
12285 The @a devicePosition is not in the range 0 to 3 or the
12286 @a portNumber is not in the range 0 to 29.
12287 </result>
12288
12289 </desc>
12290 <param name="devicePosition" type="long" dir="in"/>
12291 <param name="portNumber" type="long" dir="in"/>
12292 </method>
12293
12294 </interface>
12295
12296<if target="wsdl">
12297
12298 <!--
12299 // IManagedObjectRef
12300 /////////////////////////////////////////////////////////////////////////
12301 -->
12302
12303 <interface
12304 name="IManagedObjectRef" extends="$unknown"
12305 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12306 internal="yes"
12307 wsmap="managed"
12308 wscpp="hardcoded"
12309 >
12310 <desc>
12311 Managed object reference.
12312
12313 Only within the webservice, a managed object reference (which is really
12314 an opaque number) allows a webservice client to address an object
12315 that lives in the address space of the webservice server.
12316
12317 Behind each managed object reference, there is a COM object that lives
12318 in the webservice server's address space. The COM object is not freed
12319 until the managed object reference is released, either by an explicit
12320 call to <link to="IManagedObjectRef::release" /> or by logging off from
12321 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12322 all objects created during the webservice session.
12323
12324 Whenever a method call of the VirtualBox API returns a COM object, the
12325 webservice representation of that method will instead return a
12326 managed object reference, which can then be used to invoke methods
12327 on that object.
12328 </desc>
12329
12330 <method name="getInterfaceName">
12331 <desc>
12332 Returns the name of the interface that this managed object represents,
12333 for example, "IMachine", as a string.
12334 </desc>
12335 <param name="return" type="wstring" dir="return"/>
12336 </method>
12337
12338 <method name="release">
12339 <desc>
12340 Releases this managed object reference and frees the resources that
12341 were allocated for it in the webservice server process. After calling
12342 this method, the identifier of the reference can no longer be used.
12343 </desc>
12344 </method>
12345
12346 </interface>
12347
12348 <!--
12349 // IWebsessionManager
12350 /////////////////////////////////////////////////////////////////////////
12351 -->
12352
12353 <interface
12354 name="IWebsessionManager" extends="$unknown"
12355 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12356 internal="yes"
12357 wsmap="global"
12358 wscpp="hardcoded"
12359 >
12360 <desc>
12361 Websession manager. This provides essential services
12362 to webservice clients.
12363 </desc>
12364 <method name="logon">
12365 <desc>
12366 Logs a new client onto the webservice and returns a managed object reference to
12367 the IVirtualBox instance, which the client can then use as a basis to further
12368 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12369 interface, in one way or the other.
12370 </desc>
12371 <param name="username" type="wstring" dir="in"/>
12372 <param name="password" type="wstring" dir="in"/>
12373 <param name="return" type="IVirtualBox" dir="return"/>
12374 </method>
12375
12376 <method name="getSessionObject">
12377 <desc>
12378 Returns a managed object reference to the internal ISession object that was created
12379 for this web service session when the client logged on.
12380
12381 <see>ISession</see>
12382 </desc>
12383 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12384 <param name="return" type="ISession" dir="return"/>
12385 </method>
12386
12387 <method name="logoff">
12388 <desc>
12389 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12390 and destroys all resources associated with the session (most importantly, all
12391 managed objects created in the server while the session was active).
12392 </desc>
12393 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12394 </method>
12395
12396 </interface>
12397
12398</if>
12399
12400 <!--
12401 // IPerformanceCollector & friends
12402 /////////////////////////////////////////////////////////////////////////
12403 -->
12404
12405 <interface
12406 name="IPerformanceMetric" extends="$unknown"
12407 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12408 >
12409 <desc>
12410 The IPerformanceMetric interface represents parameters of the given
12411 performance metric.
12412 </desc>
12413
12414 <attribute name="metricName" type="wstring" readonly="yes">
12415 <desc>
12416 Name of the metric.
12417 </desc>
12418 </attribute>
12419
12420 <attribute name="object" type="$unknown" readonly="yes">
12421 <desc>
12422 Object this metric belongs to.
12423 </desc>
12424 </attribute>
12425
12426 <attribute name="description" type="wstring" readonly="yes">
12427 <desc>
12428 Textual description of the metric.
12429 </desc>
12430 </attribute>
12431
12432 <attribute name="period" type="unsigned long" readonly="yes">
12433 <desc>
12434 Time interval between samples, measured in seconds.
12435 </desc>
12436 </attribute>
12437
12438 <attribute name="count" type="unsigned long" readonly="yes">
12439 <desc>
12440 Number of recent samples retained by the performance collector for this
12441 metric.
12442
12443 When the collected sample count exceeds this number, older samples
12444 are discarded.
12445 </desc>
12446 </attribute>
12447
12448 <attribute name="unit" type="wstring" readonly="yes">
12449 <desc>
12450 Unit of measurement.
12451 </desc>
12452 </attribute>
12453
12454 <attribute name="minimumValue" type="long" readonly="yes">
12455 <desc>
12456 Minimum possible value of this metric.
12457 </desc>
12458 </attribute>
12459
12460 <attribute name="maximumValue" type="long" readonly="yes">
12461 <desc>
12462 Maximum possible value of this metric.
12463 </desc>
12464 </attribute>
12465 </interface>
12466
12467 <interface
12468 name="IPerformanceCollector" extends="$unknown"
12469 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12470 wsmap="managed"
12471 >
12472 <desc>
12473 The IPerformanceCollector interface represents a service that collects and
12474 stores performance metrics data.
12475
12476 Performance metrics are associated with objects like IHost and
12477 IMachine. Each object has a distinct set of performance metrics.
12478 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12479
12480 Metric data are collected at the specified intervals and are retained
12481 internally. The interval and the number of samples retained can be set
12482 with <link to="IPerformanceCollector::setupMetrics" />.
12483
12484 Metrics are organized hierarchically, each level separated by slash (/).
12485 General scheme for metric name is
12486 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12487 metric name stands for: CPU category, Load metric, User submetric, average
12488 aggregate. An aggregate function is computed over all retained data. Valid
12489 aggregate functions are:
12490
12491 <ul>
12492 <li>avg -- average</li>
12493 <li>min -- minimum</li>
12494 <li>max -- maximum</li>
12495 </ul>
12496
12497 "Category/Metric" together form base metric name. A base metric is the
12498 smallest unit for which a sampling interval and the number of retained
12499 samples can be set. Only base metrics can be enabled and disabled. All
12500 sub-metrics are collected when their base metric is collected.
12501 Collected values for any set of sub-metrics can be queried with
12502 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12503 metric parameters, querying metric data, enabling or disabling metrics
12504 wildcards can be used in metric names to specify a subset of metrics. For
12505 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12506 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12507 values without aggregates <tt>*:</tt> can be used.
12508
12509 The valid names for base metrics are:
12510
12511 <ul>
12512 <li>CPU/Load</li>
12513 <li>CPU/MHz</li>
12514 <li>RAM/Usage</li>
12515 </ul>
12516
12517 The general sequence for collecting and retrieving the metrics is:
12518 <ul>
12519 <li>
12520 Obtain an instance of IPerformanceCollector with
12521 <link to="IVirtualBox::performanceCollector" />
12522 </li>
12523 <li>
12524 Allocate and populate an array with references to objects the metrics
12525 will be collected for. Use references to IHost and IMachine objects.
12526 </li>
12527 <li>
12528 Allocate and populate an array with base metric names the data will be
12529 collected for.
12530 </li>
12531 <li>
12532 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12533 metric data will be collected and stored.
12534 </li>
12535 <li>
12536 Wait for the data to get collected.
12537 </li>
12538 <li>
12539 Allocate and populate an array with references to objects the metric
12540 values will be queried for. You can re-use the object array used for
12541 setting base metrics.
12542 </li>
12543 <li>
12544 Allocate and populate an array with metric names the data will be
12545 collected for. Note that metric names differ from base metric names.
12546 </li>
12547 <li>
12548 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12549 have been collected so far are returned. Note that the values are still
12550 retained internally and data collection continues.
12551 </li>
12552 </ul>
12553
12554 For an example of usage refer to the following files in VirtualBox SDK:
12555 <ul>
12556 <li>
12557 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12558 </li>
12559 <li>
12560 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12561 </li>
12562 </ul>
12563 </desc>
12564
12565 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12566 <desc>
12567 Array of unique names of metrics.
12568
12569 This array represents all metrics supported by the performance
12570 collector. Individual objects do not necessarily support all of them.
12571 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12572 list of supported metrics for a particular object.
12573 </desc>
12574 </attribute>
12575
12576 <method name="getMetrics">
12577 <desc>
12578 Returns parameters of specified metrics for a set of objects.
12579 <note>
12580 @c Null metrics array means all metrics. @c Null object array means
12581 all existing objects.
12582 </note>
12583 </desc>
12584 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12585 <desc>
12586 Metric name filter. Currently, only a comma-separated list of metrics
12587 is supported.
12588 </desc>
12589 </param>
12590 <param name="objects" type="$unknown" dir="in" safearray="yes">
12591 <desc>
12592 Set of objects to return metric parameters for.
12593 </desc>
12594 </param>
12595 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12596 <desc>
12597 Array of returned metric parameters.
12598 </desc>
12599 </param>
12600 </method>
12601
12602 <method name="setupMetrics">
12603 <desc>
12604 Sets parameters of specified base metrics for a set of objects. Returns
12605 an array of <link to="IPerformanceMetric" /> describing the metrics have
12606 been affected.
12607 <note>
12608 @c Null or empty metric name array means all metrics. @c Null or empty
12609 object array means all existing objects. If metric name array contains
12610 a single element and object array contains many, the single metric
12611 name array element is applied to each object array element to form
12612 metric/object pairs.
12613 </note>
12614 </desc>
12615 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12616 <desc>
12617 Metric name filter. Comma-separated list of metrics with wildcard
12618 support.
12619 </desc>
12620 </param>
12621 <param name="objects" type="$unknown" dir="in" safearray="yes">
12622 <desc>
12623 Set of objects to setup metric parameters for.
12624 </desc>
12625 </param>
12626 <param name="period" type="unsigned long" dir="in">
12627 <desc>
12628 Time interval in seconds between two consecutive samples of performance
12629 data.
12630 </desc>
12631 </param>
12632 <param name="count" type="unsigned long" dir="in">
12633 <desc>
12634 Number of samples to retain in performance data history. Older samples
12635 get discarded.
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="enableMetrics">
12646 <desc>
12647 Turns on 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 enable 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="disableMetrics">
12677 <desc>
12678 Turns off collecting specified base metrics. Returns an array of
12679 <link to="IPerformanceMetric" /> describing the metrics have been
12680 affected.
12681 <note>
12682 @c Null or empty metric name array means all metrics. @c Null or empty
12683 object array means all existing objects. If metric name array contains
12684 a single element and object array contains many, the single metric
12685 name array element is applied to each object array element to form
12686 metric/object pairs.
12687 </note>
12688 </desc>
12689 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12690 <desc>
12691 Metric name filter. Comma-separated list of metrics with wildcard
12692 support.
12693 </desc>
12694 </param>
12695 <param name="objects" type="$unknown" dir="in" safearray="yes">
12696 <desc>
12697 Set of objects to disable metrics for.
12698 </desc>
12699 </param>
12700 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12701 <desc>
12702 Array of metrics that have been modified by the call to this method.
12703 </desc>
12704 </param>
12705 </method>
12706
12707 <method name="queryMetricsData">
12708 <desc>
12709 Queries collected metrics data for a set of objects.
12710
12711 The data itself and related metric information are returned in seven
12712 parallel and one flattened array of arrays. Elements of
12713 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12714 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12715 the same index describe one set of values corresponding to a single
12716 metric.
12717
12718 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12719 start and length of a sub-array is indicated by
12720 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12721 value for metric <tt>metricNames[i]</tt> is at
12722 <tt>returnData[returnIndices[i]]</tt>.
12723
12724 <note>
12725 @c Null or empty metric name array means all metrics. @c Null or empty
12726 object array means all existing objects. If metric name array contains
12727 a single element and object array contains many, the single metric
12728 name array element is applied to each object array element to form
12729 metric/object pairs.
12730 </note>
12731 <note>
12732 Data collection continues behind the scenes after call to
12733 @c queryMetricsData. The return data can be seen as the snapshot of
12734 the current state at the time of @c queryMetricsData call. The
12735 internally kept metric values are not cleared by the call. This makes
12736 possible querying different subsets of metrics or aggregates with
12737 subsequent calls. If periodic querying is needed it is highly
12738 suggested to query the values with @c interval*count period to avoid
12739 confusion. This way a completely new set of data values will be
12740 provided by each query.
12741 </note>
12742 </desc>
12743 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12744 <desc>
12745 Metric name filter. Comma-separated list of metrics with wildcard
12746 support.
12747 </desc>
12748 </param>
12749 <param name="objects" type="$unknown" dir="in" safearray="yes">
12750 <desc>
12751 Set of objects to query metrics for.
12752 </desc>
12753 </param>
12754 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12755 <desc>
12756 Names of metrics returned in @c returnData.
12757 </desc>
12758 </param>
12759 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12760 <desc>
12761 Objects associated with metrics returned in @c returnData.
12762 </desc>
12763 </param>
12764 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12765 <desc>
12766 Units of measurement for each returned metric.
12767 </desc>
12768 </param>
12769 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12770 <desc>
12771 Divisor that should be applied to return values in order to get
12772 floating point values. For example:
12773 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12774 will retrieve the floating point value of i-th sample of the first
12775 metric.
12776 </desc>
12777 </param>
12778 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12779 <desc>
12780 Sequence numbers of the first elements of value sequences of particular metrics
12781 returned in @c returnData. For aggregate metrics it is the sequence number of
12782 the sample the aggregate started calculation from.
12783 </desc>
12784 </param>
12785 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12786 <desc>
12787 Indices of the first elements of value sequences of particular metrics
12788 returned in @c returnData.
12789 </desc>
12790 </param>
12791 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12792 <desc>
12793 Lengths of value sequences of particular metrics.
12794 </desc>
12795 </param>
12796 <param name="returnData" type="long" dir="return" safearray="yes">
12797 <desc>
12798 Flattened array of all metric data containing sequences of values for
12799 each metric.
12800 </desc>
12801 </param>
12802 </method>
12803
12804 </interface>
12805
12806 <module name="VBoxSVC" context="LocalServer">
12807 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12808 namespace="virtualbox.org">
12809 <interface name="IVirtualBox" default="yes"/>
12810 </class>
12811 </module>
12812
12813 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12814 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12815 namespace="virtualbox.org">
12816 <interface name="ISession" default="yes"/>
12817 </class>
12818 </module>
12819
12820</library>
12821
12822</idl>
12823
12824<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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