VirtualBox

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

Last change on this file since 16793 was 16779, checked in by vboxsync, 16 years ago

Typo: Insert missing white space.

  • Property svn:eol-style set to native
File size: 470.4 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-2008 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::attachHardDisk2"/>).
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 </enum>
884
885 <enum
886 name="DriveState"
887 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
888 >
889 <const name="Null" value="0">
890 <desc>Null value (never used by the API).</desc>
891 </const>
892 <const name="NotMounted" value="1"/>
893 <const name="ImageMounted" value="2"/>
894 <const name="HostDriveCaptured" value="3"/>
895 </enum>
896
897 <enum
898 name="ProcessorFeature"
899 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
900 >
901 <desc>
902 CPU features.
903 </desc>
904
905 <const name="HWVirtEx" value="0"/>
906 <const name="PAE" value="1"/>
907 <const name="LongMode" value="2"/>
908 </enum>
909
910
911 <!--
912 // IVirtualBoxErrorInfo
913 /////////////////////////////////////////////////////////////////////////
914 -->
915
916 <interface
917 name="IVirtualBoxErrorInfo" extends="$errorinfo"
918 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
919 supportsErrorInfo="no"
920 wsmap="suppress"
921 >
922 <desc>
923 The IVirtualBoxErrorInfo interface represents extended error information.
924
925 Extended error information can be set by VirtualBox components after
926 unsuccessful or partially successful method invocation. This information
927 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
928 and then shown to the client in addition to the plain 32-bit result code.
929
930 In MS COM, this interface extends the IErrorInfo interface,
931 in XPCOM, it extends the nsIException interface. In both cases,
932 it provides a set of common attributes to retrieve error
933 information.
934
935 Sometimes invocation of some component's method may involve methods of
936 other components that may also fail (independently of this method's
937 failure), or a series of non-fatal errors may precede a fatal error that
938 causes method failure. In cases like that, it may be desirable to preserve
939 information about all errors happened during method invocation and deliver
940 it to the caller. The <link to="#next"/> attribute is intended
941 specifically for this purpose and allows to represent a chain of errors
942 through a single IVirtualBoxErrorInfo object set after method invocation.
943
944 Note that errors are stored to a chain in the reverse order, i.e. the
945 initial error object you query right after method invocation is the last
946 error set by the callee, the object it points to in the @a next attribute
947 is the previous error and so on, up to the first error (which is the last
948 in the chain).
949 </desc>
950
951 <attribute name="resultCode" type="result" readonly="yes">
952 <desc>
953 Result code of the error.
954 Usually, it will be the same as the result code returned
955 by the method that provided this error information, but not
956 always. For example, on Win32, CoCreateInstance() will most
957 likely return E_NOINTERFACE upon unsuccessful component
958 instantiation attempt, but not the value the component factory
959 returned.
960 <note>
961 In MS COM, there is no equivalent.
962 In XPCOM, it is the same as nsIException::result.
963 </note>
964 </desc>
965 </attribute>
966
967 <attribute name="interfaceID" type="uuid" readonly="yes">
968 <desc>
969 UUID of the interface that defined the error.
970 <note>
971 In MS COM, it is the same as IErrorInfo::GetGUID.
972 In XPCOM, there is no equivalent.
973 </note>
974 </desc>
975 </attribute>
976
977 <attribute name="component" type="wstring" readonly="yes">
978 <desc>
979 Name of the component that generated the error.
980 <note>
981 In MS COM, it is the same as IErrorInfo::GetSource.
982 In XPCOM, there is no equivalent.
983 </note>
984 </desc>
985 </attribute>
986
987 <attribute name="text" type="wstring" readonly="yes">
988 <desc>
989 Text description of the error.
990 <note>
991 In MS COM, it is the same as IErrorInfo::GetDescription.
992 In XPCOM, it is the same as nsIException::message.
993 </note>
994 </desc>
995 </attribute>
996
997 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
998 <desc>
999 Next error object if there is any, or @c null otherwise.
1000 <note>
1001 In MS COM, there is no equivalent.
1002 In XPCOM, it is the same as nsIException::inner.
1003 </note>
1004 </desc>
1005 </attribute>
1006
1007 </interface>
1008
1009
1010 <!--
1011 // IVirtualBox
1012 /////////////////////////////////////////////////////////////////////////
1013 -->
1014
1015 <interface
1016 name="IVirtualBoxCallback" extends="$unknown"
1017 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
1018 wsmap="suppress"
1019 >
1020 <method name="onMachineStateChange">
1021 <desc>
1022 The execution state of the given machine has changed.
1023 <see>IMachine::state</see>
1024 </desc>
1025 <param name="machineId" type="uuid" dir="in">
1026 <desc>ID of the machine this event relates to.</desc>
1027 </param>
1028 <param name="state" type="MachineState" dir="in">
1029 <desc>New execution state.</desc>
1030 </param>
1031 </method>
1032
1033 <method name="onMachineDataChange">
1034 <desc>
1035 Any of the settings of the given machine has changed.
1036 </desc>
1037 <param name="machineId" type="uuid" dir="in">
1038 <desc>ID of the machine this event relates to.</desc>
1039 </param>
1040 </method>
1041
1042 <method name="onExtraDataCanChange">
1043 <desc>
1044 Notification when someone tries to change extra data for
1045 either the given machine or (if null) global extra data.
1046 This gives the chance to veto against changes.
1047 </desc>
1048 <param name="machineId" type="uuid" dir="in">
1049 <desc>
1050 ID of the machine this event relates to
1051 (null ID for global extra data change requests).
1052 </desc>
1053 </param>
1054 <param name="key" type="wstring" dir="in">
1055 <desc>
1056 Extra data key for the attempted write.
1057 </desc>
1058 </param>
1059 <param name="value" type="wstring" dir="in">
1060 <desc>
1061 Extra data value for the given key.
1062 </desc>
1063 </param>
1064 <param name="error" type="wstring" dir="out">
1065 <desc>
1066 Optional error message describing the reason of the
1067 veto (ignored if this notification returns @c true).
1068 </desc>
1069 </param>
1070 <param name="allowChange" type="boolean" dir="return">
1071 <desc>
1072 Flag to indicate whether the callee agrees (@c true)
1073 or vetoes against the change (@c false).
1074 </desc>
1075 </param>
1076 </method>
1077
1078 <method name="onExtraDataChange">
1079 <desc>
1080 Notification when machine specific or global extra data
1081 has changed.
1082 </desc>
1083 <param name="machineId" type="uuid" dir="in">
1084 <desc>
1085 ID of the machine this event relates to.
1086 Null for global extra data changes.
1087 </desc>
1088 </param>
1089 <param name="key" type="wstring" dir="in">
1090 <desc>
1091 Extra data key that has changed.
1092 </desc>
1093 </param>
1094 <param name="value" type="wstring" dir="in">
1095 <desc>
1096 Extra data value for the given key.
1097 </desc>
1098 </param>
1099 </method>
1100
1101 <method name="onMediaRegistered">
1102 <desc>
1103 The given media was registered or unregistered
1104 within this VirtualBox installation.
1105
1106 The @a mediaType parameter describes what type of
1107 media the specified @a mediaId refers to. Possible
1108 values are:
1109
1110 <ul>
1111 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1112 that, if registered, can be obtained using the
1113 <link to="IVirtualBox::getHardDisk2"/> call.</li>
1114 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1115 that, if registered, can be obtained using the
1116 <link to="IVirtualBox::getDVDImage"/> call.</li>
1117 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1118 that, if registered, can be obtained using the
1119 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1120 </ul>
1121
1122 Note that if this is a deregistration notification,
1123 there is no way to access the object representing the
1124 unregistered media. It is supposed that the
1125 application will do required cleanup based on the @a
1126 mediaId value.
1127 </desc>
1128 <param name="mediaId" type="uuid" dir="in">
1129 <desc>ID of the media this event relates to.</desc>
1130 </param>
1131 <param name="mediaType" type="DeviceType" dir="in">
1132 <desc>Type of the media this event relates to.</desc>
1133 </param>
1134 <param name="registered" type="boolean" dir="in">
1135 <desc>
1136 If true, the media was registered, otherwise it was
1137 unregistered.
1138 </desc>
1139 </param>
1140 </method>
1141
1142 <method name="onMachineRegistered">
1143 <desc>
1144 The given machine was registered or unregistered
1145 within this VirtualBox installation.
1146 </desc>
1147 <param name="machineId" type="uuid" dir="in">
1148 <desc>ID of the machine this event relates to.</desc>
1149 </param>
1150 <param name="registered" type="boolean" dir="in">
1151 <desc>
1152 If true, the machine was registered, otherwise it was
1153 unregistered.
1154 </desc>
1155 </param>
1156 </method>
1157
1158 <method name="onSessionStateChange">
1159 <desc>
1160 The state of the session for the given machine was changed.
1161 <see>IMachine::sessionState</see>
1162 </desc>
1163 <param name="machineId" type="uuid" dir="in">
1164 <desc>ID of the machine this event relates to.</desc>
1165 </param>
1166 <param name="state" type="SessionState" dir="in">
1167 <desc>New session state.</desc>
1168 </param>
1169 </method>
1170
1171 <method name="onSnapshotTaken">
1172 <desc>
1173 A new snapshot of the machine has been taken.
1174 <see>ISnapshot</see>
1175 </desc>
1176 <param name="machineId" type="uuid" dir="in">
1177 <desc>ID of the machine this event relates to.</desc>
1178 </param>
1179 <param name="snapshotId" type="uuid" dir="in">
1180 <desc>ID of the new snapshot.</desc>
1181 </param>
1182 </method>
1183
1184 <method name="onSnapshotDiscarded">
1185 <desc>
1186 Snapshot of the given machine has been discarded.
1187
1188 <note>
1189 This notification is delivered <b>after</b> the snapshot
1190 object has been uninitialized on the server (so that any
1191 attempt to call its methods will return an error).
1192 </note>
1193
1194 <see>ISnapshot</see>
1195 </desc>
1196 <param name="machineId" type="uuid" dir="in">
1197 <desc>ID of the machine this event relates to.</desc>
1198 </param>
1199 <param name="snapshotId" type="uuid" dir="in">
1200 <desc>
1201 ID of the discarded snapshot. <tt>null</tt> means the
1202 current machine state has been discarded (restored from
1203 the current snapshot).
1204 </desc>
1205 </param>
1206 </method>
1207
1208 <method name="onSnapshotChange">
1209 <desc>
1210 Snapshot properties (name and/or description) have been changed.
1211 <see>ISnapshot</see>
1212 </desc>
1213 <param name="machineId" type="uuid" dir="in">
1214 <desc>ID of the machine this event relates to.</desc>
1215 </param>
1216 <param name="snapshotId" type="uuid" dir="in">
1217 <desc>ID of the changed snapshot.</desc>
1218 </param>
1219 </method>
1220
1221 <method name="onGuestPropertyChange">
1222 <desc>
1223 Notification when a guest property has changed.
1224 </desc>
1225 <param name="machineId" type="uuid" dir="in">
1226 <desc>
1227 ID of the machine this event relates to.
1228 </desc>
1229 </param>
1230 <param name="name" type="wstring" dir="in">
1231 <desc>
1232 The name of the property that has changed.
1233 </desc>
1234 </param>
1235 <param name="value" type="wstring" dir="in">
1236 <desc>
1237 The new property value.
1238 </desc>
1239 </param>
1240 <param name="flags" type="wstring" dir="in">
1241 <desc>
1242 The new property flags.
1243 </desc>
1244 </param>
1245 </method>
1246
1247 </interface>
1248
1249 <interface
1250 name="IVirtualBox" extends="$dispatched"
1251 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1252 wsmap="managed"
1253 >
1254 <desc>
1255 The IVirtualBox interface represents the main interface exposed by the
1256 product that provides virtual machine management.
1257
1258 An instance of IVirtualBox is required for the product to do anything
1259 useful. Even though the interface does not expose this, internally,
1260 IVirtualBox is implemented as a singleton and actually lives in the
1261 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1262 IVirtualBox can track the state of all virtual machines on a particular
1263 host, regardless of which frontend started them.
1264
1265 To enumerate all the virtual machines on the host, use the
1266 <link to="IVirtualBox::machines2"/> attribute.
1267 </desc>
1268
1269 <attribute name="version" type="wstring" readonly="yes">
1270 <desc>
1271 A string representing the version number of the product. The
1272 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1273 last number represents the build number and will frequently change.
1274 </desc>
1275 </attribute>
1276
1277 <attribute name="revision" type="unsigned long" readonly="yes">
1278 <desc>
1279 The internal build revision number of the product.
1280 </desc>
1281 </attribute>
1282
1283 <attribute name="packageType" type="wstring" readonly="yes">
1284 <desc>
1285 A string representing the package type of this product. The
1286 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1287 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1288 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1289 this.
1290 </desc>
1291 </attribute>
1292
1293 <attribute name="homeFolder" type="wstring" readonly="yes">
1294 <desc>
1295 Full path to the directory where the global settings file,
1296 <tt>VirtualBox.xml</tt>, is stored.
1297
1298 In this version of VirtualBox, the value of this property is
1299 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1300 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1301 as determined by the host OS), and cannot be changed.
1302
1303 This path is also used as the base to resolve relative paths in
1304 places where relative paths are allowed (unless otherwise
1305 expressly indicated).
1306 </desc>
1307 </attribute>
1308
1309 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1310 <desc>
1311 Full name of the global settings file.
1312 The value of this property corresponds to the value of
1313 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1314 </desc>
1315 </attribute>
1316
1317 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1318 <desc>
1319 Current version of the format of the global VirtualBox settings file
1320 (<tt>VirtualBox.xml</tt>).
1321
1322 The version string has the following format:
1323 <pre>
1324 x.y-platform
1325 </pre>
1326 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1327 versions, and <tt>platform</tt> is the platform identifier.
1328
1329 The current version usually matches the value of the
1330 <link to="#settingsFormatVersion"/> attribute unless the
1331 settings file was created by an older version of VirtualBox and there
1332 was a change of the settings file format since then.
1333
1334 Note that VirtualBox automatically converts settings files from older
1335 versions to the most recent version when reading them (usually at
1336 VirtualBox startup) but it doesn't save the changes back until
1337 you call a method that implicitly saves settings (such as
1338 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1339 explicitly. Therefore, if the value of this attribute differs from the
1340 value of <link to="#settingsFormatVersion"/>, then it
1341 means that the settings file was converted but the result of the
1342 conversion is not yet saved to disk.
1343
1344 The above feature may be used by interactive front-ends to inform users
1345 about the settings file format change and offer them to explicitly save
1346 all converted settings files (the global and VM-specific ones),
1347 optionally create backup copies of the old settings files before saving,
1348 etc.
1349
1350 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1351 </desc>
1352 </attribute>
1353
1354 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1355 <desc>
1356 Most recent version of the settings file format.
1357
1358 The version string has the following format:
1359 <pre>
1360 x.y-platform
1361 </pre>
1362 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1363 versions, and <tt>platform</tt> is the platform identifier.
1364
1365 VirtualBox uses this version of the format when saving settings files
1366 (either as a result of method calls that require to save settings or as
1367 a result of an explicit call to <link to="#saveSettings"/>).
1368
1369 <see>settingsFileVersion</see>
1370 </desc>
1371 </attribute>
1372
1373 <attribute name="host" type="IHost" readonly="yes">
1374 <desc>Associated host object.</desc>
1375 </attribute>
1376
1377 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1378 <desc>Associated system information object.</desc>
1379 </attribute>
1380
1381 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1382 <desc>
1383 Array of machine objects registered within this VirtualBox instance.
1384 </desc>
1385 </attribute>
1386
1387 <attribute name="hardDisks2" type="IHardDisk2" readonly="yes" safearray="yes">
1388 <desc>
1389 Array of hard disk objects known to this VirtualBox installation.
1390
1391 This array contains only base (root) hard disks. All differencing
1392 hard disks of the given base hard disk can be enumerated using
1393 <link to="IHardDisk2::children"/>.
1394 </desc>
1395 </attribute>
1396
1397 <attribute name="DVDImages" type="IDVDImage2" readonly="yes" safearray="yes">
1398 <desc>
1399 Array of CD/DVD image objects registered with this VirtualBox instance.
1400 </desc>
1401 </attribute>
1402
1403 <attribute name="floppyImages" type="IFloppyImage2" readonly="yes" safearray="yes">
1404 <desc>
1405 Array of floppy image objects registered with this VirtualBox instance.
1406 </desc>
1407 </attribute>
1408
1409 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1410
1411 <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
1412
1413 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
1414 <desc>
1415 Collection of global shared folders. Global shared folders are
1416 available to all virtual machines.
1417
1418 New shared folders are added to the collection using
1419 <link to="#createSharedFolder"/>. Existing shared folders can be
1420 removed using <link to="#removeSharedFolder"/>.
1421
1422 <note>
1423 In the current version of the product, global shared folders are not
1424 implemented and therefore this collection is always empty.
1425 </note>
1426 </desc>
1427 </attribute>
1428
1429 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1430 <desc>
1431 Associated performance collector object.
1432 </desc>
1433 </attribute>
1434
1435 <method name="createMachine">
1436 <desc>
1437 Creates a new virtual machine.
1438
1439 The new machine is created unregistered, with the initial configuration
1440 set according to the specified guest OS type. A typical sequence of
1441 actions to create a new virtual machine is as follows:
1442
1443 <ol>
1444 <li>
1445 Call this method to have a new machine created. The returned machine
1446 object will be "mutable" allowing to change any machine property.
1447 </li>
1448
1449 <li>
1450 Configure the machine using the appropriate attributes and methods.
1451 </li>
1452
1453 <li>
1454 Call <link to="IMachine::saveSettings" /> to write the settings
1455 to the machine's XML settings file. The configuration of the newly
1456 created machine will not be saved to disk until this method is
1457 called.
1458 </li>
1459
1460 <li>
1461 Call <link to="#registerMachine" /> to add the machine to the list
1462 of machines known to VirtualBox.
1463 </li>
1464 </ol>
1465
1466 You should specify valid name for the newly created machine when calling
1467 this method. See the <link to="IMachine::name"/> attribute description
1468 for more details about the machine name.
1469
1470 The specified guest OS type identifier must match an ID of one of known
1471 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1472 array.
1473
1474 Every machine has a <i>settings file</i> that is used to store
1475 the machine configuration. This file is stored in a directory called the
1476 <i>machine settings subfolder</i>. Both the settings subfolder and file
1477 will have a name that corresponds to the name of the virtual machine.
1478 You can specify where to create the machine setting subfolder using the
1479 @a baseFolder argument. The base folder can be absolute (full path) or
1480 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1481 directory</link>.
1482
1483 If @a baseFolder is a null or empty string (which is recommended), the
1484 <link to="ISystemProperties::defaultMachineFolder">default machine
1485 settings folder</link> will be used as a base folder for the created
1486 machine. Otherwise the given base folder will be used. In either case,
1487 the full path to the resulting settings file has the following
1488 structure:
1489 <pre>
1490 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1491 </pre>
1492
1493 Note that if the resulting settings file already exists, this method
1494 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1495
1496 Optionally, you may specify an UUID of to assign to the created machine.
1497 However, this is not recommended and you should normally pass an empty
1498 (null) UUID to this method so that a new UUID will be automatically
1499 generated for every created machine.
1500
1501 <note>
1502 There is no way to change the name of the settings file or
1503 subfolder of the created machine directly.
1504 </note>
1505
1506 <result name="VBOX_E_OBJECT_NOT_FOUND">
1507 @a osTypeId is invalid.
1508 </result>
1509 <result name="VBOX_E_FILE_ERROR">
1510 Resulting settings file name is invalid or the settings file already
1511 exists or could not be created due to an I/O error.
1512 </result>
1513 <result name="E_INVALIDARG">
1514 @a name is empty or null.
1515 </result>
1516 </desc>
1517
1518 <param name="name" type="wstring" dir="in">
1519 <desc>Machine name.</desc>
1520 </param>
1521 <param name="osTypeId" type="wstring" dir="in">
1522 <desc>Guest OS Type ID.</desc>
1523 </param>
1524 <param name="baseFolder" type="wstring" dir="in">
1525 <desc>Base machine folder (optional).</desc>
1526 </param>
1527 <param name="id" type="uuid" dir="in">
1528 <desc>Machine UUID (optional).</desc>
1529 </param>
1530 <param name="machine" type="IMachine" dir="return">
1531 <desc>Created machine object.</desc>
1532 </param>
1533 </method>
1534
1535 <method name="createLegacyMachine">
1536 <desc>
1537 Creates a new virtual machine in "legacy" mode, using the specified
1538 settings file to store machine settings.
1539
1540 As opposed to machines created by <link to="#createMachine"/>,
1541 the settings file of the machine created in "legacy" mode is not
1542 automatically renamed when the machine name is changed -- it will always
1543 remain the same as specified in this method call.
1544
1545 The specified settings file name can be absolute (full path) or relative
1546 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1547 directory</link>. If the file name doesn't contain an extension, the
1548 default extension (.xml) will be appended.
1549
1550 Note that the configuration of the newly created machine is not
1551 saved to disk (and therefore no settings file is created)
1552 until <link to="IMachine::saveSettings"/> is called. If the
1553 specified settings file already exists, this method
1554 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1555
1556 See <link to="#createMachine"/> for more information.
1557
1558 @deprecated This method may be removed later. Use <link
1559 to="IVirtualBox::createMachine"/> instead.
1560
1561 <note>
1562 There is no way to change the name of the settings file
1563 of the machine created in "legacy" mode.
1564 </note>
1565
1566 <result name="VBOX_E_OBJECT_NOT_FOUND">
1567 @a osTypeId is invalid.
1568 </result>
1569 <result name="VBOX_E_FILE_ERROR">
1570 @a settingsFile is invalid or the settings file already exists or
1571 could not be created due to an I/O error.
1572 </result>
1573 <result name="E_INVALIDARG">
1574 @a name or @a settingsFile is empty or null.
1575 </result>
1576 </desc>
1577
1578 <param name="name" type="wstring" dir="in">
1579 <desc>Machine name.</desc>
1580 </param>
1581 <param name="osTypeId" type="wstring" dir="in">
1582 <desc>Machine OS Type ID.</desc>
1583 </param>
1584 <param name="settingsFile" type="wstring" dir="in">
1585 <desc>Name of the machine settings file.</desc>
1586 </param>
1587 <param name="id" type="uuid" dir="in">
1588 <desc>Machine UUID (optional).</desc>
1589 </param>
1590 <param name="machine" type="IMachine" dir="return">
1591 <desc>Created machine object.</desc>
1592 </param>
1593 </method>
1594
1595 <method name="openMachine">
1596 <desc>
1597 Opens a virtual machine from the existing settings file.
1598 The opened machine remains unregistered until you call
1599 <link to="#registerMachine"/>.
1600
1601 The specified settings file name can be absolute
1602 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1603 VirtualBox home directory</link>. This file must exist
1604 and must be a valid machine settings file whose contents
1605 will be used to construct the machine object.
1606
1607 @deprecated Will be removed soon.
1608 <result name="VBOX_E_FILE_ERROR">
1609 Settings file name invalid, not found or sharing violation.
1610 </result>
1611 </desc>
1612 <param name="settingsFile" type="wstring" dir="in">
1613 <desc>
1614 Name of the machine settings file.
1615 </desc>
1616 </param>
1617 <param name="machine" type="IMachine" dir="return">
1618 <desc>Opened machine object.</desc>
1619 </param>
1620 <note>
1621 <link to="IMachine::settingsModified"/> will return
1622 false for the created machine, until any of machine settings
1623 are changed.
1624 </note>
1625 </method>
1626
1627 <method name="registerMachine">
1628 <desc>
1629
1630 Registers the machine previously created using
1631 <link to="#createMachine"/> or opened using
1632 <link to="#openMachine"/> within this VirtualBox installation. After
1633 successful method invocation, the
1634 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1635 to all registered callbacks.
1636
1637 <note>
1638 This method implicitly calls <link to="IMachine::saveSettings"/>
1639 to save all current machine settings before registering it.
1640 </note>
1641
1642 <result name="VBOX_E_OBJECT_NOT_FOUND">
1643 No matching virtual machine found.
1644 </result>
1645 <result name="VBOX_E_INVALID_OBJECT_STATE">
1646 Virtual machine was not created within this VirtualBox instance.
1647 </result>
1648
1649 </desc>
1650 <param name="machine" type="IMachine" dir="in"/>
1651 </method>
1652
1653 <method name="getMachine">
1654 <desc>
1655 Attempts to find a virtual machine given its UUID.
1656 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1657 instead.
1658
1659 <result name="VBOX_E_OBJECT_NOT_FOUND">
1660 Could not find registered machine matching @a id.
1661 </result>
1662
1663 </desc>
1664 <param name="id" type="uuid" dir="in"/>
1665 <param name="machine" type="IMachine" dir="return"/>
1666 </method>
1667
1668 <method name="findMachine">
1669 <desc>
1670 Attempts to find a virtual machine given its name.
1671 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1672 instead.
1673
1674 <result name="VBOX_E_OBJECT_NOT_FOUND">
1675 Could not find registered machine matching @a name.
1676 </result>
1677
1678 </desc>
1679 <param name="name" type="wstring" dir="in"/>
1680 <param name="machine" type="IMachine" dir="return"/>
1681 </method>
1682
1683 <method name="unregisterMachine">
1684 <desc>
1685
1686 Unregisters the machine previously registered using
1687 <link to="#registerMachine"/>. After successful method invocation, the
1688 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1689 to all registered callbacks.
1690
1691 <note>
1692 The specified machine must not be in the Saved state, have an open
1693 (or a spawning) direct session associated with it, have snapshots or
1694 have hard disks attached.
1695 </note>
1696
1697 <note>
1698 This method implicitly calls <link to="IMachine::saveSettings"/> to
1699 save all current machine settings before unregistering it.
1700 </note>
1701
1702 <note>
1703 If the given machine is inaccessible (see
1704 <link to="IMachine::accessible"/>), it will be unregistered and
1705 fully uninitialized right afterwards. As a result, the returned
1706 machine object will be unusable and an attempt to call
1707 <b>any</b> method will return the "Object not ready" error.
1708 </note>
1709
1710 <result name="VBOX_E_OBJECT_NOT_FOUND">
1711 Could not find registered machine matching @a id.
1712 </result>
1713 <result name="VBOX_E_INVALID_VM_STATE">
1714 Machine is in Saved state.
1715 </result>
1716 <result name="VBOX_E_INVALID_OBJECT_STATE">
1717 Machine has snapshot or open session or hard disk attached.
1718 </result>
1719
1720 </desc>
1721 <param name="id" type="uuid" dir="in">
1722 <desc>UUID of the machine to unregister.</desc>
1723 </param>
1724 <param name="machine" type="IMachine" dir="return">
1725 <desc>Unregistered machine object.</desc>
1726 </param>
1727 </method>
1728
1729 <method name="createAppliance">
1730 <desc>
1731 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1732 Format (OVF). This can then be used to import an OVF appliance into VirtualBox; see the
1733 documentation for <link to="IAppliance" /> for details.
1734 </desc>
1735 <param name="appliance" type="IAppliance" dir="return">
1736 <desc>New appliance.</desc>
1737 </param>
1738 </method>
1739
1740 <method name="createHardDisk2">
1741 <desc>
1742 Creates a new base hard disk object that will use the given storage
1743 format and location for hard disk data.
1744
1745 Note that the actual storage unit is not created by this method. In
1746 order to do it, and before you are able to attach the created hard disk
1747 to virtual machines, you must call one of the following methods to
1748 allocate a format-specific storage unit at the specified location:
1749 <ul>
1750 <li><link to="IHardDisk2::createDynamicStorage"/></li>
1751 <li><link to="IHardDisk2::createFixedStorage"/></li>
1752 <li><link to="IHardDisk2::createDiffStorage"/></li>
1753 </ul>
1754
1755 Some hard disk attributes, such as <link to="IHardDisk2::id"/>, may
1756 remain uninitialized until the hard disk storage unit is successfully
1757 created by one of the above methods.
1758
1759 After the storage unit is successfully created, the hard disk gets
1760 remembered by this VirtualBox installation and will be accessible
1761 through <link to="#getHardDisk2"/> and <link to="#findHardDisk2"/>
1762 methods. Remembered root (base) hard disks are also returned as part of
1763 the <link to="#hardDisks2"/> array. See IHardDisk2 for more details.
1764
1765 The list of all storage formats supported by this VirtualBox
1766 installation can be obtained using
1767 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1768 attribute is empty or <tt>null</tt> then the default storage format
1769 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1770 be used for creating a storage unit of the hard disk.
1771
1772 Note that the format of the location string is storage format specific.
1773 See <link to="IMedium::location"/>, IHardDisk2 and
1774 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1775
1776 <result name="VBOX_E_OBJECT_NOT_FOUND">
1777 @a format identifier is invalid. See
1778 <link to="ISystemProperties::hardDiskFormats"/>.
1779 </result>
1780 <result name="VBOX_E_FILE_ERROR">
1781 @a location is a not valid file name (for file-based formats only).
1782 </result>
1783 <result name="E_INVALIDARG">
1784 @a format is a null or empty string.
1785 </result>
1786 </desc>
1787 <param name="format" type="wstring" dir="in">
1788 <desc>
1789 Identifier of the storage format to use for the new hard disk.
1790 </desc>
1791 </param>
1792 <param name="location" type="wstring" dir="in">
1793 <desc>
1794 Location of the storage unit for the new hard disk.
1795 </desc>
1796 </param>
1797 <param name="hardDisk" type="IHardDisk2" dir="return">
1798 <desc>Created hard disk object.</desc>
1799 </param>
1800 </method>
1801
1802 <method name="openHardDisk2">
1803 <desc>
1804 Opens a hard disk from an existing location.
1805
1806 After the hard disk is successfully opened by this method, it gets
1807 remembered by (known to) this VirtualBox installation and will be
1808 accessible through <link to="#getHardDisk2"/> and
1809 <link to="#findHardDisk2"/> methods. Remembered root (base) hard disks
1810 are also returned as part of the <link to="#hardDisks2"/> array and can
1811 be attached to virtual machines. See IHardDisk2 for more details.
1812
1813 If a differencing hard disk is to be opened by this method, the
1814 operation will succeed only if its parent hard disk and all ancestors,
1815 if any, are already known to this VirtualBox installation (for example,
1816 were opened by this method before).
1817
1818 This method tries to guess the storage format of the specified hard disk
1819 by reading hard disk data at the specified location.
1820
1821 Note that the format of the location string is storage format specific.
1822 See <link to="IMedium::location"/>, IHardDisk2 and
1823 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1824
1825
1826 <result name="VBOX_E_FILE_ERROR">
1827 Invalid hard disk storage file location.
1828 </result>
1829 <result name="VBOX_E_IPRT_ERROR">
1830 Could not get hard disk storage format.
1831 </result>
1832 <result name="E_INVALIDARG">
1833 Invalid hard disk storage format.
1834 </result>
1835
1836 </desc>
1837 <param name="location" type="wstring" dir="in">
1838 <desc>
1839 Location of the storage unit that contains hard disk data in one of
1840 the supported storage formats.
1841 </desc>
1842 </param>
1843 <param name="hardDisk" type="IHardDisk2" dir="return">
1844 <desc>Opened hard disk object.</desc>
1845 </param>
1846 </method>
1847
1848 <method name="getHardDisk2" const="yes">
1849 <desc>
1850 Returns a hard disk with the given UUID.
1851
1852 The hard disk with the given UUID must be known to this VirtualBox
1853 installation, i.e. it must be previously created by
1854 <link to="#createHardDisk2"/> or opened by <link
1855 to="#openHardDisk2"/>, or attached to some known virtual machine.
1856
1857 <result name="VBOX_E_OBJECT_NOT_FOUND">
1858 No hard disk object matching @a id found.
1859 </result>
1860
1861 </desc>
1862 <param name="id" type="uuid" dir="in">
1863 <desc>UUID of the hard disk to look for.</desc>
1864 </param>
1865 <param name="hardDisk" type="IHardDisk2" dir="return">
1866 <desc>Found hard disk object.</desc>
1867 </param>
1868 </method>
1869
1870 <method name="findHardDisk2">
1871 <desc>
1872 Returns a hard disk that uses the given location to store hard
1873 disk data.
1874
1875 The given hard disk must be known to this VirtualBox installation, i.e.
1876 it must be previously created by
1877 <link to="#createHardDisk2"/> or opened by <link
1878 to="#openHardDisk2"/>, or attached to some known virtual machine.
1879
1880 The search is done by comparing the value of the @a location argument to
1881 the <link to="IHardDisk2::location"/> attribute of each known hard
1882 disk.
1883
1884 For locations represented by file names in the host's file system, the
1885 requested location can be a path relative to the
1886 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1887 only a file name without any path is given, the
1888 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1889 folder</link> will be prepended to the file name before searching. Note
1890 that on case sensitive file systems, a case sensitive comparison is
1891 performed, otherwise the case of symbols in the file path is ignored.
1892
1893 <result name="VBOX_E_OBJECT_NOT_FOUND">
1894 No hard disk object matching @a location found.
1895 </result>
1896
1897 </desc>
1898 <param name="location" type="wstring" dir="in">
1899 <desc>Location string to search for.</desc>
1900 </param>
1901 <param name="hardDisk" type="IHardDisk2" dir="return">
1902 <desc>Found hard disk object.</desc>
1903 </param>
1904 </method>
1905
1906 <method name="openDVDImage">
1907 <desc>
1908 Opens a CD/DVD image contained in the specified file of the supported
1909 format and assigns it the given UUID.
1910
1911 After the image is successfully opened by this method, it gets
1912 remembered by (known to) this VirtualBox installation and will be
1913 accessible through <link to="#getDVDImage"/> and
1914 <link to="#findDVDImage"/> methods. Remembered images are also
1915 returned as part of the <link to="#DVDImages"/> array and can be mounted
1916 to virtual machines. See IMedium for more details.
1917
1918 See <link to="IMedium::location"/> to get more details about the format
1919 of the location string.
1920
1921 <note>
1922 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1923 </note>
1924
1925 <result name="VBOX_E_INVALID_OBJECT_STATE">
1926 CD/DVD image already exists in the media registry.
1927 </result>
1928
1929 </desc>
1930 <param name="location" type="wstring" dir="in">
1931 <desc>
1932 Full path to the file that contains a valid CD/DVD image.
1933 </desc>
1934 </param>
1935 <param name="id" type="uuid" dir="in">
1936 <desc>
1937 UUID to assign to the given image within this VirtualBox installation.
1938 If an empty (null) UUID is specified, the system will randomly
1939 generate a new UUID.
1940 </desc>
1941 </param>
1942 <param name="image" type="IDVDImage2" dir="return">
1943 <desc>Opened CD/DVD image object.</desc>
1944 </param>
1945 </method>
1946
1947 <method name="getDVDImage">
1948 <desc>
1949 Returns a CD/DVD image with the given UUID.
1950
1951 The image with the given UUID must be known to this VirtualBox
1952 installation, i.e. it must be previously opened by <link
1953 to="#openDVDImage"/>, or mounted to some known virtual machine.
1954
1955 <result name="VBOX_E_OBJECT_NOT_FOUND">
1956 No matching DVD image found in the media registry.
1957 </result>
1958
1959 </desc>
1960 <param name="id" type="uuid" dir="in">
1961 <desc>UUID of the image to look for.</desc>
1962 </param>
1963 <param name="image" type="IDVDImage2" dir="return">
1964 <desc>Found CD/DVD image object.</desc>
1965 </param>
1966 </method>
1967
1968 <method name="findDVDImage">
1969 <desc>
1970 Returns a CD/DVD image with the given image location.
1971
1972 The image with the given UUID must be known to this VirtualBox
1973 installation, i.e. it must be previously opened by <link
1974 to="#openDVDImage"/>, or mounted to some known virtual machine.
1975
1976 The search is done by comparing the value of the @a location argument to
1977 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1978
1979 The requested location can be a path relative to the
1980 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1981 only a file name without any path is given, the
1982 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1983 folder</link> will be prepended to the file name before searching. Note
1984 that on case sensitive file systems, a case sensitive comparison is
1985 performed, otherwise the case in the file path is ignored.
1986
1987 <result name="VBOX_E_FILE_ERROR">
1988 Invalid image file location.
1989 </result>
1990 <result name="VBOX_E_OBJECT_NOT_FOUND">
1991 No matching DVD image found in the media registry.
1992 </result>
1993
1994 </desc>
1995 <param name="location" type="wstring" dir="in">
1996 <desc>CD/DVD image file path to look for.</desc>
1997 </param>
1998 <param name="image" type="IDVDImage2" dir="return">
1999 <desc>Found CD/DVD image object.</desc>
2000 </param>
2001 </method>
2002
2003 <method name="openFloppyImage">
2004 <desc>
2005 Opens a floppy image contained in the specified file of the supported
2006 format and assigns it the given UUID.
2007
2008 After the image is successfully opened by this method, it gets
2009 remembered by (known to) this VirtualBox installation and will be
2010 accessible through <link to="#getFloppyImage"/> and
2011 <link to="#findFloppyImage"/> methods. Remembered images are also
2012 returned as part of the <link to="#floppyImages"/> array and can be
2013 mounted to virtual machines. See IMedium for more details.
2014
2015 See <link to="IMedium::location"/> to get more details about the format
2016 of the location string.
2017
2018 <result name="VBOX_E_FILE_ERROR">
2019 Floppy image specified by @a location not accessible.
2020 </result>
2021 <result name="VBOX_E_INVALID_OBJECT_STATE">
2022 Floppy image already exists in the media registry.
2023 </result>
2024
2025 <note>
2026 Currently, only raw floppy images are supported by VirtualBox.
2027 </note>
2028 </desc>
2029 <param name="location" type="wstring" dir="in">
2030 <desc>
2031 Full path to the file that contains a valid floppy image.
2032 </desc>
2033 </param>
2034 <param name="id" type="uuid" dir="in">
2035 <desc>
2036 UUID to assign to the given image file within this VirtualBox
2037 installation. If an empty (null) UUID is specified, the system will
2038 randomly generate a new UUID.
2039 </desc>
2040 </param>
2041 <param name="image" type="IFloppyImage2" dir="return">
2042 <desc>Opened floppy image object.</desc>
2043 </param>
2044 </method>
2045
2046 <method name="getFloppyImage">
2047 <desc>
2048 Returns a floppy image with the given UUID.
2049
2050 The image with the given UUID must be known to this VirtualBox
2051 installation, i.e. it must be previously opened by <link
2052 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2053
2054 <result name="VBOX_E_OBJECT_NOT_FOUND">
2055 No matching floppy image found in the media registry.
2056 </result>
2057
2058 </desc>
2059 <param name="id" type="uuid" dir="in">
2060 <desc>UUID of the image to look for.</desc>
2061 </param>
2062 <param name="image" type="IFloppyImage2" dir="return">
2063 <desc>Found floppy image object.</desc>
2064 </param>
2065 </method>
2066
2067 <method name="findFloppyImage">
2068 <desc>
2069 Returns a floppy image with the given image location.
2070
2071 The image with the given UUID must be known to this VirtualBox
2072 installation, i.e. it must be previously opened by <link
2073 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2074
2075 The search is done by comparing the value of the @a location argument to
2076 the <link to="IMedium::location"/> attribute of each known floppy image.
2077
2078 The requested location can be a path relative to the
2079 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2080 only a file name without any path is given, the
2081 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2082 folder</link> will be prepended to the file name before searching. Note
2083 that on case sensitive file systems, a case sensitive comparison is
2084 performed, otherwise the case of symbols in the file path is ignored.
2085
2086 <result name="VBOX_E_FILE_ERROR">
2087 Invalid image file location.
2088 </result>
2089 <result name="VBOX_E_OBJECT_NOT_FOUND">
2090 No matching floppy image found in the media registry.
2091 </result>
2092
2093 </desc>
2094 <param name="location" type="wstring" dir="in">
2095 <desc>Floppy image file path to look for.</desc>
2096 </param>
2097 <param name="image" type="IFloppyImage2" dir="return">
2098 <desc>Found floppy image object.</desc>
2099 </param>
2100 </method>
2101
2102 <method name="getGuestOSType">
2103 <desc>
2104 Returns an object describing the specified guest OS type.
2105
2106 The requested guest OS type is specified using a string which is a
2107 mnemonic identifier of the guest operating system, such as
2108 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2109 particular virtual machine can be read or set using the
2110 <link to="IMachine::OSTypeId"/> attribute.
2111
2112 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2113 available guest OS type objects. Each object has an
2114 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2115 the guest OS this object describes.
2116
2117 <result name="E_INVALIDARG">
2118 @a id is not a valid Guest OS type.
2119 </result>
2120
2121 </desc>
2122 <param name="id" type="wstring" dir="in">
2123 <desc>Guest OS type ID string.</desc>
2124 </param>
2125 <param name="type" type="IGuestOSType" dir="return">
2126 <desc>Guest OS type object.</desc>
2127 </param>
2128 </method>
2129
2130 <method name="createSharedFolder">
2131 <desc>
2132 Creates a new global shared folder by associating the given logical
2133 name with the given host path, adds it to the collection of shared
2134 folders and starts sharing it. Refer to the description of
2135 <link to="ISharedFolder"/> to read more about logical names.
2136 <note>
2137 In the current implementation, this operation is not
2138 implemented.
2139 </note>
2140 </desc>
2141 <param name="name" type="wstring" dir="in">
2142 <desc>Unique logical name of the shared folder.</desc>
2143 </param>
2144 <param name="hostPath" type="wstring" dir="in">
2145 <desc>Full path to the shared folder in the host file system.</desc>
2146 </param>
2147 <param name="writable" type="boolean" dir="in">
2148 <desc>Whether the share is writable or readonly</desc>
2149 </param>
2150 </method>
2151
2152 <method name="removeSharedFolder">
2153 <desc>
2154 Removes the global shared folder with the given name previously
2155 created by <link to="#createSharedFolder"/> from the collection of
2156 shared folders and stops sharing it.
2157 <note>
2158 In the current implementation, this operation is not
2159 implemented.
2160 </note>
2161 </desc>
2162 <param name="name" type="wstring" dir="in">
2163 <desc>Logical name of the shared folder to remove.</desc>
2164 </param>
2165 </method>
2166
2167 <method name="getNextExtraDataKey">
2168 <desc>
2169 Returns the global extra data key name following the supplied key.
2170
2171 An error is returned if the supplied @a key does not exist. @c NULL is
2172 returned in @a nextKey if the supplied key is the last key. When
2173 supplying @c NULL for the @a key, the first key item is returned in @a
2174 nextKey (if there is any). @a nextValue is an optional parameter and
2175 if supplied, the next key's value is returned in it.
2176
2177 <result name="VBOX_E_OBJECT_NOT_FOUND">
2178 Extra data @a key not found.
2179 </result>
2180
2181 </desc>
2182 <param name="key" type="wstring" dir="in">
2183 <desc>Name of the data key to follow.</desc>
2184 </param>
2185 <param name="nextKey" type="wstring" dir="out">
2186 <desc>Name of the next data key.</desc>
2187 </param>
2188 <param name="nextValue" type="wstring" dir="out">
2189 <desc>Value of the next data key.</desc>
2190 </param>
2191 </method>
2192
2193 <method name="getExtraData">
2194 <desc>
2195 Returns associated global extra data.
2196
2197 If the requested data @a key does not exist, this function will
2198 succeed and return @c NULL in the @a value argument.
2199
2200 <result name="VBOX_E_FILE_ERROR">
2201 Settings file not accessible.
2202 </result>
2203 <result name="VBOX_E_XML_ERROR">
2204 Could not parse the settings file.
2205 </result>
2206
2207 </desc>
2208 <param name="key" type="wstring" dir="in">
2209 <desc>Name of the data key to get.</desc>
2210 </param>
2211 <param name="value" type="wstring" dir="return">
2212 <desc>Value of the requested data key.</desc>
2213 </param>
2214 </method>
2215
2216 <method name="setExtraData">
2217 <desc>
2218 Sets associated global extra data.
2219
2220 If you pass @c NULL as a key @a value, the given @a key will be
2221 deleted.
2222
2223 <note>
2224 Before performing the actual data change, this method will ask all
2225 registered callbacks using the
2226 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2227 notification for a permission. If one of the callbacks refuses the
2228 new value, the change will not be performed.
2229 </note>
2230 <note>
2231 On success, the
2232 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2233 is called to inform all registered callbacks about a successful data
2234 change.
2235 </note>
2236
2237 <result name="VBOX_E_FILE_ERROR">
2238 Settings file not accessible.
2239 </result>
2240 <result name="VBOX_E_XML_ERROR">
2241 Could not parse the settings file.
2242 </result>
2243 <result name="E_ACCESSDENIED">
2244 Modification request refused.
2245 </result>
2246
2247 </desc>
2248 <param name="key" type="wstring" dir="in">
2249 <desc>Name of the data key to set.</desc>
2250 </param>
2251 <param name="value" type="wstring" dir="in">
2252 <desc>Value to assign to the key.</desc>
2253 </param>
2254 </method>
2255
2256 <method name="openSession">
2257 <desc>
2258 Opens a new direct session with the given virtual machine.
2259
2260 A direct session acts as a local lock on the given VM.
2261 There can be only one direct session open at a time for every
2262 virtual machine, protecting the VM from being manipulated by
2263 conflicting actions from different processes. Only after a
2264 direct session has been opened, one can change all VM settings
2265 and execute the VM in the process space of the session object.
2266
2267 Sessions therefore can be compared to mutex semaphores that
2268 lock a given VM for modification and execution.
2269 See <link to="ISession">ISession</link> for details.
2270
2271 <note>Unless you are writing a new VM frontend, you will not
2272 want to execute a VM in the current process. To spawn a new
2273 process that executes a VM, use
2274 <link to="IVirtualBox::openRemoteSession" />
2275 instead.</note>
2276
2277 Upon successful return, the session object can be used to
2278 get access to the machine and to the VM console.
2279
2280 In VirtualBox terminology, the machine becomes "mutable" after
2281 a session has been opened. Note that the "mutable" machine
2282 object, on which you may invoke IMachine methods to change its
2283 settings, will be a different object from the immutable IMachine
2284 objects returned by various IVirtualBox methods. To obtain a
2285 mutable IMachine object (upon which you can invoke settings methods),
2286 use the <link to="ISession::machine" /> attribute.
2287
2288 One must always call <link to="ISession::close" /> to release the
2289 lock on the machine, or the machine's state will eventually be
2290 set to "Aborted".
2291
2292 In other words, to change settings on a machine, the following
2293 sequence is typically performed:
2294
2295 <ol>
2296 <li>Call this method (openSession) to have a machine locked for
2297 the current session.</li>
2298
2299 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2300
2301 <li>Change the settings of the machine.</li>
2302
2303 <li>Call <link to="IMachine::saveSettings" />.</li>
2304
2305 <li>Close the session by calling <link to="ISession::close"/>.</li>
2306 </ol>
2307
2308 <result name="E_UNEXPECTED">
2309 Virtual machine not registered.
2310 </result>
2311 <result name="E_ACCESSDENIED">
2312 Process not started by OpenRemoteSession.
2313 </result>
2314 <result name="VBOX_E_OBJECT_NOT_FOUND">
2315 No matching virtual machine found.
2316 </result>
2317 <result name="VBOX_E_INVALID_OBJECT_STATE">
2318 Session already open or being opened.
2319 </result>
2320 <result name="VBOX_E_VM_ERROR">
2321 Failed to assign machine to session.
2322 </result>
2323
2324 </desc>
2325 <param name="session" type="ISession" dir="in">
2326 <desc>
2327 Session object that will represent the opened session after
2328 successful method invocation. This object must not represent
2329 the already open session.
2330 <note>
2331 This session will be automatically closed if the
2332 VirtualBox server is terminated for some reason.
2333 </note>
2334 </desc>
2335 </param>
2336 <param name="machineId" type="uuid" dir="in">
2337 <desc>ID of the virtual machine to open a session with.</desc>
2338 </param>
2339 </method>
2340
2341 <method name="openRemoteSession">
2342 <desc>
2343 Spawns a new process that executes a virtual machine (called a
2344 "remote session").
2345
2346 Opening a remote session causes the VirtualBox server to start a new
2347 process that opens a direct session with the given VM. As a result, the
2348 VM is locked by that direct session in the new process, preventing
2349 conflicting changes from other processes. Since sessions act as locks
2350 that prevent conflicting changes, one cannot open a remote session
2351 for a VM that already has another open session (direct or remote), or
2352 is currently in the process of opening one (see <link
2353 to="IMachine::sessionState"/>).
2354
2355 While the remote session still provides some level of control over the
2356 VM execution to the caller (using the <link to="IConsole" /> interface),
2357 not all VM settings are available for modification within the remote
2358 session context.
2359
2360 This operation can take some time (a new VM is started in a new process,
2361 for which memory and other resources need to be set up). Because of this,
2362 an <link to="IProgress" /> is returned to allow the caller to wait for this
2363 asynchronous operation to be completed. Until then, the remote session
2364 object remains in the closed state, and accessing the machine or its
2365 console through it is invalid. It is recommended to use
2366 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2367 completion.
2368
2369 As with all <link to="ISession" /> objects, it is recommended to call
2370 <link to="ISession::close" /> on the local session object once openRemoteSession()
2371 has been called. However, the session's state (see <link to="ISession::state" />)
2372 will not return to "Closed" until the remote session has also closed (i.e.
2373 until the VM is no longer running). In that case, however, the state of
2374 the session will automatically change back to "Closed".
2375
2376 Currently supported session types (values of the @a type
2377 argument) are:
2378 <ul>
2379 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2380 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2381 </ul>
2382
2383 The @a environment argument is a string containing definitions of
2384 environment variables in the following format:
2385 @code
2386 NAME[=VALUE]\n
2387 NAME[=VALUE]\n
2388 ...
2389 @endcode
2390 where <tt>\\n</tt> is the new line character. These environment
2391 variables will be appended to the environment of the VirtualBox server
2392 process. If an environment variable exists both in the server process
2393 and in this list, the value from this list takes precedence over the
2394 server's variable. If the value of the environment variable is
2395 omitted, this variable will be removed from the resulting environment.
2396 If the environment string is @c null, the server environment is
2397 inherited by the started process as is.
2398
2399 <see>openExistingSession</see>
2400
2401 <result name="E_UNEXPECTED">
2402 Virtual machine not registered.
2403 </result>
2404 <result name="E_INVALIDARG">
2405 Invalid session type @a type.
2406 </result>
2407 <result name="VBOX_E_OBJECT_NOT_FOUND">
2408 No machine matching @a machineId found.
2409 </result>
2410 <result name="VBOX_E_INVALID_OBJECT_STATE">
2411 Session already open or being opened.
2412 </result>
2413 <result name="VBOX_E_IPRT_ERROR">
2414 Launching process for machine failed.
2415 </result>
2416 <result name="VBOX_E_VM_ERROR">
2417 Failed to assign machine to session.
2418 </result>
2419
2420 </desc>
2421 <param name="session" type="ISession" dir="in">
2422 <desc>
2423 Session object that will represent the opened remote session
2424 after successful method invocation (this object must not
2425 represent an already open session).
2426 </desc>
2427 </param>
2428 <param name="machineId" type="uuid" dir="in">
2429 <desc>ID of the virtual machine to open a session with.</desc>
2430 </param>
2431 <param name="type" type="wstring" dir="in">
2432 <desc>
2433 Type of the remote session (case sensitive).
2434 </desc>
2435 </param>
2436 <param name="environment" type="wstring" dir="in">
2437 <desc>
2438 Environment to pass to the opened session (may be @c null).
2439 </desc>
2440 </param>
2441 <param name="progress" type="IProgress" dir="return">
2442 <desc>Progress object to track the operation completion.</desc>
2443 </param>
2444 </method>
2445
2446 <method name="openExistingSession">
2447 <desc>
2448 Opens a new remote session with the virtual machine for
2449 which a direct session is already open.
2450
2451 The remote session provides some level of control over the VM
2452 execution (using the IConsole interface) to the caller; however,
2453 within the remote session context, not all VM settings are available
2454 for modification.
2455
2456 As opposed to <link to="#openRemoteSession"/>, the number of
2457 remote sessions opened this way is not limited by the API
2458
2459 <note>
2460 It is an error to open a remote session with the machine that
2461 doesn't have an open direct session.
2462 </note>
2463
2464 <result name="E_UNEXPECTED">
2465 Virtual machine not registered.
2466 </result>
2467 <result name="VBOX_E_OBJECT_NOT_FOUND">
2468 No machine matching @a machineId found.
2469 </result>
2470 <result name="VBOX_E_INVALID_OBJECT_STATE">
2471 Session already open or being opened.
2472 </result>
2473 <result name="VBOX_E_INVALID_SESSION_STATE">
2474 Direct session state not Open.
2475 </result>
2476 <result name="VBOX_E_VM_ERROR">
2477 Failed to get console object from direct session or assign
2478 machine to session.
2479 </result>
2480
2481 <see>openRemoteSession</see>
2482 </desc>
2483 <param name="session" type="ISession" dir="in">
2484 <desc>
2485 Session object that will represent the open remote session
2486 after successful method invocation. This object must not
2487 represent an already open session.
2488 <note>
2489 This session will be automatically closed when the peer
2490 (direct) session dies or gets closed.
2491 </note>
2492 </desc>
2493 </param>
2494 <param name="machineId" type="uuid" dir="in">
2495 <desc>ID of the virtual machine to open a session with.</desc>
2496 </param>
2497 </method>
2498
2499 <method name="registerCallback">
2500 <desc>
2501 Registers a new global VirtualBox callback. The methods of the given
2502 callback object will be called by VirtualBox when an appropriate
2503 event occurs.
2504
2505 <result name="E_INVALIDARG">
2506 A @c NULL callback cannot be registered.
2507 </result>
2508
2509 </desc>
2510 <param name="callback" type="IVirtualBoxCallback" dir="in">
2511 <desc>Callback object to register.</desc>
2512 </param>
2513 </method>
2514
2515 <method name="unregisterCallback">
2516 <desc>
2517 Unregisters the previously registered global VirtualBox callback.
2518
2519 <result name="E_INVALIDARG">
2520 Specified @a callback not registered.
2521 </result>
2522
2523 </desc>
2524 <param name="callback" type="IVirtualBoxCallback" dir="in">
2525 <desc>Callback object to unregister.</desc>
2526 </param>
2527 </method>
2528
2529 <method name="waitForPropertyChange">
2530 <desc>
2531 Blocks the caller until any of the properties represented by the @a
2532 what argument changes the value or until the given timeout interval
2533 expires.
2534
2535 The @a what argument is a comma separated list of property masks that
2536 describe properties the caller is interested in. The property mask is
2537 a string in the following format:
2538
2539 <pre>
2540 [[group.]subgroup.]name
2541 </pre>
2542
2543 where @c name is the property name and @c group, @c subgroup are zero
2544 or more property group specifiers. Each element (group or name) in
2545 the property mask may be either a Latin string or an asterisk symbol
2546 (@c "*") which is used to match any string for the given element. A
2547 property mask that doesn't contain asterisk symbols represents a
2548 single fully qualified property name.
2549
2550 Groups in the fully qualified property name go from more generic (the
2551 left-most part) to more specific (the right-most part). The first
2552 element is usually a name of the object the property belongs to. The
2553 second element may be either a property name, or a child object name,
2554 or an index if the preceding element names an object which is one of
2555 many objects of the same type. This way, property names form a
2556 hierarchy of properties. Here are some examples of property names:
2557
2558 <table>
2559 <tr>
2560 <td><tt>VirtualBox.version</tt></td>
2561 <td><link to="IVirtualBox::version"/> property</td>
2562 </tr>
2563 <tr>
2564 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2565 <td><link to="IMachine::name"/> property of the machine with the
2566 given UUID</td>
2567 </tr>
2568 </table>
2569
2570 Most property names directly correspond to the properties of objects
2571 (components) provided by the VirtualBox library and may be used to
2572 track changes to these properties. However, there may be
2573 pseudo-property names that don't correspond to any existing object's
2574 property directly, as well as there may be object properties that
2575 don't have a corresponding property name that is understood by this
2576 method, and therefore changes to such properties cannot be
2577 tracked. See individual object's property descriptions to get a
2578 fully qualified property name that can be used with this method (if
2579 any).
2580
2581 There is a special property mask @c "*" (i.e. a string consisting of a
2582 single asterisk symbol) that can be used to match all properties.
2583 Below are more examples of property masks:
2584
2585 <table>
2586 <tr>
2587 <td><tt>VirtualBox.*</tt></td>
2588 <td>Track all properties of the VirtualBox object</td>
2589 </tr>
2590 <tr>
2591 <td><tt>Machine.*.name</tt></td>
2592 <td>Track changes to the <link to="IMachine::name"/> property of
2593 all registered virtual machines</td>
2594 </tr>
2595 </table>
2596
2597 <note>
2598 This function is not implemented in the current version of the
2599 product.
2600 </note>
2601 </desc>
2602 <param name="what" type="wstring" dir="in">
2603 <desc>Comma separated list of property masks.</desc>
2604 </param>
2605 <param name="timeout" type="unsigned long" dir="in">
2606 <desc>
2607 Wait timeout in milliseconds.
2608 Specify -1 for an indefinite wait.
2609 </desc>
2610 </param>
2611 <param name="changed" type="wstring" dir="out">
2612 <desc>
2613 Comma separated list of properties that have been changed and caused
2614 this method to return to the caller.
2615 </desc>
2616 </param>
2617 <param name="values" type="wstring" dir="out">
2618 <desc>Reserved, not currently used.</desc>
2619 </param>
2620 </method>
2621
2622 <method name="saveSettings">
2623 <desc>
2624 Saves the global settings to the global settings file
2625 (<link to="#settingsFilePath"/>).
2626
2627 This method is only useful for explicitly saving the global settings
2628 file after it has been auto-converted from the old format to the most
2629 recent format (see <link to="#settingsFileVersion"/> for details).
2630 Normally, the global settings file is implicitly saved when a global
2631 setting is changed.
2632
2633 <result name="VBOX_E_FILE_ERROR">
2634 Settings file not accessible.
2635 </result>
2636 <result name="VBOX_E_XML_ERROR">
2637 Could not parse the settings file.
2638 </result>
2639
2640 </desc>
2641 </method>
2642
2643 <method name="saveSettingsWithBackup">
2644 <desc>
2645 Creates a backup copy of the global settings file
2646 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2647 calls <link to="#saveSettings"/>.
2648
2649 Note that the backup copy is created <b>only</b> if the settings file
2650 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2651 details). Otherwise, this call is fully equivalent to
2652 <link to="#saveSettings"/> and no backup copying is done.
2653
2654 The backup copy is created in the same directory where the original
2655 settings file is located. It is given the following file name:
2656 <pre>
2657 original.xml.x.y-platform.bak
2658 </pre>
2659 where <tt>original.xml</tt> is the original settings file name
2660 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2661 format of the settings file (before auto-conversion).
2662
2663 If the given backup file already exists, this method will try to add the
2664 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2665 0 to 9) and copy it again until it succeeds. If all suffixes are
2666 occupied, or if any other copy error occurs, this method will return a
2667 failure.
2668
2669 If the copy operation succeeds, the @a bakFileName return argument will
2670 receive a full path to the created backup file (for informational
2671 purposes). Note that this will happen even if the subsequent
2672 <link to="#saveSettings"/> call performed by this method after the
2673 copy operation, fails.
2674
2675 <note>
2676 The VirtualBox API never calls this method. It is intended purely for
2677 the purposes of creating backup copies of the settings files by
2678 front-ends before saving the results of the automatically performed
2679 settings conversion to disk.
2680 </note>
2681
2682 <see>settingsFileVersion</see>
2683
2684 <result name="VBOX_E_FILE_ERROR">
2685 Settings file not accessible.
2686 </result>
2687 <result name="VBOX_E_XML_ERROR">
2688 Could not parse the settings file.
2689 </result>
2690 <result name="VBOX_E_IPRT_ERROR">
2691 Could not copy the settings file.
2692 </result>
2693
2694 </desc>
2695 <param name="bakFileName" type="wstring" dir="return">
2696 <desc>Full path to the created backup copy.</desc>
2697 </param>
2698 </method>
2699
2700 </interface>
2701
2702 <!--
2703 // IAppliance
2704 /////////////////////////////////////////////////////////////////////////
2705 -->
2706
2707 <enum
2708 name="CIMOSType"
2709 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2710 >
2711 <desc>
2712 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2713 </desc>
2714
2715 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2716 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2717 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2718 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2719 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2720 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2721 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2722 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2723 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2724 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2725 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2726 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2727 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2728 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2729 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2730 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2731 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2732 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2733 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2734 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2735 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2736 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2737 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2738 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2739 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2740 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2741 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2742 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2743 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2744 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2745 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2746 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2747 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2748 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2749 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2750 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2751 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2752 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2753 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2754 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2755 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2756 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2757 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2758 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2759 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2760 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2761 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2762 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2763 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2764 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2765 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2766 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2767 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2768 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2769 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2770 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2771 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2772 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2773 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2774 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2775 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2776 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2777 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2778 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2779 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2780 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2781 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2782 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2783 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2784 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2785 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2786 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2787 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2788 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2789 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2790 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2791 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2792 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2793 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2794 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2795 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2796 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2797 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2798 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2799 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2800 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2801 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2802 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2803 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2804 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2805 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2806 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2807 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2808 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2809 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2810 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2811 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2812 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2813 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2814 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2815 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2816 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2817 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2818 </enum>
2819
2820 <enum
2821 name="OVFResourceType"
2822 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2823 >
2824 <desc>
2825 OVF resource type.
2826 </desc>
2827
2828 <const name="Other" value="1" />
2829 <const name="ComputerSystem" value="2" />
2830 <const name="Processor" value="3" />
2831 <const name="Memory" value="4" />
2832 <const name="IdeController" value="5" />
2833 <const name="ParallelScsiHba" value="6" />
2834 <const name="FcHba" value="7" />
2835 <const name="iScsiHba" value="8" />
2836 <const name="IbHca" value="9" />
2837 <const name="EthernetAdapter" value="10" />
2838 <const name="OtherNetworkAdapter" value="11" />
2839 <const name="IoSlot" value="12" />
2840 <const name="IoDevice" value="13" />
2841 <const name="FloppyDrive" value="14" />
2842 <const name="CdDrive" value="15" />
2843 <const name="DvdDrive" value="16" />
2844 <const name="HardDisk" value="17" />
2845 <const name="UsbController" value="23" />
2846 <const name="SoundCard" value="35" />
2847 </enum>
2848
2849 <interface
2850 name="IAppliance" extends="$unknown"
2851 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2852 wsmap="managed"
2853 >
2854 <desc>
2855 Represents an appliance in OVF format. An instance of this is returned by
2856 <link to="IVirtualBox::createAppliance" />.
2857
2858 Importing an OVF appliance into VirtualBox involves the following sequence
2859 of API calls:
2860
2861 <ol>
2862 <li>
2863 Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2864 </li>
2865
2866 <li>
2867 On the new object, call <link to="#read" /> with the full path of the OVF file you
2868 would like to import. So long as this file is syntactically valid, this will succeed
2869 and return an instance of IAppliance that contains the parsed data from the OVF file.
2870 </li>
2871
2872 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2873 contents of the IAppliance attributes accordingly. These can be inspected by a
2874 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2875 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2876 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2877 systems in the OVF, which in turn describe the virtual hardware prescribed
2878 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2879 The GUI can then give the user the option to confirm and/or change these suggestions.
2880 </li>
2881
2882 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for
2883 each virtual system to override the suggestions made by VirtualBox.
2884 </li>
2885
2886 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2887 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2888 virtual system descriptions.
2889 </li>
2890 </ol>
2891
2892 </desc>
2893
2894 <attribute name="path" type="wstring" readonly="yes">
2895 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2896 the <tt>.ova</tt> file passed to <link to="IAppliance::read" />.</desc>
2897 </attribute>
2898
2899 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2900 <desc>
2901 Array of virtual disk definitions. One such description exists for each
2902 disk definition in the OVF; each string array item represents one such piece of
2903 disk information, with the information fields separated by tab (\t) characters.
2904
2905 The caller should be prepared for additional fields being appended to
2906 this string in future versions of VirtualBox and therefore check for
2907 the number of tabs in the strings returned.
2908
2909 In the current version, the following eight fields are returned per string
2910 in the array:
2911
2912 <ol>
2913 <li>Disk ID (unique string identifier given to disk)</li>
2914 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2915 <li>Populated size (optional unsigned integer indicating the current size of the
2916 disk; can be approximate; -1 if unspecified)</li>
2917 <li>Format (string identifying the disk format, typically
2918 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2919 <li>Reference (where to find the disk image, typically a file name; if empty,
2920 then the disk should be created on import)</li>
2921 <li>Image size (optional unsigned integer indicating the size of the image,
2922 which need not necessarily be the same as the values specified above, since
2923 the image may be compressed or sparse; -1 if not specified)</li>
2924 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2925 presently unsupported and always -1)</li>
2926 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2927 </ol>
2928 </desc>
2929 </attribute>
2930
2931 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2932 <desc>
2933 Array of virtual system descriptions. One such description is created
2934 for each virtual system found in the OVF. The array is empty until after <link to="#interpret" />
2935 has been called.
2936 </desc>
2937 </attribute>
2938
2939 <method name="read">
2940 <desc>
2941 Reads an OVF file into the appliance object.
2942
2943 The OVF standard suggests two different file formats:
2944
2945 <ol>
2946 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2947 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2948 this descriptor file references other files, as OVF appliances distributed as a set of
2949 files most likely do, those files must be in the same directory as the descriptor file.</li>
2950
2951 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2952 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2953 files and optionally other files. This variant is not yet supported by VirtualBox;
2954 support will be added in a later version.</li>
2955 </ol>
2956
2957 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2958 mere fact that this method returns successfully does not mean that VirtualBox supports all
2959 features requested by the appliance; this can be examined after a call to <link to="#interpret" />.
2960 </desc>
2961 <param name="file" type="wstring" dir="in">
2962 <desc>
2963 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2964 on whether the appliance is distributed as a set of files or as a single file, respectively).
2965 </desc>
2966 </param>
2967 </method>
2968
2969 <method name="interpret">
2970 <desc>
2971 Interprets the OVF data that was read when the appliance was constructed. After
2972 calling this method, one can inspect the
2973 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2974 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2975 the appliance.
2976
2977 Calling this method is the second step of importing an appliance into VirtualBox;
2978 see <link to="IAppliance" /> for an overview.
2979 </desc>
2980 </method>
2981
2982 <method name="importMachines">
2983 <desc>
2984 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2985 and other interfaces that match the information contained in the appliance as
2986 closely as possible, as represented by the import instructions in the
2987 <link to="#virtualSystemDescriptions" /> array.
2988
2989 Calling this method is the final step of importing an appliance into VirtualBox;
2990 see <link to="IAppliance" /> for an overview.
2991
2992 Since importing the appliance may imply copying disk images, which can take a long
2993 time, this method operates asynchronously and returns an IProgress object to allow
2994 the caller to monitor the progress.
2995 </desc>
2996
2997 <param name="aProgress" type="IProgress" dir="return">
2998 <desc></desc>
2999 </param>
3000 </method>
3001
3002 </interface>
3003
3004 <enum
3005 name="VirtualSystemDescriptionType"
3006 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3007 >
3008 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3009 a configuration value.</desc>
3010
3011 <const name="Ignore" value="1" />
3012 <const name="Name" value="2" />
3013 <const name="OS" value="3" />
3014 <const name="CPU" value="4" />
3015 <const name="Memory" value="5" />
3016 <const name="HardDiskControllerIDE" value="6" />
3017 <const name="HardDiskControllerSATA" value="7" />
3018 <const name="HardDiskControllerSCSI" value="8" />
3019 <const name="HardDiskImage" value="9" />
3020 <const name="CDROM" value="10" />
3021 <const name="Floppy" value="11" />
3022 <const name="LogicalNetwork" value="12" />
3023 <const name="NetworkAdapter" value="13" />
3024 <const name="USBController" value="14" />
3025 <const name="SoundCard" value="15" />
3026
3027 </enum>
3028
3029 <interface
3030 name="IVirtualSystemDescription" extends="$unknown"
3031 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3032 wsmap="managed"
3033 >
3034
3035 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3036 After <link to="IAppliance::interpret" /> has been called, that array contains
3037 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3038 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3039 into VirtualBox.
3040 </desc>
3041
3042 <attribute name="count" type="unsigned long" readonly="yes">
3043 <desc>Return the number of virtual system description entries.</desc>
3044 </attribute>
3045
3046 <method name="getDescription">
3047 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3048 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3049
3050 The list below identifies the value sets that are possible depending on the
3051 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3052 the array item with the same index in aOrigValue[] will contain the original value as contained
3053 in the OVF file (just for informational purposes), and the corresponding item in aConfigValues[]
3054 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3055 the aExtraConfigValues[] array item may also be used.
3056
3057 <ul>
3058 <li>
3059 "OS": the guest operating system type. There must be exactly one such array item on import. The
3060 corresponding item in aConfigValues[] contains the suggested guest operating system for VirtualBox.
3061 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3062 item in aOrigValues[] will contain a numerical value that described the operating system in the OVF
3063 (see <link to="CIMOSType" />).
3064 </li>
3065 <li>
3066 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3067 if none is present on import, then an automatic name will be created from the operating system
3068 type. The correponding item im aOrigValues[] will contain the suggested virtual machine name
3069 from the OVF file, and aConfigValues[] will contain a suggestion for a unique VirtualBox
3070 <link to="IMachine" /> name that does not exist yet.
3071 </li>
3072 <li>
3073 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3074 </li>
3075 <li>
3076 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3077 is present on import, then VirtualBox will set a meaningful default based on the operating system
3078 type.
3079 </li>
3080 <li>
3081 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3082 has no value in aOrigValues[] or aConfigValues[].
3083 The matching item in the aRefs[] array will contain an integer that other items of the "Harddisk"
3084 type can use to specify which hard disk controller a virtual disk should be connected to.
3085 </li>
3086 <li>
3087 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3088 has no value in aOrigValues[] or aConfigValues[].
3089 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3090 </li>
3091 <li>
3092 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3093 The items in aOrigValues[] and aConfigValues[] will either be "LsiLogic" or "BusLogic".
3094 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3095 </li>
3096 <li>
3097 "Harddisk": a virtual hard disk, most probably as a reference to an image file. There can be an
3098 arbitrary number of these items, one for each virtual disk image that accompanies the OVF. The
3099 array item in aOrigValues[] will contain the file specification from the OVF file, whereas the item
3100 in aConfigValues[] will contain a qualified path specification where the hard disk image should
3101 be copied to; this target image will then be registered with VirtualBox.
3102 The matching item in the aExtraConfigValues[] array must contain a string of the "controller=&lt;ctrl&gt;"
3103 format, where &lt;ctrl&gt; must be an integer specifying the hard disk controller to connect the image to.
3104 That number must be the index of an array item with one of the hard disk controller types
3105 (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3106 </li>
3107 <li>
3108 "LogicalNetwork": a logical network to which virtual machines can connect. This is taken from
3109 the Network section in the OVF that is shared between several virtual systems. OVF has no
3110 formal description of how the network shall be set up (e.g. whether to use NAT or host interface
3111 networking), but OVFs typically name the logical networks "nat" or "bridged" to suggest such
3112 a configuration.
3113 </li>
3114 <li>
3115 "NetworkAdapter": a network adapter. The array item in aConfigValues[] will specify the hardware
3116 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3117 of the "network=&lt;nw&gt;" format, where &lt;nw&gt; must be one of the networks as specified with the
3118 LogicalNetwork type.
3119 </li>
3120 <li>
3121 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3122 present, sound support will be enabled for the new virtual machine. Note that the virtual
3123 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3124 may be different from the virtual soundcard expected by the appliance.
3125 </li>
3126 </ul>
3127
3128 </desc>
3129
3130 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3131 <desc></desc>
3132 </param>
3133
3134 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3135 <desc></desc>
3136 </param>
3137
3138 <param name="aOrigValues" type="wstring" dir="out" safearray="yes">
3139 <desc></desc>
3140 </param>
3141
3142 <param name="aConfigValues" type="wstring" dir="out" safearray="yes">
3143 <desc></desc>
3144 </param>
3145
3146 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3147 <desc></desc>
3148 </param>
3149
3150 </method>
3151
3152 <method name="setFinalValues">
3153 <desc>
3154 This method allows the appliance's user to change the configuration for the virtual
3155 system descriptions. For each array item returned from <link to="getDescription" />,
3156 you must pass in one boolean value and one configuration value.
3157
3158 Each item in the boolean array determines whether the particular configuration item
3159 should be enabled.
3160 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3161 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3162 and SoundCard.
3163
3164 For the configuration and "extra" configuration values, if you pass in the same arrays
3165 as returned in the aConfigValues and aExtraConfigValues arrays from getDescription(),
3166 the configuration remains unchanged. Please see the documentation for getDescription()
3167 for valid configuration values for the individual array item types. If the
3168 corresponding item in the aEnabled array is false, the configuration value is ignored.
3169 </desc>
3170
3171 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3172 <desc></desc>
3173 </param>
3174
3175 <param name="aConfigValues" type="wstring" dir="in" safearray="yes">
3176 <desc></desc>
3177 </param>
3178
3179 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3180 <desc></desc>
3181 </param>
3182 </method>
3183
3184 <method name="getWarnings">
3185 <desc>Returns textual warnings which occurs on the virtual system
3186 interpretion.</desc>
3187
3188 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3189 <desc></desc>
3190 </param>
3191 </method>
3192
3193 </interface>
3194
3195
3196 <!--
3197 // IMachine
3198 /////////////////////////////////////////////////////////////////////////
3199 -->
3200
3201 <enumerator
3202 name="IMachineEnumerator" type="IMachine"
3203 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
3204 />
3205
3206 <collection
3207 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
3208 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
3209 readonly="yes"
3210 />
3211
3212 <interface
3213 name="IInternalMachineControl" extends="$unknown"
3214 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3215 internal="yes"
3216 wsmap="suppress"
3217 >
3218 <method name="updateState">
3219 <desc>
3220 Updates the VM state.
3221 <note>
3222 This operation will also update the settings file with
3223 the correct information about the saved state file
3224 and delete this file from disk when appropriate.
3225 </note>
3226 </desc>
3227 <param name="state" type="MachineState" dir="in"/>
3228 </method>
3229
3230 <method name="getIPCId">
3231 <param name="id" type="wstring" dir="return"/>
3232 </method>
3233
3234 <method name="runUSBDeviceFilters">
3235 <desc>
3236 Asks the server to run USB devices filters of the associated
3237 machine against the given USB device and tell if there is
3238 a match.
3239 <note>
3240 Intended to be used only for remote USB devices. Local
3241 ones don't require to call this method (this is done
3242 implicitly by the Host and USBProxyService).
3243 </note>
3244 </desc>
3245 <param name="device" type="IUSBDevice" dir="in"/>
3246 <param name="matched" type="boolean" dir="out"/>
3247 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3248 </method>
3249
3250 <method name="captureUSBDevice">
3251 <desc>
3252 Requests a capture of the given host USB device.
3253 When the request is completed, the VM process will
3254 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3255 notification.
3256 </desc>
3257 <param name="id" type="uuid" dir="in"/>
3258 </method>
3259
3260 <method name="detachUSBDevice">
3261 <desc>
3262 Notification that a VM is going to detach (done = false) or has
3263 already detached (done = true) the given USB device.
3264 When the done = true request is completed, the VM process will
3265 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3266 notification.
3267 <note>
3268 In the done = true case, the server must run its own filters
3269 and filters of all VMs but this one on the detached device
3270 as if it were just attached to the host computer.
3271 </note>
3272 </desc>
3273 <param name="id" type="uuid" dir="in"/>
3274 <param name="done" type="boolean" dir="in"/>
3275 </method>
3276
3277 <method name="autoCaptureUSBDevices">
3278 <desc>
3279 Requests a capture all matching USB devices attached to the host.
3280 When the request is completed, the VM process will
3281 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3282 notification per every captured device.
3283 </desc>
3284 </method>
3285
3286 <method name="detachAllUSBDevices">
3287 <desc>
3288 Notification that a VM that is being powered down. The done
3289 parameter indicates whether which stage of the power down
3290 we're at. When done = false the VM is announcing its
3291 intentions, while when done = true the VM is reporting
3292 what it has done.
3293 <note>
3294 In the done = true case, the server must run its own filters
3295 and filters of all VMs but this one on all detach devices as
3296 if they were just attached to the host computer.
3297 </note>
3298 </desc>
3299 <param name="done" type="boolean" dir="in"/>
3300 </method>
3301
3302 <method name="onSessionEnd">
3303 <desc>
3304 Triggered by the given session object when the session is about
3305 to close normally.
3306 </desc>
3307 <param name="session" type="ISession" dir="in">
3308 <desc>Session that is being closed</desc>
3309 </param>
3310 <param name="progress" type="IProgress" dir="return">
3311 <desc>
3312 Used to wait until the corresponding machine is actually
3313 dissociated from the given session on the server.
3314 Returned only when this session is a direct one.
3315 </desc>
3316 </param>
3317 </method>
3318
3319 <method name="beginSavingState">
3320 <desc>
3321 Called by the VM process to inform the server it wants to
3322 save the current state and stop the VM execution.
3323 </desc>
3324 <param name="progress" type="IProgress" dir="in">
3325 <desc>
3326 Progress object created by the VM process to wait until
3327 the state is saved.
3328 </desc>
3329 </param>
3330 <param name="stateFilePath" type="wstring" dir="out">
3331 <desc>
3332 File path the VM process must save the execution state to.
3333 </desc>
3334 </param>
3335 </method>
3336
3337 <method name="endSavingState">
3338 <desc>
3339 Called by the VM process to inform the server that saving
3340 the state previously requested by #beginSavingState is either
3341 successfully finished or there was a failure.
3342
3343 <result name="VBOX_E_FILE_ERROR">
3344 Settings file not accessible.
3345 </result>
3346 <result name="VBOX_E_XML_ERROR">
3347 Could not parse the settings file.
3348 </result>
3349
3350 </desc>
3351
3352 <param name="success" type="boolean" dir="in">
3353 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3354 otherwise.
3355 </desc>
3356 </param>
3357 </method>
3358
3359 <method name="adoptSavedState">
3360 <desc>
3361 Gets called by IConsole::adoptSavedState.
3362 <result name="VBOX_E_FILE_ERROR">
3363 Invalid saved state file path.
3364 </result>
3365 </desc>
3366 <param name="savedStateFile" type="wstring" dir="in">
3367 <desc>Path to the saved state file to adopt.</desc>
3368 </param>
3369 </method>
3370
3371 <method name="beginTakingSnapshot">
3372 <desc>
3373 Called by the VM process to inform the server it wants to
3374 take a snapshot.
3375
3376 <result name="VBOX_E_FILE_ERROR">
3377 Settings file not accessible.
3378 </result>
3379 <result name="VBOX_E_XML_ERROR">
3380 Could not parse the settings file.
3381 </result>
3382 </desc>
3383 <param name="initiator" type="IConsole" dir="in">
3384 <desc>The console object that initiated this call.</desc>
3385 </param>
3386 <param name="name" type="wstring" dir="in">
3387 <desc>Snapshot name.</desc>
3388 </param>
3389 <param name="description" type="wstring" dir="in">
3390 <desc>Snapshot description.</desc>
3391 </param>
3392 <param name="progress" type="IProgress" dir="in">
3393 <desc>
3394 Progress object created by the VM process to wait until
3395 the state is saved (only for online snapshots).
3396 </desc>
3397 </param>
3398 <param name="stateFilePath" type="wstring" dir="out">
3399 <desc>
3400 File path the VM process must save the execution state to.
3401 </desc>
3402 </param>
3403 <param name="serverProgress" type="IProgress" dir="out">
3404 <desc>
3405 Progress object created by the server process to wait until
3406 the snapshot is taken (VDI diff creation, etc.).
3407 </desc>
3408 </param>
3409 </method>
3410
3411 <method name="endTakingSnapshot">
3412 <desc>
3413 Called by the VM process to inform the server that the snapshot
3414 previously requested by #beginTakingSnapshot is either
3415 successfully taken or there was a failure.
3416 </desc>
3417
3418 <param name="success" type="boolean" dir="in">
3419 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3420 </param>
3421 </method>
3422
3423 <method name="discardSnapshot">
3424 <desc>
3425 Gets called by IConsole::discardSnapshot.
3426 <result name="VBOX_E_INVALID_OBJECT_STATE">
3427 Snapshot has more than one child snapshot.
3428 </result>
3429 </desc>
3430 <param name="initiator" type="IConsole" dir="in">
3431 <desc>The console object that initiated this call.</desc>
3432 </param>
3433 <param name="id" type="uuid" dir="in">
3434 <desc>UUID of the snapshot to discard.</desc>
3435 </param>
3436 <param name="machineState" type="MachineState" dir="out">
3437 <desc>New machine state after this operation is started.</desc>
3438 </param>
3439 <param name="progress" type="IProgress" dir="return">
3440 <desc>Progress object to track the operation completion.</desc>
3441 </param>
3442 </method>
3443
3444 <method name="discardCurrentState">
3445 <desc>
3446 Gets called by IConsole::discardCurrentState.
3447 <result name="VBOX_E_INVALID_OBJECT_STATE">
3448 Virtual machine does not have any snapshot.
3449 </result>
3450 </desc>
3451 <param name="initiator" type="IConsole" dir="in">
3452 <desc>The console object that initiated this call.</desc>
3453 </param>
3454 <param name="machineState" type="MachineState" dir="out">
3455 <desc>New machine state after this operation is started.</desc>
3456 </param>
3457 <param name="progress" type="IProgress" dir="return">
3458 <desc>Progress object to track the operation completion.</desc>
3459 </param>
3460 </method>
3461
3462 <method name="discardCurrentSnapshotAndState">
3463 <desc>
3464 Gets called by IConsole::discardCurrentSnapshotAndState.
3465 <result name="VBOX_E_INVALID_OBJECT_STATE">
3466 Virtual machine does not have any snapshot.
3467 </result>
3468 </desc>
3469 <param name="initiator" type="IConsole" dir="in">
3470 <desc>The console object that initiated this call.</desc>
3471 </param>
3472 <param name="machineState" type="MachineState" dir="out">
3473 <desc>New machine state after this operation is started.</desc>
3474 </param>
3475 <param name="progress" type="IProgress" dir="return">
3476 <desc>Progress object to track the operation completion.</desc>
3477 </param>
3478 </method>
3479
3480 <method name="pullGuestProperties">
3481 <desc>
3482 Get the list of the guest properties matching a set of patterns along
3483 with their values, time stamps and flags and give responsibility for
3484 managing properties to the console.
3485 </desc>
3486 <param name="name" type="wstring" dir="out" safearray="yes">
3487 <desc>
3488 The names of the properties returned.
3489 </desc>
3490 </param>
3491 <param name="value" type="wstring" dir="out" safearray="yes">
3492 <desc>
3493 The values of the properties returned. The array entries match the
3494 corresponding entries in the @a name array.
3495 </desc>
3496 </param>
3497 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3498 <desc>
3499 The time stamps of the properties returned. The array entries match
3500 the corresponding entries in the @a name array.
3501 </desc>
3502 </param>
3503 <param name="flags" type="wstring" dir="out" safearray="yes">
3504 <desc>
3505 The flags of the properties returned. The array entries match the
3506 corresponding entries in the @a name array.
3507 </desc>
3508 </param>
3509 </method>
3510
3511 <method name="pushGuestProperties">
3512 <desc>
3513 Set the list of the guest properties matching a set of patterns along
3514 with their values, time stamps and flags and return responsibility for
3515 managing properties to IMachine.
3516 </desc>
3517 <param name="name" type="wstring" dir="in" safearray="yes">
3518 <desc>
3519 The names of the properties.
3520 </desc>
3521 </param>
3522 <param name="value" type="wstring" dir="in" safearray="yes">
3523 <desc>
3524 The values of the properties. The array entries match the
3525 corresponding entries in the @a name array.
3526 </desc>
3527 </param>
3528 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3529 <desc>
3530 The time stamps of the properties. The array entries match
3531 the corresponding entries in the @a name array.
3532 </desc>
3533 </param>
3534 <param name="flags" type="wstring" dir="in" safearray="yes">
3535 <desc>
3536 The flags of the properties. The array entries match the
3537 corresponding entries in the @a name array.
3538 </desc>
3539 </param>
3540 </method>
3541 <method name="pushGuestProperty">
3542 <desc>
3543 Update a single guest property in IMachine.
3544 </desc>
3545 <param name="name" type="wstring" dir="in">
3546 <desc>
3547 The name of the property to be updated.
3548 </desc>
3549 </param>
3550 <param name="value" type="wstring" dir="in">
3551 <desc>
3552 The value of the property.
3553 </desc>
3554 </param>
3555 <param name="timestamp" type="unsigned long long" dir="in">
3556 <desc>
3557 The timestamp of the property.
3558 </desc>
3559 </param>
3560 <param name="flags" type="wstring" dir="in">
3561 <desc>
3562 The flags of the property.
3563 </desc>
3564 </param>
3565 </method>
3566 </interface>
3567
3568 <interface
3569 name="IBIOSSettings" extends="$unknown"
3570 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3571 wsmap="managed"
3572 >
3573 <desc>
3574 The IBIOSSettings interface represents BIOS settings of the virtual
3575 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3576 </desc>
3577 <attribute name="logoFadeIn" type="boolean">
3578 <desc>Fade in flag for BIOS logo animation.</desc>
3579 </attribute>
3580
3581 <attribute name="logoFadeOut" type="boolean">
3582 <desc>Fade out flag for BIOS logo animation.</desc>
3583 </attribute>
3584
3585 <attribute name="logoDisplayTime" type="unsigned long">
3586 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3587 </attribute>
3588
3589 <attribute name="logoImagePath" type="wstring">
3590 <desc>Local file system path for external BIOS image.</desc>
3591 </attribute>
3592
3593 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3594 <desc>Mode of the BIOS boot device menu.</desc>
3595 </attribute>
3596
3597 <attribute name="ACPIEnabled" type="boolean">
3598 <desc>ACPI support flag.</desc>
3599 </attribute>
3600
3601 <attribute name="IOAPICEnabled" type="boolean">
3602 <desc>
3603 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3604 and support IRQs above 15.
3605 </desc>
3606 </attribute>
3607
3608 <attribute name="timeOffset" type="long long">
3609 <desc>
3610 Offset in milliseconds from the host system time. This allows for
3611 guests running with a different system date/time than the host.
3612 It is equivalent to setting the system date/time in the BIOS except
3613 it is not an absolute value but a relative one. Guest Additions
3614 time synchronization honors this offset.
3615 </desc>
3616 </attribute>
3617
3618 <attribute name="PXEDebugEnabled" type="boolean">
3619 <desc>
3620 PXE debug logging flag. If set, VirtualBox will write extensive
3621 PXE trace information to the release log.
3622 </desc>
3623 </attribute>
3624
3625 <attribute name="IDEControllerType" type="IDEControllerType">
3626 <desc>
3627 Type of the virtual IDE controller. Depending on this value,
3628 VirtualBox will provide different virtual IDE hardware
3629 devices to the guest.
3630 </desc>
3631 </attribute>
3632
3633 </interface>
3634
3635 <interface
3636 name="IMachine" extends="$unknown"
3637 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3638 wsmap="managed"
3639 >
3640 <desc>
3641 The IMachine interface represents a virtual machine, or guest, created
3642 in VirtualBox.
3643
3644 This interface is used in two contexts. First of all, a collection of
3645 objects implementing this interface is stored in the
3646 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3647 machines that are currently registered with this VirtualBox
3648 installation. Also, once a session has been opened for the given virtual
3649 machine (e.g. the virtual machine is running), the machine object
3650 associated with the open session can be queried from the session object;
3651 see <link to="ISession"/> for details.
3652
3653 The main role of this interface is to expose the settings of the virtual
3654 machine and provide methods to change various aspects of the virtual
3655 machine's configuration. For machine objects stored in the
3656 <link to="IVirtualBox::machines2"/> collection, all attributes are
3657 read-only unless explicitly stated otherwise in individual attribute
3658 and method descriptions. In order to change a machine setting, a session
3659 for this machine must be opened using one of
3660 <link to="IVirtualBox::openSession"/>,
3661 <link to="IVirtualBox::openRemoteSession"/> or
3662 <link to="IVirtualBox::openExistingSession"/> methods. After the
3663 session has been successfully opened, a mutable machine object needs to
3664 be queried from the session object and then the desired settings changes
3665 can be applied to the returned object using IMachine attributes and
3666 methods. See the ISession interface description for more information
3667 about sessions.
3668
3669 Note that the IMachine interface does not provide methods to control
3670 virtual machine execution (such as start the machine, or power it
3671 down) -- these methods are grouped in a separate IConsole
3672 interface. Refer to the IConsole interface description to get more
3673 information about this topic.
3674
3675 <see>ISession, IConsole</see>
3676 </desc>
3677
3678 <attribute name="parent" type="IVirtualBox" readonly="yes">
3679 <desc>Associated parent object.</desc>
3680 </attribute>
3681
3682 <attribute name="accessible" type="boolean" readonly="yes">
3683 <desc>
3684 Whether this virtual machine is currently accessible or not.
3685
3686 The machine is considered to be inaccessible when:
3687 <ul>
3688 <li>It is a registered virtual machine, and
3689 </li>
3690 <li>Its settings file is inaccessible (for example, it is
3691 located on a network share that is not accessible during
3692 VirtualBox startup, or becomes inaccessible later, or if
3693 the settings file can be read but is invalid).
3694 </li>
3695 </ul>
3696
3697 Otherwise, the value of this property is always <tt>true</tt>.
3698
3699 Every time this property is read, the accessibility state of
3700 this machine is re-evaluated. If the returned value is |false|,
3701 the <link to="#accessError"/> property may be used to get the
3702 detailed error information describing the reason of
3703 inaccessibility.
3704
3705 When the machine is inaccessible, only the following properties
3706 can be used on it:
3707 <ul>
3708 <li><link to="#parent"/></li>
3709 <li><link to="#id"/></li>
3710 <li><link to="#settingsFilePath"/></li>
3711 <li><link to="#accessible"/></li>
3712 <li><link to="#accessError"/></li>
3713 </ul>
3714
3715 An attempt to access any other property or method will return
3716 an error.
3717
3718 The only possible action you can perform on an inaccessible
3719 machine is to unregister it using the
3720 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3721 for the accessibility state once more by querying this
3722 property).
3723
3724 <note>
3725 In the current implementation, once this property returns
3726 <tt>true</tt>, the machine will never become inaccessible
3727 later, even if its settings file cannot be successfully
3728 read/written any more (at least, until the VirtualBox
3729 server is restarted). This limitation may be removed in
3730 future releases.
3731 </note>
3732 </desc>
3733 </attribute>
3734
3735 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3736 <desc>
3737 Error information describing the reason of machine
3738 inaccessibility.
3739
3740 Reading this property is only valid after the last call to
3741 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3742 machine is currently unaccessible). Otherwise, a null
3743 IVirtualBoxErrorInfo object will be returned.
3744 </desc>
3745 </attribute>
3746
3747 <attribute name="name" type="wstring">
3748 <desc>
3749 Name of the virtual machine.
3750
3751 Besides being used for human-readable identification purposes
3752 everywhere in VirtualBox, the virtual machine name is also used
3753 as a name of the machine's settings file and as a name of the
3754 subdirectory this settings file resides in. Thus, every time you
3755 change the value of this property, the settings file will be
3756 renamed once you call <link to="#saveSettings"/> to confirm the
3757 change. The containing subdirectory will be also renamed, but
3758 only if it has exactly the same name as the settings file
3759 itself prior to changing this property (for backward compatibility
3760 with previous API releases). The above implies the following
3761 limitations:
3762 <ul>
3763 <li>The machine name cannot be empty.</li>
3764 <li>The machine name can contain only characters that are valid
3765 file name characters according to the rules of the file
3766 system used to store VirtualBox configuration.</li>
3767 <li>You cannot have two or more machines with the same name
3768 if they use the same subdirectory for storing the machine
3769 settings files.</li>
3770 <li>You cannot change the name of the machine if it is running,
3771 or if any file in the directory containing the settings file
3772 is being used by another running machine or by any other
3773 process in the host operating system at a time when
3774 <link to="#saveSettings"/> is called.
3775 </li>
3776 </ul>
3777 If any of the above limitations are hit, <link to="#saveSettings"/>
3778 will return an appropriate error message explaining the exact
3779 reason and the changes you made to this machine will not be
3780 saved.
3781 <note>
3782 For "legacy" machines created using the
3783 <link to="IVirtualBox::createLegacyMachine"/> call,
3784 the above naming limitations do not apply because the
3785 machine name does not affect the settings file name.
3786 The settings file name remains the same as it was specified
3787 during machine creation and never changes.
3788 </note>
3789 </desc>
3790 </attribute>
3791
3792 <attribute name="description" type="wstring">
3793 <desc>
3794 Description of the virtual machine.
3795
3796 The description attribute can contain any text and is
3797 typically used to describe the hardware and software
3798 configuration of the virtual machine in detail (i.e. network
3799 settings, versions of the installed software and so on).
3800 </desc>
3801 </attribute>
3802
3803 <attribute name="id" type="uuid" readonly="yes">
3804 <desc>UUID of the virtual machine.</desc>
3805 </attribute>
3806
3807 <attribute name="OSTypeId" type="wstring">
3808 <desc>
3809 User-defined identifier of the Guest OS type.
3810 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3811 an IGuestOSType object representing details about the given
3812 Guest OS type.
3813 <note>
3814 This value may differ from the value returned by
3815 <link to="IGuest::OSTypeId"/> if Guest Additions are
3816 installed to the guest OS.
3817 </note>
3818 </desc>
3819 </attribute>
3820
3821 <attribute name="HardwareVersion" type="wstring">
3822 <desc>Hardware version identifier. Internal use only for now.</desc>
3823 </attribute>
3824
3825 <attribute name="CPUCount" type="unsigned long">
3826 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3827 </attribute>
3828
3829 <attribute name="memorySize" type="unsigned long">
3830 <desc>System memory size in megabytes.</desc>
3831 </attribute>
3832
3833 <attribute name="memoryBalloonSize" type="unsigned long">
3834 <desc>Initial memory balloon size in megabytes.</desc>
3835 </attribute>
3836
3837 <attribute name="statisticsUpdateInterval" type="unsigned long">
3838 <desc>Initial interval to update guest statistics in seconds.</desc>
3839 </attribute>
3840
3841 <attribute name="VRAMSize" type="unsigned long">
3842 <desc>Video memory size in megabytes.</desc>
3843 </attribute>
3844
3845 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3846 <desc>
3847 This setting determines whether VirtualBox allows guests to make use
3848 of the 3D graphics support available on the host. Currently limited
3849 to OpenGL only. </desc>
3850 </attribute>
3851
3852 <attribute name="monitorCount" type="unsigned long">
3853 <desc>
3854 Number of virtual monitors.
3855 <note>
3856 Only effective on Windows XP and later guests with
3857 Guest Additions installed.
3858 </note>
3859 </desc>
3860 </attribute>
3861
3862 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3863 <desc>Object containing all BIOS settings.</desc>
3864 </attribute>
3865
3866 <attribute name="HWVirtExEnabled" type="TSBool">
3867 <desc>
3868 This setting determines whether VirtualBox will try to make use of
3869 the host CPU's hardware virtualization extensions such as Intel VT-x
3870 and AMD-V. Note that in case such extensions are not available,
3871 they will not be used.
3872 </desc>
3873 </attribute>
3874
3875 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3876 <desc>
3877 This setting determines whether VirtualBox will try to make use of
3878 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3879 such extensions are not available, they will not be used.
3880 </desc>
3881 </attribute>
3882
3883 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3884 <desc>
3885 This setting determines whether VirtualBox will try to make use of
3886 the VPID extension of Intel VT-x. Note that in case such extensions are
3887 not available, they will not be used.
3888 </desc>
3889 </attribute>
3890
3891 <attribute name="PAEEnabled" type="boolean" default="false">
3892 <desc>
3893 This setting determines whether VirtualBox will expose the Physical Address
3894 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3895 is not available, it will not be reported.
3896 </desc>
3897 </attribute>
3898
3899 <attribute name="snapshotFolder" type="wstring">
3900 <desc>
3901 Full path to the directory used to store snapshot data
3902 (differencing hard disks and saved state files) of this machine.
3903
3904 The initial value of this property is
3905 <tt>&lt;</tt><link to="#settingsFilePath">
3906 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3907 <link to="#id">machine_uuid</link>
3908 <tt>&gt;</tt>.
3909
3910 Currently, it is an error to try to change this property on
3911 a machine that has snapshots (because this would require to
3912 move possibly large files to a different location).
3913 A separate method will be available for this purpose later.
3914
3915 <note>
3916 Setting this property to <tt>null</tt> will restore the
3917 initial value.
3918 </note>
3919 <note>
3920 When setting this property, the specified path can be
3921 absolute (full path) or relative to the directory where the
3922 <link to="#settingsFilePath">machine settings file</link>
3923 is located. When reading this property, a full path is
3924 always returned.
3925 </note>
3926 <note>
3927 The specified path may not exist, it will be created
3928 when necessary.
3929 </note>
3930 </desc>
3931 </attribute>
3932
3933 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3934 <desc>VRDP server object.</desc>
3935 </attribute>
3936
3937 <attribute name="hardDisk2Attachments" type="IHardDisk2Attachment" readonly="yes" safearray="yes">
3938 <desc>Array of hard disks attached to this machine.</desc>
3939 </attribute>
3940
3941 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3942 <desc>Associated DVD drive object.</desc>
3943 </attribute>
3944
3945 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3946 <desc>Associated floppy drive object.</desc>
3947 </attribute>
3948
3949 <attribute name="USBController" type="IUSBController" readonly="yes">
3950 <desc>
3951 Associated USB controller object.
3952
3953 <note>
3954 This method may set a @ref com_warnings "warning result code".
3955 </note>
3956 <note>
3957 If USB functionality is not available in the given edition of
3958 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3959 </note>
3960 </desc>
3961 </attribute>
3962
3963 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3964 <desc>Associated audio adapter, always present.</desc>
3965 </attribute>
3966
3967 <attribute name="SATAController" type="ISATAController" readonly="yes">
3968 <desc>
3969 Associated SATA controller object.
3970 </desc>
3971 </attribute>
3972
3973 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3974 <desc>
3975 Full name of the file containing machine settings data.
3976 </desc>
3977 </attribute>
3978
3979 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
3980 <desc>
3981 Current version of the format of the settings file of this machine
3982 (<link to="#settingsFilePath"/>).
3983
3984 The version string has the following format:
3985 <pre>
3986 x.y-platform
3987 </pre>
3988 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
3989 versions, and <tt>platform</tt> is the platform identifier.
3990
3991 The current version usually matches the value of the
3992 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
3993 settings file was created by an older version of VirtualBox and there
3994 was a change of the settings file format since then.
3995
3996 Note that VirtualBox automatically converts settings files from older
3997 versions to the most recent version when reading them (usually at
3998 VirtualBox startup) but it doesn't save the changes back until
3999 you call a method that implicitly saves settings (such as
4000 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4001 explicitly. Therefore, if the value of this attribute differs from the
4002 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4003 means that the settings file was converted but the result of the
4004 conversion is not yet saved to disk.
4005
4006 The above feature may be used by interactive front-ends to inform users
4007 about the settings file format change and offer them to explicitly save
4008 all converted settings files (the global and VM-specific ones),
4009 optionally create backup copies of the old settings files before saving,
4010 etc.
4011
4012 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4013 </desc>
4014 </attribute>
4015
4016 <attribute name="settingsModified" type="boolean" readonly="yes">
4017 <desc>
4018 Whether the settings of this machine have been modified
4019 (but neither yet saved nor discarded).
4020 <note>
4021 Reading this property is only valid on instances returned
4022 by <link to="ISession::machine"/> and on new machines
4023 created by <link to="IVirtualBox::createMachine"/> or opened
4024 by <link to="IVirtualBox::openMachine"/> but not
4025 yet registered, or on unregistered machines after calling
4026 <link to="IVirtualBox::unregisterMachine"/>. For all other
4027 cases, the settings can never be modified.
4028 </note>
4029 <note>
4030 For newly created unregistered machines, the value of this
4031 property is always TRUE until <link to="#saveSettings"/>
4032 is called (no matter if any machine settings have been
4033 changed after the creation or not). For opened machines
4034 the value is set to FALSE (and then follows to normal rules).
4035 </note>
4036 </desc>
4037 </attribute>
4038
4039 <attribute name="sessionState" type="SessionState" readonly="yes">
4040 <desc>Current session state for this machine.</desc>
4041 </attribute>
4042
4043 <attribute name="sessionType" type="wstring" readonly="yes">
4044 <desc>
4045 Type of the session. If <link to="#sessionState"/> is
4046 SessionSpawning or SessionOpen, this attribute contains the
4047 same value as passed to the
4048 <link to="IVirtualBox::openRemoteSession"/> method in the @a
4049 type parameter. If the session was opened directly using
4050 <link to="IVirtualBox::openSession"/>, or if
4051 <link to="#sessionState"/> is SessionClosed, the value of this
4052 attribute is @c null.
4053 </desc>
4054 </attribute>
4055
4056 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4057 <desc>
4058 Identifier of the session process. This attribute contains the
4059 platform-dependent identifier of the process that has opened a
4060 direct session for this machine using the
4061 <link to="IVirtualBox::openSession"/> call. The returned value
4062 is only valid if <link to="#sessionState"/> is SessionOpen or
4063 SessionClosing (i.e. a session is currently open or being
4064 closed) by the time this property is read.
4065 </desc>
4066 </attribute>
4067
4068 <attribute name="state" type="MachineState" readonly="yes">
4069 <desc>Current execution state of this machine.</desc>
4070 </attribute>
4071
4072 <attribute name="lastStateChange" type="long long" readonly="yes">
4073 <desc>
4074 Time stamp of the last execution state change,
4075 in milliseconds since 1970-01-01 UTC.
4076 </desc>
4077 </attribute>
4078
4079 <attribute name="stateFilePath" type="wstring" readonly="yes">
4080 <desc>
4081 Full path to the file that stores the execution state of
4082 the machine when it is in the <link to="MachineState_Saved"/> state.
4083 <note>
4084 When the machine is not in the Saved state, this attribute
4085 <tt>null</tt>.
4086 </note>
4087 </desc>
4088 </attribute>
4089
4090 <attribute name="logFolder" type="wstring" readonly="yes">
4091 <desc>
4092 Full path to the folder that stores a set of rotated log files
4093 recorded during machine execution. The most recent log file is
4094 named <tt>VBox.log</tt>, the previous log file is
4095 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4096 in the current version).
4097 </desc>
4098 </attribute>
4099
4100 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4101 <desc>
4102 Current snapshot of this machine.
4103 <note>
4104 A <tt>null</tt> object is returned if the machine doesn't
4105 have snapshots.
4106 </note>
4107 <see><link to="ISnapshot"/></see>
4108 </desc>
4109 </attribute>
4110
4111 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4112 <desc>
4113 Number of snapshots taken on this machine. Zero means the
4114 machine doesn't have any snapshots.
4115 </desc>
4116 </attribute>
4117
4118 <attribute name="currentStateModified" type="boolean" readonly="yes">
4119 <desc>
4120 Returns <tt>true</tt> if the current state of the machine is not
4121 identical to the state stored in the current snapshot.
4122
4123 The current state is identical to the current snapshot right
4124 after one of the following calls are made:
4125 <ul>
4126 <li><link to="IConsole::discardCurrentState"/> or
4127 <link to="IConsole::discardCurrentSnapshotAndState"/>
4128 </li>
4129 <li><link to="IConsole::takeSnapshot"/> (issued on a
4130 powered off or saved machine, for which
4131 <link to="#settingsModified"/> returns <tt>false</tt>)
4132 </li>
4133 <li><link to="IMachine::setCurrentSnapshot"/>
4134 </li>
4135 </ul>
4136
4137 The current state remains identical until one of the following
4138 happens:
4139 <ul>
4140 <li>settings of the machine are changed</li>
4141 <li>the saved state is discarded</li>
4142 <li>the current snapshot is discarded</li>
4143 <li>an attempt to execute the machine is made</li>
4144 </ul>
4145
4146 <note>
4147 For machines that don't have snapshots, this property is
4148 always <tt>false</tt>.
4149 </note>
4150 </desc>
4151 </attribute>
4152
4153 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
4154 <desc>
4155 Collection of shared folders for this machine (permanent shared
4156 folders). These folders are shared automatically at machine startup
4157 and available only to the guest OS installed within this machine.
4158
4159 New shared folders are added to the collection using
4160 <link to="#createSharedFolder"/>. Existing shared folders can be
4161 removed using <link to="#removeSharedFolder"/>.
4162 </desc>
4163 </attribute>
4164
4165 <attribute name="clipboardMode" type="ClipboardMode">
4166 <desc>
4167 Synchronization mode between the host OS clipboard
4168 and the guest OS clipboard.
4169 </desc>
4170 </attribute>
4171
4172 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4173 <desc>
4174 A comma-separated list of simple glob patterns. Changes to guest
4175 properties whose name matches one of the patterns will generate an
4176 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4177 </desc>
4178 </attribute>
4179
4180 <method name="setBootOrder">
4181 <desc>
4182 Puts the given device to the specified position in
4183 the boot order.
4184
4185 To indicate that no device is associated with the given position,
4186 <link to="DeviceType_Null"/> should be used.
4187
4188 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4189
4190 <result name="E_INVALIDARG">
4191 Boot @a position out of range.
4192 </result>
4193 <result name="E_NOTIMPL">
4194 Booting from USB @a device currently not supported.
4195 </result>
4196
4197 </desc>
4198 <param name="position" type="unsigned long" dir="in">
4199 <desc>
4200 Position in the boot order (<tt>1</tt> to the total number of
4201 devices the machine can boot from, as returned by
4202 <link to="ISystemProperties::maxBootPosition"/>).
4203 </desc>
4204 </param>
4205 <param name="device" type="DeviceType" dir="in">
4206 <desc>
4207 The type of the device used to boot at the given position.
4208 </desc>
4209 </param>
4210 </method>
4211
4212 <method name="getBootOrder" const="yes">
4213 <desc>
4214 Returns the device type that occupies the specified
4215 position in the boot order.
4216
4217 @todo [remove?]
4218 If the machine can have more than one device of the returned type
4219 (such as hard disks), then a separate method should be used to
4220 retrieve the individual device that occupies the given position.
4221
4222 If here are no devices at the given position, then
4223 <link to="DeviceType_Null"/> is returned.
4224
4225 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4226
4227 <result name="E_INVALIDARG">
4228 Boot @a position out of range.
4229 </result>
4230
4231 </desc>
4232 <param name="position" type="unsigned long" dir="in">
4233 <desc>
4234 Position in the boot order (<tt>1</tt> to the total number of
4235 devices the machine can boot from, as returned by
4236 <link to="ISystemProperties::maxBootPosition"/>).
4237 </desc>
4238 </param>
4239 <param name="device" type="DeviceType" dir="return">
4240 <desc>
4241 Device at the given position.
4242 </desc>
4243 </param>
4244 </method>
4245
4246 <method name="attachHardDisk2">
4247 <desc>
4248 Attaches a virtual hard disk identified by the given UUID @a id
4249 to a device slot of the specified bus.
4250
4251 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4252 specify the primary or secondary IDE controller, respectively. The
4253 SATA bus supports 30 channels, so this parameter can be a number
4254 ranging from @c 0 to @c 29.
4255
4256 For the primary controller of the IDE bus, the @a device number can be
4257 either @c 0 or @c 1, to specify the master or the slave device,
4258 respectively. For the secondary IDE controller, the device number is
4259 always @c 1 because the master device is reserved for the CD-ROM drive.
4260
4261 For the SATA bus, the @a device parameter is currently unused and
4262 must be @c 0.
4263
4264 The specified device slot must not have another disk attached to it, or
4265 this method will fail.
4266
4267 See <link to="IHardDisk2"/> for more detailed information about
4268 attaching hard disks.
4269
4270 <note>
4271 You cannot attach a hard disk to a running machine. Also, you cannot
4272 attach a hard disk to a newly created machine until this machine's
4273 settings are saved to disk using <link to="#saveSettings"/>.
4274 </note>
4275 <note>
4276 If the hard disk is being attached indirectly, a new differencing hard
4277 disk will implicitly be created for it and attached instead. If the
4278 changes made to the machine settings (including this indirect
4279 attachment) are later cancelled using <link to="#discardSettings"/>,
4280 this implicitly created differencing hard disk will implicitly
4281 be deleted.
4282 </note>
4283
4284 <result name="E_INVALIDARG">
4285 SATA device, SATA channel, IDE channel or IDE slot out of range.
4286 </result>
4287 <result name="VBOX_E_INVALID_OBJECT_STATE">
4288 Attempt to attach hard disk to an unregistered virtual machine.
4289 </result>
4290 <result name="VBOX_E_INVALID_VM_STATE">
4291 Invalid machine state.
4292 </result>
4293 <result name="VBOX_E_OBJECT_IN_USE">
4294 Hard disk already attached to this or another virtual machine.
4295 </result>
4296
4297 </desc>
4298 <param name="id" type="uuid" dir="in">
4299 <desc>UUID of the hard disk to attach.</desc>
4300 </param>
4301 <param name="bus" type="StorageBus" dir="in">
4302 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4303 </param>
4304 <param name="channel" type="long" dir="in">
4305 <desc>Channel to attach the hard disk to.</desc>
4306 </param>
4307 <param name="device" type="long" dir="in">
4308 <desc>
4309 Device slot in the given channel to attach the hard disk to.
4310 </desc>
4311 </param>
4312 </method>
4313
4314 <method name="getHardDisk2" const="yes">
4315 <desc>
4316 Returns the virtual hard disk attached to a device slot of the specified
4317 bus.
4318
4319 Note that if the hard disk was indirectly attached by
4320 <link to="#attachHardDisk2"/> to the given device slot then this
4321 method will return not the same object as passed to the
4322 <link to="#attachHardDisk2"/> call. See <link to="IHardDisk2"/> for
4323 more detailed information about attaching hard disks.
4324
4325 <result name="VBOX_E_OBJECT_NOT_FOUND">
4326 No hard disk attached to given slot/bus.
4327 </result>
4328
4329 </desc>
4330 <param name="bus" type="StorageBus" dir="in">
4331 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4332 </param>
4333 <param name="channel" type="long" dir="in">
4334 <desc>Channel to query.</desc>
4335 </param>
4336 <param name="device" type="long" dir="in">
4337 <desc>Device slot in the given channel to query.</desc>
4338 </param>
4339 <param name="hardDisk" type="IHardDisk2" dir="return">
4340 <desc>Attached hard disk object.</desc>
4341 </param>
4342 </method>
4343
4344 <method name="detachHardDisk2">
4345 <desc>
4346 Detaches the virtual hard disk attached to a device slot of the
4347 specified bus.
4348
4349 Detaching the hard disk from the virtual machine is deferred. This means
4350 that the hard disk remains associated with the machine when this method
4351 returns and gets actually de-associated only after a successful
4352 <link to="#saveSettings"/> call. See <link to="IHardDisk2"/>
4353 for more detailed information about attaching hard disks.
4354
4355 <note>
4356 You cannot detach the hard disk from a running machine.
4357 </note>
4358 <note>
4359 Detaching differencing hard disks implicitly created by <link
4360 to="#attachHardDisk2"/> for the indirect attachment using this
4361 method will <b>not</b> implicitly delete them. The
4362 <link to="IHardDisk2::deleteStorage"/> operation should be
4363 explicitly performed by the caller after the hard disk is successfully
4364 detached and the settings are saved with
4365 <link to="#saveSettings"/>, if it is the desired action.
4366 </note>
4367
4368 <result name="VBOX_E_INVALID_VM_STATE">
4369 Attempt to detach hard disk from a running virtual machine.
4370 </result>
4371 <result name="VBOX_E_OBJECT_NOT_FOUND">
4372 No hard disk attached to given slot/bus.
4373 </result>
4374 <result name="VBOX_E_NOT_SUPPORTED">
4375 Hard disk format does not support storage deletion.
4376 </result>
4377
4378 </desc>
4379 <param name="bus" type="StorageBus" dir="in">
4380 <desc>Bus to detach the hard disk from.</desc>
4381 </param>
4382 <param name="channel" type="long" dir="in">
4383 <desc>Channel number to detach the hard disk from.</desc>
4384 </param>
4385 <param name="device" type="long" dir="in">
4386 <desc>Device slot number to detach the hard disk from.</desc>
4387 </param>
4388 </method>
4389
4390 <method name="getNetworkAdapter" const="yes">
4391 <desc>
4392 Returns the network adapter associated with the given slot.
4393 Slots are numbered sequentially, starting with zero. The total
4394 number of adapters per machine is defined by the
4395 <link to="ISystemProperties::networkAdapterCount"/> property,
4396 so the maximum slot number is one less than that property's value.
4397
4398 <result name="E_INVALIDARG">
4399 Invalid @a slot number.
4400 </result>
4401
4402 </desc>
4403 <param name="slot" type="unsigned long" dir="in"/>
4404 <param name="adapter" type="INetworkAdapter" dir="return"/>
4405 </method>
4406
4407 <method name="getSerialPort" const="yes">
4408 <desc>
4409 Returns the serial port associated with the given slot.
4410 Slots are numbered sequentially, starting with zero. The total
4411 number of serial ports per machine is defined by the
4412 <link to="ISystemProperties::serialPortCount"/> property,
4413 so the maximum slot number is one less than that property's value.
4414
4415 <result name="E_INVALIDARG">
4416 Invalid @a slot number.
4417 </result>
4418
4419 </desc>
4420 <param name="slot" type="unsigned long" dir="in"/>
4421 <param name="port" type="ISerialPort" dir="return"/>
4422 </method>
4423
4424 <method name="getParallelPort" const="yes">
4425 <desc>
4426 Returns the parallel port associated with the given slot.
4427 Slots are numbered sequentially, starting with zero. The total
4428 number of parallel ports per machine is defined by the
4429 <link to="ISystemProperties::parallelPortCount"/> property,
4430 so the maximum slot number is one less than that property's value.
4431
4432 <result name="E_INVALIDARG">
4433 Invalid @a slot number.
4434 </result>
4435
4436 </desc>
4437 <param name="slot" type="unsigned long" dir="in"/>
4438 <param name="port" type="IParallelPort" dir="return"/>
4439 </method>
4440
4441 <method name="getNextExtraDataKey">
4442 <desc>
4443 Returns the machine-specific extra data key name following the
4444 supplied key.
4445
4446 An error is returned if the supplied @a key does not exist. @c NULL is
4447 returned in @a nextKey if the supplied key is the last key. When
4448 supplying @c NULL for the @a key, the first key item is returned in @a
4449 nextKey (if there is any). @a nextValue is an optional parameter and
4450 if supplied, the next key's value is returned in it.
4451
4452 <result name="VBOX_E_OBJECT_NOT_FOUND">
4453 Extra data @a key not found.
4454 </result>
4455
4456 </desc>
4457 <param name="key" type="wstring" dir="in">
4458 <desc>Name of the data key to follow.</desc>
4459 </param>
4460 <param name="nextKey" type="wstring" dir="out">
4461 <desc>Name of the next data key.</desc>
4462 </param>
4463 <param name="nextValue" type="wstring" dir="out">
4464 <desc>Value of the next data key.</desc>
4465 </param>
4466 </method>
4467
4468 <method name="getExtraData">
4469 <desc>
4470 Returns associated machine-specific extra data.
4471
4472 If the requested data @a key does not exist, this function will
4473 succeed and return @c NULL in the @a value argument.
4474
4475 <result name="VBOX_E_FILE_ERROR">
4476 Settings file not accessible.
4477 </result>
4478 <result name="VBOX_E_XML_ERROR">
4479 Could not parse the settings file.
4480 </result>
4481
4482 </desc>
4483 <param name="key" type="wstring" dir="in">
4484 <desc>Name of the data key to get.</desc>
4485 </param>
4486 <param name="value" type="wstring" dir="return">
4487 <desc>Value of the requested data key.</desc>
4488 </param>
4489 </method>
4490
4491 <method name="setExtraData">
4492 <desc>
4493 Sets associated machine-specific extra data.
4494
4495 If you pass @c NULL as a key @a value, the given @a key will be
4496 deleted.
4497
4498 <note>
4499 Before performing the actual data change, this method will ask all
4500 registered callbacks using the
4501 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4502 notification for a permission. If one of the callbacks refuses the
4503 new value, the change will not be performed.
4504 </note>
4505 <note>
4506 On success, the
4507 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4508 is called to inform all registered callbacks about a successful data
4509 change.
4510 </note>
4511 <note>
4512 This method can be called outside the machine session and therefore
4513 it's a caller's responsibility to handle possible race conditions
4514 when several clients change the same key at the same time.
4515 </note>
4516
4517 <result name="VBOX_E_FILE_ERROR">
4518 Settings file not accessible.
4519 </result>
4520 <result name="VBOX_E_XML_ERROR">
4521 Could not parse the settings file.
4522 </result>
4523
4524 </desc>
4525 <param name="key" type="wstring" dir="in">
4526 <desc>Name of the data key to set.</desc>
4527 </param>
4528 <param name="value" type="wstring" dir="in">
4529 <desc>Value to assign to the key.</desc>
4530 </param>
4531 </method>
4532
4533 <method name="saveSettings">
4534 <desc>
4535 Saves any changes to machine settings made since the session
4536 has been opened or a new machine has been created, or since the
4537 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4538 For registered machines, new settings become visible to all
4539 other VirtualBox clients after successful invocation of this
4540 method.
4541 <note>
4542 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4543 notification event after the configuration has been successfully
4544 saved (only for registered machines).
4545 </note>
4546 <note>
4547 Calling this method is only valid on instances returned
4548 by <link to="ISession::machine"/> and on new machines
4549 created by <link to="IVirtualBox::createMachine"/> but not
4550 yet registered, or on unregistered machines after calling
4551 <link to="IVirtualBox::unregisterMachine"/>.
4552 </note>
4553
4554 <result name="VBOX_E_FILE_ERROR">
4555 Settings file not accessible.
4556 </result>
4557 <result name="VBOX_E_XML_ERROR">
4558 Could not parse the settings file.
4559 </result>
4560 <result name="E_ACCESSDENIED">
4561 Modification request refused.
4562 </result>
4563
4564 </desc>
4565 </method>
4566
4567 <method name="saveSettingsWithBackup">
4568 <desc>
4569 Creates a backup copy of the machine settings file (<link
4570 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4571 <link to="#saveSettings"/>.
4572
4573 Note that the backup copy is created <b>only</b> if the settings file
4574 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4575 details). Otherwise, this call is fully equivalent to
4576 <link to="#saveSettings"/> and no backup copying is done.
4577
4578 The backup copy is created in the same directory where the original
4579 settings file is located. It is given the following file name:
4580 <pre>
4581 original.xml.x.y-platform.bak
4582 </pre>
4583 where <tt>original.xml</tt> is the original settings file name
4584 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4585 format of the settings file (before auto-conversion).
4586
4587 If the given backup file already exists, this method will try to add the
4588 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4589 0 to 9) and copy it again until it succeeds. If all suffixes are
4590 occupied, or if any other copy error occurs, this method will return a
4591 failure.
4592
4593 If the copy operation succeeds, the @a bakFileName return argument will
4594 receive a full path to the created backup file (for informational
4595 purposes). Note that this will happen even if the subsequent
4596 <link to="#saveSettings"/> call performed by this method after the
4597 copy operation, fails.
4598
4599 <note>
4600 The VirtualBox API never calls this method. It is intended purely for
4601 the purposes of creating backup copies of the settings files by
4602 front-ends before saving the results of the automatically performed
4603 settings conversion to disk.
4604 </note>
4605
4606 <see>settingsFileVersion</see>
4607
4608 <result name="VBOX_E_FILE_ERROR">
4609 Settings file not accessible.
4610 </result>
4611 <result name="VBOX_E_XML_ERROR">
4612 Could not parse the settings file.
4613 </result>
4614 <result name="VBOX_E_INVALID_VM_STATE">
4615 Virtual machine is not mutable.
4616 </result>
4617 <result name="E_ACCESSDENIED">
4618 Modification request refused.
4619 </result>
4620
4621 </desc>
4622 <param name="bakFileName" type="wstring" dir="return">
4623 <desc>Full path to the created backup copy.</desc>
4624 </param>
4625 </method>
4626
4627 <method name="discardSettings">
4628 <desc>
4629 Discards any changes to the machine settings made since the session
4630 has been opened or since the last call to <link to="#saveSettings"/>
4631 or <link to="#discardSettings"/>.
4632 <note>
4633 Calling this method is only valid on instances returned
4634 by <link to="ISession::machine"/> and on new machines
4635 created by <link to="IVirtualBox::createMachine"/> or
4636 opened by <link to="IVirtualBox::openMachine"/> but not
4637 yet registered, or on unregistered machines after calling
4638 <link to="IVirtualBox::unregisterMachine"/>.
4639 </note>
4640
4641 <result name="VBOX_E_INVALID_VM_STATE">
4642 Virtual machine is not mutable.
4643 </result>
4644
4645 </desc>
4646 </method>
4647
4648 <method name="deleteSettings">
4649 <desc>
4650 Deletes the settings file of this machine from disk.
4651 The machine must not be registered in order for this operation
4652 to succeed.
4653 <note>
4654 <link to="#settingsModified"/> will return TRUE after this
4655 method successfully returns.
4656 </note>
4657 <note>
4658 Calling this method is only valid on instances returned
4659 by <link to="ISession::machine"/> and on new machines
4660 created by <link to="IVirtualBox::createMachine"/> or
4661 opened by <link to="IVirtualBox::openMachine"/> but not
4662 yet registered, or on unregistered machines after calling
4663 <link to="IVirtualBox::unregisterMachine"/>.
4664 </note>
4665 <note>
4666 The deleted machine settings file can be restored (saved again)
4667 by calling <link to="#saveSettings"/>.
4668 </note>
4669
4670 <result name="VBOX_E_INVALID_VM_STATE">
4671 Cannot delete settings of a registered machine or
4672 machine not mutable.
4673 </result>
4674 <result name="VBOX_E_IPRT_ERROR">
4675 Could not delete the settings file.
4676 </result>
4677
4678 </desc>
4679 </method>
4680
4681 <method name="getSnapshot">
4682 <desc>
4683 Returns a snapshot of this machine with the given UUID.
4684 A <tt>null</tt> UUID can be used to obtain the first snapshot
4685 taken on this machine. This is useful if you want to traverse
4686 the whole tree of snapshots starting from the root.
4687
4688 <result name="VBOX_E_OBJECT_NOT_FOUND">
4689 Virtual machine has no snapshots or snapshot not found.
4690 </result>
4691
4692 </desc>
4693 <param name="id" type="uuid" dir="in">
4694 <desc>UUID of the snapshot to get</desc>
4695 </param>
4696 <param name="snapshot" type="ISnapshot" dir="return">
4697 <desc>Snapshot object with the given UUID.</desc>
4698 </param>
4699 </method>
4700
4701 <method name="findSnapshot">
4702 <desc>
4703 Returns a snapshot of this machine with the given name.
4704
4705 <result name="VBOX_E_OBJECT_NOT_FOUND">
4706 Virtual machine has no snapshots or snapshot not found.
4707 </result>
4708
4709 </desc>
4710 <param name="name" type="wstring" dir="in">
4711 <desc>Name of the snapshot to find</desc>
4712 </param>
4713 <param name="snapshot" type="ISnapshot" dir="return">
4714 <desc>Snapshot object with the given name.</desc>
4715 </param>
4716 </method>
4717
4718 <method name="setCurrentSnapshot">
4719 <desc>
4720 Sets the current snapshot of this machine.
4721 <note>
4722 In the current implementation, this operation is not
4723 implemented.
4724 </note>
4725 </desc>
4726 <param name="id" type="uuid" dir="in">
4727 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4728 </param>
4729 </method>
4730
4731 <method name="createSharedFolder">
4732 <desc>
4733 Creates a new permanent shared folder by associating the given logical
4734 name with the given host path, adds it to the collection of shared
4735 folders and starts sharing it. Refer to the description of
4736 <link to="ISharedFolder"/> to read more about logical names.
4737
4738 <result name="VBOX_E_OBJECT_IN_USE">
4739 Shared folder already exists.
4740 </result>
4741 <result name="VBOX_E_FILE_ERROR">
4742 Shared folder @a hostPath not accessible.
4743 </result>
4744
4745 </desc>
4746 <param name="name" type="wstring" dir="in">
4747 <desc>Unique logical name of the shared folder.</desc>
4748 </param>
4749 <param name="hostPath" type="wstring" dir="in">
4750 <desc>Full path to the shared folder in the host file system.</desc>
4751 </param>
4752 <param name="writable" type="boolean" dir="in">
4753 <desc>Whether the share is writable or readonly</desc>
4754 </param>
4755 </method>
4756
4757 <method name="removeSharedFolder">
4758 <desc>
4759 Removes the permanent shared folder with the given name previously
4760 created by <link to="#createSharedFolder"/> from the collection of
4761 shared folders and stops sharing it.
4762
4763 <result name="VBOX_E_INVALID_VM_STATE">
4764 Virtual machine is not mutable.
4765 </result>
4766 <result name="VBOX_E_OBJECT_NOT_FOUND">
4767 Shared folder @a name does not exist.
4768 </result>
4769
4770 </desc>
4771 <param name="name" type="wstring" dir="in">
4772 <desc>Logical name of the shared folder to remove.</desc>
4773 </param>
4774 </method>
4775
4776 <method name="canShowConsoleWindow">
4777 <desc>
4778 Returns @c true if the VM console process can activate the
4779 console window and bring it to foreground on the desktop of
4780 the host PC.
4781 <note>
4782 This method will fail if a session for this machine is not
4783 currently open.
4784 </note>
4785
4786 <result name="VBOX_E_INVALID_VM_STATE">
4787 Machine session is not open.
4788 </result>
4789
4790 </desc>
4791 <param name="canShow" type="boolean" dir="return">
4792 <desc>
4793 @c true if the console window can be shown and @c
4794 false otherwise.
4795 </desc>
4796 </param>
4797 </method>
4798
4799 <method name="showConsoleWindow">
4800 <desc>
4801 Activates the console window and brings it to foreground on
4802 the desktop of the host PC. Many modern window managers on
4803 many platforms implement some sort of focus stealing
4804 prevention logic, so that it may be impossible to activate
4805 a window without the help of the currently active
4806 application. In this case, this method will return a non-zero
4807 identifier that represents the top-level window of the VM
4808 console process. The caller, if it represents a currently
4809 active process, is responsible to use this identifier (in a
4810 platform-dependent manner) to perform actual window
4811 activation.
4812 <note>
4813 This method will fail if a session for this machine is not
4814 currently open.
4815 </note>
4816
4817 <result name="VBOX_E_INVALID_VM_STATE">
4818 Machine session is not open.
4819 </result>
4820
4821 </desc>
4822 <param name="winId" type="unsigned long long" dir="return">
4823 <desc>
4824 Platform-dependent identifier of the top-level VM console
4825 window, or zero if this method has performed all actions
4826 necessary to implement the <i>show window</i> semantics for
4827 the given platform and/or VirtualBox front-end.
4828 </desc>
4829 </param>
4830 </method>
4831
4832 <method name="getGuestProperty">
4833 <desc>
4834 Reads an entry from the machine's guest property store.
4835
4836 <result name="VBOX_E_INVALID_VM_STATE">
4837 Machine session is not open.
4838 </result>
4839
4840 </desc>
4841 <param name="name" type="wstring" dir="in">
4842 <desc>
4843 The name of the property to read.
4844 </desc>
4845 </param>
4846 <param name="value" type="wstring" dir="out">
4847 <desc>
4848 The value of the property. If the property does not exist then this
4849 will be empty.
4850 </desc>
4851 </param>
4852 <param name="timestamp" type="unsigned long long" dir="out">
4853 <desc>
4854 The time at which the property was last modified, as seen by the
4855 server process.
4856 </desc>
4857 </param>
4858 <param name="flags" type="wstring" dir="out">
4859 <desc>
4860 Additional property parameters, passed as a comma-separated list of
4861 "name=value" type entries.
4862 </desc>
4863 </param>
4864 </method>
4865
4866 <method name="getGuestPropertyValue">
4867 <desc>
4868 Reads a value from the machine's guest property store.
4869
4870 <result name="VBOX_E_INVALID_VM_STATE">
4871 Machine session is not open.
4872 </result>
4873
4874 </desc>
4875 <param name="property" type="wstring" dir="in">
4876 <desc>
4877 The name of the property to read.
4878 </desc>
4879 </param>
4880 <param name="value" type="wstring" dir="return">
4881 <desc>
4882 The value of the property. If the property does not exist then this
4883 will be empty.
4884 </desc>
4885 </param>
4886 </method>
4887
4888 <method name="getGuestPropertyTimestamp">
4889 <desc>
4890 Reads a property timestamp from the machine's guest property store.
4891
4892 <result name="VBOX_E_INVALID_VM_STATE">
4893 Machine session is not open.
4894 </result>
4895
4896 </desc>
4897 <param name="property" type="wstring" dir="in">
4898 <desc>
4899 The name of the property to read.
4900 </desc>
4901 </param>
4902 <param name="value" type="unsigned long long" dir="return">
4903 <desc>
4904 The timestamp. If the property does not exist then this will be
4905 empty.
4906 </desc>
4907 </param>
4908 </method>
4909
4910 <method name="setGuestProperty">
4911 <desc>
4912 Sets, changes or deletes an entry in the machine's guest property
4913 store.
4914
4915 <result name="E_ACCESSDENIED">
4916 Property cannot be changed.
4917 </result>
4918 <result name="E_INVALIDARG">
4919 Invalid @a flags.
4920 </result>
4921 <result name="VBOX_E_INVALID_VM_STATE">
4922 Virtual machine is not mutable or session not open.
4923 </result>
4924 <result name="VBOX_E_INVALID_OBJECT_STATE">
4925 Cannot set transient property when machine not running.
4926 </result>
4927
4928 </desc>
4929 <param name="property" type="wstring" dir="in">
4930 <desc>
4931 The name of the property to set, change or delete.
4932 </desc>
4933 </param>
4934 <param name="value" type="wstring" dir="in">
4935 <desc>
4936 The new value of the property to set, change or delete. If the
4937 property does not yet exist and value is non-empty, it will be
4938 created. If the value is empty, the key will be deleted if it
4939 exists.
4940 </desc>
4941 </param>
4942 <param name="flags" type="wstring" dir="in">
4943 <desc>
4944 Additional property parameters, passed as a comma-separated list of
4945 "name=value" type entries.
4946 </desc>
4947 </param>
4948 </method>
4949
4950 <method name="setGuestPropertyValue">
4951 <desc>
4952 Sets, changes or deletes a value in the machine's guest property
4953 store. The flags field will be left unchanged or created empty for a
4954 new property.
4955
4956 <result name="E_ACCESSDENIED">
4957 Property cannot be changed.
4958 </result>
4959 <result name="VBOX_E_INVALID_VM_STATE">
4960 Virtual machine is not mutable or session not open.
4961 </result>
4962 <result name="VBOX_E_INVALID_OBJECT_STATE">
4963 Cannot set transient property when machine not running.
4964 </result>
4965 </desc>
4966
4967 <param name="property" type="wstring" dir="in">
4968 <desc>
4969 The name of the property to set, change or delete.
4970 </desc>
4971 </param>
4972 <param name="value" type="wstring" dir="in">
4973 <desc>
4974 The new value of the property to set, change or delete. If the
4975 property does not yet exist and value is non-empty, it will be
4976 created. If value is empty, the property will be deleted if it
4977 exists.
4978 </desc>
4979 </param>
4980 </method>
4981
4982 <method name="enumerateGuestProperties">
4983 <desc>
4984 Return a list of the guest properties matching a set of patterns along
4985 with their values, time stamps and flags.
4986 </desc>
4987 <param name="patterns" type="wstring" dir="in">
4988 <desc>
4989 The patterns to match the properties against, separated by '|'
4990 characters. If this is empty or NULL, all properties will match.
4991 </desc>
4992 </param>
4993 <param name="name" type="wstring" dir="out" safearray="yes">
4994 <desc>
4995 The names of the properties returned.
4996 </desc>
4997 </param>
4998 <param name="value" type="wstring" dir="out" safearray="yes">
4999 <desc>
5000 The values of the properties returned. The array entries match the
5001 corresponding entries in the @a name array.
5002 </desc>
5003 </param>
5004 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5005 <desc>
5006 The time stamps of the properties returned. The array entries match
5007 the corresponding entries in the @a name array.
5008 </desc>
5009 </param>
5010 <param name="flags" type="wstring" dir="out" safearray="yes">
5011 <desc>
5012 The flags of the properties returned. The array entries match the
5013 corresponding entries in the @a name array.
5014 </desc>
5015 </param>
5016 </method>
5017</interface>
5018
5019 <!--
5020 // IConsole
5021 /////////////////////////////////////////////////////////////////////////
5022 -->
5023
5024 <interface
5025 name="IConsoleCallback" extends="$unknown"
5026 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5027 wsmap="suppress"
5028 >
5029
5030 <method name="onMousePointerShapeChange">
5031 <desc>
5032 Notification when the guest mouse pointer shape has
5033 changed. The new shape data is given.
5034 </desc>
5035 <param name="visible" type="boolean" dir="in">
5036 <desc>
5037 Flag whether the pointer is visible.
5038 </desc>
5039 </param>
5040 <param name="alpha" type="boolean" dir="in">
5041 <desc>
5042 Flag whether the pointer has an alpha channel.
5043 </desc>
5044 </param>
5045 <param name="xHot" type="unsigned long" dir="in">
5046 <desc>
5047 The pointer hot spot x coordinate.
5048 </desc>
5049 </param>
5050 <param name="yHot" type="unsigned long" dir="in">
5051 <desc>
5052 The pointer hot spot y coordinate.
5053 </desc>
5054 </param>
5055 <param name="width" type="unsigned long" dir="in">
5056 <desc>
5057 Width of the pointer shape in pixels.
5058 </desc>
5059 </param>
5060 <param name="height" type="unsigned long" dir="in">
5061 <desc>
5062 Height of the pointer shape in pixels.
5063 </desc>
5064 </param>
5065 <param name="shape" type="octet" mod="ptr" dir="in">
5066 <desc>
5067 Address of the shape buffer.
5068
5069 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5070 followed by a 32-bpp XOR (color) mask.
5071
5072 For pointers without alpha channel the XOR mask pixels are 32
5073 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5074 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5075
5076 An AND mask is used for pointers with alpha channel, so if the
5077 callback does not support alpha, the pointer could be
5078 displayed as a normal color pointer.
5079
5080 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5081 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5082 height</tt>. The padding bits at the end of each scanline are
5083 undefined.
5084
5085 The XOR mask follows the AND mask on the next 4-byte aligned
5086 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5087 Bytes in the gap between the AND and the XOR mask are undefined.
5088 The XOR mask scanlines have no gap between them and the size of
5089 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5090
5091 <note>
5092 If @a shape is 0, only the pointer visibility is changed.
5093 </note>
5094 </desc>
5095 </param>
5096 </method>
5097
5098 <method name="onMouseCapabilityChange">
5099 <desc>
5100 Notification when the mouse capabilities reported by the
5101 guest have changed. The new capabilities are passed.
5102 </desc>
5103 <param name="supportsAbsolute" type="boolean" dir="in"/>
5104 <param name="needsHostCursor" type="boolean" dir="in"/>
5105 </method>
5106
5107 <method name="onKeyboardLedsChange">
5108 <desc>
5109 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5110 to alter the state of the keyboard LEDs.
5111 </desc>
5112 <param name="numLock" type="boolean" dir="in"/>
5113 <param name="capsLock" type="boolean" dir="in"/>
5114 <param name="scrollLock" type="boolean" dir="in"/>
5115 </method>
5116
5117 <method name="onStateChange">
5118 <desc>
5119 Notification when the execution state of the machine has changed.
5120 The new state will be given.
5121 </desc>
5122 <param name="state" type="MachineState" dir="in"/>
5123 </method>
5124
5125 <method name="onAdditionsStateChange">
5126 <desc>
5127 Notification when a Guest Additions property changes.
5128 Interested callees should query IGuest attributes to
5129 find out what has changed.
5130 </desc>
5131 </method>
5132
5133 <method name="onDVDDriveChange">
5134 <desc>
5135 Notification when a property of the
5136 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5137 Interested callees should use IDVDDrive methods to find out what has
5138 changed.
5139 </desc>
5140 </method>
5141
5142 <method name="onFloppyDriveChange">
5143 <desc>
5144 Notification when a property of the
5145 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5146 Interested callees should use IFloppyDrive methods to find out what
5147 has changed.
5148 </desc>
5149 </method>
5150
5151 <method name="onNetworkAdapterChange">
5152 <desc>
5153 Notification when a property of one of the
5154 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5155 changes. Interested callees should use INetworkAdapter methods and
5156 attributes to find out what has changed.
5157 </desc>
5158 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5159 <desc>Network adapter that is subject to change.</desc>
5160 </param>
5161 </method>
5162
5163 <method name="onSerialPortChange">
5164 <desc>
5165 Notification when a property of one of the
5166 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5167 Interested callees should use ISerialPort methods and attributes
5168 to find out what has changed.
5169 </desc>
5170 <param name="serialPort" type="ISerialPort" dir="in">
5171 <desc>Serial port that is subject to change.</desc>
5172 </param>
5173 </method>
5174
5175 <method name="onParallelPortChange">
5176 <desc>
5177 Notification when a property of one of the
5178 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5179 changes. Interested callees should use ISerialPort methods and
5180 attributes to find out what has changed.
5181 </desc>
5182 <param name="parallelPort" type="IParallelPort" dir="in">
5183 <desc>Parallel port that is subject to change.</desc>
5184 </param>
5185 </method>
5186
5187 <method name="onVRDPServerChange">
5188 <desc>
5189 Notification when a property of the
5190 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5191 Interested callees should use IVRDPServer methods and attributes to
5192 find out what has changed.
5193 </desc>
5194 </method>
5195
5196 <method name="onUSBControllerChange">
5197 <desc>
5198 Notification when a property of the virtual
5199 <link to="IMachine::USBController">USB controller</link> changes.
5200 Interested callees should use IUSBController methods and attributes to
5201 find out what has changed.
5202 </desc>
5203 </method>
5204
5205 <method name="onUSBDeviceStateChange">
5206 <desc>
5207 Notification when a USB device is attached to or detached from
5208 the virtual USB controller.
5209
5210 This notification is sent as a result of the indirect
5211 request to attach the device because it matches one of the
5212 machine USB filters, or as a result of the direct request
5213 issued by <link to="IConsole::attachUSBDevice"/> or
5214 <link to="IConsole::detachUSBDevice"/>.
5215
5216 This notification is sent in case of both a succeeded and a
5217 failed request completion. When the request succeeds, the @a
5218 error parameter is @c null, and the given device has been
5219 already added to (when @a attached is @c true) or removed from
5220 (when @a attached is @c false) the collection represented by
5221 <link to="IConsole::USBDevices"/>. On failure, the collection
5222 doesn't change and the @a error parameter represents the error
5223 message describing the failure.
5224
5225 </desc>
5226 <param name="device" type="IUSBDevice" dir="in">
5227 <desc>Device that is subject to state change.</desc>
5228 </param>
5229 <param name="attached" type="boolean" dir="in">
5230 <desc>
5231 <tt>true</tt> if the device was attached
5232 and <tt>false</tt> otherwise.
5233 </desc>
5234 </param>
5235 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5236 <desc>
5237 <tt>null</tt> on success or an error message object on
5238 failure.
5239 </desc>
5240 </param>
5241 </method>
5242
5243 <method name="onSharedFolderChange">
5244 <desc>
5245 Notification when a shared folder is added or removed.
5246 The @a scope argument defines one of three scopes:
5247 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5248 (<link to="Scope_Global">Global</link>),
5249 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5250 the machine (<link to="Scope_Machine">Machine</link>) or <link
5251 to="IConsole::sharedFolders">transient shared folders</link> of the
5252 machine (<link to="Scope_Session">Session</link>). Interested callees
5253 should use query the corresponding collections to find out what has
5254 changed.
5255 </desc>
5256 <param name="scope" type="Scope" dir="in">
5257 <desc>Scope of the notification.</desc>
5258 </param>
5259 </method>
5260
5261 <method name="onRuntimeError">
5262 <desc>
5263 Notification when an error happens during the virtual
5264 machine execution.
5265
5266 There are three kinds of runtime errors:
5267 <ul>
5268 <li><i>fatal</i></li>
5269 <li><i>non-fatal with retry</i></li>
5270 <li><i>non-fatal warnings</i></li>
5271 </ul>
5272
5273 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5274 to <tt>true</tt>. In case of fatal errors, the virtual machine
5275 execution is always paused before calling this notification, and
5276 the notification handler is supposed either to immediately save
5277 the virtual machine state using <link to="IConsole::saveState"/>
5278 or power it off using <link to="IConsole::powerDown"/>.
5279 Resuming the execution can lead to unpredictable results.
5280
5281 <b>Non-fatal</b> errors and warnings are indicated by the
5282 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5283 is in the Paused state by the time the error notification is
5284 received, it means that the user can <i>try to resume</i> the machine
5285 execution after attempting to solve the problem that caused the
5286 error. In this case, the notification handler is supposed
5287 to show an appropriate message to the user (depending on the
5288 value of the @a id parameter) that offers several actions such
5289 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5290 wants to retry, the notification handler should continue
5291 the machine execution using the <link to="IConsole::resume"/>
5292 call. If the machine execution is not Paused during this
5293 notification, then it means this notification is a <i>warning</i>
5294 (for example, about a fatal condition that can happen very soon);
5295 no immediate action is required from the user, the machine
5296 continues its normal execution.
5297
5298 Note that in either case the notification handler
5299 <b>must not</b> perform any action directly on a thread
5300 where this notification is called. Everything it is allowed to
5301 do is to post a message to another thread that will then talk
5302 to the user and take the corresponding action.
5303
5304 Currently, the following error identifiers are known:
5305 <ul>
5306 <li><tt>"HostMemoryLow"</tt></li>
5307 <li><tt>"HostAudioNotResponding"</tt></li>
5308 <li><tt>"VDIStorageFull"</tt></li>
5309 </ul>
5310
5311 <note>
5312 This notification is not designed to be implemented by
5313 more than one callback at a time. If you have multiple
5314 IConsoleCallback instances registered on the given
5315 IConsole object, make sure you simply do nothing but
5316 return @c S_OK from all but one of them that does actual
5317 user notification and performs necessary actions.
5318 </note>
5319
5320 </desc>
5321 <param name="fatal" type="boolean" dir="in">
5322 <desc>Whether the error is fatal or not</desc>
5323 </param>
5324 <param name="id" type="wstring" dir="in">
5325 <desc>Error identifier</desc>
5326 </param>
5327 <param name="message" type="wstring" dir="in">
5328 <desc>Optional error message</desc>
5329 </param>
5330 </method>
5331
5332 <method name="onCanShowWindow">
5333 <desc>
5334 Notification when a call to
5335 <link to="IMachine::canShowConsoleWindow"/> is made by a
5336 front-end to check if a subsequent call to
5337 <link to="IMachine::showConsoleWindow"/> can succeed.
5338
5339 The callee should give an answer appropriate to the current
5340 machine state in the @a canShow argument. This answer must
5341 remain valid at least until the next
5342 <link to="IConsole::state">machine state</link> change.
5343
5344 <note>
5345 This notification is not designed to be implemented by
5346 more than one callback at a time. If you have multiple
5347 IConsoleCallback instances registered on the given
5348 IConsole object, make sure you simply do nothing but
5349 return @c true and @c S_OK from all but one of them that
5350 actually manages console window activation.
5351 </note>
5352 </desc>
5353 <param name="canShow" type="boolean" dir="return">
5354 <desc>
5355 @c true if the console window can be shown and @c
5356 false otherwise.
5357 </desc>
5358 </param>
5359 </method>
5360
5361 <method name="onShowWindow">
5362 <desc>
5363 Notification when a call to
5364 <link to="IMachine::showConsoleWindow"/>
5365 requests the console window to be activated and brought to
5366 foreground on the desktop of the host PC.
5367
5368 This notification should cause the VM console process to
5369 perform the requested action as described above. If it is
5370 impossible to do it at a time of this notification, this
5371 method should return a failure.
5372
5373 Note that many modern window managers on many platforms
5374 implement some sort of focus stealing prevention logic, so
5375 that it may be impossible to activate a window without the
5376 help of the currently active application (which is supposedly
5377 an initiator of this notification). In this case, this method
5378 must return a non-zero identifier that represents the
5379 top-level window of the VM console process. The caller, if it
5380 represents a currently active process, is responsible to use
5381 this identifier (in a platform-dependent manner) to perform
5382 actual window activation.
5383
5384 This method must set @a winId to zero if it has performed all
5385 actions necessary to complete the request and the console
5386 window is now active and in foreground, to indicate that no
5387 further action is required on the caller's side.
5388
5389 <note>
5390 This notification is not designed to be implemented by
5391 more than one callback at a time. If you have multiple
5392 IConsoleCallback instances registered on the given
5393 IConsole object, make sure you simply do nothing but
5394 return @c S_OK from all but one of them that actually
5395 manages console window activation.
5396 </note>
5397 </desc>
5398 <param name="winId" type="unsigned long long" dir="return">
5399 <desc>
5400 Platform-dependent identifier of the top-level VM console
5401 window, or zero if this method has performed all actions
5402 necessary to implement the <i>show window</i> semantics for
5403 the given platform and/or this VirtualBox front-end.
5404 </desc>
5405 </param>
5406 </method>
5407
5408 </interface>
5409
5410 <interface
5411 name="IRemoteDisplayInfo" extends="$unknown"
5412 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5413 wsmap="struct"
5414 >
5415 <desc>
5416 Contains information about the remote display (VRDP) capabilities and status.
5417 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5418 </desc>
5419
5420 <attribute name="active" type="boolean" readonly="yes">
5421 <desc>
5422 Whether the remote display connection is active.
5423 </desc>
5424 </attribute>
5425
5426 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5427 <desc>
5428 How many times a client connected.
5429 </desc>
5430 </attribute>
5431
5432 <attribute name="beginTime" type="long long" readonly="yes">
5433 <desc>
5434 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5435 </desc>
5436 </attribute>
5437
5438 <attribute name="endTime" type="long long" readonly="yes">
5439 <desc>
5440 When the last connection was terminated or the current time, if
5441 connection is still active, in milliseconds since 1970-01-01 UTC.
5442 </desc>
5443 </attribute>
5444
5445 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5446 <desc>
5447 How many bytes were sent in last or current, if still active, connection.
5448 </desc>
5449 </attribute>
5450
5451 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5452 <desc>
5453 How many bytes were sent in all connections.
5454 </desc>
5455 </attribute>
5456
5457 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5458 <desc>
5459 How many bytes were received in last or current, if still active, connection.
5460 </desc>
5461 </attribute>
5462
5463 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5464 <desc>
5465 How many bytes were received in all connections.
5466 </desc>
5467 </attribute>
5468
5469 <attribute name="user" type="wstring" readonly="yes">
5470 <desc>
5471 Login user name supplied by the client.
5472 </desc>
5473 </attribute>
5474
5475 <attribute name="domain" type="wstring" readonly="yes">
5476 <desc>
5477 Login domain name supplied by the client.
5478 </desc>
5479 </attribute>
5480
5481 <attribute name="clientName" type="wstring" readonly="yes">
5482 <desc>
5483 The client name supplied by the client.
5484 </desc>
5485 </attribute>
5486
5487 <attribute name="clientIP" type="wstring" readonly="yes">
5488 <desc>
5489 The IP address of the client.
5490 </desc>
5491 </attribute>
5492
5493 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5494 <desc>
5495 The client software version number.
5496 </desc>
5497 </attribute>
5498
5499 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5500 <desc>
5501 Public key exchange method used when connection was established.
5502 Values: 0 - RDP4 public key exchange scheme.
5503 1 - X509 certificates were sent to client.
5504 </desc>
5505 </attribute>
5506
5507 </interface>
5508
5509 <interface
5510 name="IConsole" extends="$unknown"
5511 uuid="e3c6d4a1-a935-47ca-b16d-f9e9c496e53e"
5512 wsmap="managed"
5513 >
5514 <desc>
5515 The IConsole interface represents an interface to control virtual
5516 machine execution.
5517
5518 The console object that implements the IConsole interface is obtained
5519 from a session object after the session for the given machine has been
5520 opened using one of <link to="IVirtualBox::openSession"/>,
5521 <link to="IVirtualBox::openRemoteSession"/> or
5522 <link to="IVirtualBox::openExistingSession"/> methods.
5523
5524 Methods of the IConsole interface allow the caller to query the current
5525 virtual machine execution state, pause the machine or power it down, save
5526 the machine state or take a snapshot, attach and detach removable media
5527 and so on.
5528
5529 <see>ISession</see>
5530 </desc>
5531
5532 <attribute name="machine" type="IMachine" readonly="yes">
5533 <desc>
5534 Machine object this console is sessioned with.
5535 <note>
5536 This is a convenience property, it has the same value as
5537 <link to="ISession::machine"/> of the corresponding session
5538 object.
5539 </note>
5540 </desc>
5541 </attribute>
5542
5543 <attribute name="state" type="MachineState" readonly="yes">
5544 <desc>
5545 Current execution state of the machine.
5546 <note>
5547 This property always returns the same value as the corresponding
5548 property of the IMachine object this console is sessioned with.
5549 For the process that owns (executes) the VM, this is the
5550 preferable way of querying the VM state, because no IPC
5551 calls are made.
5552 </note>
5553 </desc>
5554 </attribute>
5555
5556 <attribute name="guest" type="IGuest" readonly="yes">
5557 <desc>Guest object.</desc>
5558 </attribute>
5559
5560 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5561 <desc>
5562 Virtual keyboard object.
5563 <note>
5564 If the machine is not running, any attempt to use
5565 the returned object will result in an error.
5566 </note>
5567 </desc>
5568 </attribute>
5569
5570 <attribute name="mouse" type="IMouse" readonly="yes">
5571 <desc>
5572 Virtual mouse object.
5573 <note>
5574 If the machine is not running, any attempt to use
5575 the returned object will result in an error.
5576 </note>
5577 </desc>
5578 </attribute>
5579
5580 <attribute name="display" type="IDisplay" readonly="yes">
5581 <desc>Virtual display object.
5582 <note>
5583 If the machine is not running, any attempt to use
5584 the returned object will result in an error.
5585 </note>
5586 </desc>
5587 </attribute>
5588
5589 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5590 <desc>Debugging interface.</desc>
5591 </attribute>
5592
5593 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
5594 <desc>
5595 Collection of USB devices currently attached to the virtual
5596 USB controller.
5597 <note>
5598 The collection is empty if the machine is not running.
5599 </note>
5600 </desc>
5601 </attribute>
5602
5603 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5604 <desc>
5605 List of USB devices currently attached to the remote VRDP client.
5606 Once a new device is physically attached to the remote host computer,
5607 it appears in this list and remains there until detached.
5608 </desc>
5609 </attribute>
5610
5611 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
5612 <desc>
5613 Collection of shared folders for the current session. These folders
5614 are called transient shared folders because they are available to the
5615 guest OS running inside the associated virtual machine only for the
5616 duration of the session (as opposed to
5617 <link to="IMachine::sharedFolders"/> which represent permanent shared
5618 folders). When the session is closed (e.g. the machine is powered down),
5619 these folders are automatically discarded.
5620
5621 New shared folders are added to the collection using
5622 <link to="#createSharedFolder"/>. Existing shared folders can be
5623 removed using <link to="#removeSharedFolder"/>.
5624 </desc>
5625 </attribute>
5626
5627 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5628 <desc>
5629 Interface that provides information on Remote Display (VRDP) connection.
5630 </desc>
5631 </attribute>
5632
5633 <method name="powerUp">
5634 <desc>
5635 Starts the virtual machine execution using the current machine
5636 state (that is, its current execution state, current settings and
5637 current hard disks).
5638
5639 If the machine is powered off or aborted, the execution will
5640 start from the beginning (as if the real hardware were just
5641 powered on).
5642
5643 If the machine is in the <link to="MachineState_Saved"/> state,
5644 it will continue its execution the point where the state has
5645 been saved.
5646
5647 <note>
5648 Unless you are trying to write a new VirtualBox front-end that
5649 performs direct machine execution (like the VirtualBox or VBoxSDL
5650 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5651 session opened by <link to="IVirtualBox::openSession"/> and use this
5652 session only to change virtual machine settings. If you simply want to
5653 start virtual machine execution using one of the existing front-ends
5654 (for example the VirtualBox GUI or headless server), simply use
5655 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5656 power up the machine automatically for you.
5657 </note>
5658
5659 <see>#saveState</see>
5660 <result name="VBOX_E_INVALID_VM_STATE">
5661 Virtual machine already running.
5662 </result>
5663 <result name="VBOX_E_HOST_ERROR">
5664 Host interface does not exist or name not set.
5665 </result>
5666 <result name="VBOX_E_FILE_ERROR">
5667 Invalid saved state file.
5668 </result>
5669 </desc>
5670 <param name="progress" type="IProgress" dir="return">
5671 <desc>Progress object to track the operation completion.</desc>
5672 </param>
5673 </method>
5674
5675 <method name="powerUpPaused">
5676 <desc>
5677 Identical to powerUp except that the VM will enter the
5678 <link to="MachineState_Paused"/> state, instead of
5679 <link to="MachineState_Running"/>.
5680
5681 <see>#powerUp</see>
5682 <result name="VBOX_E_INVALID_VM_STATE">
5683 Virtual machine already running.
5684 </result>
5685 <result name="VBOX_E_HOST_ERROR">
5686 Host interface does not exist or name not set.
5687 </result>
5688 <result name="VBOX_E_FILE_ERROR">
5689 Invalid saved state file.
5690 </result>
5691 </desc>
5692 <param name="progress" type="IProgress" dir="return">
5693 <desc>Progress object to track the operation completion.</desc>
5694 </param>
5695 </method>
5696
5697 <method name="powerDown">
5698 <desc>
5699 Stops the virtual machine execution.
5700 After this operation completes, the machine will go to the
5701 PoweredOff state.
5702
5703 @deprecated This method will be removed in VirtualBox 2.1 where the
5704 powerDownAsync() method will take its name. Do not use this method in
5705 the code.
5706 <result name="VBOX_E_INVALID_VM_STATE">
5707 Virtual machine must be Running, Paused or Stuck to be powered down.
5708 </result>
5709 <result name="VBOX_E_VM_ERROR">
5710 Unable to power off or destroy virtual machine.
5711 </result>
5712 </desc>
5713 </method>
5714
5715 <method name="powerDownAsync">
5716 <desc>
5717 Initiates the power down procedure to stop the virtual machine
5718 execution.
5719
5720 The completion of the power down procedure is tracked using the returned
5721 IProgress object. After the operation is complete, the machine will go
5722 to the PoweredOff state.
5723
5724 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5725 where the original powerDown() method will be removed. You will need to
5726 rename "powerDownAsync" to "powerDown" in your sources to make them
5727 build with version 2.1.
5728 <result name="VBOX_E_INVALID_VM_STATE">
5729 Virtual machine must be Running, Paused or Stuck to be powered down.
5730 </result>
5731 </desc>
5732 <param name="progress" type="IProgress" dir="return">
5733 <desc>Progress object to track the operation completion.</desc>
5734 </param>
5735 </method>
5736
5737 <method name="reset">
5738 <desc>Resets the virtual machine.
5739 <result name="VBOX_E_INVALID_VM_STATE">
5740 Virtual machine not in Running state.
5741 </result>
5742 <result name="VBOX_E_VM_ERROR">
5743 Virtual machine error in reset operation.
5744 </result>
5745 </desc>
5746 </method>
5747
5748 <method name="pause">
5749 <desc>Pauses the virtual machine execution.
5750 <result name="VBOX_E_INVALID_VM_STATE">
5751 Virtual machine not in Running state.
5752 </result>
5753 <result name="VBOX_E_VM_ERROR">
5754 Virtual machine error in suspend operation.
5755 </result>
5756 </desc>
5757 </method>
5758
5759 <method name="resume">
5760 <desc>Resumes the virtual machine execution.
5761 <result name="VBOX_E_INVALID_VM_STATE">
5762 Virtual machine not in Paused state.
5763 </result>
5764 <result name="VBOX_E_VM_ERROR">
5765 Virtual machine error in resume operation.
5766 </result>
5767 </desc>
5768 </method>
5769
5770 <method name="powerButton">
5771 <desc>Sends the ACPI power button event to the guest.
5772 <result name="VBOX_E_INVALID_VM_STATE">
5773 Virtual machine not in Running state.
5774 </result>
5775 <result name="VBOX_E_PDM_ERROR">
5776 Controlled power off failed.
5777 </result>
5778 </desc>
5779 </method>
5780
5781 <method name="sleepButton">
5782 <desc>Sends the ACPI sleep button event to the guest.
5783 <result name="VBOX_E_INVALID_VM_STATE">
5784 Virtual machine not in Running state.
5785 </result>
5786 <result name="VBOX_E_PDM_ERROR">
5787 Sending sleep button event failed.
5788 </result>
5789 </desc>
5790 </method>
5791
5792 <method name="getPowerButtonHandled">
5793 <desc>Checks if the last power button event was handled by guest.
5794 <result name="VBOX_E_PDM_ERROR">
5795 Checking if the event was handled by the guest OS failed.
5796 </result>
5797 </desc>
5798 <param name="handled" type="boolean" dir="return"/>
5799 </method>
5800
5801 <method name="getGuestEnteredACPIMode">
5802 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5803 G1 (sleeping). If this method returns false, the guest will
5804 most likely not respond to external ACPI events.
5805 <result name="VBOX_E_INVALID_VM_STATE">
5806 Virtual machine not in Running state.
5807 </result>
5808 </desc>
5809 <param name="entered" type="boolean" dir="return"/>
5810 </method>
5811
5812 <method name="saveState">
5813 <desc>
5814 Saves the current execution state of a running virtual machine
5815 and stops its execution.
5816
5817 After this operation completes, the machine will go to the
5818 Saved state. Next time it is powered up, this state will
5819 be restored and the machine will continue its execution from
5820 the place where it was saved.
5821
5822 This operation differs from taking a snapshot to the effect
5823 that it doesn't create new differencing hard disks. Also, once
5824 the machine is powered up from the state saved using this method,
5825 the saved state is deleted, so it will be impossible to return
5826 to this state later.
5827
5828 <note>
5829 On success, this method implicitly calls
5830 <link to="IMachine::saveSettings"/> to save all current machine
5831 settings (including runtime changes to the DVD drive, etc.).
5832 Together with the impossibility to change any VM settings when it is
5833 in the Saved state, this guarantees adequate hardware
5834 configuration of the machine when it is restored from the saved
5835 state file.
5836 </note>
5837
5838 <note>
5839 The machine must be in the Running or Paused state, otherwise
5840 the operation will fail.
5841 </note>
5842 <result name="VBOX_E_INVALID_VM_STATE">
5843 Virtual machine state neither Running nor Paused.
5844 </result>
5845 <result name="VBOX_E_FILE_ERROR">
5846 Failed to create directory for saved state file.
5847 </result>
5848
5849 <see><link to="#takeSnapshot"/></see>
5850 </desc>
5851 <param name="progress" type="IProgress" dir="return">
5852 <desc>Progress object to track the operation completion.</desc>
5853 </param>
5854 </method>
5855
5856 <method name="adoptSavedState">
5857 <desc>
5858 Associates the given saved state file to the virtual machine.
5859
5860 On success, the machine will go to the Saved state. Next time it is
5861 powered up, it will be restored from the adopted saved state and
5862 continue execution from the place where the saved state file was
5863 created.
5864
5865 The specified saved state file path may be absolute or relative to the
5866 folder the VM normally saves the state to (usually,
5867 <link to="IMachine::snapshotFolder"/>).
5868
5869 <note>
5870 It's a caller's responsibility to make sure the given saved state
5871 file is compatible with the settings of this virtual machine that
5872 represent its virtual hardware (memory size, hard disk configuration
5873 etc.). If there is a mismatch, the behavior of the virtual machine
5874 is undefined.
5875 </note>
5876 <result name="VBOX_E_INVALID_VM_STATE">
5877 Virtual machine state neither PoweredOff nor Aborted.
5878 </result>
5879 </desc>
5880 <param name="savedStateFile" type="wstring" dir="in">
5881 <desc>Path to the saved state file to adopt.</desc>
5882 </param>
5883 </method>
5884
5885 <method name="discardSavedState">
5886 <desc>
5887 Discards (deletes) the saved state of the virtual machine
5888 previously created by <link to="#saveState"/>. Next time the
5889 machine is powered up, a clean boot will occur.
5890 <note>
5891 This operation is equivalent to resetting or powering off
5892 the machine without doing a proper shutdown in the guest OS.
5893 </note>
5894 <result name="VBOX_E_INVALID_VM_STATE">
5895 Virtual machine not in state Saved.
5896 </result>
5897 </desc>
5898 </method>
5899
5900 <method name="getDeviceActivity">
5901 <desc>
5902 Gets the current activity type of a given device or device group.
5903 <result name="E_INVALIDARG">
5904 Invalid device type.
5905 </result>
5906 </desc>
5907 <param name="type" type="DeviceType" dir="in"/>
5908 <param name="activity" type="DeviceActivity" dir="return"/>
5909 </method>
5910
5911 <method name="attachUSBDevice">
5912 <desc>
5913 Attaches a host USB device with the given UUID to the
5914 USB controller of the virtual machine.
5915
5916 The device needs to be in one of the following states:
5917 <link to="USBDeviceState_Busy"/>,
5918 <link to="USBDeviceState_Available"/> or
5919 <link to="USBDeviceState_Held"/>,
5920 otherwise an error is immediately returned.
5921
5922 When the device state is
5923 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5924 be returned if the host computer refuses to release it for some reason.
5925
5926 <see>IUSBController::deviceFilters, USBDeviceState</see>
5927 <result name="VBOX_E_INVALID_VM_STATE">
5928 Virtual machine state neither Running nor Paused.
5929 </result>
5930 <result name="VBOX_E_PDM_ERROR">
5931 Virtual machine does not have a USB controller.
5932 </result>
5933 </desc>
5934 <param name="id" type="uuid" dir="in">
5935 <desc>UUID of the host USB device to attach.</desc>
5936 </param>
5937 </method>
5938
5939 <method name="detachUSBDevice">
5940 <desc>
5941 Detaches an USB device with the given UUID from the USB controller
5942 of the virtual machine.
5943
5944 After this method succeeds, the VirtualBox server re-initiates
5945 all USB filters as if the device were just physically attached
5946 to the host, but filters of this machine are ignored to avoid
5947 a possible automatic re-attachment.
5948
5949 <see>IUSBController::deviceFilters, USBDeviceState</see>
5950
5951 <result name="VBOX_E_PDM_ERROR">
5952 Virtual machine does not have a USB controller.
5953 </result>
5954 <result name="E_INVALIDARG">
5955 USB device not attached to this virtual machine.
5956 </result>
5957 </desc>
5958 <param name="id" type="uuid" dir="in">
5959 <desc>UUID of the USB device to detach.</desc>
5960 </param>
5961 <param name="device" type="IUSBDevice" dir="return">
5962 <desc>Detached USB device.</desc>
5963 </param>
5964 </method>
5965
5966 <method name="createSharedFolder">
5967 <desc>
5968 Creates a transient new shared folder by associating the given logical
5969 name with the given host path, adds it to the collection of shared
5970 folders and starts sharing it. Refer to the description of
5971 <link to="ISharedFolder"/> to read more about logical names.
5972
5973 <result name="VBOX_E_INVALID_VM_STATE">
5974 Virtual machine in Saved state or currently changing state.
5975 </result>
5976 <result name="VBOX_E_FILE_ERROR">
5977 Shared folder already exists or not accessible.
5978 </result>
5979 </desc>
5980 <param name="name" type="wstring" dir="in">
5981 <desc>Unique logical name of the shared folder.</desc>
5982 </param>
5983 <param name="hostPath" type="wstring" dir="in">
5984 <desc>Full path to the shared folder in the host file system.</desc>
5985 </param>
5986 <param name="writable" type="boolean" dir="in">
5987 <desc>Whether the share is writable or readonly</desc>
5988 </param>
5989 </method>
5990
5991 <method name="removeSharedFolder">
5992 <desc>
5993 Removes a transient shared folder with the given name previously
5994 created by <link to="#createSharedFolder"/> from the collection of
5995 shared folders and stops sharing it.
5996 <result name="VBOX_E_INVALID_VM_STATE">
5997 Virtual machine in Saved state or currently changing state.
5998 </result>
5999 <result name="VBOX_E_FILE_ERROR">
6000 Shared folder does not exists.
6001 </result>
6002 </desc>
6003 <param name="name" type="wstring" dir="in">
6004 <desc>Logical name of the shared folder to remove.</desc>
6005 </param>
6006 </method>
6007
6008 <method name="takeSnapshot">
6009 <desc>
6010 Saves the current execution state and all settings of the
6011 machine and creates differencing images for all
6012 normal (non-independent) hard disks.
6013
6014 This method can be called for a PoweredOff, Saved, Running or
6015 Paused virtual machine. When the machine is PoweredOff, an
6016 offline <link to="ISnapshot">snapshot</link> is created,
6017 in all other cases -- an online snapshot.
6018
6019 The taken snapshot is always based on the
6020 <link to="IMachine::currentSnapshot">current
6021 snapshot</link> of the associated virtual machine and becomes
6022 a new current snapshot.
6023
6024 <note>
6025 This method implicitly calls <link to="IMachine::saveSettings"/> to
6026 save all current machine settings before taking an offline snapshot.
6027 </note>
6028
6029 <see>ISnapshot, <link to="#saveState"/></see>
6030 <result name="VBOX_E_INVALID_VM_STATE">
6031 Virtual machine currently changing state.
6032 </result>
6033 </desc>
6034 <param name="name" type="wstring" dir="in">
6035 <desc>Short name for the snapshot.</desc>
6036 </param>
6037 <param name="description" type="wstring" dir="in">
6038 <desc>Optional description of the snapshot.</desc>
6039 </param>
6040 <param name="progress" type="IProgress" dir="return">
6041 <desc>Progress object to track the operation completion.</desc>
6042 </param>
6043 </method>
6044
6045 <method name="discardSnapshot">
6046 <desc>
6047
6048 Starts discarding the specified snapshot. The execution state
6049 and settings of the associated machine stored in the snapshot
6050 will be deleted. The contents of all differencing hard disks of
6051 this snapshot will be merged with the contents of their
6052 dependent child hard disks to keep the, disks valid (in other
6053 words, all changes represented by hard disks being discarded
6054 will be propagated to their child hard disks). After that, this
6055 snapshot's differencing hard disks will be deleted. The parent
6056 of this snapshot will become a new parent for all its child
6057 snapshots.
6058
6059 If the discarded snapshot is the current one, its parent
6060 snapshot will become a new current snapshot. The current machine
6061 state is not directly affected in this case, except that
6062 currently attached differencing hard disks based on hard disks
6063 of the discarded snapshot will be also merged as described
6064 above.
6065
6066 If the discarded snapshot is the first one (the root snapshot)
6067 and it has exactly one child snapshot, this child snapshot will
6068 become the first snapshot after discarding. If there are no
6069 children at all (i.e. the first snapshot is the only snapshot of
6070 the machine), both the current and the first snapshot of the
6071 machine will be set to null. In all other cases, the first
6072 snapshot cannot be discarded.
6073
6074 You cannot discard the snapshot if it
6075 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6076 hard disks that have differencing hard disks based on them. Snapshots of
6077 such kind can be discarded only when every normal hard disk has either
6078 no children at all or exactly one child. In the former case, the normal
6079 hard disk simply becomes unused (i.e. not attached to any VM). In the
6080 latter case, it receives all the changes stored in the child hard disk,
6081 and then it replaces the child hard disk in the configuration of the
6082 corresponding snapshot or machine.
6083
6084 Also, you cannot discard the snapshot if it stores hard disks
6085 (of any type) having differencing child hard disks that belong
6086 to other machines. Such snapshots can be only discarded after
6087 you discard all snapshots of other machines containing "foreign"
6088 child disks, or detach these "foreign" child disks from machines
6089 they are attached to.
6090
6091 One particular example of the snapshot storing normal hard disks
6092 is the first snapshot of a virtual machine that had normal hard
6093 disks attached when taking the snapshot. Be careful when
6094 discarding such snapshots because this implicitly commits
6095 changes (made since the snapshot being discarded has been taken)
6096 to normal hard disks (as described above), which may be not what
6097 you want.
6098
6099 The virtual machine is put to
6100 the <link to="MachineState_Discarding">Discarding</link> state until
6101 the discard operation is completed.
6102
6103 <note>
6104 The machine must not be running, otherwise the operation
6105 will fail.
6106 </note>
6107
6108 <note>
6109 Child hard disks of all normal hard disks of the discarded snapshot
6110 must be accessible (see <link to="IMedium::state"/>) for this
6111 operation to succeed. In particular, this means that all virtual
6112 machines, whose hard disks are directly or indirectly based on the
6113 hard disks of discarded snapshot, must be powered off.
6114 </note>
6115 <note>
6116 Merging hard disk contents can be very time and disk space
6117 consuming, if these disks are big in size and have many
6118 children. However, if the snapshot being discarded is the last
6119 (head) snapshot on the branch, the operation will be rather
6120 quick.
6121 </note>
6122 <note>
6123 Note that discarding the current snapshot
6124 will implicitly call <link to="IMachine::saveSettings"/> to
6125 make all current machine settings permanent.
6126 </note>
6127 <result name="VBOX_E_INVALID_VM_STATE">
6128 Virtual machine is running.
6129 </result>
6130 </desc>
6131 <param name="id" type="uuid" dir="in">
6132 <desc>UUID of the snapshot to discard.</desc>
6133 </param>
6134 <param name="progress" type="IProgress" dir="return">
6135 <desc>Progress object to track the operation completion.</desc>
6136 </param>
6137 </method>
6138
6139 <method name="discardCurrentState">
6140 <desc>
6141 This operation is similar to <link to="#discardSnapshot"/> but
6142 affects the current machine state. This means that the state stored in
6143 the current snapshot will become a new current state, and all current
6144 settings of the machine and changes stored in differencing hard disks
6145 will be lost.
6146
6147 After this operation is successfully completed, new empty differencing
6148 hard disks are created for all normal hard disks of the machine.
6149
6150 If the current snapshot of the machine is an online snapshot, the
6151 machine will go to the <link to="MachineState_Saved"> saved
6152 state</link>, so that the next time it is powered on, the execution
6153 state will be restored from the current snapshot.
6154
6155 <note>
6156 The machine must not be running, otherwise the operation will fail.
6157 </note>
6158
6159 <note>
6160 If the machine state is <link to="MachineState_Saved">Saved</link>
6161 prior to this operation, the saved state file will be implicitly
6162 discarded (as if <link to="IConsole::discardSavedState"/> were
6163 called).
6164 </note>
6165
6166 <result name="VBOX_E_INVALID_VM_STATE">
6167 Virtual machine is running.
6168 </result>
6169 </desc>
6170 <param name="progress" type="IProgress" dir="return">
6171 <desc>Progress object to track the operation completion.</desc>
6172 </param>
6173 </method>
6174
6175 <method name="discardCurrentSnapshotAndState">
6176 <desc>
6177
6178 This method is equivalent to
6179 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6180 (currentSnapshot.id(), progress) followed by
6181 <link to="#discardCurrentState"/>.
6182
6183 As a result, the machine will be fully restored from the
6184 snapshot preceding the current snapshot, while both the current
6185 snapshot and the current machine state will be discarded.
6186
6187 If the current snapshot is the first snapshot of the machine (i.e. it
6188 has the only snapshot), the current machine state will be
6189 discarded <b>before</b> discarding the snapshot. In other words, the
6190 machine will be restored from its last snapshot, before discarding
6191 it. This differs from performing a single
6192 <link to="#discardSnapshot"/> call (note that no
6193 <link to="#discardCurrentState"/> will be possible after it)
6194 to the effect that the latter will preserve the current state instead of
6195 discarding it.
6196
6197 Unless explicitly mentioned otherwise, all remarks and
6198 limitations of the above two methods also apply to this method.
6199
6200 <note>
6201 The machine must not be running, otherwise the operation
6202 will fail.
6203 </note>
6204
6205 <note>
6206 If the machine state is <link to="MachineState_Saved">Saved</link>
6207 prior to this operation, the saved state file will be implicitly
6208 discarded (as if <link to="#discardSavedState"/> were
6209 called).
6210 </note>
6211
6212 <note>
6213 This method is more efficient than calling both of the above
6214 methods separately: it requires less IPC calls and provides
6215 a single progress object.
6216 </note>
6217
6218 <result name="VBOX_E_INVALID_VM_STATE">
6219 Virtual machine is running.
6220 </result>
6221 </desc>
6222 <param name="progress" type="IProgress" dir="return">
6223 <desc>Progress object to track the operation completion.</desc>
6224 </param>
6225 </method>
6226
6227 <method name="registerCallback">
6228 <desc>
6229 Registers a new console callback on this instance. The methods of the
6230 callback interface will be called by this instance when the appropriate
6231 event occurs.
6232 </desc>
6233 <param name="callback" type="IConsoleCallback" dir="in"/>
6234 </method>
6235
6236 <method name="unregisterCallback">
6237 <desc>
6238 Unregisters the console callback previously registered using
6239 <link to="#registerCallback"/>.
6240 <result name="E_INVALIDARG">
6241 Given @a callback handler is not registered.
6242 </result>
6243 </desc>
6244 <param name="callback" type="IConsoleCallback" dir="in"/>
6245 </method>
6246 </interface>
6247
6248 <!--
6249 // IHost
6250 /////////////////////////////////////////////////////////////////////////
6251 -->
6252
6253 <interface
6254 name="IHostDVDDrive" extends="$unknown"
6255 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6256 wsmap="managed"
6257 >
6258 <desc>
6259 The IHostDVDDrive interface represents the physical CD/DVD drive
6260 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6261 </desc>
6262
6263 <attribute name="name" type="wstring" readonly="yes">
6264 <desc>
6265 Returns the platform-specific device identifier.
6266 On DOS-like platforms, it is a drive name (e.g. R:).
6267 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6268 </desc>
6269 </attribute>
6270 <attribute name="description" type="wstring" readonly="yes">
6271 <desc>
6272 Returns a human readable description for the drive. This
6273 description usually contains the product and vendor name. A
6274 @c null string is returned if the description is not available.
6275 </desc>
6276 </attribute>
6277 <attribute name="udi" type="wstring" readonly="yes">
6278 <desc>
6279 Returns the unique device identifier for the drive. This
6280 attribute is reserved for future use instead of
6281 <link to="#name"/>. Currently it is not used and may return
6282 @c null on some platforms.
6283 </desc>
6284 </attribute>
6285
6286 </interface>
6287
6288 <enumerator
6289 name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
6290 uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
6291 />
6292
6293 <collection
6294 name="IHostDVDDriveCollection" type="IHostDVDDrive"
6295 enumerator="IHostDVDDriveEnumerator"
6296 uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
6297 readonly="yes"
6298 >
6299 <method name="findByName">
6300 <desc>
6301 Searches this collection for a host drive with the given name.
6302 <note>
6303 The method returns an error if the given name does not
6304 correspond to any host drive in the collection.
6305 </note>
6306 </desc>
6307 <param name="name" type="wstring" dir="in">
6308 <desc>Name of the host drive to search for</desc>
6309 </param>
6310 <param name="drive" type="IHostDVDDrive" dir="return">
6311 <desc>Found host drive object</desc>
6312 </param>
6313 </method>
6314 </collection>
6315
6316 <interface
6317 name="IHostFloppyDrive" extends="$unknown"
6318 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
6319 wsmap="managed"
6320 >
6321 <desc>
6322 The IHostFloppyDrive interface represents the physical floppy drive
6323 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6324 </desc>
6325 <attribute name="name" type="wstring" readonly="yes">
6326 <desc>
6327 Returns the platform-specific device identifier.
6328 On DOS-like platforms, it is a drive name (e.g. A:).
6329 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6330 </desc>
6331 </attribute>
6332 <attribute name="description" type="wstring" readonly="yes">
6333 <desc>
6334 Returns a human readable description for the drive. This
6335 description usually contains the product and vendor name. A
6336 @c null string is returned if the description is not available.
6337 </desc>
6338 </attribute>
6339 <attribute name="udi" type="wstring" readonly="yes">
6340 <desc>
6341 Returns the unique device identifier for the drive. This
6342 attribute is reserved for future use instead of
6343 <link to="#name"/>. Currently it is not used and may return
6344 @c null on some platforms.
6345 </desc>
6346 </attribute>
6347 </interface>
6348
6349 <enumerator
6350 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
6351 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
6352 />
6353
6354 <collection
6355 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
6356 enumerator="IHostFloppyDriveEnumerator"
6357 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
6358 readonly="yes"
6359 >
6360 <method name="findByName">
6361 <desc>
6362 Searches this collection for a host drive with the given name.
6363 <note>
6364 The method returns an error if the given name does not
6365 correspond to any host drive in the collection.
6366 </note>
6367 </desc>
6368 <param name="name" type="wstring" dir="in">
6369 <desc>Name of the host drive to search for</desc>
6370 </param>
6371 <param name="drive" type="IHostFloppyDrive" dir="return">
6372 <desc>Found host drive object</desc>
6373 </param>
6374 </method>
6375 </collection>
6376
6377 <enum
6378 name="HostNetworkInterfaceType"
6379 uuid="763754FA-3246-4539-9590-9E603EDBF706"
6380 >
6381 <desc>
6382 Type of encapsulation. Ethernet encapsulation includes both wired and
6383 wireless Ethernet connections.
6384 <see>IHostNetworkInterface</see>
6385 </desc>
6386
6387 <const name="Unknown" value="0">
6388 <desc>
6389 The type of interface cannot be determined.
6390 </desc>
6391 </const>
6392 <const name="Ethernet" value="1">
6393 <desc>
6394 Ethernet frame encapsulation.
6395 </desc>
6396 </const>
6397 <const name="PPP" value="2">
6398 <desc>
6399 Point-to-point protocol encapsulation.
6400 </desc>
6401 </const>
6402 <const name="SLIP" value="3">
6403 <desc>
6404 Serial line IP encapsulation.
6405 </desc>
6406 </const>
6407 </enum>
6408
6409 <enum
6410 name="HostNetworkInterfaceStatus"
6411 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6412 >
6413 <desc>
6414 Current status of the interface.
6415 <see>IHostNetworkInterface</see>
6416 </desc>
6417
6418 <const name="Unknown" value="0">
6419 <desc>
6420 The state of interface cannot be determined.
6421 </desc>
6422 </const>
6423 <const name="Up" value="1">
6424 <desc>
6425 The interface is fully operational.
6426 </desc>
6427 </const>
6428 <const name="Down" value="2">
6429 <desc>
6430 The interface is not functioning.
6431 </desc>
6432 </const>
6433 </enum>
6434
6435 <interface
6436 name="IHostNetworkInterface" extends="$unknown"
6437 uuid="832720ac-2df6-41d4-a867-a0b40df14c7f"
6438 wsmap="managed"
6439 >
6440 <desc>
6441 Reprents one of host's network interfaces. IP V6 address and network
6442 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6443 separated by colons.
6444 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6445 </desc>
6446 <attribute name="name" type="wstring" readonly="yes">
6447 <desc>Returns the host network interface name.</desc>
6448 </attribute>
6449
6450 <attribute name="id" type="uuid" readonly="yes">
6451 <desc>Returns the interface UUID.</desc>
6452 </attribute>
6453
6454 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6455 <desc>Returns the IP V4 address of the interface.</desc>
6456 </attribute>
6457
6458 <attribute name="networkMask" type="unsigned long" readonly="yes">
6459 <desc>Returns the network mask of the interface.</desc>
6460 </attribute>
6461
6462 <attribute name="IPV6Address" type="wstring" readonly="yes">
6463 <desc>Returns the IP V6 address of the interface.</desc>
6464 </attribute>
6465
6466 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6467 <desc>Returns the IP V6 network mask of the interface.</desc>
6468 </attribute>
6469
6470 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6471 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6472 </attribute>
6473
6474 <attribute name="type" type="HostNetworkInterfaceType" readonly="yes">
6475 <desc>Type of protocol encapsulation used.</desc>
6476 </attribute>
6477
6478 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6479 <desc>Status of the interface.</desc>
6480 </attribute>
6481 </interface>
6482
6483 <interface
6484 name="IHost" extends="$unknown"
6485 uuid="7c172c42-b209-4bdc-9ddf-a84f222bd59a"
6486 wsmap="managed"
6487 >
6488 <desc>
6489 The IHost interface represents the physical machine that this VirtualBox
6490 installation runs on.
6491
6492 An object implementing this interface is returned by the
6493 <link to="IVirtualBox::host" /> attribute. This interface contains
6494 read-only information about the host's physical hardware (such as what
6495 processors and disks are available, what the host operating system is,
6496 and so on) and also allows for manipulating some of the host's hardware,
6497 such as global USB device filters and host interface networking.
6498
6499 </desc>
6500 <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
6501 <desc>List of DVD drives available on the host.</desc>
6502 </attribute>
6503
6504 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
6505 <desc>List of floppy drives available on the host.</desc>
6506 </attribute>
6507
6508 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6509 <desc>
6510 List of USB devices currently attached to the host.
6511 Once a new device is physically attached to the host computer,
6512 it appears in this list and remains there until detached.
6513
6514 <note>
6515 This method may set a @ref com_warnings "warning result code".
6516 </note>
6517 <note>
6518 If USB functionality is not available in the given edition of
6519 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6520 </note>
6521 </desc>
6522 </attribute>
6523
6524 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
6525 <desc>
6526 List of USB device filters in action.
6527 When a new device is physically attached to the host computer,
6528 filters from this list are applied to it (in order they are stored
6529 in the list). The first matched filter will determine the
6530 <link to="IHostUSBDeviceFilter::action">action</link>
6531 performed on the device.
6532
6533 Unless the device is ignored by these filters, filters of all
6534 currently running virtual machines
6535 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6536
6537 <note>
6538 This method may set a @ref com_warnings "warning result code".
6539 </note>
6540 <note>
6541 If USB functionality is not available in the given edition of
6542 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6543 </note>
6544
6545 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6546 </desc>
6547 </attribute>
6548
6549 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6550 <desc>List of host network interfaces currently defined on the host.</desc>
6551 </attribute>
6552
6553 <attribute name="processorCount" type="unsigned long" readonly="yes">
6554 <desc>Number of (logical) CPUs installed in the host system.</desc>
6555 </attribute>
6556
6557 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6558 <desc>Number of (logical) CPUs online in the host system.</desc>
6559 </attribute>
6560
6561 <method name="getProcessorSpeed">
6562 <desc>Query the (approximate) maximum speed of a specified host CPU in
6563 Megahertz.
6564 </desc>
6565 <param name="cpuId" type="unsigned long" dir="in">
6566 <desc>
6567 Identifier of the CPU.
6568 </desc>
6569 </param>
6570 <param name="speed" type="unsigned long" dir="return">
6571 <desc>
6572 Speed value. 0 is returned if value is not known or @a cpuId is
6573 invalid.
6574 </desc>
6575 </param>
6576 </method>
6577
6578 <method name="getProcessorFeature">
6579 <desc>Query whether a CPU feature is supported or not.</desc>
6580 <param name="feature" type="ProcessorFeature" dir="in">
6581 <desc>
6582 CPU Feature identifier.
6583 </desc>
6584 </param>
6585 <param name="supported" type="boolean" dir="return">
6586 <desc>
6587 Feature is supported or not.
6588 </desc>
6589 </param>
6590 </method>
6591
6592 <method name="getProcessorDescription">
6593 <desc>Query the model string of a specified host CPU.
6594 <note>
6595 This function is not implemented in the current version of the
6596 product.
6597 </note>
6598 </desc>
6599 <param name="cpuId" type="unsigned long" dir="in">
6600 <desc>
6601 Identifier of the CPU.
6602 </desc>
6603 </param>
6604 <param name="description" type="wstring" dir="return">
6605 <desc>
6606 Model string. A NULL string is returned if value is not known or
6607 @a cpuId is invalid.
6608 </desc>
6609 </param>
6610 </method>
6611
6612 <attribute name="memorySize" type="unsigned long" readonly="yes">
6613 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6614 </attribute>
6615
6616 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6617 <desc>Available system memory in the host system.</desc>
6618 </attribute>
6619
6620 <attribute name="operatingSystem" type="wstring" readonly="yes">
6621 <desc>Name of the host system's operating system.</desc>
6622 </attribute>
6623
6624 <attribute name="OSVersion" type="wstring" readonly="yes">
6625 <desc>Host operating system's version string.</desc>
6626 </attribute>
6627
6628 <attribute name="UTCTime" type="long long" readonly="yes">
6629 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6630 </attribute>
6631
6632<if target="midl">
6633 <method name="createHostNetworkInterface">
6634 <desc>
6635 Creates a new adapter for Host Interface Networking.
6636 <result name="E_INVALIDARG">
6637 Host network interface @a name already exists.
6638 </result>
6639 </desc>
6640 <param name="name" type="wstring" dir="in">
6641 <desc>
6642 Adapter name.
6643 </desc>
6644 </param>
6645 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6646 <desc>
6647 Created host interface object.
6648 </desc>
6649 </param>
6650 <param name="progress" type="IProgress" dir="return">
6651 <desc>
6652 Progress object to track the operation completion.
6653 </desc>
6654 </param>
6655 </method>
6656 <method name="removeHostNetworkInterface">
6657 <desc>
6658 Removes the given host network interface.
6659 <result name="VBOX_E_OBJECT_NOT_FOUND">
6660 No host network interface matching @a id found.
6661 </result>
6662 </desc>
6663 <param name="id" type="uuid" dir="in">
6664 <desc>
6665 Adapter GUID.
6666 </desc>
6667 </param>
6668 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6669 <desc>
6670 Removed host interface object.
6671 </desc>
6672 </param>
6673 <param name="progress" type="IProgress" dir="return">
6674 <desc>
6675 Progress object to track the operation completion.
6676 </desc>
6677 </param>
6678 </method>
6679</if>
6680
6681 <method name="createUSBDeviceFilter">
6682 <desc>
6683 Creates a new USB device filter. All attributes except
6684 the filter name are set to <tt>null</tt> (any match),
6685 <i>active</i> is <tt>false</tt> (the filter is not active).
6686
6687 The created filter can be added to the list of filters using
6688 <link to="#insertUSBDeviceFilter"/>.
6689
6690 <see>#USBDeviceFilters</see>
6691 </desc>
6692 <param name="name" type="wstring" dir="in">
6693 <desc>
6694 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6695 for more info.
6696 </desc>
6697 </param>
6698 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6699 <desc>Created filter object.</desc>
6700 </param>
6701 </method>
6702
6703 <method name="insertUSBDeviceFilter">
6704 <desc>
6705 Inserts the given USB device to the specified position
6706 in the list of filters.
6707
6708 Positions are numbered starting from <tt>0</tt>. If the specified
6709 position is equal to or greater than the number of elements in
6710 the list, the filter is added at the end of the collection.
6711
6712 <note>
6713 Duplicates are not allowed, so an attempt to insert a
6714 filter that is already in the list, will return an
6715 error.
6716 </note>
6717 <note>
6718 This method may set a @ref com_warnings "warning result code".
6719 </note>
6720 <note>
6721 If USB functionality is not available in the given edition of
6722 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6723 </note>
6724
6725 <see>#USBDeviceFilters</see>
6726
6727 <result name="VBOX_E_INVALID_OBJECT_STATE">
6728 USB device filter is not created within this VirtualBox instance.
6729 </result>
6730 <result name="E_INVALIDARG">
6731 USB device filter already in list.
6732 </result>
6733
6734 </desc>
6735 <param name="position" type="unsigned long" dir="in">
6736 <desc>Position to insert the filter to.</desc>
6737 </param>
6738 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6739 <desc>USB device filter to insert.</desc>
6740 </param>
6741 </method>
6742
6743 <method name="removeUSBDeviceFilter">
6744 <desc>
6745 Removes a USB device filter from the specified position in the
6746 list of filters.
6747
6748 Positions are numbered starting from <tt>0</tt>. Specifying a
6749 position equal to or greater than the number of elements in
6750 the list will produce an error.
6751
6752 <note>
6753 This method may set a @ref com_warnings "warning result code".
6754 </note>
6755 <note>
6756 If USB functionality is not available in the given edition of
6757 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6758 </note>
6759
6760 <see>#USBDeviceFilters</see>
6761
6762 <result name="E_INVALIDARG">
6763 USB device filter list empty or invalid @a position.
6764 </result>
6765
6766 </desc>
6767 <param name="position" type="unsigned long" dir="in">
6768 <desc>Position to remove the filter from.</desc>
6769 </param>
6770 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6771 <desc>Removed USB device filter.</desc>
6772 </param>
6773 </method>
6774
6775 <method name="findHostNetworkInterfaceByName">
6776 <desc>
6777 Searches through all host network interfaces for an interface with
6778 the given name.
6779 <note>
6780 The method returns an error if the given name does not
6781 correspond to any host network interface.
6782 </note>
6783 </desc>
6784 <param name="name" type="wstring" dir="in">
6785 <desc>Name of the host network interface to search for.</desc>
6786 </param>
6787 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6788 <desc>Found host network interface object.</desc>
6789 </param>
6790 </method>
6791 <method name="findHostNetworkInterfaceById">
6792 <desc>
6793 Searches through all host network interfaces for an interface with
6794 the given GUID.
6795 <note>
6796 The method returns an error if the given GUID does not
6797 correspond to any host network interface.
6798 </note>
6799 </desc>
6800 <param name="id" type="uuid" dir="in">
6801 <desc>GUID of the host network interface to search for.</desc>
6802 </param>
6803 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6804 <desc>Found host network interface object.</desc>
6805 </param>
6806 </method>
6807 </interface>
6808
6809 <!--
6810 // ISystemProperties
6811 /////////////////////////////////////////////////////////////////////////
6812 -->
6813
6814 <interface
6815 name="ISystemProperties"
6816 extends="$unknown"
6817 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6818 wsmap="managed"
6819 >
6820 <desc>
6821 The ISystemProperties interface represents global properties of the given
6822 VirtualBox installation.
6823
6824 These properties define limits and default values for various attributes
6825 and parameters. Most of the properties are read-only, but some can be
6826 changed by a user.
6827 </desc>
6828
6829 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6830 <desc>Minimum guest system memory in Megabytes.</desc>
6831 </attribute>
6832
6833 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6834 <desc>Maximum guest system memory in Megabytes.</desc>
6835 </attribute>
6836
6837 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6838 <desc>Minimum guest video memory in Megabytes.</desc>
6839 </attribute>
6840
6841 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6842 <desc>Maximum guest video memory in Megabytes.</desc>
6843 </attribute>
6844
6845 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6846 <desc>Minimum CPU count.</desc>
6847 </attribute>
6848
6849 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6850 <desc>Maximum CPU count.</desc>
6851 </attribute>
6852
6853 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6854 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6855 </attribute>
6856
6857 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6858 <desc>
6859 Number of network adapters associated with every
6860 <link to="IMachine"/> instance.
6861 </desc>
6862 </attribute>
6863
6864 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
6865 <desc>
6866 Number of serial ports associated with every
6867 <link to="IMachine"/> instance.
6868 </desc>
6869 </attribute>
6870
6871 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
6872 <desc>
6873 Number of parallel ports associated with every
6874 <link to="IMachine"/> instance.
6875 </desc>
6876 </attribute>
6877
6878 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
6879 <desc>
6880 Maximum device position in the boot order. This value corresponds
6881 to the total number of devices a machine can boot from, to make it
6882 possible to include all possible devices to the boot list.
6883 <see><link to="IMachine::setBootOrder"/></see>
6884 </desc>
6885 </attribute>
6886
6887 <attribute name="defaultMachineFolder" type="wstring">
6888 <desc>
6889 Full path to the default directory used to create new or open
6890 existing machines when a settings file name contains no
6891 path.
6892
6893 The initial value of this property is
6894 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
6895 VirtualBox_home</link><tt>&gt;/Machines</tt>.
6896
6897 <note>
6898 Setting this property to <tt>null</tt> will restore the
6899 initial value.
6900 </note>
6901 <note>
6902 When settings this property, the specified path can be
6903 absolute (full path) or relative
6904 to the <link to="IVirtualBox::homeFolder">
6905 VirtualBox home directory</link>.
6906 When reading this property, a full path is
6907 always returned.
6908 </note>
6909 <note>
6910 The specified path may not exist, it will be created
6911 when necessary.
6912 </note>
6913
6914 <see>
6915 <link to="IVirtualBox::createMachine"/>,
6916 <link to="IVirtualBox::openMachine"/>
6917 </see>
6918 </desc>
6919 </attribute>
6920
6921 <attribute name="defaultHardDiskFolder" type="wstring">
6922 <desc>
6923 Full path to the default directory used to create new or open existing
6924 virtual disks.
6925
6926 This path is used when the storage unit of a hard disk is a regular file
6927 in the host's file system and only a file name that contains no path is
6928 given.
6929
6930 The initial value of this property is
6931 <tt>&lt;</tt>
6932 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
6933 <tt>&gt;/HardDisks</tt>.
6934
6935 <note>
6936 Setting this property to <tt>null</tt> will restore the
6937 initial value.
6938 </note>
6939 <note>
6940 When settings this property, the specified path can be relative
6941 to the
6942 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
6943 absolute. When reading this property, a full path is
6944 always returned.
6945 </note>
6946 <note>
6947 The specified path may not exist, it will be created
6948 when necessary.
6949 </note>
6950
6951 <see>
6952 IHardDisk2,
6953 <link to="IVirtualBox::createHardDisk2"/>,
6954 <link to="IVirtualBox::openHardDisk2"/>,
6955 <link to="IMedium::location"/>
6956 </see>
6957 </desc>
6958 </attribute>
6959
6960 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
6961 <desc>
6962 List of all hard disk storage formats supported by this VirtualBox
6963 installation.
6964
6965 Keep in mind that the hard disk format identifier
6966 (<link to="IHardDiskFormat::id"/>) used in other API calls like
6967 <link to="IVirtualBox::createHardDisk2"/> to refer to a particular
6968 hard disk format is a case-insensitive string. This means that, for
6969 example, all of the following strings:
6970 <pre>
6971 "VDI"
6972 "vdi"
6973 "VdI"</pre>
6974 refer to the same hard disk format.
6975
6976 Note that the virtual hard disk framework is backend-based, therefore
6977 the list of supported formats depends on what backends are currently
6978 installed.
6979
6980 <see>
6981 <link to="IHardDiskFormat"/>,
6982 </see>
6983 </desc>
6984 </attribute>
6985
6986 <attribute name="defaultHardDiskFormat" type="wstring">
6987 <desc>
6988 Identifier of the default hard disk format used by VirtualBox.
6989
6990 The hard disk format set by this attribute is used by VirtualBox
6991 when the hard disk format was not specified explicitly. One example is
6992 <link to="IVirtualBox::createHardDisk2"/> with the <tt>null</tt>
6993 format argument. A more complex example is implicit creation of
6994 differencing hard disks when taking a snapshot of a virtual machine:
6995 this operation will try to use a format of the parent hard disk first
6996 and if this format does not support differencing hard disks the default
6997 format specified by this argument will be used.
6998
6999 The list of supported hard disk formats may be obtained by the
7000 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7001 format must have a capability to create differencing hard disks;
7002 otherwise opeartions that create hard disks implicitly may fail
7003 unexpectedly.
7004
7005 The initial value of this property is <tt>VDI</tt> in the current
7006 version of the VirtualBox product, but may change in the future.
7007
7008 <note>
7009 Setting this property to <tt>null</tt> will restore the
7010 initial value.
7011 </note>
7012
7013 <see>
7014 <link to="#hardDiskFormats"/>,
7015 <link to="IHardDiskFormat::id"/>,
7016 <link to="IVirtualBox::createHardDisk2"/>
7017 </see>
7018 </desc>
7019 </attribute>
7020
7021 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7022 <desc>
7023 Library that provides authentication for VRDP clients. The library
7024 is used if a virtual machine's authentication type is set to "external"
7025 in the VM RemoteDisplay configuration.
7026
7027 The system library extension (".DLL" or ".so") must be omitted.
7028 A full path can be specified; if not, then the library must reside on the
7029 system's default library path.
7030
7031 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7032 of that name in one of the default VirtualBox library directories.
7033
7034 For details about VirtualBox authentication libraries and how to implement
7035 them, please refer to the VirtualBox manual.
7036
7037 <note>
7038 Setting this property to <tt>null</tt> will restore the
7039 initial value.
7040 </note>
7041 </desc>
7042 </attribute>
7043
7044 <attribute name="webServiceAuthLibrary" type="wstring">
7045 <desc>
7046 Library that provides authentication for webservice clients. The library
7047 is used if a virtual machine's authentication type is set to "external"
7048 in the VM RemoteDisplay configuration and will be called from
7049 within the <link to="IWebsessionManager::logon" /> implementation.
7050
7051 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7052 there is no per-VM setting for this, as the webservice is a global
7053 resource (if it is running). Only for this setting (for the webservice),
7054 setting this value to a literal "null" string disables authentication,
7055 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7056 no matter what user name and password are supplied.
7057
7058 The initial value of this property is <tt>VRDPAuth</tt>,
7059 meaning that the webservice will use the same authentication
7060 library that is used by default for VBoxVRDP (again, see
7061 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7062 The format and calling convention of authentication libraries
7063 is the same for the webservice as it is for VBoxVRDP.
7064
7065 </desc>
7066 </attribute>
7067
7068 <attribute name="HWVirtExEnabled" type="boolean">
7069 <desc>
7070 This specifies the default value for hardware virtualization
7071 extensions. If enabled, virtual machines will make use of
7072 hardware virtualization extensions such as Intel VT-x and
7073 AMD-V by default. This value can be overridden by each VM
7074 using their <link to="IMachine::HWVirtExEnabled" /> property.
7075 </desc>
7076 </attribute>
7077
7078 <attribute name="LogHistoryCount" type="unsigned long">
7079 <desc>
7080 This value specifies how many old release log files are kept.
7081 </desc>
7082 </attribute>
7083 </interface>
7084
7085 <!--
7086 // IGuest
7087 /////////////////////////////////////////////////////////////////////////
7088 -->
7089
7090 <interface
7091 name="IGuestOSType" extends="$unknown"
7092 uuid="bc415228-eed0-402c-92f5-96fc4e2dd7e4"
7093 wsmap="struct"
7094 >
7095 <desc>
7096 </desc>
7097
7098 <attribute name="familyId" type="wstring" readonly="yes">
7099 <desc>Guest OS family identifier string.</desc>
7100 </attribute>
7101
7102 <attribute name="familyDescription" type="wstring" readonly="yes">
7103 <desc>Human readable description of the guest OS family.</desc>
7104 </attribute>
7105
7106 <attribute name="id" type="wstring" readonly="yes">
7107 <desc>Guest OS identifier string.</desc>
7108 </attribute>
7109
7110 <attribute name="description" type="wstring" readonly="yes">
7111 <desc>Human readable description of the guest OS.</desc>
7112 </attribute>
7113
7114 <attribute name="is64Bit" type="boolean" readonly="yes">
7115 <desc>Returns @c true if the given OS is 64-bit</desc>
7116 </attribute>
7117
7118 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7119 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7120 </attribute>
7121
7122 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7123 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7124 </attribute>
7125
7126 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7127 <desc>Recommended RAM size in Megabytes.</desc>
7128 </attribute>
7129
7130 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7131 <desc>Recommended video RAM size in Megabytes.</desc>
7132 </attribute>
7133
7134 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7135 <desc>Recommended hard disk size in Megabytes.</desc>
7136 </attribute>
7137
7138 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7139 <desc>Returns recommended network adapter for this OS type.</desc>
7140 </attribute>
7141 </interface>
7142
7143
7144 <enumerator
7145 name="IGuestOSTypeEnumerator" type="IGuestOSType"
7146 uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
7147 />
7148
7149 <collection
7150 name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
7151 uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
7152 readonly="yes"
7153 />
7154
7155 <interface
7156 name="IGuest" extends="$unknown"
7157 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7158
7159 wsmap="suppress"
7160 >
7161 <desc>
7162 The IGuest interface represents information about the operating system
7163 running inside the virtual machine. Used in
7164 <link to="IConsole::guest"/>.
7165
7166 IGuest provides information about the guest operating system, whether
7167 Guest Additions are installed and other OS-specific virtual machine
7168 properties.
7169 </desc>
7170
7171 <attribute name="OSTypeId" type="wstring" readonly="yes">
7172 <desc>
7173 Identifier of the Guest OS type as reported by the Guest
7174 Additions.
7175 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7176 an IGuestOSType object representing details about the given
7177 Guest OS type.
7178 <note>
7179 If Guest Additions are not installed, this value will be
7180 the same as <link to="IMachine::OSTypeId"/>.
7181 </note>
7182 </desc>
7183 </attribute>
7184
7185 <attribute name="additionsActive" type="boolean" readonly="yes">
7186 <desc>
7187 Flag whether the Guest Additions are installed and active
7188 in which case their version will be returned by the
7189 <link to="#additionsVersion"/> property.
7190 </desc>
7191 </attribute>
7192
7193 <attribute name="additionsVersion" type="wstring" readonly="yes">
7194 <desc>
7195 Version of the Guest Additions (3 decimal numbers separated
7196 by dots) or empty when the Additions are not installed. The
7197 Additions may also report a version but yet not be active as
7198 the version might be refused by VirtualBox (incompatible) or
7199 other failures occurred.
7200 </desc>
7201 </attribute>
7202
7203 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7204 <desc>
7205 Flag whether seamless guest display rendering (seamless desktop
7206 integration) is supported.
7207 </desc>
7208 </attribute>
7209
7210 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7211 <desc>
7212 Flag whether the guest is in graphics mode. If it is not, then
7213 seamless rendering will not work, resize hints are not immediately
7214 acted on and guest display resizes are probably not initiated by
7215 the guest additions.
7216 </desc>
7217 </attribute>
7218
7219 <attribute name="memoryBalloonSize" type="unsigned long">
7220 <desc>Guest system memory balloon size in megabytes.</desc>
7221 </attribute>
7222
7223 <attribute name="statisticsUpdateInterval" type="unsigned long">
7224 <desc>Interval to update guest statistics in seconds.</desc>
7225 </attribute>
7226
7227 <method name="setCredentials">
7228 <desc>
7229 Store login credentials that can be queried by guest operating
7230 systems with Additions installed. The credentials are transient
7231 to the session and the guest may also choose to erase them. Note
7232 that the caller cannot determine whether the guest operating system
7233 has queried or made use of the credentials.
7234
7235 <result name="VBOX_E_VM_ERROR">
7236 VMM device is not available.
7237 </result>
7238
7239 </desc>
7240 <param name="userName" type="wstring" dir="in">
7241 <desc>User name string, can be empty</desc>
7242 </param>
7243 <param name="password" type="wstring" dir="in">
7244 <desc>Password string, can be empty</desc>
7245 </param>
7246 <param name="domain" type="wstring" dir="in">
7247 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7248 </param>
7249 <param name="allowInteractiveLogon" type="boolean" dir="in">
7250 <desc>
7251 Flag whether the guest should alternatively allow the user to
7252 interactively specify different credentials. This flag might
7253 not be supported by all versions of the Additions.
7254 </desc>
7255 </param>
7256 </method>
7257
7258 <method name="getStatistic">
7259 <desc>
7260 Query specified guest statistics as reported by the VirtualBox Additions.
7261 </desc>
7262 <param name="cpuId" type="unsigned long" dir="in">
7263 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7264 </param>
7265 <param name="statistic" type="GuestStatisticType" dir="in">
7266 <desc>Statistic type.</desc>
7267 </param>
7268 <param name="statVal" type="unsigned long" dir="out">
7269 <desc>Statistics value</desc>
7270 </param>
7271 </method>
7272
7273 </interface>
7274
7275
7276 <!--
7277 // IProgress
7278 /////////////////////////////////////////////////////////////////////////
7279 -->
7280
7281 <interface
7282 name="IProgress" extends="$unknown"
7283 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7284 wsmap="managed"
7285 >
7286 <desc>
7287 The IProgress interface represents a task progress object that allows
7288 to wait for the completion of some asynchronous task.
7289
7290 The task consists of one or more operations that run sequentially,
7291 one by one. There is an individual percentage of completion of the
7292 current operation and the percentage of completion of the task as a
7293 whole. Similarly, you can wait for the completion of a particular
7294 operation or for the completion of the whole task.
7295
7296 Every operation is identified by a number (starting from 0)
7297 and has a separate description.
7298 </desc>
7299
7300 <attribute name="id" type="uuid" readonly="yes">
7301 <desc>ID of the task.</desc>
7302 </attribute>
7303
7304 <attribute name="description" type="wstring" readonly="yes">
7305 <desc>Description of the task.</desc>
7306 </attribute>
7307
7308 <attribute name="initiator" type="$unknown" readonly="yes">
7309 <desc>Initiator of the task.</desc>
7310 </attribute>
7311
7312 <attribute name="cancelable" type="boolean" readonly="yes">
7313 <desc>Whether the task can be interrupted.</desc>
7314 </attribute>
7315
7316 <attribute name="percent" type="long" readonly="yes">
7317 <desc>
7318 Current task progress value in percent.
7319 This value depends on how many operations are already complete.
7320 </desc>
7321 </attribute>
7322
7323 <attribute name="completed" type="boolean" readonly="yes">
7324 <desc>Whether the task has been completed.</desc>
7325 </attribute>
7326
7327 <attribute name="canceled" type="boolean" readonly="yes">
7328 <desc>Whether the task has been canceled.</desc>
7329 </attribute>
7330
7331 <attribute name="resultCode" type="result" readonly="yes">
7332 <desc>
7333 Result code of the progress task.
7334 Valid only if <link to="#completed"/> is true.
7335 </desc>
7336 </attribute>
7337
7338 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7339 <desc>
7340 Extended information about the unsuccessful result of the
7341 progress operation. May be NULL when no extended information
7342 is available.
7343 Valid only if <link to="#completed"/> is true and
7344 <link to="#resultCode"/> indicates a failure.
7345 </desc>
7346 </attribute>
7347
7348 <attribute name="operationCount" type="unsigned long" readonly="yes">
7349 <desc>
7350 Number of operations this task is divided into.
7351 Every task consists of at least one operation.
7352 </desc>
7353 </attribute>
7354
7355 <attribute name="operation" type="unsigned long" readonly="yes">
7356 <desc>Number of the operation being currently executed.</desc>
7357 </attribute>
7358
7359 <attribute name="operationDescription" type="wstring" readonly="yes">
7360 <desc>
7361 Description of the operation being currently executed.
7362 </desc>
7363 </attribute>
7364
7365 <attribute name="operationPercent" type="long" readonly="yes">
7366 <desc>Current operation progress value in percent.</desc>
7367 </attribute>
7368
7369 <method name="waitForCompletion">
7370 <desc>
7371 Waits until the task is done (including all operations) with a
7372 given timeout.
7373
7374 <result name="VBOX_E_IPRT_ERROR">
7375 Failed to wait for task completion.
7376 </result>
7377
7378 </desc>
7379 <param name="timeout" type="long" dir="in">
7380 <desc>
7381 Timeout value in milliseconds.
7382 Specify -1 for an indefinite wait.
7383 </desc>
7384 </param>
7385 </method>
7386
7387 <method name="waitForOperationCompletion">
7388 <desc>
7389 Waits until the given operation is done with a given timeout.
7390
7391 <result name="VBOX_E_IPRT_ERROR">
7392 Failed to wait for operation completion.
7393 </result>
7394
7395 </desc>
7396 <param name="operation" type="unsigned long" dir="in">
7397 <desc>
7398 Number of the operation to wait for.
7399 Must be less than <link to="#operationCount"/>.
7400 </desc>
7401 </param>
7402 <param name="timeout" type="long" dir="in">
7403 <desc>
7404 Timeout value in milliseconds.
7405 Specify -1 for an indefinite wait.
7406 </desc>
7407 </param>
7408 </method>
7409
7410 <method name="cancel">
7411 <desc>
7412 Cancels the task.
7413 <note>
7414 If <link to="#cancelable"/> is <tt>false</tt>, then
7415 this method will fail.
7416 </note>
7417
7418 <result name="VBOX_E_INVALID_OBJECT_STATE">
7419 Operation cannot be canceled.
7420 </result>
7421
7422 </desc>
7423 </method>
7424
7425 </interface>
7426
7427
7428 <!--
7429 // ISnapshot
7430 /////////////////////////////////////////////////////////////////////////
7431 -->
7432
7433 <enumerator
7434 name="ISnapshotEnumerator" type="ISnapshot"
7435 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
7436 />
7437
7438 <collection
7439 name="ISnapshotCollection" type="ISnapshot"
7440 enumerator="ISnapshotEnumerator"
7441 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
7442 readonly="yes"
7443 />
7444
7445 <interface
7446 name="ISnapshot" extends="$unknown"
7447 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
7448 wsmap="managed"
7449 >
7450 <desc>
7451 The ISnapshot interface represents a snapshot of the virtual
7452 machine.
7453
7454 The <i>snapshot</i> stores all the information about a virtual
7455 machine necessary to bring it to exactly the same state as it was at
7456 the time of taking the snapshot. The snapshot includes:
7457
7458 <ul>
7459 <li>all settings of the virtual machine (i.e. its hardware
7460 configuration: RAM size, attached hard disks, etc.)
7461 </li>
7462 <li>the execution state of the virtual machine (memory contents,
7463 CPU state, etc.).
7464 </li>
7465 </ul>
7466
7467 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7468 or <i>online</i> (taken when the VM is running). The execution
7469 state of the offline snapshot is called a <i>zero execution state</i>
7470 (it doesn't actually contain any information about memory contents
7471 or the CPU state, assuming that all hardware is just powered off).
7472
7473 <h3>Snapshot branches</h3>
7474
7475 Snapshots can be chained. Chained snapshots form a branch where
7476 every next snapshot is based on the previous one. This chaining is
7477 mostly related to hard disk branching (see <link to="IHardDisk2"/>
7478 description). This means that every time a new snapshot is created,
7479 a new differencing hard disk is implicitly created for all normal
7480 hard disks attached to the given virtual machine. This allows to
7481 fully restore hard disk contents when the machine is later reverted
7482 to a particular snapshot.
7483
7484 In the current implementation, multiple snapshot branches within one
7485 virtual machine are not allowed. Every machine has a single branch,
7486 and <link to="IConsole::takeSnapshot"/> operation adds a new
7487 snapshot to the top of that branch.
7488
7489 Existing snapshots can be discarded using
7490 <link to="IConsole::discardSnapshot"/>.
7491
7492 <h3>Current snapshot</h3>
7493
7494 Every virtual machine has a current snapshot, identified by
7495 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7496 a base for the <i>current machine state</i> (see below), to the effect
7497 that all normal hard disks of the machine and its execution
7498 state are based on this snapshot.
7499
7500 In the current implementation, the current snapshot is always the
7501 last taken snapshot (i.e. the head snapshot on the branch) and it
7502 cannot be changed.
7503
7504 The current snapshot is <tt>null</tt> if the machine doesn't have
7505 snapshots at all; in this case the current machine state is just
7506 current settings of this machine plus its current execution state.
7507
7508 <h3>Current machine state</h3>
7509
7510 The current machine state is what represented by IMachine instances got
7511 directly from IVirtualBox
7512 using <link
7513 to="IVirtualBox::getMachine">getMachine()</link>, <link
7514 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7515 to instances returned by <link to="ISnapshot::machine"/>). This state
7516 is always used when the machine is <link to="IConsole::powerUp"> powered
7517 on</link>.
7518
7519 The current machine state also includes the current execution state.
7520 If the machine is being currently executed
7521 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7522 and above), its execution state is just what's happening now.
7523 If it is powered off (<link to="MachineState_PoweredOff"/> or
7524 <link to="MachineState_Aborted"/>), it has a zero execution state.
7525 If the machine is saved (<link to="MachineState_Saved"/>), its
7526 execution state is what saved in the execution state file
7527 (<link to="IMachine::stateFilePath"/>).
7528
7529 If the machine is in the saved state, then, next time it is powered
7530 on, its execution state will be fully restored from the saved state
7531 file and the execution will continue from the point where the state
7532 was saved.
7533
7534 Similarly to snapshots, the current machine state can be discarded
7535 using <link to="IConsole::discardCurrentState"/>.
7536
7537 <h3>Taking and discarding snapshots</h3>
7538
7539 The table below briefly explains the meaning of every snapshot
7540 operation:
7541
7542 <table>
7543 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7544
7545 <tr><td><link to="IConsole::takeSnapshot"/></td>
7546
7547 <td>Save the current state of the virtual machine, including all
7548 settings, contents of normal hard disks and the current modifications
7549 to immutable hard disks (for online snapshots)</td>
7550
7551 <td>The current state is not changed (the machine will continue
7552 execution if it is being executed when the snapshot is
7553 taken)</td></tr>
7554
7555 <tr><td><link to="IConsole::discardSnapshot"/></td>
7556
7557 <td>Forget the state of the virtual machine stored in the snapshot:
7558 dismiss all saved settings and delete the saved execution state (for
7559 online snapshots)</td>
7560
7561 <td>Other snapshots (including child snapshots, if any) and the
7562 current state are not directly affected</td></tr>
7563
7564 <tr><td><link to="IConsole::discardCurrentState"/></td>
7565
7566 <td>Restore the current state of the virtual machine from the state
7567 stored in the current snapshot, including all settings and hard disk
7568 contents</td>
7569
7570 <td>The current state of the machine existed prior to this operation
7571 is lost</td></tr>
7572
7573 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7574
7575 <td>Completely revert the virtual machine to the state it was in
7576 before the current snapshot has been taken</td>
7577
7578 <td>The current state, as well as the current snapshot, are
7579 lost</td></tr>
7580
7581 </table>
7582
7583 </desc>
7584
7585 <attribute name="id" type="uuid" readonly="yes">
7586 <desc>UUID of the snapshot.</desc>
7587 </attribute>
7588
7589 <attribute name="name" type="wstring">
7590 <desc>Short name of the snapshot.</desc>
7591 </attribute>
7592
7593 <attribute name="description" type="wstring">
7594 <desc>Optional description of the snapshot.</desc>
7595 </attribute>
7596
7597 <attribute name="timeStamp" type="long long" readonly="yes">
7598 <desc>
7599 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7600 </desc>
7601 </attribute>
7602
7603 <attribute name="online" type="boolean" readonly="yes">
7604 <desc>
7605 <tt>true</tt> if this snapshot is an online snapshot and
7606 <tt>false</tt> otherwise.
7607
7608 <note>
7609 When this attribute is <tt>true</tt>, the
7610 <link to="IMachine::stateFilePath"/> attribute of the
7611 <link to="#machine"/> object associated with this snapshot
7612 will point to the saved state file. Otherwise, it will be
7613 <tt>null</tt>.
7614 </note>
7615 </desc>
7616 </attribute>
7617
7618 <attribute name="machine" type="IMachine" readonly="yes">
7619 <desc>
7620 Virtual machine this snapshot is taken on. This object
7621 stores all settings the machine had when taking this snapshot.
7622 <note>
7623 The returned machine object is immutable, i.e. no
7624 any settings can be changed.
7625 </note>
7626 </desc>
7627 </attribute>
7628
7629 <attribute name="parent" type="ISnapshot" readonly="yes">
7630 <desc>
7631 Parent snapshot (a snapshot this one is based on).
7632 <note>
7633 It's not an error to read this attribute on a snapshot
7634 that doesn't have a parent -- a null object will be
7635 returned to indicate this.
7636 </note>
7637 </desc>
7638 </attribute>
7639
7640 <attribute name="children" type="ISnapshotCollection" readonly="yes">
7641 <desc>
7642 Child snapshots (all snapshots having this one as a parent).
7643 <note>
7644 In the current implementation, there can be only one
7645 child snapshot, or no children at all, meaning this is the
7646 last (head) snapshot.
7647 </note>
7648 </desc>
7649 </attribute>
7650
7651 </interface>
7652
7653
7654 <!--
7655 // IMedia
7656 /////////////////////////////////////////////////////////////////////////
7657 -->
7658
7659 <enum
7660 name="MediaState"
7661 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7662 >
7663 <desc>
7664 Virtual media state.
7665 <see>IMedia</see>
7666 </desc>
7667
7668 <const name="NotCreated" value="0">
7669 <desc>
7670 Associated media storage does not exist (either was not created yet or
7671 was deleted).
7672 </desc>
7673 </const>
7674 <const name="Created" value="1">
7675 <desc>
7676 Associated storage exists and accessible.
7677 </desc>
7678 </const>
7679 <const name="LockedRead" value="2">
7680 <desc>
7681 Media is locked for reading, no data modification is possible.
7682 </desc>
7683 </const>
7684 <const name="LockedWrite" value="3">
7685 <desc>
7686 Media is locked for writing, no concurrent data reading or modification
7687 is possible.
7688 </desc>
7689 </const>
7690 <const name="Inaccessible" value="4">
7691 <desc>
7692 Associated media storage is not accessible.
7693 </desc>
7694 </const>
7695 <const name="Creating" value="5">
7696 <desc>
7697 Associated media storage is being created.
7698 </desc>
7699 </const>
7700 <const name="Deleting" value="6">
7701 <desc>
7702 Associated media storage is being deleted.
7703 </desc>
7704 </const>
7705 </enum>
7706
7707 <interface
7708 name="IMedium" extends="$unknown"
7709 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7710 wsmap="managed"
7711 >
7712 <desc>
7713 The IMedium interface is a common interface for all objects representing
7714 virtual media such as hard disks, DVD images.
7715
7716 Each medium is associated with a storage unit (such as a file on the host
7717 computer or a network resource) that holds actual data. The location of
7718 the storage unit is represented by the #location attribute. The value of
7719 this attribute is media type dependent.
7720
7721 The exact media type may be determined by querying the appropriate
7722 interface such as:
7723 <ul>
7724 <li>IHardDisk2 (virtual hard disks)</li>
7725 <li>IDVDImage2 (standard CD/DVD ISO image files)</li>
7726 <li>IFloppyImage2 (raw floppy image files)</li>
7727 </ul>
7728
7729 Existing media are opened using the following methods, depending on the
7730 media type:
7731 <ul>
7732 <li><link to="IVirtualBox::openHardDisk2"/></li>
7733 <li><link to="IVirtualBox::openDVDImage"/></li>
7734 <li><link to="IVirtualBox::openFloppyImage"/></li>
7735 </ul>
7736
7737 New hard disk media are created using the
7738 <link to="IVirtualBox::createHardDisk2"/> method. CD/DVD and floppy
7739 images are created outside VirtualBox, usually by storing a copy
7740 of the real medium of the corresponding type in a regular file.
7741
7742 <h3>Known Media</h3>
7743
7744 When an existing medium gets opened for the first time, it gets
7745 automatically remembered by the given VirtualBox installation or, in other
7746 words, becomes a <i>known medium</i>. Known media are stored in the media
7747 registry transparently maintained by VirtualBox and stored in settings
7748 files so that this registry is preserved when VirtualBox is not running.
7749
7750 Newly created virtual hard disks get remembered only when the associated
7751 storage unit is actually created (see IHardDisk2 for more details).
7752
7753 All known media can be enumerated using
7754 <link to="IVirtualBox::hardDisks2"/>,
7755 <link to="IVirtualBox::DVDImages"/> and
7756 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7757 quickly found by UUID using <link to="IVirtualBox::getHardDisk2"/>
7758 and similar methods or by location using
7759 <link to="IVirtualBox::findHardDisk2"/> and similar methods.
7760
7761 Only known media can be attached to virtual machines.
7762
7763 Removing known media from the media registry is performed when the given
7764 medium is closed using the <link to="#close"/> method or when its
7765 associated storage unit is deleted (only for hard disks).
7766
7767 <h3>Accessibility Checks</h3>
7768
7769 The given medium (with the created storage unit) is considered to be
7770 <i>accessible</i> when its storage unit can be successfully read from.
7771 Accessible media are indicated by the <link to="MediaState_Created"/>
7772 value of the <link to="#state"/> attribute. When the storage unit cannot
7773 be read (for example, because it is located on a disconnected network
7774 resource, or was accidentally deleted outside VirtualBox), the medium is
7775 considered to be <i>inaccessible</i> which is indicated by the
7776 <link to="MediaState_Inaccessible"/> state. The details about the reason
7777 of being inaccessible can be obtained using the
7778 <link to="#lastAccessError"/> attribute.
7779
7780 A new accessibility check is performed each time the <link to="#state"/>
7781 attribute is read. Please note that this check may take long time (several
7782 seconds or even minutes, depending on the storage unit location and
7783 format), and will block the calling thread until finished. For this
7784 reason, it is recommended to never read this attribute on the main UI
7785 thread to avoid making the UI unresponsive.
7786
7787 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7788 created for the first time), all known media are in the
7789 <link to="MediaState_Inaccessible"/> state but the value of the <link
7790 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7791 accessibility check is made on startup. This is done to make the
7792 VirtualBox object ready for serving requests as
7793 fast as possible and let the end-user application decide if it needs to
7794 check media accessibility right away or not.
7795 </desc>
7796
7797 <attribute name="id" type="uuid" readonly="yes">
7798 <desc>
7799 UUID of the medium. For a newly created medium, this value is a randomly
7800 generated UUID.
7801
7802 <note>
7803 For media in one of MediaState_NotCreated, MediaState_Creating or
7804 MediaState_Deleting states, the value of this property is undefined
7805 and will most likely be an empty UUID.
7806 </note>
7807 </desc>
7808 </attribute>
7809
7810 <attribute name="description" type="wstring">
7811 <desc>
7812 Optional description of the medium. For newly created media, the value
7813 of this attribute value is <tt>null</tt>.
7814
7815 Media types that don't support this attribute will return E_NOTIMPL in
7816 attempt to get or set this attribute's value.
7817
7818 <note>
7819 For some storage types, reading this attribute may return an outdated
7820 (last known) value when <link to="#state"/> is <link
7821 to="MediaState_Inaccessible"/> or <link
7822 to="MediaState_LockedWrite"/> because the value of this attribute is
7823 stored within the storage unit itself. Also note that changing the
7824 attribute value is not possible in such case, as well as when the
7825 medium is the <link to="MediaState_LockedRead"/> state.
7826 </note>
7827 </desc>
7828 </attribute>
7829
7830 <attribute name="state" type="MediaState" readonly="yes">
7831 <desc>
7832 Current media state. Inspect <link to="MediaState"/> values for details.
7833
7834 Reading this attribute may take long time because a new accessibility
7835 check of the storage unit is performed every time the attribute is read.
7836 This check may cause a significant delay if the storage unit of the
7837 given medium is, for example, a file located on a network share which is
7838 not currently accessible due to connectivity problems -- the call will
7839 not return until a timeout interval defined by the host OS for this
7840 operation expires.
7841
7842 If the last known state of the medium is <link to="MediaState_Created"/>
7843 and the accessibility check fails then the state would be set to
7844 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7845 may be used to get more details about the failure. If the state of the
7846 medium is <link to="MediaState_LockedRead"/> or
7847 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7848 non-null value of <link to="#lastAccessError"/> will indicate a failed
7849 accessibility check in this case.
7850
7851 Note that not all media states are applicable to certain media types.
7852 For example, states <link to="MediaState_NotCreated"/>,
7853 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7854 <link to="MediaState_Deleting"/> are meaningless for IDVDImage2 and
7855 IFloppyImage2 media.
7856 </desc>
7857 </attribute>
7858
7859 <attribute name="location" type="wstring">
7860 <desc>
7861 Location of the storage unit holding media data.
7862
7863 The format of the location string is media type specific. For media
7864 types that use regular files in a host's file system, the location
7865 string is just a full file name.
7866
7867 Some media types may support changing the storage unit location by
7868 simply changing the value of this property. If this operation is not
7869 supported, the implementation will return E_NOTIMPL in attempt to set
7870 this attribute's value.
7871
7872 When setting a value of the location attribute which is a regular file
7873 in the host's file system, the given file name may be either relative to
7874 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7875 absolute. Note that if the given location specification does not contain
7876 the file extension part then a proper default extension will be
7877 automatically appended by the implementation depending on the media type.
7878 </desc>
7879 </attribute>
7880
7881 <attribute name="name" type="wstring" readonly="yes">
7882 <desc>
7883 Name of the storage unit holding media data.
7884
7885 The returned string is a short version of the <link to="#location"/>
7886 attribute that is suitable for representing the medium in situations
7887 where the full location specification is too long (such as lists
7888 and comboboxes in GUI frontends). This string is also used by frontends
7889 to sort the media list alphabetically when needed.
7890
7891 For example, for locations that are regular files in the host's file
7892 system, the value of this attribute is just a file name (+ extension),
7893 without the path specification.
7894
7895 Note that as opposed to the <link to="#location"/> attribute, the name
7896 attribute will not necessary be unique for a list of media of the
7897 given type and format.
7898 </desc>
7899 </attribute>
7900
7901 <attribute name="size" type="unsigned long long" readonly="yes">
7902 <desc>
7903 Physical size of the storage unit used to hold media data (in bytes).
7904
7905 <note>
7906 For media whose <link to="#state"/> is <link
7907 to="MediaState_Inaccessible"/>, the value of this property is the
7908 last known size. For <link to="MediaState_NotCreated"/> media,
7909 the returned value is zero.
7910 </note>
7911 </desc>
7912 </attribute>
7913
7914 <attribute name="lastAccessError" type="wstring" readonly="yes">
7915 <desc>
7916 Text message that represents the result of the last accessibility
7917 check.
7918
7919 Accessibility checks are performed each time the <link to="#state"/>
7920 attribute is read. A @c null string is returned if the last
7921 accessibility check was successful. A non-null string indicates a
7922 failure and should normally describe a reason of the failure (for
7923 example, a file read error).
7924 </desc>
7925 </attribute>
7926
7927 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
7928 <desc>
7929 Array of UUIDs of all machines this medium is attached to.
7930
7931 A <tt>null</tt> array is returned if this medium is not attached to any
7932 machine or to any machine's snapshot.
7933
7934 <note>
7935 The returned array will include a machine even if this medium is not
7936 attached to that machine in the current state but attached to it in
7937 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
7938 details.
7939 </note>
7940 </desc>
7941 </attribute>
7942
7943 <method name="getSnapshotIds">
7944 <desc>
7945 Returns an array of UUIDs of all snapshots of the given machine where
7946 this medium is attached to it.
7947
7948 If the medium is attached to the machine in the current state, then the
7949 first element in the array will always be the ID of the queried machine
7950 (i.e. the value equal to the @c machineId argument), followed by
7951 snapshot IDs (if any).
7952
7953 If the medium is not attached to the machine in the current state, then
7954 the array will contain only snapshot IDs.
7955
7956 The returned array may be <tt>null</tt> if this medium is not attached
7957 to the given machine at all, neither in the current state nor in one of
7958 snapshots.
7959 </desc>
7960 <param name="machineId" type="uuid" dir="in">
7961 <desc>
7962 UUID of the machine to query.
7963 </desc>
7964 </param>
7965 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
7966 <desc>
7967 Array of snapshot UUIDs of the given machine using this medium.
7968 </desc>
7969 </param>
7970 </method>
7971
7972 <method name="lockRead">
7973 <desc>
7974 Locks this medium for reading.
7975
7976 The read lock is shared: many clients can simultaneously lock the
7977 same media for reading unless it is already locked for writing (see
7978 <link to="#lockWrite"/>) in which case an error is returned.
7979
7980 When the medium is locked for reading, it cannot be modified
7981 from within VirtualBox. This means that any method that changes
7982 the properties of this medium or contents of the storage unit
7983 will return an error (unless explicitly stated otherwise) and
7984 that an attempt to start a virtual machine that wants to modify
7985 the medium will also fail.
7986
7987 When the virtual machine is started up, it locks for reading all
7988 media it uses in read-only mode. If some media cannot be locked
7989 for reading, the startup procedure will fail.
7990
7991 The medium locked for reading must be unlocked using the <link
7992 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
7993 can be nested and must be followed by the same number of paired
7994 <link to="#unlockRead"/> calls.
7995
7996 This method sets the media state to <link
7997 to="MediaState_LockedRead"/> on success. The state prior to
7998 this call must be <link to="MediaState_Created"/>, <link
7999 to="MediaState_Inaccessible"/> or <link
8000 to="MediaState_LockedRead"/>. As you can see, inaccessible
8001 media can be locked too. This is not an error; this method
8002 performs a logical lock that prevents modifications of this
8003 media through the VirtualBox API, not a physical lock of the
8004 underlying storage unit.
8005
8006 This method returns the current state of the medium
8007 <b>before</b> the operation.
8008
8009 <result name="VBOX_E_INVALID_OBJECT_STATE">
8010 Invalid media state (e.g. not created, locked, inaccessible,
8011 creating, deleting).
8012 </result>
8013
8014 </desc>
8015 <param name="state" type="MediaState" dir="return">
8016 <desc>
8017 State of the medium after the operation.
8018 </desc>
8019 </param>
8020 </method>
8021
8022 <method name="unlockRead">
8023 <desc>
8024 Cancels the read lock previously set by <link to="#lockRead"/>.
8025
8026 Either on success or on failure, this method returns the current state
8027 of the medium <b>after</b> the operation.
8028
8029 See <link to="#lockRead"/> for more details.
8030
8031 <result name="VBOX_E_INVALID_OBJECT_STATE">
8032 Medium not locked for reading.
8033 </result>
8034
8035 </desc>
8036 <param name="state" type="MediaState" dir="return">
8037 <desc>
8038 State of the medium after the operation.
8039 </desc>
8040 </param>
8041 </method>
8042
8043 <method name="lockWrite">
8044 <desc>
8045 Locks this medium for writing.
8046
8047 The write lock, as opposed to <link to="#lockRead"/>, is
8048 exclusive: there may be only one client that holds a write lock
8049 and there may be no read locks while the write lock is held.
8050
8051 When the medium is locked for writing, it cannot be modified
8052 from within VirtualBox and it is not guaranteed that the values
8053 of its properties are up-to-date. Any method that changes the
8054 properties of this medium or contents of the storage unit will
8055 return an error ((unless explicitly stated otherwise) and an
8056 attempt to start a virtual machine that wants to modify or to
8057 read the medium will also fail.
8058
8059 When the virtual machine is started up, it locks for writing all
8060 media it uses to write data to. If some media cannot be locked
8061 for writing, the startup procedure will fail.
8062
8063 The medium locked for writing must be unlocked using the <link
8064 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8065 can <b>not</b> be nested and must be followed by a paired <link
8066 to="#unlockWrite"/> call.
8067
8068 This method sets the media state to <link
8069 to="MediaState_LockedWrite"/> on success. The state prior to
8070 this call must be <link to="MediaState_Created"/> or <link
8071 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8072 media can be locked too. This is not an error; this method
8073 performs a logical lock that prevents modifications of this
8074 media through the VirtualBox API, not a physical lock of the
8075 underlying storage unit.
8076
8077 Either on success or on failure, this method returns the current
8078 state of the medium <b>before</b> the operation.
8079
8080 <result name="VBOX_E_INVALID_OBJECT_STATE">
8081 Invalid media state (e.g. not created, locked, inaccessible,
8082 creating, deleting).
8083 </result>
8084
8085 </desc>
8086 <param name="state" type="MediaState" dir="return">
8087 <desc>
8088 State of the medium after the operation.
8089 </desc>
8090 </param>
8091 </method>
8092
8093 <method name="unlockWrite">
8094 <desc>
8095 Cancels the write lock previously set by <link to="#lockWrite"/>.
8096
8097 Either on success or on failure, this method returns the current
8098 state of the medium <b>after</b> the operation.
8099
8100 See <link to="#lockWrite"/> for more details.
8101
8102 <result name="VBOX_E_INVALID_OBJECT_STATE">
8103 Medium not locked for writing.
8104 </result>
8105
8106 </desc>
8107 <param name="state" type="MediaState" dir="return">
8108 <desc>
8109 State of the medium after the operation.
8110 </desc>
8111 </param>
8112 </method>
8113
8114 <method name="close">
8115 <desc>
8116 Closes this medium.
8117
8118 The hard disk must not be attached to any known virtual machine
8119 and must not have any known child hard disks, otherwise the
8120 operation will fail.
8121
8122 When the hard disk is successfully closed, it gets removed from
8123 the list of remembered hard disks, but its storage unit is not
8124 deleted. In particular, this means that this hard disk can be
8125 later opened again using the <link
8126 to="IVirtualBox::openHardDisk2"/> call.
8127
8128 Note that after this method successfully returns, the given hard
8129 disk object becomes uninitialized. This means that any attempt
8130 to call any of its methods or attributes will fail with the
8131 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8132
8133 <result name="VBOX_E_INVALID_OBJECT_STATE">
8134 Invalid media state (other than not created, created or
8135 inaccessible).
8136 </result>
8137 <result name="VBOX_E_OBJECT_IN_USE">
8138 Medium attached to virtual machine.
8139 </result>
8140 <result name="VBOX_E_FILE_ERROR">
8141 Settings file not accessible.
8142 </result>
8143 <result name="VBOX_E_XML_ERROR">
8144 Could not parse the settings file.
8145 </result>
8146
8147 </desc>
8148 </method>
8149
8150 </interface>
8151
8152
8153 <!--
8154 // IHardDisk2
8155 /////////////////////////////////////////////////////////////////////////
8156 -->
8157
8158 <enum
8159 name="HardDiskType"
8160 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8161 >
8162 <desc>
8163 Virtual hard disk type.
8164 <see>IHardDisk</see>
8165 </desc>
8166
8167 <const name="Normal" value="0">
8168 <desc>
8169 Normal hard disk (attached directly or indirectly, preserved
8170 when taking snapshots).
8171 </desc>
8172 </const>
8173 <const name="Immutable" value="1">
8174 <desc>
8175 Immutable hard disk (attached indirectly, changes are wiped out
8176 after powering off the virtual machine).
8177 </desc>
8178 </const>
8179 <const name="Writethrough" value="2">
8180 <desc>
8181 Write through hard disk (attached directly, ignored when
8182 taking snapshots).
8183 </desc>
8184 </const>
8185 </enum>
8186
8187 <interface
8188 name="IHardDisk2Attachment" extends="$unknown"
8189 uuid="fa2f4619-2c14-4090-869e-73b45419b7b5"
8190 wsmap="struct"
8191 >
8192 <desc>
8193 The IHardDisk2Attachment interface represents a hard disk attachment of a
8194 virtual machine.
8195
8196 Every hard disk attachment specifies a slot of the virtual hard disk
8197 controller and a virtual hard disk attached to this slot.
8198
8199 The array of hard disk attachments is returned by
8200 <link to="IMachine::hardDisk2Attachments"/>.
8201
8202 <note>
8203 With the COM API, this is an interface like all the others. With the
8204 webservice, this is mapped to a structure, so querying the attribute
8205 will not return an object, but a complete structure.
8206 </note>
8207 </desc>
8208 <attribute name="hardDisk" type="IHardDisk2" readonly="yes">
8209 <desc>Hard disk object associated with this attachment.</desc>
8210 </attribute>
8211
8212 <attribute name="bus" type="StorageBus" readonly="yes">
8213 <desc>Interface bus of this attachment.</desc>
8214 </attribute>
8215
8216 <attribute name="channel" type="long" readonly="yes">
8217 <desc>Channel number of this attachment.</desc>
8218 </attribute>
8219
8220 <attribute name="device" type="long" readonly="yes">
8221 <desc>Device slot number of this attachment.</desc>
8222 </attribute>
8223
8224 </interface>
8225
8226 <interface
8227 name="IHardDisk2" extends="IMedium"
8228 uuid="ed6e2525-c2fd-42a4-917a-7a9045ac9e15"
8229 wsmap="managed"
8230 >
8231 <desc>
8232 The IHardDisk2 interface represents a virtual hard disk drive
8233 used by a virtual machine.
8234
8235 Virtual hard disk objects virtualize the hard disk hardware and look like
8236 regular hard disks for the guest OS running inside the virtual machine.
8237
8238 <h3>Hard Disk Types</h3>
8239
8240 There are three types of hard disks:
8241 <link to="HardDiskType_Normal">Normal</link>,
8242 <link to="HardDiskType_Immutable">Immutable</link> and
8243 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8244 hard disk defines how the hard disk is attached to a virtual machine and
8245 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8246 machine with the attached hard disk is taken. The type of the hard disk is
8247 defined by the <link to="#type"/> attribute.
8248
8249 All hard disks can be also divided in two big groups: <i>base</i> hard
8250 disks and <i>differencing</i> hard disks. A base hard disk contains all
8251 sectors of the hard disk data in its storage unit and therefore can be
8252 used independently. On the contrary, a differencing hard disk contains
8253 only some part of the hard disk data (a subset of sectors) and needs
8254 another hard disk to get access to the missing sectors of data. This
8255 another hard disk is called a <i>parent</i> hard disk and defines a hard
8256 disk to which this differencing hard disk is known to be <i>linked to</i>.
8257 The parent hard disk may be itself a differencing hard disk. This
8258 way, differencing hard disks form a linked hard disk chain. This chain
8259 always ends with the base hard disk which is sometimes referred to as the
8260 root hard disk of this chain. Note that several differencing hard disks
8261 may be linked to the same parent hard disk. This way, all known hard disks
8262 form a hard disk tree which is based on their parent-child relationship.
8263
8264 Differencing hard disks can be distinguished from base hard disks by
8265 querying the <link to="#parent"/> attribute: base hard disks do not have
8266 parents they would depend on, so the value of this attribute is always
8267 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8268 the hard disk tree (from the child hard disk to its parent). It is also
8269 possible to walk down the tree using the <link to="#children"/>
8270 attribute.
8271
8272 Note that the type of all differencing hard disks is
8273 <link to="HardDiskType_Normal">Normal</link>; all other values are
8274 meaningless for them. Base hard disks may be of any type.
8275
8276 <h3>Creating Hard Disks</h3>
8277
8278 New base hard disks are created using
8279 <link to="IVirtualBox::createHardDisk2"/>. Existing hard disks are
8280 opened using <link to="IVirtualBox::openHardDisk2"/>. Differencing hard
8281 disks are usually implicitly created by VirtualBox when needed but may
8282 also be created explicitly using <link to="#createDiffStorage"/>.
8283
8284 After the hard disk is successfully created (including the storage unit)
8285 or opened, it becomes a known hard disk (remembered in the internal media
8286 registry). Known hard disks can be attached to a virtual machine, accessed
8287 through <link to="IVirtualBox::getHardDisk2"/> and
8288 <link to="IVirtualBox::findHardDisk2"/> methods or enumerated using the
8289 <link to="IVirtualBox::hardDisks2"/> array (only for base hard disks).
8290
8291 The following methods, besides <link to="IMedium::close"/>,
8292 automatically remove the hard disk from the media registry:
8293 <ul>
8294 <li><link to="#deleteStorage"/></li>
8295 <li><link to="#mergeTo"/></li>
8296 </ul>
8297
8298 If the storage unit of the hard disk is a regular file in the host's
8299 file system then the rules stated in the description of the
8300 <link to="IMedium::location"/> attribute apply when setting its value. In
8301 addition, a plain file name without any path may be given, in which case
8302 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8303 folder</link> will be prepended to it.
8304
8305 <h4>Automatic composition of the file name part</h4>
8306
8307 Another extension to the <link to="IMedium::location"/> attribute is that
8308 there is a possibility to cause VirtualBox to compose a unique value for
8309 the file name part of the location using the UUID of the hard disk. This
8310 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8311 e.g. before the storage unit is created, and works as follows. You set the
8312 value of the <link to="IMedium::location"/> attribute to a location
8313 specification which only contains the path specification but not the file
8314 name part and ends with either a forward slash or a backslash character.
8315 In response, VirtualBox will generate a new UUID for the hard disk and
8316 compose the file name using the following pattern:
8317 <pre>
8318 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8319 </pre>
8320 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8321 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8322 is the default extension for the storage format of this hard disk. After
8323 that, you may call any of the methods that create a new hard disk storage
8324 unit and they will use the generated UUID and file name.
8325
8326 <h3>Attaching Hard Disks</h3>
8327
8328 Hard disks are attached to virtual machines using the
8329 <link to="IMachine::attachHardDisk2"/> method and detached using the
8330 <link to="IMachine::detachHardDisk2"/> method. Depending on their
8331 <link to="#type"/>, hard disks are attached either
8332 <i>directly</i> or <i>indirectly</i>.
8333
8334 When a hard disk is being attached directly, it is associated with the
8335 virtual machine and used for hard disk operations when the machine is
8336 running. When a hard disk is being attached indirectly, a new differencing
8337 hard disk linked to it is implicitly created and this differencing hard
8338 disk is associated with the machine and used for hard disk operations.
8339 This also means that if <link to="IMachine::attachHardDisk2"/> performs
8340 a direct attachment then the same hard disk will be returned in response
8341 to the subsequent <link to="IMachine::getHardDisk2"/> call; however if
8342 an indirect attachment is performed then
8343 <link to="IMachine::getHardDisk2"/> will return the implicitly created
8344 differencing hard disk, not the original one passed to <link
8345 to="IMachine::attachHardDisk2"/>. The following table shows the
8346 dependency of the attachment type on the hard disk type:
8347
8348 <table>
8349 <tr>
8350 <th>Hard Disk Type</th>
8351 <th>Direct or Indirect?</th>
8352 </tr>
8353 <tr>
8354 <td>Normal (Base)</td>
8355 <td>
8356 Normal base hard disks that do not have children (i.e. differencing
8357 hard disks linked to them) and that are not already attached to
8358 virtual machines in snapshots are attached <b>directly</b>.
8359 Otherwise, they are attached <b>indirectly</b> because having
8360 dependent children or being part of the snapshot makes it impossible
8361 to modify hard disk contents without breaking the integrity of the
8362 dependent party. The <link to="#readOnly"/> attribute allows to
8363 quickly determine the kind of the attachment for the given hard
8364 disk. Note that if a normal base hard disk is to be indirectly
8365 attached to a virtual machine with snapshots then a special
8366 procedure called <i>smart attachment</i> is performed (see below).
8367 </td>
8368 </tr>
8369 <tr>
8370 <td>Normal (Differencing)</td>
8371 <td>
8372 Differencing hard disks are like normal base hard disks: attached
8373 <b>directly</b> if they do not have children and are not attached to
8374 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8375 that the smart attachment procedure is never performed for
8376 differencing hard disks.
8377 </td>
8378 </tr>
8379 <tr>
8380 <td>Immutable</td>
8381 <td>
8382 Immutable hard disks are always attached <b>indirectly</b> because
8383 they are designed to be non-writable. If an immutable hard disk is
8384 attached to a virtual machine with snapshots then a special
8385 procedure called smart attachment is performed (see below).
8386 </td>
8387 </tr>
8388 <tr>
8389 <td>Writethrough</td>
8390 <td>
8391 Writethrough hard disks are always attached <b>directly</b>, also as
8392 designed. This also means that writethrough hard disks cannot have
8393 other hard disks linked to them at all.
8394 </td>
8395 </tr>
8396 </table>
8397
8398 Note that the same hard disk, regardless of its type, may be attached to
8399 more than one virtual machine at a time. In this case, the machine that is
8400 started first gains exclusive access to the hard disk and attempts to
8401 start other machines having this hard disk attached will fail until the
8402 first machine is powered down.
8403
8404 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8405 that the given hard disk remains associated with the given machine after a
8406 successful <link to="IMachine::detachHardDisk2"/> call until
8407 <link to="IMachine::saveSettings"/> is called to save all changes to
8408 machine settings to disk. This deferring is necessary to guarantee that
8409 the hard disk configuration may be restored at any time by a call to
8410 <link to="IMachine::discardSettings"/> before the settings
8411 are saved (committed).
8412
8413 Note that if <link to="IMachine::discardSettings"/> is called after
8414 indirectly attaching some hard disks to the machine but before a call to
8415 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8416 all differencing hard disks implicitly created by
8417 <link to="IMachine::attachHardDisk2"/> for these indirect attachments.
8418 Such implicitly created hard disks will also be immediately deleted when
8419 detached explicitly using the <link to="IMachine::detachHardDisk2"/>
8420 call if it is made before <link to="IMachine::saveSettings"/>. This
8421 implicit deletion is safe because newly created differencing hard
8422 disks do not contain any user data.
8423
8424 However, keep in mind that detaching differencing hard disks that were
8425 implicitly created by <link to="IMachine::attachHardDisk2"/>
8426 before the last <link to="IMachine::saveSettings"/> call will
8427 <b>not</b> implicitly delete them as they may already contain some data
8428 (for example, as a result of virtual machine execution). If these hard
8429 disks are no more necessary, the caller can always delete them explicitly
8430 using <link to="#deleteStorage"/> after they are actually de-associated
8431 from this machine by the <link to="IMachine::saveSettings"/> call.
8432
8433 <h3>Smart Attachment</h3>
8434
8435 When normal base or immutable hard disks are indirectly attached to a
8436 virtual machine then some additional steps are performed to make sure the
8437 virtual machine will have the most recent "view" of the hard disk being
8438 attached. These steps include walking through the machine's snapshots
8439 starting from the current one and going through ancestors up to the first
8440 snapshot. Hard disks attached to the virtual machine in all
8441 of the encountered snapshots are checked whether they are descendants of
8442 the given normal base or immutable hard disk. The first found child (which
8443 is the differencing hard disk) will be used instead of the normal base or
8444 immutable hard disk as a parent for creating a new differencing hard disk
8445 that will be actually attached to the machine. And only if no descendants
8446 are found or if the virtual machine does not have any snapshots then the
8447 normal base or immutable hard disk will be used itself as a parent for
8448 this differencing hard disk.
8449
8450 It is easier to explain what smart attachment does using the
8451 following example:
8452 <pre>
8453BEFORE attaching B.vdi: AFTER attaching B.vdi:
8454
8455Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8456 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8457 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8458 Snapshot 4 (none) Snapshot 4 (none)
8459 CurState (none) CurState (D3->D2.vdi)
8460
8461 NOT
8462 ...
8463 CurState (D3->B.vdi)
8464 </pre>
8465 The first column is the virtual machine configuration before the base hard
8466 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8467 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8468 mean that the hard disk that is actually attached to the machine is a
8469 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8470 another hard disk, <tt>B.vdi</tt>.
8471
8472 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8473 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8474 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8475 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8476 it cannot be attached directly and needs an indirect attachment (i.e.
8477 implicit creation of a new differencing hard disk). Due to the smart
8478 attachment procedure, the new differencing hard disk
8479 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8480 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8481 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8482 machine.
8483
8484 Note that if there is more than one descendant hard disk of the given base
8485 hard disk found in a snapshot, and there is an exact device, channel and
8486 bus match, then this exact match will be used. Otherwise, the youngest
8487 descendant will be picked up.
8488
8489 There is one more important aspect of the smart attachment procedure which
8490 is not related to snapshots at all. Before walking through the snapshots
8491 as described above, the backup copy of the current list of hard disk
8492 attachment is searched for descendants. This backup copy is created when
8493 the hard disk configuration is changed for the first time after the last
8494 <link to="IMachine::saveSettings"/> call and used by
8495 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8496 changes. When such a descendant is found in this backup copy, it will be
8497 simply re-attached back, without creating a new differencing hard disk for
8498 it. This optimization is necessary to make it possible to re-attach the
8499 base or immutable hard disk to a different bus, channel or device slot
8500 without losing the contents of the differencing hard disk actually
8501 attached to the machine in place of it.
8502 </desc>
8503
8504 <attribute name="format" type="wstring" readonly="yes">
8505 <desc>
8506 Storage format of this hard disk.
8507
8508 The value of this attribute is a string that specifies a backend used to
8509 store hard disk data. The storage format is defined when you create a
8510 new hard disk or automatically detected when you open an existing hard
8511 disk medium, and cannot be changed later.
8512
8513 The list of all storage formats supported by this VirtualBox
8514 installation can be obtained using
8515 <link to="ISystemProperties::hardDiskFormats"/>.
8516 </desc>
8517 </attribute>
8518
8519 <attribute name="type" type="HardDiskType">
8520 <desc>
8521 Type (role) of this hard disk.
8522
8523 The following constraints apply when changing the value of this
8524 attribute:
8525 <ul>
8526 <li>If a hard disk is attached to a virtual machine (either in the
8527 current state or in one of the snapshots), its type cannot be
8528 changed.
8529 </li>
8530 <li>As long as the hard disk has children, its type cannot be set
8531 to <link to="HardDiskType_Writethrough"/>.
8532 </li>
8533 <li>The type of all differencing hard disks is
8534 <link to="HardDiskType_Normal"/> and cannot be changed.
8535 </li>
8536 </ul>
8537
8538 The type of a newly created or opened hard disk is set to
8539 <link to="HardDiskType_Normal"/>.
8540 </desc>
8541 </attribute>
8542
8543 <attribute name="parent" type="IHardDisk2" readonly="yes">
8544 <desc>
8545 Parent of this hard disk (a hard disk this hard disk is directly based
8546 on).
8547
8548 Only differencing hard disks have parents. For base (non-differencing)
8549 hard disks, <tt>null</tt> is returned.
8550 </desc>
8551 </attribute>
8552
8553 <attribute name="children" type="IHardDisk2" safearray="yes" readonly="yes">
8554 <desc>
8555 Children of this hard disk (all differencing hard disks directly based
8556 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8557 does not have any children.
8558 </desc>
8559 </attribute>
8560
8561 <attribute name="root" type="IHardDisk2" readonly="yes">
8562 <desc>
8563 Root hard disk of this hard disk.
8564
8565 If this is a differencing hard disk, its root hard disk is the base hard
8566 disk the given hard disk branch starts from. For all other types of hard
8567 disks, this property returns the hard disk object itself (i.e. the same
8568 object this property is read on).
8569 </desc>
8570 </attribute>
8571
8572 <attribute name="readOnly" type="boolean" readonly="yes">
8573 <desc>
8574 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8575 otherwise.
8576
8577 A hard disk is considered to be read-only when its contents cannot be
8578 modified without breaking the integrity of other parties that depend on
8579 this hard disk such as its child hard disks or snapshots of virtual
8580 machines where this hard disk is attached to these machines. If there
8581 are no children and no such snapshots then there is no dependency and
8582 the hard disk is not read-only.
8583
8584 The value of this attribute can be used to determine the kind of the
8585 attachment that will take place when attaching this hard disk to a
8586 virtual machine. If the value is <tt>false</tt> then the hard disk will
8587 be attached directly. If the value is <tt>true</tt> then the hard disk
8588 will be attached indirectly by creating a new differencing child hard
8589 disk for that. See the interface description for more information.
8590
8591 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8592 disks are always read-only while all
8593 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8594 always not.
8595
8596 <note>
8597 The read-only condition represented by this attribute is related to
8598 the hard disk type and usage, not to the current
8599 <link to="IMedium::state">media state</link> and not to the read-only
8600 state of the storage unit.
8601 </note>
8602 </desc>
8603 </attribute>
8604
8605 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8606 <desc>
8607 Logical size of this hard disk (in megabytes), as reported to the
8608 guest OS running inside the virtual machine this disk is
8609 attached to. The logical size is defined when the hard disk is created
8610 and cannot be changed later.
8611
8612 <note>
8613 Reading this property on a differencing hard disk will return the size
8614 of its <link to="#root"/> hard disk.
8615 </note>
8616 <note>
8617 For hard disks whose state is <link to="#state"/> is <link
8618 to="MediaState_Inaccessible"/>, the value of this property is the
8619 last known logical size. For <link to="MediaState_NotCreated"/> hard
8620 disks, the returned value is zero.
8621 </note>
8622 </desc>
8623 </attribute>
8624
8625 <!-- storage methods -->
8626
8627 <method name="getProperty">
8628 <desc>
8629 Returns the value of the custom hard disk property with the given name.
8630
8631 The list of all properties supported by the given hard disk format can
8632 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8633
8634 Note that if this method returns a <tt>null</tt> @a value, the requested
8635 property is supported but currently not assigned any value.
8636
8637 <result name="VBOX_E_OBJECT_NOT_FOUND">
8638 Requested property does not exist (not supported by the format).
8639 </result>
8640 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8641 </desc>
8642 <param name="name" type="wstring" dir="in">
8643 <desc>Name of the property to get.</desc>
8644 </param>
8645 <param name="value" type="wstring" dir="return">
8646 <desc>Current property value.</desc>
8647 </param>
8648 </method>
8649
8650 <method name="setProperty">
8651 <desc>
8652 Sets the value of the custom hard disk property with the given name.
8653
8654 The list of all properties supported by the given hard disk format can
8655 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8656
8657 Note that setting the property value to <tt>null</tt> is equivalent to
8658 deleting the existing value. A default value (if it is defined for this
8659 property) will be used by the format backend in this case.
8660
8661 <result name="VBOX_E_OBJECT_NOT_FOUND">
8662 Requested property does not exist (not supported by the format).
8663 </result>
8664 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8665 </desc>
8666 <param name="name" type="wstring" dir="in">
8667 <desc>Name of the property to set.</desc>
8668 </param>
8669 <param name="value" type="wstring" dir="in">
8670 <desc>Property value to set.</desc>
8671 </param>
8672 </method>
8673
8674 <method name="getProperties">
8675 <desc>
8676 Returns values for a group of properties in one call.
8677
8678 The names of the properties to get are specified using the @a names
8679 argument which is a list of comma-separated property names or
8680 <tt>null</tt> if all properties are to be returned. Note that currently
8681 the value of this argument is ignored and the method always returns all
8682 existing properties.
8683
8684 The list of all properties supported by the given hard disk format can
8685 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8686
8687 The method returns two arrays, the array of property names corresponding
8688 to the @a names argument and the current values of these properties.
8689 Both arrays have the same number of elements with each elemend at the
8690 given index in the first array corresponds to an element at the same
8691 index in the second array.
8692
8693 Note that for properties that do not have assigned values,
8694 <tt>null</tt> is returned at the appropriate index in the @a
8695 returnValues array.
8696
8697 </desc>
8698 <param name="names" type="wstring" dir="in">
8699 <desc>
8700 Names of properties to get.
8701 </desc>
8702 </param>
8703 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8704 <desc>Names of returned properties.</desc>
8705 </param>
8706 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8707 <desc>Values of returned properties.</desc>
8708 </param>
8709 </method>
8710
8711 <method name="setProperties">
8712 <desc>
8713 Sets values for a group of properties in one call.
8714
8715 The names of the properties to set are passed in the @a names
8716 array along with the new values for them in the @a values array. Both
8717 arrays have the same number of elements with each elemend at the given
8718 index in the first array corresponding to an element at the same index
8719 in the second array.
8720
8721 If there is at least one property name in @a names that is not valid,
8722 the method will fail before changing the values of any other properties
8723 from the @a names array.
8724
8725 Using this method over <link to="#setProperty"/> is preferred if you
8726 need to set several properties at once since it will result into less
8727 IPC calls.
8728
8729 The list of all properties supported by the given hard disk format can
8730 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8731
8732 Note that setting the property value to <tt>null</tt> is equivalent to
8733 deleting the existing value. A default value (if it is defined for this
8734 property) will be used by the format backend in this case.
8735 </desc>
8736 <param name="names" type="wstring" safearray="yes" dir="in">
8737 <desc>Names of properties to set.</desc>
8738 </param>
8739 <param name="values" type="wstring" safearray="yes" dir="in">
8740 <desc>Values of properties to set.</desc>
8741 </param>
8742 </method>
8743
8744 <!-- storage methods -->
8745
8746 <method name="createDynamicStorage">
8747 <desc>
8748 Starts creating a dynamically expanding hard disk storage unit in the
8749 background. The previous storage unit created for this object, if
8750 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8751 the operation will fail.
8752
8753 Before the operation starts, the hard disk is placed in
8754 <link to="MediaState_Creating"/> state. If the create operation
8755 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8756 state.
8757
8758 After the returned progress object reports that the operation has
8759 successfully completed, the media state will be set to <link
8760 to="MediaState_Created"/>, the hard disk will be remembered by this
8761 VirtualBox installation and may be attached to virtual machines.
8762
8763 <result name="VBOX_E_NOT_SUPPORTED">
8764 Dynamic storage creation operation is not supported. See <link
8765 to="IHardDiskFormat::capabilities"/>.
8766 </result>
8767 </desc>
8768 <param name="logicalSize" type="unsigned long long" dir="in">
8769 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8770 </param>
8771 <param name="progress" type="IProgress" dir="return">
8772 <desc>Progress object to track the operation completion.</desc>
8773 </param>
8774 </method>
8775
8776 <method name="createFixedStorage">
8777 <desc>
8778 Starts creating a fixed-size hard disk storage unit in the background.
8779 The previous storage unit created for this object, if
8780 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8781 the operation will fail.
8782
8783 Before the operation starts, the hard disk is placed to
8784 <link to="MediaState_Creating"/> state. If the create operation
8785 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8786 state.
8787
8788 After the returned progress object reports that the operation is
8789 successfully complete, the media state will be set to <link
8790 to="MediaState_Created"/>, the hard disk will be remembered by this
8791 VirtualBox installation and may be attached to virtual machines.
8792
8793 <result name="VBOX_E_NOT_SUPPORTED">
8794 Fixed storage creation operation is not supported. See
8795 <link to="IHardDiskFormat::capabilities"/>.
8796 </result>
8797 </desc>
8798 <param name="logicalSize" type="unsigned long long" dir="in">
8799 <desc>Logical size of the hard disk in megabytes.</desc>
8800 </param>
8801 <param name="progress" type="IProgress" dir="return">
8802 <desc>Progress object to track the operation completion.</desc>
8803 </param>
8804 </method>
8805
8806 <method name="deleteStorage">
8807 <desc>
8808 Starts deleting the storage unit of this hard disk.
8809
8810 The hard disk must not be attached to any known virtual machine and must
8811 not have any known child hard disks, otherwise the operation will fail.
8812 It will also fail if there is no storage unit to delete or if deletion
8813 is already in progress, or if the hard disk is being in use (locked for
8814 read or for write) or inaccessible. Therefore, the only valid state for
8815 this operation to succeed is <link to="MediaState_Created"/>.
8816
8817 Before the operation starts, the hard disk is placed to
8818 <link to="MediaState_Deleting"/> state and gets removed from the list
8819 of remembered hard disks (media registry). If the delete operation
8820 fails, the media will be remembered again and placed back to
8821 <link to="MediaState_Created"/> state.
8822
8823 After the returned progress object reports that the operation is
8824 complete, the media state will be set to
8825 <link to="MediaState_NotCreated"/> and you will be able to use one of
8826 the storage creation methods to create it again.
8827
8828 <see>#close()</see>
8829
8830 <result name="VBOX_E_OBJECT_IN_USE">
8831 Hard disk is attached to a virtual machine.
8832 </result>
8833 <result name="VBOX_E_NOT_SUPPORTED">
8834 Storage deletion is not allowed because neither of storage creation
8835 operations are supported. See
8836 <link to="IHardDiskFormat::capabilities"/>.
8837 </result>
8838
8839 <note>
8840 If the deletion operation fails, it is not guaranteed that the storage
8841 unit still exists. You may check the <link to="IMedium::state"/> value
8842 to answer this question.
8843 </note>
8844 </desc>
8845 <param name="progress" type="IProgress" dir="return">
8846 <desc>Progress object to track the operation completion.</desc>
8847 </param>
8848 </method>
8849
8850 <!-- diff methods -->
8851
8852 <method name="createDiffStorage">
8853 <desc>
8854 Starts creating an empty differencing storage unit based on this hard
8855 disk in the format and at the location defined by the @a target
8856 argument.
8857
8858 The target hard disk must be in <link to="MediaState_NotCreated"/>
8859 state (i.e. must not have an existing storage unit). Upon successful
8860 completion, this operation will set the type of the target hard disk to
8861 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8862 represent the differencing hard disk data in the given format (according
8863 to the storage format of the target object).
8864
8865 After the returned progress object reports that the operation is
8866 successfully complete, the target hard disk gets remembered by this
8867 VirtualBox installation and may be attached to virtual machines.
8868
8869 <note>
8870 The hard disk will be set to <link to="MediaState_LockedRead"/>
8871 state for the duration of this operation.
8872 </note>
8873 <result name="VBOX_E_OBJECT_IN_USE">
8874 Hard disk not in NotCreated state.
8875 </result>
8876 </desc>
8877 <param name="target" type="IHardDisk2" dir="in">
8878 <desc>Target hard disk.</desc>
8879 </param>
8880 <param name="progress" type="IProgress" dir="return">
8881 <desc>Progress object to track the operation completion.</desc>
8882 </param>
8883 </method>
8884
8885 <method name="mergeTo">
8886 <desc>
8887 Starts merging the contents of this hard disk and all intermediate
8888 differencing hard disks in the chain to the given target hard disk.
8889
8890 The target hard disk must be either a descendant of this hard disk or
8891 its ancestor (otherwise this method will immediately return a failure).
8892 It follows that there are two logical directions of the merge operation:
8893 from ancestor to descendant (<i>forward merge</i>) and from descendant to
8894 ancestor (<i>backward merge</i>). Let us consider the following hard disk
8895 chain:
8896
8897 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
8898
8899 Here, calling this method on the <tt>Base</tt> hard disk object with
8900 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
8901 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
8902 merge. Note that in both cases the contents of the resulting hard disk
8903 will be the same, the only difference is the hard disk object that takes
8904 the result of the merge operation. In case of the forward merge in the
8905 above example, the result will be written to <tt>Diff_2</tt>; in case of
8906 the backward merge, the result will be written to <tt>Base</tt>. In
8907 other words, the result of the operation is always stored in the target
8908 hard disk.
8909
8910 Upon successful operation completion, the storage units of all hard
8911 disks in the chain between this (source) hard disk and the target hard
8912 disk, including the source hard disk itself, will be automatically
8913 deleted and the relevant hard disk objects (including this hard disk)
8914 will become uninitialized. This means that any attempt to call any of
8915 their methods or attributes will fail with the
8916 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
8917 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
8918 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
8919 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
8920 disk itself since it will no longer be based on any other hard disk.
8921
8922 Considering the above, all of the following conditions must be met in
8923 order for the merge operation to succeed:
8924 <ul>
8925 <li>
8926 Neither this (source) hard disk nor any intermediate
8927 differencing hard disk in the chain between it and the target
8928 hard disk is attached to any virtual machine.
8929 </li>
8930 <li>
8931 Neither the source hard disk nor the target hard disk is an
8932 <link to="HardDiskType_Immutable"/> hard disk.
8933 </li>
8934 <li>
8935 The part of the hard disk tree from the source hard disk to the
8936 target hard disk is a linear chain, i.e. all hard disks in this
8937 chain have exactly one child which is the next hard disk in this
8938 chain. The only exception from this rule is the target hard disk in
8939 the forward merge operation; it is allowed to have any number of
8940 child hard disks because the merge operation will hot change its
8941 logical contents (as it is seen by the guest OS or by children).
8942 </li>
8943 <li>
8944 None of the involved hard disks are in
8945 <link to="MediaState_LockedRead"/> or
8946 <link to="MediaState_LockedWrite"/> state.
8947 </li>
8948 </ul>
8949
8950 <note>
8951 This (source) hard disk and all intermediates will be placed to <link
8952 to="MediaState_Deleting"/> state and the target hard disk will be
8953 placed to <link to="MediaState_LockedWrite"/> state and for the
8954 duration of this operation.
8955 </note>
8956 </desc>
8957 <param name="targetId" type="uuid" dir="in">
8958 <desc>UUID of the target ancestor or descendant hard disk.</desc>
8959 </param>
8960 <param name="progress" type="IProgress" dir="return">
8961 <desc>Progress object to track the operation completion.</desc>
8962 </param>
8963 </method>
8964
8965 <!-- clone methods -->
8966
8967 <method name="cloneTo">
8968 <desc>
8969 Starts creating a clone of this hard disk in the format and at the
8970 location defined by the @a target argument.
8971
8972 The target hard disk must be in <link to="MediaState_NotCreated"/>
8973 state (i.e. must not have an existing storage unit). Upon successful
8974 completion, the cloned hard disk will contain exactly the same sector
8975 data as the hard disk being cloned, except that a new UUID for the clone
8976 will be randomly generated.
8977
8978 After the returned progress object reports that the operation is
8979 successfully complete, the target hard disk gets remembered by this
8980 VirtualBox installation and may be attached to virtual machines.
8981
8982 <note>
8983 If the cloned hard disk is a differencing hard disk, it will inherit
8984 parent dependency of the original hard disk.
8985 </note>
8986 <note>
8987 This hard disk will be placed to <link to="MediaState_LockedRead"/>
8988 state for the duration of this operation.
8989 </note>
8990 </desc>
8991 <param name="target" type="IHardDisk2" dir="in">
8992 <desc>Target hard disk.</desc>
8993 </param>
8994 <param name="progress" type="IProgress" dir="return">
8995 <desc>Progress object to track the operation completion.</desc>
8996 </param>
8997 </method>
8998
8999 <method name="flattenTo">
9000 <desc>
9001 Starts creating a deep (independent) clone of this hard disk in the
9002 format and at the location defined by the @a target argument.
9003
9004 This operation is similar to <link to="#cloneTo"/> except that when
9005 applied to a differencing hard disk, it will also copy missing hard disk
9006 data from all parent hard disks it is linked to. This will make the
9007 created clone an independent base hard disk that contains all hard disk
9008 data and does not need any other hard disks to operate.
9009
9010 After the returned progress object reports that the operation is
9011 successfully complete, the target hard disk gets remembered by this
9012 VirtualBox installation and may be attached to virtual machines.
9013
9014 <note>
9015 For base hard disks, this operation is identical to
9016 <link to="#cloneTo"/>.
9017 </note>
9018 <note>
9019 This hard disk and all its parent hard disks will be placed to <link
9020 to="MediaState_LockedRead"/> state for the duration of this
9021 operation.
9022 </note>
9023 </desc>
9024 <param name="target" type="IHardDisk2" dir="in">
9025 <desc>Target hard disk.</desc>
9026 </param>
9027 <param name="progress" type="IProgress" dir="return">
9028 <desc>Progress object to track the operation completion.</desc>
9029 </param>
9030 </method>
9031
9032 <method name="compact">
9033 <desc>
9034 Starts compacting of this hard disk. This means that the disk is
9035 transformed into a possibly more compact storage representation.
9036 This potentially creates temporary images, which can require a
9037 substantial amount of additional disk space.
9038
9039 After the returned progress object reports that the operation is
9040 successfully complete, the media state will be set back to the
9041 current state.
9042
9043 <note>
9044 This hard disk and all its parent hard disks will be placed to <link
9045 to="MediaState_LockedRead"/> state for the duration of this
9046 operation.
9047 </note>
9048 </desc>
9049 <param name="progress" type="IProgress" dir="return">
9050 <desc>Progress object to track the operation completion.</desc>
9051 </param>
9052 </method>
9053
9054 </interface>
9055
9056
9057 <!--
9058 // IHardDiskFormat
9059 /////////////////////////////////////////////////////////////////////////
9060 -->
9061
9062 <enum
9063 name="DataType"
9064 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9065 >
9066 <const name="Int32" value="0"/>
9067 <const name="Int8" value="1"/>
9068 <const name="String" value="2"/>
9069 </enum>
9070
9071 <enum
9072 name="DataFlags"
9073 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9074 >
9075 <const name="None" value="0x00"/>
9076 <const name="Mandatory" value="0x01"/>
9077 <const name="Expert" value="0x02"/>
9078 <const name="Array" value="0x04"/>
9079 <const name="FlagMask" value="0x07"/>
9080 </enum>
9081
9082 <enum
9083 name="HardDiskFormatCapabilities"
9084 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9085 >
9086 <desc>
9087 Hard disk format capability flags.
9088 </desc>
9089
9090 <const name="Uuid" value="0x01">
9091 <desc>
9092 Supports UUIDs as expected by VirtualBox code.
9093 </desc>
9094 </const>
9095
9096 <const name="CreateFixed" value="0x02">
9097 <desc>
9098 Supports creating fixed size images, allocating all space instantly.
9099 </desc>
9100 </const>
9101
9102 <const name="CreateDynamic" value="0x04">
9103 <desc>
9104 Supports creating dynamically growing images, allocating space on
9105 demand.
9106 </desc>
9107 </const>
9108
9109 <const name="CreateSplit2G" value="0x08">
9110 <desc>
9111 Supports creating images split in chunks of a bit less than 2 GBytes.
9112 </desc>
9113 </const>
9114
9115 <const name="Differencing" value="0x10">
9116 <desc>
9117 Supports being used as a format for differencing hard disks (see <link
9118 to="IHardDisk2::createDiffStorage"/>).
9119 </desc>
9120 </const>
9121
9122 <const name="Asynchronous" value="0x20">
9123 <desc>
9124 Supports asynchronous I/O operations for at least some configurations.
9125 </desc>
9126 </const>
9127
9128 <const name="File" value="0x40">
9129 <desc>
9130 The format backend operates on files (the <link to="IMedium::location"/>
9131 attribute of the hard disk specifies a file used to store hard disk
9132 data; for a list of supported file extensions see
9133 <link to="IHardDiskFormat::fileExtensions"/>).
9134 </desc>
9135 </const>
9136
9137 <const name="Properties" value="0x80">
9138 <desc>
9139 The format backend uses the property interface to configure the storage
9140 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9141 method is used to get access to properties supported by the given hard
9142 disk format).
9143 </desc>
9144 </const>
9145
9146 <const name="CapabilityMask" value="0xFF"/>
9147 </enum>
9148
9149 <interface
9150 name="IHardDiskFormat" extends="$unknown"
9151 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9152 wsmap="managed"
9153 >
9154 <desc>
9155 The IHardDiskFormat interface represents a virtual hard disk format.
9156
9157 Each hard disk format has an associated backend which is used to handle
9158 hard disks stored in this format. This interface provides information
9159 about the properties of the associated backend.
9160
9161 Each hard disk format is identified by a string represented by the
9162 <link to="#id"/> attribute. This string is used in calls like
9163 <link to="IVirtualBox::createHardDisk2"/> to specify the desired
9164 format.
9165
9166 The list of all supported hard disk formats can be obtained using
9167 <link to="ISystemProperties::hardDiskFormats"/>.
9168
9169 <see>IHardDisk2</see>
9170 </desc>
9171
9172 <attribute name="id" type="wstring" readonly="yes">
9173 <desc>
9174 Identifier of this format.
9175
9176 The format identifier is a non-null non-empty ASCII string. Note that
9177 this string is case-insensitive. This means that, for example, all of
9178 the following strings:
9179 <pre>
9180 "VDI"
9181 "vdi"
9182 "VdI"</pre>
9183 refer to the same hard disk format.
9184
9185 This string is used in methods of other interfaces where it is necessary
9186 to specify a hard disk format, such as
9187 <link to="IVirtualBox::createHardDisk2"/>.
9188 </desc>
9189 </attribute>
9190
9191 <attribute name="name" type="wstring" readonly="yes">
9192 <desc>
9193 Human readable description of this format.
9194
9195 Mainly for use in file open dialogs.
9196 </desc>
9197 </attribute>
9198
9199 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9200 <desc>
9201 Array of strings containing the supported file extensions.
9202
9203 The first extension in the array is the extension preferred by the
9204 backend. It is recommended to use this extension when specifying a
9205 location of the storage unit for a new hard disk.
9206
9207 Note that some backends do not work on files, so this array may be
9208 empty.
9209
9210 <see>IHardDiskFormat::capabilities</see>
9211 </desc>
9212 </attribute>
9213
9214 <attribute name="capabilities" type="unsigned long" readonly="yes">
9215 <desc>
9216 Capabilities of the format as a set of bit flags.
9217
9218 For the meaning of individual capability flags see
9219 <link to="HardDiskFormatCapabilities"/>.
9220 </desc>
9221 </attribute>
9222
9223 <method name="describeProperties">
9224 <desc>
9225 Returns several arrays describing the properties supported by this
9226 format.
9227
9228 An element with the given index in each array describes one
9229 property. Thus, the number of elements in each returned array is the
9230 same and corresponds to the number of supported properties.
9231
9232 The returned arrays are filled in only if the
9233 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9234 All arguments must be non-NULL.
9235
9236 <see>DataType</see>
9237 <see>DataFlags</see>
9238 </desc>
9239
9240 <param name="names" type="wstring" safearray="yes" dir="out">
9241 <desc>Array of property names.</desc>
9242 </param>
9243 <param name="description" type="wstring" safearray="yes" dir="out">
9244 <desc>Array of property descriptions.</desc>
9245 </param>
9246 <param name="types" type="DataType" safearray="yes" dir="out">
9247 <desc>Array of property types.</desc>
9248 </param>
9249 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9250 <desc>Array of property flags.</desc>
9251 </param>
9252 <param name="defaults" type="wstring" safearray="yes" dir="out">
9253 <desc>Array of default property values.</desc>
9254 </param>
9255 </method>
9256
9257 </interface>
9258
9259
9260 <!--
9261 // IFloppyImage2
9262 /////////////////////////////////////////////////////////////////////////
9263 -->
9264
9265 <interface
9266 name="IFloppyImage2" extends="IMedium"
9267 uuid="fcdee8f0-03f9-11dd-95ff-0800200c9a66"
9268 wsmap="managed"
9269 >
9270 <desc>
9271 The IFloppyImage2 interface represents a medium containing the image
9272 of a floppy disk.
9273 </desc>
9274
9275 </interface>
9276
9277
9278 <!--
9279 // IDVDImage2
9280 /////////////////////////////////////////////////////////////////////////
9281 -->
9282
9283 <interface
9284 name="IDVDImage2" extends="IMedium"
9285 uuid="1c5165f1-9543-478d-a117-84a1d2317068"
9286 wsmap="managed"
9287 >
9288 <desc>
9289 The IDVDImage2 interface represents a medium containing the image
9290 of a CD or DVD disk in the ISO format.
9291 </desc>
9292
9293 </interface>
9294
9295
9296 <!--
9297 // IDVDDrive
9298 /////////////////////////////////////////////////////////////////////////
9299 -->
9300
9301 <interface
9302 name="IDVDDrive" extends="$unknown"
9303 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9304 wsmap="managed"
9305 >
9306 <desc>
9307 The IDVDDrive interface represents the virtual CD/DVD drive of the
9308 virtual machine. An object of this type is returned by
9309 <link to="IMachine::DVDDrive"/>.
9310 </desc>
9311
9312 <attribute name="state" type="DriveState" readonly="yes">
9313 <desc>Current drive state.</desc>
9314 </attribute>
9315
9316 <attribute name="passthrough" type="boolean">
9317 <desc>
9318 When a host drive is mounted and passthrough is enabled
9319 the guest OS will be able to directly send SCSI commands to
9320 the host drive. This enables the guest OS to use CD/DVD writers
9321 but is potentially dangerous.
9322 </desc>
9323 </attribute>
9324
9325 <method name="mountImage">
9326 <desc>Mounts a CD/DVD image with the specified UUID.
9327
9328 <result name="VBOX_E_FILE_ERROR">
9329 Invalid image file location.
9330 </result>
9331 <result name="VBOX_E_OBJECT_NOT_FOUND">
9332 Could not find a CD/DVD image matching @a imageID.
9333 </result>
9334 <result name="VBOX_E_INVALID_OBJECT_STATE">
9335 Invalid media state.
9336 </result>
9337
9338 </desc>
9339 <param name="imageId" type="uuid" dir="in"/>
9340 </method>
9341
9342 <method name="captureHostDrive">
9343 <desc>Captures the specified host CD/DVD drive.</desc>
9344 <param name="drive" type="IHostDVDDrive" dir="in"/>
9345 </method>
9346
9347 <method name="unmount">
9348 <desc>Unmounts the currently mounted image or host drive.</desc>
9349 </method>
9350
9351 <method name="getImage">
9352 <desc>Returns the currently mounted CD/DVD image.</desc>
9353 <param name="image" type="IDVDImage2" dir="return"/>
9354 </method>
9355
9356 <method name="getHostDrive">
9357 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9358 <param name="drive" type="IHostDVDDrive" dir="return"/>
9359 </method>
9360
9361 </interface>
9362
9363
9364 <!--
9365 // IFloppyDrive
9366 /////////////////////////////////////////////////////////////////////////
9367 -->
9368
9369 <interface
9370 name="IFloppyDrive" extends="$unknown"
9371 uuid="159412cd-bab8-452e-8097-218a020825a6"
9372 wsmap="managed"
9373 >
9374 <desc>
9375 The IFloppyDrive interface represents the virtual floppy drive of the
9376 virtual machine. An object of this type is returned by
9377 <link to="IMachine::floppyDrive" />.
9378 </desc>
9379
9380 <attribute name="enabled" type="boolean">
9381 <desc>
9382 Flag whether the floppy drive is enabled. If it is disabled,
9383 the floppy drive will not be reported to the guest OS.
9384 </desc>
9385 </attribute>
9386
9387 <attribute name="state" type="DriveState" readonly="yes">
9388 <desc>Current drive state.</desc>
9389 </attribute>
9390
9391 <method name="mountImage">
9392 <desc>Mounts a floppy image with the specified UUID.
9393
9394 <result name="VBOX_E_FILE_ERROR">
9395 Invalid image file location.
9396 </result>
9397 <result name="VBOX_E_OBJECT_NOT_FOUND">
9398 Could not find a floppy image matching @a imageID.
9399 </result>
9400 <result name="VBOX_E_INVALID_OBJECT_STATE">
9401 Invalid media state.
9402 </result>
9403
9404 </desc>
9405 <param name="imageId" type="uuid" dir="in"/>
9406 </method>
9407
9408 <method name="captureHostDrive">
9409 <desc>Captures the specified host floppy drive.</desc>
9410 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9411 </method>
9412
9413 <method name="unmount">
9414 <desc>Unmounts the currently mounted image or host drive.</desc>
9415 </method>
9416
9417 <method name="getImage">
9418 <desc>Returns the currently mounted floppy image.</desc>
9419 <param name="image" type="IFloppyImage2" dir="return"/>
9420 </method>
9421
9422 <method name="getHostDrive">
9423 <desc>Returns the currently mounted host floppy drive.</desc>
9424 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9425 </method>
9426
9427 </interface>
9428
9429
9430 <!--
9431 // IKeyboard
9432 /////////////////////////////////////////////////////////////////////////
9433 -->
9434
9435 <interface
9436 name="IKeyboard" extends="$unknown"
9437 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9438 wsmap="managed"
9439 >
9440 <desc>
9441 The IKeyboard interface represents the virtual machine's keyboard. Used
9442 in <link to="IConsole::keyboard"/>.
9443
9444 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9445 to the virtual machine.
9446
9447 </desc>
9448 <method name="putScancode">
9449 <desc>Sends a scancode to the keyboard.
9450
9451 <result name="VBOX_E_IPRT_ERROR">
9452 Could not send scan code to virtual keyboard.
9453 </result>
9454
9455 </desc>
9456 <param name="scancode" type="long" dir="in"/>
9457 </method>
9458
9459 <method name="putScancodes">
9460 <desc>Sends an array of scancodes to the keyboard.
9461
9462 <result name="VBOX_E_IPRT_ERROR">
9463 Could not send all scan codes to virtual keyboard.
9464 </result>
9465
9466 </desc>
9467 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9468 <param name="codesStored" type="unsigned long" dir="return"/>
9469 </method>
9470
9471 <method name="putCAD">
9472 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9473 function is nothing special, it is just a convenience function
9474 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9475
9476 <result name="VBOX_E_IPRT_ERROR">
9477 Could not send all scan codes to virtual keyboard.
9478 </result>
9479
9480 </desc>
9481 </method>
9482
9483 </interface>
9484
9485
9486 <!--
9487 // IMouse
9488 /////////////////////////////////////////////////////////////////////////
9489 -->
9490
9491 <enum
9492 name="MouseButtonState"
9493 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9494 >
9495 <desc>
9496 Mouse button state.
9497 </desc>
9498
9499 <const name="LeftButton" value="0x01"/>
9500 <const name="RightButton" value="0x02"/>
9501 <const name="MiddleButton" value="0x04"/>
9502 <const name="WheelUp" value="0x08"/>
9503 <const name="WheelDown" value="0x10"/>
9504 <const name="MouseStateMask" value="0x1F"/>
9505 </enum>
9506
9507 <interface
9508 name="IMouse" extends="$unknown"
9509 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9510 wsmap="managed"
9511 >
9512 <desc>
9513 The IMouse interface represents the virtual machine's mouse. Used in
9514 <link to="IConsole::mouse"/>.
9515
9516 Through this interface, the virtual machine's virtual mouse can be
9517 controlled.
9518 </desc>
9519
9520 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9521 <desc>
9522 Whether the guest OS supports absolute mouse pointer positioning
9523 or not.
9524 <note>
9525 VirtualBox Guest Tools need to be installed to the guest OS
9526 in order to enable absolute mouse positioning support.
9527 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9528 callback to be instantly informed about changes of this attribute
9529 during virtual machine execution.
9530 </note>
9531 <see><link to="#putMouseEventAbsolute"/></see>
9532 </desc>
9533 </attribute>
9534
9535 <method name="putMouseEvent">
9536 <desc>
9537 Initiates a mouse event using relative pointer movements
9538 along x and y axis.
9539
9540 <result name="E_ACCESSDENIED">
9541 Console not powered up.
9542 </result>
9543 <result name="VBOX_E_IPRT_ERROR">
9544 Could not send mouse event to virtual mouse.
9545 </result>
9546
9547 </desc>
9548
9549 <param name="dx" type="long" dir="in">
9550 <desc>
9551 Amount of pixels the mouse should move to the right.
9552 Negative values move the mouse to the left.
9553 </desc>
9554 </param>
9555 <param name="dy" type="long" dir="in">
9556 <desc>
9557 Amount of pixels the mouse should move downwards.
9558 Negative values move the mouse upwards.
9559 </desc>
9560 </param>
9561 <param name="dz" type="long" dir="in">
9562 <desc>
9563 Amount of mouse wheel moves.
9564 Positive values describe clockwise wheel rotations,
9565 negative values describe counterclockwise rotations.
9566 </desc>
9567 </param>
9568 <param name="buttonState" type="long" dir="in">
9569 <desc>
9570 The current state of mouse buttons. Every bit represents
9571 a mouse button as follows:
9572 <table>
9573 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9574 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9575 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9576 </table>
9577 A value of <tt>1</tt> means the corresponding button is pressed.
9578 otherwise it is released.
9579 </desc>
9580 </param>
9581 </method>
9582
9583 <method name="putMouseEventAbsolute">
9584 <desc>
9585 Positions the mouse pointer using absolute x and y coordinates.
9586 These coordinates are expressed in pixels and
9587 start from <tt>[1,1]</tt> which corresponds to the top left
9588 corner of the virtual display.
9589
9590 <result name="E_ACCESSDENIED">
9591 Console not powered up.
9592 </result>
9593 <result name="VBOX_E_IPRT_ERROR">
9594 Could not send mouse event to virtual mouse.
9595 </result>
9596
9597 <note>
9598 This method will have effect only if absolute mouse
9599 positioning is supported by the guest OS.
9600 </note>
9601
9602 <see><link to="#absoluteSupported"/></see>
9603 </desc>
9604
9605 <param name="x" type="long" dir="in">
9606 <desc>
9607 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9608 </desc>
9609 </param>
9610 <param name="y" type="long" dir="in">
9611 <desc>
9612 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9613 </desc>
9614 </param>
9615 <param name="dz" type="long" dir="in">
9616 <desc>
9617 Amount of mouse wheel moves.
9618 Positive values describe clockwise wheel rotations,
9619 negative values describe counterclockwise rotations.
9620 </desc>
9621 </param>
9622 <param name="buttonState" type="long" dir="in">
9623 <desc>
9624 The current state of mouse buttons. Every bit represents
9625 a mouse button as follows:
9626 <table>
9627 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9628 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9629 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9630 </table>
9631 A value of <tt>1</tt> means the corresponding button is pressed.
9632 otherwise it is released.
9633 </desc>
9634 </param>
9635 </method>
9636
9637 </interface>
9638
9639 <!--
9640 // IDisplay
9641 /////////////////////////////////////////////////////////////////////////
9642 -->
9643
9644 <enum
9645 name="FramebufferAccelerationOperation"
9646 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9647 >
9648 <desc>
9649 Frame buffer acceleration operation.
9650 </desc>
9651
9652 <const name="SolidFillAcceleration" value="1"/>
9653 <const name="ScreenCopyAcceleration" value="2"/>
9654 </enum>
9655
9656 <enum
9657 name="FramebufferPixelFormat"
9658 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9659 >
9660 <desc>
9661 Format of the video memory buffer. Constants represented by this enum can
9662 be used to test for particular values of <link
9663 to="IFramebuffer::pixelFormat"/>. See also <link
9664 to="IFramebuffer::requestResize"/>.
9665
9666 See also www.fourcc.org for more information about FOURCC pixel formats.
9667 </desc>
9668
9669 <const name="Opaque" value="0">
9670 <desc>
9671 Unknown buffer format (the user may not assume any particular format of
9672 the buffer).
9673 </desc>
9674 </const>
9675 <const name="FOURCC_RGB" value="0x32424752">
9676 <desc>
9677 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9678 bit layout).
9679 </desc>
9680 </const>
9681 </enum>
9682
9683 <interface
9684 name="IFramebuffer" extends="$unknown"
9685 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9686 wsmap="suppress"
9687 >
9688 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9689 <desc>Address of the start byte of the frame buffer.</desc>
9690 </attribute>
9691
9692 <attribute name="width" type="unsigned long" readonly="yes">
9693 <desc>Frame buffer width, in pixels.</desc>
9694 </attribute>
9695
9696 <attribute name="height" type="unsigned long" readonly="yes">
9697 <desc>Frame buffer height, in pixels.</desc>
9698 </attribute>
9699
9700 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9701 <desc>
9702 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9703 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9704 are: 8, 15, 16, 24 and 32.
9705 </desc>
9706 </attribute>
9707
9708 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9709 <desc>
9710 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9711 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9712 size of the scan line must be aligned to 32 bits.
9713 </desc>
9714 </attribute>
9715
9716 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9717 <desc>
9718 Frame buffer pixel format. It's either one of the values defined by <link
9719 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9720 <note>
9721 This attribute must never return <link
9722 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9723 <link to="#address"/> points to must be always known.
9724 </note>
9725 </desc>
9726 </attribute>
9727
9728 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9729 <desc>
9730 Defines whether this frame buffer uses the virtual video card's memory
9731 buffer (guest VRAM) directly or not. See <link
9732 to="IFramebuffer::requestResize"/> for more information.
9733 </desc>
9734 </attribute>
9735
9736 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9737 <desc>
9738 Hint from the frame buffer about how much of the standard
9739 screen height it wants to use for itself. This information is
9740 exposed to the guest through the VESA BIOS and VMMDev interface
9741 so that it can use it for determining its video mode table. It
9742 is not guaranteed that the guest respects the value.
9743 </desc>
9744 </attribute>
9745
9746 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9747 <desc>
9748 An alpha-blended overlay which is superposed over the frame buffer.
9749 The initial purpose is to allow the display of icons providing
9750 information about the VM state, including disk activity, in front
9751 ends which do not have other means of doing that. The overlay is
9752 designed to controlled exclusively by IDisplay. It has no locking
9753 of its own, and any changes made to it are not guaranteed to be
9754 visible until the affected portion of IFramebuffer is updated. The
9755 overlay can be created lazily the first time it is requested. This
9756 attribute can also return NULL to signal that the overlay is not
9757 implemented.
9758 </desc>
9759 </attribute>
9760
9761 <attribute name="winId" type="unsigned long long" readonly="yes">
9762 <desc>
9763 Platform-dependent identifier of the window where context of this
9764 frame buffer is drawn, or zero if there's no such window.
9765 </desc>
9766 </attribute>
9767
9768 <method name="lock">
9769 <desc>
9770 Locks the frame buffer.
9771 Gets called by the IDisplay object where this frame buffer is
9772 bound to.
9773 </desc>
9774 </method>
9775
9776 <method name="unlock">
9777 <desc>
9778 Unlocks the frame buffer.
9779 Gets called by the IDisplay object where this frame buffer is
9780 bound to.
9781 </desc>
9782 </method>
9783
9784 <method name="notifyUpdate">
9785 <desc>
9786 Informs about an update.
9787 Gets called by the display object where this buffer is
9788 registered.
9789 </desc>
9790 <param name="x" type="unsigned long" dir="in"/>
9791 <param name="y" type="unsigned long" dir="in"/>
9792 <param name="width" type="unsigned long" dir="in"/>
9793 <param name="height" type="unsigned long" dir="in"/>
9794 <param name="finished" type="boolean" dir="return"/>
9795 </method>
9796
9797 <method name="requestResize">
9798 <desc>
9799 Requests a size and pixel format change.
9800
9801 There are two modes of working with the video buffer of the virtual
9802 machine. The <i>indirect</i> mode implies that the IFramebuffer
9803 implementation allocates a memory buffer for the requested display mode
9804 and provides it to the virtual machine. In <i>direct</i> mode, the
9805 IFramebuffer implementation uses the memory buffer allocated and owned
9806 by the virtual machine. This buffer represents the video memory of the
9807 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9808 usually faster because the implementation gets a raw pointer to the
9809 guest VRAM buffer which it can directly use for visualizing the contents
9810 of the virtual display, as opposed to the indirect mode where the
9811 contents of guest VRAM are copied to the memory buffer provided by
9812 the implementation every time a display update occurs.
9813
9814 It is important to note that the direct mode is really fast only when
9815 the implementation uses the given guest VRAM buffer directly, for
9816 example, by blitting it to the window representing the virtual machine's
9817 display, which saves at least one copy operation comparing to the
9818 indirect mode. However, using the guest VRAM buffer directly is not
9819 always possible: the format and the color depth of this buffer may be
9820 not supported by the target window, or it may be unknown (opaque) as in
9821 case of text or non-linear multi-plane VGA video modes. In this case,
9822 the indirect mode (that is always available) should be used as a
9823 fallback: when the guest VRAM contents are copied to the
9824 implementation-provided memory buffer, color and format conversion is
9825 done automatically by the underlying code.
9826
9827 The @a pixelFormat parameter defines whether the direct mode is
9828 available or not. If @a pixelFormat is <link
9829 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9830 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
9831 bytesPerLine parameters must be ignored and the implementation must use
9832 the indirect mode (where it provides its own buffer in one of the
9833 supported formats). In all other cases, @a pixelFormat together with @a
9834 bitsPerPixel and @a bytesPerLine define the format of the video memory
9835 buffer pointed to by the @a VRAM parameter and the implementation is
9836 free to choose which mode to use. To indicate that this frame buffer uses
9837 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9838 attribute must return <tt>true</tt> and <link to="#address"/> must
9839 return exactly the same address that is passed in the @a VRAM parameter
9840 of this method; otherwise it is assumed that the indirect strategy is
9841 chosen.
9842
9843 The @a width and @a height parameters represent the size of the
9844 requested display mode in both modes. In case of indirect mode, the
9845 provided memory buffer should be big enough to store data of the given
9846 display mode. In case of direct mode, it is guaranteed that the given @a
9847 VRAM buffer contains enough space to represent the display mode of the
9848 given size. Note that this frame buffer's <link to="#width"/> and <link
9849 to="#height"/> attributes must return exactly the same values as
9850 passed to this method after the resize is completed (see below).
9851
9852 The @a finished output parameter determines if the implementation has
9853 finished resizing the frame buffer or not. If, for some reason, the
9854 resize cannot be finished immediately during this call, @a finished
9855 must be set to @c false, and the implementation must call
9856 <link to="IDisplay::resizeCompleted"/> after it has returned from
9857 this method as soon as possible. If @a finished is @c false, the
9858 machine will not call any frame buffer methods until
9859 <link to="IDisplay::resizeCompleted"/> is called.
9860
9861 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
9862 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
9863 this frame buffer must return exactly the same values as specified in the
9864 parameters of this method, after the resize is completed. If the
9865 indirect mode is chosen, these attributes must return values describing
9866 the format of the implementation's own memory buffer <link
9867 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
9868 value must always correlate with <link to="#pixelFormat"/>. Note that
9869 the <link to="#pixelFormat"/> attribute must never return <link
9870 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
9871
9872 <note>
9873 This method is called by the IDisplay object under the
9874 <link to="#lock"/> provided by this IFramebuffer
9875 implementation. If this method returns @c false in @a finished, then
9876 this lock is not released until
9877 <link to="IDisplay::resizeCompleted"/> is called.
9878 </note>
9879 </desc>
9880 <param name="screenId" type="unsigned long" dir="in">
9881 <desc>
9882 Logical screen number. Must be used in the corresponding call to
9883 <link to="IDisplay::resizeCompleted"/> if this call is made.
9884 </desc>
9885 </param>
9886 <param name="pixelFormat" type="unsigned long" dir="in">
9887 <desc>
9888 Pixel format of the memory buffer pointed to by @a VRAM.
9889 See also <link to="FramebufferPixelFormat"/>.
9890 </desc>
9891 </param>
9892 <param name="VRAM" type="octet" mod="ptr" dir="in">
9893 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
9894 </param>
9895 <param name="bitsPerPixel" type="unsigned long" dir="in">
9896 <desc>Color depth, bits per pixel.</desc>
9897 </param>
9898 <param name="bytesPerLine" type="unsigned long" dir="in">
9899 <desc>Size of one scan line, in bytes.</desc>
9900 </param>
9901 <param name="width" type="unsigned long" dir="in">
9902 <desc>Width of the guest display, in pixels.</desc>
9903 </param>
9904 <param name="height" type="unsigned long" dir="in">
9905 <desc>Height of the guest display, in pixels.</desc>
9906 </param>
9907 <param name="finished" type="boolean" dir="return">
9908 <desc>
9909 Can the VM start using the new frame buffer immediately
9910 after this method returns or it should wait for
9911 <link to="IDisplay::resizeCompleted"/>.
9912 </desc>
9913 </param>
9914 </method>
9915
9916 <method name="operationSupported">
9917 <desc>
9918 Returns whether the given acceleration operation is supported
9919 by the IFramebuffer implementation. If not, the display object
9920 will not attempt to call the corresponding IFramebuffer entry
9921 point. Even if an operation is indicated as supported, the
9922 IFramebuffer implementation always has the option to return non
9923 supported from the corresponding acceleration method in which
9924 case the operation will be performed by the display engine. This
9925 allows for reduced IFramebuffer implementation complexity where
9926 only common cases are handled.
9927 </desc>
9928 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
9929 <param name="supported" type="boolean" dir="return"/>
9930 </method>
9931
9932 <method name="videoModeSupported">
9933 <desc>
9934 Returns whether the frame buffer implementation is willing to
9935 support a given video mode. In case it is not able to render
9936 the video mode (or for some reason not willing), it should
9937 return false. Usually this method is called when the guest
9938 asks the VMM device whether a given video mode is supported
9939 so the information returned is directly exposed to the guest.
9940 It is important that this method returns very quickly.
9941 </desc>
9942 <param name="width" type="unsigned long" dir="in"/>
9943 <param name="height" type="unsigned long" dir="in"/>
9944 <param name="bpp" type="unsigned long" dir="in"/>
9945 <param name="supported" type="boolean" dir="return"/>
9946 </method>
9947
9948 <method name="solidFill">
9949 <desc>
9950 Fills the specified rectangle on screen with a solid color.
9951 </desc>
9952 <param name="x" type="unsigned long" dir="in"/>
9953 <param name="y" type="unsigned long" dir="in"/>
9954 <param name="width" type="unsigned long" dir="in"/>
9955 <param name="height" type="unsigned long" dir="in"/>
9956 <param name="color" type="unsigned long" dir="in"/>
9957 <param name="handled" type="boolean" dir="return"/>
9958 </method>
9959
9960 <method name="copyScreenBits">
9961 <desc>
9962 Copies specified rectangle on the screen.
9963 </desc>
9964 <param name="xDst" type="unsigned long" dir="in"/>
9965 <param name="yDst" type="unsigned long" dir="in"/>
9966 <param name="xSrc" type="unsigned long" dir="in"/>
9967 <param name="ySrc" type="unsigned long" dir="in"/>
9968 <param name="width" type="unsigned long" dir="in"/>
9969 <param name="height" type="unsigned long" dir="in"/>
9970 <param name="handled" type="boolean" dir="return"/>
9971 </method>
9972
9973 <method name="getVisibleRegion">
9974 <desc>
9975 Returns the visible region of this frame buffer.
9976
9977 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
9978 @a count parameter is ignored and the number of elements necessary to
9979 describe the current visible region is returned in @a countCopied.
9980
9981 If @a rectangles is not <tt>NULL</tt> but @a count is less
9982 than the required number of elements to store region data, the method
9983 will report a failure. If @a count is equal or greater than the
9984 required number of elements, then the actual number of elements copied
9985 to the provided array will be returned in @a countCopied.
9986
9987 <note>
9988 The address of the provided array must be in the process space of
9989 this IFramebuffer object.
9990 </note>
9991 <note>
9992 Method not yet implemented.
9993 </note>
9994 </desc>
9995 <param name="rectangles" type="octet" mod="ptr" dir="in">
9996 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
9997 </param>
9998 <param name="count" type="unsigned long" dir="in">
9999 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10000 </param>
10001 <param name="countCopied" type="unsigned long" dir="return">
10002 <desc>Number of elements copied to the @a rectangles array.</desc>
10003 </param>
10004 </method>
10005
10006 <method name="setVisibleRegion">
10007 <desc>
10008 Suggests a new visible region to this frame buffer. This region
10009 represents the area of the VM display which is a union of regions of
10010 all top-level windows of the guest operating system running inside the
10011 VM (if the Guest Additions for this system support this
10012 functionality). This information may be used by the frontends to
10013 implement the seamless desktop integration feature.
10014
10015 <note>
10016 The address of the provided array must be in the process space of
10017 this IFramebuffer object.
10018 </note>
10019 <note>
10020 The IFramebuffer implementation must make a copy of the provided
10021 array of rectangles.
10022 </note>
10023 <note>
10024 Method not yet implemented.
10025 </note>
10026 </desc>
10027 <param name="rectangles" type="octet" mod="ptr" dir="in">
10028 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10029 </param>
10030 <param name="count" type="unsigned long" dir="in">
10031 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10032 </param>
10033 </method>
10034
10035 </interface>
10036
10037 <interface
10038 name="IFramebufferOverlay" extends="IFramebuffer"
10039 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10040 wsmap="suppress"
10041 >
10042 <desc>
10043 The IFramebufferOverlay interface represents an alpha blended overlay
10044 for displaying status icons above an IFramebuffer. It is always created
10045 not visible, so that it must be explicitly shown. It only covers a
10046 portion of the IFramebuffer, determined by its width, height and
10047 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10048 that order) format, and may be written to directly. Do re-read the
10049 width though, after setting it, as it may be adjusted (increased) to
10050 make it more suitable for the front end.
10051 </desc>
10052 <attribute name="x" type="unsigned long" readonly="yes">
10053 <desc>X position of the overlay, relative to the frame buffer.</desc>
10054 </attribute>
10055
10056 <attribute name="y" type="unsigned long" readonly="yes">
10057 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10058 </attribute>
10059
10060 <attribute name="visible" type="boolean" readonly="no">
10061 <desc>
10062 Whether the overlay is currently visible.
10063 </desc>
10064 </attribute>
10065
10066 <attribute name="alpha" type="unsigned long" readonly="no">
10067 <desc>
10068 The global alpha value for the overlay. This may or may not be
10069 supported by a given front end.
10070 </desc>
10071 </attribute>
10072
10073 <method name="move">
10074 <desc>
10075 Changes the overlay's position relative to the IFramebuffer.
10076 </desc>
10077 <param name="x" type="unsigned long" dir="in"/>
10078 <param name="y" type="unsigned long" dir="in"/>
10079 </method>
10080
10081 </interface>
10082
10083 <interface
10084 name="IDisplay" extends="$unknown"
10085 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10086 wsmap="suppress"
10087 >
10088 <desc>
10089 The IDisplay interface represents the virtual machine's display.
10090
10091 The object implementing this interface is contained in each
10092 <link to="IConsole::display"/> attribute and represents the visual
10093 output of the virtual machine.
10094
10095 The virtual display supports pluggable output targets represented by the
10096 IFramebuffer interface. Examples of the output target are a window on
10097 the host computer or an RDP session's display on a remote computer.
10098 </desc>
10099 <attribute name="width" type="unsigned long" readonly="yes">
10100 <desc>Current display width.</desc>
10101 </attribute>
10102
10103 <attribute name="height" type="unsigned long" readonly="yes">
10104 <desc>Current display height.</desc>
10105 </attribute>
10106
10107 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10108 <desc>
10109 Current guest display color depth. Note that this may differ
10110 from <link to="IFramebuffer::bitsPerPixel"/>.
10111 </desc>
10112 </attribute>
10113
10114 <method name="setupInternalFramebuffer">
10115 <desc>
10116 Prepares an internally managed frame buffer.
10117 </desc>
10118 <param name="depth" type="unsigned long" dir="in"/>
10119 </method>
10120
10121 <method name="lockFramebuffer">
10122 <desc>
10123 Requests access to the internal frame buffer.
10124
10125 <result name="VBOX_E_NOT_SUPPORTED">
10126 Attempt to lock a non-internal frame buffer.
10127 </result>
10128
10129 </desc>
10130 <param name="address" type="octet" mod="ptr" dir="return"/>
10131 </method>
10132
10133 <method name="unlockFramebuffer">
10134 <desc>
10135 Releases access to the internal frame buffer.
10136
10137 <result name="VBOX_E_NOT_SUPPORTED">
10138 Attempt to unlock a non-internal frame buffer.
10139 </result>
10140
10141 </desc>
10142 </method>
10143
10144 <method name="registerExternalFramebuffer">
10145 <desc>
10146 Registers an external frame buffer.
10147 </desc>
10148 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10149 </method>
10150
10151 <method name="setFramebuffer">
10152 <desc>
10153 Sets the framebuffer for given screen.
10154 </desc>
10155 <param name="screenId" type="unsigned long" dir="in"/>
10156 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10157 </method>
10158
10159 <method name="getFramebuffer">
10160 <desc>
10161 Queries the framebuffer for given screen.
10162 </desc>
10163 <param name="screenId" type="unsigned long" dir="in"/>
10164 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10165 <param name="xOrigin" type="long" dir="out"/>
10166 <param name="yOrigin" type="long" dir="out"/>
10167 </method>
10168
10169 <method name="setVideoModeHint">
10170 <desc>
10171 Asks VirtualBox to request the given video mode from
10172 the guest. This is just a hint and it cannot be guaranteed
10173 that the requested resolution will be used. Guest Additions
10174 are required for the request to be seen by guests. The caller
10175 should issue the request and wait for a resolution change and
10176 after a timeout retry.
10177
10178 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10179 parameters means that the corresponding values should be taken from the
10180 current video mode (i.e. left unchanged).
10181
10182 If the guest OS supports multi-monitor configuration then the @a display
10183 parameter specifies the number of the guest display to send the hint to:
10184 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10185 so on. If the multi-monitor configuration is not supported, @a display
10186 must be <tt>0</tt>.
10187
10188 <result name="E_INVALIDARG">
10189 The @a display is not associated with any monitor.
10190 </result>
10191
10192 </desc>
10193 <param name="width" type="unsigned long" dir="in"/>
10194 <param name="height" type="unsigned long" dir="in"/>
10195 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10196 <param name="display" type="unsigned long" dir="in"/>
10197 </method>
10198
10199 <method name="setSeamlessMode">
10200 <desc>
10201 Enables or disables seamless guest display rendering (seamless desktop
10202 integration) mode.
10203 <note>
10204 Calling this method has no effect if <link
10205 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10206 </note>
10207 </desc>
10208 <param name="enabled" type="boolean" dir="in"/>
10209 </method>
10210
10211 <method name="takeScreenShot">
10212 <desc>
10213 Takes a screen shot of the requested size and copies it to the
10214 32-bpp buffer allocated by the caller.
10215
10216 <result name="E_NOTIMPL">
10217 Feature not implemented.
10218 </result>
10219 <result name="VBOX_E_IPRT_ERROR">
10220 Could not take a screenshot.
10221 </result>
10222
10223 </desc>
10224 <param name="address" type="octet" mod="ptr" dir="in"/>
10225 <param name="width" type="unsigned long" dir="in"/>
10226 <param name="height" type="unsigned long" dir="in"/>
10227 </method>
10228
10229 <method name="drawToScreen">
10230 <desc>
10231 Draws a 32-bpp image of the specified size from the given buffer
10232 to the given point on the VM display.
10233
10234 <result name="E_NOTIMPL">
10235 Feature not implemented.
10236 </result>
10237 <result name="VBOX_E_IPRT_ERROR">
10238 Could not draw to screen.
10239 </result>
10240
10241 </desc>
10242 <param name="address" type="octet" mod="ptr" dir="in"/>
10243 <param name="x" type="unsigned long" dir="in"/>
10244 <param name="y" type="unsigned long" dir="in"/>
10245 <param name="width" type="unsigned long" dir="in"/>
10246 <param name="height" type="unsigned long" dir="in"/>
10247 </method>
10248
10249 <method name="invalidateAndUpdate">
10250 <desc>
10251 Does a full invalidation of the VM display and instructs the VM
10252 to update it.
10253
10254 <result name="VBOX_E_IPRT_ERROR">
10255 Could not invalidate and update screen.
10256 </result>
10257
10258 </desc>
10259 </method>
10260
10261 <method name="resizeCompleted">
10262 <desc>
10263 Signals that a framebuffer has completed the resize operation.
10264
10265 <result name="VBOX_E_NOT_SUPPORTED">
10266 Operation only valid for external frame buffers.
10267 </result>
10268
10269 </desc>
10270 <param name="screenId" type="unsigned long" dir="in"/>
10271 </method>
10272
10273 <method name="updateCompleted">
10274 <desc>
10275 Signals that a framebuffer has completed the update operation.
10276
10277 <result name="VBOX_E_NOT_SUPPORTED">
10278 Operation only valid for external frame buffers.
10279 </result>
10280
10281 </desc>
10282 </method>
10283
10284 </interface>
10285
10286 <!--
10287 // INetworkAdapter
10288 /////////////////////////////////////////////////////////////////////////
10289 -->
10290
10291 <enum
10292 name="NetworkAttachmentType"
10293 uuid="64e770dc-dd1d-4879-9f12-5bd6bc879b78"
10294 >
10295 <desc>
10296 Network attachment type.
10297 </desc>
10298
10299 <const name="Null" value="0">
10300 <desc>Null value, also means "not attached".</desc>
10301 </const>
10302 <const name="NAT" value="1"/>
10303 <const name="HostInterface" value="2"/>
10304 <const name="Internal" value="3"/>
10305 <const name="HostOnly" value="4"/>
10306 </enum>
10307
10308 <enum
10309 name="NetworkAdapterType"
10310 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10311 >
10312 <desc>
10313 Network adapter type.
10314 </desc>
10315
10316 <const name="Null" value="0">
10317 <desc>Null value (never used by the API).</desc>
10318 </const>
10319 <const name="Am79C970A" value="1"/>
10320 <const name="Am79C973" value="2"/>
10321 <const name="I82540EM" value="3"/>
10322 <const name="I82543GC" value="4"/>
10323 </enum>
10324
10325 <interface
10326 name="INetworkAdapter" extends="$unknown"
10327 uuid="4a1ee64e-6c5f-47dd-acfa-f834d7cb74fb"
10328 wsmap="managed"
10329 >
10330 <attribute name="adapterType" type="NetworkAdapterType">
10331 <desc>
10332 Type of the virtual network adapter. Depending on this value,
10333 VirtualBox will provide a different virtual network hardware
10334 to the guest.
10335 </desc>
10336 </attribute>
10337
10338 <attribute name="slot" type="unsigned long" readonly="yes">
10339 <desc>
10340 Slot number this adapter is plugged into. Corresponds to
10341 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10342 to obtain this instance.
10343 </desc>
10344 </attribute>
10345
10346 <attribute name="enabled" type="boolean">
10347 <desc>
10348 Flag whether the network adapter is present in the
10349 guest system. If disabled, the virtual guest hardware will
10350 not contain this network adapter. Can only be changed when
10351 the VM is not running.
10352 </desc>
10353 </attribute>
10354
10355 <attribute name="MACAddress" type="wstring">
10356 <desc>
10357 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10358 it to NULL, VirtualBox will generate a unique MAC address.
10359 </desc>
10360 </attribute>
10361
10362 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10363
10364 <attribute name="hostInterface" type="wstring">
10365 <desc>
10366 Name of the host network interface the VM is attached to.
10367 </desc>
10368 </attribute>
10369
10370 <attribute name="internalNetwork" type="wstring">
10371 <desc>
10372 Name of the internal network the VM is attached to.
10373 </desc>
10374 </attribute>
10375
10376 <attribute name="NATNetwork" type="wstring">
10377 <desc>
10378 Name of the NAT network the VM is attached to.
10379 </desc>
10380 </attribute>
10381
10382 <attribute name="cableConnected" type="boolean">
10383 <desc>
10384 Flag whether the adapter reports the cable as connected or not.
10385 It can be used to report offline situations to a VM.
10386 </desc>
10387 </attribute>
10388
10389 <attribute name="lineSpeed" type="unsigned long">
10390 <desc>
10391 Line speed reported by custom drivers, in units of 1 kbps.
10392 </desc>
10393 </attribute>
10394
10395 <attribute name="traceEnabled" type="boolean">
10396 <desc>
10397 Flag whether network traffic from/to the network card should be traced.
10398 Can only be toggled when the VM is turned off.
10399 </desc>
10400 </attribute>
10401
10402 <attribute name="traceFile" type="wstring">
10403 <desc>
10404 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10405 will be used.
10406 </desc>
10407 </attribute>
10408
10409 <method name="attachToNAT">
10410 <desc>
10411 Attach the network adapter to the Network Address Translation (NAT) interface.
10412 </desc>
10413 </method>
10414
10415 <method name="attachToHostInterface">
10416 <desc>
10417 Attach the network adapter to a host interface.
10418 </desc>
10419 </method>
10420
10421 <method name="attachToInternalNetwork">
10422 <desc>
10423 Attach the network adapter to an internal network.
10424 </desc>
10425 </method>
10426
10427 <method name="attachToHostOnlyNetwork">
10428 <desc>
10429 Attach the network adapter to the host-only network.
10430 </desc>
10431 </method>
10432
10433 <method name="detach">
10434 <desc>
10435 Detach the network adapter
10436 </desc>
10437 </method>
10438 </interface>
10439
10440
10441 <!--
10442 // ISerialPort
10443 /////////////////////////////////////////////////////////////////////////
10444 -->
10445
10446 <enum
10447 name="PortMode"
10448 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10449 >
10450 <desc>
10451 The PortMode enumeration represents possible communication modes for
10452 the virtual serial port device.
10453 </desc>
10454
10455 <const name="Disconnected" value="0">
10456 <desc>Virtual device is not attached to any real host device.</desc>
10457 </const>
10458 <const name="HostPipe" value="1">
10459 <desc>Virtual device is attached to a host pipe.</desc>
10460 </const>
10461 <const name="HostDevice" value="2">
10462 <desc>Virtual device is attached to a host device.</desc>
10463 </const>
10464 </enum>
10465
10466 <interface
10467 name="ISerialPort" extends="$unknown"
10468 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10469 wsmap="managed"
10470 >
10471
10472 <desc>
10473 The ISerialPort interface represents the virtual serial port device.
10474
10475 The virtual serial port device acts like an ordinary serial port
10476 inside the virtual machine. This device communicates to the real
10477 serial port hardware in one of two modes: host pipe or host device.
10478
10479 In host pipe mode, the #path attribute specifies the path to the pipe on
10480 the host computer that represents a serial port. The #server attribute
10481 determines if this pipe is created by the virtual machine process at
10482 machine startup or it must already exist before starting machine
10483 execution.
10484
10485 In host device mode, the #path attribute specifies the name of the
10486 serial port device on the host computer.
10487
10488 There is also a third communication mode: the disconnected mode. In this
10489 mode, the guest OS running inside the virtual machine will be able to
10490 detect the serial port, but all port write operations will be discarded
10491 and all port read operations will return no data.
10492
10493 <see>IMachine::getSerialPort</see>
10494 </desc>
10495
10496 <attribute name="slot" type="unsigned long" readonly="yes">
10497 <desc>
10498 Slot number this serial port is plugged into. Corresponds to
10499 the value you pass to <link to="IMachine::getSerialPort"/>
10500 to obtain this instance.
10501 </desc>
10502 </attribute>
10503
10504 <attribute name="enabled" type="boolean">
10505 <desc>
10506 Flag whether the serial port is enabled. If disabled,
10507 the serial port will not be reported to the guest OS.
10508 </desc>
10509 </attribute>
10510
10511 <attribute name="IOBase" type="unsigned long">
10512 <desc>Base I/O address of the serial port.</desc>
10513 </attribute>
10514
10515 <attribute name="IRQ" type="unsigned long">
10516 <desc>IRQ number of the serial port.</desc>
10517 </attribute>
10518
10519 <attribute name="hostMode" type="PortMode">
10520 <desc>
10521 How is this port connected to the host.
10522 <note>
10523 Changing this attribute may fail if the conditions for
10524 <link to="#path"/> are not met.
10525 </note>
10526 </desc>
10527 </attribute>
10528
10529 <attribute name="server" type="boolean">
10530 <desc>
10531 Flag whether this serial port acts as a server (creates a new pipe on
10532 the host) or as a client (uses the existing pipe). This attribute is
10533 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10534 </desc>
10535 </attribute>
10536
10537 <attribute name="path" type="wstring">
10538 <desc>
10539 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10540 PortMode_HostPipe, or the host serial device name when
10541 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10542 cases, setting a @c null or an empty string as the attribute's value
10543 will result into an error. Otherwise, the value of this property is
10544 ignored.
10545 </desc>
10546 </attribute>
10547
10548 </interface>
10549
10550 <!--
10551 // IParallelPort
10552 /////////////////////////////////////////////////////////////////////////
10553 -->
10554
10555 <interface
10556 name="IParallelPort" extends="$unknown"
10557 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10558 wsmap="managed"
10559 >
10560
10561 <desc>
10562 The IParallelPort interface represents the virtual parallel port device.
10563
10564 The virtual parallel port device acts like an ordinary parallel port
10565 inside the virtual machine. This device communicates to the real
10566 parallel port hardware using the name of the parallel device on the host
10567 computer specified in the #path attribute.
10568
10569 Each virtual parallel port device is assigned a base I/O address and an
10570 IRQ number that will be reported to the guest operating system and used
10571 to operate the given parallel port from within the virtual machine.
10572
10573 <see>IMachine::getParallelPort</see>
10574 </desc>
10575
10576 <attribute name="slot" type="unsigned long" readonly="yes">
10577 <desc>
10578 Slot number this parallel port is plugged into. Corresponds to
10579 the value you pass to <link to="IMachine::getParallelPort"/>
10580 to obtain this instance.
10581 </desc>
10582 </attribute>
10583
10584 <attribute name="enabled" type="boolean">
10585 <desc>
10586 Flag whether the parallel port is enabled. If disabled,
10587 the parallel port will not be reported to the guest OS.
10588 </desc>
10589 </attribute>
10590
10591 <attribute name="IOBase" type="unsigned long">
10592 <desc>Base I/O address of the parallel port.</desc>
10593 </attribute>
10594
10595 <attribute name="IRQ" type="unsigned long">
10596 <desc>IRQ number of the parallel port.</desc>
10597 </attribute>
10598
10599 <attribute name="path" type="wstring">
10600 <desc>
10601 Host parallel device name. If this parallel port is enabled, setting a
10602 @c null or an empty string as this attribute's value will result into
10603 an error.
10604 </desc>
10605 </attribute>
10606
10607 </interface>
10608
10609
10610 <!--
10611 // IMachineDebugger
10612 /////////////////////////////////////////////////////////////////////////
10613 -->
10614
10615 <interface
10616 name="IMachineDebugger" extends="$unknown"
10617 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10618 wsmap="suppress"
10619 >
10620 <method name="resetStats">
10621 <desc>
10622 Reset VM statistics.
10623 </desc>
10624 <param name="pattern" type="wstring" dir="in">
10625 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10626 </param>
10627 </method>
10628
10629 <method name="dumpStats">
10630 <desc>
10631 Dumps VM statistics.
10632 </desc>
10633 <param name="pattern" type="wstring" dir="in">
10634 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10635 </param>
10636 </method>
10637
10638 <method name="getStats">
10639 <desc>
10640 Get the VM statistics in a XMLish format.
10641 </desc>
10642 <param name="pattern" type="wstring" dir="in">
10643 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10644 </param>
10645 <param name="withDescriptions" type="boolean" dir="in">
10646 <desc>Whether to include the descriptions.</desc>
10647 </param>
10648 <param name="stats" type="wstring" dir="out">
10649 <desc>The XML document containing the statistics.</desc>
10650 </param>
10651 </method>
10652
10653 <method name="injectNMI">
10654 <desc>
10655 Inject an NMI into a running VT-x/AMD-V VM.
10656 </desc>
10657 </method>
10658
10659 <attribute name="singlestep" type="boolean">
10660 <desc>Switch for enabling singlestepping.</desc>
10661 </attribute>
10662
10663 <attribute name="recompileUser" type="boolean">
10664 <desc>Switch for forcing code recompilation for user mode code.</desc>
10665 </attribute>
10666
10667 <attribute name="recompileSupervisor" type="boolean">
10668 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10669 </attribute>
10670
10671 <attribute name="PATMEnabled" type="boolean">
10672 <desc>Switch for enabling and disabling the PATM component.</desc>
10673 </attribute>
10674
10675 <attribute name="CSAMEnabled" type="boolean">
10676 <desc>Switch for enabling and disabling the CSAM component.</desc>
10677 </attribute>
10678
10679 <attribute name="logEnabled" type="boolean">
10680 <desc>Switch for enabling and disabling logging.</desc>
10681 </attribute>
10682
10683 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10684 <desc>
10685 Flag indicating whether the VM is currently making use of CPU hardware
10686 virtualization extensions.
10687 </desc>
10688 </attribute>
10689
10690 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10691 <desc>
10692 Flag indicating whether the VM is currently making use of the nested paging
10693 CPU hardware virtualization extension.
10694 </desc>
10695 </attribute>
10696
10697 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10698 <desc>
10699 Flag indicating whether the VM is currently making use of the VPID
10700 VT-x extension.
10701 </desc>
10702 </attribute>
10703
10704 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10705 <desc>
10706 Flag indicating whether the VM is currently making use of the Physical
10707 Address Extension CPU feature.
10708 </desc>
10709 </attribute>
10710
10711 <attribute name="virtualTimeRate" type="unsigned long">
10712 <desc>
10713 The rate at which the virtual time runs expressed as a percentage.
10714 The accepted range is 2% to 20000%.
10715 </desc>
10716 </attribute>
10717
10718 <!-- @todo method for setting log flags, groups and destination! -->
10719
10720 <attribute name="VM" type="unsigned long long" readonly="yes">
10721 <desc>
10722 Gets the VM handle. This is only for internal use while
10723 we carve the details of this interface.
10724 </desc>
10725 </attribute>
10726
10727 </interface>
10728
10729 <!--
10730 // IUSBController
10731 /////////////////////////////////////////////////////////////////////////
10732 -->
10733
10734 <interface
10735 name="IUSBController" extends="$unknown"
10736 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
10737 wsmap="managed"
10738 >
10739 <attribute name="enabled" type="boolean">
10740 <desc>
10741 Flag whether the USB controller is present in the
10742 guest system. If disabled, the virtual guest hardware will
10743 not contain any USB controller. Can only be changed when
10744 the VM is powered off.
10745 </desc>
10746 </attribute>
10747
10748 <attribute name="enabledEhci" type="boolean">
10749 <desc>
10750 Flag whether the USB EHCI controller is present in the
10751 guest system. If disabled, the virtual guest hardware will
10752 not contain a USB EHCI controller. Can only be changed when
10753 the VM is powered off.
10754 </desc>
10755 </attribute>
10756
10757 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10758 <desc>
10759 USB standard version which the controller implements.
10760 This is a BCD which means that the major version is in the
10761 high byte and minor version is in the low byte.
10762 </desc>
10763 </attribute>
10764
10765 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
10766 <desc>
10767 List of USB device filters associated with the machine.
10768
10769 If the machine is currently running, these filters are activated
10770 every time a new (supported) USB device is attached to the host
10771 computer that was not ignored by global filters
10772 (<link to="IHost::USBDeviceFilters"/>).
10773
10774 These filters are also activated when the machine is powered up.
10775 They are run against a list of all currently available USB
10776 devices (in states
10777 <link to="USBDeviceState_Available"/>,
10778 <link to="USBDeviceState_Busy"/>,
10779 <link to="USBDeviceState_Held"/>) that were not previously
10780 ignored by global filters.
10781
10782 If at least one filter matches the USB device in question, this
10783 device is automatically captured (attached to) the virtual USB
10784 controller of this machine.
10785
10786 <see>IUSBDeviceFilter, ::IUSBController</see>
10787 </desc>
10788 </attribute>
10789
10790 <method name="createDeviceFilter">
10791 <desc>
10792 Creates a new USB device filter. All attributes except
10793 the filter name are set to <tt>null</tt> (any match),
10794 <i>active</i> is <tt>false</tt> (the filter is not active).
10795
10796 The created filter can then be added to the list of filters using
10797 <link to="#insertDeviceFilter"/>.
10798
10799 <result name="VBOX_E_INVALID_VM_STATE">
10800 The virtual machine is not mutable.
10801 </result>
10802
10803 <see>#deviceFilters</see>
10804 </desc>
10805 <param name="name" type="wstring" dir="in">
10806 <desc>
10807 Filter name. See <link to="IUSBDeviceFilter::name"/>
10808 for more info.
10809 </desc>
10810 </param>
10811 <param name="filter" type="IUSBDeviceFilter" dir="return">
10812 <desc>Created filter object.</desc>
10813 </param>
10814 </method>
10815
10816 <method name="insertDeviceFilter">
10817 <desc>
10818 Inserts the given USB device to the specified position
10819 in the list of filters.
10820
10821 Positions are numbered starting from <tt>0</tt>. If the specified
10822 position is equal to or greater than the number of elements in
10823 the list, the filter is added to the end of the collection.
10824
10825 <note>
10826 Duplicates are not allowed, so an attempt to insert a
10827 filter that is already in the collection, will return an
10828 error.
10829 </note>
10830
10831 <result name="VBOX_E_INVALID_VM_STATE">
10832 Virtual machine is not mutable.
10833 </result>
10834 <result name="E_INVALIDARG">
10835 USB device filter not created within this VirtualBox instance.
10836 </result>
10837 <result name="VBOX_E_INVALID_OBJECT_STATE">
10838 USB device filter already in list.
10839 </result>
10840
10841 <see>#deviceFilters</see>
10842 </desc>
10843 <param name="position" type="unsigned long" dir="in">
10844 <desc>Position to insert the filter to.</desc>
10845 </param>
10846 <param name="filter" type="IUSBDeviceFilter" dir="in">
10847 <desc>USB device filter to insert.</desc>
10848 </param>
10849 </method>
10850
10851 <method name="removeDeviceFilter">
10852 <desc>
10853 Removes a USB device filter from the specified position in the
10854 list of filters.
10855
10856 Positions are numbered starting from <tt>0</tt>. Specifying a
10857 position equal to or greater than the number of elements in
10858 the list will produce an error.
10859
10860 <see>#deviceFilters</see>
10861
10862 <result name="VBOX_E_INVALID_VM_STATE">
10863 Virtual machine is not mutable.
10864 </result>
10865 <result name="E_INVALIDARG">
10866 USB device filter list empty or invalid @a position.
10867 </result>
10868
10869 </desc>
10870 <param name="position" type="unsigned long" dir="in">
10871 <desc>Position to remove the filter from.</desc>
10872 </param>
10873 <param name="filter" type="IUSBDeviceFilter" dir="return">
10874 <desc>Removed USB device filter.</desc>
10875 </param>
10876 </method>
10877
10878 </interface>
10879
10880
10881 <!--
10882 // IUSBDevice
10883 /////////////////////////////////////////////////////////////////////////
10884 -->
10885
10886 <enumerator
10887 name="IUSBDeviceEnumerator" type="IUSBDevice"
10888 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
10889 />
10890
10891 <collection
10892 name="IUSBDeviceCollection" type="IUSBDevice"
10893 enumerator="IUSBDeviceEnumerator"
10894 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
10895 readonly="yes"
10896 >
10897 <method name="findById">
10898 <desc>
10899 Searches this collection for a USB device with the given UUID.
10900 <note>
10901 The method returns an error if the given UUID does not
10902 correspond to any USB device in the collection.
10903 </note>
10904 <see>IUSBDevice::id</see>
10905 </desc>
10906 <param name="id" type="uuid" dir="in">
10907 <desc>UUID of the USB device to search for.</desc>
10908 </param>
10909 <param name="device" type="IUSBDevice" dir="return">
10910 <desc>Found USB device object.</desc>
10911 </param>
10912 </method>
10913
10914 <method name="findByAddress">
10915 <desc>
10916 Searches this collection for a USB device with the given
10917 host address.
10918 <note>
10919 The method returns an error if the given address does not
10920 correspond to any USB device in the collection.
10921 </note>
10922 <see>IUSBDevice::address</see>
10923 </desc>
10924 <param name="name" type="wstring" dir="in">
10925 <desc>
10926 Address of the USB device (as assigned by the host) to
10927 search for.
10928 </desc>
10929 </param>
10930 <param name="device" type="IUSBDevice" dir="return">
10931 <desc>Found USB device object.</desc>
10932 </param>
10933 </method>
10934
10935 </collection>
10936
10937 <interface
10938 name="IUSBDevice" extends="$unknown"
10939 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
10940 wsmap="managed"
10941 >
10942 <desc>
10943 The IUSBDevice interface represents a virtual USB device attached to the
10944 virtual machine.
10945
10946 A collection of objects implementing this interface is stored in the
10947 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
10948 attached to a running virtual machine's USB controller.
10949 </desc>
10950
10951 <attribute name="id" type="uuid" readonly="yes">
10952 <desc>
10953 Unique USB device ID. This ID is built from #vendorId,
10954 #productId, #revision and #serialNumber.
10955 </desc>
10956 </attribute>
10957
10958 <attribute name="vendorId" type="unsigned short" readonly="yes">
10959 <desc>Vendor ID.</desc>
10960 </attribute>
10961
10962 <attribute name="productId" type="unsigned short" readonly="yes">
10963 <desc>Product ID.</desc>
10964 </attribute>
10965
10966 <attribute name="revision" type="unsigned short" readonly="yes">
10967 <desc>
10968 Product revision number. This is a packed BCD represented as
10969 unsigned short. The high byte is the integer part and the low
10970 byte is the decimal.
10971 </desc>
10972 </attribute>
10973
10974 <attribute name="manufacturer" type="wstring" readonly="yes">
10975 <desc>Manufacturer string.</desc>
10976 </attribute>
10977
10978 <attribute name="product" type="wstring" readonly="yes">
10979 <desc>Product string.</desc>
10980 </attribute>
10981
10982 <attribute name="serialNumber" type="wstring" readonly="yes">
10983 <desc>Serial number string.</desc>
10984 </attribute>
10985
10986 <attribute name="address" type="wstring" readonly="yes">
10987 <desc>Host specific address of the device.</desc>
10988 </attribute>
10989
10990 <attribute name="port" type="unsigned short" readonly="yes">
10991 <desc>
10992 Host USB port number the device is physically
10993 connected to.
10994 </desc>
10995 </attribute>
10996
10997 <attribute name="version" type="unsigned short" readonly="yes">
10998 <desc>
10999 The major USB version of the device - 1 or 2.
11000 </desc>
11001 </attribute>
11002
11003 <attribute name="portVersion" type="unsigned short" readonly="yes">
11004 <desc>
11005 The major USB version of the host USB port the device is
11006 physically connected to - 1 or 2. For devices not connected to
11007 anything this will have the same value as the version attribute.
11008 </desc>
11009 </attribute>
11010
11011 <attribute name="remote" type="boolean" readonly="yes">
11012 <desc>
11013 Whether the device is physically connected to a remote VRDP
11014 client or to a local host machine.
11015 </desc>
11016 </attribute>
11017
11018 </interface>
11019
11020
11021 <!--
11022 // IUSBDeviceFilter
11023 /////////////////////////////////////////////////////////////////////////
11024 -->
11025
11026 <enumerator
11027 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
11028 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
11029 />
11030
11031 <collection
11032 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
11033 enumerator="IUSBDeviceFilterEnumerator"
11034 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
11035 readonly="yes"
11036 />
11037
11038 <interface
11039 name="IUSBDeviceFilter" extends="$unknown"
11040 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11041 wsmap="managed"
11042 >
11043 <desc>
11044 The IUSBDeviceFilter interface represents an USB device filter used
11045 to perform actions on a group of USB devices.
11046
11047 This type of filters is used by running virtual machines to
11048 automatically capture selected USB devices once they are physically
11049 attached to the host computer.
11050
11051 A USB device is matched to the given device filter if and only if all
11052 attributes of the device match the corresponding attributes of the
11053 filter (that is, attributes are joined together using the logical AND
11054 operation). On the other hand, all together, filters in the list of
11055 filters carry the semantics of the logical OR operation. So if it is
11056 desirable to create a match like "this vendor id OR this product id",
11057 one needs to create two filters and specify "any match" (see below)
11058 for unused attributes.
11059
11060 All filter attributes used for matching are strings. Each string
11061 is an expression representing a set of values of the corresponding
11062 device attribute, that will match the given filter. Currently, the
11063 following filtering expressions are supported:
11064
11065 <ul>
11066 <li><i>Interval filters</i>. Used to specify valid intervals for
11067 integer device attributes (Vendor ID, Product ID and Revision).
11068 The format of the string is:
11069
11070 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11071
11072 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11073 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11074 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11075 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11076 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11077 possible integer is assumed.
11078 </li>
11079 <li><i>Boolean filters</i>. Used to specify acceptable values for
11080 boolean device attributes. The format of the string is:
11081
11082 <tt>true|false|yes|no|0|1</tt>
11083
11084 </li>
11085 <li><i>Exact match</i>. Used to specify a single value for the given
11086 device attribute. Any string that doesn't start with <tt>int:</tt>
11087 represents the exact match. String device attributes are compared to
11088 this string including case of symbols. Integer attributes are first
11089 converted to a string (see individual filter attributes) and then
11090 compared ignoring case.
11091
11092 </li>
11093 <li><i>Any match</i>. Any value of the corresponding device attribute
11094 will match the given filter. An empty or <tt>null</tt> string is
11095 used to construct this type of filtering expressions.
11096
11097 </li>
11098 </ul>
11099
11100 <note>
11101 On the Windows host platform, interval filters are not currently
11102 available. Also all string filter attributes
11103 (<link to="#manufacturer"/>, <link to="#product"/>,
11104 <link to="#serialNumber"/>) are ignored, so they behave as
11105 <i>any match</i> no matter what string expression is specified.
11106 </note>
11107
11108 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11109 </desc>
11110
11111 <attribute name="name" type="wstring">
11112 <desc>
11113 Visible name for this filter.
11114 This name is used to visually distinguish one filter from another,
11115 so it can neither be <tt>null</tt> nor an empty string.
11116 </desc>
11117 </attribute>
11118
11119 <attribute name="active" type="boolean">
11120 <desc>Whether this filter active or has been temporarily disabled.</desc>
11121 </attribute>
11122
11123 <attribute name="vendorId" type="wstring">
11124 <desc>
11125 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11126 The string representation for the <i>exact matching</i>
11127 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11128 (including leading zeroes).
11129 </desc>
11130 </attribute>
11131
11132 <attribute name="productId" type="wstring">
11133 <desc>
11134 <link to="IUSBDevice::productId">Product ID</link> filter.
11135 The string representation for the <i>exact matching</i>
11136 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11137 (including leading zeroes).
11138 </desc>
11139 </attribute>
11140
11141 <attribute name="revision" type="wstring">
11142 <desc>
11143 <link to="IUSBDevice::productId">Product revision number</link>
11144 filter. The string representation for the <i>exact matching</i>
11145 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11146 of the integer part of the revision, and <tt>F</tt> is the
11147 decimal digit of its fractional part (including leading and
11148 trailing zeros).
11149 Note that for interval filters, it's best to use the hexadecimal
11150 form, because the revision is stored as a 16 bit packed BCD value;
11151 so the expression <tt>int:0x0100-0x0199</tt> will match any
11152 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11153 </desc>
11154 </attribute>
11155
11156 <attribute name="manufacturer" type="wstring">
11157 <desc>
11158 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11159 </desc>
11160 </attribute>
11161
11162 <attribute name="product" type="wstring">
11163 <desc>
11164 <link to="IUSBDevice::product">Product</link> filter.
11165 </desc>
11166 </attribute>
11167
11168 <attribute name="serialNumber" type="wstring">
11169 <desc>
11170 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11171 </desc>
11172 </attribute>
11173
11174 <attribute name="port" type="wstring">
11175 <desc>
11176 <link to="IUSBDevice::port">Host USB port</link> filter.
11177 </desc>
11178 </attribute>
11179
11180 <attribute name="remote" type="wstring">
11181 <desc>
11182 <link to="IUSBDevice::remote">Remote state</link> filter.
11183 <note>
11184 This filter makes sense only for machine USB filters,
11185 i.e. it is ignored by IHostUSBDeviceFilter objects.
11186 </note>
11187 </desc>
11188 </attribute>
11189
11190 <attribute name="maskedInterfaces" type="unsigned long">
11191 <desc>
11192 This is an advanced option for hiding one or more USB interfaces
11193 from the guest. The value is a bit mask where the bits that are set
11194 means the corresponding USB interface should be hidden, masked off
11195 if you like.
11196 This feature only works on Linux hosts.
11197 </desc>
11198 </attribute>
11199
11200 </interface>
11201
11202
11203 <!--
11204 // IHostUSBDevice
11205 /////////////////////////////////////////////////////////////////////////
11206 -->
11207
11208 <enum
11209 name="USBDeviceState"
11210 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11211 >
11212 <desc>
11213 USB device state. This enumeration represents all possible states
11214 of the USB device physically attached to the host computer regarding
11215 its state on the host computer and availability to guest computers
11216 (all currently running virtual machines).
11217
11218 Once a supported USB device is attached to the host, global USB
11219 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11220 either ignore the device, or put it to USBDeviceState_Held state, or do
11221 nothing. Unless the device is ignored by global filters, filters of all
11222 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11223 activated that can put it to USBDeviceState_Captured state.
11224
11225 If the device was ignored by global filters, or didn't match
11226 any filters at all (including guest ones), it is handled by the host
11227 in a normal way. In this case, the device state is determined by
11228 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11229 or USBDeviceState_Available, depending on the current device usage.
11230
11231 Besides auto-capturing based on filters, the device can be manually
11232 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11233 state is USBDeviceState_Busy, USBDeviceState_Available or
11234 USBDeviceState_Held.
11235
11236 <note>
11237 Due to differences in USB stack implementations in Linux and Win32,
11238 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11239 only to the Linux version of the product. This also means that (<link
11240 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11241 device state is USBDeviceState_Held.
11242 </note>
11243
11244 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11245 </desc>
11246
11247 <const name="NotSupported" value="0">
11248 <desc>
11249 Not supported by the VirtualBox server, not available to guests.
11250 </desc>
11251 </const>
11252 <const name="Unavailable" value="1">
11253 <desc>
11254 Being used by the host computer exclusively,
11255 not available to guests.
11256 </desc>
11257 </const>
11258 <const name="Busy" value="2">
11259 <desc>
11260 Being used by the host computer, potentially available to guests.
11261 </desc>
11262 </const>
11263 <const name="Available" value="3">
11264 <desc>
11265 Not used by the host computer, available to guests (the host computer
11266 can also start using the device at any time).
11267 </desc>
11268 </const>
11269 <const name="Held" value="4">
11270 <desc>
11271 Held by the VirtualBox server (ignored by the host computer),
11272 available to guests.
11273 </desc>
11274 </const>
11275 <const name="Captured" value="5">
11276 <desc>
11277 Captured by one of the guest computers, not available
11278 to anybody else.
11279 </desc>
11280 </const>
11281 </enum>
11282
11283 <enumerator
11284 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11285 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11286 />
11287
11288 <collection
11289 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11290 enumerator="IHostUSBDeviceEnumerator"
11291 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11292 readonly="yes"
11293 >
11294 <method name="findById">
11295 <desc>
11296 Searches this collection for a USB device with the given UUID.
11297 <note>
11298 The method returns an error if the given UUID does not
11299 correspond to any USB device in the collection.
11300 </note>
11301 <see>IHostUSBDevice::id</see>
11302 </desc>
11303 <param name="id" type="uuid" dir="in">
11304 <desc>UUID of the USB device to search for.</desc>
11305 </param>
11306 <param name="device" type="IHostUSBDevice" dir="return">
11307 <desc>Found USB device object.</desc>
11308 </param>
11309 </method>
11310
11311 <method name="findByAddress">
11312 <desc>
11313 Searches this collection for a USB device with the given
11314 host address.
11315 <note>
11316 The method returns an error if the given address does not
11317 correspond to any USB device in the collection.
11318 </note>
11319 <see>IHostUSBDevice::address</see>
11320 </desc>
11321 <param name="name" type="wstring" dir="in">
11322 <desc>
11323 Address of the USB device (as assigned by the host) to
11324 search for.
11325 </desc>
11326 </param>
11327 <param name="device" type="IHostUSBDevice" dir="return">
11328 <desc>Found USB device object.</desc>
11329 </param>
11330 </method>
11331
11332 </collection>
11333
11334 <interface
11335 name="IHostUSBDevice" extends="IUSBDevice"
11336 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11337 wsmap="managed"
11338 >
11339 <desc>
11340 The IHostUSBDevice interface represents a physical USB device attached
11341 to the host computer.
11342
11343 Besides properties inherited from IUSBDevice, this interface adds the
11344 <link to="#state"/> property that holds the current state of the USB
11345 device.
11346
11347 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11348 </desc>
11349
11350 <attribute name="state" type="USBDeviceState" readonly="yes">
11351 <desc>
11352 Current state of the device.
11353 </desc>
11354 </attribute>
11355
11356 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11357
11358 </interface>
11359
11360
11361 <!--
11362 // IHostUSBDeviceFilter
11363 /////////////////////////////////////////////////////////////////////////
11364 -->
11365
11366 <enum
11367 name="USBDeviceFilterAction"
11368 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11369 >
11370 <desc>
11371 Actions for host USB device filters.
11372 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11373 </desc>
11374
11375 <const name="Null" value="0">
11376 <desc>Null value (never used by the API).</desc>
11377 </const>
11378 <const name="Ignore" value="1">
11379 <desc>Ignore the matched USB device.</desc>
11380 </const>
11381 <const name="Hold" value="2">
11382 <desc>Hold the matched USB device.</desc>
11383 </const>
11384 </enum>
11385
11386 <enumerator
11387 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
11388 uuid="ff735211-903e-4642-9c37-189eb44579fe"
11389 />
11390
11391 <collection
11392 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
11393 enumerator="IHostUSBDeviceFilterEnumerator"
11394 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
11395 readonly="yes"
11396 />
11397
11398 <interface
11399 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11400 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11401 wsmap="managed"
11402 >
11403 <desc>
11404 The IHostUSBDeviceFilter interface represents a global filter for a
11405 physical USB device used by the host computer. Used indirectly in
11406 <link to="IHost::USBDeviceFilters"/>.
11407
11408 Using filters of this type, the host computer determines the initial
11409 state of the USB device after it is physically attached to the
11410 host's USB controller.
11411
11412 <note>
11413 The <link to="#remote"/> attribute is ignored by this type of
11414 filters, because it makes sense only for
11415 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11416 </note>
11417
11418 <see>IHost::USBDeviceFilters</see>
11419 </desc>
11420
11421 <attribute name="action" type="USBDeviceFilterAction">
11422 <desc>
11423 Action performed by the host when an attached USB device
11424 matches this filter.
11425 </desc>
11426 </attribute>
11427
11428 </interface>
11429
11430 <!--
11431 // IAudioAdapter
11432 /////////////////////////////////////////////////////////////////////////
11433 -->
11434
11435 <enum
11436 name="AudioDriverType"
11437 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11438 >
11439 <desc>
11440 Host audio driver type.
11441 </desc>
11442
11443 <const name="Null" value="0">
11444 <desc>Null value, also means "dummy audio driver".</desc>
11445 </const>
11446 <const name="WinMM" value="1"/>
11447 <const name="OSS" value="2"/>
11448 <const name="ALSA" value="3"/>
11449 <const name="DirectSound" value="4"/>
11450 <const name="CoreAudio" value="5"/>
11451 <const name="MMPM" value="6"/>
11452 <const name="Pulse" value="7"/>
11453 <const name="SolAudio" value="8"/>
11454 </enum>
11455
11456 <enum
11457 name="AudioControllerType"
11458 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11459 >
11460 <desc>
11461 Virtual audio controller type.
11462 </desc>
11463
11464 <const name="AC97" value="0"/>
11465 <const name="SB16" value="1"/>
11466 </enum>
11467
11468 <interface
11469 name="IAudioAdapter" extends="$unknown"
11470 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11471 wsmap="managed"
11472 >
11473 <desc>
11474 The IAudioAdapter interface represents the virtual audio adapter of
11475 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11476 </desc>
11477 <attribute name="enabled" type="boolean">
11478 <desc>
11479 Flag whether the audio adapter is present in the
11480 guest system. If disabled, the virtual guest hardware will
11481 not contain any audio adapter. Can only be changed when
11482 the VM is not running.
11483 </desc>
11484 </attribute>
11485 <attribute name="audioController" type="AudioControllerType">
11486 <desc>
11487 The audio hardware we emulate.
11488 </desc>
11489 </attribute>
11490 <attribute name="audioDriver" type="AudioDriverType">
11491 <desc>
11492 Audio driver the adapter is connected to. This setting
11493 can only be changed when the VM is not running.
11494 </desc>
11495 </attribute>
11496 </interface>
11497
11498 <!--
11499 // IVRDPServer
11500 /////////////////////////////////////////////////////////////////////////
11501 -->
11502
11503 <enum
11504 name="VRDPAuthType"
11505 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11506 >
11507 <desc>
11508 VRDP authentication type.
11509 </desc>
11510
11511 <const name="Null" value="0">
11512 <desc>Null value, also means "no authentication".</desc>
11513 </const>
11514 <const name="External" value="1"/>
11515 <const name="Guest" value="2"/>
11516 </enum>
11517
11518 <interface
11519 name="IVRDPServer" extends="$unknown"
11520 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11521 wsmap="managed"
11522 >
11523 <attribute name="enabled" type="boolean">
11524 <desc>VRDP server status.</desc>
11525 </attribute>
11526
11527 <attribute name="port" type="unsigned long">
11528 <desc>
11529 VRDP server port number.
11530 <note>
11531 Setting the value of this property to <tt>0</tt> will reset the port
11532 number to the default value which is
11533 currently <tt>3389</tt>. Reading this property will always return a
11534 real port number, even after it has been set to <tt>0</tt> (in which
11535 case the default port is returned).
11536 </note>
11537 </desc>
11538 </attribute>
11539
11540 <attribute name="netAddress" type="wstring">
11541 <desc>VRDP server address.</desc>
11542 </attribute>
11543
11544 <attribute name="authType" type="VRDPAuthType">
11545 <desc>VRDP authentication method.</desc>
11546 </attribute>
11547
11548 <attribute name="authTimeout" type="unsigned long">
11549 <desc>Timeout for guest authentication. Milliseconds.</desc>
11550 </attribute>
11551
11552 <attribute name="allowMultiConnection" type="boolean">
11553 <desc>
11554 Flag whether multiple simultaneous connections to the VM are permitted.
11555 Note that this will be replaced by a more powerful mechanism in the future.
11556 </desc>
11557 </attribute>
11558
11559 <attribute name="reuseSingleConnection" type="boolean">
11560 <desc>
11561 Flag whether the existing connection must be dropped and a new connection
11562 must be established by the VRDP server, when a new client connects in single
11563 connection mode.
11564 </desc>
11565 </attribute>
11566
11567 </interface>
11568
11569
11570 <!--
11571 // ISharedFolder
11572 /////////////////////////////////////////////////////////////////////////
11573 -->
11574
11575 <enumerator
11576 name="ISharedFolderEnumerator" type="ISharedFolder"
11577 uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
11578 />
11579
11580 <collection
11581 name="ISharedFolderCollection" type="ISharedFolder"
11582 enumerator="ISharedFolderEnumerator"
11583 uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
11584 readonly="yes">
11585
11586 <method name="findByName">
11587 <desc>
11588 Searches this collection for a shared folder with the given logical
11589 name.
11590 <note>
11591 The method returns an error if the given name does not correspond to
11592 any shared folder in the collection.
11593 </note>
11594 </desc>
11595 <param name="name" type="wstring" dir="in">
11596 <desc>Logical name of the shared folder to search for</desc>
11597 </param>
11598 <param name="sharedFolder" type="ISharedFolder" dir="return">
11599 <desc>Found shared folder object</desc>
11600 </param>
11601 </method>
11602
11603 </collection>
11604
11605 <interface
11606 name="ISharedFolder" extends="$unknown"
11607 uuid="ef41869b-ef31-4b30-8e8f-95af35c0e378"
11608 wsmap="struct"
11609 >
11610 <desc>
11611 The ISharedFolder interface represents a folder in the host computer's
11612 file system accessible from the guest OS running inside a virtual
11613 machine using an associated logical name.
11614
11615 There are three types of shared folders:
11616 <ul>
11617 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11618 folders available to all virtual machines.</li>
11619 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11620 VM-specific shared folders available to the given virtual machine at
11621 startup.</li>
11622 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11623 VM-specific shared folders created in the session context (for
11624 example, when the virtual machine is running) and automatically
11625 discarded when the session is closed (the VM is powered off).</li>
11626 </ul>
11627
11628 Logical names of shared folders must be unique within the given scope
11629 (global, permanent or transient). However, they do not need to be unique
11630 across scopes. In this case, the definition of the shared folder in a
11631 more specific scope takes precedence over definitions in all other
11632 scopes. The order of precedence is (more specific to more general):
11633 <ol>
11634 <li>Transient definitions</li>
11635 <li>Permanent definitions</li>
11636 <li>Global definitions</li>
11637 </ol>
11638
11639 For example, if MyMachine has a shared folder named
11640 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11641 transient shared folder named <tt>C_DRIVE</tt> (that points
11642 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11643 of <tt>C_DRIVE</tt> in the guest OS so
11644 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11645 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11646 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11647 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11648 to <tt>C:\\</tt> if it still exists.
11649
11650 Note that permanent and transient shared folders of different machines
11651 are in different name spaces, so they don't overlap and don't need to
11652 have unique logical names.
11653
11654 <note>
11655 Global shared folders are not implemented in the current version of the
11656 product.
11657 </note>
11658 </desc>
11659
11660 <attribute name="name" type="wstring" readonly="yes">
11661 <desc>Logical name of the shared folder.</desc>
11662 </attribute>
11663
11664 <attribute name="hostPath" type="wstring" readonly="yes">
11665 <desc>Full path to the shared folder in the host file system.</desc>
11666 </attribute>
11667
11668 <attribute name="accessible" type="boolean" readonly="yes">
11669 <desc>
11670 Whether the folder defined by the host path is currently
11671 accessible or not.
11672 For example, the folder can be unaccessible if it is placed
11673 on the network share that is not available by the time
11674 this property is read.
11675 </desc>
11676 </attribute>
11677
11678 <attribute name="writable" type="boolean" readonly="yes">
11679 <desc>
11680 Whether the folder defined by the host path is writable or
11681 not.
11682 </desc>
11683 </attribute>
11684
11685 <attribute name="lastAccessError" type="wstring" readonly="yes">
11686 <desc>
11687 Text message that represents the result of the last accessibility
11688 check.
11689
11690 Accessibility checks are performed each time the <link to="#accessible"/>
11691 attribute is read. A @c null string is returned if the last
11692 accessibility check was successful. A non-null string indicates a
11693 failure and should normally describe a reason of the failure (for
11694 example, a file read error).
11695 </desc>
11696 </attribute>
11697
11698 </interface>
11699
11700 <!--
11701 // ISession
11702 /////////////////////////////////////////////////////////////////////////
11703 -->
11704
11705 <interface
11706 name="IInternalSessionControl" extends="$unknown"
11707 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11708 internal="yes"
11709 wsmap="suppress"
11710 >
11711 <method name="getPID">
11712 <desc>PID of the process that has created this Session object.
11713 </desc>
11714 <param name="pid" type="unsigned long" dir="return"/>
11715 </method>
11716
11717 <method name="getRemoteConsole">
11718 <desc>
11719 Returns the console object suitable for remote control.
11720
11721 <result name="VBOX_E_INVALID_VM_STATE">
11722 Session state prevents operation.
11723 </result>
11724 <result name="VBOX_E_INVALID_OBJECT_STATE">
11725 Session type prevents operation.
11726 </result>
11727
11728 </desc>
11729 <param name="console" type="IConsole" dir="return"/>
11730 </method>
11731
11732 <method name="assignMachine">
11733 <desc>
11734 Assigns the machine object associated with this direct-type
11735 session or informs the session that it will be a remote one
11736 (if @a machine == NULL).
11737
11738 <result name="VBOX_E_INVALID_VM_STATE">
11739 Session state prevents operation.
11740 </result>
11741 <result name="VBOX_E_INVALID_OBJECT_STATE">
11742 Session type prevents operation.
11743 </result>
11744
11745 </desc>
11746 <param name="machine" type="IMachine" dir="in"/>
11747 </method>
11748
11749 <method name="assignRemoteMachine">
11750 <desc>
11751 Assigns the machine and the (remote) console object associated with
11752 this remote-type session.
11753
11754 <result name="VBOX_E_INVALID_VM_STATE">
11755 Session state prevents operation.
11756 </result>
11757
11758 </desc>
11759 <param name="machine" type="IMachine" dir="in"/>
11760 <param name="console" type="IConsole" dir="in"/>
11761 </method>
11762
11763 <method name="updateMachineState">
11764 <desc>
11765 Updates the machine state in the VM process.
11766 Must be called only in certain cases
11767 (see the method implementation).
11768
11769 <result name="VBOX_E_INVALID_VM_STATE">
11770 Session state prevents operation.
11771 </result>
11772 <result name="VBOX_E_INVALID_OBJECT_STATE">
11773 Session type prevents operation.
11774 </result>
11775
11776 </desc>
11777 <param name="aMachineState" type="MachineState" dir="in"/>
11778 </method>
11779
11780 <method name="uninitialize">
11781 <desc>
11782 Uninitializes (closes) this session. Used by VirtualBox to close
11783 the corresponding remote session when the direct session dies
11784 or gets closed.
11785
11786 <result name="VBOX_E_INVALID_VM_STATE">
11787 Session state prevents operation.
11788 </result>
11789
11790 </desc>
11791 </method>
11792
11793 <method name="onDVDDriveChange">
11794 <desc>
11795 Triggered when settings of the DVD drive object of the
11796 associated virtual machine have changed.
11797
11798 <result name="VBOX_E_INVALID_VM_STATE">
11799 Session state prevents operation.
11800 </result>
11801 <result name="VBOX_E_INVALID_OBJECT_STATE">
11802 Session type prevents operation.
11803 </result>
11804
11805 </desc>
11806 </method>
11807
11808 <method name="onFloppyDriveChange">
11809 <desc>
11810 Triggered when settings of the floppy drive object of the
11811 associated virtual machine have changed.
11812
11813 <result name="VBOX_E_INVALID_VM_STATE">
11814 Session state prevents operation.
11815 </result>
11816 <result name="VBOX_E_INVALID_OBJECT_STATE">
11817 Session type prevents operation.
11818 </result>
11819
11820 </desc>
11821 </method>
11822
11823 <method name="onNetworkAdapterChange">
11824 <desc>
11825 Triggered when settings of a network adapter of the
11826 associated virtual machine have changed.
11827
11828 <result name="VBOX_E_INVALID_VM_STATE">
11829 Session state prevents operation.
11830 </result>
11831 <result name="VBOX_E_INVALID_OBJECT_STATE">
11832 Session type prevents operation.
11833 </result>
11834
11835 </desc>
11836 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11837 </method>
11838
11839 <method name="onSerialPortChange">
11840 <desc>
11841 Triggered when settings of a serial port of the
11842 associated virtual machine have changed.
11843
11844 <result name="VBOX_E_INVALID_VM_STATE">
11845 Session state prevents operation.
11846 </result>
11847 <result name="VBOX_E_INVALID_OBJECT_STATE">
11848 Session type prevents operation.
11849 </result>
11850
11851 </desc>
11852 <param name="serialPort" type="ISerialPort" dir="in"/>
11853 </method>
11854
11855 <method name="onParallelPortChange">
11856 <desc>
11857 Triggered when settings of a parallel port of the
11858 associated virtual machine have changed.
11859
11860 <result name="VBOX_E_INVALID_VM_STATE">
11861 Session state prevents operation.
11862 </result>
11863 <result name="VBOX_E_INVALID_OBJECT_STATE">
11864 Session type prevents operation.
11865 </result>
11866
11867 </desc>
11868 <param name="parallelPort" type="IParallelPort" dir="in"/>
11869 </method>
11870
11871 <method name="onVRDPServerChange">
11872 <desc>
11873 Triggered when settings of the VRDP server object of the
11874 associated virtual machine have changed.
11875
11876 <result name="VBOX_E_INVALID_VM_STATE">
11877 Session state prevents operation.
11878 </result>
11879 <result name="VBOX_E_INVALID_OBJECT_STATE">
11880 Session type prevents operation.
11881 </result>
11882
11883 </desc>
11884 </method>
11885
11886 <method name="onUSBControllerChange">
11887 <desc>
11888 Triggered when settings of the USB controller object of the
11889 associated virtual machine have changed.
11890
11891 <result name="VBOX_E_INVALID_VM_STATE">
11892 Session state prevents operation.
11893 </result>
11894 <result name="VBOX_E_INVALID_OBJECT_STATE">
11895 Session type prevents operation.
11896 </result>
11897
11898 </desc>
11899 </method>
11900
11901 <method name="onSharedFolderChange">
11902 <desc>
11903 Triggered when a permanent (global or machine) shared folder has been
11904 created or removed.
11905 <note>
11906 We don't pass shared folder parameters in this notification because
11907 the order in which parallel notifications are delivered is not defined,
11908 therefore it could happen that these parameters were outdated by the
11909 time of processing this notification.
11910 </note>
11911
11912 <result name="VBOX_E_INVALID_VM_STATE">
11913 Session state prevents operation.
11914 </result>
11915 <result name="VBOX_E_INVALID_OBJECT_STATE">
11916 Session type prevents operation.
11917 </result>
11918
11919 </desc>
11920 <param name="global" type="boolean" dir="in"/>
11921 </method>
11922
11923 <method name="onUSBDeviceAttach">
11924 <desc>
11925 Triggered when a request to capture a USB device (as a result
11926 of matched USB filters or direct call to
11927 <link to="IConsole::attachUSBDevice"/>) has completed.
11928 A @c null @a error object means success, otherwise it
11929 describes a failure.
11930
11931 <result name="VBOX_E_INVALID_VM_STATE">
11932 Session state prevents operation.
11933 </result>
11934 <result name="VBOX_E_INVALID_OBJECT_STATE">
11935 Session type prevents operation.
11936 </result>
11937
11938 </desc>
11939 <param name="device" type="IUSBDevice" dir="in"/>
11940 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11941 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
11942 </method>
11943
11944 <method name="onUSBDeviceDetach">
11945 <desc>
11946 Triggered when a request to release the USB device (as a result
11947 of machine termination or direct call to
11948 <link to="IConsole::detachUSBDevice"/>) has completed.
11949 A @c null @a error object means success, otherwise it
11950
11951 <result name="VBOX_E_INVALID_VM_STATE">
11952 Session state prevents operation.
11953 </result>
11954 <result name="VBOX_E_INVALID_OBJECT_STATE">
11955 Session type prevents operation.
11956 </result>
11957
11958 </desc>
11959 <param name="id" type="uuid" dir="in"/>
11960 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11961 </method>
11962
11963 <method name="onShowWindow">
11964 <desc>
11965 Called by <link to="IMachine::canShowConsoleWindow"/> and by
11966 <link to="IMachine::showConsoleWindow"/> in order to notify
11967 console callbacks
11968 <link to="IConsoleCallback::onCanShowWindow"/>
11969 and <link to="IConsoleCallback::onShowWindow"/>.
11970
11971 <result name="VBOX_E_INVALID_OBJECT_STATE">
11972 Session type prevents operation.
11973 </result>
11974
11975 </desc>
11976 <param name="check" type="boolean" dir="in"/>
11977 <param name="canShow" type="boolean" dir="out"/>
11978 <param name="winId" type="unsigned long long" dir="out"/>
11979 </method>
11980
11981 <method name="accessGuestProperty">
11982 <desc>
11983 Called by <link to="IMachine::getGuestProperty"/> and by
11984 <link to="IMachine::setGuestProperty"/> in order to read and
11985 modify guest properties.
11986
11987 <result name="VBOX_E_INVALID_VM_STATE">
11988 Machine session is not open.
11989 </result>
11990 <result name="VBOX_E_INVALID_OBJECT_STATE">
11991 Session type is not direct.
11992 </result>
11993
11994 </desc>
11995 <param name="name" type="wstring" dir="in"/>
11996 <param name="value" type="wstring" dir="in"/>
11997 <param name="flags" type="wstring" dir="in"/>
11998 <param name="isSetter" type="boolean" dir="in"/>
11999 <param name="retValue" type="wstring" dir="out"/>
12000 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12001 <param name="retFlags" type="wstring" dir="out"/>
12002 </method>
12003
12004 <method name="enumerateGuestProperties">
12005 <desc>
12006 Return a list of the guest properties matching a set of patterns along
12007 with their values, time stamps and flags.
12008
12009 <result name="VBOX_E_INVALID_VM_STATE">
12010 Machine session is not open.
12011 </result>
12012 <result name="VBOX_E_INVALID_OBJECT_STATE">
12013 Session type is not direct.
12014 </result>
12015
12016 </desc>
12017 <param name="patterns" type="wstring" dir="in">
12018 <desc>
12019 The patterns to match the properties against as a comma-separated
12020 string. If this is empty, all properties currently set will be
12021 returned.
12022 </desc>
12023 </param>
12024 <param name="key" type="wstring" dir="out" safearray="yes">
12025 <desc>
12026 The key names of the properties returned.
12027 </desc>
12028 </param>
12029 <param name="value" type="wstring" dir="out" safearray="yes">
12030 <desc>
12031 The values of the properties returned. The array entries match the
12032 corresponding entries in the @a key array.
12033 </desc>
12034 </param>
12035 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12036 <desc>
12037 The time stamps of the properties returned. The array entries match
12038 the corresponding entries in the @a key array.
12039 </desc>
12040 </param>
12041 <param name="flags" type="wstring" dir="out" safearray="yes">
12042 <desc>
12043 The flags of the properties returned. The array entries match the
12044 corresponding entries in the @a key array.
12045 </desc>
12046 </param>
12047 </method>
12048
12049 </interface>
12050
12051 <interface
12052 name="ISession" extends="$dispatched"
12053 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12054 wsmap="managed"
12055 >
12056 <desc>
12057 The ISession interface represents a serialization primitive for virtual
12058 machines.
12059
12060 With VirtualBox, every time one wishes to manipulate a virtual machine
12061 (e.g. change its settings or start execution), a session object is
12062 required. Such an object must be passed to one of the session methods
12063 that open the given session, which then initiates the machine manipulation.
12064
12065 A session serves several purposes: it identifies to the inter-process VirtualBox
12066 code which process is currently working with the virtual machine, and it ensures
12067 that there are no incompatible requests from several processes for the
12068 same virtual machine. Session objects can therefore be thought of as mutex
12069 semaphores that lock virtual machines to prevent conflicting accesses from
12070 several processes.
12071
12072 How sessions objects are used depends on whether you use the Main API
12073 via COM or via the webservice:
12074
12075 <ul>
12076 <li>When using the COM API directly, an object of the Session class from the
12077 VirtualBox type library needs to be created. In regular COM C++ client code,
12078 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12079 This object will then act as a local session object in further calls to open
12080 a session.
12081 </li>
12082
12083 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12084 one session object automatically when <link to="IWebsessionManager::logon" />
12085 is called. A managed object reference to that session object can be retrieved by
12086 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12087 reference can then be used to open sessions.
12088 </li>
12089 </ul>
12090
12091 Sessions are mainly used in two variations:
12092
12093 <ul>
12094 <li>
12095 To start a virtual machine in a separate process, one would call
12096 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12097 object as its first parameter. This session then identifies the caller
12098 and lets him control the started machine (for example, pause machine
12099 execution or power it down) as well as be notified about machine
12100 execution state changes.
12101 </li>
12102
12103 <li>To alter machine settings, or to start machine execution within the
12104 current process, one needs to open a direct session for the machine first by
12105 calling <link to="IVirtualBox::openSession"/>. While a direct session
12106 is open within one process, no any other process may open another direct
12107 session for the same machine. This prevents the machine from being changed
12108 by other processes while it is running or while the machine is being configured.
12109 </li>
12110 </ul>
12111
12112 One also can attach to an existing direct session already opened by
12113 another process (for example, in order to send a control request to the
12114 virtual machine such as the pause or the reset request). This is done by
12115 calling <link to="IVirtualBox::openExistingSession"/>.
12116
12117 <note>
12118 Unless you are trying to write a new VirtualBox front-end that
12119 performs direct machine execution (like the VirtualBox or VBoxSDL
12120 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12121 session opened by <link to="IVirtualBox::openSession"/> and use this
12122 session only to change virtual machine settings. If you simply want to
12123 start virtual machine execution using one of the existing front-ends
12124 (for example the VirtualBox GUI or headless server), simply use
12125 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12126 will power up the machine automatically for you.
12127 </note>
12128 </desc>
12129
12130 <attribute name="state" type="SessionState" readonly="yes">
12131 <desc>Current state of this session.</desc>
12132 </attribute>
12133
12134 <attribute name="type" type="SessionType" readonly="yes">
12135 <desc>
12136 Type of this session. The value of this attribute is valid only
12137 if the session is currently open (i.e. its #state is
12138 SessionType_SessionOpen), otherwise an error will be returned.
12139 </desc>
12140 </attribute>
12141
12142 <attribute name="machine" type="IMachine" readonly="yes">
12143 <desc>Machine object associated with this session.</desc>
12144 </attribute>
12145
12146 <attribute name="console" type="IConsole" readonly="yes">
12147 <desc>Console object associated with this session.</desc>
12148 </attribute>
12149
12150 <method name="close">
12151 <desc>
12152 Closes a session that was previously opened.
12153
12154 It is recommended that every time an "open session" method (such as
12155 <link to="IVirtualBox::openRemoteSession" /> or
12156 <link to="IVirtualBox::openSession" />) has been called to
12157 manipulate a virtual machine, the caller invoke
12158 ISession::close() when it's done doing so. Since sessions are
12159 serialization primitives much like ordinary mutexes, they are
12160 best used the same way: for each "open" call, there should be
12161 a matching "close" call, even when errors occur.
12162
12163 Otherwise, if a direct session for a machine opened with
12164 <link to="IVirtualBox::openSession"/> is not explicitly closed
12165 when the application terminates, the state of the machine will
12166 be set to <link to="MachineState_Aborted" /> on the server.
12167
12168 Generally, it is recommended to close all open sessions explicitly
12169 before terminating the application (regardless of the reason for
12170 the termination).
12171
12172 <note>
12173 Do not expect the session state (<link to="ISession::state" />
12174 to return to "Closed" immediately after you invoke
12175 ISession::close(), particularly if you have started a remote
12176 session to execute the VM in a new process. The session state will
12177 automatically return to "Closed" once the VM is no longer executing,
12178 which can of course take a very long time.
12179 </note>
12180
12181 <result name="E_UNEXPECTED">
12182 Session is not open.
12183 </result>
12184
12185 </desc>
12186 </method>
12187
12188 </interface>
12189
12190 <!--
12191 // ISATAController
12192 /////////////////////////////////////////////////////////////////////////
12193 -->
12194
12195 <interface
12196 name="ISATAController" extends="$unknown"
12197 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12198 wsmap="managed"
12199 >
12200 <attribute name="enabled" type="boolean">
12201 <desc>
12202 Flag whether the SATA controller is present in the
12203 guest system. If disabled, the virtual guest hardware will
12204 not contain any SATA controller. Can only be changed when
12205 the VM is powered off.
12206 </desc>
12207 </attribute>
12208
12209 <attribute name="portCount" type="unsigned long">
12210 <desc>
12211 The number of usable ports on the SATA controller.
12212 It ranges from 1 to 30.
12213 </desc>
12214 </attribute>
12215
12216 <method name="GetIDEEmulationPort">
12217 <desc>
12218 Gets the corresponding port number which is emulated as an IDE device.
12219
12220 <result name="E_INVALIDARG">
12221 The @a devicePosition is not in the range 0 to 3.
12222 </result>
12223
12224 </desc>
12225 <param name="devicePosition" type="long" dir="in"/>
12226 <param name="portNumber" type="long" dir="return"/>
12227 </method>
12228
12229 <method name="SetIDEEmulationPort">
12230 <desc>
12231 Sets the port number which is emulated as an IDE device.
12232
12233 <result name="E_INVALIDARG">
12234 The @a devicePosition is not in the range 0 to 3 or the
12235 @a portNumber is not in the range 0 to 29.
12236 </result>
12237
12238 </desc>
12239 <param name="devicePosition" type="long" dir="in"/>
12240 <param name="portNumber" type="long" dir="in"/>
12241 </method>
12242
12243 </interface>
12244
12245<if target="wsdl">
12246
12247 <!--
12248 // IManagedObjectRef
12249 /////////////////////////////////////////////////////////////////////////
12250 -->
12251
12252 <interface
12253 name="IManagedObjectRef" extends="$unknown"
12254 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12255 internal="yes"
12256 wsmap="managed"
12257 wscpp="hardcoded"
12258 >
12259 <desc>
12260 Managed object reference.
12261
12262 Only within the webservice, a managed object reference (which is really
12263 an opaque number) allows a webservice client to address an object
12264 that lives in the address space of the webservice server.
12265
12266 Behind each managed object reference, there is a COM object that lives
12267 in the webservice server's address space. The COM object is not freed
12268 until the managed object reference is released, either by an explicit
12269 call to <link to="IManagedObjectRef::release" /> or by logging off from
12270 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12271 all objects created during the webservice session.
12272
12273 Whenever a method call of the VirtualBox API returns a COM object, the
12274 webservice representation of that method will instead return a
12275 managed object reference, which can then be used to invoke methods
12276 on that object.
12277 </desc>
12278
12279 <method name="getInterfaceName">
12280 <desc>
12281 Returns the name of the interface that this managed object represents,
12282 for example, "IMachine", as a string.
12283 </desc>
12284 <param name="return" type="wstring" dir="return"/>
12285 </method>
12286
12287 <method name="release">
12288 <desc>
12289 Releases this managed object reference and frees the resources that
12290 were allocated for it in the webservice server process. After calling
12291 this method, the identifier of the reference can no longer be used.
12292 </desc>
12293 </method>
12294
12295 </interface>
12296
12297 <!--
12298 // IWebsessionManager
12299 /////////////////////////////////////////////////////////////////////////
12300 -->
12301
12302 <interface
12303 name="IWebsessionManager" extends="$unknown"
12304 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12305 internal="yes"
12306 wsmap="global"
12307 wscpp="hardcoded"
12308 >
12309 <desc>
12310 Websession manager. This provides essential services
12311 to webservice clients.
12312 </desc>
12313 <method name="logon">
12314 <desc>
12315 Logs a new client onto the webservice and returns a managed object reference to
12316 the IVirtualBox instance, which the client can then use as a basis to further
12317 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12318 interface, in one way or the other.
12319 </desc>
12320 <param name="username" type="wstring" dir="in"/>
12321 <param name="password" type="wstring" dir="in"/>
12322 <param name="return" type="IVirtualBox" dir="return"/>
12323 </method>
12324
12325 <method name="getSessionObject">
12326 <desc>
12327 Returns a managed object reference to the internal ISession object that was created
12328 for this web service session when the client logged on.
12329
12330 <see>ISession</see>
12331 </desc>
12332 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12333 <param name="return" type="ISession" dir="return"/>
12334 </method>
12335
12336 <method name="logoff">
12337 <desc>
12338 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12339 and destroys all resources associated with the session (most importantly, all
12340 managed objects created in the server while the session was active).
12341 </desc>
12342 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12343 </method>
12344
12345 </interface>
12346
12347</if>
12348
12349 <!--
12350 // IPerformanceCollector & friends
12351 /////////////////////////////////////////////////////////////////////////
12352 -->
12353
12354 <interface
12355 name="IPerformanceMetric" extends="$unknown"
12356 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12357 >
12358 <desc>
12359 The IPerformanceMetric interface represents parameters of the given
12360 performance metric.
12361 </desc>
12362
12363 <attribute name="metricName" type="wstring" readonly="yes">
12364 <desc>
12365 Name of the metric.
12366 </desc>
12367 </attribute>
12368
12369 <attribute name="object" type="$unknown" readonly="yes">
12370 <desc>
12371 Object this metric belongs to.
12372 </desc>
12373 </attribute>
12374
12375 <attribute name="description" type="wstring" readonly="yes">
12376 <desc>
12377 Textual description of the metric.
12378 </desc>
12379 </attribute>
12380
12381 <attribute name="period" type="unsigned long" readonly="yes">
12382 <desc>
12383 Time interval between samples, measured in seconds.
12384 </desc>
12385 </attribute>
12386
12387 <attribute name="count" type="unsigned long" readonly="yes">
12388 <desc>
12389 Number of recent samples retained by the performance collector for this
12390 metric.
12391
12392 When the collected sample count exceeds this number, older samples
12393 are discarded.
12394 </desc>
12395 </attribute>
12396
12397 <attribute name="unit" type="wstring" readonly="yes">
12398 <desc>
12399 Unit of measurement.
12400 </desc>
12401 </attribute>
12402
12403 <attribute name="minimumValue" type="long" readonly="yes">
12404 <desc>
12405 Minimum possible value of this metric.
12406 </desc>
12407 </attribute>
12408
12409 <attribute name="maximumValue" type="long" readonly="yes">
12410 <desc>
12411 Maximum possible value of this metric.
12412 </desc>
12413 </attribute>
12414 </interface>
12415
12416 <interface
12417 name="IPerformanceCollector" extends="$unknown"
12418 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12419 wsmap="managed"
12420 >
12421 <desc>
12422 The IPerformanceCollector interface represents a service that collects and
12423 stores performance metrics data.
12424
12425 Performance metrics are associated with objects like IHost and
12426 IMachine. Each object has a distinct set of performance metrics.
12427 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12428
12429 Metric data are collected at the specified intervals and are retained
12430 internally. The interval and the number of samples retained can be set
12431 with <link to="IPerformanceCollector::setupMetrics" />.
12432
12433 Metrics are organized hierarchically, each level separated by slash (/).
12434 General scheme for metric name is
12435 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12436 metric name stands for: CPU category, Load metric, User submetric, average
12437 aggregate. An aggregate function is computed over all retained data. Valid
12438 aggregate functions are:
12439
12440 <ul>
12441 <li>avg -- average</li>
12442 <li>min -- minimum</li>
12443 <li>max -- maximum</li>
12444 </ul>
12445
12446 "Category/Metric" together form base metric name. A base metric is the
12447 smallest unit for which a sampling interval and the number of retained
12448 samples can be set. Only base metrics can be enabled and disabled. All
12449 sub-metrics are collected when their base metric is collected.
12450 Collected values for any set of sub-metrics can be queried with
12451 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12452 metric parameters, querying metric data, enabling or disabling metrics
12453 wildcards can be used in metric names to specify a subset of metrics. For
12454 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12455 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12456 values without aggregates <tt>*:</tt> can be used.
12457
12458 The valid names for base metrics are:
12459
12460 <ul>
12461 <li>CPU/Load</li>
12462 <li>CPU/MHz</li>
12463 <li>RAM/Usage</li>
12464 </ul>
12465
12466 The general sequence for collecting and retrieving the metrics is:
12467 <ul>
12468 <li>
12469 Obtain an instance of IPerformanceCollector with
12470 <link to="IVirtualBox::performanceCollector" />
12471 </li>
12472 <li>
12473 Allocate and populate an array with references to objects the metrics
12474 will be collected for. Use references to IHost and IMachine objects.
12475 </li>
12476 <li>
12477 Allocate and populate an array with base metric names the data will be
12478 collected for.
12479 </li>
12480 <li>
12481 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12482 metric data will be collected and stored.
12483 </li>
12484 <li>
12485 Wait for the data to get collected.
12486 </li>
12487 <li>
12488 Allocate and populate an array with references to objects the metric
12489 values will be queried for. You can re-use the object array used for
12490 setting base metrics.
12491 </li>
12492 <li>
12493 Allocate and populate an array with metric names the data will be
12494 collected for. Note that metric names differ from base metric names.
12495 </li>
12496 <li>
12497 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12498 have been collected so far are returned. Note that the values are still
12499 retained internally and data collection continues.
12500 </li>
12501 </ul>
12502
12503 For an example of usage refer to the following files in VirtualBox SDK:
12504 <ul>
12505 <li>
12506 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12507 </li>
12508 <li>
12509 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12510 </li>
12511 </ul>
12512 </desc>
12513
12514 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12515 <desc>
12516 Array of unique names of metrics.
12517
12518 This array represents all metrics supported by the performance
12519 collector. Individual objects do not necessarily support all of them.
12520 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12521 list of supported metrics for a particular object.
12522 </desc>
12523 </attribute>
12524
12525 <method name="getMetrics">
12526 <desc>
12527 Returns parameters of specified metrics for a set of objects.
12528 <note>
12529 @c Null metrics array means all metrics. @c Null object array means
12530 all existing objects.
12531 </note>
12532 </desc>
12533 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12534 <desc>
12535 Metric name filter. Currently, only a comma-separated list of metrics
12536 is supported.
12537 </desc>
12538 </param>
12539 <param name="objects" type="$unknown" dir="in" safearray="yes">
12540 <desc>
12541 Set of objects to return metric parameters for.
12542 </desc>
12543 </param>
12544 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12545 <desc>
12546 Array of returned metric parameters.
12547 </desc>
12548 </param>
12549 </method>
12550
12551 <method name="setupMetrics">
12552 <desc>
12553 Sets parameters of specified base metrics for a set of objects. Returns
12554 an array of <link to="IPerformanceMetric" /> describing the metrics have
12555 been affected.
12556 <note>
12557 @c Null or empty metric name array means all metrics. @c Null or empty
12558 object array means all existing objects. If metric name array contains
12559 a single element and object array contains many, the single metric
12560 name array element is applied to each object array element to form
12561 metric/object pairs.
12562 </note>
12563 </desc>
12564 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12565 <desc>
12566 Metric name filter. Comma-separated list of metrics with wildcard
12567 support.
12568 </desc>
12569 </param>
12570 <param name="objects" type="$unknown" dir="in" safearray="yes">
12571 <desc>
12572 Set of objects to setup metric parameters for.
12573 </desc>
12574 </param>
12575 <param name="period" type="unsigned long" dir="in">
12576 <desc>
12577 Time interval in seconds between two consecutive samples of performance
12578 data.
12579 </desc>
12580 </param>
12581 <param name="count" type="unsigned long" dir="in">
12582 <desc>
12583 Number of samples to retain in performance data history. Older samples
12584 get discarded.
12585 </desc>
12586 </param>
12587 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12588 <desc>
12589 Array of metrics that have been modified by the call to this method.
12590 </desc>
12591 </param>
12592 </method>
12593
12594 <method name="enableMetrics">
12595 <desc>
12596 Turns on collecting specified base metrics. Returns an array of
12597 <link to="IPerformanceMetric" /> describing the metrics have been
12598 affected.
12599 <note>
12600 @c Null or empty metric name array means all metrics. @c Null or empty
12601 object array means all existing objects. If metric name array contains
12602 a single element and object array contains many, the single metric
12603 name array element is applied to each object array element to form
12604 metric/object pairs.
12605 </note>
12606 </desc>
12607 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12608 <desc>
12609 Metric name filter. Comma-separated list of metrics with wildcard
12610 support.
12611 </desc>
12612 </param>
12613 <param name="objects" type="$unknown" dir="in" safearray="yes">
12614 <desc>
12615 Set of objects to enable metrics for.
12616 </desc>
12617 </param>
12618 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12619 <desc>
12620 Array of metrics that have been modified by the call to this method.
12621 </desc>
12622 </param>
12623 </method>
12624
12625 <method name="disableMetrics">
12626 <desc>
12627 Turns off collecting specified base metrics. Returns an array of
12628 <link to="IPerformanceMetric" /> describing the metrics have been
12629 affected.
12630 <note>
12631 @c Null or empty metric name array means all metrics. @c Null or empty
12632 object array means all existing objects. If metric name array contains
12633 a single element and object array contains many, the single metric
12634 name array element is applied to each object array element to form
12635 metric/object pairs.
12636 </note>
12637 </desc>
12638 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12639 <desc>
12640 Metric name filter. Comma-separated list of metrics with wildcard
12641 support.
12642 </desc>
12643 </param>
12644 <param name="objects" type="$unknown" dir="in" safearray="yes">
12645 <desc>
12646 Set of objects to disable metrics for.
12647 </desc>
12648 </param>
12649 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12650 <desc>
12651 Array of metrics that have been modified by the call to this method.
12652 </desc>
12653 </param>
12654 </method>
12655
12656 <method name="queryMetricsData">
12657 <desc>
12658 Queries collected metrics data for a set of objects.
12659
12660 The data itself and related metric information are returned in seven
12661 parallel and one flattened array of arrays. Elements of
12662 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12663 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12664 the same index describe one set of values corresponding to a single
12665 metric.
12666
12667 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12668 start and length of a sub-array is indicated by
12669 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12670 value for metric <tt>metricNames[i]</tt> is at
12671 <tt>returnData[returnIndices[i]]</tt>.
12672
12673 <note>
12674 @c Null or empty metric name array means all metrics. @c Null or empty
12675 object array means all existing objects. If metric name array contains
12676 a single element and object array contains many, the single metric
12677 name array element is applied to each object array element to form
12678 metric/object pairs.
12679 </note>
12680 <note>
12681 Data collection continues behind the scenes after call to
12682 @c queryMetricsData. The return data can be seen as the snapshot of
12683 the current state at the time of @c queryMetricsData call. The
12684 internally kept metric values are not cleared by the call. This makes
12685 possible querying different subsets of metrics or aggregates with
12686 subsequent calls. If periodic querying is needed it is highly
12687 suggested to query the values with @c interval*count period to avoid
12688 confusion. This way a completely new set of data values will be
12689 provided by each query.
12690 </note>
12691 </desc>
12692 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12693 <desc>
12694 Metric name filter. Comma-separated list of metrics with wildcard
12695 support.
12696 </desc>
12697 </param>
12698 <param name="objects" type="$unknown" dir="in" safearray="yes">
12699 <desc>
12700 Set of objects to query metrics for.
12701 </desc>
12702 </param>
12703 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12704 <desc>
12705 Names of metrics returned in @c returnData.
12706 </desc>
12707 </param>
12708 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12709 <desc>
12710 Objects associated with metrics returned in @c returnData.
12711 </desc>
12712 </param>
12713 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12714 <desc>
12715 Units of measurement for each returned metric.
12716 </desc>
12717 </param>
12718 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12719 <desc>
12720 Divisor that should be applied to return values in order to get
12721 floating point values. For example:
12722 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12723 will retrieve the floating point value of i-th sample of the first
12724 metric.
12725 </desc>
12726 </param>
12727 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12728 <desc>
12729 Sequence numbers of the first elements of value sequences of particular metrics
12730 returned in @c returnData. For aggregate metrics it is the sequence number of
12731 the sample the aggregate started calculation from.
12732 </desc>
12733 </param>
12734 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12735 <desc>
12736 Indices of the first elements of value sequences of particular metrics
12737 returned in @c returnData.
12738 </desc>
12739 </param>
12740 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12741 <desc>
12742 Lengths of value sequences of particular metrics.
12743 </desc>
12744 </param>
12745 <param name="returnData" type="long" dir="return" safearray="yes">
12746 <desc>
12747 Flattened array of all metric data containing sequences of values for
12748 each metric.
12749 </desc>
12750 </param>
12751 </method>
12752
12753 </interface>
12754
12755 <module name="VBoxSVC" context="LocalServer">
12756 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12757 namespace="virtualbox.org">
12758 <interface name="IVirtualBox" default="yes"/>
12759 </class>
12760 </module>
12761
12762 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12763 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12764 namespace="virtualbox.org">
12765 <interface name="ISession" default="yes"/>
12766 </class>
12767 </module>
12768
12769</library>
12770
12771</idl>
12772
12773<!-- 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