VirtualBox

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

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

#3551: “Main: Replace remaining collections with safe arrays”
Take two. Convert HostDVDDriveCollection. This time for all plattforms.

  • Property svn:eol-style set to native
File size: 471.6 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, <tt>NULL</tt>). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="MachineState"
363 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
364 >
365 <desc>
366 Virtual machine execution state.
367
368 This enumeration represents possible values of the <link
369 to="IMachine::state"/> attribute.
370
371 Below is the basic virtual machine state diagram. It shows how the state
372 changes during virtual machine execution. The text in square braces shows
373 a method of the IConsole interface that performs the given state
374 transition.
375
376 <pre>
377 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
378 V |
379 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
380 | | | | V |
381 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
382 | | ^ | ^ |
383 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
384 | ^ | | | |
385 | | +-----------------------------------------+-|-------------------+ +
386 | | | | |
387 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
388 | | | |
389 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
390 | | |
391 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
392 </pre>
393
394 Note that states to the right from PoweredOff, Aborted and Saved in the
395 above diagram are called <i>online VM states</i>. These states
396 represent the virtual machine which is being executed in a dedicated
397 process (usually with a GUI window attached to it where you can see the
398 activity of the virtual machine and interact with it). There are two
399 special pseudo-states, FirstOnline and LastOnline, that can be used in
400 relational expressions to detect if the given machine state is online or
401 not:
402
403 <pre>
404 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
405 machine.GetState() &lt;= MachineState_LastOnline)
406 {
407 ...the machine is being executed...
408 }
409 </pre>
410
411 When the virtual machine is in one of the online VM states (that is, being
412 executed), only a few machine settings can be modified. Methods working
413 with such settings contain an explicit note about that. An attempt to
414 change any oter setting or perform a modifying operation during this time
415 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
416
417 All online states except Running, Paused and Stuck are transitional: they
418 represent temporary conditions of the virtual machine that will last as
419 long as the operation that initiated such a condition.
420
421 The Stuck state is a special case. It means that execution of the machine
422 has reached the "Guru Meditation" condition. This condition indicates an
423 internal VMM (virtual machine manager) failure which may happen as a
424 result of either an unhandled low-level virtual hardware exception or one
425 of the recompiler exceptions (such as the <i>too-many-traps</i>
426 condition).
427
428 Note also that any online VM state may transit to the Aborted state. This
429 happens if the process that is executing the virtual machine terminates
430 unexpectedly (for example, crashes). Other than that, the Aborted state is
431 equivalent to PoweredOff.
432
433 There are also a few additional state diagrams that do not deal with
434 virtual machine execution and therefore are shown separately. The states
435 shown on these diagrams are called <i>offline VM states</i> (this includes
436 PoweredOff, Aborted and Saved too).
437
438 The first diagram shows what happens when a lengthy setup operation is
439 being executed (such as <link to="IMachine::attachHardDisk"/>).
440
441 <pre>
442 +-----------------------------------(same sate as before the call)------+
443 | |
444 +-&gt; PoweredOff --+ |
445 | | |
446 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
447 | |
448 +-&gt; Saved -------+
449 </pre>
450
451 The next two diagrams demonstrate the process of taking a snapshot of a
452 powered off virtual machine and performing one of the "discard..."
453 operations, respectively.
454
455 <pre>
456 +-----------------------------------(same sate as before the call)------+
457 | |
458 +-&gt; PoweredOff --+ |
459 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
460 +-&gt; Aborted -----+
461
462 +-&gt; PoweredOff --+
463 | |
464 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
465 | | [discardCurrentState()] |
466 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
467 | |
468 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
469 </pre>
470
471 Note that the Saving state is present in both the offline state group and
472 online state group. Currently, the only way to determine what group is
473 assumed in a particular case is to remember the previous machine state: if
474 it was Running or Paused, then Saving is an online state, otherwise it is
475 an offline state. This inconsistency may be removed in one of the future
476 versions of VirtualBox by adding a new state.
477
478 <note internal="yes">
479 For whoever decides to touch this enum: In order to keep the
480 comparisons involving FirstOnline and LastOnline pseudo-states valid,
481 the numeric values of these states must be correspondingly updated if
482 needed: for any online VM state, the condition
483 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
484 <tt>true</tt>. The same relates to transient states for which
485 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
486 <tt>true</tt>.
487 </note>
488 </desc>
489
490 <const name="Null" value="0">
491 <desc>Null value (nver used by the API).</desc>
492 </const>
493 <const name="PoweredOff" value="1">
494 <desc>
495 The machine is not running.
496 </desc>
497 </const>
498 <const name="Saved" value="2">
499 <desc>
500 The machine is not currently running, but the execution state of the machine
501 has been saved to an external file when it was running.
502 </desc>
503 </const>
504 <const name="Aborted" value="3">
505 <desc>
506 The process running the machine has terminated abnormally.
507 </desc>
508 </const>
509 <const name="Running" value="4">
510 <desc>
511 The machine is currently being executed.
512 <note internal="yes">
513 For whoever decides to touch this enum: In order to keep the
514 comparisons in the old source code valid, this state must immediately
515 precede the Paused state.
516 </note>
517 </desc>
518 </const>
519 <const name="Paused" value="5">
520 <desc>
521 Execution of the machine has been paused.
522 <note internal="yes">
523 For whoever decides to touch this enum: In order to keep the
524 comparisons in the old source code valid, this state must immediately
525 follow the Running state.
526 </note>
527 </desc>
528 </const>
529 <const name="Stuck" value="6">
530 <desc>
531 Execution of the machine has reached the "Guru Meditation"
532 condition.
533 </desc>
534 </const>
535 <const name="Starting" value="7">
536 <desc>
537 Machine is being started after powering it on from a
538 zero execution state.
539 </desc>
540 </const>
541 <const name="Stopping" value="8">
542 <desc>
543 Machine is being normally stopped powering it off, or after the guest OS
544 has initiated a shutdown sequence.
545 </desc>
546 </const>
547 <const name="Saving" value="9">
548 <desc>
549 Machine is saving its execution state to a file or an online
550 snapshot of the machine is being taken.
551 </desc>
552 </const>
553 <const name="Restoring" value="10">
554 <desc>
555 Execution state of the machine is being restored from a file
556 after powering it on from the saved execution state.
557 </desc>
558 </const>
559 <const name="Discarding" value="11">
560 <desc>
561 Snapshot of the machine is being discarded.
562 </desc>
563 </const>
564 <const name="SettingUp" value="12">
565 <desc>
566 Lengthy setup operation is in progress.
567 </desc>
568 </const>
569
570 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
571 <desc>
572 Pseudo-state: first online state (for use in relational expressions).
573 </desc>
574 </const>
575 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
576 <desc>
577 Pseudo-state: last online state (for use in relational expressions).
578 </desc>
579 </const>
580
581 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
582 <desc>
583 Pseudo-state: first transient state (for use in relational expressions).
584 </desc>
585 </const>
586 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
587 <desc>
588 Pseudo-state: last transient state (for use in relational expressions).
589 </desc>
590 </const>
591
592 </enum>
593
594 <enum
595 name="SessionState"
596 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
597 >
598 <desc>
599 Session state. This enumeration represents possible values of
600 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
601 attributes. See individual enumerator descriptions for the meaning for
602 every value.
603 </desc>
604
605 <const name="Null" value="0">
606 <desc>Null value (never used by the API).</desc>
607 </const>
608 <const name="Closed" value="1">
609 <desc>
610 The machine has no open sessions (<link to="IMachine::sessionState"/>);
611 the session is closed (<link to="ISession::state"/>)
612 </desc>
613 </const>
614 <const name="Open" value="2">
615 <desc>
616 The machine has an open direct session (<link to="IMachine::sessionState"/>);
617 the session is open (<link to="ISession::state"/>)
618 </desc>
619 </const>
620 <const name="Spawning" value="3">
621 <desc>
622 A new (direct) session is being opened for the machine
623 as a result of <link to="IVirtualBox::openRemoteSession"/>
624 call (<link to="IMachine::sessionState"/>);
625 the session is currently being opened
626 as a result of <link to="IVirtualBox::openRemoteSession"/>
627 call (<link to="ISession::state"/>)
628 </desc>
629 </const>
630 <const name="Closing" value="4">
631 <desc>
632 The direct session is being closed (<link to="IMachine::sessionState"/>);
633 the session is being closed (<link to="ISession::state"/>)
634 </desc>
635 </const>
636 </enum>
637
638 <enum
639 name="SessionType"
640 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
641 >
642 <desc>
643 Session type. This enumeration represents possible values of the
644 <link to="ISession::type"/> attribute.
645 </desc>
646
647 <const name="Null" value="0">
648 <desc>Null value (never used by the API).</desc>
649 </const>
650 <const name="Direct" value="1">
651 <desc>
652 Direct session
653 (opened by <link to="IVirtualBox::openSession"/>)
654 </desc>
655 </const>
656 <const name="Remote" value="2">
657 <desc>
658 Remote session
659 (opened by <link to="IVirtualBox::openRemoteSession"/>)
660 </desc>
661 </const>
662 <const name="Existing" value="3">
663 <desc>
664 Existing session
665 (opened by <link to="IVirtualBox::openExistingSession"/>)
666 </desc>
667 </const>
668 </enum>
669
670 <enum
671 name="DeviceType"
672 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
673 >
674 <desc>
675 Device type.
676 </desc>
677 <const name="Null" value="0">
678 <desc>
679 Null value, may also mean "no device" (not allowed for
680 <link to="IConsole::getDeviceActivity"/>).
681 </desc>
682 </const>
683 <const name="Floppy" value="1">
684 <desc>Floppy device.</desc>
685 </const>
686 <const name="DVD" value="2">
687 <desc>CD/DVD-ROM device.</desc>
688 </const>
689 <const name="HardDisk" value="3">
690 <desc>Hard disk device.</desc>
691 </const>
692 <const name="Network" value="4">
693 <desc>Network device.</desc>
694 </const>
695 <const name="USB" value="5">
696 <desc>USB device.</desc>
697 </const>
698 <const name="SharedFolder" value="6">
699 <desc>Shared folder device.</desc>
700 </const>
701 </enum>
702
703 <enum
704 name="DeviceActivity"
705 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
706 >
707 <desc>
708 Device activity for <link to="IConsole::getDeviceActivity"/>.
709 </desc>
710
711 <const name="Null" value="0"/>
712 <const name="Idle" value="1"/>
713 <const name="Reading" value="2"/>
714 <const name="Writing" value="3"/>
715 </enum>
716
717 <enum
718 name="StorageBus"
719 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
720 >
721 <desc>Interface bus type for storage devices.</desc>
722
723 <const name="Null" value="0">
724 <desc>Null value (never used by the API).</desc>
725 </const>
726
727 <const name="IDE" value="1"/>
728 <const name="SATA" value="2"/>
729 </enum>
730
731 <enum
732 name="ClipboardMode"
733 uuid="33364716-4008-4701-8f14-be0fa3d62950"
734 >
735 <desc>
736 Host-Guest clipboard interchange mode.
737 </desc>
738
739 <const name="Disabled" value="0"/>
740 <const name="HostToGuest" value="1"/>
741 <const name="GuestToHost" value="2"/>
742 <const name="Bidirectional" value="3"/>
743 </enum>
744
745 <enum
746 name="Scope"
747 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
748 >
749 <desc>
750 Scope of the operation.
751
752 A generic enumeration used in various methods to define the action or
753 argument scope.
754 </desc>
755
756 <const name="Global" value="0"/>
757 <const name="Machine" value="1"/>
758 <const name="Session" value="2"/>
759 </enum>
760
761 <enum
762 name="GuestStatisticType"
763 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
764 >
765 <desc>
766 Statistics type for <link to="IGuest::getStatistic"/>.
767 </desc>
768
769 <const name="CPULoad_Idle" value="0">
770 <desc>
771 Idle CPU load (0-100%) for last interval.
772 </desc>
773 </const>
774 <const name="CPULoad_Kernel" value="1">
775 <desc>
776 Kernel CPU load (0-100%) for last interval.
777 </desc>
778 </const>
779 <const name="CPULoad_User" value="2">
780 <desc>
781 User CPU load (0-100%) for last interval.
782 </desc>
783 </const>
784 <const name="Threads" value="3">
785 <desc>
786 Total number of threads in the system.
787 </desc>
788 </const>
789 <const name="Processes" value="4">
790 <desc>
791 Total number of processes in the system.
792 </desc>
793 </const>
794 <const name="Handles" value="5">
795 <desc>
796 Total number of handles in the system.
797 </desc>
798 </const>
799 <const name="MemoryLoad" value="6">
800 <desc>
801 Memory load (0-100%).
802 </desc>
803 </const>
804 <const name="PhysMemTotal" value="7">
805 <desc>
806 Total physical memory in megabytes.
807 </desc>
808 </const>
809 <const name="PhysMemAvailable" value="8">
810 <desc>
811 Free physical memory in megabytes.
812 </desc>
813 </const>
814 <const name="PhysMemBalloon" value="9">
815 <desc>
816 Ballooned physical memory in megabytes.
817 </desc>
818 </const>
819 <const name="MemCommitTotal" value="10">
820 <desc>
821 Total amount of memory in the committed state in megabytes.
822 </desc>
823 </const>
824 <const name="MemKernelTotal" value="11">
825 <desc>
826 Total amount of memory used by the guest OS's kernel in megabytes.
827 </desc>
828 </const>
829 <const name="MemKernelPaged" value="12">
830 <desc>
831 Total amount of paged memory used by the guest OS's kernel in megabytes.
832 </desc>
833 </const>
834 <const name="MemKernelNonpaged" value="13">
835 <desc>
836 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
837 </desc>
838 </const>
839 <const name="MemSystemCache" value="14">
840 <desc>
841 Total amount of memory used by the guest OS's system cache in megabytes.
842 </desc>
843 </const>
844 <const name="PageFileSize" value="15">
845 <desc>
846 Pagefile size in megabytes.
847 </desc>
848 </const>
849 <const name="SampleNumber" value="16">
850 <desc>
851 Statistics sample number
852 </desc>
853 </const>
854 <const name="MaxVal" value="17"/>
855 </enum>
856
857 <enum
858 name="BIOSBootMenuMode"
859 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
860 >
861 <desc>
862 BIOS boot menu mode.
863 </desc>
864
865 <const name="Disabled" value="0"/>
866 <const name="MenuOnly" value="1"/>
867 <const name="MessageAndMenu" value="2"/>
868 </enum>
869
870 <enum
871 name="IDEControllerType"
872 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
873 >
874 <desc>
875 IDE controller type.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="PIIX3" value="1"/>
882 <const name="PIIX4" value="2"/>
883 <const name="ICH6" value="3"/>
884 </enum>
885
886 <enum
887 name="DriveState"
888 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
889 >
890 <const name="Null" value="0">
891 <desc>Null value (never used by the API).</desc>
892 </const>
893 <const name="NotMounted" value="1"/>
894 <const name="ImageMounted" value="2"/>
895 <const name="HostDriveCaptured" value="3"/>
896 </enum>
897
898 <enum
899 name="ProcessorFeature"
900 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
901 >
902 <desc>
903 CPU features.
904 </desc>
905
906 <const name="HWVirtEx" value="0"/>
907 <const name="PAE" value="1"/>
908 <const name="LongMode" value="2"/>
909 </enum>
910
911
912 <!--
913 // IVirtualBoxErrorInfo
914 /////////////////////////////////////////////////////////////////////////
915 -->
916
917 <interface
918 name="IVirtualBoxErrorInfo" extends="$errorinfo"
919 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
920 supportsErrorInfo="no"
921 wsmap="suppress"
922 >
923 <desc>
924 The IVirtualBoxErrorInfo interface represents extended error information.
925
926 Extended error information can be set by VirtualBox components after
927 unsuccessful or partially successful method invocation. This information
928 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
929 and then shown to the client in addition to the plain 32-bit result code.
930
931 In MS COM, this interface extends the IErrorInfo interface,
932 in XPCOM, it extends the nsIException interface. In both cases,
933 it provides a set of common attributes to retrieve error
934 information.
935
936 Sometimes invocation of some component's method may involve methods of
937 other components that may also fail (independently of this method's
938 failure), or a series of non-fatal errors may precede a fatal error that
939 causes method failure. In cases like that, it may be desirable to preserve
940 information about all errors happened during method invocation and deliver
941 it to the caller. The <link to="#next"/> attribute is intended
942 specifically for this purpose and allows to represent a chain of errors
943 through a single IVirtualBoxErrorInfo object set after method invocation.
944
945 Note that errors are stored to a chain in the reverse order, i.e. the
946 initial error object you query right after method invocation is the last
947 error set by the callee, the object it points to in the @a next attribute
948 is the previous error and so on, up to the first error (which is the last
949 in the chain).
950 </desc>
951
952 <attribute name="resultCode" type="result" readonly="yes">
953 <desc>
954 Result code of the error.
955 Usually, it will be the same as the result code returned
956 by the method that provided this error information, but not
957 always. For example, on Win32, CoCreateInstance() will most
958 likely return E_NOINTERFACE upon unsuccessful component
959 instantiation attempt, but not the value the component factory
960 returned.
961 <note>
962 In MS COM, there is no equivalent.
963 In XPCOM, it is the same as nsIException::result.
964 </note>
965 </desc>
966 </attribute>
967
968 <attribute name="interfaceID" type="uuid" readonly="yes">
969 <desc>
970 UUID of the interface that defined the error.
971 <note>
972 In MS COM, it is the same as IErrorInfo::GetGUID.
973 In XPCOM, there is no equivalent.
974 </note>
975 </desc>
976 </attribute>
977
978 <attribute name="component" type="wstring" readonly="yes">
979 <desc>
980 Name of the component that generated the error.
981 <note>
982 In MS COM, it is the same as IErrorInfo::GetSource.
983 In XPCOM, there is no equivalent.
984 </note>
985 </desc>
986 </attribute>
987
988 <attribute name="text" type="wstring" readonly="yes">
989 <desc>
990 Text description of the error.
991 <note>
992 In MS COM, it is the same as IErrorInfo::GetDescription.
993 In XPCOM, it is the same as nsIException::message.
994 </note>
995 </desc>
996 </attribute>
997
998 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
999 <desc>
1000 Next error object if there is any, or @c null otherwise.
1001 <note>
1002 In MS COM, there is no equivalent.
1003 In XPCOM, it is the same as nsIException::inner.
1004 </note>
1005 </desc>
1006 </attribute>
1007
1008 </interface>
1009
1010
1011 <!--
1012 // IVirtualBox
1013 /////////////////////////////////////////////////////////////////////////
1014 -->
1015
1016 <interface
1017 name="IVirtualBoxCallback" extends="$unknown"
1018 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
1019 wsmap="suppress"
1020 >
1021 <method name="onMachineStateChange">
1022 <desc>
1023 The execution state of the given machine has changed.
1024 <see>IMachine::state</see>
1025 </desc>
1026 <param name="machineId" type="uuid" dir="in">
1027 <desc>ID of the machine this event relates to.</desc>
1028 </param>
1029 <param name="state" type="MachineState" dir="in">
1030 <desc>New execution state.</desc>
1031 </param>
1032 </method>
1033
1034 <method name="onMachineDataChange">
1035 <desc>
1036 Any of the settings of the given machine has changed.
1037 </desc>
1038 <param name="machineId" type="uuid" dir="in">
1039 <desc>ID of the machine this event relates to.</desc>
1040 </param>
1041 </method>
1042
1043 <method name="onExtraDataCanChange">
1044 <desc>
1045 Notification when someone tries to change extra data for
1046 either the given machine or (if null) global extra data.
1047 This gives the chance to veto against changes.
1048 </desc>
1049 <param name="machineId" type="uuid" dir="in">
1050 <desc>
1051 ID of the machine this event relates to
1052 (null ID for global extra data change requests).
1053 </desc>
1054 </param>
1055 <param name="key" type="wstring" dir="in">
1056 <desc>
1057 Extra data key for the attempted write.
1058 </desc>
1059 </param>
1060 <param name="value" type="wstring" dir="in">
1061 <desc>
1062 Extra data value for the given key.
1063 </desc>
1064 </param>
1065 <param name="error" type="wstring" dir="out">
1066 <desc>
1067 Optional error message describing the reason of the
1068 veto (ignored if this notification returns @c true).
1069 </desc>
1070 </param>
1071 <param name="allowChange" type="boolean" dir="return">
1072 <desc>
1073 Flag to indicate whether the callee agrees (@c true)
1074 or vetoes against the change (@c false).
1075 </desc>
1076 </param>
1077 </method>
1078
1079 <method name="onExtraDataChange">
1080 <desc>
1081 Notification when machine specific or global extra data
1082 has changed.
1083 </desc>
1084 <param name="machineId" type="uuid" dir="in">
1085 <desc>
1086 ID of the machine this event relates to.
1087 Null for global extra data changes.
1088 </desc>
1089 </param>
1090 <param name="key" type="wstring" dir="in">
1091 <desc>
1092 Extra data key that has changed.
1093 </desc>
1094 </param>
1095 <param name="value" type="wstring" dir="in">
1096 <desc>
1097 Extra data value for the given key.
1098 </desc>
1099 </param>
1100 </method>
1101
1102 <method name="onMediaRegistered">
1103 <desc>
1104 The given media was registered or unregistered
1105 within this VirtualBox installation.
1106
1107 The @a mediaType parameter describes what type of
1108 media the specified @a mediaId refers to. Possible
1109 values are:
1110
1111 <ul>
1112 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1113 that, if registered, can be obtained using the
1114 <link to="IVirtualBox::getHardDisk"/> call.</li>
1115 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1116 that, if registered, can be obtained using the
1117 <link to="IVirtualBox::getDVDImage"/> call.</li>
1118 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1119 that, if registered, can be obtained using the
1120 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1121 </ul>
1122
1123 Note that if this is a deregistration notification,
1124 there is no way to access the object representing the
1125 unregistered media. It is supposed that the
1126 application will do required cleanup based on the
1127 @a mediaId value.
1128 </desc>
1129 <param name="mediaId" type="uuid" dir="in">
1130 <desc>ID of the media this event relates to.</desc>
1131 </param>
1132 <param name="mediaType" type="DeviceType" dir="in">
1133 <desc>Type of the media this event relates to.</desc>
1134 </param>
1135 <param name="registered" type="boolean" dir="in">
1136 <desc>
1137 If true, the media was registered, otherwise it was
1138 unregistered.
1139 </desc>
1140 </param>
1141 </method>
1142
1143 <method name="onMachineRegistered">
1144 <desc>
1145 The given machine was registered or unregistered
1146 within this VirtualBox installation.
1147 </desc>
1148 <param name="machineId" type="uuid" dir="in">
1149 <desc>ID of the machine this event relates to.</desc>
1150 </param>
1151 <param name="registered" type="boolean" dir="in">
1152 <desc>
1153 If true, the machine was registered, otherwise it was
1154 unregistered.
1155 </desc>
1156 </param>
1157 </method>
1158
1159 <method name="onSessionStateChange">
1160 <desc>
1161 The state of the session for the given machine was changed.
1162 <see>IMachine::sessionState</see>
1163 </desc>
1164 <param name="machineId" type="uuid" dir="in">
1165 <desc>ID of the machine this event relates to.</desc>
1166 </param>
1167 <param name="state" type="SessionState" dir="in">
1168 <desc>New session state.</desc>
1169 </param>
1170 </method>
1171
1172 <method name="onSnapshotTaken">
1173 <desc>
1174 A new snapshot of the machine has been taken.
1175 <see>ISnapshot</see>
1176 </desc>
1177 <param name="machineId" type="uuid" dir="in">
1178 <desc>ID of the machine this event relates to.</desc>
1179 </param>
1180 <param name="snapshotId" type="uuid" dir="in">
1181 <desc>ID of the new snapshot.</desc>
1182 </param>
1183 </method>
1184
1185 <method name="onSnapshotDiscarded">
1186 <desc>
1187 Snapshot of the given machine has been discarded.
1188
1189 <note>
1190 This notification is delivered <b>after</b> the snapshot
1191 object has been uninitialized on the server (so that any
1192 attempt to call its methods will return an error).
1193 </note>
1194
1195 <see>ISnapshot</see>
1196 </desc>
1197 <param name="machineId" type="uuid" dir="in">
1198 <desc>ID of the machine this event relates to.</desc>
1199 </param>
1200 <param name="snapshotId" type="uuid" dir="in">
1201 <desc>
1202 ID of the discarded snapshot. <tt>null</tt> means the
1203 current machine state has been discarded (restored from
1204 the current snapshot).
1205 </desc>
1206 </param>
1207 </method>
1208
1209 <method name="onSnapshotChange">
1210 <desc>
1211 Snapshot properties (name and/or description) have been changed.
1212 <see>ISnapshot</see>
1213 </desc>
1214 <param name="machineId" type="uuid" dir="in">
1215 <desc>ID of the machine this event relates to.</desc>
1216 </param>
1217 <param name="snapshotId" type="uuid" dir="in">
1218 <desc>ID of the changed snapshot.</desc>
1219 </param>
1220 </method>
1221
1222 <method name="onGuestPropertyChange">
1223 <desc>
1224 Notification when a guest property has changed.
1225 </desc>
1226 <param name="machineId" type="uuid" dir="in">
1227 <desc>
1228 ID of the machine this event relates to.
1229 </desc>
1230 </param>
1231 <param name="name" type="wstring" dir="in">
1232 <desc>
1233 The name of the property that has changed.
1234 </desc>
1235 </param>
1236 <param name="value" type="wstring" dir="in">
1237 <desc>
1238 The new property value.
1239 </desc>
1240 </param>
1241 <param name="flags" type="wstring" dir="in">
1242 <desc>
1243 The new property flags.
1244 </desc>
1245 </param>
1246 </method>
1247
1248 </interface>
1249
1250 <interface
1251 name="IVirtualBox" extends="$dispatched"
1252 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1253 wsmap="managed"
1254 >
1255 <desc>
1256 The IVirtualBox interface represents the main interface exposed by the
1257 product that provides virtual machine management.
1258
1259 An instance of IVirtualBox is required for the product to do anything
1260 useful. Even though the interface does not expose this, internally,
1261 IVirtualBox is implemented as a singleton and actually lives in the
1262 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1263 IVirtualBox can track the state of all virtual machines on a particular
1264 host, regardless of which frontend started them.
1265
1266 To enumerate all the virtual machines on the host, use the
1267 <link to="IVirtualBox::machines2"/> attribute.
1268 </desc>
1269
1270 <attribute name="version" type="wstring" readonly="yes">
1271 <desc>
1272 A string representing the version number of the product. The
1273 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1274 last number represents the build number and will frequently change.
1275 </desc>
1276 </attribute>
1277
1278 <attribute name="revision" type="unsigned long" readonly="yes">
1279 <desc>
1280 The internal build revision number of the product.
1281 </desc>
1282 </attribute>
1283
1284 <attribute name="packageType" type="wstring" readonly="yes">
1285 <desc>
1286 A string representing the package type of this product. The
1287 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1288 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1289 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1290 this.
1291 </desc>
1292 </attribute>
1293
1294 <attribute name="homeFolder" type="wstring" readonly="yes">
1295 <desc>
1296 Full path to the directory where the global settings file,
1297 <tt>VirtualBox.xml</tt>, is stored.
1298
1299 In this version of VirtualBox, the value of this property is
1300 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1301 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1302 as determined by the host OS), and cannot be changed.
1303
1304 This path is also used as the base to resolve relative paths in
1305 places where relative paths are allowed (unless otherwise
1306 expressly indicated).
1307 </desc>
1308 </attribute>
1309
1310 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1311 <desc>
1312 Full name of the global settings file.
1313 The value of this property corresponds to the value of
1314 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1315 </desc>
1316 </attribute>
1317
1318 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1319 <desc>
1320 Current version of the format of the global VirtualBox settings file
1321 (<tt>VirtualBox.xml</tt>).
1322
1323 The version string has the following format:
1324 <pre>
1325 x.y-platform
1326 </pre>
1327 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1328 versions, and <tt>platform</tt> is the platform identifier.
1329
1330 The current version usually matches the value of the
1331 <link to="#settingsFormatVersion"/> attribute unless the
1332 settings file was created by an older version of VirtualBox and there
1333 was a change of the settings file format since then.
1334
1335 Note that VirtualBox automatically converts settings files from older
1336 versions to the most recent version when reading them (usually at
1337 VirtualBox startup) but it doesn't save the changes back until
1338 you call a method that implicitly saves settings (such as
1339 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1340 explicitly. Therefore, if the value of this attribute differs from the
1341 value of <link to="#settingsFormatVersion"/>, then it
1342 means that the settings file was converted but the result of the
1343 conversion is not yet saved to disk.
1344
1345 The above feature may be used by interactive front-ends to inform users
1346 about the settings file format change and offer them to explicitly save
1347 all converted settings files (the global and VM-specific ones),
1348 optionally create backup copies of the old settings files before saving,
1349 etc.
1350
1351 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1356 <desc>
1357 Most recent version of the settings file format.
1358
1359 The version string has the following format:
1360 <pre>
1361 x.y-platform
1362 </pre>
1363 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1364 versions, and <tt>platform</tt> is the platform identifier.
1365
1366 VirtualBox uses this version of the format when saving settings files
1367 (either as a result of method calls that require to save settings or as
1368 a result of an explicit call to <link to="#saveSettings"/>).
1369
1370 <see>settingsFileVersion</see>
1371 </desc>
1372 </attribute>
1373
1374 <attribute name="host" type="IHost" readonly="yes">
1375 <desc>Associated host object.</desc>
1376 </attribute>
1377
1378 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1379 <desc>Associated system information object.</desc>
1380 </attribute>
1381
1382 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1383 <desc>
1384 Array of machine objects registered within this VirtualBox instance.
1385 </desc>
1386 </attribute>
1387
1388 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1389 <desc>
1390 Array of hard disk objects known to this VirtualBox installation.
1391
1392 This array contains only base (root) hard disks. All differencing
1393 hard disks of the given base hard disk can be enumerated using
1394 <link to="IHardDisk::children"/>.
1395 </desc>
1396 </attribute>
1397
1398 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1399 <desc>
1400 Array of CD/DVD image objects registered with this VirtualBox instance.
1401 </desc>
1402 </attribute>
1403
1404 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1405 <desc>
1406 Array of floppy image objects registered with this VirtualBox instance.
1407 </desc>
1408 </attribute>
1409
1410 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1411
1412 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1413
1414 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1415 <desc>
1416 Collection of global shared folders. Global shared folders are
1417 available to all virtual machines.
1418
1419 New shared folders are added to the collection using
1420 <link to="#createSharedFolder"/>. Existing shared folders can be
1421 removed using <link to="#removeSharedFolder"/>.
1422
1423 <note>
1424 In the current version of the product, global shared folders are not
1425 implemented and therefore this collection is always empty.
1426 </note>
1427 </desc>
1428 </attribute>
1429
1430 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1431 <desc>
1432 Associated performance collector object.
1433 </desc>
1434 </attribute>
1435
1436 <method name="createMachine">
1437 <desc>
1438 Creates a new virtual machine.
1439
1440 The new machine is created unregistered, with the initial configuration
1441 set according to the specified guest OS type. A typical sequence of
1442 actions to create a new virtual machine is as follows:
1443
1444 <ol>
1445 <li>
1446 Call this method to have a new machine created. The returned machine
1447 object will be "mutable" allowing to change any machine property.
1448 </li>
1449
1450 <li>
1451 Configure the machine using the appropriate attributes and methods.
1452 </li>
1453
1454 <li>
1455 Call <link to="IMachine::saveSettings" /> to write the settings
1456 to the machine's XML settings file. The configuration of the newly
1457 created machine will not be saved to disk until this method is
1458 called.
1459 </li>
1460
1461 <li>
1462 Call <link to="#registerMachine" /> to add the machine to the list
1463 of machines known to VirtualBox.
1464 </li>
1465 </ol>
1466
1467 You should specify valid name for the newly created machine when calling
1468 this method. See the <link to="IMachine::name"/> attribute description
1469 for more details about the machine name.
1470
1471 The specified guest OS type identifier must match an ID of one of known
1472 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1473 array.
1474
1475 Every machine has a <i>settings file</i> that is used to store
1476 the machine configuration. This file is stored in a directory called the
1477 <i>machine settings subfolder</i>. Both the settings subfolder and file
1478 will have a name that corresponds to the name of the virtual machine.
1479 You can specify where to create the machine setting subfolder using the
1480 @a baseFolder argument. The base folder can be absolute (full path) or
1481 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1482 directory</link>.
1483
1484 If @a baseFolder is a null or empty string (which is recommended), the
1485 <link to="ISystemProperties::defaultMachineFolder">default machine
1486 settings folder</link> will be used as a base folder for the created
1487 machine. Otherwise the given base folder will be used. In either case,
1488 the full path to the resulting settings file has the following
1489 structure:
1490 <pre>
1491 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1492 </pre>
1493
1494 Note that if the resulting settings file already exists, this method
1495 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1496
1497 Optionally, you may specify an UUID of to assign to the created machine.
1498 However, this is not recommended and you should normally pass an empty
1499 (null) UUID to this method so that a new UUID will be automatically
1500 generated for every created machine. You can use UUID
1501 00000000-0000-0000-0000-000000000000 as null value.
1502
1503 <note>
1504 There is no way to change the name of the settings file or
1505 subfolder of the created machine directly.
1506 </note>
1507
1508 <result name="VBOX_E_OBJECT_NOT_FOUND">
1509 @a osTypeId is invalid.
1510 </result>
1511 <result name="VBOX_E_FILE_ERROR">
1512 Resulting settings file name is invalid or the settings file already
1513 exists or could not be created due to an I/O error.
1514 </result>
1515 <result name="E_INVALIDARG">
1516 @a name is empty or null.
1517 </result>
1518 </desc>
1519
1520 <param name="name" type="wstring" dir="in">
1521 <desc>Machine name.</desc>
1522 </param>
1523 <param name="osTypeId" type="wstring" dir="in">
1524 <desc>Guest OS Type ID.</desc>
1525 </param>
1526 <param name="baseFolder" type="wstring" dir="in">
1527 <desc>Base machine folder (optional).</desc>
1528 </param>
1529 <param name="id" type="uuid" dir="in">
1530 <desc>Machine UUID (optional).</desc>
1531 </param>
1532 <param name="machine" type="IMachine" dir="return">
1533 <desc>Created machine object.</desc>
1534 </param>
1535 </method>
1536
1537 <method name="createLegacyMachine">
1538 <desc>
1539 Creates a new virtual machine in "legacy" mode, using the specified
1540 settings file to store machine settings.
1541
1542 As opposed to machines created by <link to="#createMachine"/>,
1543 the settings file of the machine created in "legacy" mode is not
1544 automatically renamed when the machine name is changed -- it will always
1545 remain the same as specified in this method call.
1546
1547 The specified settings file name can be absolute (full path) or relative
1548 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1549 directory</link>. If the file name doesn't contain an extension, the
1550 default extension (.xml) will be appended.
1551
1552 Note that the configuration of the newly created machine is not
1553 saved to disk (and therefore no settings file is created)
1554 until <link to="IMachine::saveSettings"/> is called. If the
1555 specified settings file already exists, this method
1556 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1557
1558 See <link to="#createMachine"/> for more information.
1559
1560 @deprecated This method may be removed later. Use <link
1561 to="IVirtualBox::createMachine"/> instead.
1562
1563 <note>
1564 There is no way to change the name of the settings file
1565 of the machine created in "legacy" mode.
1566 </note>
1567
1568 <result name="VBOX_E_OBJECT_NOT_FOUND">
1569 @a osTypeId is invalid.
1570 </result>
1571 <result name="VBOX_E_FILE_ERROR">
1572 @a settingsFile is invalid or the settings file already exists or
1573 could not be created due to an I/O error.
1574 </result>
1575 <result name="E_INVALIDARG">
1576 @a name or @a settingsFile is empty or null.
1577 </result>
1578 </desc>
1579
1580 <param name="name" type="wstring" dir="in">
1581 <desc>Machine name.</desc>
1582 </param>
1583 <param name="osTypeId" type="wstring" dir="in">
1584 <desc>Machine OS Type ID.</desc>
1585 </param>
1586 <param name="settingsFile" type="wstring" dir="in">
1587 <desc>Name of the machine settings file.</desc>
1588 </param>
1589 <param name="id" type="uuid" dir="in">
1590 <desc>Machine UUID (optional).</desc>
1591 </param>
1592 <param name="machine" type="IMachine" dir="return">
1593 <desc>Created machine object.</desc>
1594 </param>
1595 </method>
1596
1597 <method name="openMachine">
1598 <desc>
1599 Opens a virtual machine from the existing settings file.
1600 The opened machine remains unregistered until you call
1601 <link to="#registerMachine"/>.
1602
1603 The specified settings file name can be absolute
1604 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1605 VirtualBox home directory</link>. This file must exist
1606 and must be a valid machine settings file whose contents
1607 will be used to construct the machine object.
1608
1609 @deprecated Will be removed soon.
1610 <result name="VBOX_E_FILE_ERROR">
1611 Settings file name invalid, not found or sharing violation.
1612 </result>
1613 </desc>
1614 <param name="settingsFile" type="wstring" dir="in">
1615 <desc>
1616 Name of the machine settings file.
1617 </desc>
1618 </param>
1619 <param name="machine" type="IMachine" dir="return">
1620 <desc>Opened machine object.</desc>
1621 </param>
1622 <note>
1623 <link to="IMachine::settingsModified"/> will return
1624 false for the created machine, until any of machine settings
1625 are changed.
1626 </note>
1627 </method>
1628
1629 <method name="registerMachine">
1630 <desc>
1631
1632 Registers the machine previously created using
1633 <link to="#createMachine"/> or opened using
1634 <link to="#openMachine"/> within this VirtualBox installation. After
1635 successful method invocation, the
1636 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1637 to all registered callbacks.
1638
1639 <note>
1640 This method implicitly calls <link to="IMachine::saveSettings"/>
1641 to save all current machine settings before registering it.
1642 </note>
1643
1644 <result name="VBOX_E_OBJECT_NOT_FOUND">
1645 No matching virtual machine found.
1646 </result>
1647 <result name="VBOX_E_INVALID_OBJECT_STATE">
1648 Virtual machine was not created within this VirtualBox instance.
1649 </result>
1650
1651 </desc>
1652 <param name="machine" type="IMachine" dir="in"/>
1653 </method>
1654
1655 <method name="getMachine">
1656 <desc>
1657 Attempts to find a virtual machine given its UUID.
1658 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1659 instead.
1660
1661 <result name="VBOX_E_OBJECT_NOT_FOUND">
1662 Could not find registered machine matching @a id.
1663 </result>
1664
1665 </desc>
1666 <param name="id" type="uuid" dir="in"/>
1667 <param name="machine" type="IMachine" dir="return"/>
1668 </method>
1669
1670 <method name="findMachine">
1671 <desc>
1672 Attempts to find a virtual machine given its name.
1673 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1674 instead.
1675
1676 <result name="VBOX_E_OBJECT_NOT_FOUND">
1677 Could not find registered machine matching @a name.
1678 </result>
1679
1680 </desc>
1681 <param name="name" type="wstring" dir="in"/>
1682 <param name="machine" type="IMachine" dir="return"/>
1683 </method>
1684
1685 <method name="unregisterMachine">
1686 <desc>
1687
1688 Unregisters the machine previously registered using
1689 <link to="#registerMachine"/>. After successful method invocation, the
1690 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1691 to all registered callbacks.
1692
1693 <note>
1694 The specified machine must not be in the Saved state, have an open
1695 (or a spawning) direct session associated with it, have snapshots or
1696 have hard disks attached.
1697 </note>
1698
1699 <note>
1700 This method implicitly calls <link to="IMachine::saveSettings"/> to
1701 save all current machine settings before unregistering it.
1702 </note>
1703
1704 <note>
1705 If the given machine is inaccessible (see
1706 <link to="IMachine::accessible"/>), it will be unregistered and
1707 fully uninitialized right afterwards. As a result, the returned
1708 machine object will be unusable and an attempt to call
1709 <b>any</b> method will return the "Object not ready" error.
1710 </note>
1711
1712 <result name="VBOX_E_OBJECT_NOT_FOUND">
1713 Could not find registered machine matching @a id.
1714 </result>
1715 <result name="VBOX_E_INVALID_VM_STATE">
1716 Machine is in Saved state.
1717 </result>
1718 <result name="VBOX_E_INVALID_OBJECT_STATE">
1719 Machine has snapshot or open session or hard disk attached.
1720 </result>
1721
1722 </desc>
1723 <param name="id" type="uuid" dir="in">
1724 <desc>UUID of the machine to unregister.</desc>
1725 </param>
1726 <param name="machine" type="IMachine" dir="return">
1727 <desc>Unregistered machine object.</desc>
1728 </param>
1729 </method>
1730
1731 <method name="createAppliance">
1732 <desc>
1733 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1734 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1735 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1736 </desc>
1737 <param name="appliance" type="IAppliance" dir="return">
1738 <desc>New appliance.</desc>
1739 </param>
1740 </method>
1741
1742 <method name="createHardDisk">
1743 <desc>
1744 Creates a new base hard disk object that will use the given storage
1745 format and location for hard disk data.
1746
1747 Note that the actual storage unit is not created by this method. In
1748 order to do it, and before you are able to attach the created hard disk
1749 to virtual machines, you must call one of the following methods to
1750 allocate a format-specific storage unit at the specified location:
1751 <ul>
1752 <li><link to="IHardDisk::createDynamicStorage"/></li>
1753 <li><link to="IHardDisk::createFixedStorage"/></li>
1754 <li><link to="IHardDisk::createDiffStorage"/></li>
1755 </ul>
1756
1757 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1758 remain uninitialized until the hard disk storage unit is successfully
1759 created by one of the above methods.
1760
1761 After the storage unit is successfully created, the hard disk gets
1762 remembered by this VirtualBox installation and will be accessible
1763 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1764 methods. Remembered root (base) hard disks are also returned as part of
1765 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1766
1767 The list of all storage formats supported by this VirtualBox
1768 installation can be obtained using
1769 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1770 attribute is empty or <tt>null</tt> then the default storage format
1771 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1772 be used for creating a storage unit of the hard disk.
1773
1774 Note that the format of the location string is storage format specific.
1775 See <link to="IMedium::location"/>, IHardDisk and
1776 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1777
1778 <result name="VBOX_E_OBJECT_NOT_FOUND">
1779 @a format identifier is invalid. See
1780 <link to="ISystemProperties::hardDiskFormats"/>.
1781 </result>
1782 <result name="VBOX_E_FILE_ERROR">
1783 @a location is a not valid file name (for file-based formats only).
1784 </result>
1785 <result name="E_INVALIDARG">
1786 @a format is a null or empty string.
1787 </result>
1788 </desc>
1789 <param name="format" type="wstring" dir="in">
1790 <desc>
1791 Identifier of the storage format to use for the new hard disk.
1792 </desc>
1793 </param>
1794 <param name="location" type="wstring" dir="in">
1795 <desc>
1796 Location of the storage unit for the new hard disk.
1797 </desc>
1798 </param>
1799 <param name="hardDisk" type="IHardDisk" dir="return">
1800 <desc>Created hard disk object.</desc>
1801 </param>
1802 </method>
1803
1804 <method name="openHardDisk">
1805 <desc>
1806 Opens a hard disk from an existing location.
1807
1808 After the hard disk is successfully opened by this method, it gets
1809 remembered by (known to) this VirtualBox installation and will be
1810 accessible through <link to="#getHardDisk"/> and
1811 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1812 are also returned as part of the <link to="#hardDisks"/> array and can
1813 be attached to virtual machines. See IHardDisk for more details.
1814
1815 If a differencing hard disk is to be opened by this method, the
1816 operation will succeed only if its parent hard disk and all ancestors,
1817 if any, are already known to this VirtualBox installation (for example,
1818 were opened by this method before).
1819
1820 This method tries to guess the storage format of the specified hard disk
1821 by reading hard disk data at the specified location.
1822
1823 Note that the format of the location string is storage format specific.
1824 See <link to="IMedium::location"/>, IHardDisk and
1825 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1826
1827
1828 <result name="VBOX_E_FILE_ERROR">
1829 Invalid hard disk storage file location.
1830 </result>
1831 <result name="VBOX_E_IPRT_ERROR">
1832 Could not get hard disk storage format.
1833 </result>
1834 <result name="E_INVALIDARG">
1835 Invalid hard disk storage format.
1836 </result>
1837
1838 </desc>
1839 <param name="location" type="wstring" dir="in">
1840 <desc>
1841 Location of the storage unit that contains hard disk data in one of
1842 the supported storage formats.
1843 </desc>
1844 </param>
1845 <param name="hardDisk" type="IHardDisk" dir="return">
1846 <desc>Opened hard disk object.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getHardDisk" const="yes">
1851 <desc>
1852 Returns a hard disk with the given UUID.
1853
1854 The hard disk with the given UUID must be known to this VirtualBox
1855 installation, i.e. it must be previously created by
1856 <link to="#createHardDisk"/> or opened by <link
1857 to="#openHardDisk"/>, or attached to some known virtual machine.
1858
1859 <result name="VBOX_E_OBJECT_NOT_FOUND">
1860 No hard disk object matching @a id found.
1861 </result>
1862
1863 </desc>
1864 <param name="id" type="uuid" dir="in">
1865 <desc>UUID of the hard disk to look for.</desc>
1866 </param>
1867 <param name="hardDisk" type="IHardDisk" dir="return">
1868 <desc>Found hard disk object.</desc>
1869 </param>
1870 </method>
1871
1872 <method name="findHardDisk">
1873 <desc>
1874 Returns a hard disk that uses the given location to store hard
1875 disk data.
1876
1877 The given hard disk must be known to this VirtualBox installation, i.e.
1878 it must be previously created by
1879 <link to="#createHardDisk"/> or opened by <link
1880 to="#openHardDisk"/>, or attached to some known virtual machine.
1881
1882 The search is done by comparing the value of the @a location argument to
1883 the <link to="IHardDisk::location"/> attribute of each known hard
1884 disk.
1885
1886 For locations represented by file names in the host's file system, the
1887 requested location can be a path relative to the
1888 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1889 only a file name without any path is given, the
1890 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1891 folder</link> will be prepended to the file name before searching. Note
1892 that on case sensitive file systems, a case sensitive comparison is
1893 performed, otherwise the case of symbols in the file path is ignored.
1894
1895 <result name="VBOX_E_OBJECT_NOT_FOUND">
1896 No hard disk object matching @a location found.
1897 </result>
1898
1899 </desc>
1900 <param name="location" type="wstring" dir="in">
1901 <desc>Location string to search for.</desc>
1902 </param>
1903 <param name="hardDisk" type="IHardDisk" dir="return">
1904 <desc>Found hard disk object.</desc>
1905 </param>
1906 </method>
1907
1908 <method name="openDVDImage">
1909 <desc>
1910 Opens a CD/DVD image contained in the specified file of the supported
1911 format and assigns it the given UUID.
1912
1913 After the image is successfully opened by this method, it gets
1914 remembered by (known to) this VirtualBox installation and will be
1915 accessible through <link to="#getDVDImage"/> and
1916 <link to="#findDVDImage"/> methods. Remembered images are also
1917 returned as part of the <link to="#DVDImages"/> array and can be mounted
1918 to virtual machines. See IMedium for more details.
1919
1920 See <link to="IMedium::location"/> to get more details about the format
1921 of the location string.
1922
1923 <note>
1924 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1925 </note>
1926
1927 <result name="VBOX_E_INVALID_OBJECT_STATE">
1928 CD/DVD image already exists in the media registry.
1929 </result>
1930
1931 </desc>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Full path to the file that contains a valid CD/DVD image.
1935 </desc>
1936 </param>
1937 <param name="id" type="uuid" dir="in">
1938 <desc>
1939 UUID to assign to the given image within this VirtualBox installation.
1940 If an empty (null) UUID is specified, the system will randomly
1941 generate a new UUID.
1942 </desc>
1943 </param>
1944 <param name="image" type="IDVDImage" dir="return">
1945 <desc>Opened CD/DVD image object.</desc>
1946 </param>
1947 </method>
1948
1949 <method name="getDVDImage">
1950 <desc>
1951 Returns a CD/DVD image with the given UUID.
1952
1953 The image with the given UUID must be known to this VirtualBox
1954 installation, i.e. it must be previously opened by <link
1955 to="#openDVDImage"/>, or mounted to some known virtual machine.
1956
1957 <result name="VBOX_E_OBJECT_NOT_FOUND">
1958 No matching DVD image found in the media registry.
1959 </result>
1960
1961 </desc>
1962 <param name="id" type="uuid" dir="in">
1963 <desc>UUID of the image to look for.</desc>
1964 </param>
1965 <param name="image" type="IDVDImage" dir="return">
1966 <desc>Found CD/DVD image object.</desc>
1967 </param>
1968 </method>
1969
1970 <method name="findDVDImage">
1971 <desc>
1972 Returns a CD/DVD image with the given image location.
1973
1974 The image with the given UUID must be known to this VirtualBox
1975 installation, i.e. it must be previously opened by <link
1976 to="#openDVDImage"/>, or mounted to some known virtual machine.
1977
1978 The search is done by comparing the value of the @a location argument to
1979 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1980
1981 The requested location can be a path relative to the
1982 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1983 only a file name without any path is given, the
1984 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1985 folder</link> will be prepended to the file name before searching. Note
1986 that on case sensitive file systems, a case sensitive comparison is
1987 performed, otherwise the case in the file path is ignored.
1988
1989 <result name="VBOX_E_FILE_ERROR">
1990 Invalid image file location.
1991 </result>
1992 <result name="VBOX_E_OBJECT_NOT_FOUND">
1993 No matching DVD image found in the media registry.
1994 </result>
1995
1996 </desc>
1997 <param name="location" type="wstring" dir="in">
1998 <desc>CD/DVD image file path to look for.</desc>
1999 </param>
2000 <param name="image" type="IDVDImage" dir="return">
2001 <desc>Found CD/DVD image object.</desc>
2002 </param>
2003 </method>
2004
2005 <method name="openFloppyImage">
2006 <desc>
2007 Opens a floppy image contained in the specified file of the supported
2008 format and assigns it the given UUID.
2009
2010 After the image is successfully opened by this method, it gets
2011 remembered by (known to) this VirtualBox installation and will be
2012 accessible through <link to="#getFloppyImage"/> and
2013 <link to="#findFloppyImage"/> methods. Remembered images are also
2014 returned as part of the <link to="#floppyImages"/> array and can be
2015 mounted to virtual machines. See IMedium for more details.
2016
2017 See <link to="IMedium::location"/> to get more details about the format
2018 of the location string.
2019
2020 <result name="VBOX_E_FILE_ERROR">
2021 Floppy image specified by @a location not accessible.
2022 </result>
2023 <result name="VBOX_E_INVALID_OBJECT_STATE">
2024 Floppy image already exists in the media registry.
2025 </result>
2026
2027 <note>
2028 Currently, only raw floppy images are supported by VirtualBox.
2029 </note>
2030 </desc>
2031 <param name="location" type="wstring" dir="in">
2032 <desc>
2033 Full path to the file that contains a valid floppy image.
2034 </desc>
2035 </param>
2036 <param name="id" type="uuid" dir="in">
2037 <desc>
2038 UUID to assign to the given image file within this VirtualBox
2039 installation. If an empty (null) UUID is specified, the system will
2040 randomly generate a new UUID.
2041 </desc>
2042 </param>
2043 <param name="image" type="IFloppyImage" dir="return">
2044 <desc>Opened floppy image object.</desc>
2045 </param>
2046 </method>
2047
2048 <method name="getFloppyImage">
2049 <desc>
2050 Returns a floppy image with the given UUID.
2051
2052 The image with the given UUID must be known to this VirtualBox
2053 installation, i.e. it must be previously opened by <link
2054 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2055
2056 <result name="VBOX_E_OBJECT_NOT_FOUND">
2057 No matching floppy image found in the media registry.
2058 </result>
2059
2060 </desc>
2061 <param name="id" type="uuid" dir="in">
2062 <desc>UUID of the image to look for.</desc>
2063 </param>
2064 <param name="image" type="IFloppyImage" dir="return">
2065 <desc>Found floppy image object.</desc>
2066 </param>
2067 </method>
2068
2069 <method name="findFloppyImage">
2070 <desc>
2071 Returns a floppy image with the given image location.
2072
2073 The image with the given UUID must be known to this VirtualBox
2074 installation, i.e. it must be previously opened by <link
2075 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2076
2077 The search is done by comparing the value of the @a location argument to
2078 the <link to="IMedium::location"/> attribute of each known floppy image.
2079
2080 The requested location can be a path relative to the
2081 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2082 only a file name without any path is given, the
2083 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2084 folder</link> will be prepended to the file name before searching. Note
2085 that on case sensitive file systems, a case sensitive comparison is
2086 performed, otherwise the case of symbols in the file path is ignored.
2087
2088 <result name="VBOX_E_FILE_ERROR">
2089 Invalid image file location.
2090 </result>
2091 <result name="VBOX_E_OBJECT_NOT_FOUND">
2092 No matching floppy image found in the media registry.
2093 </result>
2094
2095 </desc>
2096 <param name="location" type="wstring" dir="in">
2097 <desc>Floppy image file path to look for.</desc>
2098 </param>
2099 <param name="image" type="IFloppyImage" dir="return">
2100 <desc>Found floppy image object.</desc>
2101 </param>
2102 </method>
2103
2104 <method name="getGuestOSType">
2105 <desc>
2106 Returns an object describing the specified guest OS type.
2107
2108 The requested guest OS type is specified using a string which is a
2109 mnemonic identifier of the guest operating system, such as
2110 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2111 particular virtual machine can be read or set using the
2112 <link to="IMachine::OSTypeId"/> attribute.
2113
2114 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2115 available guest OS type objects. Each object has an
2116 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2117 the guest OS this object describes.
2118
2119 <result name="E_INVALIDARG">
2120 @a id is not a valid Guest OS type.
2121 </result>
2122
2123 </desc>
2124 <param name="id" type="wstring" dir="in">
2125 <desc>Guest OS type ID string.</desc>
2126 </param>
2127 <param name="type" type="IGuestOSType" dir="return">
2128 <desc>Guest OS type object.</desc>
2129 </param>
2130 </method>
2131
2132 <method name="createSharedFolder">
2133 <desc>
2134 Creates a new global shared folder by associating the given logical
2135 name with the given host path, adds it to the collection of shared
2136 folders and starts sharing it. Refer to the description of
2137 <link to="ISharedFolder"/> to read more about logical names.
2138 <note>
2139 In the current implementation, this operation is not
2140 implemented.
2141 </note>
2142 </desc>
2143 <param name="name" type="wstring" dir="in">
2144 <desc>Unique logical name of the shared folder.</desc>
2145 </param>
2146 <param name="hostPath" type="wstring" dir="in">
2147 <desc>Full path to the shared folder in the host file system.</desc>
2148 </param>
2149 <param name="writable" type="boolean" dir="in">
2150 <desc>Whether the share is writable or readonly</desc>
2151 </param>
2152 </method>
2153
2154 <method name="removeSharedFolder">
2155 <desc>
2156 Removes the global shared folder with the given name previously
2157 created by <link to="#createSharedFolder"/> from the collection of
2158 shared folders and stops sharing it.
2159 <note>
2160 In the current implementation, this operation is not
2161 implemented.
2162 </note>
2163 </desc>
2164 <param name="name" type="wstring" dir="in">
2165 <desc>Logical name of the shared folder to remove.</desc>
2166 </param>
2167 </method>
2168
2169 <method name="getNextExtraDataKey">
2170 <desc>
2171 Returns the global extra data key name following the supplied key.
2172
2173 An error is returned if the supplied @a key does not exist. @c NULL is
2174 returned in @a nextKey if the supplied key is the last key. When
2175 supplying @c NULL for the @a key, the first key item is returned in
2176 @a nextKey (if there is any). @a nextValue is an optional parameter and
2177 if supplied, the next key's value is returned in it.
2178
2179 <result name="VBOX_E_OBJECT_NOT_FOUND">
2180 Extra data @a key not found.
2181 </result>
2182
2183 </desc>
2184 <param name="key" type="wstring" dir="in">
2185 <desc>Name of the data key to follow.</desc>
2186 </param>
2187 <param name="nextKey" type="wstring" dir="out">
2188 <desc>Name of the next data key.</desc>
2189 </param>
2190 <param name="nextValue" type="wstring" dir="out">
2191 <desc>Value of the next data key.</desc>
2192 </param>
2193 </method>
2194
2195 <method name="getExtraData">
2196 <desc>
2197 Returns associated global extra data.
2198
2199 If the requested data @a key does not exist, this function will
2200 succeed and return @c NULL in the @a value argument.
2201
2202 <result name="VBOX_E_FILE_ERROR">
2203 Settings file not accessible.
2204 </result>
2205 <result name="VBOX_E_XML_ERROR">
2206 Could not parse the settings file.
2207 </result>
2208
2209 </desc>
2210 <param name="key" type="wstring" dir="in">
2211 <desc>Name of the data key to get.</desc>
2212 </param>
2213 <param name="value" type="wstring" dir="return">
2214 <desc>Value of the requested data key.</desc>
2215 </param>
2216 </method>
2217
2218 <method name="setExtraData">
2219 <desc>
2220 Sets associated global extra data.
2221
2222 If you pass @c NULL as a key @a value, the given @a key will be
2223 deleted.
2224
2225 <note>
2226 Before performing the actual data change, this method will ask all
2227 registered callbacks using the
2228 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2229 notification for a permission. If one of the callbacks refuses the
2230 new value, the change will not be performed.
2231 </note>
2232 <note>
2233 On success, the
2234 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2235 is called to inform all registered callbacks about a successful data
2236 change.
2237 </note>
2238
2239 <result name="VBOX_E_FILE_ERROR">
2240 Settings file not accessible.
2241 </result>
2242 <result name="VBOX_E_XML_ERROR">
2243 Could not parse the settings file.
2244 </result>
2245 <result name="E_ACCESSDENIED">
2246 Modification request refused.
2247 </result>
2248
2249 </desc>
2250 <param name="key" type="wstring" dir="in">
2251 <desc>Name of the data key to set.</desc>
2252 </param>
2253 <param name="value" type="wstring" dir="in">
2254 <desc>Value to assign to the key.</desc>
2255 </param>
2256 </method>
2257
2258 <method name="openSession">
2259 <desc>
2260 Opens a new direct session with the given virtual machine.
2261
2262 A direct session acts as a local lock on the given VM.
2263 There can be only one direct session open at a time for every
2264 virtual machine, protecting the VM from being manipulated by
2265 conflicting actions from different processes. Only after a
2266 direct session has been opened, one can change all VM settings
2267 and execute the VM in the process space of the session object.
2268
2269 Sessions therefore can be compared to mutex semaphores that
2270 lock a given VM for modification and execution.
2271 See <link to="ISession">ISession</link> for details.
2272
2273 <note>Unless you are writing a new VM frontend, you will not
2274 want to execute a VM in the current process. To spawn a new
2275 process that executes a VM, use
2276 <link to="IVirtualBox::openRemoteSession" />
2277 instead.</note>
2278
2279 Upon successful return, the session object can be used to
2280 get access to the machine and to the VM console.
2281
2282 In VirtualBox terminology, the machine becomes "mutable" after
2283 a session has been opened. Note that the "mutable" machine
2284 object, on which you may invoke IMachine methods to change its
2285 settings, will be a different object from the immutable IMachine
2286 objects returned by various IVirtualBox methods. To obtain a
2287 mutable IMachine object (upon which you can invoke settings methods),
2288 use the <link to="ISession::machine" /> attribute.
2289
2290 One must always call <link to="ISession::close" /> to release the
2291 lock on the machine, or the machine's state will eventually be
2292 set to "Aborted".
2293
2294 In other words, to change settings on a machine, the following
2295 sequence is typically performed:
2296
2297 <ol>
2298 <li>Call this method (openSession) to have a machine locked for
2299 the current session.</li>
2300
2301 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2302
2303 <li>Change the settings of the machine.</li>
2304
2305 <li>Call <link to="IMachine::saveSettings" />.</li>
2306
2307 <li>Close the session by calling <link to="ISession::close"/>.</li>
2308 </ol>
2309
2310 <result name="E_UNEXPECTED">
2311 Virtual machine not registered.
2312 </result>
2313 <result name="E_ACCESSDENIED">
2314 Process not started by OpenRemoteSession.
2315 </result>
2316 <result name="VBOX_E_OBJECT_NOT_FOUND">
2317 No matching virtual machine found.
2318 </result>
2319 <result name="VBOX_E_INVALID_OBJECT_STATE">
2320 Session already open or being opened.
2321 </result>
2322 <result name="VBOX_E_VM_ERROR">
2323 Failed to assign machine to session.
2324 </result>
2325
2326 </desc>
2327 <param name="session" type="ISession" dir="in">
2328 <desc>
2329 Session object that will represent the opened session after
2330 successful method invocation. This object must not represent
2331 the already open session.
2332 <note>
2333 This session will be automatically closed if the
2334 VirtualBox server is terminated for some reason.
2335 </note>
2336 </desc>
2337 </param>
2338 <param name="machineId" type="uuid" dir="in">
2339 <desc>ID of the virtual machine to open a session with.</desc>
2340 </param>
2341 </method>
2342
2343 <method name="openRemoteSession">
2344 <desc>
2345 Spawns a new process that executes a virtual machine (called a
2346 "remote session").
2347
2348 Opening a remote session causes the VirtualBox server to start a new
2349 process that opens a direct session with the given VM. As a result, the
2350 VM is locked by that direct session in the new process, preventing
2351 conflicting changes from other processes. Since sessions act as locks
2352 that prevent conflicting changes, one cannot open a remote session
2353 for a VM that already has another open session (direct or remote), or
2354 is currently in the process of opening one (see <link
2355 to="IMachine::sessionState"/>).
2356
2357 While the remote session still provides some level of control over the
2358 VM execution to the caller (using the <link to="IConsole" /> interface),
2359 not all VM settings are available for modification within the remote
2360 session context.
2361
2362 This operation can take some time (a new VM is started in a new process,
2363 for which memory and other resources need to be set up). Because of this,
2364 an <link to="IProgress" /> is returned to allow the caller to wait for this
2365 asynchronous operation to be completed. Until then, the remote session
2366 object remains in the closed state, and accessing the machine or its
2367 console through it is invalid. It is recommended to use
2368 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2369 completion.
2370
2371 As with all <link to="ISession" /> objects, it is recommended to call
2372 <link to="ISession::close" /> on the local session object once openRemoteSession()
2373 has been called. However, the session's state (see <link to="ISession::state" />)
2374 will not return to "Closed" until the remote session has also closed (i.e.
2375 until the VM is no longer running). In that case, however, the state of
2376 the session will automatically change back to "Closed".
2377
2378 Currently supported session types (values of the @a type
2379 argument) are:
2380 <ul>
2381 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2382 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2383 </ul>
2384
2385 The @a environment argument is a string containing definitions of
2386 environment variables in the following format:
2387 @code
2388 NAME[=VALUE]\n
2389 NAME[=VALUE]\n
2390 ...
2391 @endcode
2392 where <tt>\\n</tt> is the new line character. These environment
2393 variables will be appended to the environment of the VirtualBox server
2394 process. If an environment variable exists both in the server process
2395 and in this list, the value from this list takes precedence over the
2396 server's variable. If the value of the environment variable is
2397 omitted, this variable will be removed from the resulting environment.
2398 If the environment string is @c null, the server environment is
2399 inherited by the started process as is.
2400
2401 <see>openExistingSession</see>
2402
2403 <result name="E_UNEXPECTED">
2404 Virtual machine not registered.
2405 </result>
2406 <result name="E_INVALIDARG">
2407 Invalid session type @a type.
2408 </result>
2409 <result name="VBOX_E_OBJECT_NOT_FOUND">
2410 No machine matching @a machineId found.
2411 </result>
2412 <result name="VBOX_E_INVALID_OBJECT_STATE">
2413 Session already open or being opened.
2414 </result>
2415 <result name="VBOX_E_IPRT_ERROR">
2416 Launching process for machine failed.
2417 </result>
2418 <result name="VBOX_E_VM_ERROR">
2419 Failed to assign machine to session.
2420 </result>
2421
2422 </desc>
2423 <param name="session" type="ISession" dir="in">
2424 <desc>
2425 Session object that will represent the opened remote session
2426 after successful method invocation (this object must not
2427 represent an already open session).
2428 </desc>
2429 </param>
2430 <param name="machineId" type="uuid" dir="in">
2431 <desc>ID of the virtual machine to open a session with.</desc>
2432 </param>
2433 <param name="type" type="wstring" dir="in">
2434 <desc>
2435 Type of the remote session (case sensitive).
2436 </desc>
2437 </param>
2438 <param name="environment" type="wstring" dir="in">
2439 <desc>
2440 Environment to pass to the opened session (may be @c null).
2441 </desc>
2442 </param>
2443 <param name="progress" type="IProgress" dir="return">
2444 <desc>Progress object to track the operation completion.</desc>
2445 </param>
2446 </method>
2447
2448 <method name="openExistingSession">
2449 <desc>
2450 Opens a new remote session with the virtual machine for
2451 which a direct session is already open.
2452
2453 The remote session provides some level of control over the VM
2454 execution (using the IConsole interface) to the caller; however,
2455 within the remote session context, not all VM settings are available
2456 for modification.
2457
2458 As opposed to <link to="#openRemoteSession"/>, the number of
2459 remote sessions opened this way is not limited by the API
2460
2461 <note>
2462 It is an error to open a remote session with the machine that
2463 doesn't have an open direct session.
2464 </note>
2465
2466 <result name="E_UNEXPECTED">
2467 Virtual machine not registered.
2468 </result>
2469 <result name="VBOX_E_OBJECT_NOT_FOUND">
2470 No machine matching @a machineId found.
2471 </result>
2472 <result name="VBOX_E_INVALID_OBJECT_STATE">
2473 Session already open or being opened.
2474 </result>
2475 <result name="VBOX_E_INVALID_SESSION_STATE">
2476 Direct session state not Open.
2477 </result>
2478 <result name="VBOX_E_VM_ERROR">
2479 Failed to get console object from direct session or assign
2480 machine to session.
2481 </result>
2482
2483 <see>openRemoteSession</see>
2484 </desc>
2485 <param name="session" type="ISession" dir="in">
2486 <desc>
2487 Session object that will represent the open remote session
2488 after successful method invocation. This object must not
2489 represent an already open session.
2490 <note>
2491 This session will be automatically closed when the peer
2492 (direct) session dies or gets closed.
2493 </note>
2494 </desc>
2495 </param>
2496 <param name="machineId" type="uuid" dir="in">
2497 <desc>ID of the virtual machine to open a session with.</desc>
2498 </param>
2499 </method>
2500
2501 <method name="registerCallback">
2502 <desc>
2503 Registers a new global VirtualBox callback. The methods of the given
2504 callback object will be called by VirtualBox when an appropriate
2505 event occurs.
2506
2507 <result name="E_INVALIDARG">
2508 A @c NULL callback cannot be registered.
2509 </result>
2510
2511 </desc>
2512 <param name="callback" type="IVirtualBoxCallback" dir="in">
2513 <desc>Callback object to register.</desc>
2514 </param>
2515 </method>
2516
2517 <method name="unregisterCallback">
2518 <desc>
2519 Unregisters the previously registered global VirtualBox callback.
2520
2521 <result name="E_INVALIDARG">
2522 Specified @a callback not registered.
2523 </result>
2524
2525 </desc>
2526 <param name="callback" type="IVirtualBoxCallback" dir="in">
2527 <desc>Callback object to unregister.</desc>
2528 </param>
2529 </method>
2530
2531 <method name="waitForPropertyChange">
2532 <desc>
2533 Blocks the caller until any of the properties represented by the
2534 @a what argument changes the value or until the given timeout interval
2535 expires.
2536
2537 The @a what argument is a comma separated list of property masks that
2538 describe properties the caller is interested in. The property mask is
2539 a string in the following format:
2540
2541 <pre>
2542 [[group.]subgroup.]name
2543 </pre>
2544
2545 where @c name is the property name and @c group, @c subgroup are zero
2546 or more property group specifiers. Each element (group or name) in
2547 the property mask may be either a Latin string or an asterisk symbol
2548 (@c "*") which is used to match any string for the given element. A
2549 property mask that doesn't contain asterisk symbols represents a
2550 single fully qualified property name.
2551
2552 Groups in the fully qualified property name go from more generic (the
2553 left-most part) to more specific (the right-most part). The first
2554 element is usually a name of the object the property belongs to. The
2555 second element may be either a property name, or a child object name,
2556 or an index if the preceding element names an object which is one of
2557 many objects of the same type. This way, property names form a
2558 hierarchy of properties. Here are some examples of property names:
2559
2560 <table>
2561 <tr>
2562 <td><tt>VirtualBox.version</tt></td>
2563 <td><link to="IVirtualBox::version"/> property</td>
2564 </tr>
2565 <tr>
2566 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2567 <td><link to="IMachine::name"/> property of the machine with the
2568 given UUID</td>
2569 </tr>
2570 </table>
2571
2572 Most property names directly correspond to the properties of objects
2573 (components) provided by the VirtualBox library and may be used to
2574 track changes to these properties. However, there may be
2575 pseudo-property names that don't correspond to any existing object's
2576 property directly, as well as there may be object properties that
2577 don't have a corresponding property name that is understood by this
2578 method, and therefore changes to such properties cannot be
2579 tracked. See individual object's property descriptions to get a
2580 fully qualified property name that can be used with this method (if
2581 any).
2582
2583 There is a special property mask @c "*" (i.e. a string consisting of a
2584 single asterisk symbol) that can be used to match all properties.
2585 Below are more examples of property masks:
2586
2587 <table>
2588 <tr>
2589 <td><tt>VirtualBox.*</tt></td>
2590 <td>Track all properties of the VirtualBox object</td>
2591 </tr>
2592 <tr>
2593 <td><tt>Machine.*.name</tt></td>
2594 <td>Track changes to the <link to="IMachine::name"/> property of
2595 all registered virtual machines</td>
2596 </tr>
2597 </table>
2598
2599 <note>
2600 This function is not implemented in the current version of the
2601 product.
2602 </note>
2603 </desc>
2604 <param name="what" type="wstring" dir="in">
2605 <desc>Comma separated list of property masks.</desc>
2606 </param>
2607 <param name="timeout" type="unsigned long" dir="in">
2608 <desc>
2609 Wait timeout in milliseconds.
2610 Specify -1 for an indefinite wait.
2611 </desc>
2612 </param>
2613 <param name="changed" type="wstring" dir="out">
2614 <desc>
2615 Comma separated list of properties that have been changed and caused
2616 this method to return to the caller.
2617 </desc>
2618 </param>
2619 <param name="values" type="wstring" dir="out">
2620 <desc>Reserved, not currently used.</desc>
2621 </param>
2622 </method>
2623
2624 <method name="saveSettings">
2625 <desc>
2626 Saves the global settings to the global settings file
2627 (<link to="#settingsFilePath"/>).
2628
2629 This method is only useful for explicitly saving the global settings
2630 file after it has been auto-converted from the old format to the most
2631 recent format (see <link to="#settingsFileVersion"/> for details).
2632 Normally, the global settings file is implicitly saved when a global
2633 setting is changed.
2634
2635 <result name="VBOX_E_FILE_ERROR">
2636 Settings file not accessible.
2637 </result>
2638 <result name="VBOX_E_XML_ERROR">
2639 Could not parse the settings file.
2640 </result>
2641
2642 </desc>
2643 </method>
2644
2645 <method name="saveSettingsWithBackup">
2646 <desc>
2647 Creates a backup copy of the global settings file
2648 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2649 calls <link to="#saveSettings"/>.
2650
2651 Note that the backup copy is created <b>only</b> if the settings file
2652 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2653 details). Otherwise, this call is fully equivalent to
2654 <link to="#saveSettings"/> and no backup copying is done.
2655
2656 The backup copy is created in the same directory where the original
2657 settings file is located. It is given the following file name:
2658 <pre>
2659 original.xml.x.y-platform.bak
2660 </pre>
2661 where <tt>original.xml</tt> is the original settings file name
2662 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2663 format of the settings file (before auto-conversion).
2664
2665 If the given backup file already exists, this method will try to add the
2666 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2667 0 to 9) and copy it again until it succeeds. If all suffixes are
2668 occupied, or if any other copy error occurs, this method will return a
2669 failure.
2670
2671 If the copy operation succeeds, the @a bakFileName return argument will
2672 receive a full path to the created backup file (for informational
2673 purposes). Note that this will happen even if the subsequent
2674 <link to="#saveSettings"/> call performed by this method after the
2675 copy operation, fails.
2676
2677 <note>
2678 The VirtualBox API never calls this method. It is intended purely for
2679 the purposes of creating backup copies of the settings files by
2680 front-ends before saving the results of the automatically performed
2681 settings conversion to disk.
2682 </note>
2683
2684 <see>settingsFileVersion</see>
2685
2686 <result name="VBOX_E_FILE_ERROR">
2687 Settings file not accessible.
2688 </result>
2689 <result name="VBOX_E_XML_ERROR">
2690 Could not parse the settings file.
2691 </result>
2692 <result name="VBOX_E_IPRT_ERROR">
2693 Could not copy the settings file.
2694 </result>
2695
2696 </desc>
2697 <param name="bakFileName" type="wstring" dir="return">
2698 <desc>Full path to the created backup copy.</desc>
2699 </param>
2700 </method>
2701
2702 </interface>
2703
2704 <!--
2705 // IAppliance
2706 /////////////////////////////////////////////////////////////////////////
2707 -->
2708
2709 <enum
2710 name="CIMOSType"
2711 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2712 >
2713 <desc>
2714 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2715 </desc>
2716
2717 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2718 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2719 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2720 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2721 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2722 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2723 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2724 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2725 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2726 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2727 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2728 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2729 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2730 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2731 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2732 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2733 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2734 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2735 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2736 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2737 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2738 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2739 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2740 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2741 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2742 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2743 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2744 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2745 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2746 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2747 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2748 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2749 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2750 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2751 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2752 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2753 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2754 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2755 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2756 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2757 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2758 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2759 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2760 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2761 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2762 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2763 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2764 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2765 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2766 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2767 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2768 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2769 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2770 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2771 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2772 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2773 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2774 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2775 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2776 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2777 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2778 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2779 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2780 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2781 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2782 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2783 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2784 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2785 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2786 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2787 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2788 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2789 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2790 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2791 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2792 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2793 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2794 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2795 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2796 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2797 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2798 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2799 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2800 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2801 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2802 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2803 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2804 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2805 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2806 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2807 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2808 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2809 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2810 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2811 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2812 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2813 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2814 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2815 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2816 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2817 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2818 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2819 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2820 </enum>
2821
2822 <enum
2823 name="OVFResourceType"
2824 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2825 >
2826 <desc>
2827 OVF resource type.
2828 </desc>
2829
2830 <const name="Other" value="1" />
2831 <const name="ComputerSystem" value="2" />
2832 <const name="Processor" value="3" />
2833 <const name="Memory" value="4" />
2834 <const name="IdeController" value="5" />
2835 <const name="ParallelScsiHba" value="6" />
2836 <const name="FcHba" value="7" />
2837 <const name="iScsiHba" value="8" />
2838 <const name="IbHca" value="9" />
2839 <const name="EthernetAdapter" value="10" />
2840 <const name="OtherNetworkAdapter" value="11" />
2841 <const name="IoSlot" value="12" />
2842 <const name="IoDevice" value="13" />
2843 <const name="FloppyDrive" value="14" />
2844 <const name="CdDrive" value="15" />
2845 <const name="DvdDrive" value="16" />
2846 <const name="HardDisk" value="17" />
2847 <const name="UsbController" value="23" />
2848 <const name="SoundCard" value="35" />
2849 </enum>
2850
2851 <interface
2852 name="IAppliance" extends="$unknown"
2853 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2854 wsmap="managed"
2855 >
2856 <desc>
2857 Represents a platform-independent appliance in OVF format. An instance of this is returned
2858 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2859 appliances with VirtualBox.
2860
2861 The OVF standard suggests two different physical file formats:
2862
2863 <ol>
2864 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2865 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2866 this descriptor file references other files, as OVF appliances distributed as a set of
2867 files most likely do, those files must be in the same directory as the descriptor file.</li>
2868
2869 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2870 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2871 files and optionally other files.
2872
2873 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2874 be added with a later version.</li>
2875 </ol>
2876
2877 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2878 <link to="IMachine" /> involves the following sequence of API calls:
2879
2880 <ol>
2881 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2882 </li>
2883
2884 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2885 would like to import. So long as this file is syntactically valid, this will succeed
2886 and return an instance of IAppliance that contains the parsed data from the OVF file.
2887 </li>
2888
2889 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2890 contents of the IAppliance attributes accordingly. These can be inspected by a
2891 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2892 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2893 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2894 systems in the OVF, which in turn describe the virtual hardware prescribed by the
2895 OVF (network and hardware adapters, virtual disk images, memory size and so on).
2896 The GUI can then give the user the option to confirm and/or change these suggestions.
2897 </li>
2898
2899 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2900 virtual system to override the suggestions made by VirtualBox.
2901 </li>
2902
2903 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2904 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2905 virtual system descriptions.
2906 </li>
2907 </ol>
2908
2909 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2910
2911 <ol>
2912 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2913 an empty IAppliance object.
2914 </li>
2915
2916 <li>For each machine you would like to export, call <link to="IMachine::export" />
2917 with the IAppliance object you just created. This creates an instance of
2918 <link to="IVirtualSystemDescription" /> inside the appliance.
2919 </li>
2920
2921 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2922 file written.</li>
2923 </ol>
2924
2925 </desc>
2926
2927 <attribute name="path" type="wstring" readonly="yes">
2928 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2929 the <tt>.ova</tt> file passed to <link to="IAppliance::read" />.</desc>
2930 </attribute>
2931
2932 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2933 <desc>
2934 Array of virtual disk definitions. One such description exists for each
2935 disk definition in the OVF; each string array item represents one such piece of
2936 disk information, with the information fields separated by tab (\t) characters.
2937
2938 The caller should be prepared for additional fields being appended to
2939 this string in future versions of VirtualBox and therefore check for
2940 the number of tabs in the strings returned.
2941
2942 In the current version, the following eight fields are returned per string
2943 in the array:
2944
2945 <ol>
2946 <li>Disk ID (unique string identifier given to disk)</li>
2947
2948 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2949
2950 <li>Populated size (optional unsigned integer indicating the current size of the
2951 disk; can be approximate; -1 if unspecified)</li>
2952
2953 <li>Format (string identifying the disk format, typically
2954 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2955
2956 <li>Reference (where to find the disk image, typically a file name; if empty,
2957 then the disk should be created on import)</li>
2958
2959 <li>Image size (optional unsigned integer indicating the size of the image,
2960 which need not necessarily be the same as the values specified above, since
2961 the image may be compressed or sparse; -1 if not specified)</li>
2962
2963 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2964 presently unsupported and always -1)</li>
2965
2966 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2967 </ol>
2968 </desc>
2969 </attribute>
2970
2971 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2972 <desc> Array of virtual system descriptions. One such description is created
2973 for each virtual system found in the OVF. The array is empty until after <link to="#interpret" />
2974 has been called.
2975 </desc>
2976 </attribute>
2977
2978 <method name="read">
2979 <desc>
2980 Reads an OVF file into the appliance object.
2981
2982 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2983 mere fact that this method returns successfully does not mean that VirtualBox supports all
2984 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2985 </desc>
2986 <param name="file" type="wstring" dir="in">
2987 <desc>
2988 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2989 on whether the appliance is distributed as a set of files or as a single file, respectively).
2990 </desc>
2991 </param>
2992 </method>
2993
2994 <method name="interpret">
2995 <desc>
2996 Interprets the OVF data that was read when the appliance was constructed. After
2997 calling this method, one can inspect the
2998 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2999 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3000 the appliance.
3001
3002 Calling this method is the second step of importing an appliance into VirtualBox;
3003 see <link to="IAppliance" /> for an overview.
3004 </desc>
3005 </method>
3006
3007 <method name="importMachines">
3008 <desc>
3009 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3010 and other interfaces that match the information contained in the appliance as
3011 closely as possible, as represented by the import instructions in the
3012 <link to="#virtualSystemDescriptions" /> array.
3013
3014 Calling this method is the final step of importing an appliance into VirtualBox;
3015 see <link to="IAppliance" /> for an overview.
3016
3017 Since importing the appliance may imply copying disk images, which can take a long
3018 time, this method operates asynchronously and returns an IProgress object to allow
3019 the caller to monitor the progress.
3020 </desc>
3021
3022 <param name="aProgress" type="IProgress" dir="return">
3023 <desc></desc>
3024 </param>
3025 </method>
3026
3027 <method name="write">
3028 <desc>
3029 Writes the contents of the appliance exports into a new OVF file.
3030
3031 Calling this method is the final step of exporting an appliance from VirtualBox;
3032 see <link to="IAppliance" /> for an overview.
3033 </desc>
3034 <param name="path" type="wstring" dir="in">
3035 <desc>
3036 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3037 on whether the appliance is distributed as a set of files or as a single file, respectively).
3038 </desc>
3039 </param>
3040 </method>
3041
3042 </interface>
3043
3044 <enum
3045 name="VirtualSystemDescriptionType"
3046 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3047 >
3048 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3049 a configuration value.</desc>
3050
3051 <const name="Ignore" value="1" />
3052 <const name="OS" value="2" />
3053 <const name="Name" value="3" />
3054 <const name="CPU" value="4" />
3055 <const name="Memory" value="5" />
3056 <const name="HardDiskControllerIDE" value="6" />
3057 <const name="HardDiskControllerSATA" value="7" />
3058 <const name="HardDiskControllerSCSI" value="8" />
3059 <const name="HardDiskImage" value="9" />
3060 <const name="Floppy" value="10" />
3061 <const name="CDROM" value="11" />
3062 <const name="LogicalNetwork" value="12" />
3063 <const name="NetworkAdapter" value="13" />
3064 <const name="USBController" value="14" />
3065 <const name="SoundCard" value="15" />
3066
3067 </enum>
3068
3069 <interface
3070 name="IVirtualSystemDescription" extends="$unknown"
3071 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3072 wsmap="managed"
3073 >
3074
3075 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3076 After <link to="IAppliance::interpret" /> has been called, that array contains
3077 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3078 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3079 into VirtualBox.
3080 </desc>
3081
3082 <attribute name="count" type="unsigned long" readonly="yes">
3083 <desc>Return the number of virtual system description entries.</desc>
3084 </attribute>
3085
3086 <method name="getDescription">
3087 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3088 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3089
3090 The list below identifies the value sets that are possible depending on the
3091 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3092 the array item with the same index in aOrigValue[] will contain the original value as contained
3093 in the OVF file (just for informational purposes), and the corresponding item in aConfigValues[]
3094 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3095 the aExtraConfigValues[] array item may also be used.
3096
3097 <ul>
3098 <li>
3099 "OS": the guest operating system type. There must be exactly one such array item on import. The
3100 corresponding item in aConfigValues[] contains the suggested guest operating system for VirtualBox.
3101 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3102 item in aOrigValues[] will contain a numerical value that described the operating system in the OVF
3103 (see <link to="CIMOSType" />).
3104 </li>
3105 <li>
3106 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3107 if none is present on import, then an automatic name will be created from the operating system
3108 type. The correponding item im aOrigValues[] will contain the suggested virtual machine name
3109 from the OVF file, and aConfigValues[] will contain a suggestion for a unique VirtualBox
3110 <link to="IMachine" /> name that does not exist yet.
3111 </li>
3112 <li>
3113 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3114 </li>
3115 <li>
3116 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3117 is present on import, then VirtualBox will set a meaningful default based on the operating system
3118 type.
3119 </li>
3120 <li>
3121 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3122 has no value in aOrigValues[] or aConfigValues[].
3123 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3124 type can use to specify which hard disk controller a virtual disk should be connected to.
3125 </li>
3126 <li>
3127 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3128 has no value in aOrigValues[] or aConfigValues[].
3129 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3130 </li>
3131 <li>
3132 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3133 The items in aOrigValues[] and aConfigValues[] will either be "LsiLogic" or "BusLogic".
3134 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3135 </li>
3136 <li>
3137 "Harddisk": a virtual hard disk, most probably as a reference to an image file. There can be an
3138 arbitrary number of these items, one for each virtual disk image that accompanies the OVF. The
3139 array item in aOrigValues[] will contain the file specification from the OVF file, whereas the
3140 item in aConfigValues[] will contain a qualified path specification to where the hard disk image
3141 should be copied; this target image will then be registered with VirtualBox.
3142 The matching item in the aExtraConfigValues[] array must contain a string of the following
3143 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3144 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3145 the image to. That number must be the index of an array item with one of the hard disk controller
3146 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3147 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3148 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3149 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3150 SCSI conrollers, the channel can range from 0-29.
3151 </li>
3152 <li>
3153 "LogicalNetwork": a logical network to which virtual machines can connect. This is taken from
3154 the Network section in the OVF that is shared between several virtual systems. OVF has no
3155 formal description of how the network shall be set up (e.g. whether to use NAT or host interface
3156 networking), but OVFs typically name the logical networks "nat" or "bridged" to suggest such
3157 a configuration.
3158 </li>
3159 <li>
3160 "NetworkAdapter": a network adapter. The array item in aConfigValues[] will specify the hardware
3161 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3162 of the "network=&lt;nw&gt;" format, where &lt;nw&gt; must be one of the networks as specified with the
3163 LogicalNetwork type.
3164 </li>
3165 <li>
3166 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3167 present, sound support will be enabled for the new virtual machine. Note that the virtual
3168 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3169 may be different from the virtual soundcard expected by the appliance.
3170 </li>
3171 </ul>
3172
3173 </desc>
3174
3175 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3176 <desc></desc>
3177 </param>
3178
3179 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3180 <desc></desc>
3181 </param>
3182
3183 <param name="aOrigValues" type="wstring" dir="out" safearray="yes">
3184 <desc></desc>
3185 </param>
3186
3187 <param name="aConfigValues" type="wstring" dir="out" safearray="yes">
3188 <desc></desc>
3189 </param>
3190
3191 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3192 <desc></desc>
3193 </param>
3194
3195 </method>
3196
3197 <method name="setFinalValues">
3198 <desc>
3199 This method allows the appliance's user to change the configuration for the virtual
3200 system descriptions. For each array item returned from <link to="getDescription" />,
3201 you must pass in one boolean value and one configuration value.
3202
3203 Each item in the boolean array determines whether the particular configuration item
3204 should be enabled.
3205 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3206 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3207 and SoundCard.
3208
3209 For the configuration and "extra" configuration values, if you pass in the same arrays
3210 as returned in the aConfigValues and aExtraConfigValues arrays from getDescription(),
3211 the configuration remains unchanged. Please see the documentation for getDescription()
3212 for valid configuration values for the individual array item types. If the
3213 corresponding item in the aEnabled array is false, the configuration value is ignored.
3214 </desc>
3215
3216 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3217 <desc></desc>
3218 </param>
3219
3220 <param name="aConfigValues" type="wstring" dir="in" safearray="yes">
3221 <desc></desc>
3222 </param>
3223
3224 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3225 <desc></desc>
3226 </param>
3227 </method>
3228
3229 <method name="getWarnings">
3230 <desc>Returns textual warnings which occurs on the virtual system
3231 interpretion.</desc>
3232
3233 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3234 <desc></desc>
3235 </param>
3236 </method>
3237
3238 </interface>
3239
3240
3241 <!--
3242 // IMachine
3243 /////////////////////////////////////////////////////////////////////////
3244 -->
3245
3246 <enumerator
3247 name="IMachineEnumerator" type="IMachine"
3248 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
3249 />
3250
3251 <collection
3252 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
3253 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
3254 readonly="yes"
3255 />
3256
3257 <interface
3258 name="IInternalMachineControl" extends="$unknown"
3259 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3260 internal="yes"
3261 wsmap="suppress"
3262 >
3263 <method name="updateState">
3264 <desc>
3265 Updates the VM state.
3266 <note>
3267 This operation will also update the settings file with
3268 the correct information about the saved state file
3269 and delete this file from disk when appropriate.
3270 </note>
3271 </desc>
3272 <param name="state" type="MachineState" dir="in"/>
3273 </method>
3274
3275 <method name="getIPCId">
3276 <param name="id" type="wstring" dir="return"/>
3277 </method>
3278
3279 <method name="runUSBDeviceFilters">
3280 <desc>
3281 Asks the server to run USB devices filters of the associated
3282 machine against the given USB device and tell if there is
3283 a match.
3284 <note>
3285 Intended to be used only for remote USB devices. Local
3286 ones don't require to call this method (this is done
3287 implicitly by the Host and USBProxyService).
3288 </note>
3289 </desc>
3290 <param name="device" type="IUSBDevice" dir="in"/>
3291 <param name="matched" type="boolean" dir="out"/>
3292 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3293 </method>
3294
3295 <method name="captureUSBDevice">
3296 <desc>
3297 Requests a capture of the given host USB device.
3298 When the request is completed, the VM process will
3299 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3300 notification.
3301 </desc>
3302 <param name="id" type="uuid" dir="in"/>
3303 </method>
3304
3305 <method name="detachUSBDevice">
3306 <desc>
3307 Notification that a VM is going to detach (done = false) or has
3308 already detached (done = true) the given USB device.
3309 When the done = true request is completed, the VM process will
3310 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3311 notification.
3312 <note>
3313 In the done = true case, the server must run its own filters
3314 and filters of all VMs but this one on the detached device
3315 as if it were just attached to the host computer.
3316 </note>
3317 </desc>
3318 <param name="id" type="uuid" dir="in"/>
3319 <param name="done" type="boolean" dir="in"/>
3320 </method>
3321
3322 <method name="autoCaptureUSBDevices">
3323 <desc>
3324 Requests a capture all matching USB devices attached to the host.
3325 When the request is completed, the VM process will
3326 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3327 notification per every captured device.
3328 </desc>
3329 </method>
3330
3331 <method name="detachAllUSBDevices">
3332 <desc>
3333 Notification that a VM that is being powered down. The done
3334 parameter indicates whether which stage of the power down
3335 we're at. When done = false the VM is announcing its
3336 intentions, while when done = true the VM is reporting
3337 what it has done.
3338 <note>
3339 In the done = true case, the server must run its own filters
3340 and filters of all VMs but this one on all detach devices as
3341 if they were just attached to the host computer.
3342 </note>
3343 </desc>
3344 <param name="done" type="boolean" dir="in"/>
3345 </method>
3346
3347 <method name="onSessionEnd">
3348 <desc>
3349 Triggered by the given session object when the session is about
3350 to close normally.
3351 </desc>
3352 <param name="session" type="ISession" dir="in">
3353 <desc>Session that is being closed</desc>
3354 </param>
3355 <param name="progress" type="IProgress" dir="return">
3356 <desc>
3357 Used to wait until the corresponding machine is actually
3358 dissociated from the given session on the server.
3359 Returned only when this session is a direct one.
3360 </desc>
3361 </param>
3362 </method>
3363
3364 <method name="beginSavingState">
3365 <desc>
3366 Called by the VM process to inform the server it wants to
3367 save the current state and stop the VM execution.
3368 </desc>
3369 <param name="progress" type="IProgress" dir="in">
3370 <desc>
3371 Progress object created by the VM process to wait until
3372 the state is saved.
3373 </desc>
3374 </param>
3375 <param name="stateFilePath" type="wstring" dir="out">
3376 <desc>
3377 File path the VM process must save the execution state to.
3378 </desc>
3379 </param>
3380 </method>
3381
3382 <method name="endSavingState">
3383 <desc>
3384 Called by the VM process to inform the server that saving
3385 the state previously requested by #beginSavingState is either
3386 successfully finished or there was a failure.
3387
3388 <result name="VBOX_E_FILE_ERROR">
3389 Settings file not accessible.
3390 </result>
3391 <result name="VBOX_E_XML_ERROR">
3392 Could not parse the settings file.
3393 </result>
3394
3395 </desc>
3396
3397 <param name="success" type="boolean" dir="in">
3398 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3399 otherwise.
3400 </desc>
3401 </param>
3402 </method>
3403
3404 <method name="adoptSavedState">
3405 <desc>
3406 Gets called by IConsole::adoptSavedState.
3407 <result name="VBOX_E_FILE_ERROR">
3408 Invalid saved state file path.
3409 </result>
3410 </desc>
3411 <param name="savedStateFile" type="wstring" dir="in">
3412 <desc>Path to the saved state file to adopt.</desc>
3413 </param>
3414 </method>
3415
3416 <method name="beginTakingSnapshot">
3417 <desc>
3418 Called by the VM process to inform the server it wants to
3419 take a snapshot.
3420
3421 <result name="VBOX_E_FILE_ERROR">
3422 Settings file not accessible.
3423 </result>
3424 <result name="VBOX_E_XML_ERROR">
3425 Could not parse the settings file.
3426 </result>
3427 </desc>
3428 <param name="initiator" type="IConsole" dir="in">
3429 <desc>The console object that initiated this call.</desc>
3430 </param>
3431 <param name="name" type="wstring" dir="in">
3432 <desc>Snapshot name.</desc>
3433 </param>
3434 <param name="description" type="wstring" dir="in">
3435 <desc>Snapshot description.</desc>
3436 </param>
3437 <param name="progress" type="IProgress" dir="in">
3438 <desc>
3439 Progress object created by the VM process to wait until
3440 the state is saved (only for online snapshots).
3441 </desc>
3442 </param>
3443 <param name="stateFilePath" type="wstring" dir="out">
3444 <desc>
3445 File path the VM process must save the execution state to.
3446 </desc>
3447 </param>
3448 <param name="serverProgress" type="IProgress" dir="out">
3449 <desc>
3450 Progress object created by the server process to wait until
3451 the snapshot is taken (VDI diff creation, etc.).
3452 </desc>
3453 </param>
3454 </method>
3455
3456 <method name="endTakingSnapshot">
3457 <desc>
3458 Called by the VM process to inform the server that the snapshot
3459 previously requested by #beginTakingSnapshot is either
3460 successfully taken or there was a failure.
3461 </desc>
3462
3463 <param name="success" type="boolean" dir="in">
3464 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3465 </param>
3466 </method>
3467
3468 <method name="discardSnapshot">
3469 <desc>
3470 Gets called by IConsole::discardSnapshot.
3471 <result name="VBOX_E_INVALID_OBJECT_STATE">
3472 Snapshot has more than one child snapshot.
3473 </result>
3474 </desc>
3475 <param name="initiator" type="IConsole" dir="in">
3476 <desc>The console object that initiated this call.</desc>
3477 </param>
3478 <param name="id" type="uuid" dir="in">
3479 <desc>UUID of the snapshot to discard.</desc>
3480 </param>
3481 <param name="machineState" type="MachineState" dir="out">
3482 <desc>New machine state after this operation is started.</desc>
3483 </param>
3484 <param name="progress" type="IProgress" dir="return">
3485 <desc>Progress object to track the operation completion.</desc>
3486 </param>
3487 </method>
3488
3489 <method name="discardCurrentState">
3490 <desc>
3491 Gets called by IConsole::discardCurrentState.
3492 <result name="VBOX_E_INVALID_OBJECT_STATE">
3493 Virtual machine does not have any snapshot.
3494 </result>
3495 </desc>
3496 <param name="initiator" type="IConsole" dir="in">
3497 <desc>The console object that initiated this call.</desc>
3498 </param>
3499 <param name="machineState" type="MachineState" dir="out">
3500 <desc>New machine state after this operation is started.</desc>
3501 </param>
3502 <param name="progress" type="IProgress" dir="return">
3503 <desc>Progress object to track the operation completion.</desc>
3504 </param>
3505 </method>
3506
3507 <method name="discardCurrentSnapshotAndState">
3508 <desc>
3509 Gets called by IConsole::discardCurrentSnapshotAndState.
3510 <result name="VBOX_E_INVALID_OBJECT_STATE">
3511 Virtual machine does not have any snapshot.
3512 </result>
3513 </desc>
3514 <param name="initiator" type="IConsole" dir="in">
3515 <desc>The console object that initiated this call.</desc>
3516 </param>
3517 <param name="machineState" type="MachineState" dir="out">
3518 <desc>New machine state after this operation is started.</desc>
3519 </param>
3520 <param name="progress" type="IProgress" dir="return">
3521 <desc>Progress object to track the operation completion.</desc>
3522 </param>
3523 </method>
3524
3525 <method name="pullGuestProperties">
3526 <desc>
3527 Get the list of the guest properties matching a set of patterns along
3528 with their values, time stamps and flags and give responsibility for
3529 managing properties to the console.
3530 </desc>
3531 <param name="name" type="wstring" dir="out" safearray="yes">
3532 <desc>
3533 The names of the properties returned.
3534 </desc>
3535 </param>
3536 <param name="value" type="wstring" dir="out" safearray="yes">
3537 <desc>
3538 The values of the properties returned. The array entries match the
3539 corresponding entries in the @a name array.
3540 </desc>
3541 </param>
3542 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3543 <desc>
3544 The time stamps of the properties returned. The array entries match
3545 the corresponding entries in the @a name array.
3546 </desc>
3547 </param>
3548 <param name="flags" type="wstring" dir="out" safearray="yes">
3549 <desc>
3550 The flags of the properties returned. The array entries match the
3551 corresponding entries in the @a name array.
3552 </desc>
3553 </param>
3554 </method>
3555
3556 <method name="pushGuestProperties">
3557 <desc>
3558 Set the list of the guest properties matching a set of patterns along
3559 with their values, time stamps and flags and return responsibility for
3560 managing properties to IMachine.
3561 </desc>
3562 <param name="name" type="wstring" dir="in" safearray="yes">
3563 <desc>
3564 The names of the properties.
3565 </desc>
3566 </param>
3567 <param name="value" type="wstring" dir="in" safearray="yes">
3568 <desc>
3569 The values of the properties. The array entries match the
3570 corresponding entries in the @a name array.
3571 </desc>
3572 </param>
3573 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3574 <desc>
3575 The time stamps of the properties. The array entries match
3576 the corresponding entries in the @a name array.
3577 </desc>
3578 </param>
3579 <param name="flags" type="wstring" dir="in" safearray="yes">
3580 <desc>
3581 The flags of the properties. The array entries match the
3582 corresponding entries in the @a name array.
3583 </desc>
3584 </param>
3585 </method>
3586 <method name="pushGuestProperty">
3587 <desc>
3588 Update a single guest property in IMachine.
3589 </desc>
3590 <param name="name" type="wstring" dir="in">
3591 <desc>
3592 The name of the property to be updated.
3593 </desc>
3594 </param>
3595 <param name="value" type="wstring" dir="in">
3596 <desc>
3597 The value of the property.
3598 </desc>
3599 </param>
3600 <param name="timestamp" type="unsigned long long" dir="in">
3601 <desc>
3602 The timestamp of the property.
3603 </desc>
3604 </param>
3605 <param name="flags" type="wstring" dir="in">
3606 <desc>
3607 The flags of the property.
3608 </desc>
3609 </param>
3610 </method>
3611 </interface>
3612
3613 <interface
3614 name="IBIOSSettings" extends="$unknown"
3615 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3616 wsmap="managed"
3617 >
3618 <desc>
3619 The IBIOSSettings interface represents BIOS settings of the virtual
3620 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3621 </desc>
3622 <attribute name="logoFadeIn" type="boolean">
3623 <desc>Fade in flag for BIOS logo animation.</desc>
3624 </attribute>
3625
3626 <attribute name="logoFadeOut" type="boolean">
3627 <desc>Fade out flag for BIOS logo animation.</desc>
3628 </attribute>
3629
3630 <attribute name="logoDisplayTime" type="unsigned long">
3631 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3632 </attribute>
3633
3634 <attribute name="logoImagePath" type="wstring">
3635 <desc>Local file system path for external BIOS image.</desc>
3636 </attribute>
3637
3638 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3639 <desc>Mode of the BIOS boot device menu.</desc>
3640 </attribute>
3641
3642 <attribute name="ACPIEnabled" type="boolean">
3643 <desc>ACPI support flag.</desc>
3644 </attribute>
3645
3646 <attribute name="IOAPICEnabled" type="boolean">
3647 <desc>
3648 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3649 and support IRQs above 15.
3650 </desc>
3651 </attribute>
3652
3653 <attribute name="timeOffset" type="long long">
3654 <desc>
3655 Offset in milliseconds from the host system time. This allows for
3656 guests running with a different system date/time than the host.
3657 It is equivalent to setting the system date/time in the BIOS except
3658 it is not an absolute value but a relative one. Guest Additions
3659 time synchronization honors this offset.
3660 </desc>
3661 </attribute>
3662
3663 <attribute name="PXEDebugEnabled" type="boolean">
3664 <desc>
3665 PXE debug logging flag. If set, VirtualBox will write extensive
3666 PXE trace information to the release log.
3667 </desc>
3668 </attribute>
3669
3670 <attribute name="IDEControllerType" type="IDEControllerType">
3671 <desc>
3672 Type of the virtual IDE controller. Depending on this value,
3673 VirtualBox will provide different virtual IDE hardware
3674 devices to the guest.
3675 </desc>
3676 </attribute>
3677
3678 </interface>
3679
3680 <interface
3681 name="IMachine" extends="$unknown"
3682 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3683 wsmap="managed"
3684 >
3685 <desc>
3686 The IMachine interface represents a virtual machine, or guest, created
3687 in VirtualBox.
3688
3689 This interface is used in two contexts. First of all, a collection of
3690 objects implementing this interface is stored in the
3691 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3692 machines that are currently registered with this VirtualBox
3693 installation. Also, once a session has been opened for the given virtual
3694 machine (e.g. the virtual machine is running), the machine object
3695 associated with the open session can be queried from the session object;
3696 see <link to="ISession"/> for details.
3697
3698 The main role of this interface is to expose the settings of the virtual
3699 machine and provide methods to change various aspects of the virtual
3700 machine's configuration. For machine objects stored in the
3701 <link to="IVirtualBox::machines2"/> collection, all attributes are
3702 read-only unless explicitly stated otherwise in individual attribute
3703 and method descriptions. In order to change a machine setting, a session
3704 for this machine must be opened using one of
3705 <link to="IVirtualBox::openSession"/>,
3706 <link to="IVirtualBox::openRemoteSession"/> or
3707 <link to="IVirtualBox::openExistingSession"/> methods. After the
3708 session has been successfully opened, a mutable machine object needs to
3709 be queried from the session object and then the desired settings changes
3710 can be applied to the returned object using IMachine attributes and
3711 methods. See the ISession interface description for more information
3712 about sessions.
3713
3714 Note that the IMachine interface does not provide methods to control
3715 virtual machine execution (such as start the machine, or power it
3716 down) -- these methods are grouped in a separate IConsole
3717 interface. Refer to the IConsole interface description to get more
3718 information about this topic.
3719
3720 <see>ISession, IConsole</see>
3721 </desc>
3722
3723 <attribute name="parent" type="IVirtualBox" readonly="yes">
3724 <desc>Associated parent object.</desc>
3725 </attribute>
3726
3727 <attribute name="accessible" type="boolean" readonly="yes">
3728 <desc>
3729 Whether this virtual machine is currently accessible or not.
3730
3731 The machine is considered to be inaccessible when:
3732 <ul>
3733 <li>It is a registered virtual machine, and
3734 </li>
3735 <li>Its settings file is inaccessible (for example, it is
3736 located on a network share that is not accessible during
3737 VirtualBox startup, or becomes inaccessible later, or if
3738 the settings file can be read but is invalid).
3739 </li>
3740 </ul>
3741
3742 Otherwise, the value of this property is always <tt>true</tt>.
3743
3744 Every time this property is read, the accessibility state of
3745 this machine is re-evaluated. If the returned value is |false|,
3746 the <link to="#accessError"/> property may be used to get the
3747 detailed error information describing the reason of
3748 inaccessibility.
3749
3750 When the machine is inaccessible, only the following properties
3751 can be used on it:
3752 <ul>
3753 <li><link to="#parent"/></li>
3754 <li><link to="#id"/></li>
3755 <li><link to="#settingsFilePath"/></li>
3756 <li><link to="#accessible"/></li>
3757 <li><link to="#accessError"/></li>
3758 </ul>
3759
3760 An attempt to access any other property or method will return
3761 an error.
3762
3763 The only possible action you can perform on an inaccessible
3764 machine is to unregister it using the
3765 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3766 for the accessibility state once more by querying this
3767 property).
3768
3769 <note>
3770 In the current implementation, once this property returns
3771 <tt>true</tt>, the machine will never become inaccessible
3772 later, even if its settings file cannot be successfully
3773 read/written any more (at least, until the VirtualBox
3774 server is restarted). This limitation may be removed in
3775 future releases.
3776 </note>
3777 </desc>
3778 </attribute>
3779
3780 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3781 <desc>
3782 Error information describing the reason of machine
3783 inaccessibility.
3784
3785 Reading this property is only valid after the last call to
3786 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3787 machine is currently unaccessible). Otherwise, a null
3788 IVirtualBoxErrorInfo object will be returned.
3789 </desc>
3790 </attribute>
3791
3792 <attribute name="name" type="wstring">
3793 <desc>
3794 Name of the virtual machine.
3795
3796 Besides being used for human-readable identification purposes
3797 everywhere in VirtualBox, the virtual machine name is also used
3798 as a name of the machine's settings file and as a name of the
3799 subdirectory this settings file resides in. Thus, every time you
3800 change the value of this property, the settings file will be
3801 renamed once you call <link to="#saveSettings"/> to confirm the
3802 change. The containing subdirectory will be also renamed, but
3803 only if it has exactly the same name as the settings file
3804 itself prior to changing this property (for backward compatibility
3805 with previous API releases). The above implies the following
3806 limitations:
3807 <ul>
3808 <li>The machine name cannot be empty.</li>
3809 <li>The machine name can contain only characters that are valid
3810 file name characters according to the rules of the file
3811 system used to store VirtualBox configuration.</li>
3812 <li>You cannot have two or more machines with the same name
3813 if they use the same subdirectory for storing the machine
3814 settings files.</li>
3815 <li>You cannot change the name of the machine if it is running,
3816 or if any file in the directory containing the settings file
3817 is being used by another running machine or by any other
3818 process in the host operating system at a time when
3819 <link to="#saveSettings"/> is called.
3820 </li>
3821 </ul>
3822 If any of the above limitations are hit, <link to="#saveSettings"/>
3823 will return an appropriate error message explaining the exact
3824 reason and the changes you made to this machine will not be
3825 saved.
3826 <note>
3827 For "legacy" machines created using the
3828 <link to="IVirtualBox::createLegacyMachine"/> call,
3829 the above naming limitations do not apply because the
3830 machine name does not affect the settings file name.
3831 The settings file name remains the same as it was specified
3832 during machine creation and never changes.
3833 </note>
3834 </desc>
3835 </attribute>
3836
3837 <attribute name="description" type="wstring">
3838 <desc>
3839 Description of the virtual machine.
3840
3841 The description attribute can contain any text and is
3842 typically used to describe the hardware and software
3843 configuration of the virtual machine in detail (i.e. network
3844 settings, versions of the installed software and so on).
3845 </desc>
3846 </attribute>
3847
3848 <attribute name="id" type="uuid" readonly="yes">
3849 <desc>UUID of the virtual machine.</desc>
3850 </attribute>
3851
3852 <attribute name="OSTypeId" type="wstring">
3853 <desc>
3854 User-defined identifier of the Guest OS type.
3855 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3856 an IGuestOSType object representing details about the given
3857 Guest OS type.
3858 <note>
3859 This value may differ from the value returned by
3860 <link to="IGuest::OSTypeId"/> if Guest Additions are
3861 installed to the guest OS.
3862 </note>
3863 </desc>
3864 </attribute>
3865
3866 <attribute name="HardwareVersion" type="wstring">
3867 <desc>Hardware version identifier. Internal use only for now.</desc>
3868 </attribute>
3869
3870 <attribute name="CPUCount" type="unsigned long">
3871 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3872 </attribute>
3873
3874 <attribute name="memorySize" type="unsigned long">
3875 <desc>System memory size in megabytes.</desc>
3876 </attribute>
3877
3878 <attribute name="memoryBalloonSize" type="unsigned long">
3879 <desc>Initial memory balloon size in megabytes.</desc>
3880 </attribute>
3881
3882 <attribute name="statisticsUpdateInterval" type="unsigned long">
3883 <desc>Initial interval to update guest statistics in seconds.</desc>
3884 </attribute>
3885
3886 <attribute name="VRAMSize" type="unsigned long">
3887 <desc>Video memory size in megabytes.</desc>
3888 </attribute>
3889
3890 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3891 <desc>
3892 This setting determines whether VirtualBox allows guests to make use
3893 of the 3D graphics support available on the host. Currently limited
3894 to OpenGL only. </desc>
3895 </attribute>
3896
3897 <attribute name="monitorCount" type="unsigned long">
3898 <desc>
3899 Number of virtual monitors.
3900 <note>
3901 Only effective on Windows XP and later guests with
3902 Guest Additions installed.
3903 </note>
3904 </desc>
3905 </attribute>
3906
3907 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3908 <desc>Object containing all BIOS settings.</desc>
3909 </attribute>
3910
3911 <attribute name="HWVirtExEnabled" type="TSBool">
3912 <desc>
3913 This setting determines whether VirtualBox will try to make use of
3914 the host CPU's hardware virtualization extensions such as Intel VT-x
3915 and AMD-V. Note that in case such extensions are not available,
3916 they will not be used.
3917 </desc>
3918 </attribute>
3919
3920 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3921 <desc>
3922 This setting determines whether VirtualBox will try to make use of
3923 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3924 such extensions are not available, they will not be used.
3925 </desc>
3926 </attribute>
3927
3928 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3929 <desc>
3930 This setting determines whether VirtualBox will try to make use of
3931 the VPID extension of Intel VT-x. Note that in case such extensions are
3932 not available, they will not be used.
3933 </desc>
3934 </attribute>
3935
3936 <attribute name="PAEEnabled" type="boolean" default="false">
3937 <desc>
3938 This setting determines whether VirtualBox will expose the Physical Address
3939 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3940 is not available, it will not be reported.
3941 </desc>
3942 </attribute>
3943
3944 <attribute name="snapshotFolder" type="wstring">
3945 <desc>
3946 Full path to the directory used to store snapshot data
3947 (differencing hard disks and saved state files) of this machine.
3948
3949 The initial value of this property is
3950 <tt>&lt;</tt><link to="#settingsFilePath">
3951 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3952 <link to="#id">machine_uuid</link>
3953 <tt>&gt;</tt>.
3954
3955 Currently, it is an error to try to change this property on
3956 a machine that has snapshots (because this would require to
3957 move possibly large files to a different location).
3958 A separate method will be available for this purpose later.
3959
3960 <note>
3961 Setting this property to <tt>null</tt> will restore the
3962 initial value.
3963 </note>
3964 <note>
3965 When setting this property, the specified path can be
3966 absolute (full path) or relative to the directory where the
3967 <link to="#settingsFilePath">machine settings file</link>
3968 is located. When reading this property, a full path is
3969 always returned.
3970 </note>
3971 <note>
3972 The specified path may not exist, it will be created
3973 when necessary.
3974 </note>
3975 </desc>
3976 </attribute>
3977
3978 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3979 <desc>VRDP server object.</desc>
3980 </attribute>
3981
3982 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3983 <desc>Array of hard disks attached to this machine.</desc>
3984 </attribute>
3985
3986 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3987 <desc>Associated DVD drive object.</desc>
3988 </attribute>
3989
3990 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3991 <desc>Associated floppy drive object.</desc>
3992 </attribute>
3993
3994 <attribute name="USBController" type="IUSBController" readonly="yes">
3995 <desc>
3996 Associated USB controller object.
3997
3998 <note>
3999 This method may set a @ref com_warnings "warning result code".
4000 </note>
4001 <note>
4002 If USB functionality is not available in the given edition of
4003 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4004 </note>
4005 </desc>
4006 </attribute>
4007
4008 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4009 <desc>Associated audio adapter, always present.</desc>
4010 </attribute>
4011
4012 <attribute name="SATAController" type="ISATAController" readonly="yes">
4013 <desc>
4014 Associated SATA controller object.
4015 </desc>
4016 </attribute>
4017
4018 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4019 <desc>
4020 Full name of the file containing machine settings data.
4021 </desc>
4022 </attribute>
4023
4024 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4025 <desc>
4026 Current version of the format of the settings file of this machine
4027 (<link to="#settingsFilePath"/>).
4028
4029 The version string has the following format:
4030 <pre>
4031 x.y-platform
4032 </pre>
4033 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4034 versions, and <tt>platform</tt> is the platform identifier.
4035
4036 The current version usually matches the value of the
4037 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4038 settings file was created by an older version of VirtualBox and there
4039 was a change of the settings file format since then.
4040
4041 Note that VirtualBox automatically converts settings files from older
4042 versions to the most recent version when reading them (usually at
4043 VirtualBox startup) but it doesn't save the changes back until
4044 you call a method that implicitly saves settings (such as
4045 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4046 explicitly. Therefore, if the value of this attribute differs from the
4047 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4048 means that the settings file was converted but the result of the
4049 conversion is not yet saved to disk.
4050
4051 The above feature may be used by interactive front-ends to inform users
4052 about the settings file format change and offer them to explicitly save
4053 all converted settings files (the global and VM-specific ones),
4054 optionally create backup copies of the old settings files before saving,
4055 etc.
4056
4057 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4058 </desc>
4059 </attribute>
4060
4061 <attribute name="settingsModified" type="boolean" readonly="yes">
4062 <desc>
4063 Whether the settings of this machine have been modified
4064 (but neither yet saved nor discarded).
4065 <note>
4066 Reading this property is only valid on instances returned
4067 by <link to="ISession::machine"/> and on new machines
4068 created by <link to="IVirtualBox::createMachine"/> or opened
4069 by <link to="IVirtualBox::openMachine"/> but not
4070 yet registered, or on unregistered machines after calling
4071 <link to="IVirtualBox::unregisterMachine"/>. For all other
4072 cases, the settings can never be modified.
4073 </note>
4074 <note>
4075 For newly created unregistered machines, the value of this
4076 property is always TRUE until <link to="#saveSettings"/>
4077 is called (no matter if any machine settings have been
4078 changed after the creation or not). For opened machines
4079 the value is set to FALSE (and then follows to normal rules).
4080 </note>
4081 </desc>
4082 </attribute>
4083
4084 <attribute name="sessionState" type="SessionState" readonly="yes">
4085 <desc>Current session state for this machine.</desc>
4086 </attribute>
4087
4088 <attribute name="sessionType" type="wstring" readonly="yes">
4089 <desc>
4090 Type of the session. If <link to="#sessionState"/> is
4091 SessionSpawning or SessionOpen, this attribute contains the
4092 same value as passed to the
4093 <link to="IVirtualBox::openRemoteSession"/> method in the
4094 @a type parameter. If the session was opened directly using
4095 <link to="IVirtualBox::openSession"/>, or if
4096 <link to="#sessionState"/> is SessionClosed, the value of this
4097 attribute is @c null.
4098 </desc>
4099 </attribute>
4100
4101 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4102 <desc>
4103 Identifier of the session process. This attribute contains the
4104 platform-dependent identifier of the process that has opened a
4105 direct session for this machine using the
4106 <link to="IVirtualBox::openSession"/> call. The returned value
4107 is only valid if <link to="#sessionState"/> is SessionOpen or
4108 SessionClosing (i.e. a session is currently open or being
4109 closed) by the time this property is read.
4110 </desc>
4111 </attribute>
4112
4113 <attribute name="state" type="MachineState" readonly="yes">
4114 <desc>Current execution state of this machine.</desc>
4115 </attribute>
4116
4117 <attribute name="lastStateChange" type="long long" readonly="yes">
4118 <desc>
4119 Time stamp of the last execution state change,
4120 in milliseconds since 1970-01-01 UTC.
4121 </desc>
4122 </attribute>
4123
4124 <attribute name="stateFilePath" type="wstring" readonly="yes">
4125 <desc>
4126 Full path to the file that stores the execution state of
4127 the machine when it is in the <link to="MachineState_Saved"/> state.
4128 <note>
4129 When the machine is not in the Saved state, this attribute
4130 <tt>null</tt>.
4131 </note>
4132 </desc>
4133 </attribute>
4134
4135 <attribute name="logFolder" type="wstring" readonly="yes">
4136 <desc>
4137 Full path to the folder that stores a set of rotated log files
4138 recorded during machine execution. The most recent log file is
4139 named <tt>VBox.log</tt>, the previous log file is
4140 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4141 in the current version).
4142 </desc>
4143 </attribute>
4144
4145 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4146 <desc>
4147 Current snapshot of this machine.
4148 <note>
4149 A <tt>null</tt> object is returned if the machine doesn't
4150 have snapshots.
4151 </note>
4152 <see><link to="ISnapshot"/></see>
4153 </desc>
4154 </attribute>
4155
4156 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4157 <desc>
4158 Number of snapshots taken on this machine. Zero means the
4159 machine doesn't have any snapshots.
4160 </desc>
4161 </attribute>
4162
4163 <attribute name="currentStateModified" type="boolean" readonly="yes">
4164 <desc>
4165 Returns <tt>true</tt> if the current state of the machine is not
4166 identical to the state stored in the current snapshot.
4167
4168 The current state is identical to the current snapshot right
4169 after one of the following calls are made:
4170 <ul>
4171 <li><link to="IConsole::discardCurrentState"/> or
4172 <link to="IConsole::discardCurrentSnapshotAndState"/>
4173 </li>
4174 <li><link to="IConsole::takeSnapshot"/> (issued on a
4175 powered off or saved machine, for which
4176 <link to="#settingsModified"/> returns <tt>false</tt>)
4177 </li>
4178 <li><link to="IMachine::setCurrentSnapshot"/>
4179 </li>
4180 </ul>
4181
4182 The current state remains identical until one of the following
4183 happens:
4184 <ul>
4185 <li>settings of the machine are changed</li>
4186 <li>the saved state is discarded</li>
4187 <li>the current snapshot is discarded</li>
4188 <li>an attempt to execute the machine is made</li>
4189 </ul>
4190
4191 <note>
4192 For machines that don't have snapshots, this property is
4193 always <tt>false</tt>.
4194 </note>
4195 </desc>
4196 </attribute>
4197
4198 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4199 <desc>
4200 Collection of shared folders for this machine (permanent shared
4201 folders). These folders are shared automatically at machine startup
4202 and available only to the guest OS installed within this machine.
4203
4204 New shared folders are added to the collection using
4205 <link to="#createSharedFolder"/>. Existing shared folders can be
4206 removed using <link to="#removeSharedFolder"/>.
4207 </desc>
4208 </attribute>
4209
4210 <attribute name="clipboardMode" type="ClipboardMode">
4211 <desc>
4212 Synchronization mode between the host OS clipboard
4213 and the guest OS clipboard.
4214 </desc>
4215 </attribute>
4216
4217 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4218 <desc>
4219 A comma-separated list of simple glob patterns. Changes to guest
4220 properties whose name matches one of the patterns will generate an
4221 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4222 </desc>
4223 </attribute>
4224
4225 <method name="setBootOrder">
4226 <desc>
4227 Puts the given device to the specified position in
4228 the boot order.
4229
4230 To indicate that no device is associated with the given position,
4231 <link to="DeviceType_Null"/> should be used.
4232
4233 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4234
4235 <result name="E_INVALIDARG">
4236 Boot @a position out of range.
4237 </result>
4238 <result name="E_NOTIMPL">
4239 Booting from USB @a device currently not supported.
4240 </result>
4241
4242 </desc>
4243 <param name="position" type="unsigned long" dir="in">
4244 <desc>
4245 Position in the boot order (<tt>1</tt> to the total number of
4246 devices the machine can boot from, as returned by
4247 <link to="ISystemProperties::maxBootPosition"/>).
4248 </desc>
4249 </param>
4250 <param name="device" type="DeviceType" dir="in">
4251 <desc>
4252 The type of the device used to boot at the given position.
4253 </desc>
4254 </param>
4255 </method>
4256
4257 <method name="getBootOrder" const="yes">
4258 <desc>
4259 Returns the device type that occupies the specified
4260 position in the boot order.
4261
4262 @todo [remove?]
4263 If the machine can have more than one device of the returned type
4264 (such as hard disks), then a separate method should be used to
4265 retrieve the individual device that occupies the given position.
4266
4267 If here are no devices at the given position, then
4268 <link to="DeviceType_Null"/> is returned.
4269
4270 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4271
4272 <result name="E_INVALIDARG">
4273 Boot @a position out of range.
4274 </result>
4275
4276 </desc>
4277 <param name="position" type="unsigned long" dir="in">
4278 <desc>
4279 Position in the boot order (<tt>1</tt> to the total number of
4280 devices the machine can boot from, as returned by
4281 <link to="ISystemProperties::maxBootPosition"/>).
4282 </desc>
4283 </param>
4284 <param name="device" type="DeviceType" dir="return">
4285 <desc>
4286 Device at the given position.
4287 </desc>
4288 </param>
4289 </method>
4290
4291 <method name="attachHardDisk">
4292 <desc>
4293 Attaches a virtual hard disk identified by the given UUID @a id
4294 to a device slot of the specified bus.
4295
4296 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4297 specify the primary or secondary IDE controller, respectively. The
4298 SATA bus supports 30 channels, so this parameter can be a number
4299 ranging from @c 0 to @c 29.
4300
4301 For the primary controller of the IDE bus, the @a device number can be
4302 either @c 0 or @c 1, to specify the master or the slave device,
4303 respectively. For the secondary IDE controller, the device number is
4304 always @c 1 because the master device is reserved for the CD-ROM drive.
4305
4306 For the SATA bus, the @a device parameter is currently unused and
4307 must be @c 0.
4308
4309 The specified device slot must not have another disk attached to it, or
4310 this method will fail.
4311
4312 See <link to="IHardDisk"/> for more detailed information about
4313 attaching hard disks.
4314
4315 <note>
4316 You cannot attach a hard disk to a running machine. Also, you cannot
4317 attach a hard disk to a newly created machine until this machine's
4318 settings are saved to disk using <link to="#saveSettings"/>.
4319 </note>
4320 <note>
4321 If the hard disk is being attached indirectly, a new differencing hard
4322 disk will implicitly be created for it and attached instead. If the
4323 changes made to the machine settings (including this indirect
4324 attachment) are later cancelled using <link to="#discardSettings"/>,
4325 this implicitly created differencing hard disk will implicitly
4326 be deleted.
4327 </note>
4328
4329 <result name="E_INVALIDARG">
4330 SATA device, SATA channel, IDE channel or IDE slot out of range.
4331 </result>
4332 <result name="VBOX_E_INVALID_OBJECT_STATE">
4333 Attempt to attach hard disk to an unregistered virtual machine.
4334 </result>
4335 <result name="VBOX_E_INVALID_VM_STATE">
4336 Invalid machine state.
4337 </result>
4338 <result name="VBOX_E_OBJECT_IN_USE">
4339 Hard disk already attached to this or another virtual machine.
4340 </result>
4341
4342 </desc>
4343 <param name="id" type="uuid" dir="in">
4344 <desc>UUID of the hard disk to attach.</desc>
4345 </param>
4346 <param name="bus" type="StorageBus" dir="in">
4347 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4348 </param>
4349 <param name="channel" type="long" dir="in">
4350 <desc>Channel to attach the hard disk to.</desc>
4351 </param>
4352 <param name="device" type="long" dir="in">
4353 <desc>
4354 Device slot in the given channel to attach the hard disk to.
4355 </desc>
4356 </param>
4357 </method>
4358
4359 <method name="getHardDisk" const="yes">
4360 <desc>
4361 Returns the virtual hard disk attached to a device slot of the specified
4362 bus.
4363
4364 Note that if the hard disk was indirectly attached by
4365 <link to="#attachHardDisk"/> to the given device slot then this
4366 method will return not the same object as passed to the
4367 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4368 more detailed information about attaching hard disks.
4369
4370 <result name="VBOX_E_OBJECT_NOT_FOUND">
4371 No hard disk attached to given slot/bus.
4372 </result>
4373
4374 </desc>
4375 <param name="bus" type="StorageBus" dir="in">
4376 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4377 </param>
4378 <param name="channel" type="long" dir="in">
4379 <desc>Channel to query.</desc>
4380 </param>
4381 <param name="device" type="long" dir="in">
4382 <desc>Device slot in the given channel to query.</desc>
4383 </param>
4384 <param name="hardDisk" type="IHardDisk" dir="return">
4385 <desc>Attached hard disk object.</desc>
4386 </param>
4387 </method>
4388
4389 <method name="detachHardDisk">
4390 <desc>
4391 Detaches the virtual hard disk attached to a device slot of the
4392 specified bus.
4393
4394 Detaching the hard disk from the virtual machine is deferred. This means
4395 that the hard disk remains associated with the machine when this method
4396 returns and gets actually de-associated only after a successful
4397 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4398 for more detailed information about attaching hard disks.
4399
4400 <note>
4401 You cannot detach the hard disk from a running machine.
4402 </note>
4403 <note>
4404 Detaching differencing hard disks implicitly created by <link
4405 to="#attachHardDisk"/> for the indirect attachment using this
4406 method will <b>not</b> implicitly delete them. The
4407 <link to="IHardDisk::deleteStorage"/> operation should be
4408 explicitly performed by the caller after the hard disk is successfully
4409 detached and the settings are saved with
4410 <link to="#saveSettings"/>, if it is the desired action.
4411 </note>
4412
4413 <result name="VBOX_E_INVALID_VM_STATE">
4414 Attempt to detach hard disk from a running virtual machine.
4415 </result>
4416 <result name="VBOX_E_OBJECT_NOT_FOUND">
4417 No hard disk attached to given slot/bus.
4418 </result>
4419 <result name="VBOX_E_NOT_SUPPORTED">
4420 Hard disk format does not support storage deletion.
4421 </result>
4422
4423 </desc>
4424 <param name="bus" type="StorageBus" dir="in">
4425 <desc>Bus to detach the hard disk from.</desc>
4426 </param>
4427 <param name="channel" type="long" dir="in">
4428 <desc>Channel number to detach the hard disk from.</desc>
4429 </param>
4430 <param name="device" type="long" dir="in">
4431 <desc>Device slot number to detach the hard disk from.</desc>
4432 </param>
4433 </method>
4434
4435 <method name="getNetworkAdapter" const="yes">
4436 <desc>
4437 Returns the network adapter associated with the given slot.
4438 Slots are numbered sequentially, starting with zero. The total
4439 number of adapters per machine is defined by the
4440 <link to="ISystemProperties::networkAdapterCount"/> property,
4441 so the maximum slot number is one less than that property's value.
4442
4443 <result name="E_INVALIDARG">
4444 Invalid @a slot number.
4445 </result>
4446
4447 </desc>
4448 <param name="slot" type="unsigned long" dir="in"/>
4449 <param name="adapter" type="INetworkAdapter" dir="return"/>
4450 </method>
4451
4452 <method name="getSerialPort" const="yes">
4453 <desc>
4454 Returns the serial port associated with the given slot.
4455 Slots are numbered sequentially, starting with zero. The total
4456 number of serial ports per machine is defined by the
4457 <link to="ISystemProperties::serialPortCount"/> property,
4458 so the maximum slot number is one less than that property's value.
4459
4460 <result name="E_INVALIDARG">
4461 Invalid @a slot number.
4462 </result>
4463
4464 </desc>
4465 <param name="slot" type="unsigned long" dir="in"/>
4466 <param name="port" type="ISerialPort" dir="return"/>
4467 </method>
4468
4469 <method name="getParallelPort" const="yes">
4470 <desc>
4471 Returns the parallel port associated with the given slot.
4472 Slots are numbered sequentially, starting with zero. The total
4473 number of parallel ports per machine is defined by the
4474 <link to="ISystemProperties::parallelPortCount"/> property,
4475 so the maximum slot number is one less than that property's value.
4476
4477 <result name="E_INVALIDARG">
4478 Invalid @a slot number.
4479 </result>
4480
4481 </desc>
4482 <param name="slot" type="unsigned long" dir="in"/>
4483 <param name="port" type="IParallelPort" dir="return"/>
4484 </method>
4485
4486 <method name="getNextExtraDataKey">
4487 <desc>
4488 Returns the machine-specific extra data key name following the
4489 supplied key.
4490
4491 An error is returned if the supplied @a key does not exist. @c NULL is
4492 returned in @a nextKey if the supplied key is the last key. When
4493 supplying @c NULL for the @a key, the first key item is returned in
4494 @a nextKey (if there is any). @a nextValue is an optional parameter and
4495 if supplied, the next key's value is returned in it.
4496
4497 <result name="VBOX_E_OBJECT_NOT_FOUND">
4498 Extra data @a key not found.
4499 </result>
4500
4501 </desc>
4502 <param name="key" type="wstring" dir="in">
4503 <desc>Name of the data key to follow.</desc>
4504 </param>
4505 <param name="nextKey" type="wstring" dir="out">
4506 <desc>Name of the next data key.</desc>
4507 </param>
4508 <param name="nextValue" type="wstring" dir="out">
4509 <desc>Value of the next data key.</desc>
4510 </param>
4511 </method>
4512
4513 <method name="getExtraData">
4514 <desc>
4515 Returns associated machine-specific extra data.
4516
4517 If the requested data @a key does not exist, this function will
4518 succeed and return @c NULL in the @a value argument.
4519
4520 <result name="VBOX_E_FILE_ERROR">
4521 Settings file not accessible.
4522 </result>
4523 <result name="VBOX_E_XML_ERROR">
4524 Could not parse the settings file.
4525 </result>
4526
4527 </desc>
4528 <param name="key" type="wstring" dir="in">
4529 <desc>Name of the data key to get.</desc>
4530 </param>
4531 <param name="value" type="wstring" dir="return">
4532 <desc>Value of the requested data key.</desc>
4533 </param>
4534 </method>
4535
4536 <method name="setExtraData">
4537 <desc>
4538 Sets associated machine-specific extra data.
4539
4540 If you pass @c NULL as a key @a value, the given @a key will be
4541 deleted.
4542
4543 <note>
4544 Before performing the actual data change, this method will ask all
4545 registered callbacks using the
4546 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4547 notification for a permission. If one of the callbacks refuses the
4548 new value, the change will not be performed.
4549 </note>
4550 <note>
4551 On success, the
4552 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4553 is called to inform all registered callbacks about a successful data
4554 change.
4555 </note>
4556 <note>
4557 This method can be called outside the machine session and therefore
4558 it's a caller's responsibility to handle possible race conditions
4559 when several clients change the same key at the same time.
4560 </note>
4561
4562 <result name="VBOX_E_FILE_ERROR">
4563 Settings file not accessible.
4564 </result>
4565 <result name="VBOX_E_XML_ERROR">
4566 Could not parse the settings file.
4567 </result>
4568
4569 </desc>
4570 <param name="key" type="wstring" dir="in">
4571 <desc>Name of the data key to set.</desc>
4572 </param>
4573 <param name="value" type="wstring" dir="in">
4574 <desc>Value to assign to the key.</desc>
4575 </param>
4576 </method>
4577
4578 <method name="saveSettings">
4579 <desc>
4580 Saves any changes to machine settings made since the session
4581 has been opened or a new machine has been created, or since the
4582 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4583 For registered machines, new settings become visible to all
4584 other VirtualBox clients after successful invocation of this
4585 method.
4586 <note>
4587 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4588 notification event after the configuration has been successfully
4589 saved (only for registered machines).
4590 </note>
4591 <note>
4592 Calling this method is only valid on instances returned
4593 by <link to="ISession::machine"/> and on new machines
4594 created by <link to="IVirtualBox::createMachine"/> but not
4595 yet registered, or on unregistered machines after calling
4596 <link to="IVirtualBox::unregisterMachine"/>.
4597 </note>
4598
4599 <result name="VBOX_E_FILE_ERROR">
4600 Settings file not accessible.
4601 </result>
4602 <result name="VBOX_E_XML_ERROR">
4603 Could not parse the settings file.
4604 </result>
4605 <result name="E_ACCESSDENIED">
4606 Modification request refused.
4607 </result>
4608
4609 </desc>
4610 </method>
4611
4612 <method name="saveSettingsWithBackup">
4613 <desc>
4614 Creates a backup copy of the machine settings file (<link
4615 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4616 <link to="#saveSettings"/>.
4617
4618 Note that the backup copy is created <b>only</b> if the settings file
4619 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4620 details). Otherwise, this call is fully equivalent to
4621 <link to="#saveSettings"/> and no backup copying is done.
4622
4623 The backup copy is created in the same directory where the original
4624 settings file is located. It is given the following file name:
4625 <pre>
4626 original.xml.x.y-platform.bak
4627 </pre>
4628 where <tt>original.xml</tt> is the original settings file name
4629 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4630 format of the settings file (before auto-conversion).
4631
4632 If the given backup file already exists, this method will try to add the
4633 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4634 0 to 9) and copy it again until it succeeds. If all suffixes are
4635 occupied, or if any other copy error occurs, this method will return a
4636 failure.
4637
4638 If the copy operation succeeds, the @a bakFileName return argument will
4639 receive a full path to the created backup file (for informational
4640 purposes). Note that this will happen even if the subsequent
4641 <link to="#saveSettings"/> call performed by this method after the
4642 copy operation, fails.
4643
4644 <note>
4645 The VirtualBox API never calls this method. It is intended purely for
4646 the purposes of creating backup copies of the settings files by
4647 front-ends before saving the results of the automatically performed
4648 settings conversion to disk.
4649 </note>
4650
4651 <see>settingsFileVersion</see>
4652
4653 <result name="VBOX_E_FILE_ERROR">
4654 Settings file not accessible.
4655 </result>
4656 <result name="VBOX_E_XML_ERROR">
4657 Could not parse the settings file.
4658 </result>
4659 <result name="VBOX_E_INVALID_VM_STATE">
4660 Virtual machine is not mutable.
4661 </result>
4662 <result name="E_ACCESSDENIED">
4663 Modification request refused.
4664 </result>
4665
4666 </desc>
4667 <param name="bakFileName" type="wstring" dir="return">
4668 <desc>Full path to the created backup copy.</desc>
4669 </param>
4670 </method>
4671
4672 <method name="discardSettings">
4673 <desc>
4674 Discards any changes to the machine settings made since the session
4675 has been opened or since the last call to <link to="#saveSettings"/>
4676 or <link to="#discardSettings"/>.
4677 <note>
4678 Calling this method is only valid on instances returned
4679 by <link to="ISession::machine"/> and on new machines
4680 created by <link to="IVirtualBox::createMachine"/> or
4681 opened by <link to="IVirtualBox::openMachine"/> but not
4682 yet registered, or on unregistered machines after calling
4683 <link to="IVirtualBox::unregisterMachine"/>.
4684 </note>
4685
4686 <result name="VBOX_E_INVALID_VM_STATE">
4687 Virtual machine is not mutable.
4688 </result>
4689
4690 </desc>
4691 </method>
4692
4693 <method name="deleteSettings">
4694 <desc>
4695 Deletes the settings file of this machine from disk.
4696 The machine must not be registered in order for this operation
4697 to succeed.
4698 <note>
4699 <link to="#settingsModified"/> will return TRUE after this
4700 method successfully returns.
4701 </note>
4702 <note>
4703 Calling this method is only valid on instances returned
4704 by <link to="ISession::machine"/> and on new machines
4705 created by <link to="IVirtualBox::createMachine"/> or
4706 opened by <link to="IVirtualBox::openMachine"/> but not
4707 yet registered, or on unregistered machines after calling
4708 <link to="IVirtualBox::unregisterMachine"/>.
4709 </note>
4710 <note>
4711 The deleted machine settings file can be restored (saved again)
4712 by calling <link to="#saveSettings"/>.
4713 </note>
4714
4715 <result name="VBOX_E_INVALID_VM_STATE">
4716 Cannot delete settings of a registered machine or
4717 machine not mutable.
4718 </result>
4719 <result name="VBOX_E_IPRT_ERROR">
4720 Could not delete the settings file.
4721 </result>
4722
4723 </desc>
4724 </method>
4725
4726 <method name="export">
4727 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
4728 steps required to export VirtualBox machines to OVF.
4729 </desc>
4730
4731 <param name="appliance" type="IAppliance" dir="in">
4732 <desc>Appliance to export this machine to.</desc>
4733 </param>
4734 </method >
4735
4736 <method name="getSnapshot">
4737 <desc>
4738 Returns a snapshot of this machine with the given UUID.
4739 A <tt>null</tt> UUID can be used to obtain the first snapshot
4740 taken on this machine. This is useful if you want to traverse
4741 the whole tree of snapshots starting from the root.
4742
4743 <result name="VBOX_E_OBJECT_NOT_FOUND">
4744 Virtual machine has no snapshots or snapshot not found.
4745 </result>
4746
4747 </desc>
4748 <param name="id" type="uuid" dir="in">
4749 <desc>UUID of the snapshot to get</desc>
4750 </param>
4751 <param name="snapshot" type="ISnapshot" dir="return">
4752 <desc>Snapshot object with the given UUID.</desc>
4753 </param>
4754 </method>
4755
4756 <method name="findSnapshot">
4757 <desc>
4758 Returns a snapshot of this machine with the given name.
4759
4760 <result name="VBOX_E_OBJECT_NOT_FOUND">
4761 Virtual machine has no snapshots or snapshot not found.
4762 </result>
4763
4764 </desc>
4765 <param name="name" type="wstring" dir="in">
4766 <desc>Name of the snapshot to find</desc>
4767 </param>
4768 <param name="snapshot" type="ISnapshot" dir="return">
4769 <desc>Snapshot object with the given name.</desc>
4770 </param>
4771 </method>
4772
4773 <method name="setCurrentSnapshot">
4774 <desc>
4775 Sets the current snapshot of this machine.
4776 <note>
4777 In the current implementation, this operation is not
4778 implemented.
4779 </note>
4780 </desc>
4781 <param name="id" type="uuid" dir="in">
4782 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4783 </param>
4784 </method>
4785
4786 <method name="createSharedFolder">
4787 <desc>
4788 Creates a new permanent shared folder by associating the given logical
4789 name with the given host path, adds it to the collection of shared
4790 folders and starts sharing it. Refer to the description of
4791 <link to="ISharedFolder"/> to read more about logical names.
4792
4793 <result name="VBOX_E_OBJECT_IN_USE">
4794 Shared folder already exists.
4795 </result>
4796 <result name="VBOX_E_FILE_ERROR">
4797 Shared folder @a hostPath not accessible.
4798 </result>
4799
4800 </desc>
4801 <param name="name" type="wstring" dir="in">
4802 <desc>Unique logical name of the shared folder.</desc>
4803 </param>
4804 <param name="hostPath" type="wstring" dir="in">
4805 <desc>Full path to the shared folder in the host file system.</desc>
4806 </param>
4807 <param name="writable" type="boolean" dir="in">
4808 <desc>Whether the share is writable or readonly</desc>
4809 </param>
4810 </method>
4811
4812 <method name="removeSharedFolder">
4813 <desc>
4814 Removes the permanent shared folder with the given name previously
4815 created by <link to="#createSharedFolder"/> from the collection of
4816 shared folders and stops sharing it.
4817
4818 <result name="VBOX_E_INVALID_VM_STATE">
4819 Virtual machine is not mutable.
4820 </result>
4821 <result name="VBOX_E_OBJECT_NOT_FOUND">
4822 Shared folder @a name does not exist.
4823 </result>
4824
4825 </desc>
4826 <param name="name" type="wstring" dir="in">
4827 <desc>Logical name of the shared folder to remove.</desc>
4828 </param>
4829 </method>
4830
4831 <method name="canShowConsoleWindow">
4832 <desc>
4833 Returns @c true if the VM console process can activate the
4834 console window and bring it to foreground on the desktop of
4835 the host PC.
4836 <note>
4837 This method will fail if a session for this machine is not
4838 currently open.
4839 </note>
4840
4841 <result name="VBOX_E_INVALID_VM_STATE">
4842 Machine session is not open.
4843 </result>
4844
4845 </desc>
4846 <param name="canShow" type="boolean" dir="return">
4847 <desc>
4848 @c true if the console window can be shown and @c
4849 false otherwise.
4850 </desc>
4851 </param>
4852 </method>
4853
4854 <method name="showConsoleWindow">
4855 <desc>
4856 Activates the console window and brings it to foreground on
4857 the desktop of the host PC. Many modern window managers on
4858 many platforms implement some sort of focus stealing
4859 prevention logic, so that it may be impossible to activate
4860 a window without the help of the currently active
4861 application. In this case, this method will return a non-zero
4862 identifier that represents the top-level window of the VM
4863 console process. The caller, if it represents a currently
4864 active process, is responsible to use this identifier (in a
4865 platform-dependent manner) to perform actual window
4866 activation.
4867 <note>
4868 This method will fail if a session for this machine is not
4869 currently open.
4870 </note>
4871
4872 <result name="VBOX_E_INVALID_VM_STATE">
4873 Machine session is not open.
4874 </result>
4875
4876 </desc>
4877 <param name="winId" type="unsigned long long" dir="return">
4878 <desc>
4879 Platform-dependent identifier of the top-level VM console
4880 window, or zero if this method has performed all actions
4881 necessary to implement the <i>show window</i> semantics for
4882 the given platform and/or VirtualBox front-end.
4883 </desc>
4884 </param>
4885 </method>
4886
4887 <method name="getGuestProperty">
4888 <desc>
4889 Reads an entry from the machine's guest property store.
4890
4891 <result name="VBOX_E_INVALID_VM_STATE">
4892 Machine session is not open.
4893 </result>
4894
4895 </desc>
4896 <param name="name" type="wstring" dir="in">
4897 <desc>
4898 The name of the property to read.
4899 </desc>
4900 </param>
4901 <param name="value" type="wstring" dir="out">
4902 <desc>
4903 The value of the property. If the property does not exist then this
4904 will be empty.
4905 </desc>
4906 </param>
4907 <param name="timestamp" type="unsigned long long" dir="out">
4908 <desc>
4909 The time at which the property was last modified, as seen by the
4910 server process.
4911 </desc>
4912 </param>
4913 <param name="flags" type="wstring" dir="out">
4914 <desc>
4915 Additional property parameters, passed as a comma-separated list of
4916 "name=value" type entries.
4917 </desc>
4918 </param>
4919 </method>
4920
4921 <method name="getGuestPropertyValue">
4922 <desc>
4923 Reads a value from the machine's guest property store.
4924
4925 <result name="VBOX_E_INVALID_VM_STATE">
4926 Machine session is not open.
4927 </result>
4928
4929 </desc>
4930 <param name="property" type="wstring" dir="in">
4931 <desc>
4932 The name of the property to read.
4933 </desc>
4934 </param>
4935 <param name="value" type="wstring" dir="return">
4936 <desc>
4937 The value of the property. If the property does not exist then this
4938 will be empty.
4939 </desc>
4940 </param>
4941 </method>
4942
4943 <method name="getGuestPropertyTimestamp">
4944 <desc>
4945 Reads a property timestamp from the machine's guest property store.
4946
4947 <result name="VBOX_E_INVALID_VM_STATE">
4948 Machine session is not open.
4949 </result>
4950
4951 </desc>
4952 <param name="property" type="wstring" dir="in">
4953 <desc>
4954 The name of the property to read.
4955 </desc>
4956 </param>
4957 <param name="value" type="unsigned long long" dir="return">
4958 <desc>
4959 The timestamp. If the property does not exist then this will be
4960 empty.
4961 </desc>
4962 </param>
4963 </method>
4964
4965 <method name="setGuestProperty">
4966 <desc>
4967 Sets, changes or deletes an entry in the machine's guest property
4968 store.
4969
4970 <result name="E_ACCESSDENIED">
4971 Property cannot be changed.
4972 </result>
4973 <result name="E_INVALIDARG">
4974 Invalid @a flags.
4975 </result>
4976 <result name="VBOX_E_INVALID_VM_STATE">
4977 Virtual machine is not mutable or session not open.
4978 </result>
4979 <result name="VBOX_E_INVALID_OBJECT_STATE">
4980 Cannot set transient property when machine not running.
4981 </result>
4982
4983 </desc>
4984 <param name="property" type="wstring" dir="in">
4985 <desc>
4986 The name of the property to set, change or delete.
4987 </desc>
4988 </param>
4989 <param name="value" type="wstring" dir="in">
4990 <desc>
4991 The new value of the property to set, change or delete. If the
4992 property does not yet exist and value is non-empty, it will be
4993 created. If the value is empty, the key will be deleted if it
4994 exists.
4995 </desc>
4996 </param>
4997 <param name="flags" type="wstring" dir="in">
4998 <desc>
4999 Additional property parameters, passed as a comma-separated list of
5000 "name=value" type entries.
5001 </desc>
5002 </param>
5003 </method>
5004
5005 <method name="setGuestPropertyValue">
5006 <desc>
5007 Sets, changes or deletes a value in the machine's guest property
5008 store. The flags field will be left unchanged or created empty for a
5009 new property.
5010
5011 <result name="E_ACCESSDENIED">
5012 Property cannot be changed.
5013 </result>
5014 <result name="VBOX_E_INVALID_VM_STATE">
5015 Virtual machine is not mutable or session not open.
5016 </result>
5017 <result name="VBOX_E_INVALID_OBJECT_STATE">
5018 Cannot set transient property when machine not running.
5019 </result>
5020 </desc>
5021
5022 <param name="property" type="wstring" dir="in">
5023 <desc>
5024 The name of the property to set, change or delete.
5025 </desc>
5026 </param>
5027 <param name="value" type="wstring" dir="in">
5028 <desc>
5029 The new value of the property to set, change or delete. If the
5030 property does not yet exist and value is non-empty, it will be
5031 created. If value is empty, the property will be deleted if it
5032 exists.
5033 </desc>
5034 </param>
5035 </method>
5036
5037 <method name="enumerateGuestProperties">
5038 <desc>
5039 Return a list of the guest properties matching a set of patterns along
5040 with their values, time stamps and flags.
5041 </desc>
5042 <param name="patterns" type="wstring" dir="in">
5043 <desc>
5044 The patterns to match the properties against, separated by '|'
5045 characters. If this is empty or NULL, all properties will match.
5046 </desc>
5047 </param>
5048 <param name="name" type="wstring" dir="out" safearray="yes">
5049 <desc>
5050 The names of the properties returned.
5051 </desc>
5052 </param>
5053 <param name="value" type="wstring" dir="out" safearray="yes">
5054 <desc>
5055 The values of the properties returned. The array entries match the
5056 corresponding entries in the @a name array.
5057 </desc>
5058 </param>
5059 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5060 <desc>
5061 The time stamps of the properties returned. The array entries match
5062 the corresponding entries in the @a name array.
5063 </desc>
5064 </param>
5065 <param name="flags" type="wstring" dir="out" safearray="yes">
5066 <desc>
5067 The flags of the properties returned. The array entries match the
5068 corresponding entries in the @a name array.
5069 </desc>
5070 </param>
5071 </method>
5072</interface>
5073
5074 <!--
5075 // IConsole
5076 /////////////////////////////////////////////////////////////////////////
5077 -->
5078
5079 <interface
5080 name="IConsoleCallback" extends="$unknown"
5081 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5082 wsmap="suppress"
5083 >
5084
5085 <method name="onMousePointerShapeChange">
5086 <desc>
5087 Notification when the guest mouse pointer shape has
5088 changed. The new shape data is given.
5089 </desc>
5090 <param name="visible" type="boolean" dir="in">
5091 <desc>
5092 Flag whether the pointer is visible.
5093 </desc>
5094 </param>
5095 <param name="alpha" type="boolean" dir="in">
5096 <desc>
5097 Flag whether the pointer has an alpha channel.
5098 </desc>
5099 </param>
5100 <param name="xHot" type="unsigned long" dir="in">
5101 <desc>
5102 The pointer hot spot x coordinate.
5103 </desc>
5104 </param>
5105 <param name="yHot" type="unsigned long" dir="in">
5106 <desc>
5107 The pointer hot spot y coordinate.
5108 </desc>
5109 </param>
5110 <param name="width" type="unsigned long" dir="in">
5111 <desc>
5112 Width of the pointer shape in pixels.
5113 </desc>
5114 </param>
5115 <param name="height" type="unsigned long" dir="in">
5116 <desc>
5117 Height of the pointer shape in pixels.
5118 </desc>
5119 </param>
5120 <param name="shape" type="octet" mod="ptr" dir="in">
5121 <desc>
5122 Address of the shape buffer.
5123
5124 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5125 followed by a 32-bpp XOR (color) mask.
5126
5127 For pointers without alpha channel the XOR mask pixels are 32
5128 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5129 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5130
5131 An AND mask is used for pointers with alpha channel, so if the
5132 callback does not support alpha, the pointer could be
5133 displayed as a normal color pointer.
5134
5135 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5136 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5137 height</tt>. The padding bits at the end of each scanline are
5138 undefined.
5139
5140 The XOR mask follows the AND mask on the next 4-byte aligned
5141 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5142 Bytes in the gap between the AND and the XOR mask are undefined.
5143 The XOR mask scanlines have no gap between them and the size of
5144 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5145
5146 <note>
5147 If @a shape is 0, only the pointer visibility is changed.
5148 </note>
5149 </desc>
5150 </param>
5151 </method>
5152
5153 <method name="onMouseCapabilityChange">
5154 <desc>
5155 Notification when the mouse capabilities reported by the
5156 guest have changed. The new capabilities are passed.
5157 </desc>
5158 <param name="supportsAbsolute" type="boolean" dir="in"/>
5159 <param name="needsHostCursor" type="boolean" dir="in"/>
5160 </method>
5161
5162 <method name="onKeyboardLedsChange">
5163 <desc>
5164 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5165 to alter the state of the keyboard LEDs.
5166 </desc>
5167 <param name="numLock" type="boolean" dir="in"/>
5168 <param name="capsLock" type="boolean" dir="in"/>
5169 <param name="scrollLock" type="boolean" dir="in"/>
5170 </method>
5171
5172 <method name="onStateChange">
5173 <desc>
5174 Notification when the execution state of the machine has changed.
5175 The new state will be given.
5176 </desc>
5177 <param name="state" type="MachineState" dir="in"/>
5178 </method>
5179
5180 <method name="onAdditionsStateChange">
5181 <desc>
5182 Notification when a Guest Additions property changes.
5183 Interested callees should query IGuest attributes to
5184 find out what has changed.
5185 </desc>
5186 </method>
5187
5188 <method name="onDVDDriveChange">
5189 <desc>
5190 Notification when a property of the
5191 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5192 Interested callees should use IDVDDrive methods to find out what has
5193 changed.
5194 </desc>
5195 </method>
5196
5197 <method name="onFloppyDriveChange">
5198 <desc>
5199 Notification when a property of the
5200 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5201 Interested callees should use IFloppyDrive methods to find out what
5202 has changed.
5203 </desc>
5204 </method>
5205
5206 <method name="onNetworkAdapterChange">
5207 <desc>
5208 Notification when a property of one of the
5209 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5210 changes. Interested callees should use INetworkAdapter methods and
5211 attributes to find out what has changed.
5212 </desc>
5213 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5214 <desc>Network adapter that is subject to change.</desc>
5215 </param>
5216 </method>
5217
5218 <method name="onSerialPortChange">
5219 <desc>
5220 Notification when a property of one of the
5221 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5222 Interested callees should use ISerialPort methods and attributes
5223 to find out what has changed.
5224 </desc>
5225 <param name="serialPort" type="ISerialPort" dir="in">
5226 <desc>Serial port that is subject to change.</desc>
5227 </param>
5228 </method>
5229
5230 <method name="onParallelPortChange">
5231 <desc>
5232 Notification when a property of one of the
5233 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5234 changes. Interested callees should use ISerialPort methods and
5235 attributes to find out what has changed.
5236 </desc>
5237 <param name="parallelPort" type="IParallelPort" dir="in">
5238 <desc>Parallel port that is subject to change.</desc>
5239 </param>
5240 </method>
5241
5242 <method name="onVRDPServerChange">
5243 <desc>
5244 Notification when a property of the
5245 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5246 Interested callees should use IVRDPServer methods and attributes to
5247 find out what has changed.
5248 </desc>
5249 </method>
5250
5251 <method name="onUSBControllerChange">
5252 <desc>
5253 Notification when a property of the virtual
5254 <link to="IMachine::USBController">USB controller</link> changes.
5255 Interested callees should use IUSBController methods and attributes to
5256 find out what has changed.
5257 </desc>
5258 </method>
5259
5260 <method name="onUSBDeviceStateChange">
5261 <desc>
5262 Notification when a USB device is attached to or detached from
5263 the virtual USB controller.
5264
5265 This notification is sent as a result of the indirect
5266 request to attach the device because it matches one of the
5267 machine USB filters, or as a result of the direct request
5268 issued by <link to="IConsole::attachUSBDevice"/> or
5269 <link to="IConsole::detachUSBDevice"/>.
5270
5271 This notification is sent in case of both a succeeded and a
5272 failed request completion. When the request succeeds, the
5273 @a error parameter is @c null, and the given device has been
5274 already added to (when @a attached is @c true) or removed from
5275 (when @a attached is @c false) the collection represented by
5276 <link to="IConsole::USBDevices"/>. On failure, the collection
5277 doesn't change and the @a error parameter represents the error
5278 message describing the failure.
5279
5280 </desc>
5281 <param name="device" type="IUSBDevice" dir="in">
5282 <desc>Device that is subject to state change.</desc>
5283 </param>
5284 <param name="attached" type="boolean" dir="in">
5285 <desc>
5286 <tt>true</tt> if the device was attached
5287 and <tt>false</tt> otherwise.
5288 </desc>
5289 </param>
5290 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5291 <desc>
5292 <tt>null</tt> on success or an error message object on
5293 failure.
5294 </desc>
5295 </param>
5296 </method>
5297
5298 <method name="onSharedFolderChange">
5299 <desc>
5300 Notification when a shared folder is added or removed.
5301 The @a scope argument defines one of three scopes:
5302 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5303 (<link to="Scope_Global">Global</link>),
5304 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5305 the machine (<link to="Scope_Machine">Machine</link>) or <link
5306 to="IConsole::sharedFolders">transient shared folders</link> of the
5307 machine (<link to="Scope_Session">Session</link>). Interested callees
5308 should use query the corresponding collections to find out what has
5309 changed.
5310 </desc>
5311 <param name="scope" type="Scope" dir="in">
5312 <desc>Scope of the notification.</desc>
5313 </param>
5314 </method>
5315
5316 <method name="onRuntimeError">
5317 <desc>
5318 Notification when an error happens during the virtual
5319 machine execution.
5320
5321 There are three kinds of runtime errors:
5322 <ul>
5323 <li><i>fatal</i></li>
5324 <li><i>non-fatal with retry</i></li>
5325 <li><i>non-fatal warnings</i></li>
5326 </ul>
5327
5328 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5329 to <tt>true</tt>. In case of fatal errors, the virtual machine
5330 execution is always paused before calling this notification, and
5331 the notification handler is supposed either to immediately save
5332 the virtual machine state using <link to="IConsole::saveState"/>
5333 or power it off using <link to="IConsole::powerDown"/>.
5334 Resuming the execution can lead to unpredictable results.
5335
5336 <b>Non-fatal</b> errors and warnings are indicated by the
5337 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5338 is in the Paused state by the time the error notification is
5339 received, it means that the user can <i>try to resume</i> the machine
5340 execution after attempting to solve the problem that caused the
5341 error. In this case, the notification handler is supposed
5342 to show an appropriate message to the user (depending on the
5343 value of the @a id parameter) that offers several actions such
5344 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5345 wants to retry, the notification handler should continue
5346 the machine execution using the <link to="IConsole::resume"/>
5347 call. If the machine execution is not Paused during this
5348 notification, then it means this notification is a <i>warning</i>
5349 (for example, about a fatal condition that can happen very soon);
5350 no immediate action is required from the user, the machine
5351 continues its normal execution.
5352
5353 Note that in either case the notification handler
5354 <b>must not</b> perform any action directly on a thread
5355 where this notification is called. Everything it is allowed to
5356 do is to post a message to another thread that will then talk
5357 to the user and take the corresponding action.
5358
5359 Currently, the following error identifiers are known:
5360 <ul>
5361 <li><tt>"HostMemoryLow"</tt></li>
5362 <li><tt>"HostAudioNotResponding"</tt></li>
5363 <li><tt>"VDIStorageFull"</tt></li>
5364 </ul>
5365
5366 <note>
5367 This notification is not designed to be implemented by
5368 more than one callback at a time. If you have multiple
5369 IConsoleCallback instances registered on the given
5370 IConsole object, make sure you simply do nothing but
5371 return @c S_OK from all but one of them that does actual
5372 user notification and performs necessary actions.
5373 </note>
5374
5375 </desc>
5376 <param name="fatal" type="boolean" dir="in">
5377 <desc>Whether the error is fatal or not</desc>
5378 </param>
5379 <param name="id" type="wstring" dir="in">
5380 <desc>Error identifier</desc>
5381 </param>
5382 <param name="message" type="wstring" dir="in">
5383 <desc>Optional error message</desc>
5384 </param>
5385 </method>
5386
5387 <method name="onCanShowWindow">
5388 <desc>
5389 Notification when a call to
5390 <link to="IMachine::canShowConsoleWindow"/> is made by a
5391 front-end to check if a subsequent call to
5392 <link to="IMachine::showConsoleWindow"/> can succeed.
5393
5394 The callee should give an answer appropriate to the current
5395 machine state in the @a canShow argument. This answer must
5396 remain valid at least until the next
5397 <link to="IConsole::state">machine state</link> change.
5398
5399 <note>
5400 This notification is not designed to be implemented by
5401 more than one callback at a time. If you have multiple
5402 IConsoleCallback instances registered on the given
5403 IConsole object, make sure you simply do nothing but
5404 return @c true and @c S_OK from all but one of them that
5405 actually manages console window activation.
5406 </note>
5407 </desc>
5408 <param name="canShow" type="boolean" dir="return">
5409 <desc>
5410 @c true if the console window can be shown and @c
5411 false otherwise.
5412 </desc>
5413 </param>
5414 </method>
5415
5416 <method name="onShowWindow">
5417 <desc>
5418 Notification when a call to
5419 <link to="IMachine::showConsoleWindow"/>
5420 requests the console window to be activated and brought to
5421 foreground on the desktop of the host PC.
5422
5423 This notification should cause the VM console process to
5424 perform the requested action as described above. If it is
5425 impossible to do it at a time of this notification, this
5426 method should return a failure.
5427
5428 Note that many modern window managers on many platforms
5429 implement some sort of focus stealing prevention logic, so
5430 that it may be impossible to activate a window without the
5431 help of the currently active application (which is supposedly
5432 an initiator of this notification). In this case, this method
5433 must return a non-zero identifier that represents the
5434 top-level window of the VM console process. The caller, if it
5435 represents a currently active process, is responsible to use
5436 this identifier (in a platform-dependent manner) to perform
5437 actual window activation.
5438
5439 This method must set @a winId to zero if it has performed all
5440 actions necessary to complete the request and the console
5441 window is now active and in foreground, to indicate that no
5442 further action is required on the caller's side.
5443
5444 <note>
5445 This notification is not designed to be implemented by
5446 more than one callback at a time. If you have multiple
5447 IConsoleCallback instances registered on the given
5448 IConsole object, make sure you simply do nothing but
5449 return @c S_OK from all but one of them that actually
5450 manages console window activation.
5451 </note>
5452 </desc>
5453 <param name="winId" type="unsigned long long" dir="return">
5454 <desc>
5455 Platform-dependent identifier of the top-level VM console
5456 window, or zero if this method has performed all actions
5457 necessary to implement the <i>show window</i> semantics for
5458 the given platform and/or this VirtualBox front-end.
5459 </desc>
5460 </param>
5461 </method>
5462
5463 </interface>
5464
5465 <interface
5466 name="IRemoteDisplayInfo" extends="$unknown"
5467 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5468 wsmap="struct"
5469 >
5470 <desc>
5471 Contains information about the remote display (VRDP) capabilities and status.
5472 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5473 </desc>
5474
5475 <attribute name="active" type="boolean" readonly="yes">
5476 <desc>
5477 Whether the remote display connection is active.
5478 </desc>
5479 </attribute>
5480
5481 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5482 <desc>
5483 How many times a client connected.
5484 </desc>
5485 </attribute>
5486
5487 <attribute name="beginTime" type="long long" readonly="yes">
5488 <desc>
5489 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5490 </desc>
5491 </attribute>
5492
5493 <attribute name="endTime" type="long long" readonly="yes">
5494 <desc>
5495 When the last connection was terminated or the current time, if
5496 connection is still active, in milliseconds since 1970-01-01 UTC.
5497 </desc>
5498 </attribute>
5499
5500 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5501 <desc>
5502 How many bytes were sent in last or current, if still active, connection.
5503 </desc>
5504 </attribute>
5505
5506 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5507 <desc>
5508 How many bytes were sent in all connections.
5509 </desc>
5510 </attribute>
5511
5512 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5513 <desc>
5514 How many bytes were received in last or current, if still active, connection.
5515 </desc>
5516 </attribute>
5517
5518 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5519 <desc>
5520 How many bytes were received in all connections.
5521 </desc>
5522 </attribute>
5523
5524 <attribute name="user" type="wstring" readonly="yes">
5525 <desc>
5526 Login user name supplied by the client.
5527 </desc>
5528 </attribute>
5529
5530 <attribute name="domain" type="wstring" readonly="yes">
5531 <desc>
5532 Login domain name supplied by the client.
5533 </desc>
5534 </attribute>
5535
5536 <attribute name="clientName" type="wstring" readonly="yes">
5537 <desc>
5538 The client name supplied by the client.
5539 </desc>
5540 </attribute>
5541
5542 <attribute name="clientIP" type="wstring" readonly="yes">
5543 <desc>
5544 The IP address of the client.
5545 </desc>
5546 </attribute>
5547
5548 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5549 <desc>
5550 The client software version number.
5551 </desc>
5552 </attribute>
5553
5554 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5555 <desc>
5556 Public key exchange method used when connection was established.
5557 Values: 0 - RDP4 public key exchange scheme.
5558 1 - X509 certificates were sent to client.
5559 </desc>
5560 </attribute>
5561
5562 </interface>
5563
5564 <interface
5565 name="IConsole" extends="$unknown"
5566 uuid="e3c6d4a1-a935-47ca-b16d-f9e9c496e53e"
5567 wsmap="managed"
5568 >
5569 <desc>
5570 The IConsole interface represents an interface to control virtual
5571 machine execution.
5572
5573 The console object that implements the IConsole interface is obtained
5574 from a session object after the session for the given machine has been
5575 opened using one of <link to="IVirtualBox::openSession"/>,
5576 <link to="IVirtualBox::openRemoteSession"/> or
5577 <link to="IVirtualBox::openExistingSession"/> methods.
5578
5579 Methods of the IConsole interface allow the caller to query the current
5580 virtual machine execution state, pause the machine or power it down, save
5581 the machine state or take a snapshot, attach and detach removable media
5582 and so on.
5583
5584 <see>ISession</see>
5585 </desc>
5586
5587 <attribute name="machine" type="IMachine" readonly="yes">
5588 <desc>
5589 Machine object this console is sessioned with.
5590 <note>
5591 This is a convenience property, it has the same value as
5592 <link to="ISession::machine"/> of the corresponding session
5593 object.
5594 </note>
5595 </desc>
5596 </attribute>
5597
5598 <attribute name="state" type="MachineState" readonly="yes">
5599 <desc>
5600 Current execution state of the machine.
5601 <note>
5602 This property always returns the same value as the corresponding
5603 property of the IMachine object this console is sessioned with.
5604 For the process that owns (executes) the VM, this is the
5605 preferable way of querying the VM state, because no IPC
5606 calls are made.
5607 </note>
5608 </desc>
5609 </attribute>
5610
5611 <attribute name="guest" type="IGuest" readonly="yes">
5612 <desc>Guest object.</desc>
5613 </attribute>
5614
5615 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5616 <desc>
5617 Virtual keyboard object.
5618 <note>
5619 If the machine is not running, any attempt to use
5620 the returned object will result in an error.
5621 </note>
5622 </desc>
5623 </attribute>
5624
5625 <attribute name="mouse" type="IMouse" readonly="yes">
5626 <desc>
5627 Virtual mouse object.
5628 <note>
5629 If the machine is not running, any attempt to use
5630 the returned object will result in an error.
5631 </note>
5632 </desc>
5633 </attribute>
5634
5635 <attribute name="display" type="IDisplay" readonly="yes">
5636 <desc>Virtual display object.
5637 <note>
5638 If the machine is not running, any attempt to use
5639 the returned object will result in an error.
5640 </note>
5641 </desc>
5642 </attribute>
5643
5644 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5645 <desc>Debugging interface.</desc>
5646 </attribute>
5647
5648 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
5649 <desc>
5650 Collection of USB devices currently attached to the virtual
5651 USB controller.
5652 <note>
5653 The collection is empty if the machine is not running.
5654 </note>
5655 </desc>
5656 </attribute>
5657
5658 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5659 <desc>
5660 List of USB devices currently attached to the remote VRDP client.
5661 Once a new device is physically attached to the remote host computer,
5662 it appears in this list and remains there until detached.
5663 </desc>
5664 </attribute>
5665
5666 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5667 <desc>
5668 Collection of shared folders for the current session. These folders
5669 are called transient shared folders because they are available to the
5670 guest OS running inside the associated virtual machine only for the
5671 duration of the session (as opposed to
5672 <link to="IMachine::sharedFolders"/> which represent permanent shared
5673 folders). When the session is closed (e.g. the machine is powered down),
5674 these folders are automatically discarded.
5675
5676 New shared folders are added to the collection using
5677 <link to="#createSharedFolder"/>. Existing shared folders can be
5678 removed using <link to="#removeSharedFolder"/>.
5679 </desc>
5680 </attribute>
5681
5682 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5683 <desc>
5684 Interface that provides information on Remote Display (VRDP) connection.
5685 </desc>
5686 </attribute>
5687
5688 <method name="powerUp">
5689 <desc>
5690 Starts the virtual machine execution using the current machine
5691 state (that is, its current execution state, current settings and
5692 current hard disks).
5693
5694 If the machine is powered off or aborted, the execution will
5695 start from the beginning (as if the real hardware were just
5696 powered on).
5697
5698 If the machine is in the <link to="MachineState_Saved"/> state,
5699 it will continue its execution the point where the state has
5700 been saved.
5701
5702 <note>
5703 Unless you are trying to write a new VirtualBox front-end that
5704 performs direct machine execution (like the VirtualBox or VBoxSDL
5705 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5706 session opened by <link to="IVirtualBox::openSession"/> and use this
5707 session only to change virtual machine settings. If you simply want to
5708 start virtual machine execution using one of the existing front-ends
5709 (for example the VirtualBox GUI or headless server), simply use
5710 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5711 power up the machine automatically for you.
5712 </note>
5713
5714 <see>#saveState</see>
5715 <result name="VBOX_E_INVALID_VM_STATE">
5716 Virtual machine already running.
5717 </result>
5718 <result name="VBOX_E_HOST_ERROR">
5719 Host interface does not exist or name not set.
5720 </result>
5721 <result name="VBOX_E_FILE_ERROR">
5722 Invalid saved state file.
5723 </result>
5724 </desc>
5725 <param name="progress" type="IProgress" dir="return">
5726 <desc>Progress object to track the operation completion.</desc>
5727 </param>
5728 </method>
5729
5730 <method name="powerUpPaused">
5731 <desc>
5732 Identical to powerUp except that the VM will enter the
5733 <link to="MachineState_Paused"/> state, instead of
5734 <link to="MachineState_Running"/>.
5735
5736 <see>#powerUp</see>
5737 <result name="VBOX_E_INVALID_VM_STATE">
5738 Virtual machine already running.
5739 </result>
5740 <result name="VBOX_E_HOST_ERROR">
5741 Host interface does not exist or name not set.
5742 </result>
5743 <result name="VBOX_E_FILE_ERROR">
5744 Invalid saved state file.
5745 </result>
5746 </desc>
5747 <param name="progress" type="IProgress" dir="return">
5748 <desc>Progress object to track the operation completion.</desc>
5749 </param>
5750 </method>
5751
5752 <method name="powerDown">
5753 <desc>
5754 Stops the virtual machine execution.
5755 After this operation completes, the machine will go to the
5756 PoweredOff state.
5757
5758 @deprecated This method will be removed in VirtualBox 2.1 where the
5759 powerDownAsync() method will take its name. Do not use this method in
5760 the code.
5761 <result name="VBOX_E_INVALID_VM_STATE">
5762 Virtual machine must be Running, Paused or Stuck to be powered down.
5763 </result>
5764 <result name="VBOX_E_VM_ERROR">
5765 Unable to power off or destroy virtual machine.
5766 </result>
5767 </desc>
5768 </method>
5769
5770 <method name="powerDownAsync">
5771 <desc>
5772 Initiates the power down procedure to stop the virtual machine
5773 execution.
5774
5775 The completion of the power down procedure is tracked using the returned
5776 IProgress object. After the operation is complete, the machine will go
5777 to the PoweredOff state.
5778
5779 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5780 where the original powerDown() method will be removed. You will need to
5781 rename "powerDownAsync" to "powerDown" in your sources to make them
5782 build with version 2.1.
5783 <result name="VBOX_E_INVALID_VM_STATE">
5784 Virtual machine must be Running, Paused or Stuck to be powered down.
5785 </result>
5786 </desc>
5787 <param name="progress" type="IProgress" dir="return">
5788 <desc>Progress object to track the operation completion.</desc>
5789 </param>
5790 </method>
5791
5792 <method name="reset">
5793 <desc>Resets the virtual machine.
5794 <result name="VBOX_E_INVALID_VM_STATE">
5795 Virtual machine not in Running state.
5796 </result>
5797 <result name="VBOX_E_VM_ERROR">
5798 Virtual machine error in reset operation.
5799 </result>
5800 </desc>
5801 </method>
5802
5803 <method name="pause">
5804 <desc>Pauses the virtual machine execution.
5805 <result name="VBOX_E_INVALID_VM_STATE">
5806 Virtual machine not in Running state.
5807 </result>
5808 <result name="VBOX_E_VM_ERROR">
5809 Virtual machine error in suspend operation.
5810 </result>
5811 </desc>
5812 </method>
5813
5814 <method name="resume">
5815 <desc>Resumes the virtual machine execution.
5816 <result name="VBOX_E_INVALID_VM_STATE">
5817 Virtual machine not in Paused state.
5818 </result>
5819 <result name="VBOX_E_VM_ERROR">
5820 Virtual machine error in resume operation.
5821 </result>
5822 </desc>
5823 </method>
5824
5825 <method name="powerButton">
5826 <desc>Sends the ACPI power button event to the guest.
5827 <result name="VBOX_E_INVALID_VM_STATE">
5828 Virtual machine not in Running state.
5829 </result>
5830 <result name="VBOX_E_PDM_ERROR">
5831 Controlled power off failed.
5832 </result>
5833 </desc>
5834 </method>
5835
5836 <method name="sleepButton">
5837 <desc>Sends the ACPI sleep button event to the guest.
5838 <result name="VBOX_E_INVALID_VM_STATE">
5839 Virtual machine not in Running state.
5840 </result>
5841 <result name="VBOX_E_PDM_ERROR">
5842 Sending sleep button event failed.
5843 </result>
5844 </desc>
5845 </method>
5846
5847 <method name="getPowerButtonHandled">
5848 <desc>Checks if the last power button event was handled by guest.
5849 <result name="VBOX_E_PDM_ERROR">
5850 Checking if the event was handled by the guest OS failed.
5851 </result>
5852 </desc>
5853 <param name="handled" type="boolean" dir="return"/>
5854 </method>
5855
5856 <method name="getGuestEnteredACPIMode">
5857 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5858 G1 (sleeping). If this method returns false, the guest will
5859 most likely not respond to external ACPI events.
5860 <result name="VBOX_E_INVALID_VM_STATE">
5861 Virtual machine not in Running state.
5862 </result>
5863 </desc>
5864 <param name="entered" type="boolean" dir="return"/>
5865 </method>
5866
5867 <method name="saveState">
5868 <desc>
5869 Saves the current execution state of a running virtual machine
5870 and stops its execution.
5871
5872 After this operation completes, the machine will go to the
5873 Saved state. Next time it is powered up, this state will
5874 be restored and the machine will continue its execution from
5875 the place where it was saved.
5876
5877 This operation differs from taking a snapshot to the effect
5878 that it doesn't create new differencing hard disks. Also, once
5879 the machine is powered up from the state saved using this method,
5880 the saved state is deleted, so it will be impossible to return
5881 to this state later.
5882
5883 <note>
5884 On success, this method implicitly calls
5885 <link to="IMachine::saveSettings"/> to save all current machine
5886 settings (including runtime changes to the DVD drive, etc.).
5887 Together with the impossibility to change any VM settings when it is
5888 in the Saved state, this guarantees adequate hardware
5889 configuration of the machine when it is restored from the saved
5890 state file.
5891 </note>
5892
5893 <note>
5894 The machine must be in the Running or Paused state, otherwise
5895 the operation will fail.
5896 </note>
5897 <result name="VBOX_E_INVALID_VM_STATE">
5898 Virtual machine state neither Running nor Paused.
5899 </result>
5900 <result name="VBOX_E_FILE_ERROR">
5901 Failed to create directory for saved state file.
5902 </result>
5903
5904 <see><link to="#takeSnapshot"/></see>
5905 </desc>
5906 <param name="progress" type="IProgress" dir="return">
5907 <desc>Progress object to track the operation completion.</desc>
5908 </param>
5909 </method>
5910
5911 <method name="adoptSavedState">
5912 <desc>
5913 Associates the given saved state file to the virtual machine.
5914
5915 On success, the machine will go to the Saved state. Next time it is
5916 powered up, it will be restored from the adopted saved state and
5917 continue execution from the place where the saved state file was
5918 created.
5919
5920 The specified saved state file path may be absolute or relative to the
5921 folder the VM normally saves the state to (usually,
5922 <link to="IMachine::snapshotFolder"/>).
5923
5924 <note>
5925 It's a caller's responsibility to make sure the given saved state
5926 file is compatible with the settings of this virtual machine that
5927 represent its virtual hardware (memory size, hard disk configuration
5928 etc.). If there is a mismatch, the behavior of the virtual machine
5929 is undefined.
5930 </note>
5931 <result name="VBOX_E_INVALID_VM_STATE">
5932 Virtual machine state neither PoweredOff nor Aborted.
5933 </result>
5934 </desc>
5935 <param name="savedStateFile" type="wstring" dir="in">
5936 <desc>Path to the saved state file to adopt.</desc>
5937 </param>
5938 </method>
5939
5940 <method name="discardSavedState">
5941 <desc>
5942 Discards (deletes) the saved state of the virtual machine
5943 previously created by <link to="#saveState"/>. Next time the
5944 machine is powered up, a clean boot will occur.
5945 <note>
5946 This operation is equivalent to resetting or powering off
5947 the machine without doing a proper shutdown in the guest OS.
5948 </note>
5949 <result name="VBOX_E_INVALID_VM_STATE">
5950 Virtual machine not in state Saved.
5951 </result>
5952 </desc>
5953 </method>
5954
5955 <method name="getDeviceActivity">
5956 <desc>
5957 Gets the current activity type of a given device or device group.
5958 <result name="E_INVALIDARG">
5959 Invalid device type.
5960 </result>
5961 </desc>
5962 <param name="type" type="DeviceType" dir="in"/>
5963 <param name="activity" type="DeviceActivity" dir="return"/>
5964 </method>
5965
5966 <method name="attachUSBDevice">
5967 <desc>
5968 Attaches a host USB device with the given UUID to the
5969 USB controller of the virtual machine.
5970
5971 The device needs to be in one of the following states:
5972 <link to="USBDeviceState_Busy"/>,
5973 <link to="USBDeviceState_Available"/> or
5974 <link to="USBDeviceState_Held"/>,
5975 otherwise an error is immediately returned.
5976
5977 When the device state is
5978 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5979 be returned if the host computer refuses to release it for some reason.
5980
5981 <see>IUSBController::deviceFilters, USBDeviceState</see>
5982 <result name="VBOX_E_INVALID_VM_STATE">
5983 Virtual machine state neither Running nor Paused.
5984 </result>
5985 <result name="VBOX_E_PDM_ERROR">
5986 Virtual machine does not have a USB controller.
5987 </result>
5988 </desc>
5989 <param name="id" type="uuid" dir="in">
5990 <desc>UUID of the host USB device to attach.</desc>
5991 </param>
5992 </method>
5993
5994 <method name="detachUSBDevice">
5995 <desc>
5996 Detaches an USB device with the given UUID from the USB controller
5997 of the virtual machine.
5998
5999 After this method succeeds, the VirtualBox server re-initiates
6000 all USB filters as if the device were just physically attached
6001 to the host, but filters of this machine are ignored to avoid
6002 a possible automatic re-attachment.
6003
6004 <see>IUSBController::deviceFilters, USBDeviceState</see>
6005
6006 <result name="VBOX_E_PDM_ERROR">
6007 Virtual machine does not have a USB controller.
6008 </result>
6009 <result name="E_INVALIDARG">
6010 USB device not attached to this virtual machine.
6011 </result>
6012 </desc>
6013 <param name="id" type="uuid" dir="in">
6014 <desc>UUID of the USB device to detach.</desc>
6015 </param>
6016 <param name="device" type="IUSBDevice" dir="return">
6017 <desc>Detached USB device.</desc>
6018 </param>
6019 </method>
6020
6021 <method name="createSharedFolder">
6022 <desc>
6023 Creates a transient new shared folder by associating the given logical
6024 name with the given host path, adds it to the collection of shared
6025 folders and starts sharing it. Refer to the description of
6026 <link to="ISharedFolder"/> to read more about logical names.
6027
6028 <result name="VBOX_E_INVALID_VM_STATE">
6029 Virtual machine in Saved state or currently changing state.
6030 </result>
6031 <result name="VBOX_E_FILE_ERROR">
6032 Shared folder already exists or not accessible.
6033 </result>
6034 </desc>
6035 <param name="name" type="wstring" dir="in">
6036 <desc>Unique logical name of the shared folder.</desc>
6037 </param>
6038 <param name="hostPath" type="wstring" dir="in">
6039 <desc>Full path to the shared folder in the host file system.</desc>
6040 </param>
6041 <param name="writable" type="boolean" dir="in">
6042 <desc>Whether the share is writable or readonly</desc>
6043 </param>
6044 </method>
6045
6046 <method name="removeSharedFolder">
6047 <desc>
6048 Removes a transient shared folder with the given name previously
6049 created by <link to="#createSharedFolder"/> from the collection of
6050 shared folders and stops sharing it.
6051 <result name="VBOX_E_INVALID_VM_STATE">
6052 Virtual machine in Saved state or currently changing state.
6053 </result>
6054 <result name="VBOX_E_FILE_ERROR">
6055 Shared folder does not exists.
6056 </result>
6057 </desc>
6058 <param name="name" type="wstring" dir="in">
6059 <desc>Logical name of the shared folder to remove.</desc>
6060 </param>
6061 </method>
6062
6063 <method name="takeSnapshot">
6064 <desc>
6065 Saves the current execution state and all settings of the
6066 machine and creates differencing images for all
6067 normal (non-independent) hard disks.
6068
6069 This method can be called for a PoweredOff, Saved, Running or
6070 Paused virtual machine. When the machine is PoweredOff, an
6071 offline <link to="ISnapshot">snapshot</link> is created,
6072 in all other cases -- an online snapshot.
6073
6074 The taken snapshot is always based on the
6075 <link to="IMachine::currentSnapshot">current
6076 snapshot</link> of the associated virtual machine and becomes
6077 a new current snapshot.
6078
6079 <note>
6080 This method implicitly calls <link to="IMachine::saveSettings"/> to
6081 save all current machine settings before taking an offline snapshot.
6082 </note>
6083
6084 <see>ISnapshot, <link to="#saveState"/></see>
6085 <result name="VBOX_E_INVALID_VM_STATE">
6086 Virtual machine currently changing state.
6087 </result>
6088 </desc>
6089 <param name="name" type="wstring" dir="in">
6090 <desc>Short name for the snapshot.</desc>
6091 </param>
6092 <param name="description" type="wstring" dir="in">
6093 <desc>Optional description of the snapshot.</desc>
6094 </param>
6095 <param name="progress" type="IProgress" dir="return">
6096 <desc>Progress object to track the operation completion.</desc>
6097 </param>
6098 </method>
6099
6100 <method name="discardSnapshot">
6101 <desc>
6102
6103 Starts discarding the specified snapshot. The execution state
6104 and settings of the associated machine stored in the snapshot
6105 will be deleted. The contents of all differencing hard disks of
6106 this snapshot will be merged with the contents of their
6107 dependent child hard disks to keep the, disks valid (in other
6108 words, all changes represented by hard disks being discarded
6109 will be propagated to their child hard disks). After that, this
6110 snapshot's differencing hard disks will be deleted. The parent
6111 of this snapshot will become a new parent for all its child
6112 snapshots.
6113
6114 If the discarded snapshot is the current one, its parent
6115 snapshot will become a new current snapshot. The current machine
6116 state is not directly affected in this case, except that
6117 currently attached differencing hard disks based on hard disks
6118 of the discarded snapshot will be also merged as described
6119 above.
6120
6121 If the discarded snapshot is the first one (the root snapshot)
6122 and it has exactly one child snapshot, this child snapshot will
6123 become the first snapshot after discarding. If there are no
6124 children at all (i.e. the first snapshot is the only snapshot of
6125 the machine), both the current and the first snapshot of the
6126 machine will be set to null. In all other cases, the first
6127 snapshot cannot be discarded.
6128
6129 You cannot discard the snapshot if it
6130 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6131 hard disks that have differencing hard disks based on them. Snapshots of
6132 such kind can be discarded only when every normal hard disk has either
6133 no children at all or exactly one child. In the former case, the normal
6134 hard disk simply becomes unused (i.e. not attached to any VM). In the
6135 latter case, it receives all the changes stored in the child hard disk,
6136 and then it replaces the child hard disk in the configuration of the
6137 corresponding snapshot or machine.
6138
6139 Also, you cannot discard the snapshot if it stores hard disks
6140 (of any type) having differencing child hard disks that belong
6141 to other machines. Such snapshots can be only discarded after
6142 you discard all snapshots of other machines containing "foreign"
6143 child disks, or detach these "foreign" child disks from machines
6144 they are attached to.
6145
6146 One particular example of the snapshot storing normal hard disks
6147 is the first snapshot of a virtual machine that had normal hard
6148 disks attached when taking the snapshot. Be careful when
6149 discarding such snapshots because this implicitly commits
6150 changes (made since the snapshot being discarded has been taken)
6151 to normal hard disks (as described above), which may be not what
6152 you want.
6153
6154 The virtual machine is put to
6155 the <link to="MachineState_Discarding">Discarding</link> state until
6156 the discard operation is completed.
6157
6158 <note>
6159 The machine must not be running, otherwise the operation
6160 will fail.
6161 </note>
6162
6163 <note>
6164 Child hard disks of all normal hard disks of the discarded snapshot
6165 must be accessible (see <link to="IMedium::state"/>) for this
6166 operation to succeed. In particular, this means that all virtual
6167 machines, whose hard disks are directly or indirectly based on the
6168 hard disks of discarded snapshot, must be powered off.
6169 </note>
6170 <note>
6171 Merging hard disk contents can be very time and disk space
6172 consuming, if these disks are big in size and have many
6173 children. However, if the snapshot being discarded is the last
6174 (head) snapshot on the branch, the operation will be rather
6175 quick.
6176 </note>
6177 <note>
6178 Note that discarding the current snapshot
6179 will implicitly call <link to="IMachine::saveSettings"/> to
6180 make all current machine settings permanent.
6181 </note>
6182 <result name="VBOX_E_INVALID_VM_STATE">
6183 Virtual machine is running.
6184 </result>
6185 </desc>
6186 <param name="id" type="uuid" dir="in">
6187 <desc>UUID of the snapshot to discard.</desc>
6188 </param>
6189 <param name="progress" type="IProgress" dir="return">
6190 <desc>Progress object to track the operation completion.</desc>
6191 </param>
6192 </method>
6193
6194 <method name="discardCurrentState">
6195 <desc>
6196 This operation is similar to <link to="#discardSnapshot"/> but
6197 affects the current machine state. This means that the state stored in
6198 the current snapshot will become a new current state, and all current
6199 settings of the machine and changes stored in differencing hard disks
6200 will be lost.
6201
6202 After this operation is successfully completed, new empty differencing
6203 hard disks are created for all normal hard disks of the machine.
6204
6205 If the current snapshot of the machine is an online snapshot, the
6206 machine will go to the <link to="MachineState_Saved"> saved
6207 state</link>, so that the next time it is powered on, the execution
6208 state will be restored from the current snapshot.
6209
6210 <note>
6211 The machine must not be running, otherwise the operation will fail.
6212 </note>
6213
6214 <note>
6215 If the machine state is <link to="MachineState_Saved">Saved</link>
6216 prior to this operation, the saved state file will be implicitly
6217 discarded (as if <link to="IConsole::discardSavedState"/> were
6218 called).
6219 </note>
6220
6221 <result name="VBOX_E_INVALID_VM_STATE">
6222 Virtual machine is running.
6223 </result>
6224 </desc>
6225 <param name="progress" type="IProgress" dir="return">
6226 <desc>Progress object to track the operation completion.</desc>
6227 </param>
6228 </method>
6229
6230 <method name="discardCurrentSnapshotAndState">
6231 <desc>
6232
6233 This method is equivalent to
6234 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6235 (currentSnapshot.id(), progress) followed by
6236 <link to="#discardCurrentState"/>.
6237
6238 As a result, the machine will be fully restored from the
6239 snapshot preceding the current snapshot, while both the current
6240 snapshot and the current machine state will be discarded.
6241
6242 If the current snapshot is the first snapshot of the machine (i.e. it
6243 has the only snapshot), the current machine state will be
6244 discarded <b>before</b> discarding the snapshot. In other words, the
6245 machine will be restored from its last snapshot, before discarding
6246 it. This differs from performing a single
6247 <link to="#discardSnapshot"/> call (note that no
6248 <link to="#discardCurrentState"/> will be possible after it)
6249 to the effect that the latter will preserve the current state instead of
6250 discarding it.
6251
6252 Unless explicitly mentioned otherwise, all remarks and
6253 limitations of the above two methods also apply to this method.
6254
6255 <note>
6256 The machine must not be running, otherwise the operation
6257 will fail.
6258 </note>
6259
6260 <note>
6261 If the machine state is <link to="MachineState_Saved">Saved</link>
6262 prior to this operation, the saved state file will be implicitly
6263 discarded (as if <link to="#discardSavedState"/> were
6264 called).
6265 </note>
6266
6267 <note>
6268 This method is more efficient than calling both of the above
6269 methods separately: it requires less IPC calls and provides
6270 a single progress object.
6271 </note>
6272
6273 <result name="VBOX_E_INVALID_VM_STATE">
6274 Virtual machine is running.
6275 </result>
6276 </desc>
6277 <param name="progress" type="IProgress" dir="return">
6278 <desc>Progress object to track the operation completion.</desc>
6279 </param>
6280 </method>
6281
6282 <method name="registerCallback">
6283 <desc>
6284 Registers a new console callback on this instance. The methods of the
6285 callback interface will be called by this instance when the appropriate
6286 event occurs.
6287 </desc>
6288 <param name="callback" type="IConsoleCallback" dir="in"/>
6289 </method>
6290
6291 <method name="unregisterCallback">
6292 <desc>
6293 Unregisters the console callback previously registered using
6294 <link to="#registerCallback"/>.
6295 <result name="E_INVALIDARG">
6296 Given @a callback handler is not registered.
6297 </result>
6298 </desc>
6299 <param name="callback" type="IConsoleCallback" dir="in"/>
6300 </method>
6301 </interface>
6302
6303 <!--
6304 // IHost
6305 /////////////////////////////////////////////////////////////////////////
6306 -->
6307
6308 <interface
6309 name="IHostDVDDrive" extends="$unknown"
6310 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6311 wsmap="managed"
6312 >
6313 <desc>
6314 The IHostDVDDrive interface represents the physical CD/DVD drive
6315 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6316 </desc>
6317
6318 <attribute name="name" type="wstring" readonly="yes">
6319 <desc>
6320 Returns the platform-specific device identifier.
6321 On DOS-like platforms, it is a drive name (e.g. R:).
6322 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6323 </desc>
6324 </attribute>
6325 <attribute name="description" type="wstring" readonly="yes">
6326 <desc>
6327 Returns a human readable description for the drive. This
6328 description usually contains the product and vendor name. A
6329 @c null string is returned if the description is not available.
6330 </desc>
6331 </attribute>
6332 <attribute name="udi" type="wstring" readonly="yes">
6333 <desc>
6334 Returns the unique device identifier for the drive. This
6335 attribute is reserved for future use instead of
6336 <link to="#name"/>. Currently it is not used and may return
6337 @c null on some platforms.
6338 </desc>
6339 </attribute>
6340
6341 </interface>
6342
6343 <interface
6344 name="IHostFloppyDrive" extends="$unknown"
6345 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
6346 wsmap="managed"
6347 >
6348 <desc>
6349 The IHostFloppyDrive interface represents the physical floppy drive
6350 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6351 </desc>
6352 <attribute name="name" type="wstring" readonly="yes">
6353 <desc>
6354 Returns the platform-specific device identifier.
6355 On DOS-like platforms, it is a drive name (e.g. A:).
6356 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6357 </desc>
6358 </attribute>
6359 <attribute name="description" type="wstring" readonly="yes">
6360 <desc>
6361 Returns a human readable description for the drive. This
6362 description usually contains the product and vendor name. A
6363 @c null string is returned if the description is not available.
6364 </desc>
6365 </attribute>
6366 <attribute name="udi" type="wstring" readonly="yes">
6367 <desc>
6368 Returns the unique device identifier for the drive. This
6369 attribute is reserved for future use instead of
6370 <link to="#name"/>. Currently it is not used and may return
6371 @c null on some platforms.
6372 </desc>
6373 </attribute>
6374 </interface>
6375
6376 <enumerator
6377 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
6378 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
6379 />
6380
6381 <collection
6382 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
6383 enumerator="IHostFloppyDriveEnumerator"
6384 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
6385 readonly="yes"
6386 >
6387 <method name="findByName">
6388 <desc>
6389 Searches this collection for a host drive with the given name.
6390 <note>
6391 The method returns an error if the given name does not
6392 correspond to any host drive in the collection.
6393 </note>
6394 </desc>
6395 <param name="name" type="wstring" dir="in">
6396 <desc>Name of the host drive to search for</desc>
6397 </param>
6398 <param name="drive" type="IHostFloppyDrive" dir="return">
6399 <desc>Found host drive object</desc>
6400 </param>
6401 </method>
6402 </collection>
6403
6404 <enum
6405 name="HostNetworkInterfaceType"
6406 uuid="763754FA-3246-4539-9590-9E603EDBF706"
6407 >
6408 <desc>
6409 Type of encapsulation. Ethernet encapsulation includes both wired and
6410 wireless Ethernet connections.
6411 <see>IHostNetworkInterface</see>
6412 </desc>
6413
6414 <const name="Unknown" value="0">
6415 <desc>
6416 The type of interface cannot be determined.
6417 </desc>
6418 </const>
6419 <const name="Ethernet" value="1">
6420 <desc>
6421 Ethernet frame encapsulation.
6422 </desc>
6423 </const>
6424 <const name="PPP" value="2">
6425 <desc>
6426 Point-to-point protocol encapsulation.
6427 </desc>
6428 </const>
6429 <const name="SLIP" value="3">
6430 <desc>
6431 Serial line IP encapsulation.
6432 </desc>
6433 </const>
6434 </enum>
6435
6436 <enum
6437 name="HostNetworkInterfaceStatus"
6438 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6439 >
6440 <desc>
6441 Current status of the interface.
6442 <see>IHostNetworkInterface</see>
6443 </desc>
6444
6445 <const name="Unknown" value="0">
6446 <desc>
6447 The state of interface cannot be determined.
6448 </desc>
6449 </const>
6450 <const name="Up" value="1">
6451 <desc>
6452 The interface is fully operational.
6453 </desc>
6454 </const>
6455 <const name="Down" value="2">
6456 <desc>
6457 The interface is not functioning.
6458 </desc>
6459 </const>
6460 </enum>
6461
6462 <interface
6463 name="IHostNetworkInterface" extends="$unknown"
6464 uuid="4fc2445f-fb73-4f55-b3b4-ecee47c7077b"
6465 wsmap="managed"
6466 >
6467 <desc>
6468 Reprents one of host's network interfaces. IP V6 address and network
6469 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6470 separated by colons.
6471 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6472 </desc>
6473 <attribute name="name" type="wstring" readonly="yes">
6474 <desc>Returns the host network interface name.</desc>
6475 </attribute>
6476
6477 <attribute name="id" type="uuid" readonly="yes">
6478 <desc>Returns the interface UUID.</desc>
6479 </attribute>
6480
6481 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6482 <desc>Returns the IP V4 address of the interface.</desc>
6483 </attribute>
6484
6485 <attribute name="networkMask" type="unsigned long" readonly="yes">
6486 <desc>Returns the network mask of the interface.</desc>
6487 </attribute>
6488
6489 <attribute name="IPV6Address" type="wstring" readonly="yes">
6490 <desc>Returns the IP V6 address of the interface.</desc>
6491 </attribute>
6492
6493 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6494 <desc>Returns the IP V6 network mask of the interface.</desc>
6495 </attribute>
6496
6497 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6498 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6499 </attribute>
6500
6501 <attribute name="type" type="HostNetworkInterfaceType" readonly="yes">
6502 <desc>Type of protocol encapsulation used.</desc>
6503 </attribute>
6504
6505 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6506 <desc>Status of the interface.</desc>
6507 </attribute>
6508
6509 <attribute name="real" type="boolean" readonly="yes">
6510 <desc>True if this is a real interface false
6511 if this is a Virtualbox Host Adapter interface.</desc>
6512 </attribute>
6513 </interface>
6514
6515 <interface
6516 name="IHost" extends="$unknown"
6517 uuid="ba0cb246-478a-4a2b-930e-51ce740ada9c"
6518 wsmap="managed"
6519 >
6520 <desc>
6521 The IHost interface represents the physical machine that this VirtualBox
6522 installation runs on.
6523
6524 An object implementing this interface is returned by the
6525 <link to="IVirtualBox::host" /> attribute. This interface contains
6526 read-only information about the host's physical hardware (such as what
6527 processors and disks are available, what the host operating system is,
6528 and so on) and also allows for manipulating some of the host's hardware,
6529 such as global USB device filters and host interface networking.
6530
6531 </desc>
6532 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
6533 <desc>List of DVD drives available on the host.</desc>
6534 </attribute>
6535
6536 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
6537 <desc>List of floppy drives available on the host.</desc>
6538 </attribute>
6539
6540 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6541 <desc>
6542 List of USB devices currently attached to the host.
6543 Once a new device is physically attached to the host computer,
6544 it appears in this list and remains there until detached.
6545
6546 <note>
6547 This method may set a @ref com_warnings "warning result code".
6548 </note>
6549 <note>
6550 If USB functionality is not available in the given edition of
6551 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6552 </note>
6553 </desc>
6554 </attribute>
6555
6556 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
6557 <desc>
6558 List of USB device filters in action.
6559 When a new device is physically attached to the host computer,
6560 filters from this list are applied to it (in order they are stored
6561 in the list). The first matched filter will determine the
6562 <link to="IHostUSBDeviceFilter::action">action</link>
6563 performed on the device.
6564
6565 Unless the device is ignored by these filters, filters of all
6566 currently running virtual machines
6567 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6568
6569 <note>
6570 This method may set a @ref com_warnings "warning result code".
6571 </note>
6572 <note>
6573 If USB functionality is not available in the given edition of
6574 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6575 </note>
6576
6577 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6578 </desc>
6579 </attribute>
6580
6581 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6582 <desc>List of host network interfaces currently defined on the host.</desc>
6583 </attribute>
6584
6585 <attribute name="processorCount" type="unsigned long" readonly="yes">
6586 <desc>Number of (logical) CPUs installed in the host system.</desc>
6587 </attribute>
6588
6589 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6590 <desc>Number of (logical) CPUs online in the host system.</desc>
6591 </attribute>
6592
6593 <method name="getProcessorSpeed">
6594 <desc>Query the (approximate) maximum speed of a specified host CPU in
6595 Megahertz.
6596 </desc>
6597 <param name="cpuId" type="unsigned long" dir="in">
6598 <desc>
6599 Identifier of the CPU.
6600 </desc>
6601 </param>
6602 <param name="speed" type="unsigned long" dir="return">
6603 <desc>
6604 Speed value. 0 is returned if value is not known or @a cpuId is
6605 invalid.
6606 </desc>
6607 </param>
6608 </method>
6609
6610 <method name="getProcessorFeature">
6611 <desc>Query whether a CPU feature is supported or not.</desc>
6612 <param name="feature" type="ProcessorFeature" dir="in">
6613 <desc>
6614 CPU Feature identifier.
6615 </desc>
6616 </param>
6617 <param name="supported" type="boolean" dir="return">
6618 <desc>
6619 Feature is supported or not.
6620 </desc>
6621 </param>
6622 </method>
6623
6624 <method name="getProcessorDescription">
6625 <desc>Query the model string of a specified host CPU.
6626 <note>
6627 This function is not implemented in the current version of the
6628 product.
6629 </note>
6630 </desc>
6631 <param name="cpuId" type="unsigned long" dir="in">
6632 <desc>
6633 Identifier of the CPU.
6634 </desc>
6635 </param>
6636 <param name="description" type="wstring" dir="return">
6637 <desc>
6638 Model string. A NULL string is returned if value is not known or
6639 @a cpuId is invalid.
6640 </desc>
6641 </param>
6642 </method>
6643
6644 <attribute name="memorySize" type="unsigned long" readonly="yes">
6645 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6646 </attribute>
6647
6648 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6649 <desc>Available system memory in the host system.</desc>
6650 </attribute>
6651
6652 <attribute name="operatingSystem" type="wstring" readonly="yes">
6653 <desc>Name of the host system's operating system.</desc>
6654 </attribute>
6655
6656 <attribute name="OSVersion" type="wstring" readonly="yes">
6657 <desc>Host operating system's version string.</desc>
6658 </attribute>
6659
6660 <attribute name="UTCTime" type="long long" readonly="yes">
6661 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6662 </attribute>
6663
6664<if target="midl">
6665 <method name="createHostNetworkInterface">
6666 <desc>
6667 Creates a new adapter for Host Interface Networking.
6668 <result name="E_INVALIDARG">
6669 Host network interface @a name already exists.
6670 </result>
6671 </desc>
6672 <param name="name" type="wstring" dir="in">
6673 <desc>
6674 Adapter name.
6675 </desc>
6676 </param>
6677 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6678 <desc>
6679 Created host interface object.
6680 </desc>
6681 </param>
6682 <param name="progress" type="IProgress" dir="return">
6683 <desc>
6684 Progress object to track the operation completion.
6685 </desc>
6686 </param>
6687 </method>
6688 <method name="removeHostNetworkInterface">
6689 <desc>
6690 Removes the given host network interface.
6691 <result name="VBOX_E_OBJECT_NOT_FOUND">
6692 No host network interface matching @a id found.
6693 </result>
6694 </desc>
6695 <param name="id" type="uuid" dir="in">
6696 <desc>
6697 Adapter GUID.
6698 </desc>
6699 </param>
6700 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6701 <desc>
6702 Removed host interface object.
6703 </desc>
6704 </param>
6705 <param name="progress" type="IProgress" dir="return">
6706 <desc>
6707 Progress object to track the operation completion.
6708 </desc>
6709 </param>
6710 </method>
6711</if>
6712
6713 <method name="createUSBDeviceFilter">
6714 <desc>
6715 Creates a new USB device filter. All attributes except
6716 the filter name are set to <tt>null</tt> (any match),
6717 <i>active</i> is <tt>false</tt> (the filter is not active).
6718
6719 The created filter can be added to the list of filters using
6720 <link to="#insertUSBDeviceFilter"/>.
6721
6722 <see>#USBDeviceFilters</see>
6723 </desc>
6724 <param name="name" type="wstring" dir="in">
6725 <desc>
6726 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6727 for more info.
6728 </desc>
6729 </param>
6730 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6731 <desc>Created filter object.</desc>
6732 </param>
6733 </method>
6734
6735 <method name="insertUSBDeviceFilter">
6736 <desc>
6737 Inserts the given USB device to the specified position
6738 in the list of filters.
6739
6740 Positions are numbered starting from <tt>0</tt>. If the specified
6741 position is equal to or greater than the number of elements in
6742 the list, the filter is added at the end of the collection.
6743
6744 <note>
6745 Duplicates are not allowed, so an attempt to insert a
6746 filter that is already in the list, will return an
6747 error.
6748 </note>
6749 <note>
6750 This method may set a @ref com_warnings "warning result code".
6751 </note>
6752 <note>
6753 If USB functionality is not available in the given edition of
6754 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6755 </note>
6756
6757 <see>#USBDeviceFilters</see>
6758
6759 <result name="VBOX_E_INVALID_OBJECT_STATE">
6760 USB device filter is not created within this VirtualBox instance.
6761 </result>
6762 <result name="E_INVALIDARG">
6763 USB device filter already in list.
6764 </result>
6765
6766 </desc>
6767 <param name="position" type="unsigned long" dir="in">
6768 <desc>Position to insert the filter to.</desc>
6769 </param>
6770 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6771 <desc>USB device filter to insert.</desc>
6772 </param>
6773 </method>
6774
6775 <method name="removeUSBDeviceFilter">
6776 <desc>
6777 Removes a USB device filter from the specified position in the
6778 list of filters.
6779
6780 Positions are numbered starting from <tt>0</tt>. Specifying a
6781 position equal to or greater than the number of elements in
6782 the list will produce an error.
6783
6784 <note>
6785 This method may set a @ref com_warnings "warning result code".
6786 </note>
6787 <note>
6788 If USB functionality is not available in the given edition of
6789 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6790 </note>
6791
6792 <see>#USBDeviceFilters</see>
6793
6794 <result name="E_INVALIDARG">
6795 USB device filter list empty or invalid @a position.
6796 </result>
6797
6798 </desc>
6799 <param name="position" type="unsigned long" dir="in">
6800 <desc>Position to remove the filter from.</desc>
6801 </param>
6802 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6803 <desc>Removed USB device filter.</desc>
6804 </param>
6805 </method>
6806
6807 <method name="findHostDVDDrive">
6808 <desc>
6809 Searches for a host DVD drive with the given @c name.
6810
6811 <result name="VBOX_E_OBJECT_NOT_FOUND">
6812 Given @c name does not correspond to any host drive.
6813 </result>
6814
6815 </desc>
6816 <param name="name" type="wstring" dir="in">
6817 <desc>Name of the host drive to search for</desc>
6818 </param>
6819 <param name="drive" type="IHostDVDDrive" dir="return">
6820 <desc>Found host drive object</desc>
6821 </param>
6822 </method>
6823
6824 <method name="findHostNetworkInterfaceByName">
6825 <desc>
6826 Searches through all host network interfaces for an interface with
6827 the given @c name.
6828 <note>
6829 The method returns an error if the given @c name does not
6830 correspond to any host network interface.
6831 </note>
6832 </desc>
6833 <param name="name" type="wstring" dir="in">
6834 <desc>Name of the host network interface to search for.</desc>
6835 </param>
6836 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6837 <desc>Found host network interface object.</desc>
6838 </param>
6839 </method>
6840 <method name="findHostNetworkInterfaceById">
6841 <desc>
6842 Searches through all host network interfaces for an interface with
6843 the given GUID.
6844 <note>
6845 The method returns an error if the given GUID does not
6846 correspond to any host network interface.
6847 </note>
6848 </desc>
6849 <param name="id" type="uuid" dir="in">
6850 <desc>GUID of the host network interface to search for.</desc>
6851 </param>
6852 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6853 <desc>Found host network interface object.</desc>
6854 </param>
6855 </method>
6856 </interface>
6857
6858 <!--
6859 // ISystemProperties
6860 /////////////////////////////////////////////////////////////////////////
6861 -->
6862
6863 <interface
6864 name="ISystemProperties"
6865 extends="$unknown"
6866 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6867 wsmap="managed"
6868 >
6869 <desc>
6870 The ISystemProperties interface represents global properties of the given
6871 VirtualBox installation.
6872
6873 These properties define limits and default values for various attributes
6874 and parameters. Most of the properties are read-only, but some can be
6875 changed by a user.
6876 </desc>
6877
6878 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6879 <desc>Minimum guest system memory in Megabytes.</desc>
6880 </attribute>
6881
6882 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6883 <desc>Maximum guest system memory in Megabytes.</desc>
6884 </attribute>
6885
6886 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6887 <desc>Minimum guest video memory in Megabytes.</desc>
6888 </attribute>
6889
6890 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6891 <desc>Maximum guest video memory in Megabytes.</desc>
6892 </attribute>
6893
6894 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6895 <desc>Minimum CPU count.</desc>
6896 </attribute>
6897
6898 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6899 <desc>Maximum CPU count.</desc>
6900 </attribute>
6901
6902 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6903 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6904 </attribute>
6905
6906 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6907 <desc>
6908 Number of network adapters associated with every
6909 <link to="IMachine"/> instance.
6910 </desc>
6911 </attribute>
6912
6913 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
6914 <desc>
6915 Number of serial ports associated with every
6916 <link to="IMachine"/> instance.
6917 </desc>
6918 </attribute>
6919
6920 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
6921 <desc>
6922 Number of parallel ports associated with every
6923 <link to="IMachine"/> instance.
6924 </desc>
6925 </attribute>
6926
6927 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
6928 <desc>
6929 Maximum device position in the boot order. This value corresponds
6930 to the total number of devices a machine can boot from, to make it
6931 possible to include all possible devices to the boot list.
6932 <see><link to="IMachine::setBootOrder"/></see>
6933 </desc>
6934 </attribute>
6935
6936 <attribute name="defaultMachineFolder" type="wstring">
6937 <desc>
6938 Full path to the default directory used to create new or open
6939 existing machines when a settings file name contains no
6940 path.
6941
6942 The initial value of this property is
6943 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
6944 VirtualBox_home</link><tt>&gt;/Machines</tt>.
6945
6946 <note>
6947 Setting this property to <tt>null</tt> will restore the
6948 initial value.
6949 </note>
6950 <note>
6951 When settings this property, the specified path can be
6952 absolute (full path) or relative
6953 to the <link to="IVirtualBox::homeFolder">
6954 VirtualBox home directory</link>.
6955 When reading this property, a full path is
6956 always returned.
6957 </note>
6958 <note>
6959 The specified path may not exist, it will be created
6960 when necessary.
6961 </note>
6962
6963 <see>
6964 <link to="IVirtualBox::createMachine"/>,
6965 <link to="IVirtualBox::openMachine"/>
6966 </see>
6967 </desc>
6968 </attribute>
6969
6970 <attribute name="defaultHardDiskFolder" type="wstring">
6971 <desc>
6972 Full path to the default directory used to create new or open existing
6973 virtual disks.
6974
6975 This path is used when the storage unit of a hard disk is a regular file
6976 in the host's file system and only a file name that contains no path is
6977 given.
6978
6979 The initial value of this property is
6980 <tt>&lt;</tt>
6981 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
6982 <tt>&gt;/HardDisks</tt>.
6983
6984 <note>
6985 Setting this property to <tt>null</tt> will restore the
6986 initial value.
6987 </note>
6988 <note>
6989 When settings this property, the specified path can be relative
6990 to the
6991 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
6992 absolute. When reading this property, a full path is
6993 always returned.
6994 </note>
6995 <note>
6996 The specified path may not exist, it will be created
6997 when necessary.
6998 </note>
6999
7000 <see>
7001 IHardDisk,
7002 <link to="IVirtualBox::createHardDisk"/>,
7003 <link to="IVirtualBox::openHardDisk"/>,
7004 <link to="IMedium::location"/>
7005 </see>
7006 </desc>
7007 </attribute>
7008
7009 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7010 <desc>
7011 List of all hard disk storage formats supported by this VirtualBox
7012 installation.
7013
7014 Keep in mind that the hard disk format identifier
7015 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7016 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7017 hard disk format is a case-insensitive string. This means that, for
7018 example, all of the following strings:
7019 <pre>
7020 "VDI"
7021 "vdi"
7022 "VdI"</pre>
7023 refer to the same hard disk format.
7024
7025 Note that the virtual hard disk framework is backend-based, therefore
7026 the list of supported formats depends on what backends are currently
7027 installed.
7028
7029 <see>
7030 <link to="IHardDiskFormat"/>,
7031 </see>
7032 </desc>
7033 </attribute>
7034
7035 <attribute name="defaultHardDiskFormat" type="wstring">
7036 <desc>
7037 Identifier of the default hard disk format used by VirtualBox.
7038
7039 The hard disk format set by this attribute is used by VirtualBox
7040 when the hard disk format was not specified explicitly. One example is
7041 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7042 format argument. A more complex example is implicit creation of
7043 differencing hard disks when taking a snapshot of a virtual machine:
7044 this operation will try to use a format of the parent hard disk first
7045 and if this format does not support differencing hard disks the default
7046 format specified by this argument will be used.
7047
7048 The list of supported hard disk formats may be obtained by the
7049 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7050 format must have a capability to create differencing hard disks;
7051 otherwise opeartions that create hard disks implicitly may fail
7052 unexpectedly.
7053
7054 The initial value of this property is <tt>VDI</tt> in the current
7055 version of the VirtualBox product, but may change in the future.
7056
7057 <note>
7058 Setting this property to <tt>null</tt> will restore the
7059 initial value.
7060 </note>
7061
7062 <see>
7063 <link to="#hardDiskFormats"/>,
7064 <link to="IHardDiskFormat::id"/>,
7065 <link to="IVirtualBox::createHardDisk"/>
7066 </see>
7067 </desc>
7068 </attribute>
7069
7070 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7071 <desc>
7072 Library that provides authentication for VRDP clients. The library
7073 is used if a virtual machine's authentication type is set to "external"
7074 in the VM RemoteDisplay configuration.
7075
7076 The system library extension (".DLL" or ".so") must be omitted.
7077 A full path can be specified; if not, then the library must reside on the
7078 system's default library path.
7079
7080 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7081 of that name in one of the default VirtualBox library directories.
7082
7083 For details about VirtualBox authentication libraries and how to implement
7084 them, please refer to the VirtualBox manual.
7085
7086 <note>
7087 Setting this property to <tt>null</tt> will restore the
7088 initial value.
7089 </note>
7090 </desc>
7091 </attribute>
7092
7093 <attribute name="webServiceAuthLibrary" type="wstring">
7094 <desc>
7095 Library that provides authentication for webservice clients. The library
7096 is used if a virtual machine's authentication type is set to "external"
7097 in the VM RemoteDisplay configuration and will be called from
7098 within the <link to="IWebsessionManager::logon" /> implementation.
7099
7100 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7101 there is no per-VM setting for this, as the webservice is a global
7102 resource (if it is running). Only for this setting (for the webservice),
7103 setting this value to a literal "null" string disables authentication,
7104 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7105 no matter what user name and password are supplied.
7106
7107 The initial value of this property is <tt>VRDPAuth</tt>,
7108 meaning that the webservice will use the same authentication
7109 library that is used by default for VBoxVRDP (again, see
7110 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7111 The format and calling convention of authentication libraries
7112 is the same for the webservice as it is for VBoxVRDP.
7113
7114 </desc>
7115 </attribute>
7116
7117 <attribute name="HWVirtExEnabled" type="boolean">
7118 <desc>
7119 This specifies the default value for hardware virtualization
7120 extensions. If enabled, virtual machines will make use of
7121 hardware virtualization extensions such as Intel VT-x and
7122 AMD-V by default. This value can be overridden by each VM
7123 using their <link to="IMachine::HWVirtExEnabled" /> property.
7124 </desc>
7125 </attribute>
7126
7127 <attribute name="LogHistoryCount" type="unsigned long">
7128 <desc>
7129 This value specifies how many old release log files are kept.
7130 </desc>
7131 </attribute>
7132 </interface>
7133
7134 <!--
7135 // IGuest
7136 /////////////////////////////////////////////////////////////////////////
7137 -->
7138
7139 <interface
7140 name="IGuestOSType" extends="$unknown"
7141 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7142 wsmap="struct"
7143 >
7144 <desc>
7145 </desc>
7146
7147 <attribute name="familyId" type="wstring" readonly="yes">
7148 <desc>Guest OS family identifier string.</desc>
7149 </attribute>
7150
7151 <attribute name="familyDescription" type="wstring" readonly="yes">
7152 <desc>Human readable description of the guest OS family.</desc>
7153 </attribute>
7154
7155 <attribute name="id" type="wstring" readonly="yes">
7156 <desc>Guest OS identifier string.</desc>
7157 </attribute>
7158
7159 <attribute name="description" type="wstring" readonly="yes">
7160 <desc>Human readable description of the guest OS.</desc>
7161 </attribute>
7162
7163 <attribute name="is64Bit" type="boolean" readonly="yes">
7164 <desc>Returns @c true if the given OS is 64-bit</desc>
7165 </attribute>
7166
7167 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7168 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7169 </attribute>
7170
7171 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7172 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7173 </attribute>
7174
7175 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7176 <desc>Recommended RAM size in Megabytes.</desc>
7177 </attribute>
7178
7179 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7180 <desc>Recommended video RAM size in Megabytes.</desc>
7181 </attribute>
7182
7183 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7184 <desc>Recommended hard disk size in Megabytes.</desc>
7185 </attribute>
7186
7187 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7188 <desc>Returns recommended network adapter for this OS type.</desc>
7189 </attribute>
7190 </interface>
7191
7192 <interface
7193 name="IGuest" extends="$unknown"
7194 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7195
7196 wsmap="suppress"
7197 >
7198 <desc>
7199 The IGuest interface represents information about the operating system
7200 running inside the virtual machine. Used in
7201 <link to="IConsole::guest"/>.
7202
7203 IGuest provides information about the guest operating system, whether
7204 Guest Additions are installed and other OS-specific virtual machine
7205 properties.
7206 </desc>
7207
7208 <attribute name="OSTypeId" type="wstring" readonly="yes">
7209 <desc>
7210 Identifier of the Guest OS type as reported by the Guest
7211 Additions.
7212 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7213 an IGuestOSType object representing details about the given
7214 Guest OS type.
7215 <note>
7216 If Guest Additions are not installed, this value will be
7217 the same as <link to="IMachine::OSTypeId"/>.
7218 </note>
7219 </desc>
7220 </attribute>
7221
7222 <attribute name="additionsActive" type="boolean" readonly="yes">
7223 <desc>
7224 Flag whether the Guest Additions are installed and active
7225 in which case their version will be returned by the
7226 <link to="#additionsVersion"/> property.
7227 </desc>
7228 </attribute>
7229
7230 <attribute name="additionsVersion" type="wstring" readonly="yes">
7231 <desc>
7232 Version of the Guest Additions (3 decimal numbers separated
7233 by dots) or empty when the Additions are not installed. The
7234 Additions may also report a version but yet not be active as
7235 the version might be refused by VirtualBox (incompatible) or
7236 other failures occurred.
7237 </desc>
7238 </attribute>
7239
7240 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7241 <desc>
7242 Flag whether seamless guest display rendering (seamless desktop
7243 integration) is supported.
7244 </desc>
7245 </attribute>
7246
7247 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7248 <desc>
7249 Flag whether the guest is in graphics mode. If it is not, then
7250 seamless rendering will not work, resize hints are not immediately
7251 acted on and guest display resizes are probably not initiated by
7252 the guest additions.
7253 </desc>
7254 </attribute>
7255
7256 <attribute name="memoryBalloonSize" type="unsigned long">
7257 <desc>Guest system memory balloon size in megabytes.</desc>
7258 </attribute>
7259
7260 <attribute name="statisticsUpdateInterval" type="unsigned long">
7261 <desc>Interval to update guest statistics in seconds.</desc>
7262 </attribute>
7263
7264 <method name="setCredentials">
7265 <desc>
7266 Store login credentials that can be queried by guest operating
7267 systems with Additions installed. The credentials are transient
7268 to the session and the guest may also choose to erase them. Note
7269 that the caller cannot determine whether the guest operating system
7270 has queried or made use of the credentials.
7271
7272 <result name="VBOX_E_VM_ERROR">
7273 VMM device is not available.
7274 </result>
7275
7276 </desc>
7277 <param name="userName" type="wstring" dir="in">
7278 <desc>User name string, can be empty</desc>
7279 </param>
7280 <param name="password" type="wstring" dir="in">
7281 <desc>Password string, can be empty</desc>
7282 </param>
7283 <param name="domain" type="wstring" dir="in">
7284 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7285 </param>
7286 <param name="allowInteractiveLogon" type="boolean" dir="in">
7287 <desc>
7288 Flag whether the guest should alternatively allow the user to
7289 interactively specify different credentials. This flag might
7290 not be supported by all versions of the Additions.
7291 </desc>
7292 </param>
7293 </method>
7294
7295 <method name="getStatistic">
7296 <desc>
7297 Query specified guest statistics as reported by the VirtualBox Additions.
7298 </desc>
7299 <param name="cpuId" type="unsigned long" dir="in">
7300 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7301 </param>
7302 <param name="statistic" type="GuestStatisticType" dir="in">
7303 <desc>Statistic type.</desc>
7304 </param>
7305 <param name="statVal" type="unsigned long" dir="out">
7306 <desc>Statistics value</desc>
7307 </param>
7308 </method>
7309
7310 </interface>
7311
7312
7313 <!--
7314 // IProgress
7315 /////////////////////////////////////////////////////////////////////////
7316 -->
7317
7318 <interface
7319 name="IProgress" extends="$unknown"
7320 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7321 wsmap="managed"
7322 >
7323 <desc>
7324 The IProgress interface represents a task progress object that allows
7325 to wait for the completion of some asynchronous task.
7326
7327 The task consists of one or more operations that run sequentially,
7328 one by one. There is an individual percentage of completion of the
7329 current operation and the percentage of completion of the task as a
7330 whole. Similarly, you can wait for the completion of a particular
7331 operation or for the completion of the whole task.
7332
7333 Every operation is identified by a number (starting from 0)
7334 and has a separate description.
7335 </desc>
7336
7337 <attribute name="id" type="uuid" readonly="yes">
7338 <desc>ID of the task.</desc>
7339 </attribute>
7340
7341 <attribute name="description" type="wstring" readonly="yes">
7342 <desc>Description of the task.</desc>
7343 </attribute>
7344
7345 <attribute name="initiator" type="$unknown" readonly="yes">
7346 <desc>Initiator of the task.</desc>
7347 </attribute>
7348
7349 <attribute name="cancelable" type="boolean" readonly="yes">
7350 <desc>Whether the task can be interrupted.</desc>
7351 </attribute>
7352
7353 <attribute name="percent" type="long" readonly="yes">
7354 <desc>
7355 Current task progress value in percent.
7356 This value depends on how many operations are already complete.
7357 </desc>
7358 </attribute>
7359
7360 <attribute name="completed" type="boolean" readonly="yes">
7361 <desc>Whether the task has been completed.</desc>
7362 </attribute>
7363
7364 <attribute name="canceled" type="boolean" readonly="yes">
7365 <desc>Whether the task has been canceled.</desc>
7366 </attribute>
7367
7368 <attribute name="resultCode" type="result" readonly="yes">
7369 <desc>
7370 Result code of the progress task.
7371 Valid only if <link to="#completed"/> is true.
7372 </desc>
7373 </attribute>
7374
7375 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7376 <desc>
7377 Extended information about the unsuccessful result of the
7378 progress operation. May be NULL when no extended information
7379 is available.
7380 Valid only if <link to="#completed"/> is true and
7381 <link to="#resultCode"/> indicates a failure.
7382 </desc>
7383 </attribute>
7384
7385 <attribute name="operationCount" type="unsigned long" readonly="yes">
7386 <desc>
7387 Number of operations this task is divided into.
7388 Every task consists of at least one operation.
7389 </desc>
7390 </attribute>
7391
7392 <attribute name="operation" type="unsigned long" readonly="yes">
7393 <desc>Number of the operation being currently executed.</desc>
7394 </attribute>
7395
7396 <attribute name="operationDescription" type="wstring" readonly="yes">
7397 <desc>
7398 Description of the operation being currently executed.
7399 </desc>
7400 </attribute>
7401
7402 <attribute name="operationPercent" type="long" readonly="yes">
7403 <desc>Current operation progress value in percent.</desc>
7404 </attribute>
7405
7406 <method name="waitForCompletion">
7407 <desc>
7408 Waits until the task is done (including all operations) with a
7409 given timeout.
7410
7411 <result name="VBOX_E_IPRT_ERROR">
7412 Failed to wait for task completion.
7413 </result>
7414
7415 </desc>
7416 <param name="timeout" type="long" dir="in">
7417 <desc>
7418 Timeout value in milliseconds.
7419 Specify -1 for an indefinite wait.
7420 </desc>
7421 </param>
7422 </method>
7423
7424 <method name="waitForOperationCompletion">
7425 <desc>
7426 Waits until the given operation is done with a given timeout.
7427
7428 <result name="VBOX_E_IPRT_ERROR">
7429 Failed to wait for operation completion.
7430 </result>
7431
7432 </desc>
7433 <param name="operation" type="unsigned long" dir="in">
7434 <desc>
7435 Number of the operation to wait for.
7436 Must be less than <link to="#operationCount"/>.
7437 </desc>
7438 </param>
7439 <param name="timeout" type="long" dir="in">
7440 <desc>
7441 Timeout value in milliseconds.
7442 Specify -1 for an indefinite wait.
7443 </desc>
7444 </param>
7445 </method>
7446
7447 <method name="cancel">
7448 <desc>
7449 Cancels the task.
7450 <note>
7451 If <link to="#cancelable"/> is <tt>false</tt>, then
7452 this method will fail.
7453 </note>
7454
7455 <result name="VBOX_E_INVALID_OBJECT_STATE">
7456 Operation cannot be canceled.
7457 </result>
7458
7459 </desc>
7460 </method>
7461
7462 </interface>
7463
7464
7465 <!--
7466 // ISnapshot
7467 /////////////////////////////////////////////////////////////////////////
7468 -->
7469
7470 <enumerator
7471 name="ISnapshotEnumerator" type="ISnapshot"
7472 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
7473 />
7474
7475 <collection
7476 name="ISnapshotCollection" type="ISnapshot"
7477 enumerator="ISnapshotEnumerator"
7478 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
7479 readonly="yes"
7480 />
7481
7482 <interface
7483 name="ISnapshot" extends="$unknown"
7484 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
7485 wsmap="managed"
7486 >
7487 <desc>
7488 The ISnapshot interface represents a snapshot of the virtual
7489 machine.
7490
7491 The <i>snapshot</i> stores all the information about a virtual
7492 machine necessary to bring it to exactly the same state as it was at
7493 the time of taking the snapshot. The snapshot includes:
7494
7495 <ul>
7496 <li>all settings of the virtual machine (i.e. its hardware
7497 configuration: RAM size, attached hard disks, etc.)
7498 </li>
7499 <li>the execution state of the virtual machine (memory contents,
7500 CPU state, etc.).
7501 </li>
7502 </ul>
7503
7504 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7505 or <i>online</i> (taken when the VM is running). The execution
7506 state of the offline snapshot is called a <i>zero execution state</i>
7507 (it doesn't actually contain any information about memory contents
7508 or the CPU state, assuming that all hardware is just powered off).
7509
7510 <h3>Snapshot branches</h3>
7511
7512 Snapshots can be chained. Chained snapshots form a branch where
7513 every next snapshot is based on the previous one. This chaining is
7514 mostly related to hard disk branching (see <link to="IHardDisk"/>
7515 description). This means that every time a new snapshot is created,
7516 a new differencing hard disk is implicitly created for all normal
7517 hard disks attached to the given virtual machine. This allows to
7518 fully restore hard disk contents when the machine is later reverted
7519 to a particular snapshot.
7520
7521 In the current implementation, multiple snapshot branches within one
7522 virtual machine are not allowed. Every machine has a single branch,
7523 and <link to="IConsole::takeSnapshot"/> operation adds a new
7524 snapshot to the top of that branch.
7525
7526 Existing snapshots can be discarded using
7527 <link to="IConsole::discardSnapshot"/>.
7528
7529 <h3>Current snapshot</h3>
7530
7531 Every virtual machine has a current snapshot, identified by
7532 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7533 a base for the <i>current machine state</i> (see below), to the effect
7534 that all normal hard disks of the machine and its execution
7535 state are based on this snapshot.
7536
7537 In the current implementation, the current snapshot is always the
7538 last taken snapshot (i.e. the head snapshot on the branch) and it
7539 cannot be changed.
7540
7541 The current snapshot is <tt>null</tt> if the machine doesn't have
7542 snapshots at all; in this case the current machine state is just
7543 current settings of this machine plus its current execution state.
7544
7545 <h3>Current machine state</h3>
7546
7547 The current machine state is what represented by IMachine instances got
7548 directly from IVirtualBox
7549 using <link
7550 to="IVirtualBox::getMachine">getMachine()</link>, <link
7551 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7552 to instances returned by <link to="ISnapshot::machine"/>). This state
7553 is always used when the machine is <link to="IConsole::powerUp"> powered
7554 on</link>.
7555
7556 The current machine state also includes the current execution state.
7557 If the machine is being currently executed
7558 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7559 and above), its execution state is just what's happening now.
7560 If it is powered off (<link to="MachineState_PoweredOff"/> or
7561 <link to="MachineState_Aborted"/>), it has a zero execution state.
7562 If the machine is saved (<link to="MachineState_Saved"/>), its
7563 execution state is what saved in the execution state file
7564 (<link to="IMachine::stateFilePath"/>).
7565
7566 If the machine is in the saved state, then, next time it is powered
7567 on, its execution state will be fully restored from the saved state
7568 file and the execution will continue from the point where the state
7569 was saved.
7570
7571 Similarly to snapshots, the current machine state can be discarded
7572 using <link to="IConsole::discardCurrentState"/>.
7573
7574 <h3>Taking and discarding snapshots</h3>
7575
7576 The table below briefly explains the meaning of every snapshot
7577 operation:
7578
7579 <table>
7580 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7581
7582 <tr><td><link to="IConsole::takeSnapshot"/></td>
7583
7584 <td>Save the current state of the virtual machine, including all
7585 settings, contents of normal hard disks and the current modifications
7586 to immutable hard disks (for online snapshots)</td>
7587
7588 <td>The current state is not changed (the machine will continue
7589 execution if it is being executed when the snapshot is
7590 taken)</td></tr>
7591
7592 <tr><td><link to="IConsole::discardSnapshot"/></td>
7593
7594 <td>Forget the state of the virtual machine stored in the snapshot:
7595 dismiss all saved settings and delete the saved execution state (for
7596 online snapshots)</td>
7597
7598 <td>Other snapshots (including child snapshots, if any) and the
7599 current state are not directly affected</td></tr>
7600
7601 <tr><td><link to="IConsole::discardCurrentState"/></td>
7602
7603 <td>Restore the current state of the virtual machine from the state
7604 stored in the current snapshot, including all settings and hard disk
7605 contents</td>
7606
7607 <td>The current state of the machine existed prior to this operation
7608 is lost</td></tr>
7609
7610 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7611
7612 <td>Completely revert the virtual machine to the state it was in
7613 before the current snapshot has been taken</td>
7614
7615 <td>The current state, as well as the current snapshot, are
7616 lost</td></tr>
7617
7618 </table>
7619
7620 </desc>
7621
7622 <attribute name="id" type="uuid" readonly="yes">
7623 <desc>UUID of the snapshot.</desc>
7624 </attribute>
7625
7626 <attribute name="name" type="wstring">
7627 <desc>Short name of the snapshot.</desc>
7628 </attribute>
7629
7630 <attribute name="description" type="wstring">
7631 <desc>Optional description of the snapshot.</desc>
7632 </attribute>
7633
7634 <attribute name="timeStamp" type="long long" readonly="yes">
7635 <desc>
7636 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7637 </desc>
7638 </attribute>
7639
7640 <attribute name="online" type="boolean" readonly="yes">
7641 <desc>
7642 <tt>true</tt> if this snapshot is an online snapshot and
7643 <tt>false</tt> otherwise.
7644
7645 <note>
7646 When this attribute is <tt>true</tt>, the
7647 <link to="IMachine::stateFilePath"/> attribute of the
7648 <link to="#machine"/> object associated with this snapshot
7649 will point to the saved state file. Otherwise, it will be
7650 <tt>null</tt>.
7651 </note>
7652 </desc>
7653 </attribute>
7654
7655 <attribute name="machine" type="IMachine" readonly="yes">
7656 <desc>
7657 Virtual machine this snapshot is taken on. This object
7658 stores all settings the machine had when taking this snapshot.
7659 <note>
7660 The returned machine object is immutable, i.e. no
7661 any settings can be changed.
7662 </note>
7663 </desc>
7664 </attribute>
7665
7666 <attribute name="parent" type="ISnapshot" readonly="yes">
7667 <desc>
7668 Parent snapshot (a snapshot this one is based on).
7669 <note>
7670 It's not an error to read this attribute on a snapshot
7671 that doesn't have a parent -- a null object will be
7672 returned to indicate this.
7673 </note>
7674 </desc>
7675 </attribute>
7676
7677 <attribute name="children" type="ISnapshotCollection" readonly="yes">
7678 <desc>
7679 Child snapshots (all snapshots having this one as a parent).
7680 <note>
7681 In the current implementation, there can be only one
7682 child snapshot, or no children at all, meaning this is the
7683 last (head) snapshot.
7684 </note>
7685 </desc>
7686 </attribute>
7687
7688 </interface>
7689
7690
7691 <!--
7692 // IMedia
7693 /////////////////////////////////////////////////////////////////////////
7694 -->
7695
7696 <enum
7697 name="MediaState"
7698 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7699 >
7700 <desc>
7701 Virtual media state.
7702 <see>IMedia</see>
7703 </desc>
7704
7705 <const name="NotCreated" value="0">
7706 <desc>
7707 Associated media storage does not exist (either was not created yet or
7708 was deleted).
7709 </desc>
7710 </const>
7711 <const name="Created" value="1">
7712 <desc>
7713 Associated storage exists and accessible.
7714 </desc>
7715 </const>
7716 <const name="LockedRead" value="2">
7717 <desc>
7718 Media is locked for reading, no data modification is possible.
7719 </desc>
7720 </const>
7721 <const name="LockedWrite" value="3">
7722 <desc>
7723 Media is locked for writing, no concurrent data reading or modification
7724 is possible.
7725 </desc>
7726 </const>
7727 <const name="Inaccessible" value="4">
7728 <desc>
7729 Associated media storage is not accessible.
7730 </desc>
7731 </const>
7732 <const name="Creating" value="5">
7733 <desc>
7734 Associated media storage is being created.
7735 </desc>
7736 </const>
7737 <const name="Deleting" value="6">
7738 <desc>
7739 Associated media storage is being deleted.
7740 </desc>
7741 </const>
7742 </enum>
7743
7744 <interface
7745 name="IMedium" extends="$unknown"
7746 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7747 wsmap="managed"
7748 >
7749 <desc>
7750 The IMedium interface is a common interface for all objects representing
7751 virtual media such as hard disks, DVD images.
7752
7753 Each medium is associated with a storage unit (such as a file on the host
7754 computer or a network resource) that holds actual data. The location of
7755 the storage unit is represented by the #location attribute. The value of
7756 this attribute is media type dependent.
7757
7758 The exact media type may be determined by querying the appropriate
7759 interface such as:
7760 <ul>
7761 <li>IHardDisk (virtual hard disks)</li>
7762 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7763 <li>IFloppyImage (raw floppy image files)</li>
7764 </ul>
7765
7766 Existing media are opened using the following methods, depending on the
7767 media type:
7768 <ul>
7769 <li><link to="IVirtualBox::openHardDisk"/></li>
7770 <li><link to="IVirtualBox::openDVDImage"/></li>
7771 <li><link to="IVirtualBox::openFloppyImage"/></li>
7772 </ul>
7773
7774 New hard disk media are created using the
7775 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7776 images are created outside VirtualBox, usually by storing a copy
7777 of the real medium of the corresponding type in a regular file.
7778
7779 <h3>Known Media</h3>
7780
7781 When an existing medium gets opened for the first time, it gets
7782 automatically remembered by the given VirtualBox installation or, in other
7783 words, becomes a <i>known medium</i>. Known media are stored in the media
7784 registry transparently maintained by VirtualBox and stored in settings
7785 files so that this registry is preserved when VirtualBox is not running.
7786
7787 Newly created virtual hard disks get remembered only when the associated
7788 storage unit is actually created (see IHardDisk for more details).
7789
7790 All known media can be enumerated using
7791 <link to="IVirtualBox::hardDisks"/>,
7792 <link to="IVirtualBox::DVDImages"/> and
7793 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7794 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7795 and similar methods or by location using
7796 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7797
7798 Only known media can be attached to virtual machines.
7799
7800 Removing known media from the media registry is performed when the given
7801 medium is closed using the <link to="#close"/> method or when its
7802 associated storage unit is deleted (only for hard disks).
7803
7804 <h3>Accessibility Checks</h3>
7805
7806 The given medium (with the created storage unit) is considered to be
7807 <i>accessible</i> when its storage unit can be successfully read from.
7808 Accessible media are indicated by the <link to="MediaState_Created"/>
7809 value of the <link to="#state"/> attribute. When the storage unit cannot
7810 be read (for example, because it is located on a disconnected network
7811 resource, or was accidentally deleted outside VirtualBox), the medium is
7812 considered to be <i>inaccessible</i> which is indicated by the
7813 <link to="MediaState_Inaccessible"/> state. The details about the reason
7814 of being inaccessible can be obtained using the
7815 <link to="#lastAccessError"/> attribute.
7816
7817 A new accessibility check is performed each time the <link to="#state"/>
7818 attribute is read. Please note that this check may take long time (several
7819 seconds or even minutes, depending on the storage unit location and
7820 format), and will block the calling thread until finished. For this
7821 reason, it is recommended to never read this attribute on the main UI
7822 thread to avoid making the UI unresponsive.
7823
7824 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7825 created for the first time), all known media are in the
7826 <link to="MediaState_Inaccessible"/> state but the value of the <link
7827 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7828 accessibility check is made on startup. This is done to make the
7829 VirtualBox object ready for serving requests as
7830 fast as possible and let the end-user application decide if it needs to
7831 check media accessibility right away or not.
7832 </desc>
7833
7834 <attribute name="id" type="uuid" readonly="yes">
7835 <desc>
7836 UUID of the medium. For a newly created medium, this value is a randomly
7837 generated UUID.
7838
7839 <note>
7840 For media in one of MediaState_NotCreated, MediaState_Creating or
7841 MediaState_Deleting states, the value of this property is undefined
7842 and will most likely be an empty UUID.
7843 </note>
7844 </desc>
7845 </attribute>
7846
7847 <attribute name="description" type="wstring">
7848 <desc>
7849 Optional description of the medium. For newly created media, the value
7850 of this attribute value is <tt>null</tt>.
7851
7852 Media types that don't support this attribute will return E_NOTIMPL in
7853 attempt to get or set this attribute's value.
7854
7855 <note>
7856 For some storage types, reading this attribute may return an outdated
7857 (last known) value when <link to="#state"/> is <link
7858 to="MediaState_Inaccessible"/> or <link
7859 to="MediaState_LockedWrite"/> because the value of this attribute is
7860 stored within the storage unit itself. Also note that changing the
7861 attribute value is not possible in such case, as well as when the
7862 medium is the <link to="MediaState_LockedRead"/> state.
7863 </note>
7864 </desc>
7865 </attribute>
7866
7867 <attribute name="state" type="MediaState" readonly="yes">
7868 <desc>
7869 Current media state. Inspect <link to="MediaState"/> values for details.
7870
7871 Reading this attribute may take long time because a new accessibility
7872 check of the storage unit is performed every time the attribute is read.
7873 This check may cause a significant delay if the storage unit of the
7874 given medium is, for example, a file located on a network share which is
7875 not currently accessible due to connectivity problems -- the call will
7876 not return until a timeout interval defined by the host OS for this
7877 operation expires.
7878
7879 If the last known state of the medium is <link to="MediaState_Created"/>
7880 and the accessibility check fails then the state would be set to
7881 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7882 may be used to get more details about the failure. If the state of the
7883 medium is <link to="MediaState_LockedRead"/> or
7884 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7885 non-null value of <link to="#lastAccessError"/> will indicate a failed
7886 accessibility check in this case.
7887
7888 Note that not all media states are applicable to certain media types.
7889 For example, states <link to="MediaState_NotCreated"/>,
7890 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7891 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
7892 IFloppyImage media.
7893 </desc>
7894 </attribute>
7895
7896 <attribute name="location" type="wstring">
7897 <desc>
7898 Location of the storage unit holding media data.
7899
7900 The format of the location string is media type specific. For media
7901 types that use regular files in a host's file system, the location
7902 string is just a full file name.
7903
7904 Some media types may support changing the storage unit location by
7905 simply changing the value of this property. If this operation is not
7906 supported, the implementation will return E_NOTIMPL in attempt to set
7907 this attribute's value.
7908
7909 When setting a value of the location attribute which is a regular file
7910 in the host's file system, the given file name may be either relative to
7911 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7912 absolute. Note that if the given location specification does not contain
7913 the file extension part then a proper default extension will be
7914 automatically appended by the implementation depending on the media type.
7915 </desc>
7916 </attribute>
7917
7918 <attribute name="name" type="wstring" readonly="yes">
7919 <desc>
7920 Name of the storage unit holding media data.
7921
7922 The returned string is a short version of the <link to="#location"/>
7923 attribute that is suitable for representing the medium in situations
7924 where the full location specification is too long (such as lists
7925 and comboboxes in GUI frontends). This string is also used by frontends
7926 to sort the media list alphabetically when needed.
7927
7928 For example, for locations that are regular files in the host's file
7929 system, the value of this attribute is just a file name (+ extension),
7930 without the path specification.
7931
7932 Note that as opposed to the <link to="#location"/> attribute, the name
7933 attribute will not necessary be unique for a list of media of the
7934 given type and format.
7935 </desc>
7936 </attribute>
7937
7938 <attribute name="size" type="unsigned long long" readonly="yes">
7939 <desc>
7940 Physical size of the storage unit used to hold media data (in bytes).
7941
7942 <note>
7943 For media whose <link to="#state"/> is <link
7944 to="MediaState_Inaccessible"/>, the value of this property is the
7945 last known size. For <link to="MediaState_NotCreated"/> media,
7946 the returned value is zero.
7947 </note>
7948 </desc>
7949 </attribute>
7950
7951 <attribute name="lastAccessError" type="wstring" readonly="yes">
7952 <desc>
7953 Text message that represents the result of the last accessibility
7954 check.
7955
7956 Accessibility checks are performed each time the <link to="#state"/>
7957 attribute is read. A @c null string is returned if the last
7958 accessibility check was successful. A non-null string indicates a
7959 failure and should normally describe a reason of the failure (for
7960 example, a file read error).
7961 </desc>
7962 </attribute>
7963
7964 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
7965 <desc>
7966 Array of UUIDs of all machines this medium is attached to.
7967
7968 A <tt>null</tt> array is returned if this medium is not attached to any
7969 machine or to any machine's snapshot.
7970
7971 <note>
7972 The returned array will include a machine even if this medium is not
7973 attached to that machine in the current state but attached to it in
7974 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
7975 details.
7976 </note>
7977 </desc>
7978 </attribute>
7979
7980 <method name="getSnapshotIds">
7981 <desc>
7982 Returns an array of UUIDs of all snapshots of the given machine where
7983 this medium is attached to it.
7984
7985 If the medium is attached to the machine in the current state, then the
7986 first element in the array will always be the ID of the queried machine
7987 (i.e. the value equal to the @c machineId argument), followed by
7988 snapshot IDs (if any).
7989
7990 If the medium is not attached to the machine in the current state, then
7991 the array will contain only snapshot IDs.
7992
7993 The returned array may be <tt>null</tt> if this medium is not attached
7994 to the given machine at all, neither in the current state nor in one of
7995 snapshots.
7996 </desc>
7997 <param name="machineId" type="uuid" dir="in">
7998 <desc>
7999 UUID of the machine to query.
8000 </desc>
8001 </param>
8002 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
8003 <desc>
8004 Array of snapshot UUIDs of the given machine using this medium.
8005 </desc>
8006 </param>
8007 </method>
8008
8009 <method name="lockRead">
8010 <desc>
8011 Locks this medium for reading.
8012
8013 The read lock is shared: many clients can simultaneously lock the
8014 same media for reading unless it is already locked for writing (see
8015 <link to="#lockWrite"/>) in which case an error is returned.
8016
8017 When the medium is locked for reading, it cannot be modified
8018 from within VirtualBox. This means that any method that changes
8019 the properties of this medium or contents of the storage unit
8020 will return an error (unless explicitly stated otherwise) and
8021 that an attempt to start a virtual machine that wants to modify
8022 the medium will also fail.
8023
8024 When the virtual machine is started up, it locks for reading all
8025 media it uses in read-only mode. If some media cannot be locked
8026 for reading, the startup procedure will fail.
8027
8028 The medium locked for reading must be unlocked using the <link
8029 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8030 can be nested and must be followed by the same number of paired
8031 <link to="#unlockRead"/> calls.
8032
8033 This method sets the media state to <link
8034 to="MediaState_LockedRead"/> on success. The state prior to
8035 this call must be <link to="MediaState_Created"/>, <link
8036 to="MediaState_Inaccessible"/> or <link
8037 to="MediaState_LockedRead"/>. As you can see, inaccessible
8038 media can be locked too. This is not an error; this method
8039 performs a logical lock that prevents modifications of this
8040 media through the VirtualBox API, not a physical lock of the
8041 underlying storage unit.
8042
8043 This method returns the current state of the medium
8044 <b>before</b> the operation.
8045
8046 <result name="VBOX_E_INVALID_OBJECT_STATE">
8047 Invalid media state (e.g. not created, locked, inaccessible,
8048 creating, deleting).
8049 </result>
8050
8051 </desc>
8052 <param name="state" type="MediaState" dir="return">
8053 <desc>
8054 State of the medium after the operation.
8055 </desc>
8056 </param>
8057 </method>
8058
8059 <method name="unlockRead">
8060 <desc>
8061 Cancels the read lock previously set by <link to="#lockRead"/>.
8062
8063 Either on success or on failure, this method returns the current state
8064 of the medium <b>after</b> the operation.
8065
8066 See <link to="#lockRead"/> for more details.
8067
8068 <result name="VBOX_E_INVALID_OBJECT_STATE">
8069 Medium not locked for reading.
8070 </result>
8071
8072 </desc>
8073 <param name="state" type="MediaState" dir="return">
8074 <desc>
8075 State of the medium after the operation.
8076 </desc>
8077 </param>
8078 </method>
8079
8080 <method name="lockWrite">
8081 <desc>
8082 Locks this medium for writing.
8083
8084 The write lock, as opposed to <link to="#lockRead"/>, is
8085 exclusive: there may be only one client that holds a write lock
8086 and there may be no read locks while the write lock is held.
8087
8088 When the medium is locked for writing, it cannot be modified
8089 from within VirtualBox and it is not guaranteed that the values
8090 of its properties are up-to-date. Any method that changes the
8091 properties of this medium or contents of the storage unit will
8092 return an error ((unless explicitly stated otherwise) and an
8093 attempt to start a virtual machine that wants to modify or to
8094 read the medium will also fail.
8095
8096 When the virtual machine is started up, it locks for writing all
8097 media it uses to write data to. If some media cannot be locked
8098 for writing, the startup procedure will fail.
8099
8100 The medium locked for writing must be unlocked using the <link
8101 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8102 can <b>not</b> be nested and must be followed by a paired <link
8103 to="#unlockWrite"/> call.
8104
8105 This method sets the media state to <link
8106 to="MediaState_LockedWrite"/> on success. The state prior to
8107 this call must be <link to="MediaState_Created"/> or <link
8108 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8109 media can be locked too. This is not an error; this method
8110 performs a logical lock that prevents modifications of this
8111 media through the VirtualBox API, not a physical lock of the
8112 underlying storage unit.
8113
8114 Either on success or on failure, this method returns the current
8115 state of the medium <b>before</b> the operation.
8116
8117 <result name="VBOX_E_INVALID_OBJECT_STATE">
8118 Invalid media state (e.g. not created, locked, inaccessible,
8119 creating, deleting).
8120 </result>
8121
8122 </desc>
8123 <param name="state" type="MediaState" dir="return">
8124 <desc>
8125 State of the medium after the operation.
8126 </desc>
8127 </param>
8128 </method>
8129
8130 <method name="unlockWrite">
8131 <desc>
8132 Cancels the write lock previously set by <link to="#lockWrite"/>.
8133
8134 Either on success or on failure, this method returns the current
8135 state of the medium <b>after</b> the operation.
8136
8137 See <link to="#lockWrite"/> for more details.
8138
8139 <result name="VBOX_E_INVALID_OBJECT_STATE">
8140 Medium not locked for writing.
8141 </result>
8142
8143 </desc>
8144 <param name="state" type="MediaState" dir="return">
8145 <desc>
8146 State of the medium after the operation.
8147 </desc>
8148 </param>
8149 </method>
8150
8151 <method name="close">
8152 <desc>
8153 Closes this medium.
8154
8155 The hard disk must not be attached to any known virtual machine
8156 and must not have any known child hard disks, otherwise the
8157 operation will fail.
8158
8159 When the hard disk is successfully closed, it gets removed from
8160 the list of remembered hard disks, but its storage unit is not
8161 deleted. In particular, this means that this hard disk can be
8162 later opened again using the <link
8163 to="IVirtualBox::openHardDisk"/> call.
8164
8165 Note that after this method successfully returns, the given hard
8166 disk object becomes uninitialized. This means that any attempt
8167 to call any of its methods or attributes will fail with the
8168 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8169
8170 <result name="VBOX_E_INVALID_OBJECT_STATE">
8171 Invalid media state (other than not created, created or
8172 inaccessible).
8173 </result>
8174 <result name="VBOX_E_OBJECT_IN_USE">
8175 Medium attached to virtual machine.
8176 </result>
8177 <result name="VBOX_E_FILE_ERROR">
8178 Settings file not accessible.
8179 </result>
8180 <result name="VBOX_E_XML_ERROR">
8181 Could not parse the settings file.
8182 </result>
8183
8184 </desc>
8185 </method>
8186
8187 </interface>
8188
8189
8190 <!--
8191 // IHardDisk
8192 /////////////////////////////////////////////////////////////////////////
8193 -->
8194
8195 <enum
8196 name="HardDiskType"
8197 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8198 >
8199 <desc>
8200 Virtual hard disk type.
8201 <see>IHardDisk</see>
8202 </desc>
8203
8204 <const name="Normal" value="0">
8205 <desc>
8206 Normal hard disk (attached directly or indirectly, preserved
8207 when taking snapshots).
8208 </desc>
8209 </const>
8210 <const name="Immutable" value="1">
8211 <desc>
8212 Immutable hard disk (attached indirectly, changes are wiped out
8213 after powering off the virtual machine).
8214 </desc>
8215 </const>
8216 <const name="Writethrough" value="2">
8217 <desc>
8218 Write through hard disk (attached directly, ignored when
8219 taking snapshots).
8220 </desc>
8221 </const>
8222 </enum>
8223
8224 <interface
8225 name="IHardDiskAttachment" extends="$unknown"
8226 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8227 wsmap="struct"
8228 >
8229 <desc>
8230 The IHardDiskAttachment interface represents a hard disk attachment of a
8231 virtual machine.
8232
8233 Every hard disk attachment specifies a slot of the virtual hard disk
8234 controller and a virtual hard disk attached to this slot.
8235
8236 The array of hard disk attachments is returned by
8237 <link to="IMachine::hardDiskAttachments"/>.
8238
8239 <note>
8240 With the COM API, this is an interface like all the others. With the
8241 webservice, this is mapped to a structure, so querying the attribute
8242 will not return an object, but a complete structure.
8243 </note>
8244 </desc>
8245 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8246 <desc>Hard disk object associated with this attachment.</desc>
8247 </attribute>
8248
8249 <attribute name="bus" type="StorageBus" readonly="yes">
8250 <desc>Interface bus of this attachment.</desc>
8251 </attribute>
8252
8253 <attribute name="channel" type="long" readonly="yes">
8254 <desc>Channel number of this attachment.</desc>
8255 </attribute>
8256
8257 <attribute name="device" type="long" readonly="yes">
8258 <desc>Device slot number of this attachment.</desc>
8259 </attribute>
8260
8261 </interface>
8262
8263 <interface
8264 name="IHardDisk" extends="IMedium"
8265 uuid="244f89fe-1943-464d-baad-2efd73e5d532"
8266 wsmap="managed"
8267 >
8268 <desc>
8269 The IHardDisk interface represents a virtual hard disk drive
8270 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8271
8272 Virtual hard disk objects virtualize the hard disk hardware and look like
8273 regular hard disks for the guest OS running inside the virtual machine.
8274
8275 <h3>Hard Disk Types</h3>
8276
8277 There are three types of hard disks:
8278 <link to="HardDiskType_Normal">Normal</link>,
8279 <link to="HardDiskType_Immutable">Immutable</link> and
8280 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8281 hard disk defines how the hard disk is attached to a virtual machine and
8282 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8283 machine with the attached hard disk is taken. The type of the hard disk is
8284 defined by the <link to="#type"/> attribute.
8285
8286 All hard disks can be also divided in two big groups: <i>base</i> hard
8287 disks and <i>differencing</i> hard disks. A base hard disk contains all
8288 sectors of the hard disk data in its storage unit and therefore can be
8289 used independently. On the contrary, a differencing hard disk contains
8290 only some part of the hard disk data (a subset of sectors) and needs
8291 another hard disk to get access to the missing sectors of data. This
8292 another hard disk is called a <i>parent</i> hard disk and defines a hard
8293 disk to which this differencing hard disk is known to be <i>linked to</i>.
8294 The parent hard disk may be itself a differencing hard disk. This
8295 way, differencing hard disks form a linked hard disk chain. This chain
8296 always ends with the base hard disk which is sometimes referred to as the
8297 root hard disk of this chain. Note that several differencing hard disks
8298 may be linked to the same parent hard disk. This way, all known hard disks
8299 form a hard disk tree which is based on their parent-child relationship.
8300
8301 Differencing hard disks can be distinguished from base hard disks by
8302 querying the <link to="#parent"/> attribute: base hard disks do not have
8303 parents they would depend on, so the value of this attribute is always
8304 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8305 the hard disk tree (from the child hard disk to its parent). It is also
8306 possible to walk down the tree using the <link to="#children"/>
8307 attribute.
8308
8309 Note that the type of all differencing hard disks is
8310 <link to="HardDiskType_Normal">Normal</link>; all other values are
8311 meaningless for them. Base hard disks may be of any type.
8312
8313 <h3>Creating Hard Disks</h3>
8314
8315 New base hard disks are created using
8316 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8317 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8318 disks are usually implicitly created by VirtualBox when needed but may
8319 also be created explicitly using <link to="#createDiffStorage"/>.
8320
8321 After the hard disk is successfully created (including the storage unit)
8322 or opened, it becomes a known hard disk (remembered in the internal media
8323 registry). Known hard disks can be attached to a virtual machine, accessed
8324 through <link to="IVirtualBox::getHardDisk"/> and
8325 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8326 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8327
8328 The following methods, besides <link to="IMedium::close"/>,
8329 automatically remove the hard disk from the media registry:
8330 <ul>
8331 <li><link to="#deleteStorage"/></li>
8332 <li><link to="#mergeTo"/></li>
8333 </ul>
8334
8335 If the storage unit of the hard disk is a regular file in the host's
8336 file system then the rules stated in the description of the
8337 <link to="IMedium::location"/> attribute apply when setting its value. In
8338 addition, a plain file name without any path may be given, in which case
8339 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8340 folder</link> will be prepended to it.
8341
8342 <h4>Automatic composition of the file name part</h4>
8343
8344 Another extension to the <link to="IMedium::location"/> attribute is that
8345 there is a possibility to cause VirtualBox to compose a unique value for
8346 the file name part of the location using the UUID of the hard disk. This
8347 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8348 e.g. before the storage unit is created, and works as follows. You set the
8349 value of the <link to="IMedium::location"/> attribute to a location
8350 specification which only contains the path specification but not the file
8351 name part and ends with either a forward slash or a backslash character.
8352 In response, VirtualBox will generate a new UUID for the hard disk and
8353 compose the file name using the following pattern:
8354 <pre>
8355 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8356 </pre>
8357 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8358 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8359 is the default extension for the storage format of this hard disk. After
8360 that, you may call any of the methods that create a new hard disk storage
8361 unit and they will use the generated UUID and file name.
8362
8363 <h3>Attaching Hard Disks</h3>
8364
8365 Hard disks are attached to virtual machines using the
8366 <link to="IMachine::attachHardDisk"/> method and detached using the
8367 <link to="IMachine::detachHardDisk"/> method. Depending on their
8368 <link to="#type"/>, hard disks are attached either
8369 <i>directly</i> or <i>indirectly</i>.
8370
8371 When a hard disk is being attached directly, it is associated with the
8372 virtual machine and used for hard disk operations when the machine is
8373 running. When a hard disk is being attached indirectly, a new differencing
8374 hard disk linked to it is implicitly created and this differencing hard
8375 disk is associated with the machine and used for hard disk operations.
8376 This also means that if <link to="IMachine::attachHardDisk"/> performs
8377 a direct attachment then the same hard disk will be returned in response
8378 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8379 an indirect attachment is performed then
8380 <link to="IMachine::getHardDisk"/> will return the implicitly created
8381 differencing hard disk, not the original one passed to <link
8382 to="IMachine::attachHardDisk"/>. The following table shows the
8383 dependency of the attachment type on the hard disk type:
8384
8385 <table>
8386 <tr>
8387 <th>Hard Disk Type</th>
8388 <th>Direct or Indirect?</th>
8389 </tr>
8390 <tr>
8391 <td>Normal (Base)</td>
8392 <td>
8393 Normal base hard disks that do not have children (i.e. differencing
8394 hard disks linked to them) and that are not already attached to
8395 virtual machines in snapshots are attached <b>directly</b>.
8396 Otherwise, they are attached <b>indirectly</b> because having
8397 dependent children or being part of the snapshot makes it impossible
8398 to modify hard disk contents without breaking the integrity of the
8399 dependent party. The <link to="#readOnly"/> attribute allows to
8400 quickly determine the kind of the attachment for the given hard
8401 disk. Note that if a normal base hard disk is to be indirectly
8402 attached to a virtual machine with snapshots then a special
8403 procedure called <i>smart attachment</i> is performed (see below).
8404 </td>
8405 </tr>
8406 <tr>
8407 <td>Normal (Differencing)</td>
8408 <td>
8409 Differencing hard disks are like normal base hard disks: attached
8410 <b>directly</b> if they do not have children and are not attached to
8411 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8412 that the smart attachment procedure is never performed for
8413 differencing hard disks.
8414 </td>
8415 </tr>
8416 <tr>
8417 <td>Immutable</td>
8418 <td>
8419 Immutable hard disks are always attached <b>indirectly</b> because
8420 they are designed to be non-writable. If an immutable hard disk is
8421 attached to a virtual machine with snapshots then a special
8422 procedure called smart attachment is performed (see below).
8423 </td>
8424 </tr>
8425 <tr>
8426 <td>Writethrough</td>
8427 <td>
8428 Writethrough hard disks are always attached <b>directly</b>, also as
8429 designed. This also means that writethrough hard disks cannot have
8430 other hard disks linked to them at all.
8431 </td>
8432 </tr>
8433 </table>
8434
8435 Note that the same hard disk, regardless of its type, may be attached to
8436 more than one virtual machine at a time. In this case, the machine that is
8437 started first gains exclusive access to the hard disk and attempts to
8438 start other machines having this hard disk attached will fail until the
8439 first machine is powered down.
8440
8441 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8442 that the given hard disk remains associated with the given machine after a
8443 successful <link to="IMachine::detachHardDisk"/> call until
8444 <link to="IMachine::saveSettings"/> is called to save all changes to
8445 machine settings to disk. This deferring is necessary to guarantee that
8446 the hard disk configuration may be restored at any time by a call to
8447 <link to="IMachine::discardSettings"/> before the settings
8448 are saved (committed).
8449
8450 Note that if <link to="IMachine::discardSettings"/> is called after
8451 indirectly attaching some hard disks to the machine but before a call to
8452 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8453 all differencing hard disks implicitly created by
8454 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8455 Such implicitly created hard disks will also be immediately deleted when
8456 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8457 call if it is made before <link to="IMachine::saveSettings"/>. This
8458 implicit deletion is safe because newly created differencing hard
8459 disks do not contain any user data.
8460
8461 However, keep in mind that detaching differencing hard disks that were
8462 implicitly created by <link to="IMachine::attachHardDisk"/>
8463 before the last <link to="IMachine::saveSettings"/> call will
8464 <b>not</b> implicitly delete them as they may already contain some data
8465 (for example, as a result of virtual machine execution). If these hard
8466 disks are no more necessary, the caller can always delete them explicitly
8467 using <link to="#deleteStorage"/> after they are actually de-associated
8468 from this machine by the <link to="IMachine::saveSettings"/> call.
8469
8470 <h3>Smart Attachment</h3>
8471
8472 When normal base or immutable hard disks are indirectly attached to a
8473 virtual machine then some additional steps are performed to make sure the
8474 virtual machine will have the most recent "view" of the hard disk being
8475 attached. These steps include walking through the machine's snapshots
8476 starting from the current one and going through ancestors up to the first
8477 snapshot. Hard disks attached to the virtual machine in all
8478 of the encountered snapshots are checked whether they are descendants of
8479 the given normal base or immutable hard disk. The first found child (which
8480 is the differencing hard disk) will be used instead of the normal base or
8481 immutable hard disk as a parent for creating a new differencing hard disk
8482 that will be actually attached to the machine. And only if no descendants
8483 are found or if the virtual machine does not have any snapshots then the
8484 normal base or immutable hard disk will be used itself as a parent for
8485 this differencing hard disk.
8486
8487 It is easier to explain what smart attachment does using the
8488 following example:
8489 <pre>
8490BEFORE attaching B.vdi: AFTER attaching B.vdi:
8491
8492Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8493 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8494 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8495 Snapshot 4 (none) Snapshot 4 (none)
8496 CurState (none) CurState (D3->D2.vdi)
8497
8498 NOT
8499 ...
8500 CurState (D3->B.vdi)
8501 </pre>
8502 The first column is the virtual machine configuration before the base hard
8503 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8504 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8505 mean that the hard disk that is actually attached to the machine is a
8506 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8507 another hard disk, <tt>B.vdi</tt>.
8508
8509 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8510 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8511 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8512 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8513 it cannot be attached directly and needs an indirect attachment (i.e.
8514 implicit creation of a new differencing hard disk). Due to the smart
8515 attachment procedure, the new differencing hard disk
8516 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8517 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8518 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8519 machine.
8520
8521 Note that if there is more than one descendant hard disk of the given base
8522 hard disk found in a snapshot, and there is an exact device, channel and
8523 bus match, then this exact match will be used. Otherwise, the youngest
8524 descendant will be picked up.
8525
8526 There is one more important aspect of the smart attachment procedure which
8527 is not related to snapshots at all. Before walking through the snapshots
8528 as described above, the backup copy of the current list of hard disk
8529 attachment is searched for descendants. This backup copy is created when
8530 the hard disk configuration is changed for the first time after the last
8531 <link to="IMachine::saveSettings"/> call and used by
8532 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8533 changes. When such a descendant is found in this backup copy, it will be
8534 simply re-attached back, without creating a new differencing hard disk for
8535 it. This optimization is necessary to make it possible to re-attach the
8536 base or immutable hard disk to a different bus, channel or device slot
8537 without losing the contents of the differencing hard disk actually
8538 attached to the machine in place of it.
8539 </desc>
8540
8541 <attribute name="format" type="wstring" readonly="yes">
8542 <desc>
8543 Storage format of this hard disk.
8544
8545 The value of this attribute is a string that specifies a backend used to
8546 store hard disk data. The storage format is defined when you create a
8547 new hard disk or automatically detected when you open an existing hard
8548 disk medium, and cannot be changed later.
8549
8550 The list of all storage formats supported by this VirtualBox
8551 installation can be obtained using
8552 <link to="ISystemProperties::hardDiskFormats"/>.
8553 </desc>
8554 </attribute>
8555
8556 <attribute name="type" type="HardDiskType">
8557 <desc>
8558 Type (role) of this hard disk.
8559
8560 The following constraints apply when changing the value of this
8561 attribute:
8562 <ul>
8563 <li>If a hard disk is attached to a virtual machine (either in the
8564 current state or in one of the snapshots), its type cannot be
8565 changed.
8566 </li>
8567 <li>As long as the hard disk has children, its type cannot be set
8568 to <link to="HardDiskType_Writethrough"/>.
8569 </li>
8570 <li>The type of all differencing hard disks is
8571 <link to="HardDiskType_Normal"/> and cannot be changed.
8572 </li>
8573 </ul>
8574
8575 The type of a newly created or opened hard disk is set to
8576 <link to="HardDiskType_Normal"/>.
8577 </desc>
8578 </attribute>
8579
8580 <attribute name="parent" type="IHardDisk" readonly="yes">
8581 <desc>
8582 Parent of this hard disk (a hard disk this hard disk is directly based
8583 on).
8584
8585 Only differencing hard disks have parents. For base (non-differencing)
8586 hard disks, <tt>null</tt> is returned.
8587 </desc>
8588 </attribute>
8589
8590 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8591 <desc>
8592 Children of this hard disk (all differencing hard disks directly based
8593 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8594 does not have any children.
8595 </desc>
8596 </attribute>
8597
8598 <attribute name="root" type="IHardDisk" readonly="yes">
8599 <desc>
8600 Root hard disk of this hard disk.
8601
8602 If this is a differencing hard disk, its root hard disk is the base hard
8603 disk the given hard disk branch starts from. For all other types of hard
8604 disks, this property returns the hard disk object itself (i.e. the same
8605 object this property is read on).
8606 </desc>
8607 </attribute>
8608
8609 <attribute name="readOnly" type="boolean" readonly="yes">
8610 <desc>
8611 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8612 otherwise.
8613
8614 A hard disk is considered to be read-only when its contents cannot be
8615 modified without breaking the integrity of other parties that depend on
8616 this hard disk such as its child hard disks or snapshots of virtual
8617 machines where this hard disk is attached to these machines. If there
8618 are no children and no such snapshots then there is no dependency and
8619 the hard disk is not read-only.
8620
8621 The value of this attribute can be used to determine the kind of the
8622 attachment that will take place when attaching this hard disk to a
8623 virtual machine. If the value is <tt>false</tt> then the hard disk will
8624 be attached directly. If the value is <tt>true</tt> then the hard disk
8625 will be attached indirectly by creating a new differencing child hard
8626 disk for that. See the interface description for more information.
8627
8628 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8629 disks are always read-only while all
8630 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8631 always not.
8632
8633 <note>
8634 The read-only condition represented by this attribute is related to
8635 the hard disk type and usage, not to the current
8636 <link to="IMedium::state">media state</link> and not to the read-only
8637 state of the storage unit.
8638 </note>
8639 </desc>
8640 </attribute>
8641
8642 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8643 <desc>
8644 Logical size of this hard disk (in megabytes), as reported to the
8645 guest OS running inside the virtual machine this disk is
8646 attached to. The logical size is defined when the hard disk is created
8647 and cannot be changed later.
8648
8649 <note>
8650 Reading this property on a differencing hard disk will return the size
8651 of its <link to="#root"/> hard disk.
8652 </note>
8653 <note>
8654 For hard disks whose state is <link to="#state"/> is <link
8655 to="MediaState_Inaccessible"/>, the value of this property is the
8656 last known logical size. For <link to="MediaState_NotCreated"/> hard
8657 disks, the returned value is zero.
8658 </note>
8659 </desc>
8660 </attribute>
8661
8662 <!-- storage methods -->
8663
8664 <method name="getProperty">
8665 <desc>
8666 Returns the value of the custom hard disk property with the given name.
8667
8668 The list of all properties supported by the given hard disk format can
8669 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8670
8671 Note that if this method returns a <tt>null</tt> @a value, the requested
8672 property is supported but currently not assigned any value.
8673
8674 <result name="VBOX_E_OBJECT_NOT_FOUND">
8675 Requested property does not exist (not supported by the format).
8676 </result>
8677 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8678 </desc>
8679 <param name="name" type="wstring" dir="in">
8680 <desc>Name of the property to get.</desc>
8681 </param>
8682 <param name="value" type="wstring" dir="return">
8683 <desc>Current property value.</desc>
8684 </param>
8685 </method>
8686
8687 <method name="setProperty">
8688 <desc>
8689 Sets the value of the custom hard disk property with the given name.
8690
8691 The list of all properties supported by the given hard disk format can
8692 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8693
8694 Note that setting the property value to <tt>null</tt> is equivalent to
8695 deleting the existing value. A default value (if it is defined for this
8696 property) will be used by the format backend in this case.
8697
8698 <result name="VBOX_E_OBJECT_NOT_FOUND">
8699 Requested property does not exist (not supported by the format).
8700 </result>
8701 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8702 </desc>
8703 <param name="name" type="wstring" dir="in">
8704 <desc>Name of the property to set.</desc>
8705 </param>
8706 <param name="value" type="wstring" dir="in">
8707 <desc>Property value to set.</desc>
8708 </param>
8709 </method>
8710
8711 <method name="getProperties">
8712 <desc>
8713 Returns values for a group of properties in one call.
8714
8715 The names of the properties to get are specified using the @a names
8716 argument which is a list of comma-separated property names or
8717 <tt>null</tt> if all properties are to be returned. Note that currently
8718 the value of this argument is ignored and the method always returns all
8719 existing properties.
8720
8721 The list of all properties supported by the given hard disk format can
8722 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8723
8724 The method returns two arrays, the array of property names corresponding
8725 to the @a names argument and the current values of these properties.
8726 Both arrays have the same number of elements with each elemend at the
8727 given index in the first array corresponds to an element at the same
8728 index in the second array.
8729
8730 Note that for properties that do not have assigned values,
8731 <tt>null</tt> is returned at the appropriate index in the
8732 @a returnValues array.
8733
8734 </desc>
8735 <param name="names" type="wstring" dir="in">
8736 <desc>
8737 Names of properties to get.
8738 </desc>
8739 </param>
8740 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8741 <desc>Names of returned properties.</desc>
8742 </param>
8743 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8744 <desc>Values of returned properties.</desc>
8745 </param>
8746 </method>
8747
8748 <method name="setProperties">
8749 <desc>
8750 Sets values for a group of properties in one call.
8751
8752 The names of the properties to set are passed in the @a names
8753 array along with the new values for them in the @a values array. Both
8754 arrays have the same number of elements with each elemend at the given
8755 index in the first array corresponding to an element at the same index
8756 in the second array.
8757
8758 If there is at least one property name in @a names that is not valid,
8759 the method will fail before changing the values of any other properties
8760 from the @a names array.
8761
8762 Using this method over <link to="#setProperty"/> is preferred if you
8763 need to set several properties at once since it will result into less
8764 IPC calls.
8765
8766 The list of all properties supported by the given hard disk format can
8767 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8768
8769 Note that setting the property value to <tt>null</tt> is equivalent to
8770 deleting the existing value. A default value (if it is defined for this
8771 property) will be used by the format backend in this case.
8772 </desc>
8773 <param name="names" type="wstring" safearray="yes" dir="in">
8774 <desc>Names of properties to set.</desc>
8775 </param>
8776 <param name="values" type="wstring" safearray="yes" dir="in">
8777 <desc>Values of properties to set.</desc>
8778 </param>
8779 </method>
8780
8781 <!-- storage methods -->
8782
8783 <method name="createDynamicStorage">
8784 <desc>
8785 Starts creating a dynamically expanding hard disk storage unit in the
8786 background. The previous storage unit created for this object, if
8787 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8788 the operation will fail.
8789
8790 Before the operation starts, the hard disk is placed in
8791 <link to="MediaState_Creating"/> state. If the create operation
8792 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8793 state.
8794
8795 After the returned progress object reports that the operation has
8796 successfully completed, the media state will be set to <link
8797 to="MediaState_Created"/>, the hard disk will be remembered by this
8798 VirtualBox installation and may be attached to virtual machines.
8799
8800 <result name="VBOX_E_NOT_SUPPORTED">
8801 Dynamic storage creation operation is not supported. See <link
8802 to="IHardDiskFormat::capabilities"/>.
8803 </result>
8804 </desc>
8805 <param name="logicalSize" type="unsigned long long" dir="in">
8806 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8807 </param>
8808 <param name="progress" type="IProgress" dir="return">
8809 <desc>Progress object to track the operation completion.</desc>
8810 </param>
8811 </method>
8812
8813 <method name="createFixedStorage">
8814 <desc>
8815 Starts creating a fixed-size hard disk storage unit in the background.
8816 The previous storage unit created for this object, if
8817 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8818 the operation will fail.
8819
8820 Before the operation starts, the hard disk is placed to
8821 <link to="MediaState_Creating"/> state. If the create operation
8822 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8823 state.
8824
8825 After the returned progress object reports that the operation is
8826 successfully complete, the media state will be set to <link
8827 to="MediaState_Created"/>, the hard disk will be remembered by this
8828 VirtualBox installation and may be attached to virtual machines.
8829
8830 <result name="VBOX_E_NOT_SUPPORTED">
8831 Fixed storage creation operation is not supported. See
8832 <link to="IHardDiskFormat::capabilities"/>.
8833 </result>
8834 </desc>
8835 <param name="logicalSize" type="unsigned long long" dir="in">
8836 <desc>Logical size of the hard disk in megabytes.</desc>
8837 </param>
8838 <param name="progress" type="IProgress" dir="return">
8839 <desc>Progress object to track the operation completion.</desc>
8840 </param>
8841 </method>
8842
8843 <method name="deleteStorage">
8844 <desc>
8845 Starts deleting the storage unit of this hard disk.
8846
8847 The hard disk must not be attached to any known virtual machine and must
8848 not have any known child hard disks, otherwise the operation will fail.
8849 It will also fail if there is no storage unit to delete or if deletion
8850 is already in progress, or if the hard disk is being in use (locked for
8851 read or for write) or inaccessible. Therefore, the only valid state for
8852 this operation to succeed is <link to="MediaState_Created"/>.
8853
8854 Before the operation starts, the hard disk is placed to
8855 <link to="MediaState_Deleting"/> state and gets removed from the list
8856 of remembered hard disks (media registry). If the delete operation
8857 fails, the media will be remembered again and placed back to
8858 <link to="MediaState_Created"/> state.
8859
8860 After the returned progress object reports that the operation is
8861 complete, the media state will be set to
8862 <link to="MediaState_NotCreated"/> and you will be able to use one of
8863 the storage creation methods to create it again.
8864
8865 <see>#close()</see>
8866
8867 <result name="VBOX_E_OBJECT_IN_USE">
8868 Hard disk is attached to a virtual machine.
8869 </result>
8870 <result name="VBOX_E_NOT_SUPPORTED">
8871 Storage deletion is not allowed because neither of storage creation
8872 operations are supported. See
8873 <link to="IHardDiskFormat::capabilities"/>.
8874 </result>
8875
8876 <note>
8877 If the deletion operation fails, it is not guaranteed that the storage
8878 unit still exists. You may check the <link to="IMedium::state"/> value
8879 to answer this question.
8880 </note>
8881 </desc>
8882 <param name="progress" type="IProgress" dir="return">
8883 <desc>Progress object to track the operation completion.</desc>
8884 </param>
8885 </method>
8886
8887 <!-- diff methods -->
8888
8889 <method name="createDiffStorage">
8890 <desc>
8891 Starts creating an empty differencing storage unit based on this hard
8892 disk in the format and at the location defined by the @a target
8893 argument.
8894
8895 The target hard disk must be in <link to="MediaState_NotCreated"/>
8896 state (i.e. must not have an existing storage unit). Upon successful
8897 completion, this operation will set the type of the target hard disk to
8898 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8899 represent the differencing hard disk data in the given format (according
8900 to the storage format of the target object).
8901
8902 After the returned progress object reports that the operation is
8903 successfully complete, the target hard disk gets remembered by this
8904 VirtualBox installation and may be attached to virtual machines.
8905
8906 <note>
8907 The hard disk will be set to <link to="MediaState_LockedRead"/>
8908 state for the duration of this operation.
8909 </note>
8910 <result name="VBOX_E_OBJECT_IN_USE">
8911 Hard disk not in NotCreated state.
8912 </result>
8913 </desc>
8914 <param name="target" type="IHardDisk" dir="in">
8915 <desc>Target hard disk.</desc>
8916 </param>
8917 <param name="progress" type="IProgress" dir="return">
8918 <desc>Progress object to track the operation completion.</desc>
8919 </param>
8920 </method>
8921
8922 <method name="mergeTo">
8923 <desc>
8924 Starts merging the contents of this hard disk and all intermediate
8925 differencing hard disks in the chain to the given target hard disk.
8926
8927 The target hard disk must be either a descendant of this hard disk or
8928 its ancestor (otherwise this method will immediately return a failure).
8929 It follows that there are two logical directions of the merge operation:
8930 from ancestor to descendant (<i>forward merge</i>) and from descendant to
8931 ancestor (<i>backward merge</i>). Let us consider the following hard disk
8932 chain:
8933
8934 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
8935
8936 Here, calling this method on the <tt>Base</tt> hard disk object with
8937 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
8938 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
8939 merge. Note that in both cases the contents of the resulting hard disk
8940 will be the same, the only difference is the hard disk object that takes
8941 the result of the merge operation. In case of the forward merge in the
8942 above example, the result will be written to <tt>Diff_2</tt>; in case of
8943 the backward merge, the result will be written to <tt>Base</tt>. In
8944 other words, the result of the operation is always stored in the target
8945 hard disk.
8946
8947 Upon successful operation completion, the storage units of all hard
8948 disks in the chain between this (source) hard disk and the target hard
8949 disk, including the source hard disk itself, will be automatically
8950 deleted and the relevant hard disk objects (including this hard disk)
8951 will become uninitialized. This means that any attempt to call any of
8952 their methods or attributes will fail with the
8953 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
8954 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
8955 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
8956 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
8957 disk itself since it will no longer be based on any other hard disk.
8958
8959 Considering the above, all of the following conditions must be met in
8960 order for the merge operation to succeed:
8961 <ul>
8962 <li>
8963 Neither this (source) hard disk nor any intermediate
8964 differencing hard disk in the chain between it and the target
8965 hard disk is attached to any virtual machine.
8966 </li>
8967 <li>
8968 Neither the source hard disk nor the target hard disk is an
8969 <link to="HardDiskType_Immutable"/> hard disk.
8970 </li>
8971 <li>
8972 The part of the hard disk tree from the source hard disk to the
8973 target hard disk is a linear chain, i.e. all hard disks in this
8974 chain have exactly one child which is the next hard disk in this
8975 chain. The only exception from this rule is the target hard disk in
8976 the forward merge operation; it is allowed to have any number of
8977 child hard disks because the merge operation will hot change its
8978 logical contents (as it is seen by the guest OS or by children).
8979 </li>
8980 <li>
8981 None of the involved hard disks are in
8982 <link to="MediaState_LockedRead"/> or
8983 <link to="MediaState_LockedWrite"/> state.
8984 </li>
8985 </ul>
8986
8987 <note>
8988 This (source) hard disk and all intermediates will be placed to <link
8989 to="MediaState_Deleting"/> state and the target hard disk will be
8990 placed to <link to="MediaState_LockedWrite"/> state and for the
8991 duration of this operation.
8992 </note>
8993 </desc>
8994 <param name="targetId" type="uuid" dir="in">
8995 <desc>UUID of the target ancestor or descendant hard disk.</desc>
8996 </param>
8997 <param name="progress" type="IProgress" dir="return">
8998 <desc>Progress object to track the operation completion.</desc>
8999 </param>
9000 </method>
9001
9002 <!-- clone methods -->
9003
9004 <method name="cloneTo">
9005 <desc>
9006 Starts creating a clone of this hard disk in the format and at the
9007 location defined by the @a target argument.
9008
9009 The target hard disk must be in <link to="MediaState_NotCreated"/>
9010 state (i.e. must not have an existing storage unit). Upon successful
9011 completion, the cloned hard disk will contain exactly the same sector
9012 data as the hard disk being cloned, except that a new UUID for the clone
9013 will be randomly generated.
9014
9015 After the returned progress object reports that the operation is
9016 successfully complete, the target hard disk gets remembered by this
9017 VirtualBox installation and may be attached to virtual machines.
9018
9019 <note>
9020 If the cloned hard disk is a differencing hard disk, it will inherit
9021 parent dependency of the original hard disk.
9022 </note>
9023 <note>
9024 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9025 state for the duration of this operation.
9026 </note>
9027 </desc>
9028 <param name="target" type="IHardDisk" dir="in">
9029 <desc>Target hard disk.</desc>
9030 </param>
9031 <param name="progress" type="IProgress" dir="return">
9032 <desc>Progress object to track the operation completion.</desc>
9033 </param>
9034 </method>
9035
9036 <method name="flattenTo">
9037 <desc>
9038 Starts creating a deep (independent) clone of this hard disk in the
9039 format and at the location defined by the @a target argument.
9040
9041 This operation is similar to <link to="#cloneTo"/> except that when
9042 applied to a differencing hard disk, it will also copy missing hard disk
9043 data from all parent hard disks it is linked to. This will make the
9044 created clone an independent base hard disk that contains all hard disk
9045 data and does not need any other hard disks to operate.
9046
9047 After the returned progress object reports that the operation is
9048 successfully complete, the target hard disk gets remembered by this
9049 VirtualBox installation and may be attached to virtual machines.
9050
9051 <note>
9052 For base hard disks, this operation is identical to
9053 <link to="#cloneTo"/>.
9054 </note>
9055 <note>
9056 This hard disk and all its parent hard disks will be placed to <link
9057 to="MediaState_LockedRead"/> state for the duration of this
9058 operation.
9059 </note>
9060 </desc>
9061 <param name="target" type="IHardDisk" dir="in">
9062 <desc>Target hard disk.</desc>
9063 </param>
9064 <param name="progress" type="IProgress" dir="return">
9065 <desc>Progress object to track the operation completion.</desc>
9066 </param>
9067 </method>
9068
9069 <method name="compact">
9070 <desc>
9071 Starts compacting of this hard disk. This means that the disk is
9072 transformed into a possibly more compact storage representation.
9073 This potentially creates temporary images, which can require a
9074 substantial amount of additional disk space.
9075
9076 After the returned progress object reports that the operation is
9077 successfully complete, the media state will be set back to the
9078 current state.
9079
9080 <note>
9081 This hard disk and all its parent hard disks will be placed to <link
9082 to="MediaState_LockedRead"/> state for the duration of this
9083 operation.
9084 </note>
9085 </desc>
9086 <param name="progress" type="IProgress" dir="return">
9087 <desc>Progress object to track the operation completion.</desc>
9088 </param>
9089 </method>
9090
9091 </interface>
9092
9093
9094 <!--
9095 // IHardDiskFormat
9096 /////////////////////////////////////////////////////////////////////////
9097 -->
9098
9099 <enum
9100 name="DataType"
9101 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9102 >
9103 <const name="Int32" value="0"/>
9104 <const name="Int8" value="1"/>
9105 <const name="String" value="2"/>
9106 </enum>
9107
9108 <enum
9109 name="DataFlags"
9110 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9111 >
9112 <const name="None" value="0x00"/>
9113 <const name="Mandatory" value="0x01"/>
9114 <const name="Expert" value="0x02"/>
9115 <const name="Array" value="0x04"/>
9116 <const name="FlagMask" value="0x07"/>
9117 </enum>
9118
9119 <enum
9120 name="HardDiskFormatCapabilities"
9121 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9122 >
9123 <desc>
9124 Hard disk format capability flags.
9125 </desc>
9126
9127 <const name="Uuid" value="0x01">
9128 <desc>
9129 Supports UUIDs as expected by VirtualBox code.
9130 </desc>
9131 </const>
9132
9133 <const name="CreateFixed" value="0x02">
9134 <desc>
9135 Supports creating fixed size images, allocating all space instantly.
9136 </desc>
9137 </const>
9138
9139 <const name="CreateDynamic" value="0x04">
9140 <desc>
9141 Supports creating dynamically growing images, allocating space on
9142 demand.
9143 </desc>
9144 </const>
9145
9146 <const name="CreateSplit2G" value="0x08">
9147 <desc>
9148 Supports creating images split in chunks of a bit less than 2 GBytes.
9149 </desc>
9150 </const>
9151
9152 <const name="Differencing" value="0x10">
9153 <desc>
9154 Supports being used as a format for differencing hard disks (see <link
9155 to="IHardDisk::createDiffStorage"/>).
9156 </desc>
9157 </const>
9158
9159 <const name="Asynchronous" value="0x20">
9160 <desc>
9161 Supports asynchronous I/O operations for at least some configurations.
9162 </desc>
9163 </const>
9164
9165 <const name="File" value="0x40">
9166 <desc>
9167 The format backend operates on files (the <link to="IMedium::location"/>
9168 attribute of the hard disk specifies a file used to store hard disk
9169 data; for a list of supported file extensions see
9170 <link to="IHardDiskFormat::fileExtensions"/>).
9171 </desc>
9172 </const>
9173
9174 <const name="Properties" value="0x80">
9175 <desc>
9176 The format backend uses the property interface to configure the storage
9177 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9178 method is used to get access to properties supported by the given hard
9179 disk format).
9180 </desc>
9181 </const>
9182
9183 <const name="CapabilityMask" value="0xFF"/>
9184 </enum>
9185
9186 <interface
9187 name="IHardDiskFormat" extends="$unknown"
9188 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9189 wsmap="managed"
9190 >
9191 <desc>
9192 The IHardDiskFormat interface represents a virtual hard disk format.
9193
9194 Each hard disk format has an associated backend which is used to handle
9195 hard disks stored in this format. This interface provides information
9196 about the properties of the associated backend.
9197
9198 Each hard disk format is identified by a string represented by the
9199 <link to="#id"/> attribute. This string is used in calls like
9200 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9201 format.
9202
9203 The list of all supported hard disk formats can be obtained using
9204 <link to="ISystemProperties::hardDiskFormats"/>.
9205
9206 <see>IHardDisk</see>
9207 </desc>
9208
9209 <attribute name="id" type="wstring" readonly="yes">
9210 <desc>
9211 Identifier of this format.
9212
9213 The format identifier is a non-null non-empty ASCII string. Note that
9214 this string is case-insensitive. This means that, for example, all of
9215 the following strings:
9216 <pre>
9217 "VDI"
9218 "vdi"
9219 "VdI"</pre>
9220 refer to the same hard disk format.
9221
9222 This string is used in methods of other interfaces where it is necessary
9223 to specify a hard disk format, such as
9224 <link to="IVirtualBox::createHardDisk"/>.
9225 </desc>
9226 </attribute>
9227
9228 <attribute name="name" type="wstring" readonly="yes">
9229 <desc>
9230 Human readable description of this format.
9231
9232 Mainly for use in file open dialogs.
9233 </desc>
9234 </attribute>
9235
9236 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9237 <desc>
9238 Array of strings containing the supported file extensions.
9239
9240 The first extension in the array is the extension preferred by the
9241 backend. It is recommended to use this extension when specifying a
9242 location of the storage unit for a new hard disk.
9243
9244 Note that some backends do not work on files, so this array may be
9245 empty.
9246
9247 <see>IHardDiskFormat::capabilities</see>
9248 </desc>
9249 </attribute>
9250
9251 <attribute name="capabilities" type="unsigned long" readonly="yes">
9252 <desc>
9253 Capabilities of the format as a set of bit flags.
9254
9255 For the meaning of individual capability flags see
9256 <link to="HardDiskFormatCapabilities"/>.
9257 </desc>
9258 </attribute>
9259
9260 <method name="describeProperties">
9261 <desc>
9262 Returns several arrays describing the properties supported by this
9263 format.
9264
9265 An element with the given index in each array describes one
9266 property. Thus, the number of elements in each returned array is the
9267 same and corresponds to the number of supported properties.
9268
9269 The returned arrays are filled in only if the
9270 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9271 All arguments must be non-NULL.
9272
9273 <see>DataType</see>
9274 <see>DataFlags</see>
9275 </desc>
9276
9277 <param name="names" type="wstring" safearray="yes" dir="out">
9278 <desc>Array of property names.</desc>
9279 </param>
9280 <param name="description" type="wstring" safearray="yes" dir="out">
9281 <desc>Array of property descriptions.</desc>
9282 </param>
9283 <param name="types" type="DataType" safearray="yes" dir="out">
9284 <desc>Array of property types.</desc>
9285 </param>
9286 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9287 <desc>Array of property flags.</desc>
9288 </param>
9289 <param name="defaults" type="wstring" safearray="yes" dir="out">
9290 <desc>Array of default property values.</desc>
9291 </param>
9292 </method>
9293
9294 </interface>
9295
9296
9297 <!--
9298 // IFloppyImage
9299 /////////////////////////////////////////////////////////////////////////
9300 -->
9301
9302 <interface
9303 name="IFloppyImage" extends="IMedium"
9304 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9305 wsmap="managed"
9306 >
9307 <desc>
9308 The IFloppyImage interface represents a medium containing the image
9309 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9310 </desc>
9311
9312 </interface>
9313
9314
9315 <!--
9316 // IDVDImage
9317 /////////////////////////////////////////////////////////////////////////
9318 -->
9319
9320 <interface
9321 name="IDVDImage" extends="IMedium"
9322 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9323 wsmap="managed"
9324 >
9325 <desc>
9326 The IDVDImage interface represents a medium containing the image
9327 of a CD or DVD disk in the ISO format.
9328
9329 This is a subclass of <link to="IMedium" />; see remarks there.
9330 </desc>
9331
9332 </interface>
9333
9334
9335 <!--
9336 // IDVDDrive
9337 /////////////////////////////////////////////////////////////////////////
9338 -->
9339
9340 <interface
9341 name="IDVDDrive" extends="$unknown"
9342 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9343 wsmap="managed"
9344 >
9345 <desc>
9346 The IDVDDrive interface represents the virtual CD/DVD drive of the
9347 virtual machine. An object of this type is returned by
9348 <link to="IMachine::DVDDrive"/>.
9349 </desc>
9350
9351 <attribute name="state" type="DriveState" readonly="yes">
9352 <desc>Current drive state.</desc>
9353 </attribute>
9354
9355 <attribute name="passthrough" type="boolean">
9356 <desc>
9357 When a host drive is mounted and passthrough is enabled
9358 the guest OS will be able to directly send SCSI commands to
9359 the host drive. This enables the guest OS to use CD/DVD writers
9360 but is potentially dangerous.
9361 </desc>
9362 </attribute>
9363
9364 <method name="mountImage">
9365 <desc>Mounts a CD/DVD image with the specified UUID.
9366
9367 <result name="VBOX_E_FILE_ERROR">
9368 Invalid image file location.
9369 </result>
9370 <result name="VBOX_E_OBJECT_NOT_FOUND">
9371 Could not find a CD/DVD image matching @a imageID.
9372 </result>
9373 <result name="VBOX_E_INVALID_OBJECT_STATE">
9374 Invalid media state.
9375 </result>
9376
9377 </desc>
9378 <param name="imageId" type="uuid" dir="in"/>
9379 </method>
9380
9381 <method name="captureHostDrive">
9382 <desc>Captures the specified host CD/DVD drive.</desc>
9383 <param name="drive" type="IHostDVDDrive" dir="in"/>
9384 </method>
9385
9386 <method name="unmount">
9387 <desc>Unmounts the currently mounted image or host drive.</desc>
9388 </method>
9389
9390 <method name="getImage">
9391 <desc>Returns the currently mounted CD/DVD image.</desc>
9392 <param name="image" type="IDVDImage" dir="return"/>
9393 </method>
9394
9395 <method name="getHostDrive">
9396 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9397 <param name="drive" type="IHostDVDDrive" dir="return"/>
9398 </method>
9399
9400 </interface>
9401
9402
9403 <!--
9404 // IFloppyDrive
9405 /////////////////////////////////////////////////////////////////////////
9406 -->
9407
9408 <interface
9409 name="IFloppyDrive" extends="$unknown"
9410 uuid="159412cd-bab8-452e-8097-218a020825a6"
9411 wsmap="managed"
9412 >
9413 <desc>
9414 The IFloppyDrive interface represents the virtual floppy drive of the
9415 virtual machine. An object of this type is returned by
9416 <link to="IMachine::floppyDrive" />.
9417 </desc>
9418
9419 <attribute name="enabled" type="boolean">
9420 <desc>
9421 Flag whether the floppy drive is enabled. If it is disabled,
9422 the floppy drive will not be reported to the guest OS.
9423 </desc>
9424 </attribute>
9425
9426 <attribute name="state" type="DriveState" readonly="yes">
9427 <desc>Current drive state.</desc>
9428 </attribute>
9429
9430 <method name="mountImage">
9431 <desc>Mounts a floppy image with the specified UUID.
9432
9433 <result name="VBOX_E_FILE_ERROR">
9434 Invalid image file location.
9435 </result>
9436 <result name="VBOX_E_OBJECT_NOT_FOUND">
9437 Could not find a floppy image matching @a imageID.
9438 </result>
9439 <result name="VBOX_E_INVALID_OBJECT_STATE">
9440 Invalid media state.
9441 </result>
9442
9443 </desc>
9444 <param name="imageId" type="uuid" dir="in"/>
9445 </method>
9446
9447 <method name="captureHostDrive">
9448 <desc>Captures the specified host floppy drive.</desc>
9449 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9450 </method>
9451
9452 <method name="unmount">
9453 <desc>Unmounts the currently mounted image or host drive.</desc>
9454 </method>
9455
9456 <method name="getImage">
9457 <desc>Returns the currently mounted floppy image.</desc>
9458 <param name="image" type="IFloppyImage" dir="return"/>
9459 </method>
9460
9461 <method name="getHostDrive">
9462 <desc>Returns the currently mounted host floppy drive.</desc>
9463 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9464 </method>
9465
9466 </interface>
9467
9468
9469 <!--
9470 // IKeyboard
9471 /////////////////////////////////////////////////////////////////////////
9472 -->
9473
9474 <interface
9475 name="IKeyboard" extends="$unknown"
9476 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9477 wsmap="managed"
9478 >
9479 <desc>
9480 The IKeyboard interface represents the virtual machine's keyboard. Used
9481 in <link to="IConsole::keyboard"/>.
9482
9483 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9484 to the virtual machine.
9485
9486 </desc>
9487 <method name="putScancode">
9488 <desc>Sends a scancode to the keyboard.
9489
9490 <result name="VBOX_E_IPRT_ERROR">
9491 Could not send scan code to virtual keyboard.
9492 </result>
9493
9494 </desc>
9495 <param name="scancode" type="long" dir="in"/>
9496 </method>
9497
9498 <method name="putScancodes">
9499 <desc>Sends an array of scancodes to the keyboard.
9500
9501 <result name="VBOX_E_IPRT_ERROR">
9502 Could not send all scan codes to virtual keyboard.
9503 </result>
9504
9505 </desc>
9506 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9507 <param name="codesStored" type="unsigned long" dir="return"/>
9508 </method>
9509
9510 <method name="putCAD">
9511 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9512 function is nothing special, it is just a convenience function
9513 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9514
9515 <result name="VBOX_E_IPRT_ERROR">
9516 Could not send all scan codes to virtual keyboard.
9517 </result>
9518
9519 </desc>
9520 </method>
9521
9522 </interface>
9523
9524
9525 <!--
9526 // IMouse
9527 /////////////////////////////////////////////////////////////////////////
9528 -->
9529
9530 <enum
9531 name="MouseButtonState"
9532 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9533 >
9534 <desc>
9535 Mouse button state.
9536 </desc>
9537
9538 <const name="LeftButton" value="0x01"/>
9539 <const name="RightButton" value="0x02"/>
9540 <const name="MiddleButton" value="0x04"/>
9541 <const name="WheelUp" value="0x08"/>
9542 <const name="WheelDown" value="0x10"/>
9543 <const name="MouseStateMask" value="0x1F"/>
9544 </enum>
9545
9546 <interface
9547 name="IMouse" extends="$unknown"
9548 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9549 wsmap="managed"
9550 >
9551 <desc>
9552 The IMouse interface represents the virtual machine's mouse. Used in
9553 <link to="IConsole::mouse"/>.
9554
9555 Through this interface, the virtual machine's virtual mouse can be
9556 controlled.
9557 </desc>
9558
9559 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9560 <desc>
9561 Whether the guest OS supports absolute mouse pointer positioning
9562 or not.
9563 <note>
9564 VirtualBox Guest Tools need to be installed to the guest OS
9565 in order to enable absolute mouse positioning support.
9566 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9567 callback to be instantly informed about changes of this attribute
9568 during virtual machine execution.
9569 </note>
9570 <see><link to="#putMouseEventAbsolute"/></see>
9571 </desc>
9572 </attribute>
9573
9574 <method name="putMouseEvent">
9575 <desc>
9576 Initiates a mouse event using relative pointer movements
9577 along x and y axis.
9578
9579 <result name="E_ACCESSDENIED">
9580 Console not powered up.
9581 </result>
9582 <result name="VBOX_E_IPRT_ERROR">
9583 Could not send mouse event to virtual mouse.
9584 </result>
9585
9586 </desc>
9587
9588 <param name="dx" type="long" dir="in">
9589 <desc>
9590 Amount of pixels the mouse should move to the right.
9591 Negative values move the mouse to the left.
9592 </desc>
9593 </param>
9594 <param name="dy" type="long" dir="in">
9595 <desc>
9596 Amount of pixels the mouse should move downwards.
9597 Negative values move the mouse upwards.
9598 </desc>
9599 </param>
9600 <param name="dz" type="long" dir="in">
9601 <desc>
9602 Amount of mouse wheel moves.
9603 Positive values describe clockwise wheel rotations,
9604 negative values describe counterclockwise rotations.
9605 </desc>
9606 </param>
9607 <param name="buttonState" type="long" dir="in">
9608 <desc>
9609 The current state of mouse buttons. Every bit represents
9610 a mouse button as follows:
9611 <table>
9612 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9613 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9614 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9615 </table>
9616 A value of <tt>1</tt> means the corresponding button is pressed.
9617 otherwise it is released.
9618 </desc>
9619 </param>
9620 </method>
9621
9622 <method name="putMouseEventAbsolute">
9623 <desc>
9624 Positions the mouse pointer using absolute x and y coordinates.
9625 These coordinates are expressed in pixels and
9626 start from <tt>[1,1]</tt> which corresponds to the top left
9627 corner of the virtual display.
9628
9629 <result name="E_ACCESSDENIED">
9630 Console not powered up.
9631 </result>
9632 <result name="VBOX_E_IPRT_ERROR">
9633 Could not send mouse event to virtual mouse.
9634 </result>
9635
9636 <note>
9637 This method will have effect only if absolute mouse
9638 positioning is supported by the guest OS.
9639 </note>
9640
9641 <see><link to="#absoluteSupported"/></see>
9642 </desc>
9643
9644 <param name="x" type="long" dir="in">
9645 <desc>
9646 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9647 </desc>
9648 </param>
9649 <param name="y" type="long" dir="in">
9650 <desc>
9651 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9652 </desc>
9653 </param>
9654 <param name="dz" type="long" dir="in">
9655 <desc>
9656 Amount of mouse wheel moves.
9657 Positive values describe clockwise wheel rotations,
9658 negative values describe counterclockwise rotations.
9659 </desc>
9660 </param>
9661 <param name="buttonState" type="long" dir="in">
9662 <desc>
9663 The current state of mouse buttons. Every bit represents
9664 a mouse button as follows:
9665 <table>
9666 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9667 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9668 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9669 </table>
9670 A value of <tt>1</tt> means the corresponding button is pressed.
9671 otherwise it is released.
9672 </desc>
9673 </param>
9674 </method>
9675
9676 </interface>
9677
9678 <!--
9679 // IDisplay
9680 /////////////////////////////////////////////////////////////////////////
9681 -->
9682
9683 <enum
9684 name="FramebufferAccelerationOperation"
9685 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9686 >
9687 <desc>
9688 Frame buffer acceleration operation.
9689 </desc>
9690
9691 <const name="SolidFillAcceleration" value="1"/>
9692 <const name="ScreenCopyAcceleration" value="2"/>
9693 </enum>
9694
9695 <enum
9696 name="FramebufferPixelFormat"
9697 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9698 >
9699 <desc>
9700 Format of the video memory buffer. Constants represented by this enum can
9701 be used to test for particular values of <link
9702 to="IFramebuffer::pixelFormat"/>. See also <link
9703 to="IFramebuffer::requestResize"/>.
9704
9705 See also www.fourcc.org for more information about FOURCC pixel formats.
9706 </desc>
9707
9708 <const name="Opaque" value="0">
9709 <desc>
9710 Unknown buffer format (the user may not assume any particular format of
9711 the buffer).
9712 </desc>
9713 </const>
9714 <const name="FOURCC_RGB" value="0x32424752">
9715 <desc>
9716 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9717 bit layout).
9718 </desc>
9719 </const>
9720 </enum>
9721
9722 <interface
9723 name="IFramebuffer" extends="$unknown"
9724 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9725 wsmap="suppress"
9726 >
9727 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9728 <desc>Address of the start byte of the frame buffer.</desc>
9729 </attribute>
9730
9731 <attribute name="width" type="unsigned long" readonly="yes">
9732 <desc>Frame buffer width, in pixels.</desc>
9733 </attribute>
9734
9735 <attribute name="height" type="unsigned long" readonly="yes">
9736 <desc>Frame buffer height, in pixels.</desc>
9737 </attribute>
9738
9739 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9740 <desc>
9741 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9742 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9743 are: 8, 15, 16, 24 and 32.
9744 </desc>
9745 </attribute>
9746
9747 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9748 <desc>
9749 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9750 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9751 size of the scan line must be aligned to 32 bits.
9752 </desc>
9753 </attribute>
9754
9755 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9756 <desc>
9757 Frame buffer pixel format. It's either one of the values defined by <link
9758 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9759 <note>
9760 This attribute must never return <link
9761 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9762 <link to="#address"/> points to must be always known.
9763 </note>
9764 </desc>
9765 </attribute>
9766
9767 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9768 <desc>
9769 Defines whether this frame buffer uses the virtual video card's memory
9770 buffer (guest VRAM) directly or not. See <link
9771 to="IFramebuffer::requestResize"/> for more information.
9772 </desc>
9773 </attribute>
9774
9775 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9776 <desc>
9777 Hint from the frame buffer about how much of the standard
9778 screen height it wants to use for itself. This information is
9779 exposed to the guest through the VESA BIOS and VMMDev interface
9780 so that it can use it for determining its video mode table. It
9781 is not guaranteed that the guest respects the value.
9782 </desc>
9783 </attribute>
9784
9785 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9786 <desc>
9787 An alpha-blended overlay which is superposed over the frame buffer.
9788 The initial purpose is to allow the display of icons providing
9789 information about the VM state, including disk activity, in front
9790 ends which do not have other means of doing that. The overlay is
9791 designed to controlled exclusively by IDisplay. It has no locking
9792 of its own, and any changes made to it are not guaranteed to be
9793 visible until the affected portion of IFramebuffer is updated. The
9794 overlay can be created lazily the first time it is requested. This
9795 attribute can also return NULL to signal that the overlay is not
9796 implemented.
9797 </desc>
9798 </attribute>
9799
9800 <attribute name="winId" type="unsigned long long" readonly="yes">
9801 <desc>
9802 Platform-dependent identifier of the window where context of this
9803 frame buffer is drawn, or zero if there's no such window.
9804 </desc>
9805 </attribute>
9806
9807 <method name="lock">
9808 <desc>
9809 Locks the frame buffer.
9810 Gets called by the IDisplay object where this frame buffer is
9811 bound to.
9812 </desc>
9813 </method>
9814
9815 <method name="unlock">
9816 <desc>
9817 Unlocks the frame buffer.
9818 Gets called by the IDisplay object where this frame buffer is
9819 bound to.
9820 </desc>
9821 </method>
9822
9823 <method name="notifyUpdate">
9824 <desc>
9825 Informs about an update.
9826 Gets called by the display object where this buffer is
9827 registered.
9828 </desc>
9829 <param name="x" type="unsigned long" dir="in"/>
9830 <param name="y" type="unsigned long" dir="in"/>
9831 <param name="width" type="unsigned long" dir="in"/>
9832 <param name="height" type="unsigned long" dir="in"/>
9833 <param name="finished" type="boolean" dir="return"/>
9834 </method>
9835
9836 <method name="requestResize">
9837 <desc>
9838 Requests a size and pixel format change.
9839
9840 There are two modes of working with the video buffer of the virtual
9841 machine. The <i>indirect</i> mode implies that the IFramebuffer
9842 implementation allocates a memory buffer for the requested display mode
9843 and provides it to the virtual machine. In <i>direct</i> mode, the
9844 IFramebuffer implementation uses the memory buffer allocated and owned
9845 by the virtual machine. This buffer represents the video memory of the
9846 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9847 usually faster because the implementation gets a raw pointer to the
9848 guest VRAM buffer which it can directly use for visualizing the contents
9849 of the virtual display, as opposed to the indirect mode where the
9850 contents of guest VRAM are copied to the memory buffer provided by
9851 the implementation every time a display update occurs.
9852
9853 It is important to note that the direct mode is really fast only when
9854 the implementation uses the given guest VRAM buffer directly, for
9855 example, by blitting it to the window representing the virtual machine's
9856 display, which saves at least one copy operation comparing to the
9857 indirect mode. However, using the guest VRAM buffer directly is not
9858 always possible: the format and the color depth of this buffer may be
9859 not supported by the target window, or it may be unknown (opaque) as in
9860 case of text or non-linear multi-plane VGA video modes. In this case,
9861 the indirect mode (that is always available) should be used as a
9862 fallback: when the guest VRAM contents are copied to the
9863 implementation-provided memory buffer, color and format conversion is
9864 done automatically by the underlying code.
9865
9866 The @a pixelFormat parameter defines whether the direct mode is
9867 available or not. If @a pixelFormat is <link
9868 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9869 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
9870 @a bytesPerLine parameters must be ignored and the implementation must use
9871 the indirect mode (where it provides its own buffer in one of the
9872 supported formats). In all other cases, @a pixelFormat together with
9873 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
9874 buffer pointed to by the @a VRAM parameter and the implementation is
9875 free to choose which mode to use. To indicate that this frame buffer uses
9876 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9877 attribute must return <tt>true</tt> and <link to="#address"/> must
9878 return exactly the same address that is passed in the @a VRAM parameter
9879 of this method; otherwise it is assumed that the indirect strategy is
9880 chosen.
9881
9882 The @a width and @a height parameters represent the size of the
9883 requested display mode in both modes. In case of indirect mode, the
9884 provided memory buffer should be big enough to store data of the given
9885 display mode. In case of direct mode, it is guaranteed that the given
9886 @a VRAM buffer contains enough space to represent the display mode of the
9887 given size. Note that this frame buffer's <link to="#width"/> and <link
9888 to="#height"/> attributes must return exactly the same values as
9889 passed to this method after the resize is completed (see below).
9890
9891 The @a finished output parameter determines if the implementation has
9892 finished resizing the frame buffer or not. If, for some reason, the
9893 resize cannot be finished immediately during this call, @a finished
9894 must be set to @c false, and the implementation must call
9895 <link to="IDisplay::resizeCompleted"/> after it has returned from
9896 this method as soon as possible. If @a finished is @c false, the
9897 machine will not call any frame buffer methods until
9898 <link to="IDisplay::resizeCompleted"/> is called.
9899
9900 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
9901 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
9902 this frame buffer must return exactly the same values as specified in the
9903 parameters of this method, after the resize is completed. If the
9904 indirect mode is chosen, these attributes must return values describing
9905 the format of the implementation's own memory buffer <link
9906 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
9907 value must always correlate with <link to="#pixelFormat"/>. Note that
9908 the <link to="#pixelFormat"/> attribute must never return <link
9909 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
9910
9911 <note>
9912 This method is called by the IDisplay object under the
9913 <link to="#lock"/> provided by this IFramebuffer
9914 implementation. If this method returns @c false in @a finished, then
9915 this lock is not released until
9916 <link to="IDisplay::resizeCompleted"/> is called.
9917 </note>
9918 </desc>
9919 <param name="screenId" type="unsigned long" dir="in">
9920 <desc>
9921 Logical screen number. Must be used in the corresponding call to
9922 <link to="IDisplay::resizeCompleted"/> if this call is made.
9923 </desc>
9924 </param>
9925 <param name="pixelFormat" type="unsigned long" dir="in">
9926 <desc>
9927 Pixel format of the memory buffer pointed to by @a VRAM.
9928 See also <link to="FramebufferPixelFormat"/>.
9929 </desc>
9930 </param>
9931 <param name="VRAM" type="octet" mod="ptr" dir="in">
9932 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
9933 </param>
9934 <param name="bitsPerPixel" type="unsigned long" dir="in">
9935 <desc>Color depth, bits per pixel.</desc>
9936 </param>
9937 <param name="bytesPerLine" type="unsigned long" dir="in">
9938 <desc>Size of one scan line, in bytes.</desc>
9939 </param>
9940 <param name="width" type="unsigned long" dir="in">
9941 <desc>Width of the guest display, in pixels.</desc>
9942 </param>
9943 <param name="height" type="unsigned long" dir="in">
9944 <desc>Height of the guest display, in pixels.</desc>
9945 </param>
9946 <param name="finished" type="boolean" dir="return">
9947 <desc>
9948 Can the VM start using the new frame buffer immediately
9949 after this method returns or it should wait for
9950 <link to="IDisplay::resizeCompleted"/>.
9951 </desc>
9952 </param>
9953 </method>
9954
9955 <method name="operationSupported">
9956 <desc>
9957 Returns whether the given acceleration operation is supported
9958 by the IFramebuffer implementation. If not, the display object
9959 will not attempt to call the corresponding IFramebuffer entry
9960 point. Even if an operation is indicated as supported, the
9961 IFramebuffer implementation always has the option to return non
9962 supported from the corresponding acceleration method in which
9963 case the operation will be performed by the display engine. This
9964 allows for reduced IFramebuffer implementation complexity where
9965 only common cases are handled.
9966 </desc>
9967 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
9968 <param name="supported" type="boolean" dir="return"/>
9969 </method>
9970
9971 <method name="videoModeSupported">
9972 <desc>
9973 Returns whether the frame buffer implementation is willing to
9974 support a given video mode. In case it is not able to render
9975 the video mode (or for some reason not willing), it should
9976 return false. Usually this method is called when the guest
9977 asks the VMM device whether a given video mode is supported
9978 so the information returned is directly exposed to the guest.
9979 It is important that this method returns very quickly.
9980 </desc>
9981 <param name="width" type="unsigned long" dir="in"/>
9982 <param name="height" type="unsigned long" dir="in"/>
9983 <param name="bpp" type="unsigned long" dir="in"/>
9984 <param name="supported" type="boolean" dir="return"/>
9985 </method>
9986
9987 <method name="solidFill">
9988 <desc>
9989 Fills the specified rectangle on screen with a solid color.
9990 </desc>
9991 <param name="x" type="unsigned long" dir="in"/>
9992 <param name="y" type="unsigned long" dir="in"/>
9993 <param name="width" type="unsigned long" dir="in"/>
9994 <param name="height" type="unsigned long" dir="in"/>
9995 <param name="color" type="unsigned long" dir="in"/>
9996 <param name="handled" type="boolean" dir="return"/>
9997 </method>
9998
9999 <method name="copyScreenBits">
10000 <desc>
10001 Copies specified rectangle on the screen.
10002 </desc>
10003 <param name="xDst" type="unsigned long" dir="in"/>
10004 <param name="yDst" type="unsigned long" dir="in"/>
10005 <param name="xSrc" type="unsigned long" dir="in"/>
10006 <param name="ySrc" type="unsigned long" dir="in"/>
10007 <param name="width" type="unsigned long" dir="in"/>
10008 <param name="height" type="unsigned long" dir="in"/>
10009 <param name="handled" type="boolean" dir="return"/>
10010 </method>
10011
10012 <method name="getVisibleRegion">
10013 <desc>
10014 Returns the visible region of this frame buffer.
10015
10016 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10017 @a count parameter is ignored and the number of elements necessary to
10018 describe the current visible region is returned in @a countCopied.
10019
10020 If @a rectangles is not <tt>NULL</tt> but @a count is less
10021 than the required number of elements to store region data, the method
10022 will report a failure. If @a count is equal or greater than the
10023 required number of elements, then the actual number of elements copied
10024 to the provided array will be returned in @a countCopied.
10025
10026 <note>
10027 The address of the provided array must be in the process space of
10028 this IFramebuffer object.
10029 </note>
10030 <note>
10031 Method not yet implemented.
10032 </note>
10033 </desc>
10034 <param name="rectangles" type="octet" mod="ptr" dir="in">
10035 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10036 </param>
10037 <param name="count" type="unsigned long" dir="in">
10038 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10039 </param>
10040 <param name="countCopied" type="unsigned long" dir="return">
10041 <desc>Number of elements copied to the @a rectangles array.</desc>
10042 </param>
10043 </method>
10044
10045 <method name="setVisibleRegion">
10046 <desc>
10047 Suggests a new visible region to this frame buffer. This region
10048 represents the area of the VM display which is a union of regions of
10049 all top-level windows of the guest operating system running inside the
10050 VM (if the Guest Additions for this system support this
10051 functionality). This information may be used by the frontends to
10052 implement the seamless desktop integration feature.
10053
10054 <note>
10055 The address of the provided array must be in the process space of
10056 this IFramebuffer object.
10057 </note>
10058 <note>
10059 The IFramebuffer implementation must make a copy of the provided
10060 array of rectangles.
10061 </note>
10062 <note>
10063 Method not yet implemented.
10064 </note>
10065 </desc>
10066 <param name="rectangles" type="octet" mod="ptr" dir="in">
10067 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10068 </param>
10069 <param name="count" type="unsigned long" dir="in">
10070 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10071 </param>
10072 </method>
10073
10074 </interface>
10075
10076 <interface
10077 name="IFramebufferOverlay" extends="IFramebuffer"
10078 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10079 wsmap="suppress"
10080 >
10081 <desc>
10082 The IFramebufferOverlay interface represents an alpha blended overlay
10083 for displaying status icons above an IFramebuffer. It is always created
10084 not visible, so that it must be explicitly shown. It only covers a
10085 portion of the IFramebuffer, determined by its width, height and
10086 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10087 that order) format, and may be written to directly. Do re-read the
10088 width though, after setting it, as it may be adjusted (increased) to
10089 make it more suitable for the front end.
10090 </desc>
10091 <attribute name="x" type="unsigned long" readonly="yes">
10092 <desc>X position of the overlay, relative to the frame buffer.</desc>
10093 </attribute>
10094
10095 <attribute name="y" type="unsigned long" readonly="yes">
10096 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10097 </attribute>
10098
10099 <attribute name="visible" type="boolean" readonly="no">
10100 <desc>
10101 Whether the overlay is currently visible.
10102 </desc>
10103 </attribute>
10104
10105 <attribute name="alpha" type="unsigned long" readonly="no">
10106 <desc>
10107 The global alpha value for the overlay. This may or may not be
10108 supported by a given front end.
10109 </desc>
10110 </attribute>
10111
10112 <method name="move">
10113 <desc>
10114 Changes the overlay's position relative to the IFramebuffer.
10115 </desc>
10116 <param name="x" type="unsigned long" dir="in"/>
10117 <param name="y" type="unsigned long" dir="in"/>
10118 </method>
10119
10120 </interface>
10121
10122 <interface
10123 name="IDisplay" extends="$unknown"
10124 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10125 wsmap="suppress"
10126 >
10127 <desc>
10128 The IDisplay interface represents the virtual machine's display.
10129
10130 The object implementing this interface is contained in each
10131 <link to="IConsole::display"/> attribute and represents the visual
10132 output of the virtual machine.
10133
10134 The virtual display supports pluggable output targets represented by the
10135 IFramebuffer interface. Examples of the output target are a window on
10136 the host computer or an RDP session's display on a remote computer.
10137 </desc>
10138 <attribute name="width" type="unsigned long" readonly="yes">
10139 <desc>Current display width.</desc>
10140 </attribute>
10141
10142 <attribute name="height" type="unsigned long" readonly="yes">
10143 <desc>Current display height.</desc>
10144 </attribute>
10145
10146 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10147 <desc>
10148 Current guest display color depth. Note that this may differ
10149 from <link to="IFramebuffer::bitsPerPixel"/>.
10150 </desc>
10151 </attribute>
10152
10153 <method name="setupInternalFramebuffer">
10154 <desc>
10155 Prepares an internally managed frame buffer.
10156 </desc>
10157 <param name="depth" type="unsigned long" dir="in"/>
10158 </method>
10159
10160 <method name="lockFramebuffer">
10161 <desc>
10162 Requests access to the internal frame buffer.
10163
10164 <result name="VBOX_E_NOT_SUPPORTED">
10165 Attempt to lock a non-internal frame buffer.
10166 </result>
10167
10168 </desc>
10169 <param name="address" type="octet" mod="ptr" dir="return"/>
10170 </method>
10171
10172 <method name="unlockFramebuffer">
10173 <desc>
10174 Releases access to the internal frame buffer.
10175
10176 <result name="VBOX_E_NOT_SUPPORTED">
10177 Attempt to unlock a non-internal frame buffer.
10178 </result>
10179
10180 </desc>
10181 </method>
10182
10183 <method name="registerExternalFramebuffer">
10184 <desc>
10185 Registers an external frame buffer.
10186 </desc>
10187 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10188 </method>
10189
10190 <method name="setFramebuffer">
10191 <desc>
10192 Sets the framebuffer for given screen.
10193 </desc>
10194 <param name="screenId" type="unsigned long" dir="in"/>
10195 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10196 </method>
10197
10198 <method name="getFramebuffer">
10199 <desc>
10200 Queries the framebuffer for given screen.
10201 </desc>
10202 <param name="screenId" type="unsigned long" dir="in"/>
10203 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10204 <param name="xOrigin" type="long" dir="out"/>
10205 <param name="yOrigin" type="long" dir="out"/>
10206 </method>
10207
10208 <method name="setVideoModeHint">
10209 <desc>
10210 Asks VirtualBox to request the given video mode from
10211 the guest. This is just a hint and it cannot be guaranteed
10212 that the requested resolution will be used. Guest Additions
10213 are required for the request to be seen by guests. The caller
10214 should issue the request and wait for a resolution change and
10215 after a timeout retry.
10216
10217 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10218 parameters means that the corresponding values should be taken from the
10219 current video mode (i.e. left unchanged).
10220
10221 If the guest OS supports multi-monitor configuration then the @a display
10222 parameter specifies the number of the guest display to send the hint to:
10223 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10224 so on. If the multi-monitor configuration is not supported, @a display
10225 must be <tt>0</tt>.
10226
10227 <result name="E_INVALIDARG">
10228 The @a display is not associated with any monitor.
10229 </result>
10230
10231 </desc>
10232 <param name="width" type="unsigned long" dir="in"/>
10233 <param name="height" type="unsigned long" dir="in"/>
10234 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10235 <param name="display" type="unsigned long" dir="in"/>
10236 </method>
10237
10238 <method name="setSeamlessMode">
10239 <desc>
10240 Enables or disables seamless guest display rendering (seamless desktop
10241 integration) mode.
10242 <note>
10243 Calling this method has no effect if <link
10244 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10245 </note>
10246 </desc>
10247 <param name="enabled" type="boolean" dir="in"/>
10248 </method>
10249
10250 <method name="takeScreenShot">
10251 <desc>
10252 Takes a screen shot of the requested size and copies it to the
10253 32-bpp buffer allocated by the caller.
10254
10255 <result name="E_NOTIMPL">
10256 Feature not implemented.
10257 </result>
10258 <result name="VBOX_E_IPRT_ERROR">
10259 Could not take a screenshot.
10260 </result>
10261
10262 </desc>
10263 <param name="address" type="octet" mod="ptr" dir="in"/>
10264 <param name="width" type="unsigned long" dir="in"/>
10265 <param name="height" type="unsigned long" dir="in"/>
10266 </method>
10267
10268 <method name="drawToScreen">
10269 <desc>
10270 Draws a 32-bpp image of the specified size from the given buffer
10271 to the given point on the VM display.
10272
10273 <result name="E_NOTIMPL">
10274 Feature not implemented.
10275 </result>
10276 <result name="VBOX_E_IPRT_ERROR">
10277 Could not draw to screen.
10278 </result>
10279
10280 </desc>
10281 <param name="address" type="octet" mod="ptr" dir="in"/>
10282 <param name="x" type="unsigned long" dir="in"/>
10283 <param name="y" type="unsigned long" dir="in"/>
10284 <param name="width" type="unsigned long" dir="in"/>
10285 <param name="height" type="unsigned long" dir="in"/>
10286 </method>
10287
10288 <method name="invalidateAndUpdate">
10289 <desc>
10290 Does a full invalidation of the VM display and instructs the VM
10291 to update it.
10292
10293 <result name="VBOX_E_IPRT_ERROR">
10294 Could not invalidate and update screen.
10295 </result>
10296
10297 </desc>
10298 </method>
10299
10300 <method name="resizeCompleted">
10301 <desc>
10302 Signals that a framebuffer has completed the resize operation.
10303
10304 <result name="VBOX_E_NOT_SUPPORTED">
10305 Operation only valid for external frame buffers.
10306 </result>
10307
10308 </desc>
10309 <param name="screenId" type="unsigned long" dir="in"/>
10310 </method>
10311
10312 <method name="updateCompleted">
10313 <desc>
10314 Signals that a framebuffer has completed the update operation.
10315
10316 <result name="VBOX_E_NOT_SUPPORTED">
10317 Operation only valid for external frame buffers.
10318 </result>
10319
10320 </desc>
10321 </method>
10322
10323 </interface>
10324
10325 <!--
10326 // INetworkAdapter
10327 /////////////////////////////////////////////////////////////////////////
10328 -->
10329
10330 <enum
10331 name="NetworkAttachmentType"
10332 uuid="64e770dc-dd1d-4879-9f12-5bd6bc879b78"
10333 >
10334 <desc>
10335 Network attachment type.
10336 </desc>
10337
10338 <const name="Null" value="0">
10339 <desc>Null value, also means "not attached".</desc>
10340 </const>
10341 <const name="NAT" value="1"/>
10342 <const name="HostInterface" value="2"/>
10343 <const name="Internal" value="3"/>
10344 <const name="HostOnly" value="4"/>
10345 </enum>
10346
10347 <enum
10348 name="NetworkAdapterType"
10349 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10350 >
10351 <desc>
10352 Network adapter type.
10353 </desc>
10354
10355 <const name="Null" value="0">
10356 <desc>Null value (never used by the API).</desc>
10357 </const>
10358 <const name="Am79C970A" value="1"/>
10359 <const name="Am79C973" value="2"/>
10360 <const name="I82540EM" value="3"/>
10361 <const name="I82543GC" value="4"/>
10362 </enum>
10363
10364 <interface
10365 name="INetworkAdapter" extends="$unknown"
10366 uuid="4a1ee64e-6c5f-47dd-acfa-f834d7cb74fb"
10367 wsmap="managed"
10368 >
10369 <attribute name="adapterType" type="NetworkAdapterType">
10370 <desc>
10371 Type of the virtual network adapter. Depending on this value,
10372 VirtualBox will provide a different virtual network hardware
10373 to the guest.
10374 </desc>
10375 </attribute>
10376
10377 <attribute name="slot" type="unsigned long" readonly="yes">
10378 <desc>
10379 Slot number this adapter is plugged into. Corresponds to
10380 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10381 to obtain this instance.
10382 </desc>
10383 </attribute>
10384
10385 <attribute name="enabled" type="boolean">
10386 <desc>
10387 Flag whether the network adapter is present in the
10388 guest system. If disabled, the virtual guest hardware will
10389 not contain this network adapter. Can only be changed when
10390 the VM is not running.
10391 </desc>
10392 </attribute>
10393
10394 <attribute name="MACAddress" type="wstring">
10395 <desc>
10396 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10397 it to NULL, VirtualBox will generate a unique MAC address.
10398 </desc>
10399 </attribute>
10400
10401 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10402
10403 <attribute name="hostInterface" type="wstring">
10404 <desc>
10405 Name of the host network interface the VM is attached to.
10406 </desc>
10407 </attribute>
10408
10409 <attribute name="internalNetwork" type="wstring">
10410 <desc>
10411 Name of the internal network the VM is attached to.
10412 </desc>
10413 </attribute>
10414
10415 <attribute name="NATNetwork" type="wstring">
10416 <desc>
10417 Name of the NAT network the VM is attached to.
10418 </desc>
10419 </attribute>
10420
10421 <attribute name="cableConnected" type="boolean">
10422 <desc>
10423 Flag whether the adapter reports the cable as connected or not.
10424 It can be used to report offline situations to a VM.
10425 </desc>
10426 </attribute>
10427
10428 <attribute name="lineSpeed" type="unsigned long">
10429 <desc>
10430 Line speed reported by custom drivers, in units of 1 kbps.
10431 </desc>
10432 </attribute>
10433
10434 <attribute name="traceEnabled" type="boolean">
10435 <desc>
10436 Flag whether network traffic from/to the network card should be traced.
10437 Can only be toggled when the VM is turned off.
10438 </desc>
10439 </attribute>
10440
10441 <attribute name="traceFile" type="wstring">
10442 <desc>
10443 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10444 will be used.
10445 </desc>
10446 </attribute>
10447
10448 <method name="attachToNAT">
10449 <desc>
10450 Attach the network adapter to the Network Address Translation (NAT) interface.
10451 </desc>
10452 </method>
10453
10454 <method name="attachToHostInterface">
10455 <desc>
10456 Attach the network adapter to a host interface.
10457 </desc>
10458 </method>
10459
10460 <method name="attachToInternalNetwork">
10461 <desc>
10462 Attach the network adapter to an internal network.
10463 </desc>
10464 </method>
10465
10466 <method name="attachToHostOnlyNetwork">
10467 <desc>
10468 Attach the network adapter to the host-only network.
10469 </desc>
10470 </method>
10471
10472 <method name="detach">
10473 <desc>
10474 Detach the network adapter
10475 </desc>
10476 </method>
10477 </interface>
10478
10479
10480 <!--
10481 // ISerialPort
10482 /////////////////////////////////////////////////////////////////////////
10483 -->
10484
10485 <enum
10486 name="PortMode"
10487 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10488 >
10489 <desc>
10490 The PortMode enumeration represents possible communication modes for
10491 the virtual serial port device.
10492 </desc>
10493
10494 <const name="Disconnected" value="0">
10495 <desc>Virtual device is not attached to any real host device.</desc>
10496 </const>
10497 <const name="HostPipe" value="1">
10498 <desc>Virtual device is attached to a host pipe.</desc>
10499 </const>
10500 <const name="HostDevice" value="2">
10501 <desc>Virtual device is attached to a host device.</desc>
10502 </const>
10503 </enum>
10504
10505 <interface
10506 name="ISerialPort" extends="$unknown"
10507 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10508 wsmap="managed"
10509 >
10510
10511 <desc>
10512 The ISerialPort interface represents the virtual serial port device.
10513
10514 The virtual serial port device acts like an ordinary serial port
10515 inside the virtual machine. This device communicates to the real
10516 serial port hardware in one of two modes: host pipe or host device.
10517
10518 In host pipe mode, the #path attribute specifies the path to the pipe on
10519 the host computer that represents a serial port. The #server attribute
10520 determines if this pipe is created by the virtual machine process at
10521 machine startup or it must already exist before starting machine
10522 execution.
10523
10524 In host device mode, the #path attribute specifies the name of the
10525 serial port device on the host computer.
10526
10527 There is also a third communication mode: the disconnected mode. In this
10528 mode, the guest OS running inside the virtual machine will be able to
10529 detect the serial port, but all port write operations will be discarded
10530 and all port read operations will return no data.
10531
10532 <see>IMachine::getSerialPort</see>
10533 </desc>
10534
10535 <attribute name="slot" type="unsigned long" readonly="yes">
10536 <desc>
10537 Slot number this serial port is plugged into. Corresponds to
10538 the value you pass to <link to="IMachine::getSerialPort"/>
10539 to obtain this instance.
10540 </desc>
10541 </attribute>
10542
10543 <attribute name="enabled" type="boolean">
10544 <desc>
10545 Flag whether the serial port is enabled. If disabled,
10546 the serial port will not be reported to the guest OS.
10547 </desc>
10548 </attribute>
10549
10550 <attribute name="IOBase" type="unsigned long">
10551 <desc>Base I/O address of the serial port.</desc>
10552 </attribute>
10553
10554 <attribute name="IRQ" type="unsigned long">
10555 <desc>IRQ number of the serial port.</desc>
10556 </attribute>
10557
10558 <attribute name="hostMode" type="PortMode">
10559 <desc>
10560 How is this port connected to the host.
10561 <note>
10562 Changing this attribute may fail if the conditions for
10563 <link to="#path"/> are not met.
10564 </note>
10565 </desc>
10566 </attribute>
10567
10568 <attribute name="server" type="boolean">
10569 <desc>
10570 Flag whether this serial port acts as a server (creates a new pipe on
10571 the host) or as a client (uses the existing pipe). This attribute is
10572 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10573 </desc>
10574 </attribute>
10575
10576 <attribute name="path" type="wstring">
10577 <desc>
10578 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10579 PortMode_HostPipe, or the host serial device name when
10580 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10581 cases, setting a @c null or an empty string as the attribute's value
10582 will result into an error. Otherwise, the value of this property is
10583 ignored.
10584 </desc>
10585 </attribute>
10586
10587 </interface>
10588
10589 <!--
10590 // IParallelPort
10591 /////////////////////////////////////////////////////////////////////////
10592 -->
10593
10594 <interface
10595 name="IParallelPort" extends="$unknown"
10596 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10597 wsmap="managed"
10598 >
10599
10600 <desc>
10601 The IParallelPort interface represents the virtual parallel port device.
10602
10603 The virtual parallel port device acts like an ordinary parallel port
10604 inside the virtual machine. This device communicates to the real
10605 parallel port hardware using the name of the parallel device on the host
10606 computer specified in the #path attribute.
10607
10608 Each virtual parallel port device is assigned a base I/O address and an
10609 IRQ number that will be reported to the guest operating system and used
10610 to operate the given parallel port from within the virtual machine.
10611
10612 <see>IMachine::getParallelPort</see>
10613 </desc>
10614
10615 <attribute name="slot" type="unsigned long" readonly="yes">
10616 <desc>
10617 Slot number this parallel port is plugged into. Corresponds to
10618 the value you pass to <link to="IMachine::getParallelPort"/>
10619 to obtain this instance.
10620 </desc>
10621 </attribute>
10622
10623 <attribute name="enabled" type="boolean">
10624 <desc>
10625 Flag whether the parallel port is enabled. If disabled,
10626 the parallel port will not be reported to the guest OS.
10627 </desc>
10628 </attribute>
10629
10630 <attribute name="IOBase" type="unsigned long">
10631 <desc>Base I/O address of the parallel port.</desc>
10632 </attribute>
10633
10634 <attribute name="IRQ" type="unsigned long">
10635 <desc>IRQ number of the parallel port.</desc>
10636 </attribute>
10637
10638 <attribute name="path" type="wstring">
10639 <desc>
10640 Host parallel device name. If this parallel port is enabled, setting a
10641 @c null or an empty string as this attribute's value will result into
10642 an error.
10643 </desc>
10644 </attribute>
10645
10646 </interface>
10647
10648
10649 <!--
10650 // IMachineDebugger
10651 /////////////////////////////////////////////////////////////////////////
10652 -->
10653
10654 <interface
10655 name="IMachineDebugger" extends="$unknown"
10656 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10657 wsmap="suppress"
10658 >
10659 <method name="resetStats">
10660 <desc>
10661 Reset VM statistics.
10662 </desc>
10663 <param name="pattern" type="wstring" dir="in">
10664 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10665 </param>
10666 </method>
10667
10668 <method name="dumpStats">
10669 <desc>
10670 Dumps VM statistics.
10671 </desc>
10672 <param name="pattern" type="wstring" dir="in">
10673 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10674 </param>
10675 </method>
10676
10677 <method name="getStats">
10678 <desc>
10679 Get the VM statistics in a XMLish format.
10680 </desc>
10681 <param name="pattern" type="wstring" dir="in">
10682 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10683 </param>
10684 <param name="withDescriptions" type="boolean" dir="in">
10685 <desc>Whether to include the descriptions.</desc>
10686 </param>
10687 <param name="stats" type="wstring" dir="out">
10688 <desc>The XML document containing the statistics.</desc>
10689 </param>
10690 </method>
10691
10692 <method name="injectNMI">
10693 <desc>
10694 Inject an NMI into a running VT-x/AMD-V VM.
10695 </desc>
10696 </method>
10697
10698 <attribute name="singlestep" type="boolean">
10699 <desc>Switch for enabling singlestepping.</desc>
10700 </attribute>
10701
10702 <attribute name="recompileUser" type="boolean">
10703 <desc>Switch for forcing code recompilation for user mode code.</desc>
10704 </attribute>
10705
10706 <attribute name="recompileSupervisor" type="boolean">
10707 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10708 </attribute>
10709
10710 <attribute name="PATMEnabled" type="boolean">
10711 <desc>Switch for enabling and disabling the PATM component.</desc>
10712 </attribute>
10713
10714 <attribute name="CSAMEnabled" type="boolean">
10715 <desc>Switch for enabling and disabling the CSAM component.</desc>
10716 </attribute>
10717
10718 <attribute name="logEnabled" type="boolean">
10719 <desc>Switch for enabling and disabling logging.</desc>
10720 </attribute>
10721
10722 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10723 <desc>
10724 Flag indicating whether the VM is currently making use of CPU hardware
10725 virtualization extensions.
10726 </desc>
10727 </attribute>
10728
10729 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10730 <desc>
10731 Flag indicating whether the VM is currently making use of the nested paging
10732 CPU hardware virtualization extension.
10733 </desc>
10734 </attribute>
10735
10736 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10737 <desc>
10738 Flag indicating whether the VM is currently making use of the VPID
10739 VT-x extension.
10740 </desc>
10741 </attribute>
10742
10743 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10744 <desc>
10745 Flag indicating whether the VM is currently making use of the Physical
10746 Address Extension CPU feature.
10747 </desc>
10748 </attribute>
10749
10750 <attribute name="virtualTimeRate" type="unsigned long">
10751 <desc>
10752 The rate at which the virtual time runs expressed as a percentage.
10753 The accepted range is 2% to 20000%.
10754 </desc>
10755 </attribute>
10756
10757 <!-- @todo method for setting log flags, groups and destination! -->
10758
10759 <attribute name="VM" type="unsigned long long" readonly="yes">
10760 <desc>
10761 Gets the VM handle. This is only for internal use while
10762 we carve the details of this interface.
10763 </desc>
10764 </attribute>
10765
10766 </interface>
10767
10768 <!--
10769 // IUSBController
10770 /////////////////////////////////////////////////////////////////////////
10771 -->
10772
10773 <interface
10774 name="IUSBController" extends="$unknown"
10775 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
10776 wsmap="managed"
10777 >
10778 <attribute name="enabled" type="boolean">
10779 <desc>
10780 Flag whether the USB controller is present in the
10781 guest system. If disabled, the virtual guest hardware will
10782 not contain any USB controller. Can only be changed when
10783 the VM is powered off.
10784 </desc>
10785 </attribute>
10786
10787 <attribute name="enabledEhci" type="boolean">
10788 <desc>
10789 Flag whether the USB EHCI controller is present in the
10790 guest system. If disabled, the virtual guest hardware will
10791 not contain a USB EHCI controller. Can only be changed when
10792 the VM is powered off.
10793 </desc>
10794 </attribute>
10795
10796 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10797 <desc>
10798 USB standard version which the controller implements.
10799 This is a BCD which means that the major version is in the
10800 high byte and minor version is in the low byte.
10801 </desc>
10802 </attribute>
10803
10804 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
10805 <desc>
10806 List of USB device filters associated with the machine.
10807
10808 If the machine is currently running, these filters are activated
10809 every time a new (supported) USB device is attached to the host
10810 computer that was not ignored by global filters
10811 (<link to="IHost::USBDeviceFilters"/>).
10812
10813 These filters are also activated when the machine is powered up.
10814 They are run against a list of all currently available USB
10815 devices (in states
10816 <link to="USBDeviceState_Available"/>,
10817 <link to="USBDeviceState_Busy"/>,
10818 <link to="USBDeviceState_Held"/>) that were not previously
10819 ignored by global filters.
10820
10821 If at least one filter matches the USB device in question, this
10822 device is automatically captured (attached to) the virtual USB
10823 controller of this machine.
10824
10825 <see>IUSBDeviceFilter, ::IUSBController</see>
10826 </desc>
10827 </attribute>
10828
10829 <method name="createDeviceFilter">
10830 <desc>
10831 Creates a new USB device filter. All attributes except
10832 the filter name are set to <tt>null</tt> (any match),
10833 <i>active</i> is <tt>false</tt> (the filter is not active).
10834
10835 The created filter can then be added to the list of filters using
10836 <link to="#insertDeviceFilter"/>.
10837
10838 <result name="VBOX_E_INVALID_VM_STATE">
10839 The virtual machine is not mutable.
10840 </result>
10841
10842 <see>#deviceFilters</see>
10843 </desc>
10844 <param name="name" type="wstring" dir="in">
10845 <desc>
10846 Filter name. See <link to="IUSBDeviceFilter::name"/>
10847 for more info.
10848 </desc>
10849 </param>
10850 <param name="filter" type="IUSBDeviceFilter" dir="return">
10851 <desc>Created filter object.</desc>
10852 </param>
10853 </method>
10854
10855 <method name="insertDeviceFilter">
10856 <desc>
10857 Inserts the given USB device to the specified position
10858 in the list of filters.
10859
10860 Positions are numbered starting from <tt>0</tt>. If the specified
10861 position is equal to or greater than the number of elements in
10862 the list, the filter is added to the end of the collection.
10863
10864 <note>
10865 Duplicates are not allowed, so an attempt to insert a
10866 filter that is already in the collection, will return an
10867 error.
10868 </note>
10869
10870 <result name="VBOX_E_INVALID_VM_STATE">
10871 Virtual machine is not mutable.
10872 </result>
10873 <result name="E_INVALIDARG">
10874 USB device filter not created within this VirtualBox instance.
10875 </result>
10876 <result name="VBOX_E_INVALID_OBJECT_STATE">
10877 USB device filter already in list.
10878 </result>
10879
10880 <see>#deviceFilters</see>
10881 </desc>
10882 <param name="position" type="unsigned long" dir="in">
10883 <desc>Position to insert the filter to.</desc>
10884 </param>
10885 <param name="filter" type="IUSBDeviceFilter" dir="in">
10886 <desc>USB device filter to insert.</desc>
10887 </param>
10888 </method>
10889
10890 <method name="removeDeviceFilter">
10891 <desc>
10892 Removes a USB device filter from the specified position in the
10893 list of filters.
10894
10895 Positions are numbered starting from <tt>0</tt>. Specifying a
10896 position equal to or greater than the number of elements in
10897 the list will produce an error.
10898
10899 <see>#deviceFilters</see>
10900
10901 <result name="VBOX_E_INVALID_VM_STATE">
10902 Virtual machine is not mutable.
10903 </result>
10904 <result name="E_INVALIDARG">
10905 USB device filter list empty or invalid @a position.
10906 </result>
10907
10908 </desc>
10909 <param name="position" type="unsigned long" dir="in">
10910 <desc>Position to remove the filter from.</desc>
10911 </param>
10912 <param name="filter" type="IUSBDeviceFilter" dir="return">
10913 <desc>Removed USB device filter.</desc>
10914 </param>
10915 </method>
10916
10917 </interface>
10918
10919
10920 <!--
10921 // IUSBDevice
10922 /////////////////////////////////////////////////////////////////////////
10923 -->
10924
10925 <enumerator
10926 name="IUSBDeviceEnumerator" type="IUSBDevice"
10927 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
10928 />
10929
10930 <collection
10931 name="IUSBDeviceCollection" type="IUSBDevice"
10932 enumerator="IUSBDeviceEnumerator"
10933 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
10934 readonly="yes"
10935 >
10936 <method name="findById">
10937 <desc>
10938 Searches this collection for a USB device with the given UUID.
10939 <note>
10940 The method returns an error if the given UUID does not
10941 correspond to any USB device in the collection.
10942 </note>
10943 <see>IUSBDevice::id</see>
10944 </desc>
10945 <param name="id" type="uuid" dir="in">
10946 <desc>UUID of the USB device to search for.</desc>
10947 </param>
10948 <param name="device" type="IUSBDevice" dir="return">
10949 <desc>Found USB device object.</desc>
10950 </param>
10951 </method>
10952
10953 <method name="findByAddress">
10954 <desc>
10955 Searches this collection for a USB device with the given
10956 host address.
10957 <note>
10958 The method returns an error if the given address does not
10959 correspond to any USB device in the collection.
10960 </note>
10961 <see>IUSBDevice::address</see>
10962 </desc>
10963 <param name="name" type="wstring" dir="in">
10964 <desc>
10965 Address of the USB device (as assigned by the host) to
10966 search for.
10967 </desc>
10968 </param>
10969 <param name="device" type="IUSBDevice" dir="return">
10970 <desc>Found USB device object.</desc>
10971 </param>
10972 </method>
10973
10974 </collection>
10975
10976 <interface
10977 name="IUSBDevice" extends="$unknown"
10978 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
10979 wsmap="managed"
10980 >
10981 <desc>
10982 The IUSBDevice interface represents a virtual USB device attached to the
10983 virtual machine.
10984
10985 A collection of objects implementing this interface is stored in the
10986 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
10987 attached to a running virtual machine's USB controller.
10988 </desc>
10989
10990 <attribute name="id" type="uuid" readonly="yes">
10991 <desc>
10992 Unique USB device ID. This ID is built from #vendorId,
10993 #productId, #revision and #serialNumber.
10994 </desc>
10995 </attribute>
10996
10997 <attribute name="vendorId" type="unsigned short" readonly="yes">
10998 <desc>Vendor ID.</desc>
10999 </attribute>
11000
11001 <attribute name="productId" type="unsigned short" readonly="yes">
11002 <desc>Product ID.</desc>
11003 </attribute>
11004
11005 <attribute name="revision" type="unsigned short" readonly="yes">
11006 <desc>
11007 Product revision number. This is a packed BCD represented as
11008 unsigned short. The high byte is the integer part and the low
11009 byte is the decimal.
11010 </desc>
11011 </attribute>
11012
11013 <attribute name="manufacturer" type="wstring" readonly="yes">
11014 <desc>Manufacturer string.</desc>
11015 </attribute>
11016
11017 <attribute name="product" type="wstring" readonly="yes">
11018 <desc>Product string.</desc>
11019 </attribute>
11020
11021 <attribute name="serialNumber" type="wstring" readonly="yes">
11022 <desc>Serial number string.</desc>
11023 </attribute>
11024
11025 <attribute name="address" type="wstring" readonly="yes">
11026 <desc>Host specific address of the device.</desc>
11027 </attribute>
11028
11029 <attribute name="port" type="unsigned short" readonly="yes">
11030 <desc>
11031 Host USB port number the device is physically
11032 connected to.
11033 </desc>
11034 </attribute>
11035
11036 <attribute name="version" type="unsigned short" readonly="yes">
11037 <desc>
11038 The major USB version of the device - 1 or 2.
11039 </desc>
11040 </attribute>
11041
11042 <attribute name="portVersion" type="unsigned short" readonly="yes">
11043 <desc>
11044 The major USB version of the host USB port the device is
11045 physically connected to - 1 or 2. For devices not connected to
11046 anything this will have the same value as the version attribute.
11047 </desc>
11048 </attribute>
11049
11050 <attribute name="remote" type="boolean" readonly="yes">
11051 <desc>
11052 Whether the device is physically connected to a remote VRDP
11053 client or to a local host machine.
11054 </desc>
11055 </attribute>
11056
11057 </interface>
11058
11059
11060 <!--
11061 // IUSBDeviceFilter
11062 /////////////////////////////////////////////////////////////////////////
11063 -->
11064
11065 <enumerator
11066 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
11067 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
11068 />
11069
11070 <collection
11071 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
11072 enumerator="IUSBDeviceFilterEnumerator"
11073 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
11074 readonly="yes"
11075 />
11076
11077 <interface
11078 name="IUSBDeviceFilter" extends="$unknown"
11079 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11080 wsmap="managed"
11081 >
11082 <desc>
11083 The IUSBDeviceFilter interface represents an USB device filter used
11084 to perform actions on a group of USB devices.
11085
11086 This type of filters is used by running virtual machines to
11087 automatically capture selected USB devices once they are physically
11088 attached to the host computer.
11089
11090 A USB device is matched to the given device filter if and only if all
11091 attributes of the device match the corresponding attributes of the
11092 filter (that is, attributes are joined together using the logical AND
11093 operation). On the other hand, all together, filters in the list of
11094 filters carry the semantics of the logical OR operation. So if it is
11095 desirable to create a match like "this vendor id OR this product id",
11096 one needs to create two filters and specify "any match" (see below)
11097 for unused attributes.
11098
11099 All filter attributes used for matching are strings. Each string
11100 is an expression representing a set of values of the corresponding
11101 device attribute, that will match the given filter. Currently, the
11102 following filtering expressions are supported:
11103
11104 <ul>
11105 <li><i>Interval filters</i>. Used to specify valid intervals for
11106 integer device attributes (Vendor ID, Product ID and Revision).
11107 The format of the string is:
11108
11109 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11110
11111 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11112 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11113 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11114 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11115 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11116 possible integer is assumed.
11117 </li>
11118 <li><i>Boolean filters</i>. Used to specify acceptable values for
11119 boolean device attributes. The format of the string is:
11120
11121 <tt>true|false|yes|no|0|1</tt>
11122
11123 </li>
11124 <li><i>Exact match</i>. Used to specify a single value for the given
11125 device attribute. Any string that doesn't start with <tt>int:</tt>
11126 represents the exact match. String device attributes are compared to
11127 this string including case of symbols. Integer attributes are first
11128 converted to a string (see individual filter attributes) and then
11129 compared ignoring case.
11130
11131 </li>
11132 <li><i>Any match</i>. Any value of the corresponding device attribute
11133 will match the given filter. An empty or <tt>null</tt> string is
11134 used to construct this type of filtering expressions.
11135
11136 </li>
11137 </ul>
11138
11139 <note>
11140 On the Windows host platform, interval filters are not currently
11141 available. Also all string filter attributes
11142 (<link to="#manufacturer"/>, <link to="#product"/>,
11143 <link to="#serialNumber"/>) are ignored, so they behave as
11144 <i>any match</i> no matter what string expression is specified.
11145 </note>
11146
11147 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11148 </desc>
11149
11150 <attribute name="name" type="wstring">
11151 <desc>
11152 Visible name for this filter.
11153 This name is used to visually distinguish one filter from another,
11154 so it can neither be <tt>null</tt> nor an empty string.
11155 </desc>
11156 </attribute>
11157
11158 <attribute name="active" type="boolean">
11159 <desc>Whether this filter active or has been temporarily disabled.</desc>
11160 </attribute>
11161
11162 <attribute name="vendorId" type="wstring">
11163 <desc>
11164 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11165 The string representation for the <i>exact matching</i>
11166 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11167 (including leading zeroes).
11168 </desc>
11169 </attribute>
11170
11171 <attribute name="productId" type="wstring">
11172 <desc>
11173 <link to="IUSBDevice::productId">Product ID</link> filter.
11174 The string representation for the <i>exact matching</i>
11175 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11176 (including leading zeroes).
11177 </desc>
11178 </attribute>
11179
11180 <attribute name="revision" type="wstring">
11181 <desc>
11182 <link to="IUSBDevice::productId">Product revision number</link>
11183 filter. The string representation for the <i>exact matching</i>
11184 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11185 of the integer part of the revision, and <tt>F</tt> is the
11186 decimal digit of its fractional part (including leading and
11187 trailing zeros).
11188 Note that for interval filters, it's best to use the hexadecimal
11189 form, because the revision is stored as a 16 bit packed BCD value;
11190 so the expression <tt>int:0x0100-0x0199</tt> will match any
11191 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11192 </desc>
11193 </attribute>
11194
11195 <attribute name="manufacturer" type="wstring">
11196 <desc>
11197 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11198 </desc>
11199 </attribute>
11200
11201 <attribute name="product" type="wstring">
11202 <desc>
11203 <link to="IUSBDevice::product">Product</link> filter.
11204 </desc>
11205 </attribute>
11206
11207 <attribute name="serialNumber" type="wstring">
11208 <desc>
11209 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11210 </desc>
11211 </attribute>
11212
11213 <attribute name="port" type="wstring">
11214 <desc>
11215 <link to="IUSBDevice::port">Host USB port</link> filter.
11216 </desc>
11217 </attribute>
11218
11219 <attribute name="remote" type="wstring">
11220 <desc>
11221 <link to="IUSBDevice::remote">Remote state</link> filter.
11222 <note>
11223 This filter makes sense only for machine USB filters,
11224 i.e. it is ignored by IHostUSBDeviceFilter objects.
11225 </note>
11226 </desc>
11227 </attribute>
11228
11229 <attribute name="maskedInterfaces" type="unsigned long">
11230 <desc>
11231 This is an advanced option for hiding one or more USB interfaces
11232 from the guest. The value is a bit mask where the bits that are set
11233 means the corresponding USB interface should be hidden, masked off
11234 if you like.
11235 This feature only works on Linux hosts.
11236 </desc>
11237 </attribute>
11238
11239 </interface>
11240
11241
11242 <!--
11243 // IHostUSBDevice
11244 /////////////////////////////////////////////////////////////////////////
11245 -->
11246
11247 <enum
11248 name="USBDeviceState"
11249 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11250 >
11251 <desc>
11252 USB device state. This enumeration represents all possible states
11253 of the USB device physically attached to the host computer regarding
11254 its state on the host computer and availability to guest computers
11255 (all currently running virtual machines).
11256
11257 Once a supported USB device is attached to the host, global USB
11258 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11259 either ignore the device, or put it to USBDeviceState_Held state, or do
11260 nothing. Unless the device is ignored by global filters, filters of all
11261 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11262 activated that can put it to USBDeviceState_Captured state.
11263
11264 If the device was ignored by global filters, or didn't match
11265 any filters at all (including guest ones), it is handled by the host
11266 in a normal way. In this case, the device state is determined by
11267 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11268 or USBDeviceState_Available, depending on the current device usage.
11269
11270 Besides auto-capturing based on filters, the device can be manually
11271 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11272 state is USBDeviceState_Busy, USBDeviceState_Available or
11273 USBDeviceState_Held.
11274
11275 <note>
11276 Due to differences in USB stack implementations in Linux and Win32,
11277 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11278 only to the Linux version of the product. This also means that (<link
11279 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11280 device state is USBDeviceState_Held.
11281 </note>
11282
11283 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11284 </desc>
11285
11286 <const name="NotSupported" value="0">
11287 <desc>
11288 Not supported by the VirtualBox server, not available to guests.
11289 </desc>
11290 </const>
11291 <const name="Unavailable" value="1">
11292 <desc>
11293 Being used by the host computer exclusively,
11294 not available to guests.
11295 </desc>
11296 </const>
11297 <const name="Busy" value="2">
11298 <desc>
11299 Being used by the host computer, potentially available to guests.
11300 </desc>
11301 </const>
11302 <const name="Available" value="3">
11303 <desc>
11304 Not used by the host computer, available to guests (the host computer
11305 can also start using the device at any time).
11306 </desc>
11307 </const>
11308 <const name="Held" value="4">
11309 <desc>
11310 Held by the VirtualBox server (ignored by the host computer),
11311 available to guests.
11312 </desc>
11313 </const>
11314 <const name="Captured" value="5">
11315 <desc>
11316 Captured by one of the guest computers, not available
11317 to anybody else.
11318 </desc>
11319 </const>
11320 </enum>
11321
11322 <enumerator
11323 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11324 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11325 />
11326
11327 <collection
11328 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11329 enumerator="IHostUSBDeviceEnumerator"
11330 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11331 readonly="yes"
11332 >
11333 <method name="findById">
11334 <desc>
11335 Searches this collection for a USB device with the given UUID.
11336 <note>
11337 The method returns an error if the given UUID does not
11338 correspond to any USB device in the collection.
11339 </note>
11340 <see>IHostUSBDevice::id</see>
11341 </desc>
11342 <param name="id" type="uuid" dir="in">
11343 <desc>UUID of the USB device to search for.</desc>
11344 </param>
11345 <param name="device" type="IHostUSBDevice" dir="return">
11346 <desc>Found USB device object.</desc>
11347 </param>
11348 </method>
11349
11350 <method name="findByAddress">
11351 <desc>
11352 Searches this collection for a USB device with the given
11353 host address.
11354 <note>
11355 The method returns an error if the given address does not
11356 correspond to any USB device in the collection.
11357 </note>
11358 <see>IHostUSBDevice::address</see>
11359 </desc>
11360 <param name="name" type="wstring" dir="in">
11361 <desc>
11362 Address of the USB device (as assigned by the host) to
11363 search for.
11364 </desc>
11365 </param>
11366 <param name="device" type="IHostUSBDevice" dir="return">
11367 <desc>Found USB device object.</desc>
11368 </param>
11369 </method>
11370
11371 </collection>
11372
11373 <interface
11374 name="IHostUSBDevice" extends="IUSBDevice"
11375 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11376 wsmap="managed"
11377 >
11378 <desc>
11379 The IHostUSBDevice interface represents a physical USB device attached
11380 to the host computer.
11381
11382 Besides properties inherited from IUSBDevice, this interface adds the
11383 <link to="#state"/> property that holds the current state of the USB
11384 device.
11385
11386 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11387 </desc>
11388
11389 <attribute name="state" type="USBDeviceState" readonly="yes">
11390 <desc>
11391 Current state of the device.
11392 </desc>
11393 </attribute>
11394
11395 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11396
11397 </interface>
11398
11399
11400 <!--
11401 // IHostUSBDeviceFilter
11402 /////////////////////////////////////////////////////////////////////////
11403 -->
11404
11405 <enum
11406 name="USBDeviceFilterAction"
11407 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11408 >
11409 <desc>
11410 Actions for host USB device filters.
11411 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11412 </desc>
11413
11414 <const name="Null" value="0">
11415 <desc>Null value (never used by the API).</desc>
11416 </const>
11417 <const name="Ignore" value="1">
11418 <desc>Ignore the matched USB device.</desc>
11419 </const>
11420 <const name="Hold" value="2">
11421 <desc>Hold the matched USB device.</desc>
11422 </const>
11423 </enum>
11424
11425 <enumerator
11426 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
11427 uuid="ff735211-903e-4642-9c37-189eb44579fe"
11428 />
11429
11430 <collection
11431 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
11432 enumerator="IHostUSBDeviceFilterEnumerator"
11433 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
11434 readonly="yes"
11435 />
11436
11437 <interface
11438 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11439 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11440 wsmap="managed"
11441 >
11442 <desc>
11443 The IHostUSBDeviceFilter interface represents a global filter for a
11444 physical USB device used by the host computer. Used indirectly in
11445 <link to="IHost::USBDeviceFilters"/>.
11446
11447 Using filters of this type, the host computer determines the initial
11448 state of the USB device after it is physically attached to the
11449 host's USB controller.
11450
11451 <note>
11452 The <link to="#remote"/> attribute is ignored by this type of
11453 filters, because it makes sense only for
11454 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11455 </note>
11456
11457 <see>IHost::USBDeviceFilters</see>
11458 </desc>
11459
11460 <attribute name="action" type="USBDeviceFilterAction">
11461 <desc>
11462 Action performed by the host when an attached USB device
11463 matches this filter.
11464 </desc>
11465 </attribute>
11466
11467 </interface>
11468
11469 <!--
11470 // IAudioAdapter
11471 /////////////////////////////////////////////////////////////////////////
11472 -->
11473
11474 <enum
11475 name="AudioDriverType"
11476 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11477 >
11478 <desc>
11479 Host audio driver type.
11480 </desc>
11481
11482 <const name="Null" value="0">
11483 <desc>Null value, also means "dummy audio driver".</desc>
11484 </const>
11485 <const name="WinMM" value="1"/>
11486 <const name="OSS" value="2"/>
11487 <const name="ALSA" value="3"/>
11488 <const name="DirectSound" value="4"/>
11489 <const name="CoreAudio" value="5"/>
11490 <const name="MMPM" value="6"/>
11491 <const name="Pulse" value="7"/>
11492 <const name="SolAudio" value="8"/>
11493 </enum>
11494
11495 <enum
11496 name="AudioControllerType"
11497 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11498 >
11499 <desc>
11500 Virtual audio controller type.
11501 </desc>
11502
11503 <const name="AC97" value="0"/>
11504 <const name="SB16" value="1"/>
11505 </enum>
11506
11507 <interface
11508 name="IAudioAdapter" extends="$unknown"
11509 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11510 wsmap="managed"
11511 >
11512 <desc>
11513 The IAudioAdapter interface represents the virtual audio adapter of
11514 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11515 </desc>
11516 <attribute name="enabled" type="boolean">
11517 <desc>
11518 Flag whether the audio adapter is present in the
11519 guest system. If disabled, the virtual guest hardware will
11520 not contain any audio adapter. Can only be changed when
11521 the VM is not running.
11522 </desc>
11523 </attribute>
11524 <attribute name="audioController" type="AudioControllerType">
11525 <desc>
11526 The audio hardware we emulate.
11527 </desc>
11528 </attribute>
11529 <attribute name="audioDriver" type="AudioDriverType">
11530 <desc>
11531 Audio driver the adapter is connected to. This setting
11532 can only be changed when the VM is not running.
11533 </desc>
11534 </attribute>
11535 </interface>
11536
11537 <!--
11538 // IVRDPServer
11539 /////////////////////////////////////////////////////////////////////////
11540 -->
11541
11542 <enum
11543 name="VRDPAuthType"
11544 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11545 >
11546 <desc>
11547 VRDP authentication type.
11548 </desc>
11549
11550 <const name="Null" value="0">
11551 <desc>Null value, also means "no authentication".</desc>
11552 </const>
11553 <const name="External" value="1"/>
11554 <const name="Guest" value="2"/>
11555 </enum>
11556
11557 <interface
11558 name="IVRDPServer" extends="$unknown"
11559 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11560 wsmap="managed"
11561 >
11562 <attribute name="enabled" type="boolean">
11563 <desc>VRDP server status.</desc>
11564 </attribute>
11565
11566 <attribute name="port" type="unsigned long">
11567 <desc>
11568 VRDP server port number.
11569 <note>
11570 Setting the value of this property to <tt>0</tt> will reset the port
11571 number to the default value which is
11572 currently <tt>3389</tt>. Reading this property will always return a
11573 real port number, even after it has been set to <tt>0</tt> (in which
11574 case the default port is returned).
11575 </note>
11576 </desc>
11577 </attribute>
11578
11579 <attribute name="netAddress" type="wstring">
11580 <desc>VRDP server address.</desc>
11581 </attribute>
11582
11583 <attribute name="authType" type="VRDPAuthType">
11584 <desc>VRDP authentication method.</desc>
11585 </attribute>
11586
11587 <attribute name="authTimeout" type="unsigned long">
11588 <desc>Timeout for guest authentication. Milliseconds.</desc>
11589 </attribute>
11590
11591 <attribute name="allowMultiConnection" type="boolean">
11592 <desc>
11593 Flag whether multiple simultaneous connections to the VM are permitted.
11594 Note that this will be replaced by a more powerful mechanism in the future.
11595 </desc>
11596 </attribute>
11597
11598 <attribute name="reuseSingleConnection" type="boolean">
11599 <desc>
11600 Flag whether the existing connection must be dropped and a new connection
11601 must be established by the VRDP server, when a new client connects in single
11602 connection mode.
11603 </desc>
11604 </attribute>
11605
11606 </interface>
11607
11608
11609 <!--
11610 // ISharedFolder
11611 /////////////////////////////////////////////////////////////////////////
11612 -->
11613
11614 <interface
11615 name="ISharedFolder" extends="$unknown"
11616 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
11617 wsmap="struct"
11618 >
11619 <desc>
11620 The ISharedFolder interface represents a folder in the host computer's
11621 file system accessible from the guest OS running inside a virtual
11622 machine using an associated logical name.
11623
11624 There are three types of shared folders:
11625 <ul>
11626 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11627 folders available to all virtual machines.</li>
11628 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11629 VM-specific shared folders available to the given virtual machine at
11630 startup.</li>
11631 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11632 VM-specific shared folders created in the session context (for
11633 example, when the virtual machine is running) and automatically
11634 discarded when the session is closed (the VM is powered off).</li>
11635 </ul>
11636
11637 Logical names of shared folders must be unique within the given scope
11638 (global, permanent or transient). However, they do not need to be unique
11639 across scopes. In this case, the definition of the shared folder in a
11640 more specific scope takes precedence over definitions in all other
11641 scopes. The order of precedence is (more specific to more general):
11642 <ol>
11643 <li>Transient definitions</li>
11644 <li>Permanent definitions</li>
11645 <li>Global definitions</li>
11646 </ol>
11647
11648 For example, if MyMachine has a shared folder named
11649 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11650 transient shared folder named <tt>C_DRIVE</tt> (that points
11651 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11652 of <tt>C_DRIVE</tt> in the guest OS so
11653 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11654 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11655 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11656 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11657 to <tt>C:\\</tt> if it still exists.
11658
11659 Note that permanent and transient shared folders of different machines
11660 are in different name spaces, so they don't overlap and don't need to
11661 have unique logical names.
11662
11663 <note>
11664 Global shared folders are not implemented in the current version of the
11665 product.
11666 </note>
11667 </desc>
11668
11669 <attribute name="name" type="wstring" readonly="yes">
11670 <desc>Logical name of the shared folder.</desc>
11671 </attribute>
11672
11673 <attribute name="hostPath" type="wstring" readonly="yes">
11674 <desc>Full path to the shared folder in the host file system.</desc>
11675 </attribute>
11676
11677 <attribute name="accessible" type="boolean" readonly="yes">
11678 <desc>
11679 Whether the folder defined by the host path is currently
11680 accessible or not.
11681 For example, the folder can be unaccessible if it is placed
11682 on the network share that is not available by the time
11683 this property is read.
11684 </desc>
11685 </attribute>
11686
11687 <attribute name="writable" type="boolean" readonly="yes">
11688 <desc>
11689 Whether the folder defined by the host path is writable or
11690 not.
11691 </desc>
11692 </attribute>
11693
11694 <attribute name="lastAccessError" type="wstring" readonly="yes">
11695 <desc>
11696 Text message that represents the result of the last accessibility
11697 check.
11698
11699 Accessibility checks are performed each time the <link to="#accessible"/>
11700 attribute is read. A @c null string is returned if the last
11701 accessibility check was successful. A non-null string indicates a
11702 failure and should normally describe a reason of the failure (for
11703 example, a file read error).
11704 </desc>
11705 </attribute>
11706
11707 </interface>
11708
11709 <!--
11710 // ISession
11711 /////////////////////////////////////////////////////////////////////////
11712 -->
11713
11714 <interface
11715 name="IInternalSessionControl" extends="$unknown"
11716 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11717 internal="yes"
11718 wsmap="suppress"
11719 >
11720 <method name="getPID">
11721 <desc>PID of the process that has created this Session object.
11722 </desc>
11723 <param name="pid" type="unsigned long" dir="return"/>
11724 </method>
11725
11726 <method name="getRemoteConsole">
11727 <desc>
11728 Returns the console object suitable for remote control.
11729
11730 <result name="VBOX_E_INVALID_VM_STATE">
11731 Session state prevents operation.
11732 </result>
11733 <result name="VBOX_E_INVALID_OBJECT_STATE">
11734 Session type prevents operation.
11735 </result>
11736
11737 </desc>
11738 <param name="console" type="IConsole" dir="return"/>
11739 </method>
11740
11741 <method name="assignMachine">
11742 <desc>
11743 Assigns the machine object associated with this direct-type
11744 session or informs the session that it will be a remote one
11745 (if @a machine == NULL).
11746
11747 <result name="VBOX_E_INVALID_VM_STATE">
11748 Session state prevents operation.
11749 </result>
11750 <result name="VBOX_E_INVALID_OBJECT_STATE">
11751 Session type prevents operation.
11752 </result>
11753
11754 </desc>
11755 <param name="machine" type="IMachine" dir="in"/>
11756 </method>
11757
11758 <method name="assignRemoteMachine">
11759 <desc>
11760 Assigns the machine and the (remote) console object associated with
11761 this remote-type session.
11762
11763 <result name="VBOX_E_INVALID_VM_STATE">
11764 Session state prevents operation.
11765 </result>
11766
11767 </desc>
11768 <param name="machine" type="IMachine" dir="in"/>
11769 <param name="console" type="IConsole" dir="in"/>
11770 </method>
11771
11772 <method name="updateMachineState">
11773 <desc>
11774 Updates the machine state in the VM process.
11775 Must be called only in certain cases
11776 (see the method implementation).
11777
11778 <result name="VBOX_E_INVALID_VM_STATE">
11779 Session state prevents operation.
11780 </result>
11781 <result name="VBOX_E_INVALID_OBJECT_STATE">
11782 Session type prevents operation.
11783 </result>
11784
11785 </desc>
11786 <param name="aMachineState" type="MachineState" dir="in"/>
11787 </method>
11788
11789 <method name="uninitialize">
11790 <desc>
11791 Uninitializes (closes) this session. Used by VirtualBox to close
11792 the corresponding remote session when the direct session dies
11793 or gets closed.
11794
11795 <result name="VBOX_E_INVALID_VM_STATE">
11796 Session state prevents operation.
11797 </result>
11798
11799 </desc>
11800 </method>
11801
11802 <method name="onDVDDriveChange">
11803 <desc>
11804 Triggered when settings of the DVD drive object of the
11805 associated virtual machine have changed.
11806
11807 <result name="VBOX_E_INVALID_VM_STATE">
11808 Session state prevents operation.
11809 </result>
11810 <result name="VBOX_E_INVALID_OBJECT_STATE">
11811 Session type prevents operation.
11812 </result>
11813
11814 </desc>
11815 </method>
11816
11817 <method name="onFloppyDriveChange">
11818 <desc>
11819 Triggered when settings of the floppy drive object of the
11820 associated virtual machine have changed.
11821
11822 <result name="VBOX_E_INVALID_VM_STATE">
11823 Session state prevents operation.
11824 </result>
11825 <result name="VBOX_E_INVALID_OBJECT_STATE">
11826 Session type prevents operation.
11827 </result>
11828
11829 </desc>
11830 </method>
11831
11832 <method name="onNetworkAdapterChange">
11833 <desc>
11834 Triggered when settings of a network adapter of the
11835 associated virtual machine have changed.
11836
11837 <result name="VBOX_E_INVALID_VM_STATE">
11838 Session state prevents operation.
11839 </result>
11840 <result name="VBOX_E_INVALID_OBJECT_STATE">
11841 Session type prevents operation.
11842 </result>
11843
11844 </desc>
11845 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11846 </method>
11847
11848 <method name="onSerialPortChange">
11849 <desc>
11850 Triggered when settings of a serial port of the
11851 associated virtual machine have changed.
11852
11853 <result name="VBOX_E_INVALID_VM_STATE">
11854 Session state prevents operation.
11855 </result>
11856 <result name="VBOX_E_INVALID_OBJECT_STATE">
11857 Session type prevents operation.
11858 </result>
11859
11860 </desc>
11861 <param name="serialPort" type="ISerialPort" dir="in"/>
11862 </method>
11863
11864 <method name="onParallelPortChange">
11865 <desc>
11866 Triggered when settings of a parallel port of the
11867 associated virtual machine have changed.
11868
11869 <result name="VBOX_E_INVALID_VM_STATE">
11870 Session state prevents operation.
11871 </result>
11872 <result name="VBOX_E_INVALID_OBJECT_STATE">
11873 Session type prevents operation.
11874 </result>
11875
11876 </desc>
11877 <param name="parallelPort" type="IParallelPort" dir="in"/>
11878 </method>
11879
11880 <method name="onVRDPServerChange">
11881 <desc>
11882 Triggered when settings of the VRDP server object of the
11883 associated virtual machine have changed.
11884
11885 <result name="VBOX_E_INVALID_VM_STATE">
11886 Session state prevents operation.
11887 </result>
11888 <result name="VBOX_E_INVALID_OBJECT_STATE">
11889 Session type prevents operation.
11890 </result>
11891
11892 </desc>
11893 </method>
11894
11895 <method name="onUSBControllerChange">
11896 <desc>
11897 Triggered when settings of the USB controller object of the
11898 associated virtual machine have changed.
11899
11900 <result name="VBOX_E_INVALID_VM_STATE">
11901 Session state prevents operation.
11902 </result>
11903 <result name="VBOX_E_INVALID_OBJECT_STATE">
11904 Session type prevents operation.
11905 </result>
11906
11907 </desc>
11908 </method>
11909
11910 <method name="onSharedFolderChange">
11911 <desc>
11912 Triggered when a permanent (global or machine) shared folder has been
11913 created or removed.
11914 <note>
11915 We don't pass shared folder parameters in this notification because
11916 the order in which parallel notifications are delivered is not defined,
11917 therefore it could happen that these parameters were outdated by the
11918 time of processing this notification.
11919 </note>
11920
11921 <result name="VBOX_E_INVALID_VM_STATE">
11922 Session state prevents operation.
11923 </result>
11924 <result name="VBOX_E_INVALID_OBJECT_STATE">
11925 Session type prevents operation.
11926 </result>
11927
11928 </desc>
11929 <param name="global" type="boolean" dir="in"/>
11930 </method>
11931
11932 <method name="onUSBDeviceAttach">
11933 <desc>
11934 Triggered when a request to capture a USB device (as a result
11935 of matched USB filters or direct call to
11936 <link to="IConsole::attachUSBDevice"/>) has completed.
11937 A @c null @a error object means success, otherwise it
11938 describes a failure.
11939
11940 <result name="VBOX_E_INVALID_VM_STATE">
11941 Session state prevents operation.
11942 </result>
11943 <result name="VBOX_E_INVALID_OBJECT_STATE">
11944 Session type prevents operation.
11945 </result>
11946
11947 </desc>
11948 <param name="device" type="IUSBDevice" dir="in"/>
11949 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11950 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
11951 </method>
11952
11953 <method name="onUSBDeviceDetach">
11954 <desc>
11955 Triggered when a request to release the USB device (as a result
11956 of machine termination or direct call to
11957 <link to="IConsole::detachUSBDevice"/>) has completed.
11958 A @c null @a error object means success, otherwise it
11959
11960 <result name="VBOX_E_INVALID_VM_STATE">
11961 Session state prevents operation.
11962 </result>
11963 <result name="VBOX_E_INVALID_OBJECT_STATE">
11964 Session type prevents operation.
11965 </result>
11966
11967 </desc>
11968 <param name="id" type="uuid" dir="in"/>
11969 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11970 </method>
11971
11972 <method name="onShowWindow">
11973 <desc>
11974 Called by <link to="IMachine::canShowConsoleWindow"/> and by
11975 <link to="IMachine::showConsoleWindow"/> in order to notify
11976 console callbacks
11977 <link to="IConsoleCallback::onCanShowWindow"/>
11978 and <link to="IConsoleCallback::onShowWindow"/>.
11979
11980 <result name="VBOX_E_INVALID_OBJECT_STATE">
11981 Session type prevents operation.
11982 </result>
11983
11984 </desc>
11985 <param name="check" type="boolean" dir="in"/>
11986 <param name="canShow" type="boolean" dir="out"/>
11987 <param name="winId" type="unsigned long long" dir="out"/>
11988 </method>
11989
11990 <method name="accessGuestProperty">
11991 <desc>
11992 Called by <link to="IMachine::getGuestProperty"/> and by
11993 <link to="IMachine::setGuestProperty"/> in order to read and
11994 modify guest properties.
11995
11996 <result name="VBOX_E_INVALID_VM_STATE">
11997 Machine session is not open.
11998 </result>
11999 <result name="VBOX_E_INVALID_OBJECT_STATE">
12000 Session type is not direct.
12001 </result>
12002
12003 </desc>
12004 <param name="name" type="wstring" dir="in"/>
12005 <param name="value" type="wstring" dir="in"/>
12006 <param name="flags" type="wstring" dir="in"/>
12007 <param name="isSetter" type="boolean" dir="in"/>
12008 <param name="retValue" type="wstring" dir="out"/>
12009 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12010 <param name="retFlags" type="wstring" dir="out"/>
12011 </method>
12012
12013 <method name="enumerateGuestProperties">
12014 <desc>
12015 Return a list of the guest properties matching a set of patterns along
12016 with their values, time stamps and flags.
12017
12018 <result name="VBOX_E_INVALID_VM_STATE">
12019 Machine session is not open.
12020 </result>
12021 <result name="VBOX_E_INVALID_OBJECT_STATE">
12022 Session type is not direct.
12023 </result>
12024
12025 </desc>
12026 <param name="patterns" type="wstring" dir="in">
12027 <desc>
12028 The patterns to match the properties against as a comma-separated
12029 string. If this is empty, all properties currently set will be
12030 returned.
12031 </desc>
12032 </param>
12033 <param name="key" type="wstring" dir="out" safearray="yes">
12034 <desc>
12035 The key names of the properties returned.
12036 </desc>
12037 </param>
12038 <param name="value" type="wstring" dir="out" safearray="yes">
12039 <desc>
12040 The values of the properties returned. The array entries match the
12041 corresponding entries in the @a key array.
12042 </desc>
12043 </param>
12044 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12045 <desc>
12046 The time stamps of the properties returned. The array entries match
12047 the corresponding entries in the @a key array.
12048 </desc>
12049 </param>
12050 <param name="flags" type="wstring" dir="out" safearray="yes">
12051 <desc>
12052 The flags of the properties returned. The array entries match the
12053 corresponding entries in the @a key array.
12054 </desc>
12055 </param>
12056 </method>
12057
12058 </interface>
12059
12060 <interface
12061 name="ISession" extends="$dispatched"
12062 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12063 wsmap="managed"
12064 >
12065 <desc>
12066 The ISession interface represents a serialization primitive for virtual
12067 machines.
12068
12069 With VirtualBox, every time one wishes to manipulate a virtual machine
12070 (e.g. change its settings or start execution), a session object is
12071 required. Such an object must be passed to one of the session methods
12072 that open the given session, which then initiates the machine manipulation.
12073
12074 A session serves several purposes: it identifies to the inter-process VirtualBox
12075 code which process is currently working with the virtual machine, and it ensures
12076 that there are no incompatible requests from several processes for the
12077 same virtual machine. Session objects can therefore be thought of as mutex
12078 semaphores that lock virtual machines to prevent conflicting accesses from
12079 several processes.
12080
12081 How sessions objects are used depends on whether you use the Main API
12082 via COM or via the webservice:
12083
12084 <ul>
12085 <li>When using the COM API directly, an object of the Session class from the
12086 VirtualBox type library needs to be created. In regular COM C++ client code,
12087 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12088 This object will then act as a local session object in further calls to open
12089 a session.
12090 </li>
12091
12092 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12093 one session object automatically when <link to="IWebsessionManager::logon" />
12094 is called. A managed object reference to that session object can be retrieved by
12095 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12096 reference can then be used to open sessions.
12097 </li>
12098 </ul>
12099
12100 Sessions are mainly used in two variations:
12101
12102 <ul>
12103 <li>
12104 To start a virtual machine in a separate process, one would call
12105 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12106 object as its first parameter. This session then identifies the caller
12107 and lets him control the started machine (for example, pause machine
12108 execution or power it down) as well as be notified about machine
12109 execution state changes.
12110 </li>
12111
12112 <li>To alter machine settings, or to start machine execution within the
12113 current process, one needs to open a direct session for the machine first by
12114 calling <link to="IVirtualBox::openSession"/>. While a direct session
12115 is open within one process, no any other process may open another direct
12116 session for the same machine. This prevents the machine from being changed
12117 by other processes while it is running or while the machine is being configured.
12118 </li>
12119 </ul>
12120
12121 One also can attach to an existing direct session already opened by
12122 another process (for example, in order to send a control request to the
12123 virtual machine such as the pause or the reset request). This is done by
12124 calling <link to="IVirtualBox::openExistingSession"/>.
12125
12126 <note>
12127 Unless you are trying to write a new VirtualBox front-end that
12128 performs direct machine execution (like the VirtualBox or VBoxSDL
12129 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12130 session opened by <link to="IVirtualBox::openSession"/> and use this
12131 session only to change virtual machine settings. If you simply want to
12132 start virtual machine execution using one of the existing front-ends
12133 (for example the VirtualBox GUI or headless server), simply use
12134 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12135 will power up the machine automatically for you.
12136 </note>
12137 </desc>
12138
12139 <attribute name="state" type="SessionState" readonly="yes">
12140 <desc>Current state of this session.</desc>
12141 </attribute>
12142
12143 <attribute name="type" type="SessionType" readonly="yes">
12144 <desc>
12145 Type of this session. The value of this attribute is valid only
12146 if the session is currently open (i.e. its #state is
12147 SessionType_SessionOpen), otherwise an error will be returned.
12148 </desc>
12149 </attribute>
12150
12151 <attribute name="machine" type="IMachine" readonly="yes">
12152 <desc>Machine object associated with this session.</desc>
12153 </attribute>
12154
12155 <attribute name="console" type="IConsole" readonly="yes">
12156 <desc>Console object associated with this session.</desc>
12157 </attribute>
12158
12159 <method name="close">
12160 <desc>
12161 Closes a session that was previously opened.
12162
12163 It is recommended that every time an "open session" method (such as
12164 <link to="IVirtualBox::openRemoteSession" /> or
12165 <link to="IVirtualBox::openSession" />) has been called to
12166 manipulate a virtual machine, the caller invoke
12167 ISession::close() when it's done doing so. Since sessions are
12168 serialization primitives much like ordinary mutexes, they are
12169 best used the same way: for each "open" call, there should be
12170 a matching "close" call, even when errors occur.
12171
12172 Otherwise, if a direct session for a machine opened with
12173 <link to="IVirtualBox::openSession"/> is not explicitly closed
12174 when the application terminates, the state of the machine will
12175 be set to <link to="MachineState_Aborted" /> on the server.
12176
12177 Generally, it is recommended to close all open sessions explicitly
12178 before terminating the application (regardless of the reason for
12179 the termination).
12180
12181 <note>
12182 Do not expect the session state (<link to="ISession::state" />
12183 to return to "Closed" immediately after you invoke
12184 ISession::close(), particularly if you have started a remote
12185 session to execute the VM in a new process. The session state will
12186 automatically return to "Closed" once the VM is no longer executing,
12187 which can of course take a very long time.
12188 </note>
12189
12190 <result name="E_UNEXPECTED">
12191 Session is not open.
12192 </result>
12193
12194 </desc>
12195 </method>
12196
12197 </interface>
12198
12199 <!--
12200 // ISATAController
12201 /////////////////////////////////////////////////////////////////////////
12202 -->
12203
12204 <interface
12205 name="ISATAController" extends="$unknown"
12206 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12207 wsmap="managed"
12208 >
12209 <attribute name="enabled" type="boolean">
12210 <desc>
12211 Flag whether the SATA controller is present in the
12212 guest system. If disabled, the virtual guest hardware will
12213 not contain any SATA controller. Can only be changed when
12214 the VM is powered off.
12215 </desc>
12216 </attribute>
12217
12218 <attribute name="portCount" type="unsigned long">
12219 <desc>
12220 The number of usable ports on the SATA controller.
12221 It ranges from 1 to 30.
12222 </desc>
12223 </attribute>
12224
12225 <method name="GetIDEEmulationPort">
12226 <desc>
12227 Gets the corresponding port number which is emulated as an IDE device.
12228
12229 <result name="E_INVALIDARG">
12230 The @a devicePosition is not in the range 0 to 3.
12231 </result>
12232
12233 </desc>
12234 <param name="devicePosition" type="long" dir="in"/>
12235 <param name="portNumber" type="long" dir="return"/>
12236 </method>
12237
12238 <method name="SetIDEEmulationPort">
12239 <desc>
12240 Sets the port number which is emulated as an IDE device.
12241
12242 <result name="E_INVALIDARG">
12243 The @a devicePosition is not in the range 0 to 3 or the
12244 @a portNumber is not in the range 0 to 29.
12245 </result>
12246
12247 </desc>
12248 <param name="devicePosition" type="long" dir="in"/>
12249 <param name="portNumber" type="long" dir="in"/>
12250 </method>
12251
12252 </interface>
12253
12254<if target="wsdl">
12255
12256 <!--
12257 // IManagedObjectRef
12258 /////////////////////////////////////////////////////////////////////////
12259 -->
12260
12261 <interface
12262 name="IManagedObjectRef" extends="$unknown"
12263 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12264 internal="yes"
12265 wsmap="managed"
12266 wscpp="hardcoded"
12267 >
12268 <desc>
12269 Managed object reference.
12270
12271 Only within the webservice, a managed object reference (which is really
12272 an opaque number) allows a webservice client to address an object
12273 that lives in the address space of the webservice server.
12274
12275 Behind each managed object reference, there is a COM object that lives
12276 in the webservice server's address space. The COM object is not freed
12277 until the managed object reference is released, either by an explicit
12278 call to <link to="IManagedObjectRef::release" /> or by logging off from
12279 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12280 all objects created during the webservice session.
12281
12282 Whenever a method call of the VirtualBox API returns a COM object, the
12283 webservice representation of that method will instead return a
12284 managed object reference, which can then be used to invoke methods
12285 on that object.
12286 </desc>
12287
12288 <method name="getInterfaceName">
12289 <desc>
12290 Returns the name of the interface that this managed object represents,
12291 for example, "IMachine", as a string.
12292 </desc>
12293 <param name="return" type="wstring" dir="return"/>
12294 </method>
12295
12296 <method name="release">
12297 <desc>
12298 Releases this managed object reference and frees the resources that
12299 were allocated for it in the webservice server process. After calling
12300 this method, the identifier of the reference can no longer be used.
12301 </desc>
12302 </method>
12303
12304 </interface>
12305
12306 <!--
12307 // IWebsessionManager
12308 /////////////////////////////////////////////////////////////////////////
12309 -->
12310
12311 <interface
12312 name="IWebsessionManager" extends="$unknown"
12313 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12314 internal="yes"
12315 wsmap="global"
12316 wscpp="hardcoded"
12317 >
12318 <desc>
12319 Websession manager. This provides essential services
12320 to webservice clients.
12321 </desc>
12322 <method name="logon">
12323 <desc>
12324 Logs a new client onto the webservice and returns a managed object reference to
12325 the IVirtualBox instance, which the client can then use as a basis to further
12326 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12327 interface, in one way or the other.
12328 </desc>
12329 <param name="username" type="wstring" dir="in"/>
12330 <param name="password" type="wstring" dir="in"/>
12331 <param name="return" type="IVirtualBox" dir="return"/>
12332 </method>
12333
12334 <method name="getSessionObject">
12335 <desc>
12336 Returns a managed object reference to the internal ISession object that was created
12337 for this web service session when the client logged on.
12338
12339 <see>ISession</see>
12340 </desc>
12341 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12342 <param name="return" type="ISession" dir="return"/>
12343 </method>
12344
12345 <method name="logoff">
12346 <desc>
12347 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12348 and destroys all resources associated with the session (most importantly, all
12349 managed objects created in the server while the session was active).
12350 </desc>
12351 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12352 </method>
12353
12354 </interface>
12355
12356</if>
12357
12358 <!--
12359 // IPerformanceCollector & friends
12360 /////////////////////////////////////////////////////////////////////////
12361 -->
12362
12363 <interface
12364 name="IPerformanceMetric" extends="$unknown"
12365 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12366 >
12367 <desc>
12368 The IPerformanceMetric interface represents parameters of the given
12369 performance metric.
12370 </desc>
12371
12372 <attribute name="metricName" type="wstring" readonly="yes">
12373 <desc>
12374 Name of the metric.
12375 </desc>
12376 </attribute>
12377
12378 <attribute name="object" type="$unknown" readonly="yes">
12379 <desc>
12380 Object this metric belongs to.
12381 </desc>
12382 </attribute>
12383
12384 <attribute name="description" type="wstring" readonly="yes">
12385 <desc>
12386 Textual description of the metric.
12387 </desc>
12388 </attribute>
12389
12390 <attribute name="period" type="unsigned long" readonly="yes">
12391 <desc>
12392 Time interval between samples, measured in seconds.
12393 </desc>
12394 </attribute>
12395
12396 <attribute name="count" type="unsigned long" readonly="yes">
12397 <desc>
12398 Number of recent samples retained by the performance collector for this
12399 metric.
12400
12401 When the collected sample count exceeds this number, older samples
12402 are discarded.
12403 </desc>
12404 </attribute>
12405
12406 <attribute name="unit" type="wstring" readonly="yes">
12407 <desc>
12408 Unit of measurement.
12409 </desc>
12410 </attribute>
12411
12412 <attribute name="minimumValue" type="long" readonly="yes">
12413 <desc>
12414 Minimum possible value of this metric.
12415 </desc>
12416 </attribute>
12417
12418 <attribute name="maximumValue" type="long" readonly="yes">
12419 <desc>
12420 Maximum possible value of this metric.
12421 </desc>
12422 </attribute>
12423 </interface>
12424
12425 <interface
12426 name="IPerformanceCollector" extends="$unknown"
12427 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12428 wsmap="managed"
12429 >
12430 <desc>
12431 The IPerformanceCollector interface represents a service that collects and
12432 stores performance metrics data.
12433
12434 Performance metrics are associated with objects like IHost and
12435 IMachine. Each object has a distinct set of performance metrics.
12436 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12437
12438 Metric data are collected at the specified intervals and are retained
12439 internally. The interval and the number of samples retained can be set
12440 with <link to="IPerformanceCollector::setupMetrics" />.
12441
12442 Metrics are organized hierarchically, each level separated by slash (/).
12443 General scheme for metric name is
12444 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12445 metric name stands for: CPU category, Load metric, User submetric, average
12446 aggregate. An aggregate function is computed over all retained data. Valid
12447 aggregate functions are:
12448
12449 <ul>
12450 <li>avg -- average</li>
12451 <li>min -- minimum</li>
12452 <li>max -- maximum</li>
12453 </ul>
12454
12455 "Category/Metric" together form base metric name. A base metric is the
12456 smallest unit for which a sampling interval and the number of retained
12457 samples can be set. Only base metrics can be enabled and disabled. All
12458 sub-metrics are collected when their base metric is collected.
12459 Collected values for any set of sub-metrics can be queried with
12460 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12461 metric parameters, querying metric data, enabling or disabling metrics
12462 wildcards can be used in metric names to specify a subset of metrics. For
12463 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12464 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12465 values without aggregates <tt>*:</tt> can be used.
12466
12467 The valid names for base metrics are:
12468
12469 <ul>
12470 <li>CPU/Load</li>
12471 <li>CPU/MHz</li>
12472 <li>RAM/Usage</li>
12473 </ul>
12474
12475 The general sequence for collecting and retrieving the metrics is:
12476 <ul>
12477 <li>
12478 Obtain an instance of IPerformanceCollector with
12479 <link to="IVirtualBox::performanceCollector" />
12480 </li>
12481 <li>
12482 Allocate and populate an array with references to objects the metrics
12483 will be collected for. Use references to IHost and IMachine objects.
12484 </li>
12485 <li>
12486 Allocate and populate an array with base metric names the data will be
12487 collected for.
12488 </li>
12489 <li>
12490 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12491 metric data will be collected and stored.
12492 </li>
12493 <li>
12494 Wait for the data to get collected.
12495 </li>
12496 <li>
12497 Allocate and populate an array with references to objects the metric
12498 values will be queried for. You can re-use the object array used for
12499 setting base metrics.
12500 </li>
12501 <li>
12502 Allocate and populate an array with metric names the data will be
12503 collected for. Note that metric names differ from base metric names.
12504 </li>
12505 <li>
12506 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12507 have been collected so far are returned. Note that the values are still
12508 retained internally and data collection continues.
12509 </li>
12510 </ul>
12511
12512 For an example of usage refer to the following files in VirtualBox SDK:
12513 <ul>
12514 <li>
12515 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12516 </li>
12517 <li>
12518 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12519 </li>
12520 </ul>
12521 </desc>
12522
12523 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12524 <desc>
12525 Array of unique names of metrics.
12526
12527 This array represents all metrics supported by the performance
12528 collector. Individual objects do not necessarily support all of them.
12529 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12530 list of supported metrics for a particular object.
12531 </desc>
12532 </attribute>
12533
12534 <method name="getMetrics">
12535 <desc>
12536 Returns parameters of specified metrics for a set of objects.
12537 <note>
12538 @c Null metrics array means all metrics. @c Null object array means
12539 all existing objects.
12540 </note>
12541 </desc>
12542 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12543 <desc>
12544 Metric name filter. Currently, only a comma-separated list of metrics
12545 is supported.
12546 </desc>
12547 </param>
12548 <param name="objects" type="$unknown" dir="in" safearray="yes">
12549 <desc>
12550 Set of objects to return metric parameters for.
12551 </desc>
12552 </param>
12553 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12554 <desc>
12555 Array of returned metric parameters.
12556 </desc>
12557 </param>
12558 </method>
12559
12560 <method name="setupMetrics">
12561 <desc>
12562 Sets parameters of specified base metrics for a set of objects. Returns
12563 an array of <link to="IPerformanceMetric" /> describing the metrics have
12564 been affected.
12565 <note>
12566 @c Null or empty metric name array means all metrics. @c Null or empty
12567 object array means all existing objects. If metric name array contains
12568 a single element and object array contains many, the single metric
12569 name array element is applied to each object array element to form
12570 metric/object pairs.
12571 </note>
12572 </desc>
12573 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12574 <desc>
12575 Metric name filter. Comma-separated list of metrics with wildcard
12576 support.
12577 </desc>
12578 </param>
12579 <param name="objects" type="$unknown" dir="in" safearray="yes">
12580 <desc>
12581 Set of objects to setup metric parameters for.
12582 </desc>
12583 </param>
12584 <param name="period" type="unsigned long" dir="in">
12585 <desc>
12586 Time interval in seconds between two consecutive samples of performance
12587 data.
12588 </desc>
12589 </param>
12590 <param name="count" type="unsigned long" dir="in">
12591 <desc>
12592 Number of samples to retain in performance data history. Older samples
12593 get discarded.
12594 </desc>
12595 </param>
12596 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12597 <desc>
12598 Array of metrics that have been modified by the call to this method.
12599 </desc>
12600 </param>
12601 </method>
12602
12603 <method name="enableMetrics">
12604 <desc>
12605 Turns on collecting specified base metrics. Returns an array of
12606 <link to="IPerformanceMetric" /> describing the metrics have been
12607 affected.
12608 <note>
12609 @c Null or empty metric name array means all metrics. @c Null or empty
12610 object array means all existing objects. If metric name array contains
12611 a single element and object array contains many, the single metric
12612 name array element is applied to each object array element to form
12613 metric/object pairs.
12614 </note>
12615 </desc>
12616 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12617 <desc>
12618 Metric name filter. Comma-separated list of metrics with wildcard
12619 support.
12620 </desc>
12621 </param>
12622 <param name="objects" type="$unknown" dir="in" safearray="yes">
12623 <desc>
12624 Set of objects to enable metrics for.
12625 </desc>
12626 </param>
12627 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12628 <desc>
12629 Array of metrics that have been modified by the call to this method.
12630 </desc>
12631 </param>
12632 </method>
12633
12634 <method name="disableMetrics">
12635 <desc>
12636 Turns off collecting specified base metrics. Returns an array of
12637 <link to="IPerformanceMetric" /> describing the metrics have been
12638 affected.
12639 <note>
12640 @c Null or empty metric name array means all metrics. @c Null or empty
12641 object array means all existing objects. If metric name array contains
12642 a single element and object array contains many, the single metric
12643 name array element is applied to each object array element to form
12644 metric/object pairs.
12645 </note>
12646 </desc>
12647 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12648 <desc>
12649 Metric name filter. Comma-separated list of metrics with wildcard
12650 support.
12651 </desc>
12652 </param>
12653 <param name="objects" type="$unknown" dir="in" safearray="yes">
12654 <desc>
12655 Set of objects to disable metrics for.
12656 </desc>
12657 </param>
12658 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12659 <desc>
12660 Array of metrics that have been modified by the call to this method.
12661 </desc>
12662 </param>
12663 </method>
12664
12665 <method name="queryMetricsData">
12666 <desc>
12667 Queries collected metrics data for a set of objects.
12668
12669 The data itself and related metric information are returned in seven
12670 parallel and one flattened array of arrays. Elements of
12671 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12672 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12673 the same index describe one set of values corresponding to a single
12674 metric.
12675
12676 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12677 start and length of a sub-array is indicated by
12678 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12679 value for metric <tt>metricNames[i]</tt> is at
12680 <tt>returnData[returnIndices[i]]</tt>.
12681
12682 <note>
12683 @c Null or empty metric name array means all metrics. @c Null or empty
12684 object array means all existing objects. If metric name array contains
12685 a single element and object array contains many, the single metric
12686 name array element is applied to each object array element to form
12687 metric/object pairs.
12688 </note>
12689 <note>
12690 Data collection continues behind the scenes after call to
12691 @c queryMetricsData. The return data can be seen as the snapshot of
12692 the current state at the time of @c queryMetricsData call. The
12693 internally kept metric values are not cleared by the call. This makes
12694 possible querying different subsets of metrics or aggregates with
12695 subsequent calls. If periodic querying is needed it is highly
12696 suggested to query the values with @c interval*count period to avoid
12697 confusion. This way a completely new set of data values will be
12698 provided by each query.
12699 </note>
12700 </desc>
12701 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12702 <desc>
12703 Metric name filter. Comma-separated list of metrics with wildcard
12704 support.
12705 </desc>
12706 </param>
12707 <param name="objects" type="$unknown" dir="in" safearray="yes">
12708 <desc>
12709 Set of objects to query metrics for.
12710 </desc>
12711 </param>
12712 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12713 <desc>
12714 Names of metrics returned in @c returnData.
12715 </desc>
12716 </param>
12717 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12718 <desc>
12719 Objects associated with metrics returned in @c returnData.
12720 </desc>
12721 </param>
12722 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12723 <desc>
12724 Units of measurement for each returned metric.
12725 </desc>
12726 </param>
12727 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12728 <desc>
12729 Divisor that should be applied to return values in order to get
12730 floating point values. For example:
12731 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12732 will retrieve the floating point value of i-th sample of the first
12733 metric.
12734 </desc>
12735 </param>
12736 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12737 <desc>
12738 Sequence numbers of the first elements of value sequences of particular metrics
12739 returned in @c returnData. For aggregate metrics it is the sequence number of
12740 the sample the aggregate started calculation from.
12741 </desc>
12742 </param>
12743 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12744 <desc>
12745 Indices of the first elements of value sequences of particular metrics
12746 returned in @c returnData.
12747 </desc>
12748 </param>
12749 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12750 <desc>
12751 Lengths of value sequences of particular metrics.
12752 </desc>
12753 </param>
12754 <param name="returnData" type="long" dir="return" safearray="yes">
12755 <desc>
12756 Flattened array of all metric data containing sequences of values for
12757 each metric.
12758 </desc>
12759 </param>
12760 </method>
12761
12762 </interface>
12763
12764 <module name="VBoxSVC" context="LocalServer">
12765 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12766 namespace="virtualbox.org">
12767 <interface name="IVirtualBox" default="yes"/>
12768 </class>
12769 </module>
12770
12771 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12772 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12773 namespace="virtualbox.org">
12774 <interface name="ISession" default="yes"/>
12775 </class>
12776 </module>
12777
12778</library>
12779
12780</idl>
12781
12782<!-- 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