VirtualBox

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

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

Main/NetIf: boolean dhcpEnabled property, NOTIMPL yet

  • Property svn:eol-style set to native
File size: 478.2 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="ClipboardMode"
719 uuid="33364716-4008-4701-8f14-be0fa3d62950"
720 >
721 <desc>
722 Host-Guest clipboard interchange mode.
723 </desc>
724
725 <const name="Disabled" value="0"/>
726 <const name="HostToGuest" value="1"/>
727 <const name="GuestToHost" value="2"/>
728 <const name="Bidirectional" value="3"/>
729 </enum>
730
731 <enum
732 name="Scope"
733 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
734 >
735 <desc>
736 Scope of the operation.
737
738 A generic enumeration used in various methods to define the action or
739 argument scope.
740 </desc>
741
742 <const name="Global" value="0"/>
743 <const name="Machine" value="1"/>
744 <const name="Session" value="2"/>
745 </enum>
746
747 <enum
748 name="GuestStatisticType"
749 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
750 >
751 <desc>
752 Statistics type for <link to="IGuest::getStatistic"/>.
753 </desc>
754
755 <const name="CPULoad_Idle" value="0">
756 <desc>
757 Idle CPU load (0-100%) for last interval.
758 </desc>
759 </const>
760 <const name="CPULoad_Kernel" value="1">
761 <desc>
762 Kernel CPU load (0-100%) for last interval.
763 </desc>
764 </const>
765 <const name="CPULoad_User" value="2">
766 <desc>
767 User CPU load (0-100%) for last interval.
768 </desc>
769 </const>
770 <const name="Threads" value="3">
771 <desc>
772 Total number of threads in the system.
773 </desc>
774 </const>
775 <const name="Processes" value="4">
776 <desc>
777 Total number of processes in the system.
778 </desc>
779 </const>
780 <const name="Handles" value="5">
781 <desc>
782 Total number of handles in the system.
783 </desc>
784 </const>
785 <const name="MemoryLoad" value="6">
786 <desc>
787 Memory load (0-100%).
788 </desc>
789 </const>
790 <const name="PhysMemTotal" value="7">
791 <desc>
792 Total physical memory in megabytes.
793 </desc>
794 </const>
795 <const name="PhysMemAvailable" value="8">
796 <desc>
797 Free physical memory in megabytes.
798 </desc>
799 </const>
800 <const name="PhysMemBalloon" value="9">
801 <desc>
802 Ballooned physical memory in megabytes.
803 </desc>
804 </const>
805 <const name="MemCommitTotal" value="10">
806 <desc>
807 Total amount of memory in the committed state in megabytes.
808 </desc>
809 </const>
810 <const name="MemKernelTotal" value="11">
811 <desc>
812 Total amount of memory used by the guest OS's kernel in megabytes.
813 </desc>
814 </const>
815 <const name="MemKernelPaged" value="12">
816 <desc>
817 Total amount of paged memory used by the guest OS's kernel in megabytes.
818 </desc>
819 </const>
820 <const name="MemKernelNonpaged" value="13">
821 <desc>
822 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
823 </desc>
824 </const>
825 <const name="MemSystemCache" value="14">
826 <desc>
827 Total amount of memory used by the guest OS's system cache in megabytes.
828 </desc>
829 </const>
830 <const name="PageFileSize" value="15">
831 <desc>
832 Pagefile size in megabytes.
833 </desc>
834 </const>
835 <const name="SampleNumber" value="16">
836 <desc>
837 Statistics sample number
838 </desc>
839 </const>
840 <const name="MaxVal" value="17"/>
841 </enum>
842
843 <enum
844 name="BIOSBootMenuMode"
845 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
846 >
847 <desc>
848 BIOS boot menu mode.
849 </desc>
850
851 <const name="Disabled" value="0"/>
852 <const name="MenuOnly" value="1"/>
853 <const name="MessageAndMenu" value="2"/>
854 </enum>
855
856 <enum
857 name="DriveState"
858 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
859 >
860 <const name="Null" value="0">
861 <desc>Null value (never used by the API).</desc>
862 </const>
863 <const name="NotMounted" value="1"/>
864 <const name="ImageMounted" value="2"/>
865 <const name="HostDriveCaptured" value="3"/>
866 </enum>
867
868 <enum
869 name="ProcessorFeature"
870 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
871 >
872 <desc>
873 CPU features.
874 </desc>
875
876 <const name="HWVirtEx" value="0"/>
877 <const name="PAE" value="1"/>
878 <const name="LongMode" value="2"/>
879 </enum>
880
881
882 <!--
883 // IVirtualBoxErrorInfo
884 /////////////////////////////////////////////////////////////////////////
885 -->
886
887 <interface
888 name="IVirtualBoxErrorInfo" extends="$errorinfo"
889 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
890 supportsErrorInfo="no"
891 wsmap="suppress"
892 >
893 <desc>
894 The IVirtualBoxErrorInfo interface represents extended error information.
895
896 Extended error information can be set by VirtualBox components after
897 unsuccessful or partially successful method invocation. This information
898 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
899 and then shown to the client in addition to the plain 32-bit result code.
900
901 In MS COM, this interface extends the IErrorInfo interface,
902 in XPCOM, it extends the nsIException interface. In both cases,
903 it provides a set of common attributes to retrieve error
904 information.
905
906 Sometimes invocation of some component's method may involve methods of
907 other components that may also fail (independently of this method's
908 failure), or a series of non-fatal errors may precede a fatal error that
909 causes method failure. In cases like that, it may be desirable to preserve
910 information about all errors happened during method invocation and deliver
911 it to the caller. The <link to="#next"/> attribute is intended
912 specifically for this purpose and allows to represent a chain of errors
913 through a single IVirtualBoxErrorInfo object set after method invocation.
914
915 Note that errors are stored to a chain in the reverse order, i.e. the
916 initial error object you query right after method invocation is the last
917 error set by the callee, the object it points to in the @a next attribute
918 is the previous error and so on, up to the first error (which is the last
919 in the chain).
920 </desc>
921
922 <attribute name="resultCode" type="result" readonly="yes">
923 <desc>
924 Result code of the error.
925 Usually, it will be the same as the result code returned
926 by the method that provided this error information, but not
927 always. For example, on Win32, CoCreateInstance() will most
928 likely return E_NOINTERFACE upon unsuccessful component
929 instantiation attempt, but not the value the component factory
930 returned.
931 <note>
932 In MS COM, there is no equivalent.
933 In XPCOM, it is the same as nsIException::result.
934 </note>
935 </desc>
936 </attribute>
937
938 <attribute name="interfaceID" type="uuid" readonly="yes">
939 <desc>
940 UUID of the interface that defined the error.
941 <note>
942 In MS COM, it is the same as IErrorInfo::GetGUID.
943 In XPCOM, there is no equivalent.
944 </note>
945 </desc>
946 </attribute>
947
948 <attribute name="component" type="wstring" readonly="yes">
949 <desc>
950 Name of the component that generated the error.
951 <note>
952 In MS COM, it is the same as IErrorInfo::GetSource.
953 In XPCOM, there is no equivalent.
954 </note>
955 </desc>
956 </attribute>
957
958 <attribute name="text" type="wstring" readonly="yes">
959 <desc>
960 Text description of the error.
961 <note>
962 In MS COM, it is the same as IErrorInfo::GetDescription.
963 In XPCOM, it is the same as nsIException::message.
964 </note>
965 </desc>
966 </attribute>
967
968 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
969 <desc>
970 Next error object if there is any, or @c null otherwise.
971 <note>
972 In MS COM, there is no equivalent.
973 In XPCOM, it is the same as nsIException::inner.
974 </note>
975 </desc>
976 </attribute>
977
978 </interface>
979
980
981 <!--
982 // IVirtualBox
983 /////////////////////////////////////////////////////////////////////////
984 -->
985
986 <interface
987 name="IVirtualBoxCallback" extends="$unknown"
988 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
989 wsmap="suppress"
990 >
991 <method name="onMachineStateChange">
992 <desc>
993 The execution state of the given machine has changed.
994 <see>IMachine::state</see>
995 </desc>
996 <param name="machineId" type="uuid" dir="in">
997 <desc>ID of the machine this event relates to.</desc>
998 </param>
999 <param name="state" type="MachineState" dir="in">
1000 <desc>New execution state.</desc>
1001 </param>
1002 </method>
1003
1004 <method name="onMachineDataChange">
1005 <desc>
1006 Any of the settings of the given machine has changed.
1007 </desc>
1008 <param name="machineId" type="uuid" dir="in">
1009 <desc>ID of the machine this event relates to.</desc>
1010 </param>
1011 </method>
1012
1013 <method name="onExtraDataCanChange">
1014 <desc>
1015 Notification when someone tries to change extra data for
1016 either the given machine or (if null) global extra data.
1017 This gives the chance to veto against changes.
1018 </desc>
1019 <param name="machineId" type="uuid" dir="in">
1020 <desc>
1021 ID of the machine this event relates to
1022 (null ID for global extra data change requests).
1023 </desc>
1024 </param>
1025 <param name="key" type="wstring" dir="in">
1026 <desc>
1027 Extra data key for the attempted write.
1028 </desc>
1029 </param>
1030 <param name="value" type="wstring" dir="in">
1031 <desc>
1032 Extra data value for the given key.
1033 </desc>
1034 </param>
1035 <param name="error" type="wstring" dir="out">
1036 <desc>
1037 Optional error message describing the reason of the
1038 veto (ignored if this notification returns @c true).
1039 </desc>
1040 </param>
1041 <param name="allowChange" type="boolean" dir="return">
1042 <desc>
1043 Flag to indicate whether the callee agrees (@c true)
1044 or vetoes against the change (@c false).
1045 </desc>
1046 </param>
1047 </method>
1048
1049 <method name="onExtraDataChange">
1050 <desc>
1051 Notification when machine specific or global extra data
1052 has changed.
1053 </desc>
1054 <param name="machineId" type="uuid" dir="in">
1055 <desc>
1056 ID of the machine this event relates to.
1057 Null for global extra data changes.
1058 </desc>
1059 </param>
1060 <param name="key" type="wstring" dir="in">
1061 <desc>
1062 Extra data key that has changed.
1063 </desc>
1064 </param>
1065 <param name="value" type="wstring" dir="in">
1066 <desc>
1067 Extra data value for the given key.
1068 </desc>
1069 </param>
1070 </method>
1071
1072 <method name="onMediaRegistered">
1073 <desc>
1074 The given media was registered or unregistered
1075 within this VirtualBox installation.
1076
1077 The @a mediaType parameter describes what type of
1078 media the specified @a mediaId refers to. Possible
1079 values are:
1080
1081 <ul>
1082 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1083 that, if registered, can be obtained using the
1084 <link to="IVirtualBox::getHardDisk"/> call.</li>
1085 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1086 that, if registered, can be obtained using the
1087 <link to="IVirtualBox::getDVDImage"/> call.</li>
1088 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1089 that, if registered, can be obtained using the
1090 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1091 </ul>
1092
1093 Note that if this is a deregistration notification,
1094 there is no way to access the object representing the
1095 unregistered media. It is supposed that the
1096 application will do required cleanup based on the
1097 @a mediaId value.
1098 </desc>
1099 <param name="mediaId" type="uuid" dir="in">
1100 <desc>ID of the media this event relates to.</desc>
1101 </param>
1102 <param name="mediaType" type="DeviceType" dir="in">
1103 <desc>Type of the media this event relates to.</desc>
1104 </param>
1105 <param name="registered" type="boolean" dir="in">
1106 <desc>
1107 If true, the media was registered, otherwise it was
1108 unregistered.
1109 </desc>
1110 </param>
1111 </method>
1112
1113 <method name="onMachineRegistered">
1114 <desc>
1115 The given machine was registered or unregistered
1116 within this VirtualBox installation.
1117 </desc>
1118 <param name="machineId" type="uuid" dir="in">
1119 <desc>ID of the machine this event relates to.</desc>
1120 </param>
1121 <param name="registered" type="boolean" dir="in">
1122 <desc>
1123 If true, the machine was registered, otherwise it was
1124 unregistered.
1125 </desc>
1126 </param>
1127 </method>
1128
1129 <method name="onSessionStateChange">
1130 <desc>
1131 The state of the session for the given machine was changed.
1132 <see>IMachine::sessionState</see>
1133 </desc>
1134 <param name="machineId" type="uuid" dir="in">
1135 <desc>ID of the machine this event relates to.</desc>
1136 </param>
1137 <param name="state" type="SessionState" dir="in">
1138 <desc>New session state.</desc>
1139 </param>
1140 </method>
1141
1142 <method name="onSnapshotTaken">
1143 <desc>
1144 A new snapshot of the machine has been taken.
1145 <see>ISnapshot</see>
1146 </desc>
1147 <param name="machineId" type="uuid" dir="in">
1148 <desc>ID of the machine this event relates to.</desc>
1149 </param>
1150 <param name="snapshotId" type="uuid" dir="in">
1151 <desc>ID of the new snapshot.</desc>
1152 </param>
1153 </method>
1154
1155 <method name="onSnapshotDiscarded">
1156 <desc>
1157 Snapshot of the given machine has been discarded.
1158
1159 <note>
1160 This notification is delivered <b>after</b> the snapshot
1161 object has been uninitialized on the server (so that any
1162 attempt to call its methods will return an error).
1163 </note>
1164
1165 <see>ISnapshot</see>
1166 </desc>
1167 <param name="machineId" type="uuid" dir="in">
1168 <desc>ID of the machine this event relates to.</desc>
1169 </param>
1170 <param name="snapshotId" type="uuid" dir="in">
1171 <desc>
1172 ID of the discarded snapshot. <tt>null</tt> means the
1173 current machine state has been discarded (restored from
1174 the current snapshot).
1175 </desc>
1176 </param>
1177 </method>
1178
1179 <method name="onSnapshotChange">
1180 <desc>
1181 Snapshot properties (name and/or description) have been changed.
1182 <see>ISnapshot</see>
1183 </desc>
1184 <param name="machineId" type="uuid" dir="in">
1185 <desc>ID of the machine this event relates to.</desc>
1186 </param>
1187 <param name="snapshotId" type="uuid" dir="in">
1188 <desc>ID of the changed snapshot.</desc>
1189 </param>
1190 </method>
1191
1192 <method name="onGuestPropertyChange">
1193 <desc>
1194 Notification when a guest property has changed.
1195 </desc>
1196 <param name="machineId" type="uuid" dir="in">
1197 <desc>
1198 ID of the machine this event relates to.
1199 </desc>
1200 </param>
1201 <param name="name" type="wstring" dir="in">
1202 <desc>
1203 The name of the property that has changed.
1204 </desc>
1205 </param>
1206 <param name="value" type="wstring" dir="in">
1207 <desc>
1208 The new property value.
1209 </desc>
1210 </param>
1211 <param name="flags" type="wstring" dir="in">
1212 <desc>
1213 The new property flags.
1214 </desc>
1215 </param>
1216 </method>
1217
1218 </interface>
1219
1220 <interface
1221 name="IVirtualBox" extends="$dispatched"
1222 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1223 wsmap="managed"
1224 >
1225 <desc>
1226 The IVirtualBox interface represents the main interface exposed by the
1227 product that provides virtual machine management.
1228
1229 An instance of IVirtualBox is required for the product to do anything
1230 useful. Even though the interface does not expose this, internally,
1231 IVirtualBox is implemented as a singleton and actually lives in the
1232 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1233 IVirtualBox can track the state of all virtual machines on a particular
1234 host, regardless of which frontend started them.
1235
1236 To enumerate all the virtual machines on the host, use the
1237 <link to="IVirtualBox::machines2"/> attribute.
1238 </desc>
1239
1240 <attribute name="version" type="wstring" readonly="yes">
1241 <desc>
1242 A string representing the version number of the product. The
1243 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1244 last number represents the build number and will frequently change.
1245 </desc>
1246 </attribute>
1247
1248 <attribute name="revision" type="unsigned long" readonly="yes">
1249 <desc>
1250 The internal build revision number of the product.
1251 </desc>
1252 </attribute>
1253
1254 <attribute name="packageType" type="wstring" readonly="yes">
1255 <desc>
1256 A string representing the package type of this product. The
1257 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1258 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1259 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1260 this.
1261 </desc>
1262 </attribute>
1263
1264 <attribute name="homeFolder" type="wstring" readonly="yes">
1265 <desc>
1266 Full path to the directory where the global settings file,
1267 <tt>VirtualBox.xml</tt>, is stored.
1268
1269 In this version of VirtualBox, the value of this property is
1270 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1271 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1272 as determined by the host OS), and cannot be changed.
1273
1274 This path is also used as the base to resolve relative paths in
1275 places where relative paths are allowed (unless otherwise
1276 expressly indicated).
1277 </desc>
1278 </attribute>
1279
1280 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1281 <desc>
1282 Full name of the global settings file.
1283 The value of this property corresponds to the value of
1284 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1285 </desc>
1286 </attribute>
1287
1288 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1289 <desc>
1290 Current version of the format of the global VirtualBox settings file
1291 (<tt>VirtualBox.xml</tt>).
1292
1293 The version string has the following format:
1294 <pre>
1295 x.y-platform
1296 </pre>
1297 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1298 versions, and <tt>platform</tt> is the platform identifier.
1299
1300 The current version usually matches the value of the
1301 <link to="#settingsFormatVersion"/> attribute unless the
1302 settings file was created by an older version of VirtualBox and there
1303 was a change of the settings file format since then.
1304
1305 Note that VirtualBox automatically converts settings files from older
1306 versions to the most recent version when reading them (usually at
1307 VirtualBox startup) but it doesn't save the changes back until
1308 you call a method that implicitly saves settings (such as
1309 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1310 explicitly. Therefore, if the value of this attribute differs from the
1311 value of <link to="#settingsFormatVersion"/>, then it
1312 means that the settings file was converted but the result of the
1313 conversion is not yet saved to disk.
1314
1315 The above feature may be used by interactive front-ends to inform users
1316 about the settings file format change and offer them to explicitly save
1317 all converted settings files (the global and VM-specific ones),
1318 optionally create backup copies of the old settings files before saving,
1319 etc.
1320
1321 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1322 </desc>
1323 </attribute>
1324
1325 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1326 <desc>
1327 Most recent version of the settings file format.
1328
1329 The version string has the following format:
1330 <pre>
1331 x.y-platform
1332 </pre>
1333 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1334 versions, and <tt>platform</tt> is the platform identifier.
1335
1336 VirtualBox uses this version of the format when saving settings files
1337 (either as a result of method calls that require to save settings or as
1338 a result of an explicit call to <link to="#saveSettings"/>).
1339
1340 <see>settingsFileVersion</see>
1341 </desc>
1342 </attribute>
1343
1344 <attribute name="host" type="IHost" readonly="yes">
1345 <desc>Associated host object.</desc>
1346 </attribute>
1347
1348 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1349 <desc>Associated system information object.</desc>
1350 </attribute>
1351
1352 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1353 <desc>
1354 Array of machine objects registered within this VirtualBox instance.
1355 </desc>
1356 </attribute>
1357
1358 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1359 <desc>
1360 Array of hard disk objects known to this VirtualBox installation.
1361
1362 This array contains only base (root) hard disks. All differencing
1363 hard disks of the given base hard disk can be enumerated using
1364 <link to="IHardDisk::children"/>.
1365 </desc>
1366 </attribute>
1367
1368 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1369 <desc>
1370 Array of CD/DVD image objects registered with this VirtualBox instance.
1371 </desc>
1372 </attribute>
1373
1374 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1375 <desc>
1376 Array of floppy image objects registered with this VirtualBox instance.
1377 </desc>
1378 </attribute>
1379
1380 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1381
1382 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1383
1384 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1385 <desc>
1386 Collection of global shared folders. Global shared folders are
1387 available to all virtual machines.
1388
1389 New shared folders are added to the collection using
1390 <link to="#createSharedFolder"/>. Existing shared folders can be
1391 removed using <link to="#removeSharedFolder"/>.
1392
1393 <note>
1394 In the current version of the product, global shared folders are not
1395 implemented and therefore this collection is always empty.
1396 </note>
1397 </desc>
1398 </attribute>
1399
1400 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1401 <desc>
1402 Associated performance collector object.
1403 </desc>
1404 </attribute>
1405
1406 <method name="createMachine">
1407 <desc>
1408 Creates a new virtual machine.
1409
1410 The new machine is created unregistered, with the initial configuration
1411 set according to the specified guest OS type. A typical sequence of
1412 actions to create a new virtual machine is as follows:
1413
1414 <ol>
1415 <li>
1416 Call this method to have a new machine created. The returned machine
1417 object will be "mutable" allowing to change any machine property.
1418 </li>
1419
1420 <li>
1421 Configure the machine using the appropriate attributes and methods.
1422 </li>
1423
1424 <li>
1425 Call <link to="IMachine::saveSettings" /> to write the settings
1426 to the machine's XML settings file. The configuration of the newly
1427 created machine will not be saved to disk until this method is
1428 called.
1429 </li>
1430
1431 <li>
1432 Call <link to="#registerMachine" /> to add the machine to the list
1433 of machines known to VirtualBox.
1434 </li>
1435 </ol>
1436
1437 You should specify valid name for the newly created machine when calling
1438 this method. See the <link to="IMachine::name"/> attribute description
1439 for more details about the machine name.
1440
1441 The specified guest OS type identifier must match an ID of one of known
1442 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1443 array.
1444
1445 Every machine has a <i>settings file</i> that is used to store
1446 the machine configuration. This file is stored in a directory called the
1447 <i>machine settings subfolder</i>. Both the settings subfolder and file
1448 will have a name that corresponds to the name of the virtual machine.
1449 You can specify where to create the machine setting subfolder using the
1450 @a baseFolder argument. The base folder can be absolute (full path) or
1451 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1452 directory</link>.
1453
1454 If @a baseFolder is a null or empty string (which is recommended), the
1455 <link to="ISystemProperties::defaultMachineFolder">default machine
1456 settings folder</link> will be used as a base folder for the created
1457 machine. Otherwise the given base folder will be used. In either case,
1458 the full path to the resulting settings file has the following
1459 structure:
1460 <pre>
1461 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1462 </pre>
1463
1464 Note that if the resulting settings file already exists, this method
1465 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1466
1467 Optionally, you may specify an UUID of to assign to the created machine.
1468 However, this is not recommended and you should normally pass an empty
1469 (null) UUID to this method so that a new UUID will be automatically
1470 generated for every created machine. You can use UUID
1471 00000000-0000-0000-0000-000000000000 as null value.
1472
1473 <note>
1474 There is no way to change the name of the settings file or
1475 subfolder of the created machine directly.
1476 </note>
1477
1478 <result name="VBOX_E_OBJECT_NOT_FOUND">
1479 @a osTypeId is invalid.
1480 </result>
1481 <result name="VBOX_E_FILE_ERROR">
1482 Resulting settings file name is invalid or the settings file already
1483 exists or could not be created due to an I/O error.
1484 </result>
1485 <result name="E_INVALIDARG">
1486 @a name is empty or null.
1487 </result>
1488 </desc>
1489
1490 <param name="name" type="wstring" dir="in">
1491 <desc>Machine name.</desc>
1492 </param>
1493 <param name="osTypeId" type="wstring" dir="in">
1494 <desc>Guest OS Type ID.</desc>
1495 </param>
1496 <param name="baseFolder" type="wstring" dir="in">
1497 <desc>Base machine folder (optional).</desc>
1498 </param>
1499 <param name="id" type="uuid" dir="in">
1500 <desc>Machine UUID (optional).</desc>
1501 </param>
1502 <param name="machine" type="IMachine" dir="return">
1503 <desc>Created machine object.</desc>
1504 </param>
1505 </method>
1506
1507 <method name="createLegacyMachine">
1508 <desc>
1509 Creates a new virtual machine in "legacy" mode, using the specified
1510 settings file to store machine settings.
1511
1512 As opposed to machines created by <link to="#createMachine"/>,
1513 the settings file of the machine created in "legacy" mode is not
1514 automatically renamed when the machine name is changed -- it will always
1515 remain the same as specified in this method call.
1516
1517 The specified settings file name can be absolute (full path) or relative
1518 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1519 directory</link>. If the file name doesn't contain an extension, the
1520 default extension (.xml) will be appended.
1521
1522 Note that the configuration of the newly created machine is not
1523 saved to disk (and therefore no settings file is created)
1524 until <link to="IMachine::saveSettings"/> is called. If the
1525 specified settings file already exists, this method
1526 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1527
1528 See <link to="#createMachine"/> for more information.
1529
1530 @deprecated This method may be removed later. Use <link
1531 to="IVirtualBox::createMachine"/> instead.
1532
1533 <note>
1534 There is no way to change the name of the settings file
1535 of the machine created in "legacy" mode.
1536 </note>
1537
1538 <result name="VBOX_E_OBJECT_NOT_FOUND">
1539 @a osTypeId is invalid.
1540 </result>
1541 <result name="VBOX_E_FILE_ERROR">
1542 @a settingsFile is invalid or the settings file already exists or
1543 could not be created due to an I/O error.
1544 </result>
1545 <result name="E_INVALIDARG">
1546 @a name or @a settingsFile is empty or null.
1547 </result>
1548 </desc>
1549
1550 <param name="name" type="wstring" dir="in">
1551 <desc>Machine name.</desc>
1552 </param>
1553 <param name="osTypeId" type="wstring" dir="in">
1554 <desc>Machine OS Type ID.</desc>
1555 </param>
1556 <param name="settingsFile" type="wstring" dir="in">
1557 <desc>Name of the machine settings file.</desc>
1558 </param>
1559 <param name="id" type="uuid" dir="in">
1560 <desc>Machine UUID (optional).</desc>
1561 </param>
1562 <param name="machine" type="IMachine" dir="return">
1563 <desc>Created machine object.</desc>
1564 </param>
1565 </method>
1566
1567 <method name="openMachine">
1568 <desc>
1569 Opens a virtual machine from the existing settings file.
1570 The opened machine remains unregistered until you call
1571 <link to="#registerMachine"/>.
1572
1573 The specified settings file name can be absolute
1574 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1575 VirtualBox home directory</link>. This file must exist
1576 and must be a valid machine settings file whose contents
1577 will be used to construct the machine object.
1578
1579 @deprecated Will be removed soon.
1580 <result name="VBOX_E_FILE_ERROR">
1581 Settings file name invalid, not found or sharing violation.
1582 </result>
1583 </desc>
1584 <param name="settingsFile" type="wstring" dir="in">
1585 <desc>
1586 Name of the machine settings file.
1587 </desc>
1588 </param>
1589 <param name="machine" type="IMachine" dir="return">
1590 <desc>Opened machine object.</desc>
1591 </param>
1592 <note>
1593 <link to="IMachine::settingsModified"/> will return
1594 false for the created machine, until any of machine settings
1595 are changed.
1596 </note>
1597 </method>
1598
1599 <method name="registerMachine">
1600 <desc>
1601
1602 Registers the machine previously created using
1603 <link to="#createMachine"/> or opened using
1604 <link to="#openMachine"/> within this VirtualBox installation. After
1605 successful method invocation, the
1606 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1607 to all registered callbacks.
1608
1609 <note>
1610 This method implicitly calls <link to="IMachine::saveSettings"/>
1611 to save all current machine settings before registering it.
1612 </note>
1613
1614 <result name="VBOX_E_OBJECT_NOT_FOUND">
1615 No matching virtual machine found.
1616 </result>
1617 <result name="VBOX_E_INVALID_OBJECT_STATE">
1618 Virtual machine was not created within this VirtualBox instance.
1619 </result>
1620
1621 </desc>
1622 <param name="machine" type="IMachine" dir="in"/>
1623 </method>
1624
1625 <method name="getMachine">
1626 <desc>
1627 Attempts to find a virtual machine given its UUID.
1628 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1629 instead.
1630
1631 <result name="VBOX_E_OBJECT_NOT_FOUND">
1632 Could not find registered machine matching @a id.
1633 </result>
1634
1635 </desc>
1636 <param name="id" type="uuid" dir="in"/>
1637 <param name="machine" type="IMachine" dir="return"/>
1638 </method>
1639
1640 <method name="findMachine">
1641 <desc>
1642 Attempts to find a virtual machine given its name.
1643 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1644 instead.
1645
1646 <result name="VBOX_E_OBJECT_NOT_FOUND">
1647 Could not find registered machine matching @a name.
1648 </result>
1649
1650 </desc>
1651 <param name="name" type="wstring" dir="in"/>
1652 <param name="machine" type="IMachine" dir="return"/>
1653 </method>
1654
1655 <method name="unregisterMachine">
1656 <desc>
1657
1658 Unregisters the machine previously registered using
1659 <link to="#registerMachine"/>. After successful method invocation, the
1660 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1661 to all registered callbacks.
1662
1663 <note>
1664 The specified machine must not be in the Saved state, have an open
1665 (or a spawning) direct session associated with it, have snapshots or
1666 have hard disks attached.
1667 </note>
1668
1669 <note>
1670 This method implicitly calls <link to="IMachine::saveSettings"/> to
1671 save all current machine settings before unregistering it.
1672 </note>
1673
1674 <note>
1675 If the given machine is inaccessible (see
1676 <link to="IMachine::accessible"/>), it will be unregistered and
1677 fully uninitialized right afterwards. As a result, the returned
1678 machine object will be unusable and an attempt to call
1679 <b>any</b> method will return the "Object not ready" error.
1680 </note>
1681
1682 <result name="VBOX_E_OBJECT_NOT_FOUND">
1683 Could not find registered machine matching @a id.
1684 </result>
1685 <result name="VBOX_E_INVALID_VM_STATE">
1686 Machine is in Saved state.
1687 </result>
1688 <result name="VBOX_E_INVALID_OBJECT_STATE">
1689 Machine has snapshot or open session or hard disk attached.
1690 </result>
1691
1692 </desc>
1693 <param name="id" type="uuid" dir="in">
1694 <desc>UUID of the machine to unregister.</desc>
1695 </param>
1696 <param name="machine" type="IMachine" dir="return">
1697 <desc>Unregistered machine object.</desc>
1698 </param>
1699 </method>
1700
1701 <method name="createAppliance">
1702 <desc>
1703 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1704 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1705 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1706 </desc>
1707 <param name="appliance" type="IAppliance" dir="return">
1708 <desc>New appliance.</desc>
1709 </param>
1710 </method>
1711
1712 <method name="createHardDisk">
1713 <desc>
1714 Creates a new base hard disk object that will use the given storage
1715 format and location for hard disk data.
1716
1717 Note that the actual storage unit is not created by this method. In
1718 order to do it, and before you are able to attach the created hard disk
1719 to virtual machines, you must call one of the following methods to
1720 allocate a format-specific storage unit at the specified location:
1721 <ul>
1722 <li><link to="IHardDisk::createDynamicStorage"/></li>
1723 <li><link to="IHardDisk::createFixedStorage"/></li>
1724 <li><link to="IHardDisk::createDiffStorage"/></li>
1725 </ul>
1726
1727 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1728 remain uninitialized until the hard disk storage unit is successfully
1729 created by one of the above methods.
1730
1731 After the storage unit is successfully created, the hard disk gets
1732 remembered by this VirtualBox installation and will be accessible
1733 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1734 methods. Remembered root (base) hard disks are also returned as part of
1735 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1736
1737 The list of all storage formats supported by this VirtualBox
1738 installation can be obtained using
1739 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1740 attribute is empty or <tt>null</tt> then the default storage format
1741 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1742 be used for creating a storage unit of the hard disk.
1743
1744 Note that the format of the location string is storage format specific.
1745 See <link to="IMedium::location"/>, IHardDisk and
1746 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1747
1748 <result name="VBOX_E_OBJECT_NOT_FOUND">
1749 @a format identifier is invalid. See
1750 <link to="ISystemProperties::hardDiskFormats"/>.
1751 </result>
1752 <result name="VBOX_E_FILE_ERROR">
1753 @a location is a not valid file name (for file-based formats only).
1754 </result>
1755 <result name="E_INVALIDARG">
1756 @a format is a null or empty string.
1757 </result>
1758 </desc>
1759 <param name="format" type="wstring" dir="in">
1760 <desc>
1761 Identifier of the storage format to use for the new hard disk.
1762 </desc>
1763 </param>
1764 <param name="location" type="wstring" dir="in">
1765 <desc>
1766 Location of the storage unit for the new hard disk.
1767 </desc>
1768 </param>
1769 <param name="hardDisk" type="IHardDisk" dir="return">
1770 <desc>Created hard disk object.</desc>
1771 </param>
1772 </method>
1773
1774 <method name="openHardDisk">
1775 <desc>
1776 Opens a hard disk from an existing location.
1777
1778 After the hard disk is successfully opened by this method, it gets
1779 remembered by (known to) this VirtualBox installation and will be
1780 accessible through <link to="#getHardDisk"/> and
1781 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1782 are also returned as part of the <link to="#hardDisks"/> array and can
1783 be attached to virtual machines. See IHardDisk for more details.
1784
1785 If a differencing hard disk is to be opened by this method, the
1786 operation will succeed only if its parent hard disk and all ancestors,
1787 if any, are already known to this VirtualBox installation (for example,
1788 were opened by this method before).
1789
1790 This method tries to guess the storage format of the specified hard disk
1791 by reading hard disk data at the specified location.
1792
1793 Note that the format of the location string is storage format specific.
1794 See <link to="IMedium::location"/>, IHardDisk and
1795 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1796
1797
1798 <result name="VBOX_E_FILE_ERROR">
1799 Invalid hard disk storage file location.
1800 </result>
1801 <result name="VBOX_E_IPRT_ERROR">
1802 Could not get hard disk storage format.
1803 </result>
1804 <result name="E_INVALIDARG">
1805 Invalid hard disk storage format.
1806 </result>
1807
1808 </desc>
1809 <param name="location" type="wstring" dir="in">
1810 <desc>
1811 Location of the storage unit that contains hard disk data in one of
1812 the supported storage formats.
1813 </desc>
1814 </param>
1815 <param name="hardDisk" type="IHardDisk" dir="return">
1816 <desc>Opened hard disk object.</desc>
1817 </param>
1818 </method>
1819
1820 <method name="getHardDisk" const="yes">
1821 <desc>
1822 Returns a hard disk with the given UUID.
1823
1824 The hard disk with the given UUID must be known to this VirtualBox
1825 installation, i.e. it must be previously created by
1826 <link to="#createHardDisk"/> or opened by <link
1827 to="#openHardDisk"/>, or attached to some known virtual machine.
1828
1829 <result name="VBOX_E_OBJECT_NOT_FOUND">
1830 No hard disk object matching @a id found.
1831 </result>
1832
1833 </desc>
1834 <param name="id" type="uuid" dir="in">
1835 <desc>UUID of the hard disk to look for.</desc>
1836 </param>
1837 <param name="hardDisk" type="IHardDisk" dir="return">
1838 <desc>Found hard disk object.</desc>
1839 </param>
1840 </method>
1841
1842 <method name="findHardDisk">
1843 <desc>
1844 Returns a hard disk that uses the given location to store hard
1845 disk data.
1846
1847 The given hard disk must be known to this VirtualBox installation, i.e.
1848 it must be previously created by
1849 <link to="#createHardDisk"/> or opened by <link
1850 to="#openHardDisk"/>, or attached to some known virtual machine.
1851
1852 The search is done by comparing the value of the @a location argument to
1853 the <link to="IHardDisk::location"/> attribute of each known hard
1854 disk.
1855
1856 For locations represented by file names in the host's file system, the
1857 requested location can be a path relative to the
1858 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1859 only a file name without any path is given, the
1860 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1861 folder</link> will be prepended to the file name before searching. Note
1862 that on case sensitive file systems, a case sensitive comparison is
1863 performed, otherwise the case of symbols in the file path is ignored.
1864
1865 <result name="VBOX_E_OBJECT_NOT_FOUND">
1866 No hard disk object matching @a location found.
1867 </result>
1868
1869 </desc>
1870 <param name="location" type="wstring" dir="in">
1871 <desc>Location string to search for.</desc>
1872 </param>
1873 <param name="hardDisk" type="IHardDisk" dir="return">
1874 <desc>Found hard disk object.</desc>
1875 </param>
1876 </method>
1877
1878 <method name="openDVDImage">
1879 <desc>
1880 Opens a CD/DVD image contained in the specified file of the supported
1881 format and assigns it the given UUID.
1882
1883 After the image is successfully opened by this method, it gets
1884 remembered by (known to) this VirtualBox installation and will be
1885 accessible through <link to="#getDVDImage"/> and
1886 <link to="#findDVDImage"/> methods. Remembered images are also
1887 returned as part of the <link to="#DVDImages"/> array and can be mounted
1888 to virtual machines. See IMedium for more details.
1889
1890 See <link to="IMedium::location"/> to get more details about the format
1891 of the location string.
1892
1893 <note>
1894 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1895 </note>
1896
1897 <result name="VBOX_E_INVALID_OBJECT_STATE">
1898 CD/DVD image already exists in the media registry.
1899 </result>
1900
1901 </desc>
1902 <param name="location" type="wstring" dir="in">
1903 <desc>
1904 Full path to the file that contains a valid CD/DVD image.
1905 </desc>
1906 </param>
1907 <param name="id" type="uuid" dir="in">
1908 <desc>
1909 UUID to assign to the given image within this VirtualBox installation.
1910 If an empty (null) UUID is specified, the system will randomly
1911 generate a new UUID.
1912 </desc>
1913 </param>
1914 <param name="image" type="IDVDImage" dir="return">
1915 <desc>Opened CD/DVD image object.</desc>
1916 </param>
1917 </method>
1918
1919 <method name="getDVDImage">
1920 <desc>
1921 Returns a CD/DVD image with the given UUID.
1922
1923 The image with the given UUID must be known to this VirtualBox
1924 installation, i.e. it must be previously opened by <link
1925 to="#openDVDImage"/>, or mounted to some known virtual machine.
1926
1927 <result name="VBOX_E_OBJECT_NOT_FOUND">
1928 No matching DVD image found in the media registry.
1929 </result>
1930
1931 </desc>
1932 <param name="id" type="uuid" dir="in">
1933 <desc>UUID of the image to look for.</desc>
1934 </param>
1935 <param name="image" type="IDVDImage" dir="return">
1936 <desc>Found CD/DVD image object.</desc>
1937 </param>
1938 </method>
1939
1940 <method name="findDVDImage">
1941 <desc>
1942 Returns a CD/DVD image with the given image location.
1943
1944 The image with the given UUID must be known to this VirtualBox
1945 installation, i.e. it must be previously opened by <link
1946 to="#openDVDImage"/>, or mounted to some known virtual machine.
1947
1948 The search is done by comparing the value of the @a location argument to
1949 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1950
1951 The requested location can be a path relative to the
1952 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1953 only a file name without any path is given, the
1954 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1955 folder</link> will be prepended to the file name before searching. Note
1956 that on case sensitive file systems, a case sensitive comparison is
1957 performed, otherwise the case in the file path is ignored.
1958
1959 <result name="VBOX_E_FILE_ERROR">
1960 Invalid image file location.
1961 </result>
1962 <result name="VBOX_E_OBJECT_NOT_FOUND">
1963 No matching DVD image found in the media registry.
1964 </result>
1965
1966 </desc>
1967 <param name="location" type="wstring" dir="in">
1968 <desc>CD/DVD image file path to look for.</desc>
1969 </param>
1970 <param name="image" type="IDVDImage" dir="return">
1971 <desc>Found CD/DVD image object.</desc>
1972 </param>
1973 </method>
1974
1975 <method name="openFloppyImage">
1976 <desc>
1977 Opens a floppy image contained in the specified file of the supported
1978 format and assigns it the given UUID.
1979
1980 After the image is successfully opened by this method, it gets
1981 remembered by (known to) this VirtualBox installation and will be
1982 accessible through <link to="#getFloppyImage"/> and
1983 <link to="#findFloppyImage"/> methods. Remembered images are also
1984 returned as part of the <link to="#floppyImages"/> array and can be
1985 mounted to virtual machines. See IMedium for more details.
1986
1987 See <link to="IMedium::location"/> to get more details about the format
1988 of the location string.
1989
1990 <result name="VBOX_E_FILE_ERROR">
1991 Floppy image specified by @a location not accessible.
1992 </result>
1993 <result name="VBOX_E_INVALID_OBJECT_STATE">
1994 Floppy image already exists in the media registry.
1995 </result>
1996
1997 <note>
1998 Currently, only raw floppy images are supported by VirtualBox.
1999 </note>
2000 </desc>
2001 <param name="location" type="wstring" dir="in">
2002 <desc>
2003 Full path to the file that contains a valid floppy image.
2004 </desc>
2005 </param>
2006 <param name="id" type="uuid" dir="in">
2007 <desc>
2008 UUID to assign to the given image file within this VirtualBox
2009 installation. If an empty (null) UUID is specified, the system will
2010 randomly generate a new UUID.
2011 </desc>
2012 </param>
2013 <param name="image" type="IFloppyImage" dir="return">
2014 <desc>Opened floppy image object.</desc>
2015 </param>
2016 </method>
2017
2018 <method name="getFloppyImage">
2019 <desc>
2020 Returns a floppy image with the given UUID.
2021
2022 The image with the given UUID must be known to this VirtualBox
2023 installation, i.e. it must be previously opened by <link
2024 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2025
2026 <result name="VBOX_E_OBJECT_NOT_FOUND">
2027 No matching floppy image found in the media registry.
2028 </result>
2029
2030 </desc>
2031 <param name="id" type="uuid" dir="in">
2032 <desc>UUID of the image to look for.</desc>
2033 </param>
2034 <param name="image" type="IFloppyImage" dir="return">
2035 <desc>Found floppy image object.</desc>
2036 </param>
2037 </method>
2038
2039 <method name="findFloppyImage">
2040 <desc>
2041 Returns a floppy image with the given image location.
2042
2043 The image with the given UUID must be known to this VirtualBox
2044 installation, i.e. it must be previously opened by <link
2045 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2046
2047 The search is done by comparing the value of the @a location argument to
2048 the <link to="IMedium::location"/> attribute of each known floppy image.
2049
2050 The requested location can be a path relative to the
2051 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2052 only a file name without any path is given, the
2053 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2054 folder</link> will be prepended to the file name before searching. Note
2055 that on case sensitive file systems, a case sensitive comparison is
2056 performed, otherwise the case of symbols in the file path is ignored.
2057
2058 <result name="VBOX_E_FILE_ERROR">
2059 Invalid image file location.
2060 </result>
2061 <result name="VBOX_E_OBJECT_NOT_FOUND">
2062 No matching floppy image found in the media registry.
2063 </result>
2064
2065 </desc>
2066 <param name="location" type="wstring" dir="in">
2067 <desc>Floppy image file path to look for.</desc>
2068 </param>
2069 <param name="image" type="IFloppyImage" dir="return">
2070 <desc>Found floppy image object.</desc>
2071 </param>
2072 </method>
2073
2074 <method name="getGuestOSType">
2075 <desc>
2076 Returns an object describing the specified guest OS type.
2077
2078 The requested guest OS type is specified using a string which is a
2079 mnemonic identifier of the guest operating system, such as
2080 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2081 particular virtual machine can be read or set using the
2082 <link to="IMachine::OSTypeId"/> attribute.
2083
2084 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2085 available guest OS type objects. Each object has an
2086 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2087 the guest OS this object describes.
2088
2089 <result name="E_INVALIDARG">
2090 @a id is not a valid Guest OS type.
2091 </result>
2092
2093 </desc>
2094 <param name="id" type="wstring" dir="in">
2095 <desc>Guest OS type ID string.</desc>
2096 </param>
2097 <param name="type" type="IGuestOSType" dir="return">
2098 <desc>Guest OS type object.</desc>
2099 </param>
2100 </method>
2101
2102 <method name="createSharedFolder">
2103 <desc>
2104 Creates a new global shared folder by associating the given logical
2105 name with the given host path, adds it to the collection of shared
2106 folders and starts sharing it. Refer to the description of
2107 <link to="ISharedFolder"/> to read more about logical names.
2108 <note>
2109 In the current implementation, this operation is not
2110 implemented.
2111 </note>
2112 </desc>
2113 <param name="name" type="wstring" dir="in">
2114 <desc>Unique logical name of the shared folder.</desc>
2115 </param>
2116 <param name="hostPath" type="wstring" dir="in">
2117 <desc>Full path to the shared folder in the host file system.</desc>
2118 </param>
2119 <param name="writable" type="boolean" dir="in">
2120 <desc>Whether the share is writable or readonly</desc>
2121 </param>
2122 </method>
2123
2124 <method name="removeSharedFolder">
2125 <desc>
2126 Removes the global shared folder with the given name previously
2127 created by <link to="#createSharedFolder"/> from the collection of
2128 shared folders and stops sharing it.
2129 <note>
2130 In the current implementation, this operation is not
2131 implemented.
2132 </note>
2133 </desc>
2134 <param name="name" type="wstring" dir="in">
2135 <desc>Logical name of the shared folder to remove.</desc>
2136 </param>
2137 </method>
2138
2139 <method name="getNextExtraDataKey">
2140 <desc>
2141 Returns the global extra data key name following the supplied key.
2142
2143 An error is returned if the supplied @a key does not exist. @c NULL is
2144 returned in @a nextKey if the supplied key is the last key. When
2145 supplying @c NULL for the @a key, the first key item is returned in
2146 @a nextKey (if there is any). @a nextValue is an optional parameter and
2147 if supplied, the next key's value is returned in it.
2148
2149 <result name="VBOX_E_OBJECT_NOT_FOUND">
2150 Extra data @a key not found.
2151 </result>
2152
2153 </desc>
2154 <param name="key" type="wstring" dir="in">
2155 <desc>Name of the data key to follow.</desc>
2156 </param>
2157 <param name="nextKey" type="wstring" dir="out">
2158 <desc>Name of the next data key.</desc>
2159 </param>
2160 <param name="nextValue" type="wstring" dir="out">
2161 <desc>Value of the next data key.</desc>
2162 </param>
2163 </method>
2164
2165 <method name="getExtraData">
2166 <desc>
2167 Returns associated global extra data.
2168
2169 If the requested data @a key does not exist, this function will
2170 succeed and return @c NULL in the @a value argument.
2171
2172 <result name="VBOX_E_FILE_ERROR">
2173 Settings file not accessible.
2174 </result>
2175 <result name="VBOX_E_XML_ERROR">
2176 Could not parse the settings file.
2177 </result>
2178
2179 </desc>
2180 <param name="key" type="wstring" dir="in">
2181 <desc>Name of the data key to get.</desc>
2182 </param>
2183 <param name="value" type="wstring" dir="return">
2184 <desc>Value of the requested data key.</desc>
2185 </param>
2186 </method>
2187
2188 <method name="setExtraData">
2189 <desc>
2190 Sets associated global extra data.
2191
2192 If you pass @c NULL as a key @a value, the given @a key will be
2193 deleted.
2194
2195 <note>
2196 Before performing the actual data change, this method will ask all
2197 registered callbacks using the
2198 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2199 notification for a permission. If one of the callbacks refuses the
2200 new value, the change will not be performed.
2201 </note>
2202 <note>
2203 On success, the
2204 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2205 is called to inform all registered callbacks about a successful data
2206 change.
2207 </note>
2208
2209 <result name="VBOX_E_FILE_ERROR">
2210 Settings file not accessible.
2211 </result>
2212 <result name="VBOX_E_XML_ERROR">
2213 Could not parse the settings file.
2214 </result>
2215 <result name="E_ACCESSDENIED">
2216 Modification request refused.
2217 </result>
2218
2219 </desc>
2220 <param name="key" type="wstring" dir="in">
2221 <desc>Name of the data key to set.</desc>
2222 </param>
2223 <param name="value" type="wstring" dir="in">
2224 <desc>Value to assign to the key.</desc>
2225 </param>
2226 </method>
2227
2228 <method name="openSession">
2229 <desc>
2230 Opens a new direct session with the given virtual machine.
2231
2232 A direct session acts as a local lock on the given VM.
2233 There can be only one direct session open at a time for every
2234 virtual machine, protecting the VM from being manipulated by
2235 conflicting actions from different processes. Only after a
2236 direct session has been opened, one can change all VM settings
2237 and execute the VM in the process space of the session object.
2238
2239 Sessions therefore can be compared to mutex semaphores that
2240 lock a given VM for modification and execution.
2241 See <link to="ISession">ISession</link> for details.
2242
2243 <note>Unless you are writing a new VM frontend, you will not
2244 want to execute a VM in the current process. To spawn a new
2245 process that executes a VM, use
2246 <link to="IVirtualBox::openRemoteSession" />
2247 instead.</note>
2248
2249 Upon successful return, the session object can be used to
2250 get access to the machine and to the VM console.
2251
2252 In VirtualBox terminology, the machine becomes "mutable" after
2253 a session has been opened. Note that the "mutable" machine
2254 object, on which you may invoke IMachine methods to change its
2255 settings, will be a different object from the immutable IMachine
2256 objects returned by various IVirtualBox methods. To obtain a
2257 mutable IMachine object (upon which you can invoke settings methods),
2258 use the <link to="ISession::machine" /> attribute.
2259
2260 One must always call <link to="ISession::close" /> to release the
2261 lock on the machine, or the machine's state will eventually be
2262 set to "Aborted".
2263
2264 In other words, to change settings on a machine, the following
2265 sequence is typically performed:
2266
2267 <ol>
2268 <li>Call this method (openSession) to have a machine locked for
2269 the current session.</li>
2270
2271 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2272
2273 <li>Change the settings of the machine.</li>
2274
2275 <li>Call <link to="IMachine::saveSettings" />.</li>
2276
2277 <li>Close the session by calling <link to="ISession::close"/>.</li>
2278 </ol>
2279
2280 <result name="E_UNEXPECTED">
2281 Virtual machine not registered.
2282 </result>
2283 <result name="E_ACCESSDENIED">
2284 Process not started by OpenRemoteSession.
2285 </result>
2286 <result name="VBOX_E_OBJECT_NOT_FOUND">
2287 No matching virtual machine found.
2288 </result>
2289 <result name="VBOX_E_INVALID_OBJECT_STATE">
2290 Session already open or being opened.
2291 </result>
2292 <result name="VBOX_E_VM_ERROR">
2293 Failed to assign machine to session.
2294 </result>
2295
2296 </desc>
2297 <param name="session" type="ISession" dir="in">
2298 <desc>
2299 Session object that will represent the opened session after
2300 successful method invocation. This object must not represent
2301 the already open session.
2302 <note>
2303 This session will be automatically closed if the
2304 VirtualBox server is terminated for some reason.
2305 </note>
2306 </desc>
2307 </param>
2308 <param name="machineId" type="uuid" dir="in">
2309 <desc>ID of the virtual machine to open a session with.</desc>
2310 </param>
2311 </method>
2312
2313 <method name="openRemoteSession">
2314 <desc>
2315 Spawns a new process that executes a virtual machine (called a
2316 "remote session").
2317
2318 Opening a remote session causes the VirtualBox server to start a new
2319 process that opens a direct session with the given VM. As a result, the
2320 VM is locked by that direct session in the new process, preventing
2321 conflicting changes from other processes. Since sessions act as locks
2322 that prevent conflicting changes, one cannot open a remote session
2323 for a VM that already has another open session (direct or remote), or
2324 is currently in the process of opening one (see <link
2325 to="IMachine::sessionState"/>).
2326
2327 While the remote session still provides some level of control over the
2328 VM execution to the caller (using the <link to="IConsole" /> interface),
2329 not all VM settings are available for modification within the remote
2330 session context.
2331
2332 This operation can take some time (a new VM is started in a new process,
2333 for which memory and other resources need to be set up). Because of this,
2334 an <link to="IProgress" /> is returned to allow the caller to wait for this
2335 asynchronous operation to be completed. Until then, the remote session
2336 object remains in the closed state, and accessing the machine or its
2337 console through it is invalid. It is recommended to use
2338 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2339 completion.
2340
2341 As with all <link to="ISession" /> objects, it is recommended to call
2342 <link to="ISession::close" /> on the local session object once openRemoteSession()
2343 has been called. However, the session's state (see <link to="ISession::state" />)
2344 will not return to "Closed" until the remote session has also closed (i.e.
2345 until the VM is no longer running). In that case, however, the state of
2346 the session will automatically change back to "Closed".
2347
2348 Currently supported session types (values of the @a type
2349 argument) are:
2350 <ul>
2351 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2352 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2353 </ul>
2354
2355 The @a environment argument is a string containing definitions of
2356 environment variables in the following format:
2357 @code
2358 NAME[=VALUE]\n
2359 NAME[=VALUE]\n
2360 ...
2361 @endcode
2362 where <tt>\\n</tt> is the new line character. These environment
2363 variables will be appended to the environment of the VirtualBox server
2364 process. If an environment variable exists both in the server process
2365 and in this list, the value from this list takes precedence over the
2366 server's variable. If the value of the environment variable is
2367 omitted, this variable will be removed from the resulting environment.
2368 If the environment string is @c null, the server environment is
2369 inherited by the started process as is.
2370
2371 <see>openExistingSession</see>
2372
2373 <result name="E_UNEXPECTED">
2374 Virtual machine not registered.
2375 </result>
2376 <result name="E_INVALIDARG">
2377 Invalid session type @a type.
2378 </result>
2379 <result name="VBOX_E_OBJECT_NOT_FOUND">
2380 No machine matching @a machineId found.
2381 </result>
2382 <result name="VBOX_E_INVALID_OBJECT_STATE">
2383 Session already open or being opened.
2384 </result>
2385 <result name="VBOX_E_IPRT_ERROR">
2386 Launching process for machine failed.
2387 </result>
2388 <result name="VBOX_E_VM_ERROR">
2389 Failed to assign machine to session.
2390 </result>
2391
2392 </desc>
2393 <param name="session" type="ISession" dir="in">
2394 <desc>
2395 Session object that will represent the opened remote session
2396 after successful method invocation (this object must not
2397 represent an already open session).
2398 </desc>
2399 </param>
2400 <param name="machineId" type="uuid" dir="in">
2401 <desc>ID of the virtual machine to open a session with.</desc>
2402 </param>
2403 <param name="type" type="wstring" dir="in">
2404 <desc>
2405 Type of the remote session (case sensitive).
2406 </desc>
2407 </param>
2408 <param name="environment" type="wstring" dir="in">
2409 <desc>
2410 Environment to pass to the opened session (may be @c null).
2411 </desc>
2412 </param>
2413 <param name="progress" type="IProgress" dir="return">
2414 <desc>Progress object to track the operation completion.</desc>
2415 </param>
2416 </method>
2417
2418 <method name="openExistingSession">
2419 <desc>
2420 Opens a new remote session with the virtual machine for
2421 which a direct session is already open.
2422
2423 The remote session provides some level of control over the VM
2424 execution (using the IConsole interface) to the caller; however,
2425 within the remote session context, not all VM settings are available
2426 for modification.
2427
2428 As opposed to <link to="#openRemoteSession"/>, the number of
2429 remote sessions opened this way is not limited by the API
2430
2431 <note>
2432 It is an error to open a remote session with the machine that
2433 doesn't have an open direct session.
2434 </note>
2435
2436 <result name="E_UNEXPECTED">
2437 Virtual machine not registered.
2438 </result>
2439 <result name="VBOX_E_OBJECT_NOT_FOUND">
2440 No machine matching @a machineId found.
2441 </result>
2442 <result name="VBOX_E_INVALID_OBJECT_STATE">
2443 Session already open or being opened.
2444 </result>
2445 <result name="VBOX_E_INVALID_SESSION_STATE">
2446 Direct session state not Open.
2447 </result>
2448 <result name="VBOX_E_VM_ERROR">
2449 Failed to get console object from direct session or assign
2450 machine to session.
2451 </result>
2452
2453 <see>openRemoteSession</see>
2454 </desc>
2455 <param name="session" type="ISession" dir="in">
2456 <desc>
2457 Session object that will represent the open remote session
2458 after successful method invocation. This object must not
2459 represent an already open session.
2460 <note>
2461 This session will be automatically closed when the peer
2462 (direct) session dies or gets closed.
2463 </note>
2464 </desc>
2465 </param>
2466 <param name="machineId" type="uuid" dir="in">
2467 <desc>ID of the virtual machine to open a session with.</desc>
2468 </param>
2469 </method>
2470
2471 <method name="registerCallback">
2472 <desc>
2473 Registers a new global VirtualBox callback. The methods of the given
2474 callback object will be called by VirtualBox when an appropriate
2475 event occurs.
2476
2477 <result name="E_INVALIDARG">
2478 A @c NULL callback cannot be registered.
2479 </result>
2480
2481 </desc>
2482 <param name="callback" type="IVirtualBoxCallback" dir="in">
2483 <desc>Callback object to register.</desc>
2484 </param>
2485 </method>
2486
2487 <method name="unregisterCallback">
2488 <desc>
2489 Unregisters the previously registered global VirtualBox callback.
2490
2491 <result name="E_INVALIDARG">
2492 Specified @a callback not registered.
2493 </result>
2494
2495 </desc>
2496 <param name="callback" type="IVirtualBoxCallback" dir="in">
2497 <desc>Callback object to unregister.</desc>
2498 </param>
2499 </method>
2500
2501 <method name="waitForPropertyChange">
2502 <desc>
2503 Blocks the caller until any of the properties represented by the
2504 @a what argument changes the value or until the given timeout interval
2505 expires.
2506
2507 The @a what argument is a comma separated list of property masks that
2508 describe properties the caller is interested in. The property mask is
2509 a string in the following format:
2510
2511 <pre>
2512 [[group.]subgroup.]name
2513 </pre>
2514
2515 where @c name is the property name and @c group, @c subgroup are zero
2516 or more property group specifiers. Each element (group or name) in
2517 the property mask may be either a Latin string or an asterisk symbol
2518 (@c "*") which is used to match any string for the given element. A
2519 property mask that doesn't contain asterisk symbols represents a
2520 single fully qualified property name.
2521
2522 Groups in the fully qualified property name go from more generic (the
2523 left-most part) to more specific (the right-most part). The first
2524 element is usually a name of the object the property belongs to. The
2525 second element may be either a property name, or a child object name,
2526 or an index if the preceding element names an object which is one of
2527 many objects of the same type. This way, property names form a
2528 hierarchy of properties. Here are some examples of property names:
2529
2530 <table>
2531 <tr>
2532 <td><tt>VirtualBox.version</tt></td>
2533 <td><link to="IVirtualBox::version"/> property</td>
2534 </tr>
2535 <tr>
2536 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2537 <td><link to="IMachine::name"/> property of the machine with the
2538 given UUID</td>
2539 </tr>
2540 </table>
2541
2542 Most property names directly correspond to the properties of objects
2543 (components) provided by the VirtualBox library and may be used to
2544 track changes to these properties. However, there may be
2545 pseudo-property names that don't correspond to any existing object's
2546 property directly, as well as there may be object properties that
2547 don't have a corresponding property name that is understood by this
2548 method, and therefore changes to such properties cannot be
2549 tracked. See individual object's property descriptions to get a
2550 fully qualified property name that can be used with this method (if
2551 any).
2552
2553 There is a special property mask @c "*" (i.e. a string consisting of a
2554 single asterisk symbol) that can be used to match all properties.
2555 Below are more examples of property masks:
2556
2557 <table>
2558 <tr>
2559 <td><tt>VirtualBox.*</tt></td>
2560 <td>Track all properties of the VirtualBox object</td>
2561 </tr>
2562 <tr>
2563 <td><tt>Machine.*.name</tt></td>
2564 <td>Track changes to the <link to="IMachine::name"/> property of
2565 all registered virtual machines</td>
2566 </tr>
2567 </table>
2568
2569 <note>
2570 This function is not implemented in the current version of the
2571 product.
2572 </note>
2573 </desc>
2574 <param name="what" type="wstring" dir="in">
2575 <desc>Comma separated list of property masks.</desc>
2576 </param>
2577 <param name="timeout" type="unsigned long" dir="in">
2578 <desc>
2579 Wait timeout in milliseconds.
2580 Specify -1 for an indefinite wait.
2581 </desc>
2582 </param>
2583 <param name="changed" type="wstring" dir="out">
2584 <desc>
2585 Comma separated list of properties that have been changed and caused
2586 this method to return to the caller.
2587 </desc>
2588 </param>
2589 <param name="values" type="wstring" dir="out">
2590 <desc>Reserved, not currently used.</desc>
2591 </param>
2592 </method>
2593
2594 <method name="saveSettings">
2595 <desc>
2596 Saves the global settings to the global settings file
2597 (<link to="#settingsFilePath"/>).
2598
2599 This method is only useful for explicitly saving the global settings
2600 file after it has been auto-converted from the old format to the most
2601 recent format (see <link to="#settingsFileVersion"/> for details).
2602 Normally, the global settings file is implicitly saved when a global
2603 setting is changed.
2604
2605 <result name="VBOX_E_FILE_ERROR">
2606 Settings file not accessible.
2607 </result>
2608 <result name="VBOX_E_XML_ERROR">
2609 Could not parse the settings file.
2610 </result>
2611
2612 </desc>
2613 </method>
2614
2615 <method name="saveSettingsWithBackup">
2616 <desc>
2617 Creates a backup copy of the global settings file
2618 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2619 calls <link to="#saveSettings"/>.
2620
2621 Note that the backup copy is created <b>only</b> if the settings file
2622 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2623 details). Otherwise, this call is fully equivalent to
2624 <link to="#saveSettings"/> and no backup copying is done.
2625
2626 The backup copy is created in the same directory where the original
2627 settings file is located. It is given the following file name:
2628 <pre>
2629 original.xml.x.y-platform.bak
2630 </pre>
2631 where <tt>original.xml</tt> is the original settings file name
2632 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2633 format of the settings file (before auto-conversion).
2634
2635 If the given backup file already exists, this method will try to add the
2636 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2637 0 to 9) and copy it again until it succeeds. If all suffixes are
2638 occupied, or if any other copy error occurs, this method will return a
2639 failure.
2640
2641 If the copy operation succeeds, the @a bakFileName return argument will
2642 receive a full path to the created backup file (for informational
2643 purposes). Note that this will happen even if the subsequent
2644 <link to="#saveSettings"/> call performed by this method after the
2645 copy operation, fails.
2646
2647 <note>
2648 The VirtualBox API never calls this method. It is intended purely for
2649 the purposes of creating backup copies of the settings files by
2650 front-ends before saving the results of the automatically performed
2651 settings conversion to disk.
2652 </note>
2653
2654 <see>settingsFileVersion</see>
2655
2656 <result name="VBOX_E_FILE_ERROR">
2657 Settings file not accessible.
2658 </result>
2659 <result name="VBOX_E_XML_ERROR">
2660 Could not parse the settings file.
2661 </result>
2662 <result name="VBOX_E_IPRT_ERROR">
2663 Could not copy the settings file.
2664 </result>
2665
2666 </desc>
2667 <param name="bakFileName" type="wstring" dir="return">
2668 <desc>Full path to the created backup copy.</desc>
2669 </param>
2670 </method>
2671
2672 </interface>
2673
2674 <!--
2675 // IAppliance
2676 /////////////////////////////////////////////////////////////////////////
2677 -->
2678
2679 <enum
2680 name="CIMOSType"
2681 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2682 >
2683 <desc>
2684 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2685 </desc>
2686
2687 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2688 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2689 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2690 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2691 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2692 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2693 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2694 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2695 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2696 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2697 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2698 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2699 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2700 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2701 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2702 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2703 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2704 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2705 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2706 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2707 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2708 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2709 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2710 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2711 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2712 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2713 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2714 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2715 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2716 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2717 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2718 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2719 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2720 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2721 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2722 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2723 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2724 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2725 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2726 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2727 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2728 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2729 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2730 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2731 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2732 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2733 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2734 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2735 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2736 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2737 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2738 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2739 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2740 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2741 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2742 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2743 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2744 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2745 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2746 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2747 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2748 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2749 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2750 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2751 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2752 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2753 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2754 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2755 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2756 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2757 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2758 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2759 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2760 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2761 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2762 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2763 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2764 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2765 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2766 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2767 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2768 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2769 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2770 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2771 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2772 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2773 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2774 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2775 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2776 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2777 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2778 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2779 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2780 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2781 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2782 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2783 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2784 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2785 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2786 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2787 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2788 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2789 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2790 </enum>
2791
2792 <enum
2793 name="OVFResourceType"
2794 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2795 >
2796 <desc>
2797 OVF resource type.
2798 </desc>
2799
2800 <const name="Other" value="1" />
2801 <const name="ComputerSystem" value="2" />
2802 <const name="Processor" value="3" />
2803 <const name="Memory" value="4" />
2804 <const name="IdeController" value="5" />
2805 <const name="ParallelScsiHba" value="6" />
2806 <const name="FcHba" value="7" />
2807 <const name="iScsiHba" value="8" />
2808 <const name="IbHca" value="9" />
2809 <const name="EthernetAdapter" value="10" />
2810 <const name="OtherNetworkAdapter" value="11" />
2811 <const name="IoSlot" value="12" />
2812 <const name="IoDevice" value="13" />
2813 <const name="FloppyDrive" value="14" />
2814 <const name="CdDrive" value="15" />
2815 <const name="DvdDrive" value="16" />
2816 <const name="HardDisk" value="17" />
2817 <const name="UsbController" value="23" />
2818 <const name="SoundCard" value="35" />
2819 </enum>
2820
2821 <interface
2822 name="IAppliance" extends="$unknown"
2823 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2824 wsmap="managed"
2825 >
2826 <desc>
2827 Represents a platform-independent appliance in OVF format. An instance of this is returned
2828 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2829 appliances with VirtualBox.
2830
2831 The OVF standard suggests two different physical file formats:
2832
2833 <ol>
2834 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2835 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2836 this descriptor file references other files, as OVF appliances distributed as a set of
2837 files most likely do, those files must be in the same directory as the descriptor file.</li>
2838
2839 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2840 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2841 files and optionally other files.
2842
2843 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2844 be added with a later version.</li>
2845 </ol>
2846
2847 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2848 <link to="IMachine" /> involves the following sequence of API calls:
2849
2850 <ol>
2851 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2852 </li>
2853
2854 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2855 would like to import. So long as this file is syntactically valid, this will succeed
2856 and return an instance of IAppliance that contains the parsed data from the OVF file.
2857 </li>
2858
2859 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2860 contents of the IAppliance attributes accordingly. These can be inspected by a
2861 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2862 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2863 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2864 systems in the OVF, which in turn describe the virtual hardware prescribed by the
2865 OVF (network and hardware adapters, virtual disk images, memory size and so on).
2866 The GUI can then give the user the option to confirm and/or change these suggestions.
2867 </li>
2868
2869 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2870 virtual system to override the suggestions made by the interpret() routine.
2871 </li>
2872
2873 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2874 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2875 virtual system descriptions.
2876 </li>
2877 </ol>
2878
2879 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2880
2881 <ol>
2882 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2883 an empty IAppliance object.
2884 </li>
2885
2886 <li>For each machine you would like to export, call <link to="IMachine::export" />
2887 with the IAppliance object you just created. This creates an instance of
2888 <link to="IVirtualSystemDescription" /> inside the appliance.
2889 </li>
2890
2891 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2892 virtual system to override the suggestions made by the export() routine.
2893 </li>
2894
2895 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2896 file written.</li>
2897 </ol>
2898
2899 </desc>
2900
2901 <attribute name="path" type="wstring" readonly="yes">
2902 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2903 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2904 <link to="#write" /> (for export).
2905 This attribute is empty until one of these methods has been called.
2906 </desc>
2907 </attribute>
2908
2909 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2910 <desc>
2911 Array of virtual disk definitions. One such description exists for each
2912 disk definition in the OVF; each string array item represents one such piece of
2913 disk information, with the information fields separated by tab (\t) characters.
2914
2915 The caller should be prepared for additional fields being appended to
2916 this string in future versions of VirtualBox and therefore check for
2917 the number of tabs in the strings returned.
2918
2919 In the current version, the following eight fields are returned per string
2920 in the array:
2921
2922 <ol>
2923 <li>Disk ID (unique string identifier given to disk)</li>
2924
2925 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2926
2927 <li>Populated size (optional unsigned integer indicating the current size of the
2928 disk; can be approximate; -1 if unspecified)</li>
2929
2930 <li>Format (string identifying the disk format, typically
2931 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2932
2933 <li>Reference (where to find the disk image, typically a file name; if empty,
2934 then the disk should be created on import)</li>
2935
2936 <li>Image size (optional unsigned integer indicating the size of the image,
2937 which need not necessarily be the same as the values specified above, since
2938 the image may be compressed or sparse; -1 if not specified)</li>
2939
2940 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2941 presently unsupported and always -1)</li>
2942
2943 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2944 </ol>
2945 </desc>
2946 </attribute>
2947
2948 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2949 <desc> Array of virtual system descriptions. One such description is created
2950 for each virtual system found in the OVF.
2951 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2952 (for export) has been called.
2953 </desc>
2954 </attribute>
2955
2956 <method name="read">
2957 <desc>
2958 Reads an OVF file into the appliance object.
2959
2960 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2961 mere fact that this method returns successfully does not mean that VirtualBox supports all
2962 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2963 </desc>
2964 <param name="file" type="wstring" dir="in">
2965 <desc>
2966 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2967 on whether the appliance is distributed as a set of files or as a single file, respectively).
2968 </desc>
2969 </param>
2970 </method>
2971
2972 <method name="interpret">
2973 <desc>
2974 Interprets the OVF data that was read when the appliance was constructed. After
2975 calling this method, one can inspect the
2976 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2977 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2978 the appliance.
2979
2980 Calling this method is the second step of importing an appliance into VirtualBox;
2981 see <link to="IAppliance" /> for an overview.
2982 </desc>
2983 </method>
2984
2985 <method name="importMachines">
2986 <desc>
2987 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2988 and other interfaces that match the information contained in the appliance as
2989 closely as possible, as represented by the import instructions in the
2990 <link to="#virtualSystemDescriptions" /> array.
2991
2992 Calling this method is the final step of importing an appliance into VirtualBox;
2993 see <link to="IAppliance" /> for an overview.
2994
2995 Since importing the appliance will most probably involve copying and converting
2996 disk images, which can take a long time, this method operates asynchronously and
2997 returns an IProgress object to allow the caller to monitor the progress.
2998 </desc>
2999
3000 <param name="aProgress" type="IProgress" dir="return">
3001 <desc></desc>
3002 </param>
3003 </method>
3004
3005 <method name="write">
3006 <desc>
3007 Writes the contents of the appliance exports into a new OVF file.
3008
3009 Calling this method is the final step of exporting an appliance from VirtualBox;
3010 see <link to="IAppliance" /> for an overview.
3011
3012 Since importing the appliance will most probably involve copying and converting
3013 disk images, which can take a long time, this method operates asynchronously and
3014 returns an IProgress object to allow the caller to monitor the progress.
3015 </desc>
3016 <param name="path" type="wstring" dir="in">
3017 <desc>
3018 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3019 on whether the appliance is distributed as a set of files or as a single file, respectively).
3020 </desc>
3021 </param>
3022 <param name="aProgress" type="IProgress" dir="return">
3023 <desc></desc>
3024 </param>
3025 </method>
3026
3027 </interface>
3028
3029 <enum
3030 name="VirtualSystemDescriptionType"
3031 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3032 >
3033 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3034 a configuration value.</desc>
3035
3036 <const name="Ignore" value="1" />
3037 <const name="OS" value="2" />
3038 <const name="Name" value="3" />
3039 <const name="CPU" value="4" />
3040 <const name="Memory" value="5" />
3041 <const name="HardDiskControllerIDE" value="6" />
3042 <const name="HardDiskControllerSATA" value="7" />
3043 <const name="HardDiskControllerSCSI" value="8" />
3044 <const name="HardDiskImage" value="9" />
3045 <const name="Floppy" value="10" />
3046 <const name="CDROM" value="11" />
3047 <const name="NetworkAdapter" value="12" />
3048 <const name="USBController" value="13" />
3049 <const name="SoundCard" value="14" />
3050
3051 </enum>
3052
3053 <interface
3054 name="IVirtualSystemDescription" extends="$unknown"
3055 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3056 wsmap="managed"
3057 >
3058
3059 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3060 After <link to="IAppliance::interpret" /> has been called, that array contains
3061 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3062 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3063 into VirtualBox.
3064 </desc>
3065
3066 <attribute name="count" type="unsigned long" readonly="yes">
3067 <desc>Return the number of virtual system description entries.</desc>
3068 </attribute>
3069
3070 <method name="getDescription">
3071 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3072 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3073
3074 The list below identifies the value sets that are possible depending on the
3075 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3076 the array item with the same index in aOvfValues[] will contain the original value as contained
3077 in the OVF file (just for informational purposes), and the corresponding item in aVboxValues[]
3078 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3079 the aExtraConfigValues[] array item may also be used.
3080
3081 <ul>
3082 <li>
3083 "OS": the guest operating system type. There must be exactly one such array item on import. The
3084 corresponding item in aVboxValues[] contains the suggested guest operating system for VirtualBox.
3085 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3086 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3087 (see <link to="CIMOSType" />).
3088 </li>
3089 <li>
3090 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3091 if none is present on import, then an automatic name will be created from the operating system
3092 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3093 from the OVF file, and aVboxValues[] will contain a suggestion for a unique VirtualBox
3094 <link to="IMachine" /> name that does not exist yet.
3095 </li>
3096 <li>
3097 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3098 </li>
3099 <li>
3100 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3101 is present on import, then VirtualBox will set a meaningful default based on the operating system
3102 type.
3103 </li>
3104 <li>
3105 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3106 has no value in aOvfValues[] or aVboxValues[].
3107 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3108 type can use to specify which hard disk controller a virtual disk should be connected to.
3109 </li>
3110 <li>
3111 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3112 has no value in aOvfValues[] or aVboxValues[].
3113 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3114 </li>
3115 <li>
3116 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3117 The items in aOvfValues[] and aVboxValues[] will either be "LsiLogic" or "BusLogic".
3118 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3119 </li>
3120 <li>
3121 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3122 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3123
3124 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3125 a path since the image file should be in the same location as the OVF file itself), whereas the
3126 item in aVboxValues[] will contain a qualified path specification to where VirtualBox uses the
3127 hard disk image. This means that on import the image will be copied and converted from the
3128 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3129 On import, the target image will also be registered with VirtualBox.
3130
3131 The matching item in the aExtraConfigValues[] array must contain a string of the following
3132 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3133 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3134 the image to. That number must be the index of an array item with one of the hard disk controller
3135 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3136 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3137 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3138 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3139 SCSI conrollers, the channel can range from 0-29.
3140 </li>
3141 <li>
3142 "NetworkAdapter": a network adapter. The array item in aVboxValues[] will specify the hardware
3143 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3144 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3145 </li>
3146 <li>
3147 "USBController": a USB controller. There can be at most one such item. If and only if such an
3148 item ispresent, USB support will be enabled for the new virtual machine.
3149 </li>
3150 <li>
3151 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3152 present, sound support will be enabled for the new virtual machine. Note that the virtual
3153 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3154 may be different from the virtual soundcard expected by the appliance.
3155 </li>
3156 </ul>
3157
3158 </desc>
3159
3160 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3161 <desc></desc>
3162 </param>
3163
3164 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3165 <desc></desc>
3166 </param>
3167
3168 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3169 <desc></desc>
3170 </param>
3171
3172 <param name="aVboxValues" type="wstring" dir="out" safearray="yes">
3173 <desc></desc>
3174 </param>
3175
3176 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3177 <desc></desc>
3178 </param>
3179
3180 </method>
3181
3182 <method name="setFinalValues">
3183 <desc>
3184 This method allows the appliance's user to change the configuration for the virtual
3185 system descriptions. For each array item returned from <link to="getDescription" />,
3186 you must pass in one boolean value and one configuration value.
3187
3188 Each item in the boolean array determines whether the particular configuration item
3189 should be enabled.
3190 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3191 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3192 and SoundCard.
3193
3194 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3195 as returned in the aVboxValues and aExtraConfigValues arrays from getDescription(),
3196 the configuration remains unchanged. Please see the documentation for getDescription()
3197 for valid configuration values for the individual array item types. If the
3198 corresponding item in the aEnabled array is false, the configuration value is ignored.
3199 </desc>
3200
3201 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3202 <desc></desc>
3203 </param>
3204
3205 <param name="aVboxValues" type="wstring" dir="in" safearray="yes">
3206 <desc></desc>
3207 </param>
3208
3209 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3210 <desc></desc>
3211 </param>
3212 </method>
3213
3214 <method name="getWarnings">
3215 <desc>Returns textual warnings which occured during the virtual system
3216 interpretion.</desc>
3217
3218 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3219 <desc></desc>
3220 </param>
3221 </method>
3222
3223 </interface>
3224
3225
3226 <!--
3227 // IMachine
3228 /////////////////////////////////////////////////////////////////////////
3229 -->
3230
3231 <interface
3232 name="IInternalMachineControl" extends="$unknown"
3233 uuid="2c88b969-7a74-4ef3-b95f-8a209a1535f3"
3234 internal="yes"
3235 wsmap="suppress"
3236 >
3237 <method name="updateState">
3238 <desc>
3239 Updates the VM state.
3240 <note>
3241 This operation will also update the settings file with
3242 the correct information about the saved state file
3243 and delete this file from disk when appropriate.
3244 </note>
3245 </desc>
3246 <param name="state" type="MachineState" dir="in"/>
3247 </method>
3248
3249 <method name="getIPCId">
3250 <param name="id" type="wstring" dir="return"/>
3251 </method>
3252
3253 <method name="runUSBDeviceFilters">
3254 <desc>
3255 Asks the server to run USB devices filters of the associated
3256 machine against the given USB device and tell if there is
3257 a match.
3258 <note>
3259 Intended to be used only for remote USB devices. Local
3260 ones don't require to call this method (this is done
3261 implicitly by the Host and USBProxyService).
3262 </note>
3263 </desc>
3264 <param name="device" type="IUSBDevice" dir="in"/>
3265 <param name="matched" type="boolean" dir="out"/>
3266 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3267 </method>
3268
3269 <method name="captureUSBDevice">
3270 <desc>
3271 Requests a capture of the given host USB device.
3272 When the request is completed, the VM process will
3273 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3274 notification.
3275 </desc>
3276 <param name="id" type="uuid" dir="in"/>
3277 </method>
3278
3279 <method name="detachUSBDevice">
3280 <desc>
3281 Notification that a VM is going to detach (done = false) or has
3282 already detached (done = true) the given USB device.
3283 When the done = true request is completed, the VM process will
3284 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3285 notification.
3286 <note>
3287 In the done = true case, the server must run its own filters
3288 and filters of all VMs but this one on the detached device
3289 as if it were just attached to the host computer.
3290 </note>
3291 </desc>
3292 <param name="id" type="uuid" dir="in"/>
3293 <param name="done" type="boolean" dir="in"/>
3294 </method>
3295
3296 <method name="autoCaptureUSBDevices">
3297 <desc>
3298 Requests a capture all matching USB devices attached to the host.
3299 When the request is completed, the VM process will
3300 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3301 notification per every captured device.
3302 </desc>
3303 </method>
3304
3305 <method name="detachAllUSBDevices">
3306 <desc>
3307 Notification that a VM that is being powered down. The done
3308 parameter indicates whether which stage of the power down
3309 we're at. When done = false the VM is announcing its
3310 intentions, while when done = true the VM is reporting
3311 what it has done.
3312 <note>
3313 In the done = true case, the server must run its own filters
3314 and filters of all VMs but this one on all detach devices as
3315 if they were just attached to the host computer.
3316 </note>
3317 </desc>
3318 <param name="done" type="boolean" dir="in"/>
3319 </method>
3320
3321 <method name="onSessionEnd">
3322 <desc>
3323 Triggered by the given session object when the session is about
3324 to close normally.
3325 </desc>
3326 <param name="session" type="ISession" dir="in">
3327 <desc>Session that is being closed</desc>
3328 </param>
3329 <param name="progress" type="IProgress" dir="return">
3330 <desc>
3331 Used to wait until the corresponding machine is actually
3332 dissociated from the given session on the server.
3333 Returned only when this session is a direct one.
3334 </desc>
3335 </param>
3336 </method>
3337
3338 <method name="beginSavingState">
3339 <desc>
3340 Called by the VM process to inform the server it wants to
3341 save the current state and stop the VM execution.
3342 </desc>
3343 <param name="progress" type="IProgress" dir="in">
3344 <desc>
3345 Progress object created by the VM process to wait until
3346 the state is saved.
3347 </desc>
3348 </param>
3349 <param name="stateFilePath" type="wstring" dir="out">
3350 <desc>
3351 File path the VM process must save the execution state to.
3352 </desc>
3353 </param>
3354 </method>
3355
3356 <method name="endSavingState">
3357 <desc>
3358 Called by the VM process to inform the server that saving
3359 the state previously requested by #beginSavingState is either
3360 successfully finished or there was a failure.
3361
3362 <result name="VBOX_E_FILE_ERROR">
3363 Settings file not accessible.
3364 </result>
3365 <result name="VBOX_E_XML_ERROR">
3366 Could not parse the settings file.
3367 </result>
3368
3369 </desc>
3370
3371 <param name="success" type="boolean" dir="in">
3372 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3373 otherwise.
3374 </desc>
3375 </param>
3376 </method>
3377
3378 <method name="adoptSavedState">
3379 <desc>
3380 Gets called by IConsole::adoptSavedState.
3381 <result name="VBOX_E_FILE_ERROR">
3382 Invalid saved state file path.
3383 </result>
3384 </desc>
3385 <param name="savedStateFile" type="wstring" dir="in">
3386 <desc>Path to the saved state file to adopt.</desc>
3387 </param>
3388 </method>
3389
3390 <method name="beginTakingSnapshot">
3391 <desc>
3392 Called by the VM process to inform the server it wants to
3393 take a snapshot.
3394
3395 <result name="VBOX_E_FILE_ERROR">
3396 Settings file not accessible.
3397 </result>
3398 <result name="VBOX_E_XML_ERROR">
3399 Could not parse the settings file.
3400 </result>
3401 </desc>
3402 <param name="initiator" type="IConsole" dir="in">
3403 <desc>The console object that initiated this call.</desc>
3404 </param>
3405 <param name="name" type="wstring" dir="in">
3406 <desc>Snapshot name.</desc>
3407 </param>
3408 <param name="description" type="wstring" dir="in">
3409 <desc>Snapshot description.</desc>
3410 </param>
3411 <param name="progress" type="IProgress" dir="in">
3412 <desc>
3413 Progress object created by the VM process to wait until
3414 the state is saved (only for online snapshots).
3415 </desc>
3416 </param>
3417 <param name="stateFilePath" type="wstring" dir="out">
3418 <desc>
3419 File path the VM process must save the execution state to.
3420 </desc>
3421 </param>
3422 <param name="serverProgress" type="IProgress" dir="out">
3423 <desc>
3424 Progress object created by the server process to wait until
3425 the snapshot is taken (VDI diff creation, etc.).
3426 </desc>
3427 </param>
3428 </method>
3429
3430 <method name="endTakingSnapshot">
3431 <desc>
3432 Called by the VM process to inform the server that the snapshot
3433 previously requested by #beginTakingSnapshot is either
3434 successfully taken or there was a failure.
3435 </desc>
3436
3437 <param name="success" type="boolean" dir="in">
3438 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3439 </param>
3440 </method>
3441
3442 <method name="discardSnapshot">
3443 <desc>
3444 Gets called by IConsole::discardSnapshot.
3445 <result name="VBOX_E_INVALID_OBJECT_STATE">
3446 Snapshot has more than one child snapshot.
3447 </result>
3448 </desc>
3449 <param name="initiator" type="IConsole" dir="in">
3450 <desc>The console object that initiated this call.</desc>
3451 </param>
3452 <param name="id" type="uuid" dir="in">
3453 <desc>UUID of the snapshot to discard.</desc>
3454 </param>
3455 <param name="machineState" type="MachineState" dir="out">
3456 <desc>New machine state after this operation is started.</desc>
3457 </param>
3458 <param name="progress" type="IProgress" dir="return">
3459 <desc>Progress object to track the operation completion.</desc>
3460 </param>
3461 </method>
3462
3463 <method name="discardCurrentState">
3464 <desc>
3465 Gets called by IConsole::discardCurrentState.
3466 <result name="VBOX_E_INVALID_OBJECT_STATE">
3467 Virtual machine does not have any snapshot.
3468 </result>
3469 </desc>
3470 <param name="initiator" type="IConsole" dir="in">
3471 <desc>The console object that initiated this call.</desc>
3472 </param>
3473 <param name="machineState" type="MachineState" dir="out">
3474 <desc>New machine state after this operation is started.</desc>
3475 </param>
3476 <param name="progress" type="IProgress" dir="return">
3477 <desc>Progress object to track the operation completion.</desc>
3478 </param>
3479 </method>
3480
3481 <method name="discardCurrentSnapshotAndState">
3482 <desc>
3483 Gets called by IConsole::discardCurrentSnapshotAndState.
3484 <result name="VBOX_E_INVALID_OBJECT_STATE">
3485 Virtual machine does not have any snapshot.
3486 </result>
3487 </desc>
3488 <param name="initiator" type="IConsole" dir="in">
3489 <desc>The console object that initiated this call.</desc>
3490 </param>
3491 <param name="machineState" type="MachineState" dir="out">
3492 <desc>New machine state after this operation is started.</desc>
3493 </param>
3494 <param name="progress" type="IProgress" dir="return">
3495 <desc>Progress object to track the operation completion.</desc>
3496 </param>
3497 </method>
3498
3499 <method name="pullGuestProperties">
3500 <desc>
3501 Get the list of the guest properties matching a set of patterns along
3502 with their values, time stamps and flags and give responsibility for
3503 managing properties to the console.
3504 </desc>
3505 <param name="name" type="wstring" dir="out" safearray="yes">
3506 <desc>
3507 The names of the properties returned.
3508 </desc>
3509 </param>
3510 <param name="value" type="wstring" dir="out" safearray="yes">
3511 <desc>
3512 The values of the properties returned. The array entries match the
3513 corresponding entries in the @a name array.
3514 </desc>
3515 </param>
3516 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3517 <desc>
3518 The time stamps of the properties returned. The array entries match
3519 the corresponding entries in the @a name array.
3520 </desc>
3521 </param>
3522 <param name="flags" type="wstring" dir="out" safearray="yes">
3523 <desc>
3524 The flags of the properties returned. The array entries match the
3525 corresponding entries in the @a name array.
3526 </desc>
3527 </param>
3528 </method>
3529
3530 <method name="pushGuestProperties">
3531 <desc>
3532 Set the list of the guest properties matching a set of patterns along
3533 with their values, time stamps and flags and return responsibility for
3534 managing properties to IMachine.
3535 </desc>
3536 <param name="name" type="wstring" dir="in" safearray="yes">
3537 <desc>
3538 The names of the properties.
3539 </desc>
3540 </param>
3541 <param name="value" type="wstring" dir="in" safearray="yes">
3542 <desc>
3543 The values of the properties. The array entries match the
3544 corresponding entries in the @a name array.
3545 </desc>
3546 </param>
3547 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3548 <desc>
3549 The time stamps of the properties. The array entries match
3550 the corresponding entries in the @a name array.
3551 </desc>
3552 </param>
3553 <param name="flags" type="wstring" dir="in" safearray="yes">
3554 <desc>
3555 The flags of the properties. The array entries match the
3556 corresponding entries in the @a name array.
3557 </desc>
3558 </param>
3559 </method>
3560 <method name="pushGuestProperty">
3561 <desc>
3562 Update a single guest property in IMachine.
3563 </desc>
3564 <param name="name" type="wstring" dir="in">
3565 <desc>
3566 The name of the property to be updated.
3567 </desc>
3568 </param>
3569 <param name="value" type="wstring" dir="in">
3570 <desc>
3571 The value of the property.
3572 </desc>
3573 </param>
3574 <param name="timestamp" type="unsigned long long" dir="in">
3575 <desc>
3576 The timestamp of the property.
3577 </desc>
3578 </param>
3579 <param name="flags" type="wstring" dir="in">
3580 <desc>
3581 The flags of the property.
3582 </desc>
3583 </param>
3584 </method>
3585
3586 <method name="lockMedia">
3587 <desc>
3588 Locks all media attached to the machine for writing and parents of
3589 attahced different hard disks (if any) for reading. This operation is
3590 atomic so that if it fails no media is actually locked.
3591
3592 This method is intended to be called when the machine is in Starting or
3593 Restoring state. The locked media will be automatically unlocked when
3594 the machine is powered off or crashed.
3595 </desc>
3596 </method>
3597 </interface>
3598
3599 <interface
3600 name="IBIOSSettings" extends="$unknown"
3601 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3602 wsmap="managed"
3603 >
3604 <desc>
3605 The IBIOSSettings interface represents BIOS settings of the virtual
3606 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3607 </desc>
3608 <attribute name="logoFadeIn" type="boolean">
3609 <desc>Fade in flag for BIOS logo animation.</desc>
3610 </attribute>
3611
3612 <attribute name="logoFadeOut" type="boolean">
3613 <desc>Fade out flag for BIOS logo animation.</desc>
3614 </attribute>
3615
3616 <attribute name="logoDisplayTime" type="unsigned long">
3617 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3618 </attribute>
3619
3620 <attribute name="logoImagePath" type="wstring">
3621 <desc>Local file system path for external BIOS image.</desc>
3622 </attribute>
3623
3624 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3625 <desc>Mode of the BIOS boot device menu.</desc>
3626 </attribute>
3627
3628 <attribute name="ACPIEnabled" type="boolean">
3629 <desc>ACPI support flag.</desc>
3630 </attribute>
3631
3632 <attribute name="IOAPICEnabled" type="boolean">
3633 <desc>
3634 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3635 and support IRQs above 15.
3636 </desc>
3637 </attribute>
3638
3639 <attribute name="timeOffset" type="long long">
3640 <desc>
3641 Offset in milliseconds from the host system time. This allows for
3642 guests running with a different system date/time than the host.
3643 It is equivalent to setting the system date/time in the BIOS except
3644 it is not an absolute value but a relative one. Guest Additions
3645 time synchronization honors this offset.
3646 </desc>
3647 </attribute>
3648
3649 <attribute name="PXEDebugEnabled" type="boolean">
3650 <desc>
3651 PXE debug logging flag. If set, VirtualBox will write extensive
3652 PXE trace information to the release log.
3653 </desc>
3654 </attribute>
3655
3656 </interface>
3657
3658 <interface
3659 name="IMachine" extends="$unknown"
3660 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3661 wsmap="managed"
3662 >
3663 <desc>
3664 The IMachine interface represents a virtual machine, or guest, created
3665 in VirtualBox.
3666
3667 This interface is used in two contexts. First of all, a collection of
3668 objects implementing this interface is stored in the
3669 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3670 machines that are currently registered with this VirtualBox
3671 installation. Also, once a session has been opened for the given virtual
3672 machine (e.g. the virtual machine is running), the machine object
3673 associated with the open session can be queried from the session object;
3674 see <link to="ISession"/> for details.
3675
3676 The main role of this interface is to expose the settings of the virtual
3677 machine and provide methods to change various aspects of the virtual
3678 machine's configuration. For machine objects stored in the
3679 <link to="IVirtualBox::machines2"/> collection, all attributes are
3680 read-only unless explicitly stated otherwise in individual attribute
3681 and method descriptions. In order to change a machine setting, a session
3682 for this machine must be opened using one of
3683 <link to="IVirtualBox::openSession"/>,
3684 <link to="IVirtualBox::openRemoteSession"/> or
3685 <link to="IVirtualBox::openExistingSession"/> methods. After the
3686 session has been successfully opened, a mutable machine object needs to
3687 be queried from the session object and then the desired settings changes
3688 can be applied to the returned object using IMachine attributes and
3689 methods. See the ISession interface description for more information
3690 about sessions.
3691
3692 Note that the IMachine interface does not provide methods to control
3693 virtual machine execution (such as start the machine, or power it
3694 down) -- these methods are grouped in a separate IConsole
3695 interface. Refer to the IConsole interface description to get more
3696 information about this topic.
3697
3698 <see>ISession, IConsole</see>
3699 </desc>
3700
3701 <attribute name="parent" type="IVirtualBox" readonly="yes">
3702 <desc>Associated parent object.</desc>
3703 </attribute>
3704
3705 <attribute name="accessible" type="boolean" readonly="yes">
3706 <desc>
3707 Whether this virtual machine is currently accessible or not.
3708
3709 The machine is considered to be inaccessible when:
3710 <ul>
3711 <li>It is a registered virtual machine, and
3712 </li>
3713 <li>Its settings file is inaccessible (for example, it is
3714 located on a network share that is not accessible during
3715 VirtualBox startup, or becomes inaccessible later, or if
3716 the settings file can be read but is invalid).
3717 </li>
3718 </ul>
3719
3720 Otherwise, the value of this property is always <tt>true</tt>.
3721
3722 Every time this property is read, the accessibility state of
3723 this machine is re-evaluated. If the returned value is |false|,
3724 the <link to="#accessError"/> property may be used to get the
3725 detailed error information describing the reason of
3726 inaccessibility.
3727
3728 When the machine is inaccessible, only the following properties
3729 can be used on it:
3730 <ul>
3731 <li><link to="#parent"/></li>
3732 <li><link to="#id"/></li>
3733 <li><link to="#settingsFilePath"/></li>
3734 <li><link to="#accessible"/></li>
3735 <li><link to="#accessError"/></li>
3736 </ul>
3737
3738 An attempt to access any other property or method will return
3739 an error.
3740
3741 The only possible action you can perform on an inaccessible
3742 machine is to unregister it using the
3743 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3744 for the accessibility state once more by querying this
3745 property).
3746
3747 <note>
3748 In the current implementation, once this property returns
3749 <tt>true</tt>, the machine will never become inaccessible
3750 later, even if its settings file cannot be successfully
3751 read/written any more (at least, until the VirtualBox
3752 server is restarted). This limitation may be removed in
3753 future releases.
3754 </note>
3755 </desc>
3756 </attribute>
3757
3758 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3759 <desc>
3760 Error information describing the reason of machine
3761 inaccessibility.
3762
3763 Reading this property is only valid after the last call to
3764 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3765 machine is currently unaccessible). Otherwise, a null
3766 IVirtualBoxErrorInfo object will be returned.
3767 </desc>
3768 </attribute>
3769
3770 <attribute name="name" type="wstring">
3771 <desc>
3772 Name of the virtual machine.
3773
3774 Besides being used for human-readable identification purposes
3775 everywhere in VirtualBox, the virtual machine name is also used
3776 as a name of the machine's settings file and as a name of the
3777 subdirectory this settings file resides in. Thus, every time you
3778 change the value of this property, the settings file will be
3779 renamed once you call <link to="#saveSettings"/> to confirm the
3780 change. The containing subdirectory will be also renamed, but
3781 only if it has exactly the same name as the settings file
3782 itself prior to changing this property (for backward compatibility
3783 with previous API releases). The above implies the following
3784 limitations:
3785 <ul>
3786 <li>The machine name cannot be empty.</li>
3787 <li>The machine name can contain only characters that are valid
3788 file name characters according to the rules of the file
3789 system used to store VirtualBox configuration.</li>
3790 <li>You cannot have two or more machines with the same name
3791 if they use the same subdirectory for storing the machine
3792 settings files.</li>
3793 <li>You cannot change the name of the machine if it is running,
3794 or if any file in the directory containing the settings file
3795 is being used by another running machine or by any other
3796 process in the host operating system at a time when
3797 <link to="#saveSettings"/> is called.
3798 </li>
3799 </ul>
3800 If any of the above limitations are hit, <link to="#saveSettings"/>
3801 will return an appropriate error message explaining the exact
3802 reason and the changes you made to this machine will not be
3803 saved.
3804 <note>
3805 For "legacy" machines created using the
3806 <link to="IVirtualBox::createLegacyMachine"/> call,
3807 the above naming limitations do not apply because the
3808 machine name does not affect the settings file name.
3809 The settings file name remains the same as it was specified
3810 during machine creation and never changes.
3811 </note>
3812 </desc>
3813 </attribute>
3814
3815 <attribute name="description" type="wstring">
3816 <desc>
3817 Description of the virtual machine.
3818
3819 The description attribute can contain any text and is
3820 typically used to describe the hardware and software
3821 configuration of the virtual machine in detail (i.e. network
3822 settings, versions of the installed software and so on).
3823 </desc>
3824 </attribute>
3825
3826 <attribute name="id" type="uuid" readonly="yes">
3827 <desc>UUID of the virtual machine.</desc>
3828 </attribute>
3829
3830 <attribute name="OSTypeId" type="wstring">
3831 <desc>
3832 User-defined identifier of the Guest OS type.
3833 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3834 an IGuestOSType object representing details about the given
3835 Guest OS type.
3836 <note>
3837 This value may differ from the value returned by
3838 <link to="IGuest::OSTypeId"/> if Guest Additions are
3839 installed to the guest OS.
3840 </note>
3841 </desc>
3842 </attribute>
3843
3844 <attribute name="HardwareVersion" type="wstring">
3845 <desc>Hardware version identifier. Internal use only for now.</desc>
3846 </attribute>
3847
3848 <attribute name="CPUCount" type="unsigned long">
3849 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3850 </attribute>
3851
3852 <attribute name="memorySize" type="unsigned long">
3853 <desc>System memory size in megabytes.</desc>
3854 </attribute>
3855
3856 <attribute name="memoryBalloonSize" type="unsigned long">
3857 <desc>Initial memory balloon size in megabytes.</desc>
3858 </attribute>
3859
3860 <attribute name="statisticsUpdateInterval" type="unsigned long">
3861 <desc>Initial interval to update guest statistics in seconds.</desc>
3862 </attribute>
3863
3864 <attribute name="VRAMSize" type="unsigned long">
3865 <desc>Video memory size in megabytes.</desc>
3866 </attribute>
3867
3868 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3869 <desc>
3870 This setting determines whether VirtualBox allows guests to make use
3871 of the 3D graphics support available on the host. Currently limited
3872 to OpenGL only. </desc>
3873 </attribute>
3874
3875 <attribute name="monitorCount" type="unsigned long">
3876 <desc>
3877 Number of virtual monitors.
3878 <note>
3879 Only effective on Windows XP and later guests with
3880 Guest Additions installed.
3881 </note>
3882 </desc>
3883 </attribute>
3884
3885 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3886 <desc>Object containing all BIOS settings.</desc>
3887 </attribute>
3888
3889 <attribute name="HWVirtExEnabled" type="TSBool">
3890 <desc>
3891 This setting determines whether VirtualBox will try to make use of
3892 the host CPU's hardware virtualization extensions such as Intel VT-x
3893 and AMD-V. Note that in case such extensions are not available,
3894 they will not be used.
3895 </desc>
3896 </attribute>
3897
3898 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3899 <desc>
3900 This setting determines whether VirtualBox will try to make use of
3901 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3902 such extensions are not available, they will not be used.
3903 </desc>
3904 </attribute>
3905
3906 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3907 <desc>
3908 This setting determines whether VirtualBox will try to make use of
3909 the VPID extension of Intel VT-x. Note that in case such extensions are
3910 not available, they will not be used.
3911 </desc>
3912 </attribute>
3913
3914 <attribute name="PAEEnabled" type="boolean" default="false">
3915 <desc>
3916 This setting determines whether VirtualBox will expose the Physical Address
3917 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3918 is not available, it will not be reported.
3919 </desc>
3920 </attribute>
3921
3922 <attribute name="snapshotFolder" type="wstring">
3923 <desc>
3924 Full path to the directory used to store snapshot data
3925 (differencing hard disks and saved state files) of this machine.
3926
3927 The initial value of this property is
3928 <tt>&lt;</tt><link to="#settingsFilePath">
3929 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3930 <link to="#id">machine_uuid</link>
3931 <tt>&gt;</tt>.
3932
3933 Currently, it is an error to try to change this property on
3934 a machine that has snapshots (because this would require to
3935 move possibly large files to a different location).
3936 A separate method will be available for this purpose later.
3937
3938 <note>
3939 Setting this property to <tt>null</tt> will restore the
3940 initial value.
3941 </note>
3942 <note>
3943 When setting this property, the specified path can be
3944 absolute (full path) or relative to the directory where the
3945 <link to="#settingsFilePath">machine settings file</link>
3946 is located. When reading this property, a full path is
3947 always returned.
3948 </note>
3949 <note>
3950 The specified path may not exist, it will be created
3951 when necessary.
3952 </note>
3953 </desc>
3954 </attribute>
3955
3956 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3957 <desc>VRDP server object.</desc>
3958 </attribute>
3959
3960 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3961 <desc>Array of hard disks attached to this machine.</desc>
3962 </attribute>
3963
3964 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3965 <desc>Associated DVD drive object.</desc>
3966 </attribute>
3967
3968 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3969 <desc>Associated floppy drive object.</desc>
3970 </attribute>
3971
3972 <attribute name="USBController" type="IUSBController" readonly="yes">
3973 <desc>
3974 Associated USB controller object.
3975
3976 <note>
3977 This method may set a @ref com_warnings "warning result code".
3978 </note>
3979 <note>
3980 If USB functionality is not available in the given edition of
3981 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3982 </note>
3983 </desc>
3984 </attribute>
3985
3986 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3987 <desc>Associated audio adapter, always present.</desc>
3988 </attribute>
3989
3990 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
3991 <desc>Array of storage controllers attached to this machine.</desc>
3992 </attribute>
3993
3994 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3995 <desc>
3996 Full name of the file containing machine settings data.
3997 </desc>
3998 </attribute>
3999
4000 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4001 <desc>
4002 Current version of the format of the settings file of this machine
4003 (<link to="#settingsFilePath"/>).
4004
4005 The version string has the following format:
4006 <pre>
4007 x.y-platform
4008 </pre>
4009 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4010 versions, and <tt>platform</tt> is the platform identifier.
4011
4012 The current version usually matches the value of the
4013 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4014 settings file was created by an older version of VirtualBox and there
4015 was a change of the settings file format since then.
4016
4017 Note that VirtualBox automatically converts settings files from older
4018 versions to the most recent version when reading them (usually at
4019 VirtualBox startup) but it doesn't save the changes back until
4020 you call a method that implicitly saves settings (such as
4021 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4022 explicitly. Therefore, if the value of this attribute differs from the
4023 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4024 means that the settings file was converted but the result of the
4025 conversion is not yet saved to disk.
4026
4027 The above feature may be used by interactive front-ends to inform users
4028 about the settings file format change and offer them to explicitly save
4029 all converted settings files (the global and VM-specific ones),
4030 optionally create backup copies of the old settings files before saving,
4031 etc.
4032
4033 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4034 </desc>
4035 </attribute>
4036
4037 <attribute name="settingsModified" type="boolean" readonly="yes">
4038 <desc>
4039 Whether the settings of this machine have been modified
4040 (but neither yet saved nor discarded).
4041 <note>
4042 Reading this property is only valid on instances returned
4043 by <link to="ISession::machine"/> and on new machines
4044 created by <link to="IVirtualBox::createMachine"/> or opened
4045 by <link to="IVirtualBox::openMachine"/> but not
4046 yet registered, or on unregistered machines after calling
4047 <link to="IVirtualBox::unregisterMachine"/>. For all other
4048 cases, the settings can never be modified.
4049 </note>
4050 <note>
4051 For newly created unregistered machines, the value of this
4052 property is always TRUE until <link to="#saveSettings"/>
4053 is called (no matter if any machine settings have been
4054 changed after the creation or not). For opened machines
4055 the value is set to FALSE (and then follows to normal rules).
4056 </note>
4057 </desc>
4058 </attribute>
4059
4060 <attribute name="sessionState" type="SessionState" readonly="yes">
4061 <desc>Current session state for this machine.</desc>
4062 </attribute>
4063
4064 <attribute name="sessionType" type="wstring" readonly="yes">
4065 <desc>
4066 Type of the session. If <link to="#sessionState"/> is
4067 SessionSpawning or SessionOpen, this attribute contains the
4068 same value as passed to the
4069 <link to="IVirtualBox::openRemoteSession"/> method in the
4070 @a type parameter. If the session was opened directly using
4071 <link to="IVirtualBox::openSession"/>, or if
4072 <link to="#sessionState"/> is SessionClosed, the value of this
4073 attribute is @c null.
4074 </desc>
4075 </attribute>
4076
4077 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4078 <desc>
4079 Identifier of the session process. This attribute contains the
4080 platform-dependent identifier of the process that has opened a
4081 direct session for this machine using the
4082 <link to="IVirtualBox::openSession"/> call. The returned value
4083 is only valid if <link to="#sessionState"/> is SessionOpen or
4084 SessionClosing (i.e. a session is currently open or being
4085 closed) by the time this property is read.
4086 </desc>
4087 </attribute>
4088
4089 <attribute name="state" type="MachineState" readonly="yes">
4090 <desc>Current execution state of this machine.</desc>
4091 </attribute>
4092
4093 <attribute name="lastStateChange" type="long long" readonly="yes">
4094 <desc>
4095 Time stamp of the last execution state change,
4096 in milliseconds since 1970-01-01 UTC.
4097 </desc>
4098 </attribute>
4099
4100 <attribute name="stateFilePath" type="wstring" readonly="yes">
4101 <desc>
4102 Full path to the file that stores the execution state of
4103 the machine when it is in the <link to="MachineState_Saved"/> state.
4104 <note>
4105 When the machine is not in the Saved state, this attribute
4106 <tt>null</tt>.
4107 </note>
4108 </desc>
4109 </attribute>
4110
4111 <attribute name="logFolder" type="wstring" readonly="yes">
4112 <desc>
4113 Full path to the folder that stores a set of rotated log files
4114 recorded during machine execution. The most recent log file is
4115 named <tt>VBox.log</tt>, the previous log file is
4116 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4117 in the current version).
4118 </desc>
4119 </attribute>
4120
4121 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4122 <desc>
4123 Current snapshot of this machine.
4124 <note>
4125 A <tt>null</tt> object is returned if the machine doesn't
4126 have snapshots.
4127 </note>
4128 <see><link to="ISnapshot"/></see>
4129 </desc>
4130 </attribute>
4131
4132 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4133 <desc>
4134 Number of snapshots taken on this machine. Zero means the
4135 machine doesn't have any snapshots.
4136 </desc>
4137 </attribute>
4138
4139 <attribute name="currentStateModified" type="boolean" readonly="yes">
4140 <desc>
4141 Returns <tt>true</tt> if the current state of the machine is not
4142 identical to the state stored in the current snapshot.
4143
4144 The current state is identical to the current snapshot right
4145 after one of the following calls are made:
4146 <ul>
4147 <li><link to="IConsole::discardCurrentState"/> or
4148 <link to="IConsole::discardCurrentSnapshotAndState"/>
4149 </li>
4150 <li><link to="IConsole::takeSnapshot"/> (issued on a
4151 powered off or saved machine, for which
4152 <link to="#settingsModified"/> returns <tt>false</tt>)
4153 </li>
4154 <li><link to="IMachine::setCurrentSnapshot"/>
4155 </li>
4156 </ul>
4157
4158 The current state remains identical until one of the following
4159 happens:
4160 <ul>
4161 <li>settings of the machine are changed</li>
4162 <li>the saved state is discarded</li>
4163 <li>the current snapshot is discarded</li>
4164 <li>an attempt to execute the machine is made</li>
4165 </ul>
4166
4167 <note>
4168 For machines that don't have snapshots, this property is
4169 always <tt>false</tt>.
4170 </note>
4171 </desc>
4172 </attribute>
4173
4174 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4175 <desc>
4176 Collection of shared folders for this machine (permanent shared
4177 folders). These folders are shared automatically at machine startup
4178 and available only to the guest OS installed within this machine.
4179
4180 New shared folders are added to the collection using
4181 <link to="#createSharedFolder"/>. Existing shared folders can be
4182 removed using <link to="#removeSharedFolder"/>.
4183 </desc>
4184 </attribute>
4185
4186 <attribute name="clipboardMode" type="ClipboardMode">
4187 <desc>
4188 Synchronization mode between the host OS clipboard
4189 and the guest OS clipboard.
4190 </desc>
4191 </attribute>
4192
4193 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4194 <desc>
4195 A comma-separated list of simple glob patterns. Changes to guest
4196 properties whose name matches one of the patterns will generate an
4197 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4198 </desc>
4199 </attribute>
4200
4201 <method name="setBootOrder">
4202 <desc>
4203 Puts the given device to the specified position in
4204 the boot order.
4205
4206 To indicate that no device is associated with the given position,
4207 <link to="DeviceType_Null"/> should be used.
4208
4209 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4210
4211 <result name="E_INVALIDARG">
4212 Boot @a position out of range.
4213 </result>
4214 <result name="E_NOTIMPL">
4215 Booting from USB @a device currently not supported.
4216 </result>
4217
4218 </desc>
4219 <param name="position" type="unsigned long" dir="in">
4220 <desc>
4221 Position in the boot order (<tt>1</tt> to the total number of
4222 devices the machine can boot from, as returned by
4223 <link to="ISystemProperties::maxBootPosition"/>).
4224 </desc>
4225 </param>
4226 <param name="device" type="DeviceType" dir="in">
4227 <desc>
4228 The type of the device used to boot at the given position.
4229 </desc>
4230 </param>
4231 </method>
4232
4233 <method name="getBootOrder" const="yes">
4234 <desc>
4235 Returns the device type that occupies the specified
4236 position in the boot order.
4237
4238 @todo [remove?]
4239 If the machine can have more than one device of the returned type
4240 (such as hard disks), then a separate method should be used to
4241 retrieve the individual device that occupies the given position.
4242
4243 If here are no devices at the given position, then
4244 <link to="DeviceType_Null"/> is returned.
4245
4246 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4247
4248 <result name="E_INVALIDARG">
4249 Boot @a position out of range.
4250 </result>
4251
4252 </desc>
4253 <param name="position" type="unsigned long" dir="in">
4254 <desc>
4255 Position in the boot order (<tt>1</tt> to the total number of
4256 devices the machine can boot from, as returned by
4257 <link to="ISystemProperties::maxBootPosition"/>).
4258 </desc>
4259 </param>
4260 <param name="device" type="DeviceType" dir="return">
4261 <desc>
4262 Device at the given position.
4263 </desc>
4264 </param>
4265 </method>
4266
4267 <method name="attachHardDisk">
4268 <desc>
4269 Attaches a virtual hard disk identified by the given UUID @a id
4270 to a device slot of the specified bus.
4271
4272 For the IDE bus, the @a port parameter can be either @c 0 or @c 1, to
4273 specify the primary or secondary IDE controller, respectively. The
4274 SATA bus supports 30 ports, so this parameter can be a number
4275 ranging from @c 0 to @c 29.
4276
4277 For the primary controller of the IDE bus, the @a device number can be
4278 either @c 0 or @c 1, to specify the master or the slave device,
4279 respectively. For the secondary IDE controller, the device number is
4280 always @c 1 because the master device is reserved for the CD-ROM drive.
4281
4282 For the SATA bus, the @a device parameter is currently unused and
4283 must be @c 0.
4284
4285 The specified device slot must not have another disk attached to it, or
4286 this method will fail.
4287
4288 See <link to="IHardDisk"/> for more detailed information about
4289 attaching hard disks.
4290
4291 <note>
4292 You cannot attach a hard disk to a running machine. Also, you cannot
4293 attach a hard disk to a newly created machine until this machine's
4294 settings are saved to disk using <link to="#saveSettings"/>.
4295 </note>
4296 <note>
4297 If the hard disk is being attached indirectly, a new differencing hard
4298 disk will implicitly be created for it and attached instead. If the
4299 changes made to the machine settings (including this indirect
4300 attachment) are later cancelled using <link to="#discardSettings"/>,
4301 this implicitly created differencing hard disk will implicitly
4302 be deleted.
4303 </note>
4304
4305 <result name="E_INVALIDARG">
4306 SATA device, SATA port, IDE port or IDE slot out of range.
4307 </result>
4308 <result name="VBOX_E_INVALID_OBJECT_STATE">
4309 Attempt to attach hard disk to an unregistered virtual machine.
4310 </result>
4311 <result name="VBOX_E_INVALID_VM_STATE">
4312 Invalid machine state.
4313 </result>
4314 <result name="VBOX_E_OBJECT_IN_USE">
4315 Hard disk already attached to this or another virtual machine.
4316 </result>
4317
4318 </desc>
4319 <param name="id" type="uuid" dir="in">
4320 <desc>UUID of the hard disk to attach.</desc>
4321 </param>
4322 <param name="name" type="wstring" dir="in">
4323 <desc>Name of the storage controller to attach the hard disk to.</desc>
4324 </param>
4325 <param name="controllerPort" type="long" dir="in">
4326 <desc>Port to attach the hard disk to.</desc>
4327 </param>
4328 <param name="device" type="long" dir="in">
4329 <desc>
4330 Device slot in the given port to attach the hard disk to.
4331 </desc>
4332 </param>
4333 </method>
4334
4335 <method name="getHardDisk" const="yes">
4336 <desc>
4337 Returns the virtual hard disk attached to a device slot of the specified
4338 bus.
4339
4340 Note that if the hard disk was indirectly attached by
4341 <link to="#attachHardDisk"/> to the given device slot then this
4342 method will return not the same object as passed to the
4343 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4344 more detailed information about attaching hard disks.
4345
4346 <result name="VBOX_E_OBJECT_NOT_FOUND">
4347 No hard disk attached to given slot/bus.
4348 </result>
4349
4350 </desc>
4351 <param name="name" type="wstring" dir="in">
4352 <desc>Name of the storage controller the hard disk is attached to.</desc>
4353 </param>
4354 <param name="controllerPort" type="long" dir="in">
4355 <desc>Port to query.</desc>
4356 </param>
4357 <param name="device" type="long" dir="in">
4358 <desc>Device slot in the given port to query.</desc>
4359 </param>
4360 <param name="hardDisk" type="IHardDisk" dir="return">
4361 <desc>Attached hard disk object.</desc>
4362 </param>
4363 </method>
4364
4365 <method name="detachHardDisk">
4366 <desc>
4367 Detaches the virtual hard disk attached to a device slot of the
4368 specified bus.
4369
4370 Detaching the hard disk from the virtual machine is deferred. This means
4371 that the hard disk remains associated with the machine when this method
4372 returns and gets actually de-associated only after a successful
4373 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4374 for more detailed information about attaching hard disks.
4375
4376 <note>
4377 You cannot detach the hard disk from a running machine.
4378 </note>
4379 <note>
4380 Detaching differencing hard disks implicitly created by <link
4381 to="#attachHardDisk"/> for the indirect attachment using this
4382 method will <b>not</b> implicitly delete them. The
4383 <link to="IHardDisk::deleteStorage"/> operation should be
4384 explicitly performed by the caller after the hard disk is successfully
4385 detached and the settings are saved with
4386 <link to="#saveSettings"/>, if it is the desired action.
4387 </note>
4388
4389 <result name="VBOX_E_INVALID_VM_STATE">
4390 Attempt to detach hard disk from a running virtual machine.
4391 </result>
4392 <result name="VBOX_E_OBJECT_NOT_FOUND">
4393 No hard disk attached to given slot/bus.
4394 </result>
4395 <result name="VBOX_E_NOT_SUPPORTED">
4396 Hard disk format does not support storage deletion.
4397 </result>
4398
4399 </desc>
4400 <param name="name" type="wstring" dir="in">
4401 <desc>name of the storage controller to detach the hard disk from.</desc>
4402 </param>
4403 <param name="controllerPort" type="long" dir="in">
4404 <desc>Port number to detach the hard disk from.</desc>
4405 </param>
4406 <param name="device" type="long" dir="in">
4407 <desc>Device slot number to detach the hard disk from.</desc>
4408 </param>
4409 </method>
4410
4411 <method name="getHardDiskAttachmentsOfController" const="yes">
4412 <desc>
4413 Returns an array of hard disk attachments which are attached to the
4414 the controller with the given name.
4415
4416 <result name="VBOX_E_OBJECT_NOT_FOUND">
4417 A storage controller with given name doesn't exist.
4418 </result>
4419 </desc>
4420 <param name="name" type="wstring" dir="in"/>
4421 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4422 </method>
4423
4424 <method name="getNetworkAdapter" const="yes">
4425 <desc>
4426 Returns the network adapter associated with the given slot.
4427 Slots are numbered sequentially, starting with zero. The total
4428 number of adapters per machine is defined by the
4429 <link to="ISystemProperties::networkAdapterCount"/> property,
4430 so the maximum slot number is one less than that property's value.
4431
4432 <result name="E_INVALIDARG">
4433 Invalid @a slot number.
4434 </result>
4435
4436 </desc>
4437 <param name="slot" type="unsigned long" dir="in"/>
4438 <param name="adapter" type="INetworkAdapter" dir="return"/>
4439 </method>
4440
4441 <method name="addStorageController">
4442 <desc>
4443 Adds a new storage controller to the machine.
4444
4445 <result name="VBOX_E_OBJECT_IN_USE">
4446 A storage controller with given name exists already.
4447 </result>
4448 <result name="E_INVALIDARG">
4449 Invalid @a controllerType.
4450 </result>
4451 </desc>
4452 <param name="name" type="wstring" dir="in"/>
4453 <param name="connectionType" type="StorageBus" dir="in"/>
4454 </method>
4455
4456 <method name="getStorageControllerByName" const="yes">
4457 <desc>
4458 Returns a storage controller with the given name.
4459
4460 <result name="VBOX_E_OBJECT_NOT_FOUND">
4461 A storage controller with given name doesn't exist.
4462 </result>
4463 </desc>
4464 <param name="name" type="wstring" dir="in"/>
4465 <param name="storageController" type="IStorageController" dir="return"/>
4466 </method>
4467
4468 <method name="removeStorageController">
4469 <desc>
4470 Removes a storage controller from the machine.
4471
4472 <result name="VBOX_E_OBJECT_NOT_FOUND">
4473 A storage controller with given name doesn't exist.
4474 </result>
4475 </desc>
4476 <param name="name" type="wstring" dir="in"/>
4477 </method>
4478
4479 <method name="getSerialPort" const="yes">
4480 <desc>
4481 Returns the serial port associated with the given slot.
4482 Slots are numbered sequentially, starting with zero. The total
4483 number of serial ports per machine is defined by the
4484 <link to="ISystemProperties::serialPortCount"/> property,
4485 so the maximum slot number is one less than that property's value.
4486
4487 <result name="E_INVALIDARG">
4488 Invalid @a slot number.
4489 </result>
4490
4491 </desc>
4492 <param name="slot" type="unsigned long" dir="in"/>
4493 <param name="port" type="ISerialPort" dir="return"/>
4494 </method>
4495
4496 <method name="getParallelPort" const="yes">
4497 <desc>
4498 Returns the parallel port associated with the given slot.
4499 Slots are numbered sequentially, starting with zero. The total
4500 number of parallel ports per machine is defined by the
4501 <link to="ISystemProperties::parallelPortCount"/> property,
4502 so the maximum slot number is one less than that property's value.
4503
4504 <result name="E_INVALIDARG">
4505 Invalid @a slot number.
4506 </result>
4507
4508 </desc>
4509 <param name="slot" type="unsigned long" dir="in"/>
4510 <param name="port" type="IParallelPort" dir="return"/>
4511 </method>
4512
4513 <method name="getNextExtraDataKey">
4514 <desc>
4515 Returns the machine-specific extra data key name following the
4516 supplied key.
4517
4518 An error is returned if the supplied @a key does not exist. @c NULL is
4519 returned in @a nextKey if the supplied key is the last key. When
4520 supplying @c NULL for the @a key, the first key item is returned in
4521 @a nextKey (if there is any). @a nextValue is an optional parameter and
4522 if supplied, the next key's value is returned in it.
4523
4524 <result name="VBOX_E_OBJECT_NOT_FOUND">
4525 Extra data @a key not found.
4526 </result>
4527
4528 </desc>
4529 <param name="key" type="wstring" dir="in">
4530 <desc>Name of the data key to follow.</desc>
4531 </param>
4532 <param name="nextKey" type="wstring" dir="out">
4533 <desc>Name of the next data key.</desc>
4534 </param>
4535 <param name="nextValue" type="wstring" dir="out">
4536 <desc>Value of the next data key.</desc>
4537 </param>
4538 </method>
4539
4540 <method name="getExtraData">
4541 <desc>
4542 Returns associated machine-specific extra data.
4543
4544 If the requested data @a key does not exist, this function will
4545 succeed and return @c NULL in the @a value argument.
4546
4547 <result name="VBOX_E_FILE_ERROR">
4548 Settings file not accessible.
4549 </result>
4550 <result name="VBOX_E_XML_ERROR">
4551 Could not parse the settings file.
4552 </result>
4553
4554 </desc>
4555 <param name="key" type="wstring" dir="in">
4556 <desc>Name of the data key to get.</desc>
4557 </param>
4558 <param name="value" type="wstring" dir="return">
4559 <desc>Value of the requested data key.</desc>
4560 </param>
4561 </method>
4562
4563 <method name="setExtraData">
4564 <desc>
4565 Sets associated machine-specific extra data.
4566
4567 If you pass @c NULL as a key @a value, the given @a key will be
4568 deleted.
4569
4570 <note>
4571 Before performing the actual data change, this method will ask all
4572 registered callbacks using the
4573 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4574 notification for a permission. If one of the callbacks refuses the
4575 new value, the change will not be performed.
4576 </note>
4577 <note>
4578 On success, the
4579 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4580 is called to inform all registered callbacks about a successful data
4581 change.
4582 </note>
4583 <note>
4584 This method can be called outside the machine session and therefore
4585 it's a caller's responsibility to handle possible race conditions
4586 when several clients change the same key at the same time.
4587 </note>
4588
4589 <result name="VBOX_E_FILE_ERROR">
4590 Settings file not accessible.
4591 </result>
4592 <result name="VBOX_E_XML_ERROR">
4593 Could not parse the settings file.
4594 </result>
4595
4596 </desc>
4597 <param name="key" type="wstring" dir="in">
4598 <desc>Name of the data key to set.</desc>
4599 </param>
4600 <param name="value" type="wstring" dir="in">
4601 <desc>Value to assign to the key.</desc>
4602 </param>
4603 </method>
4604
4605 <method name="saveSettings">
4606 <desc>
4607 Saves any changes to machine settings made since the session
4608 has been opened or a new machine has been created, or since the
4609 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4610 For registered machines, new settings become visible to all
4611 other VirtualBox clients after successful invocation of this
4612 method.
4613 <note>
4614 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4615 notification event after the configuration has been successfully
4616 saved (only for registered machines).
4617 </note>
4618 <note>
4619 Calling this method is only valid on instances returned
4620 by <link to="ISession::machine"/> and on new machines
4621 created by <link to="IVirtualBox::createMachine"/> but not
4622 yet registered, or on unregistered machines after calling
4623 <link to="IVirtualBox::unregisterMachine"/>.
4624 </note>
4625
4626 <result name="VBOX_E_FILE_ERROR">
4627 Settings file not accessible.
4628 </result>
4629 <result name="VBOX_E_XML_ERROR">
4630 Could not parse the settings file.
4631 </result>
4632 <result name="E_ACCESSDENIED">
4633 Modification request refused.
4634 </result>
4635
4636 </desc>
4637 </method>
4638
4639 <method name="saveSettingsWithBackup">
4640 <desc>
4641 Creates a backup copy of the machine settings file (<link
4642 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4643 <link to="#saveSettings"/>.
4644
4645 Note that the backup copy is created <b>only</b> if the settings file
4646 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4647 details). Otherwise, this call is fully equivalent to
4648 <link to="#saveSettings"/> and no backup copying is done.
4649
4650 The backup copy is created in the same directory where the original
4651 settings file is located. It is given the following file name:
4652 <pre>
4653 original.xml.x.y-platform.bak
4654 </pre>
4655 where <tt>original.xml</tt> is the original settings file name
4656 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4657 format of the settings file (before auto-conversion).
4658
4659 If the given backup file already exists, this method will try to add the
4660 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4661 0 to 9) and copy it again until it succeeds. If all suffixes are
4662 occupied, or if any other copy error occurs, this method will return a
4663 failure.
4664
4665 If the copy operation succeeds, the @a bakFileName return argument will
4666 receive a full path to the created backup file (for informational
4667 purposes). Note that this will happen even if the subsequent
4668 <link to="#saveSettings"/> call performed by this method after the
4669 copy operation, fails.
4670
4671 <note>
4672 The VirtualBox API never calls this method. It is intended purely for
4673 the purposes of creating backup copies of the settings files by
4674 front-ends before saving the results of the automatically performed
4675 settings conversion to disk.
4676 </note>
4677
4678 <see>settingsFileVersion</see>
4679
4680 <result name="VBOX_E_FILE_ERROR">
4681 Settings file not accessible.
4682 </result>
4683 <result name="VBOX_E_XML_ERROR">
4684 Could not parse the settings file.
4685 </result>
4686 <result name="VBOX_E_INVALID_VM_STATE">
4687 Virtual machine is not mutable.
4688 </result>
4689 <result name="E_ACCESSDENIED">
4690 Modification request refused.
4691 </result>
4692
4693 </desc>
4694 <param name="bakFileName" type="wstring" dir="return">
4695 <desc>Full path to the created backup copy.</desc>
4696 </param>
4697 </method>
4698
4699 <method name="discardSettings">
4700 <desc>
4701 Discards any changes to the machine settings made since the session
4702 has been opened or since the last call to <link to="#saveSettings"/>
4703 or <link to="#discardSettings"/>.
4704 <note>
4705 Calling this method is only valid on instances returned
4706 by <link to="ISession::machine"/> and on new machines
4707 created by <link to="IVirtualBox::createMachine"/> or
4708 opened by <link to="IVirtualBox::openMachine"/> but not
4709 yet registered, or on unregistered machines after calling
4710 <link to="IVirtualBox::unregisterMachine"/>.
4711 </note>
4712
4713 <result name="VBOX_E_INVALID_VM_STATE">
4714 Virtual machine is not mutable.
4715 </result>
4716
4717 </desc>
4718 </method>
4719
4720 <method name="deleteSettings">
4721 <desc>
4722 Deletes the settings file of this machine from disk.
4723 The machine must not be registered in order for this operation
4724 to succeed.
4725 <note>
4726 <link to="#settingsModified"/> will return TRUE after this
4727 method successfully returns.
4728 </note>
4729 <note>
4730 Calling this method is only valid on instances returned
4731 by <link to="ISession::machine"/> and on new machines
4732 created by <link to="IVirtualBox::createMachine"/> or
4733 opened by <link to="IVirtualBox::openMachine"/> but not
4734 yet registered, or on unregistered machines after calling
4735 <link to="IVirtualBox::unregisterMachine"/>.
4736 </note>
4737 <note>
4738 The deleted machine settings file can be restored (saved again)
4739 by calling <link to="#saveSettings"/>.
4740 </note>
4741
4742 <result name="VBOX_E_INVALID_VM_STATE">
4743 Cannot delete settings of a registered machine or
4744 machine not mutable.
4745 </result>
4746 <result name="VBOX_E_IPRT_ERROR">
4747 Could not delete the settings file.
4748 </result>
4749
4750 </desc>
4751 </method>
4752
4753 <method name="export">
4754 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
4755 steps required to export VirtualBox machines to OVF.
4756 </desc>
4757
4758 <param name="appliance" type="IAppliance" dir="in">
4759 <desc>Appliance to export this machine to.</desc>
4760 </param>
4761 </method >
4762
4763 <method name="getSnapshot">
4764 <desc>
4765 Returns a snapshot of this machine with the given UUID.
4766 A <tt>null</tt> UUID can be used to obtain the first snapshot
4767 taken on this machine. This is useful if you want to traverse
4768 the whole tree of snapshots starting from the root.
4769
4770 <result name="VBOX_E_OBJECT_NOT_FOUND">
4771 Virtual machine has no snapshots or snapshot not found.
4772 </result>
4773
4774 </desc>
4775 <param name="id" type="uuid" dir="in">
4776 <desc>UUID of the snapshot to get</desc>
4777 </param>
4778 <param name="snapshot" type="ISnapshot" dir="return">
4779 <desc>Snapshot object with the given UUID.</desc>
4780 </param>
4781 </method>
4782
4783 <method name="findSnapshot">
4784 <desc>
4785 Returns a snapshot of this machine with the given name.
4786
4787 <result name="VBOX_E_OBJECT_NOT_FOUND">
4788 Virtual machine has no snapshots or snapshot not found.
4789 </result>
4790
4791 </desc>
4792 <param name="name" type="wstring" dir="in">
4793 <desc>Name of the snapshot to find</desc>
4794 </param>
4795 <param name="snapshot" type="ISnapshot" dir="return">
4796 <desc>Snapshot object with the given name.</desc>
4797 </param>
4798 </method>
4799
4800 <method name="setCurrentSnapshot">
4801 <desc>
4802 Sets the current snapshot of this machine.
4803 <note>
4804 In the current implementation, this operation is not
4805 implemented.
4806 </note>
4807 </desc>
4808 <param name="id" type="uuid" dir="in">
4809 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4810 </param>
4811 </method>
4812
4813 <method name="createSharedFolder">
4814 <desc>
4815 Creates a new permanent shared folder by associating the given logical
4816 name with the given host path, adds it to the collection of shared
4817 folders and starts sharing it. Refer to the description of
4818 <link to="ISharedFolder"/> to read more about logical names.
4819
4820 <result name="VBOX_E_OBJECT_IN_USE">
4821 Shared folder already exists.
4822 </result>
4823 <result name="VBOX_E_FILE_ERROR">
4824 Shared folder @a hostPath not accessible.
4825 </result>
4826
4827 </desc>
4828 <param name="name" type="wstring" dir="in">
4829 <desc>Unique logical name of the shared folder.</desc>
4830 </param>
4831 <param name="hostPath" type="wstring" dir="in">
4832 <desc>Full path to the shared folder in the host file system.</desc>
4833 </param>
4834 <param name="writable" type="boolean" dir="in">
4835 <desc>Whether the share is writable or readonly</desc>
4836 </param>
4837 </method>
4838
4839 <method name="removeSharedFolder">
4840 <desc>
4841 Removes the permanent shared folder with the given name previously
4842 created by <link to="#createSharedFolder"/> from the collection of
4843 shared folders and stops sharing it.
4844
4845 <result name="VBOX_E_INVALID_VM_STATE">
4846 Virtual machine is not mutable.
4847 </result>
4848 <result name="VBOX_E_OBJECT_NOT_FOUND">
4849 Shared folder @a name does not exist.
4850 </result>
4851
4852 </desc>
4853 <param name="name" type="wstring" dir="in">
4854 <desc>Logical name of the shared folder to remove.</desc>
4855 </param>
4856 </method>
4857
4858 <method name="canShowConsoleWindow">
4859 <desc>
4860 Returns @c true if the VM console process can activate the
4861 console window and bring it to foreground on the desktop of
4862 the host PC.
4863 <note>
4864 This method will fail if a session for this machine is not
4865 currently open.
4866 </note>
4867
4868 <result name="VBOX_E_INVALID_VM_STATE">
4869 Machine session is not open.
4870 </result>
4871
4872 </desc>
4873 <param name="canShow" type="boolean" dir="return">
4874 <desc>
4875 @c true if the console window can be shown and @c
4876 false otherwise.
4877 </desc>
4878 </param>
4879 </method>
4880
4881 <method name="showConsoleWindow">
4882 <desc>
4883 Activates the console window and brings it to foreground on
4884 the desktop of the host PC. Many modern window managers on
4885 many platforms implement some sort of focus stealing
4886 prevention logic, so that it may be impossible to activate
4887 a window without the help of the currently active
4888 application. In this case, this method will return a non-zero
4889 identifier that represents the top-level window of the VM
4890 console process. The caller, if it represents a currently
4891 active process, is responsible to use this identifier (in a
4892 platform-dependent manner) to perform actual window
4893 activation.
4894 <note>
4895 This method will fail if a session for this machine is not
4896 currently open.
4897 </note>
4898
4899 <result name="VBOX_E_INVALID_VM_STATE">
4900 Machine session is not open.
4901 </result>
4902
4903 </desc>
4904 <param name="winId" type="unsigned long long" dir="return">
4905 <desc>
4906 Platform-dependent identifier of the top-level VM console
4907 window, or zero if this method has performed all actions
4908 necessary to implement the <i>show window</i> semantics for
4909 the given platform and/or VirtualBox front-end.
4910 </desc>
4911 </param>
4912 </method>
4913
4914 <method name="getGuestProperty">
4915 <desc>
4916 Reads an entry from the machine's guest property store.
4917
4918 <result name="VBOX_E_INVALID_VM_STATE">
4919 Machine session is not open.
4920 </result>
4921
4922 </desc>
4923 <param name="name" type="wstring" dir="in">
4924 <desc>
4925 The name of the property to read.
4926 </desc>
4927 </param>
4928 <param name="value" type="wstring" dir="out">
4929 <desc>
4930 The value of the property. If the property does not exist then this
4931 will be empty.
4932 </desc>
4933 </param>
4934 <param name="timestamp" type="unsigned long long" dir="out">
4935 <desc>
4936 The time at which the property was last modified, as seen by the
4937 server process.
4938 </desc>
4939 </param>
4940 <param name="flags" type="wstring" dir="out">
4941 <desc>
4942 Additional property parameters, passed as a comma-separated list of
4943 "name=value" type entries.
4944 </desc>
4945 </param>
4946 </method>
4947
4948 <method name="getGuestPropertyValue">
4949 <desc>
4950 Reads a value from the machine's guest property store.
4951
4952 <result name="VBOX_E_INVALID_VM_STATE">
4953 Machine session is not open.
4954 </result>
4955
4956 </desc>
4957 <param name="property" type="wstring" dir="in">
4958 <desc>
4959 The name of the property to read.
4960 </desc>
4961 </param>
4962 <param name="value" type="wstring" dir="return">
4963 <desc>
4964 The value of the property. If the property does not exist then this
4965 will be empty.
4966 </desc>
4967 </param>
4968 </method>
4969
4970 <method name="getGuestPropertyTimestamp">
4971 <desc>
4972 Reads a property timestamp from the machine's guest property store.
4973
4974 <result name="VBOX_E_INVALID_VM_STATE">
4975 Machine session is not open.
4976 </result>
4977
4978 </desc>
4979 <param name="property" type="wstring" dir="in">
4980 <desc>
4981 The name of the property to read.
4982 </desc>
4983 </param>
4984 <param name="value" type="unsigned long long" dir="return">
4985 <desc>
4986 The timestamp. If the property does not exist then this will be
4987 empty.
4988 </desc>
4989 </param>
4990 </method>
4991
4992 <method name="setGuestProperty">
4993 <desc>
4994 Sets, changes or deletes an entry in the machine's guest property
4995 store.
4996
4997 <result name="E_ACCESSDENIED">
4998 Property cannot be changed.
4999 </result>
5000 <result name="E_INVALIDARG">
5001 Invalid @a flags.
5002 </result>
5003 <result name="VBOX_E_INVALID_VM_STATE">
5004 Virtual machine is not mutable or session not open.
5005 </result>
5006 <result name="VBOX_E_INVALID_OBJECT_STATE">
5007 Cannot set transient property when machine not running.
5008 </result>
5009
5010 </desc>
5011 <param name="property" type="wstring" dir="in">
5012 <desc>
5013 The name of the property to set, change or delete.
5014 </desc>
5015 </param>
5016 <param name="value" type="wstring" dir="in">
5017 <desc>
5018 The new value of the property to set, change or delete. If the
5019 property does not yet exist and value is non-empty, it will be
5020 created. If the value is empty, the key will be deleted if it
5021 exists.
5022 </desc>
5023 </param>
5024 <param name="flags" type="wstring" dir="in">
5025 <desc>
5026 Additional property parameters, passed as a comma-separated list of
5027 "name=value" type entries.
5028 </desc>
5029 </param>
5030 </method>
5031
5032 <method name="setGuestPropertyValue">
5033 <desc>
5034 Sets, changes or deletes a value in the machine's guest property
5035 store. The flags field will be left unchanged or created empty for a
5036 new property.
5037
5038 <result name="E_ACCESSDENIED">
5039 Property cannot be changed.
5040 </result>
5041 <result name="VBOX_E_INVALID_VM_STATE">
5042 Virtual machine is not mutable or session not open.
5043 </result>
5044 <result name="VBOX_E_INVALID_OBJECT_STATE">
5045 Cannot set transient property when machine not running.
5046 </result>
5047 </desc>
5048
5049 <param name="property" type="wstring" dir="in">
5050 <desc>
5051 The name of the property to set, change or delete.
5052 </desc>
5053 </param>
5054 <param name="value" type="wstring" dir="in">
5055 <desc>
5056 The new value of the property to set, change or delete. If the
5057 property does not yet exist and value is non-empty, it will be
5058 created. If value is empty, the property will be deleted if it
5059 exists.
5060 </desc>
5061 </param>
5062 </method>
5063
5064 <method name="enumerateGuestProperties">
5065 <desc>
5066 Return a list of the guest properties matching a set of patterns along
5067 with their values, time stamps and flags.
5068 </desc>
5069 <param name="patterns" type="wstring" dir="in">
5070 <desc>
5071 The patterns to match the properties against, separated by '|'
5072 characters. If this is empty or NULL, all properties will match.
5073 </desc>
5074 </param>
5075 <param name="name" type="wstring" dir="out" safearray="yes">
5076 <desc>
5077 The names of the properties returned.
5078 </desc>
5079 </param>
5080 <param name="value" type="wstring" dir="out" safearray="yes">
5081 <desc>
5082 The values of the properties returned. The array entries match the
5083 corresponding entries in the @a name array.
5084 </desc>
5085 </param>
5086 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5087 <desc>
5088 The time stamps of the properties returned. The array entries match
5089 the corresponding entries in the @a name array.
5090 </desc>
5091 </param>
5092 <param name="flags" type="wstring" dir="out" safearray="yes">
5093 <desc>
5094 The flags of the properties returned. The array entries match the
5095 corresponding entries in the @a name array.
5096 </desc>
5097 </param>
5098 </method>
5099</interface>
5100
5101 <!--
5102 // IConsole
5103 /////////////////////////////////////////////////////////////////////////
5104 -->
5105
5106 <interface
5107 name="IConsoleCallback" extends="$unknown"
5108 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5109 wsmap="suppress"
5110 >
5111
5112 <method name="onMousePointerShapeChange">
5113 <desc>
5114 Notification when the guest mouse pointer shape has
5115 changed. The new shape data is given.
5116 </desc>
5117 <param name="visible" type="boolean" dir="in">
5118 <desc>
5119 Flag whether the pointer is visible.
5120 </desc>
5121 </param>
5122 <param name="alpha" type="boolean" dir="in">
5123 <desc>
5124 Flag whether the pointer has an alpha channel.
5125 </desc>
5126 </param>
5127 <param name="xHot" type="unsigned long" dir="in">
5128 <desc>
5129 The pointer hot spot x coordinate.
5130 </desc>
5131 </param>
5132 <param name="yHot" type="unsigned long" dir="in">
5133 <desc>
5134 The pointer hot spot y coordinate.
5135 </desc>
5136 </param>
5137 <param name="width" type="unsigned long" dir="in">
5138 <desc>
5139 Width of the pointer shape in pixels.
5140 </desc>
5141 </param>
5142 <param name="height" type="unsigned long" dir="in">
5143 <desc>
5144 Height of the pointer shape in pixels.
5145 </desc>
5146 </param>
5147 <param name="shape" type="octet" mod="ptr" dir="in">
5148 <desc>
5149 Address of the shape buffer.
5150
5151 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5152 followed by a 32-bpp XOR (color) mask.
5153
5154 For pointers without alpha channel the XOR mask pixels are 32
5155 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5156 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5157
5158 An AND mask is used for pointers with alpha channel, so if the
5159 callback does not support alpha, the pointer could be
5160 displayed as a normal color pointer.
5161
5162 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5163 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5164 height</tt>. The padding bits at the end of each scanline are
5165 undefined.
5166
5167 The XOR mask follows the AND mask on the next 4-byte aligned
5168 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5169 Bytes in the gap between the AND and the XOR mask are undefined.
5170 The XOR mask scanlines have no gap between them and the size of
5171 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5172
5173 <note>
5174 If @a shape is 0, only the pointer visibility is changed.
5175 </note>
5176 </desc>
5177 </param>
5178 </method>
5179
5180 <method name="onMouseCapabilityChange">
5181 <desc>
5182 Notification when the mouse capabilities reported by the
5183 guest have changed. The new capabilities are passed.
5184 </desc>
5185 <param name="supportsAbsolute" type="boolean" dir="in"/>
5186 <param name="needsHostCursor" type="boolean" dir="in"/>
5187 </method>
5188
5189 <method name="onKeyboardLedsChange">
5190 <desc>
5191 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5192 to alter the state of the keyboard LEDs.
5193 </desc>
5194 <param name="numLock" type="boolean" dir="in"/>
5195 <param name="capsLock" type="boolean" dir="in"/>
5196 <param name="scrollLock" type="boolean" dir="in"/>
5197 </method>
5198
5199 <method name="onStateChange">
5200 <desc>
5201 Notification when the execution state of the machine has changed.
5202 The new state will be given.
5203 </desc>
5204 <param name="state" type="MachineState" dir="in"/>
5205 </method>
5206
5207 <method name="onAdditionsStateChange">
5208 <desc>
5209 Notification when a Guest Additions property changes.
5210 Interested callees should query IGuest attributes to
5211 find out what has changed.
5212 </desc>
5213 </method>
5214
5215 <method name="onDVDDriveChange">
5216 <desc>
5217 Notification when a property of the
5218 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5219 Interested callees should use IDVDDrive methods to find out what has
5220 changed.
5221 </desc>
5222 </method>
5223
5224 <method name="onFloppyDriveChange">
5225 <desc>
5226 Notification when a property of the
5227 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5228 Interested callees should use IFloppyDrive methods to find out what
5229 has changed.
5230 </desc>
5231 </method>
5232
5233 <method name="onNetworkAdapterChange">
5234 <desc>
5235 Notification when a property of one of the
5236 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5237 changes. Interested callees should use INetworkAdapter methods and
5238 attributes to find out what has changed.
5239 </desc>
5240 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5241 <desc>Network adapter that is subject to change.</desc>
5242 </param>
5243 </method>
5244
5245 <method name="onSerialPortChange">
5246 <desc>
5247 Notification when a property of one of the
5248 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5249 Interested callees should use ISerialPort methods and attributes
5250 to find out what has changed.
5251 </desc>
5252 <param name="serialPort" type="ISerialPort" dir="in">
5253 <desc>Serial port that is subject to change.</desc>
5254 </param>
5255 </method>
5256
5257 <method name="onParallelPortChange">
5258 <desc>
5259 Notification when a property of one of the
5260 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5261 changes. Interested callees should use ISerialPort methods and
5262 attributes to find out what has changed.
5263 </desc>
5264 <param name="parallelPort" type="IParallelPort" dir="in">
5265 <desc>Parallel port that is subject to change.</desc>
5266 </param>
5267 </method>
5268
5269 <method name="onStorageControllerChange">
5270 <desc>
5271 Notification when a property of one of the
5272 virtual <link to="IMachine::getStorageControllers">storage controllers</link>
5273 changes. Interested callees should use query the corresponding collections
5274 to find out what has changed.
5275 </desc>
5276 </method>
5277
5278 <method name="onVRDPServerChange">
5279 <desc>
5280 Notification when a property of the
5281 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5282 Interested callees should use IVRDPServer methods and attributes to
5283 find out what has changed.
5284 </desc>
5285 </method>
5286
5287 <method name="onUSBControllerChange">
5288 <desc>
5289 Notification when a property of the virtual
5290 <link to="IMachine::USBController">USB controller</link> changes.
5291 Interested callees should use IUSBController methods and attributes to
5292 find out what has changed.
5293 </desc>
5294 </method>
5295
5296 <method name="onUSBDeviceStateChange">
5297 <desc>
5298 Notification when a USB device is attached to or detached from
5299 the virtual USB controller.
5300
5301 This notification is sent as a result of the indirect
5302 request to attach the device because it matches one of the
5303 machine USB filters, or as a result of the direct request
5304 issued by <link to="IConsole::attachUSBDevice"/> or
5305 <link to="IConsole::detachUSBDevice"/>.
5306
5307 This notification is sent in case of both a succeeded and a
5308 failed request completion. When the request succeeds, the
5309 @a error parameter is @c null, and the given device has been
5310 already added to (when @a attached is @c true) or removed from
5311 (when @a attached is @c false) the collection represented by
5312 <link to="IConsole::USBDevices"/>. On failure, the collection
5313 doesn't change and the @a error parameter represents the error
5314 message describing the failure.
5315
5316 </desc>
5317 <param name="device" type="IUSBDevice" dir="in">
5318 <desc>Device that is subject to state change.</desc>
5319 </param>
5320 <param name="attached" type="boolean" dir="in">
5321 <desc>
5322 <tt>true</tt> if the device was attached
5323 and <tt>false</tt> otherwise.
5324 </desc>
5325 </param>
5326 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5327 <desc>
5328 <tt>null</tt> on success or an error message object on
5329 failure.
5330 </desc>
5331 </param>
5332 </method>
5333
5334 <method name="onSharedFolderChange">
5335 <desc>
5336 Notification when a shared folder is added or removed.
5337 The @a scope argument defines one of three scopes:
5338 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5339 (<link to="Scope_Global">Global</link>),
5340 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5341 the machine (<link to="Scope_Machine">Machine</link>) or <link
5342 to="IConsole::sharedFolders">transient shared folders</link> of the
5343 machine (<link to="Scope_Session">Session</link>). Interested callees
5344 should use query the corresponding collections to find out what has
5345 changed.
5346 </desc>
5347 <param name="scope" type="Scope" dir="in">
5348 <desc>Scope of the notification.</desc>
5349 </param>
5350 </method>
5351
5352 <method name="onRuntimeError">
5353 <desc>
5354 Notification when an error happens during the virtual
5355 machine execution.
5356
5357 There are three kinds of runtime errors:
5358 <ul>
5359 <li><i>fatal</i></li>
5360 <li><i>non-fatal with retry</i></li>
5361 <li><i>non-fatal warnings</i></li>
5362 </ul>
5363
5364 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5365 to <tt>true</tt>. In case of fatal errors, the virtual machine
5366 execution is always paused before calling this notification, and
5367 the notification handler is supposed either to immediately save
5368 the virtual machine state using <link to="IConsole::saveState"/>
5369 or power it off using <link to="IConsole::powerDown"/>.
5370 Resuming the execution can lead to unpredictable results.
5371
5372 <b>Non-fatal</b> errors and warnings are indicated by the
5373 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5374 is in the Paused state by the time the error notification is
5375 received, it means that the user can <i>try to resume</i> the machine
5376 execution after attempting to solve the problem that caused the
5377 error. In this case, the notification handler is supposed
5378 to show an appropriate message to the user (depending on the
5379 value of the @a id parameter) that offers several actions such
5380 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5381 wants to retry, the notification handler should continue
5382 the machine execution using the <link to="IConsole::resume"/>
5383 call. If the machine execution is not Paused during this
5384 notification, then it means this notification is a <i>warning</i>
5385 (for example, about a fatal condition that can happen very soon);
5386 no immediate action is required from the user, the machine
5387 continues its normal execution.
5388
5389 Note that in either case the notification handler
5390 <b>must not</b> perform any action directly on a thread
5391 where this notification is called. Everything it is allowed to
5392 do is to post a message to another thread that will then talk
5393 to the user and take the corresponding action.
5394
5395 Currently, the following error identifiers are known:
5396 <ul>
5397 <li><tt>"HostMemoryLow"</tt></li>
5398 <li><tt>"HostAudioNotResponding"</tt></li>
5399 <li><tt>"VDIStorageFull"</tt></li>
5400 </ul>
5401
5402 <note>
5403 This notification is not designed to be implemented by
5404 more than one callback at a time. If you have multiple
5405 IConsoleCallback instances registered on the given
5406 IConsole object, make sure you simply do nothing but
5407 return @c S_OK from all but one of them that does actual
5408 user notification and performs necessary actions.
5409 </note>
5410
5411 </desc>
5412 <param name="fatal" type="boolean" dir="in">
5413 <desc>Whether the error is fatal or not</desc>
5414 </param>
5415 <param name="id" type="wstring" dir="in">
5416 <desc>Error identifier</desc>
5417 </param>
5418 <param name="message" type="wstring" dir="in">
5419 <desc>Optional error message</desc>
5420 </param>
5421 </method>
5422
5423 <method name="onCanShowWindow">
5424 <desc>
5425 Notification when a call to
5426 <link to="IMachine::canShowConsoleWindow"/> is made by a
5427 front-end to check if a subsequent call to
5428 <link to="IMachine::showConsoleWindow"/> can succeed.
5429
5430 The callee should give an answer appropriate to the current
5431 machine state in the @a canShow argument. This answer must
5432 remain valid at least until the next
5433 <link to="IConsole::state">machine state</link> change.
5434
5435 <note>
5436 This notification is not designed to be implemented by
5437 more than one callback at a time. If you have multiple
5438 IConsoleCallback instances registered on the given
5439 IConsole object, make sure you simply do nothing but
5440 return @c true and @c S_OK from all but one of them that
5441 actually manages console window activation.
5442 </note>
5443 </desc>
5444 <param name="canShow" type="boolean" dir="return">
5445 <desc>
5446 @c true if the console window can be shown and @c
5447 false otherwise.
5448 </desc>
5449 </param>
5450 </method>
5451
5452 <method name="onShowWindow">
5453 <desc>
5454 Notification when a call to
5455 <link to="IMachine::showConsoleWindow"/>
5456 requests the console window to be activated and brought to
5457 foreground on the desktop of the host PC.
5458
5459 This notification should cause the VM console process to
5460 perform the requested action as described above. If it is
5461 impossible to do it at a time of this notification, this
5462 method should return a failure.
5463
5464 Note that many modern window managers on many platforms
5465 implement some sort of focus stealing prevention logic, so
5466 that it may be impossible to activate a window without the
5467 help of the currently active application (which is supposedly
5468 an initiator of this notification). In this case, this method
5469 must return a non-zero identifier that represents the
5470 top-level window of the VM console process. The caller, if it
5471 represents a currently active process, is responsible to use
5472 this identifier (in a platform-dependent manner) to perform
5473 actual window activation.
5474
5475 This method must set @a winId to zero if it has performed all
5476 actions necessary to complete the request and the console
5477 window is now active and in foreground, to indicate that no
5478 further action is required on the caller's side.
5479
5480 <note>
5481 This notification is not designed to be implemented by
5482 more than one callback at a time. If you have multiple
5483 IConsoleCallback instances registered on the given
5484 IConsole object, make sure you simply do nothing but
5485 return @c S_OK from all but one of them that actually
5486 manages console window activation.
5487 </note>
5488 </desc>
5489 <param name="winId" type="unsigned long long" dir="return">
5490 <desc>
5491 Platform-dependent identifier of the top-level VM console
5492 window, or zero if this method has performed all actions
5493 necessary to implement the <i>show window</i> semantics for
5494 the given platform and/or this VirtualBox front-end.
5495 </desc>
5496 </param>
5497 </method>
5498
5499 </interface>
5500
5501 <interface
5502 name="IRemoteDisplayInfo" extends="$unknown"
5503 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5504 wsmap="struct"
5505 >
5506 <desc>
5507 Contains information about the remote display (VRDP) capabilities and status.
5508 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5509 </desc>
5510
5511 <attribute name="active" type="boolean" readonly="yes">
5512 <desc>
5513 Whether the remote display connection is active.
5514 </desc>
5515 </attribute>
5516
5517 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5518 <desc>
5519 How many times a client connected.
5520 </desc>
5521 </attribute>
5522
5523 <attribute name="beginTime" type="long long" readonly="yes">
5524 <desc>
5525 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5526 </desc>
5527 </attribute>
5528
5529 <attribute name="endTime" type="long long" readonly="yes">
5530 <desc>
5531 When the last connection was terminated or the current time, if
5532 connection is still active, in milliseconds since 1970-01-01 UTC.
5533 </desc>
5534 </attribute>
5535
5536 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5537 <desc>
5538 How many bytes were sent in last or current, if still active, connection.
5539 </desc>
5540 </attribute>
5541
5542 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5543 <desc>
5544 How many bytes were sent in all connections.
5545 </desc>
5546 </attribute>
5547
5548 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5549 <desc>
5550 How many bytes were received in last or current, if still active, connection.
5551 </desc>
5552 </attribute>
5553
5554 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5555 <desc>
5556 How many bytes were received in all connections.
5557 </desc>
5558 </attribute>
5559
5560 <attribute name="user" type="wstring" readonly="yes">
5561 <desc>
5562 Login user name supplied by the client.
5563 </desc>
5564 </attribute>
5565
5566 <attribute name="domain" type="wstring" readonly="yes">
5567 <desc>
5568 Login domain name supplied by the client.
5569 </desc>
5570 </attribute>
5571
5572 <attribute name="clientName" type="wstring" readonly="yes">
5573 <desc>
5574 The client name supplied by the client.
5575 </desc>
5576 </attribute>
5577
5578 <attribute name="clientIP" type="wstring" readonly="yes">
5579 <desc>
5580 The IP address of the client.
5581 </desc>
5582 </attribute>
5583
5584 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5585 <desc>
5586 The client software version number.
5587 </desc>
5588 </attribute>
5589
5590 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5591 <desc>
5592 Public key exchange method used when connection was established.
5593 Values: 0 - RDP4 public key exchange scheme.
5594 1 - X509 certificates were sent to client.
5595 </desc>
5596 </attribute>
5597
5598 </interface>
5599
5600 <interface
5601 name="IConsole" extends="$unknown"
5602 uuid="9511bc54-15ee-4ddf-808e-472aba03809c"
5603 wsmap="managed"
5604 >
5605 <desc>
5606 The IConsole interface represents an interface to control virtual
5607 machine execution.
5608
5609 The console object that implements the IConsole interface is obtained
5610 from a session object after the session for the given machine has been
5611 opened using one of <link to="IVirtualBox::openSession"/>,
5612 <link to="IVirtualBox::openRemoteSession"/> or
5613 <link to="IVirtualBox::openExistingSession"/> methods.
5614
5615 Methods of the IConsole interface allow the caller to query the current
5616 virtual machine execution state, pause the machine or power it down, save
5617 the machine state or take a snapshot, attach and detach removable media
5618 and so on.
5619
5620 <see>ISession</see>
5621 </desc>
5622
5623 <attribute name="machine" type="IMachine" readonly="yes">
5624 <desc>
5625 Machine object this console is sessioned with.
5626 <note>
5627 This is a convenience property, it has the same value as
5628 <link to="ISession::machine"/> of the corresponding session
5629 object.
5630 </note>
5631 </desc>
5632 </attribute>
5633
5634 <attribute name="state" type="MachineState" readonly="yes">
5635 <desc>
5636 Current execution state of the machine.
5637 <note>
5638 This property always returns the same value as the corresponding
5639 property of the IMachine object this console is sessioned with.
5640 For the process that owns (executes) the VM, this is the
5641 preferable way of querying the VM state, because no IPC
5642 calls are made.
5643 </note>
5644 </desc>
5645 </attribute>
5646
5647 <attribute name="guest" type="IGuest" readonly="yes">
5648 <desc>Guest object.</desc>
5649 </attribute>
5650
5651 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5652 <desc>
5653 Virtual keyboard object.
5654 <note>
5655 If the machine is not running, any attempt to use
5656 the returned object will result in an error.
5657 </note>
5658 </desc>
5659 </attribute>
5660
5661 <attribute name="mouse" type="IMouse" readonly="yes">
5662 <desc>
5663 Virtual mouse object.
5664 <note>
5665 If the machine is not running, any attempt to use
5666 the returned object will result in an error.
5667 </note>
5668 </desc>
5669 </attribute>
5670
5671 <attribute name="display" type="IDisplay" readonly="yes">
5672 <desc>Virtual display object.
5673 <note>
5674 If the machine is not running, any attempt to use
5675 the returned object will result in an error.
5676 </note>
5677 </desc>
5678 </attribute>
5679
5680 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5681 <desc>Debugging interface.</desc>
5682 </attribute>
5683
5684 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
5685 <desc>
5686 Collection of USB devices currently attached to the virtual
5687 USB controller.
5688 <note>
5689 The collection is empty if the machine is not running.
5690 </note>
5691 </desc>
5692 </attribute>
5693
5694 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
5695 <desc>
5696 List of USB devices currently attached to the remote VRDP client.
5697 Once a new device is physically attached to the remote host computer,
5698 it appears in this list and remains there until detached.
5699 </desc>
5700 </attribute>
5701
5702 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5703 <desc>
5704 Collection of shared folders for the current session. These folders
5705 are called transient shared folders because they are available to the
5706 guest OS running inside the associated virtual machine only for the
5707 duration of the session (as opposed to
5708 <link to="IMachine::sharedFolders"/> which represent permanent shared
5709 folders). When the session is closed (e.g. the machine is powered down),
5710 these folders are automatically discarded.
5711
5712 New shared folders are added to the collection using
5713 <link to="#createSharedFolder"/>. Existing shared folders can be
5714 removed using <link to="#removeSharedFolder"/>.
5715 </desc>
5716 </attribute>
5717
5718 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5719 <desc>
5720 Interface that provides information on Remote Display (VRDP) connection.
5721 </desc>
5722 </attribute>
5723
5724 <method name="powerUp">
5725 <desc>
5726 Starts the virtual machine execution using the current machine
5727 state (that is, its current execution state, current settings and
5728 current hard disks).
5729
5730 If the machine is powered off or aborted, the execution will
5731 start from the beginning (as if the real hardware were just
5732 powered on).
5733
5734 If the machine is in the <link to="MachineState_Saved"/> state,
5735 it will continue its execution the point where the state has
5736 been saved.
5737
5738 <note>
5739 Unless you are trying to write a new VirtualBox front-end that
5740 performs direct machine execution (like the VirtualBox or VBoxSDL
5741 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5742 session opened by <link to="IVirtualBox::openSession"/> and use this
5743 session only to change virtual machine settings. If you simply want to
5744 start virtual machine execution using one of the existing front-ends
5745 (for example the VirtualBox GUI or headless server), simply use
5746 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5747 power up the machine automatically for you.
5748 </note>
5749
5750 <see>#saveState</see>
5751 <result name="VBOX_E_INVALID_VM_STATE">
5752 Virtual machine already running.
5753 </result>
5754 <result name="VBOX_E_HOST_ERROR">
5755 Host interface does not exist or name not set.
5756 </result>
5757 <result name="VBOX_E_FILE_ERROR">
5758 Invalid saved state file.
5759 </result>
5760 </desc>
5761 <param name="progress" type="IProgress" dir="return">
5762 <desc>Progress object to track the operation completion.</desc>
5763 </param>
5764 </method>
5765
5766 <method name="powerUpPaused">
5767 <desc>
5768 Identical to powerUp except that the VM will enter the
5769 <link to="MachineState_Paused"/> state, instead of
5770 <link to="MachineState_Running"/>.
5771
5772 <see>#powerUp</see>
5773 <result name="VBOX_E_INVALID_VM_STATE">
5774 Virtual machine already running.
5775 </result>
5776 <result name="VBOX_E_HOST_ERROR">
5777 Host interface does not exist or name not set.
5778 </result>
5779 <result name="VBOX_E_FILE_ERROR">
5780 Invalid saved state file.
5781 </result>
5782 </desc>
5783 <param name="progress" type="IProgress" dir="return">
5784 <desc>Progress object to track the operation completion.</desc>
5785 </param>
5786 </method>
5787
5788 <method name="powerDown">
5789 <desc>
5790 Stops the virtual machine execution.
5791 After this operation completes, the machine will go to the
5792 PoweredOff state.
5793
5794 @deprecated This method will be removed in VirtualBox 2.1 where the
5795 powerDownAsync() method will take its name. Do not use this method in
5796 the code.
5797 <result name="VBOX_E_INVALID_VM_STATE">
5798 Virtual machine must be Running, Paused or Stuck to be powered down.
5799 </result>
5800 <result name="VBOX_E_VM_ERROR">
5801 Unable to power off or destroy virtual machine.
5802 </result>
5803 </desc>
5804 </method>
5805
5806 <method name="powerDownAsync">
5807 <desc>
5808 Initiates the power down procedure to stop the virtual machine
5809 execution.
5810
5811 The completion of the power down procedure is tracked using the returned
5812 IProgress object. After the operation is complete, the machine will go
5813 to the PoweredOff state.
5814
5815 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5816 where the original powerDown() method will be removed. You will need to
5817 rename "powerDownAsync" to "powerDown" in your sources to make them
5818 build with version 2.1.
5819 <result name="VBOX_E_INVALID_VM_STATE">
5820 Virtual machine must be Running, Paused or Stuck to be powered down.
5821 </result>
5822 </desc>
5823 <param name="progress" type="IProgress" dir="return">
5824 <desc>Progress object to track the operation completion.</desc>
5825 </param>
5826 </method>
5827
5828 <method name="reset">
5829 <desc>Resets the virtual machine.
5830 <result name="VBOX_E_INVALID_VM_STATE">
5831 Virtual machine not in Running state.
5832 </result>
5833 <result name="VBOX_E_VM_ERROR">
5834 Virtual machine error in reset operation.
5835 </result>
5836 </desc>
5837 </method>
5838
5839 <method name="pause">
5840 <desc>Pauses the virtual machine execution.
5841 <result name="VBOX_E_INVALID_VM_STATE">
5842 Virtual machine not in Running state.
5843 </result>
5844 <result name="VBOX_E_VM_ERROR">
5845 Virtual machine error in suspend operation.
5846 </result>
5847 </desc>
5848 </method>
5849
5850 <method name="resume">
5851 <desc>Resumes the virtual machine execution.
5852 <result name="VBOX_E_INVALID_VM_STATE">
5853 Virtual machine not in Paused state.
5854 </result>
5855 <result name="VBOX_E_VM_ERROR">
5856 Virtual machine error in resume operation.
5857 </result>
5858 </desc>
5859 </method>
5860
5861 <method name="powerButton">
5862 <desc>Sends the ACPI power button event to the guest.
5863 <result name="VBOX_E_INVALID_VM_STATE">
5864 Virtual machine not in Running state.
5865 </result>
5866 <result name="VBOX_E_PDM_ERROR">
5867 Controlled power off failed.
5868 </result>
5869 </desc>
5870 </method>
5871
5872 <method name="sleepButton">
5873 <desc>Sends the ACPI sleep button event to the guest.
5874 <result name="VBOX_E_INVALID_VM_STATE">
5875 Virtual machine not in Running state.
5876 </result>
5877 <result name="VBOX_E_PDM_ERROR">
5878 Sending sleep button event failed.
5879 </result>
5880 </desc>
5881 </method>
5882
5883 <method name="getPowerButtonHandled">
5884 <desc>Checks if the last power button event was handled by guest.
5885 <result name="VBOX_E_PDM_ERROR">
5886 Checking if the event was handled by the guest OS failed.
5887 </result>
5888 </desc>
5889 <param name="handled" type="boolean" dir="return"/>
5890 </method>
5891
5892 <method name="getGuestEnteredACPIMode">
5893 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5894 G1 (sleeping). If this method returns false, the guest will
5895 most likely not respond to external ACPI events.
5896 <result name="VBOX_E_INVALID_VM_STATE">
5897 Virtual machine not in Running state.
5898 </result>
5899 </desc>
5900 <param name="entered" type="boolean" dir="return"/>
5901 </method>
5902
5903 <method name="saveState">
5904 <desc>
5905 Saves the current execution state of a running virtual machine
5906 and stops its execution.
5907
5908 After this operation completes, the machine will go to the
5909 Saved state. Next time it is powered up, this state will
5910 be restored and the machine will continue its execution from
5911 the place where it was saved.
5912
5913 This operation differs from taking a snapshot to the effect
5914 that it doesn't create new differencing hard disks. Also, once
5915 the machine is powered up from the state saved using this method,
5916 the saved state is deleted, so it will be impossible to return
5917 to this state later.
5918
5919 <note>
5920 On success, this method implicitly calls
5921 <link to="IMachine::saveSettings"/> to save all current machine
5922 settings (including runtime changes to the DVD drive, etc.).
5923 Together with the impossibility to change any VM settings when it is
5924 in the Saved state, this guarantees adequate hardware
5925 configuration of the machine when it is restored from the saved
5926 state file.
5927 </note>
5928
5929 <note>
5930 The machine must be in the Running or Paused state, otherwise
5931 the operation will fail.
5932 </note>
5933 <result name="VBOX_E_INVALID_VM_STATE">
5934 Virtual machine state neither Running nor Paused.
5935 </result>
5936 <result name="VBOX_E_FILE_ERROR">
5937 Failed to create directory for saved state file.
5938 </result>
5939
5940 <see><link to="#takeSnapshot"/></see>
5941 </desc>
5942 <param name="progress" type="IProgress" dir="return">
5943 <desc>Progress object to track the operation completion.</desc>
5944 </param>
5945 </method>
5946
5947 <method name="adoptSavedState">
5948 <desc>
5949 Associates the given saved state file to the virtual machine.
5950
5951 On success, the machine will go to the Saved state. Next time it is
5952 powered up, it will be restored from the adopted saved state and
5953 continue execution from the place where the saved state file was
5954 created.
5955
5956 The specified saved state file path may be absolute or relative to the
5957 folder the VM normally saves the state to (usually,
5958 <link to="IMachine::snapshotFolder"/>).
5959
5960 <note>
5961 It's a caller's responsibility to make sure the given saved state
5962 file is compatible with the settings of this virtual machine that
5963 represent its virtual hardware (memory size, hard disk configuration
5964 etc.). If there is a mismatch, the behavior of the virtual machine
5965 is undefined.
5966 </note>
5967 <result name="VBOX_E_INVALID_VM_STATE">
5968 Virtual machine state neither PoweredOff nor Aborted.
5969 </result>
5970 </desc>
5971 <param name="savedStateFile" type="wstring" dir="in">
5972 <desc>Path to the saved state file to adopt.</desc>
5973 </param>
5974 </method>
5975
5976 <method name="discardSavedState">
5977 <desc>
5978 Discards (deletes) the saved state of the virtual machine
5979 previously created by <link to="#saveState"/>. Next time the
5980 machine is powered up, a clean boot will occur.
5981 <note>
5982 This operation is equivalent to resetting or powering off
5983 the machine without doing a proper shutdown in the guest OS.
5984 </note>
5985 <result name="VBOX_E_INVALID_VM_STATE">
5986 Virtual machine not in state Saved.
5987 </result>
5988 </desc>
5989 </method>
5990
5991 <method name="getDeviceActivity">
5992 <desc>
5993 Gets the current activity type of a given device or device group.
5994 <result name="E_INVALIDARG">
5995 Invalid device type.
5996 </result>
5997 </desc>
5998 <param name="type" type="DeviceType" dir="in"/>
5999 <param name="activity" type="DeviceActivity" dir="return"/>
6000 </method>
6001
6002 <method name="attachUSBDevice">
6003 <desc>
6004 Attaches a host USB device with the given UUID to the
6005 USB controller of the virtual machine.
6006
6007 The device needs to be in one of the following states:
6008 <link to="USBDeviceState_Busy"/>,
6009 <link to="USBDeviceState_Available"/> or
6010 <link to="USBDeviceState_Held"/>,
6011 otherwise an error is immediately returned.
6012
6013 When the device state is
6014 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6015 be returned if the host computer refuses to release it for some reason.
6016
6017 <see>IUSBController::deviceFilters, USBDeviceState</see>
6018 <result name="VBOX_E_INVALID_VM_STATE">
6019 Virtual machine state neither Running nor Paused.
6020 </result>
6021 <result name="VBOX_E_PDM_ERROR">
6022 Virtual machine does not have a USB controller.
6023 </result>
6024 </desc>
6025 <param name="id" type="uuid" dir="in">
6026 <desc>UUID of the host USB device to attach.</desc>
6027 </param>
6028 </method>
6029
6030 <method name="detachUSBDevice">
6031 <desc>
6032 Detaches an USB device with the given UUID from the USB controller
6033 of the virtual machine.
6034
6035 After this method succeeds, the VirtualBox server re-initiates
6036 all USB filters as if the device were just physically attached
6037 to the host, but filters of this machine are ignored to avoid
6038 a possible automatic re-attachment.
6039
6040 <see>IUSBController::deviceFilters, USBDeviceState</see>
6041
6042 <result name="VBOX_E_PDM_ERROR">
6043 Virtual machine does not have a USB controller.
6044 </result>
6045 <result name="E_INVALIDARG">
6046 USB device not attached to this virtual machine.
6047 </result>
6048 </desc>
6049 <param name="id" type="uuid" dir="in">
6050 <desc>UUID of the USB device to detach.</desc>
6051 </param>
6052 <param name="device" type="IUSBDevice" dir="return">
6053 <desc>Detached USB device.</desc>
6054 </param>
6055 </method>
6056
6057 <method name="findUSBDeviceByAddress">
6058 <desc>
6059 Searches for a USB device with the given host address.
6060
6061 <result name="VBOX_E_OBJECT_NOT_FOUND">
6062 Given @c name does not correspond to any USB device.
6063 </result>
6064
6065 <see>IUSBDevice::address</see>
6066 </desc>
6067 <param name="name" type="wstring" dir="in">
6068 <desc>
6069 Address of the USB device (as assigned by the host) to
6070 search for.
6071 </desc>
6072 </param>
6073 <param name="device" type="IUSBDevice" dir="return">
6074 <desc>Found USB device object.</desc>
6075 </param>
6076 </method>
6077
6078 <method name="findUSBDeviceById">
6079 <desc>
6080 Searches for a USB device with the given UUID.
6081
6082 <result name="VBOX_E_OBJECT_NOT_FOUND">
6083 Given @c id does not correspond to any USB device.
6084 </result>
6085
6086 <see>IUSBDevice::id</see>
6087 </desc>
6088 <param name="id" type="uuid" dir="in">
6089 <desc>UUID of the USB device to search for.</desc>
6090 </param>
6091 <param name="device" type="IUSBDevice" dir="return">
6092 <desc>Found USB device object.</desc>
6093 </param>
6094 </method>
6095
6096 <method name="createSharedFolder">
6097 <desc>
6098 Creates a transient new shared folder by associating the given logical
6099 name with the given host path, adds it to the collection of shared
6100 folders and starts sharing it. Refer to the description of
6101 <link to="ISharedFolder"/> to read more about logical names.
6102
6103 <result name="VBOX_E_INVALID_VM_STATE">
6104 Virtual machine in Saved state or currently changing state.
6105 </result>
6106 <result name="VBOX_E_FILE_ERROR">
6107 Shared folder already exists or not accessible.
6108 </result>
6109 </desc>
6110 <param name="name" type="wstring" dir="in">
6111 <desc>Unique logical name of the shared folder.</desc>
6112 </param>
6113 <param name="hostPath" type="wstring" dir="in">
6114 <desc>Full path to the shared folder in the host file system.</desc>
6115 </param>
6116 <param name="writable" type="boolean" dir="in">
6117 <desc>Whether the share is writable or readonly</desc>
6118 </param>
6119 </method>
6120
6121 <method name="removeSharedFolder">
6122 <desc>
6123 Removes a transient shared folder with the given name previously
6124 created by <link to="#createSharedFolder"/> from the collection of
6125 shared folders and stops sharing it.
6126 <result name="VBOX_E_INVALID_VM_STATE">
6127 Virtual machine in Saved state or currently changing state.
6128 </result>
6129 <result name="VBOX_E_FILE_ERROR">
6130 Shared folder does not exists.
6131 </result>
6132 </desc>
6133 <param name="name" type="wstring" dir="in">
6134 <desc>Logical name of the shared folder to remove.</desc>
6135 </param>
6136 </method>
6137
6138 <method name="takeSnapshot">
6139 <desc>
6140 Saves the current execution state and all settings of the
6141 machine and creates differencing images for all
6142 normal (non-independent) hard disks.
6143
6144 This method can be called for a PoweredOff, Saved, Running or
6145 Paused virtual machine. When the machine is PoweredOff, an
6146 offline <link to="ISnapshot">snapshot</link> is created,
6147 in all other cases -- an online snapshot.
6148
6149 The taken snapshot is always based on the
6150 <link to="IMachine::currentSnapshot">current
6151 snapshot</link> of the associated virtual machine and becomes
6152 a new current snapshot.
6153
6154 <note>
6155 This method implicitly calls <link to="IMachine::saveSettings"/> to
6156 save all current machine settings before taking an offline snapshot.
6157 </note>
6158
6159 <see>ISnapshot, <link to="#saveState"/></see>
6160 <result name="VBOX_E_INVALID_VM_STATE">
6161 Virtual machine currently changing state.
6162 </result>
6163 </desc>
6164 <param name="name" type="wstring" dir="in">
6165 <desc>Short name for the snapshot.</desc>
6166 </param>
6167 <param name="description" type="wstring" dir="in">
6168 <desc>Optional description of the snapshot.</desc>
6169 </param>
6170 <param name="progress" type="IProgress" dir="return">
6171 <desc>Progress object to track the operation completion.</desc>
6172 </param>
6173 </method>
6174
6175 <method name="discardSnapshot">
6176 <desc>
6177
6178 Starts discarding the specified snapshot. The execution state
6179 and settings of the associated machine stored in the snapshot
6180 will be deleted. The contents of all differencing hard disks of
6181 this snapshot will be merged with the contents of their
6182 dependent child hard disks to keep the, disks valid (in other
6183 words, all changes represented by hard disks being discarded
6184 will be propagated to their child hard disks). After that, this
6185 snapshot's differencing hard disks will be deleted. The parent
6186 of this snapshot will become a new parent for all its child
6187 snapshots.
6188
6189 If the discarded snapshot is the current one, its parent
6190 snapshot will become a new current snapshot. The current machine
6191 state is not directly affected in this case, except that
6192 currently attached differencing hard disks based on hard disks
6193 of the discarded snapshot will be also merged as described
6194 above.
6195
6196 If the discarded snapshot is the first one (the root snapshot)
6197 and it has exactly one child snapshot, this child snapshot will
6198 become the first snapshot after discarding. If there are no
6199 children at all (i.e. the first snapshot is the only snapshot of
6200 the machine), both the current and the first snapshot of the
6201 machine will be set to null. In all other cases, the first
6202 snapshot cannot be discarded.
6203
6204 You cannot discard the snapshot if it
6205 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6206 hard disks that have differencing hard disks based on them. Snapshots of
6207 such kind can be discarded only when every normal hard disk has either
6208 no children at all or exactly one child. In the former case, the normal
6209 hard disk simply becomes unused (i.e. not attached to any VM). In the
6210 latter case, it receives all the changes stored in the child hard disk,
6211 and then it replaces the child hard disk in the configuration of the
6212 corresponding snapshot or machine.
6213
6214 Also, you cannot discard the snapshot if it stores hard disks
6215 (of any type) having differencing child hard disks that belong
6216 to other machines. Such snapshots can be only discarded after
6217 you discard all snapshots of other machines containing "foreign"
6218 child disks, or detach these "foreign" child disks from machines
6219 they are attached to.
6220
6221 One particular example of the snapshot storing normal hard disks
6222 is the first snapshot of a virtual machine that had normal hard
6223 disks attached when taking the snapshot. Be careful when
6224 discarding such snapshots because this implicitly commits
6225 changes (made since the snapshot being discarded has been taken)
6226 to normal hard disks (as described above), which may be not what
6227 you want.
6228
6229 The virtual machine is put to
6230 the <link to="MachineState_Discarding">Discarding</link> state until
6231 the discard operation is completed.
6232
6233 <note>
6234 The machine must not be running, otherwise the operation
6235 will fail.
6236 </note>
6237
6238 <note>
6239 Child hard disks of all normal hard disks of the discarded snapshot
6240 must be accessible (see <link to="IMedium::state"/>) for this
6241 operation to succeed. In particular, this means that all virtual
6242 machines, whose hard disks are directly or indirectly based on the
6243 hard disks of discarded snapshot, must be powered off.
6244 </note>
6245 <note>
6246 Merging hard disk contents can be very time and disk space
6247 consuming, if these disks are big in size and have many
6248 children. However, if the snapshot being discarded is the last
6249 (head) snapshot on the branch, the operation will be rather
6250 quick.
6251 </note>
6252 <note>
6253 Note that discarding the current snapshot
6254 will implicitly call <link to="IMachine::saveSettings"/> to
6255 make all current machine settings permanent.
6256 </note>
6257 <result name="VBOX_E_INVALID_VM_STATE">
6258 Virtual machine is running.
6259 </result>
6260 </desc>
6261 <param name="id" type="uuid" dir="in">
6262 <desc>UUID of the snapshot to discard.</desc>
6263 </param>
6264 <param name="progress" type="IProgress" dir="return">
6265 <desc>Progress object to track the operation completion.</desc>
6266 </param>
6267 </method>
6268
6269 <method name="discardCurrentState">
6270 <desc>
6271 This operation is similar to <link to="#discardSnapshot"/> but
6272 affects the current machine state. This means that the state stored in
6273 the current snapshot will become a new current state, and all current
6274 settings of the machine and changes stored in differencing hard disks
6275 will be lost.
6276
6277 After this operation is successfully completed, new empty differencing
6278 hard disks are created for all normal hard disks of the machine.
6279
6280 If the current snapshot of the machine is an online snapshot, the
6281 machine will go to the <link to="MachineState_Saved"> saved
6282 state</link>, so that the next time it is powered on, the execution
6283 state will be restored from the current snapshot.
6284
6285 <note>
6286 The machine must not be running, otherwise the operation will fail.
6287 </note>
6288
6289 <note>
6290 If the machine state is <link to="MachineState_Saved">Saved</link>
6291 prior to this operation, the saved state file will be implicitly
6292 discarded (as if <link to="IConsole::discardSavedState"/> were
6293 called).
6294 </note>
6295
6296 <result name="VBOX_E_INVALID_VM_STATE">
6297 Virtual machine is running.
6298 </result>
6299 </desc>
6300 <param name="progress" type="IProgress" dir="return">
6301 <desc>Progress object to track the operation completion.</desc>
6302 </param>
6303 </method>
6304
6305 <method name="discardCurrentSnapshotAndState">
6306 <desc>
6307
6308 This method is equivalent to
6309 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6310 (currentSnapshot.id(), progress) followed by
6311 <link to="#discardCurrentState"/>.
6312
6313 As a result, the machine will be fully restored from the
6314 snapshot preceding the current snapshot, while both the current
6315 snapshot and the current machine state will be discarded.
6316
6317 If the current snapshot is the first snapshot of the machine (i.e. it
6318 has the only snapshot), the current machine state will be
6319 discarded <b>before</b> discarding the snapshot. In other words, the
6320 machine will be restored from its last snapshot, before discarding
6321 it. This differs from performing a single
6322 <link to="#discardSnapshot"/> call (note that no
6323 <link to="#discardCurrentState"/> will be possible after it)
6324 to the effect that the latter will preserve the current state instead of
6325 discarding it.
6326
6327 Unless explicitly mentioned otherwise, all remarks and
6328 limitations of the above two methods also apply to this method.
6329
6330 <note>
6331 The machine must not be running, otherwise the operation
6332 will fail.
6333 </note>
6334
6335 <note>
6336 If the machine state is <link to="MachineState_Saved">Saved</link>
6337 prior to this operation, the saved state file will be implicitly
6338 discarded (as if <link to="#discardSavedState"/> were
6339 called).
6340 </note>
6341
6342 <note>
6343 This method is more efficient than calling both of the above
6344 methods separately: it requires less IPC calls and provides
6345 a single progress object.
6346 </note>
6347
6348 <result name="VBOX_E_INVALID_VM_STATE">
6349 Virtual machine is running.
6350 </result>
6351 </desc>
6352 <param name="progress" type="IProgress" dir="return">
6353 <desc>Progress object to track the operation completion.</desc>
6354 </param>
6355 </method>
6356
6357 <method name="registerCallback">
6358 <desc>
6359 Registers a new console callback on this instance. The methods of the
6360 callback interface will be called by this instance when the appropriate
6361 event occurs.
6362 </desc>
6363 <param name="callback" type="IConsoleCallback" dir="in"/>
6364 </method>
6365
6366 <method name="unregisterCallback">
6367 <desc>
6368 Unregisters the console callback previously registered using
6369 <link to="#registerCallback"/>.
6370 <result name="E_INVALIDARG">
6371 Given @a callback handler is not registered.
6372 </result>
6373 </desc>
6374 <param name="callback" type="IConsoleCallback" dir="in"/>
6375 </method>
6376 </interface>
6377
6378 <!--
6379 // IHost
6380 /////////////////////////////////////////////////////////////////////////
6381 -->
6382
6383 <interface
6384 name="IHostDVDDrive" extends="$unknown"
6385 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6386 wsmap="managed"
6387 >
6388 <desc>
6389 The IHostDVDDrive interface represents the physical CD/DVD drive
6390 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6391 </desc>
6392
6393 <attribute name="name" type="wstring" readonly="yes">
6394 <desc>
6395 Returns the platform-specific device identifier.
6396 On DOS-like platforms, it is a drive name (e.g. R:).
6397 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6398 </desc>
6399 </attribute>
6400 <attribute name="description" type="wstring" readonly="yes">
6401 <desc>
6402 Returns a human readable description for the drive. This
6403 description usually contains the product and vendor name. A
6404 @c null string is returned if the description is not available.
6405 </desc>
6406 </attribute>
6407 <attribute name="udi" type="wstring" readonly="yes">
6408 <desc>
6409 Returns the unique device identifier for the drive. This
6410 attribute is reserved for future use instead of
6411 <link to="#name"/>. Currently it is not used and may return
6412 @c null on some platforms.
6413 </desc>
6414 </attribute>
6415
6416 </interface>
6417
6418 <interface
6419 name="IHostFloppyDrive" extends="$unknown"
6420 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6421 wsmap="managed"
6422 >
6423 <desc>
6424 The IHostFloppyDrive interface represents the physical floppy drive
6425 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6426 </desc>
6427 <attribute name="name" type="wstring" readonly="yes">
6428 <desc>
6429 Returns the platform-specific device identifier.
6430 On DOS-like platforms, it is a drive name (e.g. A:).
6431 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6432 </desc>
6433 </attribute>
6434 <attribute name="description" type="wstring" readonly="yes">
6435 <desc>
6436 Returns a human readable description for the drive. This
6437 description usually contains the product and vendor name. A
6438 @c null string is returned if the description is not available.
6439 </desc>
6440 </attribute>
6441 <attribute name="udi" type="wstring" readonly="yes">
6442 <desc>
6443 Returns the unique device identifier for the drive. This
6444 attribute is reserved for future use instead of
6445 <link to="#name"/>. Currently it is not used and may return
6446 @c null on some platforms.
6447 </desc>
6448 </attribute>
6449 </interface>
6450
6451 <enum
6452 name="HostNetworkInterfaceMediumType"
6453 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6454 >
6455 <desc>
6456 Type of encapsulation. Ethernet encapsulation includes both wired and
6457 wireless Ethernet connections.
6458 <see>IHostNetworkInterface</see>
6459 </desc>
6460
6461 <const name="Unknown" value="0">
6462 <desc>
6463 The type of interface cannot be determined.
6464 </desc>
6465 </const>
6466 <const name="Ethernet" value="1">
6467 <desc>
6468 Ethernet frame encapsulation.
6469 </desc>
6470 </const>
6471 <const name="PPP" value="2">
6472 <desc>
6473 Point-to-point protocol encapsulation.
6474 </desc>
6475 </const>
6476 <const name="SLIP" value="3">
6477 <desc>
6478 Serial line IP encapsulation.
6479 </desc>
6480 </const>
6481 </enum>
6482
6483 <enum
6484 name="HostNetworkInterfaceStatus"
6485 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6486 >
6487 <desc>
6488 Current status of the interface.
6489 <see>IHostNetworkInterface</see>
6490 </desc>
6491
6492 <const name="Unknown" value="0">
6493 <desc>
6494 The state of interface cannot be determined.
6495 </desc>
6496 </const>
6497 <const name="Up" value="1">
6498 <desc>
6499 The interface is fully operational.
6500 </desc>
6501 </const>
6502 <const name="Down" value="2">
6503 <desc>
6504 The interface is not functioning.
6505 </desc>
6506 </const>
6507 </enum>
6508
6509 <enum
6510 name="HostNetworkInterfaceType"
6511 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6512 >
6513 <desc>
6514 Network interface type.
6515 </desc>
6516 <const name="Bridged" value="1"/>
6517 <const name="HostOnly" value="2"/>
6518 </enum>
6519
6520 <interface
6521 name="IHostNetworkInterface" extends="$unknown"
6522 uuid="63d66df2-e40b-4289-acc2-7e260fe6e51e"
6523 wsmap="managed"
6524 >
6525 <desc>
6526 Reprents one of host's network interfaces. IP V6 address and network
6527 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6528 separated by colons.
6529 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6530 </desc>
6531 <attribute name="name" type="wstring" readonly="yes">
6532 <desc>Returns the host network interface name.</desc>
6533 </attribute>
6534
6535 <attribute name="id" type="uuid" readonly="yes">
6536 <desc>Returns the interface UUID.</desc>
6537 </attribute>
6538
6539 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
6540 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
6541 </attribute>
6542
6543 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6544 <desc>Returns the IP V4 address of the interface.</desc>
6545 </attribute>
6546
6547 <attribute name="networkMask" type="unsigned long" readonly="yes">
6548 <desc>Returns the network mask of the interface.</desc>
6549 </attribute>
6550
6551 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6552 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6553 </attribute>
6554
6555 <attribute name="IPV6Address" type="wstring" readonly="yes">
6556 <desc>Returns the IP V6 address of the interface.</desc>
6557 </attribute>
6558
6559 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
6560 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
6561 </attribute>
6562
6563 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6564 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6565 </attribute>
6566
6567 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6568 <desc>Type of protocol encapsulation used.</desc>
6569 </attribute>
6570
6571 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6572 <desc>Status of the interface.</desc>
6573 </attribute>
6574
6575 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6576 <desc>specifies the host interface type.</desc>
6577 </attribute>
6578
6579 <method name="enableStaticIpConfig">
6580 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6581 <param name="IPAddress" type="unsigned long" dir="in">
6582 <desc>
6583 IP address.
6584 </desc>
6585 </param>
6586 <param name="networkMask" type="unsigned long" dir="in">
6587 <desc>
6588 network mask.
6589 </desc>
6590 </param>
6591 </method>
6592
6593 <method name="enableStaticIpConfigV6">
6594 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6595 <param name="IPV6Address" type="wstring" dir="in">
6596 <desc>
6597 IP address.
6598 </desc>
6599 </param>
6600 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6601 <desc>
6602 network mask.
6603 </desc>
6604 </param>
6605 </method>
6606
6607 <method name="enableDynamicIpConfig">
6608 <desc>enables the dynamic IP configuration.</desc>
6609 </method>
6610
6611 </interface>
6612
6613 <interface
6614 name="IHost" extends="$unknown"
6615 uuid="926469ca-9091-42ef-928e-582d78b66c70"
6616 wsmap="managed"
6617 >
6618 <desc>
6619 The IHost interface represents the physical machine that this VirtualBox
6620 installation runs on.
6621
6622 An object implementing this interface is returned by the
6623 <link to="IVirtualBox::host" /> attribute. This interface contains
6624 read-only information about the host's physical hardware (such as what
6625 processors and disks are available, what the host operating system is,
6626 and so on) and also allows for manipulating some of the host's hardware,
6627 such as global USB device filters and host interface networking.
6628
6629 </desc>
6630 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
6631 <desc>List of DVD drives available on the host.</desc>
6632 </attribute>
6633
6634 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
6635 <desc>List of floppy drives available on the host.</desc>
6636 </attribute>
6637
6638 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6639 <desc>
6640 List of USB devices currently attached to the host.
6641 Once a new device is physically attached to the host computer,
6642 it appears in this list and remains there until detached.
6643
6644 <note>
6645 This method may set a @ref com_warnings "warning result code".
6646 </note>
6647 <note>
6648 If USB functionality is not available in the given edition of
6649 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6650 </note>
6651 </desc>
6652 </attribute>
6653
6654 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6655 <desc>
6656 List of USB device filters in action.
6657 When a new device is physically attached to the host computer,
6658 filters from this list are applied to it (in order they are stored
6659 in the list). The first matched filter will determine the
6660 <link to="IHostUSBDeviceFilter::action">action</link>
6661 performed on the device.
6662
6663 Unless the device is ignored by these filters, filters of all
6664 currently running virtual machines
6665 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6666
6667 <note>
6668 This method may set a @ref com_warnings "warning result code".
6669 </note>
6670 <note>
6671 If USB functionality is not available in the given edition of
6672 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6673 </note>
6674
6675 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6676 </desc>
6677 </attribute>
6678
6679 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6680 <desc>List of host network interfaces currently defined on the host.</desc>
6681 </attribute>
6682
6683 <attribute name="processorCount" type="unsigned long" readonly="yes">
6684 <desc>Number of (logical) CPUs installed in the host system.</desc>
6685 </attribute>
6686
6687 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6688 <desc>Number of (logical) CPUs online in the host system.</desc>
6689 </attribute>
6690
6691 <method name="getProcessorSpeed">
6692 <desc>Query the (approximate) maximum speed of a specified host CPU in
6693 Megahertz.
6694 </desc>
6695 <param name="cpuId" type="unsigned long" dir="in">
6696 <desc>
6697 Identifier of the CPU.
6698 </desc>
6699 </param>
6700 <param name="speed" type="unsigned long" dir="return">
6701 <desc>
6702 Speed value. 0 is returned if value is not known or @a cpuId is
6703 invalid.
6704 </desc>
6705 </param>
6706 </method>
6707
6708 <method name="getProcessorFeature">
6709 <desc>Query whether a CPU feature is supported or not.</desc>
6710 <param name="feature" type="ProcessorFeature" dir="in">
6711 <desc>
6712 CPU Feature identifier.
6713 </desc>
6714 </param>
6715 <param name="supported" type="boolean" dir="return">
6716 <desc>
6717 Feature is supported or not.
6718 </desc>
6719 </param>
6720 </method>
6721
6722 <method name="getProcessorDescription">
6723 <desc>Query the model string of a specified host CPU.
6724 <note>
6725 This function is not implemented in the current version of the
6726 product.
6727 </note>
6728 </desc>
6729 <param name="cpuId" type="unsigned long" dir="in">
6730 <desc>
6731 Identifier of the CPU.
6732 </desc>
6733 </param>
6734 <param name="description" type="wstring" dir="return">
6735 <desc>
6736 Model string. A NULL string is returned if value is not known or
6737 @a cpuId is invalid.
6738 </desc>
6739 </param>
6740 </method>
6741
6742 <attribute name="memorySize" type="unsigned long" readonly="yes">
6743 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6744 </attribute>
6745
6746 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6747 <desc>Available system memory in the host system.</desc>
6748 </attribute>
6749
6750 <attribute name="operatingSystem" type="wstring" readonly="yes">
6751 <desc>Name of the host system's operating system.</desc>
6752 </attribute>
6753
6754 <attribute name="OSVersion" type="wstring" readonly="yes">
6755 <desc>Host operating system's version string.</desc>
6756 </attribute>
6757
6758 <attribute name="UTCTime" type="long long" readonly="yes">
6759 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6760 </attribute>
6761
6762<if target="midl">
6763 <method name="createHostOnlyNetworkInterface">
6764 <desc>
6765 Creates a new adapter for Host Only Networking.
6766 <result name="E_INVALIDARG">
6767 Host network interface @a name already exists.
6768 </result>
6769 </desc>
6770 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6771 <desc>
6772 Created host interface object.
6773 </desc>
6774 </param>
6775 <param name="progress" type="IProgress" dir="return">
6776 <desc>
6777 Progress object to track the operation completion.
6778 </desc>
6779 </param>
6780 </method>
6781 <method name="removeHostOnlyNetworkInterface">
6782 <desc>
6783 Removes the given Host Only Networking interface.
6784 <result name="VBOX_E_OBJECT_NOT_FOUND">
6785 No host network interface matching @a id found.
6786 </result>
6787 </desc>
6788 <param name="id" type="uuid" dir="in">
6789 <desc>
6790 Adapter GUID.
6791 </desc>
6792 </param>
6793 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6794 <desc>
6795 Removed host interface object.
6796 </desc>
6797 </param>
6798 <param name="progress" type="IProgress" dir="return">
6799 <desc>
6800 Progress object to track the operation completion.
6801 </desc>
6802 </param>
6803 </method>
6804</if>
6805
6806 <method name="createUSBDeviceFilter">
6807 <desc>
6808 Creates a new USB device filter. All attributes except
6809 the filter name are set to <tt>null</tt> (any match),
6810 <i>active</i> is <tt>false</tt> (the filter is not active).
6811
6812 The created filter can be added to the list of filters using
6813 <link to="#insertUSBDeviceFilter"/>.
6814
6815 <see>#USBDeviceFilters</see>
6816 </desc>
6817 <param name="name" type="wstring" dir="in">
6818 <desc>
6819 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6820 for more info.
6821 </desc>
6822 </param>
6823 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6824 <desc>Created filter object.</desc>
6825 </param>
6826 </method>
6827
6828 <method name="insertUSBDeviceFilter">
6829 <desc>
6830 Inserts the given USB device to the specified position
6831 in the list of filters.
6832
6833 Positions are numbered starting from <tt>0</tt>. If the specified
6834 position is equal to or greater than the number of elements in
6835 the list, the filter is added at the end of the collection.
6836
6837 <note>
6838 Duplicates are not allowed, so an attempt to insert a
6839 filter that is already in the list, will return an
6840 error.
6841 </note>
6842 <note>
6843 This method may set a @ref com_warnings "warning result code".
6844 </note>
6845 <note>
6846 If USB functionality is not available in the given edition of
6847 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6848 </note>
6849
6850 <see>#USBDeviceFilters</see>
6851
6852 <result name="VBOX_E_INVALID_OBJECT_STATE">
6853 USB device filter is not created within this VirtualBox instance.
6854 </result>
6855 <result name="E_INVALIDARG">
6856 USB device filter already in list.
6857 </result>
6858
6859 </desc>
6860 <param name="position" type="unsigned long" dir="in">
6861 <desc>Position to insert the filter to.</desc>
6862 </param>
6863 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6864 <desc>USB device filter to insert.</desc>
6865 </param>
6866 </method>
6867
6868 <method name="removeUSBDeviceFilter">
6869 <desc>
6870 Removes a USB device filter from the specified position in the
6871 list of filters.
6872
6873 Positions are numbered starting from <tt>0</tt>. Specifying a
6874 position equal to or greater than the number of elements in
6875 the list will produce an error.
6876
6877 <note>
6878 This method may set a @ref com_warnings "warning result code".
6879 </note>
6880 <note>
6881 If USB functionality is not available in the given edition of
6882 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6883 </note>
6884
6885 <see>#USBDeviceFilters</see>
6886
6887 <result name="E_INVALIDARG">
6888 USB device filter list empty or invalid @a position.
6889 </result>
6890
6891 </desc>
6892 <param name="position" type="unsigned long" dir="in">
6893 <desc>Position to remove the filter from.</desc>
6894 </param>
6895 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6896 <desc>Removed USB device filter.</desc>
6897 </param>
6898 </method>
6899
6900 <method name="findHostDVDDrive">
6901 <desc>
6902 Searches for a host DVD drive with the given @c name.
6903
6904 <result name="VBOX_E_OBJECT_NOT_FOUND">
6905 Given @c name does not correspond to any host drive.
6906 </result>
6907
6908 </desc>
6909 <param name="name" type="wstring" dir="in">
6910 <desc>Name of the host drive to search for</desc>
6911 </param>
6912 <param name="drive" type="IHostDVDDrive" dir="return">
6913 <desc>Found host drive object</desc>
6914 </param>
6915 </method>
6916
6917 <method name="findHostFloppyDrive">
6918 <desc>
6919 Searches for a host floppy drive with the given @c name.
6920
6921 <result name="VBOX_E_OBJECT_NOT_FOUND">
6922 Given @c name does not correspond to any host floppy drive.
6923 </result>
6924
6925 </desc>
6926 <param name="name" type="wstring" dir="in">
6927 <desc>Name of the host floppy drive to search for</desc>
6928 </param>
6929 <param name="drive" type="IHostFloppyDrive" dir="return">
6930 <desc>Found host floppy drive object</desc>
6931 </param>
6932 </method>
6933
6934 <method name="findHostNetworkInterfaceByName">
6935 <desc>
6936 Searches through all host network interfaces for an interface with
6937 the given @c name.
6938 <note>
6939 The method returns an error if the given @c name does not
6940 correspond to any host network interface.
6941 </note>
6942 </desc>
6943 <param name="name" type="wstring" dir="in">
6944 <desc>Name of the host network interface to search for.</desc>
6945 </param>
6946 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6947 <desc>Found host network interface object.</desc>
6948 </param>
6949 </method>
6950 <method name="findHostNetworkInterfaceById">
6951 <desc>
6952 Searches through all host network interfaces for an interface with
6953 the given GUID.
6954 <note>
6955 The method returns an error if the given GUID does not
6956 correspond to any host network interface.
6957 </note>
6958 </desc>
6959 <param name="id" type="uuid" dir="in">
6960 <desc>GUID of the host network interface to search for.</desc>
6961 </param>
6962 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6963 <desc>Found host network interface object.</desc>
6964 </param>
6965 </method>
6966 <method name="findHostNetworkInterfacesOfType">
6967 <desc>
6968 Searches through all host network interfaces and returns a list of interfaces of the specified type
6969 </desc>
6970 <param name="type" type="HostNetworkInterfaceType" dir="in">
6971 <desc>type of the host network interfaces to search for.</desc>
6972 </param>
6973 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
6974 <desc>Found host network interface objects.</desc>
6975 </param>
6976 </method>
6977
6978 <method name="findUSBDeviceById">
6979 <desc>
6980 Searches for a USB device with the given UUID.
6981
6982 <result name="VBOX_E_OBJECT_NOT_FOUND">
6983 Given @id does not correspond to any USB device.
6984 </result>
6985
6986 <see>IHostUSBDevice::id</see>
6987 </desc>
6988 <param name="id" type="uuid" dir="in">
6989 <desc>UUID of the USB device to search for.</desc>
6990 </param>
6991 <param name="device" type="IHostUSBDevice" dir="return">
6992 <desc>Found USB device object.</desc>
6993 </param>
6994 </method>
6995
6996 <method name="findUSBDeviceByAddress">
6997 <desc>
6998 Searches for a USB device with the given host address.
6999
7000 <result name="VBOX_E_OBJECT_NOT_FOUND">
7001 Given @c name does not correspond to any USB device.
7002 </result>
7003
7004 <see>IHostUSBDevice::address</see>
7005 </desc>
7006 <param name="name" type="wstring" dir="in">
7007 <desc>
7008 Address of the USB device (as assigned by the host) to
7009 search for.
7010 </desc>
7011 </param>
7012 <param name="device" type="IHostUSBDevice" dir="return">
7013 <desc>Found USB device object.</desc>
7014 </param>
7015 </method>
7016
7017 </interface>
7018
7019 <!--
7020 // ISystemProperties
7021 /////////////////////////////////////////////////////////////////////////
7022 -->
7023
7024 <interface
7025 name="ISystemProperties"
7026 extends="$unknown"
7027 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
7028 wsmap="managed"
7029 >
7030 <desc>
7031 The ISystemProperties interface represents global properties of the given
7032 VirtualBox installation.
7033
7034 These properties define limits and default values for various attributes
7035 and parameters. Most of the properties are read-only, but some can be
7036 changed by a user.
7037 </desc>
7038
7039 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7040 <desc>Minimum guest system memory in Megabytes.</desc>
7041 </attribute>
7042
7043 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7044 <desc>Maximum guest system memory in Megabytes.</desc>
7045 </attribute>
7046
7047 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7048 <desc>Minimum guest video memory in Megabytes.</desc>
7049 </attribute>
7050
7051 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7052 <desc>Maximum guest video memory in Megabytes.</desc>
7053 </attribute>
7054
7055 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7056 <desc>Minimum CPU count.</desc>
7057 </attribute>
7058
7059 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7060 <desc>Maximum CPU count.</desc>
7061 </attribute>
7062
7063 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7064 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7065 </attribute>
7066
7067 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7068 <desc>
7069 Number of network adapters associated with every
7070 <link to="IMachine"/> instance.
7071 </desc>
7072 </attribute>
7073
7074 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7075 <desc>
7076 Number of serial ports associated with every
7077 <link to="IMachine"/> instance.
7078 </desc>
7079 </attribute>
7080
7081 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7082 <desc>
7083 Number of parallel ports associated with every
7084 <link to="IMachine"/> instance.
7085 </desc>
7086 </attribute>
7087
7088 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7089 <desc>
7090 Maximum device position in the boot order. This value corresponds
7091 to the total number of devices a machine can boot from, to make it
7092 possible to include all possible devices to the boot list.
7093 <see><link to="IMachine::setBootOrder"/></see>
7094 </desc>
7095 </attribute>
7096
7097 <attribute name="defaultMachineFolder" type="wstring">
7098 <desc>
7099 Full path to the default directory used to create new or open
7100 existing machines when a settings file name contains no
7101 path.
7102
7103 The initial value of this property is
7104 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7105 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7106
7107 <note>
7108 Setting this property to <tt>null</tt> will restore the
7109 initial value.
7110 </note>
7111 <note>
7112 When settings this property, the specified path can be
7113 absolute (full path) or relative
7114 to the <link to="IVirtualBox::homeFolder">
7115 VirtualBox home directory</link>.
7116 When reading this property, a full path is
7117 always returned.
7118 </note>
7119 <note>
7120 The specified path may not exist, it will be created
7121 when necessary.
7122 </note>
7123
7124 <see>
7125 <link to="IVirtualBox::createMachine"/>,
7126 <link to="IVirtualBox::openMachine"/>
7127 </see>
7128 </desc>
7129 </attribute>
7130
7131 <attribute name="defaultHardDiskFolder" type="wstring">
7132 <desc>
7133 Full path to the default directory used to create new or open existing
7134 virtual disks.
7135
7136 This path is used when the storage unit of a hard disk is a regular file
7137 in the host's file system and only a file name that contains no path is
7138 given.
7139
7140 The initial value of this property is
7141 <tt>&lt;</tt>
7142 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7143 <tt>&gt;/HardDisks</tt>.
7144
7145 <note>
7146 Setting this property to <tt>null</tt> will restore the
7147 initial value.
7148 </note>
7149 <note>
7150 When settings this property, the specified path can be relative
7151 to the
7152 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7153 absolute. When reading this property, a full path is
7154 always returned.
7155 </note>
7156 <note>
7157 The specified path may not exist, it will be created
7158 when necessary.
7159 </note>
7160
7161 <see>
7162 IHardDisk,
7163 <link to="IVirtualBox::createHardDisk"/>,
7164 <link to="IVirtualBox::openHardDisk"/>,
7165 <link to="IMedium::location"/>
7166 </see>
7167 </desc>
7168 </attribute>
7169
7170 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7171 <desc>
7172 List of all hard disk storage formats supported by this VirtualBox
7173 installation.
7174
7175 Keep in mind that the hard disk format identifier
7176 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7177 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7178 hard disk format is a case-insensitive string. This means that, for
7179 example, all of the following strings:
7180 <pre>
7181 "VDI"
7182 "vdi"
7183 "VdI"</pre>
7184 refer to the same hard disk format.
7185
7186 Note that the virtual hard disk framework is backend-based, therefore
7187 the list of supported formats depends on what backends are currently
7188 installed.
7189
7190 <see>
7191 <link to="IHardDiskFormat"/>,
7192 </see>
7193 </desc>
7194 </attribute>
7195
7196 <attribute name="defaultHardDiskFormat" type="wstring">
7197 <desc>
7198 Identifier of the default hard disk format used by VirtualBox.
7199
7200 The hard disk format set by this attribute is used by VirtualBox
7201 when the hard disk format was not specified explicitly. One example is
7202 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7203 format argument. A more complex example is implicit creation of
7204 differencing hard disks when taking a snapshot of a virtual machine:
7205 this operation will try to use a format of the parent hard disk first
7206 and if this format does not support differencing hard disks the default
7207 format specified by this argument will be used.
7208
7209 The list of supported hard disk formats may be obtained by the
7210 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7211 format must have a capability to create differencing hard disks;
7212 otherwise opeartions that create hard disks implicitly may fail
7213 unexpectedly.
7214
7215 The initial value of this property is <tt>VDI</tt> in the current
7216 version of the VirtualBox product, but may change in the future.
7217
7218 <note>
7219 Setting this property to <tt>null</tt> will restore the
7220 initial value.
7221 </note>
7222
7223 <see>
7224 <link to="#hardDiskFormats"/>,
7225 <link to="IHardDiskFormat::id"/>,
7226 <link to="IVirtualBox::createHardDisk"/>
7227 </see>
7228 </desc>
7229 </attribute>
7230
7231 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7232 <desc>
7233 Library that provides authentication for VRDP clients. The library
7234 is used if a virtual machine's authentication type is set to "external"
7235 in the VM RemoteDisplay configuration.
7236
7237 The system library extension (".DLL" or ".so") must be omitted.
7238 A full path can be specified; if not, then the library must reside on the
7239 system's default library path.
7240
7241 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7242 of that name in one of the default VirtualBox library directories.
7243
7244 For details about VirtualBox authentication libraries and how to implement
7245 them, please refer to the VirtualBox manual.
7246
7247 <note>
7248 Setting this property to <tt>null</tt> will restore the
7249 initial value.
7250 </note>
7251 </desc>
7252 </attribute>
7253
7254 <attribute name="webServiceAuthLibrary" type="wstring">
7255 <desc>
7256 Library that provides authentication for webservice clients. The library
7257 is used if a virtual machine's authentication type is set to "external"
7258 in the VM RemoteDisplay configuration and will be called from
7259 within the <link to="IWebsessionManager::logon" /> implementation.
7260
7261 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7262 there is no per-VM setting for this, as the webservice is a global
7263 resource (if it is running). Only for this setting (for the webservice),
7264 setting this value to a literal "null" string disables authentication,
7265 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7266 no matter what user name and password are supplied.
7267
7268 The initial value of this property is <tt>VRDPAuth</tt>,
7269 meaning that the webservice will use the same authentication
7270 library that is used by default for VBoxVRDP (again, see
7271 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7272 The format and calling convention of authentication libraries
7273 is the same for the webservice as it is for VBoxVRDP.
7274
7275 </desc>
7276 </attribute>
7277
7278 <attribute name="HWVirtExEnabled" type="boolean">
7279 <desc>
7280 This specifies the default value for hardware virtualization
7281 extensions. If enabled, virtual machines will make use of
7282 hardware virtualization extensions such as Intel VT-x and
7283 AMD-V by default. This value can be overridden by each VM
7284 using their <link to="IMachine::HWVirtExEnabled" /> property.
7285 </desc>
7286 </attribute>
7287
7288 <attribute name="LogHistoryCount" type="unsigned long">
7289 <desc>
7290 This value specifies how many old release log files are kept.
7291 </desc>
7292 </attribute>
7293 </interface>
7294
7295 <!--
7296 // IGuest
7297 /////////////////////////////////////////////////////////////////////////
7298 -->
7299
7300 <interface
7301 name="IGuestOSType" extends="$unknown"
7302 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7303 wsmap="struct"
7304 >
7305 <desc>
7306 </desc>
7307
7308 <attribute name="familyId" type="wstring" readonly="yes">
7309 <desc>Guest OS family identifier string.</desc>
7310 </attribute>
7311
7312 <attribute name="familyDescription" type="wstring" readonly="yes">
7313 <desc>Human readable description of the guest OS family.</desc>
7314 </attribute>
7315
7316 <attribute name="id" type="wstring" readonly="yes">
7317 <desc>Guest OS identifier string.</desc>
7318 </attribute>
7319
7320 <attribute name="description" type="wstring" readonly="yes">
7321 <desc>Human readable description of the guest OS.</desc>
7322 </attribute>
7323
7324 <attribute name="is64Bit" type="boolean" readonly="yes">
7325 <desc>Returns @c true if the given OS is 64-bit</desc>
7326 </attribute>
7327
7328 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7329 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7330 </attribute>
7331
7332 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7333 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7334 </attribute>
7335
7336 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7337 <desc>Recommended RAM size in Megabytes.</desc>
7338 </attribute>
7339
7340 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7341 <desc>Recommended video RAM size in Megabytes.</desc>
7342 </attribute>
7343
7344 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7345 <desc>Recommended hard disk size in Megabytes.</desc>
7346 </attribute>
7347
7348 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7349 <desc>Returns recommended network adapter for this OS type.</desc>
7350 </attribute>
7351 </interface>
7352
7353 <interface
7354 name="IGuest" extends="$unknown"
7355 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7356
7357 wsmap="suppress"
7358 >
7359 <desc>
7360 The IGuest interface represents information about the operating system
7361 running inside the virtual machine. Used in
7362 <link to="IConsole::guest"/>.
7363
7364 IGuest provides information about the guest operating system, whether
7365 Guest Additions are installed and other OS-specific virtual machine
7366 properties.
7367 </desc>
7368
7369 <attribute name="OSTypeId" type="wstring" readonly="yes">
7370 <desc>
7371 Identifier of the Guest OS type as reported by the Guest
7372 Additions.
7373 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7374 an IGuestOSType object representing details about the given
7375 Guest OS type.
7376 <note>
7377 If Guest Additions are not installed, this value will be
7378 the same as <link to="IMachine::OSTypeId"/>.
7379 </note>
7380 </desc>
7381 </attribute>
7382
7383 <attribute name="additionsActive" type="boolean" readonly="yes">
7384 <desc>
7385 Flag whether the Guest Additions are installed and active
7386 in which case their version will be returned by the
7387 <link to="#additionsVersion"/> property.
7388 </desc>
7389 </attribute>
7390
7391 <attribute name="additionsVersion" type="wstring" readonly="yes">
7392 <desc>
7393 Version of the Guest Additions (3 decimal numbers separated
7394 by dots) or empty when the Additions are not installed. The
7395 Additions may also report a version but yet not be active as
7396 the version might be refused by VirtualBox (incompatible) or
7397 other failures occurred.
7398 </desc>
7399 </attribute>
7400
7401 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7402 <desc>
7403 Flag whether seamless guest display rendering (seamless desktop
7404 integration) is supported.
7405 </desc>
7406 </attribute>
7407
7408 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7409 <desc>
7410 Flag whether the guest is in graphics mode. If it is not, then
7411 seamless rendering will not work, resize hints are not immediately
7412 acted on and guest display resizes are probably not initiated by
7413 the guest additions.
7414 </desc>
7415 </attribute>
7416
7417 <attribute name="memoryBalloonSize" type="unsigned long">
7418 <desc>Guest system memory balloon size in megabytes.</desc>
7419 </attribute>
7420
7421 <attribute name="statisticsUpdateInterval" type="unsigned long">
7422 <desc>Interval to update guest statistics in seconds.</desc>
7423 </attribute>
7424
7425 <method name="setCredentials">
7426 <desc>
7427 Store login credentials that can be queried by guest operating
7428 systems with Additions installed. The credentials are transient
7429 to the session and the guest may also choose to erase them. Note
7430 that the caller cannot determine whether the guest operating system
7431 has queried or made use of the credentials.
7432
7433 <result name="VBOX_E_VM_ERROR">
7434 VMM device is not available.
7435 </result>
7436
7437 </desc>
7438 <param name="userName" type="wstring" dir="in">
7439 <desc>User name string, can be empty</desc>
7440 </param>
7441 <param name="password" type="wstring" dir="in">
7442 <desc>Password string, can be empty</desc>
7443 </param>
7444 <param name="domain" type="wstring" dir="in">
7445 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7446 </param>
7447 <param name="allowInteractiveLogon" type="boolean" dir="in">
7448 <desc>
7449 Flag whether the guest should alternatively allow the user to
7450 interactively specify different credentials. This flag might
7451 not be supported by all versions of the Additions.
7452 </desc>
7453 </param>
7454 </method>
7455
7456 <method name="getStatistic">
7457 <desc>
7458 Query specified guest statistics as reported by the VirtualBox Additions.
7459 </desc>
7460 <param name="cpuId" type="unsigned long" dir="in">
7461 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7462 </param>
7463 <param name="statistic" type="GuestStatisticType" dir="in">
7464 <desc>Statistic type.</desc>
7465 </param>
7466 <param name="statVal" type="unsigned long" dir="out">
7467 <desc>Statistics value</desc>
7468 </param>
7469 </method>
7470
7471 </interface>
7472
7473
7474 <!--
7475 // IProgress
7476 /////////////////////////////////////////////////////////////////////////
7477 -->
7478
7479 <interface
7480 name="IProgress" extends="$unknown"
7481 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7482 wsmap="managed"
7483 >
7484 <desc>
7485 The IProgress interface represents a task progress object that allows
7486 to wait for the completion of some asynchronous task.
7487
7488 The task consists of one or more operations that run sequentially,
7489 one by one. There is an individual percentage of completion of the
7490 current operation and the percentage of completion of the task as a
7491 whole. Similarly, you can wait for the completion of a particular
7492 operation or for the completion of the whole task.
7493
7494 Every operation is identified by a number (starting from 0)
7495 and has a separate description.
7496 </desc>
7497
7498 <attribute name="id" type="uuid" readonly="yes">
7499 <desc>ID of the task.</desc>
7500 </attribute>
7501
7502 <attribute name="description" type="wstring" readonly="yes">
7503 <desc>Description of the task.</desc>
7504 </attribute>
7505
7506 <attribute name="initiator" type="$unknown" readonly="yes">
7507 <desc>Initiator of the task.</desc>
7508 </attribute>
7509
7510 <attribute name="cancelable" type="boolean" readonly="yes">
7511 <desc>Whether the task can be interrupted.</desc>
7512 </attribute>
7513
7514 <attribute name="percent" type="long" readonly="yes">
7515 <desc>
7516 Current task progress value in percent.
7517 This value depends on how many operations are already complete.
7518 </desc>
7519 </attribute>
7520
7521 <attribute name="completed" type="boolean" readonly="yes">
7522 <desc>Whether the task has been completed.</desc>
7523 </attribute>
7524
7525 <attribute name="canceled" type="boolean" readonly="yes">
7526 <desc>Whether the task has been canceled.</desc>
7527 </attribute>
7528
7529 <attribute name="resultCode" type="result" readonly="yes">
7530 <desc>
7531 Result code of the progress task.
7532 Valid only if <link to="#completed"/> is true.
7533 </desc>
7534 </attribute>
7535
7536 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7537 <desc>
7538 Extended information about the unsuccessful result of the
7539 progress operation. May be NULL when no extended information
7540 is available.
7541 Valid only if <link to="#completed"/> is true and
7542 <link to="#resultCode"/> indicates a failure.
7543 </desc>
7544 </attribute>
7545
7546 <attribute name="operationCount" type="unsigned long" readonly="yes">
7547 <desc>
7548 Number of operations this task is divided into.
7549 Every task consists of at least one operation.
7550 </desc>
7551 </attribute>
7552
7553 <attribute name="operation" type="unsigned long" readonly="yes">
7554 <desc>Number of the operation being currently executed.</desc>
7555 </attribute>
7556
7557 <attribute name="operationDescription" type="wstring" readonly="yes">
7558 <desc>
7559 Description of the operation being currently executed.
7560 </desc>
7561 </attribute>
7562
7563 <attribute name="operationPercent" type="long" readonly="yes">
7564 <desc>Current operation progress value in percent.</desc>
7565 </attribute>
7566
7567 <method name="waitForCompletion">
7568 <desc>
7569 Waits until the task is done (including all operations) with a
7570 given timeout.
7571
7572 <result name="VBOX_E_IPRT_ERROR">
7573 Failed to wait for task completion.
7574 </result>
7575
7576 </desc>
7577 <param name="timeout" type="long" dir="in">
7578 <desc>
7579 Timeout value in milliseconds.
7580 Specify -1 for an indefinite wait.
7581 </desc>
7582 </param>
7583 </method>
7584
7585 <method name="waitForOperationCompletion">
7586 <desc>
7587 Waits until the given operation is done with a given timeout.
7588
7589 <result name="VBOX_E_IPRT_ERROR">
7590 Failed to wait for operation completion.
7591 </result>
7592
7593 </desc>
7594 <param name="operation" type="unsigned long" dir="in">
7595 <desc>
7596 Number of the operation to wait for.
7597 Must be less than <link to="#operationCount"/>.
7598 </desc>
7599 </param>
7600 <param name="timeout" type="long" dir="in">
7601 <desc>
7602 Timeout value in milliseconds.
7603 Specify -1 for an indefinite wait.
7604 </desc>
7605 </param>
7606 </method>
7607
7608 <method name="cancel">
7609 <desc>
7610 Cancels the task.
7611 <note>
7612 If <link to="#cancelable"/> is <tt>false</tt>, then
7613 this method will fail.
7614 </note>
7615
7616 <result name="VBOX_E_INVALID_OBJECT_STATE">
7617 Operation cannot be canceled.
7618 </result>
7619
7620 </desc>
7621 </method>
7622
7623 </interface>
7624
7625
7626 <!--
7627 // ISnapshot
7628 /////////////////////////////////////////////////////////////////////////
7629 -->
7630
7631 <interface
7632 name="ISnapshot" extends="$unknown"
7633 uuid="5db6b1d9-c76b-4424-a6f4-8257f642d6ea"
7634 wsmap="managed"
7635 >
7636 <desc>
7637 The ISnapshot interface represents a snapshot of the virtual
7638 machine.
7639
7640 The <i>snapshot</i> stores all the information about a virtual
7641 machine necessary to bring it to exactly the same state as it was at
7642 the time of taking the snapshot. The snapshot includes:
7643
7644 <ul>
7645 <li>all settings of the virtual machine (i.e. its hardware
7646 configuration: RAM size, attached hard disks, etc.)
7647 </li>
7648 <li>the execution state of the virtual machine (memory contents,
7649 CPU state, etc.).
7650 </li>
7651 </ul>
7652
7653 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7654 or <i>online</i> (taken when the VM is running). The execution
7655 state of the offline snapshot is called a <i>zero execution state</i>
7656 (it doesn't actually contain any information about memory contents
7657 or the CPU state, assuming that all hardware is just powered off).
7658
7659 <h3>Snapshot branches</h3>
7660
7661 Snapshots can be chained. Chained snapshots form a branch where
7662 every next snapshot is based on the previous one. This chaining is
7663 mostly related to hard disk branching (see <link to="IHardDisk"/>
7664 description). This means that every time a new snapshot is created,
7665 a new differencing hard disk is implicitly created for all normal
7666 hard disks attached to the given virtual machine. This allows to
7667 fully restore hard disk contents when the machine is later reverted
7668 to a particular snapshot.
7669
7670 In the current implementation, multiple snapshot branches within one
7671 virtual machine are not allowed. Every machine has a single branch,
7672 and <link to="IConsole::takeSnapshot"/> operation adds a new
7673 snapshot to the top of that branch.
7674
7675 Existing snapshots can be discarded using
7676 <link to="IConsole::discardSnapshot"/>.
7677
7678 <h3>Current snapshot</h3>
7679
7680 Every virtual machine has a current snapshot, identified by
7681 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7682 a base for the <i>current machine state</i> (see below), to the effect
7683 that all normal hard disks of the machine and its execution
7684 state are based on this snapshot.
7685
7686 In the current implementation, the current snapshot is always the
7687 last taken snapshot (i.e. the head snapshot on the branch) and it
7688 cannot be changed.
7689
7690 The current snapshot is <tt>null</tt> if the machine doesn't have
7691 snapshots at all; in this case the current machine state is just
7692 current settings of this machine plus its current execution state.
7693
7694 <h3>Current machine state</h3>
7695
7696 The current machine state is what represented by IMachine instances got
7697 directly from IVirtualBox
7698 using <link
7699 to="IVirtualBox::getMachine">getMachine()</link>, <link
7700 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7701 to instances returned by <link to="ISnapshot::machine"/>). This state
7702 is always used when the machine is <link to="IConsole::powerUp"> powered
7703 on</link>.
7704
7705 The current machine state also includes the current execution state.
7706 If the machine is being currently executed
7707 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7708 and above), its execution state is just what's happening now.
7709 If it is powered off (<link to="MachineState_PoweredOff"/> or
7710 <link to="MachineState_Aborted"/>), it has a zero execution state.
7711 If the machine is saved (<link to="MachineState_Saved"/>), its
7712 execution state is what saved in the execution state file
7713 (<link to="IMachine::stateFilePath"/>).
7714
7715 If the machine is in the saved state, then, next time it is powered
7716 on, its execution state will be fully restored from the saved state
7717 file and the execution will continue from the point where the state
7718 was saved.
7719
7720 Similarly to snapshots, the current machine state can be discarded
7721 using <link to="IConsole::discardCurrentState"/>.
7722
7723 <h3>Taking and discarding snapshots</h3>
7724
7725 The table below briefly explains the meaning of every snapshot
7726 operation:
7727
7728 <table>
7729 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7730
7731 <tr><td><link to="IConsole::takeSnapshot"/></td>
7732
7733 <td>Save the current state of the virtual machine, including all
7734 settings, contents of normal hard disks and the current modifications
7735 to immutable hard disks (for online snapshots)</td>
7736
7737 <td>The current state is not changed (the machine will continue
7738 execution if it is being executed when the snapshot is
7739 taken)</td></tr>
7740
7741 <tr><td><link to="IConsole::discardSnapshot"/></td>
7742
7743 <td>Forget the state of the virtual machine stored in the snapshot:
7744 dismiss all saved settings and delete the saved execution state (for
7745 online snapshots)</td>
7746
7747 <td>Other snapshots (including child snapshots, if any) and the
7748 current state are not directly affected</td></tr>
7749
7750 <tr><td><link to="IConsole::discardCurrentState"/></td>
7751
7752 <td>Restore the current state of the virtual machine from the state
7753 stored in the current snapshot, including all settings and hard disk
7754 contents</td>
7755
7756 <td>The current state of the machine existed prior to this operation
7757 is lost</td></tr>
7758
7759 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7760
7761 <td>Completely revert the virtual machine to the state it was in
7762 before the current snapshot has been taken</td>
7763
7764 <td>The current state, as well as the current snapshot, are
7765 lost</td></tr>
7766
7767 </table>
7768
7769 </desc>
7770
7771 <attribute name="id" type="uuid" readonly="yes">
7772 <desc>UUID of the snapshot.</desc>
7773 </attribute>
7774
7775 <attribute name="name" type="wstring">
7776 <desc>Short name of the snapshot.</desc>
7777 </attribute>
7778
7779 <attribute name="description" type="wstring">
7780 <desc>Optional description of the snapshot.</desc>
7781 </attribute>
7782
7783 <attribute name="timeStamp" type="long long" readonly="yes">
7784 <desc>
7785 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7786 </desc>
7787 </attribute>
7788
7789 <attribute name="online" type="boolean" readonly="yes">
7790 <desc>
7791 <tt>true</tt> if this snapshot is an online snapshot and
7792 <tt>false</tt> otherwise.
7793
7794 <note>
7795 When this attribute is <tt>true</tt>, the
7796 <link to="IMachine::stateFilePath"/> attribute of the
7797 <link to="#machine"/> object associated with this snapshot
7798 will point to the saved state file. Otherwise, it will be
7799 <tt>null</tt>.
7800 </note>
7801 </desc>
7802 </attribute>
7803
7804 <attribute name="machine" type="IMachine" readonly="yes">
7805 <desc>
7806 Virtual machine this snapshot is taken on. This object
7807 stores all settings the machine had when taking this snapshot.
7808 <note>
7809 The returned machine object is immutable, i.e. no
7810 any settings can be changed.
7811 </note>
7812 </desc>
7813 </attribute>
7814
7815 <attribute name="parent" type="ISnapshot" readonly="yes">
7816 <desc>
7817 Parent snapshot (a snapshot this one is based on).
7818 <note>
7819 It's not an error to read this attribute on a snapshot
7820 that doesn't have a parent -- a null object will be
7821 returned to indicate this.
7822 </note>
7823 </desc>
7824 </attribute>
7825
7826 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
7827 <desc>
7828 Child snapshots (all snapshots having this one as a parent).
7829 <note>
7830 In the current implementation, there can be only one
7831 child snapshot, or no children at all, meaning this is the
7832 last (head) snapshot.
7833 </note>
7834 </desc>
7835 </attribute>
7836
7837 </interface>
7838
7839
7840 <!--
7841 // IMedia
7842 /////////////////////////////////////////////////////////////////////////
7843 -->
7844
7845 <enum
7846 name="MediaState"
7847 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7848 >
7849 <desc>
7850 Virtual media state.
7851 <see>IMedia</see>
7852 </desc>
7853
7854 <const name="NotCreated" value="0">
7855 <desc>
7856 Associated media storage does not exist (either was not created yet or
7857 was deleted).
7858 </desc>
7859 </const>
7860 <const name="Created" value="1">
7861 <desc>
7862 Associated storage exists and accessible.
7863 </desc>
7864 </const>
7865 <const name="LockedRead" value="2">
7866 <desc>
7867 Media is locked for reading, no data modification is possible.
7868 </desc>
7869 </const>
7870 <const name="LockedWrite" value="3">
7871 <desc>
7872 Media is locked for writing, no concurrent data reading or modification
7873 is possible.
7874 </desc>
7875 </const>
7876 <const name="Inaccessible" value="4">
7877 <desc>
7878 Associated media storage is not accessible.
7879 </desc>
7880 </const>
7881 <const name="Creating" value="5">
7882 <desc>
7883 Associated media storage is being created.
7884 </desc>
7885 </const>
7886 <const name="Deleting" value="6">
7887 <desc>
7888 Associated media storage is being deleted.
7889 </desc>
7890 </const>
7891 </enum>
7892
7893 <interface
7894 name="IMedium" extends="$unknown"
7895 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7896 wsmap="managed"
7897 >
7898 <desc>
7899 The IMedium interface is a common interface for all objects representing
7900 virtual media such as hard disks, DVD images.
7901
7902 Each medium is associated with a storage unit (such as a file on the host
7903 computer or a network resource) that holds actual data. The location of
7904 the storage unit is represented by the #location attribute. The value of
7905 this attribute is media type dependent.
7906
7907 The exact media type may be determined by querying the appropriate
7908 interface such as:
7909 <ul>
7910 <li>IHardDisk (virtual hard disks)</li>
7911 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7912 <li>IFloppyImage (raw floppy image files)</li>
7913 </ul>
7914
7915 Existing media are opened using the following methods, depending on the
7916 media type:
7917 <ul>
7918 <li><link to="IVirtualBox::openHardDisk"/></li>
7919 <li><link to="IVirtualBox::openDVDImage"/></li>
7920 <li><link to="IVirtualBox::openFloppyImage"/></li>
7921 </ul>
7922
7923 New hard disk media are created using the
7924 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7925 images are created outside VirtualBox, usually by storing a copy
7926 of the real medium of the corresponding type in a regular file.
7927
7928 <h3>Known Media</h3>
7929
7930 When an existing medium gets opened for the first time, it gets
7931 automatically remembered by the given VirtualBox installation or, in other
7932 words, becomes a <i>known medium</i>. Known media are stored in the media
7933 registry transparently maintained by VirtualBox and stored in settings
7934 files so that this registry is preserved when VirtualBox is not running.
7935
7936 Newly created virtual hard disks get remembered only when the associated
7937 storage unit is actually created (see IHardDisk for more details).
7938
7939 All known media can be enumerated using
7940 <link to="IVirtualBox::hardDisks"/>,
7941 <link to="IVirtualBox::DVDImages"/> and
7942 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7943 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7944 and similar methods or by location using
7945 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7946
7947 Only known media can be attached to virtual machines.
7948
7949 Removing known media from the media registry is performed when the given
7950 medium is closed using the <link to="#close"/> method or when its
7951 associated storage unit is deleted (only for hard disks).
7952
7953 <h3>Accessibility Checks</h3>
7954
7955 The given medium (with the created storage unit) is considered to be
7956 <i>accessible</i> when its storage unit can be successfully read from.
7957 Accessible media are indicated by the <link to="MediaState_Created"/>
7958 value of the <link to="#state"/> attribute. When the storage unit cannot
7959 be read (for example, because it is located on a disconnected network
7960 resource, or was accidentally deleted outside VirtualBox), the medium is
7961 considered to be <i>inaccessible</i> which is indicated by the
7962 <link to="MediaState_Inaccessible"/> state. The details about the reason
7963 of being inaccessible can be obtained using the
7964 <link to="#lastAccessError"/> attribute.
7965
7966 A new accessibility check is performed each time the <link to="#state"/>
7967 attribute is read. Please note that this check may take long time (several
7968 seconds or even minutes, depending on the storage unit location and
7969 format), and will block the calling thread until finished. For this
7970 reason, it is recommended to never read this attribute on the main UI
7971 thread to avoid making the UI unresponsive.
7972
7973 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7974 created for the first time), all known media are in the
7975 <link to="MediaState_Inaccessible"/> state but the value of the <link
7976 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7977 accessibility check is made on startup. This is done to make the
7978 VirtualBox object ready for serving requests as
7979 fast as possible and let the end-user application decide if it needs to
7980 check media accessibility right away or not.
7981 </desc>
7982
7983 <attribute name="id" type="uuid" readonly="yes">
7984 <desc>
7985 UUID of the medium. For a newly created medium, this value is a randomly
7986 generated UUID.
7987
7988 <note>
7989 For media in one of MediaState_NotCreated, MediaState_Creating or
7990 MediaState_Deleting states, the value of this property is undefined
7991 and will most likely be an empty UUID.
7992 </note>
7993 </desc>
7994 </attribute>
7995
7996 <attribute name="description" type="wstring">
7997 <desc>
7998 Optional description of the medium. For newly created media, the value
7999 of this attribute value is <tt>null</tt>.
8000
8001 Media types that don't support this attribute will return E_NOTIMPL in
8002 attempt to get or set this attribute's value.
8003
8004 <note>
8005 For some storage types, reading this attribute may return an outdated
8006 (last known) value when <link to="#state"/> is <link
8007 to="MediaState_Inaccessible"/> or <link
8008 to="MediaState_LockedWrite"/> because the value of this attribute is
8009 stored within the storage unit itself. Also note that changing the
8010 attribute value is not possible in such case, as well as when the
8011 medium is the <link to="MediaState_LockedRead"/> state.
8012 </note>
8013 </desc>
8014 </attribute>
8015
8016 <attribute name="state" type="MediaState" readonly="yes">
8017 <desc>
8018 Current media state. Inspect <link to="MediaState"/> values for details.
8019
8020 Reading this attribute may take long time because a new accessibility
8021 check of the storage unit is performed every time the attribute is read.
8022 This check may cause a significant delay if the storage unit of the
8023 given medium is, for example, a file located on a network share which is
8024 not currently accessible due to connectivity problems -- the call will
8025 not return until a timeout interval defined by the host OS for this
8026 operation expires.
8027
8028 If the last known state of the medium is <link to="MediaState_Created"/>
8029 and the accessibility check fails then the state would be set to
8030 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8031 may be used to get more details about the failure. If the state of the
8032 medium is <link to="MediaState_LockedRead"/> or
8033 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8034 non-null value of <link to="#lastAccessError"/> will indicate a failed
8035 accessibility check in this case.
8036
8037 Note that not all media states are applicable to certain media types.
8038 For example, states <link to="MediaState_NotCreated"/>,
8039 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8040 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8041 IFloppyImage media.
8042 </desc>
8043 </attribute>
8044
8045 <attribute name="location" type="wstring">
8046 <desc>
8047 Location of the storage unit holding media data.
8048
8049 The format of the location string is media type specific. For media
8050 types that use regular files in a host's file system, the location
8051 string is just a full file name.
8052
8053 Some media types may support changing the storage unit location by
8054 simply changing the value of this property. If this operation is not
8055 supported, the implementation will return E_NOTIMPL in attempt to set
8056 this attribute's value.
8057
8058 When setting a value of the location attribute which is a regular file
8059 in the host's file system, the given file name may be either relative to
8060 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8061 absolute. Note that if the given location specification does not contain
8062 the file extension part then a proper default extension will be
8063 automatically appended by the implementation depending on the media type.
8064 </desc>
8065 </attribute>
8066
8067 <attribute name="name" type="wstring" readonly="yes">
8068 <desc>
8069 Name of the storage unit holding media data.
8070
8071 The returned string is a short version of the <link to="#location"/>
8072 attribute that is suitable for representing the medium in situations
8073 where the full location specification is too long (such as lists
8074 and comboboxes in GUI frontends). This string is also used by frontends
8075 to sort the media list alphabetically when needed.
8076
8077 For example, for locations that are regular files in the host's file
8078 system, the value of this attribute is just a file name (+ extension),
8079 without the path specification.
8080
8081 Note that as opposed to the <link to="#location"/> attribute, the name
8082 attribute will not necessary be unique for a list of media of the
8083 given type and format.
8084 </desc>
8085 </attribute>
8086
8087 <attribute name="size" type="unsigned long long" readonly="yes">
8088 <desc>
8089 Physical size of the storage unit used to hold media data (in bytes).
8090
8091 <note>
8092 For media whose <link to="#state"/> is <link
8093 to="MediaState_Inaccessible"/>, the value of this property is the
8094 last known size. For <link to="MediaState_NotCreated"/> media,
8095 the returned value is zero.
8096 </note>
8097 </desc>
8098 </attribute>
8099
8100 <attribute name="lastAccessError" type="wstring" readonly="yes">
8101 <desc>
8102 Text message that represents the result of the last accessibility
8103 check.
8104
8105 Accessibility checks are performed each time the <link to="#state"/>
8106 attribute is read. A @c null string is returned if the last
8107 accessibility check was successful. A non-null string indicates a
8108 failure and should normally describe a reason of the failure (for
8109 example, a file read error).
8110 </desc>
8111 </attribute>
8112
8113 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
8114 <desc>
8115 Array of UUIDs of all machines this medium is attached to.
8116
8117 A <tt>null</tt> array is returned if this medium is not attached to any
8118 machine or to any machine's snapshot.
8119
8120 <note>
8121 The returned array will include a machine even if this medium is not
8122 attached to that machine in the current state but attached to it in
8123 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8124 details.
8125 </note>
8126 </desc>
8127 </attribute>
8128
8129 <method name="getSnapshotIds">
8130 <desc>
8131 Returns an array of UUIDs of all snapshots of the given machine where
8132 this medium is attached to it.
8133
8134 If the medium is attached to the machine in the current state, then the
8135 first element in the array will always be the ID of the queried machine
8136 (i.e. the value equal to the @c machineId argument), followed by
8137 snapshot IDs (if any).
8138
8139 If the medium is not attached to the machine in the current state, then
8140 the array will contain only snapshot IDs.
8141
8142 The returned array may be <tt>null</tt> if this medium is not attached
8143 to the given machine at all, neither in the current state nor in one of
8144 snapshots.
8145 </desc>
8146 <param name="machineId" type="uuid" dir="in">
8147 <desc>
8148 UUID of the machine to query.
8149 </desc>
8150 </param>
8151 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
8152 <desc>
8153 Array of snapshot UUIDs of the given machine using this medium.
8154 </desc>
8155 </param>
8156 </method>
8157
8158 <method name="lockRead">
8159 <desc>
8160 Locks this medium for reading.
8161
8162 The read lock is shared: many clients can simultaneously lock the
8163 same media for reading unless it is already locked for writing (see
8164 <link to="#lockWrite"/>) in which case an error is returned.
8165
8166 When the medium is locked for reading, it cannot be modified
8167 from within VirtualBox. This means that any method that changes
8168 the properties of this medium or contents of the storage unit
8169 will return an error (unless explicitly stated otherwise) and
8170 that an attempt to start a virtual machine that wants to modify
8171 the medium will also fail.
8172
8173 When the virtual machine is started up, it locks for reading all
8174 media it uses in read-only mode. If some media cannot be locked
8175 for reading, the startup procedure will fail.
8176
8177 The medium locked for reading must be unlocked using the <link
8178 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8179 can be nested and must be followed by the same number of paired
8180 <link to="#unlockRead"/> calls.
8181
8182 This method sets the media state to <link
8183 to="MediaState_LockedRead"/> on success. The state prior to
8184 this call must be <link to="MediaState_Created"/>, <link
8185 to="MediaState_Inaccessible"/> or <link
8186 to="MediaState_LockedRead"/>. 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 This method returns the current state of the medium
8193 <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="unlockRead">
8209 <desc>
8210 Cancels the read lock previously set by <link to="#lockRead"/>.
8211
8212 Either on success or on failure, this method returns the current state
8213 of the medium <b>after</b> the operation.
8214
8215 See <link to="#lockRead"/> for more details.
8216
8217 <result name="VBOX_E_INVALID_OBJECT_STATE">
8218 Medium not locked for reading.
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="lockWrite">
8230 <desc>
8231 Locks this medium for writing.
8232
8233 The write lock, as opposed to <link to="#lockRead"/>, is
8234 exclusive: there may be only one client that holds a write lock
8235 and there may be no read locks while the write lock is held.
8236
8237 When the medium is locked for writing, it cannot be modified
8238 from within VirtualBox and it is not guaranteed that the values
8239 of its properties are up-to-date. Any method that changes the
8240 properties of this medium or contents of the storage unit will
8241 return an error ((unless explicitly stated otherwise) and an
8242 attempt to start a virtual machine that wants to modify or to
8243 read the medium will also fail.
8244
8245 When the virtual machine is started up, it locks for writing all
8246 media it uses to write data to. If some media cannot be locked
8247 for writing, the startup procedure will fail.
8248
8249 The medium locked for writing must be unlocked using the <link
8250 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8251 can <b>not</b> be nested and must be followed by a paired <link
8252 to="#unlockWrite"/> call.
8253
8254 This method sets the media state to <link
8255 to="MediaState_LockedWrite"/> on success. The state prior to
8256 this call must be <link to="MediaState_Created"/> or <link
8257 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8258 media can be locked too. This is not an error; this method
8259 performs a logical lock that prevents modifications of this
8260 media through the VirtualBox API, not a physical lock of the
8261 underlying storage unit.
8262
8263 Either on success or on failure, this method returns the current
8264 state of the medium <b>before</b> the operation.
8265
8266 <result name="VBOX_E_INVALID_OBJECT_STATE">
8267 Invalid media state (e.g. not created, locked, inaccessible,
8268 creating, deleting).
8269 </result>
8270
8271 </desc>
8272 <param name="state" type="MediaState" dir="return">
8273 <desc>
8274 State of the medium after the operation.
8275 </desc>
8276 </param>
8277 </method>
8278
8279 <method name="unlockWrite">
8280 <desc>
8281 Cancels the write lock previously set by <link to="#lockWrite"/>.
8282
8283 Either on success or on failure, this method returns the current
8284 state of the medium <b>after</b> the operation.
8285
8286 See <link to="#lockWrite"/> for more details.
8287
8288 <result name="VBOX_E_INVALID_OBJECT_STATE">
8289 Medium not locked for writing.
8290 </result>
8291
8292 </desc>
8293 <param name="state" type="MediaState" dir="return">
8294 <desc>
8295 State of the medium after the operation.
8296 </desc>
8297 </param>
8298 </method>
8299
8300 <method name="close">
8301 <desc>
8302 Closes this medium.
8303
8304 The hard disk must not be attached to any known virtual machine
8305 and must not have any known child hard disks, otherwise the
8306 operation will fail.
8307
8308 When the hard disk is successfully closed, it gets removed from
8309 the list of remembered hard disks, but its storage unit is not
8310 deleted. In particular, this means that this hard disk can be
8311 later opened again using the <link
8312 to="IVirtualBox::openHardDisk"/> call.
8313
8314 Note that after this method successfully returns, the given hard
8315 disk object becomes uninitialized. This means that any attempt
8316 to call any of its methods or attributes will fail with the
8317 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8318
8319 <result name="VBOX_E_INVALID_OBJECT_STATE">
8320 Invalid media state (other than not created, created or
8321 inaccessible).
8322 </result>
8323 <result name="VBOX_E_OBJECT_IN_USE">
8324 Medium attached to virtual machine.
8325 </result>
8326 <result name="VBOX_E_FILE_ERROR">
8327 Settings file not accessible.
8328 </result>
8329 <result name="VBOX_E_XML_ERROR">
8330 Could not parse the settings file.
8331 </result>
8332
8333 </desc>
8334 </method>
8335
8336 </interface>
8337
8338
8339 <!--
8340 // IHardDisk
8341 /////////////////////////////////////////////////////////////////////////
8342 -->
8343
8344 <enum
8345 name="HardDiskType"
8346 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8347 >
8348 <desc>
8349 Virtual hard disk type.
8350 <see>IHardDisk</see>
8351 </desc>
8352
8353 <const name="Normal" value="0">
8354 <desc>
8355 Normal hard disk (attached directly or indirectly, preserved
8356 when taking snapshots).
8357 </desc>
8358 </const>
8359 <const name="Immutable" value="1">
8360 <desc>
8361 Immutable hard disk (attached indirectly, changes are wiped out
8362 after powering off the virtual machine).
8363 </desc>
8364 </const>
8365 <const name="Writethrough" value="2">
8366 <desc>
8367 Write through hard disk (attached directly, ignored when
8368 taking snapshots).
8369 </desc>
8370 </const>
8371 </enum>
8372
8373 <interface
8374 name="IHardDiskAttachment" extends="$unknown"
8375 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8376 wsmap="struct"
8377 >
8378 <desc>
8379 The IHardDiskAttachment interface represents a hard disk attachment of a
8380 virtual machine.
8381
8382 Every hard disk attachment specifies a slot of the virtual hard disk
8383 controller and a virtual hard disk attached to this slot.
8384
8385 The array of hard disk attachments is returned by
8386 <link to="IMachine::hardDiskAttachments"/>.
8387 </desc>
8388 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8389 <desc>Hard disk object associated with this attachment.</desc>
8390 </attribute>
8391
8392 <attribute name="controller" type="wstring" readonly="yes">
8393 <desc>Interface bus of this attachment.</desc>
8394 </attribute>
8395
8396 <attribute name="port" type="long" readonly="yes">
8397 <desc>Port number of this attachment.</desc>
8398 </attribute>
8399
8400 <attribute name="device" type="long" readonly="yes">
8401 <desc>Device slot number of this attachment.</desc>
8402 </attribute>
8403
8404 </interface>
8405
8406 <interface
8407 name="IHardDisk" extends="IMedium"
8408 uuid="a4d391a5-e2b1-474d-824e-2ff668a92d58"
8409 wsmap="managed"
8410 >
8411 <desc>
8412 The IHardDisk interface represents a virtual hard disk drive
8413 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8414
8415 Virtual hard disk objects virtualize the hard disk hardware and look like
8416 regular hard disks for the guest OS running inside the virtual machine.
8417
8418 <h3>Hard Disk Types</h3>
8419
8420 There are three types of hard disks:
8421 <link to="HardDiskType_Normal">Normal</link>,
8422 <link to="HardDiskType_Immutable">Immutable</link> and
8423 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8424 hard disk defines how the hard disk is attached to a virtual machine and
8425 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8426 machine with the attached hard disk is taken. The type of the hard disk is
8427 defined by the <link to="#type"/> attribute.
8428
8429 All hard disks can be also divided in two big groups: <i>base</i> hard
8430 disks and <i>differencing</i> hard disks. A base hard disk contains all
8431 sectors of the hard disk data in its storage unit and therefore can be
8432 used independently. On the contrary, a differencing hard disk contains
8433 only some part of the hard disk data (a subset of sectors) and needs
8434 another hard disk to get access to the missing sectors of data. This
8435 another hard disk is called a <i>parent</i> hard disk and defines a hard
8436 disk to which this differencing hard disk is known to be <i>linked to</i>.
8437 The parent hard disk may be itself a differencing hard disk. This
8438 way, differencing hard disks form a linked hard disk chain. This chain
8439 always ends with the base hard disk which is sometimes referred to as the
8440 root hard disk of this chain. Note that several differencing hard disks
8441 may be linked to the same parent hard disk. This way, all known hard disks
8442 form a hard disk tree which is based on their parent-child relationship.
8443
8444 Differencing hard disks can be distinguished from base hard disks by
8445 querying the <link to="#parent"/> attribute: base hard disks do not have
8446 parents they would depend on, so the value of this attribute is always
8447 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8448 the hard disk tree (from the child hard disk to its parent). It is also
8449 possible to walk down the tree using the <link to="#children"/>
8450 attribute.
8451
8452 Note that the type of all differencing hard disks is
8453 <link to="HardDiskType_Normal">Normal</link>; all other values are
8454 meaningless for them. Base hard disks may be of any type.
8455
8456 <h3>Creating Hard Disks</h3>
8457
8458 New base hard disks are created using
8459 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8460 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8461 disks are usually implicitly created by VirtualBox when needed but may
8462 also be created explicitly using <link to="#createDiffStorage"/>.
8463
8464 After the hard disk is successfully created (including the storage unit)
8465 or opened, it becomes a known hard disk (remembered in the internal media
8466 registry). Known hard disks can be attached to a virtual machine, accessed
8467 through <link to="IVirtualBox::getHardDisk"/> and
8468 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8469 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8470
8471 The following methods, besides <link to="IMedium::close"/>,
8472 automatically remove the hard disk from the media registry:
8473 <ul>
8474 <li><link to="#deleteStorage"/></li>
8475 <li><link to="#mergeTo"/></li>
8476 </ul>
8477
8478 If the storage unit of the hard disk is a regular file in the host's
8479 file system then the rules stated in the description of the
8480 <link to="IMedium::location"/> attribute apply when setting its value. In
8481 addition, a plain file name without any path may be given, in which case
8482 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8483 folder</link> will be prepended to it.
8484
8485 <h4>Automatic composition of the file name part</h4>
8486
8487 Another extension to the <link to="IMedium::location"/> attribute is that
8488 there is a possibility to cause VirtualBox to compose a unique value for
8489 the file name part of the location using the UUID of the hard disk. This
8490 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8491 e.g. before the storage unit is created, and works as follows. You set the
8492 value of the <link to="IMedium::location"/> attribute to a location
8493 specification which only contains the path specification but not the file
8494 name part and ends with either a forward slash or a backslash character.
8495 In response, VirtualBox will generate a new UUID for the hard disk and
8496 compose the file name using the following pattern:
8497 <pre>
8498 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8499 </pre>
8500 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8501 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8502 is the default extension for the storage format of this hard disk. After
8503 that, you may call any of the methods that create a new hard disk storage
8504 unit and they will use the generated UUID and file name.
8505
8506 <h3>Attaching Hard Disks</h3>
8507
8508 Hard disks are attached to virtual machines using the
8509 <link to="IMachine::attachHardDisk"/> method and detached using the
8510 <link to="IMachine::detachHardDisk"/> method. Depending on their
8511 <link to="#type"/>, hard disks are attached either
8512 <i>directly</i> or <i>indirectly</i>.
8513
8514 When a hard disk is being attached directly, it is associated with the
8515 virtual machine and used for hard disk operations when the machine is
8516 running. When a hard disk is being attached indirectly, a new differencing
8517 hard disk linked to it is implicitly created and this differencing hard
8518 disk is associated with the machine and used for hard disk operations.
8519 This also means that if <link to="IMachine::attachHardDisk"/> performs
8520 a direct attachment then the same hard disk will be returned in response
8521 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8522 an indirect attachment is performed then
8523 <link to="IMachine::getHardDisk"/> will return the implicitly created
8524 differencing hard disk, not the original one passed to <link
8525 to="IMachine::attachHardDisk"/>. The following table shows the
8526 dependency of the attachment type on the hard disk type:
8527
8528 <table>
8529 <tr>
8530 <th>Hard Disk Type</th>
8531 <th>Direct or Indirect?</th>
8532 </tr>
8533 <tr>
8534 <td>Normal (Base)</td>
8535 <td>
8536 Normal base hard disks that do not have children (i.e. differencing
8537 hard disks linked to them) and that are not already attached to
8538 virtual machines in snapshots are attached <b>directly</b>.
8539 Otherwise, they are attached <b>indirectly</b> because having
8540 dependent children or being part of the snapshot makes it impossible
8541 to modify hard disk contents without breaking the integrity of the
8542 dependent party. The <link to="#readOnly"/> attribute allows to
8543 quickly determine the kind of the attachment for the given hard
8544 disk. Note that if a normal base hard disk is to be indirectly
8545 attached to a virtual machine with snapshots then a special
8546 procedure called <i>smart attachment</i> is performed (see below).
8547 </td>
8548 </tr>
8549 <tr>
8550 <td>Normal (Differencing)</td>
8551 <td>
8552 Differencing hard disks are like normal base hard disks: attached
8553 <b>directly</b> if they do not have children and are not attached to
8554 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8555 that the smart attachment procedure is never performed for
8556 differencing hard disks.
8557 </td>
8558 </tr>
8559 <tr>
8560 <td>Immutable</td>
8561 <td>
8562 Immutable hard disks are always attached <b>indirectly</b> because
8563 they are designed to be non-writable. If an immutable hard disk is
8564 attached to a virtual machine with snapshots then a special
8565 procedure called smart attachment is performed (see below).
8566 </td>
8567 </tr>
8568 <tr>
8569 <td>Writethrough</td>
8570 <td>
8571 Writethrough hard disks are always attached <b>directly</b>, also as
8572 designed. This also means that writethrough hard disks cannot have
8573 other hard disks linked to them at all.
8574 </td>
8575 </tr>
8576 </table>
8577
8578 Note that the same hard disk, regardless of its type, may be attached to
8579 more than one virtual machine at a time. In this case, the machine that is
8580 started first gains exclusive access to the hard disk and attempts to
8581 start other machines having this hard disk attached will fail until the
8582 first machine is powered down.
8583
8584 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8585 that the given hard disk remains associated with the given machine after a
8586 successful <link to="IMachine::detachHardDisk"/> call until
8587 <link to="IMachine::saveSettings"/> is called to save all changes to
8588 machine settings to disk. This deferring is necessary to guarantee that
8589 the hard disk configuration may be restored at any time by a call to
8590 <link to="IMachine::discardSettings"/> before the settings
8591 are saved (committed).
8592
8593 Note that if <link to="IMachine::discardSettings"/> is called after
8594 indirectly attaching some hard disks to the machine but before a call to
8595 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8596 all differencing hard disks implicitly created by
8597 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8598 Such implicitly created hard disks will also be immediately deleted when
8599 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8600 call if it is made before <link to="IMachine::saveSettings"/>. This
8601 implicit deletion is safe because newly created differencing hard
8602 disks do not contain any user data.
8603
8604 However, keep in mind that detaching differencing hard disks that were
8605 implicitly created by <link to="IMachine::attachHardDisk"/>
8606 before the last <link to="IMachine::saveSettings"/> call will
8607 <b>not</b> implicitly delete them as they may already contain some data
8608 (for example, as a result of virtual machine execution). If these hard
8609 disks are no more necessary, the caller can always delete them explicitly
8610 using <link to="#deleteStorage"/> after they are actually de-associated
8611 from this machine by the <link to="IMachine::saveSettings"/> call.
8612
8613 <h3>Smart Attachment</h3>
8614
8615 When normal base or immutable hard disks are indirectly attached to a
8616 virtual machine then some additional steps are performed to make sure the
8617 virtual machine will have the most recent "view" of the hard disk being
8618 attached. These steps include walking through the machine's snapshots
8619 starting from the current one and going through ancestors up to the first
8620 snapshot. Hard disks attached to the virtual machine in all
8621 of the encountered snapshots are checked whether they are descendants of
8622 the given normal base or immutable hard disk. The first found child (which
8623 is the differencing hard disk) will be used instead of the normal base or
8624 immutable hard disk as a parent for creating a new differencing hard disk
8625 that will be actually attached to the machine. And only if no descendants
8626 are found or if the virtual machine does not have any snapshots then the
8627 normal base or immutable hard disk will be used itself as a parent for
8628 this differencing hard disk.
8629
8630 It is easier to explain what smart attachment does using the
8631 following example:
8632 <pre>
8633BEFORE attaching B.vdi: AFTER attaching B.vdi:
8634
8635Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8636 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8637 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8638 Snapshot 4 (none) Snapshot 4 (none)
8639 CurState (none) CurState (D3->D2.vdi)
8640
8641 NOT
8642 ...
8643 CurState (D3->B.vdi)
8644 </pre>
8645 The first column is the virtual machine configuration before the base hard
8646 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8647 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8648 mean that the hard disk that is actually attached to the machine is a
8649 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8650 another hard disk, <tt>B.vdi</tt>.
8651
8652 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8653 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8654 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8655 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8656 it cannot be attached directly and needs an indirect attachment (i.e.
8657 implicit creation of a new differencing hard disk). Due to the smart
8658 attachment procedure, the new differencing hard disk
8659 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8660 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8661 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8662 machine.
8663
8664 Note that if there is more than one descendant hard disk of the given base
8665 hard disk found in a snapshot, and there is an exact device, channel and
8666 bus match, then this exact match will be used. Otherwise, the youngest
8667 descendant will be picked up.
8668
8669 There is one more important aspect of the smart attachment procedure which
8670 is not related to snapshots at all. Before walking through the snapshots
8671 as described above, the backup copy of the current list of hard disk
8672 attachment is searched for descendants. This backup copy is created when
8673 the hard disk configuration is changed for the first time after the last
8674 <link to="IMachine::saveSettings"/> call and used by
8675 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8676 changes. When such a descendant is found in this backup copy, it will be
8677 simply re-attached back, without creating a new differencing hard disk for
8678 it. This optimization is necessary to make it possible to re-attach the
8679 base or immutable hard disk to a different bus, channel or device slot
8680 without losing the contents of the differencing hard disk actually
8681 attached to the machine in place of it.
8682 </desc>
8683
8684 <attribute name="format" type="wstring" readonly="yes">
8685 <desc>
8686 Storage format of this hard disk.
8687
8688 The value of this attribute is a string that specifies a backend used to
8689 store hard disk data. The storage format is defined when you create a
8690 new hard disk or automatically detected when you open an existing hard
8691 disk medium, and cannot be changed later.
8692
8693 The list of all storage formats supported by this VirtualBox
8694 installation can be obtained using
8695 <link to="ISystemProperties::hardDiskFormats"/>.
8696 </desc>
8697 </attribute>
8698
8699 <attribute name="type" type="HardDiskType">
8700 <desc>
8701 Type (role) of this hard disk.
8702
8703 The following constraints apply when changing the value of this
8704 attribute:
8705 <ul>
8706 <li>If a hard disk is attached to a virtual machine (either in the
8707 current state or in one of the snapshots), its type cannot be
8708 changed.
8709 </li>
8710 <li>As long as the hard disk has children, its type cannot be set
8711 to <link to="HardDiskType_Writethrough"/>.
8712 </li>
8713 <li>The type of all differencing hard disks is
8714 <link to="HardDiskType_Normal"/> and cannot be changed.
8715 </li>
8716 </ul>
8717
8718 The type of a newly created or opened hard disk is set to
8719 <link to="HardDiskType_Normal"/>.
8720 </desc>
8721 </attribute>
8722
8723 <attribute name="parent" type="IHardDisk" readonly="yes">
8724 <desc>
8725 Parent of this hard disk (a hard disk this hard disk is directly based
8726 on).
8727
8728 Only differencing hard disks have parents. For base (non-differencing)
8729 hard disks, <tt>null</tt> is returned.
8730 </desc>
8731 </attribute>
8732
8733 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8734 <desc>
8735 Children of this hard disk (all differencing hard disks directly based
8736 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8737 does not have any children.
8738 </desc>
8739 </attribute>
8740
8741 <attribute name="root" type="IHardDisk" readonly="yes">
8742 <desc>
8743 Root hard disk of this hard disk.
8744
8745 If this is a differencing hard disk, its root hard disk is the base hard
8746 disk the given hard disk branch starts from. For all other types of hard
8747 disks, this property returns the hard disk object itself (i.e. the same
8748 object this property is read on).
8749 </desc>
8750 </attribute>
8751
8752 <attribute name="readOnly" type="boolean" readonly="yes">
8753 <desc>
8754 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8755 otherwise.
8756
8757 A hard disk is considered to be read-only when its contents cannot be
8758 modified without breaking the integrity of other parties that depend on
8759 this hard disk such as its child hard disks or snapshots of virtual
8760 machines where this hard disk is attached to these machines. If there
8761 are no children and no such snapshots then there is no dependency and
8762 the hard disk is not read-only.
8763
8764 The value of this attribute can be used to determine the kind of the
8765 attachment that will take place when attaching this hard disk to a
8766 virtual machine. If the value is <tt>false</tt> then the hard disk will
8767 be attached directly. If the value is <tt>true</tt> then the hard disk
8768 will be attached indirectly by creating a new differencing child hard
8769 disk for that. See the interface description for more information.
8770
8771 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8772 disks are always read-only while all
8773 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8774 always not.
8775
8776 <note>
8777 The read-only condition represented by this attribute is related to
8778 the hard disk type and usage, not to the current
8779 <link to="IMedium::state">media state</link> and not to the read-only
8780 state of the storage unit.
8781 </note>
8782 </desc>
8783 </attribute>
8784
8785 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8786 <desc>
8787 Logical size of this hard disk (in megabytes), as reported to the
8788 guest OS running inside the virtual machine this disk is
8789 attached to. The logical size is defined when the hard disk is created
8790 and cannot be changed later.
8791
8792 <note>
8793 Reading this property on a differencing hard disk will return the size
8794 of its <link to="#root"/> hard disk.
8795 </note>
8796 <note>
8797 For hard disks whose state is <link to="#state"/> is <link
8798 to="MediaState_Inaccessible"/>, the value of this property is the
8799 last known logical size. For <link to="MediaState_NotCreated"/> hard
8800 disks, the returned value is zero.
8801 </note>
8802 </desc>
8803 </attribute>
8804
8805 <attribute name="autoReset" type="boolean">
8806 <desc>
8807 Whether this differencing hard disk will be automatically reset each
8808 time a virtual machine it is attached to is powered up.
8809
8810 See <link to="#reset()"/> for more information about resetting
8811 differencing hard disks.
8812
8813 <note>
8814 Reading this property on a base (non-differencing) hard disk will
8815 always <tt>false</tt>. Changing the value of this property in this
8816 case is not supported.
8817 </note>
8818
8819 <result name="VBOX_E_NOT_SUPPORTED">
8820 This is not a differencing hard disk (when changing the attribute
8821 value).
8822 </result>
8823 </desc>
8824 </attribute>
8825
8826 <!-- storage methods -->
8827
8828 <method name="getProperty">
8829 <desc>
8830 Returns the value of the custom hard disk property with the given name.
8831
8832 The list of all properties supported by the given hard disk format can
8833 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8834
8835 Note that if this method returns a <tt>null</tt> @a value, the requested
8836 property is supported but currently not assigned any value.
8837
8838 <result name="VBOX_E_OBJECT_NOT_FOUND">
8839 Requested property does not exist (not supported by the format).
8840 </result>
8841 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8842 </desc>
8843 <param name="name" type="wstring" dir="in">
8844 <desc>Name of the property to get.</desc>
8845 </param>
8846 <param name="value" type="wstring" dir="return">
8847 <desc>Current property value.</desc>
8848 </param>
8849 </method>
8850
8851 <method name="setProperty">
8852 <desc>
8853 Sets the value of the custom hard disk property with the given name.
8854
8855 The list of all properties supported by the given hard disk format can
8856 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8857
8858 Note that setting the property value to <tt>null</tt> is equivalent to
8859 deleting the existing value. A default value (if it is defined for this
8860 property) will be used by the format backend in this case.
8861
8862 <result name="VBOX_E_OBJECT_NOT_FOUND">
8863 Requested property does not exist (not supported by the format).
8864 </result>
8865 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8866 </desc>
8867 <param name="name" type="wstring" dir="in">
8868 <desc>Name of the property to set.</desc>
8869 </param>
8870 <param name="value" type="wstring" dir="in">
8871 <desc>Property value to set.</desc>
8872 </param>
8873 </method>
8874
8875 <method name="getProperties">
8876 <desc>
8877 Returns values for a group of properties in one call.
8878
8879 The names of the properties to get are specified using the @a names
8880 argument which is a list of comma-separated property names or
8881 <tt>null</tt> if all properties are to be returned. Note that currently
8882 the value of this argument is ignored and the method always returns all
8883 existing properties.
8884
8885 The list of all properties supported by the given hard disk format can
8886 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8887
8888 The method returns two arrays, the array of property names corresponding
8889 to the @a names argument and the current values of these properties.
8890 Both arrays have the same number of elements with each elemend at the
8891 given index in the first array corresponds to an element at the same
8892 index in the second array.
8893
8894 Note that for properties that do not have assigned values,
8895 <tt>null</tt> is returned at the appropriate index in the
8896 @a returnValues array.
8897
8898 </desc>
8899 <param name="names" type="wstring" dir="in">
8900 <desc>
8901 Names of properties to get.
8902 </desc>
8903 </param>
8904 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8905 <desc>Names of returned properties.</desc>
8906 </param>
8907 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8908 <desc>Values of returned properties.</desc>
8909 </param>
8910 </method>
8911
8912 <method name="setProperties">
8913 <desc>
8914 Sets values for a group of properties in one call.
8915
8916 The names of the properties to set are passed in the @a names
8917 array along with the new values for them in the @a values array. Both
8918 arrays have the same number of elements with each elemend at the given
8919 index in the first array corresponding to an element at the same index
8920 in the second array.
8921
8922 If there is at least one property name in @a names that is not valid,
8923 the method will fail before changing the values of any other properties
8924 from the @a names array.
8925
8926 Using this method over <link to="#setProperty"/> is preferred if you
8927 need to set several properties at once since it will result into less
8928 IPC calls.
8929
8930 The list of all properties supported by the given hard disk format can
8931 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8932
8933 Note that setting the property value to <tt>null</tt> is equivalent to
8934 deleting the existing value. A default value (if it is defined for this
8935 property) will be used by the format backend in this case.
8936 </desc>
8937 <param name="names" type="wstring" safearray="yes" dir="in">
8938 <desc>Names of properties to set.</desc>
8939 </param>
8940 <param name="values" type="wstring" safearray="yes" dir="in">
8941 <desc>Values of properties to set.</desc>
8942 </param>
8943 </method>
8944
8945 <!-- storage methods -->
8946
8947 <method name="createDynamicStorage">
8948 <desc>
8949 Starts creating a dynamically expanding hard disk storage unit in the
8950 background. The previous storage unit created for this object, if
8951 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8952 the operation will fail.
8953
8954 Before the operation starts, the hard disk is placed in
8955 <link to="MediaState_Creating"/> state. If the create operation
8956 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8957 state.
8958
8959 After the returned progress object reports that the operation has
8960 successfully completed, the media state will be set to <link
8961 to="MediaState_Created"/>, the hard disk will be remembered by this
8962 VirtualBox installation and may be attached to virtual machines.
8963
8964 <result name="VBOX_E_NOT_SUPPORTED">
8965 Dynamic storage creation operation is not supported. See <link
8966 to="IHardDiskFormat::capabilities"/>.
8967 </result>
8968 </desc>
8969 <param name="logicalSize" type="unsigned long long" dir="in">
8970 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8971 </param>
8972 <param name="progress" type="IProgress" dir="return">
8973 <desc>Progress object to track the operation completion.</desc>
8974 </param>
8975 </method>
8976
8977 <method name="createFixedStorage">
8978 <desc>
8979 Starts creating a fixed-size hard disk storage unit in the background.
8980 The previous storage unit created for this object, if
8981 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8982 the operation will fail.
8983
8984 Before the operation starts, the hard disk is placed to
8985 <link to="MediaState_Creating"/> state. If the create operation
8986 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8987 state.
8988
8989 After the returned progress object reports that the operation is
8990 successfully complete, the media state will be set to <link
8991 to="MediaState_Created"/>, the hard disk will be remembered by this
8992 VirtualBox installation and may be attached to virtual machines.
8993
8994 <result name="VBOX_E_NOT_SUPPORTED">
8995 Fixed storage creation operation is not supported. See
8996 <link to="IHardDiskFormat::capabilities"/>.
8997 </result>
8998 </desc>
8999 <param name="logicalSize" type="unsigned long long" dir="in">
9000 <desc>Logical size of the hard disk in megabytes.</desc>
9001 </param>
9002 <param name="progress" type="IProgress" dir="return">
9003 <desc>Progress object to track the operation completion.</desc>
9004 </param>
9005 </method>
9006
9007 <method name="deleteStorage">
9008 <desc>
9009 Starts deleting the storage unit of this hard disk.
9010
9011 The hard disk must not be attached to any known virtual machine and must
9012 not have any known child hard disks, otherwise the operation will fail.
9013 It will also fail if there is no storage unit to delete or if deletion
9014 is already in progress, or if the hard disk is being in use (locked for
9015 read or for write) or inaccessible. Therefore, the only valid state for
9016 this operation to succeed is <link to="MediaState_Created"/>.
9017
9018 Before the operation starts, the hard disk is placed to
9019 <link to="MediaState_Deleting"/> state and gets removed from the list
9020 of remembered hard disks (media registry). If the delete operation
9021 fails, the media will be remembered again and placed back to
9022 <link to="MediaState_Created"/> state.
9023
9024 After the returned progress object reports that the operation is
9025 complete, the media state will be set to
9026 <link to="MediaState_NotCreated"/> and you will be able to use one of
9027 the storage creation methods to create it again.
9028
9029 <see>#close()</see>
9030
9031 <result name="VBOX_E_OBJECT_IN_USE">
9032 Hard disk is attached to a virtual machine.
9033 </result>
9034 <result name="VBOX_E_NOT_SUPPORTED">
9035 Storage deletion is not allowed because neither of storage creation
9036 operations are supported. See
9037 <link to="IHardDiskFormat::capabilities"/>.
9038 </result>
9039
9040 <note>
9041 If the deletion operation fails, it is not guaranteed that the storage
9042 unit still exists. You may check the <link to="IMedium::state"/> value
9043 to answer this question.
9044 </note>
9045 </desc>
9046 <param name="progress" type="IProgress" dir="return">
9047 <desc>Progress object to track the operation completion.</desc>
9048 </param>
9049 </method>
9050
9051 <!-- diff methods -->
9052
9053 <method name="createDiffStorage">
9054 <desc>
9055 Starts creating an empty differencing storage unit based on this hard
9056 disk in the format and at the location defined by the @a target
9057 argument.
9058
9059 The target hard disk must be in <link to="MediaState_NotCreated"/>
9060 state (i.e. must not have an existing storage unit). Upon successful
9061 completion, this operation will set the type of the target hard disk to
9062 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9063 represent the differencing hard disk data in the given format (according
9064 to the storage format of the target object).
9065
9066 After the returned progress object reports that the operation is
9067 successfully complete, the target hard disk gets remembered by this
9068 VirtualBox installation and may be attached to virtual machines.
9069
9070 <note>
9071 The hard disk will be set to <link to="MediaState_LockedRead"/>
9072 state for the duration of this operation.
9073 </note>
9074 <result name="VBOX_E_OBJECT_IN_USE">
9075 Hard disk not in NotCreated state.
9076 </result>
9077 </desc>
9078 <param name="target" type="IHardDisk" dir="in">
9079 <desc>Target hard disk.</desc>
9080 </param>
9081 <param name="progress" type="IProgress" dir="return">
9082 <desc>Progress object to track the operation completion.</desc>
9083 </param>
9084 </method>
9085
9086 <method name="mergeTo">
9087 <desc>
9088 Starts merging the contents of this hard disk and all intermediate
9089 differencing hard disks in the chain to the given target hard disk.
9090
9091 The target hard disk must be either a descendant of this hard disk or
9092 its ancestor (otherwise this method will immediately return a failure).
9093 It follows that there are two logical directions of the merge operation:
9094 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9095 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9096 chain:
9097
9098 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9099
9100 Here, calling this method on the <tt>Base</tt> hard disk object with
9101 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9102 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9103 merge. Note that in both cases the contents of the resulting hard disk
9104 will be the same, the only difference is the hard disk object that takes
9105 the result of the merge operation. In case of the forward merge in the
9106 above example, the result will be written to <tt>Diff_2</tt>; in case of
9107 the backward merge, the result will be written to <tt>Base</tt>. In
9108 other words, the result of the operation is always stored in the target
9109 hard disk.
9110
9111 Upon successful operation completion, the storage units of all hard
9112 disks in the chain between this (source) hard disk and the target hard
9113 disk, including the source hard disk itself, will be automatically
9114 deleted and the relevant hard disk objects (including this hard disk)
9115 will become uninitialized. This means that any attempt to call any of
9116 their methods or attributes will fail with the
9117 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9118 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9119 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9120 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9121 disk itself since it will no longer be based on any other hard disk.
9122
9123 Considering the above, all of the following conditions must be met in
9124 order for the merge operation to succeed:
9125 <ul>
9126 <li>
9127 Neither this (source) hard disk nor any intermediate
9128 differencing hard disk in the chain between it and the target
9129 hard disk is attached to any virtual machine.
9130 </li>
9131 <li>
9132 Neither the source hard disk nor the target hard disk is an
9133 <link to="HardDiskType_Immutable"/> hard disk.
9134 </li>
9135 <li>
9136 The part of the hard disk tree from the source hard disk to the
9137 target hard disk is a linear chain, i.e. all hard disks in this
9138 chain have exactly one child which is the next hard disk in this
9139 chain. The only exception from this rule is the target hard disk in
9140 the forward merge operation; it is allowed to have any number of
9141 child hard disks because the merge operation will hot change its
9142 logical contents (as it is seen by the guest OS or by children).
9143 </li>
9144 <li>
9145 None of the involved hard disks are in
9146 <link to="MediaState_LockedRead"/> or
9147 <link to="MediaState_LockedWrite"/> state.
9148 </li>
9149 </ul>
9150
9151 <note>
9152 This (source) hard disk and all intermediates will be placed to <link
9153 to="MediaState_Deleting"/> state and the target hard disk will be
9154 placed to <link to="MediaState_LockedWrite"/> state and for the
9155 duration of this operation.
9156 </note>
9157 </desc>
9158 <param name="targetId" type="uuid" dir="in">
9159 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9160 </param>
9161 <param name="progress" type="IProgress" dir="return">
9162 <desc>Progress object to track the operation completion.</desc>
9163 </param>
9164 </method>
9165
9166 <!-- clone methods -->
9167
9168 <method name="cloneTo">
9169 <desc>
9170 Starts creating a clone of this hard disk in the format and at the
9171 location defined by the @a target argument.
9172
9173 The target hard disk must be in <link to="MediaState_NotCreated"/>
9174 state (i.e. must not have an existing storage unit). Upon successful
9175 completion, the cloned hard disk will contain exactly the same sector
9176 data as the hard disk being cloned, except that a new UUID for the clone
9177 will be randomly generated.
9178
9179 After the returned progress object reports that the operation is
9180 successfully complete, the target hard disk gets remembered by this
9181 VirtualBox installation and may be attached to virtual machines.
9182
9183 <note>
9184 If the cloned hard disk is a differencing hard disk, it will inherit
9185 parent dependency of the original hard disk.
9186 </note>
9187 <note>
9188 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9189 state for the duration of this operation.
9190 </note>
9191 </desc>
9192 <param name="target" type="IHardDisk" dir="in">
9193 <desc>Target hard disk.</desc>
9194 </param>
9195 <param name="progress" type="IProgress" dir="return">
9196 <desc>Progress object to track the operation completion.</desc>
9197 </param>
9198 </method>
9199
9200 <method name="flattenTo">
9201 <desc>
9202 Starts creating a deep (independent) clone of this hard disk in the
9203 format and at the location defined by the @a target argument.
9204
9205 This operation is similar to <link to="#cloneTo"/> except that when
9206 applied to a differencing hard disk, it will also copy missing hard disk
9207 data from all parent hard disks it is linked to. This will make the
9208 created clone an independent base hard disk that contains all hard disk
9209 data and does not need any other hard disks to operate.
9210
9211 After the returned progress object reports that the operation is
9212 successfully complete, the target hard disk gets remembered by this
9213 VirtualBox installation and may be attached to virtual machines.
9214
9215 <note>
9216 For base hard disks, this operation is identical to
9217 <link to="#cloneTo"/>.
9218 </note>
9219 <note>
9220 This hard disk and all its parent hard disks will be placed to <link
9221 to="MediaState_LockedRead"/> state for the duration of this
9222 operation.
9223 </note>
9224 </desc>
9225 <param name="target" type="IHardDisk" dir="in">
9226 <desc>Target hard disk.</desc>
9227 </param>
9228 <param name="progress" type="IProgress" dir="return">
9229 <desc>Progress object to track the operation completion.</desc>
9230 </param>
9231 </method>
9232
9233 <!-- other methods -->
9234
9235 <method name="compact">
9236 <desc>
9237 Starts compacting of this hard disk. This means that the disk is
9238 transformed into a possibly more compact storage representation.
9239 This potentially creates temporary images, which can require a
9240 substantial amount of additional disk space.
9241
9242 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9243 state and all its parent hard disks (if any) will be placed to
9244 <link to="MediaState_LockedRead"/> state for the duration of this
9245 operation.
9246 </desc>
9247 <param name="progress" type="IProgress" dir="return">
9248 <desc>Progress object to track the operation completion.</desc>
9249 </param>
9250 </method>
9251
9252 <method name="reset">
9253 <desc>
9254 Starts erasing the contents of this differencing hard disk.
9255
9256 This operation will reset the differencing hard disk to its initial
9257 state when it does not contain any sector data and any read operation is
9258 redirected to its parent hard disk.
9259
9260 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9261 for the duration of this operation.
9262
9263 <result name="VBOX_E_NOT_SUPPORTED">
9264 This is not a differencing hard disk.
9265 </result>
9266 <result name="VBOX_E_INVALID_OBJECT_STATE">
9267 Hard disk is not in <link to="MediaState_Created"/> or
9268 <link to="MediaState_Inaccessible"/> state.
9269 </result>
9270 </desc>
9271 <param name="progress" type="IProgress" dir="return">
9272 <desc>Progress object to track the operation completion.</desc>
9273 </param>
9274 </method>
9275
9276 </interface>
9277
9278
9279 <!--
9280 // IHardDiskFormat
9281 /////////////////////////////////////////////////////////////////////////
9282 -->
9283
9284 <enum
9285 name="DataType"
9286 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9287 >
9288 <const name="Int32" value="0"/>
9289 <const name="Int8" value="1"/>
9290 <const name="String" value="2"/>
9291 </enum>
9292
9293 <enum
9294 name="DataFlags"
9295 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9296 >
9297 <const name="None" value="0x00"/>
9298 <const name="Mandatory" value="0x01"/>
9299 <const name="Expert" value="0x02"/>
9300 <const name="Array" value="0x04"/>
9301 <const name="FlagMask" value="0x07"/>
9302 </enum>
9303
9304 <enum
9305 name="HardDiskFormatCapabilities"
9306 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9307 >
9308 <desc>
9309 Hard disk format capability flags.
9310 </desc>
9311
9312 <const name="Uuid" value="0x01">
9313 <desc>
9314 Supports UUIDs as expected by VirtualBox code.
9315 </desc>
9316 </const>
9317
9318 <const name="CreateFixed" value="0x02">
9319 <desc>
9320 Supports creating fixed size images, allocating all space instantly.
9321 </desc>
9322 </const>
9323
9324 <const name="CreateDynamic" value="0x04">
9325 <desc>
9326 Supports creating dynamically growing images, allocating space on
9327 demand.
9328 </desc>
9329 </const>
9330
9331 <const name="CreateSplit2G" value="0x08">
9332 <desc>
9333 Supports creating images split in chunks of a bit less than 2 GBytes.
9334 </desc>
9335 </const>
9336
9337 <const name="Differencing" value="0x10">
9338 <desc>
9339 Supports being used as a format for differencing hard disks (see <link
9340 to="IHardDisk::createDiffStorage"/>).
9341 </desc>
9342 </const>
9343
9344 <const name="Asynchronous" value="0x20">
9345 <desc>
9346 Supports asynchronous I/O operations for at least some configurations.
9347 </desc>
9348 </const>
9349
9350 <const name="File" value="0x40">
9351 <desc>
9352 The format backend operates on files (the <link to="IMedium::location"/>
9353 attribute of the hard disk specifies a file used to store hard disk
9354 data; for a list of supported file extensions see
9355 <link to="IHardDiskFormat::fileExtensions"/>).
9356 </desc>
9357 </const>
9358
9359 <const name="Properties" value="0x80">
9360 <desc>
9361 The format backend uses the property interface to configure the storage
9362 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9363 method is used to get access to properties supported by the given hard
9364 disk format).
9365 </desc>
9366 </const>
9367
9368 <const name="CapabilityMask" value="0xFF"/>
9369 </enum>
9370
9371 <interface
9372 name="IHardDiskFormat" extends="$unknown"
9373 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9374 wsmap="managed"
9375 >
9376 <desc>
9377 The IHardDiskFormat interface represents a virtual hard disk format.
9378
9379 Each hard disk format has an associated backend which is used to handle
9380 hard disks stored in this format. This interface provides information
9381 about the properties of the associated backend.
9382
9383 Each hard disk format is identified by a string represented by the
9384 <link to="#id"/> attribute. This string is used in calls like
9385 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9386 format.
9387
9388 The list of all supported hard disk formats can be obtained using
9389 <link to="ISystemProperties::hardDiskFormats"/>.
9390
9391 <see>IHardDisk</see>
9392 </desc>
9393
9394 <attribute name="id" type="wstring" readonly="yes">
9395 <desc>
9396 Identifier of this format.
9397
9398 The format identifier is a non-null non-empty ASCII string. Note that
9399 this string is case-insensitive. This means that, for example, all of
9400 the following strings:
9401 <pre>
9402 "VDI"
9403 "vdi"
9404 "VdI"</pre>
9405 refer to the same hard disk format.
9406
9407 This string is used in methods of other interfaces where it is necessary
9408 to specify a hard disk format, such as
9409 <link to="IVirtualBox::createHardDisk"/>.
9410 </desc>
9411 </attribute>
9412
9413 <attribute name="name" type="wstring" readonly="yes">
9414 <desc>
9415 Human readable description of this format.
9416
9417 Mainly for use in file open dialogs.
9418 </desc>
9419 </attribute>
9420
9421 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9422 <desc>
9423 Array of strings containing the supported file extensions.
9424
9425 The first extension in the array is the extension preferred by the
9426 backend. It is recommended to use this extension when specifying a
9427 location of the storage unit for a new hard disk.
9428
9429 Note that some backends do not work on files, so this array may be
9430 empty.
9431
9432 <see>IHardDiskFormat::capabilities</see>
9433 </desc>
9434 </attribute>
9435
9436 <attribute name="capabilities" type="unsigned long" readonly="yes">
9437 <desc>
9438 Capabilities of the format as a set of bit flags.
9439
9440 For the meaning of individual capability flags see
9441 <link to="HardDiskFormatCapabilities"/>.
9442 </desc>
9443 </attribute>
9444
9445 <method name="describeProperties">
9446 <desc>
9447 Returns several arrays describing the properties supported by this
9448 format.
9449
9450 An element with the given index in each array describes one
9451 property. Thus, the number of elements in each returned array is the
9452 same and corresponds to the number of supported properties.
9453
9454 The returned arrays are filled in only if the
9455 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9456 All arguments must be non-NULL.
9457
9458 <see>DataType</see>
9459 <see>DataFlags</see>
9460 </desc>
9461
9462 <param name="names" type="wstring" safearray="yes" dir="out">
9463 <desc>Array of property names.</desc>
9464 </param>
9465 <param name="description" type="wstring" safearray="yes" dir="out">
9466 <desc>Array of property descriptions.</desc>
9467 </param>
9468 <param name="types" type="DataType" safearray="yes" dir="out">
9469 <desc>Array of property types.</desc>
9470 </param>
9471 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9472 <desc>Array of property flags.</desc>
9473 </param>
9474 <param name="defaults" type="wstring" safearray="yes" dir="out">
9475 <desc>Array of default property values.</desc>
9476 </param>
9477 </method>
9478
9479 </interface>
9480
9481
9482 <!--
9483 // IFloppyImage
9484 /////////////////////////////////////////////////////////////////////////
9485 -->
9486
9487 <interface
9488 name="IFloppyImage" extends="IMedium"
9489 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9490 wsmap="managed"
9491 >
9492 <desc>
9493 The IFloppyImage interface represents a medium containing the image
9494 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9495 </desc>
9496
9497 </interface>
9498
9499
9500 <!--
9501 // IDVDImage
9502 /////////////////////////////////////////////////////////////////////////
9503 -->
9504
9505 <interface
9506 name="IDVDImage" extends="IMedium"
9507 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9508 wsmap="managed"
9509 >
9510 <desc>
9511 The IDVDImage interface represents a medium containing the image
9512 of a CD or DVD disk in the ISO format.
9513
9514 This is a subclass of <link to="IMedium" />; see remarks there.
9515 </desc>
9516
9517 </interface>
9518
9519
9520 <!--
9521 // IDVDDrive
9522 /////////////////////////////////////////////////////////////////////////
9523 -->
9524
9525 <interface
9526 name="IDVDDrive" extends="$unknown"
9527 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9528 wsmap="managed"
9529 >
9530 <desc>
9531 The IDVDDrive interface represents the virtual CD/DVD drive of the
9532 virtual machine. An object of this type is returned by
9533 <link to="IMachine::DVDDrive"/>.
9534 </desc>
9535
9536 <attribute name="state" type="DriveState" readonly="yes">
9537 <desc>Current drive state.</desc>
9538 </attribute>
9539
9540 <attribute name="passthrough" type="boolean">
9541 <desc>
9542 When a host drive is mounted and passthrough is enabled
9543 the guest OS will be able to directly send SCSI commands to
9544 the host drive. This enables the guest OS to use CD/DVD writers
9545 but is potentially dangerous.
9546 </desc>
9547 </attribute>
9548
9549 <method name="mountImage">
9550 <desc>Mounts a CD/DVD image with the specified UUID.
9551
9552 <result name="VBOX_E_FILE_ERROR">
9553 Invalid image file location.
9554 </result>
9555 <result name="VBOX_E_OBJECT_NOT_FOUND">
9556 Could not find a CD/DVD image matching @a imageID.
9557 </result>
9558 <result name="VBOX_E_INVALID_OBJECT_STATE">
9559 Invalid media state.
9560 </result>
9561
9562 </desc>
9563 <param name="imageId" type="uuid" dir="in"/>
9564 </method>
9565
9566 <method name="captureHostDrive">
9567 <desc>Captures the specified host CD/DVD drive.</desc>
9568 <param name="drive" type="IHostDVDDrive" dir="in"/>
9569 </method>
9570
9571 <method name="unmount">
9572 <desc>Unmounts the currently mounted image or host drive.</desc>
9573 </method>
9574
9575 <method name="getImage">
9576 <desc>Returns the currently mounted CD/DVD image.</desc>
9577 <param name="image" type="IDVDImage" dir="return"/>
9578 </method>
9579
9580 <method name="getHostDrive">
9581 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9582 <param name="drive" type="IHostDVDDrive" dir="return"/>
9583 </method>
9584
9585 </interface>
9586
9587
9588 <!--
9589 // IFloppyDrive
9590 /////////////////////////////////////////////////////////////////////////
9591 -->
9592
9593 <interface
9594 name="IFloppyDrive" extends="$unknown"
9595 uuid="159412cd-bab8-452e-8097-218a020825a6"
9596 wsmap="managed"
9597 >
9598 <desc>
9599 The IFloppyDrive interface represents the virtual floppy drive of the
9600 virtual machine. An object of this type is returned by
9601 <link to="IMachine::floppyDrive" />.
9602 </desc>
9603
9604 <attribute name="enabled" type="boolean">
9605 <desc>
9606 Flag whether the floppy drive is enabled. If it is disabled,
9607 the floppy drive will not be reported to the guest OS.
9608 </desc>
9609 </attribute>
9610
9611 <attribute name="state" type="DriveState" readonly="yes">
9612 <desc>Current drive state.</desc>
9613 </attribute>
9614
9615 <method name="mountImage">
9616 <desc>Mounts a floppy image with the specified UUID.
9617
9618 <result name="VBOX_E_FILE_ERROR">
9619 Invalid image file location.
9620 </result>
9621 <result name="VBOX_E_OBJECT_NOT_FOUND">
9622 Could not find a floppy image matching @a imageID.
9623 </result>
9624 <result name="VBOX_E_INVALID_OBJECT_STATE">
9625 Invalid media state.
9626 </result>
9627
9628 </desc>
9629 <param name="imageId" type="uuid" dir="in"/>
9630 </method>
9631
9632 <method name="captureHostDrive">
9633 <desc>Captures the specified host floppy drive.</desc>
9634 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9635 </method>
9636
9637 <method name="unmount">
9638 <desc>Unmounts the currently mounted image or host drive.</desc>
9639 </method>
9640
9641 <method name="getImage">
9642 <desc>Returns the currently mounted floppy image.</desc>
9643 <param name="image" type="IFloppyImage" dir="return"/>
9644 </method>
9645
9646 <method name="getHostDrive">
9647 <desc>Returns the currently mounted host floppy drive.</desc>
9648 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9649 </method>
9650
9651 </interface>
9652
9653
9654 <!--
9655 // IKeyboard
9656 /////////////////////////////////////////////////////////////////////////
9657 -->
9658
9659 <interface
9660 name="IKeyboard" extends="$unknown"
9661 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9662 wsmap="managed"
9663 >
9664 <desc>
9665 The IKeyboard interface represents the virtual machine's keyboard. Used
9666 in <link to="IConsole::keyboard"/>.
9667
9668 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9669 to the virtual machine.
9670
9671 </desc>
9672 <method name="putScancode">
9673 <desc>Sends a scancode to the keyboard.
9674
9675 <result name="VBOX_E_IPRT_ERROR">
9676 Could not send scan code to virtual keyboard.
9677 </result>
9678
9679 </desc>
9680 <param name="scancode" type="long" dir="in"/>
9681 </method>
9682
9683 <method name="putScancodes">
9684 <desc>Sends an array of scancodes to the keyboard.
9685
9686 <result name="VBOX_E_IPRT_ERROR">
9687 Could not send all scan codes to virtual keyboard.
9688 </result>
9689
9690 </desc>
9691 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9692 <param name="codesStored" type="unsigned long" dir="return"/>
9693 </method>
9694
9695 <method name="putCAD">
9696 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9697 function is nothing special, it is just a convenience function
9698 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9699
9700 <result name="VBOX_E_IPRT_ERROR">
9701 Could not send all scan codes to virtual keyboard.
9702 </result>
9703
9704 </desc>
9705 </method>
9706
9707 </interface>
9708
9709
9710 <!--
9711 // IMouse
9712 /////////////////////////////////////////////////////////////////////////
9713 -->
9714
9715 <enum
9716 name="MouseButtonState"
9717 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9718 >
9719 <desc>
9720 Mouse button state.
9721 </desc>
9722
9723 <const name="LeftButton" value="0x01"/>
9724 <const name="RightButton" value="0x02"/>
9725 <const name="MiddleButton" value="0x04"/>
9726 <const name="WheelUp" value="0x08"/>
9727 <const name="WheelDown" value="0x10"/>
9728 <const name="MouseStateMask" value="0x1F"/>
9729 </enum>
9730
9731 <interface
9732 name="IMouse" extends="$unknown"
9733 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9734 wsmap="managed"
9735 >
9736 <desc>
9737 The IMouse interface represents the virtual machine's mouse. Used in
9738 <link to="IConsole::mouse"/>.
9739
9740 Through this interface, the virtual machine's virtual mouse can be
9741 controlled.
9742 </desc>
9743
9744 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9745 <desc>
9746 Whether the guest OS supports absolute mouse pointer positioning
9747 or not.
9748 <note>
9749 VirtualBox Guest Tools need to be installed to the guest OS
9750 in order to enable absolute mouse positioning support.
9751 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9752 callback to be instantly informed about changes of this attribute
9753 during virtual machine execution.
9754 </note>
9755 <see><link to="#putMouseEventAbsolute"/></see>
9756 </desc>
9757 </attribute>
9758
9759 <method name="putMouseEvent">
9760 <desc>
9761 Initiates a mouse event using relative pointer movements
9762 along x and y axis.
9763
9764 <result name="E_ACCESSDENIED">
9765 Console not powered up.
9766 </result>
9767 <result name="VBOX_E_IPRT_ERROR">
9768 Could not send mouse event to virtual mouse.
9769 </result>
9770
9771 </desc>
9772
9773 <param name="dx" type="long" dir="in">
9774 <desc>
9775 Amount of pixels the mouse should move to the right.
9776 Negative values move the mouse to the left.
9777 </desc>
9778 </param>
9779 <param name="dy" type="long" dir="in">
9780 <desc>
9781 Amount of pixels the mouse should move downwards.
9782 Negative values move the mouse upwards.
9783 </desc>
9784 </param>
9785 <param name="dz" type="long" dir="in">
9786 <desc>
9787 Amount of mouse wheel moves.
9788 Positive values describe clockwise wheel rotations,
9789 negative values describe counterclockwise rotations.
9790 </desc>
9791 </param>
9792 <param name="buttonState" type="long" dir="in">
9793 <desc>
9794 The current state of mouse buttons. Every bit represents
9795 a mouse button as follows:
9796 <table>
9797 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9798 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9799 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9800 </table>
9801 A value of <tt>1</tt> means the corresponding button is pressed.
9802 otherwise it is released.
9803 </desc>
9804 </param>
9805 </method>
9806
9807 <method name="putMouseEventAbsolute">
9808 <desc>
9809 Positions the mouse pointer using absolute x and y coordinates.
9810 These coordinates are expressed in pixels and
9811 start from <tt>[1,1]</tt> which corresponds to the top left
9812 corner of the virtual display.
9813
9814 <result name="E_ACCESSDENIED">
9815 Console not powered up.
9816 </result>
9817 <result name="VBOX_E_IPRT_ERROR">
9818 Could not send mouse event to virtual mouse.
9819 </result>
9820
9821 <note>
9822 This method will have effect only if absolute mouse
9823 positioning is supported by the guest OS.
9824 </note>
9825
9826 <see><link to="#absoluteSupported"/></see>
9827 </desc>
9828
9829 <param name="x" type="long" dir="in">
9830 <desc>
9831 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9832 </desc>
9833 </param>
9834 <param name="y" type="long" dir="in">
9835 <desc>
9836 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9837 </desc>
9838 </param>
9839 <param name="dz" type="long" dir="in">
9840 <desc>
9841 Amount of mouse wheel moves.
9842 Positive values describe clockwise wheel rotations,
9843 negative values describe counterclockwise rotations.
9844 </desc>
9845 </param>
9846 <param name="buttonState" type="long" dir="in">
9847 <desc>
9848 The current state of mouse buttons. Every bit represents
9849 a mouse button as follows:
9850 <table>
9851 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9852 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9853 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9854 </table>
9855 A value of <tt>1</tt> means the corresponding button is pressed.
9856 otherwise it is released.
9857 </desc>
9858 </param>
9859 </method>
9860
9861 </interface>
9862
9863 <!--
9864 // IDisplay
9865 /////////////////////////////////////////////////////////////////////////
9866 -->
9867
9868 <enum
9869 name="FramebufferAccelerationOperation"
9870 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9871 >
9872 <desc>
9873 Frame buffer acceleration operation.
9874 </desc>
9875
9876 <const name="SolidFillAcceleration" value="1"/>
9877 <const name="ScreenCopyAcceleration" value="2"/>
9878 </enum>
9879
9880 <enum
9881 name="FramebufferPixelFormat"
9882 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9883 >
9884 <desc>
9885 Format of the video memory buffer. Constants represented by this enum can
9886 be used to test for particular values of <link
9887 to="IFramebuffer::pixelFormat"/>. See also <link
9888 to="IFramebuffer::requestResize"/>.
9889
9890 See also www.fourcc.org for more information about FOURCC pixel formats.
9891 </desc>
9892
9893 <const name="Opaque" value="0">
9894 <desc>
9895 Unknown buffer format (the user may not assume any particular format of
9896 the buffer).
9897 </desc>
9898 </const>
9899 <const name="FOURCC_RGB" value="0x32424752">
9900 <desc>
9901 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9902 bit layout).
9903 </desc>
9904 </const>
9905 </enum>
9906
9907 <interface
9908 name="IFramebuffer" extends="$unknown"
9909 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9910 wsmap="suppress"
9911 >
9912 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9913 <desc>Address of the start byte of the frame buffer.</desc>
9914 </attribute>
9915
9916 <attribute name="width" type="unsigned long" readonly="yes">
9917 <desc>Frame buffer width, in pixels.</desc>
9918 </attribute>
9919
9920 <attribute name="height" type="unsigned long" readonly="yes">
9921 <desc>Frame buffer height, in pixels.</desc>
9922 </attribute>
9923
9924 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9925 <desc>
9926 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9927 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9928 are: 8, 15, 16, 24 and 32.
9929 </desc>
9930 </attribute>
9931
9932 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9933 <desc>
9934 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9935 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9936 size of the scan line must be aligned to 32 bits.
9937 </desc>
9938 </attribute>
9939
9940 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9941 <desc>
9942 Frame buffer pixel format. It's either one of the values defined by <link
9943 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9944 <note>
9945 This attribute must never return <link
9946 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9947 <link to="#address"/> points to must be always known.
9948 </note>
9949 </desc>
9950 </attribute>
9951
9952 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9953 <desc>
9954 Defines whether this frame buffer uses the virtual video card's memory
9955 buffer (guest VRAM) directly or not. See <link
9956 to="IFramebuffer::requestResize"/> for more information.
9957 </desc>
9958 </attribute>
9959
9960 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9961 <desc>
9962 Hint from the frame buffer about how much of the standard
9963 screen height it wants to use for itself. This information is
9964 exposed to the guest through the VESA BIOS and VMMDev interface
9965 so that it can use it for determining its video mode table. It
9966 is not guaranteed that the guest respects the value.
9967 </desc>
9968 </attribute>
9969
9970 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9971 <desc>
9972 An alpha-blended overlay which is superposed over the frame buffer.
9973 The initial purpose is to allow the display of icons providing
9974 information about the VM state, including disk activity, in front
9975 ends which do not have other means of doing that. The overlay is
9976 designed to controlled exclusively by IDisplay. It has no locking
9977 of its own, and any changes made to it are not guaranteed to be
9978 visible until the affected portion of IFramebuffer is updated. The
9979 overlay can be created lazily the first time it is requested. This
9980 attribute can also return NULL to signal that the overlay is not
9981 implemented.
9982 </desc>
9983 </attribute>
9984
9985 <attribute name="winId" type="unsigned long long" readonly="yes">
9986 <desc>
9987 Platform-dependent identifier of the window where context of this
9988 frame buffer is drawn, or zero if there's no such window.
9989 </desc>
9990 </attribute>
9991
9992 <method name="lock">
9993 <desc>
9994 Locks the frame buffer.
9995 Gets called by the IDisplay object where this frame buffer is
9996 bound to.
9997 </desc>
9998 </method>
9999
10000 <method name="unlock">
10001 <desc>
10002 Unlocks the frame buffer.
10003 Gets called by the IDisplay object where this frame buffer is
10004 bound to.
10005 </desc>
10006 </method>
10007
10008 <method name="notifyUpdate">
10009 <desc>
10010 Informs about an update.
10011 Gets called by the display object where this buffer is
10012 registered.
10013 </desc>
10014 <param name="x" type="unsigned long" dir="in"/>
10015 <param name="y" type="unsigned long" dir="in"/>
10016 <param name="width" type="unsigned long" dir="in"/>
10017 <param name="height" type="unsigned long" dir="in"/>
10018 <param name="finished" type="boolean" dir="return"/>
10019 </method>
10020
10021 <method name="requestResize">
10022 <desc>
10023 Requests a size and pixel format change.
10024
10025 There are two modes of working with the video buffer of the virtual
10026 machine. The <i>indirect</i> mode implies that the IFramebuffer
10027 implementation allocates a memory buffer for the requested display mode
10028 and provides it to the virtual machine. In <i>direct</i> mode, the
10029 IFramebuffer implementation uses the memory buffer allocated and owned
10030 by the virtual machine. This buffer represents the video memory of the
10031 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10032 usually faster because the implementation gets a raw pointer to the
10033 guest VRAM buffer which it can directly use for visualizing the contents
10034 of the virtual display, as opposed to the indirect mode where the
10035 contents of guest VRAM are copied to the memory buffer provided by
10036 the implementation every time a display update occurs.
10037
10038 It is important to note that the direct mode is really fast only when
10039 the implementation uses the given guest VRAM buffer directly, for
10040 example, by blitting it to the window representing the virtual machine's
10041 display, which saves at least one copy operation comparing to the
10042 indirect mode. However, using the guest VRAM buffer directly is not
10043 always possible: the format and the color depth of this buffer may be
10044 not supported by the target window, or it may be unknown (opaque) as in
10045 case of text or non-linear multi-plane VGA video modes. In this case,
10046 the indirect mode (that is always available) should be used as a
10047 fallback: when the guest VRAM contents are copied to the
10048 implementation-provided memory buffer, color and format conversion is
10049 done automatically by the underlying code.
10050
10051 The @a pixelFormat parameter defines whether the direct mode is
10052 available or not. If @a pixelFormat is <link
10053 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10054 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10055 @a bytesPerLine parameters must be ignored and the implementation must use
10056 the indirect mode (where it provides its own buffer in one of the
10057 supported formats). In all other cases, @a pixelFormat together with
10058 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10059 buffer pointed to by the @a VRAM parameter and the implementation is
10060 free to choose which mode to use. To indicate that this frame buffer uses
10061 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10062 attribute must return <tt>true</tt> and <link to="#address"/> must
10063 return exactly the same address that is passed in the @a VRAM parameter
10064 of this method; otherwise it is assumed that the indirect strategy is
10065 chosen.
10066
10067 The @a width and @a height parameters represent the size of the
10068 requested display mode in both modes. In case of indirect mode, the
10069 provided memory buffer should be big enough to store data of the given
10070 display mode. In case of direct mode, it is guaranteed that the given
10071 @a VRAM buffer contains enough space to represent the display mode of the
10072 given size. Note that this frame buffer's <link to="#width"/> and <link
10073 to="#height"/> attributes must return exactly the same values as
10074 passed to this method after the resize is completed (see below).
10075
10076 The @a finished output parameter determines if the implementation has
10077 finished resizing the frame buffer or not. If, for some reason, the
10078 resize cannot be finished immediately during this call, @a finished
10079 must be set to @c false, and the implementation must call
10080 <link to="IDisplay::resizeCompleted"/> after it has returned from
10081 this method as soon as possible. If @a finished is @c false, the
10082 machine will not call any frame buffer methods until
10083 <link to="IDisplay::resizeCompleted"/> is called.
10084
10085 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10086 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10087 this frame buffer must return exactly the same values as specified in the
10088 parameters of this method, after the resize is completed. If the
10089 indirect mode is chosen, these attributes must return values describing
10090 the format of the implementation's own memory buffer <link
10091 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10092 value must always correlate with <link to="#pixelFormat"/>. Note that
10093 the <link to="#pixelFormat"/> attribute must never return <link
10094 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10095
10096 <note>
10097 This method is called by the IDisplay object under the
10098 <link to="#lock"/> provided by this IFramebuffer
10099 implementation. If this method returns @c false in @a finished, then
10100 this lock is not released until
10101 <link to="IDisplay::resizeCompleted"/> is called.
10102 </note>
10103 </desc>
10104 <param name="screenId" type="unsigned long" dir="in">
10105 <desc>
10106 Logical screen number. Must be used in the corresponding call to
10107 <link to="IDisplay::resizeCompleted"/> if this call is made.
10108 </desc>
10109 </param>
10110 <param name="pixelFormat" type="unsigned long" dir="in">
10111 <desc>
10112 Pixel format of the memory buffer pointed to by @a VRAM.
10113 See also <link to="FramebufferPixelFormat"/>.
10114 </desc>
10115 </param>
10116 <param name="VRAM" type="octet" mod="ptr" dir="in">
10117 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10118 </param>
10119 <param name="bitsPerPixel" type="unsigned long" dir="in">
10120 <desc>Color depth, bits per pixel.</desc>
10121 </param>
10122 <param name="bytesPerLine" type="unsigned long" dir="in">
10123 <desc>Size of one scan line, in bytes.</desc>
10124 </param>
10125 <param name="width" type="unsigned long" dir="in">
10126 <desc>Width of the guest display, in pixels.</desc>
10127 </param>
10128 <param name="height" type="unsigned long" dir="in">
10129 <desc>Height of the guest display, in pixels.</desc>
10130 </param>
10131 <param name="finished" type="boolean" dir="return">
10132 <desc>
10133 Can the VM start using the new frame buffer immediately
10134 after this method returns or it should wait for
10135 <link to="IDisplay::resizeCompleted"/>.
10136 </desc>
10137 </param>
10138 </method>
10139
10140 <method name="operationSupported">
10141 <desc>
10142 Returns whether the given acceleration operation is supported
10143 by the IFramebuffer implementation. If not, the display object
10144 will not attempt to call the corresponding IFramebuffer entry
10145 point. Even if an operation is indicated as supported, the
10146 IFramebuffer implementation always has the option to return non
10147 supported from the corresponding acceleration method in which
10148 case the operation will be performed by the display engine. This
10149 allows for reduced IFramebuffer implementation complexity where
10150 only common cases are handled.
10151 </desc>
10152 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
10153 <param name="supported" type="boolean" dir="return"/>
10154 </method>
10155
10156 <method name="videoModeSupported">
10157 <desc>
10158 Returns whether the frame buffer implementation is willing to
10159 support a given video mode. In case it is not able to render
10160 the video mode (or for some reason not willing), it should
10161 return false. Usually this method is called when the guest
10162 asks the VMM device whether a given video mode is supported
10163 so the information returned is directly exposed to the guest.
10164 It is important that this method returns very quickly.
10165 </desc>
10166 <param name="width" type="unsigned long" dir="in"/>
10167 <param name="height" type="unsigned long" dir="in"/>
10168 <param name="bpp" type="unsigned long" dir="in"/>
10169 <param name="supported" type="boolean" dir="return"/>
10170 </method>
10171
10172 <method name="solidFill">
10173 <desc>
10174 Fills the specified rectangle on screen with a solid color.
10175 </desc>
10176 <param name="x" type="unsigned long" dir="in"/>
10177 <param name="y" type="unsigned long" dir="in"/>
10178 <param name="width" type="unsigned long" dir="in"/>
10179 <param name="height" type="unsigned long" dir="in"/>
10180 <param name="color" type="unsigned long" dir="in"/>
10181 <param name="handled" type="boolean" dir="return"/>
10182 </method>
10183
10184 <method name="copyScreenBits">
10185 <desc>
10186 Copies specified rectangle on the screen.
10187 </desc>
10188 <param name="xDst" type="unsigned long" dir="in"/>
10189 <param name="yDst" type="unsigned long" dir="in"/>
10190 <param name="xSrc" type="unsigned long" dir="in"/>
10191 <param name="ySrc" type="unsigned long" dir="in"/>
10192 <param name="width" type="unsigned long" dir="in"/>
10193 <param name="height" type="unsigned long" dir="in"/>
10194 <param name="handled" type="boolean" dir="return"/>
10195 </method>
10196
10197 <method name="getVisibleRegion">
10198 <desc>
10199 Returns the visible region of this frame buffer.
10200
10201 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10202 @a count parameter is ignored and the number of elements necessary to
10203 describe the current visible region is returned in @a countCopied.
10204
10205 If @a rectangles is not <tt>NULL</tt> but @a count is less
10206 than the required number of elements to store region data, the method
10207 will report a failure. If @a count is equal or greater than the
10208 required number of elements, then the actual number of elements copied
10209 to the provided array will be returned in @a countCopied.
10210
10211 <note>
10212 The address of the provided array must be in the process space of
10213 this IFramebuffer object.
10214 </note>
10215 <note>
10216 Method not yet implemented.
10217 </note>
10218 </desc>
10219 <param name="rectangles" type="octet" mod="ptr" dir="in">
10220 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10221 </param>
10222 <param name="count" type="unsigned long" dir="in">
10223 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10224 </param>
10225 <param name="countCopied" type="unsigned long" dir="return">
10226 <desc>Number of elements copied to the @a rectangles array.</desc>
10227 </param>
10228 </method>
10229
10230 <method name="setVisibleRegion">
10231 <desc>
10232 Suggests a new visible region to this frame buffer. This region
10233 represents the area of the VM display which is a union of regions of
10234 all top-level windows of the guest operating system running inside the
10235 VM (if the Guest Additions for this system support this
10236 functionality). This information may be used by the frontends to
10237 implement the seamless desktop integration feature.
10238
10239 <note>
10240 The address of the provided array must be in the process space of
10241 this IFramebuffer object.
10242 </note>
10243 <note>
10244 The IFramebuffer implementation must make a copy of the provided
10245 array of rectangles.
10246 </note>
10247 <note>
10248 Method not yet implemented.
10249 </note>
10250 </desc>
10251 <param name="rectangles" type="octet" mod="ptr" dir="in">
10252 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10253 </param>
10254 <param name="count" type="unsigned long" dir="in">
10255 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10256 </param>
10257 </method>
10258
10259 </interface>
10260
10261 <interface
10262 name="IFramebufferOverlay" extends="IFramebuffer"
10263 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10264 wsmap="suppress"
10265 >
10266 <desc>
10267 The IFramebufferOverlay interface represents an alpha blended overlay
10268 for displaying status icons above an IFramebuffer. It is always created
10269 not visible, so that it must be explicitly shown. It only covers a
10270 portion of the IFramebuffer, determined by its width, height and
10271 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10272 that order) format, and may be written to directly. Do re-read the
10273 width though, after setting it, as it may be adjusted (increased) to
10274 make it more suitable for the front end.
10275 </desc>
10276 <attribute name="x" type="unsigned long" readonly="yes">
10277 <desc>X position of the overlay, relative to the frame buffer.</desc>
10278 </attribute>
10279
10280 <attribute name="y" type="unsigned long" readonly="yes">
10281 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10282 </attribute>
10283
10284 <attribute name="visible" type="boolean" readonly="no">
10285 <desc>
10286 Whether the overlay is currently visible.
10287 </desc>
10288 </attribute>
10289
10290 <attribute name="alpha" type="unsigned long" readonly="no">
10291 <desc>
10292 The global alpha value for the overlay. This may or may not be
10293 supported by a given front end.
10294 </desc>
10295 </attribute>
10296
10297 <method name="move">
10298 <desc>
10299 Changes the overlay's position relative to the IFramebuffer.
10300 </desc>
10301 <param name="x" type="unsigned long" dir="in"/>
10302 <param name="y" type="unsigned long" dir="in"/>
10303 </method>
10304
10305 </interface>
10306
10307 <interface
10308 name="IDisplay" extends="$unknown"
10309 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10310 wsmap="suppress"
10311 >
10312 <desc>
10313 The IDisplay interface represents the virtual machine's display.
10314
10315 The object implementing this interface is contained in each
10316 <link to="IConsole::display"/> attribute and represents the visual
10317 output of the virtual machine.
10318
10319 The virtual display supports pluggable output targets represented by the
10320 IFramebuffer interface. Examples of the output target are a window on
10321 the host computer or an RDP session's display on a remote computer.
10322 </desc>
10323 <attribute name="width" type="unsigned long" readonly="yes">
10324 <desc>Current display width.</desc>
10325 </attribute>
10326
10327 <attribute name="height" type="unsigned long" readonly="yes">
10328 <desc>Current display height.</desc>
10329 </attribute>
10330
10331 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10332 <desc>
10333 Current guest display color depth. Note that this may differ
10334 from <link to="IFramebuffer::bitsPerPixel"/>.
10335 </desc>
10336 </attribute>
10337
10338 <method name="setupInternalFramebuffer">
10339 <desc>
10340 Prepares an internally managed frame buffer.
10341 </desc>
10342 <param name="depth" type="unsigned long" dir="in"/>
10343 </method>
10344
10345 <method name="lockFramebuffer">
10346 <desc>
10347 Requests access to the internal frame buffer.
10348
10349 <result name="VBOX_E_NOT_SUPPORTED">
10350 Attempt to lock a non-internal frame buffer.
10351 </result>
10352
10353 </desc>
10354 <param name="address" type="octet" mod="ptr" dir="return"/>
10355 </method>
10356
10357 <method name="unlockFramebuffer">
10358 <desc>
10359 Releases access to the internal frame buffer.
10360
10361 <result name="VBOX_E_NOT_SUPPORTED">
10362 Attempt to unlock a non-internal frame buffer.
10363 </result>
10364
10365 </desc>
10366 </method>
10367
10368 <method name="registerExternalFramebuffer">
10369 <desc>
10370 Registers an external frame buffer.
10371 </desc>
10372 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10373 </method>
10374
10375 <method name="setFramebuffer">
10376 <desc>
10377 Sets the framebuffer for given screen.
10378 </desc>
10379 <param name="screenId" type="unsigned long" dir="in"/>
10380 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10381 </method>
10382
10383 <method name="getFramebuffer">
10384 <desc>
10385 Queries the framebuffer for given screen.
10386 </desc>
10387 <param name="screenId" type="unsigned long" dir="in"/>
10388 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10389 <param name="xOrigin" type="long" dir="out"/>
10390 <param name="yOrigin" type="long" dir="out"/>
10391 </method>
10392
10393 <method name="setVideoModeHint">
10394 <desc>
10395 Asks VirtualBox to request the given video mode from
10396 the guest. This is just a hint and it cannot be guaranteed
10397 that the requested resolution will be used. Guest Additions
10398 are required for the request to be seen by guests. The caller
10399 should issue the request and wait for a resolution change and
10400 after a timeout retry.
10401
10402 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10403 parameters means that the corresponding values should be taken from the
10404 current video mode (i.e. left unchanged).
10405
10406 If the guest OS supports multi-monitor configuration then the @a display
10407 parameter specifies the number of the guest display to send the hint to:
10408 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10409 so on. If the multi-monitor configuration is not supported, @a display
10410 must be <tt>0</tt>.
10411
10412 <result name="E_INVALIDARG">
10413 The @a display is not associated with any monitor.
10414 </result>
10415
10416 </desc>
10417 <param name="width" type="unsigned long" dir="in"/>
10418 <param name="height" type="unsigned long" dir="in"/>
10419 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10420 <param name="display" type="unsigned long" dir="in"/>
10421 </method>
10422
10423 <method name="setSeamlessMode">
10424 <desc>
10425 Enables or disables seamless guest display rendering (seamless desktop
10426 integration) mode.
10427 <note>
10428 Calling this method has no effect if <link
10429 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10430 </note>
10431 </desc>
10432 <param name="enabled" type="boolean" dir="in"/>
10433 </method>
10434
10435 <method name="takeScreenShot">
10436 <desc>
10437 Takes a screen shot of the requested size and copies it to the
10438 32-bpp buffer allocated by the caller.
10439
10440 <result name="E_NOTIMPL">
10441 Feature not implemented.
10442 </result>
10443 <result name="VBOX_E_IPRT_ERROR">
10444 Could not take a screenshot.
10445 </result>
10446
10447 </desc>
10448 <param name="address" type="octet" mod="ptr" dir="in"/>
10449 <param name="width" type="unsigned long" dir="in"/>
10450 <param name="height" type="unsigned long" dir="in"/>
10451 </method>
10452
10453 <method name="drawToScreen">
10454 <desc>
10455 Draws a 32-bpp image of the specified size from the given buffer
10456 to the given point on the VM display.
10457
10458 <result name="E_NOTIMPL">
10459 Feature not implemented.
10460 </result>
10461 <result name="VBOX_E_IPRT_ERROR">
10462 Could not draw to screen.
10463 </result>
10464
10465 </desc>
10466 <param name="address" type="octet" mod="ptr" dir="in"/>
10467 <param name="x" type="unsigned long" dir="in"/>
10468 <param name="y" type="unsigned long" dir="in"/>
10469 <param name="width" type="unsigned long" dir="in"/>
10470 <param name="height" type="unsigned long" dir="in"/>
10471 </method>
10472
10473 <method name="invalidateAndUpdate">
10474 <desc>
10475 Does a full invalidation of the VM display and instructs the VM
10476 to update it.
10477
10478 <result name="VBOX_E_IPRT_ERROR">
10479 Could not invalidate and update screen.
10480 </result>
10481
10482 </desc>
10483 </method>
10484
10485 <method name="resizeCompleted">
10486 <desc>
10487 Signals that a framebuffer has completed the resize operation.
10488
10489 <result name="VBOX_E_NOT_SUPPORTED">
10490 Operation only valid for external frame buffers.
10491 </result>
10492
10493 </desc>
10494 <param name="screenId" type="unsigned long" dir="in"/>
10495 </method>
10496
10497 <method name="updateCompleted">
10498 <desc>
10499 Signals that a framebuffer has completed the update operation.
10500
10501 <result name="VBOX_E_NOT_SUPPORTED">
10502 Operation only valid for external frame buffers.
10503 </result>
10504
10505 </desc>
10506 </method>
10507
10508 </interface>
10509
10510 <!--
10511 // INetworkAdapter
10512 /////////////////////////////////////////////////////////////////////////
10513 -->
10514
10515 <enum
10516 name="NetworkAttachmentType"
10517 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
10518 >
10519 <desc>
10520 Network attachment type.
10521 </desc>
10522
10523 <const name="Null" value="0">
10524 <desc>Null value, also means "not attached".</desc>
10525 </const>
10526 <const name="NAT" value="1"/>
10527 <const name="Bridged" value="2"/>
10528 <const name="Internal" value="3"/>
10529 <const name="HostOnly" value="4"/>
10530 </enum>
10531
10532 <enum
10533 name="NetworkAdapterType"
10534 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10535 >
10536 <desc>
10537 Network adapter type.
10538 </desc>
10539
10540 <const name="Null" value="0">
10541 <desc>Null value (never used by the API).</desc>
10542 </const>
10543 <const name="Am79C970A" value="1"/>
10544 <const name="Am79C973" value="2"/>
10545 <const name="I82540EM" value="3"/>
10546 <const name="I82543GC" value="4"/>
10547 </enum>
10548
10549 <interface
10550 name="INetworkAdapter" extends="$unknown"
10551 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
10552 wsmap="managed"
10553 >
10554 <desc>
10555 Represents a virtual network adapter that is attached to a virtual machine.
10556 Each virtual machine has a fixed number of network adapter slots with one
10557 instance of this attached to each of them. Call
10558 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
10559 is attached to a given slot in a given machine.
10560
10561 Each network adapter can be in one of five attachment modes, which are
10562 represented by the <link to="NetworkAttachmentType" /> enumeration;
10563 see the <link to="#attachmentType" /> attribute.
10564 </desc>
10565
10566 <attribute name="adapterType" type="NetworkAdapterType">
10567 <desc>
10568 Type of the virtual network adapter. Depending on this value,
10569 VirtualBox will provide a different virtual network hardware
10570 to the guest.
10571 </desc>
10572 </attribute>
10573
10574 <attribute name="slot" type="unsigned long" readonly="yes">
10575 <desc>
10576 Slot number this adapter is plugged into. Corresponds to
10577 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10578 to obtain this instance.
10579 </desc>
10580 </attribute>
10581
10582 <attribute name="enabled" type="boolean">
10583 <desc>
10584 Flag whether the network adapter is present in the
10585 guest system. If disabled, the virtual guest hardware will
10586 not contain this network adapter. Can only be changed when
10587 the VM is not running.
10588 </desc>
10589 </attribute>
10590
10591 <attribute name="MACAddress" type="wstring">
10592 <desc>
10593 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10594 it to NULL, VirtualBox will generate a unique MAC address.
10595 </desc>
10596 </attribute>
10597
10598 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10599
10600 <attribute name="hostInterface" type="wstring">
10601 <desc>
10602 Name of the host network interface the VM is attached to.
10603 </desc>
10604 </attribute>
10605
10606 <attribute name="internalNetwork" type="wstring">
10607 <desc>
10608 Name of the internal network the VM is attached to.
10609 </desc>
10610 </attribute>
10611
10612 <attribute name="NATNetwork" type="wstring">
10613 <desc>
10614 Name of the NAT network the VM is attached to.
10615 </desc>
10616 </attribute>
10617
10618 <attribute name="cableConnected" type="boolean">
10619 <desc>
10620 Flag whether the adapter reports the cable as connected or not.
10621 It can be used to report offline situations to a VM.
10622 </desc>
10623 </attribute>
10624
10625 <attribute name="lineSpeed" type="unsigned long">
10626 <desc>
10627 Line speed reported by custom drivers, in units of 1 kbps.
10628 </desc>
10629 </attribute>
10630
10631 <attribute name="traceEnabled" type="boolean">
10632 <desc>
10633 Flag whether network traffic from/to the network card should be traced.
10634 Can only be toggled when the VM is turned off.
10635 </desc>
10636 </attribute>
10637
10638 <attribute name="traceFile" type="wstring">
10639 <desc>
10640 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10641 will be used.
10642 </desc>
10643 </attribute>
10644
10645 <method name="attachToNAT">
10646 <desc>
10647 Attach the network adapter to the Network Address Translation (NAT) interface.
10648 </desc>
10649 </method>
10650
10651 <method name="attachToBridgedInterface">
10652 <desc>
10653 Attach the network adapter to a bridged host interface.
10654 </desc>
10655 </method>
10656
10657 <method name="attachToInternalNetwork">
10658 <desc>
10659 Attach the network adapter to an internal network.
10660 </desc>
10661 </method>
10662
10663 <method name="attachToHostOnlyInterface">
10664 <desc>
10665 Attach the network adapter to the host-only network.
10666 </desc>
10667 </method>
10668
10669 <method name="detach">
10670 <desc>
10671 Detach the network adapter
10672 </desc>
10673 </method>
10674 </interface>
10675
10676
10677 <!--
10678 // ISerialPort
10679 /////////////////////////////////////////////////////////////////////////
10680 -->
10681
10682 <enum
10683 name="PortMode"
10684 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10685 >
10686 <desc>
10687 The PortMode enumeration represents possible communication modes for
10688 the virtual serial port device.
10689 </desc>
10690
10691 <const name="Disconnected" value="0">
10692 <desc>Virtual device is not attached to any real host device.</desc>
10693 </const>
10694 <const name="HostPipe" value="1">
10695 <desc>Virtual device is attached to a host pipe.</desc>
10696 </const>
10697 <const name="HostDevice" value="2">
10698 <desc>Virtual device is attached to a host device.</desc>
10699 </const>
10700 </enum>
10701
10702 <interface
10703 name="ISerialPort" extends="$unknown"
10704 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10705 wsmap="managed"
10706 >
10707
10708 <desc>
10709 The ISerialPort interface represents the virtual serial port device.
10710
10711 The virtual serial port device acts like an ordinary serial port
10712 inside the virtual machine. This device communicates to the real
10713 serial port hardware in one of two modes: host pipe or host device.
10714
10715 In host pipe mode, the #path attribute specifies the path to the pipe on
10716 the host computer that represents a serial port. The #server attribute
10717 determines if this pipe is created by the virtual machine process at
10718 machine startup or it must already exist before starting machine
10719 execution.
10720
10721 In host device mode, the #path attribute specifies the name of the
10722 serial port device on the host computer.
10723
10724 There is also a third communication mode: the disconnected mode. In this
10725 mode, the guest OS running inside the virtual machine will be able to
10726 detect the serial port, but all port write operations will be discarded
10727 and all port read operations will return no data.
10728
10729 <see>IMachine::getSerialPort</see>
10730 </desc>
10731
10732 <attribute name="slot" type="unsigned long" readonly="yes">
10733 <desc>
10734 Slot number this serial port is plugged into. Corresponds to
10735 the value you pass to <link to="IMachine::getSerialPort"/>
10736 to obtain this instance.
10737 </desc>
10738 </attribute>
10739
10740 <attribute name="enabled" type="boolean">
10741 <desc>
10742 Flag whether the serial port is enabled. If disabled,
10743 the serial port will not be reported to the guest OS.
10744 </desc>
10745 </attribute>
10746
10747 <attribute name="IOBase" type="unsigned long">
10748 <desc>Base I/O address of the serial port.</desc>
10749 </attribute>
10750
10751 <attribute name="IRQ" type="unsigned long">
10752 <desc>IRQ number of the serial port.</desc>
10753 </attribute>
10754
10755 <attribute name="hostMode" type="PortMode">
10756 <desc>
10757 How is this port connected to the host.
10758 <note>
10759 Changing this attribute may fail if the conditions for
10760 <link to="#path"/> are not met.
10761 </note>
10762 </desc>
10763 </attribute>
10764
10765 <attribute name="server" type="boolean">
10766 <desc>
10767 Flag whether this serial port acts as a server (creates a new pipe on
10768 the host) or as a client (uses the existing pipe). This attribute is
10769 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10770 </desc>
10771 </attribute>
10772
10773 <attribute name="path" type="wstring">
10774 <desc>
10775 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10776 PortMode_HostPipe, or the host serial device name when
10777 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10778 cases, setting a @c null or an empty string as the attribute's value
10779 will result into an error. Otherwise, the value of this property is
10780 ignored.
10781 </desc>
10782 </attribute>
10783
10784 </interface>
10785
10786 <!--
10787 // IParallelPort
10788 /////////////////////////////////////////////////////////////////////////
10789 -->
10790
10791 <interface
10792 name="IParallelPort" extends="$unknown"
10793 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10794 wsmap="managed"
10795 >
10796
10797 <desc>
10798 The IParallelPort interface represents the virtual parallel port device.
10799
10800 The virtual parallel port device acts like an ordinary parallel port
10801 inside the virtual machine. This device communicates to the real
10802 parallel port hardware using the name of the parallel device on the host
10803 computer specified in the #path attribute.
10804
10805 Each virtual parallel port device is assigned a base I/O address and an
10806 IRQ number that will be reported to the guest operating system and used
10807 to operate the given parallel port from within the virtual machine.
10808
10809 <see>IMachine::getParallelPort</see>
10810 </desc>
10811
10812 <attribute name="slot" type="unsigned long" readonly="yes">
10813 <desc>
10814 Slot number this parallel port is plugged into. Corresponds to
10815 the value you pass to <link to="IMachine::getParallelPort"/>
10816 to obtain this instance.
10817 </desc>
10818 </attribute>
10819
10820 <attribute name="enabled" type="boolean">
10821 <desc>
10822 Flag whether the parallel port is enabled. If disabled,
10823 the parallel port will not be reported to the guest OS.
10824 </desc>
10825 </attribute>
10826
10827 <attribute name="IOBase" type="unsigned long">
10828 <desc>Base I/O address of the parallel port.</desc>
10829 </attribute>
10830
10831 <attribute name="IRQ" type="unsigned long">
10832 <desc>IRQ number of the parallel port.</desc>
10833 </attribute>
10834
10835 <attribute name="path" type="wstring">
10836 <desc>
10837 Host parallel device name. If this parallel port is enabled, setting a
10838 @c null or an empty string as this attribute's value will result into
10839 an error.
10840 </desc>
10841 </attribute>
10842
10843 </interface>
10844
10845
10846 <!--
10847 // IMachineDebugger
10848 /////////////////////////////////////////////////////////////////////////
10849 -->
10850
10851 <interface
10852 name="IMachineDebugger" extends="$unknown"
10853 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10854 wsmap="suppress"
10855 >
10856 <method name="resetStats">
10857 <desc>
10858 Reset VM statistics.
10859 </desc>
10860 <param name="pattern" type="wstring" dir="in">
10861 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10862 </param>
10863 </method>
10864
10865 <method name="dumpStats">
10866 <desc>
10867 Dumps VM statistics.
10868 </desc>
10869 <param name="pattern" type="wstring" dir="in">
10870 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10871 </param>
10872 </method>
10873
10874 <method name="getStats">
10875 <desc>
10876 Get the VM statistics in a XMLish format.
10877 </desc>
10878 <param name="pattern" type="wstring" dir="in">
10879 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10880 </param>
10881 <param name="withDescriptions" type="boolean" dir="in">
10882 <desc>Whether to include the descriptions.</desc>
10883 </param>
10884 <param name="stats" type="wstring" dir="out">
10885 <desc>The XML document containing the statistics.</desc>
10886 </param>
10887 </method>
10888
10889 <method name="injectNMI">
10890 <desc>
10891 Inject an NMI into a running VT-x/AMD-V VM.
10892 </desc>
10893 </method>
10894
10895 <attribute name="singlestep" type="boolean">
10896 <desc>Switch for enabling singlestepping.</desc>
10897 </attribute>
10898
10899 <attribute name="recompileUser" type="boolean">
10900 <desc>Switch for forcing code recompilation for user mode code.</desc>
10901 </attribute>
10902
10903 <attribute name="recompileSupervisor" type="boolean">
10904 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10905 </attribute>
10906
10907 <attribute name="PATMEnabled" type="boolean">
10908 <desc>Switch for enabling and disabling the PATM component.</desc>
10909 </attribute>
10910
10911 <attribute name="CSAMEnabled" type="boolean">
10912 <desc>Switch for enabling and disabling the CSAM component.</desc>
10913 </attribute>
10914
10915 <attribute name="logEnabled" type="boolean">
10916 <desc>Switch for enabling and disabling logging.</desc>
10917 </attribute>
10918
10919 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10920 <desc>
10921 Flag indicating whether the VM is currently making use of CPU hardware
10922 virtualization extensions.
10923 </desc>
10924 </attribute>
10925
10926 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10927 <desc>
10928 Flag indicating whether the VM is currently making use of the nested paging
10929 CPU hardware virtualization extension.
10930 </desc>
10931 </attribute>
10932
10933 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10934 <desc>
10935 Flag indicating whether the VM is currently making use of the VPID
10936 VT-x extension.
10937 </desc>
10938 </attribute>
10939
10940 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10941 <desc>
10942 Flag indicating whether the VM is currently making use of the Physical
10943 Address Extension CPU feature.
10944 </desc>
10945 </attribute>
10946
10947 <attribute name="virtualTimeRate" type="unsigned long">
10948 <desc>
10949 The rate at which the virtual time runs expressed as a percentage.
10950 The accepted range is 2% to 20000%.
10951 </desc>
10952 </attribute>
10953
10954 <!-- @todo method for setting log flags, groups and destination! -->
10955
10956 <attribute name="VM" type="unsigned long long" readonly="yes">
10957 <desc>
10958 Gets the VM handle. This is only for internal use while
10959 we carve the details of this interface.
10960 </desc>
10961 </attribute>
10962
10963 </interface>
10964
10965 <!--
10966 // IUSBController
10967 /////////////////////////////////////////////////////////////////////////
10968 -->
10969
10970 <interface
10971 name="IUSBController" extends="$unknown"
10972 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
10973 wsmap="managed"
10974 >
10975 <attribute name="enabled" type="boolean">
10976 <desc>
10977 Flag whether the USB controller is present in the
10978 guest system. If disabled, the virtual guest hardware will
10979 not contain any USB controller. Can only be changed when
10980 the VM is powered off.
10981 </desc>
10982 </attribute>
10983
10984 <attribute name="enabledEhci" type="boolean">
10985 <desc>
10986 Flag whether the USB EHCI controller is present in the
10987 guest system. If disabled, the virtual guest hardware will
10988 not contain a USB EHCI controller. Can only be changed when
10989 the VM is powered off.
10990 </desc>
10991 </attribute>
10992
10993 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10994 <desc>
10995 USB standard version which the controller implements.
10996 This is a BCD which means that the major version is in the
10997 high byte and minor version is in the low byte.
10998 </desc>
10999 </attribute>
11000
11001 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11002 <desc>
11003 List of USB device filters associated with the machine.
11004
11005 If the machine is currently running, these filters are activated
11006 every time a new (supported) USB device is attached to the host
11007 computer that was not ignored by global filters
11008 (<link to="IHost::USBDeviceFilters"/>).
11009
11010 These filters are also activated when the machine is powered up.
11011 They are run against a list of all currently available USB
11012 devices (in states
11013 <link to="USBDeviceState_Available"/>,
11014 <link to="USBDeviceState_Busy"/>,
11015 <link to="USBDeviceState_Held"/>) that were not previously
11016 ignored by global filters.
11017
11018 If at least one filter matches the USB device in question, this
11019 device is automatically captured (attached to) the virtual USB
11020 controller of this machine.
11021
11022 <see>IUSBDeviceFilter, ::IUSBController</see>
11023 </desc>
11024 </attribute>
11025
11026 <method name="createDeviceFilter">
11027 <desc>
11028 Creates a new USB device filter. All attributes except
11029 the filter name are set to <tt>null</tt> (any match),
11030 <i>active</i> is <tt>false</tt> (the filter is not active).
11031
11032 The created filter can then be added to the list of filters using
11033 <link to="#insertDeviceFilter"/>.
11034
11035 <result name="VBOX_E_INVALID_VM_STATE">
11036 The virtual machine is not mutable.
11037 </result>
11038
11039 <see>#deviceFilters</see>
11040 </desc>
11041 <param name="name" type="wstring" dir="in">
11042 <desc>
11043 Filter name. See <link to="IUSBDeviceFilter::name"/>
11044 for more info.
11045 </desc>
11046 </param>
11047 <param name="filter" type="IUSBDeviceFilter" dir="return">
11048 <desc>Created filter object.</desc>
11049 </param>
11050 </method>
11051
11052 <method name="insertDeviceFilter">
11053 <desc>
11054 Inserts the given USB device to the specified position
11055 in the list of filters.
11056
11057 Positions are numbered starting from <tt>0</tt>. If the specified
11058 position is equal to or greater than the number of elements in
11059 the list, the filter is added to the end of the collection.
11060
11061 <note>
11062 Duplicates are not allowed, so an attempt to insert a
11063 filter that is already in the collection, will return an
11064 error.
11065 </note>
11066
11067 <result name="VBOX_E_INVALID_VM_STATE">
11068 Virtual machine is not mutable.
11069 </result>
11070 <result name="E_INVALIDARG">
11071 USB device filter not created within this VirtualBox instance.
11072 </result>
11073 <result name="VBOX_E_INVALID_OBJECT_STATE">
11074 USB device filter already in list.
11075 </result>
11076
11077 <see>#deviceFilters</see>
11078 </desc>
11079 <param name="position" type="unsigned long" dir="in">
11080 <desc>Position to insert the filter to.</desc>
11081 </param>
11082 <param name="filter" type="IUSBDeviceFilter" dir="in">
11083 <desc>USB device filter to insert.</desc>
11084 </param>
11085 </method>
11086
11087 <method name="removeDeviceFilter">
11088 <desc>
11089 Removes a USB device filter from the specified position in the
11090 list of filters.
11091
11092 Positions are numbered starting from <tt>0</tt>. Specifying a
11093 position equal to or greater than the number of elements in
11094 the list will produce an error.
11095
11096 <see>#deviceFilters</see>
11097
11098 <result name="VBOX_E_INVALID_VM_STATE">
11099 Virtual machine is not mutable.
11100 </result>
11101 <result name="E_INVALIDARG">
11102 USB device filter list empty or invalid @a position.
11103 </result>
11104
11105 </desc>
11106 <param name="position" type="unsigned long" dir="in">
11107 <desc>Position to remove the filter from.</desc>
11108 </param>
11109 <param name="filter" type="IUSBDeviceFilter" dir="return">
11110 <desc>Removed USB device filter.</desc>
11111 </param>
11112 </method>
11113
11114 </interface>
11115
11116
11117 <!--
11118 // IUSBDevice
11119 /////////////////////////////////////////////////////////////////////////
11120 -->
11121
11122 <interface
11123 name="IUSBDevice" extends="$unknown"
11124 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
11125 wsmap="managed"
11126 >
11127 <desc>
11128 The IUSBDevice interface represents a virtual USB device attached to the
11129 virtual machine.
11130
11131 A collection of objects implementing this interface is stored in the
11132 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11133 attached to a running virtual machine's USB controller.
11134 </desc>
11135
11136 <attribute name="id" type="uuid" readonly="yes">
11137 <desc>
11138 Unique USB device ID. This ID is built from #vendorId,
11139 #productId, #revision and #serialNumber.
11140 </desc>
11141 </attribute>
11142
11143 <attribute name="vendorId" type="unsigned short" readonly="yes">
11144 <desc>Vendor ID.</desc>
11145 </attribute>
11146
11147 <attribute name="productId" type="unsigned short" readonly="yes">
11148 <desc>Product ID.</desc>
11149 </attribute>
11150
11151 <attribute name="revision" type="unsigned short" readonly="yes">
11152 <desc>
11153 Product revision number. This is a packed BCD represented as
11154 unsigned short. The high byte is the integer part and the low
11155 byte is the decimal.
11156 </desc>
11157 </attribute>
11158
11159 <attribute name="manufacturer" type="wstring" readonly="yes">
11160 <desc>Manufacturer string.</desc>
11161 </attribute>
11162
11163 <attribute name="product" type="wstring" readonly="yes">
11164 <desc>Product string.</desc>
11165 </attribute>
11166
11167 <attribute name="serialNumber" type="wstring" readonly="yes">
11168 <desc>Serial number string.</desc>
11169 </attribute>
11170
11171 <attribute name="address" type="wstring" readonly="yes">
11172 <desc>Host specific address of the device.</desc>
11173 </attribute>
11174
11175 <attribute name="port" type="unsigned short" readonly="yes">
11176 <desc>
11177 Host USB port number the device is physically
11178 connected to.
11179 </desc>
11180 </attribute>
11181
11182 <attribute name="version" type="unsigned short" readonly="yes">
11183 <desc>
11184 The major USB version of the device - 1 or 2.
11185 </desc>
11186 </attribute>
11187
11188 <attribute name="portVersion" type="unsigned short" readonly="yes">
11189 <desc>
11190 The major USB version of the host USB port the device is
11191 physically connected to - 1 or 2. For devices not connected to
11192 anything this will have the same value as the version attribute.
11193 </desc>
11194 </attribute>
11195
11196 <attribute name="remote" type="boolean" readonly="yes">
11197 <desc>
11198 Whether the device is physically connected to a remote VRDP
11199 client or to a local host machine.
11200 </desc>
11201 </attribute>
11202
11203 </interface>
11204
11205
11206 <!--
11207 // IUSBDeviceFilter
11208 /////////////////////////////////////////////////////////////////////////
11209 -->
11210
11211 <interface
11212 name="IUSBDeviceFilter" extends="$unknown"
11213 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11214 wsmap="managed"
11215 >
11216 <desc>
11217 The IUSBDeviceFilter interface represents an USB device filter used
11218 to perform actions on a group of USB devices.
11219
11220 This type of filters is used by running virtual machines to
11221 automatically capture selected USB devices once they are physically
11222 attached to the host computer.
11223
11224 A USB device is matched to the given device filter if and only if all
11225 attributes of the device match the corresponding attributes of the
11226 filter (that is, attributes are joined together using the logical AND
11227 operation). On the other hand, all together, filters in the list of
11228 filters carry the semantics of the logical OR operation. So if it is
11229 desirable to create a match like "this vendor id OR this product id",
11230 one needs to create two filters and specify "any match" (see below)
11231 for unused attributes.
11232
11233 All filter attributes used for matching are strings. Each string
11234 is an expression representing a set of values of the corresponding
11235 device attribute, that will match the given filter. Currently, the
11236 following filtering expressions are supported:
11237
11238 <ul>
11239 <li><i>Interval filters</i>. Used to specify valid intervals for
11240 integer device attributes (Vendor ID, Product ID and Revision).
11241 The format of the string is:
11242
11243 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11244
11245 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11246 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11247 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11248 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11249 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11250 possible integer is assumed.
11251 </li>
11252 <li><i>Boolean filters</i>. Used to specify acceptable values for
11253 boolean device attributes. The format of the string is:
11254
11255 <tt>true|false|yes|no|0|1</tt>
11256
11257 </li>
11258 <li><i>Exact match</i>. Used to specify a single value for the given
11259 device attribute. Any string that doesn't start with <tt>int:</tt>
11260 represents the exact match. String device attributes are compared to
11261 this string including case of symbols. Integer attributes are first
11262 converted to a string (see individual filter attributes) and then
11263 compared ignoring case.
11264
11265 </li>
11266 <li><i>Any match</i>. Any value of the corresponding device attribute
11267 will match the given filter. An empty or <tt>null</tt> string is
11268 used to construct this type of filtering expressions.
11269
11270 </li>
11271 </ul>
11272
11273 <note>
11274 On the Windows host platform, interval filters are not currently
11275 available. Also all string filter attributes
11276 (<link to="#manufacturer"/>, <link to="#product"/>,
11277 <link to="#serialNumber"/>) are ignored, so they behave as
11278 <i>any match</i> no matter what string expression is specified.
11279 </note>
11280
11281 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11282 </desc>
11283
11284 <attribute name="name" type="wstring">
11285 <desc>
11286 Visible name for this filter.
11287 This name is used to visually distinguish one filter from another,
11288 so it can neither be <tt>null</tt> nor an empty string.
11289 </desc>
11290 </attribute>
11291
11292 <attribute name="active" type="boolean">
11293 <desc>Whether this filter active or has been temporarily disabled.</desc>
11294 </attribute>
11295
11296 <attribute name="vendorId" type="wstring">
11297 <desc>
11298 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11299 The string representation for the <i>exact matching</i>
11300 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11301 (including leading zeroes).
11302 </desc>
11303 </attribute>
11304
11305 <attribute name="productId" type="wstring">
11306 <desc>
11307 <link to="IUSBDevice::productId">Product ID</link> filter.
11308 The string representation for the <i>exact matching</i>
11309 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11310 (including leading zeroes).
11311 </desc>
11312 </attribute>
11313
11314 <attribute name="revision" type="wstring">
11315 <desc>
11316 <link to="IUSBDevice::productId">Product revision number</link>
11317 filter. The string representation for the <i>exact matching</i>
11318 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11319 of the integer part of the revision, and <tt>F</tt> is the
11320 decimal digit of its fractional part (including leading and
11321 trailing zeros).
11322 Note that for interval filters, it's best to use the hexadecimal
11323 form, because the revision is stored as a 16 bit packed BCD value;
11324 so the expression <tt>int:0x0100-0x0199</tt> will match any
11325 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11326 </desc>
11327 </attribute>
11328
11329 <attribute name="manufacturer" type="wstring">
11330 <desc>
11331 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11332 </desc>
11333 </attribute>
11334
11335 <attribute name="product" type="wstring">
11336 <desc>
11337 <link to="IUSBDevice::product">Product</link> filter.
11338 </desc>
11339 </attribute>
11340
11341 <attribute name="serialNumber" type="wstring">
11342 <desc>
11343 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11344 </desc>
11345 </attribute>
11346
11347 <attribute name="port" type="wstring">
11348 <desc>
11349 <link to="IUSBDevice::port">Host USB port</link> filter.
11350 </desc>
11351 </attribute>
11352
11353 <attribute name="remote" type="wstring">
11354 <desc>
11355 <link to="IUSBDevice::remote">Remote state</link> filter.
11356 <note>
11357 This filter makes sense only for machine USB filters,
11358 i.e. it is ignored by IHostUSBDeviceFilter objects.
11359 </note>
11360 </desc>
11361 </attribute>
11362
11363 <attribute name="maskedInterfaces" type="unsigned long">
11364 <desc>
11365 This is an advanced option for hiding one or more USB interfaces
11366 from the guest. The value is a bit mask where the bits that are set
11367 means the corresponding USB interface should be hidden, masked off
11368 if you like.
11369 This feature only works on Linux hosts.
11370 </desc>
11371 </attribute>
11372
11373 </interface>
11374
11375
11376 <!--
11377 // IHostUSBDevice
11378 /////////////////////////////////////////////////////////////////////////
11379 -->
11380
11381 <enum
11382 name="USBDeviceState"
11383 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11384 >
11385 <desc>
11386 USB device state. This enumeration represents all possible states
11387 of the USB device physically attached to the host computer regarding
11388 its state on the host computer and availability to guest computers
11389 (all currently running virtual machines).
11390
11391 Once a supported USB device is attached to the host, global USB
11392 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11393 either ignore the device, or put it to USBDeviceState_Held state, or do
11394 nothing. Unless the device is ignored by global filters, filters of all
11395 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11396 activated that can put it to USBDeviceState_Captured state.
11397
11398 If the device was ignored by global filters, or didn't match
11399 any filters at all (including guest ones), it is handled by the host
11400 in a normal way. In this case, the device state is determined by
11401 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11402 or USBDeviceState_Available, depending on the current device usage.
11403
11404 Besides auto-capturing based on filters, the device can be manually
11405 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11406 state is USBDeviceState_Busy, USBDeviceState_Available or
11407 USBDeviceState_Held.
11408
11409 <note>
11410 Due to differences in USB stack implementations in Linux and Win32,
11411 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11412 only to the Linux version of the product. This also means that (<link
11413 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11414 device state is USBDeviceState_Held.
11415 </note>
11416
11417 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11418 </desc>
11419
11420 <const name="NotSupported" value="0">
11421 <desc>
11422 Not supported by the VirtualBox server, not available to guests.
11423 </desc>
11424 </const>
11425 <const name="Unavailable" value="1">
11426 <desc>
11427 Being used by the host computer exclusively,
11428 not available to guests.
11429 </desc>
11430 </const>
11431 <const name="Busy" value="2">
11432 <desc>
11433 Being used by the host computer, potentially available to guests.
11434 </desc>
11435 </const>
11436 <const name="Available" value="3">
11437 <desc>
11438 Not used by the host computer, available to guests (the host computer
11439 can also start using the device at any time).
11440 </desc>
11441 </const>
11442 <const name="Held" value="4">
11443 <desc>
11444 Held by the VirtualBox server (ignored by the host computer),
11445 available to guests.
11446 </desc>
11447 </const>
11448 <const name="Captured" value="5">
11449 <desc>
11450 Captured by one of the guest computers, not available
11451 to anybody else.
11452 </desc>
11453 </const>
11454 </enum>
11455
11456 <interface
11457 name="IHostUSBDevice" extends="IUSBDevice"
11458 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11459 wsmap="managed"
11460 >
11461 <desc>
11462 The IHostUSBDevice interface represents a physical USB device attached
11463 to the host computer.
11464
11465 Besides properties inherited from IUSBDevice, this interface adds the
11466 <link to="#state"/> property that holds the current state of the USB
11467 device.
11468
11469 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11470 </desc>
11471
11472 <attribute name="state" type="USBDeviceState" readonly="yes">
11473 <desc>
11474 Current state of the device.
11475 </desc>
11476 </attribute>
11477
11478 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11479
11480 </interface>
11481
11482
11483 <!--
11484 // IHostUSBDeviceFilter
11485 /////////////////////////////////////////////////////////////////////////
11486 -->
11487
11488 <enum
11489 name="USBDeviceFilterAction"
11490 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11491 >
11492 <desc>
11493 Actions for host USB device filters.
11494 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11495 </desc>
11496
11497 <const name="Null" value="0">
11498 <desc>Null value (never used by the API).</desc>
11499 </const>
11500 <const name="Ignore" value="1">
11501 <desc>Ignore the matched USB device.</desc>
11502 </const>
11503 <const name="Hold" value="2">
11504 <desc>Hold the matched USB device.</desc>
11505 </const>
11506 </enum>
11507
11508 <interface
11509 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11510 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11511 wsmap="managed"
11512 >
11513 <desc>
11514 The IHostUSBDeviceFilter interface represents a global filter for a
11515 physical USB device used by the host computer. Used indirectly in
11516 <link to="IHost::USBDeviceFilters"/>.
11517
11518 Using filters of this type, the host computer determines the initial
11519 state of the USB device after it is physically attached to the
11520 host's USB controller.
11521
11522 <note>
11523 The <link to="#remote"/> attribute is ignored by this type of
11524 filters, because it makes sense only for
11525 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11526 </note>
11527
11528 <see>IHost::USBDeviceFilters</see>
11529 </desc>
11530
11531 <attribute name="action" type="USBDeviceFilterAction">
11532 <desc>
11533 Action performed by the host when an attached USB device
11534 matches this filter.
11535 </desc>
11536 </attribute>
11537
11538 </interface>
11539
11540 <!--
11541 // IAudioAdapter
11542 /////////////////////////////////////////////////////////////////////////
11543 -->
11544
11545 <enum
11546 name="AudioDriverType"
11547 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11548 >
11549 <desc>
11550 Host audio driver type.
11551 </desc>
11552
11553 <const name="Null" value="0">
11554 <desc>Null value, also means "dummy audio driver".</desc>
11555 </const>
11556 <const name="WinMM" value="1"/>
11557 <const name="OSS" value="2"/>
11558 <const name="ALSA" value="3"/>
11559 <const name="DirectSound" value="4"/>
11560 <const name="CoreAudio" value="5"/>
11561 <const name="MMPM" value="6"/>
11562 <const name="Pulse" value="7"/>
11563 <const name="SolAudio" value="8"/>
11564 </enum>
11565
11566 <enum
11567 name="AudioControllerType"
11568 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11569 >
11570 <desc>
11571 Virtual audio controller type.
11572 </desc>
11573
11574 <const name="AC97" value="0"/>
11575 <const name="SB16" value="1"/>
11576 </enum>
11577
11578 <interface
11579 name="IAudioAdapter" extends="$unknown"
11580 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11581 wsmap="managed"
11582 >
11583 <desc>
11584 The IAudioAdapter interface represents the virtual audio adapter of
11585 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11586 </desc>
11587 <attribute name="enabled" type="boolean">
11588 <desc>
11589 Flag whether the audio adapter is present in the
11590 guest system. If disabled, the virtual guest hardware will
11591 not contain any audio adapter. Can only be changed when
11592 the VM is not running.
11593 </desc>
11594 </attribute>
11595 <attribute name="audioController" type="AudioControllerType">
11596 <desc>
11597 The audio hardware we emulate.
11598 </desc>
11599 </attribute>
11600 <attribute name="audioDriver" type="AudioDriverType">
11601 <desc>
11602 Audio driver the adapter is connected to. This setting
11603 can only be changed when the VM is not running.
11604 </desc>
11605 </attribute>
11606 </interface>
11607
11608 <!--
11609 // IVRDPServer
11610 /////////////////////////////////////////////////////////////////////////
11611 -->
11612
11613 <enum
11614 name="VRDPAuthType"
11615 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11616 >
11617 <desc>
11618 VRDP authentication type.
11619 </desc>
11620
11621 <const name="Null" value="0">
11622 <desc>Null value, also means "no authentication".</desc>
11623 </const>
11624 <const name="External" value="1"/>
11625 <const name="Guest" value="2"/>
11626 </enum>
11627
11628 <interface
11629 name="IVRDPServer" extends="$unknown"
11630 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11631 wsmap="managed"
11632 >
11633 <attribute name="enabled" type="boolean">
11634 <desc>VRDP server status.</desc>
11635 </attribute>
11636
11637 <attribute name="port" type="unsigned long">
11638 <desc>
11639 VRDP server port number.
11640 <note>
11641 Setting the value of this property to <tt>0</tt> will reset the port
11642 number to the default value which is
11643 currently <tt>3389</tt>. Reading this property will always return a
11644 real port number, even after it has been set to <tt>0</tt> (in which
11645 case the default port is returned).
11646 </note>
11647 </desc>
11648 </attribute>
11649
11650 <attribute name="netAddress" type="wstring">
11651 <desc>VRDP server address.</desc>
11652 </attribute>
11653
11654 <attribute name="authType" type="VRDPAuthType">
11655 <desc>VRDP authentication method.</desc>
11656 </attribute>
11657
11658 <attribute name="authTimeout" type="unsigned long">
11659 <desc>Timeout for guest authentication. Milliseconds.</desc>
11660 </attribute>
11661
11662 <attribute name="allowMultiConnection" type="boolean">
11663 <desc>
11664 Flag whether multiple simultaneous connections to the VM are permitted.
11665 Note that this will be replaced by a more powerful mechanism in the future.
11666 </desc>
11667 </attribute>
11668
11669 <attribute name="reuseSingleConnection" type="boolean">
11670 <desc>
11671 Flag whether the existing connection must be dropped and a new connection
11672 must be established by the VRDP server, when a new client connects in single
11673 connection mode.
11674 </desc>
11675 </attribute>
11676
11677 </interface>
11678
11679
11680 <!--
11681 // ISharedFolder
11682 /////////////////////////////////////////////////////////////////////////
11683 -->
11684
11685 <interface
11686 name="ISharedFolder" extends="$unknown"
11687 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
11688 wsmap="struct"
11689 >
11690 <desc>
11691 The ISharedFolder interface represents a folder in the host computer's
11692 file system accessible from the guest OS running inside a virtual
11693 machine using an associated logical name.
11694
11695 There are three types of shared folders:
11696 <ul>
11697 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11698 folders available to all virtual machines.</li>
11699 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11700 VM-specific shared folders available to the given virtual machine at
11701 startup.</li>
11702 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11703 VM-specific shared folders created in the session context (for
11704 example, when the virtual machine is running) and automatically
11705 discarded when the session is closed (the VM is powered off).</li>
11706 </ul>
11707
11708 Logical names of shared folders must be unique within the given scope
11709 (global, permanent or transient). However, they do not need to be unique
11710 across scopes. In this case, the definition of the shared folder in a
11711 more specific scope takes precedence over definitions in all other
11712 scopes. The order of precedence is (more specific to more general):
11713 <ol>
11714 <li>Transient definitions</li>
11715 <li>Permanent definitions</li>
11716 <li>Global definitions</li>
11717 </ol>
11718
11719 For example, if MyMachine has a shared folder named
11720 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11721 transient shared folder named <tt>C_DRIVE</tt> (that points
11722 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11723 of <tt>C_DRIVE</tt> in the guest OS so
11724 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11725 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11726 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11727 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11728 to <tt>C:\\</tt> if it still exists.
11729
11730 Note that permanent and transient shared folders of different machines
11731 are in different name spaces, so they don't overlap and don't need to
11732 have unique logical names.
11733
11734 <note>
11735 Global shared folders are not implemented in the current version of the
11736 product.
11737 </note>
11738 </desc>
11739
11740 <attribute name="name" type="wstring" readonly="yes">
11741 <desc>Logical name of the shared folder.</desc>
11742 </attribute>
11743
11744 <attribute name="hostPath" type="wstring" readonly="yes">
11745 <desc>Full path to the shared folder in the host file system.</desc>
11746 </attribute>
11747
11748 <attribute name="accessible" type="boolean" readonly="yes">
11749 <desc>
11750 Whether the folder defined by the host path is currently
11751 accessible or not.
11752 For example, the folder can be unaccessible if it is placed
11753 on the network share that is not available by the time
11754 this property is read.
11755 </desc>
11756 </attribute>
11757
11758 <attribute name="writable" type="boolean" readonly="yes">
11759 <desc>
11760 Whether the folder defined by the host path is writable or
11761 not.
11762 </desc>
11763 </attribute>
11764
11765 <attribute name="lastAccessError" type="wstring" readonly="yes">
11766 <desc>
11767 Text message that represents the result of the last accessibility
11768 check.
11769
11770 Accessibility checks are performed each time the <link to="#accessible"/>
11771 attribute is read. A @c null string is returned if the last
11772 accessibility check was successful. A non-null string indicates a
11773 failure and should normally describe a reason of the failure (for
11774 example, a file read error).
11775 </desc>
11776 </attribute>
11777
11778 </interface>
11779
11780 <!--
11781 // ISession
11782 /////////////////////////////////////////////////////////////////////////
11783 -->
11784
11785 <interface
11786 name="IInternalSessionControl" extends="$unknown"
11787 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11788 internal="yes"
11789 wsmap="suppress"
11790 >
11791 <method name="getPID">
11792 <desc>PID of the process that has created this Session object.
11793 </desc>
11794 <param name="pid" type="unsigned long" dir="return"/>
11795 </method>
11796
11797 <method name="getRemoteConsole">
11798 <desc>
11799 Returns the console object suitable for remote control.
11800
11801 <result name="VBOX_E_INVALID_VM_STATE">
11802 Session state prevents operation.
11803 </result>
11804 <result name="VBOX_E_INVALID_OBJECT_STATE">
11805 Session type prevents operation.
11806 </result>
11807
11808 </desc>
11809 <param name="console" type="IConsole" dir="return"/>
11810 </method>
11811
11812 <method name="assignMachine">
11813 <desc>
11814 Assigns the machine object associated with this direct-type
11815 session or informs the session that it will be a remote one
11816 (if @a machine == NULL).
11817
11818 <result name="VBOX_E_INVALID_VM_STATE">
11819 Session state prevents operation.
11820 </result>
11821 <result name="VBOX_E_INVALID_OBJECT_STATE">
11822 Session type prevents operation.
11823 </result>
11824
11825 </desc>
11826 <param name="machine" type="IMachine" dir="in"/>
11827 </method>
11828
11829 <method name="assignRemoteMachine">
11830 <desc>
11831 Assigns the machine and the (remote) console object associated with
11832 this remote-type session.
11833
11834 <result name="VBOX_E_INVALID_VM_STATE">
11835 Session state prevents operation.
11836 </result>
11837
11838 </desc>
11839 <param name="machine" type="IMachine" dir="in"/>
11840 <param name="console" type="IConsole" dir="in"/>
11841 </method>
11842
11843 <method name="updateMachineState">
11844 <desc>
11845 Updates the machine state in the VM process.
11846 Must be called only in certain cases
11847 (see the method implementation).
11848
11849 <result name="VBOX_E_INVALID_VM_STATE">
11850 Session state prevents operation.
11851 </result>
11852 <result name="VBOX_E_INVALID_OBJECT_STATE">
11853 Session type prevents operation.
11854 </result>
11855
11856 </desc>
11857 <param name="aMachineState" type="MachineState" dir="in"/>
11858 </method>
11859
11860 <method name="uninitialize">
11861 <desc>
11862 Uninitializes (closes) this session. Used by VirtualBox to close
11863 the corresponding remote session when the direct session dies
11864 or gets closed.
11865
11866 <result name="VBOX_E_INVALID_VM_STATE">
11867 Session state prevents operation.
11868 </result>
11869
11870 </desc>
11871 </method>
11872
11873 <method name="onDVDDriveChange">
11874 <desc>
11875 Triggered when settings of the DVD drive object of the
11876 associated virtual machine have changed.
11877
11878 <result name="VBOX_E_INVALID_VM_STATE">
11879 Session state prevents operation.
11880 </result>
11881 <result name="VBOX_E_INVALID_OBJECT_STATE">
11882 Session type prevents operation.
11883 </result>
11884
11885 </desc>
11886 </method>
11887
11888 <method name="onFloppyDriveChange">
11889 <desc>
11890 Triggered when settings of the floppy drive object of the
11891 associated virtual machine have changed.
11892
11893 <result name="VBOX_E_INVALID_VM_STATE">
11894 Session state prevents operation.
11895 </result>
11896 <result name="VBOX_E_INVALID_OBJECT_STATE">
11897 Session type prevents operation.
11898 </result>
11899
11900 </desc>
11901 </method>
11902
11903 <method name="onNetworkAdapterChange">
11904 <desc>
11905 Triggered when settings of a network adapter 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="networkAdapter" type="INetworkAdapter" dir="in"/>
11917 </method>
11918
11919 <method name="onSerialPortChange">
11920 <desc>
11921 Triggered when settings of a serial port 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 <param name="serialPort" type="ISerialPort" dir="in"/>
11933 </method>
11934
11935 <method name="onParallelPortChange">
11936 <desc>
11937 Triggered when settings of a parallel port of the
11938 associated virtual machine have changed.
11939
11940 <result name="VBOX_E_INVALID_VM_STATE">
11941 Session state prevents operation.
11942 </result>
11943 <result name="VBOX_E_INVALID_OBJECT_STATE">
11944 Session type prevents operation.
11945 </result>
11946
11947 </desc>
11948 <param name="parallelPort" type="IParallelPort" dir="in"/>
11949 </method>
11950
11951 <method name="onStorageControllerChange">
11952 <desc>
11953 Triggered when settings of a storage controller of the
11954 associated virtual machine have changed.
11955
11956 <result name="VBOX_E_INVALID_VM_STATE">
11957 Session state prevents operation.
11958 </result>
11959 <result name="VBOX_E_INVALID_OBJECT_STATE">
11960 Session type prevents operation.
11961 </result>
11962
11963 </desc>
11964 </method>
11965
11966 <method name="onVRDPServerChange">
11967 <desc>
11968 Triggered when settings of the VRDP server object of the
11969 associated virtual machine have changed.
11970
11971 <result name="VBOX_E_INVALID_VM_STATE">
11972 Session state prevents operation.
11973 </result>
11974 <result name="VBOX_E_INVALID_OBJECT_STATE">
11975 Session type prevents operation.
11976 </result>
11977
11978 </desc>
11979 </method>
11980
11981 <method name="onUSBControllerChange">
11982 <desc>
11983 Triggered when settings of the USB controller object of the
11984 associated virtual machine have changed.
11985
11986 <result name="VBOX_E_INVALID_VM_STATE">
11987 Session state prevents operation.
11988 </result>
11989 <result name="VBOX_E_INVALID_OBJECT_STATE">
11990 Session type prevents operation.
11991 </result>
11992
11993 </desc>
11994 </method>
11995
11996 <method name="onSharedFolderChange">
11997 <desc>
11998 Triggered when a permanent (global or machine) shared folder has been
11999 created or removed.
12000 <note>
12001 We don't pass shared folder parameters in this notification because
12002 the order in which parallel notifications are delivered is not defined,
12003 therefore it could happen that these parameters were outdated by the
12004 time of processing this notification.
12005 </note>
12006
12007 <result name="VBOX_E_INVALID_VM_STATE">
12008 Session state prevents operation.
12009 </result>
12010 <result name="VBOX_E_INVALID_OBJECT_STATE">
12011 Session type prevents operation.
12012 </result>
12013
12014 </desc>
12015 <param name="global" type="boolean" dir="in"/>
12016 </method>
12017
12018 <method name="onUSBDeviceAttach">
12019 <desc>
12020 Triggered when a request to capture a USB device (as a result
12021 of matched USB filters or direct call to
12022 <link to="IConsole::attachUSBDevice"/>) has completed.
12023 A @c null @a error object means success, otherwise it
12024 describes a failure.
12025
12026 <result name="VBOX_E_INVALID_VM_STATE">
12027 Session state prevents operation.
12028 </result>
12029 <result name="VBOX_E_INVALID_OBJECT_STATE">
12030 Session type prevents operation.
12031 </result>
12032
12033 </desc>
12034 <param name="device" type="IUSBDevice" dir="in"/>
12035 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12036 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12037 </method>
12038
12039 <method name="onUSBDeviceDetach">
12040 <desc>
12041 Triggered when a request to release the USB device (as a result
12042 of machine termination or direct call to
12043 <link to="IConsole::detachUSBDevice"/>) has completed.
12044 A @c null @a error object means success, otherwise it
12045
12046 <result name="VBOX_E_INVALID_VM_STATE">
12047 Session state prevents operation.
12048 </result>
12049 <result name="VBOX_E_INVALID_OBJECT_STATE">
12050 Session type prevents operation.
12051 </result>
12052
12053 </desc>
12054 <param name="id" type="uuid" dir="in"/>
12055 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12056 </method>
12057
12058 <method name="onShowWindow">
12059 <desc>
12060 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12061 <link to="IMachine::showConsoleWindow"/> in order to notify
12062 console callbacks
12063 <link to="IConsoleCallback::onCanShowWindow"/>
12064 and <link to="IConsoleCallback::onShowWindow"/>.
12065
12066 <result name="VBOX_E_INVALID_OBJECT_STATE">
12067 Session type prevents operation.
12068 </result>
12069
12070 </desc>
12071 <param name="check" type="boolean" dir="in"/>
12072 <param name="canShow" type="boolean" dir="out"/>
12073 <param name="winId" type="unsigned long long" dir="out"/>
12074 </method>
12075
12076 <method name="accessGuestProperty">
12077 <desc>
12078 Called by <link to="IMachine::getGuestProperty"/> and by
12079 <link to="IMachine::setGuestProperty"/> in order to read and
12080 modify guest properties.
12081
12082 <result name="VBOX_E_INVALID_VM_STATE">
12083 Machine session is not open.
12084 </result>
12085 <result name="VBOX_E_INVALID_OBJECT_STATE">
12086 Session type is not direct.
12087 </result>
12088
12089 </desc>
12090 <param name="name" type="wstring" dir="in"/>
12091 <param name="value" type="wstring" dir="in"/>
12092 <param name="flags" type="wstring" dir="in"/>
12093 <param name="isSetter" type="boolean" dir="in"/>
12094 <param name="retValue" type="wstring" dir="out"/>
12095 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12096 <param name="retFlags" type="wstring" dir="out"/>
12097 </method>
12098
12099 <method name="enumerateGuestProperties">
12100 <desc>
12101 Return a list of the guest properties matching a set of patterns along
12102 with their values, time stamps and flags.
12103
12104 <result name="VBOX_E_INVALID_VM_STATE">
12105 Machine session is not open.
12106 </result>
12107 <result name="VBOX_E_INVALID_OBJECT_STATE">
12108 Session type is not direct.
12109 </result>
12110
12111 </desc>
12112 <param name="patterns" type="wstring" dir="in">
12113 <desc>
12114 The patterns to match the properties against as a comma-separated
12115 string. If this is empty, all properties currently set will be
12116 returned.
12117 </desc>
12118 </param>
12119 <param name="key" type="wstring" dir="out" safearray="yes">
12120 <desc>
12121 The key names of the properties returned.
12122 </desc>
12123 </param>
12124 <param name="value" type="wstring" dir="out" safearray="yes">
12125 <desc>
12126 The values of the properties returned. The array entries match the
12127 corresponding entries in the @a key array.
12128 </desc>
12129 </param>
12130 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12131 <desc>
12132 The time stamps of the properties returned. The array entries match
12133 the corresponding entries in the @a key array.
12134 </desc>
12135 </param>
12136 <param name="flags" type="wstring" dir="out" safearray="yes">
12137 <desc>
12138 The flags of the properties returned. The array entries match the
12139 corresponding entries in the @a key array.
12140 </desc>
12141 </param>
12142 </method>
12143
12144 </interface>
12145
12146 <interface
12147 name="ISession" extends="$dispatched"
12148 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12149 wsmap="managed"
12150 >
12151 <desc>
12152 The ISession interface represents a serialization primitive for virtual
12153 machines.
12154
12155 With VirtualBox, every time one wishes to manipulate a virtual machine
12156 (e.g. change its settings or start execution), a session object is
12157 required. Such an object must be passed to one of the session methods
12158 that open the given session, which then initiates the machine manipulation.
12159
12160 A session serves several purposes: it identifies to the inter-process VirtualBox
12161 code which process is currently working with the virtual machine, and it ensures
12162 that there are no incompatible requests from several processes for the
12163 same virtual machine. Session objects can therefore be thought of as mutex
12164 semaphores that lock virtual machines to prevent conflicting accesses from
12165 several processes.
12166
12167 How sessions objects are used depends on whether you use the Main API
12168 via COM or via the webservice:
12169
12170 <ul>
12171 <li>When using the COM API directly, an object of the Session class from the
12172 VirtualBox type library needs to be created. In regular COM C++ client code,
12173 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12174 This object will then act as a local session object in further calls to open
12175 a session.
12176 </li>
12177
12178 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12179 one session object automatically when <link to="IWebsessionManager::logon" />
12180 is called. A managed object reference to that session object can be retrieved by
12181 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12182 reference can then be used to open sessions.
12183 </li>
12184 </ul>
12185
12186 Sessions are mainly used in two variations:
12187
12188 <ul>
12189 <li>
12190 To start a virtual machine in a separate process, one would call
12191 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12192 object as its first parameter. This session then identifies the caller
12193 and lets him control the started machine (for example, pause machine
12194 execution or power it down) as well as be notified about machine
12195 execution state changes.
12196 </li>
12197
12198 <li>To alter machine settings, or to start machine execution within the
12199 current process, one needs to open a direct session for the machine first by
12200 calling <link to="IVirtualBox::openSession"/>. While a direct session
12201 is open within one process, no any other process may open another direct
12202 session for the same machine. This prevents the machine from being changed
12203 by other processes while it is running or while the machine is being configured.
12204 </li>
12205 </ul>
12206
12207 One also can attach to an existing direct session already opened by
12208 another process (for example, in order to send a control request to the
12209 virtual machine such as the pause or the reset request). This is done by
12210 calling <link to="IVirtualBox::openExistingSession"/>.
12211
12212 <note>
12213 Unless you are trying to write a new VirtualBox front-end that
12214 performs direct machine execution (like the VirtualBox or VBoxSDL
12215 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12216 session opened by <link to="IVirtualBox::openSession"/> and use this
12217 session only to change virtual machine settings. If you simply want to
12218 start virtual machine execution using one of the existing front-ends
12219 (for example the VirtualBox GUI or headless server), simply use
12220 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12221 will power up the machine automatically for you.
12222 </note>
12223 </desc>
12224
12225 <attribute name="state" type="SessionState" readonly="yes">
12226 <desc>Current state of this session.</desc>
12227 </attribute>
12228
12229 <attribute name="type" type="SessionType" readonly="yes">
12230 <desc>
12231 Type of this session. The value of this attribute is valid only
12232 if the session is currently open (i.e. its #state is
12233 SessionType_SessionOpen), otherwise an error will be returned.
12234 </desc>
12235 </attribute>
12236
12237 <attribute name="machine" type="IMachine" readonly="yes">
12238 <desc>Machine object associated with this session.</desc>
12239 </attribute>
12240
12241 <attribute name="console" type="IConsole" readonly="yes">
12242 <desc>Console object associated with this session.</desc>
12243 </attribute>
12244
12245 <method name="close">
12246 <desc>
12247 Closes a session that was previously opened.
12248
12249 It is recommended that every time an "open session" method (such as
12250 <link to="IVirtualBox::openRemoteSession" /> or
12251 <link to="IVirtualBox::openSession" />) has been called to
12252 manipulate a virtual machine, the caller invoke
12253 ISession::close() when it's done doing so. Since sessions are
12254 serialization primitives much like ordinary mutexes, they are
12255 best used the same way: for each "open" call, there should be
12256 a matching "close" call, even when errors occur.
12257
12258 Otherwise, if a direct session for a machine opened with
12259 <link to="IVirtualBox::openSession"/> is not explicitly closed
12260 when the application terminates, the state of the machine will
12261 be set to <link to="MachineState_Aborted" /> on the server.
12262
12263 Generally, it is recommended to close all open sessions explicitly
12264 before terminating the application (regardless of the reason for
12265 the termination).
12266
12267 <note>
12268 Do not expect the session state (<link to="ISession::state" />
12269 to return to "Closed" immediately after you invoke
12270 ISession::close(), particularly if you have started a remote
12271 session to execute the VM in a new process. The session state will
12272 automatically return to "Closed" once the VM is no longer executing,
12273 which can of course take a very long time.
12274 </note>
12275
12276 <result name="E_UNEXPECTED">
12277 Session is not open.
12278 </result>
12279
12280 </desc>
12281 </method>
12282
12283 </interface>
12284
12285 <!--
12286 // IStorageController
12287 /////////////////////////////////////////////////////////////////////////
12288 -->
12289
12290 <enum
12291 name="StorageBus"
12292 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12293 >
12294 <desc>
12295 The connection type of the storage controller.
12296 </desc>
12297 <const name="Null" value="0">
12298 <desc><tt>null</tt> value. Never used by the API.</desc>
12299 </const>
12300 <const name="IDE" value="1"/>
12301 <const name="SATA" value="2"/>
12302 <const name="SCSI" value="3"/>
12303 </enum>
12304
12305 <enum
12306 name="StorageControllerType"
12307 uuid="685387db-a837-4320-a258-08f46a22f62a"
12308 >
12309 <desc>
12310 Storage controller type.
12311 </desc>
12312
12313 <const name="Null" value="0">
12314 <desc><tt>null</tt> value. Never used by the API.</desc>
12315 </const>
12316 <const name="LsiLogic" value="1"/>
12317 <const name="BusLogic" value="2"/>
12318 <const name="IntelAhci" value="3"/>
12319 <const name="PIIX3" value="4"/>
12320 <const name="PIIX4" value="5"/>
12321 <const name="ICH6" value="6"/>
12322 </enum>
12323
12324 <interface
12325 name="IStorageController" extends="$unknown"
12326 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12327 wsmap="managed"
12328 >
12329
12330 <attribute name="name" type="wstring" readonly="yes">
12331 <desc>
12332 Name of the storage controller. Acts also as a unique
12333 identifier.
12334 </desc>
12335 </attribute>
12336
12337 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12338 <desc>
12339 Maximum number of devices which can be attached to one port.
12340 </desc>
12341 </attribute>
12342
12343 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12344 <desc>
12345 Minimum number of ports which can be set with
12346 <link to="IStorageController::SetPortCount"/>.
12347 </desc>
12348 </attribute>
12349
12350 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12351 <desc>
12352 Maximum number of ports which can be set with
12353 <link to="IStorageController::SetPortCount"/>.
12354 </desc>
12355 </attribute>
12356
12357 <attribute name="instance" type="unsigned long">
12358 <desc>
12359 The instance number of the device in the running VM.
12360 </desc>
12361 </attribute>
12362
12363 <attribute name="portCount" type="unsigned long">
12364 <desc>
12365 The number of currently usable ports on the controller.
12366 The minimum and maximum number of ports for one controller type can
12367 be determined with <link to="IStorageController::GetMinPortCount"/>
12368 and <link to="IStorageController::GetMaxPortCount"/>..
12369 </desc>
12370 </attribute>
12371
12372 <attribute name="bus" type="StorageBus" readonly="yes">
12373 <desc>
12374 The connection type of the storage controller.
12375 </desc>
12376 </attribute>
12377
12378 <attribute name="controllerType" type="StorageControllerType">
12379 <desc>
12380 Type of the virtual storage controller. Depending on this value,
12381 VirtualBox will provide a different virtual storage controller hardware
12382 to the guest.
12383 </desc>
12384 </attribute>
12385
12386 <method name="GetIDEEmulationPort">
12387 <desc>
12388 Gets the corresponding port number which is emulated as an IDE device.
12389
12390 <result name="E_INVALIDARG">
12391 The @a devicePosition is not in the range 0 to 3.
12392 </result>
12393 <result name="E_NOTIMPL">
12394 The storage controller type is not SATAIntelAhci.
12395 </result>
12396
12397 </desc>
12398 <param name="devicePosition" type="long" dir="in"/>
12399 <param name="portNumber" type="long" dir="return"/>
12400 </method>
12401
12402 <method name="SetIDEEmulationPort">
12403 <desc>
12404 Sets the port number which is emulated as an IDE device.
12405
12406 <result name="E_INVALIDARG">
12407 The @a devicePosition is not in the range 0 to 3 or the
12408 @a portNumber is not in the range 0 to 29.
12409 </result>
12410 <result name="E_NOTIMPL">
12411 The storage controller type is not SATAIntelAhci.
12412 </result>
12413
12414 </desc>
12415 <param name="devicePosition" type="long" dir="in"/>
12416 <param name="portNumber" type="long" dir="in"/>
12417 </method>
12418
12419 </interface>
12420
12421<if target="wsdl">
12422
12423 <!--
12424 // IManagedObjectRef
12425 /////////////////////////////////////////////////////////////////////////
12426 -->
12427
12428 <interface
12429 name="IManagedObjectRef" extends="$unknown"
12430 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12431 internal="yes"
12432 wsmap="managed"
12433 wscpp="hardcoded"
12434 >
12435 <desc>
12436 Managed object reference.
12437
12438 Only within the webservice, a managed object reference (which is really
12439 an opaque number) allows a webservice client to address an object
12440 that lives in the address space of the webservice server.
12441
12442 Behind each managed object reference, there is a COM object that lives
12443 in the webservice server's address space. The COM object is not freed
12444 until the managed object reference is released, either by an explicit
12445 call to <link to="IManagedObjectRef::release" /> or by logging off from
12446 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12447 all objects created during the webservice session.
12448
12449 Whenever a method call of the VirtualBox API returns a COM object, the
12450 webservice representation of that method will instead return a
12451 managed object reference, which can then be used to invoke methods
12452 on that object.
12453 </desc>
12454
12455 <method name="getInterfaceName">
12456 <desc>
12457 Returns the name of the interface that this managed object represents,
12458 for example, "IMachine", as a string.
12459 </desc>
12460 <param name="return" type="wstring" dir="return"/>
12461 </method>
12462
12463 <method name="release">
12464 <desc>
12465 Releases this managed object reference and frees the resources that
12466 were allocated for it in the webservice server process. After calling
12467 this method, the identifier of the reference can no longer be used.
12468 </desc>
12469 </method>
12470
12471 </interface>
12472
12473 <!--
12474 // IWebsessionManager
12475 /////////////////////////////////////////////////////////////////////////
12476 -->
12477
12478 <interface
12479 name="IWebsessionManager" extends="$unknown"
12480 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12481 internal="yes"
12482 wsmap="global"
12483 wscpp="hardcoded"
12484 >
12485 <desc>
12486 Websession manager. This provides essential services
12487 to webservice clients.
12488 </desc>
12489 <method name="logon">
12490 <desc>
12491 Logs a new client onto the webservice and returns a managed object reference to
12492 the IVirtualBox instance, which the client can then use as a basis to further
12493 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12494 interface, in one way or the other.
12495 </desc>
12496 <param name="username" type="wstring" dir="in"/>
12497 <param name="password" type="wstring" dir="in"/>
12498 <param name="return" type="IVirtualBox" dir="return"/>
12499 </method>
12500
12501 <method name="getSessionObject">
12502 <desc>
12503 Returns a managed object reference to the internal ISession object that was created
12504 for this web service session when the client logged on.
12505
12506 <see>ISession</see>
12507 </desc>
12508 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12509 <param name="return" type="ISession" dir="return"/>
12510 </method>
12511
12512 <method name="logoff">
12513 <desc>
12514 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12515 and destroys all resources associated with the session (most importantly, all
12516 managed objects created in the server while the session was active).
12517 </desc>
12518 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12519 </method>
12520
12521 </interface>
12522
12523</if>
12524
12525 <!--
12526 // IPerformanceCollector & friends
12527 /////////////////////////////////////////////////////////////////////////
12528 -->
12529
12530 <interface
12531 name="IPerformanceMetric" extends="$unknown"
12532 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12533 >
12534 <desc>
12535 The IPerformanceMetric interface represents parameters of the given
12536 performance metric.
12537 </desc>
12538
12539 <attribute name="metricName" type="wstring" readonly="yes">
12540 <desc>
12541 Name of the metric.
12542 </desc>
12543 </attribute>
12544
12545 <attribute name="object" type="$unknown" readonly="yes">
12546 <desc>
12547 Object this metric belongs to.
12548 </desc>
12549 </attribute>
12550
12551 <attribute name="description" type="wstring" readonly="yes">
12552 <desc>
12553 Textual description of the metric.
12554 </desc>
12555 </attribute>
12556
12557 <attribute name="period" type="unsigned long" readonly="yes">
12558 <desc>
12559 Time interval between samples, measured in seconds.
12560 </desc>
12561 </attribute>
12562
12563 <attribute name="count" type="unsigned long" readonly="yes">
12564 <desc>
12565 Number of recent samples retained by the performance collector for this
12566 metric.
12567
12568 When the collected sample count exceeds this number, older samples
12569 are discarded.
12570 </desc>
12571 </attribute>
12572
12573 <attribute name="unit" type="wstring" readonly="yes">
12574 <desc>
12575 Unit of measurement.
12576 </desc>
12577 </attribute>
12578
12579 <attribute name="minimumValue" type="long" readonly="yes">
12580 <desc>
12581 Minimum possible value of this metric.
12582 </desc>
12583 </attribute>
12584
12585 <attribute name="maximumValue" type="long" readonly="yes">
12586 <desc>
12587 Maximum possible value of this metric.
12588 </desc>
12589 </attribute>
12590 </interface>
12591
12592 <interface
12593 name="IPerformanceCollector" extends="$unknown"
12594 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12595 wsmap="managed"
12596 >
12597 <desc>
12598 The IPerformanceCollector interface represents a service that collects and
12599 stores performance metrics data.
12600
12601 Performance metrics are associated with objects like IHost and
12602 IMachine. Each object has a distinct set of performance metrics.
12603 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12604
12605 Metric data are collected at the specified intervals and are retained
12606 internally. The interval and the number of samples retained can be set
12607 with <link to="IPerformanceCollector::setupMetrics" />.
12608
12609 Metrics are organized hierarchically, each level separated by slash (/).
12610 General scheme for metric name is
12611 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12612 metric name stands for: CPU category, Load metric, User submetric, average
12613 aggregate. An aggregate function is computed over all retained data. Valid
12614 aggregate functions are:
12615
12616 <ul>
12617 <li>avg -- average</li>
12618 <li>min -- minimum</li>
12619 <li>max -- maximum</li>
12620 </ul>
12621
12622 "Category/Metric" together form base metric name. A base metric is the
12623 smallest unit for which a sampling interval and the number of retained
12624 samples can be set. Only base metrics can be enabled and disabled. All
12625 sub-metrics are collected when their base metric is collected.
12626 Collected values for any set of sub-metrics can be queried with
12627 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12628 metric parameters, querying metric data, enabling or disabling metrics
12629 wildcards can be used in metric names to specify a subset of metrics. For
12630 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12631 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12632 values without aggregates <tt>*:</tt> can be used.
12633
12634 The valid names for base metrics are:
12635
12636 <ul>
12637 <li>CPU/Load</li>
12638 <li>CPU/MHz</li>
12639 <li>RAM/Usage</li>
12640 </ul>
12641
12642 The general sequence for collecting and retrieving the metrics is:
12643 <ul>
12644 <li>
12645 Obtain an instance of IPerformanceCollector with
12646 <link to="IVirtualBox::performanceCollector" />
12647 </li>
12648 <li>
12649 Allocate and populate an array with references to objects the metrics
12650 will be collected for. Use references to IHost and IMachine objects.
12651 </li>
12652 <li>
12653 Allocate and populate an array with base metric names the data will be
12654 collected for.
12655 </li>
12656 <li>
12657 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12658 metric data will be collected and stored.
12659 </li>
12660 <li>
12661 Wait for the data to get collected.
12662 </li>
12663 <li>
12664 Allocate and populate an array with references to objects the metric
12665 values will be queried for. You can re-use the object array used for
12666 setting base metrics.
12667 </li>
12668 <li>
12669 Allocate and populate an array with metric names the data will be
12670 collected for. Note that metric names differ from base metric names.
12671 </li>
12672 <li>
12673 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12674 have been collected so far are returned. Note that the values are still
12675 retained internally and data collection continues.
12676 </li>
12677 </ul>
12678
12679 For an example of usage refer to the following files in VirtualBox SDK:
12680 <ul>
12681 <li>
12682 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12683 </li>
12684 <li>
12685 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12686 </li>
12687 </ul>
12688 </desc>
12689
12690 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12691 <desc>
12692 Array of unique names of metrics.
12693
12694 This array represents all metrics supported by the performance
12695 collector. Individual objects do not necessarily support all of them.
12696 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12697 list of supported metrics for a particular object.
12698 </desc>
12699 </attribute>
12700
12701 <method name="getMetrics">
12702 <desc>
12703 Returns parameters of specified metrics for a set of objects.
12704 <note>
12705 @c Null metrics array means all metrics. @c Null object array means
12706 all existing objects.
12707 </note>
12708 </desc>
12709 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12710 <desc>
12711 Metric name filter. Currently, only a comma-separated list of metrics
12712 is supported.
12713 </desc>
12714 </param>
12715 <param name="objects" type="$unknown" dir="in" safearray="yes">
12716 <desc>
12717 Set of objects to return metric parameters for.
12718 </desc>
12719 </param>
12720 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12721 <desc>
12722 Array of returned metric parameters.
12723 </desc>
12724 </param>
12725 </method>
12726
12727 <method name="setupMetrics">
12728 <desc>
12729 Sets parameters of specified base metrics for a set of objects. Returns
12730 an array of <link to="IPerformanceMetric" /> describing the metrics have
12731 been affected.
12732 <note>
12733 @c Null or empty metric name array means all metrics. @c Null or empty
12734 object array means all existing objects. If metric name array contains
12735 a single element and object array contains many, the single metric
12736 name array element is applied to each object array element to form
12737 metric/object pairs.
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 setup metric parameters for.
12749 </desc>
12750 </param>
12751 <param name="period" type="unsigned long" dir="in">
12752 <desc>
12753 Time interval in seconds between two consecutive samples of performance
12754 data.
12755 </desc>
12756 </param>
12757 <param name="count" type="unsigned long" dir="in">
12758 <desc>
12759 Number of samples to retain in performance data history. Older samples
12760 get discarded.
12761 </desc>
12762 </param>
12763 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12764 <desc>
12765 Array of metrics that have been modified by the call to this method.
12766 </desc>
12767 </param>
12768 </method>
12769
12770 <method name="enableMetrics">
12771 <desc>
12772 Turns on collecting specified base metrics. Returns an array of
12773 <link to="IPerformanceMetric" /> describing the metrics have been
12774 affected.
12775 <note>
12776 @c Null or empty metric name array means all metrics. @c Null or empty
12777 object array means all existing objects. If metric name array contains
12778 a single element and object array contains many, the single metric
12779 name array element is applied to each object array element to form
12780 metric/object pairs.
12781 </note>
12782 </desc>
12783 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12784 <desc>
12785 Metric name filter. Comma-separated list of metrics with wildcard
12786 support.
12787 </desc>
12788 </param>
12789 <param name="objects" type="$unknown" dir="in" safearray="yes">
12790 <desc>
12791 Set of objects to enable metrics for.
12792 </desc>
12793 </param>
12794 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12795 <desc>
12796 Array of metrics that have been modified by the call to this method.
12797 </desc>
12798 </param>
12799 </method>
12800
12801 <method name="disableMetrics">
12802 <desc>
12803 Turns off collecting specified base metrics. Returns an array of
12804 <link to="IPerformanceMetric" /> describing the metrics have been
12805 affected.
12806 <note>
12807 @c Null or empty metric name array means all metrics. @c Null or empty
12808 object array means all existing objects. If metric name array contains
12809 a single element and object array contains many, the single metric
12810 name array element is applied to each object array element to form
12811 metric/object pairs.
12812 </note>
12813 </desc>
12814 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12815 <desc>
12816 Metric name filter. Comma-separated list of metrics with wildcard
12817 support.
12818 </desc>
12819 </param>
12820 <param name="objects" type="$unknown" dir="in" safearray="yes">
12821 <desc>
12822 Set of objects to disable metrics for.
12823 </desc>
12824 </param>
12825 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12826 <desc>
12827 Array of metrics that have been modified by the call to this method.
12828 </desc>
12829 </param>
12830 </method>
12831
12832 <method name="queryMetricsData">
12833 <desc>
12834 Queries collected metrics data for a set of objects.
12835
12836 The data itself and related metric information are returned in seven
12837 parallel and one flattened array of arrays. Elements of
12838 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12839 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12840 the same index describe one set of values corresponding to a single
12841 metric.
12842
12843 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12844 start and length of a sub-array is indicated by
12845 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12846 value for metric <tt>metricNames[i]</tt> is at
12847 <tt>returnData[returnIndices[i]]</tt>.
12848
12849 <note>
12850 @c Null or empty metric name array means all metrics. @c Null or empty
12851 object array means all existing objects. If metric name array contains
12852 a single element and object array contains many, the single metric
12853 name array element is applied to each object array element to form
12854 metric/object pairs.
12855 </note>
12856 <note>
12857 Data collection continues behind the scenes after call to
12858 @c queryMetricsData. The return data can be seen as the snapshot of
12859 the current state at the time of @c queryMetricsData call. The
12860 internally kept metric values are not cleared by the call. This makes
12861 possible querying different subsets of metrics or aggregates with
12862 subsequent calls. If periodic querying is needed it is highly
12863 suggested to query the values with @c interval*count period to avoid
12864 confusion. This way a completely new set of data values will be
12865 provided by each query.
12866 </note>
12867 </desc>
12868 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12869 <desc>
12870 Metric name filter. Comma-separated list of metrics with wildcard
12871 support.
12872 </desc>
12873 </param>
12874 <param name="objects" type="$unknown" dir="in" safearray="yes">
12875 <desc>
12876 Set of objects to query metrics for.
12877 </desc>
12878 </param>
12879 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12880 <desc>
12881 Names of metrics returned in @c returnData.
12882 </desc>
12883 </param>
12884 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12885 <desc>
12886 Objects associated with metrics returned in @c returnData.
12887 </desc>
12888 </param>
12889 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12890 <desc>
12891 Units of measurement for each returned metric.
12892 </desc>
12893 </param>
12894 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12895 <desc>
12896 Divisor that should be applied to return values in order to get
12897 floating point values. For example:
12898 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12899 will retrieve the floating point value of i-th sample of the first
12900 metric.
12901 </desc>
12902 </param>
12903 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12904 <desc>
12905 Sequence numbers of the first elements of value sequences of particular metrics
12906 returned in @c returnData. For aggregate metrics it is the sequence number of
12907 the sample the aggregate started calculation from.
12908 </desc>
12909 </param>
12910 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12911 <desc>
12912 Indices of the first elements of value sequences of particular metrics
12913 returned in @c returnData.
12914 </desc>
12915 </param>
12916 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12917 <desc>
12918 Lengths of value sequences of particular metrics.
12919 </desc>
12920 </param>
12921 <param name="returnData" type="long" dir="return" safearray="yes">
12922 <desc>
12923 Flattened array of all metric data containing sequences of values for
12924 each metric.
12925 </desc>
12926 </param>
12927 </method>
12928
12929 </interface>
12930
12931 <module name="VBoxSVC" context="LocalServer">
12932 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12933 namespace="virtualbox.org">
12934 <interface name="IVirtualBox" default="yes"/>
12935 </class>
12936 </module>
12937
12938 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12939 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12940 namespace="virtualbox.org">
12941 <interface name="ISession" default="yes"/>
12942 </class>
12943 </module>
12944
12945</library>
12946
12947</idl>
12948
12949<!-- 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