VirtualBox

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

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

#3551: “Main: Replace remaining collections with safe arrays”
Replaced IUSBDeviceCollection. Reviewed by Christian.

  • Property svn:eol-style set to native
File size: 473.6 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, <tt>NULL</tt>). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="MachineState"
363 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
364 >
365 <desc>
366 Virtual machine execution state.
367
368 This enumeration represents possible values of the <link
369 to="IMachine::state"/> attribute.
370
371 Below is the basic virtual machine state diagram. It shows how the state
372 changes during virtual machine execution. The text in square braces shows
373 a method of the IConsole interface that performs the given state
374 transition.
375
376 <pre>
377 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
378 V |
379 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
380 | | | | V |
381 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
382 | | ^ | ^ |
383 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
384 | ^ | | | |
385 | | +-----------------------------------------+-|-------------------+ +
386 | | | | |
387 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
388 | | | |
389 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
390 | | |
391 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
392 </pre>
393
394 Note that states to the right from PoweredOff, Aborted and Saved in the
395 above diagram are called <i>online VM states</i>. These states
396 represent the virtual machine which is being executed in a dedicated
397 process (usually with a GUI window attached to it where you can see the
398 activity of the virtual machine and interact with it). There are two
399 special pseudo-states, FirstOnline and LastOnline, that can be used in
400 relational expressions to detect if the given machine state is online or
401 not:
402
403 <pre>
404 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
405 machine.GetState() &lt;= MachineState_LastOnline)
406 {
407 ...the machine is being executed...
408 }
409 </pre>
410
411 When the virtual machine is in one of the online VM states (that is, being
412 executed), only a few machine settings can be modified. Methods working
413 with such settings contain an explicit note about that. An attempt to
414 change any oter setting or perform a modifying operation during this time
415 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
416
417 All online states except Running, Paused and Stuck are transitional: they
418 represent temporary conditions of the virtual machine that will last as
419 long as the operation that initiated such a condition.
420
421 The Stuck state is a special case. It means that execution of the machine
422 has reached the "Guru Meditation" condition. This condition indicates an
423 internal VMM (virtual machine manager) failure which may happen as a
424 result of either an unhandled low-level virtual hardware exception or one
425 of the recompiler exceptions (such as the <i>too-many-traps</i>
426 condition).
427
428 Note also that any online VM state may transit to the Aborted state. This
429 happens if the process that is executing the virtual machine terminates
430 unexpectedly (for example, crashes). Other than that, the Aborted state is
431 equivalent to PoweredOff.
432
433 There are also a few additional state diagrams that do not deal with
434 virtual machine execution and therefore are shown separately. The states
435 shown on these diagrams are called <i>offline VM states</i> (this includes
436 PoweredOff, Aborted and Saved too).
437
438 The first diagram shows what happens when a lengthy setup operation is
439 being executed (such as <link to="IMachine::attachHardDisk"/>).
440
441 <pre>
442 +-----------------------------------(same sate as before the call)------+
443 | |
444 +-&gt; PoweredOff --+ |
445 | | |
446 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
447 | |
448 +-&gt; Saved -------+
449 </pre>
450
451 The next two diagrams demonstrate the process of taking a snapshot of a
452 powered off virtual machine and performing one of the "discard..."
453 operations, respectively.
454
455 <pre>
456 +-----------------------------------(same sate as before the call)------+
457 | |
458 +-&gt; PoweredOff --+ |
459 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
460 +-&gt; Aborted -----+
461
462 +-&gt; PoweredOff --+
463 | |
464 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
465 | | [discardCurrentState()] |
466 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
467 | |
468 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
469 </pre>
470
471 Note that the Saving state is present in both the offline state group and
472 online state group. Currently, the only way to determine what group is
473 assumed in a particular case is to remember the previous machine state: if
474 it was Running or Paused, then Saving is an online state, otherwise it is
475 an offline state. This inconsistency may be removed in one of the future
476 versions of VirtualBox by adding a new state.
477
478 <note internal="yes">
479 For whoever decides to touch this enum: In order to keep the
480 comparisons involving FirstOnline and LastOnline pseudo-states valid,
481 the numeric values of these states must be correspondingly updated if
482 needed: for any online VM state, the condition
483 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
484 <tt>true</tt>. The same relates to transient states for which
485 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
486 <tt>true</tt>.
487 </note>
488 </desc>
489
490 <const name="Null" value="0">
491 <desc>Null value (nver used by the API).</desc>
492 </const>
493 <const name="PoweredOff" value="1">
494 <desc>
495 The machine is not running.
496 </desc>
497 </const>
498 <const name="Saved" value="2">
499 <desc>
500 The machine is not currently running, but the execution state of the machine
501 has been saved to an external file when it was running.
502 </desc>
503 </const>
504 <const name="Aborted" value="3">
505 <desc>
506 The process running the machine has terminated abnormally.
507 </desc>
508 </const>
509 <const name="Running" value="4">
510 <desc>
511 The machine is currently being executed.
512 <note internal="yes">
513 For whoever decides to touch this enum: In order to keep the
514 comparisons in the old source code valid, this state must immediately
515 precede the Paused state.
516 </note>
517 </desc>
518 </const>
519 <const name="Paused" value="5">
520 <desc>
521 Execution of the machine has been paused.
522 <note internal="yes">
523 For whoever decides to touch this enum: In order to keep the
524 comparisons in the old source code valid, this state must immediately
525 follow the Running state.
526 </note>
527 </desc>
528 </const>
529 <const name="Stuck" value="6">
530 <desc>
531 Execution of the machine has reached the "Guru Meditation"
532 condition.
533 </desc>
534 </const>
535 <const name="Starting" value="7">
536 <desc>
537 Machine is being started after powering it on from a
538 zero execution state.
539 </desc>
540 </const>
541 <const name="Stopping" value="8">
542 <desc>
543 Machine is being normally stopped powering it off, or after the guest OS
544 has initiated a shutdown sequence.
545 </desc>
546 </const>
547 <const name="Saving" value="9">
548 <desc>
549 Machine is saving its execution state to a file or an online
550 snapshot of the machine is being taken.
551 </desc>
552 </const>
553 <const name="Restoring" value="10">
554 <desc>
555 Execution state of the machine is being restored from a file
556 after powering it on from the saved execution state.
557 </desc>
558 </const>
559 <const name="Discarding" value="11">
560 <desc>
561 Snapshot of the machine is being discarded.
562 </desc>
563 </const>
564 <const name="SettingUp" value="12">
565 <desc>
566 Lengthy setup operation is in progress.
567 </desc>
568 </const>
569
570 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
571 <desc>
572 Pseudo-state: first online state (for use in relational expressions).
573 </desc>
574 </const>
575 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
576 <desc>
577 Pseudo-state: last online state (for use in relational expressions).
578 </desc>
579 </const>
580
581 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
582 <desc>
583 Pseudo-state: first transient state (for use in relational expressions).
584 </desc>
585 </const>
586 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
587 <desc>
588 Pseudo-state: last transient state (for use in relational expressions).
589 </desc>
590 </const>
591
592 </enum>
593
594 <enum
595 name="SessionState"
596 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
597 >
598 <desc>
599 Session state. This enumeration represents possible values of
600 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
601 attributes. See individual enumerator descriptions for the meaning for
602 every value.
603 </desc>
604
605 <const name="Null" value="0">
606 <desc>Null value (never used by the API).</desc>
607 </const>
608 <const name="Closed" value="1">
609 <desc>
610 The machine has no open sessions (<link to="IMachine::sessionState"/>);
611 the session is closed (<link to="ISession::state"/>)
612 </desc>
613 </const>
614 <const name="Open" value="2">
615 <desc>
616 The machine has an open direct session (<link to="IMachine::sessionState"/>);
617 the session is open (<link to="ISession::state"/>)
618 </desc>
619 </const>
620 <const name="Spawning" value="3">
621 <desc>
622 A new (direct) session is being opened for the machine
623 as a result of <link to="IVirtualBox::openRemoteSession"/>
624 call (<link to="IMachine::sessionState"/>);
625 the session is currently being opened
626 as a result of <link to="IVirtualBox::openRemoteSession"/>
627 call (<link to="ISession::state"/>)
628 </desc>
629 </const>
630 <const name="Closing" value="4">
631 <desc>
632 The direct session is being closed (<link to="IMachine::sessionState"/>);
633 the session is being closed (<link to="ISession::state"/>)
634 </desc>
635 </const>
636 </enum>
637
638 <enum
639 name="SessionType"
640 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
641 >
642 <desc>
643 Session type. This enumeration represents possible values of the
644 <link to="ISession::type"/> attribute.
645 </desc>
646
647 <const name="Null" value="0">
648 <desc>Null value (never used by the API).</desc>
649 </const>
650 <const name="Direct" value="1">
651 <desc>
652 Direct session
653 (opened by <link to="IVirtualBox::openSession"/>)
654 </desc>
655 </const>
656 <const name="Remote" value="2">
657 <desc>
658 Remote session
659 (opened by <link to="IVirtualBox::openRemoteSession"/>)
660 </desc>
661 </const>
662 <const name="Existing" value="3">
663 <desc>
664 Existing session
665 (opened by <link to="IVirtualBox::openExistingSession"/>)
666 </desc>
667 </const>
668 </enum>
669
670 <enum
671 name="DeviceType"
672 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
673 >
674 <desc>
675 Device type.
676 </desc>
677 <const name="Null" value="0">
678 <desc>
679 Null value, may also mean "no device" (not allowed for
680 <link to="IConsole::getDeviceActivity"/>).
681 </desc>
682 </const>
683 <const name="Floppy" value="1">
684 <desc>Floppy device.</desc>
685 </const>
686 <const name="DVD" value="2">
687 <desc>CD/DVD-ROM device.</desc>
688 </const>
689 <const name="HardDisk" value="3">
690 <desc>Hard disk device.</desc>
691 </const>
692 <const name="Network" value="4">
693 <desc>Network device.</desc>
694 </const>
695 <const name="USB" value="5">
696 <desc>USB device.</desc>
697 </const>
698 <const name="SharedFolder" value="6">
699 <desc>Shared folder device.</desc>
700 </const>
701 </enum>
702
703 <enum
704 name="DeviceActivity"
705 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
706 >
707 <desc>
708 Device activity for <link to="IConsole::getDeviceActivity"/>.
709 </desc>
710
711 <const name="Null" value="0"/>
712 <const name="Idle" value="1"/>
713 <const name="Reading" value="2"/>
714 <const name="Writing" value="3"/>
715 </enum>
716
717 <enum
718 name="StorageBus"
719 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
720 >
721 <desc>Interface bus type for storage devices.</desc>
722
723 <const name="Null" value="0">
724 <desc>Null value (never used by the API).</desc>
725 </const>
726
727 <const name="IDE" value="1"/>
728 <const name="SATA" value="2"/>
729 </enum>
730
731 <enum
732 name="ClipboardMode"
733 uuid="33364716-4008-4701-8f14-be0fa3d62950"
734 >
735 <desc>
736 Host-Guest clipboard interchange mode.
737 </desc>
738
739 <const name="Disabled" value="0"/>
740 <const name="HostToGuest" value="1"/>
741 <const name="GuestToHost" value="2"/>
742 <const name="Bidirectional" value="3"/>
743 </enum>
744
745 <enum
746 name="Scope"
747 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
748 >
749 <desc>
750 Scope of the operation.
751
752 A generic enumeration used in various methods to define the action or
753 argument scope.
754 </desc>
755
756 <const name="Global" value="0"/>
757 <const name="Machine" value="1"/>
758 <const name="Session" value="2"/>
759 </enum>
760
761 <enum
762 name="GuestStatisticType"
763 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
764 >
765 <desc>
766 Statistics type for <link to="IGuest::getStatistic"/>.
767 </desc>
768
769 <const name="CPULoad_Idle" value="0">
770 <desc>
771 Idle CPU load (0-100%) for last interval.
772 </desc>
773 </const>
774 <const name="CPULoad_Kernel" value="1">
775 <desc>
776 Kernel CPU load (0-100%) for last interval.
777 </desc>
778 </const>
779 <const name="CPULoad_User" value="2">
780 <desc>
781 User CPU load (0-100%) for last interval.
782 </desc>
783 </const>
784 <const name="Threads" value="3">
785 <desc>
786 Total number of threads in the system.
787 </desc>
788 </const>
789 <const name="Processes" value="4">
790 <desc>
791 Total number of processes in the system.
792 </desc>
793 </const>
794 <const name="Handles" value="5">
795 <desc>
796 Total number of handles in the system.
797 </desc>
798 </const>
799 <const name="MemoryLoad" value="6">
800 <desc>
801 Memory load (0-100%).
802 </desc>
803 </const>
804 <const name="PhysMemTotal" value="7">
805 <desc>
806 Total physical memory in megabytes.
807 </desc>
808 </const>
809 <const name="PhysMemAvailable" value="8">
810 <desc>
811 Free physical memory in megabytes.
812 </desc>
813 </const>
814 <const name="PhysMemBalloon" value="9">
815 <desc>
816 Ballooned physical memory in megabytes.
817 </desc>
818 </const>
819 <const name="MemCommitTotal" value="10">
820 <desc>
821 Total amount of memory in the committed state in megabytes.
822 </desc>
823 </const>
824 <const name="MemKernelTotal" value="11">
825 <desc>
826 Total amount of memory used by the guest OS's kernel in megabytes.
827 </desc>
828 </const>
829 <const name="MemKernelPaged" value="12">
830 <desc>
831 Total amount of paged memory used by the guest OS's kernel in megabytes.
832 </desc>
833 </const>
834 <const name="MemKernelNonpaged" value="13">
835 <desc>
836 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
837 </desc>
838 </const>
839 <const name="MemSystemCache" value="14">
840 <desc>
841 Total amount of memory used by the guest OS's system cache in megabytes.
842 </desc>
843 </const>
844 <const name="PageFileSize" value="15">
845 <desc>
846 Pagefile size in megabytes.
847 </desc>
848 </const>
849 <const name="SampleNumber" value="16">
850 <desc>
851 Statistics sample number
852 </desc>
853 </const>
854 <const name="MaxVal" value="17"/>
855 </enum>
856
857 <enum
858 name="BIOSBootMenuMode"
859 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
860 >
861 <desc>
862 BIOS boot menu mode.
863 </desc>
864
865 <const name="Disabled" value="0"/>
866 <const name="MenuOnly" value="1"/>
867 <const name="MessageAndMenu" value="2"/>
868 </enum>
869
870 <enum
871 name="IDEControllerType"
872 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
873 >
874 <desc>
875 IDE controller type.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="PIIX3" value="1"/>
882 <const name="PIIX4" value="2"/>
883 <const name="ICH6" value="3"/>
884 </enum>
885
886 <enum
887 name="DriveState"
888 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
889 >
890 <const name="Null" value="0">
891 <desc>Null value (never used by the API).</desc>
892 </const>
893 <const name="NotMounted" value="1"/>
894 <const name="ImageMounted" value="2"/>
895 <const name="HostDriveCaptured" value="3"/>
896 </enum>
897
898 <enum
899 name="ProcessorFeature"
900 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
901 >
902 <desc>
903 CPU features.
904 </desc>
905
906 <const name="HWVirtEx" value="0"/>
907 <const name="PAE" value="1"/>
908 <const name="LongMode" value="2"/>
909 </enum>
910
911
912 <!--
913 // IVirtualBoxErrorInfo
914 /////////////////////////////////////////////////////////////////////////
915 -->
916
917 <interface
918 name="IVirtualBoxErrorInfo" extends="$errorinfo"
919 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
920 supportsErrorInfo="no"
921 wsmap="suppress"
922 >
923 <desc>
924 The IVirtualBoxErrorInfo interface represents extended error information.
925
926 Extended error information can be set by VirtualBox components after
927 unsuccessful or partially successful method invocation. This information
928 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
929 and then shown to the client in addition to the plain 32-bit result code.
930
931 In MS COM, this interface extends the IErrorInfo interface,
932 in XPCOM, it extends the nsIException interface. In both cases,
933 it provides a set of common attributes to retrieve error
934 information.
935
936 Sometimes invocation of some component's method may involve methods of
937 other components that may also fail (independently of this method's
938 failure), or a series of non-fatal errors may precede a fatal error that
939 causes method failure. In cases like that, it may be desirable to preserve
940 information about all errors happened during method invocation and deliver
941 it to the caller. The <link to="#next"/> attribute is intended
942 specifically for this purpose and allows to represent a chain of errors
943 through a single IVirtualBoxErrorInfo object set after method invocation.
944
945 Note that errors are stored to a chain in the reverse order, i.e. the
946 initial error object you query right after method invocation is the last
947 error set by the callee, the object it points to in the @a next attribute
948 is the previous error and so on, up to the first error (which is the last
949 in the chain).
950 </desc>
951
952 <attribute name="resultCode" type="result" readonly="yes">
953 <desc>
954 Result code of the error.
955 Usually, it will be the same as the result code returned
956 by the method that provided this error information, but not
957 always. For example, on Win32, CoCreateInstance() will most
958 likely return E_NOINTERFACE upon unsuccessful component
959 instantiation attempt, but not the value the component factory
960 returned.
961 <note>
962 In MS COM, there is no equivalent.
963 In XPCOM, it is the same as nsIException::result.
964 </note>
965 </desc>
966 </attribute>
967
968 <attribute name="interfaceID" type="uuid" readonly="yes">
969 <desc>
970 UUID of the interface that defined the error.
971 <note>
972 In MS COM, it is the same as IErrorInfo::GetGUID.
973 In XPCOM, there is no equivalent.
974 </note>
975 </desc>
976 </attribute>
977
978 <attribute name="component" type="wstring" readonly="yes">
979 <desc>
980 Name of the component that generated the error.
981 <note>
982 In MS COM, it is the same as IErrorInfo::GetSource.
983 In XPCOM, there is no equivalent.
984 </note>
985 </desc>
986 </attribute>
987
988 <attribute name="text" type="wstring" readonly="yes">
989 <desc>
990 Text description of the error.
991 <note>
992 In MS COM, it is the same as IErrorInfo::GetDescription.
993 In XPCOM, it is the same as nsIException::message.
994 </note>
995 </desc>
996 </attribute>
997
998 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
999 <desc>
1000 Next error object if there is any, or @c null otherwise.
1001 <note>
1002 In MS COM, there is no equivalent.
1003 In XPCOM, it is the same as nsIException::inner.
1004 </note>
1005 </desc>
1006 </attribute>
1007
1008 </interface>
1009
1010
1011 <!--
1012 // IVirtualBox
1013 /////////////////////////////////////////////////////////////////////////
1014 -->
1015
1016 <interface
1017 name="IVirtualBoxCallback" extends="$unknown"
1018 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
1019 wsmap="suppress"
1020 >
1021 <method name="onMachineStateChange">
1022 <desc>
1023 The execution state of the given machine has changed.
1024 <see>IMachine::state</see>
1025 </desc>
1026 <param name="machineId" type="uuid" dir="in">
1027 <desc>ID of the machine this event relates to.</desc>
1028 </param>
1029 <param name="state" type="MachineState" dir="in">
1030 <desc>New execution state.</desc>
1031 </param>
1032 </method>
1033
1034 <method name="onMachineDataChange">
1035 <desc>
1036 Any of the settings of the given machine has changed.
1037 </desc>
1038 <param name="machineId" type="uuid" dir="in">
1039 <desc>ID of the machine this event relates to.</desc>
1040 </param>
1041 </method>
1042
1043 <method name="onExtraDataCanChange">
1044 <desc>
1045 Notification when someone tries to change extra data for
1046 either the given machine or (if null) global extra data.
1047 This gives the chance to veto against changes.
1048 </desc>
1049 <param name="machineId" type="uuid" dir="in">
1050 <desc>
1051 ID of the machine this event relates to
1052 (null ID for global extra data change requests).
1053 </desc>
1054 </param>
1055 <param name="key" type="wstring" dir="in">
1056 <desc>
1057 Extra data key for the attempted write.
1058 </desc>
1059 </param>
1060 <param name="value" type="wstring" dir="in">
1061 <desc>
1062 Extra data value for the given key.
1063 </desc>
1064 </param>
1065 <param name="error" type="wstring" dir="out">
1066 <desc>
1067 Optional error message describing the reason of the
1068 veto (ignored if this notification returns @c true).
1069 </desc>
1070 </param>
1071 <param name="allowChange" type="boolean" dir="return">
1072 <desc>
1073 Flag to indicate whether the callee agrees (@c true)
1074 or vetoes against the change (@c false).
1075 </desc>
1076 </param>
1077 </method>
1078
1079 <method name="onExtraDataChange">
1080 <desc>
1081 Notification when machine specific or global extra data
1082 has changed.
1083 </desc>
1084 <param name="machineId" type="uuid" dir="in">
1085 <desc>
1086 ID of the machine this event relates to.
1087 Null for global extra data changes.
1088 </desc>
1089 </param>
1090 <param name="key" type="wstring" dir="in">
1091 <desc>
1092 Extra data key that has changed.
1093 </desc>
1094 </param>
1095 <param name="value" type="wstring" dir="in">
1096 <desc>
1097 Extra data value for the given key.
1098 </desc>
1099 </param>
1100 </method>
1101
1102 <method name="onMediaRegistered">
1103 <desc>
1104 The given media was registered or unregistered
1105 within this VirtualBox installation.
1106
1107 The @a mediaType parameter describes what type of
1108 media the specified @a mediaId refers to. Possible
1109 values are:
1110
1111 <ul>
1112 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1113 that, if registered, can be obtained using the
1114 <link to="IVirtualBox::getHardDisk"/> call.</li>
1115 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1116 that, if registered, can be obtained using the
1117 <link to="IVirtualBox::getDVDImage"/> call.</li>
1118 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1119 that, if registered, can be obtained using the
1120 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1121 </ul>
1122
1123 Note that if this is a deregistration notification,
1124 there is no way to access the object representing the
1125 unregistered media. It is supposed that the
1126 application will do required cleanup based on the
1127 @a mediaId value.
1128 </desc>
1129 <param name="mediaId" type="uuid" dir="in">
1130 <desc>ID of the media this event relates to.</desc>
1131 </param>
1132 <param name="mediaType" type="DeviceType" dir="in">
1133 <desc>Type of the media this event relates to.</desc>
1134 </param>
1135 <param name="registered" type="boolean" dir="in">
1136 <desc>
1137 If true, the media was registered, otherwise it was
1138 unregistered.
1139 </desc>
1140 </param>
1141 </method>
1142
1143 <method name="onMachineRegistered">
1144 <desc>
1145 The given machine was registered or unregistered
1146 within this VirtualBox installation.
1147 </desc>
1148 <param name="machineId" type="uuid" dir="in">
1149 <desc>ID of the machine this event relates to.</desc>
1150 </param>
1151 <param name="registered" type="boolean" dir="in">
1152 <desc>
1153 If true, the machine was registered, otherwise it was
1154 unregistered.
1155 </desc>
1156 </param>
1157 </method>
1158
1159 <method name="onSessionStateChange">
1160 <desc>
1161 The state of the session for the given machine was changed.
1162 <see>IMachine::sessionState</see>
1163 </desc>
1164 <param name="machineId" type="uuid" dir="in">
1165 <desc>ID of the machine this event relates to.</desc>
1166 </param>
1167 <param name="state" type="SessionState" dir="in">
1168 <desc>New session state.</desc>
1169 </param>
1170 </method>
1171
1172 <method name="onSnapshotTaken">
1173 <desc>
1174 A new snapshot of the machine has been taken.
1175 <see>ISnapshot</see>
1176 </desc>
1177 <param name="machineId" type="uuid" dir="in">
1178 <desc>ID of the machine this event relates to.</desc>
1179 </param>
1180 <param name="snapshotId" type="uuid" dir="in">
1181 <desc>ID of the new snapshot.</desc>
1182 </param>
1183 </method>
1184
1185 <method name="onSnapshotDiscarded">
1186 <desc>
1187 Snapshot of the given machine has been discarded.
1188
1189 <note>
1190 This notification is delivered <b>after</b> the snapshot
1191 object has been uninitialized on the server (so that any
1192 attempt to call its methods will return an error).
1193 </note>
1194
1195 <see>ISnapshot</see>
1196 </desc>
1197 <param name="machineId" type="uuid" dir="in">
1198 <desc>ID of the machine this event relates to.</desc>
1199 </param>
1200 <param name="snapshotId" type="uuid" dir="in">
1201 <desc>
1202 ID of the discarded snapshot. <tt>null</tt> means the
1203 current machine state has been discarded (restored from
1204 the current snapshot).
1205 </desc>
1206 </param>
1207 </method>
1208
1209 <method name="onSnapshotChange">
1210 <desc>
1211 Snapshot properties (name and/or description) have been changed.
1212 <see>ISnapshot</see>
1213 </desc>
1214 <param name="machineId" type="uuid" dir="in">
1215 <desc>ID of the machine this event relates to.</desc>
1216 </param>
1217 <param name="snapshotId" type="uuid" dir="in">
1218 <desc>ID of the changed snapshot.</desc>
1219 </param>
1220 </method>
1221
1222 <method name="onGuestPropertyChange">
1223 <desc>
1224 Notification when a guest property has changed.
1225 </desc>
1226 <param name="machineId" type="uuid" dir="in">
1227 <desc>
1228 ID of the machine this event relates to.
1229 </desc>
1230 </param>
1231 <param name="name" type="wstring" dir="in">
1232 <desc>
1233 The name of the property that has changed.
1234 </desc>
1235 </param>
1236 <param name="value" type="wstring" dir="in">
1237 <desc>
1238 The new property value.
1239 </desc>
1240 </param>
1241 <param name="flags" type="wstring" dir="in">
1242 <desc>
1243 The new property flags.
1244 </desc>
1245 </param>
1246 </method>
1247
1248 </interface>
1249
1250 <interface
1251 name="IVirtualBox" extends="$dispatched"
1252 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1253 wsmap="managed"
1254 >
1255 <desc>
1256 The IVirtualBox interface represents the main interface exposed by the
1257 product that provides virtual machine management.
1258
1259 An instance of IVirtualBox is required for the product to do anything
1260 useful. Even though the interface does not expose this, internally,
1261 IVirtualBox is implemented as a singleton and actually lives in the
1262 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1263 IVirtualBox can track the state of all virtual machines on a particular
1264 host, regardless of which frontend started them.
1265
1266 To enumerate all the virtual machines on the host, use the
1267 <link to="IVirtualBox::machines2"/> attribute.
1268 </desc>
1269
1270 <attribute name="version" type="wstring" readonly="yes">
1271 <desc>
1272 A string representing the version number of the product. The
1273 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1274 last number represents the build number and will frequently change.
1275 </desc>
1276 </attribute>
1277
1278 <attribute name="revision" type="unsigned long" readonly="yes">
1279 <desc>
1280 The internal build revision number of the product.
1281 </desc>
1282 </attribute>
1283
1284 <attribute name="packageType" type="wstring" readonly="yes">
1285 <desc>
1286 A string representing the package type of this product. The
1287 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1288 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1289 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1290 this.
1291 </desc>
1292 </attribute>
1293
1294 <attribute name="homeFolder" type="wstring" readonly="yes">
1295 <desc>
1296 Full path to the directory where the global settings file,
1297 <tt>VirtualBox.xml</tt>, is stored.
1298
1299 In this version of VirtualBox, the value of this property is
1300 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1301 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1302 as determined by the host OS), and cannot be changed.
1303
1304 This path is also used as the base to resolve relative paths in
1305 places where relative paths are allowed (unless otherwise
1306 expressly indicated).
1307 </desc>
1308 </attribute>
1309
1310 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1311 <desc>
1312 Full name of the global settings file.
1313 The value of this property corresponds to the value of
1314 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1315 </desc>
1316 </attribute>
1317
1318 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1319 <desc>
1320 Current version of the format of the global VirtualBox settings file
1321 (<tt>VirtualBox.xml</tt>).
1322
1323 The version string has the following format:
1324 <pre>
1325 x.y-platform
1326 </pre>
1327 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1328 versions, and <tt>platform</tt> is the platform identifier.
1329
1330 The current version usually matches the value of the
1331 <link to="#settingsFormatVersion"/> attribute unless the
1332 settings file was created by an older version of VirtualBox and there
1333 was a change of the settings file format since then.
1334
1335 Note that VirtualBox automatically converts settings files from older
1336 versions to the most recent version when reading them (usually at
1337 VirtualBox startup) but it doesn't save the changes back until
1338 you call a method that implicitly saves settings (such as
1339 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1340 explicitly. Therefore, if the value of this attribute differs from the
1341 value of <link to="#settingsFormatVersion"/>, then it
1342 means that the settings file was converted but the result of the
1343 conversion is not yet saved to disk.
1344
1345 The above feature may be used by interactive front-ends to inform users
1346 about the settings file format change and offer them to explicitly save
1347 all converted settings files (the global and VM-specific ones),
1348 optionally create backup copies of the old settings files before saving,
1349 etc.
1350
1351 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1356 <desc>
1357 Most recent version of the settings file format.
1358
1359 The version string has the following format:
1360 <pre>
1361 x.y-platform
1362 </pre>
1363 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1364 versions, and <tt>platform</tt> is the platform identifier.
1365
1366 VirtualBox uses this version of the format when saving settings files
1367 (either as a result of method calls that require to save settings or as
1368 a result of an explicit call to <link to="#saveSettings"/>).
1369
1370 <see>settingsFileVersion</see>
1371 </desc>
1372 </attribute>
1373
1374 <attribute name="host" type="IHost" readonly="yes">
1375 <desc>Associated host object.</desc>
1376 </attribute>
1377
1378 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1379 <desc>Associated system information object.</desc>
1380 </attribute>
1381
1382 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1383 <desc>
1384 Array of machine objects registered within this VirtualBox instance.
1385 </desc>
1386 </attribute>
1387
1388 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1389 <desc>
1390 Array of hard disk objects known to this VirtualBox installation.
1391
1392 This array contains only base (root) hard disks. All differencing
1393 hard disks of the given base hard disk can be enumerated using
1394 <link to="IHardDisk::children"/>.
1395 </desc>
1396 </attribute>
1397
1398 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1399 <desc>
1400 Array of CD/DVD image objects registered with this VirtualBox instance.
1401 </desc>
1402 </attribute>
1403
1404 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1405 <desc>
1406 Array of floppy image objects registered with this VirtualBox instance.
1407 </desc>
1408 </attribute>
1409
1410 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1411
1412 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1413
1414 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1415 <desc>
1416 Collection of global shared folders. Global shared folders are
1417 available to all virtual machines.
1418
1419 New shared folders are added to the collection using
1420 <link to="#createSharedFolder"/>. Existing shared folders can be
1421 removed using <link to="#removeSharedFolder"/>.
1422
1423 <note>
1424 In the current version of the product, global shared folders are not
1425 implemented and therefore this collection is always empty.
1426 </note>
1427 </desc>
1428 </attribute>
1429
1430 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1431 <desc>
1432 Associated performance collector object.
1433 </desc>
1434 </attribute>
1435
1436 <method name="createMachine">
1437 <desc>
1438 Creates a new virtual machine.
1439
1440 The new machine is created unregistered, with the initial configuration
1441 set according to the specified guest OS type. A typical sequence of
1442 actions to create a new virtual machine is as follows:
1443
1444 <ol>
1445 <li>
1446 Call this method to have a new machine created. The returned machine
1447 object will be "mutable" allowing to change any machine property.
1448 </li>
1449
1450 <li>
1451 Configure the machine using the appropriate attributes and methods.
1452 </li>
1453
1454 <li>
1455 Call <link to="IMachine::saveSettings" /> to write the settings
1456 to the machine's XML settings file. The configuration of the newly
1457 created machine will not be saved to disk until this method is
1458 called.
1459 </li>
1460
1461 <li>
1462 Call <link to="#registerMachine" /> to add the machine to the list
1463 of machines known to VirtualBox.
1464 </li>
1465 </ol>
1466
1467 You should specify valid name for the newly created machine when calling
1468 this method. See the <link to="IMachine::name"/> attribute description
1469 for more details about the machine name.
1470
1471 The specified guest OS type identifier must match an ID of one of known
1472 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1473 array.
1474
1475 Every machine has a <i>settings file</i> that is used to store
1476 the machine configuration. This file is stored in a directory called the
1477 <i>machine settings subfolder</i>. Both the settings subfolder and file
1478 will have a name that corresponds to the name of the virtual machine.
1479 You can specify where to create the machine setting subfolder using the
1480 @a baseFolder argument. The base folder can be absolute (full path) or
1481 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1482 directory</link>.
1483
1484 If @a baseFolder is a null or empty string (which is recommended), the
1485 <link to="ISystemProperties::defaultMachineFolder">default machine
1486 settings folder</link> will be used as a base folder for the created
1487 machine. Otherwise the given base folder will be used. In either case,
1488 the full path to the resulting settings file has the following
1489 structure:
1490 <pre>
1491 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1492 </pre>
1493
1494 Note that if the resulting settings file already exists, this method
1495 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1496
1497 Optionally, you may specify an UUID of to assign to the created machine.
1498 However, this is not recommended and you should normally pass an empty
1499 (null) UUID to this method so that a new UUID will be automatically
1500 generated for every created machine. You can use UUID
1501 00000000-0000-0000-0000-000000000000 as null value.
1502
1503 <note>
1504 There is no way to change the name of the settings file or
1505 subfolder of the created machine directly.
1506 </note>
1507
1508 <result name="VBOX_E_OBJECT_NOT_FOUND">
1509 @a osTypeId is invalid.
1510 </result>
1511 <result name="VBOX_E_FILE_ERROR">
1512 Resulting settings file name is invalid or the settings file already
1513 exists or could not be created due to an I/O error.
1514 </result>
1515 <result name="E_INVALIDARG">
1516 @a name is empty or null.
1517 </result>
1518 </desc>
1519
1520 <param name="name" type="wstring" dir="in">
1521 <desc>Machine name.</desc>
1522 </param>
1523 <param name="osTypeId" type="wstring" dir="in">
1524 <desc>Guest OS Type ID.</desc>
1525 </param>
1526 <param name="baseFolder" type="wstring" dir="in">
1527 <desc>Base machine folder (optional).</desc>
1528 </param>
1529 <param name="id" type="uuid" dir="in">
1530 <desc>Machine UUID (optional).</desc>
1531 </param>
1532 <param name="machine" type="IMachine" dir="return">
1533 <desc>Created machine object.</desc>
1534 </param>
1535 </method>
1536
1537 <method name="createLegacyMachine">
1538 <desc>
1539 Creates a new virtual machine in "legacy" mode, using the specified
1540 settings file to store machine settings.
1541
1542 As opposed to machines created by <link to="#createMachine"/>,
1543 the settings file of the machine created in "legacy" mode is not
1544 automatically renamed when the machine name is changed -- it will always
1545 remain the same as specified in this method call.
1546
1547 The specified settings file name can be absolute (full path) or relative
1548 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1549 directory</link>. If the file name doesn't contain an extension, the
1550 default extension (.xml) will be appended.
1551
1552 Note that the configuration of the newly created machine is not
1553 saved to disk (and therefore no settings file is created)
1554 until <link to="IMachine::saveSettings"/> is called. If the
1555 specified settings file already exists, this method
1556 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1557
1558 See <link to="#createMachine"/> for more information.
1559
1560 @deprecated This method may be removed later. Use <link
1561 to="IVirtualBox::createMachine"/> instead.
1562
1563 <note>
1564 There is no way to change the name of the settings file
1565 of the machine created in "legacy" mode.
1566 </note>
1567
1568 <result name="VBOX_E_OBJECT_NOT_FOUND">
1569 @a osTypeId is invalid.
1570 </result>
1571 <result name="VBOX_E_FILE_ERROR">
1572 @a settingsFile is invalid or the settings file already exists or
1573 could not be created due to an I/O error.
1574 </result>
1575 <result name="E_INVALIDARG">
1576 @a name or @a settingsFile is empty or null.
1577 </result>
1578 </desc>
1579
1580 <param name="name" type="wstring" dir="in">
1581 <desc>Machine name.</desc>
1582 </param>
1583 <param name="osTypeId" type="wstring" dir="in">
1584 <desc>Machine OS Type ID.</desc>
1585 </param>
1586 <param name="settingsFile" type="wstring" dir="in">
1587 <desc>Name of the machine settings file.</desc>
1588 </param>
1589 <param name="id" type="uuid" dir="in">
1590 <desc>Machine UUID (optional).</desc>
1591 </param>
1592 <param name="machine" type="IMachine" dir="return">
1593 <desc>Created machine object.</desc>
1594 </param>
1595 </method>
1596
1597 <method name="openMachine">
1598 <desc>
1599 Opens a virtual machine from the existing settings file.
1600 The opened machine remains unregistered until you call
1601 <link to="#registerMachine"/>.
1602
1603 The specified settings file name can be absolute
1604 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1605 VirtualBox home directory</link>. This file must exist
1606 and must be a valid machine settings file whose contents
1607 will be used to construct the machine object.
1608
1609 @deprecated Will be removed soon.
1610 <result name="VBOX_E_FILE_ERROR">
1611 Settings file name invalid, not found or sharing violation.
1612 </result>
1613 </desc>
1614 <param name="settingsFile" type="wstring" dir="in">
1615 <desc>
1616 Name of the machine settings file.
1617 </desc>
1618 </param>
1619 <param name="machine" type="IMachine" dir="return">
1620 <desc>Opened machine object.</desc>
1621 </param>
1622 <note>
1623 <link to="IMachine::settingsModified"/> will return
1624 false for the created machine, until any of machine settings
1625 are changed.
1626 </note>
1627 </method>
1628
1629 <method name="registerMachine">
1630 <desc>
1631
1632 Registers the machine previously created using
1633 <link to="#createMachine"/> or opened using
1634 <link to="#openMachine"/> within this VirtualBox installation. After
1635 successful method invocation, the
1636 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1637 to all registered callbacks.
1638
1639 <note>
1640 This method implicitly calls <link to="IMachine::saveSettings"/>
1641 to save all current machine settings before registering it.
1642 </note>
1643
1644 <result name="VBOX_E_OBJECT_NOT_FOUND">
1645 No matching virtual machine found.
1646 </result>
1647 <result name="VBOX_E_INVALID_OBJECT_STATE">
1648 Virtual machine was not created within this VirtualBox instance.
1649 </result>
1650
1651 </desc>
1652 <param name="machine" type="IMachine" dir="in"/>
1653 </method>
1654
1655 <method name="getMachine">
1656 <desc>
1657 Attempts to find a virtual machine given its UUID.
1658 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1659 instead.
1660
1661 <result name="VBOX_E_OBJECT_NOT_FOUND">
1662 Could not find registered machine matching @a id.
1663 </result>
1664
1665 </desc>
1666 <param name="id" type="uuid" dir="in"/>
1667 <param name="machine" type="IMachine" dir="return"/>
1668 </method>
1669
1670 <method name="findMachine">
1671 <desc>
1672 Attempts to find a virtual machine given its name.
1673 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1674 instead.
1675
1676 <result name="VBOX_E_OBJECT_NOT_FOUND">
1677 Could not find registered machine matching @a name.
1678 </result>
1679
1680 </desc>
1681 <param name="name" type="wstring" dir="in"/>
1682 <param name="machine" type="IMachine" dir="return"/>
1683 </method>
1684
1685 <method name="unregisterMachine">
1686 <desc>
1687
1688 Unregisters the machine previously registered using
1689 <link to="#registerMachine"/>. After successful method invocation, the
1690 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1691 to all registered callbacks.
1692
1693 <note>
1694 The specified machine must not be in the Saved state, have an open
1695 (or a spawning) direct session associated with it, have snapshots or
1696 have hard disks attached.
1697 </note>
1698
1699 <note>
1700 This method implicitly calls <link to="IMachine::saveSettings"/> to
1701 save all current machine settings before unregistering it.
1702 </note>
1703
1704 <note>
1705 If the given machine is inaccessible (see
1706 <link to="IMachine::accessible"/>), it will be unregistered and
1707 fully uninitialized right afterwards. As a result, the returned
1708 machine object will be unusable and an attempt to call
1709 <b>any</b> method will return the "Object not ready" error.
1710 </note>
1711
1712 <result name="VBOX_E_OBJECT_NOT_FOUND">
1713 Could not find registered machine matching @a id.
1714 </result>
1715 <result name="VBOX_E_INVALID_VM_STATE">
1716 Machine is in Saved state.
1717 </result>
1718 <result name="VBOX_E_INVALID_OBJECT_STATE">
1719 Machine has snapshot or open session or hard disk attached.
1720 </result>
1721
1722 </desc>
1723 <param name="id" type="uuid" dir="in">
1724 <desc>UUID of the machine to unregister.</desc>
1725 </param>
1726 <param name="machine" type="IMachine" dir="return">
1727 <desc>Unregistered machine object.</desc>
1728 </param>
1729 </method>
1730
1731 <method name="createAppliance">
1732 <desc>
1733 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1734 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1735 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1736 </desc>
1737 <param name="appliance" type="IAppliance" dir="return">
1738 <desc>New appliance.</desc>
1739 </param>
1740 </method>
1741
1742 <method name="createHardDisk">
1743 <desc>
1744 Creates a new base hard disk object that will use the given storage
1745 format and location for hard disk data.
1746
1747 Note that the actual storage unit is not created by this method. In
1748 order to do it, and before you are able to attach the created hard disk
1749 to virtual machines, you must call one of the following methods to
1750 allocate a format-specific storage unit at the specified location:
1751 <ul>
1752 <li><link to="IHardDisk::createDynamicStorage"/></li>
1753 <li><link to="IHardDisk::createFixedStorage"/></li>
1754 <li><link to="IHardDisk::createDiffStorage"/></li>
1755 </ul>
1756
1757 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1758 remain uninitialized until the hard disk storage unit is successfully
1759 created by one of the above methods.
1760
1761 After the storage unit is successfully created, the hard disk gets
1762 remembered by this VirtualBox installation and will be accessible
1763 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1764 methods. Remembered root (base) hard disks are also returned as part of
1765 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1766
1767 The list of all storage formats supported by this VirtualBox
1768 installation can be obtained using
1769 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1770 attribute is empty or <tt>null</tt> then the default storage format
1771 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1772 be used for creating a storage unit of the hard disk.
1773
1774 Note that the format of the location string is storage format specific.
1775 See <link to="IMedium::location"/>, IHardDisk and
1776 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1777
1778 <result name="VBOX_E_OBJECT_NOT_FOUND">
1779 @a format identifier is invalid. See
1780 <link to="ISystemProperties::hardDiskFormats"/>.
1781 </result>
1782 <result name="VBOX_E_FILE_ERROR">
1783 @a location is a not valid file name (for file-based formats only).
1784 </result>
1785 <result name="E_INVALIDARG">
1786 @a format is a null or empty string.
1787 </result>
1788 </desc>
1789 <param name="format" type="wstring" dir="in">
1790 <desc>
1791 Identifier of the storage format to use for the new hard disk.
1792 </desc>
1793 </param>
1794 <param name="location" type="wstring" dir="in">
1795 <desc>
1796 Location of the storage unit for the new hard disk.
1797 </desc>
1798 </param>
1799 <param name="hardDisk" type="IHardDisk" dir="return">
1800 <desc>Created hard disk object.</desc>
1801 </param>
1802 </method>
1803
1804 <method name="openHardDisk">
1805 <desc>
1806 Opens a hard disk from an existing location.
1807
1808 After the hard disk is successfully opened by this method, it gets
1809 remembered by (known to) this VirtualBox installation and will be
1810 accessible through <link to="#getHardDisk"/> and
1811 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1812 are also returned as part of the <link to="#hardDisks"/> array and can
1813 be attached to virtual machines. See IHardDisk for more details.
1814
1815 If a differencing hard disk is to be opened by this method, the
1816 operation will succeed only if its parent hard disk and all ancestors,
1817 if any, are already known to this VirtualBox installation (for example,
1818 were opened by this method before).
1819
1820 This method tries to guess the storage format of the specified hard disk
1821 by reading hard disk data at the specified location.
1822
1823 Note that the format of the location string is storage format specific.
1824 See <link to="IMedium::location"/>, IHardDisk and
1825 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1826
1827
1828 <result name="VBOX_E_FILE_ERROR">
1829 Invalid hard disk storage file location.
1830 </result>
1831 <result name="VBOX_E_IPRT_ERROR">
1832 Could not get hard disk storage format.
1833 </result>
1834 <result name="E_INVALIDARG">
1835 Invalid hard disk storage format.
1836 </result>
1837
1838 </desc>
1839 <param name="location" type="wstring" dir="in">
1840 <desc>
1841 Location of the storage unit that contains hard disk data in one of
1842 the supported storage formats.
1843 </desc>
1844 </param>
1845 <param name="hardDisk" type="IHardDisk" dir="return">
1846 <desc>Opened hard disk object.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getHardDisk" const="yes">
1851 <desc>
1852 Returns a hard disk with the given UUID.
1853
1854 The hard disk with the given UUID must be known to this VirtualBox
1855 installation, i.e. it must be previously created by
1856 <link to="#createHardDisk"/> or opened by <link
1857 to="#openHardDisk"/>, or attached to some known virtual machine.
1858
1859 <result name="VBOX_E_OBJECT_NOT_FOUND">
1860 No hard disk object matching @a id found.
1861 </result>
1862
1863 </desc>
1864 <param name="id" type="uuid" dir="in">
1865 <desc>UUID of the hard disk to look for.</desc>
1866 </param>
1867 <param name="hardDisk" type="IHardDisk" dir="return">
1868 <desc>Found hard disk object.</desc>
1869 </param>
1870 </method>
1871
1872 <method name="findHardDisk">
1873 <desc>
1874 Returns a hard disk that uses the given location to store hard
1875 disk data.
1876
1877 The given hard disk must be known to this VirtualBox installation, i.e.
1878 it must be previously created by
1879 <link to="#createHardDisk"/> or opened by <link
1880 to="#openHardDisk"/>, or attached to some known virtual machine.
1881
1882 The search is done by comparing the value of the @a location argument to
1883 the <link to="IHardDisk::location"/> attribute of each known hard
1884 disk.
1885
1886 For locations represented by file names in the host's file system, the
1887 requested location can be a path relative to the
1888 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1889 only a file name without any path is given, the
1890 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1891 folder</link> will be prepended to the file name before searching. Note
1892 that on case sensitive file systems, a case sensitive comparison is
1893 performed, otherwise the case of symbols in the file path is ignored.
1894
1895 <result name="VBOX_E_OBJECT_NOT_FOUND">
1896 No hard disk object matching @a location found.
1897 </result>
1898
1899 </desc>
1900 <param name="location" type="wstring" dir="in">
1901 <desc>Location string to search for.</desc>
1902 </param>
1903 <param name="hardDisk" type="IHardDisk" dir="return">
1904 <desc>Found hard disk object.</desc>
1905 </param>
1906 </method>
1907
1908 <method name="openDVDImage">
1909 <desc>
1910 Opens a CD/DVD image contained in the specified file of the supported
1911 format and assigns it the given UUID.
1912
1913 After the image is successfully opened by this method, it gets
1914 remembered by (known to) this VirtualBox installation and will be
1915 accessible through <link to="#getDVDImage"/> and
1916 <link to="#findDVDImage"/> methods. Remembered images are also
1917 returned as part of the <link to="#DVDImages"/> array and can be mounted
1918 to virtual machines. See IMedium for more details.
1919
1920 See <link to="IMedium::location"/> to get more details about the format
1921 of the location string.
1922
1923 <note>
1924 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1925 </note>
1926
1927 <result name="VBOX_E_INVALID_OBJECT_STATE">
1928 CD/DVD image already exists in the media registry.
1929 </result>
1930
1931 </desc>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Full path to the file that contains a valid CD/DVD image.
1935 </desc>
1936 </param>
1937 <param name="id" type="uuid" dir="in">
1938 <desc>
1939 UUID to assign to the given image within this VirtualBox installation.
1940 If an empty (null) UUID is specified, the system will randomly
1941 generate a new UUID.
1942 </desc>
1943 </param>
1944 <param name="image" type="IDVDImage" dir="return">
1945 <desc>Opened CD/DVD image object.</desc>
1946 </param>
1947 </method>
1948
1949 <method name="getDVDImage">
1950 <desc>
1951 Returns a CD/DVD image with the given UUID.
1952
1953 The image with the given UUID must be known to this VirtualBox
1954 installation, i.e. it must be previously opened by <link
1955 to="#openDVDImage"/>, or mounted to some known virtual machine.
1956
1957 <result name="VBOX_E_OBJECT_NOT_FOUND">
1958 No matching DVD image found in the media registry.
1959 </result>
1960
1961 </desc>
1962 <param name="id" type="uuid" dir="in">
1963 <desc>UUID of the image to look for.</desc>
1964 </param>
1965 <param name="image" type="IDVDImage" dir="return">
1966 <desc>Found CD/DVD image object.</desc>
1967 </param>
1968 </method>
1969
1970 <method name="findDVDImage">
1971 <desc>
1972 Returns a CD/DVD image with the given image location.
1973
1974 The image with the given UUID must be known to this VirtualBox
1975 installation, i.e. it must be previously opened by <link
1976 to="#openDVDImage"/>, or mounted to some known virtual machine.
1977
1978 The search is done by comparing the value of the @a location argument to
1979 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1980
1981 The requested location can be a path relative to the
1982 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1983 only a file name without any path is given, the
1984 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1985 folder</link> will be prepended to the file name before searching. Note
1986 that on case sensitive file systems, a case sensitive comparison is
1987 performed, otherwise the case in the file path is ignored.
1988
1989 <result name="VBOX_E_FILE_ERROR">
1990 Invalid image file location.
1991 </result>
1992 <result name="VBOX_E_OBJECT_NOT_FOUND">
1993 No matching DVD image found in the media registry.
1994 </result>
1995
1996 </desc>
1997 <param name="location" type="wstring" dir="in">
1998 <desc>CD/DVD image file path to look for.</desc>
1999 </param>
2000 <param name="image" type="IDVDImage" dir="return">
2001 <desc>Found CD/DVD image object.</desc>
2002 </param>
2003 </method>
2004
2005 <method name="openFloppyImage">
2006 <desc>
2007 Opens a floppy image contained in the specified file of the supported
2008 format and assigns it the given UUID.
2009
2010 After the image is successfully opened by this method, it gets
2011 remembered by (known to) this VirtualBox installation and will be
2012 accessible through <link to="#getFloppyImage"/> and
2013 <link to="#findFloppyImage"/> methods. Remembered images are also
2014 returned as part of the <link to="#floppyImages"/> array and can be
2015 mounted to virtual machines. See IMedium for more details.
2016
2017 See <link to="IMedium::location"/> to get more details about the format
2018 of the location string.
2019
2020 <result name="VBOX_E_FILE_ERROR">
2021 Floppy image specified by @a location not accessible.
2022 </result>
2023 <result name="VBOX_E_INVALID_OBJECT_STATE">
2024 Floppy image already exists in the media registry.
2025 </result>
2026
2027 <note>
2028 Currently, only raw floppy images are supported by VirtualBox.
2029 </note>
2030 </desc>
2031 <param name="location" type="wstring" dir="in">
2032 <desc>
2033 Full path to the file that contains a valid floppy image.
2034 </desc>
2035 </param>
2036 <param name="id" type="uuid" dir="in">
2037 <desc>
2038 UUID to assign to the given image file within this VirtualBox
2039 installation. If an empty (null) UUID is specified, the system will
2040 randomly generate a new UUID.
2041 </desc>
2042 </param>
2043 <param name="image" type="IFloppyImage" dir="return">
2044 <desc>Opened floppy image object.</desc>
2045 </param>
2046 </method>
2047
2048 <method name="getFloppyImage">
2049 <desc>
2050 Returns a floppy image with the given UUID.
2051
2052 The image with the given UUID must be known to this VirtualBox
2053 installation, i.e. it must be previously opened by <link
2054 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2055
2056 <result name="VBOX_E_OBJECT_NOT_FOUND">
2057 No matching floppy image found in the media registry.
2058 </result>
2059
2060 </desc>
2061 <param name="id" type="uuid" dir="in">
2062 <desc>UUID of the image to look for.</desc>
2063 </param>
2064 <param name="image" type="IFloppyImage" dir="return">
2065 <desc>Found floppy image object.</desc>
2066 </param>
2067 </method>
2068
2069 <method name="findFloppyImage">
2070 <desc>
2071 Returns a floppy image with the given image location.
2072
2073 The image with the given UUID must be known to this VirtualBox
2074 installation, i.e. it must be previously opened by <link
2075 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2076
2077 The search is done by comparing the value of the @a location argument to
2078 the <link to="IMedium::location"/> attribute of each known floppy image.
2079
2080 The requested location can be a path relative to the
2081 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2082 only a file name without any path is given, the
2083 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2084 folder</link> will be prepended to the file name before searching. Note
2085 that on case sensitive file systems, a case sensitive comparison is
2086 performed, otherwise the case of symbols in the file path is ignored.
2087
2088 <result name="VBOX_E_FILE_ERROR">
2089 Invalid image file location.
2090 </result>
2091 <result name="VBOX_E_OBJECT_NOT_FOUND">
2092 No matching floppy image found in the media registry.
2093 </result>
2094
2095 </desc>
2096 <param name="location" type="wstring" dir="in">
2097 <desc>Floppy image file path to look for.</desc>
2098 </param>
2099 <param name="image" type="IFloppyImage" dir="return">
2100 <desc>Found floppy image object.</desc>
2101 </param>
2102 </method>
2103
2104 <method name="getGuestOSType">
2105 <desc>
2106 Returns an object describing the specified guest OS type.
2107
2108 The requested guest OS type is specified using a string which is a
2109 mnemonic identifier of the guest operating system, such as
2110 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2111 particular virtual machine can be read or set using the
2112 <link to="IMachine::OSTypeId"/> attribute.
2113
2114 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2115 available guest OS type objects. Each object has an
2116 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2117 the guest OS this object describes.
2118
2119 <result name="E_INVALIDARG">
2120 @a id is not a valid Guest OS type.
2121 </result>
2122
2123 </desc>
2124 <param name="id" type="wstring" dir="in">
2125 <desc>Guest OS type ID string.</desc>
2126 </param>
2127 <param name="type" type="IGuestOSType" dir="return">
2128 <desc>Guest OS type object.</desc>
2129 </param>
2130 </method>
2131
2132 <method name="createSharedFolder">
2133 <desc>
2134 Creates a new global shared folder by associating the given logical
2135 name with the given host path, adds it to the collection of shared
2136 folders and starts sharing it. Refer to the description of
2137 <link to="ISharedFolder"/> to read more about logical names.
2138 <note>
2139 In the current implementation, this operation is not
2140 implemented.
2141 </note>
2142 </desc>
2143 <param name="name" type="wstring" dir="in">
2144 <desc>Unique logical name of the shared folder.</desc>
2145 </param>
2146 <param name="hostPath" type="wstring" dir="in">
2147 <desc>Full path to the shared folder in the host file system.</desc>
2148 </param>
2149 <param name="writable" type="boolean" dir="in">
2150 <desc>Whether the share is writable or readonly</desc>
2151 </param>
2152 </method>
2153
2154 <method name="removeSharedFolder">
2155 <desc>
2156 Removes the global shared folder with the given name previously
2157 created by <link to="#createSharedFolder"/> from the collection of
2158 shared folders and stops sharing it.
2159 <note>
2160 In the current implementation, this operation is not
2161 implemented.
2162 </note>
2163 </desc>
2164 <param name="name" type="wstring" dir="in">
2165 <desc>Logical name of the shared folder to remove.</desc>
2166 </param>
2167 </method>
2168
2169 <method name="getNextExtraDataKey">
2170 <desc>
2171 Returns the global extra data key name following the supplied key.
2172
2173 An error is returned if the supplied @a key does not exist. @c NULL is
2174 returned in @a nextKey if the supplied key is the last key. When
2175 supplying @c NULL for the @a key, the first key item is returned in
2176 @a nextKey (if there is any). @a nextValue is an optional parameter and
2177 if supplied, the next key's value is returned in it.
2178
2179 <result name="VBOX_E_OBJECT_NOT_FOUND">
2180 Extra data @a key not found.
2181 </result>
2182
2183 </desc>
2184 <param name="key" type="wstring" dir="in">
2185 <desc>Name of the data key to follow.</desc>
2186 </param>
2187 <param name="nextKey" type="wstring" dir="out">
2188 <desc>Name of the next data key.</desc>
2189 </param>
2190 <param name="nextValue" type="wstring" dir="out">
2191 <desc>Value of the next data key.</desc>
2192 </param>
2193 </method>
2194
2195 <method name="getExtraData">
2196 <desc>
2197 Returns associated global extra data.
2198
2199 If the requested data @a key does not exist, this function will
2200 succeed and return @c NULL in the @a value argument.
2201
2202 <result name="VBOX_E_FILE_ERROR">
2203 Settings file not accessible.
2204 </result>
2205 <result name="VBOX_E_XML_ERROR">
2206 Could not parse the settings file.
2207 </result>
2208
2209 </desc>
2210 <param name="key" type="wstring" dir="in">
2211 <desc>Name of the data key to get.</desc>
2212 </param>
2213 <param name="value" type="wstring" dir="return">
2214 <desc>Value of the requested data key.</desc>
2215 </param>
2216 </method>
2217
2218 <method name="setExtraData">
2219 <desc>
2220 Sets associated global extra data.
2221
2222 If you pass @c NULL as a key @a value, the given @a key will be
2223 deleted.
2224
2225 <note>
2226 Before performing the actual data change, this method will ask all
2227 registered callbacks using the
2228 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2229 notification for a permission. If one of the callbacks refuses the
2230 new value, the change will not be performed.
2231 </note>
2232 <note>
2233 On success, the
2234 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2235 is called to inform all registered callbacks about a successful data
2236 change.
2237 </note>
2238
2239 <result name="VBOX_E_FILE_ERROR">
2240 Settings file not accessible.
2241 </result>
2242 <result name="VBOX_E_XML_ERROR">
2243 Could not parse the settings file.
2244 </result>
2245 <result name="E_ACCESSDENIED">
2246 Modification request refused.
2247 </result>
2248
2249 </desc>
2250 <param name="key" type="wstring" dir="in">
2251 <desc>Name of the data key to set.</desc>
2252 </param>
2253 <param name="value" type="wstring" dir="in">
2254 <desc>Value to assign to the key.</desc>
2255 </param>
2256 </method>
2257
2258 <method name="openSession">
2259 <desc>
2260 Opens a new direct session with the given virtual machine.
2261
2262 A direct session acts as a local lock on the given VM.
2263 There can be only one direct session open at a time for every
2264 virtual machine, protecting the VM from being manipulated by
2265 conflicting actions from different processes. Only after a
2266 direct session has been opened, one can change all VM settings
2267 and execute the VM in the process space of the session object.
2268
2269 Sessions therefore can be compared to mutex semaphores that
2270 lock a given VM for modification and execution.
2271 See <link to="ISession">ISession</link> for details.
2272
2273 <note>Unless you are writing a new VM frontend, you will not
2274 want to execute a VM in the current process. To spawn a new
2275 process that executes a VM, use
2276 <link to="IVirtualBox::openRemoteSession" />
2277 instead.</note>
2278
2279 Upon successful return, the session object can be used to
2280 get access to the machine and to the VM console.
2281
2282 In VirtualBox terminology, the machine becomes "mutable" after
2283 a session has been opened. Note that the "mutable" machine
2284 object, on which you may invoke IMachine methods to change its
2285 settings, will be a different object from the immutable IMachine
2286 objects returned by various IVirtualBox methods. To obtain a
2287 mutable IMachine object (upon which you can invoke settings methods),
2288 use the <link to="ISession::machine" /> attribute.
2289
2290 One must always call <link to="ISession::close" /> to release the
2291 lock on the machine, or the machine's state will eventually be
2292 set to "Aborted".
2293
2294 In other words, to change settings on a machine, the following
2295 sequence is typically performed:
2296
2297 <ol>
2298 <li>Call this method (openSession) to have a machine locked for
2299 the current session.</li>
2300
2301 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2302
2303 <li>Change the settings of the machine.</li>
2304
2305 <li>Call <link to="IMachine::saveSettings" />.</li>
2306
2307 <li>Close the session by calling <link to="ISession::close"/>.</li>
2308 </ol>
2309
2310 <result name="E_UNEXPECTED">
2311 Virtual machine not registered.
2312 </result>
2313 <result name="E_ACCESSDENIED">
2314 Process not started by OpenRemoteSession.
2315 </result>
2316 <result name="VBOX_E_OBJECT_NOT_FOUND">
2317 No matching virtual machine found.
2318 </result>
2319 <result name="VBOX_E_INVALID_OBJECT_STATE">
2320 Session already open or being opened.
2321 </result>
2322 <result name="VBOX_E_VM_ERROR">
2323 Failed to assign machine to session.
2324 </result>
2325
2326 </desc>
2327 <param name="session" type="ISession" dir="in">
2328 <desc>
2329 Session object that will represent the opened session after
2330 successful method invocation. This object must not represent
2331 the already open session.
2332 <note>
2333 This session will be automatically closed if the
2334 VirtualBox server is terminated for some reason.
2335 </note>
2336 </desc>
2337 </param>
2338 <param name="machineId" type="uuid" dir="in">
2339 <desc>ID of the virtual machine to open a session with.</desc>
2340 </param>
2341 </method>
2342
2343 <method name="openRemoteSession">
2344 <desc>
2345 Spawns a new process that executes a virtual machine (called a
2346 "remote session").
2347
2348 Opening a remote session causes the VirtualBox server to start a new
2349 process that opens a direct session with the given VM. As a result, the
2350 VM is locked by that direct session in the new process, preventing
2351 conflicting changes from other processes. Since sessions act as locks
2352 that prevent conflicting changes, one cannot open a remote session
2353 for a VM that already has another open session (direct or remote), or
2354 is currently in the process of opening one (see <link
2355 to="IMachine::sessionState"/>).
2356
2357 While the remote session still provides some level of control over the
2358 VM execution to the caller (using the <link to="IConsole" /> interface),
2359 not all VM settings are available for modification within the remote
2360 session context.
2361
2362 This operation can take some time (a new VM is started in a new process,
2363 for which memory and other resources need to be set up). Because of this,
2364 an <link to="IProgress" /> is returned to allow the caller to wait for this
2365 asynchronous operation to be completed. Until then, the remote session
2366 object remains in the closed state, and accessing the machine or its
2367 console through it is invalid. It is recommended to use
2368 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2369 completion.
2370
2371 As with all <link to="ISession" /> objects, it is recommended to call
2372 <link to="ISession::close" /> on the local session object once openRemoteSession()
2373 has been called. However, the session's state (see <link to="ISession::state" />)
2374 will not return to "Closed" until the remote session has also closed (i.e.
2375 until the VM is no longer running). In that case, however, the state of
2376 the session will automatically change back to "Closed".
2377
2378 Currently supported session types (values of the @a type
2379 argument) are:
2380 <ul>
2381 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2382 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2383 </ul>
2384
2385 The @a environment argument is a string containing definitions of
2386 environment variables in the following format:
2387 @code
2388 NAME[=VALUE]\n
2389 NAME[=VALUE]\n
2390 ...
2391 @endcode
2392 where <tt>\\n</tt> is the new line character. These environment
2393 variables will be appended to the environment of the VirtualBox server
2394 process. If an environment variable exists both in the server process
2395 and in this list, the value from this list takes precedence over the
2396 server's variable. If the value of the environment variable is
2397 omitted, this variable will be removed from the resulting environment.
2398 If the environment string is @c null, the server environment is
2399 inherited by the started process as is.
2400
2401 <see>openExistingSession</see>
2402
2403 <result name="E_UNEXPECTED">
2404 Virtual machine not registered.
2405 </result>
2406 <result name="E_INVALIDARG">
2407 Invalid session type @a type.
2408 </result>
2409 <result name="VBOX_E_OBJECT_NOT_FOUND">
2410 No machine matching @a machineId found.
2411 </result>
2412 <result name="VBOX_E_INVALID_OBJECT_STATE">
2413 Session already open or being opened.
2414 </result>
2415 <result name="VBOX_E_IPRT_ERROR">
2416 Launching process for machine failed.
2417 </result>
2418 <result name="VBOX_E_VM_ERROR">
2419 Failed to assign machine to session.
2420 </result>
2421
2422 </desc>
2423 <param name="session" type="ISession" dir="in">
2424 <desc>
2425 Session object that will represent the opened remote session
2426 after successful method invocation (this object must not
2427 represent an already open session).
2428 </desc>
2429 </param>
2430 <param name="machineId" type="uuid" dir="in">
2431 <desc>ID of the virtual machine to open a session with.</desc>
2432 </param>
2433 <param name="type" type="wstring" dir="in">
2434 <desc>
2435 Type of the remote session (case sensitive).
2436 </desc>
2437 </param>
2438 <param name="environment" type="wstring" dir="in">
2439 <desc>
2440 Environment to pass to the opened session (may be @c null).
2441 </desc>
2442 </param>
2443 <param name="progress" type="IProgress" dir="return">
2444 <desc>Progress object to track the operation completion.</desc>
2445 </param>
2446 </method>
2447
2448 <method name="openExistingSession">
2449 <desc>
2450 Opens a new remote session with the virtual machine for
2451 which a direct session is already open.
2452
2453 The remote session provides some level of control over the VM
2454 execution (using the IConsole interface) to the caller; however,
2455 within the remote session context, not all VM settings are available
2456 for modification.
2457
2458 As opposed to <link to="#openRemoteSession"/>, the number of
2459 remote sessions opened this way is not limited by the API
2460
2461 <note>
2462 It is an error to open a remote session with the machine that
2463 doesn't have an open direct session.
2464 </note>
2465
2466 <result name="E_UNEXPECTED">
2467 Virtual machine not registered.
2468 </result>
2469 <result name="VBOX_E_OBJECT_NOT_FOUND">
2470 No machine matching @a machineId found.
2471 </result>
2472 <result name="VBOX_E_INVALID_OBJECT_STATE">
2473 Session already open or being opened.
2474 </result>
2475 <result name="VBOX_E_INVALID_SESSION_STATE">
2476 Direct session state not Open.
2477 </result>
2478 <result name="VBOX_E_VM_ERROR">
2479 Failed to get console object from direct session or assign
2480 machine to session.
2481 </result>
2482
2483 <see>openRemoteSession</see>
2484 </desc>
2485 <param name="session" type="ISession" dir="in">
2486 <desc>
2487 Session object that will represent the open remote session
2488 after successful method invocation. This object must not
2489 represent an already open session.
2490 <note>
2491 This session will be automatically closed when the peer
2492 (direct) session dies or gets closed.
2493 </note>
2494 </desc>
2495 </param>
2496 <param name="machineId" type="uuid" dir="in">
2497 <desc>ID of the virtual machine to open a session with.</desc>
2498 </param>
2499 </method>
2500
2501 <method name="registerCallback">
2502 <desc>
2503 Registers a new global VirtualBox callback. The methods of the given
2504 callback object will be called by VirtualBox when an appropriate
2505 event occurs.
2506
2507 <result name="E_INVALIDARG">
2508 A @c NULL callback cannot be registered.
2509 </result>
2510
2511 </desc>
2512 <param name="callback" type="IVirtualBoxCallback" dir="in">
2513 <desc>Callback object to register.</desc>
2514 </param>
2515 </method>
2516
2517 <method name="unregisterCallback">
2518 <desc>
2519 Unregisters the previously registered global VirtualBox callback.
2520
2521 <result name="E_INVALIDARG">
2522 Specified @a callback not registered.
2523 </result>
2524
2525 </desc>
2526 <param name="callback" type="IVirtualBoxCallback" dir="in">
2527 <desc>Callback object to unregister.</desc>
2528 </param>
2529 </method>
2530
2531 <method name="waitForPropertyChange">
2532 <desc>
2533 Blocks the caller until any of the properties represented by the
2534 @a what argument changes the value or until the given timeout interval
2535 expires.
2536
2537 The @a what argument is a comma separated list of property masks that
2538 describe properties the caller is interested in. The property mask is
2539 a string in the following format:
2540
2541 <pre>
2542 [[group.]subgroup.]name
2543 </pre>
2544
2545 where @c name is the property name and @c group, @c subgroup are zero
2546 or more property group specifiers. Each element (group or name) in
2547 the property mask may be either a Latin string or an asterisk symbol
2548 (@c "*") which is used to match any string for the given element. A
2549 property mask that doesn't contain asterisk symbols represents a
2550 single fully qualified property name.
2551
2552 Groups in the fully qualified property name go from more generic (the
2553 left-most part) to more specific (the right-most part). The first
2554 element is usually a name of the object the property belongs to. The
2555 second element may be either a property name, or a child object name,
2556 or an index if the preceding element names an object which is one of
2557 many objects of the same type. This way, property names form a
2558 hierarchy of properties. Here are some examples of property names:
2559
2560 <table>
2561 <tr>
2562 <td><tt>VirtualBox.version</tt></td>
2563 <td><link to="IVirtualBox::version"/> property</td>
2564 </tr>
2565 <tr>
2566 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2567 <td><link to="IMachine::name"/> property of the machine with the
2568 given UUID</td>
2569 </tr>
2570 </table>
2571
2572 Most property names directly correspond to the properties of objects
2573 (components) provided by the VirtualBox library and may be used to
2574 track changes to these properties. However, there may be
2575 pseudo-property names that don't correspond to any existing object's
2576 property directly, as well as there may be object properties that
2577 don't have a corresponding property name that is understood by this
2578 method, and therefore changes to such properties cannot be
2579 tracked. See individual object's property descriptions to get a
2580 fully qualified property name that can be used with this method (if
2581 any).
2582
2583 There is a special property mask @c "*" (i.e. a string consisting of a
2584 single asterisk symbol) that can be used to match all properties.
2585 Below are more examples of property masks:
2586
2587 <table>
2588 <tr>
2589 <td><tt>VirtualBox.*</tt></td>
2590 <td>Track all properties of the VirtualBox object</td>
2591 </tr>
2592 <tr>
2593 <td><tt>Machine.*.name</tt></td>
2594 <td>Track changes to the <link to="IMachine::name"/> property of
2595 all registered virtual machines</td>
2596 </tr>
2597 </table>
2598
2599 <note>
2600 This function is not implemented in the current version of the
2601 product.
2602 </note>
2603 </desc>
2604 <param name="what" type="wstring" dir="in">
2605 <desc>Comma separated list of property masks.</desc>
2606 </param>
2607 <param name="timeout" type="unsigned long" dir="in">
2608 <desc>
2609 Wait timeout in milliseconds.
2610 Specify -1 for an indefinite wait.
2611 </desc>
2612 </param>
2613 <param name="changed" type="wstring" dir="out">
2614 <desc>
2615 Comma separated list of properties that have been changed and caused
2616 this method to return to the caller.
2617 </desc>
2618 </param>
2619 <param name="values" type="wstring" dir="out">
2620 <desc>Reserved, not currently used.</desc>
2621 </param>
2622 </method>
2623
2624 <method name="saveSettings">
2625 <desc>
2626 Saves the global settings to the global settings file
2627 (<link to="#settingsFilePath"/>).
2628
2629 This method is only useful for explicitly saving the global settings
2630 file after it has been auto-converted from the old format to the most
2631 recent format (see <link to="#settingsFileVersion"/> for details).
2632 Normally, the global settings file is implicitly saved when a global
2633 setting is changed.
2634
2635 <result name="VBOX_E_FILE_ERROR">
2636 Settings file not accessible.
2637 </result>
2638 <result name="VBOX_E_XML_ERROR">
2639 Could not parse the settings file.
2640 </result>
2641
2642 </desc>
2643 </method>
2644
2645 <method name="saveSettingsWithBackup">
2646 <desc>
2647 Creates a backup copy of the global settings file
2648 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2649 calls <link to="#saveSettings"/>.
2650
2651 Note that the backup copy is created <b>only</b> if the settings file
2652 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2653 details). Otherwise, this call is fully equivalent to
2654 <link to="#saveSettings"/> and no backup copying is done.
2655
2656 The backup copy is created in the same directory where the original
2657 settings file is located. It is given the following file name:
2658 <pre>
2659 original.xml.x.y-platform.bak
2660 </pre>
2661 where <tt>original.xml</tt> is the original settings file name
2662 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2663 format of the settings file (before auto-conversion).
2664
2665 If the given backup file already exists, this method will try to add the
2666 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2667 0 to 9) and copy it again until it succeeds. If all suffixes are
2668 occupied, or if any other copy error occurs, this method will return a
2669 failure.
2670
2671 If the copy operation succeeds, the @a bakFileName return argument will
2672 receive a full path to the created backup file (for informational
2673 purposes). Note that this will happen even if the subsequent
2674 <link to="#saveSettings"/> call performed by this method after the
2675 copy operation, fails.
2676
2677 <note>
2678 The VirtualBox API never calls this method. It is intended purely for
2679 the purposes of creating backup copies of the settings files by
2680 front-ends before saving the results of the automatically performed
2681 settings conversion to disk.
2682 </note>
2683
2684 <see>settingsFileVersion</see>
2685
2686 <result name="VBOX_E_FILE_ERROR">
2687 Settings file not accessible.
2688 </result>
2689 <result name="VBOX_E_XML_ERROR">
2690 Could not parse the settings file.
2691 </result>
2692 <result name="VBOX_E_IPRT_ERROR">
2693 Could not copy the settings file.
2694 </result>
2695
2696 </desc>
2697 <param name="bakFileName" type="wstring" dir="return">
2698 <desc>Full path to the created backup copy.</desc>
2699 </param>
2700 </method>
2701
2702 </interface>
2703
2704 <!--
2705 // IAppliance
2706 /////////////////////////////////////////////////////////////////////////
2707 -->
2708
2709 <enum
2710 name="CIMOSType"
2711 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2712 >
2713 <desc>
2714 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2715 </desc>
2716
2717 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2718 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2719 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2720 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2721 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2722 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2723 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2724 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2725 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2726 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2727 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2728 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2729 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2730 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2731 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2732 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2733 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2734 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2735 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2736 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2737 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2738 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2739 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2740 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2741 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2742 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2743 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2744 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2745 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2746 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2747 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2748 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2749 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2750 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2751 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2752 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2753 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2754 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2755 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2756 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2757 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2758 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2759 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2760 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2761 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2762 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2763 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2764 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2765 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2766 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2767 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2768 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2769 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2770 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2771 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2772 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2773 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2774 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2775 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2776 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2777 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2778 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2779 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2780 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2781 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2782 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2783 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2784 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2785 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2786 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2787 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2788 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2789 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2790 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2791 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2792 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2793 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2794 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2795 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2796 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2797 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2798 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2799 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2800 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2801 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2802 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2803 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2804 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2805 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2806 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2807 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2808 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2809 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2810 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2811 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2812 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2813 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2814 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2815 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2816 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2817 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2818 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2819 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2820 </enum>
2821
2822 <enum
2823 name="OVFResourceType"
2824 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2825 >
2826 <desc>
2827 OVF resource type.
2828 </desc>
2829
2830 <const name="Other" value="1" />
2831 <const name="ComputerSystem" value="2" />
2832 <const name="Processor" value="3" />
2833 <const name="Memory" value="4" />
2834 <const name="IdeController" value="5" />
2835 <const name="ParallelScsiHba" value="6" />
2836 <const name="FcHba" value="7" />
2837 <const name="iScsiHba" value="8" />
2838 <const name="IbHca" value="9" />
2839 <const name="EthernetAdapter" value="10" />
2840 <const name="OtherNetworkAdapter" value="11" />
2841 <const name="IoSlot" value="12" />
2842 <const name="IoDevice" value="13" />
2843 <const name="FloppyDrive" value="14" />
2844 <const name="CdDrive" value="15" />
2845 <const name="DvdDrive" value="16" />
2846 <const name="HardDisk" value="17" />
2847 <const name="UsbController" value="23" />
2848 <const name="SoundCard" value="35" />
2849 </enum>
2850
2851 <interface
2852 name="IAppliance" extends="$unknown"
2853 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2854 wsmap="managed"
2855 >
2856 <desc>
2857 Represents a platform-independent appliance in OVF format. An instance of this is returned
2858 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2859 appliances with VirtualBox.
2860
2861 The OVF standard suggests two different physical file formats:
2862
2863 <ol>
2864 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2865 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2866 this descriptor file references other files, as OVF appliances distributed as a set of
2867 files most likely do, those files must be in the same directory as the descriptor file.</li>
2868
2869 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2870 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2871 files and optionally other files.
2872
2873 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2874 be added with a later version.</li>
2875 </ol>
2876
2877 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2878 <link to="IMachine" /> involves the following sequence of API calls:
2879
2880 <ol>
2881 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2882 </li>
2883
2884 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2885 would like to import. So long as this file is syntactically valid, this will succeed
2886 and return an instance of IAppliance that contains the parsed data from the OVF file.
2887 </li>
2888
2889 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2890 contents of the IAppliance attributes accordingly. These can be inspected by a
2891 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2892 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2893 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2894 systems in the OVF, which in turn describe the virtual hardware prescribed by the
2895 OVF (network and hardware adapters, virtual disk images, memory size and so on).
2896 The GUI can then give the user the option to confirm and/or change these suggestions.
2897 </li>
2898
2899 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2900 virtual system to override the suggestions made by VirtualBox.
2901 </li>
2902
2903 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2904 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2905 virtual system descriptions.
2906 </li>
2907 </ol>
2908
2909 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2910
2911 <ol>
2912 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2913 an empty IAppliance object.
2914 </li>
2915
2916 <li>For each machine you would like to export, call <link to="IMachine::export" />
2917 with the IAppliance object you just created. This creates an instance of
2918 <link to="IVirtualSystemDescription" /> inside the appliance.
2919 </li>
2920
2921 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2922 file written.</li>
2923 </ol>
2924
2925 </desc>
2926
2927 <attribute name="path" type="wstring" readonly="yes">
2928 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2929 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2930 <link to="#write" /> (for export).
2931 This attribute is empty until one of these methods has been called.
2932 </desc>
2933 </attribute>
2934
2935 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2936 <desc>
2937 Array of virtual disk definitions. One such description exists for each
2938 disk definition in the OVF; each string array item represents one such piece of
2939 disk information, with the information fields separated by tab (\t) characters.
2940
2941 The caller should be prepared for additional fields being appended to
2942 this string in future versions of VirtualBox and therefore check for
2943 the number of tabs in the strings returned.
2944
2945 In the current version, the following eight fields are returned per string
2946 in the array:
2947
2948 <ol>
2949 <li>Disk ID (unique string identifier given to disk)</li>
2950
2951 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2952
2953 <li>Populated size (optional unsigned integer indicating the current size of the
2954 disk; can be approximate; -1 if unspecified)</li>
2955
2956 <li>Format (string identifying the disk format, typically
2957 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2958
2959 <li>Reference (where to find the disk image, typically a file name; if empty,
2960 then the disk should be created on import)</li>
2961
2962 <li>Image size (optional unsigned integer indicating the size of the image,
2963 which need not necessarily be the same as the values specified above, since
2964 the image may be compressed or sparse; -1 if not specified)</li>
2965
2966 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2967 presently unsupported and always -1)</li>
2968
2969 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2970 </ol>
2971 </desc>
2972 </attribute>
2973
2974 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2975 <desc> Array of virtual system descriptions. One such description is created
2976 for each virtual system found in the OVF.
2977 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2978 (for export) has been called.
2979 </desc>
2980 </attribute>
2981
2982 <method name="read">
2983 <desc>
2984 Reads an OVF file into the appliance object.
2985
2986 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2987 mere fact that this method returns successfully does not mean that VirtualBox supports all
2988 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2989 </desc>
2990 <param name="file" type="wstring" dir="in">
2991 <desc>
2992 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2993 on whether the appliance is distributed as a set of files or as a single file, respectively).
2994 </desc>
2995 </param>
2996 </method>
2997
2998 <method name="interpret">
2999 <desc>
3000 Interprets the OVF data that was read when the appliance was constructed. After
3001 calling this method, one can inspect the
3002 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3003 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3004 the appliance.
3005
3006 Calling this method is the second step of importing an appliance into VirtualBox;
3007 see <link to="IAppliance" /> for an overview.
3008 </desc>
3009 </method>
3010
3011 <method name="importMachines">
3012 <desc>
3013 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3014 and other interfaces that match the information contained in the appliance as
3015 closely as possible, as represented by the import instructions in the
3016 <link to="#virtualSystemDescriptions" /> array.
3017
3018 Calling this method is the final step of importing an appliance into VirtualBox;
3019 see <link to="IAppliance" /> for an overview.
3020
3021 Since importing the appliance will most probably involve copying and converting
3022 disk images, which can take a long time, this method operates asynchronously and
3023 returns an IProgress object to allow the caller to monitor the progress.
3024 </desc>
3025
3026 <param name="aProgress" type="IProgress" dir="return">
3027 <desc></desc>
3028 </param>
3029 </method>
3030
3031 <method name="write">
3032 <desc>
3033 Writes the contents of the appliance exports into a new OVF file.
3034
3035 Calling this method is the final step of exporting an appliance from VirtualBox;
3036 see <link to="IAppliance" /> for an overview.
3037
3038 Since importing the appliance will most probably involve copying and converting
3039 disk images, which can take a long time, this method operates asynchronously and
3040 returns an IProgress object to allow the caller to monitor the progress.
3041 </desc>
3042 <param name="path" type="wstring" dir="in">
3043 <desc>
3044 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3045 on whether the appliance is distributed as a set of files or as a single file, respectively).
3046 </desc>
3047 </param>
3048 <param name="aProgress" type="IProgress" dir="return">
3049 <desc></desc>
3050 </param>
3051 </method>
3052
3053 </interface>
3054
3055 <enum
3056 name="VirtualSystemDescriptionType"
3057 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3058 >
3059 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3060 a configuration value.</desc>
3061
3062 <const name="Ignore" value="1" />
3063 <const name="OS" value="2" />
3064 <const name="Name" value="3" />
3065 <const name="CPU" value="4" />
3066 <const name="Memory" value="5" />
3067 <const name="HardDiskControllerIDE" value="6" />
3068 <const name="HardDiskControllerSATA" value="7" />
3069 <const name="HardDiskControllerSCSI" value="8" />
3070 <const name="HardDiskImage" value="9" />
3071 <const name="Floppy" value="10" />
3072 <const name="CDROM" value="11" />
3073 <const name="LogicalNetwork" value="12" />
3074 <const name="NetworkAdapter" value="13" />
3075 <const name="USBController" value="14" />
3076 <const name="SoundCard" value="15" />
3077
3078 </enum>
3079
3080 <interface
3081 name="IVirtualSystemDescription" extends="$unknown"
3082 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3083 wsmap="managed"
3084 >
3085
3086 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3087 After <link to="IAppliance::interpret" /> has been called, that array contains
3088 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3089 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3090 into VirtualBox.
3091 </desc>
3092
3093 <attribute name="count" type="unsigned long" readonly="yes">
3094 <desc>Return the number of virtual system description entries.</desc>
3095 </attribute>
3096
3097 <method name="getDescription">
3098 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3099 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3100
3101 The list below identifies the value sets that are possible depending on the
3102 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3103 the array item with the same index in aOvfValues[] will contain the original value as contained
3104 in the OVF file (just for informational purposes), and the corresponding item in aVboxValues[]
3105 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3106 the aExtraConfigValues[] array item may also be used.
3107
3108 <ul>
3109 <li>
3110 "OS": the guest operating system type. There must be exactly one such array item on import. The
3111 corresponding item in aVboxValues[] contains the suggested guest operating system for VirtualBox.
3112 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3113 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3114 (see <link to="CIMOSType" />).
3115 </li>
3116 <li>
3117 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3118 if none is present on import, then an automatic name will be created from the operating system
3119 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3120 from the OVF file, and aVboxValues[] will contain a suggestion for a unique VirtualBox
3121 <link to="IMachine" /> name that does not exist yet.
3122 </li>
3123 <li>
3124 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3125 </li>
3126 <li>
3127 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3128 is present on import, then VirtualBox will set a meaningful default based on the operating system
3129 type.
3130 </li>
3131 <li>
3132 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3133 has no value in aOvfValues[] or aVboxValues[].
3134 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3135 type can use to specify which hard disk controller a virtual disk should be connected to.
3136 </li>
3137 <li>
3138 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3139 has no value in aOvfValues[] or aVboxValues[].
3140 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3141 </li>
3142 <li>
3143 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3144 The items in aOvfValues[] and aVboxValues[] will either be "LsiLogic" or "BusLogic".
3145 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3146 </li>
3147 <li>
3148 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3149 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3150
3151 The array item in aOvfValues[] will contain the file specification from the OVF file,
3152 whereas the item in aVboxValues[] will contain a qualified path specification to where
3153 VirtualBox uses the hard disk image. This means that on import the image will be copied
3154 and converted from the "ovf" location to the "vbox" location; on export, this will be
3155 handled the other way round. On import, the target image will also be registered with VirtualBox.
3156
3157 The matching item in the aExtraConfigValues[] array must contain a string of the following
3158 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3159 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3160 the image to. That number must be the index of an array item with one of the hard disk controller
3161 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3162 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3163 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3164 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3165 SCSI conrollers, the channel can range from 0-29.
3166 </li>
3167 <li>
3168 "LogicalNetwork": a logical network to which virtual machines can connect. This is taken from
3169 the Network section in the OVF that is shared between several virtual systems. OVF has no
3170 formal description of how the network shall be set up (e.g. whether to use NAT or host interface
3171 networking), but OVFs typically name the logical networks "nat" or "bridged" to suggest such
3172 a configuration.
3173 </li>
3174 <li>
3175 "NetworkAdapter": a network adapter. The array item in aVboxValues[] will specify the hardware
3176 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3177 of the "network=&lt;nw&gt;" format, where &lt;nw&gt; must be one of the networks as specified with the
3178 LogicalNetwork type.
3179 </li>
3180 <li>
3181 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3182 present, sound support will be enabled for the new virtual machine. Note that the virtual
3183 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3184 may be different from the virtual soundcard expected by the appliance.
3185 </li>
3186 </ul>
3187
3188 </desc>
3189
3190 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3191 <desc></desc>
3192 </param>
3193
3194 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3195 <desc></desc>
3196 </param>
3197
3198 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3199 <desc></desc>
3200 </param>
3201
3202 <param name="aVboxValues" type="wstring" dir="out" safearray="yes">
3203 <desc></desc>
3204 </param>
3205
3206 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3207 <desc></desc>
3208 </param>
3209
3210 </method>
3211
3212 <method name="setFinalValues">
3213 <desc>
3214 This method allows the appliance's user to change the configuration for the virtual
3215 system descriptions. For each array item returned from <link to="getDescription" />,
3216 you must pass in one boolean value and one configuration value.
3217
3218 Each item in the boolean array determines whether the particular configuration item
3219 should be enabled.
3220 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3221 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3222 and SoundCard.
3223
3224 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3225 as returned in the aVboxValues and aExtraConfigValues arrays from getDescription(),
3226 the configuration remains unchanged. Please see the documentation for getDescription()
3227 for valid configuration values for the individual array item types. If the
3228 corresponding item in the aEnabled array is false, the configuration value is ignored.
3229 </desc>
3230
3231 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3232 <desc></desc>
3233 </param>
3234
3235 <param name="aVboxValues" type="wstring" dir="in" safearray="yes">
3236 <desc></desc>
3237 </param>
3238
3239 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3240 <desc></desc>
3241 </param>
3242 </method>
3243
3244 <method name="getWarnings">
3245 <desc>Returns textual warnings which occured during the virtual system
3246 interpretion.</desc>
3247
3248 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3249 <desc></desc>
3250 </param>
3251 </method>
3252
3253 </interface>
3254
3255
3256 <!--
3257 // IMachine
3258 /////////////////////////////////////////////////////////////////////////
3259 -->
3260
3261 <interface
3262 name="IInternalMachineControl" extends="$unknown"
3263 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3264 internal="yes"
3265 wsmap="suppress"
3266 >
3267 <method name="updateState">
3268 <desc>
3269 Updates the VM state.
3270 <note>
3271 This operation will also update the settings file with
3272 the correct information about the saved state file
3273 and delete this file from disk when appropriate.
3274 </note>
3275 </desc>
3276 <param name="state" type="MachineState" dir="in"/>
3277 </method>
3278
3279 <method name="getIPCId">
3280 <param name="id" type="wstring" dir="return"/>
3281 </method>
3282
3283 <method name="runUSBDeviceFilters">
3284 <desc>
3285 Asks the server to run USB devices filters of the associated
3286 machine against the given USB device and tell if there is
3287 a match.
3288 <note>
3289 Intended to be used only for remote USB devices. Local
3290 ones don't require to call this method (this is done
3291 implicitly by the Host and USBProxyService).
3292 </note>
3293 </desc>
3294 <param name="device" type="IUSBDevice" dir="in"/>
3295 <param name="matched" type="boolean" dir="out"/>
3296 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3297 </method>
3298
3299 <method name="captureUSBDevice">
3300 <desc>
3301 Requests a capture of the given host USB device.
3302 When the request is completed, the VM process will
3303 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3304 notification.
3305 </desc>
3306 <param name="id" type="uuid" dir="in"/>
3307 </method>
3308
3309 <method name="detachUSBDevice">
3310 <desc>
3311 Notification that a VM is going to detach (done = false) or has
3312 already detached (done = true) the given USB device.
3313 When the done = true request is completed, the VM process will
3314 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3315 notification.
3316 <note>
3317 In the done = true case, the server must run its own filters
3318 and filters of all VMs but this one on the detached device
3319 as if it were just attached to the host computer.
3320 </note>
3321 </desc>
3322 <param name="id" type="uuid" dir="in"/>
3323 <param name="done" type="boolean" dir="in"/>
3324 </method>
3325
3326 <method name="autoCaptureUSBDevices">
3327 <desc>
3328 Requests a capture all matching USB devices attached to the host.
3329 When the request is completed, the VM process will
3330 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3331 notification per every captured device.
3332 </desc>
3333 </method>
3334
3335 <method name="detachAllUSBDevices">
3336 <desc>
3337 Notification that a VM that is being powered down. The done
3338 parameter indicates whether which stage of the power down
3339 we're at. When done = false the VM is announcing its
3340 intentions, while when done = true the VM is reporting
3341 what it has done.
3342 <note>
3343 In the done = true case, the server must run its own filters
3344 and filters of all VMs but this one on all detach devices as
3345 if they were just attached to the host computer.
3346 </note>
3347 </desc>
3348 <param name="done" type="boolean" dir="in"/>
3349 </method>
3350
3351 <method name="onSessionEnd">
3352 <desc>
3353 Triggered by the given session object when the session is about
3354 to close normally.
3355 </desc>
3356 <param name="session" type="ISession" dir="in">
3357 <desc>Session that is being closed</desc>
3358 </param>
3359 <param name="progress" type="IProgress" dir="return">
3360 <desc>
3361 Used to wait until the corresponding machine is actually
3362 dissociated from the given session on the server.
3363 Returned only when this session is a direct one.
3364 </desc>
3365 </param>
3366 </method>
3367
3368 <method name="beginSavingState">
3369 <desc>
3370 Called by the VM process to inform the server it wants to
3371 save the current state and stop the VM execution.
3372 </desc>
3373 <param name="progress" type="IProgress" dir="in">
3374 <desc>
3375 Progress object created by the VM process to wait until
3376 the state is saved.
3377 </desc>
3378 </param>
3379 <param name="stateFilePath" type="wstring" dir="out">
3380 <desc>
3381 File path the VM process must save the execution state to.
3382 </desc>
3383 </param>
3384 </method>
3385
3386 <method name="endSavingState">
3387 <desc>
3388 Called by the VM process to inform the server that saving
3389 the state previously requested by #beginSavingState is either
3390 successfully finished or there was a failure.
3391
3392 <result name="VBOX_E_FILE_ERROR">
3393 Settings file not accessible.
3394 </result>
3395 <result name="VBOX_E_XML_ERROR">
3396 Could not parse the settings file.
3397 </result>
3398
3399 </desc>
3400
3401 <param name="success" type="boolean" dir="in">
3402 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3403 otherwise.
3404 </desc>
3405 </param>
3406 </method>
3407
3408 <method name="adoptSavedState">
3409 <desc>
3410 Gets called by IConsole::adoptSavedState.
3411 <result name="VBOX_E_FILE_ERROR">
3412 Invalid saved state file path.
3413 </result>
3414 </desc>
3415 <param name="savedStateFile" type="wstring" dir="in">
3416 <desc>Path to the saved state file to adopt.</desc>
3417 </param>
3418 </method>
3419
3420 <method name="beginTakingSnapshot">
3421 <desc>
3422 Called by the VM process to inform the server it wants to
3423 take a snapshot.
3424
3425 <result name="VBOX_E_FILE_ERROR">
3426 Settings file not accessible.
3427 </result>
3428 <result name="VBOX_E_XML_ERROR">
3429 Could not parse the settings file.
3430 </result>
3431 </desc>
3432 <param name="initiator" type="IConsole" dir="in">
3433 <desc>The console object that initiated this call.</desc>
3434 </param>
3435 <param name="name" type="wstring" dir="in">
3436 <desc>Snapshot name.</desc>
3437 </param>
3438 <param name="description" type="wstring" dir="in">
3439 <desc>Snapshot description.</desc>
3440 </param>
3441 <param name="progress" type="IProgress" dir="in">
3442 <desc>
3443 Progress object created by the VM process to wait until
3444 the state is saved (only for online snapshots).
3445 </desc>
3446 </param>
3447 <param name="stateFilePath" type="wstring" dir="out">
3448 <desc>
3449 File path the VM process must save the execution state to.
3450 </desc>
3451 </param>
3452 <param name="serverProgress" type="IProgress" dir="out">
3453 <desc>
3454 Progress object created by the server process to wait until
3455 the snapshot is taken (VDI diff creation, etc.).
3456 </desc>
3457 </param>
3458 </method>
3459
3460 <method name="endTakingSnapshot">
3461 <desc>
3462 Called by the VM process to inform the server that the snapshot
3463 previously requested by #beginTakingSnapshot is either
3464 successfully taken or there was a failure.
3465 </desc>
3466
3467 <param name="success" type="boolean" dir="in">
3468 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3469 </param>
3470 </method>
3471
3472 <method name="discardSnapshot">
3473 <desc>
3474 Gets called by IConsole::discardSnapshot.
3475 <result name="VBOX_E_INVALID_OBJECT_STATE">
3476 Snapshot has more than one child snapshot.
3477 </result>
3478 </desc>
3479 <param name="initiator" type="IConsole" dir="in">
3480 <desc>The console object that initiated this call.</desc>
3481 </param>
3482 <param name="id" type="uuid" dir="in">
3483 <desc>UUID of the snapshot to discard.</desc>
3484 </param>
3485 <param name="machineState" type="MachineState" dir="out">
3486 <desc>New machine state after this operation is started.</desc>
3487 </param>
3488 <param name="progress" type="IProgress" dir="return">
3489 <desc>Progress object to track the operation completion.</desc>
3490 </param>
3491 </method>
3492
3493 <method name="discardCurrentState">
3494 <desc>
3495 Gets called by IConsole::discardCurrentState.
3496 <result name="VBOX_E_INVALID_OBJECT_STATE">
3497 Virtual machine does not have any snapshot.
3498 </result>
3499 </desc>
3500 <param name="initiator" type="IConsole" dir="in">
3501 <desc>The console object that initiated this call.</desc>
3502 </param>
3503 <param name="machineState" type="MachineState" dir="out">
3504 <desc>New machine state after this operation is started.</desc>
3505 </param>
3506 <param name="progress" type="IProgress" dir="return">
3507 <desc>Progress object to track the operation completion.</desc>
3508 </param>
3509 </method>
3510
3511 <method name="discardCurrentSnapshotAndState">
3512 <desc>
3513 Gets called by IConsole::discardCurrentSnapshotAndState.
3514 <result name="VBOX_E_INVALID_OBJECT_STATE">
3515 Virtual machine does not have any snapshot.
3516 </result>
3517 </desc>
3518 <param name="initiator" type="IConsole" dir="in">
3519 <desc>The console object that initiated this call.</desc>
3520 </param>
3521 <param name="machineState" type="MachineState" dir="out">
3522 <desc>New machine state after this operation is started.</desc>
3523 </param>
3524 <param name="progress" type="IProgress" dir="return">
3525 <desc>Progress object to track the operation completion.</desc>
3526 </param>
3527 </method>
3528
3529 <method name="pullGuestProperties">
3530 <desc>
3531 Get the list of the guest properties matching a set of patterns along
3532 with their values, time stamps and flags and give responsibility for
3533 managing properties to the console.
3534 </desc>
3535 <param name="name" type="wstring" dir="out" safearray="yes">
3536 <desc>
3537 The names of the properties returned.
3538 </desc>
3539 </param>
3540 <param name="value" type="wstring" dir="out" safearray="yes">
3541 <desc>
3542 The values of the properties returned. The array entries match the
3543 corresponding entries in the @a name array.
3544 </desc>
3545 </param>
3546 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3547 <desc>
3548 The time stamps of the properties returned. The array entries match
3549 the corresponding entries in the @a name array.
3550 </desc>
3551 </param>
3552 <param name="flags" type="wstring" dir="out" safearray="yes">
3553 <desc>
3554 The flags of the properties returned. The array entries match the
3555 corresponding entries in the @a name array.
3556 </desc>
3557 </param>
3558 </method>
3559
3560 <method name="pushGuestProperties">
3561 <desc>
3562 Set the list of the guest properties matching a set of patterns along
3563 with their values, time stamps and flags and return responsibility for
3564 managing properties to IMachine.
3565 </desc>
3566 <param name="name" type="wstring" dir="in" safearray="yes">
3567 <desc>
3568 The names of the properties.
3569 </desc>
3570 </param>
3571 <param name="value" type="wstring" dir="in" safearray="yes">
3572 <desc>
3573 The values of the properties. The array entries match the
3574 corresponding entries in the @a name array.
3575 </desc>
3576 </param>
3577 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3578 <desc>
3579 The time stamps of the properties. The array entries match
3580 the corresponding entries in the @a name array.
3581 </desc>
3582 </param>
3583 <param name="flags" type="wstring" dir="in" safearray="yes">
3584 <desc>
3585 The flags of the properties. The array entries match the
3586 corresponding entries in the @a name array.
3587 </desc>
3588 </param>
3589 </method>
3590 <method name="pushGuestProperty">
3591 <desc>
3592 Update a single guest property in IMachine.
3593 </desc>
3594 <param name="name" type="wstring" dir="in">
3595 <desc>
3596 The name of the property to be updated.
3597 </desc>
3598 </param>
3599 <param name="value" type="wstring" dir="in">
3600 <desc>
3601 The value of the property.
3602 </desc>
3603 </param>
3604 <param name="timestamp" type="unsigned long long" dir="in">
3605 <desc>
3606 The timestamp of the property.
3607 </desc>
3608 </param>
3609 <param name="flags" type="wstring" dir="in">
3610 <desc>
3611 The flags of the property.
3612 </desc>
3613 </param>
3614 </method>
3615 </interface>
3616
3617 <interface
3618 name="IBIOSSettings" extends="$unknown"
3619 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3620 wsmap="managed"
3621 >
3622 <desc>
3623 The IBIOSSettings interface represents BIOS settings of the virtual
3624 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3625 </desc>
3626 <attribute name="logoFadeIn" type="boolean">
3627 <desc>Fade in flag for BIOS logo animation.</desc>
3628 </attribute>
3629
3630 <attribute name="logoFadeOut" type="boolean">
3631 <desc>Fade out flag for BIOS logo animation.</desc>
3632 </attribute>
3633
3634 <attribute name="logoDisplayTime" type="unsigned long">
3635 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3636 </attribute>
3637
3638 <attribute name="logoImagePath" type="wstring">
3639 <desc>Local file system path for external BIOS image.</desc>
3640 </attribute>
3641
3642 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3643 <desc>Mode of the BIOS boot device menu.</desc>
3644 </attribute>
3645
3646 <attribute name="ACPIEnabled" type="boolean">
3647 <desc>ACPI support flag.</desc>
3648 </attribute>
3649
3650 <attribute name="IOAPICEnabled" type="boolean">
3651 <desc>
3652 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3653 and support IRQs above 15.
3654 </desc>
3655 </attribute>
3656
3657 <attribute name="timeOffset" type="long long">
3658 <desc>
3659 Offset in milliseconds from the host system time. This allows for
3660 guests running with a different system date/time than the host.
3661 It is equivalent to setting the system date/time in the BIOS except
3662 it is not an absolute value but a relative one. Guest Additions
3663 time synchronization honors this offset.
3664 </desc>
3665 </attribute>
3666
3667 <attribute name="PXEDebugEnabled" type="boolean">
3668 <desc>
3669 PXE debug logging flag. If set, VirtualBox will write extensive
3670 PXE trace information to the release log.
3671 </desc>
3672 </attribute>
3673
3674 <attribute name="IDEControllerType" type="IDEControllerType">
3675 <desc>
3676 Type of the virtual IDE controller. Depending on this value,
3677 VirtualBox will provide different virtual IDE hardware
3678 devices to the guest.
3679 </desc>
3680 </attribute>
3681
3682 </interface>
3683
3684 <interface
3685 name="IMachine" extends="$unknown"
3686 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3687 wsmap="managed"
3688 >
3689 <desc>
3690 The IMachine interface represents a virtual machine, or guest, created
3691 in VirtualBox.
3692
3693 This interface is used in two contexts. First of all, a collection of
3694 objects implementing this interface is stored in the
3695 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3696 machines that are currently registered with this VirtualBox
3697 installation. Also, once a session has been opened for the given virtual
3698 machine (e.g. the virtual machine is running), the machine object
3699 associated with the open session can be queried from the session object;
3700 see <link to="ISession"/> for details.
3701
3702 The main role of this interface is to expose the settings of the virtual
3703 machine and provide methods to change various aspects of the virtual
3704 machine's configuration. For machine objects stored in the
3705 <link to="IVirtualBox::machines2"/> collection, all attributes are
3706 read-only unless explicitly stated otherwise in individual attribute
3707 and method descriptions. In order to change a machine setting, a session
3708 for this machine must be opened using one of
3709 <link to="IVirtualBox::openSession"/>,
3710 <link to="IVirtualBox::openRemoteSession"/> or
3711 <link to="IVirtualBox::openExistingSession"/> methods. After the
3712 session has been successfully opened, a mutable machine object needs to
3713 be queried from the session object and then the desired settings changes
3714 can be applied to the returned object using IMachine attributes and
3715 methods. See the ISession interface description for more information
3716 about sessions.
3717
3718 Note that the IMachine interface does not provide methods to control
3719 virtual machine execution (such as start the machine, or power it
3720 down) -- these methods are grouped in a separate IConsole
3721 interface. Refer to the IConsole interface description to get more
3722 information about this topic.
3723
3724 <see>ISession, IConsole</see>
3725 </desc>
3726
3727 <attribute name="parent" type="IVirtualBox" readonly="yes">
3728 <desc>Associated parent object.</desc>
3729 </attribute>
3730
3731 <attribute name="accessible" type="boolean" readonly="yes">
3732 <desc>
3733 Whether this virtual machine is currently accessible or not.
3734
3735 The machine is considered to be inaccessible when:
3736 <ul>
3737 <li>It is a registered virtual machine, and
3738 </li>
3739 <li>Its settings file is inaccessible (for example, it is
3740 located on a network share that is not accessible during
3741 VirtualBox startup, or becomes inaccessible later, or if
3742 the settings file can be read but is invalid).
3743 </li>
3744 </ul>
3745
3746 Otherwise, the value of this property is always <tt>true</tt>.
3747
3748 Every time this property is read, the accessibility state of
3749 this machine is re-evaluated. If the returned value is |false|,
3750 the <link to="#accessError"/> property may be used to get the
3751 detailed error information describing the reason of
3752 inaccessibility.
3753
3754 When the machine is inaccessible, only the following properties
3755 can be used on it:
3756 <ul>
3757 <li><link to="#parent"/></li>
3758 <li><link to="#id"/></li>
3759 <li><link to="#settingsFilePath"/></li>
3760 <li><link to="#accessible"/></li>
3761 <li><link to="#accessError"/></li>
3762 </ul>
3763
3764 An attempt to access any other property or method will return
3765 an error.
3766
3767 The only possible action you can perform on an inaccessible
3768 machine is to unregister it using the
3769 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3770 for the accessibility state once more by querying this
3771 property).
3772
3773 <note>
3774 In the current implementation, once this property returns
3775 <tt>true</tt>, the machine will never become inaccessible
3776 later, even if its settings file cannot be successfully
3777 read/written any more (at least, until the VirtualBox
3778 server is restarted). This limitation may be removed in
3779 future releases.
3780 </note>
3781 </desc>
3782 </attribute>
3783
3784 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3785 <desc>
3786 Error information describing the reason of machine
3787 inaccessibility.
3788
3789 Reading this property is only valid after the last call to
3790 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3791 machine is currently unaccessible). Otherwise, a null
3792 IVirtualBoxErrorInfo object will be returned.
3793 </desc>
3794 </attribute>
3795
3796 <attribute name="name" type="wstring">
3797 <desc>
3798 Name of the virtual machine.
3799
3800 Besides being used for human-readable identification purposes
3801 everywhere in VirtualBox, the virtual machine name is also used
3802 as a name of the machine's settings file and as a name of the
3803 subdirectory this settings file resides in. Thus, every time you
3804 change the value of this property, the settings file will be
3805 renamed once you call <link to="#saveSettings"/> to confirm the
3806 change. The containing subdirectory will be also renamed, but
3807 only if it has exactly the same name as the settings file
3808 itself prior to changing this property (for backward compatibility
3809 with previous API releases). The above implies the following
3810 limitations:
3811 <ul>
3812 <li>The machine name cannot be empty.</li>
3813 <li>The machine name can contain only characters that are valid
3814 file name characters according to the rules of the file
3815 system used to store VirtualBox configuration.</li>
3816 <li>You cannot have two or more machines with the same name
3817 if they use the same subdirectory for storing the machine
3818 settings files.</li>
3819 <li>You cannot change the name of the machine if it is running,
3820 or if any file in the directory containing the settings file
3821 is being used by another running machine or by any other
3822 process in the host operating system at a time when
3823 <link to="#saveSettings"/> is called.
3824 </li>
3825 </ul>
3826 If any of the above limitations are hit, <link to="#saveSettings"/>
3827 will return an appropriate error message explaining the exact
3828 reason and the changes you made to this machine will not be
3829 saved.
3830 <note>
3831 For "legacy" machines created using the
3832 <link to="IVirtualBox::createLegacyMachine"/> call,
3833 the above naming limitations do not apply because the
3834 machine name does not affect the settings file name.
3835 The settings file name remains the same as it was specified
3836 during machine creation and never changes.
3837 </note>
3838 </desc>
3839 </attribute>
3840
3841 <attribute name="description" type="wstring">
3842 <desc>
3843 Description of the virtual machine.
3844
3845 The description attribute can contain any text and is
3846 typically used to describe the hardware and software
3847 configuration of the virtual machine in detail (i.e. network
3848 settings, versions of the installed software and so on).
3849 </desc>
3850 </attribute>
3851
3852 <attribute name="id" type="uuid" readonly="yes">
3853 <desc>UUID of the virtual machine.</desc>
3854 </attribute>
3855
3856 <attribute name="OSTypeId" type="wstring">
3857 <desc>
3858 User-defined identifier of the Guest OS type.
3859 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3860 an IGuestOSType object representing details about the given
3861 Guest OS type.
3862 <note>
3863 This value may differ from the value returned by
3864 <link to="IGuest::OSTypeId"/> if Guest Additions are
3865 installed to the guest OS.
3866 </note>
3867 </desc>
3868 </attribute>
3869
3870 <attribute name="HardwareVersion" type="wstring">
3871 <desc>Hardware version identifier. Internal use only for now.</desc>
3872 </attribute>
3873
3874 <attribute name="CPUCount" type="unsigned long">
3875 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3876 </attribute>
3877
3878 <attribute name="memorySize" type="unsigned long">
3879 <desc>System memory size in megabytes.</desc>
3880 </attribute>
3881
3882 <attribute name="memoryBalloonSize" type="unsigned long">
3883 <desc>Initial memory balloon size in megabytes.</desc>
3884 </attribute>
3885
3886 <attribute name="statisticsUpdateInterval" type="unsigned long">
3887 <desc>Initial interval to update guest statistics in seconds.</desc>
3888 </attribute>
3889
3890 <attribute name="VRAMSize" type="unsigned long">
3891 <desc>Video memory size in megabytes.</desc>
3892 </attribute>
3893
3894 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3895 <desc>
3896 This setting determines whether VirtualBox allows guests to make use
3897 of the 3D graphics support available on the host. Currently limited
3898 to OpenGL only. </desc>
3899 </attribute>
3900
3901 <attribute name="monitorCount" type="unsigned long">
3902 <desc>
3903 Number of virtual monitors.
3904 <note>
3905 Only effective on Windows XP and later guests with
3906 Guest Additions installed.
3907 </note>
3908 </desc>
3909 </attribute>
3910
3911 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3912 <desc>Object containing all BIOS settings.</desc>
3913 </attribute>
3914
3915 <attribute name="HWVirtExEnabled" type="TSBool">
3916 <desc>
3917 This setting determines whether VirtualBox will try to make use of
3918 the host CPU's hardware virtualization extensions such as Intel VT-x
3919 and AMD-V. Note that in case such extensions are not available,
3920 they will not be used.
3921 </desc>
3922 </attribute>
3923
3924 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3925 <desc>
3926 This setting determines whether VirtualBox will try to make use of
3927 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3928 such extensions are not available, they will not be used.
3929 </desc>
3930 </attribute>
3931
3932 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3933 <desc>
3934 This setting determines whether VirtualBox will try to make use of
3935 the VPID extension of Intel VT-x. Note that in case such extensions are
3936 not available, they will not be used.
3937 </desc>
3938 </attribute>
3939
3940 <attribute name="PAEEnabled" type="boolean" default="false">
3941 <desc>
3942 This setting determines whether VirtualBox will expose the Physical Address
3943 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3944 is not available, it will not be reported.
3945 </desc>
3946 </attribute>
3947
3948 <attribute name="snapshotFolder" type="wstring">
3949 <desc>
3950 Full path to the directory used to store snapshot data
3951 (differencing hard disks and saved state files) of this machine.
3952
3953 The initial value of this property is
3954 <tt>&lt;</tt><link to="#settingsFilePath">
3955 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3956 <link to="#id">machine_uuid</link>
3957 <tt>&gt;</tt>.
3958
3959 Currently, it is an error to try to change this property on
3960 a machine that has snapshots (because this would require to
3961 move possibly large files to a different location).
3962 A separate method will be available for this purpose later.
3963
3964 <note>
3965 Setting this property to <tt>null</tt> will restore the
3966 initial value.
3967 </note>
3968 <note>
3969 When setting this property, the specified path can be
3970 absolute (full path) or relative to the directory where the
3971 <link to="#settingsFilePath">machine settings file</link>
3972 is located. When reading this property, a full path is
3973 always returned.
3974 </note>
3975 <note>
3976 The specified path may not exist, it will be created
3977 when necessary.
3978 </note>
3979 </desc>
3980 </attribute>
3981
3982 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3983 <desc>VRDP server object.</desc>
3984 </attribute>
3985
3986 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3987 <desc>Array of hard disks attached to this machine.</desc>
3988 </attribute>
3989
3990 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3991 <desc>Associated DVD drive object.</desc>
3992 </attribute>
3993
3994 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3995 <desc>Associated floppy drive object.</desc>
3996 </attribute>
3997
3998 <attribute name="USBController" type="IUSBController" readonly="yes">
3999 <desc>
4000 Associated USB controller object.
4001
4002 <note>
4003 This method may set a @ref com_warnings "warning result code".
4004 </note>
4005 <note>
4006 If USB functionality is not available in the given edition of
4007 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4008 </note>
4009 </desc>
4010 </attribute>
4011
4012 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4013 <desc>Associated audio adapter, always present.</desc>
4014 </attribute>
4015
4016 <attribute name="SATAController" type="ISATAController" readonly="yes">
4017 <desc>
4018 Associated SATA controller object.
4019 </desc>
4020 </attribute>
4021
4022 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4023 <desc>
4024 Full name of the file containing machine settings data.
4025 </desc>
4026 </attribute>
4027
4028 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4029 <desc>
4030 Current version of the format of the settings file of this machine
4031 (<link to="#settingsFilePath"/>).
4032
4033 The version string has the following format:
4034 <pre>
4035 x.y-platform
4036 </pre>
4037 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4038 versions, and <tt>platform</tt> is the platform identifier.
4039
4040 The current version usually matches the value of the
4041 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4042 settings file was created by an older version of VirtualBox and there
4043 was a change of the settings file format since then.
4044
4045 Note that VirtualBox automatically converts settings files from older
4046 versions to the most recent version when reading them (usually at
4047 VirtualBox startup) but it doesn't save the changes back until
4048 you call a method that implicitly saves settings (such as
4049 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4050 explicitly. Therefore, if the value of this attribute differs from the
4051 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4052 means that the settings file was converted but the result of the
4053 conversion is not yet saved to disk.
4054
4055 The above feature may be used by interactive front-ends to inform users
4056 about the settings file format change and offer them to explicitly save
4057 all converted settings files (the global and VM-specific ones),
4058 optionally create backup copies of the old settings files before saving,
4059 etc.
4060
4061 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4062 </desc>
4063 </attribute>
4064
4065 <attribute name="settingsModified" type="boolean" readonly="yes">
4066 <desc>
4067 Whether the settings of this machine have been modified
4068 (but neither yet saved nor discarded).
4069 <note>
4070 Reading this property is only valid on instances returned
4071 by <link to="ISession::machine"/> and on new machines
4072 created by <link to="IVirtualBox::createMachine"/> or opened
4073 by <link to="IVirtualBox::openMachine"/> but not
4074 yet registered, or on unregistered machines after calling
4075 <link to="IVirtualBox::unregisterMachine"/>. For all other
4076 cases, the settings can never be modified.
4077 </note>
4078 <note>
4079 For newly created unregistered machines, the value of this
4080 property is always TRUE until <link to="#saveSettings"/>
4081 is called (no matter if any machine settings have been
4082 changed after the creation or not). For opened machines
4083 the value is set to FALSE (and then follows to normal rules).
4084 </note>
4085 </desc>
4086 </attribute>
4087
4088 <attribute name="sessionState" type="SessionState" readonly="yes">
4089 <desc>Current session state for this machine.</desc>
4090 </attribute>
4091
4092 <attribute name="sessionType" type="wstring" readonly="yes">
4093 <desc>
4094 Type of the session. If <link to="#sessionState"/> is
4095 SessionSpawning or SessionOpen, this attribute contains the
4096 same value as passed to the
4097 <link to="IVirtualBox::openRemoteSession"/> method in the
4098 @a type parameter. If the session was opened directly using
4099 <link to="IVirtualBox::openSession"/>, or if
4100 <link to="#sessionState"/> is SessionClosed, the value of this
4101 attribute is @c null.
4102 </desc>
4103 </attribute>
4104
4105 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4106 <desc>
4107 Identifier of the session process. This attribute contains the
4108 platform-dependent identifier of the process that has opened a
4109 direct session for this machine using the
4110 <link to="IVirtualBox::openSession"/> call. The returned value
4111 is only valid if <link to="#sessionState"/> is SessionOpen or
4112 SessionClosing (i.e. a session is currently open or being
4113 closed) by the time this property is read.
4114 </desc>
4115 </attribute>
4116
4117 <attribute name="state" type="MachineState" readonly="yes">
4118 <desc>Current execution state of this machine.</desc>
4119 </attribute>
4120
4121 <attribute name="lastStateChange" type="long long" readonly="yes">
4122 <desc>
4123 Time stamp of the last execution state change,
4124 in milliseconds since 1970-01-01 UTC.
4125 </desc>
4126 </attribute>
4127
4128 <attribute name="stateFilePath" type="wstring" readonly="yes">
4129 <desc>
4130 Full path to the file that stores the execution state of
4131 the machine when it is in the <link to="MachineState_Saved"/> state.
4132 <note>
4133 When the machine is not in the Saved state, this attribute
4134 <tt>null</tt>.
4135 </note>
4136 </desc>
4137 </attribute>
4138
4139 <attribute name="logFolder" type="wstring" readonly="yes">
4140 <desc>
4141 Full path to the folder that stores a set of rotated log files
4142 recorded during machine execution. The most recent log file is
4143 named <tt>VBox.log</tt>, the previous log file is
4144 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4145 in the current version).
4146 </desc>
4147 </attribute>
4148
4149 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4150 <desc>
4151 Current snapshot of this machine.
4152 <note>
4153 A <tt>null</tt> object is returned if the machine doesn't
4154 have snapshots.
4155 </note>
4156 <see><link to="ISnapshot"/></see>
4157 </desc>
4158 </attribute>
4159
4160 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4161 <desc>
4162 Number of snapshots taken on this machine. Zero means the
4163 machine doesn't have any snapshots.
4164 </desc>
4165 </attribute>
4166
4167 <attribute name="currentStateModified" type="boolean" readonly="yes">
4168 <desc>
4169 Returns <tt>true</tt> if the current state of the machine is not
4170 identical to the state stored in the current snapshot.
4171
4172 The current state is identical to the current snapshot right
4173 after one of the following calls are made:
4174 <ul>
4175 <li><link to="IConsole::discardCurrentState"/> or
4176 <link to="IConsole::discardCurrentSnapshotAndState"/>
4177 </li>
4178 <li><link to="IConsole::takeSnapshot"/> (issued on a
4179 powered off or saved machine, for which
4180 <link to="#settingsModified"/> returns <tt>false</tt>)
4181 </li>
4182 <li><link to="IMachine::setCurrentSnapshot"/>
4183 </li>
4184 </ul>
4185
4186 The current state remains identical until one of the following
4187 happens:
4188 <ul>
4189 <li>settings of the machine are changed</li>
4190 <li>the saved state is discarded</li>
4191 <li>the current snapshot is discarded</li>
4192 <li>an attempt to execute the machine is made</li>
4193 </ul>
4194
4195 <note>
4196 For machines that don't have snapshots, this property is
4197 always <tt>false</tt>.
4198 </note>
4199 </desc>
4200 </attribute>
4201
4202 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4203 <desc>
4204 Collection of shared folders for this machine (permanent shared
4205 folders). These folders are shared automatically at machine startup
4206 and available only to the guest OS installed within this machine.
4207
4208 New shared folders are added to the collection using
4209 <link to="#createSharedFolder"/>. Existing shared folders can be
4210 removed using <link to="#removeSharedFolder"/>.
4211 </desc>
4212 </attribute>
4213
4214 <attribute name="clipboardMode" type="ClipboardMode">
4215 <desc>
4216 Synchronization mode between the host OS clipboard
4217 and the guest OS clipboard.
4218 </desc>
4219 </attribute>
4220
4221 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4222 <desc>
4223 A comma-separated list of simple glob patterns. Changes to guest
4224 properties whose name matches one of the patterns will generate an
4225 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4226 </desc>
4227 </attribute>
4228
4229 <method name="setBootOrder">
4230 <desc>
4231 Puts the given device to the specified position in
4232 the boot order.
4233
4234 To indicate that no device is associated with the given position,
4235 <link to="DeviceType_Null"/> should be used.
4236
4237 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4238
4239 <result name="E_INVALIDARG">
4240 Boot @a position out of range.
4241 </result>
4242 <result name="E_NOTIMPL">
4243 Booting from USB @a device currently not supported.
4244 </result>
4245
4246 </desc>
4247 <param name="position" type="unsigned long" dir="in">
4248 <desc>
4249 Position in the boot order (<tt>1</tt> to the total number of
4250 devices the machine can boot from, as returned by
4251 <link to="ISystemProperties::maxBootPosition"/>).
4252 </desc>
4253 </param>
4254 <param name="device" type="DeviceType" dir="in">
4255 <desc>
4256 The type of the device used to boot at the given position.
4257 </desc>
4258 </param>
4259 </method>
4260
4261 <method name="getBootOrder" const="yes">
4262 <desc>
4263 Returns the device type that occupies the specified
4264 position in the boot order.
4265
4266 @todo [remove?]
4267 If the machine can have more than one device of the returned type
4268 (such as hard disks), then a separate method should be used to
4269 retrieve the individual device that occupies the given position.
4270
4271 If here are no devices at the given position, then
4272 <link to="DeviceType_Null"/> is returned.
4273
4274 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4275
4276 <result name="E_INVALIDARG">
4277 Boot @a position out of range.
4278 </result>
4279
4280 </desc>
4281 <param name="position" type="unsigned long" dir="in">
4282 <desc>
4283 Position in the boot order (<tt>1</tt> to the total number of
4284 devices the machine can boot from, as returned by
4285 <link to="ISystemProperties::maxBootPosition"/>).
4286 </desc>
4287 </param>
4288 <param name="device" type="DeviceType" dir="return">
4289 <desc>
4290 Device at the given position.
4291 </desc>
4292 </param>
4293 </method>
4294
4295 <method name="attachHardDisk">
4296 <desc>
4297 Attaches a virtual hard disk identified by the given UUID @a id
4298 to a device slot of the specified bus.
4299
4300 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4301 specify the primary or secondary IDE controller, respectively. The
4302 SATA bus supports 30 channels, so this parameter can be a number
4303 ranging from @c 0 to @c 29.
4304
4305 For the primary controller of the IDE bus, the @a device number can be
4306 either @c 0 or @c 1, to specify the master or the slave device,
4307 respectively. For the secondary IDE controller, the device number is
4308 always @c 1 because the master device is reserved for the CD-ROM drive.
4309
4310 For the SATA bus, the @a device parameter is currently unused and
4311 must be @c 0.
4312
4313 The specified device slot must not have another disk attached to it, or
4314 this method will fail.
4315
4316 See <link to="IHardDisk"/> for more detailed information about
4317 attaching hard disks.
4318
4319 <note>
4320 You cannot attach a hard disk to a running machine. Also, you cannot
4321 attach a hard disk to a newly created machine until this machine's
4322 settings are saved to disk using <link to="#saveSettings"/>.
4323 </note>
4324 <note>
4325 If the hard disk is being attached indirectly, a new differencing hard
4326 disk will implicitly be created for it and attached instead. If the
4327 changes made to the machine settings (including this indirect
4328 attachment) are later cancelled using <link to="#discardSettings"/>,
4329 this implicitly created differencing hard disk will implicitly
4330 be deleted.
4331 </note>
4332
4333 <result name="E_INVALIDARG">
4334 SATA device, SATA channel, IDE channel or IDE slot out of range.
4335 </result>
4336 <result name="VBOX_E_INVALID_OBJECT_STATE">
4337 Attempt to attach hard disk to an unregistered virtual machine.
4338 </result>
4339 <result name="VBOX_E_INVALID_VM_STATE">
4340 Invalid machine state.
4341 </result>
4342 <result name="VBOX_E_OBJECT_IN_USE">
4343 Hard disk already attached to this or another virtual machine.
4344 </result>
4345
4346 </desc>
4347 <param name="id" type="uuid" dir="in">
4348 <desc>UUID of the hard disk to attach.</desc>
4349 </param>
4350 <param name="bus" type="StorageBus" dir="in">
4351 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4352 </param>
4353 <param name="channel" type="long" dir="in">
4354 <desc>Channel to attach the hard disk to.</desc>
4355 </param>
4356 <param name="device" type="long" dir="in">
4357 <desc>
4358 Device slot in the given channel to attach the hard disk to.
4359 </desc>
4360 </param>
4361 </method>
4362
4363 <method name="getHardDisk" const="yes">
4364 <desc>
4365 Returns the virtual hard disk attached to a device slot of the specified
4366 bus.
4367
4368 Note that if the hard disk was indirectly attached by
4369 <link to="#attachHardDisk"/> to the given device slot then this
4370 method will return not the same object as passed to the
4371 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4372 more detailed information about attaching hard disks.
4373
4374 <result name="VBOX_E_OBJECT_NOT_FOUND">
4375 No hard disk attached to given slot/bus.
4376 </result>
4377
4378 </desc>
4379 <param name="bus" type="StorageBus" dir="in">
4380 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4381 </param>
4382 <param name="channel" type="long" dir="in">
4383 <desc>Channel to query.</desc>
4384 </param>
4385 <param name="device" type="long" dir="in">
4386 <desc>Device slot in the given channel to query.</desc>
4387 </param>
4388 <param name="hardDisk" type="IHardDisk" dir="return">
4389 <desc>Attached hard disk object.</desc>
4390 </param>
4391 </method>
4392
4393 <method name="detachHardDisk">
4394 <desc>
4395 Detaches the virtual hard disk attached to a device slot of the
4396 specified bus.
4397
4398 Detaching the hard disk from the virtual machine is deferred. This means
4399 that the hard disk remains associated with the machine when this method
4400 returns and gets actually de-associated only after a successful
4401 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4402 for more detailed information about attaching hard disks.
4403
4404 <note>
4405 You cannot detach the hard disk from a running machine.
4406 </note>
4407 <note>
4408 Detaching differencing hard disks implicitly created by <link
4409 to="#attachHardDisk"/> for the indirect attachment using this
4410 method will <b>not</b> implicitly delete them. The
4411 <link to="IHardDisk::deleteStorage"/> operation should be
4412 explicitly performed by the caller after the hard disk is successfully
4413 detached and the settings are saved with
4414 <link to="#saveSettings"/>, if it is the desired action.
4415 </note>
4416
4417 <result name="VBOX_E_INVALID_VM_STATE">
4418 Attempt to detach hard disk from a running virtual machine.
4419 </result>
4420 <result name="VBOX_E_OBJECT_NOT_FOUND">
4421 No hard disk attached to given slot/bus.
4422 </result>
4423 <result name="VBOX_E_NOT_SUPPORTED">
4424 Hard disk format does not support storage deletion.
4425 </result>
4426
4427 </desc>
4428 <param name="bus" type="StorageBus" dir="in">
4429 <desc>Bus to detach the hard disk from.</desc>
4430 </param>
4431 <param name="channel" type="long" dir="in">
4432 <desc>Channel number to detach the hard disk from.</desc>
4433 </param>
4434 <param name="device" type="long" dir="in">
4435 <desc>Device slot number to detach the hard disk from.</desc>
4436 </param>
4437 </method>
4438
4439 <method name="getNetworkAdapter" const="yes">
4440 <desc>
4441 Returns the network adapter associated with the given slot.
4442 Slots are numbered sequentially, starting with zero. The total
4443 number of adapters per machine is defined by the
4444 <link to="ISystemProperties::networkAdapterCount"/> property,
4445 so the maximum slot number is one less than that property's value.
4446
4447 <result name="E_INVALIDARG">
4448 Invalid @a slot number.
4449 </result>
4450
4451 </desc>
4452 <param name="slot" type="unsigned long" dir="in"/>
4453 <param name="adapter" type="INetworkAdapter" dir="return"/>
4454 </method>
4455
4456 <method name="getSerialPort" const="yes">
4457 <desc>
4458 Returns the serial port associated with the given slot.
4459 Slots are numbered sequentially, starting with zero. The total
4460 number of serial ports per machine is defined by the
4461 <link to="ISystemProperties::serialPortCount"/> property,
4462 so the maximum slot number is one less than that property's value.
4463
4464 <result name="E_INVALIDARG">
4465 Invalid @a slot number.
4466 </result>
4467
4468 </desc>
4469 <param name="slot" type="unsigned long" dir="in"/>
4470 <param name="port" type="ISerialPort" dir="return"/>
4471 </method>
4472
4473 <method name="getParallelPort" const="yes">
4474 <desc>
4475 Returns the parallel port associated with the given slot.
4476 Slots are numbered sequentially, starting with zero. The total
4477 number of parallel ports per machine is defined by the
4478 <link to="ISystemProperties::parallelPortCount"/> property,
4479 so the maximum slot number is one less than that property's value.
4480
4481 <result name="E_INVALIDARG">
4482 Invalid @a slot number.
4483 </result>
4484
4485 </desc>
4486 <param name="slot" type="unsigned long" dir="in"/>
4487 <param name="port" type="IParallelPort" dir="return"/>
4488 </method>
4489
4490 <method name="getNextExtraDataKey">
4491 <desc>
4492 Returns the machine-specific extra data key name following the
4493 supplied key.
4494
4495 An error is returned if the supplied @a key does not exist. @c NULL is
4496 returned in @a nextKey if the supplied key is the last key. When
4497 supplying @c NULL for the @a key, the first key item is returned in
4498 @a nextKey (if there is any). @a nextValue is an optional parameter and
4499 if supplied, the next key's value is returned in it.
4500
4501 <result name="VBOX_E_OBJECT_NOT_FOUND">
4502 Extra data @a key not found.
4503 </result>
4504
4505 </desc>
4506 <param name="key" type="wstring" dir="in">
4507 <desc>Name of the data key to follow.</desc>
4508 </param>
4509 <param name="nextKey" type="wstring" dir="out">
4510 <desc>Name of the next data key.</desc>
4511 </param>
4512 <param name="nextValue" type="wstring" dir="out">
4513 <desc>Value of the next data key.</desc>
4514 </param>
4515 </method>
4516
4517 <method name="getExtraData">
4518 <desc>
4519 Returns associated machine-specific extra data.
4520
4521 If the requested data @a key does not exist, this function will
4522 succeed and return @c NULL in the @a value argument.
4523
4524 <result name="VBOX_E_FILE_ERROR">
4525 Settings file not accessible.
4526 </result>
4527 <result name="VBOX_E_XML_ERROR">
4528 Could not parse the settings file.
4529 </result>
4530
4531 </desc>
4532 <param name="key" type="wstring" dir="in">
4533 <desc>Name of the data key to get.</desc>
4534 </param>
4535 <param name="value" type="wstring" dir="return">
4536 <desc>Value of the requested data key.</desc>
4537 </param>
4538 </method>
4539
4540 <method name="setExtraData">
4541 <desc>
4542 Sets associated machine-specific extra data.
4543
4544 If you pass @c NULL as a key @a value, the given @a key will be
4545 deleted.
4546
4547 <note>
4548 Before performing the actual data change, this method will ask all
4549 registered callbacks using the
4550 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4551 notification for a permission. If one of the callbacks refuses the
4552 new value, the change will not be performed.
4553 </note>
4554 <note>
4555 On success, the
4556 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4557 is called to inform all registered callbacks about a successful data
4558 change.
4559 </note>
4560 <note>
4561 This method can be called outside the machine session and therefore
4562 it's a caller's responsibility to handle possible race conditions
4563 when several clients change the same key at the same time.
4564 </note>
4565
4566 <result name="VBOX_E_FILE_ERROR">
4567 Settings file not accessible.
4568 </result>
4569 <result name="VBOX_E_XML_ERROR">
4570 Could not parse the settings file.
4571 </result>
4572
4573 </desc>
4574 <param name="key" type="wstring" dir="in">
4575 <desc>Name of the data key to set.</desc>
4576 </param>
4577 <param name="value" type="wstring" dir="in">
4578 <desc>Value to assign to the key.</desc>
4579 </param>
4580 </method>
4581
4582 <method name="saveSettings">
4583 <desc>
4584 Saves any changes to machine settings made since the session
4585 has been opened or a new machine has been created, or since the
4586 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4587 For registered machines, new settings become visible to all
4588 other VirtualBox clients after successful invocation of this
4589 method.
4590 <note>
4591 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4592 notification event after the configuration has been successfully
4593 saved (only for registered machines).
4594 </note>
4595 <note>
4596 Calling this method is only valid on instances returned
4597 by <link to="ISession::machine"/> and on new machines
4598 created by <link to="IVirtualBox::createMachine"/> but not
4599 yet registered, or on unregistered machines after calling
4600 <link to="IVirtualBox::unregisterMachine"/>.
4601 </note>
4602
4603 <result name="VBOX_E_FILE_ERROR">
4604 Settings file not accessible.
4605 </result>
4606 <result name="VBOX_E_XML_ERROR">
4607 Could not parse the settings file.
4608 </result>
4609 <result name="E_ACCESSDENIED">
4610 Modification request refused.
4611 </result>
4612
4613 </desc>
4614 </method>
4615
4616 <method name="saveSettingsWithBackup">
4617 <desc>
4618 Creates a backup copy of the machine settings file (<link
4619 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4620 <link to="#saveSettings"/>.
4621
4622 Note that the backup copy is created <b>only</b> if the settings file
4623 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4624 details). Otherwise, this call is fully equivalent to
4625 <link to="#saveSettings"/> and no backup copying is done.
4626
4627 The backup copy is created in the same directory where the original
4628 settings file is located. It is given the following file name:
4629 <pre>
4630 original.xml.x.y-platform.bak
4631 </pre>
4632 where <tt>original.xml</tt> is the original settings file name
4633 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4634 format of the settings file (before auto-conversion).
4635
4636 If the given backup file already exists, this method will try to add the
4637 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4638 0 to 9) and copy it again until it succeeds. If all suffixes are
4639 occupied, or if any other copy error occurs, this method will return a
4640 failure.
4641
4642 If the copy operation succeeds, the @a bakFileName return argument will
4643 receive a full path to the created backup file (for informational
4644 purposes). Note that this will happen even if the subsequent
4645 <link to="#saveSettings"/> call performed by this method after the
4646 copy operation, fails.
4647
4648 <note>
4649 The VirtualBox API never calls this method. It is intended purely for
4650 the purposes of creating backup copies of the settings files by
4651 front-ends before saving the results of the automatically performed
4652 settings conversion to disk.
4653 </note>
4654
4655 <see>settingsFileVersion</see>
4656
4657 <result name="VBOX_E_FILE_ERROR">
4658 Settings file not accessible.
4659 </result>
4660 <result name="VBOX_E_XML_ERROR">
4661 Could not parse the settings file.
4662 </result>
4663 <result name="VBOX_E_INVALID_VM_STATE">
4664 Virtual machine is not mutable.
4665 </result>
4666 <result name="E_ACCESSDENIED">
4667 Modification request refused.
4668 </result>
4669
4670 </desc>
4671 <param name="bakFileName" type="wstring" dir="return">
4672 <desc>Full path to the created backup copy.</desc>
4673 </param>
4674 </method>
4675
4676 <method name="discardSettings">
4677 <desc>
4678 Discards any changes to the machine settings made since the session
4679 has been opened or since the last call to <link to="#saveSettings"/>
4680 or <link to="#discardSettings"/>.
4681 <note>
4682 Calling this method is only valid on instances returned
4683 by <link to="ISession::machine"/> and on new machines
4684 created by <link to="IVirtualBox::createMachine"/> or
4685 opened by <link to="IVirtualBox::openMachine"/> but not
4686 yet registered, or on unregistered machines after calling
4687 <link to="IVirtualBox::unregisterMachine"/>.
4688 </note>
4689
4690 <result name="VBOX_E_INVALID_VM_STATE">
4691 Virtual machine is not mutable.
4692 </result>
4693
4694 </desc>
4695 </method>
4696
4697 <method name="deleteSettings">
4698 <desc>
4699 Deletes the settings file of this machine from disk.
4700 The machine must not be registered in order for this operation
4701 to succeed.
4702 <note>
4703 <link to="#settingsModified"/> will return TRUE after this
4704 method successfully returns.
4705 </note>
4706 <note>
4707 Calling this method is only valid on instances returned
4708 by <link to="ISession::machine"/> and on new machines
4709 created by <link to="IVirtualBox::createMachine"/> or
4710 opened by <link to="IVirtualBox::openMachine"/> but not
4711 yet registered, or on unregistered machines after calling
4712 <link to="IVirtualBox::unregisterMachine"/>.
4713 </note>
4714 <note>
4715 The deleted machine settings file can be restored (saved again)
4716 by calling <link to="#saveSettings"/>.
4717 </note>
4718
4719 <result name="VBOX_E_INVALID_VM_STATE">
4720 Cannot delete settings of a registered machine or
4721 machine not mutable.
4722 </result>
4723 <result name="VBOX_E_IPRT_ERROR">
4724 Could not delete the settings file.
4725 </result>
4726
4727 </desc>
4728 </method>
4729
4730 <method name="export">
4731 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
4732 steps required to export VirtualBox machines to OVF.
4733 </desc>
4734
4735 <param name="appliance" type="IAppliance" dir="in">
4736 <desc>Appliance to export this machine to.</desc>
4737 </param>
4738 </method >
4739
4740 <method name="getSnapshot">
4741 <desc>
4742 Returns a snapshot of this machine with the given UUID.
4743 A <tt>null</tt> UUID can be used to obtain the first snapshot
4744 taken on this machine. This is useful if you want to traverse
4745 the whole tree of snapshots starting from the root.
4746
4747 <result name="VBOX_E_OBJECT_NOT_FOUND">
4748 Virtual machine has no snapshots or snapshot not found.
4749 </result>
4750
4751 </desc>
4752 <param name="id" type="uuid" dir="in">
4753 <desc>UUID of the snapshot to get</desc>
4754 </param>
4755 <param name="snapshot" type="ISnapshot" dir="return">
4756 <desc>Snapshot object with the given UUID.</desc>
4757 </param>
4758 </method>
4759
4760 <method name="findSnapshot">
4761 <desc>
4762 Returns a snapshot of this machine with the given name.
4763
4764 <result name="VBOX_E_OBJECT_NOT_FOUND">
4765 Virtual machine has no snapshots or snapshot not found.
4766 </result>
4767
4768 </desc>
4769 <param name="name" type="wstring" dir="in">
4770 <desc>Name of the snapshot to find</desc>
4771 </param>
4772 <param name="snapshot" type="ISnapshot" dir="return">
4773 <desc>Snapshot object with the given name.</desc>
4774 </param>
4775 </method>
4776
4777 <method name="setCurrentSnapshot">
4778 <desc>
4779 Sets the current snapshot of this machine.
4780 <note>
4781 In the current implementation, this operation is not
4782 implemented.
4783 </note>
4784 </desc>
4785 <param name="id" type="uuid" dir="in">
4786 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4787 </param>
4788 </method>
4789
4790 <method name="createSharedFolder">
4791 <desc>
4792 Creates a new permanent shared folder by associating the given logical
4793 name with the given host path, adds it to the collection of shared
4794 folders and starts sharing it. Refer to the description of
4795 <link to="ISharedFolder"/> to read more about logical names.
4796
4797 <result name="VBOX_E_OBJECT_IN_USE">
4798 Shared folder already exists.
4799 </result>
4800 <result name="VBOX_E_FILE_ERROR">
4801 Shared folder @a hostPath not accessible.
4802 </result>
4803
4804 </desc>
4805 <param name="name" type="wstring" dir="in">
4806 <desc>Unique logical name of the shared folder.</desc>
4807 </param>
4808 <param name="hostPath" type="wstring" dir="in">
4809 <desc>Full path to the shared folder in the host file system.</desc>
4810 </param>
4811 <param name="writable" type="boolean" dir="in">
4812 <desc>Whether the share is writable or readonly</desc>
4813 </param>
4814 </method>
4815
4816 <method name="removeSharedFolder">
4817 <desc>
4818 Removes the permanent shared folder with the given name previously
4819 created by <link to="#createSharedFolder"/> from the collection of
4820 shared folders and stops sharing it.
4821
4822 <result name="VBOX_E_INVALID_VM_STATE">
4823 Virtual machine is not mutable.
4824 </result>
4825 <result name="VBOX_E_OBJECT_NOT_FOUND">
4826 Shared folder @a name does not exist.
4827 </result>
4828
4829 </desc>
4830 <param name="name" type="wstring" dir="in">
4831 <desc>Logical name of the shared folder to remove.</desc>
4832 </param>
4833 </method>
4834
4835 <method name="canShowConsoleWindow">
4836 <desc>
4837 Returns @c true if the VM console process can activate the
4838 console window and bring it to foreground on the desktop of
4839 the host PC.
4840 <note>
4841 This method will fail if a session for this machine is not
4842 currently open.
4843 </note>
4844
4845 <result name="VBOX_E_INVALID_VM_STATE">
4846 Machine session is not open.
4847 </result>
4848
4849 </desc>
4850 <param name="canShow" type="boolean" dir="return">
4851 <desc>
4852 @c true if the console window can be shown and @c
4853 false otherwise.
4854 </desc>
4855 </param>
4856 </method>
4857
4858 <method name="showConsoleWindow">
4859 <desc>
4860 Activates the console window and brings it to foreground on
4861 the desktop of the host PC. Many modern window managers on
4862 many platforms implement some sort of focus stealing
4863 prevention logic, so that it may be impossible to activate
4864 a window without the help of the currently active
4865 application. In this case, this method will return a non-zero
4866 identifier that represents the top-level window of the VM
4867 console process. The caller, if it represents a currently
4868 active process, is responsible to use this identifier (in a
4869 platform-dependent manner) to perform actual window
4870 activation.
4871 <note>
4872 This method will fail if a session for this machine is not
4873 currently open.
4874 </note>
4875
4876 <result name="VBOX_E_INVALID_VM_STATE">
4877 Machine session is not open.
4878 </result>
4879
4880 </desc>
4881 <param name="winId" type="unsigned long long" dir="return">
4882 <desc>
4883 Platform-dependent identifier of the top-level VM console
4884 window, or zero if this method has performed all actions
4885 necessary to implement the <i>show window</i> semantics for
4886 the given platform and/or VirtualBox front-end.
4887 </desc>
4888 </param>
4889 </method>
4890
4891 <method name="getGuestProperty">
4892 <desc>
4893 Reads an entry from the machine's guest property store.
4894
4895 <result name="VBOX_E_INVALID_VM_STATE">
4896 Machine session is not open.
4897 </result>
4898
4899 </desc>
4900 <param name="name" type="wstring" dir="in">
4901 <desc>
4902 The name of the property to read.
4903 </desc>
4904 </param>
4905 <param name="value" type="wstring" dir="out">
4906 <desc>
4907 The value of the property. If the property does not exist then this
4908 will be empty.
4909 </desc>
4910 </param>
4911 <param name="timestamp" type="unsigned long long" dir="out">
4912 <desc>
4913 The time at which the property was last modified, as seen by the
4914 server process.
4915 </desc>
4916 </param>
4917 <param name="flags" type="wstring" dir="out">
4918 <desc>
4919 Additional property parameters, passed as a comma-separated list of
4920 "name=value" type entries.
4921 </desc>
4922 </param>
4923 </method>
4924
4925 <method name="getGuestPropertyValue">
4926 <desc>
4927 Reads a value from the machine's guest property store.
4928
4929 <result name="VBOX_E_INVALID_VM_STATE">
4930 Machine session is not open.
4931 </result>
4932
4933 </desc>
4934 <param name="property" type="wstring" dir="in">
4935 <desc>
4936 The name of the property to read.
4937 </desc>
4938 </param>
4939 <param name="value" type="wstring" dir="return">
4940 <desc>
4941 The value of the property. If the property does not exist then this
4942 will be empty.
4943 </desc>
4944 </param>
4945 </method>
4946
4947 <method name="getGuestPropertyTimestamp">
4948 <desc>
4949 Reads a property timestamp from the machine's guest property store.
4950
4951 <result name="VBOX_E_INVALID_VM_STATE">
4952 Machine session is not open.
4953 </result>
4954
4955 </desc>
4956 <param name="property" type="wstring" dir="in">
4957 <desc>
4958 The name of the property to read.
4959 </desc>
4960 </param>
4961 <param name="value" type="unsigned long long" dir="return">
4962 <desc>
4963 The timestamp. If the property does not exist then this will be
4964 empty.
4965 </desc>
4966 </param>
4967 </method>
4968
4969 <method name="setGuestProperty">
4970 <desc>
4971 Sets, changes or deletes an entry in the machine's guest property
4972 store.
4973
4974 <result name="E_ACCESSDENIED">
4975 Property cannot be changed.
4976 </result>
4977 <result name="E_INVALIDARG">
4978 Invalid @a flags.
4979 </result>
4980 <result name="VBOX_E_INVALID_VM_STATE">
4981 Virtual machine is not mutable or session not open.
4982 </result>
4983 <result name="VBOX_E_INVALID_OBJECT_STATE">
4984 Cannot set transient property when machine not running.
4985 </result>
4986
4987 </desc>
4988 <param name="property" type="wstring" dir="in">
4989 <desc>
4990 The name of the property to set, change or delete.
4991 </desc>
4992 </param>
4993 <param name="value" type="wstring" dir="in">
4994 <desc>
4995 The new value of the property to set, change or delete. If the
4996 property does not yet exist and value is non-empty, it will be
4997 created. If the value is empty, the key will be deleted if it
4998 exists.
4999 </desc>
5000 </param>
5001 <param name="flags" type="wstring" dir="in">
5002 <desc>
5003 Additional property parameters, passed as a comma-separated list of
5004 "name=value" type entries.
5005 </desc>
5006 </param>
5007 </method>
5008
5009 <method name="setGuestPropertyValue">
5010 <desc>
5011 Sets, changes or deletes a value in the machine's guest property
5012 store. The flags field will be left unchanged or created empty for a
5013 new property.
5014
5015 <result name="E_ACCESSDENIED">
5016 Property cannot be changed.
5017 </result>
5018 <result name="VBOX_E_INVALID_VM_STATE">
5019 Virtual machine is not mutable or session not open.
5020 </result>
5021 <result name="VBOX_E_INVALID_OBJECT_STATE">
5022 Cannot set transient property when machine not running.
5023 </result>
5024 </desc>
5025
5026 <param name="property" type="wstring" dir="in">
5027 <desc>
5028 The name of the property to set, change or delete.
5029 </desc>
5030 </param>
5031 <param name="value" type="wstring" dir="in">
5032 <desc>
5033 The new value of the property to set, change or delete. If the
5034 property does not yet exist and value is non-empty, it will be
5035 created. If value is empty, the property will be deleted if it
5036 exists.
5037 </desc>
5038 </param>
5039 </method>
5040
5041 <method name="enumerateGuestProperties">
5042 <desc>
5043 Return a list of the guest properties matching a set of patterns along
5044 with their values, time stamps and flags.
5045 </desc>
5046 <param name="patterns" type="wstring" dir="in">
5047 <desc>
5048 The patterns to match the properties against, separated by '|'
5049 characters. If this is empty or NULL, all properties will match.
5050 </desc>
5051 </param>
5052 <param name="name" type="wstring" dir="out" safearray="yes">
5053 <desc>
5054 The names of the properties returned.
5055 </desc>
5056 </param>
5057 <param name="value" type="wstring" dir="out" safearray="yes">
5058 <desc>
5059 The values of the properties returned. The array entries match the
5060 corresponding entries in the @a name array.
5061 </desc>
5062 </param>
5063 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5064 <desc>
5065 The time stamps of the properties returned. The array entries match
5066 the corresponding entries in the @a name array.
5067 </desc>
5068 </param>
5069 <param name="flags" type="wstring" dir="out" safearray="yes">
5070 <desc>
5071 The flags of the properties returned. The array entries match the
5072 corresponding entries in the @a name array.
5073 </desc>
5074 </param>
5075 </method>
5076</interface>
5077
5078 <!--
5079 // IConsole
5080 /////////////////////////////////////////////////////////////////////////
5081 -->
5082
5083 <interface
5084 name="IConsoleCallback" extends="$unknown"
5085 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5086 wsmap="suppress"
5087 >
5088
5089 <method name="onMousePointerShapeChange">
5090 <desc>
5091 Notification when the guest mouse pointer shape has
5092 changed. The new shape data is given.
5093 </desc>
5094 <param name="visible" type="boolean" dir="in">
5095 <desc>
5096 Flag whether the pointer is visible.
5097 </desc>
5098 </param>
5099 <param name="alpha" type="boolean" dir="in">
5100 <desc>
5101 Flag whether the pointer has an alpha channel.
5102 </desc>
5103 </param>
5104 <param name="xHot" type="unsigned long" dir="in">
5105 <desc>
5106 The pointer hot spot x coordinate.
5107 </desc>
5108 </param>
5109 <param name="yHot" type="unsigned long" dir="in">
5110 <desc>
5111 The pointer hot spot y coordinate.
5112 </desc>
5113 </param>
5114 <param name="width" type="unsigned long" dir="in">
5115 <desc>
5116 Width of the pointer shape in pixels.
5117 </desc>
5118 </param>
5119 <param name="height" type="unsigned long" dir="in">
5120 <desc>
5121 Height of the pointer shape in pixels.
5122 </desc>
5123 </param>
5124 <param name="shape" type="octet" mod="ptr" dir="in">
5125 <desc>
5126 Address of the shape buffer.
5127
5128 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5129 followed by a 32-bpp XOR (color) mask.
5130
5131 For pointers without alpha channel the XOR mask pixels are 32
5132 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5133 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5134
5135 An AND mask is used for pointers with alpha channel, so if the
5136 callback does not support alpha, the pointer could be
5137 displayed as a normal color pointer.
5138
5139 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5140 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5141 height</tt>. The padding bits at the end of each scanline are
5142 undefined.
5143
5144 The XOR mask follows the AND mask on the next 4-byte aligned
5145 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5146 Bytes in the gap between the AND and the XOR mask are undefined.
5147 The XOR mask scanlines have no gap between them and the size of
5148 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5149
5150 <note>
5151 If @a shape is 0, only the pointer visibility is changed.
5152 </note>
5153 </desc>
5154 </param>
5155 </method>
5156
5157 <method name="onMouseCapabilityChange">
5158 <desc>
5159 Notification when the mouse capabilities reported by the
5160 guest have changed. The new capabilities are passed.
5161 </desc>
5162 <param name="supportsAbsolute" type="boolean" dir="in"/>
5163 <param name="needsHostCursor" type="boolean" dir="in"/>
5164 </method>
5165
5166 <method name="onKeyboardLedsChange">
5167 <desc>
5168 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5169 to alter the state of the keyboard LEDs.
5170 </desc>
5171 <param name="numLock" type="boolean" dir="in"/>
5172 <param name="capsLock" type="boolean" dir="in"/>
5173 <param name="scrollLock" type="boolean" dir="in"/>
5174 </method>
5175
5176 <method name="onStateChange">
5177 <desc>
5178 Notification when the execution state of the machine has changed.
5179 The new state will be given.
5180 </desc>
5181 <param name="state" type="MachineState" dir="in"/>
5182 </method>
5183
5184 <method name="onAdditionsStateChange">
5185 <desc>
5186 Notification when a Guest Additions property changes.
5187 Interested callees should query IGuest attributes to
5188 find out what has changed.
5189 </desc>
5190 </method>
5191
5192 <method name="onDVDDriveChange">
5193 <desc>
5194 Notification when a property of the
5195 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5196 Interested callees should use IDVDDrive methods to find out what has
5197 changed.
5198 </desc>
5199 </method>
5200
5201 <method name="onFloppyDriveChange">
5202 <desc>
5203 Notification when a property of the
5204 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5205 Interested callees should use IFloppyDrive methods to find out what
5206 has changed.
5207 </desc>
5208 </method>
5209
5210 <method name="onNetworkAdapterChange">
5211 <desc>
5212 Notification when a property of one of the
5213 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5214 changes. Interested callees should use INetworkAdapter methods and
5215 attributes to find out what has changed.
5216 </desc>
5217 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5218 <desc>Network adapter that is subject to change.</desc>
5219 </param>
5220 </method>
5221
5222 <method name="onSerialPortChange">
5223 <desc>
5224 Notification when a property of one of the
5225 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5226 Interested callees should use ISerialPort methods and attributes
5227 to find out what has changed.
5228 </desc>
5229 <param name="serialPort" type="ISerialPort" dir="in">
5230 <desc>Serial port that is subject to change.</desc>
5231 </param>
5232 </method>
5233
5234 <method name="onParallelPortChange">
5235 <desc>
5236 Notification when a property of one of the
5237 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5238 changes. Interested callees should use ISerialPort methods and
5239 attributes to find out what has changed.
5240 </desc>
5241 <param name="parallelPort" type="IParallelPort" dir="in">
5242 <desc>Parallel port that is subject to change.</desc>
5243 </param>
5244 </method>
5245
5246 <method name="onVRDPServerChange">
5247 <desc>
5248 Notification when a property of the
5249 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5250 Interested callees should use IVRDPServer methods and attributes to
5251 find out what has changed.
5252 </desc>
5253 </method>
5254
5255 <method name="onUSBControllerChange">
5256 <desc>
5257 Notification when a property of the virtual
5258 <link to="IMachine::USBController">USB controller</link> changes.
5259 Interested callees should use IUSBController methods and attributes to
5260 find out what has changed.
5261 </desc>
5262 </method>
5263
5264 <method name="onUSBDeviceStateChange">
5265 <desc>
5266 Notification when a USB device is attached to or detached from
5267 the virtual USB controller.
5268
5269 This notification is sent as a result of the indirect
5270 request to attach the device because it matches one of the
5271 machine USB filters, or as a result of the direct request
5272 issued by <link to="IConsole::attachUSBDevice"/> or
5273 <link to="IConsole::detachUSBDevice"/>.
5274
5275 This notification is sent in case of both a succeeded and a
5276 failed request completion. When the request succeeds, the
5277 @a error parameter is @c null, and the given device has been
5278 already added to (when @a attached is @c true) or removed from
5279 (when @a attached is @c false) the collection represented by
5280 <link to="IConsole::USBDevices"/>. On failure, the collection
5281 doesn't change and the @a error parameter represents the error
5282 message describing the failure.
5283
5284 </desc>
5285 <param name="device" type="IUSBDevice" dir="in">
5286 <desc>Device that is subject to state change.</desc>
5287 </param>
5288 <param name="attached" type="boolean" dir="in">
5289 <desc>
5290 <tt>true</tt> if the device was attached
5291 and <tt>false</tt> otherwise.
5292 </desc>
5293 </param>
5294 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5295 <desc>
5296 <tt>null</tt> on success or an error message object on
5297 failure.
5298 </desc>
5299 </param>
5300 </method>
5301
5302 <method name="onSharedFolderChange">
5303 <desc>
5304 Notification when a shared folder is added or removed.
5305 The @a scope argument defines one of three scopes:
5306 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5307 (<link to="Scope_Global">Global</link>),
5308 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5309 the machine (<link to="Scope_Machine">Machine</link>) or <link
5310 to="IConsole::sharedFolders">transient shared folders</link> of the
5311 machine (<link to="Scope_Session">Session</link>). Interested callees
5312 should use query the corresponding collections to find out what has
5313 changed.
5314 </desc>
5315 <param name="scope" type="Scope" dir="in">
5316 <desc>Scope of the notification.</desc>
5317 </param>
5318 </method>
5319
5320 <method name="onRuntimeError">
5321 <desc>
5322 Notification when an error happens during the virtual
5323 machine execution.
5324
5325 There are three kinds of runtime errors:
5326 <ul>
5327 <li><i>fatal</i></li>
5328 <li><i>non-fatal with retry</i></li>
5329 <li><i>non-fatal warnings</i></li>
5330 </ul>
5331
5332 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5333 to <tt>true</tt>. In case of fatal errors, the virtual machine
5334 execution is always paused before calling this notification, and
5335 the notification handler is supposed either to immediately save
5336 the virtual machine state using <link to="IConsole::saveState"/>
5337 or power it off using <link to="IConsole::powerDown"/>.
5338 Resuming the execution can lead to unpredictable results.
5339
5340 <b>Non-fatal</b> errors and warnings are indicated by the
5341 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5342 is in the Paused state by the time the error notification is
5343 received, it means that the user can <i>try to resume</i> the machine
5344 execution after attempting to solve the problem that caused the
5345 error. In this case, the notification handler is supposed
5346 to show an appropriate message to the user (depending on the
5347 value of the @a id parameter) that offers several actions such
5348 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5349 wants to retry, the notification handler should continue
5350 the machine execution using the <link to="IConsole::resume"/>
5351 call. If the machine execution is not Paused during this
5352 notification, then it means this notification is a <i>warning</i>
5353 (for example, about a fatal condition that can happen very soon);
5354 no immediate action is required from the user, the machine
5355 continues its normal execution.
5356
5357 Note that in either case the notification handler
5358 <b>must not</b> perform any action directly on a thread
5359 where this notification is called. Everything it is allowed to
5360 do is to post a message to another thread that will then talk
5361 to the user and take the corresponding action.
5362
5363 Currently, the following error identifiers are known:
5364 <ul>
5365 <li><tt>"HostMemoryLow"</tt></li>
5366 <li><tt>"HostAudioNotResponding"</tt></li>
5367 <li><tt>"VDIStorageFull"</tt></li>
5368 </ul>
5369
5370 <note>
5371 This notification is not designed to be implemented by
5372 more than one callback at a time. If you have multiple
5373 IConsoleCallback instances registered on the given
5374 IConsole object, make sure you simply do nothing but
5375 return @c S_OK from all but one of them that does actual
5376 user notification and performs necessary actions.
5377 </note>
5378
5379 </desc>
5380 <param name="fatal" type="boolean" dir="in">
5381 <desc>Whether the error is fatal or not</desc>
5382 </param>
5383 <param name="id" type="wstring" dir="in">
5384 <desc>Error identifier</desc>
5385 </param>
5386 <param name="message" type="wstring" dir="in">
5387 <desc>Optional error message</desc>
5388 </param>
5389 </method>
5390
5391 <method name="onCanShowWindow">
5392 <desc>
5393 Notification when a call to
5394 <link to="IMachine::canShowConsoleWindow"/> is made by a
5395 front-end to check if a subsequent call to
5396 <link to="IMachine::showConsoleWindow"/> can succeed.
5397
5398 The callee should give an answer appropriate to the current
5399 machine state in the @a canShow argument. This answer must
5400 remain valid at least until the next
5401 <link to="IConsole::state">machine state</link> change.
5402
5403 <note>
5404 This notification is not designed to be implemented by
5405 more than one callback at a time. If you have multiple
5406 IConsoleCallback instances registered on the given
5407 IConsole object, make sure you simply do nothing but
5408 return @c true and @c S_OK from all but one of them that
5409 actually manages console window activation.
5410 </note>
5411 </desc>
5412 <param name="canShow" type="boolean" dir="return">
5413 <desc>
5414 @c true if the console window can be shown and @c
5415 false otherwise.
5416 </desc>
5417 </param>
5418 </method>
5419
5420 <method name="onShowWindow">
5421 <desc>
5422 Notification when a call to
5423 <link to="IMachine::showConsoleWindow"/>
5424 requests the console window to be activated and brought to
5425 foreground on the desktop of the host PC.
5426
5427 This notification should cause the VM console process to
5428 perform the requested action as described above. If it is
5429 impossible to do it at a time of this notification, this
5430 method should return a failure.
5431
5432 Note that many modern window managers on many platforms
5433 implement some sort of focus stealing prevention logic, so
5434 that it may be impossible to activate a window without the
5435 help of the currently active application (which is supposedly
5436 an initiator of this notification). In this case, this method
5437 must return a non-zero identifier that represents the
5438 top-level window of the VM console process. The caller, if it
5439 represents a currently active process, is responsible to use
5440 this identifier (in a platform-dependent manner) to perform
5441 actual window activation.
5442
5443 This method must set @a winId to zero if it has performed all
5444 actions necessary to complete the request and the console
5445 window is now active and in foreground, to indicate that no
5446 further action is required on the caller's side.
5447
5448 <note>
5449 This notification is not designed to be implemented by
5450 more than one callback at a time. If you have multiple
5451 IConsoleCallback instances registered on the given
5452 IConsole object, make sure you simply do nothing but
5453 return @c S_OK from all but one of them that actually
5454 manages console window activation.
5455 </note>
5456 </desc>
5457 <param name="winId" type="unsigned long long" dir="return">
5458 <desc>
5459 Platform-dependent identifier of the top-level VM console
5460 window, or zero if this method has performed all actions
5461 necessary to implement the <i>show window</i> semantics for
5462 the given platform and/or this VirtualBox front-end.
5463 </desc>
5464 </param>
5465 </method>
5466
5467 </interface>
5468
5469 <interface
5470 name="IRemoteDisplayInfo" extends="$unknown"
5471 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5472 wsmap="struct"
5473 >
5474 <desc>
5475 Contains information about the remote display (VRDP) capabilities and status.
5476 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5477 </desc>
5478
5479 <attribute name="active" type="boolean" readonly="yes">
5480 <desc>
5481 Whether the remote display connection is active.
5482 </desc>
5483 </attribute>
5484
5485 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5486 <desc>
5487 How many times a client connected.
5488 </desc>
5489 </attribute>
5490
5491 <attribute name="beginTime" type="long long" readonly="yes">
5492 <desc>
5493 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5494 </desc>
5495 </attribute>
5496
5497 <attribute name="endTime" type="long long" readonly="yes">
5498 <desc>
5499 When the last connection was terminated or the current time, if
5500 connection is still active, in milliseconds since 1970-01-01 UTC.
5501 </desc>
5502 </attribute>
5503
5504 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5505 <desc>
5506 How many bytes were sent in last or current, if still active, connection.
5507 </desc>
5508 </attribute>
5509
5510 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5511 <desc>
5512 How many bytes were sent in all connections.
5513 </desc>
5514 </attribute>
5515
5516 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5517 <desc>
5518 How many bytes were received in last or current, if still active, connection.
5519 </desc>
5520 </attribute>
5521
5522 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5523 <desc>
5524 How many bytes were received in all connections.
5525 </desc>
5526 </attribute>
5527
5528 <attribute name="user" type="wstring" readonly="yes">
5529 <desc>
5530 Login user name supplied by the client.
5531 </desc>
5532 </attribute>
5533
5534 <attribute name="domain" type="wstring" readonly="yes">
5535 <desc>
5536 Login domain name supplied by the client.
5537 </desc>
5538 </attribute>
5539
5540 <attribute name="clientName" type="wstring" readonly="yes">
5541 <desc>
5542 The client name supplied by the client.
5543 </desc>
5544 </attribute>
5545
5546 <attribute name="clientIP" type="wstring" readonly="yes">
5547 <desc>
5548 The IP address of the client.
5549 </desc>
5550 </attribute>
5551
5552 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5553 <desc>
5554 The client software version number.
5555 </desc>
5556 </attribute>
5557
5558 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5559 <desc>
5560 Public key exchange method used when connection was established.
5561 Values: 0 - RDP4 public key exchange scheme.
5562 1 - X509 certificates were sent to client.
5563 </desc>
5564 </attribute>
5565
5566 </interface>
5567
5568 <interface
5569 name="IConsole" extends="$unknown"
5570 uuid="3d458cf1-d8aa-4593-84db-41de9e7242d8"
5571 wsmap="managed"
5572 >
5573 <desc>
5574 The IConsole interface represents an interface to control virtual
5575 machine execution.
5576
5577 The console object that implements the IConsole interface is obtained
5578 from a session object after the session for the given machine has been
5579 opened using one of <link to="IVirtualBox::openSession"/>,
5580 <link to="IVirtualBox::openRemoteSession"/> or
5581 <link to="IVirtualBox::openExistingSession"/> methods.
5582
5583 Methods of the IConsole interface allow the caller to query the current
5584 virtual machine execution state, pause the machine or power it down, save
5585 the machine state or take a snapshot, attach and detach removable media
5586 and so on.
5587
5588 <see>ISession</see>
5589 </desc>
5590
5591 <attribute name="machine" type="IMachine" readonly="yes">
5592 <desc>
5593 Machine object this console is sessioned with.
5594 <note>
5595 This is a convenience property, it has the same value as
5596 <link to="ISession::machine"/> of the corresponding session
5597 object.
5598 </note>
5599 </desc>
5600 </attribute>
5601
5602 <attribute name="state" type="MachineState" readonly="yes">
5603 <desc>
5604 Current execution state of the machine.
5605 <note>
5606 This property always returns the same value as the corresponding
5607 property of the IMachine object this console is sessioned with.
5608 For the process that owns (executes) the VM, this is the
5609 preferable way of querying the VM state, because no IPC
5610 calls are made.
5611 </note>
5612 </desc>
5613 </attribute>
5614
5615 <attribute name="guest" type="IGuest" readonly="yes">
5616 <desc>Guest object.</desc>
5617 </attribute>
5618
5619 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5620 <desc>
5621 Virtual keyboard object.
5622 <note>
5623 If the machine is not running, any attempt to use
5624 the returned object will result in an error.
5625 </note>
5626 </desc>
5627 </attribute>
5628
5629 <attribute name="mouse" type="IMouse" readonly="yes">
5630 <desc>
5631 Virtual mouse object.
5632 <note>
5633 If the machine is not running, any attempt to use
5634 the returned object will result in an error.
5635 </note>
5636 </desc>
5637 </attribute>
5638
5639 <attribute name="display" type="IDisplay" readonly="yes">
5640 <desc>Virtual display object.
5641 <note>
5642 If the machine is not running, any attempt to use
5643 the returned object will result in an error.
5644 </note>
5645 </desc>
5646 </attribute>
5647
5648 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5649 <desc>Debugging interface.</desc>
5650 </attribute>
5651
5652 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
5653 <desc>
5654 Collection of USB devices currently attached to the virtual
5655 USB controller.
5656 <note>
5657 The collection is empty if the machine is not running.
5658 </note>
5659 </desc>
5660 </attribute>
5661
5662 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5663 <desc>
5664 List of USB devices currently attached to the remote VRDP client.
5665 Once a new device is physically attached to the remote host computer,
5666 it appears in this list and remains there until detached.
5667 </desc>
5668 </attribute>
5669
5670 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5671 <desc>
5672 Collection of shared folders for the current session. These folders
5673 are called transient shared folders because they are available to the
5674 guest OS running inside the associated virtual machine only for the
5675 duration of the session (as opposed to
5676 <link to="IMachine::sharedFolders"/> which represent permanent shared
5677 folders). When the session is closed (e.g. the machine is powered down),
5678 these folders are automatically discarded.
5679
5680 New shared folders are added to the collection using
5681 <link to="#createSharedFolder"/>. Existing shared folders can be
5682 removed using <link to="#removeSharedFolder"/>.
5683 </desc>
5684 </attribute>
5685
5686 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5687 <desc>
5688 Interface that provides information on Remote Display (VRDP) connection.
5689 </desc>
5690 </attribute>
5691
5692 <method name="powerUp">
5693 <desc>
5694 Starts the virtual machine execution using the current machine
5695 state (that is, its current execution state, current settings and
5696 current hard disks).
5697
5698 If the machine is powered off or aborted, the execution will
5699 start from the beginning (as if the real hardware were just
5700 powered on).
5701
5702 If the machine is in the <link to="MachineState_Saved"/> state,
5703 it will continue its execution the point where the state has
5704 been saved.
5705
5706 <note>
5707 Unless you are trying to write a new VirtualBox front-end that
5708 performs direct machine execution (like the VirtualBox or VBoxSDL
5709 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5710 session opened by <link to="IVirtualBox::openSession"/> and use this
5711 session only to change virtual machine settings. If you simply want to
5712 start virtual machine execution using one of the existing front-ends
5713 (for example the VirtualBox GUI or headless server), simply use
5714 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5715 power up the machine automatically for you.
5716 </note>
5717
5718 <see>#saveState</see>
5719 <result name="VBOX_E_INVALID_VM_STATE">
5720 Virtual machine already running.
5721 </result>
5722 <result name="VBOX_E_HOST_ERROR">
5723 Host interface does not exist or name not set.
5724 </result>
5725 <result name="VBOX_E_FILE_ERROR">
5726 Invalid saved state file.
5727 </result>
5728 </desc>
5729 <param name="progress" type="IProgress" dir="return">
5730 <desc>Progress object to track the operation completion.</desc>
5731 </param>
5732 </method>
5733
5734 <method name="powerUpPaused">
5735 <desc>
5736 Identical to powerUp except that the VM will enter the
5737 <link to="MachineState_Paused"/> state, instead of
5738 <link to="MachineState_Running"/>.
5739
5740 <see>#powerUp</see>
5741 <result name="VBOX_E_INVALID_VM_STATE">
5742 Virtual machine already running.
5743 </result>
5744 <result name="VBOX_E_HOST_ERROR">
5745 Host interface does not exist or name not set.
5746 </result>
5747 <result name="VBOX_E_FILE_ERROR">
5748 Invalid saved state file.
5749 </result>
5750 </desc>
5751 <param name="progress" type="IProgress" dir="return">
5752 <desc>Progress object to track the operation completion.</desc>
5753 </param>
5754 </method>
5755
5756 <method name="powerDown">
5757 <desc>
5758 Stops the virtual machine execution.
5759 After this operation completes, the machine will go to the
5760 PoweredOff state.
5761
5762 @deprecated This method will be removed in VirtualBox 2.1 where the
5763 powerDownAsync() method will take its name. Do not use this method in
5764 the code.
5765 <result name="VBOX_E_INVALID_VM_STATE">
5766 Virtual machine must be Running, Paused or Stuck to be powered down.
5767 </result>
5768 <result name="VBOX_E_VM_ERROR">
5769 Unable to power off or destroy virtual machine.
5770 </result>
5771 </desc>
5772 </method>
5773
5774 <method name="powerDownAsync">
5775 <desc>
5776 Initiates the power down procedure to stop the virtual machine
5777 execution.
5778
5779 The completion of the power down procedure is tracked using the returned
5780 IProgress object. After the operation is complete, the machine will go
5781 to the PoweredOff state.
5782
5783 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5784 where the original powerDown() method will be removed. You will need to
5785 rename "powerDownAsync" to "powerDown" in your sources to make them
5786 build with version 2.1.
5787 <result name="VBOX_E_INVALID_VM_STATE">
5788 Virtual machine must be Running, Paused or Stuck to be powered down.
5789 </result>
5790 </desc>
5791 <param name="progress" type="IProgress" dir="return">
5792 <desc>Progress object to track the operation completion.</desc>
5793 </param>
5794 </method>
5795
5796 <method name="reset">
5797 <desc>Resets the virtual machine.
5798 <result name="VBOX_E_INVALID_VM_STATE">
5799 Virtual machine not in Running state.
5800 </result>
5801 <result name="VBOX_E_VM_ERROR">
5802 Virtual machine error in reset operation.
5803 </result>
5804 </desc>
5805 </method>
5806
5807 <method name="pause">
5808 <desc>Pauses the virtual machine execution.
5809 <result name="VBOX_E_INVALID_VM_STATE">
5810 Virtual machine not in Running state.
5811 </result>
5812 <result name="VBOX_E_VM_ERROR">
5813 Virtual machine error in suspend operation.
5814 </result>
5815 </desc>
5816 </method>
5817
5818 <method name="resume">
5819 <desc>Resumes the virtual machine execution.
5820 <result name="VBOX_E_INVALID_VM_STATE">
5821 Virtual machine not in Paused state.
5822 </result>
5823 <result name="VBOX_E_VM_ERROR">
5824 Virtual machine error in resume operation.
5825 </result>
5826 </desc>
5827 </method>
5828
5829 <method name="powerButton">
5830 <desc>Sends the ACPI power button event to the guest.
5831 <result name="VBOX_E_INVALID_VM_STATE">
5832 Virtual machine not in Running state.
5833 </result>
5834 <result name="VBOX_E_PDM_ERROR">
5835 Controlled power off failed.
5836 </result>
5837 </desc>
5838 </method>
5839
5840 <method name="sleepButton">
5841 <desc>Sends the ACPI sleep button event to the guest.
5842 <result name="VBOX_E_INVALID_VM_STATE">
5843 Virtual machine not in Running state.
5844 </result>
5845 <result name="VBOX_E_PDM_ERROR">
5846 Sending sleep button event failed.
5847 </result>
5848 </desc>
5849 </method>
5850
5851 <method name="getPowerButtonHandled">
5852 <desc>Checks if the last power button event was handled by guest.
5853 <result name="VBOX_E_PDM_ERROR">
5854 Checking if the event was handled by the guest OS failed.
5855 </result>
5856 </desc>
5857 <param name="handled" type="boolean" dir="return"/>
5858 </method>
5859
5860 <method name="getGuestEnteredACPIMode">
5861 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5862 G1 (sleeping). If this method returns false, the guest will
5863 most likely not respond to external ACPI events.
5864 <result name="VBOX_E_INVALID_VM_STATE">
5865 Virtual machine not in Running state.
5866 </result>
5867 </desc>
5868 <param name="entered" type="boolean" dir="return"/>
5869 </method>
5870
5871 <method name="saveState">
5872 <desc>
5873 Saves the current execution state of a running virtual machine
5874 and stops its execution.
5875
5876 After this operation completes, the machine will go to the
5877 Saved state. Next time it is powered up, this state will
5878 be restored and the machine will continue its execution from
5879 the place where it was saved.
5880
5881 This operation differs from taking a snapshot to the effect
5882 that it doesn't create new differencing hard disks. Also, once
5883 the machine is powered up from the state saved using this method,
5884 the saved state is deleted, so it will be impossible to return
5885 to this state later.
5886
5887 <note>
5888 On success, this method implicitly calls
5889 <link to="IMachine::saveSettings"/> to save all current machine
5890 settings (including runtime changes to the DVD drive, etc.).
5891 Together with the impossibility to change any VM settings when it is
5892 in the Saved state, this guarantees adequate hardware
5893 configuration of the machine when it is restored from the saved
5894 state file.
5895 </note>
5896
5897 <note>
5898 The machine must be in the Running or Paused state, otherwise
5899 the operation will fail.
5900 </note>
5901 <result name="VBOX_E_INVALID_VM_STATE">
5902 Virtual machine state neither Running nor Paused.
5903 </result>
5904 <result name="VBOX_E_FILE_ERROR">
5905 Failed to create directory for saved state file.
5906 </result>
5907
5908 <see><link to="#takeSnapshot"/></see>
5909 </desc>
5910 <param name="progress" type="IProgress" dir="return">
5911 <desc>Progress object to track the operation completion.</desc>
5912 </param>
5913 </method>
5914
5915 <method name="adoptSavedState">
5916 <desc>
5917 Associates the given saved state file to the virtual machine.
5918
5919 On success, the machine will go to the Saved state. Next time it is
5920 powered up, it will be restored from the adopted saved state and
5921 continue execution from the place where the saved state file was
5922 created.
5923
5924 The specified saved state file path may be absolute or relative to the
5925 folder the VM normally saves the state to (usually,
5926 <link to="IMachine::snapshotFolder"/>).
5927
5928 <note>
5929 It's a caller's responsibility to make sure the given saved state
5930 file is compatible with the settings of this virtual machine that
5931 represent its virtual hardware (memory size, hard disk configuration
5932 etc.). If there is a mismatch, the behavior of the virtual machine
5933 is undefined.
5934 </note>
5935 <result name="VBOX_E_INVALID_VM_STATE">
5936 Virtual machine state neither PoweredOff nor Aborted.
5937 </result>
5938 </desc>
5939 <param name="savedStateFile" type="wstring" dir="in">
5940 <desc>Path to the saved state file to adopt.</desc>
5941 </param>
5942 </method>
5943
5944 <method name="discardSavedState">
5945 <desc>
5946 Discards (deletes) the saved state of the virtual machine
5947 previously created by <link to="#saveState"/>. Next time the
5948 machine is powered up, a clean boot will occur.
5949 <note>
5950 This operation is equivalent to resetting or powering off
5951 the machine without doing a proper shutdown in the guest OS.
5952 </note>
5953 <result name="VBOX_E_INVALID_VM_STATE">
5954 Virtual machine not in state Saved.
5955 </result>
5956 </desc>
5957 </method>
5958
5959 <method name="getDeviceActivity">
5960 <desc>
5961 Gets the current activity type of a given device or device group.
5962 <result name="E_INVALIDARG">
5963 Invalid device type.
5964 </result>
5965 </desc>
5966 <param name="type" type="DeviceType" dir="in"/>
5967 <param name="activity" type="DeviceActivity" dir="return"/>
5968 </method>
5969
5970 <method name="attachUSBDevice">
5971 <desc>
5972 Attaches a host USB device with the given UUID to the
5973 USB controller of the virtual machine.
5974
5975 The device needs to be in one of the following states:
5976 <link to="USBDeviceState_Busy"/>,
5977 <link to="USBDeviceState_Available"/> or
5978 <link to="USBDeviceState_Held"/>,
5979 otherwise an error is immediately returned.
5980
5981 When the device state is
5982 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5983 be returned if the host computer refuses to release it for some reason.
5984
5985 <see>IUSBController::deviceFilters, USBDeviceState</see>
5986 <result name="VBOX_E_INVALID_VM_STATE">
5987 Virtual machine state neither Running nor Paused.
5988 </result>
5989 <result name="VBOX_E_PDM_ERROR">
5990 Virtual machine does not have a USB controller.
5991 </result>
5992 </desc>
5993 <param name="id" type="uuid" dir="in">
5994 <desc>UUID of the host USB device to attach.</desc>
5995 </param>
5996 </method>
5997
5998 <method name="detachUSBDevice">
5999 <desc>
6000 Detaches an USB device with the given UUID from the USB controller
6001 of the virtual machine.
6002
6003 After this method succeeds, the VirtualBox server re-initiates
6004 all USB filters as if the device were just physically attached
6005 to the host, but filters of this machine are ignored to avoid
6006 a possible automatic re-attachment.
6007
6008 <see>IUSBController::deviceFilters, USBDeviceState</see>
6009
6010 <result name="VBOX_E_PDM_ERROR">
6011 Virtual machine does not have a USB controller.
6012 </result>
6013 <result name="E_INVALIDARG">
6014 USB device not attached to this virtual machine.
6015 </result>
6016 </desc>
6017 <param name="id" type="uuid" dir="in">
6018 <desc>UUID of the USB device to detach.</desc>
6019 </param>
6020 <param name="device" type="IUSBDevice" dir="return">
6021 <desc>Detached USB device.</desc>
6022 </param>
6023 </method>
6024
6025 <method name="findUSBDeviceByAddress">
6026 <desc>
6027 Searches for a USB device with the given host address.
6028
6029 <result name="VBOX_E_OBJECT_NOT_FOUND">
6030 Given @c name does not correspond to any USB device.
6031 </result>
6032
6033 <see>IUSBDevice::address</see>
6034 </desc>
6035 <param name="name" type="wstring" dir="in">
6036 <desc>
6037 Address of the USB device (as assigned by the host) to
6038 search for.
6039 </desc>
6040 </param>
6041 <param name="device" type="IUSBDevice" dir="return">
6042 <desc>Found USB device object.</desc>
6043 </param>
6044 </method>
6045
6046 <method name="findUSBDeviceById">
6047 <desc>
6048 Searches for a USB device with the given UUID.
6049
6050 <result name="VBOX_E_OBJECT_NOT_FOUND">
6051 Given @c id does not correspond to any USB device.
6052 </result>
6053
6054 <see>IUSBDevice::id</see>
6055 </desc>
6056 <param name="id" type="uuid" dir="in">
6057 <desc>UUID of the USB device to search for.</desc>
6058 </param>
6059 <param name="device" type="IUSBDevice" dir="return">
6060 <desc>Found USB device object.</desc>
6061 </param>
6062 </method>
6063
6064 <method name="createSharedFolder">
6065 <desc>
6066 Creates a transient new shared folder by associating the given logical
6067 name with the given host path, adds it to the collection of shared
6068 folders and starts sharing it. Refer to the description of
6069 <link to="ISharedFolder"/> to read more about logical names.
6070
6071 <result name="VBOX_E_INVALID_VM_STATE">
6072 Virtual machine in Saved state or currently changing state.
6073 </result>
6074 <result name="VBOX_E_FILE_ERROR">
6075 Shared folder already exists or not accessible.
6076 </result>
6077 </desc>
6078 <param name="name" type="wstring" dir="in">
6079 <desc>Unique logical name of the shared folder.</desc>
6080 </param>
6081 <param name="hostPath" type="wstring" dir="in">
6082 <desc>Full path to the shared folder in the host file system.</desc>
6083 </param>
6084 <param name="writable" type="boolean" dir="in">
6085 <desc>Whether the share is writable or readonly</desc>
6086 </param>
6087 </method>
6088
6089 <method name="removeSharedFolder">
6090 <desc>
6091 Removes a transient shared folder with the given name previously
6092 created by <link to="#createSharedFolder"/> from the collection of
6093 shared folders and stops sharing it.
6094 <result name="VBOX_E_INVALID_VM_STATE">
6095 Virtual machine in Saved state or currently changing state.
6096 </result>
6097 <result name="VBOX_E_FILE_ERROR">
6098 Shared folder does not exists.
6099 </result>
6100 </desc>
6101 <param name="name" type="wstring" dir="in">
6102 <desc>Logical name of the shared folder to remove.</desc>
6103 </param>
6104 </method>
6105
6106 <method name="takeSnapshot">
6107 <desc>
6108 Saves the current execution state and all settings of the
6109 machine and creates differencing images for all
6110 normal (non-independent) hard disks.
6111
6112 This method can be called for a PoweredOff, Saved, Running or
6113 Paused virtual machine. When the machine is PoweredOff, an
6114 offline <link to="ISnapshot">snapshot</link> is created,
6115 in all other cases -- an online snapshot.
6116
6117 The taken snapshot is always based on the
6118 <link to="IMachine::currentSnapshot">current
6119 snapshot</link> of the associated virtual machine and becomes
6120 a new current snapshot.
6121
6122 <note>
6123 This method implicitly calls <link to="IMachine::saveSettings"/> to
6124 save all current machine settings before taking an offline snapshot.
6125 </note>
6126
6127 <see>ISnapshot, <link to="#saveState"/></see>
6128 <result name="VBOX_E_INVALID_VM_STATE">
6129 Virtual machine currently changing state.
6130 </result>
6131 </desc>
6132 <param name="name" type="wstring" dir="in">
6133 <desc>Short name for the snapshot.</desc>
6134 </param>
6135 <param name="description" type="wstring" dir="in">
6136 <desc>Optional description of the snapshot.</desc>
6137 </param>
6138 <param name="progress" type="IProgress" dir="return">
6139 <desc>Progress object to track the operation completion.</desc>
6140 </param>
6141 </method>
6142
6143 <method name="discardSnapshot">
6144 <desc>
6145
6146 Starts discarding the specified snapshot. The execution state
6147 and settings of the associated machine stored in the snapshot
6148 will be deleted. The contents of all differencing hard disks of
6149 this snapshot will be merged with the contents of their
6150 dependent child hard disks to keep the, disks valid (in other
6151 words, all changes represented by hard disks being discarded
6152 will be propagated to their child hard disks). After that, this
6153 snapshot's differencing hard disks will be deleted. The parent
6154 of this snapshot will become a new parent for all its child
6155 snapshots.
6156
6157 If the discarded snapshot is the current one, its parent
6158 snapshot will become a new current snapshot. The current machine
6159 state is not directly affected in this case, except that
6160 currently attached differencing hard disks based on hard disks
6161 of the discarded snapshot will be also merged as described
6162 above.
6163
6164 If the discarded snapshot is the first one (the root snapshot)
6165 and it has exactly one child snapshot, this child snapshot will
6166 become the first snapshot after discarding. If there are no
6167 children at all (i.e. the first snapshot is the only snapshot of
6168 the machine), both the current and the first snapshot of the
6169 machine will be set to null. In all other cases, the first
6170 snapshot cannot be discarded.
6171
6172 You cannot discard the snapshot if it
6173 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6174 hard disks that have differencing hard disks based on them. Snapshots of
6175 such kind can be discarded only when every normal hard disk has either
6176 no children at all or exactly one child. In the former case, the normal
6177 hard disk simply becomes unused (i.e. not attached to any VM). In the
6178 latter case, it receives all the changes stored in the child hard disk,
6179 and then it replaces the child hard disk in the configuration of the
6180 corresponding snapshot or machine.
6181
6182 Also, you cannot discard the snapshot if it stores hard disks
6183 (of any type) having differencing child hard disks that belong
6184 to other machines. Such snapshots can be only discarded after
6185 you discard all snapshots of other machines containing "foreign"
6186 child disks, or detach these "foreign" child disks from machines
6187 they are attached to.
6188
6189 One particular example of the snapshot storing normal hard disks
6190 is the first snapshot of a virtual machine that had normal hard
6191 disks attached when taking the snapshot. Be careful when
6192 discarding such snapshots because this implicitly commits
6193 changes (made since the snapshot being discarded has been taken)
6194 to normal hard disks (as described above), which may be not what
6195 you want.
6196
6197 The virtual machine is put to
6198 the <link to="MachineState_Discarding">Discarding</link> state until
6199 the discard operation is completed.
6200
6201 <note>
6202 The machine must not be running, otherwise the operation
6203 will fail.
6204 </note>
6205
6206 <note>
6207 Child hard disks of all normal hard disks of the discarded snapshot
6208 must be accessible (see <link to="IMedium::state"/>) for this
6209 operation to succeed. In particular, this means that all virtual
6210 machines, whose hard disks are directly or indirectly based on the
6211 hard disks of discarded snapshot, must be powered off.
6212 </note>
6213 <note>
6214 Merging hard disk contents can be very time and disk space
6215 consuming, if these disks are big in size and have many
6216 children. However, if the snapshot being discarded is the last
6217 (head) snapshot on the branch, the operation will be rather
6218 quick.
6219 </note>
6220 <note>
6221 Note that discarding the current snapshot
6222 will implicitly call <link to="IMachine::saveSettings"/> to
6223 make all current machine settings permanent.
6224 </note>
6225 <result name="VBOX_E_INVALID_VM_STATE">
6226 Virtual machine is running.
6227 </result>
6228 </desc>
6229 <param name="id" type="uuid" dir="in">
6230 <desc>UUID of the snapshot to discard.</desc>
6231 </param>
6232 <param name="progress" type="IProgress" dir="return">
6233 <desc>Progress object to track the operation completion.</desc>
6234 </param>
6235 </method>
6236
6237 <method name="discardCurrentState">
6238 <desc>
6239 This operation is similar to <link to="#discardSnapshot"/> but
6240 affects the current machine state. This means that the state stored in
6241 the current snapshot will become a new current state, and all current
6242 settings of the machine and changes stored in differencing hard disks
6243 will be lost.
6244
6245 After this operation is successfully completed, new empty differencing
6246 hard disks are created for all normal hard disks of the machine.
6247
6248 If the current snapshot of the machine is an online snapshot, the
6249 machine will go to the <link to="MachineState_Saved"> saved
6250 state</link>, so that the next time it is powered on, the execution
6251 state will be restored from the current snapshot.
6252
6253 <note>
6254 The machine must not be running, otherwise the operation will fail.
6255 </note>
6256
6257 <note>
6258 If the machine state is <link to="MachineState_Saved">Saved</link>
6259 prior to this operation, the saved state file will be implicitly
6260 discarded (as if <link to="IConsole::discardSavedState"/> were
6261 called).
6262 </note>
6263
6264 <result name="VBOX_E_INVALID_VM_STATE">
6265 Virtual machine is running.
6266 </result>
6267 </desc>
6268 <param name="progress" type="IProgress" dir="return">
6269 <desc>Progress object to track the operation completion.</desc>
6270 </param>
6271 </method>
6272
6273 <method name="discardCurrentSnapshotAndState">
6274 <desc>
6275
6276 This method is equivalent to
6277 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6278 (currentSnapshot.id(), progress) followed by
6279 <link to="#discardCurrentState"/>.
6280
6281 As a result, the machine will be fully restored from the
6282 snapshot preceding the current snapshot, while both the current
6283 snapshot and the current machine state will be discarded.
6284
6285 If the current snapshot is the first snapshot of the machine (i.e. it
6286 has the only snapshot), the current machine state will be
6287 discarded <b>before</b> discarding the snapshot. In other words, the
6288 machine will be restored from its last snapshot, before discarding
6289 it. This differs from performing a single
6290 <link to="#discardSnapshot"/> call (note that no
6291 <link to="#discardCurrentState"/> will be possible after it)
6292 to the effect that the latter will preserve the current state instead of
6293 discarding it.
6294
6295 Unless explicitly mentioned otherwise, all remarks and
6296 limitations of the above two methods also apply to this method.
6297
6298 <note>
6299 The machine must not be running, otherwise the operation
6300 will fail.
6301 </note>
6302
6303 <note>
6304 If the machine state is <link to="MachineState_Saved">Saved</link>
6305 prior to this operation, the saved state file will be implicitly
6306 discarded (as if <link to="#discardSavedState"/> were
6307 called).
6308 </note>
6309
6310 <note>
6311 This method is more efficient than calling both of the above
6312 methods separately: it requires less IPC calls and provides
6313 a single progress object.
6314 </note>
6315
6316 <result name="VBOX_E_INVALID_VM_STATE">
6317 Virtual machine is running.
6318 </result>
6319 </desc>
6320 <param name="progress" type="IProgress" dir="return">
6321 <desc>Progress object to track the operation completion.</desc>
6322 </param>
6323 </method>
6324
6325 <method name="registerCallback">
6326 <desc>
6327 Registers a new console callback on this instance. The methods of the
6328 callback interface will be called by this instance when the appropriate
6329 event occurs.
6330 </desc>
6331 <param name="callback" type="IConsoleCallback" dir="in"/>
6332 </method>
6333
6334 <method name="unregisterCallback">
6335 <desc>
6336 Unregisters the console callback previously registered using
6337 <link to="#registerCallback"/>.
6338 <result name="E_INVALIDARG">
6339 Given @a callback handler is not registered.
6340 </result>
6341 </desc>
6342 <param name="callback" type="IConsoleCallback" dir="in"/>
6343 </method>
6344 </interface>
6345
6346 <!--
6347 // IHost
6348 /////////////////////////////////////////////////////////////////////////
6349 -->
6350
6351 <interface
6352 name="IHostDVDDrive" extends="$unknown"
6353 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6354 wsmap="managed"
6355 >
6356 <desc>
6357 The IHostDVDDrive interface represents the physical CD/DVD drive
6358 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6359 </desc>
6360
6361 <attribute name="name" type="wstring" readonly="yes">
6362 <desc>
6363 Returns the platform-specific device identifier.
6364 On DOS-like platforms, it is a drive name (e.g. R:).
6365 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6366 </desc>
6367 </attribute>
6368 <attribute name="description" type="wstring" readonly="yes">
6369 <desc>
6370 Returns a human readable description for the drive. This
6371 description usually contains the product and vendor name. A
6372 @c null string is returned if the description is not available.
6373 </desc>
6374 </attribute>
6375 <attribute name="udi" type="wstring" readonly="yes">
6376 <desc>
6377 Returns the unique device identifier for the drive. This
6378 attribute is reserved for future use instead of
6379 <link to="#name"/>. Currently it is not used and may return
6380 @c null on some platforms.
6381 </desc>
6382 </attribute>
6383
6384 </interface>
6385
6386 <interface
6387 name="IHostFloppyDrive" extends="$unknown"
6388 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6389 wsmap="managed"
6390 >
6391 <desc>
6392 The IHostFloppyDrive interface represents the physical floppy drive
6393 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6394 </desc>
6395 <attribute name="name" type="wstring" readonly="yes">
6396 <desc>
6397 Returns the platform-specific device identifier.
6398 On DOS-like platforms, it is a drive name (e.g. A:).
6399 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6400 </desc>
6401 </attribute>
6402 <attribute name="description" type="wstring" readonly="yes">
6403 <desc>
6404 Returns a human readable description for the drive. This
6405 description usually contains the product and vendor name. A
6406 @c null string is returned if the description is not available.
6407 </desc>
6408 </attribute>
6409 <attribute name="udi" type="wstring" readonly="yes">
6410 <desc>
6411 Returns the unique device identifier for the drive. This
6412 attribute is reserved for future use instead of
6413 <link to="#name"/>. Currently it is not used and may return
6414 @c null on some platforms.
6415 </desc>
6416 </attribute>
6417 </interface>
6418
6419 <enum
6420 name="HostNetworkInterfaceMediumType"
6421 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6422 >
6423 <desc>
6424 Type of encapsulation. Ethernet encapsulation includes both wired and
6425 wireless Ethernet connections.
6426 <see>IHostNetworkInterface</see>
6427 </desc>
6428
6429 <const name="Unknown" value="0">
6430 <desc>
6431 The type of interface cannot be determined.
6432 </desc>
6433 </const>
6434 <const name="Ethernet" value="1">
6435 <desc>
6436 Ethernet frame encapsulation.
6437 </desc>
6438 </const>
6439 <const name="PPP" value="2">
6440 <desc>
6441 Point-to-point protocol encapsulation.
6442 </desc>
6443 </const>
6444 <const name="SLIP" value="3">
6445 <desc>
6446 Serial line IP encapsulation.
6447 </desc>
6448 </const>
6449 </enum>
6450
6451 <enum
6452 name="HostNetworkInterfaceStatus"
6453 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6454 >
6455 <desc>
6456 Current status of the interface.
6457 <see>IHostNetworkInterface</see>
6458 </desc>
6459
6460 <const name="Unknown" value="0">
6461 <desc>
6462 The state of interface cannot be determined.
6463 </desc>
6464 </const>
6465 <const name="Up" value="1">
6466 <desc>
6467 The interface is fully operational.
6468 </desc>
6469 </const>
6470 <const name="Down" value="2">
6471 <desc>
6472 The interface is not functioning.
6473 </desc>
6474 </const>
6475 </enum>
6476
6477 <enum
6478 name="HostNetworkInterfaceType"
6479 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6480 >
6481 <desc>
6482 Network interface type.
6483 </desc>
6484 <const name="Bridged" value="1"/>
6485 <const name="HostOnly" value="2"/>
6486 </enum>
6487
6488 <interface
6489 name="IHostNetworkInterface" extends="$unknown"
6490 uuid="a82f7de2-695b-4bb9-ac13-f033e5fd75c2"
6491 wsmap="managed"
6492 >
6493 <desc>
6494 Reprents one of host's network interfaces. IP V6 address and network
6495 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6496 separated by colons.
6497 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6498 </desc>
6499 <attribute name="name" type="wstring" readonly="yes">
6500 <desc>Returns the host network interface name.</desc>
6501 </attribute>
6502
6503 <attribute name="id" type="uuid" readonly="yes">
6504 <desc>Returns the interface UUID.</desc>
6505 </attribute>
6506
6507 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6508 <desc>Returns the IP V4 address of the interface.</desc>
6509 </attribute>
6510
6511 <attribute name="networkMask" type="unsigned long" readonly="yes">
6512 <desc>Returns the network mask of the interface.</desc>
6513 </attribute>
6514
6515 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6516 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6517 </attribute>
6518
6519 <attribute name="IPV6Address" type="wstring" readonly="yes">
6520 <desc>Returns the IP V6 address of the interface.</desc>
6521 </attribute>
6522
6523 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6524 <desc>Returns the IP V6 network mask of the interface.</desc>
6525 </attribute>
6526
6527 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6528 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6529 </attribute>
6530
6531 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6532 <desc>Type of protocol encapsulation used.</desc>
6533 </attribute>
6534
6535 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6536 <desc>Status of the interface.</desc>
6537 </attribute>
6538
6539 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6540 <desc>specifies the host interface type.</desc>
6541 </attribute>
6542
6543 <method name="enableStaticIpConfig">
6544 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6545 <param name="IPAddress" type="unsigned long" dir="in">
6546 <desc>
6547 IP address.
6548 </desc>
6549 </param>
6550 <param name="networkMask" type="unsigned long" dir="in">
6551 <desc>
6552 network mask.
6553 </desc>
6554 </param>
6555 </method>
6556
6557 <method name="enableStaticIpConfigV6">
6558 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6559 <param name="IPV6Address" type="wstring" dir="in">
6560 <desc>
6561 IP address.
6562 </desc>
6563 </param>
6564 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6565 <desc>
6566 network mask.
6567 </desc>
6568 </param>
6569 </method>
6570
6571 <method name="enableDynamicIpConfig">
6572 <desc>enables the dynamic IP configuration.</desc>
6573 </method>
6574
6575 </interface>
6576
6577 <interface
6578 name="IHost" extends="$unknown"
6579 uuid="378cf146-6cd6-4dbc-bc60-cbd2004d99c5"
6580 wsmap="managed"
6581 >
6582 <desc>
6583 The IHost interface represents the physical machine that this VirtualBox
6584 installation runs on.
6585
6586 An object implementing this interface is returned by the
6587 <link to="IVirtualBox::host" /> attribute. This interface contains
6588 read-only information about the host's physical hardware (such as what
6589 processors and disks are available, what the host operating system is,
6590 and so on) and also allows for manipulating some of the host's hardware,
6591 such as global USB device filters and host interface networking.
6592
6593 </desc>
6594 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
6595 <desc>List of DVD drives available on the host.</desc>
6596 </attribute>
6597
6598 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
6599 <desc>List of floppy drives available on the host.</desc>
6600 </attribute>
6601
6602 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6603 <desc>
6604 List of USB devices currently attached to the host.
6605 Once a new device is physically attached to the host computer,
6606 it appears in this list and remains there until detached.
6607
6608 <note>
6609 This method may set a @ref com_warnings "warning result code".
6610 </note>
6611 <note>
6612 If USB functionality is not available in the given edition of
6613 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6614 </note>
6615 </desc>
6616 </attribute>
6617
6618 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6619 <desc>
6620 List of USB device filters in action.
6621 When a new device is physically attached to the host computer,
6622 filters from this list are applied to it (in order they are stored
6623 in the list). The first matched filter will determine the
6624 <link to="IHostUSBDeviceFilter::action">action</link>
6625 performed on the device.
6626
6627 Unless the device is ignored by these filters, filters of all
6628 currently running virtual machines
6629 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6630
6631 <note>
6632 This method may set a @ref com_warnings "warning result code".
6633 </note>
6634 <note>
6635 If USB functionality is not available in the given edition of
6636 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6637 </note>
6638
6639 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6640 </desc>
6641 </attribute>
6642
6643 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6644 <desc>List of host network interfaces currently defined on the host.</desc>
6645 </attribute>
6646
6647 <attribute name="processorCount" type="unsigned long" readonly="yes">
6648 <desc>Number of (logical) CPUs installed in the host system.</desc>
6649 </attribute>
6650
6651 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6652 <desc>Number of (logical) CPUs online in the host system.</desc>
6653 </attribute>
6654
6655 <method name="getProcessorSpeed">
6656 <desc>Query the (approximate) maximum speed of a specified host CPU in
6657 Megahertz.
6658 </desc>
6659 <param name="cpuId" type="unsigned long" dir="in">
6660 <desc>
6661 Identifier of the CPU.
6662 </desc>
6663 </param>
6664 <param name="speed" type="unsigned long" dir="return">
6665 <desc>
6666 Speed value. 0 is returned if value is not known or @a cpuId is
6667 invalid.
6668 </desc>
6669 </param>
6670 </method>
6671
6672 <method name="getProcessorFeature">
6673 <desc>Query whether a CPU feature is supported or not.</desc>
6674 <param name="feature" type="ProcessorFeature" dir="in">
6675 <desc>
6676 CPU Feature identifier.
6677 </desc>
6678 </param>
6679 <param name="supported" type="boolean" dir="return">
6680 <desc>
6681 Feature is supported or not.
6682 </desc>
6683 </param>
6684 </method>
6685
6686 <method name="getProcessorDescription">
6687 <desc>Query the model string of a specified host CPU.
6688 <note>
6689 This function is not implemented in the current version of the
6690 product.
6691 </note>
6692 </desc>
6693 <param name="cpuId" type="unsigned long" dir="in">
6694 <desc>
6695 Identifier of the CPU.
6696 </desc>
6697 </param>
6698 <param name="description" type="wstring" dir="return">
6699 <desc>
6700 Model string. A NULL string is returned if value is not known or
6701 @a cpuId is invalid.
6702 </desc>
6703 </param>
6704 </method>
6705
6706 <attribute name="memorySize" type="unsigned long" readonly="yes">
6707 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6708 </attribute>
6709
6710 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6711 <desc>Available system memory in the host system.</desc>
6712 </attribute>
6713
6714 <attribute name="operatingSystem" type="wstring" readonly="yes">
6715 <desc>Name of the host system's operating system.</desc>
6716 </attribute>
6717
6718 <attribute name="OSVersion" type="wstring" readonly="yes">
6719 <desc>Host operating system's version string.</desc>
6720 </attribute>
6721
6722 <attribute name="UTCTime" type="long long" readonly="yes">
6723 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6724 </attribute>
6725
6726<if target="midl">
6727 <method name="createHostOnlyNetworkInterface">
6728 <desc>
6729 Creates a new adapter for Host Only Networking.
6730 <result name="E_INVALIDARG">
6731 Host network interface @a name already exists.
6732 </result>
6733 </desc>
6734 <param name="name" type="wstring" dir="in">
6735 <desc>
6736 Adapter name.
6737 </desc>
6738 </param>
6739 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6740 <desc>
6741 Created host interface object.
6742 </desc>
6743 </param>
6744 <param name="progress" type="IProgress" dir="return">
6745 <desc>
6746 Progress object to track the operation completion.
6747 </desc>
6748 </param>
6749 </method>
6750 <method name="removeHostOnlyNetworkInterface">
6751 <desc>
6752 Removes the given Host Only Networking interface.
6753 <result name="VBOX_E_OBJECT_NOT_FOUND">
6754 No host network interface matching @a id found.
6755 </result>
6756 </desc>
6757 <param name="id" type="uuid" dir="in">
6758 <desc>
6759 Adapter GUID.
6760 </desc>
6761 </param>
6762 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6763 <desc>
6764 Removed host interface object.
6765 </desc>
6766 </param>
6767 <param name="progress" type="IProgress" dir="return">
6768 <desc>
6769 Progress object to track the operation completion.
6770 </desc>
6771 </param>
6772 </method>
6773</if>
6774
6775 <method name="createUSBDeviceFilter">
6776 <desc>
6777 Creates a new USB device filter. All attributes except
6778 the filter name are set to <tt>null</tt> (any match),
6779 <i>active</i> is <tt>false</tt> (the filter is not active).
6780
6781 The created filter can be added to the list of filters using
6782 <link to="#insertUSBDeviceFilter"/>.
6783
6784 <see>#USBDeviceFilters</see>
6785 </desc>
6786 <param name="name" type="wstring" dir="in">
6787 <desc>
6788 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6789 for more info.
6790 </desc>
6791 </param>
6792 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6793 <desc>Created filter object.</desc>
6794 </param>
6795 </method>
6796
6797 <method name="insertUSBDeviceFilter">
6798 <desc>
6799 Inserts the given USB device to the specified position
6800 in the list of filters.
6801
6802 Positions are numbered starting from <tt>0</tt>. If the specified
6803 position is equal to or greater than the number of elements in
6804 the list, the filter is added at the end of the collection.
6805
6806 <note>
6807 Duplicates are not allowed, so an attempt to insert a
6808 filter that is already in the list, will return an
6809 error.
6810 </note>
6811 <note>
6812 This method may set a @ref com_warnings "warning result code".
6813 </note>
6814 <note>
6815 If USB functionality is not available in the given edition of
6816 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6817 </note>
6818
6819 <see>#USBDeviceFilters</see>
6820
6821 <result name="VBOX_E_INVALID_OBJECT_STATE">
6822 USB device filter is not created within this VirtualBox instance.
6823 </result>
6824 <result name="E_INVALIDARG">
6825 USB device filter already in list.
6826 </result>
6827
6828 </desc>
6829 <param name="position" type="unsigned long" dir="in">
6830 <desc>Position to insert the filter to.</desc>
6831 </param>
6832 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6833 <desc>USB device filter to insert.</desc>
6834 </param>
6835 </method>
6836
6837 <method name="removeUSBDeviceFilter">
6838 <desc>
6839 Removes a USB device filter from the specified position in the
6840 list of filters.
6841
6842 Positions are numbered starting from <tt>0</tt>. Specifying a
6843 position equal to or greater than the number of elements in
6844 the list will produce an error.
6845
6846 <note>
6847 This method may set a @ref com_warnings "warning result code".
6848 </note>
6849 <note>
6850 If USB functionality is not available in the given edition of
6851 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6852 </note>
6853
6854 <see>#USBDeviceFilters</see>
6855
6856 <result name="E_INVALIDARG">
6857 USB device filter list empty or invalid @a position.
6858 </result>
6859
6860 </desc>
6861 <param name="position" type="unsigned long" dir="in">
6862 <desc>Position to remove the filter from.</desc>
6863 </param>
6864 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6865 <desc>Removed USB device filter.</desc>
6866 </param>
6867 </method>
6868
6869 <method name="findHostDVDDrive">
6870 <desc>
6871 Searches for a host DVD drive with the given @c name.
6872
6873 <result name="VBOX_E_OBJECT_NOT_FOUND">
6874 Given @c name does not correspond to any host drive.
6875 </result>
6876
6877 </desc>
6878 <param name="name" type="wstring" dir="in">
6879 <desc>Name of the host drive to search for</desc>
6880 </param>
6881 <param name="drive" type="IHostDVDDrive" dir="return">
6882 <desc>Found host drive object</desc>
6883 </param>
6884 </method>
6885
6886 <method name="findHostFloppyDrive">
6887 <desc>
6888 Searches for a host floppy drive with the given @c name.
6889
6890 <result name="VBOX_E_OBJECT_NOT_FOUND">
6891 Given @c name does not correspond to any host floppy drive.
6892 </result>
6893
6894 </desc>
6895 <param name="name" type="wstring" dir="in">
6896 <desc>Name of the host floppy drive to search for</desc>
6897 </param>
6898 <param name="drive" type="IHostFloppyDrive" dir="return">
6899 <desc>Found host floppy drive object</desc>
6900 </param>
6901 </method>
6902
6903 <method name="findHostNetworkInterfaceByName">
6904 <desc>
6905 Searches through all host network interfaces for an interface with
6906 the given @c name.
6907 <note>
6908 The method returns an error if the given @c name does not
6909 correspond to any host network interface.
6910 </note>
6911 </desc>
6912 <param name="name" type="wstring" dir="in">
6913 <desc>Name of the host network interface to search for.</desc>
6914 </param>
6915 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6916 <desc>Found host network interface object.</desc>
6917 </param>
6918 </method>
6919 <method name="findHostNetworkInterfaceById">
6920 <desc>
6921 Searches through all host network interfaces for an interface with
6922 the given GUID.
6923 <note>
6924 The method returns an error if the given GUID does not
6925 correspond to any host network interface.
6926 </note>
6927 </desc>
6928 <param name="id" type="uuid" dir="in">
6929 <desc>GUID of the host network interface to search for.</desc>
6930 </param>
6931 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6932 <desc>Found host network interface object.</desc>
6933 </param>
6934 </method>
6935 <method name="findHostNetworkInterfacesOfType">
6936 <desc>
6937 Searches through all host network interfaces and returns a list of interfaces of the specified type
6938 </desc>
6939 <param name="type" type="HostNetworkInterfaceType" dir="in">
6940 <desc>type of the host network interfaces to search for.</desc>
6941 </param>
6942 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
6943 <desc>Found host network interface objects.</desc>
6944 </param>
6945 </method>
6946 </interface>
6947
6948 <!--
6949 // ISystemProperties
6950 /////////////////////////////////////////////////////////////////////////
6951 -->
6952
6953 <interface
6954 name="ISystemProperties"
6955 extends="$unknown"
6956 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6957 wsmap="managed"
6958 >
6959 <desc>
6960 The ISystemProperties interface represents global properties of the given
6961 VirtualBox installation.
6962
6963 These properties define limits and default values for various attributes
6964 and parameters. Most of the properties are read-only, but some can be
6965 changed by a user.
6966 </desc>
6967
6968 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6969 <desc>Minimum guest system memory in Megabytes.</desc>
6970 </attribute>
6971
6972 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6973 <desc>Maximum guest system memory in Megabytes.</desc>
6974 </attribute>
6975
6976 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6977 <desc>Minimum guest video memory in Megabytes.</desc>
6978 </attribute>
6979
6980 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6981 <desc>Maximum guest video memory in Megabytes.</desc>
6982 </attribute>
6983
6984 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6985 <desc>Minimum CPU count.</desc>
6986 </attribute>
6987
6988 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6989 <desc>Maximum CPU count.</desc>
6990 </attribute>
6991
6992 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6993 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6994 </attribute>
6995
6996 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6997 <desc>
6998 Number of network adapters associated with every
6999 <link to="IMachine"/> instance.
7000 </desc>
7001 </attribute>
7002
7003 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7004 <desc>
7005 Number of serial ports associated with every
7006 <link to="IMachine"/> instance.
7007 </desc>
7008 </attribute>
7009
7010 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7011 <desc>
7012 Number of parallel ports associated with every
7013 <link to="IMachine"/> instance.
7014 </desc>
7015 </attribute>
7016
7017 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7018 <desc>
7019 Maximum device position in the boot order. This value corresponds
7020 to the total number of devices a machine can boot from, to make it
7021 possible to include all possible devices to the boot list.
7022 <see><link to="IMachine::setBootOrder"/></see>
7023 </desc>
7024 </attribute>
7025
7026 <attribute name="defaultMachineFolder" type="wstring">
7027 <desc>
7028 Full path to the default directory used to create new or open
7029 existing machines when a settings file name contains no
7030 path.
7031
7032 The initial value of this property is
7033 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7034 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7035
7036 <note>
7037 Setting this property to <tt>null</tt> will restore the
7038 initial value.
7039 </note>
7040 <note>
7041 When settings this property, the specified path can be
7042 absolute (full path) or relative
7043 to the <link to="IVirtualBox::homeFolder">
7044 VirtualBox home directory</link>.
7045 When reading this property, a full path is
7046 always returned.
7047 </note>
7048 <note>
7049 The specified path may not exist, it will be created
7050 when necessary.
7051 </note>
7052
7053 <see>
7054 <link to="IVirtualBox::createMachine"/>,
7055 <link to="IVirtualBox::openMachine"/>
7056 </see>
7057 </desc>
7058 </attribute>
7059
7060 <attribute name="defaultHardDiskFolder" type="wstring">
7061 <desc>
7062 Full path to the default directory used to create new or open existing
7063 virtual disks.
7064
7065 This path is used when the storage unit of a hard disk is a regular file
7066 in the host's file system and only a file name that contains no path is
7067 given.
7068
7069 The initial value of this property is
7070 <tt>&lt;</tt>
7071 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7072 <tt>&gt;/HardDisks</tt>.
7073
7074 <note>
7075 Setting this property to <tt>null</tt> will restore the
7076 initial value.
7077 </note>
7078 <note>
7079 When settings this property, the specified path can be relative
7080 to the
7081 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7082 absolute. When reading this property, a full path is
7083 always returned.
7084 </note>
7085 <note>
7086 The specified path may not exist, it will be created
7087 when necessary.
7088 </note>
7089
7090 <see>
7091 IHardDisk,
7092 <link to="IVirtualBox::createHardDisk"/>,
7093 <link to="IVirtualBox::openHardDisk"/>,
7094 <link to="IMedium::location"/>
7095 </see>
7096 </desc>
7097 </attribute>
7098
7099 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7100 <desc>
7101 List of all hard disk storage formats supported by this VirtualBox
7102 installation.
7103
7104 Keep in mind that the hard disk format identifier
7105 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7106 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7107 hard disk format is a case-insensitive string. This means that, for
7108 example, all of the following strings:
7109 <pre>
7110 "VDI"
7111 "vdi"
7112 "VdI"</pre>
7113 refer to the same hard disk format.
7114
7115 Note that the virtual hard disk framework is backend-based, therefore
7116 the list of supported formats depends on what backends are currently
7117 installed.
7118
7119 <see>
7120 <link to="IHardDiskFormat"/>,
7121 </see>
7122 </desc>
7123 </attribute>
7124
7125 <attribute name="defaultHardDiskFormat" type="wstring">
7126 <desc>
7127 Identifier of the default hard disk format used by VirtualBox.
7128
7129 The hard disk format set by this attribute is used by VirtualBox
7130 when the hard disk format was not specified explicitly. One example is
7131 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7132 format argument. A more complex example is implicit creation of
7133 differencing hard disks when taking a snapshot of a virtual machine:
7134 this operation will try to use a format of the parent hard disk first
7135 and if this format does not support differencing hard disks the default
7136 format specified by this argument will be used.
7137
7138 The list of supported hard disk formats may be obtained by the
7139 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7140 format must have a capability to create differencing hard disks;
7141 otherwise opeartions that create hard disks implicitly may fail
7142 unexpectedly.
7143
7144 The initial value of this property is <tt>VDI</tt> in the current
7145 version of the VirtualBox product, but may change in the future.
7146
7147 <note>
7148 Setting this property to <tt>null</tt> will restore the
7149 initial value.
7150 </note>
7151
7152 <see>
7153 <link to="#hardDiskFormats"/>,
7154 <link to="IHardDiskFormat::id"/>,
7155 <link to="IVirtualBox::createHardDisk"/>
7156 </see>
7157 </desc>
7158 </attribute>
7159
7160 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7161 <desc>
7162 Library that provides authentication for VRDP clients. The library
7163 is used if a virtual machine's authentication type is set to "external"
7164 in the VM RemoteDisplay configuration.
7165
7166 The system library extension (".DLL" or ".so") must be omitted.
7167 A full path can be specified; if not, then the library must reside on the
7168 system's default library path.
7169
7170 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7171 of that name in one of the default VirtualBox library directories.
7172
7173 For details about VirtualBox authentication libraries and how to implement
7174 them, please refer to the VirtualBox manual.
7175
7176 <note>
7177 Setting this property to <tt>null</tt> will restore the
7178 initial value.
7179 </note>
7180 </desc>
7181 </attribute>
7182
7183 <attribute name="webServiceAuthLibrary" type="wstring">
7184 <desc>
7185 Library that provides authentication for webservice clients. The library
7186 is used if a virtual machine's authentication type is set to "external"
7187 in the VM RemoteDisplay configuration and will be called from
7188 within the <link to="IWebsessionManager::logon" /> implementation.
7189
7190 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7191 there is no per-VM setting for this, as the webservice is a global
7192 resource (if it is running). Only for this setting (for the webservice),
7193 setting this value to a literal "null" string disables authentication,
7194 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7195 no matter what user name and password are supplied.
7196
7197 The initial value of this property is <tt>VRDPAuth</tt>,
7198 meaning that the webservice will use the same authentication
7199 library that is used by default for VBoxVRDP (again, see
7200 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7201 The format and calling convention of authentication libraries
7202 is the same for the webservice as it is for VBoxVRDP.
7203
7204 </desc>
7205 </attribute>
7206
7207 <attribute name="HWVirtExEnabled" type="boolean">
7208 <desc>
7209 This specifies the default value for hardware virtualization
7210 extensions. If enabled, virtual machines will make use of
7211 hardware virtualization extensions such as Intel VT-x and
7212 AMD-V by default. This value can be overridden by each VM
7213 using their <link to="IMachine::HWVirtExEnabled" /> property.
7214 </desc>
7215 </attribute>
7216
7217 <attribute name="LogHistoryCount" type="unsigned long">
7218 <desc>
7219 This value specifies how many old release log files are kept.
7220 </desc>
7221 </attribute>
7222 </interface>
7223
7224 <!--
7225 // IGuest
7226 /////////////////////////////////////////////////////////////////////////
7227 -->
7228
7229 <interface
7230 name="IGuestOSType" extends="$unknown"
7231 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7232 wsmap="struct"
7233 >
7234 <desc>
7235 </desc>
7236
7237 <attribute name="familyId" type="wstring" readonly="yes">
7238 <desc>Guest OS family identifier string.</desc>
7239 </attribute>
7240
7241 <attribute name="familyDescription" type="wstring" readonly="yes">
7242 <desc>Human readable description of the guest OS family.</desc>
7243 </attribute>
7244
7245 <attribute name="id" type="wstring" readonly="yes">
7246 <desc>Guest OS identifier string.</desc>
7247 </attribute>
7248
7249 <attribute name="description" type="wstring" readonly="yes">
7250 <desc>Human readable description of the guest OS.</desc>
7251 </attribute>
7252
7253 <attribute name="is64Bit" type="boolean" readonly="yes">
7254 <desc>Returns @c true if the given OS is 64-bit</desc>
7255 </attribute>
7256
7257 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7258 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7259 </attribute>
7260
7261 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7262 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7263 </attribute>
7264
7265 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7266 <desc>Recommended RAM size in Megabytes.</desc>
7267 </attribute>
7268
7269 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7270 <desc>Recommended video RAM size in Megabytes.</desc>
7271 </attribute>
7272
7273 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7274 <desc>Recommended hard disk size in Megabytes.</desc>
7275 </attribute>
7276
7277 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7278 <desc>Returns recommended network adapter for this OS type.</desc>
7279 </attribute>
7280 </interface>
7281
7282 <interface
7283 name="IGuest" extends="$unknown"
7284 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7285
7286 wsmap="suppress"
7287 >
7288 <desc>
7289 The IGuest interface represents information about the operating system
7290 running inside the virtual machine. Used in
7291 <link to="IConsole::guest"/>.
7292
7293 IGuest provides information about the guest operating system, whether
7294 Guest Additions are installed and other OS-specific virtual machine
7295 properties.
7296 </desc>
7297
7298 <attribute name="OSTypeId" type="wstring" readonly="yes">
7299 <desc>
7300 Identifier of the Guest OS type as reported by the Guest
7301 Additions.
7302 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7303 an IGuestOSType object representing details about the given
7304 Guest OS type.
7305 <note>
7306 If Guest Additions are not installed, this value will be
7307 the same as <link to="IMachine::OSTypeId"/>.
7308 </note>
7309 </desc>
7310 </attribute>
7311
7312 <attribute name="additionsActive" type="boolean" readonly="yes">
7313 <desc>
7314 Flag whether the Guest Additions are installed and active
7315 in which case their version will be returned by the
7316 <link to="#additionsVersion"/> property.
7317 </desc>
7318 </attribute>
7319
7320 <attribute name="additionsVersion" type="wstring" readonly="yes">
7321 <desc>
7322 Version of the Guest Additions (3 decimal numbers separated
7323 by dots) or empty when the Additions are not installed. The
7324 Additions may also report a version but yet not be active as
7325 the version might be refused by VirtualBox (incompatible) or
7326 other failures occurred.
7327 </desc>
7328 </attribute>
7329
7330 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7331 <desc>
7332 Flag whether seamless guest display rendering (seamless desktop
7333 integration) is supported.
7334 </desc>
7335 </attribute>
7336
7337 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7338 <desc>
7339 Flag whether the guest is in graphics mode. If it is not, then
7340 seamless rendering will not work, resize hints are not immediately
7341 acted on and guest display resizes are probably not initiated by
7342 the guest additions.
7343 </desc>
7344 </attribute>
7345
7346 <attribute name="memoryBalloonSize" type="unsigned long">
7347 <desc>Guest system memory balloon size in megabytes.</desc>
7348 </attribute>
7349
7350 <attribute name="statisticsUpdateInterval" type="unsigned long">
7351 <desc>Interval to update guest statistics in seconds.</desc>
7352 </attribute>
7353
7354 <method name="setCredentials">
7355 <desc>
7356 Store login credentials that can be queried by guest operating
7357 systems with Additions installed. The credentials are transient
7358 to the session and the guest may also choose to erase them. Note
7359 that the caller cannot determine whether the guest operating system
7360 has queried or made use of the credentials.
7361
7362 <result name="VBOX_E_VM_ERROR">
7363 VMM device is not available.
7364 </result>
7365
7366 </desc>
7367 <param name="userName" type="wstring" dir="in">
7368 <desc>User name string, can be empty</desc>
7369 </param>
7370 <param name="password" type="wstring" dir="in">
7371 <desc>Password string, can be empty</desc>
7372 </param>
7373 <param name="domain" type="wstring" dir="in">
7374 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7375 </param>
7376 <param name="allowInteractiveLogon" type="boolean" dir="in">
7377 <desc>
7378 Flag whether the guest should alternatively allow the user to
7379 interactively specify different credentials. This flag might
7380 not be supported by all versions of the Additions.
7381 </desc>
7382 </param>
7383 </method>
7384
7385 <method name="getStatistic">
7386 <desc>
7387 Query specified guest statistics as reported by the VirtualBox Additions.
7388 </desc>
7389 <param name="cpuId" type="unsigned long" dir="in">
7390 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7391 </param>
7392 <param name="statistic" type="GuestStatisticType" dir="in">
7393 <desc>Statistic type.</desc>
7394 </param>
7395 <param name="statVal" type="unsigned long" dir="out">
7396 <desc>Statistics value</desc>
7397 </param>
7398 </method>
7399
7400 </interface>
7401
7402
7403 <!--
7404 // IProgress
7405 /////////////////////////////////////////////////////////////////////////
7406 -->
7407
7408 <interface
7409 name="IProgress" extends="$unknown"
7410 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7411 wsmap="managed"
7412 >
7413 <desc>
7414 The IProgress interface represents a task progress object that allows
7415 to wait for the completion of some asynchronous task.
7416
7417 The task consists of one or more operations that run sequentially,
7418 one by one. There is an individual percentage of completion of the
7419 current operation and the percentage of completion of the task as a
7420 whole. Similarly, you can wait for the completion of a particular
7421 operation or for the completion of the whole task.
7422
7423 Every operation is identified by a number (starting from 0)
7424 and has a separate description.
7425 </desc>
7426
7427 <attribute name="id" type="uuid" readonly="yes">
7428 <desc>ID of the task.</desc>
7429 </attribute>
7430
7431 <attribute name="description" type="wstring" readonly="yes">
7432 <desc>Description of the task.</desc>
7433 </attribute>
7434
7435 <attribute name="initiator" type="$unknown" readonly="yes">
7436 <desc>Initiator of the task.</desc>
7437 </attribute>
7438
7439 <attribute name="cancelable" type="boolean" readonly="yes">
7440 <desc>Whether the task can be interrupted.</desc>
7441 </attribute>
7442
7443 <attribute name="percent" type="long" readonly="yes">
7444 <desc>
7445 Current task progress value in percent.
7446 This value depends on how many operations are already complete.
7447 </desc>
7448 </attribute>
7449
7450 <attribute name="completed" type="boolean" readonly="yes">
7451 <desc>Whether the task has been completed.</desc>
7452 </attribute>
7453
7454 <attribute name="canceled" type="boolean" readonly="yes">
7455 <desc>Whether the task has been canceled.</desc>
7456 </attribute>
7457
7458 <attribute name="resultCode" type="result" readonly="yes">
7459 <desc>
7460 Result code of the progress task.
7461 Valid only if <link to="#completed"/> is true.
7462 </desc>
7463 </attribute>
7464
7465 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7466 <desc>
7467 Extended information about the unsuccessful result of the
7468 progress operation. May be NULL when no extended information
7469 is available.
7470 Valid only if <link to="#completed"/> is true and
7471 <link to="#resultCode"/> indicates a failure.
7472 </desc>
7473 </attribute>
7474
7475 <attribute name="operationCount" type="unsigned long" readonly="yes">
7476 <desc>
7477 Number of operations this task is divided into.
7478 Every task consists of at least one operation.
7479 </desc>
7480 </attribute>
7481
7482 <attribute name="operation" type="unsigned long" readonly="yes">
7483 <desc>Number of the operation being currently executed.</desc>
7484 </attribute>
7485
7486 <attribute name="operationDescription" type="wstring" readonly="yes">
7487 <desc>
7488 Description of the operation being currently executed.
7489 </desc>
7490 </attribute>
7491
7492 <attribute name="operationPercent" type="long" readonly="yes">
7493 <desc>Current operation progress value in percent.</desc>
7494 </attribute>
7495
7496 <method name="waitForCompletion">
7497 <desc>
7498 Waits until the task is done (including all operations) with a
7499 given timeout.
7500
7501 <result name="VBOX_E_IPRT_ERROR">
7502 Failed to wait for task completion.
7503 </result>
7504
7505 </desc>
7506 <param name="timeout" type="long" dir="in">
7507 <desc>
7508 Timeout value in milliseconds.
7509 Specify -1 for an indefinite wait.
7510 </desc>
7511 </param>
7512 </method>
7513
7514 <method name="waitForOperationCompletion">
7515 <desc>
7516 Waits until the given operation is done with a given timeout.
7517
7518 <result name="VBOX_E_IPRT_ERROR">
7519 Failed to wait for operation completion.
7520 </result>
7521
7522 </desc>
7523 <param name="operation" type="unsigned long" dir="in">
7524 <desc>
7525 Number of the operation to wait for.
7526 Must be less than <link to="#operationCount"/>.
7527 </desc>
7528 </param>
7529 <param name="timeout" type="long" dir="in">
7530 <desc>
7531 Timeout value in milliseconds.
7532 Specify -1 for an indefinite wait.
7533 </desc>
7534 </param>
7535 </method>
7536
7537 <method name="cancel">
7538 <desc>
7539 Cancels the task.
7540 <note>
7541 If <link to="#cancelable"/> is <tt>false</tt>, then
7542 this method will fail.
7543 </note>
7544
7545 <result name="VBOX_E_INVALID_OBJECT_STATE">
7546 Operation cannot be canceled.
7547 </result>
7548
7549 </desc>
7550 </method>
7551
7552 </interface>
7553
7554
7555 <!--
7556 // ISnapshot
7557 /////////////////////////////////////////////////////////////////////////
7558 -->
7559
7560 <interface
7561 name="ISnapshot" extends="$unknown"
7562 uuid="5db6b1d9-c76b-4424-a6f4-8257f642d6ea"
7563 wsmap="managed"
7564 >
7565 <desc>
7566 The ISnapshot interface represents a snapshot of the virtual
7567 machine.
7568
7569 The <i>snapshot</i> stores all the information about a virtual
7570 machine necessary to bring it to exactly the same state as it was at
7571 the time of taking the snapshot. The snapshot includes:
7572
7573 <ul>
7574 <li>all settings of the virtual machine (i.e. its hardware
7575 configuration: RAM size, attached hard disks, etc.)
7576 </li>
7577 <li>the execution state of the virtual machine (memory contents,
7578 CPU state, etc.).
7579 </li>
7580 </ul>
7581
7582 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7583 or <i>online</i> (taken when the VM is running). The execution
7584 state of the offline snapshot is called a <i>zero execution state</i>
7585 (it doesn't actually contain any information about memory contents
7586 or the CPU state, assuming that all hardware is just powered off).
7587
7588 <h3>Snapshot branches</h3>
7589
7590 Snapshots can be chained. Chained snapshots form a branch where
7591 every next snapshot is based on the previous one. This chaining is
7592 mostly related to hard disk branching (see <link to="IHardDisk"/>
7593 description). This means that every time a new snapshot is created,
7594 a new differencing hard disk is implicitly created for all normal
7595 hard disks attached to the given virtual machine. This allows to
7596 fully restore hard disk contents when the machine is later reverted
7597 to a particular snapshot.
7598
7599 In the current implementation, multiple snapshot branches within one
7600 virtual machine are not allowed. Every machine has a single branch,
7601 and <link to="IConsole::takeSnapshot"/> operation adds a new
7602 snapshot to the top of that branch.
7603
7604 Existing snapshots can be discarded using
7605 <link to="IConsole::discardSnapshot"/>.
7606
7607 <h3>Current snapshot</h3>
7608
7609 Every virtual machine has a current snapshot, identified by
7610 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7611 a base for the <i>current machine state</i> (see below), to the effect
7612 that all normal hard disks of the machine and its execution
7613 state are based on this snapshot.
7614
7615 In the current implementation, the current snapshot is always the
7616 last taken snapshot (i.e. the head snapshot on the branch) and it
7617 cannot be changed.
7618
7619 The current snapshot is <tt>null</tt> if the machine doesn't have
7620 snapshots at all; in this case the current machine state is just
7621 current settings of this machine plus its current execution state.
7622
7623 <h3>Current machine state</h3>
7624
7625 The current machine state is what represented by IMachine instances got
7626 directly from IVirtualBox
7627 using <link
7628 to="IVirtualBox::getMachine">getMachine()</link>, <link
7629 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7630 to instances returned by <link to="ISnapshot::machine"/>). This state
7631 is always used when the machine is <link to="IConsole::powerUp"> powered
7632 on</link>.
7633
7634 The current machine state also includes the current execution state.
7635 If the machine is being currently executed
7636 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7637 and above), its execution state is just what's happening now.
7638 If it is powered off (<link to="MachineState_PoweredOff"/> or
7639 <link to="MachineState_Aborted"/>), it has a zero execution state.
7640 If the machine is saved (<link to="MachineState_Saved"/>), its
7641 execution state is what saved in the execution state file
7642 (<link to="IMachine::stateFilePath"/>).
7643
7644 If the machine is in the saved state, then, next time it is powered
7645 on, its execution state will be fully restored from the saved state
7646 file and the execution will continue from the point where the state
7647 was saved.
7648
7649 Similarly to snapshots, the current machine state can be discarded
7650 using <link to="IConsole::discardCurrentState"/>.
7651
7652 <h3>Taking and discarding snapshots</h3>
7653
7654 The table below briefly explains the meaning of every snapshot
7655 operation:
7656
7657 <table>
7658 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7659
7660 <tr><td><link to="IConsole::takeSnapshot"/></td>
7661
7662 <td>Save the current state of the virtual machine, including all
7663 settings, contents of normal hard disks and the current modifications
7664 to immutable hard disks (for online snapshots)</td>
7665
7666 <td>The current state is not changed (the machine will continue
7667 execution if it is being executed when the snapshot is
7668 taken)</td></tr>
7669
7670 <tr><td><link to="IConsole::discardSnapshot"/></td>
7671
7672 <td>Forget the state of the virtual machine stored in the snapshot:
7673 dismiss all saved settings and delete the saved execution state (for
7674 online snapshots)</td>
7675
7676 <td>Other snapshots (including child snapshots, if any) and the
7677 current state are not directly affected</td></tr>
7678
7679 <tr><td><link to="IConsole::discardCurrentState"/></td>
7680
7681 <td>Restore the current state of the virtual machine from the state
7682 stored in the current snapshot, including all settings and hard disk
7683 contents</td>
7684
7685 <td>The current state of the machine existed prior to this operation
7686 is lost</td></tr>
7687
7688 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7689
7690 <td>Completely revert the virtual machine to the state it was in
7691 before the current snapshot has been taken</td>
7692
7693 <td>The current state, as well as the current snapshot, are
7694 lost</td></tr>
7695
7696 </table>
7697
7698 </desc>
7699
7700 <attribute name="id" type="uuid" readonly="yes">
7701 <desc>UUID of the snapshot.</desc>
7702 </attribute>
7703
7704 <attribute name="name" type="wstring">
7705 <desc>Short name of the snapshot.</desc>
7706 </attribute>
7707
7708 <attribute name="description" type="wstring">
7709 <desc>Optional description of the snapshot.</desc>
7710 </attribute>
7711
7712 <attribute name="timeStamp" type="long long" readonly="yes">
7713 <desc>
7714 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7715 </desc>
7716 </attribute>
7717
7718 <attribute name="online" type="boolean" readonly="yes">
7719 <desc>
7720 <tt>true</tt> if this snapshot is an online snapshot and
7721 <tt>false</tt> otherwise.
7722
7723 <note>
7724 When this attribute is <tt>true</tt>, the
7725 <link to="IMachine::stateFilePath"/> attribute of the
7726 <link to="#machine"/> object associated with this snapshot
7727 will point to the saved state file. Otherwise, it will be
7728 <tt>null</tt>.
7729 </note>
7730 </desc>
7731 </attribute>
7732
7733 <attribute name="machine" type="IMachine" readonly="yes">
7734 <desc>
7735 Virtual machine this snapshot is taken on. This object
7736 stores all settings the machine had when taking this snapshot.
7737 <note>
7738 The returned machine object is immutable, i.e. no
7739 any settings can be changed.
7740 </note>
7741 </desc>
7742 </attribute>
7743
7744 <attribute name="parent" type="ISnapshot" readonly="yes">
7745 <desc>
7746 Parent snapshot (a snapshot this one is based on).
7747 <note>
7748 It's not an error to read this attribute on a snapshot
7749 that doesn't have a parent -- a null object will be
7750 returned to indicate this.
7751 </note>
7752 </desc>
7753 </attribute>
7754
7755 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
7756 <desc>
7757 Child snapshots (all snapshots having this one as a parent).
7758 <note>
7759 In the current implementation, there can be only one
7760 child snapshot, or no children at all, meaning this is the
7761 last (head) snapshot.
7762 </note>
7763 </desc>
7764 </attribute>
7765
7766 </interface>
7767
7768
7769 <!--
7770 // IMedia
7771 /////////////////////////////////////////////////////////////////////////
7772 -->
7773
7774 <enum
7775 name="MediaState"
7776 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7777 >
7778 <desc>
7779 Virtual media state.
7780 <see>IMedia</see>
7781 </desc>
7782
7783 <const name="NotCreated" value="0">
7784 <desc>
7785 Associated media storage does not exist (either was not created yet or
7786 was deleted).
7787 </desc>
7788 </const>
7789 <const name="Created" value="1">
7790 <desc>
7791 Associated storage exists and accessible.
7792 </desc>
7793 </const>
7794 <const name="LockedRead" value="2">
7795 <desc>
7796 Media is locked for reading, no data modification is possible.
7797 </desc>
7798 </const>
7799 <const name="LockedWrite" value="3">
7800 <desc>
7801 Media is locked for writing, no concurrent data reading or modification
7802 is possible.
7803 </desc>
7804 </const>
7805 <const name="Inaccessible" value="4">
7806 <desc>
7807 Associated media storage is not accessible.
7808 </desc>
7809 </const>
7810 <const name="Creating" value="5">
7811 <desc>
7812 Associated media storage is being created.
7813 </desc>
7814 </const>
7815 <const name="Deleting" value="6">
7816 <desc>
7817 Associated media storage is being deleted.
7818 </desc>
7819 </const>
7820 </enum>
7821
7822 <interface
7823 name="IMedium" extends="$unknown"
7824 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7825 wsmap="managed"
7826 >
7827 <desc>
7828 The IMedium interface is a common interface for all objects representing
7829 virtual media such as hard disks, DVD images.
7830
7831 Each medium is associated with a storage unit (such as a file on the host
7832 computer or a network resource) that holds actual data. The location of
7833 the storage unit is represented by the #location attribute. The value of
7834 this attribute is media type dependent.
7835
7836 The exact media type may be determined by querying the appropriate
7837 interface such as:
7838 <ul>
7839 <li>IHardDisk (virtual hard disks)</li>
7840 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7841 <li>IFloppyImage (raw floppy image files)</li>
7842 </ul>
7843
7844 Existing media are opened using the following methods, depending on the
7845 media type:
7846 <ul>
7847 <li><link to="IVirtualBox::openHardDisk"/></li>
7848 <li><link to="IVirtualBox::openDVDImage"/></li>
7849 <li><link to="IVirtualBox::openFloppyImage"/></li>
7850 </ul>
7851
7852 New hard disk media are created using the
7853 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7854 images are created outside VirtualBox, usually by storing a copy
7855 of the real medium of the corresponding type in a regular file.
7856
7857 <h3>Known Media</h3>
7858
7859 When an existing medium gets opened for the first time, it gets
7860 automatically remembered by the given VirtualBox installation or, in other
7861 words, becomes a <i>known medium</i>. Known media are stored in the media
7862 registry transparently maintained by VirtualBox and stored in settings
7863 files so that this registry is preserved when VirtualBox is not running.
7864
7865 Newly created virtual hard disks get remembered only when the associated
7866 storage unit is actually created (see IHardDisk for more details).
7867
7868 All known media can be enumerated using
7869 <link to="IVirtualBox::hardDisks"/>,
7870 <link to="IVirtualBox::DVDImages"/> and
7871 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7872 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7873 and similar methods or by location using
7874 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7875
7876 Only known media can be attached to virtual machines.
7877
7878 Removing known media from the media registry is performed when the given
7879 medium is closed using the <link to="#close"/> method or when its
7880 associated storage unit is deleted (only for hard disks).
7881
7882 <h3>Accessibility Checks</h3>
7883
7884 The given medium (with the created storage unit) is considered to be
7885 <i>accessible</i> when its storage unit can be successfully read from.
7886 Accessible media are indicated by the <link to="MediaState_Created"/>
7887 value of the <link to="#state"/> attribute. When the storage unit cannot
7888 be read (for example, because it is located on a disconnected network
7889 resource, or was accidentally deleted outside VirtualBox), the medium is
7890 considered to be <i>inaccessible</i> which is indicated by the
7891 <link to="MediaState_Inaccessible"/> state. The details about the reason
7892 of being inaccessible can be obtained using the
7893 <link to="#lastAccessError"/> attribute.
7894
7895 A new accessibility check is performed each time the <link to="#state"/>
7896 attribute is read. Please note that this check may take long time (several
7897 seconds or even minutes, depending on the storage unit location and
7898 format), and will block the calling thread until finished. For this
7899 reason, it is recommended to never read this attribute on the main UI
7900 thread to avoid making the UI unresponsive.
7901
7902 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7903 created for the first time), all known media are in the
7904 <link to="MediaState_Inaccessible"/> state but the value of the <link
7905 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7906 accessibility check is made on startup. This is done to make the
7907 VirtualBox object ready for serving requests as
7908 fast as possible and let the end-user application decide if it needs to
7909 check media accessibility right away or not.
7910 </desc>
7911
7912 <attribute name="id" type="uuid" readonly="yes">
7913 <desc>
7914 UUID of the medium. For a newly created medium, this value is a randomly
7915 generated UUID.
7916
7917 <note>
7918 For media in one of MediaState_NotCreated, MediaState_Creating or
7919 MediaState_Deleting states, the value of this property is undefined
7920 and will most likely be an empty UUID.
7921 </note>
7922 </desc>
7923 </attribute>
7924
7925 <attribute name="description" type="wstring">
7926 <desc>
7927 Optional description of the medium. For newly created media, the value
7928 of this attribute value is <tt>null</tt>.
7929
7930 Media types that don't support this attribute will return E_NOTIMPL in
7931 attempt to get or set this attribute's value.
7932
7933 <note>
7934 For some storage types, reading this attribute may return an outdated
7935 (last known) value when <link to="#state"/> is <link
7936 to="MediaState_Inaccessible"/> or <link
7937 to="MediaState_LockedWrite"/> because the value of this attribute is
7938 stored within the storage unit itself. Also note that changing the
7939 attribute value is not possible in such case, as well as when the
7940 medium is the <link to="MediaState_LockedRead"/> state.
7941 </note>
7942 </desc>
7943 </attribute>
7944
7945 <attribute name="state" type="MediaState" readonly="yes">
7946 <desc>
7947 Current media state. Inspect <link to="MediaState"/> values for details.
7948
7949 Reading this attribute may take long time because a new accessibility
7950 check of the storage unit is performed every time the attribute is read.
7951 This check may cause a significant delay if the storage unit of the
7952 given medium is, for example, a file located on a network share which is
7953 not currently accessible due to connectivity problems -- the call will
7954 not return until a timeout interval defined by the host OS for this
7955 operation expires.
7956
7957 If the last known state of the medium is <link to="MediaState_Created"/>
7958 and the accessibility check fails then the state would be set to
7959 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7960 may be used to get more details about the failure. If the state of the
7961 medium is <link to="MediaState_LockedRead"/> or
7962 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7963 non-null value of <link to="#lastAccessError"/> will indicate a failed
7964 accessibility check in this case.
7965
7966 Note that not all media states are applicable to certain media types.
7967 For example, states <link to="MediaState_NotCreated"/>,
7968 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7969 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
7970 IFloppyImage media.
7971 </desc>
7972 </attribute>
7973
7974 <attribute name="location" type="wstring">
7975 <desc>
7976 Location of the storage unit holding media data.
7977
7978 The format of the location string is media type specific. For media
7979 types that use regular files in a host's file system, the location
7980 string is just a full file name.
7981
7982 Some media types may support changing the storage unit location by
7983 simply changing the value of this property. If this operation is not
7984 supported, the implementation will return E_NOTIMPL in attempt to set
7985 this attribute's value.
7986
7987 When setting a value of the location attribute which is a regular file
7988 in the host's file system, the given file name may be either relative to
7989 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7990 absolute. Note that if the given location specification does not contain
7991 the file extension part then a proper default extension will be
7992 automatically appended by the implementation depending on the media type.
7993 </desc>
7994 </attribute>
7995
7996 <attribute name="name" type="wstring" readonly="yes">
7997 <desc>
7998 Name of the storage unit holding media data.
7999
8000 The returned string is a short version of the <link to="#location"/>
8001 attribute that is suitable for representing the medium in situations
8002 where the full location specification is too long (such as lists
8003 and comboboxes in GUI frontends). This string is also used by frontends
8004 to sort the media list alphabetically when needed.
8005
8006 For example, for locations that are regular files in the host's file
8007 system, the value of this attribute is just a file name (+ extension),
8008 without the path specification.
8009
8010 Note that as opposed to the <link to="#location"/> attribute, the name
8011 attribute will not necessary be unique for a list of media of the
8012 given type and format.
8013 </desc>
8014 </attribute>
8015
8016 <attribute name="size" type="unsigned long long" readonly="yes">
8017 <desc>
8018 Physical size of the storage unit used to hold media data (in bytes).
8019
8020 <note>
8021 For media whose <link to="#state"/> is <link
8022 to="MediaState_Inaccessible"/>, the value of this property is the
8023 last known size. For <link to="MediaState_NotCreated"/> media,
8024 the returned value is zero.
8025 </note>
8026 </desc>
8027 </attribute>
8028
8029 <attribute name="lastAccessError" type="wstring" readonly="yes">
8030 <desc>
8031 Text message that represents the result of the last accessibility
8032 check.
8033
8034 Accessibility checks are performed each time the <link to="#state"/>
8035 attribute is read. A @c null string is returned if the last
8036 accessibility check was successful. A non-null string indicates a
8037 failure and should normally describe a reason of the failure (for
8038 example, a file read error).
8039 </desc>
8040 </attribute>
8041
8042 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
8043 <desc>
8044 Array of UUIDs of all machines this medium is attached to.
8045
8046 A <tt>null</tt> array is returned if this medium is not attached to any
8047 machine or to any machine's snapshot.
8048
8049 <note>
8050 The returned array will include a machine even if this medium is not
8051 attached to that machine in the current state but attached to it in
8052 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8053 details.
8054 </note>
8055 </desc>
8056 </attribute>
8057
8058 <method name="getSnapshotIds">
8059 <desc>
8060 Returns an array of UUIDs of all snapshots of the given machine where
8061 this medium is attached to it.
8062
8063 If the medium is attached to the machine in the current state, then the
8064 first element in the array will always be the ID of the queried machine
8065 (i.e. the value equal to the @c machineId argument), followed by
8066 snapshot IDs (if any).
8067
8068 If the medium is not attached to the machine in the current state, then
8069 the array will contain only snapshot IDs.
8070
8071 The returned array may be <tt>null</tt> if this medium is not attached
8072 to the given machine at all, neither in the current state nor in one of
8073 snapshots.
8074 </desc>
8075 <param name="machineId" type="uuid" dir="in">
8076 <desc>
8077 UUID of the machine to query.
8078 </desc>
8079 </param>
8080 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
8081 <desc>
8082 Array of snapshot UUIDs of the given machine using this medium.
8083 </desc>
8084 </param>
8085 </method>
8086
8087 <method name="lockRead">
8088 <desc>
8089 Locks this medium for reading.
8090
8091 The read lock is shared: many clients can simultaneously lock the
8092 same media for reading unless it is already locked for writing (see
8093 <link to="#lockWrite"/>) in which case an error is returned.
8094
8095 When the medium is locked for reading, it cannot be modified
8096 from within VirtualBox. This means that any method that changes
8097 the properties of this medium or contents of the storage unit
8098 will return an error (unless explicitly stated otherwise) and
8099 that an attempt to start a virtual machine that wants to modify
8100 the medium will also fail.
8101
8102 When the virtual machine is started up, it locks for reading all
8103 media it uses in read-only mode. If some media cannot be locked
8104 for reading, the startup procedure will fail.
8105
8106 The medium locked for reading must be unlocked using the <link
8107 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8108 can be nested and must be followed by the same number of paired
8109 <link to="#unlockRead"/> calls.
8110
8111 This method sets the media state to <link
8112 to="MediaState_LockedRead"/> on success. The state prior to
8113 this call must be <link to="MediaState_Created"/>, <link
8114 to="MediaState_Inaccessible"/> or <link
8115 to="MediaState_LockedRead"/>. As you can see, inaccessible
8116 media can be locked too. This is not an error; this method
8117 performs a logical lock that prevents modifications of this
8118 media through the VirtualBox API, not a physical lock of the
8119 underlying storage unit.
8120
8121 This method returns the current state of the medium
8122 <b>before</b> the operation.
8123
8124 <result name="VBOX_E_INVALID_OBJECT_STATE">
8125 Invalid media state (e.g. not created, locked, inaccessible,
8126 creating, deleting).
8127 </result>
8128
8129 </desc>
8130 <param name="state" type="MediaState" dir="return">
8131 <desc>
8132 State of the medium after the operation.
8133 </desc>
8134 </param>
8135 </method>
8136
8137 <method name="unlockRead">
8138 <desc>
8139 Cancels the read lock previously set by <link to="#lockRead"/>.
8140
8141 Either on success or on failure, this method returns the current state
8142 of the medium <b>after</b> the operation.
8143
8144 See <link to="#lockRead"/> for more details.
8145
8146 <result name="VBOX_E_INVALID_OBJECT_STATE">
8147 Medium not locked for reading.
8148 </result>
8149
8150 </desc>
8151 <param name="state" type="MediaState" dir="return">
8152 <desc>
8153 State of the medium after the operation.
8154 </desc>
8155 </param>
8156 </method>
8157
8158 <method name="lockWrite">
8159 <desc>
8160 Locks this medium for writing.
8161
8162 The write lock, as opposed to <link to="#lockRead"/>, is
8163 exclusive: there may be only one client that holds a write lock
8164 and there may be no read locks while the write lock is held.
8165
8166 When the medium is locked for writing, it cannot be modified
8167 from within VirtualBox and it is not guaranteed that the values
8168 of its properties are up-to-date. Any method that changes the
8169 properties of this medium or contents of the storage unit will
8170 return an error ((unless explicitly stated otherwise) and an
8171 attempt to start a virtual machine that wants to modify or to
8172 read the medium will also fail.
8173
8174 When the virtual machine is started up, it locks for writing all
8175 media it uses to write data to. If some media cannot be locked
8176 for writing, the startup procedure will fail.
8177
8178 The medium locked for writing must be unlocked using the <link
8179 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8180 can <b>not</b> be nested and must be followed by a paired <link
8181 to="#unlockWrite"/> call.
8182
8183 This method sets the media state to <link
8184 to="MediaState_LockedWrite"/> on success. The state prior to
8185 this call must be <link to="MediaState_Created"/> or <link
8186 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8187 media can be locked too. This is not an error; this method
8188 performs a logical lock that prevents modifications of this
8189 media through the VirtualBox API, not a physical lock of the
8190 underlying storage unit.
8191
8192 Either on success or on failure, this method returns the current
8193 state of the medium <b>before</b> the operation.
8194
8195 <result name="VBOX_E_INVALID_OBJECT_STATE">
8196 Invalid media state (e.g. not created, locked, inaccessible,
8197 creating, deleting).
8198 </result>
8199
8200 </desc>
8201 <param name="state" type="MediaState" dir="return">
8202 <desc>
8203 State of the medium after the operation.
8204 </desc>
8205 </param>
8206 </method>
8207
8208 <method name="unlockWrite">
8209 <desc>
8210 Cancels the write lock previously set by <link to="#lockWrite"/>.
8211
8212 Either on success or on failure, this method returns the current
8213 state of the medium <b>after</b> the operation.
8214
8215 See <link to="#lockWrite"/> for more details.
8216
8217 <result name="VBOX_E_INVALID_OBJECT_STATE">
8218 Medium not locked for writing.
8219 </result>
8220
8221 </desc>
8222 <param name="state" type="MediaState" dir="return">
8223 <desc>
8224 State of the medium after the operation.
8225 </desc>
8226 </param>
8227 </method>
8228
8229 <method name="close">
8230 <desc>
8231 Closes this medium.
8232
8233 The hard disk must not be attached to any known virtual machine
8234 and must not have any known child hard disks, otherwise the
8235 operation will fail.
8236
8237 When the hard disk is successfully closed, it gets removed from
8238 the list of remembered hard disks, but its storage unit is not
8239 deleted. In particular, this means that this hard disk can be
8240 later opened again using the <link
8241 to="IVirtualBox::openHardDisk"/> call.
8242
8243 Note that after this method successfully returns, the given hard
8244 disk object becomes uninitialized. This means that any attempt
8245 to call any of its methods or attributes will fail with the
8246 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8247
8248 <result name="VBOX_E_INVALID_OBJECT_STATE">
8249 Invalid media state (other than not created, created or
8250 inaccessible).
8251 </result>
8252 <result name="VBOX_E_OBJECT_IN_USE">
8253 Medium attached to virtual machine.
8254 </result>
8255 <result name="VBOX_E_FILE_ERROR">
8256 Settings file not accessible.
8257 </result>
8258 <result name="VBOX_E_XML_ERROR">
8259 Could not parse the settings file.
8260 </result>
8261
8262 </desc>
8263 </method>
8264
8265 </interface>
8266
8267
8268 <!--
8269 // IHardDisk
8270 /////////////////////////////////////////////////////////////////////////
8271 -->
8272
8273 <enum
8274 name="HardDiskType"
8275 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8276 >
8277 <desc>
8278 Virtual hard disk type.
8279 <see>IHardDisk</see>
8280 </desc>
8281
8282 <const name="Normal" value="0">
8283 <desc>
8284 Normal hard disk (attached directly or indirectly, preserved
8285 when taking snapshots).
8286 </desc>
8287 </const>
8288 <const name="Immutable" value="1">
8289 <desc>
8290 Immutable hard disk (attached indirectly, changes are wiped out
8291 after powering off the virtual machine).
8292 </desc>
8293 </const>
8294 <const name="Writethrough" value="2">
8295 <desc>
8296 Write through hard disk (attached directly, ignored when
8297 taking snapshots).
8298 </desc>
8299 </const>
8300 </enum>
8301
8302 <interface
8303 name="IHardDiskAttachment" extends="$unknown"
8304 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8305 wsmap="struct"
8306 >
8307 <desc>
8308 The IHardDiskAttachment interface represents a hard disk attachment of a
8309 virtual machine.
8310
8311 Every hard disk attachment specifies a slot of the virtual hard disk
8312 controller and a virtual hard disk attached to this slot.
8313
8314 The array of hard disk attachments is returned by
8315 <link to="IMachine::hardDiskAttachments"/>.
8316 </desc>
8317 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8318 <desc>Hard disk object associated with this attachment.</desc>
8319 </attribute>
8320
8321 <attribute name="bus" type="StorageBus" readonly="yes">
8322 <desc>Interface bus of this attachment.</desc>
8323 </attribute>
8324
8325 <attribute name="channel" type="long" readonly="yes">
8326 <desc>Channel number of this attachment.</desc>
8327 </attribute>
8328
8329 <attribute name="device" type="long" readonly="yes">
8330 <desc>Device slot number of this attachment.</desc>
8331 </attribute>
8332
8333 </interface>
8334
8335 <interface
8336 name="IHardDisk" extends="IMedium"
8337 uuid="a4d391a5-e2b1-474d-824e-2ff668a92d58"
8338 wsmap="managed"
8339 >
8340 <desc>
8341 The IHardDisk interface represents a virtual hard disk drive
8342 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8343
8344 Virtual hard disk objects virtualize the hard disk hardware and look like
8345 regular hard disks for the guest OS running inside the virtual machine.
8346
8347 <h3>Hard Disk Types</h3>
8348
8349 There are three types of hard disks:
8350 <link to="HardDiskType_Normal">Normal</link>,
8351 <link to="HardDiskType_Immutable">Immutable</link> and
8352 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8353 hard disk defines how the hard disk is attached to a virtual machine and
8354 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8355 machine with the attached hard disk is taken. The type of the hard disk is
8356 defined by the <link to="#type"/> attribute.
8357
8358 All hard disks can be also divided in two big groups: <i>base</i> hard
8359 disks and <i>differencing</i> hard disks. A base hard disk contains all
8360 sectors of the hard disk data in its storage unit and therefore can be
8361 used independently. On the contrary, a differencing hard disk contains
8362 only some part of the hard disk data (a subset of sectors) and needs
8363 another hard disk to get access to the missing sectors of data. This
8364 another hard disk is called a <i>parent</i> hard disk and defines a hard
8365 disk to which this differencing hard disk is known to be <i>linked to</i>.
8366 The parent hard disk may be itself a differencing hard disk. This
8367 way, differencing hard disks form a linked hard disk chain. This chain
8368 always ends with the base hard disk which is sometimes referred to as the
8369 root hard disk of this chain. Note that several differencing hard disks
8370 may be linked to the same parent hard disk. This way, all known hard disks
8371 form a hard disk tree which is based on their parent-child relationship.
8372
8373 Differencing hard disks can be distinguished from base hard disks by
8374 querying the <link to="#parent"/> attribute: base hard disks do not have
8375 parents they would depend on, so the value of this attribute is always
8376 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8377 the hard disk tree (from the child hard disk to its parent). It is also
8378 possible to walk down the tree using the <link to="#children"/>
8379 attribute.
8380
8381 Note that the type of all differencing hard disks is
8382 <link to="HardDiskType_Normal">Normal</link>; all other values are
8383 meaningless for them. Base hard disks may be of any type.
8384
8385 <h3>Creating Hard Disks</h3>
8386
8387 New base hard disks are created using
8388 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8389 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8390 disks are usually implicitly created by VirtualBox when needed but may
8391 also be created explicitly using <link to="#createDiffStorage"/>.
8392
8393 After the hard disk is successfully created (including the storage unit)
8394 or opened, it becomes a known hard disk (remembered in the internal media
8395 registry). Known hard disks can be attached to a virtual machine, accessed
8396 through <link to="IVirtualBox::getHardDisk"/> and
8397 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8398 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8399
8400 The following methods, besides <link to="IMedium::close"/>,
8401 automatically remove the hard disk from the media registry:
8402 <ul>
8403 <li><link to="#deleteStorage"/></li>
8404 <li><link to="#mergeTo"/></li>
8405 </ul>
8406
8407 If the storage unit of the hard disk is a regular file in the host's
8408 file system then the rules stated in the description of the
8409 <link to="IMedium::location"/> attribute apply when setting its value. In
8410 addition, a plain file name without any path may be given, in which case
8411 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8412 folder</link> will be prepended to it.
8413
8414 <h4>Automatic composition of the file name part</h4>
8415
8416 Another extension to the <link to="IMedium::location"/> attribute is that
8417 there is a possibility to cause VirtualBox to compose a unique value for
8418 the file name part of the location using the UUID of the hard disk. This
8419 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8420 e.g. before the storage unit is created, and works as follows. You set the
8421 value of the <link to="IMedium::location"/> attribute to a location
8422 specification which only contains the path specification but not the file
8423 name part and ends with either a forward slash or a backslash character.
8424 In response, VirtualBox will generate a new UUID for the hard disk and
8425 compose the file name using the following pattern:
8426 <pre>
8427 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8428 </pre>
8429 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8430 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8431 is the default extension for the storage format of this hard disk. After
8432 that, you may call any of the methods that create a new hard disk storage
8433 unit and they will use the generated UUID and file name.
8434
8435 <h3>Attaching Hard Disks</h3>
8436
8437 Hard disks are attached to virtual machines using the
8438 <link to="IMachine::attachHardDisk"/> method and detached using the
8439 <link to="IMachine::detachHardDisk"/> method. Depending on their
8440 <link to="#type"/>, hard disks are attached either
8441 <i>directly</i> or <i>indirectly</i>.
8442
8443 When a hard disk is being attached directly, it is associated with the
8444 virtual machine and used for hard disk operations when the machine is
8445 running. When a hard disk is being attached indirectly, a new differencing
8446 hard disk linked to it is implicitly created and this differencing hard
8447 disk is associated with the machine and used for hard disk operations.
8448 This also means that if <link to="IMachine::attachHardDisk"/> performs
8449 a direct attachment then the same hard disk will be returned in response
8450 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8451 an indirect attachment is performed then
8452 <link to="IMachine::getHardDisk"/> will return the implicitly created
8453 differencing hard disk, not the original one passed to <link
8454 to="IMachine::attachHardDisk"/>. The following table shows the
8455 dependency of the attachment type on the hard disk type:
8456
8457 <table>
8458 <tr>
8459 <th>Hard Disk Type</th>
8460 <th>Direct or Indirect?</th>
8461 </tr>
8462 <tr>
8463 <td>Normal (Base)</td>
8464 <td>
8465 Normal base hard disks that do not have children (i.e. differencing
8466 hard disks linked to them) and that are not already attached to
8467 virtual machines in snapshots are attached <b>directly</b>.
8468 Otherwise, they are attached <b>indirectly</b> because having
8469 dependent children or being part of the snapshot makes it impossible
8470 to modify hard disk contents without breaking the integrity of the
8471 dependent party. The <link to="#readOnly"/> attribute allows to
8472 quickly determine the kind of the attachment for the given hard
8473 disk. Note that if a normal base hard disk is to be indirectly
8474 attached to a virtual machine with snapshots then a special
8475 procedure called <i>smart attachment</i> is performed (see below).
8476 </td>
8477 </tr>
8478 <tr>
8479 <td>Normal (Differencing)</td>
8480 <td>
8481 Differencing hard disks are like normal base hard disks: attached
8482 <b>directly</b> if they do not have children and are not attached to
8483 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8484 that the smart attachment procedure is never performed for
8485 differencing hard disks.
8486 </td>
8487 </tr>
8488 <tr>
8489 <td>Immutable</td>
8490 <td>
8491 Immutable hard disks are always attached <b>indirectly</b> because
8492 they are designed to be non-writable. If an immutable hard disk is
8493 attached to a virtual machine with snapshots then a special
8494 procedure called smart attachment is performed (see below).
8495 </td>
8496 </tr>
8497 <tr>
8498 <td>Writethrough</td>
8499 <td>
8500 Writethrough hard disks are always attached <b>directly</b>, also as
8501 designed. This also means that writethrough hard disks cannot have
8502 other hard disks linked to them at all.
8503 </td>
8504 </tr>
8505 </table>
8506
8507 Note that the same hard disk, regardless of its type, may be attached to
8508 more than one virtual machine at a time. In this case, the machine that is
8509 started first gains exclusive access to the hard disk and attempts to
8510 start other machines having this hard disk attached will fail until the
8511 first machine is powered down.
8512
8513 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8514 that the given hard disk remains associated with the given machine after a
8515 successful <link to="IMachine::detachHardDisk"/> call until
8516 <link to="IMachine::saveSettings"/> is called to save all changes to
8517 machine settings to disk. This deferring is necessary to guarantee that
8518 the hard disk configuration may be restored at any time by a call to
8519 <link to="IMachine::discardSettings"/> before the settings
8520 are saved (committed).
8521
8522 Note that if <link to="IMachine::discardSettings"/> is called after
8523 indirectly attaching some hard disks to the machine but before a call to
8524 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8525 all differencing hard disks implicitly created by
8526 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8527 Such implicitly created hard disks will also be immediately deleted when
8528 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8529 call if it is made before <link to="IMachine::saveSettings"/>. This
8530 implicit deletion is safe because newly created differencing hard
8531 disks do not contain any user data.
8532
8533 However, keep in mind that detaching differencing hard disks that were
8534 implicitly created by <link to="IMachine::attachHardDisk"/>
8535 before the last <link to="IMachine::saveSettings"/> call will
8536 <b>not</b> implicitly delete them as they may already contain some data
8537 (for example, as a result of virtual machine execution). If these hard
8538 disks are no more necessary, the caller can always delete them explicitly
8539 using <link to="#deleteStorage"/> after they are actually de-associated
8540 from this machine by the <link to="IMachine::saveSettings"/> call.
8541
8542 <h3>Smart Attachment</h3>
8543
8544 When normal base or immutable hard disks are indirectly attached to a
8545 virtual machine then some additional steps are performed to make sure the
8546 virtual machine will have the most recent "view" of the hard disk being
8547 attached. These steps include walking through the machine's snapshots
8548 starting from the current one and going through ancestors up to the first
8549 snapshot. Hard disks attached to the virtual machine in all
8550 of the encountered snapshots are checked whether they are descendants of
8551 the given normal base or immutable hard disk. The first found child (which
8552 is the differencing hard disk) will be used instead of the normal base or
8553 immutable hard disk as a parent for creating a new differencing hard disk
8554 that will be actually attached to the machine. And only if no descendants
8555 are found or if the virtual machine does not have any snapshots then the
8556 normal base or immutable hard disk will be used itself as a parent for
8557 this differencing hard disk.
8558
8559 It is easier to explain what smart attachment does using the
8560 following example:
8561 <pre>
8562BEFORE attaching B.vdi: AFTER attaching B.vdi:
8563
8564Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8565 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8566 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8567 Snapshot 4 (none) Snapshot 4 (none)
8568 CurState (none) CurState (D3->D2.vdi)
8569
8570 NOT
8571 ...
8572 CurState (D3->B.vdi)
8573 </pre>
8574 The first column is the virtual machine configuration before the base hard
8575 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8576 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8577 mean that the hard disk that is actually attached to the machine is a
8578 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8579 another hard disk, <tt>B.vdi</tt>.
8580
8581 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8582 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8583 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8584 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8585 it cannot be attached directly and needs an indirect attachment (i.e.
8586 implicit creation of a new differencing hard disk). Due to the smart
8587 attachment procedure, the new differencing hard disk
8588 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8589 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8590 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8591 machine.
8592
8593 Note that if there is more than one descendant hard disk of the given base
8594 hard disk found in a snapshot, and there is an exact device, channel and
8595 bus match, then this exact match will be used. Otherwise, the youngest
8596 descendant will be picked up.
8597
8598 There is one more important aspect of the smart attachment procedure which
8599 is not related to snapshots at all. Before walking through the snapshots
8600 as described above, the backup copy of the current list of hard disk
8601 attachment is searched for descendants. This backup copy is created when
8602 the hard disk configuration is changed for the first time after the last
8603 <link to="IMachine::saveSettings"/> call and used by
8604 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8605 changes. When such a descendant is found in this backup copy, it will be
8606 simply re-attached back, without creating a new differencing hard disk for
8607 it. This optimization is necessary to make it possible to re-attach the
8608 base or immutable hard disk to a different bus, channel or device slot
8609 without losing the contents of the differencing hard disk actually
8610 attached to the machine in place of it.
8611 </desc>
8612
8613 <attribute name="format" type="wstring" readonly="yes">
8614 <desc>
8615 Storage format of this hard disk.
8616
8617 The value of this attribute is a string that specifies a backend used to
8618 store hard disk data. The storage format is defined when you create a
8619 new hard disk or automatically detected when you open an existing hard
8620 disk medium, and cannot be changed later.
8621
8622 The list of all storage formats supported by this VirtualBox
8623 installation can be obtained using
8624 <link to="ISystemProperties::hardDiskFormats"/>.
8625 </desc>
8626 </attribute>
8627
8628 <attribute name="type" type="HardDiskType">
8629 <desc>
8630 Type (role) of this hard disk.
8631
8632 The following constraints apply when changing the value of this
8633 attribute:
8634 <ul>
8635 <li>If a hard disk is attached to a virtual machine (either in the
8636 current state or in one of the snapshots), its type cannot be
8637 changed.
8638 </li>
8639 <li>As long as the hard disk has children, its type cannot be set
8640 to <link to="HardDiskType_Writethrough"/>.
8641 </li>
8642 <li>The type of all differencing hard disks is
8643 <link to="HardDiskType_Normal"/> and cannot be changed.
8644 </li>
8645 </ul>
8646
8647 The type of a newly created or opened hard disk is set to
8648 <link to="HardDiskType_Normal"/>.
8649 </desc>
8650 </attribute>
8651
8652 <attribute name="parent" type="IHardDisk" readonly="yes">
8653 <desc>
8654 Parent of this hard disk (a hard disk this hard disk is directly based
8655 on).
8656
8657 Only differencing hard disks have parents. For base (non-differencing)
8658 hard disks, <tt>null</tt> is returned.
8659 </desc>
8660 </attribute>
8661
8662 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8663 <desc>
8664 Children of this hard disk (all differencing hard disks directly based
8665 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8666 does not have any children.
8667 </desc>
8668 </attribute>
8669
8670 <attribute name="root" type="IHardDisk" readonly="yes">
8671 <desc>
8672 Root hard disk of this hard disk.
8673
8674 If this is a differencing hard disk, its root hard disk is the base hard
8675 disk the given hard disk branch starts from. For all other types of hard
8676 disks, this property returns the hard disk object itself (i.e. the same
8677 object this property is read on).
8678 </desc>
8679 </attribute>
8680
8681 <attribute name="readOnly" type="boolean" readonly="yes">
8682 <desc>
8683 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8684 otherwise.
8685
8686 A hard disk is considered to be read-only when its contents cannot be
8687 modified without breaking the integrity of other parties that depend on
8688 this hard disk such as its child hard disks or snapshots of virtual
8689 machines where this hard disk is attached to these machines. If there
8690 are no children and no such snapshots then there is no dependency and
8691 the hard disk is not read-only.
8692
8693 The value of this attribute can be used to determine the kind of the
8694 attachment that will take place when attaching this hard disk to a
8695 virtual machine. If the value is <tt>false</tt> then the hard disk will
8696 be attached directly. If the value is <tt>true</tt> then the hard disk
8697 will be attached indirectly by creating a new differencing child hard
8698 disk for that. See the interface description for more information.
8699
8700 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8701 disks are always read-only while all
8702 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8703 always not.
8704
8705 <note>
8706 The read-only condition represented by this attribute is related to
8707 the hard disk type and usage, not to the current
8708 <link to="IMedium::state">media state</link> and not to the read-only
8709 state of the storage unit.
8710 </note>
8711 </desc>
8712 </attribute>
8713
8714 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8715 <desc>
8716 Logical size of this hard disk (in megabytes), as reported to the
8717 guest OS running inside the virtual machine this disk is
8718 attached to. The logical size is defined when the hard disk is created
8719 and cannot be changed later.
8720
8721 <note>
8722 Reading this property on a differencing hard disk will return the size
8723 of its <link to="#root"/> hard disk.
8724 </note>
8725 <note>
8726 For hard disks whose state is <link to="#state"/> is <link
8727 to="MediaState_Inaccessible"/>, the value of this property is the
8728 last known logical size. For <link to="MediaState_NotCreated"/> hard
8729 disks, the returned value is zero.
8730 </note>
8731 </desc>
8732 </attribute>
8733
8734 <attribute name="autoReset" type="boolean">
8735 <desc>
8736 Whether this differencing hard disk will be automatically reset each
8737 time a virtual machine it is attached to is powered up.
8738
8739 See <link to="#reset()"/> for more information about resetting
8740 differencing hard disks.
8741
8742 <note>
8743 Reading this property on a base (non-differencing) hard disk will
8744 always <tt>false</tt>. Changing the value of this property in this
8745 case is not supported.
8746 </note>
8747
8748 <result name="VBOX_E_NOT_SUPPORTED">
8749 This is not a differencing hard disk (when changing the attribute
8750 value).
8751 </result>
8752 </desc>
8753 </attribute>
8754
8755 <!-- storage methods -->
8756
8757 <method name="getProperty">
8758 <desc>
8759 Returns the value of the custom hard disk property with the given name.
8760
8761 The list of all properties supported by the given hard disk format can
8762 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8763
8764 Note that if this method returns a <tt>null</tt> @a value, the requested
8765 property is supported but currently not assigned any value.
8766
8767 <result name="VBOX_E_OBJECT_NOT_FOUND">
8768 Requested property does not exist (not supported by the format).
8769 </result>
8770 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8771 </desc>
8772 <param name="name" type="wstring" dir="in">
8773 <desc>Name of the property to get.</desc>
8774 </param>
8775 <param name="value" type="wstring" dir="return">
8776 <desc>Current property value.</desc>
8777 </param>
8778 </method>
8779
8780 <method name="setProperty">
8781 <desc>
8782 Sets the value of the custom hard disk property with the given name.
8783
8784 The list of all properties supported by the given hard disk format can
8785 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8786
8787 Note that setting the property value to <tt>null</tt> is equivalent to
8788 deleting the existing value. A default value (if it is defined for this
8789 property) will be used by the format backend in this case.
8790
8791 <result name="VBOX_E_OBJECT_NOT_FOUND">
8792 Requested property does not exist (not supported by the format).
8793 </result>
8794 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8795 </desc>
8796 <param name="name" type="wstring" dir="in">
8797 <desc>Name of the property to set.</desc>
8798 </param>
8799 <param name="value" type="wstring" dir="in">
8800 <desc>Property value to set.</desc>
8801 </param>
8802 </method>
8803
8804 <method name="getProperties">
8805 <desc>
8806 Returns values for a group of properties in one call.
8807
8808 The names of the properties to get are specified using the @a names
8809 argument which is a list of comma-separated property names or
8810 <tt>null</tt> if all properties are to be returned. Note that currently
8811 the value of this argument is ignored and the method always returns all
8812 existing properties.
8813
8814 The list of all properties supported by the given hard disk format can
8815 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8816
8817 The method returns two arrays, the array of property names corresponding
8818 to the @a names argument and the current values of these properties.
8819 Both arrays have the same number of elements with each elemend at the
8820 given index in the first array corresponds to an element at the same
8821 index in the second array.
8822
8823 Note that for properties that do not have assigned values,
8824 <tt>null</tt> is returned at the appropriate index in the
8825 @a returnValues array.
8826
8827 </desc>
8828 <param name="names" type="wstring" dir="in">
8829 <desc>
8830 Names of properties to get.
8831 </desc>
8832 </param>
8833 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8834 <desc>Names of returned properties.</desc>
8835 </param>
8836 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8837 <desc>Values of returned properties.</desc>
8838 </param>
8839 </method>
8840
8841 <method name="setProperties">
8842 <desc>
8843 Sets values for a group of properties in one call.
8844
8845 The names of the properties to set are passed in the @a names
8846 array along with the new values for them in the @a values array. Both
8847 arrays have the same number of elements with each elemend at the given
8848 index in the first array corresponding to an element at the same index
8849 in the second array.
8850
8851 If there is at least one property name in @a names that is not valid,
8852 the method will fail before changing the values of any other properties
8853 from the @a names array.
8854
8855 Using this method over <link to="#setProperty"/> is preferred if you
8856 need to set several properties at once since it will result into less
8857 IPC calls.
8858
8859 The list of all properties supported by the given hard disk format can
8860 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8861
8862 Note that setting the property value to <tt>null</tt> is equivalent to
8863 deleting the existing value. A default value (if it is defined for this
8864 property) will be used by the format backend in this case.
8865 </desc>
8866 <param name="names" type="wstring" safearray="yes" dir="in">
8867 <desc>Names of properties to set.</desc>
8868 </param>
8869 <param name="values" type="wstring" safearray="yes" dir="in">
8870 <desc>Values of properties to set.</desc>
8871 </param>
8872 </method>
8873
8874 <!-- storage methods -->
8875
8876 <method name="createDynamicStorage">
8877 <desc>
8878 Starts creating a dynamically expanding hard disk storage unit in the
8879 background. The previous storage unit created for this object, if
8880 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8881 the operation will fail.
8882
8883 Before the operation starts, the hard disk is placed in
8884 <link to="MediaState_Creating"/> state. If the create operation
8885 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8886 state.
8887
8888 After the returned progress object reports that the operation has
8889 successfully completed, the media state will be set to <link
8890 to="MediaState_Created"/>, the hard disk will be remembered by this
8891 VirtualBox installation and may be attached to virtual machines.
8892
8893 <result name="VBOX_E_NOT_SUPPORTED">
8894 Dynamic storage creation operation is not supported. See <link
8895 to="IHardDiskFormat::capabilities"/>.
8896 </result>
8897 </desc>
8898 <param name="logicalSize" type="unsigned long long" dir="in">
8899 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8900 </param>
8901 <param name="progress" type="IProgress" dir="return">
8902 <desc>Progress object to track the operation completion.</desc>
8903 </param>
8904 </method>
8905
8906 <method name="createFixedStorage">
8907 <desc>
8908 Starts creating a fixed-size hard disk storage unit in the background.
8909 The previous storage unit created for this object, if
8910 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8911 the operation will fail.
8912
8913 Before the operation starts, the hard disk is placed to
8914 <link to="MediaState_Creating"/> state. If the create operation
8915 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8916 state.
8917
8918 After the returned progress object reports that the operation is
8919 successfully complete, the media state will be set to <link
8920 to="MediaState_Created"/>, the hard disk will be remembered by this
8921 VirtualBox installation and may be attached to virtual machines.
8922
8923 <result name="VBOX_E_NOT_SUPPORTED">
8924 Fixed storage creation operation is not supported. See
8925 <link to="IHardDiskFormat::capabilities"/>.
8926 </result>
8927 </desc>
8928 <param name="logicalSize" type="unsigned long long" dir="in">
8929 <desc>Logical size of the hard disk in megabytes.</desc>
8930 </param>
8931 <param name="progress" type="IProgress" dir="return">
8932 <desc>Progress object to track the operation completion.</desc>
8933 </param>
8934 </method>
8935
8936 <method name="deleteStorage">
8937 <desc>
8938 Starts deleting the storage unit of this hard disk.
8939
8940 The hard disk must not be attached to any known virtual machine and must
8941 not have any known child hard disks, otherwise the operation will fail.
8942 It will also fail if there is no storage unit to delete or if deletion
8943 is already in progress, or if the hard disk is being in use (locked for
8944 read or for write) or inaccessible. Therefore, the only valid state for
8945 this operation to succeed is <link to="MediaState_Created"/>.
8946
8947 Before the operation starts, the hard disk is placed to
8948 <link to="MediaState_Deleting"/> state and gets removed from the list
8949 of remembered hard disks (media registry). If the delete operation
8950 fails, the media will be remembered again and placed back to
8951 <link to="MediaState_Created"/> state.
8952
8953 After the returned progress object reports that the operation is
8954 complete, the media state will be set to
8955 <link to="MediaState_NotCreated"/> and you will be able to use one of
8956 the storage creation methods to create it again.
8957
8958 <see>#close()</see>
8959
8960 <result name="VBOX_E_OBJECT_IN_USE">
8961 Hard disk is attached to a virtual machine.
8962 </result>
8963 <result name="VBOX_E_NOT_SUPPORTED">
8964 Storage deletion is not allowed because neither of storage creation
8965 operations are supported. See
8966 <link to="IHardDiskFormat::capabilities"/>.
8967 </result>
8968
8969 <note>
8970 If the deletion operation fails, it is not guaranteed that the storage
8971 unit still exists. You may check the <link to="IMedium::state"/> value
8972 to answer this question.
8973 </note>
8974 </desc>
8975 <param name="progress" type="IProgress" dir="return">
8976 <desc>Progress object to track the operation completion.</desc>
8977 </param>
8978 </method>
8979
8980 <!-- diff methods -->
8981
8982 <method name="createDiffStorage">
8983 <desc>
8984 Starts creating an empty differencing storage unit based on this hard
8985 disk in the format and at the location defined by the @a target
8986 argument.
8987
8988 The target hard disk must be in <link to="MediaState_NotCreated"/>
8989 state (i.e. must not have an existing storage unit). Upon successful
8990 completion, this operation will set the type of the target hard disk to
8991 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8992 represent the differencing hard disk data in the given format (according
8993 to the storage format of the target object).
8994
8995 After the returned progress object reports that the operation is
8996 successfully complete, the target hard disk gets remembered by this
8997 VirtualBox installation and may be attached to virtual machines.
8998
8999 <note>
9000 The hard disk will be set to <link to="MediaState_LockedRead"/>
9001 state for the duration of this operation.
9002 </note>
9003 <result name="VBOX_E_OBJECT_IN_USE">
9004 Hard disk not in NotCreated state.
9005 </result>
9006 </desc>
9007 <param name="target" type="IHardDisk" dir="in">
9008 <desc>Target hard disk.</desc>
9009 </param>
9010 <param name="progress" type="IProgress" dir="return">
9011 <desc>Progress object to track the operation completion.</desc>
9012 </param>
9013 </method>
9014
9015 <method name="mergeTo">
9016 <desc>
9017 Starts merging the contents of this hard disk and all intermediate
9018 differencing hard disks in the chain to the given target hard disk.
9019
9020 The target hard disk must be either a descendant of this hard disk or
9021 its ancestor (otherwise this method will immediately return a failure).
9022 It follows that there are two logical directions of the merge operation:
9023 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9024 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9025 chain:
9026
9027 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9028
9029 Here, calling this method on the <tt>Base</tt> hard disk object with
9030 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9031 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9032 merge. Note that in both cases the contents of the resulting hard disk
9033 will be the same, the only difference is the hard disk object that takes
9034 the result of the merge operation. In case of the forward merge in the
9035 above example, the result will be written to <tt>Diff_2</tt>; in case of
9036 the backward merge, the result will be written to <tt>Base</tt>. In
9037 other words, the result of the operation is always stored in the target
9038 hard disk.
9039
9040 Upon successful operation completion, the storage units of all hard
9041 disks in the chain between this (source) hard disk and the target hard
9042 disk, including the source hard disk itself, will be automatically
9043 deleted and the relevant hard disk objects (including this hard disk)
9044 will become uninitialized. This means that any attempt to call any of
9045 their methods or attributes will fail with the
9046 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9047 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9048 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9049 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9050 disk itself since it will no longer be based on any other hard disk.
9051
9052 Considering the above, all of the following conditions must be met in
9053 order for the merge operation to succeed:
9054 <ul>
9055 <li>
9056 Neither this (source) hard disk nor any intermediate
9057 differencing hard disk in the chain between it and the target
9058 hard disk is attached to any virtual machine.
9059 </li>
9060 <li>
9061 Neither the source hard disk nor the target hard disk is an
9062 <link to="HardDiskType_Immutable"/> hard disk.
9063 </li>
9064 <li>
9065 The part of the hard disk tree from the source hard disk to the
9066 target hard disk is a linear chain, i.e. all hard disks in this
9067 chain have exactly one child which is the next hard disk in this
9068 chain. The only exception from this rule is the target hard disk in
9069 the forward merge operation; it is allowed to have any number of
9070 child hard disks because the merge operation will hot change its
9071 logical contents (as it is seen by the guest OS or by children).
9072 </li>
9073 <li>
9074 None of the involved hard disks are in
9075 <link to="MediaState_LockedRead"/> or
9076 <link to="MediaState_LockedWrite"/> state.
9077 </li>
9078 </ul>
9079
9080 <note>
9081 This (source) hard disk and all intermediates will be placed to <link
9082 to="MediaState_Deleting"/> state and the target hard disk will be
9083 placed to <link to="MediaState_LockedWrite"/> state and for the
9084 duration of this operation.
9085 </note>
9086 </desc>
9087 <param name="targetId" type="uuid" dir="in">
9088 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9089 </param>
9090 <param name="progress" type="IProgress" dir="return">
9091 <desc>Progress object to track the operation completion.</desc>
9092 </param>
9093 </method>
9094
9095 <!-- clone methods -->
9096
9097 <method name="cloneTo">
9098 <desc>
9099 Starts creating a clone of this hard disk in the format and at the
9100 location defined by the @a target argument.
9101
9102 The target hard disk must be in <link to="MediaState_NotCreated"/>
9103 state (i.e. must not have an existing storage unit). Upon successful
9104 completion, the cloned hard disk will contain exactly the same sector
9105 data as the hard disk being cloned, except that a new UUID for the clone
9106 will be randomly generated.
9107
9108 After the returned progress object reports that the operation is
9109 successfully complete, the target hard disk gets remembered by this
9110 VirtualBox installation and may be attached to virtual machines.
9111
9112 <note>
9113 If the cloned hard disk is a differencing hard disk, it will inherit
9114 parent dependency of the original hard disk.
9115 </note>
9116 <note>
9117 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9118 state for the duration of this operation.
9119 </note>
9120 </desc>
9121 <param name="target" type="IHardDisk" dir="in">
9122 <desc>Target hard disk.</desc>
9123 </param>
9124 <param name="progress" type="IProgress" dir="return">
9125 <desc>Progress object to track the operation completion.</desc>
9126 </param>
9127 </method>
9128
9129 <method name="flattenTo">
9130 <desc>
9131 Starts creating a deep (independent) clone of this hard disk in the
9132 format and at the location defined by the @a target argument.
9133
9134 This operation is similar to <link to="#cloneTo"/> except that when
9135 applied to a differencing hard disk, it will also copy missing hard disk
9136 data from all parent hard disks it is linked to. This will make the
9137 created clone an independent base hard disk that contains all hard disk
9138 data and does not need any other hard disks to operate.
9139
9140 After the returned progress object reports that the operation is
9141 successfully complete, the target hard disk gets remembered by this
9142 VirtualBox installation and may be attached to virtual machines.
9143
9144 <note>
9145 For base hard disks, this operation is identical to
9146 <link to="#cloneTo"/>.
9147 </note>
9148 <note>
9149 This hard disk and all its parent hard disks will be placed to <link
9150 to="MediaState_LockedRead"/> state for the duration of this
9151 operation.
9152 </note>
9153 </desc>
9154 <param name="target" type="IHardDisk" dir="in">
9155 <desc>Target hard disk.</desc>
9156 </param>
9157 <param name="progress" type="IProgress" dir="return">
9158 <desc>Progress object to track the operation completion.</desc>
9159 </param>
9160 </method>
9161
9162 <!-- other methods -->
9163
9164 <method name="compact">
9165 <desc>
9166 Starts compacting of this hard disk. This means that the disk is
9167 transformed into a possibly more compact storage representation.
9168 This potentially creates temporary images, which can require a
9169 substantial amount of additional disk space.
9170
9171 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9172 state and all its parent hard disks (if any) will be placed to
9173 <link to="MediaState_LockedRead"/> state for the duration of this
9174 operation.
9175 </desc>
9176 <param name="progress" type="IProgress" dir="return">
9177 <desc>Progress object to track the operation completion.</desc>
9178 </param>
9179 </method>
9180
9181 <method name="reset">
9182 <desc>
9183 Starts erasing the contents of this differencing hard disk.
9184
9185 This operation will reset the differencing hard disk to its initial
9186 state when it does not contain any sector data and any read operation is
9187 redirected to its parent hard disk.
9188
9189 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9190 for the duration of this operation.
9191
9192 <result name="VBOX_E_NOT_SUPPORTED">
9193 This is not a differencing hard disk.
9194 </result>
9195 <result name="VBOX_E_INVALID_OBJECT_STATE">
9196 Hard disk is not in <link to="MediaState_Created"/> or
9197 <link to="MediaState_Inaccessible"/> state.
9198 </result>
9199 </desc>
9200 <param name="progress" type="IProgress" dir="return">
9201 <desc>Progress object to track the operation completion.</desc>
9202 </param>
9203 </method>
9204
9205 </interface>
9206
9207
9208 <!--
9209 // IHardDiskFormat
9210 /////////////////////////////////////////////////////////////////////////
9211 -->
9212
9213 <enum
9214 name="DataType"
9215 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9216 >
9217 <const name="Int32" value="0"/>
9218 <const name="Int8" value="1"/>
9219 <const name="String" value="2"/>
9220 </enum>
9221
9222 <enum
9223 name="DataFlags"
9224 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9225 >
9226 <const name="None" value="0x00"/>
9227 <const name="Mandatory" value="0x01"/>
9228 <const name="Expert" value="0x02"/>
9229 <const name="Array" value="0x04"/>
9230 <const name="FlagMask" value="0x07"/>
9231 </enum>
9232
9233 <enum
9234 name="HardDiskFormatCapabilities"
9235 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9236 >
9237 <desc>
9238 Hard disk format capability flags.
9239 </desc>
9240
9241 <const name="Uuid" value="0x01">
9242 <desc>
9243 Supports UUIDs as expected by VirtualBox code.
9244 </desc>
9245 </const>
9246
9247 <const name="CreateFixed" value="0x02">
9248 <desc>
9249 Supports creating fixed size images, allocating all space instantly.
9250 </desc>
9251 </const>
9252
9253 <const name="CreateDynamic" value="0x04">
9254 <desc>
9255 Supports creating dynamically growing images, allocating space on
9256 demand.
9257 </desc>
9258 </const>
9259
9260 <const name="CreateSplit2G" value="0x08">
9261 <desc>
9262 Supports creating images split in chunks of a bit less than 2 GBytes.
9263 </desc>
9264 </const>
9265
9266 <const name="Differencing" value="0x10">
9267 <desc>
9268 Supports being used as a format for differencing hard disks (see <link
9269 to="IHardDisk::createDiffStorage"/>).
9270 </desc>
9271 </const>
9272
9273 <const name="Asynchronous" value="0x20">
9274 <desc>
9275 Supports asynchronous I/O operations for at least some configurations.
9276 </desc>
9277 </const>
9278
9279 <const name="File" value="0x40">
9280 <desc>
9281 The format backend operates on files (the <link to="IMedium::location"/>
9282 attribute of the hard disk specifies a file used to store hard disk
9283 data; for a list of supported file extensions see
9284 <link to="IHardDiskFormat::fileExtensions"/>).
9285 </desc>
9286 </const>
9287
9288 <const name="Properties" value="0x80">
9289 <desc>
9290 The format backend uses the property interface to configure the storage
9291 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9292 method is used to get access to properties supported by the given hard
9293 disk format).
9294 </desc>
9295 </const>
9296
9297 <const name="CapabilityMask" value="0xFF"/>
9298 </enum>
9299
9300 <interface
9301 name="IHardDiskFormat" extends="$unknown"
9302 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9303 wsmap="managed"
9304 >
9305 <desc>
9306 The IHardDiskFormat interface represents a virtual hard disk format.
9307
9308 Each hard disk format has an associated backend which is used to handle
9309 hard disks stored in this format. This interface provides information
9310 about the properties of the associated backend.
9311
9312 Each hard disk format is identified by a string represented by the
9313 <link to="#id"/> attribute. This string is used in calls like
9314 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9315 format.
9316
9317 The list of all supported hard disk formats can be obtained using
9318 <link to="ISystemProperties::hardDiskFormats"/>.
9319
9320 <see>IHardDisk</see>
9321 </desc>
9322
9323 <attribute name="id" type="wstring" readonly="yes">
9324 <desc>
9325 Identifier of this format.
9326
9327 The format identifier is a non-null non-empty ASCII string. Note that
9328 this string is case-insensitive. This means that, for example, all of
9329 the following strings:
9330 <pre>
9331 "VDI"
9332 "vdi"
9333 "VdI"</pre>
9334 refer to the same hard disk format.
9335
9336 This string is used in methods of other interfaces where it is necessary
9337 to specify a hard disk format, such as
9338 <link to="IVirtualBox::createHardDisk"/>.
9339 </desc>
9340 </attribute>
9341
9342 <attribute name="name" type="wstring" readonly="yes">
9343 <desc>
9344 Human readable description of this format.
9345
9346 Mainly for use in file open dialogs.
9347 </desc>
9348 </attribute>
9349
9350 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9351 <desc>
9352 Array of strings containing the supported file extensions.
9353
9354 The first extension in the array is the extension preferred by the
9355 backend. It is recommended to use this extension when specifying a
9356 location of the storage unit for a new hard disk.
9357
9358 Note that some backends do not work on files, so this array may be
9359 empty.
9360
9361 <see>IHardDiskFormat::capabilities</see>
9362 </desc>
9363 </attribute>
9364
9365 <attribute name="capabilities" type="unsigned long" readonly="yes">
9366 <desc>
9367 Capabilities of the format as a set of bit flags.
9368
9369 For the meaning of individual capability flags see
9370 <link to="HardDiskFormatCapabilities"/>.
9371 </desc>
9372 </attribute>
9373
9374 <method name="describeProperties">
9375 <desc>
9376 Returns several arrays describing the properties supported by this
9377 format.
9378
9379 An element with the given index in each array describes one
9380 property. Thus, the number of elements in each returned array is the
9381 same and corresponds to the number of supported properties.
9382
9383 The returned arrays are filled in only if the
9384 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9385 All arguments must be non-NULL.
9386
9387 <see>DataType</see>
9388 <see>DataFlags</see>
9389 </desc>
9390
9391 <param name="names" type="wstring" safearray="yes" dir="out">
9392 <desc>Array of property names.</desc>
9393 </param>
9394 <param name="description" type="wstring" safearray="yes" dir="out">
9395 <desc>Array of property descriptions.</desc>
9396 </param>
9397 <param name="types" type="DataType" safearray="yes" dir="out">
9398 <desc>Array of property types.</desc>
9399 </param>
9400 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9401 <desc>Array of property flags.</desc>
9402 </param>
9403 <param name="defaults" type="wstring" safearray="yes" dir="out">
9404 <desc>Array of default property values.</desc>
9405 </param>
9406 </method>
9407
9408 </interface>
9409
9410
9411 <!--
9412 // IFloppyImage
9413 /////////////////////////////////////////////////////////////////////////
9414 -->
9415
9416 <interface
9417 name="IFloppyImage" extends="IMedium"
9418 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9419 wsmap="managed"
9420 >
9421 <desc>
9422 The IFloppyImage interface represents a medium containing the image
9423 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9424 </desc>
9425
9426 </interface>
9427
9428
9429 <!--
9430 // IDVDImage
9431 /////////////////////////////////////////////////////////////////////////
9432 -->
9433
9434 <interface
9435 name="IDVDImage" extends="IMedium"
9436 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9437 wsmap="managed"
9438 >
9439 <desc>
9440 The IDVDImage interface represents a medium containing the image
9441 of a CD or DVD disk in the ISO format.
9442
9443 This is a subclass of <link to="IMedium" />; see remarks there.
9444 </desc>
9445
9446 </interface>
9447
9448
9449 <!--
9450 // IDVDDrive
9451 /////////////////////////////////////////////////////////////////////////
9452 -->
9453
9454 <interface
9455 name="IDVDDrive" extends="$unknown"
9456 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9457 wsmap="managed"
9458 >
9459 <desc>
9460 The IDVDDrive interface represents the virtual CD/DVD drive of the
9461 virtual machine. An object of this type is returned by
9462 <link to="IMachine::DVDDrive"/>.
9463 </desc>
9464
9465 <attribute name="state" type="DriveState" readonly="yes">
9466 <desc>Current drive state.</desc>
9467 </attribute>
9468
9469 <attribute name="passthrough" type="boolean">
9470 <desc>
9471 When a host drive is mounted and passthrough is enabled
9472 the guest OS will be able to directly send SCSI commands to
9473 the host drive. This enables the guest OS to use CD/DVD writers
9474 but is potentially dangerous.
9475 </desc>
9476 </attribute>
9477
9478 <method name="mountImage">
9479 <desc>Mounts a CD/DVD image with the specified UUID.
9480
9481 <result name="VBOX_E_FILE_ERROR">
9482 Invalid image file location.
9483 </result>
9484 <result name="VBOX_E_OBJECT_NOT_FOUND">
9485 Could not find a CD/DVD image matching @a imageID.
9486 </result>
9487 <result name="VBOX_E_INVALID_OBJECT_STATE">
9488 Invalid media state.
9489 </result>
9490
9491 </desc>
9492 <param name="imageId" type="uuid" dir="in"/>
9493 </method>
9494
9495 <method name="captureHostDrive">
9496 <desc>Captures the specified host CD/DVD drive.</desc>
9497 <param name="drive" type="IHostDVDDrive" dir="in"/>
9498 </method>
9499
9500 <method name="unmount">
9501 <desc>Unmounts the currently mounted image or host drive.</desc>
9502 </method>
9503
9504 <method name="getImage">
9505 <desc>Returns the currently mounted CD/DVD image.</desc>
9506 <param name="image" type="IDVDImage" dir="return"/>
9507 </method>
9508
9509 <method name="getHostDrive">
9510 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9511 <param name="drive" type="IHostDVDDrive" dir="return"/>
9512 </method>
9513
9514 </interface>
9515
9516
9517 <!--
9518 // IFloppyDrive
9519 /////////////////////////////////////////////////////////////////////////
9520 -->
9521
9522 <interface
9523 name="IFloppyDrive" extends="$unknown"
9524 uuid="159412cd-bab8-452e-8097-218a020825a6"
9525 wsmap="managed"
9526 >
9527 <desc>
9528 The IFloppyDrive interface represents the virtual floppy drive of the
9529 virtual machine. An object of this type is returned by
9530 <link to="IMachine::floppyDrive" />.
9531 </desc>
9532
9533 <attribute name="enabled" type="boolean">
9534 <desc>
9535 Flag whether the floppy drive is enabled. If it is disabled,
9536 the floppy drive will not be reported to the guest OS.
9537 </desc>
9538 </attribute>
9539
9540 <attribute name="state" type="DriveState" readonly="yes">
9541 <desc>Current drive state.</desc>
9542 </attribute>
9543
9544 <method name="mountImage">
9545 <desc>Mounts a floppy image with the specified UUID.
9546
9547 <result name="VBOX_E_FILE_ERROR">
9548 Invalid image file location.
9549 </result>
9550 <result name="VBOX_E_OBJECT_NOT_FOUND">
9551 Could not find a floppy image matching @a imageID.
9552 </result>
9553 <result name="VBOX_E_INVALID_OBJECT_STATE">
9554 Invalid media state.
9555 </result>
9556
9557 </desc>
9558 <param name="imageId" type="uuid" dir="in"/>
9559 </method>
9560
9561 <method name="captureHostDrive">
9562 <desc>Captures the specified host floppy drive.</desc>
9563 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9564 </method>
9565
9566 <method name="unmount">
9567 <desc>Unmounts the currently mounted image or host drive.</desc>
9568 </method>
9569
9570 <method name="getImage">
9571 <desc>Returns the currently mounted floppy image.</desc>
9572 <param name="image" type="IFloppyImage" dir="return"/>
9573 </method>
9574
9575 <method name="getHostDrive">
9576 <desc>Returns the currently mounted host floppy drive.</desc>
9577 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9578 </method>
9579
9580 </interface>
9581
9582
9583 <!--
9584 // IKeyboard
9585 /////////////////////////////////////////////////////////////////////////
9586 -->
9587
9588 <interface
9589 name="IKeyboard" extends="$unknown"
9590 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9591 wsmap="managed"
9592 >
9593 <desc>
9594 The IKeyboard interface represents the virtual machine's keyboard. Used
9595 in <link to="IConsole::keyboard"/>.
9596
9597 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9598 to the virtual machine.
9599
9600 </desc>
9601 <method name="putScancode">
9602 <desc>Sends a scancode to the keyboard.
9603
9604 <result name="VBOX_E_IPRT_ERROR">
9605 Could not send scan code to virtual keyboard.
9606 </result>
9607
9608 </desc>
9609 <param name="scancode" type="long" dir="in"/>
9610 </method>
9611
9612 <method name="putScancodes">
9613 <desc>Sends an array of scancodes to the keyboard.
9614
9615 <result name="VBOX_E_IPRT_ERROR">
9616 Could not send all scan codes to virtual keyboard.
9617 </result>
9618
9619 </desc>
9620 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9621 <param name="codesStored" type="unsigned long" dir="return"/>
9622 </method>
9623
9624 <method name="putCAD">
9625 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9626 function is nothing special, it is just a convenience function
9627 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9628
9629 <result name="VBOX_E_IPRT_ERROR">
9630 Could not send all scan codes to virtual keyboard.
9631 </result>
9632
9633 </desc>
9634 </method>
9635
9636 </interface>
9637
9638
9639 <!--
9640 // IMouse
9641 /////////////////////////////////////////////////////////////////////////
9642 -->
9643
9644 <enum
9645 name="MouseButtonState"
9646 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9647 >
9648 <desc>
9649 Mouse button state.
9650 </desc>
9651
9652 <const name="LeftButton" value="0x01"/>
9653 <const name="RightButton" value="0x02"/>
9654 <const name="MiddleButton" value="0x04"/>
9655 <const name="WheelUp" value="0x08"/>
9656 <const name="WheelDown" value="0x10"/>
9657 <const name="MouseStateMask" value="0x1F"/>
9658 </enum>
9659
9660 <interface
9661 name="IMouse" extends="$unknown"
9662 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9663 wsmap="managed"
9664 >
9665 <desc>
9666 The IMouse interface represents the virtual machine's mouse. Used in
9667 <link to="IConsole::mouse"/>.
9668
9669 Through this interface, the virtual machine's virtual mouse can be
9670 controlled.
9671 </desc>
9672
9673 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9674 <desc>
9675 Whether the guest OS supports absolute mouse pointer positioning
9676 or not.
9677 <note>
9678 VirtualBox Guest Tools need to be installed to the guest OS
9679 in order to enable absolute mouse positioning support.
9680 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9681 callback to be instantly informed about changes of this attribute
9682 during virtual machine execution.
9683 </note>
9684 <see><link to="#putMouseEventAbsolute"/></see>
9685 </desc>
9686 </attribute>
9687
9688 <method name="putMouseEvent">
9689 <desc>
9690 Initiates a mouse event using relative pointer movements
9691 along x and y axis.
9692
9693 <result name="E_ACCESSDENIED">
9694 Console not powered up.
9695 </result>
9696 <result name="VBOX_E_IPRT_ERROR">
9697 Could not send mouse event to virtual mouse.
9698 </result>
9699
9700 </desc>
9701
9702 <param name="dx" type="long" dir="in">
9703 <desc>
9704 Amount of pixels the mouse should move to the right.
9705 Negative values move the mouse to the left.
9706 </desc>
9707 </param>
9708 <param name="dy" type="long" dir="in">
9709 <desc>
9710 Amount of pixels the mouse should move downwards.
9711 Negative values move the mouse upwards.
9712 </desc>
9713 </param>
9714 <param name="dz" type="long" dir="in">
9715 <desc>
9716 Amount of mouse wheel moves.
9717 Positive values describe clockwise wheel rotations,
9718 negative values describe counterclockwise rotations.
9719 </desc>
9720 </param>
9721 <param name="buttonState" type="long" dir="in">
9722 <desc>
9723 The current state of mouse buttons. Every bit represents
9724 a mouse button as follows:
9725 <table>
9726 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9727 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9728 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9729 </table>
9730 A value of <tt>1</tt> means the corresponding button is pressed.
9731 otherwise it is released.
9732 </desc>
9733 </param>
9734 </method>
9735
9736 <method name="putMouseEventAbsolute">
9737 <desc>
9738 Positions the mouse pointer using absolute x and y coordinates.
9739 These coordinates are expressed in pixels and
9740 start from <tt>[1,1]</tt> which corresponds to the top left
9741 corner of the virtual display.
9742
9743 <result name="E_ACCESSDENIED">
9744 Console not powered up.
9745 </result>
9746 <result name="VBOX_E_IPRT_ERROR">
9747 Could not send mouse event to virtual mouse.
9748 </result>
9749
9750 <note>
9751 This method will have effect only if absolute mouse
9752 positioning is supported by the guest OS.
9753 </note>
9754
9755 <see><link to="#absoluteSupported"/></see>
9756 </desc>
9757
9758 <param name="x" type="long" dir="in">
9759 <desc>
9760 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9761 </desc>
9762 </param>
9763 <param name="y" type="long" dir="in">
9764 <desc>
9765 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9766 </desc>
9767 </param>
9768 <param name="dz" type="long" dir="in">
9769 <desc>
9770 Amount of mouse wheel moves.
9771 Positive values describe clockwise wheel rotations,
9772 negative values describe counterclockwise rotations.
9773 </desc>
9774 </param>
9775 <param name="buttonState" type="long" dir="in">
9776 <desc>
9777 The current state of mouse buttons. Every bit represents
9778 a mouse button as follows:
9779 <table>
9780 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9781 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9782 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9783 </table>
9784 A value of <tt>1</tt> means the corresponding button is pressed.
9785 otherwise it is released.
9786 </desc>
9787 </param>
9788 </method>
9789
9790 </interface>
9791
9792 <!--
9793 // IDisplay
9794 /////////////////////////////////////////////////////////////////////////
9795 -->
9796
9797 <enum
9798 name="FramebufferAccelerationOperation"
9799 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9800 >
9801 <desc>
9802 Frame buffer acceleration operation.
9803 </desc>
9804
9805 <const name="SolidFillAcceleration" value="1"/>
9806 <const name="ScreenCopyAcceleration" value="2"/>
9807 </enum>
9808
9809 <enum
9810 name="FramebufferPixelFormat"
9811 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9812 >
9813 <desc>
9814 Format of the video memory buffer. Constants represented by this enum can
9815 be used to test for particular values of <link
9816 to="IFramebuffer::pixelFormat"/>. See also <link
9817 to="IFramebuffer::requestResize"/>.
9818
9819 See also www.fourcc.org for more information about FOURCC pixel formats.
9820 </desc>
9821
9822 <const name="Opaque" value="0">
9823 <desc>
9824 Unknown buffer format (the user may not assume any particular format of
9825 the buffer).
9826 </desc>
9827 </const>
9828 <const name="FOURCC_RGB" value="0x32424752">
9829 <desc>
9830 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9831 bit layout).
9832 </desc>
9833 </const>
9834 </enum>
9835
9836 <interface
9837 name="IFramebuffer" extends="$unknown"
9838 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9839 wsmap="suppress"
9840 >
9841 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9842 <desc>Address of the start byte of the frame buffer.</desc>
9843 </attribute>
9844
9845 <attribute name="width" type="unsigned long" readonly="yes">
9846 <desc>Frame buffer width, in pixels.</desc>
9847 </attribute>
9848
9849 <attribute name="height" type="unsigned long" readonly="yes">
9850 <desc>Frame buffer height, in pixels.</desc>
9851 </attribute>
9852
9853 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9854 <desc>
9855 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9856 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9857 are: 8, 15, 16, 24 and 32.
9858 </desc>
9859 </attribute>
9860
9861 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9862 <desc>
9863 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9864 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9865 size of the scan line must be aligned to 32 bits.
9866 </desc>
9867 </attribute>
9868
9869 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9870 <desc>
9871 Frame buffer pixel format. It's either one of the values defined by <link
9872 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9873 <note>
9874 This attribute must never return <link
9875 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9876 <link to="#address"/> points to must be always known.
9877 </note>
9878 </desc>
9879 </attribute>
9880
9881 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9882 <desc>
9883 Defines whether this frame buffer uses the virtual video card's memory
9884 buffer (guest VRAM) directly or not. See <link
9885 to="IFramebuffer::requestResize"/> for more information.
9886 </desc>
9887 </attribute>
9888
9889 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9890 <desc>
9891 Hint from the frame buffer about how much of the standard
9892 screen height it wants to use for itself. This information is
9893 exposed to the guest through the VESA BIOS and VMMDev interface
9894 so that it can use it for determining its video mode table. It
9895 is not guaranteed that the guest respects the value.
9896 </desc>
9897 </attribute>
9898
9899 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9900 <desc>
9901 An alpha-blended overlay which is superposed over the frame buffer.
9902 The initial purpose is to allow the display of icons providing
9903 information about the VM state, including disk activity, in front
9904 ends which do not have other means of doing that. The overlay is
9905 designed to controlled exclusively by IDisplay. It has no locking
9906 of its own, and any changes made to it are not guaranteed to be
9907 visible until the affected portion of IFramebuffer is updated. The
9908 overlay can be created lazily the first time it is requested. This
9909 attribute can also return NULL to signal that the overlay is not
9910 implemented.
9911 </desc>
9912 </attribute>
9913
9914 <attribute name="winId" type="unsigned long long" readonly="yes">
9915 <desc>
9916 Platform-dependent identifier of the window where context of this
9917 frame buffer is drawn, or zero if there's no such window.
9918 </desc>
9919 </attribute>
9920
9921 <method name="lock">
9922 <desc>
9923 Locks the frame buffer.
9924 Gets called by the IDisplay object where this frame buffer is
9925 bound to.
9926 </desc>
9927 </method>
9928
9929 <method name="unlock">
9930 <desc>
9931 Unlocks the frame buffer.
9932 Gets called by the IDisplay object where this frame buffer is
9933 bound to.
9934 </desc>
9935 </method>
9936
9937 <method name="notifyUpdate">
9938 <desc>
9939 Informs about an update.
9940 Gets called by the display object where this buffer is
9941 registered.
9942 </desc>
9943 <param name="x" type="unsigned long" dir="in"/>
9944 <param name="y" type="unsigned long" dir="in"/>
9945 <param name="width" type="unsigned long" dir="in"/>
9946 <param name="height" type="unsigned long" dir="in"/>
9947 <param name="finished" type="boolean" dir="return"/>
9948 </method>
9949
9950 <method name="requestResize">
9951 <desc>
9952 Requests a size and pixel format change.
9953
9954 There are two modes of working with the video buffer of the virtual
9955 machine. The <i>indirect</i> mode implies that the IFramebuffer
9956 implementation allocates a memory buffer for the requested display mode
9957 and provides it to the virtual machine. In <i>direct</i> mode, the
9958 IFramebuffer implementation uses the memory buffer allocated and owned
9959 by the virtual machine. This buffer represents the video memory of the
9960 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9961 usually faster because the implementation gets a raw pointer to the
9962 guest VRAM buffer which it can directly use for visualizing the contents
9963 of the virtual display, as opposed to the indirect mode where the
9964 contents of guest VRAM are copied to the memory buffer provided by
9965 the implementation every time a display update occurs.
9966
9967 It is important to note that the direct mode is really fast only when
9968 the implementation uses the given guest VRAM buffer directly, for
9969 example, by blitting it to the window representing the virtual machine's
9970 display, which saves at least one copy operation comparing to the
9971 indirect mode. However, using the guest VRAM buffer directly is not
9972 always possible: the format and the color depth of this buffer may be
9973 not supported by the target window, or it may be unknown (opaque) as in
9974 case of text or non-linear multi-plane VGA video modes. In this case,
9975 the indirect mode (that is always available) should be used as a
9976 fallback: when the guest VRAM contents are copied to the
9977 implementation-provided memory buffer, color and format conversion is
9978 done automatically by the underlying code.
9979
9980 The @a pixelFormat parameter defines whether the direct mode is
9981 available or not. If @a pixelFormat is <link
9982 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9983 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
9984 @a bytesPerLine parameters must be ignored and the implementation must use
9985 the indirect mode (where it provides its own buffer in one of the
9986 supported formats). In all other cases, @a pixelFormat together with
9987 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
9988 buffer pointed to by the @a VRAM parameter and the implementation is
9989 free to choose which mode to use. To indicate that this frame buffer uses
9990 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9991 attribute must return <tt>true</tt> and <link to="#address"/> must
9992 return exactly the same address that is passed in the @a VRAM parameter
9993 of this method; otherwise it is assumed that the indirect strategy is
9994 chosen.
9995
9996 The @a width and @a height parameters represent the size of the
9997 requested display mode in both modes. In case of indirect mode, the
9998 provided memory buffer should be big enough to store data of the given
9999 display mode. In case of direct mode, it is guaranteed that the given
10000 @a VRAM buffer contains enough space to represent the display mode of the
10001 given size. Note that this frame buffer's <link to="#width"/> and <link
10002 to="#height"/> attributes must return exactly the same values as
10003 passed to this method after the resize is completed (see below).
10004
10005 The @a finished output parameter determines if the implementation has
10006 finished resizing the frame buffer or not. If, for some reason, the
10007 resize cannot be finished immediately during this call, @a finished
10008 must be set to @c false, and the implementation must call
10009 <link to="IDisplay::resizeCompleted"/> after it has returned from
10010 this method as soon as possible. If @a finished is @c false, the
10011 machine will not call any frame buffer methods until
10012 <link to="IDisplay::resizeCompleted"/> is called.
10013
10014 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10015 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10016 this frame buffer must return exactly the same values as specified in the
10017 parameters of this method, after the resize is completed. If the
10018 indirect mode is chosen, these attributes must return values describing
10019 the format of the implementation's own memory buffer <link
10020 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10021 value must always correlate with <link to="#pixelFormat"/>. Note that
10022 the <link to="#pixelFormat"/> attribute must never return <link
10023 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10024
10025 <note>
10026 This method is called by the IDisplay object under the
10027 <link to="#lock"/> provided by this IFramebuffer
10028 implementation. If this method returns @c false in @a finished, then
10029 this lock is not released until
10030 <link to="IDisplay::resizeCompleted"/> is called.
10031 </note>
10032 </desc>
10033 <param name="screenId" type="unsigned long" dir="in">
10034 <desc>
10035 Logical screen number. Must be used in the corresponding call to
10036 <link to="IDisplay::resizeCompleted"/> if this call is made.
10037 </desc>
10038 </param>
10039 <param name="pixelFormat" type="unsigned long" dir="in">
10040 <desc>
10041 Pixel format of the memory buffer pointed to by @a VRAM.
10042 See also <link to="FramebufferPixelFormat"/>.
10043 </desc>
10044 </param>
10045 <param name="VRAM" type="octet" mod="ptr" dir="in">
10046 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10047 </param>
10048 <param name="bitsPerPixel" type="unsigned long" dir="in">
10049 <desc>Color depth, bits per pixel.</desc>
10050 </param>
10051 <param name="bytesPerLine" type="unsigned long" dir="in">
10052 <desc>Size of one scan line, in bytes.</desc>
10053 </param>
10054 <param name="width" type="unsigned long" dir="in">
10055 <desc>Width of the guest display, in pixels.</desc>
10056 </param>
10057 <param name="height" type="unsigned long" dir="in">
10058 <desc>Height of the guest display, in pixels.</desc>
10059 </param>
10060 <param name="finished" type="boolean" dir="return">
10061 <desc>
10062 Can the VM start using the new frame buffer immediately
10063 after this method returns or it should wait for
10064 <link to="IDisplay::resizeCompleted"/>.
10065 </desc>
10066 </param>
10067 </method>
10068
10069 <method name="operationSupported">
10070 <desc>
10071 Returns whether the given acceleration operation is supported
10072 by the IFramebuffer implementation. If not, the display object
10073 will not attempt to call the corresponding IFramebuffer entry
10074 point. Even if an operation is indicated as supported, the
10075 IFramebuffer implementation always has the option to return non
10076 supported from the corresponding acceleration method in which
10077 case the operation will be performed by the display engine. This
10078 allows for reduced IFramebuffer implementation complexity where
10079 only common cases are handled.
10080 </desc>
10081 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
10082 <param name="supported" type="boolean" dir="return"/>
10083 </method>
10084
10085 <method name="videoModeSupported">
10086 <desc>
10087 Returns whether the frame buffer implementation is willing to
10088 support a given video mode. In case it is not able to render
10089 the video mode (or for some reason not willing), it should
10090 return false. Usually this method is called when the guest
10091 asks the VMM device whether a given video mode is supported
10092 so the information returned is directly exposed to the guest.
10093 It is important that this method returns very quickly.
10094 </desc>
10095 <param name="width" type="unsigned long" dir="in"/>
10096 <param name="height" type="unsigned long" dir="in"/>
10097 <param name="bpp" type="unsigned long" dir="in"/>
10098 <param name="supported" type="boolean" dir="return"/>
10099 </method>
10100
10101 <method name="solidFill">
10102 <desc>
10103 Fills the specified rectangle on screen with a solid color.
10104 </desc>
10105 <param name="x" type="unsigned long" dir="in"/>
10106 <param name="y" type="unsigned long" dir="in"/>
10107 <param name="width" type="unsigned long" dir="in"/>
10108 <param name="height" type="unsigned long" dir="in"/>
10109 <param name="color" type="unsigned long" dir="in"/>
10110 <param name="handled" type="boolean" dir="return"/>
10111 </method>
10112
10113 <method name="copyScreenBits">
10114 <desc>
10115 Copies specified rectangle on the screen.
10116 </desc>
10117 <param name="xDst" type="unsigned long" dir="in"/>
10118 <param name="yDst" type="unsigned long" dir="in"/>
10119 <param name="xSrc" type="unsigned long" dir="in"/>
10120 <param name="ySrc" type="unsigned long" dir="in"/>
10121 <param name="width" type="unsigned long" dir="in"/>
10122 <param name="height" type="unsigned long" dir="in"/>
10123 <param name="handled" type="boolean" dir="return"/>
10124 </method>
10125
10126 <method name="getVisibleRegion">
10127 <desc>
10128 Returns the visible region of this frame buffer.
10129
10130 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10131 @a count parameter is ignored and the number of elements necessary to
10132 describe the current visible region is returned in @a countCopied.
10133
10134 If @a rectangles is not <tt>NULL</tt> but @a count is less
10135 than the required number of elements to store region data, the method
10136 will report a failure. If @a count is equal or greater than the
10137 required number of elements, then the actual number of elements copied
10138 to the provided array will be returned in @a countCopied.
10139
10140 <note>
10141 The address of the provided array must be in the process space of
10142 this IFramebuffer object.
10143 </note>
10144 <note>
10145 Method not yet implemented.
10146 </note>
10147 </desc>
10148 <param name="rectangles" type="octet" mod="ptr" dir="in">
10149 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10150 </param>
10151 <param name="count" type="unsigned long" dir="in">
10152 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10153 </param>
10154 <param name="countCopied" type="unsigned long" dir="return">
10155 <desc>Number of elements copied to the @a rectangles array.</desc>
10156 </param>
10157 </method>
10158
10159 <method name="setVisibleRegion">
10160 <desc>
10161 Suggests a new visible region to this frame buffer. This region
10162 represents the area of the VM display which is a union of regions of
10163 all top-level windows of the guest operating system running inside the
10164 VM (if the Guest Additions for this system support this
10165 functionality). This information may be used by the frontends to
10166 implement the seamless desktop integration feature.
10167
10168 <note>
10169 The address of the provided array must be in the process space of
10170 this IFramebuffer object.
10171 </note>
10172 <note>
10173 The IFramebuffer implementation must make a copy of the provided
10174 array of rectangles.
10175 </note>
10176 <note>
10177 Method not yet implemented.
10178 </note>
10179 </desc>
10180 <param name="rectangles" type="octet" mod="ptr" dir="in">
10181 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10182 </param>
10183 <param name="count" type="unsigned long" dir="in">
10184 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10185 </param>
10186 </method>
10187
10188 </interface>
10189
10190 <interface
10191 name="IFramebufferOverlay" extends="IFramebuffer"
10192 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10193 wsmap="suppress"
10194 >
10195 <desc>
10196 The IFramebufferOverlay interface represents an alpha blended overlay
10197 for displaying status icons above an IFramebuffer. It is always created
10198 not visible, so that it must be explicitly shown. It only covers a
10199 portion of the IFramebuffer, determined by its width, height and
10200 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10201 that order) format, and may be written to directly. Do re-read the
10202 width though, after setting it, as it may be adjusted (increased) to
10203 make it more suitable for the front end.
10204 </desc>
10205 <attribute name="x" type="unsigned long" readonly="yes">
10206 <desc>X position of the overlay, relative to the frame buffer.</desc>
10207 </attribute>
10208
10209 <attribute name="y" type="unsigned long" readonly="yes">
10210 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10211 </attribute>
10212
10213 <attribute name="visible" type="boolean" readonly="no">
10214 <desc>
10215 Whether the overlay is currently visible.
10216 </desc>
10217 </attribute>
10218
10219 <attribute name="alpha" type="unsigned long" readonly="no">
10220 <desc>
10221 The global alpha value for the overlay. This may or may not be
10222 supported by a given front end.
10223 </desc>
10224 </attribute>
10225
10226 <method name="move">
10227 <desc>
10228 Changes the overlay's position relative to the IFramebuffer.
10229 </desc>
10230 <param name="x" type="unsigned long" dir="in"/>
10231 <param name="y" type="unsigned long" dir="in"/>
10232 </method>
10233
10234 </interface>
10235
10236 <interface
10237 name="IDisplay" extends="$unknown"
10238 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10239 wsmap="suppress"
10240 >
10241 <desc>
10242 The IDisplay interface represents the virtual machine's display.
10243
10244 The object implementing this interface is contained in each
10245 <link to="IConsole::display"/> attribute and represents the visual
10246 output of the virtual machine.
10247
10248 The virtual display supports pluggable output targets represented by the
10249 IFramebuffer interface. Examples of the output target are a window on
10250 the host computer or an RDP session's display on a remote computer.
10251 </desc>
10252 <attribute name="width" type="unsigned long" readonly="yes">
10253 <desc>Current display width.</desc>
10254 </attribute>
10255
10256 <attribute name="height" type="unsigned long" readonly="yes">
10257 <desc>Current display height.</desc>
10258 </attribute>
10259
10260 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10261 <desc>
10262 Current guest display color depth. Note that this may differ
10263 from <link to="IFramebuffer::bitsPerPixel"/>.
10264 </desc>
10265 </attribute>
10266
10267 <method name="setupInternalFramebuffer">
10268 <desc>
10269 Prepares an internally managed frame buffer.
10270 </desc>
10271 <param name="depth" type="unsigned long" dir="in"/>
10272 </method>
10273
10274 <method name="lockFramebuffer">
10275 <desc>
10276 Requests access to the internal frame buffer.
10277
10278 <result name="VBOX_E_NOT_SUPPORTED">
10279 Attempt to lock a non-internal frame buffer.
10280 </result>
10281
10282 </desc>
10283 <param name="address" type="octet" mod="ptr" dir="return"/>
10284 </method>
10285
10286 <method name="unlockFramebuffer">
10287 <desc>
10288 Releases access to the internal frame buffer.
10289
10290 <result name="VBOX_E_NOT_SUPPORTED">
10291 Attempt to unlock a non-internal frame buffer.
10292 </result>
10293
10294 </desc>
10295 </method>
10296
10297 <method name="registerExternalFramebuffer">
10298 <desc>
10299 Registers an external frame buffer.
10300 </desc>
10301 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10302 </method>
10303
10304 <method name="setFramebuffer">
10305 <desc>
10306 Sets the framebuffer for given screen.
10307 </desc>
10308 <param name="screenId" type="unsigned long" dir="in"/>
10309 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10310 </method>
10311
10312 <method name="getFramebuffer">
10313 <desc>
10314 Queries the framebuffer for given screen.
10315 </desc>
10316 <param name="screenId" type="unsigned long" dir="in"/>
10317 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10318 <param name="xOrigin" type="long" dir="out"/>
10319 <param name="yOrigin" type="long" dir="out"/>
10320 </method>
10321
10322 <method name="setVideoModeHint">
10323 <desc>
10324 Asks VirtualBox to request the given video mode from
10325 the guest. This is just a hint and it cannot be guaranteed
10326 that the requested resolution will be used. Guest Additions
10327 are required for the request to be seen by guests. The caller
10328 should issue the request and wait for a resolution change and
10329 after a timeout retry.
10330
10331 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10332 parameters means that the corresponding values should be taken from the
10333 current video mode (i.e. left unchanged).
10334
10335 If the guest OS supports multi-monitor configuration then the @a display
10336 parameter specifies the number of the guest display to send the hint to:
10337 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10338 so on. If the multi-monitor configuration is not supported, @a display
10339 must be <tt>0</tt>.
10340
10341 <result name="E_INVALIDARG">
10342 The @a display is not associated with any monitor.
10343 </result>
10344
10345 </desc>
10346 <param name="width" type="unsigned long" dir="in"/>
10347 <param name="height" type="unsigned long" dir="in"/>
10348 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10349 <param name="display" type="unsigned long" dir="in"/>
10350 </method>
10351
10352 <method name="setSeamlessMode">
10353 <desc>
10354 Enables or disables seamless guest display rendering (seamless desktop
10355 integration) mode.
10356 <note>
10357 Calling this method has no effect if <link
10358 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10359 </note>
10360 </desc>
10361 <param name="enabled" type="boolean" dir="in"/>
10362 </method>
10363
10364 <method name="takeScreenShot">
10365 <desc>
10366 Takes a screen shot of the requested size and copies it to the
10367 32-bpp buffer allocated by the caller.
10368
10369 <result name="E_NOTIMPL">
10370 Feature not implemented.
10371 </result>
10372 <result name="VBOX_E_IPRT_ERROR">
10373 Could not take a screenshot.
10374 </result>
10375
10376 </desc>
10377 <param name="address" type="octet" mod="ptr" dir="in"/>
10378 <param name="width" type="unsigned long" dir="in"/>
10379 <param name="height" type="unsigned long" dir="in"/>
10380 </method>
10381
10382 <method name="drawToScreen">
10383 <desc>
10384 Draws a 32-bpp image of the specified size from the given buffer
10385 to the given point on the VM display.
10386
10387 <result name="E_NOTIMPL">
10388 Feature not implemented.
10389 </result>
10390 <result name="VBOX_E_IPRT_ERROR">
10391 Could not draw to screen.
10392 </result>
10393
10394 </desc>
10395 <param name="address" type="octet" mod="ptr" dir="in"/>
10396 <param name="x" type="unsigned long" dir="in"/>
10397 <param name="y" type="unsigned long" dir="in"/>
10398 <param name="width" type="unsigned long" dir="in"/>
10399 <param name="height" type="unsigned long" dir="in"/>
10400 </method>
10401
10402 <method name="invalidateAndUpdate">
10403 <desc>
10404 Does a full invalidation of the VM display and instructs the VM
10405 to update it.
10406
10407 <result name="VBOX_E_IPRT_ERROR">
10408 Could not invalidate and update screen.
10409 </result>
10410
10411 </desc>
10412 </method>
10413
10414 <method name="resizeCompleted">
10415 <desc>
10416 Signals that a framebuffer has completed the resize operation.
10417
10418 <result name="VBOX_E_NOT_SUPPORTED">
10419 Operation only valid for external frame buffers.
10420 </result>
10421
10422 </desc>
10423 <param name="screenId" type="unsigned long" dir="in"/>
10424 </method>
10425
10426 <method name="updateCompleted">
10427 <desc>
10428 Signals that a framebuffer has completed the update operation.
10429
10430 <result name="VBOX_E_NOT_SUPPORTED">
10431 Operation only valid for external frame buffers.
10432 </result>
10433
10434 </desc>
10435 </method>
10436
10437 </interface>
10438
10439 <!--
10440 // INetworkAdapter
10441 /////////////////////////////////////////////////////////////////////////
10442 -->
10443
10444 <enum
10445 name="NetworkAttachmentType"
10446 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
10447 >
10448 <desc>
10449 Network attachment type.
10450 </desc>
10451
10452 <const name="Null" value="0">
10453 <desc>Null value, also means "not attached".</desc>
10454 </const>
10455 <const name="NAT" value="1"/>
10456 <const name="Bridged" value="2"/>
10457 <const name="Internal" value="3"/>
10458 <const name="HostOnly" value="4"/>
10459 </enum>
10460
10461 <enum
10462 name="NetworkAdapterType"
10463 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10464 >
10465 <desc>
10466 Network adapter type.
10467 </desc>
10468
10469 <const name="Null" value="0">
10470 <desc>Null value (never used by the API).</desc>
10471 </const>
10472 <const name="Am79C970A" value="1"/>
10473 <const name="Am79C973" value="2"/>
10474 <const name="I82540EM" value="3"/>
10475 <const name="I82543GC" value="4"/>
10476 </enum>
10477
10478 <interface
10479 name="INetworkAdapter" extends="$unknown"
10480 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
10481 wsmap="managed"
10482 >
10483 <attribute name="adapterType" type="NetworkAdapterType">
10484 <desc>
10485 Type of the virtual network adapter. Depending on this value,
10486 VirtualBox will provide a different virtual network hardware
10487 to the guest.
10488 </desc>
10489 </attribute>
10490
10491 <attribute name="slot" type="unsigned long" readonly="yes">
10492 <desc>
10493 Slot number this adapter is plugged into. Corresponds to
10494 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10495 to obtain this instance.
10496 </desc>
10497 </attribute>
10498
10499 <attribute name="enabled" type="boolean">
10500 <desc>
10501 Flag whether the network adapter is present in the
10502 guest system. If disabled, the virtual guest hardware will
10503 not contain this network adapter. Can only be changed when
10504 the VM is not running.
10505 </desc>
10506 </attribute>
10507
10508 <attribute name="MACAddress" type="wstring">
10509 <desc>
10510 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10511 it to NULL, VirtualBox will generate a unique MAC address.
10512 </desc>
10513 </attribute>
10514
10515 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10516
10517 <attribute name="hostInterface" type="wstring">
10518 <desc>
10519 Name of the host network interface the VM is attached to.
10520 </desc>
10521 </attribute>
10522
10523 <attribute name="internalNetwork" type="wstring">
10524 <desc>
10525 Name of the internal network the VM is attached to.
10526 </desc>
10527 </attribute>
10528
10529 <attribute name="NATNetwork" type="wstring">
10530 <desc>
10531 Name of the NAT network the VM is attached to.
10532 </desc>
10533 </attribute>
10534
10535 <attribute name="cableConnected" type="boolean">
10536 <desc>
10537 Flag whether the adapter reports the cable as connected or not.
10538 It can be used to report offline situations to a VM.
10539 </desc>
10540 </attribute>
10541
10542 <attribute name="lineSpeed" type="unsigned long">
10543 <desc>
10544 Line speed reported by custom drivers, in units of 1 kbps.
10545 </desc>
10546 </attribute>
10547
10548 <attribute name="traceEnabled" type="boolean">
10549 <desc>
10550 Flag whether network traffic from/to the network card should be traced.
10551 Can only be toggled when the VM is turned off.
10552 </desc>
10553 </attribute>
10554
10555 <attribute name="traceFile" type="wstring">
10556 <desc>
10557 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10558 will be used.
10559 </desc>
10560 </attribute>
10561
10562 <method name="attachToNAT">
10563 <desc>
10564 Attach the network adapter to the Network Address Translation (NAT) interface.
10565 </desc>
10566 </method>
10567
10568 <method name="attachToBridgedInterface">
10569 <desc>
10570 Attach the network adapter to a bridged host interface.
10571 </desc>
10572 </method>
10573
10574 <method name="attachToInternalNetwork">
10575 <desc>
10576 Attach the network adapter to an internal network.
10577 </desc>
10578 </method>
10579
10580 <method name="attachToHostOnlyInterface">
10581 <desc>
10582 Attach the network adapter to the host-only network.
10583 </desc>
10584 </method>
10585
10586 <method name="detach">
10587 <desc>
10588 Detach the network adapter
10589 </desc>
10590 </method>
10591 </interface>
10592
10593
10594 <!--
10595 // ISerialPort
10596 /////////////////////////////////////////////////////////////////////////
10597 -->
10598
10599 <enum
10600 name="PortMode"
10601 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10602 >
10603 <desc>
10604 The PortMode enumeration represents possible communication modes for
10605 the virtual serial port device.
10606 </desc>
10607
10608 <const name="Disconnected" value="0">
10609 <desc>Virtual device is not attached to any real host device.</desc>
10610 </const>
10611 <const name="HostPipe" value="1">
10612 <desc>Virtual device is attached to a host pipe.</desc>
10613 </const>
10614 <const name="HostDevice" value="2">
10615 <desc>Virtual device is attached to a host device.</desc>
10616 </const>
10617 </enum>
10618
10619 <interface
10620 name="ISerialPort" extends="$unknown"
10621 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10622 wsmap="managed"
10623 >
10624
10625 <desc>
10626 The ISerialPort interface represents the virtual serial port device.
10627
10628 The virtual serial port device acts like an ordinary serial port
10629 inside the virtual machine. This device communicates to the real
10630 serial port hardware in one of two modes: host pipe or host device.
10631
10632 In host pipe mode, the #path attribute specifies the path to the pipe on
10633 the host computer that represents a serial port. The #server attribute
10634 determines if this pipe is created by the virtual machine process at
10635 machine startup or it must already exist before starting machine
10636 execution.
10637
10638 In host device mode, the #path attribute specifies the name of the
10639 serial port device on the host computer.
10640
10641 There is also a third communication mode: the disconnected mode. In this
10642 mode, the guest OS running inside the virtual machine will be able to
10643 detect the serial port, but all port write operations will be discarded
10644 and all port read operations will return no data.
10645
10646 <see>IMachine::getSerialPort</see>
10647 </desc>
10648
10649 <attribute name="slot" type="unsigned long" readonly="yes">
10650 <desc>
10651 Slot number this serial port is plugged into. Corresponds to
10652 the value you pass to <link to="IMachine::getSerialPort"/>
10653 to obtain this instance.
10654 </desc>
10655 </attribute>
10656
10657 <attribute name="enabled" type="boolean">
10658 <desc>
10659 Flag whether the serial port is enabled. If disabled,
10660 the serial port will not be reported to the guest OS.
10661 </desc>
10662 </attribute>
10663
10664 <attribute name="IOBase" type="unsigned long">
10665 <desc>Base I/O address of the serial port.</desc>
10666 </attribute>
10667
10668 <attribute name="IRQ" type="unsigned long">
10669 <desc>IRQ number of the serial port.</desc>
10670 </attribute>
10671
10672 <attribute name="hostMode" type="PortMode">
10673 <desc>
10674 How is this port connected to the host.
10675 <note>
10676 Changing this attribute may fail if the conditions for
10677 <link to="#path"/> are not met.
10678 </note>
10679 </desc>
10680 </attribute>
10681
10682 <attribute name="server" type="boolean">
10683 <desc>
10684 Flag whether this serial port acts as a server (creates a new pipe on
10685 the host) or as a client (uses the existing pipe). This attribute is
10686 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10687 </desc>
10688 </attribute>
10689
10690 <attribute name="path" type="wstring">
10691 <desc>
10692 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10693 PortMode_HostPipe, or the host serial device name when
10694 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10695 cases, setting a @c null or an empty string as the attribute's value
10696 will result into an error. Otherwise, the value of this property is
10697 ignored.
10698 </desc>
10699 </attribute>
10700
10701 </interface>
10702
10703 <!--
10704 // IParallelPort
10705 /////////////////////////////////////////////////////////////////////////
10706 -->
10707
10708 <interface
10709 name="IParallelPort" extends="$unknown"
10710 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10711 wsmap="managed"
10712 >
10713
10714 <desc>
10715 The IParallelPort interface represents the virtual parallel port device.
10716
10717 The virtual parallel port device acts like an ordinary parallel port
10718 inside the virtual machine. This device communicates to the real
10719 parallel port hardware using the name of the parallel device on the host
10720 computer specified in the #path attribute.
10721
10722 Each virtual parallel port device is assigned a base I/O address and an
10723 IRQ number that will be reported to the guest operating system and used
10724 to operate the given parallel port from within the virtual machine.
10725
10726 <see>IMachine::getParallelPort</see>
10727 </desc>
10728
10729 <attribute name="slot" type="unsigned long" readonly="yes">
10730 <desc>
10731 Slot number this parallel port is plugged into. Corresponds to
10732 the value you pass to <link to="IMachine::getParallelPort"/>
10733 to obtain this instance.
10734 </desc>
10735 </attribute>
10736
10737 <attribute name="enabled" type="boolean">
10738 <desc>
10739 Flag whether the parallel port is enabled. If disabled,
10740 the parallel port will not be reported to the guest OS.
10741 </desc>
10742 </attribute>
10743
10744 <attribute name="IOBase" type="unsigned long">
10745 <desc>Base I/O address of the parallel port.</desc>
10746 </attribute>
10747
10748 <attribute name="IRQ" type="unsigned long">
10749 <desc>IRQ number of the parallel port.</desc>
10750 </attribute>
10751
10752 <attribute name="path" type="wstring">
10753 <desc>
10754 Host parallel device name. If this parallel port is enabled, setting a
10755 @c null or an empty string as this attribute's value will result into
10756 an error.
10757 </desc>
10758 </attribute>
10759
10760 </interface>
10761
10762
10763 <!--
10764 // IMachineDebugger
10765 /////////////////////////////////////////////////////////////////////////
10766 -->
10767
10768 <interface
10769 name="IMachineDebugger" extends="$unknown"
10770 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10771 wsmap="suppress"
10772 >
10773 <method name="resetStats">
10774 <desc>
10775 Reset VM statistics.
10776 </desc>
10777 <param name="pattern" type="wstring" dir="in">
10778 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10779 </param>
10780 </method>
10781
10782 <method name="dumpStats">
10783 <desc>
10784 Dumps VM statistics.
10785 </desc>
10786 <param name="pattern" type="wstring" dir="in">
10787 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10788 </param>
10789 </method>
10790
10791 <method name="getStats">
10792 <desc>
10793 Get the VM statistics in a XMLish format.
10794 </desc>
10795 <param name="pattern" type="wstring" dir="in">
10796 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10797 </param>
10798 <param name="withDescriptions" type="boolean" dir="in">
10799 <desc>Whether to include the descriptions.</desc>
10800 </param>
10801 <param name="stats" type="wstring" dir="out">
10802 <desc>The XML document containing the statistics.</desc>
10803 </param>
10804 </method>
10805
10806 <method name="injectNMI">
10807 <desc>
10808 Inject an NMI into a running VT-x/AMD-V VM.
10809 </desc>
10810 </method>
10811
10812 <attribute name="singlestep" type="boolean">
10813 <desc>Switch for enabling singlestepping.</desc>
10814 </attribute>
10815
10816 <attribute name="recompileUser" type="boolean">
10817 <desc>Switch for forcing code recompilation for user mode code.</desc>
10818 </attribute>
10819
10820 <attribute name="recompileSupervisor" type="boolean">
10821 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10822 </attribute>
10823
10824 <attribute name="PATMEnabled" type="boolean">
10825 <desc>Switch for enabling and disabling the PATM component.</desc>
10826 </attribute>
10827
10828 <attribute name="CSAMEnabled" type="boolean">
10829 <desc>Switch for enabling and disabling the CSAM component.</desc>
10830 </attribute>
10831
10832 <attribute name="logEnabled" type="boolean">
10833 <desc>Switch for enabling and disabling logging.</desc>
10834 </attribute>
10835
10836 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10837 <desc>
10838 Flag indicating whether the VM is currently making use of CPU hardware
10839 virtualization extensions.
10840 </desc>
10841 </attribute>
10842
10843 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10844 <desc>
10845 Flag indicating whether the VM is currently making use of the nested paging
10846 CPU hardware virtualization extension.
10847 </desc>
10848 </attribute>
10849
10850 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10851 <desc>
10852 Flag indicating whether the VM is currently making use of the VPID
10853 VT-x extension.
10854 </desc>
10855 </attribute>
10856
10857 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10858 <desc>
10859 Flag indicating whether the VM is currently making use of the Physical
10860 Address Extension CPU feature.
10861 </desc>
10862 </attribute>
10863
10864 <attribute name="virtualTimeRate" type="unsigned long">
10865 <desc>
10866 The rate at which the virtual time runs expressed as a percentage.
10867 The accepted range is 2% to 20000%.
10868 </desc>
10869 </attribute>
10870
10871 <!-- @todo method for setting log flags, groups and destination! -->
10872
10873 <attribute name="VM" type="unsigned long long" readonly="yes">
10874 <desc>
10875 Gets the VM handle. This is only for internal use while
10876 we carve the details of this interface.
10877 </desc>
10878 </attribute>
10879
10880 </interface>
10881
10882 <!--
10883 // IUSBController
10884 /////////////////////////////////////////////////////////////////////////
10885 -->
10886
10887 <interface
10888 name="IUSBController" extends="$unknown"
10889 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
10890 wsmap="managed"
10891 >
10892 <attribute name="enabled" type="boolean">
10893 <desc>
10894 Flag whether the USB controller is present in the
10895 guest system. If disabled, the virtual guest hardware will
10896 not contain any USB controller. Can only be changed when
10897 the VM is powered off.
10898 </desc>
10899 </attribute>
10900
10901 <attribute name="enabledEhci" type="boolean">
10902 <desc>
10903 Flag whether the USB EHCI controller is present in the
10904 guest system. If disabled, the virtual guest hardware will
10905 not contain a USB EHCI controller. Can only be changed when
10906 the VM is powered off.
10907 </desc>
10908 </attribute>
10909
10910 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10911 <desc>
10912 USB standard version which the controller implements.
10913 This is a BCD which means that the major version is in the
10914 high byte and minor version is in the low byte.
10915 </desc>
10916 </attribute>
10917
10918 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
10919 <desc>
10920 List of USB device filters associated with the machine.
10921
10922 If the machine is currently running, these filters are activated
10923 every time a new (supported) USB device is attached to the host
10924 computer that was not ignored by global filters
10925 (<link to="IHost::USBDeviceFilters"/>).
10926
10927 These filters are also activated when the machine is powered up.
10928 They are run against a list of all currently available USB
10929 devices (in states
10930 <link to="USBDeviceState_Available"/>,
10931 <link to="USBDeviceState_Busy"/>,
10932 <link to="USBDeviceState_Held"/>) that were not previously
10933 ignored by global filters.
10934
10935 If at least one filter matches the USB device in question, this
10936 device is automatically captured (attached to) the virtual USB
10937 controller of this machine.
10938
10939 <see>IUSBDeviceFilter, ::IUSBController</see>
10940 </desc>
10941 </attribute>
10942
10943 <method name="createDeviceFilter">
10944 <desc>
10945 Creates a new USB device filter. All attributes except
10946 the filter name are set to <tt>null</tt> (any match),
10947 <i>active</i> is <tt>false</tt> (the filter is not active).
10948
10949 The created filter can then be added to the list of filters using
10950 <link to="#insertDeviceFilter"/>.
10951
10952 <result name="VBOX_E_INVALID_VM_STATE">
10953 The virtual machine is not mutable.
10954 </result>
10955
10956 <see>#deviceFilters</see>
10957 </desc>
10958 <param name="name" type="wstring" dir="in">
10959 <desc>
10960 Filter name. See <link to="IUSBDeviceFilter::name"/>
10961 for more info.
10962 </desc>
10963 </param>
10964 <param name="filter" type="IUSBDeviceFilter" dir="return">
10965 <desc>Created filter object.</desc>
10966 </param>
10967 </method>
10968
10969 <method name="insertDeviceFilter">
10970 <desc>
10971 Inserts the given USB device to the specified position
10972 in the list of filters.
10973
10974 Positions are numbered starting from <tt>0</tt>. If the specified
10975 position is equal to or greater than the number of elements in
10976 the list, the filter is added to the end of the collection.
10977
10978 <note>
10979 Duplicates are not allowed, so an attempt to insert a
10980 filter that is already in the collection, will return an
10981 error.
10982 </note>
10983
10984 <result name="VBOX_E_INVALID_VM_STATE">
10985 Virtual machine is not mutable.
10986 </result>
10987 <result name="E_INVALIDARG">
10988 USB device filter not created within this VirtualBox instance.
10989 </result>
10990 <result name="VBOX_E_INVALID_OBJECT_STATE">
10991 USB device filter already in list.
10992 </result>
10993
10994 <see>#deviceFilters</see>
10995 </desc>
10996 <param name="position" type="unsigned long" dir="in">
10997 <desc>Position to insert the filter to.</desc>
10998 </param>
10999 <param name="filter" type="IUSBDeviceFilter" dir="in">
11000 <desc>USB device filter to insert.</desc>
11001 </param>
11002 </method>
11003
11004 <method name="removeDeviceFilter">
11005 <desc>
11006 Removes a USB device filter from the specified position in the
11007 list of filters.
11008
11009 Positions are numbered starting from <tt>0</tt>. Specifying a
11010 position equal to or greater than the number of elements in
11011 the list will produce an error.
11012
11013 <see>#deviceFilters</see>
11014
11015 <result name="VBOX_E_INVALID_VM_STATE">
11016 Virtual machine is not mutable.
11017 </result>
11018 <result name="E_INVALIDARG">
11019 USB device filter list empty or invalid @a position.
11020 </result>
11021
11022 </desc>
11023 <param name="position" type="unsigned long" dir="in">
11024 <desc>Position to remove the filter from.</desc>
11025 </param>
11026 <param name="filter" type="IUSBDeviceFilter" dir="return">
11027 <desc>Removed USB device filter.</desc>
11028 </param>
11029 </method>
11030
11031 </interface>
11032
11033
11034 <!--
11035 // IUSBDevice
11036 /////////////////////////////////////////////////////////////////////////
11037 -->
11038
11039 <interface
11040 name="IUSBDevice" extends="$unknown"
11041 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
11042 wsmap="managed"
11043 >
11044 <desc>
11045 The IUSBDevice interface represents a virtual USB device attached to the
11046 virtual machine.
11047
11048 A collection of objects implementing this interface is stored in the
11049 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11050 attached to a running virtual machine's USB controller.
11051 </desc>
11052
11053 <attribute name="id" type="uuid" readonly="yes">
11054 <desc>
11055 Unique USB device ID. This ID is built from #vendorId,
11056 #productId, #revision and #serialNumber.
11057 </desc>
11058 </attribute>
11059
11060 <attribute name="vendorId" type="unsigned short" readonly="yes">
11061 <desc>Vendor ID.</desc>
11062 </attribute>
11063
11064 <attribute name="productId" type="unsigned short" readonly="yes">
11065 <desc>Product ID.</desc>
11066 </attribute>
11067
11068 <attribute name="revision" type="unsigned short" readonly="yes">
11069 <desc>
11070 Product revision number. This is a packed BCD represented as
11071 unsigned short. The high byte is the integer part and the low
11072 byte is the decimal.
11073 </desc>
11074 </attribute>
11075
11076 <attribute name="manufacturer" type="wstring" readonly="yes">
11077 <desc>Manufacturer string.</desc>
11078 </attribute>
11079
11080 <attribute name="product" type="wstring" readonly="yes">
11081 <desc>Product string.</desc>
11082 </attribute>
11083
11084 <attribute name="serialNumber" type="wstring" readonly="yes">
11085 <desc>Serial number string.</desc>
11086 </attribute>
11087
11088 <attribute name="address" type="wstring" readonly="yes">
11089 <desc>Host specific address of the device.</desc>
11090 </attribute>
11091
11092 <attribute name="port" type="unsigned short" readonly="yes">
11093 <desc>
11094 Host USB port number the device is physically
11095 connected to.
11096 </desc>
11097 </attribute>
11098
11099 <attribute name="version" type="unsigned short" readonly="yes">
11100 <desc>
11101 The major USB version of the device - 1 or 2.
11102 </desc>
11103 </attribute>
11104
11105 <attribute name="portVersion" type="unsigned short" readonly="yes">
11106 <desc>
11107 The major USB version of the host USB port the device is
11108 physically connected to - 1 or 2. For devices not connected to
11109 anything this will have the same value as the version attribute.
11110 </desc>
11111 </attribute>
11112
11113 <attribute name="remote" type="boolean" readonly="yes">
11114 <desc>
11115 Whether the device is physically connected to a remote VRDP
11116 client or to a local host machine.
11117 </desc>
11118 </attribute>
11119
11120 </interface>
11121
11122
11123 <!--
11124 // IUSBDeviceFilter
11125 /////////////////////////////////////////////////////////////////////////
11126 -->
11127
11128 <interface
11129 name="IUSBDeviceFilter" extends="$unknown"
11130 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11131 wsmap="managed"
11132 >
11133 <desc>
11134 The IUSBDeviceFilter interface represents an USB device filter used
11135 to perform actions on a group of USB devices.
11136
11137 This type of filters is used by running virtual machines to
11138 automatically capture selected USB devices once they are physically
11139 attached to the host computer.
11140
11141 A USB device is matched to the given device filter if and only if all
11142 attributes of the device match the corresponding attributes of the
11143 filter (that is, attributes are joined together using the logical AND
11144 operation). On the other hand, all together, filters in the list of
11145 filters carry the semantics of the logical OR operation. So if it is
11146 desirable to create a match like "this vendor id OR this product id",
11147 one needs to create two filters and specify "any match" (see below)
11148 for unused attributes.
11149
11150 All filter attributes used for matching are strings. Each string
11151 is an expression representing a set of values of the corresponding
11152 device attribute, that will match the given filter. Currently, the
11153 following filtering expressions are supported:
11154
11155 <ul>
11156 <li><i>Interval filters</i>. Used to specify valid intervals for
11157 integer device attributes (Vendor ID, Product ID and Revision).
11158 The format of the string is:
11159
11160 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11161
11162 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11163 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11164 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11165 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11166 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11167 possible integer is assumed.
11168 </li>
11169 <li><i>Boolean filters</i>. Used to specify acceptable values for
11170 boolean device attributes. The format of the string is:
11171
11172 <tt>true|false|yes|no|0|1</tt>
11173
11174 </li>
11175 <li><i>Exact match</i>. Used to specify a single value for the given
11176 device attribute. Any string that doesn't start with <tt>int:</tt>
11177 represents the exact match. String device attributes are compared to
11178 this string including case of symbols. Integer attributes are first
11179 converted to a string (see individual filter attributes) and then
11180 compared ignoring case.
11181
11182 </li>
11183 <li><i>Any match</i>. Any value of the corresponding device attribute
11184 will match the given filter. An empty or <tt>null</tt> string is
11185 used to construct this type of filtering expressions.
11186
11187 </li>
11188 </ul>
11189
11190 <note>
11191 On the Windows host platform, interval filters are not currently
11192 available. Also all string filter attributes
11193 (<link to="#manufacturer"/>, <link to="#product"/>,
11194 <link to="#serialNumber"/>) are ignored, so they behave as
11195 <i>any match</i> no matter what string expression is specified.
11196 </note>
11197
11198 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11199 </desc>
11200
11201 <attribute name="name" type="wstring">
11202 <desc>
11203 Visible name for this filter.
11204 This name is used to visually distinguish one filter from another,
11205 so it can neither be <tt>null</tt> nor an empty string.
11206 </desc>
11207 </attribute>
11208
11209 <attribute name="active" type="boolean">
11210 <desc>Whether this filter active or has been temporarily disabled.</desc>
11211 </attribute>
11212
11213 <attribute name="vendorId" type="wstring">
11214 <desc>
11215 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11216 The string representation for the <i>exact matching</i>
11217 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11218 (including leading zeroes).
11219 </desc>
11220 </attribute>
11221
11222 <attribute name="productId" type="wstring">
11223 <desc>
11224 <link to="IUSBDevice::productId">Product ID</link> filter.
11225 The string representation for the <i>exact matching</i>
11226 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11227 (including leading zeroes).
11228 </desc>
11229 </attribute>
11230
11231 <attribute name="revision" type="wstring">
11232 <desc>
11233 <link to="IUSBDevice::productId">Product revision number</link>
11234 filter. The string representation for the <i>exact matching</i>
11235 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11236 of the integer part of the revision, and <tt>F</tt> is the
11237 decimal digit of its fractional part (including leading and
11238 trailing zeros).
11239 Note that for interval filters, it's best to use the hexadecimal
11240 form, because the revision is stored as a 16 bit packed BCD value;
11241 so the expression <tt>int:0x0100-0x0199</tt> will match any
11242 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11243 </desc>
11244 </attribute>
11245
11246 <attribute name="manufacturer" type="wstring">
11247 <desc>
11248 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11249 </desc>
11250 </attribute>
11251
11252 <attribute name="product" type="wstring">
11253 <desc>
11254 <link to="IUSBDevice::product">Product</link> filter.
11255 </desc>
11256 </attribute>
11257
11258 <attribute name="serialNumber" type="wstring">
11259 <desc>
11260 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11261 </desc>
11262 </attribute>
11263
11264 <attribute name="port" type="wstring">
11265 <desc>
11266 <link to="IUSBDevice::port">Host USB port</link> filter.
11267 </desc>
11268 </attribute>
11269
11270 <attribute name="remote" type="wstring">
11271 <desc>
11272 <link to="IUSBDevice::remote">Remote state</link> filter.
11273 <note>
11274 This filter makes sense only for machine USB filters,
11275 i.e. it is ignored by IHostUSBDeviceFilter objects.
11276 </note>
11277 </desc>
11278 </attribute>
11279
11280 <attribute name="maskedInterfaces" type="unsigned long">
11281 <desc>
11282 This is an advanced option for hiding one or more USB interfaces
11283 from the guest. The value is a bit mask where the bits that are set
11284 means the corresponding USB interface should be hidden, masked off
11285 if you like.
11286 This feature only works on Linux hosts.
11287 </desc>
11288 </attribute>
11289
11290 </interface>
11291
11292
11293 <!--
11294 // IHostUSBDevice
11295 /////////////////////////////////////////////////////////////////////////
11296 -->
11297
11298 <enum
11299 name="USBDeviceState"
11300 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11301 >
11302 <desc>
11303 USB device state. This enumeration represents all possible states
11304 of the USB device physically attached to the host computer regarding
11305 its state on the host computer and availability to guest computers
11306 (all currently running virtual machines).
11307
11308 Once a supported USB device is attached to the host, global USB
11309 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11310 either ignore the device, or put it to USBDeviceState_Held state, or do
11311 nothing. Unless the device is ignored by global filters, filters of all
11312 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11313 activated that can put it to USBDeviceState_Captured state.
11314
11315 If the device was ignored by global filters, or didn't match
11316 any filters at all (including guest ones), it is handled by the host
11317 in a normal way. In this case, the device state is determined by
11318 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11319 or USBDeviceState_Available, depending on the current device usage.
11320
11321 Besides auto-capturing based on filters, the device can be manually
11322 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11323 state is USBDeviceState_Busy, USBDeviceState_Available or
11324 USBDeviceState_Held.
11325
11326 <note>
11327 Due to differences in USB stack implementations in Linux and Win32,
11328 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11329 only to the Linux version of the product. This also means that (<link
11330 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11331 device state is USBDeviceState_Held.
11332 </note>
11333
11334 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11335 </desc>
11336
11337 <const name="NotSupported" value="0">
11338 <desc>
11339 Not supported by the VirtualBox server, not available to guests.
11340 </desc>
11341 </const>
11342 <const name="Unavailable" value="1">
11343 <desc>
11344 Being used by the host computer exclusively,
11345 not available to guests.
11346 </desc>
11347 </const>
11348 <const name="Busy" value="2">
11349 <desc>
11350 Being used by the host computer, potentially available to guests.
11351 </desc>
11352 </const>
11353 <const name="Available" value="3">
11354 <desc>
11355 Not used by the host computer, available to guests (the host computer
11356 can also start using the device at any time).
11357 </desc>
11358 </const>
11359 <const name="Held" value="4">
11360 <desc>
11361 Held by the VirtualBox server (ignored by the host computer),
11362 available to guests.
11363 </desc>
11364 </const>
11365 <const name="Captured" value="5">
11366 <desc>
11367 Captured by one of the guest computers, not available
11368 to anybody else.
11369 </desc>
11370 </const>
11371 </enum>
11372
11373 <enumerator
11374 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11375 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11376 />
11377
11378 <collection
11379 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11380 enumerator="IHostUSBDeviceEnumerator"
11381 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11382 readonly="yes"
11383 >
11384 <method name="findById">
11385 <desc>
11386 Searches this collection for a USB device with the given UUID.
11387 <note>
11388 The method returns an error if the given UUID does not
11389 correspond to any USB device in the collection.
11390 </note>
11391 <see>IHostUSBDevice::id</see>
11392 </desc>
11393 <param name="id" type="uuid" dir="in">
11394 <desc>UUID of the USB device to search for.</desc>
11395 </param>
11396 <param name="device" type="IHostUSBDevice" dir="return">
11397 <desc>Found USB device object.</desc>
11398 </param>
11399 </method>
11400
11401 <method name="findByAddress">
11402 <desc>
11403 Searches this collection for a USB device with the given
11404 host address.
11405 <note>
11406 The method returns an error if the given address does not
11407 correspond to any USB device in the collection.
11408 </note>
11409 <see>IHostUSBDevice::address</see>
11410 </desc>
11411 <param name="name" type="wstring" dir="in">
11412 <desc>
11413 Address of the USB device (as assigned by the host) to
11414 search for.
11415 </desc>
11416 </param>
11417 <param name="device" type="IHostUSBDevice" dir="return">
11418 <desc>Found USB device object.</desc>
11419 </param>
11420 </method>
11421
11422 </collection>
11423
11424 <interface
11425 name="IHostUSBDevice" extends="IUSBDevice"
11426 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11427 wsmap="managed"
11428 >
11429 <desc>
11430 The IHostUSBDevice interface represents a physical USB device attached
11431 to the host computer.
11432
11433 Besides properties inherited from IUSBDevice, this interface adds the
11434 <link to="#state"/> property that holds the current state of the USB
11435 device.
11436
11437 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11438 </desc>
11439
11440 <attribute name="state" type="USBDeviceState" readonly="yes">
11441 <desc>
11442 Current state of the device.
11443 </desc>
11444 </attribute>
11445
11446 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11447
11448 </interface>
11449
11450
11451 <!--
11452 // IHostUSBDeviceFilter
11453 /////////////////////////////////////////////////////////////////////////
11454 -->
11455
11456 <enum
11457 name="USBDeviceFilterAction"
11458 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11459 >
11460 <desc>
11461 Actions for host USB device filters.
11462 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11463 </desc>
11464
11465 <const name="Null" value="0">
11466 <desc>Null value (never used by the API).</desc>
11467 </const>
11468 <const name="Ignore" value="1">
11469 <desc>Ignore the matched USB device.</desc>
11470 </const>
11471 <const name="Hold" value="2">
11472 <desc>Hold the matched USB device.</desc>
11473 </const>
11474 </enum>
11475
11476 <interface
11477 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11478 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11479 wsmap="managed"
11480 >
11481 <desc>
11482 The IHostUSBDeviceFilter interface represents a global filter for a
11483 physical USB device used by the host computer. Used indirectly in
11484 <link to="IHost::USBDeviceFilters"/>.
11485
11486 Using filters of this type, the host computer determines the initial
11487 state of the USB device after it is physically attached to the
11488 host's USB controller.
11489
11490 <note>
11491 The <link to="#remote"/> attribute is ignored by this type of
11492 filters, because it makes sense only for
11493 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11494 </note>
11495
11496 <see>IHost::USBDeviceFilters</see>
11497 </desc>
11498
11499 <attribute name="action" type="USBDeviceFilterAction">
11500 <desc>
11501 Action performed by the host when an attached USB device
11502 matches this filter.
11503 </desc>
11504 </attribute>
11505
11506 </interface>
11507
11508 <!--
11509 // IAudioAdapter
11510 /////////////////////////////////////////////////////////////////////////
11511 -->
11512
11513 <enum
11514 name="AudioDriverType"
11515 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11516 >
11517 <desc>
11518 Host audio driver type.
11519 </desc>
11520
11521 <const name="Null" value="0">
11522 <desc>Null value, also means "dummy audio driver".</desc>
11523 </const>
11524 <const name="WinMM" value="1"/>
11525 <const name="OSS" value="2"/>
11526 <const name="ALSA" value="3"/>
11527 <const name="DirectSound" value="4"/>
11528 <const name="CoreAudio" value="5"/>
11529 <const name="MMPM" value="6"/>
11530 <const name="Pulse" value="7"/>
11531 <const name="SolAudio" value="8"/>
11532 </enum>
11533
11534 <enum
11535 name="AudioControllerType"
11536 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11537 >
11538 <desc>
11539 Virtual audio controller type.
11540 </desc>
11541
11542 <const name="AC97" value="0"/>
11543 <const name="SB16" value="1"/>
11544 </enum>
11545
11546 <interface
11547 name="IAudioAdapter" extends="$unknown"
11548 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11549 wsmap="managed"
11550 >
11551 <desc>
11552 The IAudioAdapter interface represents the virtual audio adapter of
11553 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11554 </desc>
11555 <attribute name="enabled" type="boolean">
11556 <desc>
11557 Flag whether the audio adapter is present in the
11558 guest system. If disabled, the virtual guest hardware will
11559 not contain any audio adapter. Can only be changed when
11560 the VM is not running.
11561 </desc>
11562 </attribute>
11563 <attribute name="audioController" type="AudioControllerType">
11564 <desc>
11565 The audio hardware we emulate.
11566 </desc>
11567 </attribute>
11568 <attribute name="audioDriver" type="AudioDriverType">
11569 <desc>
11570 Audio driver the adapter is connected to. This setting
11571 can only be changed when the VM is not running.
11572 </desc>
11573 </attribute>
11574 </interface>
11575
11576 <!--
11577 // IVRDPServer
11578 /////////////////////////////////////////////////////////////////////////
11579 -->
11580
11581 <enum
11582 name="VRDPAuthType"
11583 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11584 >
11585 <desc>
11586 VRDP authentication type.
11587 </desc>
11588
11589 <const name="Null" value="0">
11590 <desc>Null value, also means "no authentication".</desc>
11591 </const>
11592 <const name="External" value="1"/>
11593 <const name="Guest" value="2"/>
11594 </enum>
11595
11596 <interface
11597 name="IVRDPServer" extends="$unknown"
11598 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11599 wsmap="managed"
11600 >
11601 <attribute name="enabled" type="boolean">
11602 <desc>VRDP server status.</desc>
11603 </attribute>
11604
11605 <attribute name="port" type="unsigned long">
11606 <desc>
11607 VRDP server port number.
11608 <note>
11609 Setting the value of this property to <tt>0</tt> will reset the port
11610 number to the default value which is
11611 currently <tt>3389</tt>. Reading this property will always return a
11612 real port number, even after it has been set to <tt>0</tt> (in which
11613 case the default port is returned).
11614 </note>
11615 </desc>
11616 </attribute>
11617
11618 <attribute name="netAddress" type="wstring">
11619 <desc>VRDP server address.</desc>
11620 </attribute>
11621
11622 <attribute name="authType" type="VRDPAuthType">
11623 <desc>VRDP authentication method.</desc>
11624 </attribute>
11625
11626 <attribute name="authTimeout" type="unsigned long">
11627 <desc>Timeout for guest authentication. Milliseconds.</desc>
11628 </attribute>
11629
11630 <attribute name="allowMultiConnection" type="boolean">
11631 <desc>
11632 Flag whether multiple simultaneous connections to the VM are permitted.
11633 Note that this will be replaced by a more powerful mechanism in the future.
11634 </desc>
11635 </attribute>
11636
11637 <attribute name="reuseSingleConnection" type="boolean">
11638 <desc>
11639 Flag whether the existing connection must be dropped and a new connection
11640 must be established by the VRDP server, when a new client connects in single
11641 connection mode.
11642 </desc>
11643 </attribute>
11644
11645 </interface>
11646
11647
11648 <!--
11649 // ISharedFolder
11650 /////////////////////////////////////////////////////////////////////////
11651 -->
11652
11653 <interface
11654 name="ISharedFolder" extends="$unknown"
11655 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
11656 wsmap="struct"
11657 >
11658 <desc>
11659 The ISharedFolder interface represents a folder in the host computer's
11660 file system accessible from the guest OS running inside a virtual
11661 machine using an associated logical name.
11662
11663 There are three types of shared folders:
11664 <ul>
11665 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11666 folders available to all virtual machines.</li>
11667 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11668 VM-specific shared folders available to the given virtual machine at
11669 startup.</li>
11670 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11671 VM-specific shared folders created in the session context (for
11672 example, when the virtual machine is running) and automatically
11673 discarded when the session is closed (the VM is powered off).</li>
11674 </ul>
11675
11676 Logical names of shared folders must be unique within the given scope
11677 (global, permanent or transient). However, they do not need to be unique
11678 across scopes. In this case, the definition of the shared folder in a
11679 more specific scope takes precedence over definitions in all other
11680 scopes. The order of precedence is (more specific to more general):
11681 <ol>
11682 <li>Transient definitions</li>
11683 <li>Permanent definitions</li>
11684 <li>Global definitions</li>
11685 </ol>
11686
11687 For example, if MyMachine has a shared folder named
11688 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11689 transient shared folder named <tt>C_DRIVE</tt> (that points
11690 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11691 of <tt>C_DRIVE</tt> in the guest OS so
11692 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11693 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11694 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11695 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11696 to <tt>C:\\</tt> if it still exists.
11697
11698 Note that permanent and transient shared folders of different machines
11699 are in different name spaces, so they don't overlap and don't need to
11700 have unique logical names.
11701
11702 <note>
11703 Global shared folders are not implemented in the current version of the
11704 product.
11705 </note>
11706 </desc>
11707
11708 <attribute name="name" type="wstring" readonly="yes">
11709 <desc>Logical name of the shared folder.</desc>
11710 </attribute>
11711
11712 <attribute name="hostPath" type="wstring" readonly="yes">
11713 <desc>Full path to the shared folder in the host file system.</desc>
11714 </attribute>
11715
11716 <attribute name="accessible" type="boolean" readonly="yes">
11717 <desc>
11718 Whether the folder defined by the host path is currently
11719 accessible or not.
11720 For example, the folder can be unaccessible if it is placed
11721 on the network share that is not available by the time
11722 this property is read.
11723 </desc>
11724 </attribute>
11725
11726 <attribute name="writable" type="boolean" readonly="yes">
11727 <desc>
11728 Whether the folder defined by the host path is writable or
11729 not.
11730 </desc>
11731 </attribute>
11732
11733 <attribute name="lastAccessError" type="wstring" readonly="yes">
11734 <desc>
11735 Text message that represents the result of the last accessibility
11736 check.
11737
11738 Accessibility checks are performed each time the <link to="#accessible"/>
11739 attribute is read. A @c null string is returned if the last
11740 accessibility check was successful. A non-null string indicates a
11741 failure and should normally describe a reason of the failure (for
11742 example, a file read error).
11743 </desc>
11744 </attribute>
11745
11746 </interface>
11747
11748 <!--
11749 // ISession
11750 /////////////////////////////////////////////////////////////////////////
11751 -->
11752
11753 <interface
11754 name="IInternalSessionControl" extends="$unknown"
11755 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11756 internal="yes"
11757 wsmap="suppress"
11758 >
11759 <method name="getPID">
11760 <desc>PID of the process that has created this Session object.
11761 </desc>
11762 <param name="pid" type="unsigned long" dir="return"/>
11763 </method>
11764
11765 <method name="getRemoteConsole">
11766 <desc>
11767 Returns the console object suitable for remote control.
11768
11769 <result name="VBOX_E_INVALID_VM_STATE">
11770 Session state prevents operation.
11771 </result>
11772 <result name="VBOX_E_INVALID_OBJECT_STATE">
11773 Session type prevents operation.
11774 </result>
11775
11776 </desc>
11777 <param name="console" type="IConsole" dir="return"/>
11778 </method>
11779
11780 <method name="assignMachine">
11781 <desc>
11782 Assigns the machine object associated with this direct-type
11783 session or informs the session that it will be a remote one
11784 (if @a machine == NULL).
11785
11786 <result name="VBOX_E_INVALID_VM_STATE">
11787 Session state prevents operation.
11788 </result>
11789 <result name="VBOX_E_INVALID_OBJECT_STATE">
11790 Session type prevents operation.
11791 </result>
11792
11793 </desc>
11794 <param name="machine" type="IMachine" dir="in"/>
11795 </method>
11796
11797 <method name="assignRemoteMachine">
11798 <desc>
11799 Assigns the machine and the (remote) console object associated with
11800 this remote-type session.
11801
11802 <result name="VBOX_E_INVALID_VM_STATE">
11803 Session state prevents operation.
11804 </result>
11805
11806 </desc>
11807 <param name="machine" type="IMachine" dir="in"/>
11808 <param name="console" type="IConsole" dir="in"/>
11809 </method>
11810
11811 <method name="updateMachineState">
11812 <desc>
11813 Updates the machine state in the VM process.
11814 Must be called only in certain cases
11815 (see the method implementation).
11816
11817 <result name="VBOX_E_INVALID_VM_STATE">
11818 Session state prevents operation.
11819 </result>
11820 <result name="VBOX_E_INVALID_OBJECT_STATE">
11821 Session type prevents operation.
11822 </result>
11823
11824 </desc>
11825 <param name="aMachineState" type="MachineState" dir="in"/>
11826 </method>
11827
11828 <method name="uninitialize">
11829 <desc>
11830 Uninitializes (closes) this session. Used by VirtualBox to close
11831 the corresponding remote session when the direct session dies
11832 or gets closed.
11833
11834 <result name="VBOX_E_INVALID_VM_STATE">
11835 Session state prevents operation.
11836 </result>
11837
11838 </desc>
11839 </method>
11840
11841 <method name="onDVDDriveChange">
11842 <desc>
11843 Triggered when settings of the DVD drive object of the
11844 associated virtual machine have changed.
11845
11846 <result name="VBOX_E_INVALID_VM_STATE">
11847 Session state prevents operation.
11848 </result>
11849 <result name="VBOX_E_INVALID_OBJECT_STATE">
11850 Session type prevents operation.
11851 </result>
11852
11853 </desc>
11854 </method>
11855
11856 <method name="onFloppyDriveChange">
11857 <desc>
11858 Triggered when settings of the floppy drive object of the
11859 associated virtual machine have changed.
11860
11861 <result name="VBOX_E_INVALID_VM_STATE">
11862 Session state prevents operation.
11863 </result>
11864 <result name="VBOX_E_INVALID_OBJECT_STATE">
11865 Session type prevents operation.
11866 </result>
11867
11868 </desc>
11869 </method>
11870
11871 <method name="onNetworkAdapterChange">
11872 <desc>
11873 Triggered when settings of a network adapter of the
11874 associated virtual machine have changed.
11875
11876 <result name="VBOX_E_INVALID_VM_STATE">
11877 Session state prevents operation.
11878 </result>
11879 <result name="VBOX_E_INVALID_OBJECT_STATE">
11880 Session type prevents operation.
11881 </result>
11882
11883 </desc>
11884 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11885 </method>
11886
11887 <method name="onSerialPortChange">
11888 <desc>
11889 Triggered when settings of a serial port of the
11890 associated virtual machine have changed.
11891
11892 <result name="VBOX_E_INVALID_VM_STATE">
11893 Session state prevents operation.
11894 </result>
11895 <result name="VBOX_E_INVALID_OBJECT_STATE">
11896 Session type prevents operation.
11897 </result>
11898
11899 </desc>
11900 <param name="serialPort" type="ISerialPort" dir="in"/>
11901 </method>
11902
11903 <method name="onParallelPortChange">
11904 <desc>
11905 Triggered when settings of a parallel port of the
11906 associated virtual machine have changed.
11907
11908 <result name="VBOX_E_INVALID_VM_STATE">
11909 Session state prevents operation.
11910 </result>
11911 <result name="VBOX_E_INVALID_OBJECT_STATE">
11912 Session type prevents operation.
11913 </result>
11914
11915 </desc>
11916 <param name="parallelPort" type="IParallelPort" dir="in"/>
11917 </method>
11918
11919 <method name="onVRDPServerChange">
11920 <desc>
11921 Triggered when settings of the VRDP server object of the
11922 associated virtual machine have changed.
11923
11924 <result name="VBOX_E_INVALID_VM_STATE">
11925 Session state prevents operation.
11926 </result>
11927 <result name="VBOX_E_INVALID_OBJECT_STATE">
11928 Session type prevents operation.
11929 </result>
11930
11931 </desc>
11932 </method>
11933
11934 <method name="onUSBControllerChange">
11935 <desc>
11936 Triggered when settings of the USB controller object of the
11937 associated virtual machine have changed.
11938
11939 <result name="VBOX_E_INVALID_VM_STATE">
11940 Session state prevents operation.
11941 </result>
11942 <result name="VBOX_E_INVALID_OBJECT_STATE">
11943 Session type prevents operation.
11944 </result>
11945
11946 </desc>
11947 </method>
11948
11949 <method name="onSharedFolderChange">
11950 <desc>
11951 Triggered when a permanent (global or machine) shared folder has been
11952 created or removed.
11953 <note>
11954 We don't pass shared folder parameters in this notification because
11955 the order in which parallel notifications are delivered is not defined,
11956 therefore it could happen that these parameters were outdated by the
11957 time of processing this notification.
11958 </note>
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="global" type="boolean" dir="in"/>
11969 </method>
11970
11971 <method name="onUSBDeviceAttach">
11972 <desc>
11973 Triggered when a request to capture a USB device (as a result
11974 of matched USB filters or direct call to
11975 <link to="IConsole::attachUSBDevice"/>) has completed.
11976 A @c null @a error object means success, otherwise it
11977 describes a failure.
11978
11979 <result name="VBOX_E_INVALID_VM_STATE">
11980 Session state prevents operation.
11981 </result>
11982 <result name="VBOX_E_INVALID_OBJECT_STATE">
11983 Session type prevents operation.
11984 </result>
11985
11986 </desc>
11987 <param name="device" type="IUSBDevice" dir="in"/>
11988 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11989 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
11990 </method>
11991
11992 <method name="onUSBDeviceDetach">
11993 <desc>
11994 Triggered when a request to release the USB device (as a result
11995 of machine termination or direct call to
11996 <link to="IConsole::detachUSBDevice"/>) has completed.
11997 A @c null @a error object means success, otherwise it
11998
11999 <result name="VBOX_E_INVALID_VM_STATE">
12000 Session state prevents operation.
12001 </result>
12002 <result name="VBOX_E_INVALID_OBJECT_STATE">
12003 Session type prevents operation.
12004 </result>
12005
12006 </desc>
12007 <param name="id" type="uuid" dir="in"/>
12008 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12009 </method>
12010
12011 <method name="onShowWindow">
12012 <desc>
12013 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12014 <link to="IMachine::showConsoleWindow"/> in order to notify
12015 console callbacks
12016 <link to="IConsoleCallback::onCanShowWindow"/>
12017 and <link to="IConsoleCallback::onShowWindow"/>.
12018
12019 <result name="VBOX_E_INVALID_OBJECT_STATE">
12020 Session type prevents operation.
12021 </result>
12022
12023 </desc>
12024 <param name="check" type="boolean" dir="in"/>
12025 <param name="canShow" type="boolean" dir="out"/>
12026 <param name="winId" type="unsigned long long" dir="out"/>
12027 </method>
12028
12029 <method name="accessGuestProperty">
12030 <desc>
12031 Called by <link to="IMachine::getGuestProperty"/> and by
12032 <link to="IMachine::setGuestProperty"/> in order to read and
12033 modify guest properties.
12034
12035 <result name="VBOX_E_INVALID_VM_STATE">
12036 Machine session is not open.
12037 </result>
12038 <result name="VBOX_E_INVALID_OBJECT_STATE">
12039 Session type is not direct.
12040 </result>
12041
12042 </desc>
12043 <param name="name" type="wstring" dir="in"/>
12044 <param name="value" type="wstring" dir="in"/>
12045 <param name="flags" type="wstring" dir="in"/>
12046 <param name="isSetter" type="boolean" dir="in"/>
12047 <param name="retValue" type="wstring" dir="out"/>
12048 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12049 <param name="retFlags" type="wstring" dir="out"/>
12050 </method>
12051
12052 <method name="enumerateGuestProperties">
12053 <desc>
12054 Return a list of the guest properties matching a set of patterns along
12055 with their values, time stamps and flags.
12056
12057 <result name="VBOX_E_INVALID_VM_STATE">
12058 Machine session is not open.
12059 </result>
12060 <result name="VBOX_E_INVALID_OBJECT_STATE">
12061 Session type is not direct.
12062 </result>
12063
12064 </desc>
12065 <param name="patterns" type="wstring" dir="in">
12066 <desc>
12067 The patterns to match the properties against as a comma-separated
12068 string. If this is empty, all properties currently set will be
12069 returned.
12070 </desc>
12071 </param>
12072 <param name="key" type="wstring" dir="out" safearray="yes">
12073 <desc>
12074 The key names of the properties returned.
12075 </desc>
12076 </param>
12077 <param name="value" type="wstring" dir="out" safearray="yes">
12078 <desc>
12079 The values of the properties returned. The array entries match the
12080 corresponding entries in the @a key array.
12081 </desc>
12082 </param>
12083 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12084 <desc>
12085 The time stamps of the properties returned. The array entries match
12086 the corresponding entries in the @a key array.
12087 </desc>
12088 </param>
12089 <param name="flags" type="wstring" dir="out" safearray="yes">
12090 <desc>
12091 The flags of the properties returned. The array entries match the
12092 corresponding entries in the @a key array.
12093 </desc>
12094 </param>
12095 </method>
12096
12097 </interface>
12098
12099 <interface
12100 name="ISession" extends="$dispatched"
12101 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12102 wsmap="managed"
12103 >
12104 <desc>
12105 The ISession interface represents a serialization primitive for virtual
12106 machines.
12107
12108 With VirtualBox, every time one wishes to manipulate a virtual machine
12109 (e.g. change its settings or start execution), a session object is
12110 required. Such an object must be passed to one of the session methods
12111 that open the given session, which then initiates the machine manipulation.
12112
12113 A session serves several purposes: it identifies to the inter-process VirtualBox
12114 code which process is currently working with the virtual machine, and it ensures
12115 that there are no incompatible requests from several processes for the
12116 same virtual machine. Session objects can therefore be thought of as mutex
12117 semaphores that lock virtual machines to prevent conflicting accesses from
12118 several processes.
12119
12120 How sessions objects are used depends on whether you use the Main API
12121 via COM or via the webservice:
12122
12123 <ul>
12124 <li>When using the COM API directly, an object of the Session class from the
12125 VirtualBox type library needs to be created. In regular COM C++ client code,
12126 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12127 This object will then act as a local session object in further calls to open
12128 a session.
12129 </li>
12130
12131 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12132 one session object automatically when <link to="IWebsessionManager::logon" />
12133 is called. A managed object reference to that session object can be retrieved by
12134 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12135 reference can then be used to open sessions.
12136 </li>
12137 </ul>
12138
12139 Sessions are mainly used in two variations:
12140
12141 <ul>
12142 <li>
12143 To start a virtual machine in a separate process, one would call
12144 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12145 object as its first parameter. This session then identifies the caller
12146 and lets him control the started machine (for example, pause machine
12147 execution or power it down) as well as be notified about machine
12148 execution state changes.
12149 </li>
12150
12151 <li>To alter machine settings, or to start machine execution within the
12152 current process, one needs to open a direct session for the machine first by
12153 calling <link to="IVirtualBox::openSession"/>. While a direct session
12154 is open within one process, no any other process may open another direct
12155 session for the same machine. This prevents the machine from being changed
12156 by other processes while it is running or while the machine is being configured.
12157 </li>
12158 </ul>
12159
12160 One also can attach to an existing direct session already opened by
12161 another process (for example, in order to send a control request to the
12162 virtual machine such as the pause or the reset request). This is done by
12163 calling <link to="IVirtualBox::openExistingSession"/>.
12164
12165 <note>
12166 Unless you are trying to write a new VirtualBox front-end that
12167 performs direct machine execution (like the VirtualBox or VBoxSDL
12168 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12169 session opened by <link to="IVirtualBox::openSession"/> and use this
12170 session only to change virtual machine settings. If you simply want to
12171 start virtual machine execution using one of the existing front-ends
12172 (for example the VirtualBox GUI or headless server), simply use
12173 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12174 will power up the machine automatically for you.
12175 </note>
12176 </desc>
12177
12178 <attribute name="state" type="SessionState" readonly="yes">
12179 <desc>Current state of this session.</desc>
12180 </attribute>
12181
12182 <attribute name="type" type="SessionType" readonly="yes">
12183 <desc>
12184 Type of this session. The value of this attribute is valid only
12185 if the session is currently open (i.e. its #state is
12186 SessionType_SessionOpen), otherwise an error will be returned.
12187 </desc>
12188 </attribute>
12189
12190 <attribute name="machine" type="IMachine" readonly="yes">
12191 <desc>Machine object associated with this session.</desc>
12192 </attribute>
12193
12194 <attribute name="console" type="IConsole" readonly="yes">
12195 <desc>Console object associated with this session.</desc>
12196 </attribute>
12197
12198 <method name="close">
12199 <desc>
12200 Closes a session that was previously opened.
12201
12202 It is recommended that every time an "open session" method (such as
12203 <link to="IVirtualBox::openRemoteSession" /> or
12204 <link to="IVirtualBox::openSession" />) has been called to
12205 manipulate a virtual machine, the caller invoke
12206 ISession::close() when it's done doing so. Since sessions are
12207 serialization primitives much like ordinary mutexes, they are
12208 best used the same way: for each "open" call, there should be
12209 a matching "close" call, even when errors occur.
12210
12211 Otherwise, if a direct session for a machine opened with
12212 <link to="IVirtualBox::openSession"/> is not explicitly closed
12213 when the application terminates, the state of the machine will
12214 be set to <link to="MachineState_Aborted" /> on the server.
12215
12216 Generally, it is recommended to close all open sessions explicitly
12217 before terminating the application (regardless of the reason for
12218 the termination).
12219
12220 <note>
12221 Do not expect the session state (<link to="ISession::state" />
12222 to return to "Closed" immediately after you invoke
12223 ISession::close(), particularly if you have started a remote
12224 session to execute the VM in a new process. The session state will
12225 automatically return to "Closed" once the VM is no longer executing,
12226 which can of course take a very long time.
12227 </note>
12228
12229 <result name="E_UNEXPECTED">
12230 Session is not open.
12231 </result>
12232
12233 </desc>
12234 </method>
12235
12236 </interface>
12237
12238 <!--
12239 // ISATAController
12240 /////////////////////////////////////////////////////////////////////////
12241 -->
12242
12243 <interface
12244 name="ISATAController" extends="$unknown"
12245 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12246 wsmap="managed"
12247 >
12248 <attribute name="enabled" type="boolean">
12249 <desc>
12250 Flag whether the SATA controller is present in the
12251 guest system. If disabled, the virtual guest hardware will
12252 not contain any SATA controller. Can only be changed when
12253 the VM is powered off.
12254 </desc>
12255 </attribute>
12256
12257 <attribute name="portCount" type="unsigned long">
12258 <desc>
12259 The number of usable ports on the SATA controller.
12260 It ranges from 1 to 30.
12261 </desc>
12262 </attribute>
12263
12264 <method name="GetIDEEmulationPort">
12265 <desc>
12266 Gets the corresponding port number which is emulated as an IDE device.
12267
12268 <result name="E_INVALIDARG">
12269 The @a devicePosition is not in the range 0 to 3.
12270 </result>
12271
12272 </desc>
12273 <param name="devicePosition" type="long" dir="in"/>
12274 <param name="portNumber" type="long" dir="return"/>
12275 </method>
12276
12277 <method name="SetIDEEmulationPort">
12278 <desc>
12279 Sets the port number which is emulated as an IDE device.
12280
12281 <result name="E_INVALIDARG">
12282 The @a devicePosition is not in the range 0 to 3 or the
12283 @a portNumber is not in the range 0 to 29.
12284 </result>
12285
12286 </desc>
12287 <param name="devicePosition" type="long" dir="in"/>
12288 <param name="portNumber" type="long" dir="in"/>
12289 </method>
12290
12291 </interface>
12292
12293<if target="wsdl">
12294
12295 <!--
12296 // IManagedObjectRef
12297 /////////////////////////////////////////////////////////////////////////
12298 -->
12299
12300 <interface
12301 name="IManagedObjectRef" extends="$unknown"
12302 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12303 internal="yes"
12304 wsmap="managed"
12305 wscpp="hardcoded"
12306 >
12307 <desc>
12308 Managed object reference.
12309
12310 Only within the webservice, a managed object reference (which is really
12311 an opaque number) allows a webservice client to address an object
12312 that lives in the address space of the webservice server.
12313
12314 Behind each managed object reference, there is a COM object that lives
12315 in the webservice server's address space. The COM object is not freed
12316 until the managed object reference is released, either by an explicit
12317 call to <link to="IManagedObjectRef::release" /> or by logging off from
12318 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12319 all objects created during the webservice session.
12320
12321 Whenever a method call of the VirtualBox API returns a COM object, the
12322 webservice representation of that method will instead return a
12323 managed object reference, which can then be used to invoke methods
12324 on that object.
12325 </desc>
12326
12327 <method name="getInterfaceName">
12328 <desc>
12329 Returns the name of the interface that this managed object represents,
12330 for example, "IMachine", as a string.
12331 </desc>
12332 <param name="return" type="wstring" dir="return"/>
12333 </method>
12334
12335 <method name="release">
12336 <desc>
12337 Releases this managed object reference and frees the resources that
12338 were allocated for it in the webservice server process. After calling
12339 this method, the identifier of the reference can no longer be used.
12340 </desc>
12341 </method>
12342
12343 </interface>
12344
12345 <!--
12346 // IWebsessionManager
12347 /////////////////////////////////////////////////////////////////////////
12348 -->
12349
12350 <interface
12351 name="IWebsessionManager" extends="$unknown"
12352 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12353 internal="yes"
12354 wsmap="global"
12355 wscpp="hardcoded"
12356 >
12357 <desc>
12358 Websession manager. This provides essential services
12359 to webservice clients.
12360 </desc>
12361 <method name="logon">
12362 <desc>
12363 Logs a new client onto the webservice and returns a managed object reference to
12364 the IVirtualBox instance, which the client can then use as a basis to further
12365 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12366 interface, in one way or the other.
12367 </desc>
12368 <param name="username" type="wstring" dir="in"/>
12369 <param name="password" type="wstring" dir="in"/>
12370 <param name="return" type="IVirtualBox" dir="return"/>
12371 </method>
12372
12373 <method name="getSessionObject">
12374 <desc>
12375 Returns a managed object reference to the internal ISession object that was created
12376 for this web service session when the client logged on.
12377
12378 <see>ISession</see>
12379 </desc>
12380 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12381 <param name="return" type="ISession" dir="return"/>
12382 </method>
12383
12384 <method name="logoff">
12385 <desc>
12386 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12387 and destroys all resources associated with the session (most importantly, all
12388 managed objects created in the server while the session was active).
12389 </desc>
12390 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12391 </method>
12392
12393 </interface>
12394
12395</if>
12396
12397 <!--
12398 // IPerformanceCollector & friends
12399 /////////////////////////////////////////////////////////////////////////
12400 -->
12401
12402 <interface
12403 name="IPerformanceMetric" extends="$unknown"
12404 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12405 >
12406 <desc>
12407 The IPerformanceMetric interface represents parameters of the given
12408 performance metric.
12409 </desc>
12410
12411 <attribute name="metricName" type="wstring" readonly="yes">
12412 <desc>
12413 Name of the metric.
12414 </desc>
12415 </attribute>
12416
12417 <attribute name="object" type="$unknown" readonly="yes">
12418 <desc>
12419 Object this metric belongs to.
12420 </desc>
12421 </attribute>
12422
12423 <attribute name="description" type="wstring" readonly="yes">
12424 <desc>
12425 Textual description of the metric.
12426 </desc>
12427 </attribute>
12428
12429 <attribute name="period" type="unsigned long" readonly="yes">
12430 <desc>
12431 Time interval between samples, measured in seconds.
12432 </desc>
12433 </attribute>
12434
12435 <attribute name="count" type="unsigned long" readonly="yes">
12436 <desc>
12437 Number of recent samples retained by the performance collector for this
12438 metric.
12439
12440 When the collected sample count exceeds this number, older samples
12441 are discarded.
12442 </desc>
12443 </attribute>
12444
12445 <attribute name="unit" type="wstring" readonly="yes">
12446 <desc>
12447 Unit of measurement.
12448 </desc>
12449 </attribute>
12450
12451 <attribute name="minimumValue" type="long" readonly="yes">
12452 <desc>
12453 Minimum possible value of this metric.
12454 </desc>
12455 </attribute>
12456
12457 <attribute name="maximumValue" type="long" readonly="yes">
12458 <desc>
12459 Maximum possible value of this metric.
12460 </desc>
12461 </attribute>
12462 </interface>
12463
12464 <interface
12465 name="IPerformanceCollector" extends="$unknown"
12466 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12467 wsmap="managed"
12468 >
12469 <desc>
12470 The IPerformanceCollector interface represents a service that collects and
12471 stores performance metrics data.
12472
12473 Performance metrics are associated with objects like IHost and
12474 IMachine. Each object has a distinct set of performance metrics.
12475 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12476
12477 Metric data are collected at the specified intervals and are retained
12478 internally. The interval and the number of samples retained can be set
12479 with <link to="IPerformanceCollector::setupMetrics" />.
12480
12481 Metrics are organized hierarchically, each level separated by slash (/).
12482 General scheme for metric name is
12483 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12484 metric name stands for: CPU category, Load metric, User submetric, average
12485 aggregate. An aggregate function is computed over all retained data. Valid
12486 aggregate functions are:
12487
12488 <ul>
12489 <li>avg -- average</li>
12490 <li>min -- minimum</li>
12491 <li>max -- maximum</li>
12492 </ul>
12493
12494 "Category/Metric" together form base metric name. A base metric is the
12495 smallest unit for which a sampling interval and the number of retained
12496 samples can be set. Only base metrics can be enabled and disabled. All
12497 sub-metrics are collected when their base metric is collected.
12498 Collected values for any set of sub-metrics can be queried with
12499 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12500 metric parameters, querying metric data, enabling or disabling metrics
12501 wildcards can be used in metric names to specify a subset of metrics. For
12502 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12503 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12504 values without aggregates <tt>*:</tt> can be used.
12505
12506 The valid names for base metrics are:
12507
12508 <ul>
12509 <li>CPU/Load</li>
12510 <li>CPU/MHz</li>
12511 <li>RAM/Usage</li>
12512 </ul>
12513
12514 The general sequence for collecting and retrieving the metrics is:
12515 <ul>
12516 <li>
12517 Obtain an instance of IPerformanceCollector with
12518 <link to="IVirtualBox::performanceCollector" />
12519 </li>
12520 <li>
12521 Allocate and populate an array with references to objects the metrics
12522 will be collected for. Use references to IHost and IMachine objects.
12523 </li>
12524 <li>
12525 Allocate and populate an array with base metric names the data will be
12526 collected for.
12527 </li>
12528 <li>
12529 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12530 metric data will be collected and stored.
12531 </li>
12532 <li>
12533 Wait for the data to get collected.
12534 </li>
12535 <li>
12536 Allocate and populate an array with references to objects the metric
12537 values will be queried for. You can re-use the object array used for
12538 setting base metrics.
12539 </li>
12540 <li>
12541 Allocate and populate an array with metric names the data will be
12542 collected for. Note that metric names differ from base metric names.
12543 </li>
12544 <li>
12545 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12546 have been collected so far are returned. Note that the values are still
12547 retained internally and data collection continues.
12548 </li>
12549 </ul>
12550
12551 For an example of usage refer to the following files in VirtualBox SDK:
12552 <ul>
12553 <li>
12554 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12555 </li>
12556 <li>
12557 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12558 </li>
12559 </ul>
12560 </desc>
12561
12562 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12563 <desc>
12564 Array of unique names of metrics.
12565
12566 This array represents all metrics supported by the performance
12567 collector. Individual objects do not necessarily support all of them.
12568 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12569 list of supported metrics for a particular object.
12570 </desc>
12571 </attribute>
12572
12573 <method name="getMetrics">
12574 <desc>
12575 Returns parameters of specified metrics for a set of objects.
12576 <note>
12577 @c Null metrics array means all metrics. @c Null object array means
12578 all existing objects.
12579 </note>
12580 </desc>
12581 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12582 <desc>
12583 Metric name filter. Currently, only a comma-separated list of metrics
12584 is supported.
12585 </desc>
12586 </param>
12587 <param name="objects" type="$unknown" dir="in" safearray="yes">
12588 <desc>
12589 Set of objects to return metric parameters for.
12590 </desc>
12591 </param>
12592 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12593 <desc>
12594 Array of returned metric parameters.
12595 </desc>
12596 </param>
12597 </method>
12598
12599 <method name="setupMetrics">
12600 <desc>
12601 Sets parameters of specified base metrics for a set of objects. Returns
12602 an array of <link to="IPerformanceMetric" /> describing the metrics have
12603 been affected.
12604 <note>
12605 @c Null or empty metric name array means all metrics. @c Null or empty
12606 object array means all existing objects. If metric name array contains
12607 a single element and object array contains many, the single metric
12608 name array element is applied to each object array element to form
12609 metric/object pairs.
12610 </note>
12611 </desc>
12612 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12613 <desc>
12614 Metric name filter. Comma-separated list of metrics with wildcard
12615 support.
12616 </desc>
12617 </param>
12618 <param name="objects" type="$unknown" dir="in" safearray="yes">
12619 <desc>
12620 Set of objects to setup metric parameters for.
12621 </desc>
12622 </param>
12623 <param name="period" type="unsigned long" dir="in">
12624 <desc>
12625 Time interval in seconds between two consecutive samples of performance
12626 data.
12627 </desc>
12628 </param>
12629 <param name="count" type="unsigned long" dir="in">
12630 <desc>
12631 Number of samples to retain in performance data history. Older samples
12632 get discarded.
12633 </desc>
12634 </param>
12635 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12636 <desc>
12637 Array of metrics that have been modified by the call to this method.
12638 </desc>
12639 </param>
12640 </method>
12641
12642 <method name="enableMetrics">
12643 <desc>
12644 Turns on collecting specified base metrics. Returns an array of
12645 <link to="IPerformanceMetric" /> describing the metrics have been
12646 affected.
12647 <note>
12648 @c Null or empty metric name array means all metrics. @c Null or empty
12649 object array means all existing objects. If metric name array contains
12650 a single element and object array contains many, the single metric
12651 name array element is applied to each object array element to form
12652 metric/object pairs.
12653 </note>
12654 </desc>
12655 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12656 <desc>
12657 Metric name filter. Comma-separated list of metrics with wildcard
12658 support.
12659 </desc>
12660 </param>
12661 <param name="objects" type="$unknown" dir="in" safearray="yes">
12662 <desc>
12663 Set of objects to enable metrics for.
12664 </desc>
12665 </param>
12666 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12667 <desc>
12668 Array of metrics that have been modified by the call to this method.
12669 </desc>
12670 </param>
12671 </method>
12672
12673 <method name="disableMetrics">
12674 <desc>
12675 Turns off collecting specified base metrics. Returns an array of
12676 <link to="IPerformanceMetric" /> describing the metrics have been
12677 affected.
12678 <note>
12679 @c Null or empty metric name array means all metrics. @c Null or empty
12680 object array means all existing objects. If metric name array contains
12681 a single element and object array contains many, the single metric
12682 name array element is applied to each object array element to form
12683 metric/object pairs.
12684 </note>
12685 </desc>
12686 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12687 <desc>
12688 Metric name filter. Comma-separated list of metrics with wildcard
12689 support.
12690 </desc>
12691 </param>
12692 <param name="objects" type="$unknown" dir="in" safearray="yes">
12693 <desc>
12694 Set of objects to disable metrics for.
12695 </desc>
12696 </param>
12697 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12698 <desc>
12699 Array of metrics that have been modified by the call to this method.
12700 </desc>
12701 </param>
12702 </method>
12703
12704 <method name="queryMetricsData">
12705 <desc>
12706 Queries collected metrics data for a set of objects.
12707
12708 The data itself and related metric information are returned in seven
12709 parallel and one flattened array of arrays. Elements of
12710 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12711 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12712 the same index describe one set of values corresponding to a single
12713 metric.
12714
12715 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12716 start and length of a sub-array is indicated by
12717 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12718 value for metric <tt>metricNames[i]</tt> is at
12719 <tt>returnData[returnIndices[i]]</tt>.
12720
12721 <note>
12722 @c Null or empty metric name array means all metrics. @c Null or empty
12723 object array means all existing objects. If metric name array contains
12724 a single element and object array contains many, the single metric
12725 name array element is applied to each object array element to form
12726 metric/object pairs.
12727 </note>
12728 <note>
12729 Data collection continues behind the scenes after call to
12730 @c queryMetricsData. The return data can be seen as the snapshot of
12731 the current state at the time of @c queryMetricsData call. The
12732 internally kept metric values are not cleared by the call. This makes
12733 possible querying different subsets of metrics or aggregates with
12734 subsequent calls. If periodic querying is needed it is highly
12735 suggested to query the values with @c interval*count period to avoid
12736 confusion. This way a completely new set of data values will be
12737 provided by each query.
12738 </note>
12739 </desc>
12740 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12741 <desc>
12742 Metric name filter. Comma-separated list of metrics with wildcard
12743 support.
12744 </desc>
12745 </param>
12746 <param name="objects" type="$unknown" dir="in" safearray="yes">
12747 <desc>
12748 Set of objects to query metrics for.
12749 </desc>
12750 </param>
12751 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12752 <desc>
12753 Names of metrics returned in @c returnData.
12754 </desc>
12755 </param>
12756 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12757 <desc>
12758 Objects associated with metrics returned in @c returnData.
12759 </desc>
12760 </param>
12761 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12762 <desc>
12763 Units of measurement for each returned metric.
12764 </desc>
12765 </param>
12766 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12767 <desc>
12768 Divisor that should be applied to return values in order to get
12769 floating point values. For example:
12770 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12771 will retrieve the floating point value of i-th sample of the first
12772 metric.
12773 </desc>
12774 </param>
12775 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12776 <desc>
12777 Sequence numbers of the first elements of value sequences of particular metrics
12778 returned in @c returnData. For aggregate metrics it is the sequence number of
12779 the sample the aggregate started calculation from.
12780 </desc>
12781 </param>
12782 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12783 <desc>
12784 Indices of the first elements of value sequences of particular metrics
12785 returned in @c returnData.
12786 </desc>
12787 </param>
12788 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12789 <desc>
12790 Lengths of value sequences of particular metrics.
12791 </desc>
12792 </param>
12793 <param name="returnData" type="long" dir="return" safearray="yes">
12794 <desc>
12795 Flattened array of all metric data containing sequences of values for
12796 each metric.
12797 </desc>
12798 </param>
12799 </method>
12800
12801 </interface>
12802
12803 <module name="VBoxSVC" context="LocalServer">
12804 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12805 namespace="virtualbox.org">
12806 <interface name="IVirtualBox" default="yes"/>
12807 </class>
12808 </module>
12809
12810 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12811 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12812 namespace="virtualbox.org">
12813 <interface name="ISession" default="yes"/>
12814 </class>
12815 </module>
12816
12817</library>
12818
12819</idl>
12820
12821<!-- 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