VirtualBox

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

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

Python: imporved error reporting in XPCOM, shell updates, docs

  • Property svn:eol-style set to native
File size: 470.6 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2008 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, <tt>NULL</tt>). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="MachineState"
363 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
364 >
365 <desc>
366 Virtual machine execution state.
367
368 This enumeration represents possible values of the <link
369 to="IMachine::state"/> attribute.
370
371 Below is the basic virtual machine state diagram. It shows how the state
372 changes during virtual machine execution. The text in square braces shows
373 a method of the IConsole interface that performs the given state
374 transition.
375
376 <pre>
377 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
378 V |
379 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
380 | | | | V |
381 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
382 | | ^ | ^ |
383 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
384 | ^ | | | |
385 | | +-----------------------------------------+-|-------------------+ +
386 | | | | |
387 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
388 | | | |
389 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
390 | | |
391 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
392 </pre>
393
394 Note that states to the right from PoweredOff, Aborted and Saved in the
395 above diagram are called <i>online VM states</i>. These states
396 represent the virtual machine which is being executed in a dedicated
397 process (usually with a GUI window attached to it where you can see the
398 activity of the virtual machine and interact with it). There are two
399 special pseudo-states, FirstOnline and LastOnline, that can be used in
400 relational expressions to detect if the given machine state is online or
401 not:
402
403 <pre>
404 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
405 machine.GetState() &lt;= MachineState_LastOnline)
406 {
407 ...the machine is being executed...
408 }
409 </pre>
410
411 When the virtual machine is in one of the online VM states (that is, being
412 executed), only a few machine settings can be modified. Methods working
413 with such settings contain an explicit note about that. An attempt to
414 change any oter setting or perform a modifying operation during this time
415 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
416
417 All online states except Running, Paused and Stuck are transitional: they
418 represent temporary conditions of the virtual machine that will last as
419 long as the operation that initiated such a condition.
420
421 The Stuck state is a special case. It means that execution of the machine
422 has reached the "Guru Meditation" condition. This condition indicates an
423 internal VMM (virtual machine manager) failure which may happen as a
424 result of either an unhandled low-level virtual hardware exception or one
425 of the recompiler exceptions (such as the <i>too-many-traps</i>
426 condition).
427
428 Note also that any online VM state may transit to the Aborted state. This
429 happens if the process that is executing the virtual machine terminates
430 unexpectedly (for example, crashes). Other than that, the Aborted state is
431 equivalent to PoweredOff.
432
433 There are also a few additional state diagrams that do not deal with
434 virtual machine execution and therefore are shown separately. The states
435 shown on these diagrams are called <i>offline VM states</i> (this includes
436 PoweredOff, Aborted and Saved too).
437
438 The first diagram shows what happens when a lengthy setup operation is
439 being executed (such as <link to="IMachine::attachHardDisk"/>).
440
441 <pre>
442 +-----------------------------------(same sate as before the call)------+
443 | |
444 +-&gt; PoweredOff --+ |
445 | | |
446 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
447 | |
448 +-&gt; Saved -------+
449 </pre>
450
451 The next two diagrams demonstrate the process of taking a snapshot of a
452 powered off virtual machine and performing one of the "discard..."
453 operations, respectively.
454
455 <pre>
456 +-----------------------------------(same sate as before the call)------+
457 | |
458 +-&gt; PoweredOff --+ |
459 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
460 +-&gt; Aborted -----+
461
462 +-&gt; PoweredOff --+
463 | |
464 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
465 | | [discardCurrentState()] |
466 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
467 | |
468 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
469 </pre>
470
471 Note that the Saving state is present in both the offline state group and
472 online state group. Currently, the only way to determine what group is
473 assumed in a particular case is to remember the previous machine state: if
474 it was Running or Paused, then Saving is an online state, otherwise it is
475 an offline state. This inconsistency may be removed in one of the future
476 versions of VirtualBox by adding a new state.
477
478 <note internal="yes">
479 For whoever decides to touch this enum: In order to keep the
480 comparisons involving FirstOnline and LastOnline pseudo-states valid,
481 the numeric values of these states must be correspondingly updated if
482 needed: for any online VM state, the condition
483 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
484 <tt>true</tt>. The same relates to transient states for which
485 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
486 <tt>true</tt>.
487 </note>
488 </desc>
489
490 <const name="Null" value="0">
491 <desc>Null value (nver used by the API).</desc>
492 </const>
493 <const name="PoweredOff" value="1">
494 <desc>
495 The machine is not running.
496 </desc>
497 </const>
498 <const name="Saved" value="2">
499 <desc>
500 The machine is not currently running, but the execution state of the machine
501 has been saved to an external file when it was running.
502 </desc>
503 </const>
504 <const name="Aborted" value="3">
505 <desc>
506 The process running the machine has terminated abnormally.
507 </desc>
508 </const>
509 <const name="Running" value="4">
510 <desc>
511 The machine is currently being executed.
512 <note internal="yes">
513 For whoever decides to touch this enum: In order to keep the
514 comparisons in the old source code valid, this state must immediately
515 precede the Paused state.
516 </note>
517 </desc>
518 </const>
519 <const name="Paused" value="5">
520 <desc>
521 Execution of the machine has been paused.
522 <note internal="yes">
523 For whoever decides to touch this enum: In order to keep the
524 comparisons in the old source code valid, this state must immediately
525 follow the Running state.
526 </note>
527 </desc>
528 </const>
529 <const name="Stuck" value="6">
530 <desc>
531 Execution of the machine has reached the "Guru Meditation"
532 condition.
533 </desc>
534 </const>
535 <const name="Starting" value="7">
536 <desc>
537 Machine is being started after powering it on from a
538 zero execution state.
539 </desc>
540 </const>
541 <const name="Stopping" value="8">
542 <desc>
543 Machine is being normally stopped powering it off, or after the guest OS
544 has initiated a shutdown sequence.
545 </desc>
546 </const>
547 <const name="Saving" value="9">
548 <desc>
549 Machine is saving its execution state to a file or an online
550 snapshot of the machine is being taken.
551 </desc>
552 </const>
553 <const name="Restoring" value="10">
554 <desc>
555 Execution state of the machine is being restored from a file
556 after powering it on from the saved execution state.
557 </desc>
558 </const>
559 <const name="Discarding" value="11">
560 <desc>
561 Snapshot of the machine is being discarded.
562 </desc>
563 </const>
564 <const name="SettingUp" value="12">
565 <desc>
566 Lengthy setup operation is in progress.
567 </desc>
568 </const>
569
570 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
571 <desc>
572 Pseudo-state: first online state (for use in relational expressions).
573 </desc>
574 </const>
575 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
576 <desc>
577 Pseudo-state: last online state (for use in relational expressions).
578 </desc>
579 </const>
580
581 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
582 <desc>
583 Pseudo-state: first transient state (for use in relational expressions).
584 </desc>
585 </const>
586 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
587 <desc>
588 Pseudo-state: last transient state (for use in relational expressions).
589 </desc>
590 </const>
591
592 </enum>
593
594 <enum
595 name="SessionState"
596 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
597 >
598 <desc>
599 Session state. This enumeration represents possible values of
600 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
601 attributes. See individual enumerator descriptions for the meaning for
602 every value.
603 </desc>
604
605 <const name="Null" value="0">
606 <desc>Null value (never used by the API).</desc>
607 </const>
608 <const name="Closed" value="1">
609 <desc>
610 The machine has no open sessions (<link to="IMachine::sessionState"/>);
611 the session is closed (<link to="ISession::state"/>)
612 </desc>
613 </const>
614 <const name="Open" value="2">
615 <desc>
616 The machine has an open direct session (<link to="IMachine::sessionState"/>);
617 the session is open (<link to="ISession::state"/>)
618 </desc>
619 </const>
620 <const name="Spawning" value="3">
621 <desc>
622 A new (direct) session is being opened for the machine
623 as a result of <link to="IVirtualBox::openRemoteSession"/>
624 call (<link to="IMachine::sessionState"/>);
625 the session is currently being opened
626 as a result of <link to="IVirtualBox::openRemoteSession"/>
627 call (<link to="ISession::state"/>)
628 </desc>
629 </const>
630 <const name="Closing" value="4">
631 <desc>
632 The direct session is being closed (<link to="IMachine::sessionState"/>);
633 the session is being closed (<link to="ISession::state"/>)
634 </desc>
635 </const>
636 </enum>
637
638 <enum
639 name="SessionType"
640 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
641 >
642 <desc>
643 Session type. This enumeration represents possible values of the
644 <link to="ISession::type"/> attribute.
645 </desc>
646
647 <const name="Null" value="0">
648 <desc>Null value (never used by the API).</desc>
649 </const>
650 <const name="Direct" value="1">
651 <desc>
652 Direct session
653 (opened by <link to="IVirtualBox::openSession"/>)
654 </desc>
655 </const>
656 <const name="Remote" value="2">
657 <desc>
658 Remote session
659 (opened by <link to="IVirtualBox::openRemoteSession"/>)
660 </desc>
661 </const>
662 <const name="Existing" value="3">
663 <desc>
664 Existing session
665 (opened by <link to="IVirtualBox::openExistingSession"/>)
666 </desc>
667 </const>
668 </enum>
669
670 <enum
671 name="DeviceType"
672 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
673 >
674 <desc>
675 Device type.
676 </desc>
677 <const name="Null" value="0">
678 <desc>
679 Null value, may also mean "no device" (not allowed for
680 <link to="IConsole::getDeviceActivity"/>).
681 </desc>
682 </const>
683 <const name="Floppy" value="1">
684 <desc>Floppy device.</desc>
685 </const>
686 <const name="DVD" value="2">
687 <desc>CD/DVD-ROM device.</desc>
688 </const>
689 <const name="HardDisk" value="3">
690 <desc>Hard disk device.</desc>
691 </const>
692 <const name="Network" value="4">
693 <desc>Network device.</desc>
694 </const>
695 <const name="USB" value="5">
696 <desc>USB device.</desc>
697 </const>
698 <const name="SharedFolder" value="6">
699 <desc>Shared folder device.</desc>
700 </const>
701 </enum>
702
703 <enum
704 name="DeviceActivity"
705 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
706 >
707 <desc>
708 Device activity for <link to="IConsole::getDeviceActivity"/>.
709 </desc>
710
711 <const name="Null" value="0"/>
712 <const name="Idle" value="1"/>
713 <const name="Reading" value="2"/>
714 <const name="Writing" value="3"/>
715 </enum>
716
717 <enum
718 name="StorageBus"
719 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
720 >
721 <desc>Interface bus type for storage devices.</desc>
722
723 <const name="Null" value="0">
724 <desc>Null value (never used by the API).</desc>
725 </const>
726
727 <const name="IDE" value="1"/>
728 <const name="SATA" value="2"/>
729 </enum>
730
731 <enum
732 name="ClipboardMode"
733 uuid="33364716-4008-4701-8f14-be0fa3d62950"
734 >
735 <desc>
736 Host-Guest clipboard interchange mode.
737 </desc>
738
739 <const name="Disabled" value="0"/>
740 <const name="HostToGuest" value="1"/>
741 <const name="GuestToHost" value="2"/>
742 <const name="Bidirectional" value="3"/>
743 </enum>
744
745 <enum
746 name="Scope"
747 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
748 >
749 <desc>
750 Scope of the operation.
751
752 A generic enumeration used in various methods to define the action or
753 argument scope.
754 </desc>
755
756 <const name="Global" value="0"/>
757 <const name="Machine" value="1"/>
758 <const name="Session" value="2"/>
759 </enum>
760
761 <enum
762 name="GuestStatisticType"
763 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
764 >
765 <desc>
766 Statistics type for <link to="IGuest::getStatistic"/>.
767 </desc>
768
769 <const name="CPULoad_Idle" value="0">
770 <desc>
771 Idle CPU load (0-100%) for last interval.
772 </desc>
773 </const>
774 <const name="CPULoad_Kernel" value="1">
775 <desc>
776 Kernel CPU load (0-100%) for last interval.
777 </desc>
778 </const>
779 <const name="CPULoad_User" value="2">
780 <desc>
781 User CPU load (0-100%) for last interval.
782 </desc>
783 </const>
784 <const name="Threads" value="3">
785 <desc>
786 Total number of threads in the system.
787 </desc>
788 </const>
789 <const name="Processes" value="4">
790 <desc>
791 Total number of processes in the system.
792 </desc>
793 </const>
794 <const name="Handles" value="5">
795 <desc>
796 Total number of handles in the system.
797 </desc>
798 </const>
799 <const name="MemoryLoad" value="6">
800 <desc>
801 Memory load (0-100%).
802 </desc>
803 </const>
804 <const name="PhysMemTotal" value="7">
805 <desc>
806 Total physical memory in megabytes.
807 </desc>
808 </const>
809 <const name="PhysMemAvailable" value="8">
810 <desc>
811 Free physical memory in megabytes.
812 </desc>
813 </const>
814 <const name="PhysMemBalloon" value="9">
815 <desc>
816 Ballooned physical memory in megabytes.
817 </desc>
818 </const>
819 <const name="MemCommitTotal" value="10">
820 <desc>
821 Total amount of memory in the committed state in megabytes.
822 </desc>
823 </const>
824 <const name="MemKernelTotal" value="11">
825 <desc>
826 Total amount of memory used by the guest OS's kernel in megabytes.
827 </desc>
828 </const>
829 <const name="MemKernelPaged" value="12">
830 <desc>
831 Total amount of paged memory used by the guest OS's kernel in megabytes.
832 </desc>
833 </const>
834 <const name="MemKernelNonpaged" value="13">
835 <desc>
836 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
837 </desc>
838 </const>
839 <const name="MemSystemCache" value="14">
840 <desc>
841 Total amount of memory used by the guest OS's system cache in megabytes.
842 </desc>
843 </const>
844 <const name="PageFileSize" value="15">
845 <desc>
846 Pagefile size in megabytes.
847 </desc>
848 </const>
849 <const name="SampleNumber" value="16">
850 <desc>
851 Statistics sample number
852 </desc>
853 </const>
854 <const name="MaxVal" value="17"/>
855 </enum>
856
857 <enum
858 name="BIOSBootMenuMode"
859 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
860 >
861 <desc>
862 BIOS boot menu mode.
863 </desc>
864
865 <const name="Disabled" value="0"/>
866 <const name="MenuOnly" value="1"/>
867 <const name="MessageAndMenu" value="2"/>
868 </enum>
869
870 <enum
871 name="IDEControllerType"
872 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
873 >
874 <desc>
875 IDE controller type.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="PIIX3" value="1"/>
882 <const name="PIIX4" value="2"/>
883 </enum>
884
885 <enum
886 name="DriveState"
887 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
888 >
889 <const name="Null" value="0">
890 <desc>Null value (never used by the API).</desc>
891 </const>
892 <const name="NotMounted" value="1"/>
893 <const name="ImageMounted" value="2"/>
894 <const name="HostDriveCaptured" value="3"/>
895 </enum>
896
897 <enum
898 name="ProcessorFeature"
899 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
900 >
901 <desc>
902 CPU features.
903 </desc>
904
905 <const name="HWVirtEx" value="0"/>
906 <const name="PAE" value="1"/>
907 <const name="LongMode" value="2"/>
908 </enum>
909
910
911 <!--
912 // IVirtualBoxErrorInfo
913 /////////////////////////////////////////////////////////////////////////
914 -->
915
916 <interface
917 name="IVirtualBoxErrorInfo" extends="$errorinfo"
918 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
919 supportsErrorInfo="no"
920 wsmap="suppress"
921 >
922 <desc>
923 The IVirtualBoxErrorInfo interface represents extended error information.
924
925 Extended error information can be set by VirtualBox components after
926 unsuccessful or partially successful method invocation. This information
927 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
928 and then shown to the client in addition to the plain 32-bit result code.
929
930 In MS COM, this interface extends the IErrorInfo interface,
931 in XPCOM, it extends the nsIException interface. In both cases,
932 it provides a set of common attributes to retrieve error
933 information.
934
935 Sometimes invocation of some component's method may involve methods of
936 other components that may also fail (independently of this method's
937 failure), or a series of non-fatal errors may precede a fatal error that
938 causes method failure. In cases like that, it may be desirable to preserve
939 information about all errors happened during method invocation and deliver
940 it to the caller. The <link to="#next"/> attribute is intended
941 specifically for this purpose and allows to represent a chain of errors
942 through a single IVirtualBoxErrorInfo object set after method invocation.
943
944 Note that errors are stored to a chain in the reverse order, i.e. the
945 initial error object you query right after method invocation is the last
946 error set by the callee, the object it points to in the @a next attribute
947 is the previous error and so on, up to the first error (which is the last
948 in the chain).
949 </desc>
950
951 <attribute name="resultCode" type="result" readonly="yes">
952 <desc>
953 Result code of the error.
954 Usually, it will be the same as the result code returned
955 by the method that provided this error information, but not
956 always. For example, on Win32, CoCreateInstance() will most
957 likely return E_NOINTERFACE upon unsuccessful component
958 instantiation attempt, but not the value the component factory
959 returned.
960 <note>
961 In MS COM, there is no equivalent.
962 In XPCOM, it is the same as nsIException::result.
963 </note>
964 </desc>
965 </attribute>
966
967 <attribute name="interfaceID" type="uuid" readonly="yes">
968 <desc>
969 UUID of the interface that defined the error.
970 <note>
971 In MS COM, it is the same as IErrorInfo::GetGUID.
972 In XPCOM, there is no equivalent.
973 </note>
974 </desc>
975 </attribute>
976
977 <attribute name="component" type="wstring" readonly="yes">
978 <desc>
979 Name of the component that generated the error.
980 <note>
981 In MS COM, it is the same as IErrorInfo::GetSource.
982 In XPCOM, there is no equivalent.
983 </note>
984 </desc>
985 </attribute>
986
987 <attribute name="text" type="wstring" readonly="yes">
988 <desc>
989 Text description of the error.
990 <note>
991 In MS COM, it is the same as IErrorInfo::GetDescription.
992 In XPCOM, it is the same as nsIException::message.
993 </note>
994 </desc>
995 </attribute>
996
997 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
998 <desc>
999 Next error object if there is any, or @c null otherwise.
1000 <note>
1001 In MS COM, there is no equivalent.
1002 In XPCOM, it is the same as nsIException::inner.
1003 </note>
1004 </desc>
1005 </attribute>
1006
1007 </interface>
1008
1009
1010 <!--
1011 // IVirtualBox
1012 /////////////////////////////////////////////////////////////////////////
1013 -->
1014
1015 <interface
1016 name="IVirtualBoxCallback" extends="$unknown"
1017 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
1018 wsmap="suppress"
1019 >
1020 <method name="onMachineStateChange">
1021 <desc>
1022 The execution state of the given machine has changed.
1023 <see>IMachine::state</see>
1024 </desc>
1025 <param name="machineId" type="uuid" dir="in">
1026 <desc>ID of the machine this event relates to.</desc>
1027 </param>
1028 <param name="state" type="MachineState" dir="in">
1029 <desc>New execution state.</desc>
1030 </param>
1031 </method>
1032
1033 <method name="onMachineDataChange">
1034 <desc>
1035 Any of the settings of the given machine has changed.
1036 </desc>
1037 <param name="machineId" type="uuid" dir="in">
1038 <desc>ID of the machine this event relates to.</desc>
1039 </param>
1040 </method>
1041
1042 <method name="onExtraDataCanChange">
1043 <desc>
1044 Notification when someone tries to change extra data for
1045 either the given machine or (if null) global extra data.
1046 This gives the chance to veto against changes.
1047 </desc>
1048 <param name="machineId" type="uuid" dir="in">
1049 <desc>
1050 ID of the machine this event relates to
1051 (null ID for global extra data change requests).
1052 </desc>
1053 </param>
1054 <param name="key" type="wstring" dir="in">
1055 <desc>
1056 Extra data key for the attempted write.
1057 </desc>
1058 </param>
1059 <param name="value" type="wstring" dir="in">
1060 <desc>
1061 Extra data value for the given key.
1062 </desc>
1063 </param>
1064 <param name="error" type="wstring" dir="out">
1065 <desc>
1066 Optional error message describing the reason of the
1067 veto (ignored if this notification returns @c true).
1068 </desc>
1069 </param>
1070 <param name="allowChange" type="boolean" dir="return">
1071 <desc>
1072 Flag to indicate whether the callee agrees (@c true)
1073 or vetoes against the change (@c false).
1074 </desc>
1075 </param>
1076 </method>
1077
1078 <method name="onExtraDataChange">
1079 <desc>
1080 Notification when machine specific or global extra data
1081 has changed.
1082 </desc>
1083 <param name="machineId" type="uuid" dir="in">
1084 <desc>
1085 ID of the machine this event relates to.
1086 Null for global extra data changes.
1087 </desc>
1088 </param>
1089 <param name="key" type="wstring" dir="in">
1090 <desc>
1091 Extra data key that has changed.
1092 </desc>
1093 </param>
1094 <param name="value" type="wstring" dir="in">
1095 <desc>
1096 Extra data value for the given key.
1097 </desc>
1098 </param>
1099 </method>
1100
1101 <method name="onMediaRegistered">
1102 <desc>
1103 The given media was registered or unregistered
1104 within this VirtualBox installation.
1105
1106 The @a mediaType parameter describes what type of
1107 media the specified @a mediaId refers to. Possible
1108 values are:
1109
1110 <ul>
1111 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1112 that, if registered, can be obtained using the
1113 <link to="IVirtualBox::getHardDisk"/> call.</li>
1114 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1115 that, if registered, can be obtained using the
1116 <link to="IVirtualBox::getDVDImage"/> call.</li>
1117 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1118 that, if registered, can be obtained using the
1119 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1120 </ul>
1121
1122 Note that if this is a deregistration notification,
1123 there is no way to access the object representing the
1124 unregistered media. It is supposed that the
1125 application will do required cleanup based on the
1126 @a mediaId value.
1127 </desc>
1128 <param name="mediaId" type="uuid" dir="in">
1129 <desc>ID of the media this event relates to.</desc>
1130 </param>
1131 <param name="mediaType" type="DeviceType" dir="in">
1132 <desc>Type of the media this event relates to.</desc>
1133 </param>
1134 <param name="registered" type="boolean" dir="in">
1135 <desc>
1136 If true, the media was registered, otherwise it was
1137 unregistered.
1138 </desc>
1139 </param>
1140 </method>
1141
1142 <method name="onMachineRegistered">
1143 <desc>
1144 The given machine was registered or unregistered
1145 within this VirtualBox installation.
1146 </desc>
1147 <param name="machineId" type="uuid" dir="in">
1148 <desc>ID of the machine this event relates to.</desc>
1149 </param>
1150 <param name="registered" type="boolean" dir="in">
1151 <desc>
1152 If true, the machine was registered, otherwise it was
1153 unregistered.
1154 </desc>
1155 </param>
1156 </method>
1157
1158 <method name="onSessionStateChange">
1159 <desc>
1160 The state of the session for the given machine was changed.
1161 <see>IMachine::sessionState</see>
1162 </desc>
1163 <param name="machineId" type="uuid" dir="in">
1164 <desc>ID of the machine this event relates to.</desc>
1165 </param>
1166 <param name="state" type="SessionState" dir="in">
1167 <desc>New session state.</desc>
1168 </param>
1169 </method>
1170
1171 <method name="onSnapshotTaken">
1172 <desc>
1173 A new snapshot of the machine has been taken.
1174 <see>ISnapshot</see>
1175 </desc>
1176 <param name="machineId" type="uuid" dir="in">
1177 <desc>ID of the machine this event relates to.</desc>
1178 </param>
1179 <param name="snapshotId" type="uuid" dir="in">
1180 <desc>ID of the new snapshot.</desc>
1181 </param>
1182 </method>
1183
1184 <method name="onSnapshotDiscarded">
1185 <desc>
1186 Snapshot of the given machine has been discarded.
1187
1188 <note>
1189 This notification is delivered <b>after</b> the snapshot
1190 object has been uninitialized on the server (so that any
1191 attempt to call its methods will return an error).
1192 </note>
1193
1194 <see>ISnapshot</see>
1195 </desc>
1196 <param name="machineId" type="uuid" dir="in">
1197 <desc>ID of the machine this event relates to.</desc>
1198 </param>
1199 <param name="snapshotId" type="uuid" dir="in">
1200 <desc>
1201 ID of the discarded snapshot. <tt>null</tt> means the
1202 current machine state has been discarded (restored from
1203 the current snapshot).
1204 </desc>
1205 </param>
1206 </method>
1207
1208 <method name="onSnapshotChange">
1209 <desc>
1210 Snapshot properties (name and/or description) have been changed.
1211 <see>ISnapshot</see>
1212 </desc>
1213 <param name="machineId" type="uuid" dir="in">
1214 <desc>ID of the machine this event relates to.</desc>
1215 </param>
1216 <param name="snapshotId" type="uuid" dir="in">
1217 <desc>ID of the changed snapshot.</desc>
1218 </param>
1219 </method>
1220
1221 <method name="onGuestPropertyChange">
1222 <desc>
1223 Notification when a guest property has changed.
1224 </desc>
1225 <param name="machineId" type="uuid" dir="in">
1226 <desc>
1227 ID of the machine this event relates to.
1228 </desc>
1229 </param>
1230 <param name="name" type="wstring" dir="in">
1231 <desc>
1232 The name of the property that has changed.
1233 </desc>
1234 </param>
1235 <param name="value" type="wstring" dir="in">
1236 <desc>
1237 The new property value.
1238 </desc>
1239 </param>
1240 <param name="flags" type="wstring" dir="in">
1241 <desc>
1242 The new property flags.
1243 </desc>
1244 </param>
1245 </method>
1246
1247 </interface>
1248
1249 <interface
1250 name="IVirtualBox" extends="$dispatched"
1251 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1252 wsmap="managed"
1253 >
1254 <desc>
1255 The IVirtualBox interface represents the main interface exposed by the
1256 product that provides virtual machine management.
1257
1258 An instance of IVirtualBox is required for the product to do anything
1259 useful. Even though the interface does not expose this, internally,
1260 IVirtualBox is implemented as a singleton and actually lives in the
1261 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1262 IVirtualBox can track the state of all virtual machines on a particular
1263 host, regardless of which frontend started them.
1264
1265 To enumerate all the virtual machines on the host, use the
1266 <link to="IVirtualBox::machines2"/> attribute.
1267 </desc>
1268
1269 <attribute name="version" type="wstring" readonly="yes">
1270 <desc>
1271 A string representing the version number of the product. The
1272 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1273 last number represents the build number and will frequently change.
1274 </desc>
1275 </attribute>
1276
1277 <attribute name="revision" type="unsigned long" readonly="yes">
1278 <desc>
1279 The internal build revision number of the product.
1280 </desc>
1281 </attribute>
1282
1283 <attribute name="packageType" type="wstring" readonly="yes">
1284 <desc>
1285 A string representing the package type of this product. The
1286 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1287 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1288 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1289 this.
1290 </desc>
1291 </attribute>
1292
1293 <attribute name="homeFolder" type="wstring" readonly="yes">
1294 <desc>
1295 Full path to the directory where the global settings file,
1296 <tt>VirtualBox.xml</tt>, is stored.
1297
1298 In this version of VirtualBox, the value of this property is
1299 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1300 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1301 as determined by the host OS), and cannot be changed.
1302
1303 This path is also used as the base to resolve relative paths in
1304 places where relative paths are allowed (unless otherwise
1305 expressly indicated).
1306 </desc>
1307 </attribute>
1308
1309 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1310 <desc>
1311 Full name of the global settings file.
1312 The value of this property corresponds to the value of
1313 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1314 </desc>
1315 </attribute>
1316
1317 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1318 <desc>
1319 Current version of the format of the global VirtualBox settings file
1320 (<tt>VirtualBox.xml</tt>).
1321
1322 The version string has the following format:
1323 <pre>
1324 x.y-platform
1325 </pre>
1326 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1327 versions, and <tt>platform</tt> is the platform identifier.
1328
1329 The current version usually matches the value of the
1330 <link to="#settingsFormatVersion"/> attribute unless the
1331 settings file was created by an older version of VirtualBox and there
1332 was a change of the settings file format since then.
1333
1334 Note that VirtualBox automatically converts settings files from older
1335 versions to the most recent version when reading them (usually at
1336 VirtualBox startup) but it doesn't save the changes back until
1337 you call a method that implicitly saves settings (such as
1338 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1339 explicitly. Therefore, if the value of this attribute differs from the
1340 value of <link to="#settingsFormatVersion"/>, then it
1341 means that the settings file was converted but the result of the
1342 conversion is not yet saved to disk.
1343
1344 The above feature may be used by interactive front-ends to inform users
1345 about the settings file format change and offer them to explicitly save
1346 all converted settings files (the global and VM-specific ones),
1347 optionally create backup copies of the old settings files before saving,
1348 etc.
1349
1350 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1351 </desc>
1352 </attribute>
1353
1354 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1355 <desc>
1356 Most recent version of the settings file format.
1357
1358 The version string has the following format:
1359 <pre>
1360 x.y-platform
1361 </pre>
1362 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1363 versions, and <tt>platform</tt> is the platform identifier.
1364
1365 VirtualBox uses this version of the format when saving settings files
1366 (either as a result of method calls that require to save settings or as
1367 a result of an explicit call to <link to="#saveSettings"/>).
1368
1369 <see>settingsFileVersion</see>
1370 </desc>
1371 </attribute>
1372
1373 <attribute name="host" type="IHost" readonly="yes">
1374 <desc>Associated host object.</desc>
1375 </attribute>
1376
1377 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1378 <desc>Associated system information object.</desc>
1379 </attribute>
1380
1381 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1382 <desc>
1383 Array of machine objects registered within this VirtualBox instance.
1384 </desc>
1385 </attribute>
1386
1387 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1388 <desc>
1389 Array of hard disk objects known to this VirtualBox installation.
1390
1391 This array contains only base (root) hard disks. All differencing
1392 hard disks of the given base hard disk can be enumerated using
1393 <link to="IHardDisk::children"/>.
1394 </desc>
1395 </attribute>
1396
1397 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1398 <desc>
1399 Array of CD/DVD image objects registered with this VirtualBox instance.
1400 </desc>
1401 </attribute>
1402
1403 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1404 <desc>
1405 Array of floppy image objects registered with this VirtualBox instance.
1406 </desc>
1407 </attribute>
1408
1409 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1410
1411 <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
1412
1413 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
1414 <desc>
1415 Collection of global shared folders. Global shared folders are
1416 available to all virtual machines.
1417
1418 New shared folders are added to the collection using
1419 <link to="#createSharedFolder"/>. Existing shared folders can be
1420 removed using <link to="#removeSharedFolder"/>.
1421
1422 <note>
1423 In the current version of the product, global shared folders are not
1424 implemented and therefore this collection is always empty.
1425 </note>
1426 </desc>
1427 </attribute>
1428
1429 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1430 <desc>
1431 Associated performance collector object.
1432 </desc>
1433 </attribute>
1434
1435 <method name="createMachine">
1436 <desc>
1437 Creates a new virtual machine.
1438
1439 The new machine is created unregistered, with the initial configuration
1440 set according to the specified guest OS type. A typical sequence of
1441 actions to create a new virtual machine is as follows:
1442
1443 <ol>
1444 <li>
1445 Call this method to have a new machine created. The returned machine
1446 object will be "mutable" allowing to change any machine property.
1447 </li>
1448
1449 <li>
1450 Configure the machine using the appropriate attributes and methods.
1451 </li>
1452
1453 <li>
1454 Call <link to="IMachine::saveSettings" /> to write the settings
1455 to the machine's XML settings file. The configuration of the newly
1456 created machine will not be saved to disk until this method is
1457 called.
1458 </li>
1459
1460 <li>
1461 Call <link to="#registerMachine" /> to add the machine to the list
1462 of machines known to VirtualBox.
1463 </li>
1464 </ol>
1465
1466 You should specify valid name for the newly created machine when calling
1467 this method. See the <link to="IMachine::name"/> attribute description
1468 for more details about the machine name.
1469
1470 The specified guest OS type identifier must match an ID of one of known
1471 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1472 array.
1473
1474 Every machine has a <i>settings file</i> that is used to store
1475 the machine configuration. This file is stored in a directory called the
1476 <i>machine settings subfolder</i>. Both the settings subfolder and file
1477 will have a name that corresponds to the name of the virtual machine.
1478 You can specify where to create the machine setting subfolder using the
1479 @a baseFolder argument. The base folder can be absolute (full path) or
1480 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1481 directory</link>.
1482
1483 If @a baseFolder is a null or empty string (which is recommended), the
1484 <link to="ISystemProperties::defaultMachineFolder">default machine
1485 settings folder</link> will be used as a base folder for the created
1486 machine. Otherwise the given base folder will be used. In either case,
1487 the full path to the resulting settings file has the following
1488 structure:
1489 <pre>
1490 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1491 </pre>
1492
1493 Note that if the resulting settings file already exists, this method
1494 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1495
1496 Optionally, you may specify an UUID of to assign to the created machine.
1497 However, this is not recommended and you should normally pass an empty
1498 (null) UUID to this method so that a new UUID will be automatically
1499 generated for every created machine. You can use UUID
1500 00000000-0000-0000-0000-000000000000 as null value.
1501
1502 <note>
1503 There is no way to change the name of the settings file or
1504 subfolder of the created machine directly.
1505 </note>
1506
1507 <result name="VBOX_E_OBJECT_NOT_FOUND">
1508 @a osTypeId is invalid.
1509 </result>
1510 <result name="VBOX_E_FILE_ERROR">
1511 Resulting settings file name is invalid or the settings file already
1512 exists or could not be created due to an I/O error.
1513 </result>
1514 <result name="E_INVALIDARG">
1515 @a name is empty or null.
1516 </result>
1517 </desc>
1518
1519 <param name="name" type="wstring" dir="in">
1520 <desc>Machine name.</desc>
1521 </param>
1522 <param name="osTypeId" type="wstring" dir="in">
1523 <desc>Guest OS Type ID.</desc>
1524 </param>
1525 <param name="baseFolder" type="wstring" dir="in">
1526 <desc>Base machine folder (optional).</desc>
1527 </param>
1528 <param name="id" type="uuid" dir="in">
1529 <desc>Machine UUID (optional).</desc>
1530 </param>
1531 <param name="machine" type="IMachine" dir="return">
1532 <desc>Created machine object.</desc>
1533 </param>
1534 </method>
1535
1536 <method name="createLegacyMachine">
1537 <desc>
1538 Creates a new virtual machine in "legacy" mode, using the specified
1539 settings file to store machine settings.
1540
1541 As opposed to machines created by <link to="#createMachine"/>,
1542 the settings file of the machine created in "legacy" mode is not
1543 automatically renamed when the machine name is changed -- it will always
1544 remain the same as specified in this method call.
1545
1546 The specified settings file name can be absolute (full path) or relative
1547 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1548 directory</link>. If the file name doesn't contain an extension, the
1549 default extension (.xml) will be appended.
1550
1551 Note that the configuration of the newly created machine is not
1552 saved to disk (and therefore no settings file is created)
1553 until <link to="IMachine::saveSettings"/> is called. If the
1554 specified settings file already exists, this method
1555 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1556
1557 See <link to="#createMachine"/> for more information.
1558
1559 @deprecated This method may be removed later. Use <link
1560 to="IVirtualBox::createMachine"/> instead.
1561
1562 <note>
1563 There is no way to change the name of the settings file
1564 of the machine created in "legacy" mode.
1565 </note>
1566
1567 <result name="VBOX_E_OBJECT_NOT_FOUND">
1568 @a osTypeId is invalid.
1569 </result>
1570 <result name="VBOX_E_FILE_ERROR">
1571 @a settingsFile is invalid or the settings file already exists or
1572 could not be created due to an I/O error.
1573 </result>
1574 <result name="E_INVALIDARG">
1575 @a name or @a settingsFile is empty or null.
1576 </result>
1577 </desc>
1578
1579 <param name="name" type="wstring" dir="in">
1580 <desc>Machine name.</desc>
1581 </param>
1582 <param name="osTypeId" type="wstring" dir="in">
1583 <desc>Machine OS Type ID.</desc>
1584 </param>
1585 <param name="settingsFile" type="wstring" dir="in">
1586 <desc>Name of the machine settings file.</desc>
1587 </param>
1588 <param name="id" type="uuid" dir="in">
1589 <desc>Machine UUID (optional).</desc>
1590 </param>
1591 <param name="machine" type="IMachine" dir="return">
1592 <desc>Created machine object.</desc>
1593 </param>
1594 </method>
1595
1596 <method name="openMachine">
1597 <desc>
1598 Opens a virtual machine from the existing settings file.
1599 The opened machine remains unregistered until you call
1600 <link to="#registerMachine"/>.
1601
1602 The specified settings file name can be absolute
1603 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1604 VirtualBox home directory</link>. This file must exist
1605 and must be a valid machine settings file whose contents
1606 will be used to construct the machine object.
1607
1608 @deprecated Will be removed soon.
1609 <result name="VBOX_E_FILE_ERROR">
1610 Settings file name invalid, not found or sharing violation.
1611 </result>
1612 </desc>
1613 <param name="settingsFile" type="wstring" dir="in">
1614 <desc>
1615 Name of the machine settings file.
1616 </desc>
1617 </param>
1618 <param name="machine" type="IMachine" dir="return">
1619 <desc>Opened machine object.</desc>
1620 </param>
1621 <note>
1622 <link to="IMachine::settingsModified"/> will return
1623 false for the created machine, until any of machine settings
1624 are changed.
1625 </note>
1626 </method>
1627
1628 <method name="registerMachine">
1629 <desc>
1630
1631 Registers the machine previously created using
1632 <link to="#createMachine"/> or opened using
1633 <link to="#openMachine"/> within this VirtualBox installation. After
1634 successful method invocation, the
1635 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1636 to all registered callbacks.
1637
1638 <note>
1639 This method implicitly calls <link to="IMachine::saveSettings"/>
1640 to save all current machine settings before registering it.
1641 </note>
1642
1643 <result name="VBOX_E_OBJECT_NOT_FOUND">
1644 No matching virtual machine found.
1645 </result>
1646 <result name="VBOX_E_INVALID_OBJECT_STATE">
1647 Virtual machine was not created within this VirtualBox instance.
1648 </result>
1649
1650 </desc>
1651 <param name="machine" type="IMachine" dir="in"/>
1652 </method>
1653
1654 <method name="getMachine">
1655 <desc>
1656 Attempts to find a virtual machine given its UUID.
1657 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1658 instead.
1659
1660 <result name="VBOX_E_OBJECT_NOT_FOUND">
1661 Could not find registered machine matching @a id.
1662 </result>
1663
1664 </desc>
1665 <param name="id" type="uuid" dir="in"/>
1666 <param name="machine" type="IMachine" dir="return"/>
1667 </method>
1668
1669 <method name="findMachine">
1670 <desc>
1671 Attempts to find a virtual machine given its name.
1672 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1673 instead.
1674
1675 <result name="VBOX_E_OBJECT_NOT_FOUND">
1676 Could not find registered machine matching @a name.
1677 </result>
1678
1679 </desc>
1680 <param name="name" type="wstring" dir="in"/>
1681 <param name="machine" type="IMachine" dir="return"/>
1682 </method>
1683
1684 <method name="unregisterMachine">
1685 <desc>
1686
1687 Unregisters the machine previously registered using
1688 <link to="#registerMachine"/>. After successful method invocation, the
1689 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1690 to all registered callbacks.
1691
1692 <note>
1693 The specified machine must not be in the Saved state, have an open
1694 (or a spawning) direct session associated with it, have snapshots or
1695 have hard disks attached.
1696 </note>
1697
1698 <note>
1699 This method implicitly calls <link to="IMachine::saveSettings"/> to
1700 save all current machine settings before unregistering it.
1701 </note>
1702
1703 <note>
1704 If the given machine is inaccessible (see
1705 <link to="IMachine::accessible"/>), it will be unregistered and
1706 fully uninitialized right afterwards. As a result, the returned
1707 machine object will be unusable and an attempt to call
1708 <b>any</b> method will return the "Object not ready" error.
1709 </note>
1710
1711 <result name="VBOX_E_OBJECT_NOT_FOUND">
1712 Could not find registered machine matching @a id.
1713 </result>
1714 <result name="VBOX_E_INVALID_VM_STATE">
1715 Machine is in Saved state.
1716 </result>
1717 <result name="VBOX_E_INVALID_OBJECT_STATE">
1718 Machine has snapshot or open session or hard disk attached.
1719 </result>
1720
1721 </desc>
1722 <param name="id" type="uuid" dir="in">
1723 <desc>UUID of the machine to unregister.</desc>
1724 </param>
1725 <param name="machine" type="IMachine" dir="return">
1726 <desc>Unregistered machine object.</desc>
1727 </param>
1728 </method>
1729
1730 <method name="createAppliance">
1731 <desc>
1732 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1733 Format (OVF). This can then be used to import an OVF appliance into VirtualBox; see the
1734 documentation for <link to="IAppliance" /> for details.
1735 </desc>
1736 <param name="appliance" type="IAppliance" dir="return">
1737 <desc>New appliance.</desc>
1738 </param>
1739 </method>
1740
1741 <method name="createHardDisk">
1742 <desc>
1743 Creates a new base hard disk object that will use the given storage
1744 format and location for hard disk data.
1745
1746 Note that the actual storage unit is not created by this method. In
1747 order to do it, and before you are able to attach the created hard disk
1748 to virtual machines, you must call one of the following methods to
1749 allocate a format-specific storage unit at the specified location:
1750 <ul>
1751 <li><link to="IHardDisk::createDynamicStorage"/></li>
1752 <li><link to="IHardDisk::createFixedStorage"/></li>
1753 <li><link to="IHardDisk::createDiffStorage"/></li>
1754 </ul>
1755
1756 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1757 remain uninitialized until the hard disk storage unit is successfully
1758 created by one of the above methods.
1759
1760 After the storage unit is successfully created, the hard disk gets
1761 remembered by this VirtualBox installation and will be accessible
1762 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1763 methods. Remembered root (base) hard disks are also returned as part of
1764 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1765
1766 The list of all storage formats supported by this VirtualBox
1767 installation can be obtained using
1768 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1769 attribute is empty or <tt>null</tt> then the default storage format
1770 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1771 be used for creating a storage unit of the hard disk.
1772
1773 Note that the format of the location string is storage format specific.
1774 See <link to="IMedium::location"/>, IHardDisk and
1775 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1776
1777 <result name="VBOX_E_OBJECT_NOT_FOUND">
1778 @a format identifier is invalid. See
1779 <link to="ISystemProperties::hardDiskFormats"/>.
1780 </result>
1781 <result name="VBOX_E_FILE_ERROR">
1782 @a location is a not valid file name (for file-based formats only).
1783 </result>
1784 <result name="E_INVALIDARG">
1785 @a format is a null or empty string.
1786 </result>
1787 </desc>
1788 <param name="format" type="wstring" dir="in">
1789 <desc>
1790 Identifier of the storage format to use for the new hard disk.
1791 </desc>
1792 </param>
1793 <param name="location" type="wstring" dir="in">
1794 <desc>
1795 Location of the storage unit for the new hard disk.
1796 </desc>
1797 </param>
1798 <param name="hardDisk" type="IHardDisk" dir="return">
1799 <desc>Created hard disk object.</desc>
1800 </param>
1801 </method>
1802
1803 <method name="openHardDisk">
1804 <desc>
1805 Opens a hard disk from an existing location.
1806
1807 After the hard disk is successfully opened by this method, it gets
1808 remembered by (known to) this VirtualBox installation and will be
1809 accessible through <link to="#getHardDisk"/> and
1810 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1811 are also returned as part of the <link to="#hardDisks"/> array and can
1812 be attached to virtual machines. See IHardDisk for more details.
1813
1814 If a differencing hard disk is to be opened by this method, the
1815 operation will succeed only if its parent hard disk and all ancestors,
1816 if any, are already known to this VirtualBox installation (for example,
1817 were opened by this method before).
1818
1819 This method tries to guess the storage format of the specified hard disk
1820 by reading hard disk data at the specified location.
1821
1822 Note that the format of the location string is storage format specific.
1823 See <link to="IMedium::location"/>, IHardDisk and
1824 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1825
1826
1827 <result name="VBOX_E_FILE_ERROR">
1828 Invalid hard disk storage file location.
1829 </result>
1830 <result name="VBOX_E_IPRT_ERROR">
1831 Could not get hard disk storage format.
1832 </result>
1833 <result name="E_INVALIDARG">
1834 Invalid hard disk storage format.
1835 </result>
1836
1837 </desc>
1838 <param name="location" type="wstring" dir="in">
1839 <desc>
1840 Location of the storage unit that contains hard disk data in one of
1841 the supported storage formats.
1842 </desc>
1843 </param>
1844 <param name="hardDisk" type="IHardDisk" dir="return">
1845 <desc>Opened hard disk object.</desc>
1846 </param>
1847 </method>
1848
1849 <method name="getHardDisk" const="yes">
1850 <desc>
1851 Returns a hard disk with the given UUID.
1852
1853 The hard disk with the given UUID must be known to this VirtualBox
1854 installation, i.e. it must be previously created by
1855 <link to="#createHardDisk"/> or opened by <link
1856 to="#openHardDisk"/>, or attached to some known virtual machine.
1857
1858 <result name="VBOX_E_OBJECT_NOT_FOUND">
1859 No hard disk object matching @a id found.
1860 </result>
1861
1862 </desc>
1863 <param name="id" type="uuid" dir="in">
1864 <desc>UUID of the hard disk to look for.</desc>
1865 </param>
1866 <param name="hardDisk" type="IHardDisk" dir="return">
1867 <desc>Found hard disk object.</desc>
1868 </param>
1869 </method>
1870
1871 <method name="findHardDisk">
1872 <desc>
1873 Returns a hard disk that uses the given location to store hard
1874 disk data.
1875
1876 The given hard disk must be known to this VirtualBox installation, i.e.
1877 it must be previously created by
1878 <link to="#createHardDisk"/> or opened by <link
1879 to="#openHardDisk"/>, or attached to some known virtual machine.
1880
1881 The search is done by comparing the value of the @a location argument to
1882 the <link to="IHardDisk::location"/> attribute of each known hard
1883 disk.
1884
1885 For locations represented by file names in the host's file system, the
1886 requested location can be a path relative to the
1887 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1888 only a file name without any path is given, the
1889 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1890 folder</link> will be prepended to the file name before searching. Note
1891 that on case sensitive file systems, a case sensitive comparison is
1892 performed, otherwise the case of symbols in the file path is ignored.
1893
1894 <result name="VBOX_E_OBJECT_NOT_FOUND">
1895 No hard disk object matching @a location found.
1896 </result>
1897
1898 </desc>
1899 <param name="location" type="wstring" dir="in">
1900 <desc>Location string to search for.</desc>
1901 </param>
1902 <param name="hardDisk" type="IHardDisk" dir="return">
1903 <desc>Found hard disk object.</desc>
1904 </param>
1905 </method>
1906
1907 <method name="openDVDImage">
1908 <desc>
1909 Opens a CD/DVD image contained in the specified file of the supported
1910 format and assigns it the given UUID.
1911
1912 After the image is successfully opened by this method, it gets
1913 remembered by (known to) this VirtualBox installation and will be
1914 accessible through <link to="#getDVDImage"/> and
1915 <link to="#findDVDImage"/> methods. Remembered images are also
1916 returned as part of the <link to="#DVDImages"/> array and can be mounted
1917 to virtual machines. See IMedium for more details.
1918
1919 See <link to="IMedium::location"/> to get more details about the format
1920 of the location string.
1921
1922 <note>
1923 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1924 </note>
1925
1926 <result name="VBOX_E_INVALID_OBJECT_STATE">
1927 CD/DVD image already exists in the media registry.
1928 </result>
1929
1930 </desc>
1931 <param name="location" type="wstring" dir="in">
1932 <desc>
1933 Full path to the file that contains a valid CD/DVD image.
1934 </desc>
1935 </param>
1936 <param name="id" type="uuid" dir="in">
1937 <desc>
1938 UUID to assign to the given image within this VirtualBox installation.
1939 If an empty (null) UUID is specified, the system will randomly
1940 generate a new UUID.
1941 </desc>
1942 </param>
1943 <param name="image" type="IDVDImage" dir="return">
1944 <desc>Opened CD/DVD image object.</desc>
1945 </param>
1946 </method>
1947
1948 <method name="getDVDImage">
1949 <desc>
1950 Returns a CD/DVD image with the given UUID.
1951
1952 The image with the given UUID must be known to this VirtualBox
1953 installation, i.e. it must be previously opened by <link
1954 to="#openDVDImage"/>, or mounted to some known virtual machine.
1955
1956 <result name="VBOX_E_OBJECT_NOT_FOUND">
1957 No matching DVD image found in the media registry.
1958 </result>
1959
1960 </desc>
1961 <param name="id" type="uuid" dir="in">
1962 <desc>UUID of the image to look for.</desc>
1963 </param>
1964 <param name="image" type="IDVDImage" dir="return">
1965 <desc>Found CD/DVD image object.</desc>
1966 </param>
1967 </method>
1968
1969 <method name="findDVDImage">
1970 <desc>
1971 Returns a CD/DVD image with the given image location.
1972
1973 The image with the given UUID must be known to this VirtualBox
1974 installation, i.e. it must be previously opened by <link
1975 to="#openDVDImage"/>, or mounted to some known virtual machine.
1976
1977 The search is done by comparing the value of the @a location argument to
1978 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1979
1980 The requested location can be a path relative to the
1981 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1982 only a file name without any path is given, the
1983 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1984 folder</link> will be prepended to the file name before searching. Note
1985 that on case sensitive file systems, a case sensitive comparison is
1986 performed, otherwise the case in the file path is ignored.
1987
1988 <result name="VBOX_E_FILE_ERROR">
1989 Invalid image file location.
1990 </result>
1991 <result name="VBOX_E_OBJECT_NOT_FOUND">
1992 No matching DVD image found in the media registry.
1993 </result>
1994
1995 </desc>
1996 <param name="location" type="wstring" dir="in">
1997 <desc>CD/DVD image file path to look for.</desc>
1998 </param>
1999 <param name="image" type="IDVDImage" dir="return">
2000 <desc>Found CD/DVD image object.</desc>
2001 </param>
2002 </method>
2003
2004 <method name="openFloppyImage">
2005 <desc>
2006 Opens a floppy image contained in the specified file of the supported
2007 format and assigns it the given UUID.
2008
2009 After the image is successfully opened by this method, it gets
2010 remembered by (known to) this VirtualBox installation and will be
2011 accessible through <link to="#getFloppyImage"/> and
2012 <link to="#findFloppyImage"/> methods. Remembered images are also
2013 returned as part of the <link to="#floppyImages"/> array and can be
2014 mounted to virtual machines. See IMedium for more details.
2015
2016 See <link to="IMedium::location"/> to get more details about the format
2017 of the location string.
2018
2019 <result name="VBOX_E_FILE_ERROR">
2020 Floppy image specified by @a location not accessible.
2021 </result>
2022 <result name="VBOX_E_INVALID_OBJECT_STATE">
2023 Floppy image already exists in the media registry.
2024 </result>
2025
2026 <note>
2027 Currently, only raw floppy images are supported by VirtualBox.
2028 </note>
2029 </desc>
2030 <param name="location" type="wstring" dir="in">
2031 <desc>
2032 Full path to the file that contains a valid floppy image.
2033 </desc>
2034 </param>
2035 <param name="id" type="uuid" dir="in">
2036 <desc>
2037 UUID to assign to the given image file within this VirtualBox
2038 installation. If an empty (null) UUID is specified, the system will
2039 randomly generate a new UUID.
2040 </desc>
2041 </param>
2042 <param name="image" type="IFloppyImage" dir="return">
2043 <desc>Opened floppy image object.</desc>
2044 </param>
2045 </method>
2046
2047 <method name="getFloppyImage">
2048 <desc>
2049 Returns a floppy image with the given UUID.
2050
2051 The image with the given UUID must be known to this VirtualBox
2052 installation, i.e. it must be previously opened by <link
2053 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2054
2055 <result name="VBOX_E_OBJECT_NOT_FOUND">
2056 No matching floppy image found in the media registry.
2057 </result>
2058
2059 </desc>
2060 <param name="id" type="uuid" dir="in">
2061 <desc>UUID of the image to look for.</desc>
2062 </param>
2063 <param name="image" type="IFloppyImage" dir="return">
2064 <desc>Found floppy image object.</desc>
2065 </param>
2066 </method>
2067
2068 <method name="findFloppyImage">
2069 <desc>
2070 Returns a floppy image with the given image location.
2071
2072 The image with the given UUID must be known to this VirtualBox
2073 installation, i.e. it must be previously opened by <link
2074 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2075
2076 The search is done by comparing the value of the @a location argument to
2077 the <link to="IMedium::location"/> attribute of each known floppy image.
2078
2079 The requested location can be a path relative to the
2080 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2081 only a file name without any path is given, the
2082 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2083 folder</link> will be prepended to the file name before searching. Note
2084 that on case sensitive file systems, a case sensitive comparison is
2085 performed, otherwise the case of symbols in the file path is ignored.
2086
2087 <result name="VBOX_E_FILE_ERROR">
2088 Invalid image file location.
2089 </result>
2090 <result name="VBOX_E_OBJECT_NOT_FOUND">
2091 No matching floppy image found in the media registry.
2092 </result>
2093
2094 </desc>
2095 <param name="location" type="wstring" dir="in">
2096 <desc>Floppy image file path to look for.</desc>
2097 </param>
2098 <param name="image" type="IFloppyImage" dir="return">
2099 <desc>Found floppy image object.</desc>
2100 </param>
2101 </method>
2102
2103 <method name="getGuestOSType">
2104 <desc>
2105 Returns an object describing the specified guest OS type.
2106
2107 The requested guest OS type is specified using a string which is a
2108 mnemonic identifier of the guest operating system, such as
2109 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2110 particular virtual machine can be read or set using the
2111 <link to="IMachine::OSTypeId"/> attribute.
2112
2113 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2114 available guest OS type objects. Each object has an
2115 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2116 the guest OS this object describes.
2117
2118 <result name="E_INVALIDARG">
2119 @a id is not a valid Guest OS type.
2120 </result>
2121
2122 </desc>
2123 <param name="id" type="wstring" dir="in">
2124 <desc>Guest OS type ID string.</desc>
2125 </param>
2126 <param name="type" type="IGuestOSType" dir="return">
2127 <desc>Guest OS type object.</desc>
2128 </param>
2129 </method>
2130
2131 <method name="createSharedFolder">
2132 <desc>
2133 Creates a new global shared folder by associating the given logical
2134 name with the given host path, adds it to the collection of shared
2135 folders and starts sharing it. Refer to the description of
2136 <link to="ISharedFolder"/> to read more about logical names.
2137 <note>
2138 In the current implementation, this operation is not
2139 implemented.
2140 </note>
2141 </desc>
2142 <param name="name" type="wstring" dir="in">
2143 <desc>Unique logical name of the shared folder.</desc>
2144 </param>
2145 <param name="hostPath" type="wstring" dir="in">
2146 <desc>Full path to the shared folder in the host file system.</desc>
2147 </param>
2148 <param name="writable" type="boolean" dir="in">
2149 <desc>Whether the share is writable or readonly</desc>
2150 </param>
2151 </method>
2152
2153 <method name="removeSharedFolder">
2154 <desc>
2155 Removes the global shared folder with the given name previously
2156 created by <link to="#createSharedFolder"/> from the collection of
2157 shared folders and stops sharing it.
2158 <note>
2159 In the current implementation, this operation is not
2160 implemented.
2161 </note>
2162 </desc>
2163 <param name="name" type="wstring" dir="in">
2164 <desc>Logical name of the shared folder to remove.</desc>
2165 </param>
2166 </method>
2167
2168 <method name="getNextExtraDataKey">
2169 <desc>
2170 Returns the global extra data key name following the supplied key.
2171
2172 An error is returned if the supplied @a key does not exist. @c NULL is
2173 returned in @a nextKey if the supplied key is the last key. When
2174 supplying @c NULL for the @a key, the first key item is returned in @a
2175 nextKey (if there is any). @a nextValue is an optional parameter and
2176 if supplied, the next key's value is returned in it.
2177
2178 <result name="VBOX_E_OBJECT_NOT_FOUND">
2179 Extra data @a key not found.
2180 </result>
2181
2182 </desc>
2183 <param name="key" type="wstring" dir="in">
2184 <desc>Name of the data key to follow.</desc>
2185 </param>
2186 <param name="nextKey" type="wstring" dir="out">
2187 <desc>Name of the next data key.</desc>
2188 </param>
2189 <param name="nextValue" type="wstring" dir="out">
2190 <desc>Value of the next data key.</desc>
2191 </param>
2192 </method>
2193
2194 <method name="getExtraData">
2195 <desc>
2196 Returns associated global extra data.
2197
2198 If the requested data @a key does not exist, this function will
2199 succeed and return @c NULL in the @a value argument.
2200
2201 <result name="VBOX_E_FILE_ERROR">
2202 Settings file not accessible.
2203 </result>
2204 <result name="VBOX_E_XML_ERROR">
2205 Could not parse the settings file.
2206 </result>
2207
2208 </desc>
2209 <param name="key" type="wstring" dir="in">
2210 <desc>Name of the data key to get.</desc>
2211 </param>
2212 <param name="value" type="wstring" dir="return">
2213 <desc>Value of the requested data key.</desc>
2214 </param>
2215 </method>
2216
2217 <method name="setExtraData">
2218 <desc>
2219 Sets associated global extra data.
2220
2221 If you pass @c NULL as a key @a value, the given @a key will be
2222 deleted.
2223
2224 <note>
2225 Before performing the actual data change, this method will ask all
2226 registered callbacks using the
2227 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2228 notification for a permission. If one of the callbacks refuses the
2229 new value, the change will not be performed.
2230 </note>
2231 <note>
2232 On success, the
2233 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2234 is called to inform all registered callbacks about a successful data
2235 change.
2236 </note>
2237
2238 <result name="VBOX_E_FILE_ERROR">
2239 Settings file not accessible.
2240 </result>
2241 <result name="VBOX_E_XML_ERROR">
2242 Could not parse the settings file.
2243 </result>
2244 <result name="E_ACCESSDENIED">
2245 Modification request refused.
2246 </result>
2247
2248 </desc>
2249 <param name="key" type="wstring" dir="in">
2250 <desc>Name of the data key to set.</desc>
2251 </param>
2252 <param name="value" type="wstring" dir="in">
2253 <desc>Value to assign to the key.</desc>
2254 </param>
2255 </method>
2256
2257 <method name="openSession">
2258 <desc>
2259 Opens a new direct session with the given virtual machine.
2260
2261 A direct session acts as a local lock on the given VM.
2262 There can be only one direct session open at a time for every
2263 virtual machine, protecting the VM from being manipulated by
2264 conflicting actions from different processes. Only after a
2265 direct session has been opened, one can change all VM settings
2266 and execute the VM in the process space of the session object.
2267
2268 Sessions therefore can be compared to mutex semaphores that
2269 lock a given VM for modification and execution.
2270 See <link to="ISession">ISession</link> for details.
2271
2272 <note>Unless you are writing a new VM frontend, you will not
2273 want to execute a VM in the current process. To spawn a new
2274 process that executes a VM, use
2275 <link to="IVirtualBox::openRemoteSession" />
2276 instead.</note>
2277
2278 Upon successful return, the session object can be used to
2279 get access to the machine and to the VM console.
2280
2281 In VirtualBox terminology, the machine becomes "mutable" after
2282 a session has been opened. Note that the "mutable" machine
2283 object, on which you may invoke IMachine methods to change its
2284 settings, will be a different object from the immutable IMachine
2285 objects returned by various IVirtualBox methods. To obtain a
2286 mutable IMachine object (upon which you can invoke settings methods),
2287 use the <link to="ISession::machine" /> attribute.
2288
2289 One must always call <link to="ISession::close" /> to release the
2290 lock on the machine, or the machine's state will eventually be
2291 set to "Aborted".
2292
2293 In other words, to change settings on a machine, the following
2294 sequence is typically performed:
2295
2296 <ol>
2297 <li>Call this method (openSession) to have a machine locked for
2298 the current session.</li>
2299
2300 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2301
2302 <li>Change the settings of the machine.</li>
2303
2304 <li>Call <link to="IMachine::saveSettings" />.</li>
2305
2306 <li>Close the session by calling <link to="ISession::close"/>.</li>
2307 </ol>
2308
2309 <result name="E_UNEXPECTED">
2310 Virtual machine not registered.
2311 </result>
2312 <result name="E_ACCESSDENIED">
2313 Process not started by OpenRemoteSession.
2314 </result>
2315 <result name="VBOX_E_OBJECT_NOT_FOUND">
2316 No matching virtual machine found.
2317 </result>
2318 <result name="VBOX_E_INVALID_OBJECT_STATE">
2319 Session already open or being opened.
2320 </result>
2321 <result name="VBOX_E_VM_ERROR">
2322 Failed to assign machine to session.
2323 </result>
2324
2325 </desc>
2326 <param name="session" type="ISession" dir="in">
2327 <desc>
2328 Session object that will represent the opened session after
2329 successful method invocation. This object must not represent
2330 the already open session.
2331 <note>
2332 This session will be automatically closed if the
2333 VirtualBox server is terminated for some reason.
2334 </note>
2335 </desc>
2336 </param>
2337 <param name="machineId" type="uuid" dir="in">
2338 <desc>ID of the virtual machine to open a session with.</desc>
2339 </param>
2340 </method>
2341
2342 <method name="openRemoteSession">
2343 <desc>
2344 Spawns a new process that executes a virtual machine (called a
2345 "remote session").
2346
2347 Opening a remote session causes the VirtualBox server to start a new
2348 process that opens a direct session with the given VM. As a result, the
2349 VM is locked by that direct session in the new process, preventing
2350 conflicting changes from other processes. Since sessions act as locks
2351 that prevent conflicting changes, one cannot open a remote session
2352 for a VM that already has another open session (direct or remote), or
2353 is currently in the process of opening one (see <link
2354 to="IMachine::sessionState"/>).
2355
2356 While the remote session still provides some level of control over the
2357 VM execution to the caller (using the <link to="IConsole" /> interface),
2358 not all VM settings are available for modification within the remote
2359 session context.
2360
2361 This operation can take some time (a new VM is started in a new process,
2362 for which memory and other resources need to be set up). Because of this,
2363 an <link to="IProgress" /> is returned to allow the caller to wait for this
2364 asynchronous operation to be completed. Until then, the remote session
2365 object remains in the closed state, and accessing the machine or its
2366 console through it is invalid. It is recommended to use
2367 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2368 completion.
2369
2370 As with all <link to="ISession" /> objects, it is recommended to call
2371 <link to="ISession::close" /> on the local session object once openRemoteSession()
2372 has been called. However, the session's state (see <link to="ISession::state" />)
2373 will not return to "Closed" until the remote session has also closed (i.e.
2374 until the VM is no longer running). In that case, however, the state of
2375 the session will automatically change back to "Closed".
2376
2377 Currently supported session types (values of the @a type
2378 argument) are:
2379 <ul>
2380 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2381 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2382 </ul>
2383
2384 The @a environment argument is a string containing definitions of
2385 environment variables in the following format:
2386 @code
2387 NAME[=VALUE]\n
2388 NAME[=VALUE]\n
2389 ...
2390 @endcode
2391 where <tt>\\n</tt> is the new line character. These environment
2392 variables will be appended to the environment of the VirtualBox server
2393 process. If an environment variable exists both in the server process
2394 and in this list, the value from this list takes precedence over the
2395 server's variable. If the value of the environment variable is
2396 omitted, this variable will be removed from the resulting environment.
2397 If the environment string is @c null, the server environment is
2398 inherited by the started process as is.
2399
2400 <see>openExistingSession</see>
2401
2402 <result name="E_UNEXPECTED">
2403 Virtual machine not registered.
2404 </result>
2405 <result name="E_INVALIDARG">
2406 Invalid session type @a type.
2407 </result>
2408 <result name="VBOX_E_OBJECT_NOT_FOUND">
2409 No machine matching @a machineId found.
2410 </result>
2411 <result name="VBOX_E_INVALID_OBJECT_STATE">
2412 Session already open or being opened.
2413 </result>
2414 <result name="VBOX_E_IPRT_ERROR">
2415 Launching process for machine failed.
2416 </result>
2417 <result name="VBOX_E_VM_ERROR">
2418 Failed to assign machine to session.
2419 </result>
2420
2421 </desc>
2422 <param name="session" type="ISession" dir="in">
2423 <desc>
2424 Session object that will represent the opened remote session
2425 after successful method invocation (this object must not
2426 represent an already open session).
2427 </desc>
2428 </param>
2429 <param name="machineId" type="uuid" dir="in">
2430 <desc>ID of the virtual machine to open a session with.</desc>
2431 </param>
2432 <param name="type" type="wstring" dir="in">
2433 <desc>
2434 Type of the remote session (case sensitive).
2435 </desc>
2436 </param>
2437 <param name="environment" type="wstring" dir="in">
2438 <desc>
2439 Environment to pass to the opened session (may be @c null).
2440 </desc>
2441 </param>
2442 <param name="progress" type="IProgress" dir="return">
2443 <desc>Progress object to track the operation completion.</desc>
2444 </param>
2445 </method>
2446
2447 <method name="openExistingSession">
2448 <desc>
2449 Opens a new remote session with the virtual machine for
2450 which a direct session is already open.
2451
2452 The remote session provides some level of control over the VM
2453 execution (using the IConsole interface) to the caller; however,
2454 within the remote session context, not all VM settings are available
2455 for modification.
2456
2457 As opposed to <link to="#openRemoteSession"/>, the number of
2458 remote sessions opened this way is not limited by the API
2459
2460 <note>
2461 It is an error to open a remote session with the machine that
2462 doesn't have an open direct session.
2463 </note>
2464
2465 <result name="E_UNEXPECTED">
2466 Virtual machine not registered.
2467 </result>
2468 <result name="VBOX_E_OBJECT_NOT_FOUND">
2469 No machine matching @a machineId found.
2470 </result>
2471 <result name="VBOX_E_INVALID_OBJECT_STATE">
2472 Session already open or being opened.
2473 </result>
2474 <result name="VBOX_E_INVALID_SESSION_STATE">
2475 Direct session state not Open.
2476 </result>
2477 <result name="VBOX_E_VM_ERROR">
2478 Failed to get console object from direct session or assign
2479 machine to session.
2480 </result>
2481
2482 <see>openRemoteSession</see>
2483 </desc>
2484 <param name="session" type="ISession" dir="in">
2485 <desc>
2486 Session object that will represent the open remote session
2487 after successful method invocation. This object must not
2488 represent an already open session.
2489 <note>
2490 This session will be automatically closed when the peer
2491 (direct) session dies or gets closed.
2492 </note>
2493 </desc>
2494 </param>
2495 <param name="machineId" type="uuid" dir="in">
2496 <desc>ID of the virtual machine to open a session with.</desc>
2497 </param>
2498 </method>
2499
2500 <method name="registerCallback">
2501 <desc>
2502 Registers a new global VirtualBox callback. The methods of the given
2503 callback object will be called by VirtualBox when an appropriate
2504 event occurs.
2505
2506 <result name="E_INVALIDARG">
2507 A @c NULL callback cannot be registered.
2508 </result>
2509
2510 </desc>
2511 <param name="callback" type="IVirtualBoxCallback" dir="in">
2512 <desc>Callback object to register.</desc>
2513 </param>
2514 </method>
2515
2516 <method name="unregisterCallback">
2517 <desc>
2518 Unregisters the previously registered global VirtualBox callback.
2519
2520 <result name="E_INVALIDARG">
2521 Specified @a callback not registered.
2522 </result>
2523
2524 </desc>
2525 <param name="callback" type="IVirtualBoxCallback" dir="in">
2526 <desc>Callback object to unregister.</desc>
2527 </param>
2528 </method>
2529
2530 <method name="waitForPropertyChange">
2531 <desc>
2532 Blocks the caller until any of the properties represented by the @a
2533 what argument changes the value or until the given timeout interval
2534 expires.
2535
2536 The @a what argument is a comma separated list of property masks that
2537 describe properties the caller is interested in. The property mask is
2538 a string in the following format:
2539
2540 <pre>
2541 [[group.]subgroup.]name
2542 </pre>
2543
2544 where @c name is the property name and @c group, @c subgroup are zero
2545 or more property group specifiers. Each element (group or name) in
2546 the property mask may be either a Latin string or an asterisk symbol
2547 (@c "*") which is used to match any string for the given element. A
2548 property mask that doesn't contain asterisk symbols represents a
2549 single fully qualified property name.
2550
2551 Groups in the fully qualified property name go from more generic (the
2552 left-most part) to more specific (the right-most part). The first
2553 element is usually a name of the object the property belongs to. The
2554 second element may be either a property name, or a child object name,
2555 or an index if the preceding element names an object which is one of
2556 many objects of the same type. This way, property names form a
2557 hierarchy of properties. Here are some examples of property names:
2558
2559 <table>
2560 <tr>
2561 <td><tt>VirtualBox.version</tt></td>
2562 <td><link to="IVirtualBox::version"/> property</td>
2563 </tr>
2564 <tr>
2565 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2566 <td><link to="IMachine::name"/> property of the machine with the
2567 given UUID</td>
2568 </tr>
2569 </table>
2570
2571 Most property names directly correspond to the properties of objects
2572 (components) provided by the VirtualBox library and may be used to
2573 track changes to these properties. However, there may be
2574 pseudo-property names that don't correspond to any existing object's
2575 property directly, as well as there may be object properties that
2576 don't have a corresponding property name that is understood by this
2577 method, and therefore changes to such properties cannot be
2578 tracked. See individual object's property descriptions to get a
2579 fully qualified property name that can be used with this method (if
2580 any).
2581
2582 There is a special property mask @c "*" (i.e. a string consisting of a
2583 single asterisk symbol) that can be used to match all properties.
2584 Below are more examples of property masks:
2585
2586 <table>
2587 <tr>
2588 <td><tt>VirtualBox.*</tt></td>
2589 <td>Track all properties of the VirtualBox object</td>
2590 </tr>
2591 <tr>
2592 <td><tt>Machine.*.name</tt></td>
2593 <td>Track changes to the <link to="IMachine::name"/> property of
2594 all registered virtual machines</td>
2595 </tr>
2596 </table>
2597
2598 <note>
2599 This function is not implemented in the current version of the
2600 product.
2601 </note>
2602 </desc>
2603 <param name="what" type="wstring" dir="in">
2604 <desc>Comma separated list of property masks.</desc>
2605 </param>
2606 <param name="timeout" type="unsigned long" dir="in">
2607 <desc>
2608 Wait timeout in milliseconds.
2609 Specify -1 for an indefinite wait.
2610 </desc>
2611 </param>
2612 <param name="changed" type="wstring" dir="out">
2613 <desc>
2614 Comma separated list of properties that have been changed and caused
2615 this method to return to the caller.
2616 </desc>
2617 </param>
2618 <param name="values" type="wstring" dir="out">
2619 <desc>Reserved, not currently used.</desc>
2620 </param>
2621 </method>
2622
2623 <method name="saveSettings">
2624 <desc>
2625 Saves the global settings to the global settings file
2626 (<link to="#settingsFilePath"/>).
2627
2628 This method is only useful for explicitly saving the global settings
2629 file after it has been auto-converted from the old format to the most
2630 recent format (see <link to="#settingsFileVersion"/> for details).
2631 Normally, the global settings file is implicitly saved when a global
2632 setting is changed.
2633
2634 <result name="VBOX_E_FILE_ERROR">
2635 Settings file not accessible.
2636 </result>
2637 <result name="VBOX_E_XML_ERROR">
2638 Could not parse the settings file.
2639 </result>
2640
2641 </desc>
2642 </method>
2643
2644 <method name="saveSettingsWithBackup">
2645 <desc>
2646 Creates a backup copy of the global settings file
2647 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2648 calls <link to="#saveSettings"/>.
2649
2650 Note that the backup copy is created <b>only</b> if the settings file
2651 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2652 details). Otherwise, this call is fully equivalent to
2653 <link to="#saveSettings"/> and no backup copying is done.
2654
2655 The backup copy is created in the same directory where the original
2656 settings file is located. It is given the following file name:
2657 <pre>
2658 original.xml.x.y-platform.bak
2659 </pre>
2660 where <tt>original.xml</tt> is the original settings file name
2661 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2662 format of the settings file (before auto-conversion).
2663
2664 If the given backup file already exists, this method will try to add the
2665 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2666 0 to 9) and copy it again until it succeeds. If all suffixes are
2667 occupied, or if any other copy error occurs, this method will return a
2668 failure.
2669
2670 If the copy operation succeeds, the @a bakFileName return argument will
2671 receive a full path to the created backup file (for informational
2672 purposes). Note that this will happen even if the subsequent
2673 <link to="#saveSettings"/> call performed by this method after the
2674 copy operation, fails.
2675
2676 <note>
2677 The VirtualBox API never calls this method. It is intended purely for
2678 the purposes of creating backup copies of the settings files by
2679 front-ends before saving the results of the automatically performed
2680 settings conversion to disk.
2681 </note>
2682
2683 <see>settingsFileVersion</see>
2684
2685 <result name="VBOX_E_FILE_ERROR">
2686 Settings file not accessible.
2687 </result>
2688 <result name="VBOX_E_XML_ERROR">
2689 Could not parse the settings file.
2690 </result>
2691 <result name="VBOX_E_IPRT_ERROR">
2692 Could not copy the settings file.
2693 </result>
2694
2695 </desc>
2696 <param name="bakFileName" type="wstring" dir="return">
2697 <desc>Full path to the created backup copy.</desc>
2698 </param>
2699 </method>
2700
2701 </interface>
2702
2703 <!--
2704 // IAppliance
2705 /////////////////////////////////////////////////////////////////////////
2706 -->
2707
2708 <enum
2709 name="CIMOSType"
2710 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2711 >
2712 <desc>
2713 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2714 </desc>
2715
2716 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2717 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2718 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2719 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2720 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2721 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2722 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2723 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2724 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2725 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2726 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2727 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2728 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2729 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2730 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2731 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2732 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2733 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2734 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2735 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2736 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2737 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2738 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2739 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2740 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2741 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2742 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2743 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2744 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2745 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2746 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2747 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2748 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2749 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2750 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2751 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2752 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2753 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2754 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2755 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2756 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2757 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2758 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2759 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2760 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2761 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2762 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2763 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2764 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2765 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2766 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2767 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2768 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2769 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2770 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2771 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2772 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2773 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2774 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2775 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2776 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2777 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2778 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2779 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2780 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2781 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2782 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2783 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2784 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2785 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2786 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2787 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2788 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2789 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2790 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2791 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2792 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2793 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2794 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2795 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2796 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2797 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2798 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2799 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2800 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2801 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2802 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2803 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2804 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2805 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2806 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2807 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2808 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2809 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2810 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2811 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2812 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2813 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2814 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2815 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2816 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2817 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2818 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2819 </enum>
2820
2821 <enum
2822 name="OVFResourceType"
2823 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2824 >
2825 <desc>
2826 OVF resource type.
2827 </desc>
2828
2829 <const name="Other" value="1" />
2830 <const name="ComputerSystem" value="2" />
2831 <const name="Processor" value="3" />
2832 <const name="Memory" value="4" />
2833 <const name="IdeController" value="5" />
2834 <const name="ParallelScsiHba" value="6" />
2835 <const name="FcHba" value="7" />
2836 <const name="iScsiHba" value="8" />
2837 <const name="IbHca" value="9" />
2838 <const name="EthernetAdapter" value="10" />
2839 <const name="OtherNetworkAdapter" value="11" />
2840 <const name="IoSlot" value="12" />
2841 <const name="IoDevice" value="13" />
2842 <const name="FloppyDrive" value="14" />
2843 <const name="CdDrive" value="15" />
2844 <const name="DvdDrive" value="16" />
2845 <const name="HardDisk" value="17" />
2846 <const name="UsbController" value="23" />
2847 <const name="SoundCard" value="35" />
2848 </enum>
2849
2850 <interface
2851 name="IAppliance" extends="$unknown"
2852 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2853 wsmap="managed"
2854 >
2855 <desc>
2856 Represents an appliance in OVF format. An instance of this is returned by
2857 <link to="IVirtualBox::createAppliance" />.
2858
2859 Importing an OVF appliance into VirtualBox involves the following sequence
2860 of API calls:
2861
2862 <ol>
2863 <li>
2864 Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2865 </li>
2866
2867 <li>
2868 On the new object, call <link to="#read" /> with the full path of the OVF file you
2869 would like to import. So long as this file is syntactically valid, this will succeed
2870 and return an instance of IAppliance that contains the parsed data from the OVF file.
2871 </li>
2872
2873 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2874 contents of the IAppliance attributes accordingly. These can be inspected by a
2875 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2876 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2877 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2878 systems in the OVF, which in turn describe the virtual hardware prescribed
2879 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2880 The GUI can then give the user the option to confirm and/or change these suggestions.
2881 </li>
2882
2883 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for
2884 each virtual system to override the suggestions made by VirtualBox.
2885 </li>
2886
2887 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2888 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2889 virtual system descriptions.
2890 </li>
2891 </ol>
2892
2893 </desc>
2894
2895 <attribute name="path" type="wstring" readonly="yes">
2896 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2897 the <tt>.ova</tt> file passed to <link to="IAppliance::read" />.</desc>
2898 </attribute>
2899
2900 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2901 <desc>
2902 Array of virtual disk definitions. One such description exists for each
2903 disk definition in the OVF; each string array item represents one such piece of
2904 disk information, with the information fields separated by tab (\t) characters.
2905
2906 The caller should be prepared for additional fields being appended to
2907 this string in future versions of VirtualBox and therefore check for
2908 the number of tabs in the strings returned.
2909
2910 In the current version, the following eight fields are returned per string
2911 in the array:
2912
2913 <ol>
2914 <li>Disk ID (unique string identifier given to disk)</li>
2915 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2916 <li>Populated size (optional unsigned integer indicating the current size of the
2917 disk; can be approximate; -1 if unspecified)</li>
2918 <li>Format (string identifying the disk format, typically
2919 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2920 <li>Reference (where to find the disk image, typically a file name; if empty,
2921 then the disk should be created on import)</li>
2922 <li>Image size (optional unsigned integer indicating the size of the image,
2923 which need not necessarily be the same as the values specified above, since
2924 the image may be compressed or sparse; -1 if not specified)</li>
2925 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2926 presently unsupported and always -1)</li>
2927 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2928 </ol>
2929 </desc>
2930 </attribute>
2931
2932 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2933 <desc>
2934 Array of virtual system descriptions. One such description is created
2935 for each virtual system found in the OVF. The array is empty until after <link to="#interpret" />
2936 has been called.
2937 </desc>
2938 </attribute>
2939
2940 <method name="read">
2941 <desc>
2942 Reads an OVF file into the appliance object.
2943
2944 The OVF standard suggests two different file formats:
2945
2946 <ol>
2947 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2948 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2949 this descriptor file references other files, as OVF appliances distributed as a set of
2950 files most likely do, those files must be in the same directory as the descriptor file.</li>
2951
2952 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2953 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2954 files and optionally other files. This variant is not yet supported by VirtualBox;
2955 support will be added in a later version.</li>
2956 </ol>
2957
2958 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2959 mere fact that this method returns successfully does not mean that VirtualBox supports all
2960 features requested by the appliance; this can be examined after a call to <link to="#interpret" />.
2961 </desc>
2962 <param name="file" type="wstring" dir="in">
2963 <desc>
2964 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2965 on whether the appliance is distributed as a set of files or as a single file, respectively).
2966 </desc>
2967 </param>
2968 </method>
2969
2970 <method name="interpret">
2971 <desc>
2972 Interprets the OVF data that was read when the appliance was constructed. After
2973 calling this method, one can inspect the
2974 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2975 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2976 the appliance.
2977
2978 Calling this method is the second step of importing an appliance into VirtualBox;
2979 see <link to="IAppliance" /> for an overview.
2980 </desc>
2981 </method>
2982
2983 <method name="importMachines">
2984 <desc>
2985 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2986 and other interfaces that match the information contained in the appliance as
2987 closely as possible, as represented by the import instructions in the
2988 <link to="#virtualSystemDescriptions" /> array.
2989
2990 Calling this method is the final step of importing an appliance into VirtualBox;
2991 see <link to="IAppliance" /> for an overview.
2992
2993 Since importing the appliance may imply copying disk images, which can take a long
2994 time, this method operates asynchronously and returns an IProgress object to allow
2995 the caller to monitor the progress.
2996 </desc>
2997
2998 <param name="aProgress" type="IProgress" dir="return">
2999 <desc></desc>
3000 </param>
3001 </method>
3002
3003 </interface>
3004
3005 <enum
3006 name="VirtualSystemDescriptionType"
3007 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3008 >
3009 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3010 a configuration value.</desc>
3011
3012 <const name="Ignore" value="1" />
3013 <const name="Name" value="2" />
3014 <const name="OS" value="3" />
3015 <const name="CPU" value="4" />
3016 <const name="Memory" value="5" />
3017 <const name="HardDiskControllerIDE" value="6" />
3018 <const name="HardDiskControllerSATA" value="7" />
3019 <const name="HardDiskControllerSCSI" value="8" />
3020 <const name="HardDiskImage" value="9" />
3021 <const name="CDROM" value="10" />
3022 <const name="Floppy" value="11" />
3023 <const name="LogicalNetwork" value="12" />
3024 <const name="NetworkAdapter" value="13" />
3025 <const name="USBController" value="14" />
3026 <const name="SoundCard" value="15" />
3027
3028 </enum>
3029
3030 <interface
3031 name="IVirtualSystemDescription" extends="$unknown"
3032 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3033 wsmap="managed"
3034 >
3035
3036 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3037 After <link to="IAppliance::interpret" /> has been called, that array contains
3038 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3039 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3040 into VirtualBox.
3041 </desc>
3042
3043 <attribute name="count" type="unsigned long" readonly="yes">
3044 <desc>Return the number of virtual system description entries.</desc>
3045 </attribute>
3046
3047 <method name="getDescription">
3048 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3049 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3050
3051 The list below identifies the value sets that are possible depending on the
3052 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3053 the array item with the same index in aOrigValue[] will contain the original value as contained
3054 in the OVF file (just for informational purposes), and the corresponding item in aConfigValues[]
3055 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3056 the aExtraConfigValues[] array item may also be used.
3057
3058 <ul>
3059 <li>
3060 "OS": the guest operating system type. There must be exactly one such array item on import. The
3061 corresponding item in aConfigValues[] contains the suggested guest operating system for VirtualBox.
3062 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3063 item in aOrigValues[] will contain a numerical value that described the operating system in the OVF
3064 (see <link to="CIMOSType" />).
3065 </li>
3066 <li>
3067 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3068 if none is present on import, then an automatic name will be created from the operating system
3069 type. The correponding item im aOrigValues[] will contain the suggested virtual machine name
3070 from the OVF file, and aConfigValues[] will contain a suggestion for a unique VirtualBox
3071 <link to="IMachine" /> name that does not exist yet.
3072 </li>
3073 <li>
3074 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3075 </li>
3076 <li>
3077 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3078 is present on import, then VirtualBox will set a meaningful default based on the operating system
3079 type.
3080 </li>
3081 <li>
3082 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3083 has no value in aOrigValues[] or aConfigValues[].
3084 The matching item in the aRefs[] array will contain an integer that other items of the "Harddisk"
3085 type can use to specify which hard disk controller a virtual disk should be connected to.
3086 </li>
3087 <li>
3088 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3089 has no value in aOrigValues[] or aConfigValues[].
3090 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3091 </li>
3092 <li>
3093 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3094 The items in aOrigValues[] and aConfigValues[] will either be "LsiLogic" or "BusLogic".
3095 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3096 </li>
3097 <li>
3098 "Harddisk": a virtual hard disk, most probably as a reference to an image file. There can be an
3099 arbitrary number of these items, one for each virtual disk image that accompanies the OVF. The
3100 array item in aOrigValues[] will contain the file specification from the OVF file, whereas the item
3101 in aConfigValues[] will contain a qualified path specification where the hard disk image should
3102 be copied to; this target image will then be registered with VirtualBox.
3103 The matching item in the aExtraConfigValues[] array must contain a string of the "controller=&lt;ctrl&gt;"
3104 format, where &lt;ctrl&gt; must be an integer specifying the hard disk controller to connect the image to.
3105 That number must be the index of an array item with one of the hard disk controller types
3106 (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3107 </li>
3108 <li>
3109 "LogicalNetwork": a logical network to which virtual machines can connect. This is taken from
3110 the Network section in the OVF that is shared between several virtual systems. OVF has no
3111 formal description of how the network shall be set up (e.g. whether to use NAT or host interface
3112 networking), but OVFs typically name the logical networks "nat" or "bridged" to suggest such
3113 a configuration.
3114 </li>
3115 <li>
3116 "NetworkAdapter": a network adapter. The array item in aConfigValues[] will specify the hardware
3117 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3118 of the "network=&lt;nw&gt;" format, where &lt;nw&gt; must be one of the networks as specified with the
3119 LogicalNetwork type.
3120 </li>
3121 <li>
3122 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3123 present, sound support will be enabled for the new virtual machine. Note that the virtual
3124 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3125 may be different from the virtual soundcard expected by the appliance.
3126 </li>
3127 </ul>
3128
3129 </desc>
3130
3131 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3132 <desc></desc>
3133 </param>
3134
3135 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3136 <desc></desc>
3137 </param>
3138
3139 <param name="aOrigValues" type="wstring" dir="out" safearray="yes">
3140 <desc></desc>
3141 </param>
3142
3143 <param name="aConfigValues" type="wstring" dir="out" safearray="yes">
3144 <desc></desc>
3145 </param>
3146
3147 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3148 <desc></desc>
3149 </param>
3150
3151 </method>
3152
3153 <method name="setFinalValues">
3154 <desc>
3155 This method allows the appliance's user to change the configuration for the virtual
3156 system descriptions. For each array item returned from <link to="getDescription" />,
3157 you must pass in one boolean value and one configuration value.
3158
3159 Each item in the boolean array determines whether the particular configuration item
3160 should be enabled.
3161 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3162 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3163 and SoundCard.
3164
3165 For the configuration and "extra" configuration values, if you pass in the same arrays
3166 as returned in the aConfigValues and aExtraConfigValues arrays from getDescription(),
3167 the configuration remains unchanged. Please see the documentation for getDescription()
3168 for valid configuration values for the individual array item types. If the
3169 corresponding item in the aEnabled array is false, the configuration value is ignored.
3170 </desc>
3171
3172 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3173 <desc></desc>
3174 </param>
3175
3176 <param name="aConfigValues" type="wstring" dir="in" safearray="yes">
3177 <desc></desc>
3178 </param>
3179
3180 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3181 <desc></desc>
3182 </param>
3183 </method>
3184
3185 <method name="getWarnings">
3186 <desc>Returns textual warnings which occurs on the virtual system
3187 interpretion.</desc>
3188
3189 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3190 <desc></desc>
3191 </param>
3192 </method>
3193
3194 </interface>
3195
3196
3197 <!--
3198 // IMachine
3199 /////////////////////////////////////////////////////////////////////////
3200 -->
3201
3202 <enumerator
3203 name="IMachineEnumerator" type="IMachine"
3204 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
3205 />
3206
3207 <collection
3208 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
3209 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
3210 readonly="yes"
3211 />
3212
3213 <interface
3214 name="IInternalMachineControl" extends="$unknown"
3215 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3216 internal="yes"
3217 wsmap="suppress"
3218 >
3219 <method name="updateState">
3220 <desc>
3221 Updates the VM state.
3222 <note>
3223 This operation will also update the settings file with
3224 the correct information about the saved state file
3225 and delete this file from disk when appropriate.
3226 </note>
3227 </desc>
3228 <param name="state" type="MachineState" dir="in"/>
3229 </method>
3230
3231 <method name="getIPCId">
3232 <param name="id" type="wstring" dir="return"/>
3233 </method>
3234
3235 <method name="runUSBDeviceFilters">
3236 <desc>
3237 Asks the server to run USB devices filters of the associated
3238 machine against the given USB device and tell if there is
3239 a match.
3240 <note>
3241 Intended to be used only for remote USB devices. Local
3242 ones don't require to call this method (this is done
3243 implicitly by the Host and USBProxyService).
3244 </note>
3245 </desc>
3246 <param name="device" type="IUSBDevice" dir="in"/>
3247 <param name="matched" type="boolean" dir="out"/>
3248 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3249 </method>
3250
3251 <method name="captureUSBDevice">
3252 <desc>
3253 Requests a capture of the given host USB device.
3254 When the request is completed, the VM process will
3255 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3256 notification.
3257 </desc>
3258 <param name="id" type="uuid" dir="in"/>
3259 </method>
3260
3261 <method name="detachUSBDevice">
3262 <desc>
3263 Notification that a VM is going to detach (done = false) or has
3264 already detached (done = true) the given USB device.
3265 When the done = true request is completed, the VM process will
3266 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3267 notification.
3268 <note>
3269 In the done = true case, the server must run its own filters
3270 and filters of all VMs but this one on the detached device
3271 as if it were just attached to the host computer.
3272 </note>
3273 </desc>
3274 <param name="id" type="uuid" dir="in"/>
3275 <param name="done" type="boolean" dir="in"/>
3276 </method>
3277
3278 <method name="autoCaptureUSBDevices">
3279 <desc>
3280 Requests a capture all matching USB devices attached to the host.
3281 When the request is completed, the VM process will
3282 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3283 notification per every captured device.
3284 </desc>
3285 </method>
3286
3287 <method name="detachAllUSBDevices">
3288 <desc>
3289 Notification that a VM that is being powered down. The done
3290 parameter indicates whether which stage of the power down
3291 we're at. When done = false the VM is announcing its
3292 intentions, while when done = true the VM is reporting
3293 what it has done.
3294 <note>
3295 In the done = true case, the server must run its own filters
3296 and filters of all VMs but this one on all detach devices as
3297 if they were just attached to the host computer.
3298 </note>
3299 </desc>
3300 <param name="done" type="boolean" dir="in"/>
3301 </method>
3302
3303 <method name="onSessionEnd">
3304 <desc>
3305 Triggered by the given session object when the session is about
3306 to close normally.
3307 </desc>
3308 <param name="session" type="ISession" dir="in">
3309 <desc>Session that is being closed</desc>
3310 </param>
3311 <param name="progress" type="IProgress" dir="return">
3312 <desc>
3313 Used to wait until the corresponding machine is actually
3314 dissociated from the given session on the server.
3315 Returned only when this session is a direct one.
3316 </desc>
3317 </param>
3318 </method>
3319
3320 <method name="beginSavingState">
3321 <desc>
3322 Called by the VM process to inform the server it wants to
3323 save the current state and stop the VM execution.
3324 </desc>
3325 <param name="progress" type="IProgress" dir="in">
3326 <desc>
3327 Progress object created by the VM process to wait until
3328 the state is saved.
3329 </desc>
3330 </param>
3331 <param name="stateFilePath" type="wstring" dir="out">
3332 <desc>
3333 File path the VM process must save the execution state to.
3334 </desc>
3335 </param>
3336 </method>
3337
3338 <method name="endSavingState">
3339 <desc>
3340 Called by the VM process to inform the server that saving
3341 the state previously requested by #beginSavingState is either
3342 successfully finished or there was a failure.
3343
3344 <result name="VBOX_E_FILE_ERROR">
3345 Settings file not accessible.
3346 </result>
3347 <result name="VBOX_E_XML_ERROR">
3348 Could not parse the settings file.
3349 </result>
3350
3351 </desc>
3352
3353 <param name="success" type="boolean" dir="in">
3354 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3355 otherwise.
3356 </desc>
3357 </param>
3358 </method>
3359
3360 <method name="adoptSavedState">
3361 <desc>
3362 Gets called by IConsole::adoptSavedState.
3363 <result name="VBOX_E_FILE_ERROR">
3364 Invalid saved state file path.
3365 </result>
3366 </desc>
3367 <param name="savedStateFile" type="wstring" dir="in">
3368 <desc>Path to the saved state file to adopt.</desc>
3369 </param>
3370 </method>
3371
3372 <method name="beginTakingSnapshot">
3373 <desc>
3374 Called by the VM process to inform the server it wants to
3375 take a snapshot.
3376
3377 <result name="VBOX_E_FILE_ERROR">
3378 Settings file not accessible.
3379 </result>
3380 <result name="VBOX_E_XML_ERROR">
3381 Could not parse the settings file.
3382 </result>
3383 </desc>
3384 <param name="initiator" type="IConsole" dir="in">
3385 <desc>The console object that initiated this call.</desc>
3386 </param>
3387 <param name="name" type="wstring" dir="in">
3388 <desc>Snapshot name.</desc>
3389 </param>
3390 <param name="description" type="wstring" dir="in">
3391 <desc>Snapshot description.</desc>
3392 </param>
3393 <param name="progress" type="IProgress" dir="in">
3394 <desc>
3395 Progress object created by the VM process to wait until
3396 the state is saved (only for online snapshots).
3397 </desc>
3398 </param>
3399 <param name="stateFilePath" type="wstring" dir="out">
3400 <desc>
3401 File path the VM process must save the execution state to.
3402 </desc>
3403 </param>
3404 <param name="serverProgress" type="IProgress" dir="out">
3405 <desc>
3406 Progress object created by the server process to wait until
3407 the snapshot is taken (VDI diff creation, etc.).
3408 </desc>
3409 </param>
3410 </method>
3411
3412 <method name="endTakingSnapshot">
3413 <desc>
3414 Called by the VM process to inform the server that the snapshot
3415 previously requested by #beginTakingSnapshot is either
3416 successfully taken or there was a failure.
3417 </desc>
3418
3419 <param name="success" type="boolean" dir="in">
3420 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3421 </param>
3422 </method>
3423
3424 <method name="discardSnapshot">
3425 <desc>
3426 Gets called by IConsole::discardSnapshot.
3427 <result name="VBOX_E_INVALID_OBJECT_STATE">
3428 Snapshot has more than one child snapshot.
3429 </result>
3430 </desc>
3431 <param name="initiator" type="IConsole" dir="in">
3432 <desc>The console object that initiated this call.</desc>
3433 </param>
3434 <param name="id" type="uuid" dir="in">
3435 <desc>UUID of the snapshot to discard.</desc>
3436 </param>
3437 <param name="machineState" type="MachineState" dir="out">
3438 <desc>New machine state after this operation is started.</desc>
3439 </param>
3440 <param name="progress" type="IProgress" dir="return">
3441 <desc>Progress object to track the operation completion.</desc>
3442 </param>
3443 </method>
3444
3445 <method name="discardCurrentState">
3446 <desc>
3447 Gets called by IConsole::discardCurrentState.
3448 <result name="VBOX_E_INVALID_OBJECT_STATE">
3449 Virtual machine does not have any snapshot.
3450 </result>
3451 </desc>
3452 <param name="initiator" type="IConsole" dir="in">
3453 <desc>The console object that initiated this call.</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="discardCurrentSnapshotAndState">
3464 <desc>
3465 Gets called by IConsole::discardCurrentSnapshotAndState.
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="pullGuestProperties">
3482 <desc>
3483 Get the list of the guest properties matching a set of patterns along
3484 with their values, time stamps and flags and give responsibility for
3485 managing properties to the console.
3486 </desc>
3487 <param name="name" type="wstring" dir="out" safearray="yes">
3488 <desc>
3489 The names of the properties returned.
3490 </desc>
3491 </param>
3492 <param name="value" type="wstring" dir="out" safearray="yes">
3493 <desc>
3494 The values of the properties returned. The array entries match the
3495 corresponding entries in the @a name array.
3496 </desc>
3497 </param>
3498 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3499 <desc>
3500 The time stamps of the properties returned. The array entries match
3501 the corresponding entries in the @a name array.
3502 </desc>
3503 </param>
3504 <param name="flags" type="wstring" dir="out" safearray="yes">
3505 <desc>
3506 The flags of the properties returned. The array entries match the
3507 corresponding entries in the @a name array.
3508 </desc>
3509 </param>
3510 </method>
3511
3512 <method name="pushGuestProperties">
3513 <desc>
3514 Set the list of the guest properties matching a set of patterns along
3515 with their values, time stamps and flags and return responsibility for
3516 managing properties to IMachine.
3517 </desc>
3518 <param name="name" type="wstring" dir="in" safearray="yes">
3519 <desc>
3520 The names of the properties.
3521 </desc>
3522 </param>
3523 <param name="value" type="wstring" dir="in" safearray="yes">
3524 <desc>
3525 The values of the properties. The array entries match the
3526 corresponding entries in the @a name array.
3527 </desc>
3528 </param>
3529 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3530 <desc>
3531 The time stamps of the properties. The array entries match
3532 the corresponding entries in the @a name array.
3533 </desc>
3534 </param>
3535 <param name="flags" type="wstring" dir="in" safearray="yes">
3536 <desc>
3537 The flags of the properties. The array entries match the
3538 corresponding entries in the @a name array.
3539 </desc>
3540 </param>
3541 </method>
3542 <method name="pushGuestProperty">
3543 <desc>
3544 Update a single guest property in IMachine.
3545 </desc>
3546 <param name="name" type="wstring" dir="in">
3547 <desc>
3548 The name of the property to be updated.
3549 </desc>
3550 </param>
3551 <param name="value" type="wstring" dir="in">
3552 <desc>
3553 The value of the property.
3554 </desc>
3555 </param>
3556 <param name="timestamp" type="unsigned long long" dir="in">
3557 <desc>
3558 The timestamp of the property.
3559 </desc>
3560 </param>
3561 <param name="flags" type="wstring" dir="in">
3562 <desc>
3563 The flags of the property.
3564 </desc>
3565 </param>
3566 </method>
3567 </interface>
3568
3569 <interface
3570 name="IBIOSSettings" extends="$unknown"
3571 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3572 wsmap="managed"
3573 >
3574 <desc>
3575 The IBIOSSettings interface represents BIOS settings of the virtual
3576 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3577 </desc>
3578 <attribute name="logoFadeIn" type="boolean">
3579 <desc>Fade in flag for BIOS logo animation.</desc>
3580 </attribute>
3581
3582 <attribute name="logoFadeOut" type="boolean">
3583 <desc>Fade out flag for BIOS logo animation.</desc>
3584 </attribute>
3585
3586 <attribute name="logoDisplayTime" type="unsigned long">
3587 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3588 </attribute>
3589
3590 <attribute name="logoImagePath" type="wstring">
3591 <desc>Local file system path for external BIOS image.</desc>
3592 </attribute>
3593
3594 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3595 <desc>Mode of the BIOS boot device menu.</desc>
3596 </attribute>
3597
3598 <attribute name="ACPIEnabled" type="boolean">
3599 <desc>ACPI support flag.</desc>
3600 </attribute>
3601
3602 <attribute name="IOAPICEnabled" type="boolean">
3603 <desc>
3604 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3605 and support IRQs above 15.
3606 </desc>
3607 </attribute>
3608
3609 <attribute name="timeOffset" type="long long">
3610 <desc>
3611 Offset in milliseconds from the host system time. This allows for
3612 guests running with a different system date/time than the host.
3613 It is equivalent to setting the system date/time in the BIOS except
3614 it is not an absolute value but a relative one. Guest Additions
3615 time synchronization honors this offset.
3616 </desc>
3617 </attribute>
3618
3619 <attribute name="PXEDebugEnabled" type="boolean">
3620 <desc>
3621 PXE debug logging flag. If set, VirtualBox will write extensive
3622 PXE trace information to the release log.
3623 </desc>
3624 </attribute>
3625
3626 <attribute name="IDEControllerType" type="IDEControllerType">
3627 <desc>
3628 Type of the virtual IDE controller. Depending on this value,
3629 VirtualBox will provide different virtual IDE hardware
3630 devices to the guest.
3631 </desc>
3632 </attribute>
3633
3634 </interface>
3635
3636 <interface
3637 name="IMachine" extends="$unknown"
3638 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3639 wsmap="managed"
3640 >
3641 <desc>
3642 The IMachine interface represents a virtual machine, or guest, created
3643 in VirtualBox.
3644
3645 This interface is used in two contexts. First of all, a collection of
3646 objects implementing this interface is stored in the
3647 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3648 machines that are currently registered with this VirtualBox
3649 installation. Also, once a session has been opened for the given virtual
3650 machine (e.g. the virtual machine is running), the machine object
3651 associated with the open session can be queried from the session object;
3652 see <link to="ISession"/> for details.
3653
3654 The main role of this interface is to expose the settings of the virtual
3655 machine and provide methods to change various aspects of the virtual
3656 machine's configuration. For machine objects stored in the
3657 <link to="IVirtualBox::machines2"/> collection, all attributes are
3658 read-only unless explicitly stated otherwise in individual attribute
3659 and method descriptions. In order to change a machine setting, a session
3660 for this machine must be opened using one of
3661 <link to="IVirtualBox::openSession"/>,
3662 <link to="IVirtualBox::openRemoteSession"/> or
3663 <link to="IVirtualBox::openExistingSession"/> methods. After the
3664 session has been successfully opened, a mutable machine object needs to
3665 be queried from the session object and then the desired settings changes
3666 can be applied to the returned object using IMachine attributes and
3667 methods. See the ISession interface description for more information
3668 about sessions.
3669
3670 Note that the IMachine interface does not provide methods to control
3671 virtual machine execution (such as start the machine, or power it
3672 down) -- these methods are grouped in a separate IConsole
3673 interface. Refer to the IConsole interface description to get more
3674 information about this topic.
3675
3676 <see>ISession, IConsole</see>
3677 </desc>
3678
3679 <attribute name="parent" type="IVirtualBox" readonly="yes">
3680 <desc>Associated parent object.</desc>
3681 </attribute>
3682
3683 <attribute name="accessible" type="boolean" readonly="yes">
3684 <desc>
3685 Whether this virtual machine is currently accessible or not.
3686
3687 The machine is considered to be inaccessible when:
3688 <ul>
3689 <li>It is a registered virtual machine, and
3690 </li>
3691 <li>Its settings file is inaccessible (for example, it is
3692 located on a network share that is not accessible during
3693 VirtualBox startup, or becomes inaccessible later, or if
3694 the settings file can be read but is invalid).
3695 </li>
3696 </ul>
3697
3698 Otherwise, the value of this property is always <tt>true</tt>.
3699
3700 Every time this property is read, the accessibility state of
3701 this machine is re-evaluated. If the returned value is |false|,
3702 the <link to="#accessError"/> property may be used to get the
3703 detailed error information describing the reason of
3704 inaccessibility.
3705
3706 When the machine is inaccessible, only the following properties
3707 can be used on it:
3708 <ul>
3709 <li><link to="#parent"/></li>
3710 <li><link to="#id"/></li>
3711 <li><link to="#settingsFilePath"/></li>
3712 <li><link to="#accessible"/></li>
3713 <li><link to="#accessError"/></li>
3714 </ul>
3715
3716 An attempt to access any other property or method will return
3717 an error.
3718
3719 The only possible action you can perform on an inaccessible
3720 machine is to unregister it using the
3721 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3722 for the accessibility state once more by querying this
3723 property).
3724
3725 <note>
3726 In the current implementation, once this property returns
3727 <tt>true</tt>, the machine will never become inaccessible
3728 later, even if its settings file cannot be successfully
3729 read/written any more (at least, until the VirtualBox
3730 server is restarted). This limitation may be removed in
3731 future releases.
3732 </note>
3733 </desc>
3734 </attribute>
3735
3736 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3737 <desc>
3738 Error information describing the reason of machine
3739 inaccessibility.
3740
3741 Reading this property is only valid after the last call to
3742 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3743 machine is currently unaccessible). Otherwise, a null
3744 IVirtualBoxErrorInfo object will be returned.
3745 </desc>
3746 </attribute>
3747
3748 <attribute name="name" type="wstring">
3749 <desc>
3750 Name of the virtual machine.
3751
3752 Besides being used for human-readable identification purposes
3753 everywhere in VirtualBox, the virtual machine name is also used
3754 as a name of the machine's settings file and as a name of the
3755 subdirectory this settings file resides in. Thus, every time you
3756 change the value of this property, the settings file will be
3757 renamed once you call <link to="#saveSettings"/> to confirm the
3758 change. The containing subdirectory will be also renamed, but
3759 only if it has exactly the same name as the settings file
3760 itself prior to changing this property (for backward compatibility
3761 with previous API releases). The above implies the following
3762 limitations:
3763 <ul>
3764 <li>The machine name cannot be empty.</li>
3765 <li>The machine name can contain only characters that are valid
3766 file name characters according to the rules of the file
3767 system used to store VirtualBox configuration.</li>
3768 <li>You cannot have two or more machines with the same name
3769 if they use the same subdirectory for storing the machine
3770 settings files.</li>
3771 <li>You cannot change the name of the machine if it is running,
3772 or if any file in the directory containing the settings file
3773 is being used by another running machine or by any other
3774 process in the host operating system at a time when
3775 <link to="#saveSettings"/> is called.
3776 </li>
3777 </ul>
3778 If any of the above limitations are hit, <link to="#saveSettings"/>
3779 will return an appropriate error message explaining the exact
3780 reason and the changes you made to this machine will not be
3781 saved.
3782 <note>
3783 For "legacy" machines created using the
3784 <link to="IVirtualBox::createLegacyMachine"/> call,
3785 the above naming limitations do not apply because the
3786 machine name does not affect the settings file name.
3787 The settings file name remains the same as it was specified
3788 during machine creation and never changes.
3789 </note>
3790 </desc>
3791 </attribute>
3792
3793 <attribute name="description" type="wstring">
3794 <desc>
3795 Description of the virtual machine.
3796
3797 The description attribute can contain any text and is
3798 typically used to describe the hardware and software
3799 configuration of the virtual machine in detail (i.e. network
3800 settings, versions of the installed software and so on).
3801 </desc>
3802 </attribute>
3803
3804 <attribute name="id" type="uuid" readonly="yes">
3805 <desc>UUID of the virtual machine.</desc>
3806 </attribute>
3807
3808 <attribute name="OSTypeId" type="wstring">
3809 <desc>
3810 User-defined identifier of the Guest OS type.
3811 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3812 an IGuestOSType object representing details about the given
3813 Guest OS type.
3814 <note>
3815 This value may differ from the value returned by
3816 <link to="IGuest::OSTypeId"/> if Guest Additions are
3817 installed to the guest OS.
3818 </note>
3819 </desc>
3820 </attribute>
3821
3822 <attribute name="HardwareVersion" type="wstring">
3823 <desc>Hardware version identifier. Internal use only for now.</desc>
3824 </attribute>
3825
3826 <attribute name="CPUCount" type="unsigned long">
3827 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3828 </attribute>
3829
3830 <attribute name="memorySize" type="unsigned long">
3831 <desc>System memory size in megabytes.</desc>
3832 </attribute>
3833
3834 <attribute name="memoryBalloonSize" type="unsigned long">
3835 <desc>Initial memory balloon size in megabytes.</desc>
3836 </attribute>
3837
3838 <attribute name="statisticsUpdateInterval" type="unsigned long">
3839 <desc>Initial interval to update guest statistics in seconds.</desc>
3840 </attribute>
3841
3842 <attribute name="VRAMSize" type="unsigned long">
3843 <desc>Video memory size in megabytes.</desc>
3844 </attribute>
3845
3846 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3847 <desc>
3848 This setting determines whether VirtualBox allows guests to make use
3849 of the 3D graphics support available on the host. Currently limited
3850 to OpenGL only. </desc>
3851 </attribute>
3852
3853 <attribute name="monitorCount" type="unsigned long">
3854 <desc>
3855 Number of virtual monitors.
3856 <note>
3857 Only effective on Windows XP and later guests with
3858 Guest Additions installed.
3859 </note>
3860 </desc>
3861 </attribute>
3862
3863 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3864 <desc>Object containing all BIOS settings.</desc>
3865 </attribute>
3866
3867 <attribute name="HWVirtExEnabled" type="TSBool">
3868 <desc>
3869 This setting determines whether VirtualBox will try to make use of
3870 the host CPU's hardware virtualization extensions such as Intel VT-x
3871 and AMD-V. Note that in case such extensions are not available,
3872 they will not be used.
3873 </desc>
3874 </attribute>
3875
3876 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3877 <desc>
3878 This setting determines whether VirtualBox will try to make use of
3879 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3880 such extensions are not available, they will not be used.
3881 </desc>
3882 </attribute>
3883
3884 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3885 <desc>
3886 This setting determines whether VirtualBox will try to make use of
3887 the VPID extension of Intel VT-x. Note that in case such extensions are
3888 not available, they will not be used.
3889 </desc>
3890 </attribute>
3891
3892 <attribute name="PAEEnabled" type="boolean" default="false">
3893 <desc>
3894 This setting determines whether VirtualBox will expose the Physical Address
3895 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3896 is not available, it will not be reported.
3897 </desc>
3898 </attribute>
3899
3900 <attribute name="snapshotFolder" type="wstring">
3901 <desc>
3902 Full path to the directory used to store snapshot data
3903 (differencing hard disks and saved state files) of this machine.
3904
3905 The initial value of this property is
3906 <tt>&lt;</tt><link to="#settingsFilePath">
3907 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3908 <link to="#id">machine_uuid</link>
3909 <tt>&gt;</tt>.
3910
3911 Currently, it is an error to try to change this property on
3912 a machine that has snapshots (because this would require to
3913 move possibly large files to a different location).
3914 A separate method will be available for this purpose later.
3915
3916 <note>
3917 Setting this property to <tt>null</tt> will restore the
3918 initial value.
3919 </note>
3920 <note>
3921 When setting this property, the specified path can be
3922 absolute (full path) or relative to the directory where the
3923 <link to="#settingsFilePath">machine settings file</link>
3924 is located. When reading this property, a full path is
3925 always returned.
3926 </note>
3927 <note>
3928 The specified path may not exist, it will be created
3929 when necessary.
3930 </note>
3931 </desc>
3932 </attribute>
3933
3934 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3935 <desc>VRDP server object.</desc>
3936 </attribute>
3937
3938 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3939 <desc>Array of hard disks attached to this machine.</desc>
3940 </attribute>
3941
3942 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3943 <desc>Associated DVD drive object.</desc>
3944 </attribute>
3945
3946 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3947 <desc>Associated floppy drive object.</desc>
3948 </attribute>
3949
3950 <attribute name="USBController" type="IUSBController" readonly="yes">
3951 <desc>
3952 Associated USB controller object.
3953
3954 <note>
3955 This method may set a @ref com_warnings "warning result code".
3956 </note>
3957 <note>
3958 If USB functionality is not available in the given edition of
3959 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3960 </note>
3961 </desc>
3962 </attribute>
3963
3964 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3965 <desc>Associated audio adapter, always present.</desc>
3966 </attribute>
3967
3968 <attribute name="SATAController" type="ISATAController" readonly="yes">
3969 <desc>
3970 Associated SATA controller object.
3971 </desc>
3972 </attribute>
3973
3974 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3975 <desc>
3976 Full name of the file containing machine settings data.
3977 </desc>
3978 </attribute>
3979
3980 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
3981 <desc>
3982 Current version of the format of the settings file of this machine
3983 (<link to="#settingsFilePath"/>).
3984
3985 The version string has the following format:
3986 <pre>
3987 x.y-platform
3988 </pre>
3989 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
3990 versions, and <tt>platform</tt> is the platform identifier.
3991
3992 The current version usually matches the value of the
3993 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
3994 settings file was created by an older version of VirtualBox and there
3995 was a change of the settings file format since then.
3996
3997 Note that VirtualBox automatically converts settings files from older
3998 versions to the most recent version when reading them (usually at
3999 VirtualBox startup) but it doesn't save the changes back until
4000 you call a method that implicitly saves settings (such as
4001 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4002 explicitly. Therefore, if the value of this attribute differs from the
4003 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4004 means that the settings file was converted but the result of the
4005 conversion is not yet saved to disk.
4006
4007 The above feature may be used by interactive front-ends to inform users
4008 about the settings file format change and offer them to explicitly save
4009 all converted settings files (the global and VM-specific ones),
4010 optionally create backup copies of the old settings files before saving,
4011 etc.
4012
4013 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4014 </desc>
4015 </attribute>
4016
4017 <attribute name="settingsModified" type="boolean" readonly="yes">
4018 <desc>
4019 Whether the settings of this machine have been modified
4020 (but neither yet saved nor discarded).
4021 <note>
4022 Reading this property is only valid on instances returned
4023 by <link to="ISession::machine"/> and on new machines
4024 created by <link to="IVirtualBox::createMachine"/> or opened
4025 by <link to="IVirtualBox::openMachine"/> but not
4026 yet registered, or on unregistered machines after calling
4027 <link to="IVirtualBox::unregisterMachine"/>. For all other
4028 cases, the settings can never be modified.
4029 </note>
4030 <note>
4031 For newly created unregistered machines, the value of this
4032 property is always TRUE until <link to="#saveSettings"/>
4033 is called (no matter if any machine settings have been
4034 changed after the creation or not). For opened machines
4035 the value is set to FALSE (and then follows to normal rules).
4036 </note>
4037 </desc>
4038 </attribute>
4039
4040 <attribute name="sessionState" type="SessionState" readonly="yes">
4041 <desc>Current session state for this machine.</desc>
4042 </attribute>
4043
4044 <attribute name="sessionType" type="wstring" readonly="yes">
4045 <desc>
4046 Type of the session. If <link to="#sessionState"/> is
4047 SessionSpawning or SessionOpen, this attribute contains the
4048 same value as passed to the
4049 <link to="IVirtualBox::openRemoteSession"/> method in the @a
4050 type parameter. If the session was opened directly using
4051 <link to="IVirtualBox::openSession"/>, or if
4052 <link to="#sessionState"/> is SessionClosed, the value of this
4053 attribute is @c null.
4054 </desc>
4055 </attribute>
4056
4057 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4058 <desc>
4059 Identifier of the session process. This attribute contains the
4060 platform-dependent identifier of the process that has opened a
4061 direct session for this machine using the
4062 <link to="IVirtualBox::openSession"/> call. The returned value
4063 is only valid if <link to="#sessionState"/> is SessionOpen or
4064 SessionClosing (i.e. a session is currently open or being
4065 closed) by the time this property is read.
4066 </desc>
4067 </attribute>
4068
4069 <attribute name="state" type="MachineState" readonly="yes">
4070 <desc>Current execution state of this machine.</desc>
4071 </attribute>
4072
4073 <attribute name="lastStateChange" type="long long" readonly="yes">
4074 <desc>
4075 Time stamp of the last execution state change,
4076 in milliseconds since 1970-01-01 UTC.
4077 </desc>
4078 </attribute>
4079
4080 <attribute name="stateFilePath" type="wstring" readonly="yes">
4081 <desc>
4082 Full path to the file that stores the execution state of
4083 the machine when it is in the <link to="MachineState_Saved"/> state.
4084 <note>
4085 When the machine is not in the Saved state, this attribute
4086 <tt>null</tt>.
4087 </note>
4088 </desc>
4089 </attribute>
4090
4091 <attribute name="logFolder" type="wstring" readonly="yes">
4092 <desc>
4093 Full path to the folder that stores a set of rotated log files
4094 recorded during machine execution. The most recent log file is
4095 named <tt>VBox.log</tt>, the previous log file is
4096 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4097 in the current version).
4098 </desc>
4099 </attribute>
4100
4101 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4102 <desc>
4103 Current snapshot of this machine.
4104 <note>
4105 A <tt>null</tt> object is returned if the machine doesn't
4106 have snapshots.
4107 </note>
4108 <see><link to="ISnapshot"/></see>
4109 </desc>
4110 </attribute>
4111
4112 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4113 <desc>
4114 Number of snapshots taken on this machine. Zero means the
4115 machine doesn't have any snapshots.
4116 </desc>
4117 </attribute>
4118
4119 <attribute name="currentStateModified" type="boolean" readonly="yes">
4120 <desc>
4121 Returns <tt>true</tt> if the current state of the machine is not
4122 identical to the state stored in the current snapshot.
4123
4124 The current state is identical to the current snapshot right
4125 after one of the following calls are made:
4126 <ul>
4127 <li><link to="IConsole::discardCurrentState"/> or
4128 <link to="IConsole::discardCurrentSnapshotAndState"/>
4129 </li>
4130 <li><link to="IConsole::takeSnapshot"/> (issued on a
4131 powered off or saved machine, for which
4132 <link to="#settingsModified"/> returns <tt>false</tt>)
4133 </li>
4134 <li><link to="IMachine::setCurrentSnapshot"/>
4135 </li>
4136 </ul>
4137
4138 The current state remains identical until one of the following
4139 happens:
4140 <ul>
4141 <li>settings of the machine are changed</li>
4142 <li>the saved state is discarded</li>
4143 <li>the current snapshot is discarded</li>
4144 <li>an attempt to execute the machine is made</li>
4145 </ul>
4146
4147 <note>
4148 For machines that don't have snapshots, this property is
4149 always <tt>false</tt>.
4150 </note>
4151 </desc>
4152 </attribute>
4153
4154 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
4155 <desc>
4156 Collection of shared folders for this machine (permanent shared
4157 folders). These folders are shared automatically at machine startup
4158 and available only to the guest OS installed within this machine.
4159
4160 New shared folders are added to the collection using
4161 <link to="#createSharedFolder"/>. Existing shared folders can be
4162 removed using <link to="#removeSharedFolder"/>.
4163 </desc>
4164 </attribute>
4165
4166 <attribute name="clipboardMode" type="ClipboardMode">
4167 <desc>
4168 Synchronization mode between the host OS clipboard
4169 and the guest OS clipboard.
4170 </desc>
4171 </attribute>
4172
4173 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4174 <desc>
4175 A comma-separated list of simple glob patterns. Changes to guest
4176 properties whose name matches one of the patterns will generate an
4177 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4178 </desc>
4179 </attribute>
4180
4181 <method name="setBootOrder">
4182 <desc>
4183 Puts the given device to the specified position in
4184 the boot order.
4185
4186 To indicate that no device is associated with the given position,
4187 <link to="DeviceType_Null"/> should be used.
4188
4189 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4190
4191 <result name="E_INVALIDARG">
4192 Boot @a position out of range.
4193 </result>
4194 <result name="E_NOTIMPL">
4195 Booting from USB @a device currently not supported.
4196 </result>
4197
4198 </desc>
4199 <param name="position" type="unsigned long" dir="in">
4200 <desc>
4201 Position in the boot order (<tt>1</tt> to the total number of
4202 devices the machine can boot from, as returned by
4203 <link to="ISystemProperties::maxBootPosition"/>).
4204 </desc>
4205 </param>
4206 <param name="device" type="DeviceType" dir="in">
4207 <desc>
4208 The type of the device used to boot at the given position.
4209 </desc>
4210 </param>
4211 </method>
4212
4213 <method name="getBootOrder" const="yes">
4214 <desc>
4215 Returns the device type that occupies the specified
4216 position in the boot order.
4217
4218 @todo [remove?]
4219 If the machine can have more than one device of the returned type
4220 (such as hard disks), then a separate method should be used to
4221 retrieve the individual device that occupies the given position.
4222
4223 If here are no devices at the given position, then
4224 <link to="DeviceType_Null"/> is returned.
4225
4226 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4227
4228 <result name="E_INVALIDARG">
4229 Boot @a position out of range.
4230 </result>
4231
4232 </desc>
4233 <param name="position" type="unsigned long" dir="in">
4234 <desc>
4235 Position in the boot order (<tt>1</tt> to the total number of
4236 devices the machine can boot from, as returned by
4237 <link to="ISystemProperties::maxBootPosition"/>).
4238 </desc>
4239 </param>
4240 <param name="device" type="DeviceType" dir="return">
4241 <desc>
4242 Device at the given position.
4243 </desc>
4244 </param>
4245 </method>
4246
4247 <method name="attachHardDisk">
4248 <desc>
4249 Attaches a virtual hard disk identified by the given UUID @a id
4250 to a device slot of the specified bus.
4251
4252 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4253 specify the primary or secondary IDE controller, respectively. The
4254 SATA bus supports 30 channels, so this parameter can be a number
4255 ranging from @c 0 to @c 29.
4256
4257 For the primary controller of the IDE bus, the @a device number can be
4258 either @c 0 or @c 1, to specify the master or the slave device,
4259 respectively. For the secondary IDE controller, the device number is
4260 always @c 1 because the master device is reserved for the CD-ROM drive.
4261
4262 For the SATA bus, the @a device parameter is currently unused and
4263 must be @c 0.
4264
4265 The specified device slot must not have another disk attached to it, or
4266 this method will fail.
4267
4268 See <link to="IHardDisk"/> for more detailed information about
4269 attaching hard disks.
4270
4271 <note>
4272 You cannot attach a hard disk to a running machine. Also, you cannot
4273 attach a hard disk to a newly created machine until this machine's
4274 settings are saved to disk using <link to="#saveSettings"/>.
4275 </note>
4276 <note>
4277 If the hard disk is being attached indirectly, a new differencing hard
4278 disk will implicitly be created for it and attached instead. If the
4279 changes made to the machine settings (including this indirect
4280 attachment) are later cancelled using <link to="#discardSettings"/>,
4281 this implicitly created differencing hard disk will implicitly
4282 be deleted.
4283 </note>
4284
4285 <result name="E_INVALIDARG">
4286 SATA device, SATA channel, IDE channel or IDE slot out of range.
4287 </result>
4288 <result name="VBOX_E_INVALID_OBJECT_STATE">
4289 Attempt to attach hard disk to an unregistered virtual machine.
4290 </result>
4291 <result name="VBOX_E_INVALID_VM_STATE">
4292 Invalid machine state.
4293 </result>
4294 <result name="VBOX_E_OBJECT_IN_USE">
4295 Hard disk already attached to this or another virtual machine.
4296 </result>
4297
4298 </desc>
4299 <param name="id" type="uuid" dir="in">
4300 <desc>UUID of the hard disk to attach.</desc>
4301 </param>
4302 <param name="bus" type="StorageBus" dir="in">
4303 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4304 </param>
4305 <param name="channel" type="long" dir="in">
4306 <desc>Channel to attach the hard disk to.</desc>
4307 </param>
4308 <param name="device" type="long" dir="in">
4309 <desc>
4310 Device slot in the given channel to attach the hard disk to.
4311 </desc>
4312 </param>
4313 </method>
4314
4315 <method name="getHardDisk" const="yes">
4316 <desc>
4317 Returns the virtual hard disk attached to a device slot of the specified
4318 bus.
4319
4320 Note that if the hard disk was indirectly attached by
4321 <link to="#attachHardDisk"/> to the given device slot then this
4322 method will return not the same object as passed to the
4323 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4324 more detailed information about attaching hard disks.
4325
4326 <result name="VBOX_E_OBJECT_NOT_FOUND">
4327 No hard disk attached to given slot/bus.
4328 </result>
4329
4330 </desc>
4331 <param name="bus" type="StorageBus" dir="in">
4332 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4333 </param>
4334 <param name="channel" type="long" dir="in">
4335 <desc>Channel to query.</desc>
4336 </param>
4337 <param name="device" type="long" dir="in">
4338 <desc>Device slot in the given channel to query.</desc>
4339 </param>
4340 <param name="hardDisk" type="IHardDisk" dir="return">
4341 <desc>Attached hard disk object.</desc>
4342 </param>
4343 </method>
4344
4345 <method name="detachHardDisk">
4346 <desc>
4347 Detaches the virtual hard disk attached to a device slot of the
4348 specified bus.
4349
4350 Detaching the hard disk from the virtual machine is deferred. This means
4351 that the hard disk remains associated with the machine when this method
4352 returns and gets actually de-associated only after a successful
4353 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4354 for more detailed information about attaching hard disks.
4355
4356 <note>
4357 You cannot detach the hard disk from a running machine.
4358 </note>
4359 <note>
4360 Detaching differencing hard disks implicitly created by <link
4361 to="#attachHardDisk"/> for the indirect attachment using this
4362 method will <b>not</b> implicitly delete them. The
4363 <link to="IHardDisk::deleteStorage"/> operation should be
4364 explicitly performed by the caller after the hard disk is successfully
4365 detached and the settings are saved with
4366 <link to="#saveSettings"/>, if it is the desired action.
4367 </note>
4368
4369 <result name="VBOX_E_INVALID_VM_STATE">
4370 Attempt to detach hard disk from a running virtual machine.
4371 </result>
4372 <result name="VBOX_E_OBJECT_NOT_FOUND">
4373 No hard disk attached to given slot/bus.
4374 </result>
4375 <result name="VBOX_E_NOT_SUPPORTED">
4376 Hard disk format does not support storage deletion.
4377 </result>
4378
4379 </desc>
4380 <param name="bus" type="StorageBus" dir="in">
4381 <desc>Bus to detach the hard disk from.</desc>
4382 </param>
4383 <param name="channel" type="long" dir="in">
4384 <desc>Channel number to detach the hard disk from.</desc>
4385 </param>
4386 <param name="device" type="long" dir="in">
4387 <desc>Device slot number to detach the hard disk from.</desc>
4388 </param>
4389 </method>
4390
4391 <method name="getNetworkAdapter" const="yes">
4392 <desc>
4393 Returns the network adapter associated with the given slot.
4394 Slots are numbered sequentially, starting with zero. The total
4395 number of adapters per machine is defined by the
4396 <link to="ISystemProperties::networkAdapterCount"/> property,
4397 so the maximum slot number is one less than that property's value.
4398
4399 <result name="E_INVALIDARG">
4400 Invalid @a slot number.
4401 </result>
4402
4403 </desc>
4404 <param name="slot" type="unsigned long" dir="in"/>
4405 <param name="adapter" type="INetworkAdapter" dir="return"/>
4406 </method>
4407
4408 <method name="getSerialPort" const="yes">
4409 <desc>
4410 Returns the serial port associated with the given slot.
4411 Slots are numbered sequentially, starting with zero. The total
4412 number of serial ports per machine is defined by the
4413 <link to="ISystemProperties::serialPortCount"/> property,
4414 so the maximum slot number is one less than that property's value.
4415
4416 <result name="E_INVALIDARG">
4417 Invalid @a slot number.
4418 </result>
4419
4420 </desc>
4421 <param name="slot" type="unsigned long" dir="in"/>
4422 <param name="port" type="ISerialPort" dir="return"/>
4423 </method>
4424
4425 <method name="getParallelPort" const="yes">
4426 <desc>
4427 Returns the parallel port associated with the given slot.
4428 Slots are numbered sequentially, starting with zero. The total
4429 number of parallel ports per machine is defined by the
4430 <link to="ISystemProperties::parallelPortCount"/> property,
4431 so the maximum slot number is one less than that property's value.
4432
4433 <result name="E_INVALIDARG">
4434 Invalid @a slot number.
4435 </result>
4436
4437 </desc>
4438 <param name="slot" type="unsigned long" dir="in"/>
4439 <param name="port" type="IParallelPort" dir="return"/>
4440 </method>
4441
4442 <method name="getNextExtraDataKey">
4443 <desc>
4444 Returns the machine-specific extra data key name following the
4445 supplied key.
4446
4447 An error is returned if the supplied @a key does not exist. @c NULL is
4448 returned in @a nextKey if the supplied key is the last key. When
4449 supplying @c NULL for the @a key, the first key item is returned in @a
4450 nextKey (if there is any). @a nextValue is an optional parameter and
4451 if supplied, the next key's value is returned in it.
4452
4453 <result name="VBOX_E_OBJECT_NOT_FOUND">
4454 Extra data @a key not found.
4455 </result>
4456
4457 </desc>
4458 <param name="key" type="wstring" dir="in">
4459 <desc>Name of the data key to follow.</desc>
4460 </param>
4461 <param name="nextKey" type="wstring" dir="out">
4462 <desc>Name of the next data key.</desc>
4463 </param>
4464 <param name="nextValue" type="wstring" dir="out">
4465 <desc>Value of the next data key.</desc>
4466 </param>
4467 </method>
4468
4469 <method name="getExtraData">
4470 <desc>
4471 Returns associated machine-specific extra data.
4472
4473 If the requested data @a key does not exist, this function will
4474 succeed and return @c NULL in the @a value argument.
4475
4476 <result name="VBOX_E_FILE_ERROR">
4477 Settings file not accessible.
4478 </result>
4479 <result name="VBOX_E_XML_ERROR">
4480 Could not parse the settings file.
4481 </result>
4482
4483 </desc>
4484 <param name="key" type="wstring" dir="in">
4485 <desc>Name of the data key to get.</desc>
4486 </param>
4487 <param name="value" type="wstring" dir="return">
4488 <desc>Value of the requested data key.</desc>
4489 </param>
4490 </method>
4491
4492 <method name="setExtraData">
4493 <desc>
4494 Sets associated machine-specific extra data.
4495
4496 If you pass @c NULL as a key @a value, the given @a key will be
4497 deleted.
4498
4499 <note>
4500 Before performing the actual data change, this method will ask all
4501 registered callbacks using the
4502 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4503 notification for a permission. If one of the callbacks refuses the
4504 new value, the change will not be performed.
4505 </note>
4506 <note>
4507 On success, the
4508 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4509 is called to inform all registered callbacks about a successful data
4510 change.
4511 </note>
4512 <note>
4513 This method can be called outside the machine session and therefore
4514 it's a caller's responsibility to handle possible race conditions
4515 when several clients change the same key at the same time.
4516 </note>
4517
4518 <result name="VBOX_E_FILE_ERROR">
4519 Settings file not accessible.
4520 </result>
4521 <result name="VBOX_E_XML_ERROR">
4522 Could not parse the settings file.
4523 </result>
4524
4525 </desc>
4526 <param name="key" type="wstring" dir="in">
4527 <desc>Name of the data key to set.</desc>
4528 </param>
4529 <param name="value" type="wstring" dir="in">
4530 <desc>Value to assign to the key.</desc>
4531 </param>
4532 </method>
4533
4534 <method name="saveSettings">
4535 <desc>
4536 Saves any changes to machine settings made since the session
4537 has been opened or a new machine has been created, or since the
4538 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4539 For registered machines, new settings become visible to all
4540 other VirtualBox clients after successful invocation of this
4541 method.
4542 <note>
4543 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4544 notification event after the configuration has been successfully
4545 saved (only for registered machines).
4546 </note>
4547 <note>
4548 Calling this method is only valid on instances returned
4549 by <link to="ISession::machine"/> and on new machines
4550 created by <link to="IVirtualBox::createMachine"/> but not
4551 yet registered, or on unregistered machines after calling
4552 <link to="IVirtualBox::unregisterMachine"/>.
4553 </note>
4554
4555 <result name="VBOX_E_FILE_ERROR">
4556 Settings file not accessible.
4557 </result>
4558 <result name="VBOX_E_XML_ERROR">
4559 Could not parse the settings file.
4560 </result>
4561 <result name="E_ACCESSDENIED">
4562 Modification request refused.
4563 </result>
4564
4565 </desc>
4566 </method>
4567
4568 <method name="saveSettingsWithBackup">
4569 <desc>
4570 Creates a backup copy of the machine settings file (<link
4571 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4572 <link to="#saveSettings"/>.
4573
4574 Note that the backup copy is created <b>only</b> if the settings file
4575 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4576 details). Otherwise, this call is fully equivalent to
4577 <link to="#saveSettings"/> and no backup copying is done.
4578
4579 The backup copy is created in the same directory where the original
4580 settings file is located. It is given the following file name:
4581 <pre>
4582 original.xml.x.y-platform.bak
4583 </pre>
4584 where <tt>original.xml</tt> is the original settings file name
4585 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4586 format of the settings file (before auto-conversion).
4587
4588 If the given backup file already exists, this method will try to add the
4589 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4590 0 to 9) and copy it again until it succeeds. If all suffixes are
4591 occupied, or if any other copy error occurs, this method will return a
4592 failure.
4593
4594 If the copy operation succeeds, the @a bakFileName return argument will
4595 receive a full path to the created backup file (for informational
4596 purposes). Note that this will happen even if the subsequent
4597 <link to="#saveSettings"/> call performed by this method after the
4598 copy operation, fails.
4599
4600 <note>
4601 The VirtualBox API never calls this method. It is intended purely for
4602 the purposes of creating backup copies of the settings files by
4603 front-ends before saving the results of the automatically performed
4604 settings conversion to disk.
4605 </note>
4606
4607 <see>settingsFileVersion</see>
4608
4609 <result name="VBOX_E_FILE_ERROR">
4610 Settings file not accessible.
4611 </result>
4612 <result name="VBOX_E_XML_ERROR">
4613 Could not parse the settings file.
4614 </result>
4615 <result name="VBOX_E_INVALID_VM_STATE">
4616 Virtual machine is not mutable.
4617 </result>
4618 <result name="E_ACCESSDENIED">
4619 Modification request refused.
4620 </result>
4621
4622 </desc>
4623 <param name="bakFileName" type="wstring" dir="return">
4624 <desc>Full path to the created backup copy.</desc>
4625 </param>
4626 </method>
4627
4628 <method name="discardSettings">
4629 <desc>
4630 Discards any changes to the machine settings made since the session
4631 has been opened or since the last call to <link to="#saveSettings"/>
4632 or <link to="#discardSettings"/>.
4633 <note>
4634 Calling this method is only valid on instances returned
4635 by <link to="ISession::machine"/> and on new machines
4636 created by <link to="IVirtualBox::createMachine"/> or
4637 opened by <link to="IVirtualBox::openMachine"/> but not
4638 yet registered, or on unregistered machines after calling
4639 <link to="IVirtualBox::unregisterMachine"/>.
4640 </note>
4641
4642 <result name="VBOX_E_INVALID_VM_STATE">
4643 Virtual machine is not mutable.
4644 </result>
4645
4646 </desc>
4647 </method>
4648
4649 <method name="deleteSettings">
4650 <desc>
4651 Deletes the settings file of this machine from disk.
4652 The machine must not be registered in order for this operation
4653 to succeed.
4654 <note>
4655 <link to="#settingsModified"/> will return TRUE after this
4656 method successfully returns.
4657 </note>
4658 <note>
4659 Calling this method is only valid on instances returned
4660 by <link to="ISession::machine"/> and on new machines
4661 created by <link to="IVirtualBox::createMachine"/> or
4662 opened by <link to="IVirtualBox::openMachine"/> but not
4663 yet registered, or on unregistered machines after calling
4664 <link to="IVirtualBox::unregisterMachine"/>.
4665 </note>
4666 <note>
4667 The deleted machine settings file can be restored (saved again)
4668 by calling <link to="#saveSettings"/>.
4669 </note>
4670
4671 <result name="VBOX_E_INVALID_VM_STATE">
4672 Cannot delete settings of a registered machine or
4673 machine not mutable.
4674 </result>
4675 <result name="VBOX_E_IPRT_ERROR">
4676 Could not delete the settings file.
4677 </result>
4678
4679 </desc>
4680 </method>
4681
4682 <method name="getSnapshot">
4683 <desc>
4684 Returns a snapshot of this machine with the given UUID.
4685 A <tt>null</tt> UUID can be used to obtain the first snapshot
4686 taken on this machine. This is useful if you want to traverse
4687 the whole tree of snapshots starting from the root.
4688
4689 <result name="VBOX_E_OBJECT_NOT_FOUND">
4690 Virtual machine has no snapshots or snapshot not found.
4691 </result>
4692
4693 </desc>
4694 <param name="id" type="uuid" dir="in">
4695 <desc>UUID of the snapshot to get</desc>
4696 </param>
4697 <param name="snapshot" type="ISnapshot" dir="return">
4698 <desc>Snapshot object with the given UUID.</desc>
4699 </param>
4700 </method>
4701
4702 <method name="findSnapshot">
4703 <desc>
4704 Returns a snapshot of this machine with the given name.
4705
4706 <result name="VBOX_E_OBJECT_NOT_FOUND">
4707 Virtual machine has no snapshots or snapshot not found.
4708 </result>
4709
4710 </desc>
4711 <param name="name" type="wstring" dir="in">
4712 <desc>Name of the snapshot to find</desc>
4713 </param>
4714 <param name="snapshot" type="ISnapshot" dir="return">
4715 <desc>Snapshot object with the given name.</desc>
4716 </param>
4717 </method>
4718
4719 <method name="setCurrentSnapshot">
4720 <desc>
4721 Sets the current snapshot of this machine.
4722 <note>
4723 In the current implementation, this operation is not
4724 implemented.
4725 </note>
4726 </desc>
4727 <param name="id" type="uuid" dir="in">
4728 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4729 </param>
4730 </method>
4731
4732 <method name="createSharedFolder">
4733 <desc>
4734 Creates a new permanent shared folder by associating the given logical
4735 name with the given host path, adds it to the collection of shared
4736 folders and starts sharing it. Refer to the description of
4737 <link to="ISharedFolder"/> to read more about logical names.
4738
4739 <result name="VBOX_E_OBJECT_IN_USE">
4740 Shared folder already exists.
4741 </result>
4742 <result name="VBOX_E_FILE_ERROR">
4743 Shared folder @a hostPath not accessible.
4744 </result>
4745
4746 </desc>
4747 <param name="name" type="wstring" dir="in">
4748 <desc>Unique logical name of the shared folder.</desc>
4749 </param>
4750 <param name="hostPath" type="wstring" dir="in">
4751 <desc>Full path to the shared folder in the host file system.</desc>
4752 </param>
4753 <param name="writable" type="boolean" dir="in">
4754 <desc>Whether the share is writable or readonly</desc>
4755 </param>
4756 </method>
4757
4758 <method name="removeSharedFolder">
4759 <desc>
4760 Removes the permanent shared folder with the given name previously
4761 created by <link to="#createSharedFolder"/> from the collection of
4762 shared folders and stops sharing it.
4763
4764 <result name="VBOX_E_INVALID_VM_STATE">
4765 Virtual machine is not mutable.
4766 </result>
4767 <result name="VBOX_E_OBJECT_NOT_FOUND">
4768 Shared folder @a name does not exist.
4769 </result>
4770
4771 </desc>
4772 <param name="name" type="wstring" dir="in">
4773 <desc>Logical name of the shared folder to remove.</desc>
4774 </param>
4775 </method>
4776
4777 <method name="canShowConsoleWindow">
4778 <desc>
4779 Returns @c true if the VM console process can activate the
4780 console window and bring it to foreground on the desktop of
4781 the host PC.
4782 <note>
4783 This method will fail if a session for this machine is not
4784 currently open.
4785 </note>
4786
4787 <result name="VBOX_E_INVALID_VM_STATE">
4788 Machine session is not open.
4789 </result>
4790
4791 </desc>
4792 <param name="canShow" type="boolean" dir="return">
4793 <desc>
4794 @c true if the console window can be shown and @c
4795 false otherwise.
4796 </desc>
4797 </param>
4798 </method>
4799
4800 <method name="showConsoleWindow">
4801 <desc>
4802 Activates the console window and brings it to foreground on
4803 the desktop of the host PC. Many modern window managers on
4804 many platforms implement some sort of focus stealing
4805 prevention logic, so that it may be impossible to activate
4806 a window without the help of the currently active
4807 application. In this case, this method will return a non-zero
4808 identifier that represents the top-level window of the VM
4809 console process. The caller, if it represents a currently
4810 active process, is responsible to use this identifier (in a
4811 platform-dependent manner) to perform actual window
4812 activation.
4813 <note>
4814 This method will fail if a session for this machine is not
4815 currently open.
4816 </note>
4817
4818 <result name="VBOX_E_INVALID_VM_STATE">
4819 Machine session is not open.
4820 </result>
4821
4822 </desc>
4823 <param name="winId" type="unsigned long long" dir="return">
4824 <desc>
4825 Platform-dependent identifier of the top-level VM console
4826 window, or zero if this method has performed all actions
4827 necessary to implement the <i>show window</i> semantics for
4828 the given platform and/or VirtualBox front-end.
4829 </desc>
4830 </param>
4831 </method>
4832
4833 <method name="getGuestProperty">
4834 <desc>
4835 Reads an entry from the machine's guest property store.
4836
4837 <result name="VBOX_E_INVALID_VM_STATE">
4838 Machine session is not open.
4839 </result>
4840
4841 </desc>
4842 <param name="name" type="wstring" dir="in">
4843 <desc>
4844 The name of the property to read.
4845 </desc>
4846 </param>
4847 <param name="value" type="wstring" dir="out">
4848 <desc>
4849 The value of the property. If the property does not exist then this
4850 will be empty.
4851 </desc>
4852 </param>
4853 <param name="timestamp" type="unsigned long long" dir="out">
4854 <desc>
4855 The time at which the property was last modified, as seen by the
4856 server process.
4857 </desc>
4858 </param>
4859 <param name="flags" type="wstring" dir="out">
4860 <desc>
4861 Additional property parameters, passed as a comma-separated list of
4862 "name=value" type entries.
4863 </desc>
4864 </param>
4865 </method>
4866
4867 <method name="getGuestPropertyValue">
4868 <desc>
4869 Reads a value from the machine's guest property store.
4870
4871 <result name="VBOX_E_INVALID_VM_STATE">
4872 Machine session is not open.
4873 </result>
4874
4875 </desc>
4876 <param name="property" type="wstring" dir="in">
4877 <desc>
4878 The name of the property to read.
4879 </desc>
4880 </param>
4881 <param name="value" type="wstring" dir="return">
4882 <desc>
4883 The value of the property. If the property does not exist then this
4884 will be empty.
4885 </desc>
4886 </param>
4887 </method>
4888
4889 <method name="getGuestPropertyTimestamp">
4890 <desc>
4891 Reads a property timestamp from the machine's guest property store.
4892
4893 <result name="VBOX_E_INVALID_VM_STATE">
4894 Machine session is not open.
4895 </result>
4896
4897 </desc>
4898 <param name="property" type="wstring" dir="in">
4899 <desc>
4900 The name of the property to read.
4901 </desc>
4902 </param>
4903 <param name="value" type="unsigned long long" dir="return">
4904 <desc>
4905 The timestamp. If the property does not exist then this will be
4906 empty.
4907 </desc>
4908 </param>
4909 </method>
4910
4911 <method name="setGuestProperty">
4912 <desc>
4913 Sets, changes or deletes an entry in the machine's guest property
4914 store.
4915
4916 <result name="E_ACCESSDENIED">
4917 Property cannot be changed.
4918 </result>
4919 <result name="E_INVALIDARG">
4920 Invalid @a flags.
4921 </result>
4922 <result name="VBOX_E_INVALID_VM_STATE">
4923 Virtual machine is not mutable or session not open.
4924 </result>
4925 <result name="VBOX_E_INVALID_OBJECT_STATE">
4926 Cannot set transient property when machine not running.
4927 </result>
4928
4929 </desc>
4930 <param name="property" type="wstring" dir="in">
4931 <desc>
4932 The name of the property to set, change or delete.
4933 </desc>
4934 </param>
4935 <param name="value" type="wstring" dir="in">
4936 <desc>
4937 The new value of the property to set, change or delete. If the
4938 property does not yet exist and value is non-empty, it will be
4939 created. If the value is empty, the key will be deleted if it
4940 exists.
4941 </desc>
4942 </param>
4943 <param name="flags" type="wstring" dir="in">
4944 <desc>
4945 Additional property parameters, passed as a comma-separated list of
4946 "name=value" type entries.
4947 </desc>
4948 </param>
4949 </method>
4950
4951 <method name="setGuestPropertyValue">
4952 <desc>
4953 Sets, changes or deletes a value in the machine's guest property
4954 store. The flags field will be left unchanged or created empty for a
4955 new property.
4956
4957 <result name="E_ACCESSDENIED">
4958 Property cannot be changed.
4959 </result>
4960 <result name="VBOX_E_INVALID_VM_STATE">
4961 Virtual machine is not mutable or session not open.
4962 </result>
4963 <result name="VBOX_E_INVALID_OBJECT_STATE">
4964 Cannot set transient property when machine not running.
4965 </result>
4966 </desc>
4967
4968 <param name="property" type="wstring" dir="in">
4969 <desc>
4970 The name of the property to set, change or delete.
4971 </desc>
4972 </param>
4973 <param name="value" type="wstring" dir="in">
4974 <desc>
4975 The new value of the property to set, change or delete. If the
4976 property does not yet exist and value is non-empty, it will be
4977 created. If value is empty, the property will be deleted if it
4978 exists.
4979 </desc>
4980 </param>
4981 </method>
4982
4983 <method name="enumerateGuestProperties">
4984 <desc>
4985 Return a list of the guest properties matching a set of patterns along
4986 with their values, time stamps and flags.
4987 </desc>
4988 <param name="patterns" type="wstring" dir="in">
4989 <desc>
4990 The patterns to match the properties against, separated by '|'
4991 characters. If this is empty or NULL, all properties will match.
4992 </desc>
4993 </param>
4994 <param name="name" type="wstring" dir="out" safearray="yes">
4995 <desc>
4996 The names of the properties returned.
4997 </desc>
4998 </param>
4999 <param name="value" type="wstring" dir="out" safearray="yes">
5000 <desc>
5001 The values of the properties returned. The array entries match the
5002 corresponding entries in the @a name array.
5003 </desc>
5004 </param>
5005 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5006 <desc>
5007 The time stamps of the properties returned. The array entries match
5008 the corresponding entries in the @a name array.
5009 </desc>
5010 </param>
5011 <param name="flags" type="wstring" dir="out" safearray="yes">
5012 <desc>
5013 The flags of the properties returned. The array entries match the
5014 corresponding entries in the @a name array.
5015 </desc>
5016 </param>
5017 </method>
5018</interface>
5019
5020 <!--
5021 // IConsole
5022 /////////////////////////////////////////////////////////////////////////
5023 -->
5024
5025 <interface
5026 name="IConsoleCallback" extends="$unknown"
5027 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5028 wsmap="suppress"
5029 >
5030
5031 <method name="onMousePointerShapeChange">
5032 <desc>
5033 Notification when the guest mouse pointer shape has
5034 changed. The new shape data is given.
5035 </desc>
5036 <param name="visible" type="boolean" dir="in">
5037 <desc>
5038 Flag whether the pointer is visible.
5039 </desc>
5040 </param>
5041 <param name="alpha" type="boolean" dir="in">
5042 <desc>
5043 Flag whether the pointer has an alpha channel.
5044 </desc>
5045 </param>
5046 <param name="xHot" type="unsigned long" dir="in">
5047 <desc>
5048 The pointer hot spot x coordinate.
5049 </desc>
5050 </param>
5051 <param name="yHot" type="unsigned long" dir="in">
5052 <desc>
5053 The pointer hot spot y coordinate.
5054 </desc>
5055 </param>
5056 <param name="width" type="unsigned long" dir="in">
5057 <desc>
5058 Width of the pointer shape in pixels.
5059 </desc>
5060 </param>
5061 <param name="height" type="unsigned long" dir="in">
5062 <desc>
5063 Height of the pointer shape in pixels.
5064 </desc>
5065 </param>
5066 <param name="shape" type="octet" mod="ptr" dir="in">
5067 <desc>
5068 Address of the shape buffer.
5069
5070 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5071 followed by a 32-bpp XOR (color) mask.
5072
5073 For pointers without alpha channel the XOR mask pixels are 32
5074 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5075 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5076
5077 An AND mask is used for pointers with alpha channel, so if the
5078 callback does not support alpha, the pointer could be
5079 displayed as a normal color pointer.
5080
5081 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5082 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5083 height</tt>. The padding bits at the end of each scanline are
5084 undefined.
5085
5086 The XOR mask follows the AND mask on the next 4-byte aligned
5087 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5088 Bytes in the gap between the AND and the XOR mask are undefined.
5089 The XOR mask scanlines have no gap between them and the size of
5090 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5091
5092 <note>
5093 If @a shape is 0, only the pointer visibility is changed.
5094 </note>
5095 </desc>
5096 </param>
5097 </method>
5098
5099 <method name="onMouseCapabilityChange">
5100 <desc>
5101 Notification when the mouse capabilities reported by the
5102 guest have changed. The new capabilities are passed.
5103 </desc>
5104 <param name="supportsAbsolute" type="boolean" dir="in"/>
5105 <param name="needsHostCursor" type="boolean" dir="in"/>
5106 </method>
5107
5108 <method name="onKeyboardLedsChange">
5109 <desc>
5110 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5111 to alter the state of the keyboard LEDs.
5112 </desc>
5113 <param name="numLock" type="boolean" dir="in"/>
5114 <param name="capsLock" type="boolean" dir="in"/>
5115 <param name="scrollLock" type="boolean" dir="in"/>
5116 </method>
5117
5118 <method name="onStateChange">
5119 <desc>
5120 Notification when the execution state of the machine has changed.
5121 The new state will be given.
5122 </desc>
5123 <param name="state" type="MachineState" dir="in"/>
5124 </method>
5125
5126 <method name="onAdditionsStateChange">
5127 <desc>
5128 Notification when a Guest Additions property changes.
5129 Interested callees should query IGuest attributes to
5130 find out what has changed.
5131 </desc>
5132 </method>
5133
5134 <method name="onDVDDriveChange">
5135 <desc>
5136 Notification when a property of the
5137 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5138 Interested callees should use IDVDDrive methods to find out what has
5139 changed.
5140 </desc>
5141 </method>
5142
5143 <method name="onFloppyDriveChange">
5144 <desc>
5145 Notification when a property of the
5146 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5147 Interested callees should use IFloppyDrive methods to find out what
5148 has changed.
5149 </desc>
5150 </method>
5151
5152 <method name="onNetworkAdapterChange">
5153 <desc>
5154 Notification when a property of one of the
5155 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5156 changes. Interested callees should use INetworkAdapter methods and
5157 attributes to find out what has changed.
5158 </desc>
5159 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5160 <desc>Network adapter that is subject to change.</desc>
5161 </param>
5162 </method>
5163
5164 <method name="onSerialPortChange">
5165 <desc>
5166 Notification when a property of one of the
5167 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5168 Interested callees should use ISerialPort methods and attributes
5169 to find out what has changed.
5170 </desc>
5171 <param name="serialPort" type="ISerialPort" dir="in">
5172 <desc>Serial port that is subject to change.</desc>
5173 </param>
5174 </method>
5175
5176 <method name="onParallelPortChange">
5177 <desc>
5178 Notification when a property of one of the
5179 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5180 changes. Interested callees should use ISerialPort methods and
5181 attributes to find out what has changed.
5182 </desc>
5183 <param name="parallelPort" type="IParallelPort" dir="in">
5184 <desc>Parallel port that is subject to change.</desc>
5185 </param>
5186 </method>
5187
5188 <method name="onVRDPServerChange">
5189 <desc>
5190 Notification when a property of the
5191 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5192 Interested callees should use IVRDPServer methods and attributes to
5193 find out what has changed.
5194 </desc>
5195 </method>
5196
5197 <method name="onUSBControllerChange">
5198 <desc>
5199 Notification when a property of the virtual
5200 <link to="IMachine::USBController">USB controller</link> changes.
5201 Interested callees should use IUSBController methods and attributes to
5202 find out what has changed.
5203 </desc>
5204 </method>
5205
5206 <method name="onUSBDeviceStateChange">
5207 <desc>
5208 Notification when a USB device is attached to or detached from
5209 the virtual USB controller.
5210
5211 This notification is sent as a result of the indirect
5212 request to attach the device because it matches one of the
5213 machine USB filters, or as a result of the direct request
5214 issued by <link to="IConsole::attachUSBDevice"/> or
5215 <link to="IConsole::detachUSBDevice"/>.
5216
5217 This notification is sent in case of both a succeeded and a
5218 failed request completion. When the request succeeds, the @a
5219 error parameter is @c null, and the given device has been
5220 already added to (when @a attached is @c true) or removed from
5221 (when @a attached is @c false) the collection represented by
5222 <link to="IConsole::USBDevices"/>. On failure, the collection
5223 doesn't change and the @a error parameter represents the error
5224 message describing the failure.
5225
5226 </desc>
5227 <param name="device" type="IUSBDevice" dir="in">
5228 <desc>Device that is subject to state change.</desc>
5229 </param>
5230 <param name="attached" type="boolean" dir="in">
5231 <desc>
5232 <tt>true</tt> if the device was attached
5233 and <tt>false</tt> otherwise.
5234 </desc>
5235 </param>
5236 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5237 <desc>
5238 <tt>null</tt> on success or an error message object on
5239 failure.
5240 </desc>
5241 </param>
5242 </method>
5243
5244 <method name="onSharedFolderChange">
5245 <desc>
5246 Notification when a shared folder is added or removed.
5247 The @a scope argument defines one of three scopes:
5248 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5249 (<link to="Scope_Global">Global</link>),
5250 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5251 the machine (<link to="Scope_Machine">Machine</link>) or <link
5252 to="IConsole::sharedFolders">transient shared folders</link> of the
5253 machine (<link to="Scope_Session">Session</link>). Interested callees
5254 should use query the corresponding collections to find out what has
5255 changed.
5256 </desc>
5257 <param name="scope" type="Scope" dir="in">
5258 <desc>Scope of the notification.</desc>
5259 </param>
5260 </method>
5261
5262 <method name="onRuntimeError">
5263 <desc>
5264 Notification when an error happens during the virtual
5265 machine execution.
5266
5267 There are three kinds of runtime errors:
5268 <ul>
5269 <li><i>fatal</i></li>
5270 <li><i>non-fatal with retry</i></li>
5271 <li><i>non-fatal warnings</i></li>
5272 </ul>
5273
5274 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5275 to <tt>true</tt>. In case of fatal errors, the virtual machine
5276 execution is always paused before calling this notification, and
5277 the notification handler is supposed either to immediately save
5278 the virtual machine state using <link to="IConsole::saveState"/>
5279 or power it off using <link to="IConsole::powerDown"/>.
5280 Resuming the execution can lead to unpredictable results.
5281
5282 <b>Non-fatal</b> errors and warnings are indicated by the
5283 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5284 is in the Paused state by the time the error notification is
5285 received, it means that the user can <i>try to resume</i> the machine
5286 execution after attempting to solve the problem that caused the
5287 error. In this case, the notification handler is supposed
5288 to show an appropriate message to the user (depending on the
5289 value of the @a id parameter) that offers several actions such
5290 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5291 wants to retry, the notification handler should continue
5292 the machine execution using the <link to="IConsole::resume"/>
5293 call. If the machine execution is not Paused during this
5294 notification, then it means this notification is a <i>warning</i>
5295 (for example, about a fatal condition that can happen very soon);
5296 no immediate action is required from the user, the machine
5297 continues its normal execution.
5298
5299 Note that in either case the notification handler
5300 <b>must not</b> perform any action directly on a thread
5301 where this notification is called. Everything it is allowed to
5302 do is to post a message to another thread that will then talk
5303 to the user and take the corresponding action.
5304
5305 Currently, the following error identifiers are known:
5306 <ul>
5307 <li><tt>"HostMemoryLow"</tt></li>
5308 <li><tt>"HostAudioNotResponding"</tt></li>
5309 <li><tt>"VDIStorageFull"</tt></li>
5310 </ul>
5311
5312 <note>
5313 This notification is not designed to be implemented by
5314 more than one callback at a time. If you have multiple
5315 IConsoleCallback instances registered on the given
5316 IConsole object, make sure you simply do nothing but
5317 return @c S_OK from all but one of them that does actual
5318 user notification and performs necessary actions.
5319 </note>
5320
5321 </desc>
5322 <param name="fatal" type="boolean" dir="in">
5323 <desc>Whether the error is fatal or not</desc>
5324 </param>
5325 <param name="id" type="wstring" dir="in">
5326 <desc>Error identifier</desc>
5327 </param>
5328 <param name="message" type="wstring" dir="in">
5329 <desc>Optional error message</desc>
5330 </param>
5331 </method>
5332
5333 <method name="onCanShowWindow">
5334 <desc>
5335 Notification when a call to
5336 <link to="IMachine::canShowConsoleWindow"/> is made by a
5337 front-end to check if a subsequent call to
5338 <link to="IMachine::showConsoleWindow"/> can succeed.
5339
5340 The callee should give an answer appropriate to the current
5341 machine state in the @a canShow argument. This answer must
5342 remain valid at least until the next
5343 <link to="IConsole::state">machine state</link> change.
5344
5345 <note>
5346 This notification is not designed to be implemented by
5347 more than one callback at a time. If you have multiple
5348 IConsoleCallback instances registered on the given
5349 IConsole object, make sure you simply do nothing but
5350 return @c true and @c S_OK from all but one of them that
5351 actually manages console window activation.
5352 </note>
5353 </desc>
5354 <param name="canShow" type="boolean" dir="return">
5355 <desc>
5356 @c true if the console window can be shown and @c
5357 false otherwise.
5358 </desc>
5359 </param>
5360 </method>
5361
5362 <method name="onShowWindow">
5363 <desc>
5364 Notification when a call to
5365 <link to="IMachine::showConsoleWindow"/>
5366 requests the console window to be activated and brought to
5367 foreground on the desktop of the host PC.
5368
5369 This notification should cause the VM console process to
5370 perform the requested action as described above. If it is
5371 impossible to do it at a time of this notification, this
5372 method should return a failure.
5373
5374 Note that many modern window managers on many platforms
5375 implement some sort of focus stealing prevention logic, so
5376 that it may be impossible to activate a window without the
5377 help of the currently active application (which is supposedly
5378 an initiator of this notification). In this case, this method
5379 must return a non-zero identifier that represents the
5380 top-level window of the VM console process. The caller, if it
5381 represents a currently active process, is responsible to use
5382 this identifier (in a platform-dependent manner) to perform
5383 actual window activation.
5384
5385 This method must set @a winId to zero if it has performed all
5386 actions necessary to complete the request and the console
5387 window is now active and in foreground, to indicate that no
5388 further action is required on the caller's side.
5389
5390 <note>
5391 This notification is not designed to be implemented by
5392 more than one callback at a time. If you have multiple
5393 IConsoleCallback instances registered on the given
5394 IConsole object, make sure you simply do nothing but
5395 return @c S_OK from all but one of them that actually
5396 manages console window activation.
5397 </note>
5398 </desc>
5399 <param name="winId" type="unsigned long long" dir="return">
5400 <desc>
5401 Platform-dependent identifier of the top-level VM console
5402 window, or zero if this method has performed all actions
5403 necessary to implement the <i>show window</i> semantics for
5404 the given platform and/or this VirtualBox front-end.
5405 </desc>
5406 </param>
5407 </method>
5408
5409 </interface>
5410
5411 <interface
5412 name="IRemoteDisplayInfo" extends="$unknown"
5413 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5414 wsmap="struct"
5415 >
5416 <desc>
5417 Contains information about the remote display (VRDP) capabilities and status.
5418 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5419 </desc>
5420
5421 <attribute name="active" type="boolean" readonly="yes">
5422 <desc>
5423 Whether the remote display connection is active.
5424 </desc>
5425 </attribute>
5426
5427 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5428 <desc>
5429 How many times a client connected.
5430 </desc>
5431 </attribute>
5432
5433 <attribute name="beginTime" type="long long" readonly="yes">
5434 <desc>
5435 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5436 </desc>
5437 </attribute>
5438
5439 <attribute name="endTime" type="long long" readonly="yes">
5440 <desc>
5441 When the last connection was terminated or the current time, if
5442 connection is still active, in milliseconds since 1970-01-01 UTC.
5443 </desc>
5444 </attribute>
5445
5446 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5447 <desc>
5448 How many bytes were sent in last or current, if still active, connection.
5449 </desc>
5450 </attribute>
5451
5452 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5453 <desc>
5454 How many bytes were sent in all connections.
5455 </desc>
5456 </attribute>
5457
5458 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5459 <desc>
5460 How many bytes were received in last or current, if still active, connection.
5461 </desc>
5462 </attribute>
5463
5464 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5465 <desc>
5466 How many bytes were received in all connections.
5467 </desc>
5468 </attribute>
5469
5470 <attribute name="user" type="wstring" readonly="yes">
5471 <desc>
5472 Login user name supplied by the client.
5473 </desc>
5474 </attribute>
5475
5476 <attribute name="domain" type="wstring" readonly="yes">
5477 <desc>
5478 Login domain name supplied by the client.
5479 </desc>
5480 </attribute>
5481
5482 <attribute name="clientName" type="wstring" readonly="yes">
5483 <desc>
5484 The client name supplied by the client.
5485 </desc>
5486 </attribute>
5487
5488 <attribute name="clientIP" type="wstring" readonly="yes">
5489 <desc>
5490 The IP address of the client.
5491 </desc>
5492 </attribute>
5493
5494 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5495 <desc>
5496 The client software version number.
5497 </desc>
5498 </attribute>
5499
5500 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5501 <desc>
5502 Public key exchange method used when connection was established.
5503 Values: 0 - RDP4 public key exchange scheme.
5504 1 - X509 certificates were sent to client.
5505 </desc>
5506 </attribute>
5507
5508 </interface>
5509
5510 <interface
5511 name="IConsole" extends="$unknown"
5512 uuid="e3c6d4a1-a935-47ca-b16d-f9e9c496e53e"
5513 wsmap="managed"
5514 >
5515 <desc>
5516 The IConsole interface represents an interface to control virtual
5517 machine execution.
5518
5519 The console object that implements the IConsole interface is obtained
5520 from a session object after the session for the given machine has been
5521 opened using one of <link to="IVirtualBox::openSession"/>,
5522 <link to="IVirtualBox::openRemoteSession"/> or
5523 <link to="IVirtualBox::openExistingSession"/> methods.
5524
5525 Methods of the IConsole interface allow the caller to query the current
5526 virtual machine execution state, pause the machine or power it down, save
5527 the machine state or take a snapshot, attach and detach removable media
5528 and so on.
5529
5530 <see>ISession</see>
5531 </desc>
5532
5533 <attribute name="machine" type="IMachine" readonly="yes">
5534 <desc>
5535 Machine object this console is sessioned with.
5536 <note>
5537 This is a convenience property, it has the same value as
5538 <link to="ISession::machine"/> of the corresponding session
5539 object.
5540 </note>
5541 </desc>
5542 </attribute>
5543
5544 <attribute name="state" type="MachineState" readonly="yes">
5545 <desc>
5546 Current execution state of the machine.
5547 <note>
5548 This property always returns the same value as the corresponding
5549 property of the IMachine object this console is sessioned with.
5550 For the process that owns (executes) the VM, this is the
5551 preferable way of querying the VM state, because no IPC
5552 calls are made.
5553 </note>
5554 </desc>
5555 </attribute>
5556
5557 <attribute name="guest" type="IGuest" readonly="yes">
5558 <desc>Guest object.</desc>
5559 </attribute>
5560
5561 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5562 <desc>
5563 Virtual keyboard object.
5564 <note>
5565 If the machine is not running, any attempt to use
5566 the returned object will result in an error.
5567 </note>
5568 </desc>
5569 </attribute>
5570
5571 <attribute name="mouse" type="IMouse" readonly="yes">
5572 <desc>
5573 Virtual mouse object.
5574 <note>
5575 If the machine is not running, any attempt to use
5576 the returned object will result in an error.
5577 </note>
5578 </desc>
5579 </attribute>
5580
5581 <attribute name="display" type="IDisplay" readonly="yes">
5582 <desc>Virtual display object.
5583 <note>
5584 If the machine is not running, any attempt to use
5585 the returned object will result in an error.
5586 </note>
5587 </desc>
5588 </attribute>
5589
5590 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5591 <desc>Debugging interface.</desc>
5592 </attribute>
5593
5594 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
5595 <desc>
5596 Collection of USB devices currently attached to the virtual
5597 USB controller.
5598 <note>
5599 The collection is empty if the machine is not running.
5600 </note>
5601 </desc>
5602 </attribute>
5603
5604 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5605 <desc>
5606 List of USB devices currently attached to the remote VRDP client.
5607 Once a new device is physically attached to the remote host computer,
5608 it appears in this list and remains there until detached.
5609 </desc>
5610 </attribute>
5611
5612 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
5613 <desc>
5614 Collection of shared folders for the current session. These folders
5615 are called transient shared folders because they are available to the
5616 guest OS running inside the associated virtual machine only for the
5617 duration of the session (as opposed to
5618 <link to="IMachine::sharedFolders"/> which represent permanent shared
5619 folders). When the session is closed (e.g. the machine is powered down),
5620 these folders are automatically discarded.
5621
5622 New shared folders are added to the collection using
5623 <link to="#createSharedFolder"/>. Existing shared folders can be
5624 removed using <link to="#removeSharedFolder"/>.
5625 </desc>
5626 </attribute>
5627
5628 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5629 <desc>
5630 Interface that provides information on Remote Display (VRDP) connection.
5631 </desc>
5632 </attribute>
5633
5634 <method name="powerUp">
5635 <desc>
5636 Starts the virtual machine execution using the current machine
5637 state (that is, its current execution state, current settings and
5638 current hard disks).
5639
5640 If the machine is powered off or aborted, the execution will
5641 start from the beginning (as if the real hardware were just
5642 powered on).
5643
5644 If the machine is in the <link to="MachineState_Saved"/> state,
5645 it will continue its execution the point where the state has
5646 been saved.
5647
5648 <note>
5649 Unless you are trying to write a new VirtualBox front-end that
5650 performs direct machine execution (like the VirtualBox or VBoxSDL
5651 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5652 session opened by <link to="IVirtualBox::openSession"/> and use this
5653 session only to change virtual machine settings. If you simply want to
5654 start virtual machine execution using one of the existing front-ends
5655 (for example the VirtualBox GUI or headless server), simply use
5656 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5657 power up the machine automatically for you.
5658 </note>
5659
5660 <see>#saveState</see>
5661 <result name="VBOX_E_INVALID_VM_STATE">
5662 Virtual machine already running.
5663 </result>
5664 <result name="VBOX_E_HOST_ERROR">
5665 Host interface does not exist or name not set.
5666 </result>
5667 <result name="VBOX_E_FILE_ERROR">
5668 Invalid saved state file.
5669 </result>
5670 </desc>
5671 <param name="progress" type="IProgress" dir="return">
5672 <desc>Progress object to track the operation completion.</desc>
5673 </param>
5674 </method>
5675
5676 <method name="powerUpPaused">
5677 <desc>
5678 Identical to powerUp except that the VM will enter the
5679 <link to="MachineState_Paused"/> state, instead of
5680 <link to="MachineState_Running"/>.
5681
5682 <see>#powerUp</see>
5683 <result name="VBOX_E_INVALID_VM_STATE">
5684 Virtual machine already running.
5685 </result>
5686 <result name="VBOX_E_HOST_ERROR">
5687 Host interface does not exist or name not set.
5688 </result>
5689 <result name="VBOX_E_FILE_ERROR">
5690 Invalid saved state file.
5691 </result>
5692 </desc>
5693 <param name="progress" type="IProgress" dir="return">
5694 <desc>Progress object to track the operation completion.</desc>
5695 </param>
5696 </method>
5697
5698 <method name="powerDown">
5699 <desc>
5700 Stops the virtual machine execution.
5701 After this operation completes, the machine will go to the
5702 PoweredOff state.
5703
5704 @deprecated This method will be removed in VirtualBox 2.1 where the
5705 powerDownAsync() method will take its name. Do not use this method in
5706 the code.
5707 <result name="VBOX_E_INVALID_VM_STATE">
5708 Virtual machine must be Running, Paused or Stuck to be powered down.
5709 </result>
5710 <result name="VBOX_E_VM_ERROR">
5711 Unable to power off or destroy virtual machine.
5712 </result>
5713 </desc>
5714 </method>
5715
5716 <method name="powerDownAsync">
5717 <desc>
5718 Initiates the power down procedure to stop the virtual machine
5719 execution.
5720
5721 The completion of the power down procedure is tracked using the returned
5722 IProgress object. After the operation is complete, the machine will go
5723 to the PoweredOff state.
5724
5725 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5726 where the original powerDown() method will be removed. You will need to
5727 rename "powerDownAsync" to "powerDown" in your sources to make them
5728 build with version 2.1.
5729 <result name="VBOX_E_INVALID_VM_STATE">
5730 Virtual machine must be Running, Paused or Stuck to be powered down.
5731 </result>
5732 </desc>
5733 <param name="progress" type="IProgress" dir="return">
5734 <desc>Progress object to track the operation completion.</desc>
5735 </param>
5736 </method>
5737
5738 <method name="reset">
5739 <desc>Resets the virtual machine.
5740 <result name="VBOX_E_INVALID_VM_STATE">
5741 Virtual machine not in Running state.
5742 </result>
5743 <result name="VBOX_E_VM_ERROR">
5744 Virtual machine error in reset operation.
5745 </result>
5746 </desc>
5747 </method>
5748
5749 <method name="pause">
5750 <desc>Pauses the virtual machine execution.
5751 <result name="VBOX_E_INVALID_VM_STATE">
5752 Virtual machine not in Running state.
5753 </result>
5754 <result name="VBOX_E_VM_ERROR">
5755 Virtual machine error in suspend operation.
5756 </result>
5757 </desc>
5758 </method>
5759
5760 <method name="resume">
5761 <desc>Resumes the virtual machine execution.
5762 <result name="VBOX_E_INVALID_VM_STATE">
5763 Virtual machine not in Paused state.
5764 </result>
5765 <result name="VBOX_E_VM_ERROR">
5766 Virtual machine error in resume operation.
5767 </result>
5768 </desc>
5769 </method>
5770
5771 <method name="powerButton">
5772 <desc>Sends the ACPI power button event to the guest.
5773 <result name="VBOX_E_INVALID_VM_STATE">
5774 Virtual machine not in Running state.
5775 </result>
5776 <result name="VBOX_E_PDM_ERROR">
5777 Controlled power off failed.
5778 </result>
5779 </desc>
5780 </method>
5781
5782 <method name="sleepButton">
5783 <desc>Sends the ACPI sleep button event to the guest.
5784 <result name="VBOX_E_INVALID_VM_STATE">
5785 Virtual machine not in Running state.
5786 </result>
5787 <result name="VBOX_E_PDM_ERROR">
5788 Sending sleep button event failed.
5789 </result>
5790 </desc>
5791 </method>
5792
5793 <method name="getPowerButtonHandled">
5794 <desc>Checks if the last power button event was handled by guest.
5795 <result name="VBOX_E_PDM_ERROR">
5796 Checking if the event was handled by the guest OS failed.
5797 </result>
5798 </desc>
5799 <param name="handled" type="boolean" dir="return"/>
5800 </method>
5801
5802 <method name="getGuestEnteredACPIMode">
5803 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5804 G1 (sleeping). If this method returns false, the guest will
5805 most likely not respond to external ACPI events.
5806 <result name="VBOX_E_INVALID_VM_STATE">
5807 Virtual machine not in Running state.
5808 </result>
5809 </desc>
5810 <param name="entered" type="boolean" dir="return"/>
5811 </method>
5812
5813 <method name="saveState">
5814 <desc>
5815 Saves the current execution state of a running virtual machine
5816 and stops its execution.
5817
5818 After this operation completes, the machine will go to the
5819 Saved state. Next time it is powered up, this state will
5820 be restored and the machine will continue its execution from
5821 the place where it was saved.
5822
5823 This operation differs from taking a snapshot to the effect
5824 that it doesn't create new differencing hard disks. Also, once
5825 the machine is powered up from the state saved using this method,
5826 the saved state is deleted, so it will be impossible to return
5827 to this state later.
5828
5829 <note>
5830 On success, this method implicitly calls
5831 <link to="IMachine::saveSettings"/> to save all current machine
5832 settings (including runtime changes to the DVD drive, etc.).
5833 Together with the impossibility to change any VM settings when it is
5834 in the Saved state, this guarantees adequate hardware
5835 configuration of the machine when it is restored from the saved
5836 state file.
5837 </note>
5838
5839 <note>
5840 The machine must be in the Running or Paused state, otherwise
5841 the operation will fail.
5842 </note>
5843 <result name="VBOX_E_INVALID_VM_STATE">
5844 Virtual machine state neither Running nor Paused.
5845 </result>
5846 <result name="VBOX_E_FILE_ERROR">
5847 Failed to create directory for saved state file.
5848 </result>
5849
5850 <see><link to="#takeSnapshot"/></see>
5851 </desc>
5852 <param name="progress" type="IProgress" dir="return">
5853 <desc>Progress object to track the operation completion.</desc>
5854 </param>
5855 </method>
5856
5857 <method name="adoptSavedState">
5858 <desc>
5859 Associates the given saved state file to the virtual machine.
5860
5861 On success, the machine will go to the Saved state. Next time it is
5862 powered up, it will be restored from the adopted saved state and
5863 continue execution from the place where the saved state file was
5864 created.
5865
5866 The specified saved state file path may be absolute or relative to the
5867 folder the VM normally saves the state to (usually,
5868 <link to="IMachine::snapshotFolder"/>).
5869
5870 <note>
5871 It's a caller's responsibility to make sure the given saved state
5872 file is compatible with the settings of this virtual machine that
5873 represent its virtual hardware (memory size, hard disk configuration
5874 etc.). If there is a mismatch, the behavior of the virtual machine
5875 is undefined.
5876 </note>
5877 <result name="VBOX_E_INVALID_VM_STATE">
5878 Virtual machine state neither PoweredOff nor Aborted.
5879 </result>
5880 </desc>
5881 <param name="savedStateFile" type="wstring" dir="in">
5882 <desc>Path to the saved state file to adopt.</desc>
5883 </param>
5884 </method>
5885
5886 <method name="discardSavedState">
5887 <desc>
5888 Discards (deletes) the saved state of the virtual machine
5889 previously created by <link to="#saveState"/>. Next time the
5890 machine is powered up, a clean boot will occur.
5891 <note>
5892 This operation is equivalent to resetting or powering off
5893 the machine without doing a proper shutdown in the guest OS.
5894 </note>
5895 <result name="VBOX_E_INVALID_VM_STATE">
5896 Virtual machine not in state Saved.
5897 </result>
5898 </desc>
5899 </method>
5900
5901 <method name="getDeviceActivity">
5902 <desc>
5903 Gets the current activity type of a given device or device group.
5904 <result name="E_INVALIDARG">
5905 Invalid device type.
5906 </result>
5907 </desc>
5908 <param name="type" type="DeviceType" dir="in"/>
5909 <param name="activity" type="DeviceActivity" dir="return"/>
5910 </method>
5911
5912 <method name="attachUSBDevice">
5913 <desc>
5914 Attaches a host USB device with the given UUID to the
5915 USB controller of the virtual machine.
5916
5917 The device needs to be in one of the following states:
5918 <link to="USBDeviceState_Busy"/>,
5919 <link to="USBDeviceState_Available"/> or
5920 <link to="USBDeviceState_Held"/>,
5921 otherwise an error is immediately returned.
5922
5923 When the device state is
5924 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5925 be returned if the host computer refuses to release it for some reason.
5926
5927 <see>IUSBController::deviceFilters, USBDeviceState</see>
5928 <result name="VBOX_E_INVALID_VM_STATE">
5929 Virtual machine state neither Running nor Paused.
5930 </result>
5931 <result name="VBOX_E_PDM_ERROR">
5932 Virtual machine does not have a USB controller.
5933 </result>
5934 </desc>
5935 <param name="id" type="uuid" dir="in">
5936 <desc>UUID of the host USB device to attach.</desc>
5937 </param>
5938 </method>
5939
5940 <method name="detachUSBDevice">
5941 <desc>
5942 Detaches an USB device with the given UUID from the USB controller
5943 of the virtual machine.
5944
5945 After this method succeeds, the VirtualBox server re-initiates
5946 all USB filters as if the device were just physically attached
5947 to the host, but filters of this machine are ignored to avoid
5948 a possible automatic re-attachment.
5949
5950 <see>IUSBController::deviceFilters, USBDeviceState</see>
5951
5952 <result name="VBOX_E_PDM_ERROR">
5953 Virtual machine does not have a USB controller.
5954 </result>
5955 <result name="E_INVALIDARG">
5956 USB device not attached to this virtual machine.
5957 </result>
5958 </desc>
5959 <param name="id" type="uuid" dir="in">
5960 <desc>UUID of the USB device to detach.</desc>
5961 </param>
5962 <param name="device" type="IUSBDevice" dir="return">
5963 <desc>Detached USB device.</desc>
5964 </param>
5965 </method>
5966
5967 <method name="createSharedFolder">
5968 <desc>
5969 Creates a transient new shared folder by associating the given logical
5970 name with the given host path, adds it to the collection of shared
5971 folders and starts sharing it. Refer to the description of
5972 <link to="ISharedFolder"/> to read more about logical names.
5973
5974 <result name="VBOX_E_INVALID_VM_STATE">
5975 Virtual machine in Saved state or currently changing state.
5976 </result>
5977 <result name="VBOX_E_FILE_ERROR">
5978 Shared folder already exists or not accessible.
5979 </result>
5980 </desc>
5981 <param name="name" type="wstring" dir="in">
5982 <desc>Unique logical name of the shared folder.</desc>
5983 </param>
5984 <param name="hostPath" type="wstring" dir="in">
5985 <desc>Full path to the shared folder in the host file system.</desc>
5986 </param>
5987 <param name="writable" type="boolean" dir="in">
5988 <desc>Whether the share is writable or readonly</desc>
5989 </param>
5990 </method>
5991
5992 <method name="removeSharedFolder">
5993 <desc>
5994 Removes a transient shared folder with the given name previously
5995 created by <link to="#createSharedFolder"/> from the collection of
5996 shared folders and stops sharing it.
5997 <result name="VBOX_E_INVALID_VM_STATE">
5998 Virtual machine in Saved state or currently changing state.
5999 </result>
6000 <result name="VBOX_E_FILE_ERROR">
6001 Shared folder does not exists.
6002 </result>
6003 </desc>
6004 <param name="name" type="wstring" dir="in">
6005 <desc>Logical name of the shared folder to remove.</desc>
6006 </param>
6007 </method>
6008
6009 <method name="takeSnapshot">
6010 <desc>
6011 Saves the current execution state and all settings of the
6012 machine and creates differencing images for all
6013 normal (non-independent) hard disks.
6014
6015 This method can be called for a PoweredOff, Saved, Running or
6016 Paused virtual machine. When the machine is PoweredOff, an
6017 offline <link to="ISnapshot">snapshot</link> is created,
6018 in all other cases -- an online snapshot.
6019
6020 The taken snapshot is always based on the
6021 <link to="IMachine::currentSnapshot">current
6022 snapshot</link> of the associated virtual machine and becomes
6023 a new current snapshot.
6024
6025 <note>
6026 This method implicitly calls <link to="IMachine::saveSettings"/> to
6027 save all current machine settings before taking an offline snapshot.
6028 </note>
6029
6030 <see>ISnapshot, <link to="#saveState"/></see>
6031 <result name="VBOX_E_INVALID_VM_STATE">
6032 Virtual machine currently changing state.
6033 </result>
6034 </desc>
6035 <param name="name" type="wstring" dir="in">
6036 <desc>Short name for the snapshot.</desc>
6037 </param>
6038 <param name="description" type="wstring" dir="in">
6039 <desc>Optional description of the snapshot.</desc>
6040 </param>
6041 <param name="progress" type="IProgress" dir="return">
6042 <desc>Progress object to track the operation completion.</desc>
6043 </param>
6044 </method>
6045
6046 <method name="discardSnapshot">
6047 <desc>
6048
6049 Starts discarding the specified snapshot. The execution state
6050 and settings of the associated machine stored in the snapshot
6051 will be deleted. The contents of all differencing hard disks of
6052 this snapshot will be merged with the contents of their
6053 dependent child hard disks to keep the, disks valid (in other
6054 words, all changes represented by hard disks being discarded
6055 will be propagated to their child hard disks). After that, this
6056 snapshot's differencing hard disks will be deleted. The parent
6057 of this snapshot will become a new parent for all its child
6058 snapshots.
6059
6060 If the discarded snapshot is the current one, its parent
6061 snapshot will become a new current snapshot. The current machine
6062 state is not directly affected in this case, except that
6063 currently attached differencing hard disks based on hard disks
6064 of the discarded snapshot will be also merged as described
6065 above.
6066
6067 If the discarded snapshot is the first one (the root snapshot)
6068 and it has exactly one child snapshot, this child snapshot will
6069 become the first snapshot after discarding. If there are no
6070 children at all (i.e. the first snapshot is the only snapshot of
6071 the machine), both the current and the first snapshot of the
6072 machine will be set to null. In all other cases, the first
6073 snapshot cannot be discarded.
6074
6075 You cannot discard the snapshot if it
6076 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6077 hard disks that have differencing hard disks based on them. Snapshots of
6078 such kind can be discarded only when every normal hard disk has either
6079 no children at all or exactly one child. In the former case, the normal
6080 hard disk simply becomes unused (i.e. not attached to any VM). In the
6081 latter case, it receives all the changes stored in the child hard disk,
6082 and then it replaces the child hard disk in the configuration of the
6083 corresponding snapshot or machine.
6084
6085 Also, you cannot discard the snapshot if it stores hard disks
6086 (of any type) having differencing child hard disks that belong
6087 to other machines. Such snapshots can be only discarded after
6088 you discard all snapshots of other machines containing "foreign"
6089 child disks, or detach these "foreign" child disks from machines
6090 they are attached to.
6091
6092 One particular example of the snapshot storing normal hard disks
6093 is the first snapshot of a virtual machine that had normal hard
6094 disks attached when taking the snapshot. Be careful when
6095 discarding such snapshots because this implicitly commits
6096 changes (made since the snapshot being discarded has been taken)
6097 to normal hard disks (as described above), which may be not what
6098 you want.
6099
6100 The virtual machine is put to
6101 the <link to="MachineState_Discarding">Discarding</link> state until
6102 the discard operation is completed.
6103
6104 <note>
6105 The machine must not be running, otherwise the operation
6106 will fail.
6107 </note>
6108
6109 <note>
6110 Child hard disks of all normal hard disks of the discarded snapshot
6111 must be accessible (see <link to="IMedium::state"/>) for this
6112 operation to succeed. In particular, this means that all virtual
6113 machines, whose hard disks are directly or indirectly based on the
6114 hard disks of discarded snapshot, must be powered off.
6115 </note>
6116 <note>
6117 Merging hard disk contents can be very time and disk space
6118 consuming, if these disks are big in size and have many
6119 children. However, if the snapshot being discarded is the last
6120 (head) snapshot on the branch, the operation will be rather
6121 quick.
6122 </note>
6123 <note>
6124 Note that discarding the current snapshot
6125 will implicitly call <link to="IMachine::saveSettings"/> to
6126 make all current machine settings permanent.
6127 </note>
6128 <result name="VBOX_E_INVALID_VM_STATE">
6129 Virtual machine is running.
6130 </result>
6131 </desc>
6132 <param name="id" type="uuid" dir="in">
6133 <desc>UUID of the snapshot to discard.</desc>
6134 </param>
6135 <param name="progress" type="IProgress" dir="return">
6136 <desc>Progress object to track the operation completion.</desc>
6137 </param>
6138 </method>
6139
6140 <method name="discardCurrentState">
6141 <desc>
6142 This operation is similar to <link to="#discardSnapshot"/> but
6143 affects the current machine state. This means that the state stored in
6144 the current snapshot will become a new current state, and all current
6145 settings of the machine and changes stored in differencing hard disks
6146 will be lost.
6147
6148 After this operation is successfully completed, new empty differencing
6149 hard disks are created for all normal hard disks of the machine.
6150
6151 If the current snapshot of the machine is an online snapshot, the
6152 machine will go to the <link to="MachineState_Saved"> saved
6153 state</link>, so that the next time it is powered on, the execution
6154 state will be restored from the current snapshot.
6155
6156 <note>
6157 The machine must not be running, otherwise the operation will fail.
6158 </note>
6159
6160 <note>
6161 If the machine state is <link to="MachineState_Saved">Saved</link>
6162 prior to this operation, the saved state file will be implicitly
6163 discarded (as if <link to="IConsole::discardSavedState"/> were
6164 called).
6165 </note>
6166
6167 <result name="VBOX_E_INVALID_VM_STATE">
6168 Virtual machine is running.
6169 </result>
6170 </desc>
6171 <param name="progress" type="IProgress" dir="return">
6172 <desc>Progress object to track the operation completion.</desc>
6173 </param>
6174 </method>
6175
6176 <method name="discardCurrentSnapshotAndState">
6177 <desc>
6178
6179 This method is equivalent to
6180 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6181 (currentSnapshot.id(), progress) followed by
6182 <link to="#discardCurrentState"/>.
6183
6184 As a result, the machine will be fully restored from the
6185 snapshot preceding the current snapshot, while both the current
6186 snapshot and the current machine state will be discarded.
6187
6188 If the current snapshot is the first snapshot of the machine (i.e. it
6189 has the only snapshot), the current machine state will be
6190 discarded <b>before</b> discarding the snapshot. In other words, the
6191 machine will be restored from its last snapshot, before discarding
6192 it. This differs from performing a single
6193 <link to="#discardSnapshot"/> call (note that no
6194 <link to="#discardCurrentState"/> will be possible after it)
6195 to the effect that the latter will preserve the current state instead of
6196 discarding it.
6197
6198 Unless explicitly mentioned otherwise, all remarks and
6199 limitations of the above two methods also apply to this method.
6200
6201 <note>
6202 The machine must not be running, otherwise the operation
6203 will fail.
6204 </note>
6205
6206 <note>
6207 If the machine state is <link to="MachineState_Saved">Saved</link>
6208 prior to this operation, the saved state file will be implicitly
6209 discarded (as if <link to="#discardSavedState"/> were
6210 called).
6211 </note>
6212
6213 <note>
6214 This method is more efficient than calling both of the above
6215 methods separately: it requires less IPC calls and provides
6216 a single progress object.
6217 </note>
6218
6219 <result name="VBOX_E_INVALID_VM_STATE">
6220 Virtual machine is running.
6221 </result>
6222 </desc>
6223 <param name="progress" type="IProgress" dir="return">
6224 <desc>Progress object to track the operation completion.</desc>
6225 </param>
6226 </method>
6227
6228 <method name="registerCallback">
6229 <desc>
6230 Registers a new console callback on this instance. The methods of the
6231 callback interface will be called by this instance when the appropriate
6232 event occurs.
6233 </desc>
6234 <param name="callback" type="IConsoleCallback" dir="in"/>
6235 </method>
6236
6237 <method name="unregisterCallback">
6238 <desc>
6239 Unregisters the console callback previously registered using
6240 <link to="#registerCallback"/>.
6241 <result name="E_INVALIDARG">
6242 Given @a callback handler is not registered.
6243 </result>
6244 </desc>
6245 <param name="callback" type="IConsoleCallback" dir="in"/>
6246 </method>
6247 </interface>
6248
6249 <!--
6250 // IHost
6251 /////////////////////////////////////////////////////////////////////////
6252 -->
6253
6254 <interface
6255 name="IHostDVDDrive" extends="$unknown"
6256 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6257 wsmap="managed"
6258 >
6259 <desc>
6260 The IHostDVDDrive interface represents the physical CD/DVD drive
6261 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6262 </desc>
6263
6264 <attribute name="name" type="wstring" readonly="yes">
6265 <desc>
6266 Returns the platform-specific device identifier.
6267 On DOS-like platforms, it is a drive name (e.g. R:).
6268 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6269 </desc>
6270 </attribute>
6271 <attribute name="description" type="wstring" readonly="yes">
6272 <desc>
6273 Returns a human readable description for the drive. This
6274 description usually contains the product and vendor name. A
6275 @c null string is returned if the description is not available.
6276 </desc>
6277 </attribute>
6278 <attribute name="udi" type="wstring" readonly="yes">
6279 <desc>
6280 Returns the unique device identifier for the drive. This
6281 attribute is reserved for future use instead of
6282 <link to="#name"/>. Currently it is not used and may return
6283 @c null on some platforms.
6284 </desc>
6285 </attribute>
6286
6287 </interface>
6288
6289 <enumerator
6290 name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
6291 uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
6292 />
6293
6294 <collection
6295 name="IHostDVDDriveCollection" type="IHostDVDDrive"
6296 enumerator="IHostDVDDriveEnumerator"
6297 uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
6298 readonly="yes"
6299 >
6300 <method name="findByName">
6301 <desc>
6302 Searches this collection for a host drive with the given name.
6303 <note>
6304 The method returns an error if the given name does not
6305 correspond to any host drive in the collection.
6306 </note>
6307 </desc>
6308 <param name="name" type="wstring" dir="in">
6309 <desc>Name of the host drive to search for</desc>
6310 </param>
6311 <param name="drive" type="IHostDVDDrive" dir="return">
6312 <desc>Found host drive object</desc>
6313 </param>
6314 </method>
6315 </collection>
6316
6317 <interface
6318 name="IHostFloppyDrive" extends="$unknown"
6319 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
6320 wsmap="managed"
6321 >
6322 <desc>
6323 The IHostFloppyDrive interface represents the physical floppy drive
6324 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6325 </desc>
6326 <attribute name="name" type="wstring" readonly="yes">
6327 <desc>
6328 Returns the platform-specific device identifier.
6329 On DOS-like platforms, it is a drive name (e.g. A:).
6330 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6331 </desc>
6332 </attribute>
6333 <attribute name="description" type="wstring" readonly="yes">
6334 <desc>
6335 Returns a human readable description for the drive. This
6336 description usually contains the product and vendor name. A
6337 @c null string is returned if the description is not available.
6338 </desc>
6339 </attribute>
6340 <attribute name="udi" type="wstring" readonly="yes">
6341 <desc>
6342 Returns the unique device identifier for the drive. This
6343 attribute is reserved for future use instead of
6344 <link to="#name"/>. Currently it is not used and may return
6345 @c null on some platforms.
6346 </desc>
6347 </attribute>
6348 </interface>
6349
6350 <enumerator
6351 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
6352 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
6353 />
6354
6355 <collection
6356 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
6357 enumerator="IHostFloppyDriveEnumerator"
6358 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
6359 readonly="yes"
6360 >
6361 <method name="findByName">
6362 <desc>
6363 Searches this collection for a host drive with the given name.
6364 <note>
6365 The method returns an error if the given name does not
6366 correspond to any host drive in the collection.
6367 </note>
6368 </desc>
6369 <param name="name" type="wstring" dir="in">
6370 <desc>Name of the host drive to search for</desc>
6371 </param>
6372 <param name="drive" type="IHostFloppyDrive" dir="return">
6373 <desc>Found host drive object</desc>
6374 </param>
6375 </method>
6376 </collection>
6377
6378 <enum
6379 name="HostNetworkInterfaceType"
6380 uuid="763754FA-3246-4539-9590-9E603EDBF706"
6381 >
6382 <desc>
6383 Type of encapsulation. Ethernet encapsulation includes both wired and
6384 wireless Ethernet connections.
6385 <see>IHostNetworkInterface</see>
6386 </desc>
6387
6388 <const name="Unknown" value="0">
6389 <desc>
6390 The type of interface cannot be determined.
6391 </desc>
6392 </const>
6393 <const name="Ethernet" value="1">
6394 <desc>
6395 Ethernet frame encapsulation.
6396 </desc>
6397 </const>
6398 <const name="PPP" value="2">
6399 <desc>
6400 Point-to-point protocol encapsulation.
6401 </desc>
6402 </const>
6403 <const name="SLIP" value="3">
6404 <desc>
6405 Serial line IP encapsulation.
6406 </desc>
6407 </const>
6408 </enum>
6409
6410 <enum
6411 name="HostNetworkInterfaceStatus"
6412 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6413 >
6414 <desc>
6415 Current status of the interface.
6416 <see>IHostNetworkInterface</see>
6417 </desc>
6418
6419 <const name="Unknown" value="0">
6420 <desc>
6421 The state of interface cannot be determined.
6422 </desc>
6423 </const>
6424 <const name="Up" value="1">
6425 <desc>
6426 The interface is fully operational.
6427 </desc>
6428 </const>
6429 <const name="Down" value="2">
6430 <desc>
6431 The interface is not functioning.
6432 </desc>
6433 </const>
6434 </enum>
6435
6436 <interface
6437 name="IHostNetworkInterface" extends="$unknown"
6438 uuid="832720ac-2df6-41d4-a867-a0b40df14c7f"
6439 wsmap="managed"
6440 >
6441 <desc>
6442 Reprents one of host's network interfaces. IP V6 address and network
6443 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6444 separated by colons.
6445 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6446 </desc>
6447 <attribute name="name" type="wstring" readonly="yes">
6448 <desc>Returns the host network interface name.</desc>
6449 </attribute>
6450
6451 <attribute name="id" type="uuid" readonly="yes">
6452 <desc>Returns the interface UUID.</desc>
6453 </attribute>
6454
6455 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6456 <desc>Returns the IP V4 address of the interface.</desc>
6457 </attribute>
6458
6459 <attribute name="networkMask" type="unsigned long" readonly="yes">
6460 <desc>Returns the network mask of the interface.</desc>
6461 </attribute>
6462
6463 <attribute name="IPV6Address" type="wstring" readonly="yes">
6464 <desc>Returns the IP V6 address of the interface.</desc>
6465 </attribute>
6466
6467 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6468 <desc>Returns the IP V6 network mask of the interface.</desc>
6469 </attribute>
6470
6471 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6472 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6473 </attribute>
6474
6475 <attribute name="type" type="HostNetworkInterfaceType" readonly="yes">
6476 <desc>Type of protocol encapsulation used.</desc>
6477 </attribute>
6478
6479 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6480 <desc>Status of the interface.</desc>
6481 </attribute>
6482 </interface>
6483
6484 <interface
6485 name="IHost" extends="$unknown"
6486 uuid="7c172c42-b209-4bdc-9ddf-a84f222bd59a"
6487 wsmap="managed"
6488 >
6489 <desc>
6490 The IHost interface represents the physical machine that this VirtualBox
6491 installation runs on.
6492
6493 An object implementing this interface is returned by the
6494 <link to="IVirtualBox::host" /> attribute. This interface contains
6495 read-only information about the host's physical hardware (such as what
6496 processors and disks are available, what the host operating system is,
6497 and so on) and also allows for manipulating some of the host's hardware,
6498 such as global USB device filters and host interface networking.
6499
6500 </desc>
6501 <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
6502 <desc>List of DVD drives available on the host.</desc>
6503 </attribute>
6504
6505 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
6506 <desc>List of floppy drives available on the host.</desc>
6507 </attribute>
6508
6509 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6510 <desc>
6511 List of USB devices currently attached to the host.
6512 Once a new device is physically attached to the host computer,
6513 it appears in this list and remains there until detached.
6514
6515 <note>
6516 This method may set a @ref com_warnings "warning result code".
6517 </note>
6518 <note>
6519 If USB functionality is not available in the given edition of
6520 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6521 </note>
6522 </desc>
6523 </attribute>
6524
6525 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
6526 <desc>
6527 List of USB device filters in action.
6528 When a new device is physically attached to the host computer,
6529 filters from this list are applied to it (in order they are stored
6530 in the list). The first matched filter will determine the
6531 <link to="IHostUSBDeviceFilter::action">action</link>
6532 performed on the device.
6533
6534 Unless the device is ignored by these filters, filters of all
6535 currently running virtual machines
6536 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6537
6538 <note>
6539 This method may set a @ref com_warnings "warning result code".
6540 </note>
6541 <note>
6542 If USB functionality is not available in the given edition of
6543 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6544 </note>
6545
6546 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6547 </desc>
6548 </attribute>
6549
6550 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6551 <desc>List of host network interfaces currently defined on the host.</desc>
6552 </attribute>
6553
6554 <attribute name="processorCount" type="unsigned long" readonly="yes">
6555 <desc>Number of (logical) CPUs installed in the host system.</desc>
6556 </attribute>
6557
6558 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6559 <desc>Number of (logical) CPUs online in the host system.</desc>
6560 </attribute>
6561
6562 <method name="getProcessorSpeed">
6563 <desc>Query the (approximate) maximum speed of a specified host CPU in
6564 Megahertz.
6565 </desc>
6566 <param name="cpuId" type="unsigned long" dir="in">
6567 <desc>
6568 Identifier of the CPU.
6569 </desc>
6570 </param>
6571 <param name="speed" type="unsigned long" dir="return">
6572 <desc>
6573 Speed value. 0 is returned if value is not known or @a cpuId is
6574 invalid.
6575 </desc>
6576 </param>
6577 </method>
6578
6579 <method name="getProcessorFeature">
6580 <desc>Query whether a CPU feature is supported or not.</desc>
6581 <param name="feature" type="ProcessorFeature" dir="in">
6582 <desc>
6583 CPU Feature identifier.
6584 </desc>
6585 </param>
6586 <param name="supported" type="boolean" dir="return">
6587 <desc>
6588 Feature is supported or not.
6589 </desc>
6590 </param>
6591 </method>
6592
6593 <method name="getProcessorDescription">
6594 <desc>Query the model string of a specified host CPU.
6595 <note>
6596 This function is not implemented in the current version of the
6597 product.
6598 </note>
6599 </desc>
6600 <param name="cpuId" type="unsigned long" dir="in">
6601 <desc>
6602 Identifier of the CPU.
6603 </desc>
6604 </param>
6605 <param name="description" type="wstring" dir="return">
6606 <desc>
6607 Model string. A NULL string is returned if value is not known or
6608 @a cpuId is invalid.
6609 </desc>
6610 </param>
6611 </method>
6612
6613 <attribute name="memorySize" type="unsigned long" readonly="yes">
6614 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6615 </attribute>
6616
6617 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6618 <desc>Available system memory in the host system.</desc>
6619 </attribute>
6620
6621 <attribute name="operatingSystem" type="wstring" readonly="yes">
6622 <desc>Name of the host system's operating system.</desc>
6623 </attribute>
6624
6625 <attribute name="OSVersion" type="wstring" readonly="yes">
6626 <desc>Host operating system's version string.</desc>
6627 </attribute>
6628
6629 <attribute name="UTCTime" type="long long" readonly="yes">
6630 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6631 </attribute>
6632
6633<if target="midl">
6634 <method name="createHostNetworkInterface">
6635 <desc>
6636 Creates a new adapter for Host Interface Networking.
6637 <result name="E_INVALIDARG">
6638 Host network interface @a name already exists.
6639 </result>
6640 </desc>
6641 <param name="name" type="wstring" dir="in">
6642 <desc>
6643 Adapter name.
6644 </desc>
6645 </param>
6646 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6647 <desc>
6648 Created host interface object.
6649 </desc>
6650 </param>
6651 <param name="progress" type="IProgress" dir="return">
6652 <desc>
6653 Progress object to track the operation completion.
6654 </desc>
6655 </param>
6656 </method>
6657 <method name="removeHostNetworkInterface">
6658 <desc>
6659 Removes the given host network interface.
6660 <result name="VBOX_E_OBJECT_NOT_FOUND">
6661 No host network interface matching @a id found.
6662 </result>
6663 </desc>
6664 <param name="id" type="uuid" dir="in">
6665 <desc>
6666 Adapter GUID.
6667 </desc>
6668 </param>
6669 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6670 <desc>
6671 Removed host interface object.
6672 </desc>
6673 </param>
6674 <param name="progress" type="IProgress" dir="return">
6675 <desc>
6676 Progress object to track the operation completion.
6677 </desc>
6678 </param>
6679 </method>
6680</if>
6681
6682 <method name="createUSBDeviceFilter">
6683 <desc>
6684 Creates a new USB device filter. All attributes except
6685 the filter name are set to <tt>null</tt> (any match),
6686 <i>active</i> is <tt>false</tt> (the filter is not active).
6687
6688 The created filter can be added to the list of filters using
6689 <link to="#insertUSBDeviceFilter"/>.
6690
6691 <see>#USBDeviceFilters</see>
6692 </desc>
6693 <param name="name" type="wstring" dir="in">
6694 <desc>
6695 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6696 for more info.
6697 </desc>
6698 </param>
6699 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6700 <desc>Created filter object.</desc>
6701 </param>
6702 </method>
6703
6704 <method name="insertUSBDeviceFilter">
6705 <desc>
6706 Inserts the given USB device to the specified position
6707 in the list of filters.
6708
6709 Positions are numbered starting from <tt>0</tt>. If the specified
6710 position is equal to or greater than the number of elements in
6711 the list, the filter is added at the end of the collection.
6712
6713 <note>
6714 Duplicates are not allowed, so an attempt to insert a
6715 filter that is already in the list, will return an
6716 error.
6717 </note>
6718 <note>
6719 This method may set a @ref com_warnings "warning result code".
6720 </note>
6721 <note>
6722 If USB functionality is not available in the given edition of
6723 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6724 </note>
6725
6726 <see>#USBDeviceFilters</see>
6727
6728 <result name="VBOX_E_INVALID_OBJECT_STATE">
6729 USB device filter is not created within this VirtualBox instance.
6730 </result>
6731 <result name="E_INVALIDARG">
6732 USB device filter already in list.
6733 </result>
6734
6735 </desc>
6736 <param name="position" type="unsigned long" dir="in">
6737 <desc>Position to insert the filter to.</desc>
6738 </param>
6739 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6740 <desc>USB device filter to insert.</desc>
6741 </param>
6742 </method>
6743
6744 <method name="removeUSBDeviceFilter">
6745 <desc>
6746 Removes a USB device filter from the specified position in the
6747 list of filters.
6748
6749 Positions are numbered starting from <tt>0</tt>. Specifying a
6750 position equal to or greater than the number of elements in
6751 the list will produce an error.
6752
6753 <note>
6754 This method may set a @ref com_warnings "warning result code".
6755 </note>
6756 <note>
6757 If USB functionality is not available in the given edition of
6758 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6759 </note>
6760
6761 <see>#USBDeviceFilters</see>
6762
6763 <result name="E_INVALIDARG">
6764 USB device filter list empty or invalid @a position.
6765 </result>
6766
6767 </desc>
6768 <param name="position" type="unsigned long" dir="in">
6769 <desc>Position to remove the filter from.</desc>
6770 </param>
6771 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6772 <desc>Removed USB device filter.</desc>
6773 </param>
6774 </method>
6775
6776 <method name="findHostNetworkInterfaceByName">
6777 <desc>
6778 Searches through all host network interfaces for an interface with
6779 the given name.
6780 <note>
6781 The method returns an error if the given name does not
6782 correspond to any host network interface.
6783 </note>
6784 </desc>
6785 <param name="name" type="wstring" dir="in">
6786 <desc>Name of the host network interface to search for.</desc>
6787 </param>
6788 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6789 <desc>Found host network interface object.</desc>
6790 </param>
6791 </method>
6792 <method name="findHostNetworkInterfaceById">
6793 <desc>
6794 Searches through all host network interfaces for an interface with
6795 the given GUID.
6796 <note>
6797 The method returns an error if the given GUID does not
6798 correspond to any host network interface.
6799 </note>
6800 </desc>
6801 <param name="id" type="uuid" dir="in">
6802 <desc>GUID of the host network interface to search for.</desc>
6803 </param>
6804 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6805 <desc>Found host network interface object.</desc>
6806 </param>
6807 </method>
6808 </interface>
6809
6810 <!--
6811 // ISystemProperties
6812 /////////////////////////////////////////////////////////////////////////
6813 -->
6814
6815 <interface
6816 name="ISystemProperties"
6817 extends="$unknown"
6818 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6819 wsmap="managed"
6820 >
6821 <desc>
6822 The ISystemProperties interface represents global properties of the given
6823 VirtualBox installation.
6824
6825 These properties define limits and default values for various attributes
6826 and parameters. Most of the properties are read-only, but some can be
6827 changed by a user.
6828 </desc>
6829
6830 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6831 <desc>Minimum guest system memory in Megabytes.</desc>
6832 </attribute>
6833
6834 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6835 <desc>Maximum guest system memory in Megabytes.</desc>
6836 </attribute>
6837
6838 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6839 <desc>Minimum guest video memory in Megabytes.</desc>
6840 </attribute>
6841
6842 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6843 <desc>Maximum guest video memory in Megabytes.</desc>
6844 </attribute>
6845
6846 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6847 <desc>Minimum CPU count.</desc>
6848 </attribute>
6849
6850 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6851 <desc>Maximum CPU count.</desc>
6852 </attribute>
6853
6854 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6855 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6856 </attribute>
6857
6858 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6859 <desc>
6860 Number of network adapters associated with every
6861 <link to="IMachine"/> instance.
6862 </desc>
6863 </attribute>
6864
6865 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
6866 <desc>
6867 Number of serial ports associated with every
6868 <link to="IMachine"/> instance.
6869 </desc>
6870 </attribute>
6871
6872 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
6873 <desc>
6874 Number of parallel ports associated with every
6875 <link to="IMachine"/> instance.
6876 </desc>
6877 </attribute>
6878
6879 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
6880 <desc>
6881 Maximum device position in the boot order. This value corresponds
6882 to the total number of devices a machine can boot from, to make it
6883 possible to include all possible devices to the boot list.
6884 <see><link to="IMachine::setBootOrder"/></see>
6885 </desc>
6886 </attribute>
6887
6888 <attribute name="defaultMachineFolder" type="wstring">
6889 <desc>
6890 Full path to the default directory used to create new or open
6891 existing machines when a settings file name contains no
6892 path.
6893
6894 The initial value of this property is
6895 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
6896 VirtualBox_home</link><tt>&gt;/Machines</tt>.
6897
6898 <note>
6899 Setting this property to <tt>null</tt> will restore the
6900 initial value.
6901 </note>
6902 <note>
6903 When settings this property, the specified path can be
6904 absolute (full path) or relative
6905 to the <link to="IVirtualBox::homeFolder">
6906 VirtualBox home directory</link>.
6907 When reading this property, a full path is
6908 always returned.
6909 </note>
6910 <note>
6911 The specified path may not exist, it will be created
6912 when necessary.
6913 </note>
6914
6915 <see>
6916 <link to="IVirtualBox::createMachine"/>,
6917 <link to="IVirtualBox::openMachine"/>
6918 </see>
6919 </desc>
6920 </attribute>
6921
6922 <attribute name="defaultHardDiskFolder" type="wstring">
6923 <desc>
6924 Full path to the default directory used to create new or open existing
6925 virtual disks.
6926
6927 This path is used when the storage unit of a hard disk is a regular file
6928 in the host's file system and only a file name that contains no path is
6929 given.
6930
6931 The initial value of this property is
6932 <tt>&lt;</tt>
6933 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
6934 <tt>&gt;/HardDisks</tt>.
6935
6936 <note>
6937 Setting this property to <tt>null</tt> will restore the
6938 initial value.
6939 </note>
6940 <note>
6941 When settings this property, the specified path can be relative
6942 to the
6943 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
6944 absolute. When reading this property, a full path is
6945 always returned.
6946 </note>
6947 <note>
6948 The specified path may not exist, it will be created
6949 when necessary.
6950 </note>
6951
6952 <see>
6953 IHardDisk,
6954 <link to="IVirtualBox::createHardDisk"/>,
6955 <link to="IVirtualBox::openHardDisk"/>,
6956 <link to="IMedium::location"/>
6957 </see>
6958 </desc>
6959 </attribute>
6960
6961 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
6962 <desc>
6963 List of all hard disk storage formats supported by this VirtualBox
6964 installation.
6965
6966 Keep in mind that the hard disk format identifier
6967 (<link to="IHardDiskFormat::id"/>) used in other API calls like
6968 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
6969 hard disk format is a case-insensitive string. This means that, for
6970 example, all of the following strings:
6971 <pre>
6972 "VDI"
6973 "vdi"
6974 "VdI"</pre>
6975 refer to the same hard disk format.
6976
6977 Note that the virtual hard disk framework is backend-based, therefore
6978 the list of supported formats depends on what backends are currently
6979 installed.
6980
6981 <see>
6982 <link to="IHardDiskFormat"/>,
6983 </see>
6984 </desc>
6985 </attribute>
6986
6987 <attribute name="defaultHardDiskFormat" type="wstring">
6988 <desc>
6989 Identifier of the default hard disk format used by VirtualBox.
6990
6991 The hard disk format set by this attribute is used by VirtualBox
6992 when the hard disk format was not specified explicitly. One example is
6993 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
6994 format argument. A more complex example is implicit creation of
6995 differencing hard disks when taking a snapshot of a virtual machine:
6996 this operation will try to use a format of the parent hard disk first
6997 and if this format does not support differencing hard disks the default
6998 format specified by this argument will be used.
6999
7000 The list of supported hard disk formats may be obtained by the
7001 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7002 format must have a capability to create differencing hard disks;
7003 otherwise opeartions that create hard disks implicitly may fail
7004 unexpectedly.
7005
7006 The initial value of this property is <tt>VDI</tt> in the current
7007 version of the VirtualBox product, but may change in the future.
7008
7009 <note>
7010 Setting this property to <tt>null</tt> will restore the
7011 initial value.
7012 </note>
7013
7014 <see>
7015 <link to="#hardDiskFormats"/>,
7016 <link to="IHardDiskFormat::id"/>,
7017 <link to="IVirtualBox::createHardDisk"/>
7018 </see>
7019 </desc>
7020 </attribute>
7021
7022 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7023 <desc>
7024 Library that provides authentication for VRDP clients. The library
7025 is used if a virtual machine's authentication type is set to "external"
7026 in the VM RemoteDisplay configuration.
7027
7028 The system library extension (".DLL" or ".so") must be omitted.
7029 A full path can be specified; if not, then the library must reside on the
7030 system's default library path.
7031
7032 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7033 of that name in one of the default VirtualBox library directories.
7034
7035 For details about VirtualBox authentication libraries and how to implement
7036 them, please refer to the VirtualBox manual.
7037
7038 <note>
7039 Setting this property to <tt>null</tt> will restore the
7040 initial value.
7041 </note>
7042 </desc>
7043 </attribute>
7044
7045 <attribute name="webServiceAuthLibrary" type="wstring">
7046 <desc>
7047 Library that provides authentication for webservice clients. The library
7048 is used if a virtual machine's authentication type is set to "external"
7049 in the VM RemoteDisplay configuration and will be called from
7050 within the <link to="IWebsessionManager::logon" /> implementation.
7051
7052 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7053 there is no per-VM setting for this, as the webservice is a global
7054 resource (if it is running). Only for this setting (for the webservice),
7055 setting this value to a literal "null" string disables authentication,
7056 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7057 no matter what user name and password are supplied.
7058
7059 The initial value of this property is <tt>VRDPAuth</tt>,
7060 meaning that the webservice will use the same authentication
7061 library that is used by default for VBoxVRDP (again, see
7062 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7063 The format and calling convention of authentication libraries
7064 is the same for the webservice as it is for VBoxVRDP.
7065
7066 </desc>
7067 </attribute>
7068
7069 <attribute name="HWVirtExEnabled" type="boolean">
7070 <desc>
7071 This specifies the default value for hardware virtualization
7072 extensions. If enabled, virtual machines will make use of
7073 hardware virtualization extensions such as Intel VT-x and
7074 AMD-V by default. This value can be overridden by each VM
7075 using their <link to="IMachine::HWVirtExEnabled" /> property.
7076 </desc>
7077 </attribute>
7078
7079 <attribute name="LogHistoryCount" type="unsigned long">
7080 <desc>
7081 This value specifies how many old release log files are kept.
7082 </desc>
7083 </attribute>
7084 </interface>
7085
7086 <!--
7087 // IGuest
7088 /////////////////////////////////////////////////////////////////////////
7089 -->
7090
7091 <interface
7092 name="IGuestOSType" extends="$unknown"
7093 uuid="bc415228-eed0-402c-92f5-96fc4e2dd7e4"
7094 wsmap="struct"
7095 >
7096 <desc>
7097 </desc>
7098
7099 <attribute name="familyId" type="wstring" readonly="yes">
7100 <desc>Guest OS family identifier string.</desc>
7101 </attribute>
7102
7103 <attribute name="familyDescription" type="wstring" readonly="yes">
7104 <desc>Human readable description of the guest OS family.</desc>
7105 </attribute>
7106
7107 <attribute name="id" type="wstring" readonly="yes">
7108 <desc>Guest OS identifier string.</desc>
7109 </attribute>
7110
7111 <attribute name="description" type="wstring" readonly="yes">
7112 <desc>Human readable description of the guest OS.</desc>
7113 </attribute>
7114
7115 <attribute name="is64Bit" type="boolean" readonly="yes">
7116 <desc>Returns @c true if the given OS is 64-bit</desc>
7117 </attribute>
7118
7119 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7120 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7121 </attribute>
7122
7123 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7124 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7125 </attribute>
7126
7127 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7128 <desc>Recommended RAM size in Megabytes.</desc>
7129 </attribute>
7130
7131 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7132 <desc>Recommended video RAM size in Megabytes.</desc>
7133 </attribute>
7134
7135 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7136 <desc>Recommended hard disk size in Megabytes.</desc>
7137 </attribute>
7138
7139 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7140 <desc>Returns recommended network adapter for this OS type.</desc>
7141 </attribute>
7142 </interface>
7143
7144
7145 <enumerator
7146 name="IGuestOSTypeEnumerator" type="IGuestOSType"
7147 uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
7148 />
7149
7150 <collection
7151 name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
7152 uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
7153 readonly="yes"
7154 />
7155
7156 <interface
7157 name="IGuest" extends="$unknown"
7158 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7159
7160 wsmap="suppress"
7161 >
7162 <desc>
7163 The IGuest interface represents information about the operating system
7164 running inside the virtual machine. Used in
7165 <link to="IConsole::guest"/>.
7166
7167 IGuest provides information about the guest operating system, whether
7168 Guest Additions are installed and other OS-specific virtual machine
7169 properties.
7170 </desc>
7171
7172 <attribute name="OSTypeId" type="wstring" readonly="yes">
7173 <desc>
7174 Identifier of the Guest OS type as reported by the Guest
7175 Additions.
7176 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7177 an IGuestOSType object representing details about the given
7178 Guest OS type.
7179 <note>
7180 If Guest Additions are not installed, this value will be
7181 the same as <link to="IMachine::OSTypeId"/>.
7182 </note>
7183 </desc>
7184 </attribute>
7185
7186 <attribute name="additionsActive" type="boolean" readonly="yes">
7187 <desc>
7188 Flag whether the Guest Additions are installed and active
7189 in which case their version will be returned by the
7190 <link to="#additionsVersion"/> property.
7191 </desc>
7192 </attribute>
7193
7194 <attribute name="additionsVersion" type="wstring" readonly="yes">
7195 <desc>
7196 Version of the Guest Additions (3 decimal numbers separated
7197 by dots) or empty when the Additions are not installed. The
7198 Additions may also report a version but yet not be active as
7199 the version might be refused by VirtualBox (incompatible) or
7200 other failures occurred.
7201 </desc>
7202 </attribute>
7203
7204 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7205 <desc>
7206 Flag whether seamless guest display rendering (seamless desktop
7207 integration) is supported.
7208 </desc>
7209 </attribute>
7210
7211 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7212 <desc>
7213 Flag whether the guest is in graphics mode. If it is not, then
7214 seamless rendering will not work, resize hints are not immediately
7215 acted on and guest display resizes are probably not initiated by
7216 the guest additions.
7217 </desc>
7218 </attribute>
7219
7220 <attribute name="memoryBalloonSize" type="unsigned long">
7221 <desc>Guest system memory balloon size in megabytes.</desc>
7222 </attribute>
7223
7224 <attribute name="statisticsUpdateInterval" type="unsigned long">
7225 <desc>Interval to update guest statistics in seconds.</desc>
7226 </attribute>
7227
7228 <method name="setCredentials">
7229 <desc>
7230 Store login credentials that can be queried by guest operating
7231 systems with Additions installed. The credentials are transient
7232 to the session and the guest may also choose to erase them. Note
7233 that the caller cannot determine whether the guest operating system
7234 has queried or made use of the credentials.
7235
7236 <result name="VBOX_E_VM_ERROR">
7237 VMM device is not available.
7238 </result>
7239
7240 </desc>
7241 <param name="userName" type="wstring" dir="in">
7242 <desc>User name string, can be empty</desc>
7243 </param>
7244 <param name="password" type="wstring" dir="in">
7245 <desc>Password string, can be empty</desc>
7246 </param>
7247 <param name="domain" type="wstring" dir="in">
7248 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7249 </param>
7250 <param name="allowInteractiveLogon" type="boolean" dir="in">
7251 <desc>
7252 Flag whether the guest should alternatively allow the user to
7253 interactively specify different credentials. This flag might
7254 not be supported by all versions of the Additions.
7255 </desc>
7256 </param>
7257 </method>
7258
7259 <method name="getStatistic">
7260 <desc>
7261 Query specified guest statistics as reported by the VirtualBox Additions.
7262 </desc>
7263 <param name="cpuId" type="unsigned long" dir="in">
7264 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7265 </param>
7266 <param name="statistic" type="GuestStatisticType" dir="in">
7267 <desc>Statistic type.</desc>
7268 </param>
7269 <param name="statVal" type="unsigned long" dir="out">
7270 <desc>Statistics value</desc>
7271 </param>
7272 </method>
7273
7274 </interface>
7275
7276
7277 <!--
7278 // IProgress
7279 /////////////////////////////////////////////////////////////////////////
7280 -->
7281
7282 <interface
7283 name="IProgress" extends="$unknown"
7284 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7285 wsmap="managed"
7286 >
7287 <desc>
7288 The IProgress interface represents a task progress object that allows
7289 to wait for the completion of some asynchronous task.
7290
7291 The task consists of one or more operations that run sequentially,
7292 one by one. There is an individual percentage of completion of the
7293 current operation and the percentage of completion of the task as a
7294 whole. Similarly, you can wait for the completion of a particular
7295 operation or for the completion of the whole task.
7296
7297 Every operation is identified by a number (starting from 0)
7298 and has a separate description.
7299 </desc>
7300
7301 <attribute name="id" type="uuid" readonly="yes">
7302 <desc>ID of the task.</desc>
7303 </attribute>
7304
7305 <attribute name="description" type="wstring" readonly="yes">
7306 <desc>Description of the task.</desc>
7307 </attribute>
7308
7309 <attribute name="initiator" type="$unknown" readonly="yes">
7310 <desc>Initiator of the task.</desc>
7311 </attribute>
7312
7313 <attribute name="cancelable" type="boolean" readonly="yes">
7314 <desc>Whether the task can be interrupted.</desc>
7315 </attribute>
7316
7317 <attribute name="percent" type="long" readonly="yes">
7318 <desc>
7319 Current task progress value in percent.
7320 This value depends on how many operations are already complete.
7321 </desc>
7322 </attribute>
7323
7324 <attribute name="completed" type="boolean" readonly="yes">
7325 <desc>Whether the task has been completed.</desc>
7326 </attribute>
7327
7328 <attribute name="canceled" type="boolean" readonly="yes">
7329 <desc>Whether the task has been canceled.</desc>
7330 </attribute>
7331
7332 <attribute name="resultCode" type="result" readonly="yes">
7333 <desc>
7334 Result code of the progress task.
7335 Valid only if <link to="#completed"/> is true.
7336 </desc>
7337 </attribute>
7338
7339 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7340 <desc>
7341 Extended information about the unsuccessful result of the
7342 progress operation. May be NULL when no extended information
7343 is available.
7344 Valid only if <link to="#completed"/> is true and
7345 <link to="#resultCode"/> indicates a failure.
7346 </desc>
7347 </attribute>
7348
7349 <attribute name="operationCount" type="unsigned long" readonly="yes">
7350 <desc>
7351 Number of operations this task is divided into.
7352 Every task consists of at least one operation.
7353 </desc>
7354 </attribute>
7355
7356 <attribute name="operation" type="unsigned long" readonly="yes">
7357 <desc>Number of the operation being currently executed.</desc>
7358 </attribute>
7359
7360 <attribute name="operationDescription" type="wstring" readonly="yes">
7361 <desc>
7362 Description of the operation being currently executed.
7363 </desc>
7364 </attribute>
7365
7366 <attribute name="operationPercent" type="long" readonly="yes">
7367 <desc>Current operation progress value in percent.</desc>
7368 </attribute>
7369
7370 <method name="waitForCompletion">
7371 <desc>
7372 Waits until the task is done (including all operations) with a
7373 given timeout.
7374
7375 <result name="VBOX_E_IPRT_ERROR">
7376 Failed to wait for task completion.
7377 </result>
7378
7379 </desc>
7380 <param name="timeout" type="long" dir="in">
7381 <desc>
7382 Timeout value in milliseconds.
7383 Specify -1 for an indefinite wait.
7384 </desc>
7385 </param>
7386 </method>
7387
7388 <method name="waitForOperationCompletion">
7389 <desc>
7390 Waits until the given operation is done with a given timeout.
7391
7392 <result name="VBOX_E_IPRT_ERROR">
7393 Failed to wait for operation completion.
7394 </result>
7395
7396 </desc>
7397 <param name="operation" type="unsigned long" dir="in">
7398 <desc>
7399 Number of the operation to wait for.
7400 Must be less than <link to="#operationCount"/>.
7401 </desc>
7402 </param>
7403 <param name="timeout" type="long" dir="in">
7404 <desc>
7405 Timeout value in milliseconds.
7406 Specify -1 for an indefinite wait.
7407 </desc>
7408 </param>
7409 </method>
7410
7411 <method name="cancel">
7412 <desc>
7413 Cancels the task.
7414 <note>
7415 If <link to="#cancelable"/> is <tt>false</tt>, then
7416 this method will fail.
7417 </note>
7418
7419 <result name="VBOX_E_INVALID_OBJECT_STATE">
7420 Operation cannot be canceled.
7421 </result>
7422
7423 </desc>
7424 </method>
7425
7426 </interface>
7427
7428
7429 <!--
7430 // ISnapshot
7431 /////////////////////////////////////////////////////////////////////////
7432 -->
7433
7434 <enumerator
7435 name="ISnapshotEnumerator" type="ISnapshot"
7436 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
7437 />
7438
7439 <collection
7440 name="ISnapshotCollection" type="ISnapshot"
7441 enumerator="ISnapshotEnumerator"
7442 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
7443 readonly="yes"
7444 />
7445
7446 <interface
7447 name="ISnapshot" extends="$unknown"
7448 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
7449 wsmap="managed"
7450 >
7451 <desc>
7452 The ISnapshot interface represents a snapshot of the virtual
7453 machine.
7454
7455 The <i>snapshot</i> stores all the information about a virtual
7456 machine necessary to bring it to exactly the same state as it was at
7457 the time of taking the snapshot. The snapshot includes:
7458
7459 <ul>
7460 <li>all settings of the virtual machine (i.e. its hardware
7461 configuration: RAM size, attached hard disks, etc.)
7462 </li>
7463 <li>the execution state of the virtual machine (memory contents,
7464 CPU state, etc.).
7465 </li>
7466 </ul>
7467
7468 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7469 or <i>online</i> (taken when the VM is running). The execution
7470 state of the offline snapshot is called a <i>zero execution state</i>
7471 (it doesn't actually contain any information about memory contents
7472 or the CPU state, assuming that all hardware is just powered off).
7473
7474 <h3>Snapshot branches</h3>
7475
7476 Snapshots can be chained. Chained snapshots form a branch where
7477 every next snapshot is based on the previous one. This chaining is
7478 mostly related to hard disk branching (see <link to="IHardDisk"/>
7479 description). This means that every time a new snapshot is created,
7480 a new differencing hard disk is implicitly created for all normal
7481 hard disks attached to the given virtual machine. This allows to
7482 fully restore hard disk contents when the machine is later reverted
7483 to a particular snapshot.
7484
7485 In the current implementation, multiple snapshot branches within one
7486 virtual machine are not allowed. Every machine has a single branch,
7487 and <link to="IConsole::takeSnapshot"/> operation adds a new
7488 snapshot to the top of that branch.
7489
7490 Existing snapshots can be discarded using
7491 <link to="IConsole::discardSnapshot"/>.
7492
7493 <h3>Current snapshot</h3>
7494
7495 Every virtual machine has a current snapshot, identified by
7496 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7497 a base for the <i>current machine state</i> (see below), to the effect
7498 that all normal hard disks of the machine and its execution
7499 state are based on this snapshot.
7500
7501 In the current implementation, the current snapshot is always the
7502 last taken snapshot (i.e. the head snapshot on the branch) and it
7503 cannot be changed.
7504
7505 The current snapshot is <tt>null</tt> if the machine doesn't have
7506 snapshots at all; in this case the current machine state is just
7507 current settings of this machine plus its current execution state.
7508
7509 <h3>Current machine state</h3>
7510
7511 The current machine state is what represented by IMachine instances got
7512 directly from IVirtualBox
7513 using <link
7514 to="IVirtualBox::getMachine">getMachine()</link>, <link
7515 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7516 to instances returned by <link to="ISnapshot::machine"/>). This state
7517 is always used when the machine is <link to="IConsole::powerUp"> powered
7518 on</link>.
7519
7520 The current machine state also includes the current execution state.
7521 If the machine is being currently executed
7522 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7523 and above), its execution state is just what's happening now.
7524 If it is powered off (<link to="MachineState_PoweredOff"/> or
7525 <link to="MachineState_Aborted"/>), it has a zero execution state.
7526 If the machine is saved (<link to="MachineState_Saved"/>), its
7527 execution state is what saved in the execution state file
7528 (<link to="IMachine::stateFilePath"/>).
7529
7530 If the machine is in the saved state, then, next time it is powered
7531 on, its execution state will be fully restored from the saved state
7532 file and the execution will continue from the point where the state
7533 was saved.
7534
7535 Similarly to snapshots, the current machine state can be discarded
7536 using <link to="IConsole::discardCurrentState"/>.
7537
7538 <h3>Taking and discarding snapshots</h3>
7539
7540 The table below briefly explains the meaning of every snapshot
7541 operation:
7542
7543 <table>
7544 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7545
7546 <tr><td><link to="IConsole::takeSnapshot"/></td>
7547
7548 <td>Save the current state of the virtual machine, including all
7549 settings, contents of normal hard disks and the current modifications
7550 to immutable hard disks (for online snapshots)</td>
7551
7552 <td>The current state is not changed (the machine will continue
7553 execution if it is being executed when the snapshot is
7554 taken)</td></tr>
7555
7556 <tr><td><link to="IConsole::discardSnapshot"/></td>
7557
7558 <td>Forget the state of the virtual machine stored in the snapshot:
7559 dismiss all saved settings and delete the saved execution state (for
7560 online snapshots)</td>
7561
7562 <td>Other snapshots (including child snapshots, if any) and the
7563 current state are not directly affected</td></tr>
7564
7565 <tr><td><link to="IConsole::discardCurrentState"/></td>
7566
7567 <td>Restore the current state of the virtual machine from the state
7568 stored in the current snapshot, including all settings and hard disk
7569 contents</td>
7570
7571 <td>The current state of the machine existed prior to this operation
7572 is lost</td></tr>
7573
7574 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7575
7576 <td>Completely revert the virtual machine to the state it was in
7577 before the current snapshot has been taken</td>
7578
7579 <td>The current state, as well as the current snapshot, are
7580 lost</td></tr>
7581
7582 </table>
7583
7584 </desc>
7585
7586 <attribute name="id" type="uuid" readonly="yes">
7587 <desc>UUID of the snapshot.</desc>
7588 </attribute>
7589
7590 <attribute name="name" type="wstring">
7591 <desc>Short name of the snapshot.</desc>
7592 </attribute>
7593
7594 <attribute name="description" type="wstring">
7595 <desc>Optional description of the snapshot.</desc>
7596 </attribute>
7597
7598 <attribute name="timeStamp" type="long long" readonly="yes">
7599 <desc>
7600 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7601 </desc>
7602 </attribute>
7603
7604 <attribute name="online" type="boolean" readonly="yes">
7605 <desc>
7606 <tt>true</tt> if this snapshot is an online snapshot and
7607 <tt>false</tt> otherwise.
7608
7609 <note>
7610 When this attribute is <tt>true</tt>, the
7611 <link to="IMachine::stateFilePath"/> attribute of the
7612 <link to="#machine"/> object associated with this snapshot
7613 will point to the saved state file. Otherwise, it will be
7614 <tt>null</tt>.
7615 </note>
7616 </desc>
7617 </attribute>
7618
7619 <attribute name="machine" type="IMachine" readonly="yes">
7620 <desc>
7621 Virtual machine this snapshot is taken on. This object
7622 stores all settings the machine had when taking this snapshot.
7623 <note>
7624 The returned machine object is immutable, i.e. no
7625 any settings can be changed.
7626 </note>
7627 </desc>
7628 </attribute>
7629
7630 <attribute name="parent" type="ISnapshot" readonly="yes">
7631 <desc>
7632 Parent snapshot (a snapshot this one is based on).
7633 <note>
7634 It's not an error to read this attribute on a snapshot
7635 that doesn't have a parent -- a null object will be
7636 returned to indicate this.
7637 </note>
7638 </desc>
7639 </attribute>
7640
7641 <attribute name="children" type="ISnapshotCollection" readonly="yes">
7642 <desc>
7643 Child snapshots (all snapshots having this one as a parent).
7644 <note>
7645 In the current implementation, there can be only one
7646 child snapshot, or no children at all, meaning this is the
7647 last (head) snapshot.
7648 </note>
7649 </desc>
7650 </attribute>
7651
7652 </interface>
7653
7654
7655 <!--
7656 // IMedia
7657 /////////////////////////////////////////////////////////////////////////
7658 -->
7659
7660 <enum
7661 name="MediaState"
7662 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7663 >
7664 <desc>
7665 Virtual media state.
7666 <see>IMedia</see>
7667 </desc>
7668
7669 <const name="NotCreated" value="0">
7670 <desc>
7671 Associated media storage does not exist (either was not created yet or
7672 was deleted).
7673 </desc>
7674 </const>
7675 <const name="Created" value="1">
7676 <desc>
7677 Associated storage exists and accessible.
7678 </desc>
7679 </const>
7680 <const name="LockedRead" value="2">
7681 <desc>
7682 Media is locked for reading, no data modification is possible.
7683 </desc>
7684 </const>
7685 <const name="LockedWrite" value="3">
7686 <desc>
7687 Media is locked for writing, no concurrent data reading or modification
7688 is possible.
7689 </desc>
7690 </const>
7691 <const name="Inaccessible" value="4">
7692 <desc>
7693 Associated media storage is not accessible.
7694 </desc>
7695 </const>
7696 <const name="Creating" value="5">
7697 <desc>
7698 Associated media storage is being created.
7699 </desc>
7700 </const>
7701 <const name="Deleting" value="6">
7702 <desc>
7703 Associated media storage is being deleted.
7704 </desc>
7705 </const>
7706 </enum>
7707
7708 <interface
7709 name="IMedium" extends="$unknown"
7710 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7711 wsmap="managed"
7712 >
7713 <desc>
7714 The IMedium interface is a common interface for all objects representing
7715 virtual media such as hard disks, DVD images.
7716
7717 Each medium is associated with a storage unit (such as a file on the host
7718 computer or a network resource) that holds actual data. The location of
7719 the storage unit is represented by the #location attribute. The value of
7720 this attribute is media type dependent.
7721
7722 The exact media type may be determined by querying the appropriate
7723 interface such as:
7724 <ul>
7725 <li>IHardDisk (virtual hard disks)</li>
7726 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7727 <li>IFloppyImage (raw floppy image files)</li>
7728 </ul>
7729
7730 Existing media are opened using the following methods, depending on the
7731 media type:
7732 <ul>
7733 <li><link to="IVirtualBox::openHardDisk"/></li>
7734 <li><link to="IVirtualBox::openDVDImage"/></li>
7735 <li><link to="IVirtualBox::openFloppyImage"/></li>
7736 </ul>
7737
7738 New hard disk media are created using the
7739 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7740 images are created outside VirtualBox, usually by storing a copy
7741 of the real medium of the corresponding type in a regular file.
7742
7743 <h3>Known Media</h3>
7744
7745 When an existing medium gets opened for the first time, it gets
7746 automatically remembered by the given VirtualBox installation or, in other
7747 words, becomes a <i>known medium</i>. Known media are stored in the media
7748 registry transparently maintained by VirtualBox and stored in settings
7749 files so that this registry is preserved when VirtualBox is not running.
7750
7751 Newly created virtual hard disks get remembered only when the associated
7752 storage unit is actually created (see IHardDisk for more details).
7753
7754 All known media can be enumerated using
7755 <link to="IVirtualBox::hardDisks"/>,
7756 <link to="IVirtualBox::DVDImages"/> and
7757 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7758 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7759 and similar methods or by location using
7760 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7761
7762 Only known media can be attached to virtual machines.
7763
7764 Removing known media from the media registry is performed when the given
7765 medium is closed using the <link to="#close"/> method or when its
7766 associated storage unit is deleted (only for hard disks).
7767
7768 <h3>Accessibility Checks</h3>
7769
7770 The given medium (with the created storage unit) is considered to be
7771 <i>accessible</i> when its storage unit can be successfully read from.
7772 Accessible media are indicated by the <link to="MediaState_Created"/>
7773 value of the <link to="#state"/> attribute. When the storage unit cannot
7774 be read (for example, because it is located on a disconnected network
7775 resource, or was accidentally deleted outside VirtualBox), the medium is
7776 considered to be <i>inaccessible</i> which is indicated by the
7777 <link to="MediaState_Inaccessible"/> state. The details about the reason
7778 of being inaccessible can be obtained using the
7779 <link to="#lastAccessError"/> attribute.
7780
7781 A new accessibility check is performed each time the <link to="#state"/>
7782 attribute is read. Please note that this check may take long time (several
7783 seconds or even minutes, depending on the storage unit location and
7784 format), and will block the calling thread until finished. For this
7785 reason, it is recommended to never read this attribute on the main UI
7786 thread to avoid making the UI unresponsive.
7787
7788 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7789 created for the first time), all known media are in the
7790 <link to="MediaState_Inaccessible"/> state but the value of the <link
7791 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7792 accessibility check is made on startup. This is done to make the
7793 VirtualBox object ready for serving requests as
7794 fast as possible and let the end-user application decide if it needs to
7795 check media accessibility right away or not.
7796 </desc>
7797
7798 <attribute name="id" type="uuid" readonly="yes">
7799 <desc>
7800 UUID of the medium. For a newly created medium, this value is a randomly
7801 generated UUID.
7802
7803 <note>
7804 For media in one of MediaState_NotCreated, MediaState_Creating or
7805 MediaState_Deleting states, the value of this property is undefined
7806 and will most likely be an empty UUID.
7807 </note>
7808 </desc>
7809 </attribute>
7810
7811 <attribute name="description" type="wstring">
7812 <desc>
7813 Optional description of the medium. For newly created media, the value
7814 of this attribute value is <tt>null</tt>.
7815
7816 Media types that don't support this attribute will return E_NOTIMPL in
7817 attempt to get or set this attribute's value.
7818
7819 <note>
7820 For some storage types, reading this attribute may return an outdated
7821 (last known) value when <link to="#state"/> is <link
7822 to="MediaState_Inaccessible"/> or <link
7823 to="MediaState_LockedWrite"/> because the value of this attribute is
7824 stored within the storage unit itself. Also note that changing the
7825 attribute value is not possible in such case, as well as when the
7826 medium is the <link to="MediaState_LockedRead"/> state.
7827 </note>
7828 </desc>
7829 </attribute>
7830
7831 <attribute name="state" type="MediaState" readonly="yes">
7832 <desc>
7833 Current media state. Inspect <link to="MediaState"/> values for details.
7834
7835 Reading this attribute may take long time because a new accessibility
7836 check of the storage unit is performed every time the attribute is read.
7837 This check may cause a significant delay if the storage unit of the
7838 given medium is, for example, a file located on a network share which is
7839 not currently accessible due to connectivity problems -- the call will
7840 not return until a timeout interval defined by the host OS for this
7841 operation expires.
7842
7843 If the last known state of the medium is <link to="MediaState_Created"/>
7844 and the accessibility check fails then the state would be set to
7845 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7846 may be used to get more details about the failure. If the state of the
7847 medium is <link to="MediaState_LockedRead"/> or
7848 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7849 non-null value of <link to="#lastAccessError"/> will indicate a failed
7850 accessibility check in this case.
7851
7852 Note that not all media states are applicable to certain media types.
7853 For example, states <link to="MediaState_NotCreated"/>,
7854 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7855 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
7856 IFloppyImage media.
7857 </desc>
7858 </attribute>
7859
7860 <attribute name="location" type="wstring">
7861 <desc>
7862 Location of the storage unit holding media data.
7863
7864 The format of the location string is media type specific. For media
7865 types that use regular files in a host's file system, the location
7866 string is just a full file name.
7867
7868 Some media types may support changing the storage unit location by
7869 simply changing the value of this property. If this operation is not
7870 supported, the implementation will return E_NOTIMPL in attempt to set
7871 this attribute's value.
7872
7873 When setting a value of the location attribute which is a regular file
7874 in the host's file system, the given file name may be either relative to
7875 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7876 absolute. Note that if the given location specification does not contain
7877 the file extension part then a proper default extension will be
7878 automatically appended by the implementation depending on the media type.
7879 </desc>
7880 </attribute>
7881
7882 <attribute name="name" type="wstring" readonly="yes">
7883 <desc>
7884 Name of the storage unit holding media data.
7885
7886 The returned string is a short version of the <link to="#location"/>
7887 attribute that is suitable for representing the medium in situations
7888 where the full location specification is too long (such as lists
7889 and comboboxes in GUI frontends). This string is also used by frontends
7890 to sort the media list alphabetically when needed.
7891
7892 For example, for locations that are regular files in the host's file
7893 system, the value of this attribute is just a file name (+ extension),
7894 without the path specification.
7895
7896 Note that as opposed to the <link to="#location"/> attribute, the name
7897 attribute will not necessary be unique for a list of media of the
7898 given type and format.
7899 </desc>
7900 </attribute>
7901
7902 <attribute name="size" type="unsigned long long" readonly="yes">
7903 <desc>
7904 Physical size of the storage unit used to hold media data (in bytes).
7905
7906 <note>
7907 For media whose <link to="#state"/> is <link
7908 to="MediaState_Inaccessible"/>, the value of this property is the
7909 last known size. For <link to="MediaState_NotCreated"/> media,
7910 the returned value is zero.
7911 </note>
7912 </desc>
7913 </attribute>
7914
7915 <attribute name="lastAccessError" type="wstring" readonly="yes">
7916 <desc>
7917 Text message that represents the result of the last accessibility
7918 check.
7919
7920 Accessibility checks are performed each time the <link to="#state"/>
7921 attribute is read. A @c null string is returned if the last
7922 accessibility check was successful. A non-null string indicates a
7923 failure and should normally describe a reason of the failure (for
7924 example, a file read error).
7925 </desc>
7926 </attribute>
7927
7928 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
7929 <desc>
7930 Array of UUIDs of all machines this medium is attached to.
7931
7932 A <tt>null</tt> array is returned if this medium is not attached to any
7933 machine or to any machine's snapshot.
7934
7935 <note>
7936 The returned array will include a machine even if this medium is not
7937 attached to that machine in the current state but attached to it in
7938 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
7939 details.
7940 </note>
7941 </desc>
7942 </attribute>
7943
7944 <method name="getSnapshotIds">
7945 <desc>
7946 Returns an array of UUIDs of all snapshots of the given machine where
7947 this medium is attached to it.
7948
7949 If the medium is attached to the machine in the current state, then the
7950 first element in the array will always be the ID of the queried machine
7951 (i.e. the value equal to the @c machineId argument), followed by
7952 snapshot IDs (if any).
7953
7954 If the medium is not attached to the machine in the current state, then
7955 the array will contain only snapshot IDs.
7956
7957 The returned array may be <tt>null</tt> if this medium is not attached
7958 to the given machine at all, neither in the current state nor in one of
7959 snapshots.
7960 </desc>
7961 <param name="machineId" type="uuid" dir="in">
7962 <desc>
7963 UUID of the machine to query.
7964 </desc>
7965 </param>
7966 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
7967 <desc>
7968 Array of snapshot UUIDs of the given machine using this medium.
7969 </desc>
7970 </param>
7971 </method>
7972
7973 <method name="lockRead">
7974 <desc>
7975 Locks this medium for reading.
7976
7977 The read lock is shared: many clients can simultaneously lock the
7978 same media for reading unless it is already locked for writing (see
7979 <link to="#lockWrite"/>) in which case an error is returned.
7980
7981 When the medium is locked for reading, it cannot be modified
7982 from within VirtualBox. This means that any method that changes
7983 the properties of this medium or contents of the storage unit
7984 will return an error (unless explicitly stated otherwise) and
7985 that an attempt to start a virtual machine that wants to modify
7986 the medium will also fail.
7987
7988 When the virtual machine is started up, it locks for reading all
7989 media it uses in read-only mode. If some media cannot be locked
7990 for reading, the startup procedure will fail.
7991
7992 The medium locked for reading must be unlocked using the <link
7993 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
7994 can be nested and must be followed by the same number of paired
7995 <link to="#unlockRead"/> calls.
7996
7997 This method sets the media state to <link
7998 to="MediaState_LockedRead"/> on success. The state prior to
7999 this call must be <link to="MediaState_Created"/>, <link
8000 to="MediaState_Inaccessible"/> or <link
8001 to="MediaState_LockedRead"/>. As you can see, inaccessible
8002 media can be locked too. This is not an error; this method
8003 performs a logical lock that prevents modifications of this
8004 media through the VirtualBox API, not a physical lock of the
8005 underlying storage unit.
8006
8007 This method returns the current state of the medium
8008 <b>before</b> the operation.
8009
8010 <result name="VBOX_E_INVALID_OBJECT_STATE">
8011 Invalid media state (e.g. not created, locked, inaccessible,
8012 creating, deleting).
8013 </result>
8014
8015 </desc>
8016 <param name="state" type="MediaState" dir="return">
8017 <desc>
8018 State of the medium after the operation.
8019 </desc>
8020 </param>
8021 </method>
8022
8023 <method name="unlockRead">
8024 <desc>
8025 Cancels the read lock previously set by <link to="#lockRead"/>.
8026
8027 Either on success or on failure, this method returns the current state
8028 of the medium <b>after</b> the operation.
8029
8030 See <link to="#lockRead"/> for more details.
8031
8032 <result name="VBOX_E_INVALID_OBJECT_STATE">
8033 Medium not locked for reading.
8034 </result>
8035
8036 </desc>
8037 <param name="state" type="MediaState" dir="return">
8038 <desc>
8039 State of the medium after the operation.
8040 </desc>
8041 </param>
8042 </method>
8043
8044 <method name="lockWrite">
8045 <desc>
8046 Locks this medium for writing.
8047
8048 The write lock, as opposed to <link to="#lockRead"/>, is
8049 exclusive: there may be only one client that holds a write lock
8050 and there may be no read locks while the write lock is held.
8051
8052 When the medium is locked for writing, it cannot be modified
8053 from within VirtualBox and it is not guaranteed that the values
8054 of its properties are up-to-date. Any method that changes the
8055 properties of this medium or contents of the storage unit will
8056 return an error ((unless explicitly stated otherwise) and an
8057 attempt to start a virtual machine that wants to modify or to
8058 read the medium will also fail.
8059
8060 When the virtual machine is started up, it locks for writing all
8061 media it uses to write data to. If some media cannot be locked
8062 for writing, the startup procedure will fail.
8063
8064 The medium locked for writing must be unlocked using the <link
8065 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8066 can <b>not</b> be nested and must be followed by a paired <link
8067 to="#unlockWrite"/> call.
8068
8069 This method sets the media state to <link
8070 to="MediaState_LockedWrite"/> on success. The state prior to
8071 this call must be <link to="MediaState_Created"/> or <link
8072 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8073 media can be locked too. This is not an error; this method
8074 performs a logical lock that prevents modifications of this
8075 media through the VirtualBox API, not a physical lock of the
8076 underlying storage unit.
8077
8078 Either on success or on failure, this method returns the current
8079 state of the medium <b>before</b> the operation.
8080
8081 <result name="VBOX_E_INVALID_OBJECT_STATE">
8082 Invalid media state (e.g. not created, locked, inaccessible,
8083 creating, deleting).
8084 </result>
8085
8086 </desc>
8087 <param name="state" type="MediaState" dir="return">
8088 <desc>
8089 State of the medium after the operation.
8090 </desc>
8091 </param>
8092 </method>
8093
8094 <method name="unlockWrite">
8095 <desc>
8096 Cancels the write lock previously set by <link to="#lockWrite"/>.
8097
8098 Either on success or on failure, this method returns the current
8099 state of the medium <b>after</b> the operation.
8100
8101 See <link to="#lockWrite"/> for more details.
8102
8103 <result name="VBOX_E_INVALID_OBJECT_STATE">
8104 Medium not locked for writing.
8105 </result>
8106
8107 </desc>
8108 <param name="state" type="MediaState" dir="return">
8109 <desc>
8110 State of the medium after the operation.
8111 </desc>
8112 </param>
8113 </method>
8114
8115 <method name="close">
8116 <desc>
8117 Closes this medium.
8118
8119 The hard disk must not be attached to any known virtual machine
8120 and must not have any known child hard disks, otherwise the
8121 operation will fail.
8122
8123 When the hard disk is successfully closed, it gets removed from
8124 the list of remembered hard disks, but its storage unit is not
8125 deleted. In particular, this means that this hard disk can be
8126 later opened again using the <link
8127 to="IVirtualBox::openHardDisk"/> call.
8128
8129 Note that after this method successfully returns, the given hard
8130 disk object becomes uninitialized. This means that any attempt
8131 to call any of its methods or attributes will fail with the
8132 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8133
8134 <result name="VBOX_E_INVALID_OBJECT_STATE">
8135 Invalid media state (other than not created, created or
8136 inaccessible).
8137 </result>
8138 <result name="VBOX_E_OBJECT_IN_USE">
8139 Medium attached to virtual machine.
8140 </result>
8141 <result name="VBOX_E_FILE_ERROR">
8142 Settings file not accessible.
8143 </result>
8144 <result name="VBOX_E_XML_ERROR">
8145 Could not parse the settings file.
8146 </result>
8147
8148 </desc>
8149 </method>
8150
8151 </interface>
8152
8153
8154 <!--
8155 // IHardDisk
8156 /////////////////////////////////////////////////////////////////////////
8157 -->
8158
8159 <enum
8160 name="HardDiskType"
8161 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8162 >
8163 <desc>
8164 Virtual hard disk type.
8165 <see>IHardDisk</see>
8166 </desc>
8167
8168 <const name="Normal" value="0">
8169 <desc>
8170 Normal hard disk (attached directly or indirectly, preserved
8171 when taking snapshots).
8172 </desc>
8173 </const>
8174 <const name="Immutable" value="1">
8175 <desc>
8176 Immutable hard disk (attached indirectly, changes are wiped out
8177 after powering off the virtual machine).
8178 </desc>
8179 </const>
8180 <const name="Writethrough" value="2">
8181 <desc>
8182 Write through hard disk (attached directly, ignored when
8183 taking snapshots).
8184 </desc>
8185 </const>
8186 </enum>
8187
8188 <interface
8189 name="IHardDiskAttachment" extends="$unknown"
8190 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8191 wsmap="struct"
8192 >
8193 <desc>
8194 The IHardDiskAttachment interface represents a hard disk attachment of a
8195 virtual machine.
8196
8197 Every hard disk attachment specifies a slot of the virtual hard disk
8198 controller and a virtual hard disk attached to this slot.
8199
8200 The array of hard disk attachments is returned by
8201 <link to="IMachine::hardDiskAttachments"/>.
8202
8203 <note>
8204 With the COM API, this is an interface like all the others. With the
8205 webservice, this is mapped to a structure, so querying the attribute
8206 will not return an object, but a complete structure.
8207 </note>
8208 </desc>
8209 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8210 <desc>Hard disk object associated with this attachment.</desc>
8211 </attribute>
8212
8213 <attribute name="bus" type="StorageBus" readonly="yes">
8214 <desc>Interface bus of this attachment.</desc>
8215 </attribute>
8216
8217 <attribute name="channel" type="long" readonly="yes">
8218 <desc>Channel number of this attachment.</desc>
8219 </attribute>
8220
8221 <attribute name="device" type="long" readonly="yes">
8222 <desc>Device slot number of this attachment.</desc>
8223 </attribute>
8224
8225 </interface>
8226
8227 <interface
8228 name="IHardDisk" extends="IMedium"
8229 uuid="244f89fe-1943-464d-baad-2efd73e5d532"
8230 wsmap="managed"
8231 >
8232 <desc>
8233 The IHardDisk interface represents a virtual hard disk drive
8234 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8235
8236 Virtual hard disk objects virtualize the hard disk hardware and look like
8237 regular hard disks for the guest OS running inside the virtual machine.
8238
8239 <h3>Hard Disk Types</h3>
8240
8241 There are three types of hard disks:
8242 <link to="HardDiskType_Normal">Normal</link>,
8243 <link to="HardDiskType_Immutable">Immutable</link> and
8244 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8245 hard disk defines how the hard disk is attached to a virtual machine and
8246 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8247 machine with the attached hard disk is taken. The type of the hard disk is
8248 defined by the <link to="#type"/> attribute.
8249
8250 All hard disks can be also divided in two big groups: <i>base</i> hard
8251 disks and <i>differencing</i> hard disks. A base hard disk contains all
8252 sectors of the hard disk data in its storage unit and therefore can be
8253 used independently. On the contrary, a differencing hard disk contains
8254 only some part of the hard disk data (a subset of sectors) and needs
8255 another hard disk to get access to the missing sectors of data. This
8256 another hard disk is called a <i>parent</i> hard disk and defines a hard
8257 disk to which this differencing hard disk is known to be <i>linked to</i>.
8258 The parent hard disk may be itself a differencing hard disk. This
8259 way, differencing hard disks form a linked hard disk chain. This chain
8260 always ends with the base hard disk which is sometimes referred to as the
8261 root hard disk of this chain. Note that several differencing hard disks
8262 may be linked to the same parent hard disk. This way, all known hard disks
8263 form a hard disk tree which is based on their parent-child relationship.
8264
8265 Differencing hard disks can be distinguished from base hard disks by
8266 querying the <link to="#parent"/> attribute: base hard disks do not have
8267 parents they would depend on, so the value of this attribute is always
8268 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8269 the hard disk tree (from the child hard disk to its parent). It is also
8270 possible to walk down the tree using the <link to="#children"/>
8271 attribute.
8272
8273 Note that the type of all differencing hard disks is
8274 <link to="HardDiskType_Normal">Normal</link>; all other values are
8275 meaningless for them. Base hard disks may be of any type.
8276
8277 <h3>Creating Hard Disks</h3>
8278
8279 New base hard disks are created using
8280 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8281 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8282 disks are usually implicitly created by VirtualBox when needed but may
8283 also be created explicitly using <link to="#createDiffStorage"/>.
8284
8285 After the hard disk is successfully created (including the storage unit)
8286 or opened, it becomes a known hard disk (remembered in the internal media
8287 registry). Known hard disks can be attached to a virtual machine, accessed
8288 through <link to="IVirtualBox::getHardDisk"/> and
8289 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8290 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8291
8292 The following methods, besides <link to="IMedium::close"/>,
8293 automatically remove the hard disk from the media registry:
8294 <ul>
8295 <li><link to="#deleteStorage"/></li>
8296 <li><link to="#mergeTo"/></li>
8297 </ul>
8298
8299 If the storage unit of the hard disk is a regular file in the host's
8300 file system then the rules stated in the description of the
8301 <link to="IMedium::location"/> attribute apply when setting its value. In
8302 addition, a plain file name without any path may be given, in which case
8303 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8304 folder</link> will be prepended to it.
8305
8306 <h4>Automatic composition of the file name part</h4>
8307
8308 Another extension to the <link to="IMedium::location"/> attribute is that
8309 there is a possibility to cause VirtualBox to compose a unique value for
8310 the file name part of the location using the UUID of the hard disk. This
8311 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8312 e.g. before the storage unit is created, and works as follows. You set the
8313 value of the <link to="IMedium::location"/> attribute to a location
8314 specification which only contains the path specification but not the file
8315 name part and ends with either a forward slash or a backslash character.
8316 In response, VirtualBox will generate a new UUID for the hard disk and
8317 compose the file name using the following pattern:
8318 <pre>
8319 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8320 </pre>
8321 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8322 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8323 is the default extension for the storage format of this hard disk. After
8324 that, you may call any of the methods that create a new hard disk storage
8325 unit and they will use the generated UUID and file name.
8326
8327 <h3>Attaching Hard Disks</h3>
8328
8329 Hard disks are attached to virtual machines using the
8330 <link to="IMachine::attachHardDisk"/> method and detached using the
8331 <link to="IMachine::detachHardDisk"/> method. Depending on their
8332 <link to="#type"/>, hard disks are attached either
8333 <i>directly</i> or <i>indirectly</i>.
8334
8335 When a hard disk is being attached directly, it is associated with the
8336 virtual machine and used for hard disk operations when the machine is
8337 running. When a hard disk is being attached indirectly, a new differencing
8338 hard disk linked to it is implicitly created and this differencing hard
8339 disk is associated with the machine and used for hard disk operations.
8340 This also means that if <link to="IMachine::attachHardDisk"/> performs
8341 a direct attachment then the same hard disk will be returned in response
8342 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8343 an indirect attachment is performed then
8344 <link to="IMachine::getHardDisk"/> will return the implicitly created
8345 differencing hard disk, not the original one passed to <link
8346 to="IMachine::attachHardDisk"/>. The following table shows the
8347 dependency of the attachment type on the hard disk type:
8348
8349 <table>
8350 <tr>
8351 <th>Hard Disk Type</th>
8352 <th>Direct or Indirect?</th>
8353 </tr>
8354 <tr>
8355 <td>Normal (Base)</td>
8356 <td>
8357 Normal base hard disks that do not have children (i.e. differencing
8358 hard disks linked to them) and that are not already attached to
8359 virtual machines in snapshots are attached <b>directly</b>.
8360 Otherwise, they are attached <b>indirectly</b> because having
8361 dependent children or being part of the snapshot makes it impossible
8362 to modify hard disk contents without breaking the integrity of the
8363 dependent party. The <link to="#readOnly"/> attribute allows to
8364 quickly determine the kind of the attachment for the given hard
8365 disk. Note that if a normal base hard disk is to be indirectly
8366 attached to a virtual machine with snapshots then a special
8367 procedure called <i>smart attachment</i> is performed (see below).
8368 </td>
8369 </tr>
8370 <tr>
8371 <td>Normal (Differencing)</td>
8372 <td>
8373 Differencing hard disks are like normal base hard disks: attached
8374 <b>directly</b> if they do not have children and are not attached to
8375 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8376 that the smart attachment procedure is never performed for
8377 differencing hard disks.
8378 </td>
8379 </tr>
8380 <tr>
8381 <td>Immutable</td>
8382 <td>
8383 Immutable hard disks are always attached <b>indirectly</b> because
8384 they are designed to be non-writable. If an immutable hard disk is
8385 attached to a virtual machine with snapshots then a special
8386 procedure called smart attachment is performed (see below).
8387 </td>
8388 </tr>
8389 <tr>
8390 <td>Writethrough</td>
8391 <td>
8392 Writethrough hard disks are always attached <b>directly</b>, also as
8393 designed. This also means that writethrough hard disks cannot have
8394 other hard disks linked to them at all.
8395 </td>
8396 </tr>
8397 </table>
8398
8399 Note that the same hard disk, regardless of its type, may be attached to
8400 more than one virtual machine at a time. In this case, the machine that is
8401 started first gains exclusive access to the hard disk and attempts to
8402 start other machines having this hard disk attached will fail until the
8403 first machine is powered down.
8404
8405 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8406 that the given hard disk remains associated with the given machine after a
8407 successful <link to="IMachine::detachHardDisk"/> call until
8408 <link to="IMachine::saveSettings"/> is called to save all changes to
8409 machine settings to disk. This deferring is necessary to guarantee that
8410 the hard disk configuration may be restored at any time by a call to
8411 <link to="IMachine::discardSettings"/> before the settings
8412 are saved (committed).
8413
8414 Note that if <link to="IMachine::discardSettings"/> is called after
8415 indirectly attaching some hard disks to the machine but before a call to
8416 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8417 all differencing hard disks implicitly created by
8418 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8419 Such implicitly created hard disks will also be immediately deleted when
8420 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8421 call if it is made before <link to="IMachine::saveSettings"/>. This
8422 implicit deletion is safe because newly created differencing hard
8423 disks do not contain any user data.
8424
8425 However, keep in mind that detaching differencing hard disks that were
8426 implicitly created by <link to="IMachine::attachHardDisk"/>
8427 before the last <link to="IMachine::saveSettings"/> call will
8428 <b>not</b> implicitly delete them as they may already contain some data
8429 (for example, as a result of virtual machine execution). If these hard
8430 disks are no more necessary, the caller can always delete them explicitly
8431 using <link to="#deleteStorage"/> after they are actually de-associated
8432 from this machine by the <link to="IMachine::saveSettings"/> call.
8433
8434 <h3>Smart Attachment</h3>
8435
8436 When normal base or immutable hard disks are indirectly attached to a
8437 virtual machine then some additional steps are performed to make sure the
8438 virtual machine will have the most recent "view" of the hard disk being
8439 attached. These steps include walking through the machine's snapshots
8440 starting from the current one and going through ancestors up to the first
8441 snapshot. Hard disks attached to the virtual machine in all
8442 of the encountered snapshots are checked whether they are descendants of
8443 the given normal base or immutable hard disk. The first found child (which
8444 is the differencing hard disk) will be used instead of the normal base or
8445 immutable hard disk as a parent for creating a new differencing hard disk
8446 that will be actually attached to the machine. And only if no descendants
8447 are found or if the virtual machine does not have any snapshots then the
8448 normal base or immutable hard disk will be used itself as a parent for
8449 this differencing hard disk.
8450
8451 It is easier to explain what smart attachment does using the
8452 following example:
8453 <pre>
8454BEFORE attaching B.vdi: AFTER attaching B.vdi:
8455
8456Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8457 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8458 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8459 Snapshot 4 (none) Snapshot 4 (none)
8460 CurState (none) CurState (D3->D2.vdi)
8461
8462 NOT
8463 ...
8464 CurState (D3->B.vdi)
8465 </pre>
8466 The first column is the virtual machine configuration before the base hard
8467 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8468 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8469 mean that the hard disk that is actually attached to the machine is a
8470 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8471 another hard disk, <tt>B.vdi</tt>.
8472
8473 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8474 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8475 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8476 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8477 it cannot be attached directly and needs an indirect attachment (i.e.
8478 implicit creation of a new differencing hard disk). Due to the smart
8479 attachment procedure, the new differencing hard disk
8480 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8481 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8482 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8483 machine.
8484
8485 Note that if there is more than one descendant hard disk of the given base
8486 hard disk found in a snapshot, and there is an exact device, channel and
8487 bus match, then this exact match will be used. Otherwise, the youngest
8488 descendant will be picked up.
8489
8490 There is one more important aspect of the smart attachment procedure which
8491 is not related to snapshots at all. Before walking through the snapshots
8492 as described above, the backup copy of the current list of hard disk
8493 attachment is searched for descendants. This backup copy is created when
8494 the hard disk configuration is changed for the first time after the last
8495 <link to="IMachine::saveSettings"/> call and used by
8496 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8497 changes. When such a descendant is found in this backup copy, it will be
8498 simply re-attached back, without creating a new differencing hard disk for
8499 it. This optimization is necessary to make it possible to re-attach the
8500 base or immutable hard disk to a different bus, channel or device slot
8501 without losing the contents of the differencing hard disk actually
8502 attached to the machine in place of it.
8503 </desc>
8504
8505 <attribute name="format" type="wstring" readonly="yes">
8506 <desc>
8507 Storage format of this hard disk.
8508
8509 The value of this attribute is a string that specifies a backend used to
8510 store hard disk data. The storage format is defined when you create a
8511 new hard disk or automatically detected when you open an existing hard
8512 disk medium, and cannot be changed later.
8513
8514 The list of all storage formats supported by this VirtualBox
8515 installation can be obtained using
8516 <link to="ISystemProperties::hardDiskFormats"/>.
8517 </desc>
8518 </attribute>
8519
8520 <attribute name="type" type="HardDiskType">
8521 <desc>
8522 Type (role) of this hard disk.
8523
8524 The following constraints apply when changing the value of this
8525 attribute:
8526 <ul>
8527 <li>If a hard disk is attached to a virtual machine (either in the
8528 current state or in one of the snapshots), its type cannot be
8529 changed.
8530 </li>
8531 <li>As long as the hard disk has children, its type cannot be set
8532 to <link to="HardDiskType_Writethrough"/>.
8533 </li>
8534 <li>The type of all differencing hard disks is
8535 <link to="HardDiskType_Normal"/> and cannot be changed.
8536 </li>
8537 </ul>
8538
8539 The type of a newly created or opened hard disk is set to
8540 <link to="HardDiskType_Normal"/>.
8541 </desc>
8542 </attribute>
8543
8544 <attribute name="parent" type="IHardDisk" readonly="yes">
8545 <desc>
8546 Parent of this hard disk (a hard disk this hard disk is directly based
8547 on).
8548
8549 Only differencing hard disks have parents. For base (non-differencing)
8550 hard disks, <tt>null</tt> is returned.
8551 </desc>
8552 </attribute>
8553
8554 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8555 <desc>
8556 Children of this hard disk (all differencing hard disks directly based
8557 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8558 does not have any children.
8559 </desc>
8560 </attribute>
8561
8562 <attribute name="root" type="IHardDisk" readonly="yes">
8563 <desc>
8564 Root hard disk of this hard disk.
8565
8566 If this is a differencing hard disk, its root hard disk is the base hard
8567 disk the given hard disk branch starts from. For all other types of hard
8568 disks, this property returns the hard disk object itself (i.e. the same
8569 object this property is read on).
8570 </desc>
8571 </attribute>
8572
8573 <attribute name="readOnly" type="boolean" readonly="yes">
8574 <desc>
8575 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8576 otherwise.
8577
8578 A hard disk is considered to be read-only when its contents cannot be
8579 modified without breaking the integrity of other parties that depend on
8580 this hard disk such as its child hard disks or snapshots of virtual
8581 machines where this hard disk is attached to these machines. If there
8582 are no children and no such snapshots then there is no dependency and
8583 the hard disk is not read-only.
8584
8585 The value of this attribute can be used to determine the kind of the
8586 attachment that will take place when attaching this hard disk to a
8587 virtual machine. If the value is <tt>false</tt> then the hard disk will
8588 be attached directly. If the value is <tt>true</tt> then the hard disk
8589 will be attached indirectly by creating a new differencing child hard
8590 disk for that. See the interface description for more information.
8591
8592 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8593 disks are always read-only while all
8594 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8595 always not.
8596
8597 <note>
8598 The read-only condition represented by this attribute is related to
8599 the hard disk type and usage, not to the current
8600 <link to="IMedium::state">media state</link> and not to the read-only
8601 state of the storage unit.
8602 </note>
8603 </desc>
8604 </attribute>
8605
8606 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8607 <desc>
8608 Logical size of this hard disk (in megabytes), as reported to the
8609 guest OS running inside the virtual machine this disk is
8610 attached to. The logical size is defined when the hard disk is created
8611 and cannot be changed later.
8612
8613 <note>
8614 Reading this property on a differencing hard disk will return the size
8615 of its <link to="#root"/> hard disk.
8616 </note>
8617 <note>
8618 For hard disks whose state is <link to="#state"/> is <link
8619 to="MediaState_Inaccessible"/>, the value of this property is the
8620 last known logical size. For <link to="MediaState_NotCreated"/> hard
8621 disks, the returned value is zero.
8622 </note>
8623 </desc>
8624 </attribute>
8625
8626 <!-- storage methods -->
8627
8628 <method name="getProperty">
8629 <desc>
8630 Returns the value of the custom hard disk property with the given name.
8631
8632 The list of all properties supported by the given hard disk format can
8633 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8634
8635 Note that if this method returns a <tt>null</tt> @a value, the requested
8636 property is supported but currently not assigned any value.
8637
8638 <result name="VBOX_E_OBJECT_NOT_FOUND">
8639 Requested property does not exist (not supported by the format).
8640 </result>
8641 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8642 </desc>
8643 <param name="name" type="wstring" dir="in">
8644 <desc>Name of the property to get.</desc>
8645 </param>
8646 <param name="value" type="wstring" dir="return">
8647 <desc>Current property value.</desc>
8648 </param>
8649 </method>
8650
8651 <method name="setProperty">
8652 <desc>
8653 Sets the value of the custom hard disk property with the given name.
8654
8655 The list of all properties supported by the given hard disk format can
8656 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8657
8658 Note that setting the property value to <tt>null</tt> is equivalent to
8659 deleting the existing value. A default value (if it is defined for this
8660 property) will be used by the format backend in this case.
8661
8662 <result name="VBOX_E_OBJECT_NOT_FOUND">
8663 Requested property does not exist (not supported by the format).
8664 </result>
8665 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8666 </desc>
8667 <param name="name" type="wstring" dir="in">
8668 <desc>Name of the property to set.</desc>
8669 </param>
8670 <param name="value" type="wstring" dir="in">
8671 <desc>Property value to set.</desc>
8672 </param>
8673 </method>
8674
8675 <method name="getProperties">
8676 <desc>
8677 Returns values for a group of properties in one call.
8678
8679 The names of the properties to get are specified using the @a names
8680 argument which is a list of comma-separated property names or
8681 <tt>null</tt> if all properties are to be returned. Note that currently
8682 the value of this argument is ignored and the method always returns all
8683 existing properties.
8684
8685 The list of all properties supported by the given hard disk format can
8686 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8687
8688 The method returns two arrays, the array of property names corresponding
8689 to the @a names argument and the current values of these properties.
8690 Both arrays have the same number of elements with each elemend at the
8691 given index in the first array corresponds to an element at the same
8692 index in the second array.
8693
8694 Note that for properties that do not have assigned values,
8695 <tt>null</tt> is returned at the appropriate index in the @a
8696 returnValues array.
8697
8698 </desc>
8699 <param name="names" type="wstring" dir="in">
8700 <desc>
8701 Names of properties to get.
8702 </desc>
8703 </param>
8704 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8705 <desc>Names of returned properties.</desc>
8706 </param>
8707 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8708 <desc>Values of returned properties.</desc>
8709 </param>
8710 </method>
8711
8712 <method name="setProperties">
8713 <desc>
8714 Sets values for a group of properties in one call.
8715
8716 The names of the properties to set are passed in the @a names
8717 array along with the new values for them in the @a values array. Both
8718 arrays have the same number of elements with each elemend at the given
8719 index in the first array corresponding to an element at the same index
8720 in the second array.
8721
8722 If there is at least one property name in @a names that is not valid,
8723 the method will fail before changing the values of any other properties
8724 from the @a names array.
8725
8726 Using this method over <link to="#setProperty"/> is preferred if you
8727 need to set several properties at once since it will result into less
8728 IPC calls.
8729
8730 The list of all properties supported by the given hard disk format can
8731 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8732
8733 Note that setting the property value to <tt>null</tt> is equivalent to
8734 deleting the existing value. A default value (if it is defined for this
8735 property) will be used by the format backend in this case.
8736 </desc>
8737 <param name="names" type="wstring" safearray="yes" dir="in">
8738 <desc>Names of properties to set.</desc>
8739 </param>
8740 <param name="values" type="wstring" safearray="yes" dir="in">
8741 <desc>Values of properties to set.</desc>
8742 </param>
8743 </method>
8744
8745 <!-- storage methods -->
8746
8747 <method name="createDynamicStorage">
8748 <desc>
8749 Starts creating a dynamically expanding hard disk storage unit in the
8750 background. The previous storage unit created for this object, if
8751 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8752 the operation will fail.
8753
8754 Before the operation starts, the hard disk is placed in
8755 <link to="MediaState_Creating"/> state. If the create operation
8756 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8757 state.
8758
8759 After the returned progress object reports that the operation has
8760 successfully completed, the media state will be set to <link
8761 to="MediaState_Created"/>, the hard disk will be remembered by this
8762 VirtualBox installation and may be attached to virtual machines.
8763
8764 <result name="VBOX_E_NOT_SUPPORTED">
8765 Dynamic storage creation operation is not supported. See <link
8766 to="IHardDiskFormat::capabilities"/>.
8767 </result>
8768 </desc>
8769 <param name="logicalSize" type="unsigned long long" dir="in">
8770 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8771 </param>
8772 <param name="progress" type="IProgress" dir="return">
8773 <desc>Progress object to track the operation completion.</desc>
8774 </param>
8775 </method>
8776
8777 <method name="createFixedStorage">
8778 <desc>
8779 Starts creating a fixed-size hard disk storage unit in the background.
8780 The previous storage unit created for this object, if
8781 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8782 the operation will fail.
8783
8784 Before the operation starts, the hard disk is placed to
8785 <link to="MediaState_Creating"/> state. If the create operation
8786 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8787 state.
8788
8789 After the returned progress object reports that the operation is
8790 successfully complete, the media state will be set to <link
8791 to="MediaState_Created"/>, the hard disk will be remembered by this
8792 VirtualBox installation and may be attached to virtual machines.
8793
8794 <result name="VBOX_E_NOT_SUPPORTED">
8795 Fixed storage creation operation is not supported. See
8796 <link to="IHardDiskFormat::capabilities"/>.
8797 </result>
8798 </desc>
8799 <param name="logicalSize" type="unsigned long long" dir="in">
8800 <desc>Logical size of the hard disk in megabytes.</desc>
8801 </param>
8802 <param name="progress" type="IProgress" dir="return">
8803 <desc>Progress object to track the operation completion.</desc>
8804 </param>
8805 </method>
8806
8807 <method name="deleteStorage">
8808 <desc>
8809 Starts deleting the storage unit of this hard disk.
8810
8811 The hard disk must not be attached to any known virtual machine and must
8812 not have any known child hard disks, otherwise the operation will fail.
8813 It will also fail if there is no storage unit to delete or if deletion
8814 is already in progress, or if the hard disk is being in use (locked for
8815 read or for write) or inaccessible. Therefore, the only valid state for
8816 this operation to succeed is <link to="MediaState_Created"/>.
8817
8818 Before the operation starts, the hard disk is placed to
8819 <link to="MediaState_Deleting"/> state and gets removed from the list
8820 of remembered hard disks (media registry). If the delete operation
8821 fails, the media will be remembered again and placed back to
8822 <link to="MediaState_Created"/> state.
8823
8824 After the returned progress object reports that the operation is
8825 complete, the media state will be set to
8826 <link to="MediaState_NotCreated"/> and you will be able to use one of
8827 the storage creation methods to create it again.
8828
8829 <see>#close()</see>
8830
8831 <result name="VBOX_E_OBJECT_IN_USE">
8832 Hard disk is attached to a virtual machine.
8833 </result>
8834 <result name="VBOX_E_NOT_SUPPORTED">
8835 Storage deletion is not allowed because neither of storage creation
8836 operations are supported. See
8837 <link to="IHardDiskFormat::capabilities"/>.
8838 </result>
8839
8840 <note>
8841 If the deletion operation fails, it is not guaranteed that the storage
8842 unit still exists. You may check the <link to="IMedium::state"/> value
8843 to answer this question.
8844 </note>
8845 </desc>
8846 <param name="progress" type="IProgress" dir="return">
8847 <desc>Progress object to track the operation completion.</desc>
8848 </param>
8849 </method>
8850
8851 <!-- diff methods -->
8852
8853 <method name="createDiffStorage">
8854 <desc>
8855 Starts creating an empty differencing storage unit based on this hard
8856 disk in the format and at the location defined by the @a target
8857 argument.
8858
8859 The target hard disk must be in <link to="MediaState_NotCreated"/>
8860 state (i.e. must not have an existing storage unit). Upon successful
8861 completion, this operation will set the type of the target hard disk to
8862 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8863 represent the differencing hard disk data in the given format (according
8864 to the storage format of the target object).
8865
8866 After the returned progress object reports that the operation is
8867 successfully complete, the target hard disk gets remembered by this
8868 VirtualBox installation and may be attached to virtual machines.
8869
8870 <note>
8871 The hard disk will be set to <link to="MediaState_LockedRead"/>
8872 state for the duration of this operation.
8873 </note>
8874 <result name="VBOX_E_OBJECT_IN_USE">
8875 Hard disk not in NotCreated state.
8876 </result>
8877 </desc>
8878 <param name="target" type="IHardDisk" dir="in">
8879 <desc>Target hard disk.</desc>
8880 </param>
8881 <param name="progress" type="IProgress" dir="return">
8882 <desc>Progress object to track the operation completion.</desc>
8883 </param>
8884 </method>
8885
8886 <method name="mergeTo">
8887 <desc>
8888 Starts merging the contents of this hard disk and all intermediate
8889 differencing hard disks in the chain to the given target hard disk.
8890
8891 The target hard disk must be either a descendant of this hard disk or
8892 its ancestor (otherwise this method will immediately return a failure).
8893 It follows that there are two logical directions of the merge operation:
8894 from ancestor to descendant (<i>forward merge</i>) and from descendant to
8895 ancestor (<i>backward merge</i>). Let us consider the following hard disk
8896 chain:
8897
8898 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
8899
8900 Here, calling this method on the <tt>Base</tt> hard disk object with
8901 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
8902 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
8903 merge. Note that in both cases the contents of the resulting hard disk
8904 will be the same, the only difference is the hard disk object that takes
8905 the result of the merge operation. In case of the forward merge in the
8906 above example, the result will be written to <tt>Diff_2</tt>; in case of
8907 the backward merge, the result will be written to <tt>Base</tt>. In
8908 other words, the result of the operation is always stored in the target
8909 hard disk.
8910
8911 Upon successful operation completion, the storage units of all hard
8912 disks in the chain between this (source) hard disk and the target hard
8913 disk, including the source hard disk itself, will be automatically
8914 deleted and the relevant hard disk objects (including this hard disk)
8915 will become uninitialized. This means that any attempt to call any of
8916 their methods or attributes will fail with the
8917 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
8918 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
8919 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
8920 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
8921 disk itself since it will no longer be based on any other hard disk.
8922
8923 Considering the above, all of the following conditions must be met in
8924 order for the merge operation to succeed:
8925 <ul>
8926 <li>
8927 Neither this (source) hard disk nor any intermediate
8928 differencing hard disk in the chain between it and the target
8929 hard disk is attached to any virtual machine.
8930 </li>
8931 <li>
8932 Neither the source hard disk nor the target hard disk is an
8933 <link to="HardDiskType_Immutable"/> hard disk.
8934 </li>
8935 <li>
8936 The part of the hard disk tree from the source hard disk to the
8937 target hard disk is a linear chain, i.e. all hard disks in this
8938 chain have exactly one child which is the next hard disk in this
8939 chain. The only exception from this rule is the target hard disk in
8940 the forward merge operation; it is allowed to have any number of
8941 child hard disks because the merge operation will hot change its
8942 logical contents (as it is seen by the guest OS or by children).
8943 </li>
8944 <li>
8945 None of the involved hard disks are in
8946 <link to="MediaState_LockedRead"/> or
8947 <link to="MediaState_LockedWrite"/> state.
8948 </li>
8949 </ul>
8950
8951 <note>
8952 This (source) hard disk and all intermediates will be placed to <link
8953 to="MediaState_Deleting"/> state and the target hard disk will be
8954 placed to <link to="MediaState_LockedWrite"/> state and for the
8955 duration of this operation.
8956 </note>
8957 </desc>
8958 <param name="targetId" type="uuid" dir="in">
8959 <desc>UUID of the target ancestor or descendant hard disk.</desc>
8960 </param>
8961 <param name="progress" type="IProgress" dir="return">
8962 <desc>Progress object to track the operation completion.</desc>
8963 </param>
8964 </method>
8965
8966 <!-- clone methods -->
8967
8968 <method name="cloneTo">
8969 <desc>
8970 Starts creating a clone of this hard disk in the format and at the
8971 location defined by the @a target argument.
8972
8973 The target hard disk must be in <link to="MediaState_NotCreated"/>
8974 state (i.e. must not have an existing storage unit). Upon successful
8975 completion, the cloned hard disk will contain exactly the same sector
8976 data as the hard disk being cloned, except that a new UUID for the clone
8977 will be randomly generated.
8978
8979 After the returned progress object reports that the operation is
8980 successfully complete, the target hard disk gets remembered by this
8981 VirtualBox installation and may be attached to virtual machines.
8982
8983 <note>
8984 If the cloned hard disk is a differencing hard disk, it will inherit
8985 parent dependency of the original hard disk.
8986 </note>
8987 <note>
8988 This hard disk will be placed to <link to="MediaState_LockedRead"/>
8989 state for the duration of this operation.
8990 </note>
8991 </desc>
8992 <param name="target" type="IHardDisk" dir="in">
8993 <desc>Target hard disk.</desc>
8994 </param>
8995 <param name="progress" type="IProgress" dir="return">
8996 <desc>Progress object to track the operation completion.</desc>
8997 </param>
8998 </method>
8999
9000 <method name="flattenTo">
9001 <desc>
9002 Starts creating a deep (independent) clone of this hard disk in the
9003 format and at the location defined by the @a target argument.
9004
9005 This operation is similar to <link to="#cloneTo"/> except that when
9006 applied to a differencing hard disk, it will also copy missing hard disk
9007 data from all parent hard disks it is linked to. This will make the
9008 created clone an independent base hard disk that contains all hard disk
9009 data and does not need any other hard disks to operate.
9010
9011 After the returned progress object reports that the operation is
9012 successfully complete, the target hard disk gets remembered by this
9013 VirtualBox installation and may be attached to virtual machines.
9014
9015 <note>
9016 For base hard disks, this operation is identical to
9017 <link to="#cloneTo"/>.
9018 </note>
9019 <note>
9020 This hard disk and all its parent hard disks will be placed to <link
9021 to="MediaState_LockedRead"/> state for the duration of this
9022 operation.
9023 </note>
9024 </desc>
9025 <param name="target" type="IHardDisk" dir="in">
9026 <desc>Target hard disk.</desc>
9027 </param>
9028 <param name="progress" type="IProgress" dir="return">
9029 <desc>Progress object to track the operation completion.</desc>
9030 </param>
9031 </method>
9032
9033 <method name="compact">
9034 <desc>
9035 Starts compacting of this hard disk. This means that the disk is
9036 transformed into a possibly more compact storage representation.
9037 This potentially creates temporary images, which can require a
9038 substantial amount of additional disk space.
9039
9040 After the returned progress object reports that the operation is
9041 successfully complete, the media state will be set back to the
9042 current state.
9043
9044 <note>
9045 This hard disk and all its parent hard disks will be placed to <link
9046 to="MediaState_LockedRead"/> state for the duration of this
9047 operation.
9048 </note>
9049 </desc>
9050 <param name="progress" type="IProgress" dir="return">
9051 <desc>Progress object to track the operation completion.</desc>
9052 </param>
9053 </method>
9054
9055 </interface>
9056
9057
9058 <!--
9059 // IHardDiskFormat
9060 /////////////////////////////////////////////////////////////////////////
9061 -->
9062
9063 <enum
9064 name="DataType"
9065 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9066 >
9067 <const name="Int32" value="0"/>
9068 <const name="Int8" value="1"/>
9069 <const name="String" value="2"/>
9070 </enum>
9071
9072 <enum
9073 name="DataFlags"
9074 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9075 >
9076 <const name="None" value="0x00"/>
9077 <const name="Mandatory" value="0x01"/>
9078 <const name="Expert" value="0x02"/>
9079 <const name="Array" value="0x04"/>
9080 <const name="FlagMask" value="0x07"/>
9081 </enum>
9082
9083 <enum
9084 name="HardDiskFormatCapabilities"
9085 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9086 >
9087 <desc>
9088 Hard disk format capability flags.
9089 </desc>
9090
9091 <const name="Uuid" value="0x01">
9092 <desc>
9093 Supports UUIDs as expected by VirtualBox code.
9094 </desc>
9095 </const>
9096
9097 <const name="CreateFixed" value="0x02">
9098 <desc>
9099 Supports creating fixed size images, allocating all space instantly.
9100 </desc>
9101 </const>
9102
9103 <const name="CreateDynamic" value="0x04">
9104 <desc>
9105 Supports creating dynamically growing images, allocating space on
9106 demand.
9107 </desc>
9108 </const>
9109
9110 <const name="CreateSplit2G" value="0x08">
9111 <desc>
9112 Supports creating images split in chunks of a bit less than 2 GBytes.
9113 </desc>
9114 </const>
9115
9116 <const name="Differencing" value="0x10">
9117 <desc>
9118 Supports being used as a format for differencing hard disks (see <link
9119 to="IHardDisk::createDiffStorage"/>).
9120 </desc>
9121 </const>
9122
9123 <const name="Asynchronous" value="0x20">
9124 <desc>
9125 Supports asynchronous I/O operations for at least some configurations.
9126 </desc>
9127 </const>
9128
9129 <const name="File" value="0x40">
9130 <desc>
9131 The format backend operates on files (the <link to="IMedium::location"/>
9132 attribute of the hard disk specifies a file used to store hard disk
9133 data; for a list of supported file extensions see
9134 <link to="IHardDiskFormat::fileExtensions"/>).
9135 </desc>
9136 </const>
9137
9138 <const name="Properties" value="0x80">
9139 <desc>
9140 The format backend uses the property interface to configure the storage
9141 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9142 method is used to get access to properties supported by the given hard
9143 disk format).
9144 </desc>
9145 </const>
9146
9147 <const name="CapabilityMask" value="0xFF"/>
9148 </enum>
9149
9150 <interface
9151 name="IHardDiskFormat" extends="$unknown"
9152 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9153 wsmap="managed"
9154 >
9155 <desc>
9156 The IHardDiskFormat interface represents a virtual hard disk format.
9157
9158 Each hard disk format has an associated backend which is used to handle
9159 hard disks stored in this format. This interface provides information
9160 about the properties of the associated backend.
9161
9162 Each hard disk format is identified by a string represented by the
9163 <link to="#id"/> attribute. This string is used in calls like
9164 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9165 format.
9166
9167 The list of all supported hard disk formats can be obtained using
9168 <link to="ISystemProperties::hardDiskFormats"/>.
9169
9170 <see>IHardDisk</see>
9171 </desc>
9172
9173 <attribute name="id" type="wstring" readonly="yes">
9174 <desc>
9175 Identifier of this format.
9176
9177 The format identifier is a non-null non-empty ASCII string. Note that
9178 this string is case-insensitive. This means that, for example, all of
9179 the following strings:
9180 <pre>
9181 "VDI"
9182 "vdi"
9183 "VdI"</pre>
9184 refer to the same hard disk format.
9185
9186 This string is used in methods of other interfaces where it is necessary
9187 to specify a hard disk format, such as
9188 <link to="IVirtualBox::createHardDisk"/>.
9189 </desc>
9190 </attribute>
9191
9192 <attribute name="name" type="wstring" readonly="yes">
9193 <desc>
9194 Human readable description of this format.
9195
9196 Mainly for use in file open dialogs.
9197 </desc>
9198 </attribute>
9199
9200 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9201 <desc>
9202 Array of strings containing the supported file extensions.
9203
9204 The first extension in the array is the extension preferred by the
9205 backend. It is recommended to use this extension when specifying a
9206 location of the storage unit for a new hard disk.
9207
9208 Note that some backends do not work on files, so this array may be
9209 empty.
9210
9211 <see>IHardDiskFormat::capabilities</see>
9212 </desc>
9213 </attribute>
9214
9215 <attribute name="capabilities" type="unsigned long" readonly="yes">
9216 <desc>
9217 Capabilities of the format as a set of bit flags.
9218
9219 For the meaning of individual capability flags see
9220 <link to="HardDiskFormatCapabilities"/>.
9221 </desc>
9222 </attribute>
9223
9224 <method name="describeProperties">
9225 <desc>
9226 Returns several arrays describing the properties supported by this
9227 format.
9228
9229 An element with the given index in each array describes one
9230 property. Thus, the number of elements in each returned array is the
9231 same and corresponds to the number of supported properties.
9232
9233 The returned arrays are filled in only if the
9234 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9235 All arguments must be non-NULL.
9236
9237 <see>DataType</see>
9238 <see>DataFlags</see>
9239 </desc>
9240
9241 <param name="names" type="wstring" safearray="yes" dir="out">
9242 <desc>Array of property names.</desc>
9243 </param>
9244 <param name="description" type="wstring" safearray="yes" dir="out">
9245 <desc>Array of property descriptions.</desc>
9246 </param>
9247 <param name="types" type="DataType" safearray="yes" dir="out">
9248 <desc>Array of property types.</desc>
9249 </param>
9250 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9251 <desc>Array of property flags.</desc>
9252 </param>
9253 <param name="defaults" type="wstring" safearray="yes" dir="out">
9254 <desc>Array of default property values.</desc>
9255 </param>
9256 </method>
9257
9258 </interface>
9259
9260
9261 <!--
9262 // IFloppyImage
9263 /////////////////////////////////////////////////////////////////////////
9264 -->
9265
9266 <interface
9267 name="IFloppyImage" extends="IMedium"
9268 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9269 wsmap="managed"
9270 >
9271 <desc>
9272 The IFloppyImage interface represents a medium containing the image
9273 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9274 </desc>
9275
9276 </interface>
9277
9278
9279 <!--
9280 // IDVDImage
9281 /////////////////////////////////////////////////////////////////////////
9282 -->
9283
9284 <interface
9285 name="IDVDImage" extends="IMedium"
9286 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9287 wsmap="managed"
9288 >
9289 <desc>
9290 The IDVDImage interface represents a medium containing the image
9291 of a CD or DVD disk in the ISO format.
9292
9293 This is a subclass of <link to="IMedium" />; see remarks there.
9294 </desc>
9295
9296 </interface>
9297
9298
9299 <!--
9300 // IDVDDrive
9301 /////////////////////////////////////////////////////////////////////////
9302 -->
9303
9304 <interface
9305 name="IDVDDrive" extends="$unknown"
9306 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9307 wsmap="managed"
9308 >
9309 <desc>
9310 The IDVDDrive interface represents the virtual CD/DVD drive of the
9311 virtual machine. An object of this type is returned by
9312 <link to="IMachine::DVDDrive"/>.
9313 </desc>
9314
9315 <attribute name="state" type="DriveState" readonly="yes">
9316 <desc>Current drive state.</desc>
9317 </attribute>
9318
9319 <attribute name="passthrough" type="boolean">
9320 <desc>
9321 When a host drive is mounted and passthrough is enabled
9322 the guest OS will be able to directly send SCSI commands to
9323 the host drive. This enables the guest OS to use CD/DVD writers
9324 but is potentially dangerous.
9325 </desc>
9326 </attribute>
9327
9328 <method name="mountImage">
9329 <desc>Mounts a CD/DVD image with the specified UUID.
9330
9331 <result name="VBOX_E_FILE_ERROR">
9332 Invalid image file location.
9333 </result>
9334 <result name="VBOX_E_OBJECT_NOT_FOUND">
9335 Could not find a CD/DVD image matching @a imageID.
9336 </result>
9337 <result name="VBOX_E_INVALID_OBJECT_STATE">
9338 Invalid media state.
9339 </result>
9340
9341 </desc>
9342 <param name="imageId" type="uuid" dir="in"/>
9343 </method>
9344
9345 <method name="captureHostDrive">
9346 <desc>Captures the specified host CD/DVD drive.</desc>
9347 <param name="drive" type="IHostDVDDrive" dir="in"/>
9348 </method>
9349
9350 <method name="unmount">
9351 <desc>Unmounts the currently mounted image or host drive.</desc>
9352 </method>
9353
9354 <method name="getImage">
9355 <desc>Returns the currently mounted CD/DVD image.</desc>
9356 <param name="image" type="IDVDImage" dir="return"/>
9357 </method>
9358
9359 <method name="getHostDrive">
9360 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9361 <param name="drive" type="IHostDVDDrive" dir="return"/>
9362 </method>
9363
9364 </interface>
9365
9366
9367 <!--
9368 // IFloppyDrive
9369 /////////////////////////////////////////////////////////////////////////
9370 -->
9371
9372 <interface
9373 name="IFloppyDrive" extends="$unknown"
9374 uuid="159412cd-bab8-452e-8097-218a020825a6"
9375 wsmap="managed"
9376 >
9377 <desc>
9378 The IFloppyDrive interface represents the virtual floppy drive of the
9379 virtual machine. An object of this type is returned by
9380 <link to="IMachine::floppyDrive" />.
9381 </desc>
9382
9383 <attribute name="enabled" type="boolean">
9384 <desc>
9385 Flag whether the floppy drive is enabled. If it is disabled,
9386 the floppy drive will not be reported to the guest OS.
9387 </desc>
9388 </attribute>
9389
9390 <attribute name="state" type="DriveState" readonly="yes">
9391 <desc>Current drive state.</desc>
9392 </attribute>
9393
9394 <method name="mountImage">
9395 <desc>Mounts a floppy image with the specified UUID.
9396
9397 <result name="VBOX_E_FILE_ERROR">
9398 Invalid image file location.
9399 </result>
9400 <result name="VBOX_E_OBJECT_NOT_FOUND">
9401 Could not find a floppy image matching @a imageID.
9402 </result>
9403 <result name="VBOX_E_INVALID_OBJECT_STATE">
9404 Invalid media state.
9405 </result>
9406
9407 </desc>
9408 <param name="imageId" type="uuid" dir="in"/>
9409 </method>
9410
9411 <method name="captureHostDrive">
9412 <desc>Captures the specified host floppy drive.</desc>
9413 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9414 </method>
9415
9416 <method name="unmount">
9417 <desc>Unmounts the currently mounted image or host drive.</desc>
9418 </method>
9419
9420 <method name="getImage">
9421 <desc>Returns the currently mounted floppy image.</desc>
9422 <param name="image" type="IFloppyImage" dir="return"/>
9423 </method>
9424
9425 <method name="getHostDrive">
9426 <desc>Returns the currently mounted host floppy drive.</desc>
9427 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9428 </method>
9429
9430 </interface>
9431
9432
9433 <!--
9434 // IKeyboard
9435 /////////////////////////////////////////////////////////////////////////
9436 -->
9437
9438 <interface
9439 name="IKeyboard" extends="$unknown"
9440 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9441 wsmap="managed"
9442 >
9443 <desc>
9444 The IKeyboard interface represents the virtual machine's keyboard. Used
9445 in <link to="IConsole::keyboard"/>.
9446
9447 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9448 to the virtual machine.
9449
9450 </desc>
9451 <method name="putScancode">
9452 <desc>Sends a scancode to the keyboard.
9453
9454 <result name="VBOX_E_IPRT_ERROR">
9455 Could not send scan code to virtual keyboard.
9456 </result>
9457
9458 </desc>
9459 <param name="scancode" type="long" dir="in"/>
9460 </method>
9461
9462 <method name="putScancodes">
9463 <desc>Sends an array of scancodes to the keyboard.
9464
9465 <result name="VBOX_E_IPRT_ERROR">
9466 Could not send all scan codes to virtual keyboard.
9467 </result>
9468
9469 </desc>
9470 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9471 <param name="codesStored" type="unsigned long" dir="return"/>
9472 </method>
9473
9474 <method name="putCAD">
9475 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9476 function is nothing special, it is just a convenience function
9477 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9478
9479 <result name="VBOX_E_IPRT_ERROR">
9480 Could not send all scan codes to virtual keyboard.
9481 </result>
9482
9483 </desc>
9484 </method>
9485
9486 </interface>
9487
9488
9489 <!--
9490 // IMouse
9491 /////////////////////////////////////////////////////////////////////////
9492 -->
9493
9494 <enum
9495 name="MouseButtonState"
9496 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9497 >
9498 <desc>
9499 Mouse button state.
9500 </desc>
9501
9502 <const name="LeftButton" value="0x01"/>
9503 <const name="RightButton" value="0x02"/>
9504 <const name="MiddleButton" value="0x04"/>
9505 <const name="WheelUp" value="0x08"/>
9506 <const name="WheelDown" value="0x10"/>
9507 <const name="MouseStateMask" value="0x1F"/>
9508 </enum>
9509
9510 <interface
9511 name="IMouse" extends="$unknown"
9512 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9513 wsmap="managed"
9514 >
9515 <desc>
9516 The IMouse interface represents the virtual machine's mouse. Used in
9517 <link to="IConsole::mouse"/>.
9518
9519 Through this interface, the virtual machine's virtual mouse can be
9520 controlled.
9521 </desc>
9522
9523 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9524 <desc>
9525 Whether the guest OS supports absolute mouse pointer positioning
9526 or not.
9527 <note>
9528 VirtualBox Guest Tools need to be installed to the guest OS
9529 in order to enable absolute mouse positioning support.
9530 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9531 callback to be instantly informed about changes of this attribute
9532 during virtual machine execution.
9533 </note>
9534 <see><link to="#putMouseEventAbsolute"/></see>
9535 </desc>
9536 </attribute>
9537
9538 <method name="putMouseEvent">
9539 <desc>
9540 Initiates a mouse event using relative pointer movements
9541 along x and y axis.
9542
9543 <result name="E_ACCESSDENIED">
9544 Console not powered up.
9545 </result>
9546 <result name="VBOX_E_IPRT_ERROR">
9547 Could not send mouse event to virtual mouse.
9548 </result>
9549
9550 </desc>
9551
9552 <param name="dx" type="long" dir="in">
9553 <desc>
9554 Amount of pixels the mouse should move to the right.
9555 Negative values move the mouse to the left.
9556 </desc>
9557 </param>
9558 <param name="dy" type="long" dir="in">
9559 <desc>
9560 Amount of pixels the mouse should move downwards.
9561 Negative values move the mouse upwards.
9562 </desc>
9563 </param>
9564 <param name="dz" type="long" dir="in">
9565 <desc>
9566 Amount of mouse wheel moves.
9567 Positive values describe clockwise wheel rotations,
9568 negative values describe counterclockwise rotations.
9569 </desc>
9570 </param>
9571 <param name="buttonState" type="long" dir="in">
9572 <desc>
9573 The current state of mouse buttons. Every bit represents
9574 a mouse button as follows:
9575 <table>
9576 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9577 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9578 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9579 </table>
9580 A value of <tt>1</tt> means the corresponding button is pressed.
9581 otherwise it is released.
9582 </desc>
9583 </param>
9584 </method>
9585
9586 <method name="putMouseEventAbsolute">
9587 <desc>
9588 Positions the mouse pointer using absolute x and y coordinates.
9589 These coordinates are expressed in pixels and
9590 start from <tt>[1,1]</tt> which corresponds to the top left
9591 corner of the virtual display.
9592
9593 <result name="E_ACCESSDENIED">
9594 Console not powered up.
9595 </result>
9596 <result name="VBOX_E_IPRT_ERROR">
9597 Could not send mouse event to virtual mouse.
9598 </result>
9599
9600 <note>
9601 This method will have effect only if absolute mouse
9602 positioning is supported by the guest OS.
9603 </note>
9604
9605 <see><link to="#absoluteSupported"/></see>
9606 </desc>
9607
9608 <param name="x" type="long" dir="in">
9609 <desc>
9610 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9611 </desc>
9612 </param>
9613 <param name="y" type="long" dir="in">
9614 <desc>
9615 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9616 </desc>
9617 </param>
9618 <param name="dz" type="long" dir="in">
9619 <desc>
9620 Amount of mouse wheel moves.
9621 Positive values describe clockwise wheel rotations,
9622 negative values describe counterclockwise rotations.
9623 </desc>
9624 </param>
9625 <param name="buttonState" type="long" dir="in">
9626 <desc>
9627 The current state of mouse buttons. Every bit represents
9628 a mouse button as follows:
9629 <table>
9630 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9631 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9632 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9633 </table>
9634 A value of <tt>1</tt> means the corresponding button is pressed.
9635 otherwise it is released.
9636 </desc>
9637 </param>
9638 </method>
9639
9640 </interface>
9641
9642 <!--
9643 // IDisplay
9644 /////////////////////////////////////////////////////////////////////////
9645 -->
9646
9647 <enum
9648 name="FramebufferAccelerationOperation"
9649 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9650 >
9651 <desc>
9652 Frame buffer acceleration operation.
9653 </desc>
9654
9655 <const name="SolidFillAcceleration" value="1"/>
9656 <const name="ScreenCopyAcceleration" value="2"/>
9657 </enum>
9658
9659 <enum
9660 name="FramebufferPixelFormat"
9661 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9662 >
9663 <desc>
9664 Format of the video memory buffer. Constants represented by this enum can
9665 be used to test for particular values of <link
9666 to="IFramebuffer::pixelFormat"/>. See also <link
9667 to="IFramebuffer::requestResize"/>.
9668
9669 See also www.fourcc.org for more information about FOURCC pixel formats.
9670 </desc>
9671
9672 <const name="Opaque" value="0">
9673 <desc>
9674 Unknown buffer format (the user may not assume any particular format of
9675 the buffer).
9676 </desc>
9677 </const>
9678 <const name="FOURCC_RGB" value="0x32424752">
9679 <desc>
9680 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9681 bit layout).
9682 </desc>
9683 </const>
9684 </enum>
9685
9686 <interface
9687 name="IFramebuffer" extends="$unknown"
9688 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9689 wsmap="suppress"
9690 >
9691 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9692 <desc>Address of the start byte of the frame buffer.</desc>
9693 </attribute>
9694
9695 <attribute name="width" type="unsigned long" readonly="yes">
9696 <desc>Frame buffer width, in pixels.</desc>
9697 </attribute>
9698
9699 <attribute name="height" type="unsigned long" readonly="yes">
9700 <desc>Frame buffer height, in pixels.</desc>
9701 </attribute>
9702
9703 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9704 <desc>
9705 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9706 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9707 are: 8, 15, 16, 24 and 32.
9708 </desc>
9709 </attribute>
9710
9711 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9712 <desc>
9713 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9714 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9715 size of the scan line must be aligned to 32 bits.
9716 </desc>
9717 </attribute>
9718
9719 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9720 <desc>
9721 Frame buffer pixel format. It's either one of the values defined by <link
9722 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9723 <note>
9724 This attribute must never return <link
9725 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9726 <link to="#address"/> points to must be always known.
9727 </note>
9728 </desc>
9729 </attribute>
9730
9731 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9732 <desc>
9733 Defines whether this frame buffer uses the virtual video card's memory
9734 buffer (guest VRAM) directly or not. See <link
9735 to="IFramebuffer::requestResize"/> for more information.
9736 </desc>
9737 </attribute>
9738
9739 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9740 <desc>
9741 Hint from the frame buffer about how much of the standard
9742 screen height it wants to use for itself. This information is
9743 exposed to the guest through the VESA BIOS and VMMDev interface
9744 so that it can use it for determining its video mode table. It
9745 is not guaranteed that the guest respects the value.
9746 </desc>
9747 </attribute>
9748
9749 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9750 <desc>
9751 An alpha-blended overlay which is superposed over the frame buffer.
9752 The initial purpose is to allow the display of icons providing
9753 information about the VM state, including disk activity, in front
9754 ends which do not have other means of doing that. The overlay is
9755 designed to controlled exclusively by IDisplay. It has no locking
9756 of its own, and any changes made to it are not guaranteed to be
9757 visible until the affected portion of IFramebuffer is updated. The
9758 overlay can be created lazily the first time it is requested. This
9759 attribute can also return NULL to signal that the overlay is not
9760 implemented.
9761 </desc>
9762 </attribute>
9763
9764 <attribute name="winId" type="unsigned long long" readonly="yes">
9765 <desc>
9766 Platform-dependent identifier of the window where context of this
9767 frame buffer is drawn, or zero if there's no such window.
9768 </desc>
9769 </attribute>
9770
9771 <method name="lock">
9772 <desc>
9773 Locks the frame buffer.
9774 Gets called by the IDisplay object where this frame buffer is
9775 bound to.
9776 </desc>
9777 </method>
9778
9779 <method name="unlock">
9780 <desc>
9781 Unlocks the frame buffer.
9782 Gets called by the IDisplay object where this frame buffer is
9783 bound to.
9784 </desc>
9785 </method>
9786
9787 <method name="notifyUpdate">
9788 <desc>
9789 Informs about an update.
9790 Gets called by the display object where this buffer is
9791 registered.
9792 </desc>
9793 <param name="x" type="unsigned long" dir="in"/>
9794 <param name="y" type="unsigned long" dir="in"/>
9795 <param name="width" type="unsigned long" dir="in"/>
9796 <param name="height" type="unsigned long" dir="in"/>
9797 <param name="finished" type="boolean" dir="return"/>
9798 </method>
9799
9800 <method name="requestResize">
9801 <desc>
9802 Requests a size and pixel format change.
9803
9804 There are two modes of working with the video buffer of the virtual
9805 machine. The <i>indirect</i> mode implies that the IFramebuffer
9806 implementation allocates a memory buffer for the requested display mode
9807 and provides it to the virtual machine. In <i>direct</i> mode, the
9808 IFramebuffer implementation uses the memory buffer allocated and owned
9809 by the virtual machine. This buffer represents the video memory of the
9810 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9811 usually faster because the implementation gets a raw pointer to the
9812 guest VRAM buffer which it can directly use for visualizing the contents
9813 of the virtual display, as opposed to the indirect mode where the
9814 contents of guest VRAM are copied to the memory buffer provided by
9815 the implementation every time a display update occurs.
9816
9817 It is important to note that the direct mode is really fast only when
9818 the implementation uses the given guest VRAM buffer directly, for
9819 example, by blitting it to the window representing the virtual machine's
9820 display, which saves at least one copy operation comparing to the
9821 indirect mode. However, using the guest VRAM buffer directly is not
9822 always possible: the format and the color depth of this buffer may be
9823 not supported by the target window, or it may be unknown (opaque) as in
9824 case of text or non-linear multi-plane VGA video modes. In this case,
9825 the indirect mode (that is always available) should be used as a
9826 fallback: when the guest VRAM contents are copied to the
9827 implementation-provided memory buffer, color and format conversion is
9828 done automatically by the underlying code.
9829
9830 The @a pixelFormat parameter defines whether the direct mode is
9831 available or not. If @a pixelFormat is <link
9832 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9833 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
9834 bytesPerLine parameters must be ignored and the implementation must use
9835 the indirect mode (where it provides its own buffer in one of the
9836 supported formats). In all other cases, @a pixelFormat together with @a
9837 bitsPerPixel and @a bytesPerLine define the format of the video memory
9838 buffer pointed to by the @a VRAM parameter and the implementation is
9839 free to choose which mode to use. To indicate that this frame buffer uses
9840 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9841 attribute must return <tt>true</tt> and <link to="#address"/> must
9842 return exactly the same address that is passed in the @a VRAM parameter
9843 of this method; otherwise it is assumed that the indirect strategy is
9844 chosen.
9845
9846 The @a width and @a height parameters represent the size of the
9847 requested display mode in both modes. In case of indirect mode, the
9848 provided memory buffer should be big enough to store data of the given
9849 display mode. In case of direct mode, it is guaranteed that the given @a
9850 VRAM buffer contains enough space to represent the display mode of the
9851 given size. Note that this frame buffer's <link to="#width"/> and <link
9852 to="#height"/> attributes must return exactly the same values as
9853 passed to this method after the resize is completed (see below).
9854
9855 The @a finished output parameter determines if the implementation has
9856 finished resizing the frame buffer or not. If, for some reason, the
9857 resize cannot be finished immediately during this call, @a finished
9858 must be set to @c false, and the implementation must call
9859 <link to="IDisplay::resizeCompleted"/> after it has returned from
9860 this method as soon as possible. If @a finished is @c false, the
9861 machine will not call any frame buffer methods until
9862 <link to="IDisplay::resizeCompleted"/> is called.
9863
9864 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
9865 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
9866 this frame buffer must return exactly the same values as specified in the
9867 parameters of this method, after the resize is completed. If the
9868 indirect mode is chosen, these attributes must return values describing
9869 the format of the implementation's own memory buffer <link
9870 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
9871 value must always correlate with <link to="#pixelFormat"/>. Note that
9872 the <link to="#pixelFormat"/> attribute must never return <link
9873 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
9874
9875 <note>
9876 This method is called by the IDisplay object under the
9877 <link to="#lock"/> provided by this IFramebuffer
9878 implementation. If this method returns @c false in @a finished, then
9879 this lock is not released until
9880 <link to="IDisplay::resizeCompleted"/> is called.
9881 </note>
9882 </desc>
9883 <param name="screenId" type="unsigned long" dir="in">
9884 <desc>
9885 Logical screen number. Must be used in the corresponding call to
9886 <link to="IDisplay::resizeCompleted"/> if this call is made.
9887 </desc>
9888 </param>
9889 <param name="pixelFormat" type="unsigned long" dir="in">
9890 <desc>
9891 Pixel format of the memory buffer pointed to by @a VRAM.
9892 See also <link to="FramebufferPixelFormat"/>.
9893 </desc>
9894 </param>
9895 <param name="VRAM" type="octet" mod="ptr" dir="in">
9896 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
9897 </param>
9898 <param name="bitsPerPixel" type="unsigned long" dir="in">
9899 <desc>Color depth, bits per pixel.</desc>
9900 </param>
9901 <param name="bytesPerLine" type="unsigned long" dir="in">
9902 <desc>Size of one scan line, in bytes.</desc>
9903 </param>
9904 <param name="width" type="unsigned long" dir="in">
9905 <desc>Width of the guest display, in pixels.</desc>
9906 </param>
9907 <param name="height" type="unsigned long" dir="in">
9908 <desc>Height of the guest display, in pixels.</desc>
9909 </param>
9910 <param name="finished" type="boolean" dir="return">
9911 <desc>
9912 Can the VM start using the new frame buffer immediately
9913 after this method returns or it should wait for
9914 <link to="IDisplay::resizeCompleted"/>.
9915 </desc>
9916 </param>
9917 </method>
9918
9919 <method name="operationSupported">
9920 <desc>
9921 Returns whether the given acceleration operation is supported
9922 by the IFramebuffer implementation. If not, the display object
9923 will not attempt to call the corresponding IFramebuffer entry
9924 point. Even if an operation is indicated as supported, the
9925 IFramebuffer implementation always has the option to return non
9926 supported from the corresponding acceleration method in which
9927 case the operation will be performed by the display engine. This
9928 allows for reduced IFramebuffer implementation complexity where
9929 only common cases are handled.
9930 </desc>
9931 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
9932 <param name="supported" type="boolean" dir="return"/>
9933 </method>
9934
9935 <method name="videoModeSupported">
9936 <desc>
9937 Returns whether the frame buffer implementation is willing to
9938 support a given video mode. In case it is not able to render
9939 the video mode (or for some reason not willing), it should
9940 return false. Usually this method is called when the guest
9941 asks the VMM device whether a given video mode is supported
9942 so the information returned is directly exposed to the guest.
9943 It is important that this method returns very quickly.
9944 </desc>
9945 <param name="width" type="unsigned long" dir="in"/>
9946 <param name="height" type="unsigned long" dir="in"/>
9947 <param name="bpp" type="unsigned long" dir="in"/>
9948 <param name="supported" type="boolean" dir="return"/>
9949 </method>
9950
9951 <method name="solidFill">
9952 <desc>
9953 Fills the specified rectangle on screen with a solid color.
9954 </desc>
9955 <param name="x" type="unsigned long" dir="in"/>
9956 <param name="y" type="unsigned long" dir="in"/>
9957 <param name="width" type="unsigned long" dir="in"/>
9958 <param name="height" type="unsigned long" dir="in"/>
9959 <param name="color" type="unsigned long" dir="in"/>
9960 <param name="handled" type="boolean" dir="return"/>
9961 </method>
9962
9963 <method name="copyScreenBits">
9964 <desc>
9965 Copies specified rectangle on the screen.
9966 </desc>
9967 <param name="xDst" type="unsigned long" dir="in"/>
9968 <param name="yDst" type="unsigned long" dir="in"/>
9969 <param name="xSrc" type="unsigned long" dir="in"/>
9970 <param name="ySrc" type="unsigned long" dir="in"/>
9971 <param name="width" type="unsigned long" dir="in"/>
9972 <param name="height" type="unsigned long" dir="in"/>
9973 <param name="handled" type="boolean" dir="return"/>
9974 </method>
9975
9976 <method name="getVisibleRegion">
9977 <desc>
9978 Returns the visible region of this frame buffer.
9979
9980 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
9981 @a count parameter is ignored and the number of elements necessary to
9982 describe the current visible region is returned in @a countCopied.
9983
9984 If @a rectangles is not <tt>NULL</tt> but @a count is less
9985 than the required number of elements to store region data, the method
9986 will report a failure. If @a count is equal or greater than the
9987 required number of elements, then the actual number of elements copied
9988 to the provided array will be returned in @a countCopied.
9989
9990 <note>
9991 The address of the provided array must be in the process space of
9992 this IFramebuffer object.
9993 </note>
9994 <note>
9995 Method not yet implemented.
9996 </note>
9997 </desc>
9998 <param name="rectangles" type="octet" mod="ptr" dir="in">
9999 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10000 </param>
10001 <param name="count" type="unsigned long" dir="in">
10002 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10003 </param>
10004 <param name="countCopied" type="unsigned long" dir="return">
10005 <desc>Number of elements copied to the @a rectangles array.</desc>
10006 </param>
10007 </method>
10008
10009 <method name="setVisibleRegion">
10010 <desc>
10011 Suggests a new visible region to this frame buffer. This region
10012 represents the area of the VM display which is a union of regions of
10013 all top-level windows of the guest operating system running inside the
10014 VM (if the Guest Additions for this system support this
10015 functionality). This information may be used by the frontends to
10016 implement the seamless desktop integration feature.
10017
10018 <note>
10019 The address of the provided array must be in the process space of
10020 this IFramebuffer object.
10021 </note>
10022 <note>
10023 The IFramebuffer implementation must make a copy of the provided
10024 array of rectangles.
10025 </note>
10026 <note>
10027 Method not yet implemented.
10028 </note>
10029 </desc>
10030 <param name="rectangles" type="octet" mod="ptr" dir="in">
10031 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10032 </param>
10033 <param name="count" type="unsigned long" dir="in">
10034 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10035 </param>
10036 </method>
10037
10038 </interface>
10039
10040 <interface
10041 name="IFramebufferOverlay" extends="IFramebuffer"
10042 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10043 wsmap="suppress"
10044 >
10045 <desc>
10046 The IFramebufferOverlay interface represents an alpha blended overlay
10047 for displaying status icons above an IFramebuffer. It is always created
10048 not visible, so that it must be explicitly shown. It only covers a
10049 portion of the IFramebuffer, determined by its width, height and
10050 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10051 that order) format, and may be written to directly. Do re-read the
10052 width though, after setting it, as it may be adjusted (increased) to
10053 make it more suitable for the front end.
10054 </desc>
10055 <attribute name="x" type="unsigned long" readonly="yes">
10056 <desc>X position of the overlay, relative to the frame buffer.</desc>
10057 </attribute>
10058
10059 <attribute name="y" type="unsigned long" readonly="yes">
10060 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10061 </attribute>
10062
10063 <attribute name="visible" type="boolean" readonly="no">
10064 <desc>
10065 Whether the overlay is currently visible.
10066 </desc>
10067 </attribute>
10068
10069 <attribute name="alpha" type="unsigned long" readonly="no">
10070 <desc>
10071 The global alpha value for the overlay. This may or may not be
10072 supported by a given front end.
10073 </desc>
10074 </attribute>
10075
10076 <method name="move">
10077 <desc>
10078 Changes the overlay's position relative to the IFramebuffer.
10079 </desc>
10080 <param name="x" type="unsigned long" dir="in"/>
10081 <param name="y" type="unsigned long" dir="in"/>
10082 </method>
10083
10084 </interface>
10085
10086 <interface
10087 name="IDisplay" extends="$unknown"
10088 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10089 wsmap="suppress"
10090 >
10091 <desc>
10092 The IDisplay interface represents the virtual machine's display.
10093
10094 The object implementing this interface is contained in each
10095 <link to="IConsole::display"/> attribute and represents the visual
10096 output of the virtual machine.
10097
10098 The virtual display supports pluggable output targets represented by the
10099 IFramebuffer interface. Examples of the output target are a window on
10100 the host computer or an RDP session's display on a remote computer.
10101 </desc>
10102 <attribute name="width" type="unsigned long" readonly="yes">
10103 <desc>Current display width.</desc>
10104 </attribute>
10105
10106 <attribute name="height" type="unsigned long" readonly="yes">
10107 <desc>Current display height.</desc>
10108 </attribute>
10109
10110 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10111 <desc>
10112 Current guest display color depth. Note that this may differ
10113 from <link to="IFramebuffer::bitsPerPixel"/>.
10114 </desc>
10115 </attribute>
10116
10117 <method name="setupInternalFramebuffer">
10118 <desc>
10119 Prepares an internally managed frame buffer.
10120 </desc>
10121 <param name="depth" type="unsigned long" dir="in"/>
10122 </method>
10123
10124 <method name="lockFramebuffer">
10125 <desc>
10126 Requests access to the internal frame buffer.
10127
10128 <result name="VBOX_E_NOT_SUPPORTED">
10129 Attempt to lock a non-internal frame buffer.
10130 </result>
10131
10132 </desc>
10133 <param name="address" type="octet" mod="ptr" dir="return"/>
10134 </method>
10135
10136 <method name="unlockFramebuffer">
10137 <desc>
10138 Releases access to the internal frame buffer.
10139
10140 <result name="VBOX_E_NOT_SUPPORTED">
10141 Attempt to unlock a non-internal frame buffer.
10142 </result>
10143
10144 </desc>
10145 </method>
10146
10147 <method name="registerExternalFramebuffer">
10148 <desc>
10149 Registers an external frame buffer.
10150 </desc>
10151 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10152 </method>
10153
10154 <method name="setFramebuffer">
10155 <desc>
10156 Sets the framebuffer for given screen.
10157 </desc>
10158 <param name="screenId" type="unsigned long" dir="in"/>
10159 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10160 </method>
10161
10162 <method name="getFramebuffer">
10163 <desc>
10164 Queries the framebuffer for given screen.
10165 </desc>
10166 <param name="screenId" type="unsigned long" dir="in"/>
10167 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10168 <param name="xOrigin" type="long" dir="out"/>
10169 <param name="yOrigin" type="long" dir="out"/>
10170 </method>
10171
10172 <method name="setVideoModeHint">
10173 <desc>
10174 Asks VirtualBox to request the given video mode from
10175 the guest. This is just a hint and it cannot be guaranteed
10176 that the requested resolution will be used. Guest Additions
10177 are required for the request to be seen by guests. The caller
10178 should issue the request and wait for a resolution change and
10179 after a timeout retry.
10180
10181 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10182 parameters means that the corresponding values should be taken from the
10183 current video mode (i.e. left unchanged).
10184
10185 If the guest OS supports multi-monitor configuration then the @a display
10186 parameter specifies the number of the guest display to send the hint to:
10187 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10188 so on. If the multi-monitor configuration is not supported, @a display
10189 must be <tt>0</tt>.
10190
10191 <result name="E_INVALIDARG">
10192 The @a display is not associated with any monitor.
10193 </result>
10194
10195 </desc>
10196 <param name="width" type="unsigned long" dir="in"/>
10197 <param name="height" type="unsigned long" dir="in"/>
10198 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10199 <param name="display" type="unsigned long" dir="in"/>
10200 </method>
10201
10202 <method name="setSeamlessMode">
10203 <desc>
10204 Enables or disables seamless guest display rendering (seamless desktop
10205 integration) mode.
10206 <note>
10207 Calling this method has no effect if <link
10208 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10209 </note>
10210 </desc>
10211 <param name="enabled" type="boolean" dir="in"/>
10212 </method>
10213
10214 <method name="takeScreenShot">
10215 <desc>
10216 Takes a screen shot of the requested size and copies it to the
10217 32-bpp buffer allocated by the caller.
10218
10219 <result name="E_NOTIMPL">
10220 Feature not implemented.
10221 </result>
10222 <result name="VBOX_E_IPRT_ERROR">
10223 Could not take a screenshot.
10224 </result>
10225
10226 </desc>
10227 <param name="address" type="octet" mod="ptr" dir="in"/>
10228 <param name="width" type="unsigned long" dir="in"/>
10229 <param name="height" type="unsigned long" dir="in"/>
10230 </method>
10231
10232 <method name="drawToScreen">
10233 <desc>
10234 Draws a 32-bpp image of the specified size from the given buffer
10235 to the given point on the VM display.
10236
10237 <result name="E_NOTIMPL">
10238 Feature not implemented.
10239 </result>
10240 <result name="VBOX_E_IPRT_ERROR">
10241 Could not draw to screen.
10242 </result>
10243
10244 </desc>
10245 <param name="address" type="octet" mod="ptr" dir="in"/>
10246 <param name="x" type="unsigned long" dir="in"/>
10247 <param name="y" type="unsigned long" dir="in"/>
10248 <param name="width" type="unsigned long" dir="in"/>
10249 <param name="height" type="unsigned long" dir="in"/>
10250 </method>
10251
10252 <method name="invalidateAndUpdate">
10253 <desc>
10254 Does a full invalidation of the VM display and instructs the VM
10255 to update it.
10256
10257 <result name="VBOX_E_IPRT_ERROR">
10258 Could not invalidate and update screen.
10259 </result>
10260
10261 </desc>
10262 </method>
10263
10264 <method name="resizeCompleted">
10265 <desc>
10266 Signals that a framebuffer has completed the resize operation.
10267
10268 <result name="VBOX_E_NOT_SUPPORTED">
10269 Operation only valid for external frame buffers.
10270 </result>
10271
10272 </desc>
10273 <param name="screenId" type="unsigned long" dir="in"/>
10274 </method>
10275
10276 <method name="updateCompleted">
10277 <desc>
10278 Signals that a framebuffer has completed the update operation.
10279
10280 <result name="VBOX_E_NOT_SUPPORTED">
10281 Operation only valid for external frame buffers.
10282 </result>
10283
10284 </desc>
10285 </method>
10286
10287 </interface>
10288
10289 <!--
10290 // INetworkAdapter
10291 /////////////////////////////////////////////////////////////////////////
10292 -->
10293
10294 <enum
10295 name="NetworkAttachmentType"
10296 uuid="64e770dc-dd1d-4879-9f12-5bd6bc879b78"
10297 >
10298 <desc>
10299 Network attachment type.
10300 </desc>
10301
10302 <const name="Null" value="0">
10303 <desc>Null value, also means "not attached".</desc>
10304 </const>
10305 <const name="NAT" value="1"/>
10306 <const name="HostInterface" value="2"/>
10307 <const name="Internal" value="3"/>
10308 <const name="HostOnly" value="4"/>
10309 </enum>
10310
10311 <enum
10312 name="NetworkAdapterType"
10313 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10314 >
10315 <desc>
10316 Network adapter type.
10317 </desc>
10318
10319 <const name="Null" value="0">
10320 <desc>Null value (never used by the API).</desc>
10321 </const>
10322 <const name="Am79C970A" value="1"/>
10323 <const name="Am79C973" value="2"/>
10324 <const name="I82540EM" value="3"/>
10325 <const name="I82543GC" value="4"/>
10326 </enum>
10327
10328 <interface
10329 name="INetworkAdapter" extends="$unknown"
10330 uuid="4a1ee64e-6c5f-47dd-acfa-f834d7cb74fb"
10331 wsmap="managed"
10332 >
10333 <attribute name="adapterType" type="NetworkAdapterType">
10334 <desc>
10335 Type of the virtual network adapter. Depending on this value,
10336 VirtualBox will provide a different virtual network hardware
10337 to the guest.
10338 </desc>
10339 </attribute>
10340
10341 <attribute name="slot" type="unsigned long" readonly="yes">
10342 <desc>
10343 Slot number this adapter is plugged into. Corresponds to
10344 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10345 to obtain this instance.
10346 </desc>
10347 </attribute>
10348
10349 <attribute name="enabled" type="boolean">
10350 <desc>
10351 Flag whether the network adapter is present in the
10352 guest system. If disabled, the virtual guest hardware will
10353 not contain this network adapter. Can only be changed when
10354 the VM is not running.
10355 </desc>
10356 </attribute>
10357
10358 <attribute name="MACAddress" type="wstring">
10359 <desc>
10360 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10361 it to NULL, VirtualBox will generate a unique MAC address.
10362 </desc>
10363 </attribute>
10364
10365 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10366
10367 <attribute name="hostInterface" type="wstring">
10368 <desc>
10369 Name of the host network interface the VM is attached to.
10370 </desc>
10371 </attribute>
10372
10373 <attribute name="internalNetwork" type="wstring">
10374 <desc>
10375 Name of the internal network the VM is attached to.
10376 </desc>
10377 </attribute>
10378
10379 <attribute name="NATNetwork" type="wstring">
10380 <desc>
10381 Name of the NAT network the VM is attached to.
10382 </desc>
10383 </attribute>
10384
10385 <attribute name="cableConnected" type="boolean">
10386 <desc>
10387 Flag whether the adapter reports the cable as connected or not.
10388 It can be used to report offline situations to a VM.
10389 </desc>
10390 </attribute>
10391
10392 <attribute name="lineSpeed" type="unsigned long">
10393 <desc>
10394 Line speed reported by custom drivers, in units of 1 kbps.
10395 </desc>
10396 </attribute>
10397
10398 <attribute name="traceEnabled" type="boolean">
10399 <desc>
10400 Flag whether network traffic from/to the network card should be traced.
10401 Can only be toggled when the VM is turned off.
10402 </desc>
10403 </attribute>
10404
10405 <attribute name="traceFile" type="wstring">
10406 <desc>
10407 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10408 will be used.
10409 </desc>
10410 </attribute>
10411
10412 <method name="attachToNAT">
10413 <desc>
10414 Attach the network adapter to the Network Address Translation (NAT) interface.
10415 </desc>
10416 </method>
10417
10418 <method name="attachToHostInterface">
10419 <desc>
10420 Attach the network adapter to a host interface.
10421 </desc>
10422 </method>
10423
10424 <method name="attachToInternalNetwork">
10425 <desc>
10426 Attach the network adapter to an internal network.
10427 </desc>
10428 </method>
10429
10430 <method name="attachToHostOnlyNetwork">
10431 <desc>
10432 Attach the network adapter to the host-only network.
10433 </desc>
10434 </method>
10435
10436 <method name="detach">
10437 <desc>
10438 Detach the network adapter
10439 </desc>
10440 </method>
10441 </interface>
10442
10443
10444 <!--
10445 // ISerialPort
10446 /////////////////////////////////////////////////////////////////////////
10447 -->
10448
10449 <enum
10450 name="PortMode"
10451 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10452 >
10453 <desc>
10454 The PortMode enumeration represents possible communication modes for
10455 the virtual serial port device.
10456 </desc>
10457
10458 <const name="Disconnected" value="0">
10459 <desc>Virtual device is not attached to any real host device.</desc>
10460 </const>
10461 <const name="HostPipe" value="1">
10462 <desc>Virtual device is attached to a host pipe.</desc>
10463 </const>
10464 <const name="HostDevice" value="2">
10465 <desc>Virtual device is attached to a host device.</desc>
10466 </const>
10467 </enum>
10468
10469 <interface
10470 name="ISerialPort" extends="$unknown"
10471 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10472 wsmap="managed"
10473 >
10474
10475 <desc>
10476 The ISerialPort interface represents the virtual serial port device.
10477
10478 The virtual serial port device acts like an ordinary serial port
10479 inside the virtual machine. This device communicates to the real
10480 serial port hardware in one of two modes: host pipe or host device.
10481
10482 In host pipe mode, the #path attribute specifies the path to the pipe on
10483 the host computer that represents a serial port. The #server attribute
10484 determines if this pipe is created by the virtual machine process at
10485 machine startup or it must already exist before starting machine
10486 execution.
10487
10488 In host device mode, the #path attribute specifies the name of the
10489 serial port device on the host computer.
10490
10491 There is also a third communication mode: the disconnected mode. In this
10492 mode, the guest OS running inside the virtual machine will be able to
10493 detect the serial port, but all port write operations will be discarded
10494 and all port read operations will return no data.
10495
10496 <see>IMachine::getSerialPort</see>
10497 </desc>
10498
10499 <attribute name="slot" type="unsigned long" readonly="yes">
10500 <desc>
10501 Slot number this serial port is plugged into. Corresponds to
10502 the value you pass to <link to="IMachine::getSerialPort"/>
10503 to obtain this instance.
10504 </desc>
10505 </attribute>
10506
10507 <attribute name="enabled" type="boolean">
10508 <desc>
10509 Flag whether the serial port is enabled. If disabled,
10510 the serial port will not be reported to the guest OS.
10511 </desc>
10512 </attribute>
10513
10514 <attribute name="IOBase" type="unsigned long">
10515 <desc>Base I/O address of the serial port.</desc>
10516 </attribute>
10517
10518 <attribute name="IRQ" type="unsigned long">
10519 <desc>IRQ number of the serial port.</desc>
10520 </attribute>
10521
10522 <attribute name="hostMode" type="PortMode">
10523 <desc>
10524 How is this port connected to the host.
10525 <note>
10526 Changing this attribute may fail if the conditions for
10527 <link to="#path"/> are not met.
10528 </note>
10529 </desc>
10530 </attribute>
10531
10532 <attribute name="server" type="boolean">
10533 <desc>
10534 Flag whether this serial port acts as a server (creates a new pipe on
10535 the host) or as a client (uses the existing pipe). This attribute is
10536 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10537 </desc>
10538 </attribute>
10539
10540 <attribute name="path" type="wstring">
10541 <desc>
10542 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10543 PortMode_HostPipe, or the host serial device name when
10544 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10545 cases, setting a @c null or an empty string as the attribute's value
10546 will result into an error. Otherwise, the value of this property is
10547 ignored.
10548 </desc>
10549 </attribute>
10550
10551 </interface>
10552
10553 <!--
10554 // IParallelPort
10555 /////////////////////////////////////////////////////////////////////////
10556 -->
10557
10558 <interface
10559 name="IParallelPort" extends="$unknown"
10560 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10561 wsmap="managed"
10562 >
10563
10564 <desc>
10565 The IParallelPort interface represents the virtual parallel port device.
10566
10567 The virtual parallel port device acts like an ordinary parallel port
10568 inside the virtual machine. This device communicates to the real
10569 parallel port hardware using the name of the parallel device on the host
10570 computer specified in the #path attribute.
10571
10572 Each virtual parallel port device is assigned a base I/O address and an
10573 IRQ number that will be reported to the guest operating system and used
10574 to operate the given parallel port from within the virtual machine.
10575
10576 <see>IMachine::getParallelPort</see>
10577 </desc>
10578
10579 <attribute name="slot" type="unsigned long" readonly="yes">
10580 <desc>
10581 Slot number this parallel port is plugged into. Corresponds to
10582 the value you pass to <link to="IMachine::getParallelPort"/>
10583 to obtain this instance.
10584 </desc>
10585 </attribute>
10586
10587 <attribute name="enabled" type="boolean">
10588 <desc>
10589 Flag whether the parallel port is enabled. If disabled,
10590 the parallel port will not be reported to the guest OS.
10591 </desc>
10592 </attribute>
10593
10594 <attribute name="IOBase" type="unsigned long">
10595 <desc>Base I/O address of the parallel port.</desc>
10596 </attribute>
10597
10598 <attribute name="IRQ" type="unsigned long">
10599 <desc>IRQ number of the parallel port.</desc>
10600 </attribute>
10601
10602 <attribute name="path" type="wstring">
10603 <desc>
10604 Host parallel device name. If this parallel port is enabled, setting a
10605 @c null or an empty string as this attribute's value will result into
10606 an error.
10607 </desc>
10608 </attribute>
10609
10610 </interface>
10611
10612
10613 <!--
10614 // IMachineDebugger
10615 /////////////////////////////////////////////////////////////////////////
10616 -->
10617
10618 <interface
10619 name="IMachineDebugger" extends="$unknown"
10620 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10621 wsmap="suppress"
10622 >
10623 <method name="resetStats">
10624 <desc>
10625 Reset VM statistics.
10626 </desc>
10627 <param name="pattern" type="wstring" dir="in">
10628 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10629 </param>
10630 </method>
10631
10632 <method name="dumpStats">
10633 <desc>
10634 Dumps VM statistics.
10635 </desc>
10636 <param name="pattern" type="wstring" dir="in">
10637 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10638 </param>
10639 </method>
10640
10641 <method name="getStats">
10642 <desc>
10643 Get the VM statistics in a XMLish format.
10644 </desc>
10645 <param name="pattern" type="wstring" dir="in">
10646 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10647 </param>
10648 <param name="withDescriptions" type="boolean" dir="in">
10649 <desc>Whether to include the descriptions.</desc>
10650 </param>
10651 <param name="stats" type="wstring" dir="out">
10652 <desc>The XML document containing the statistics.</desc>
10653 </param>
10654 </method>
10655
10656 <method name="injectNMI">
10657 <desc>
10658 Inject an NMI into a running VT-x/AMD-V VM.
10659 </desc>
10660 </method>
10661
10662 <attribute name="singlestep" type="boolean">
10663 <desc>Switch for enabling singlestepping.</desc>
10664 </attribute>
10665
10666 <attribute name="recompileUser" type="boolean">
10667 <desc>Switch for forcing code recompilation for user mode code.</desc>
10668 </attribute>
10669
10670 <attribute name="recompileSupervisor" type="boolean">
10671 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10672 </attribute>
10673
10674 <attribute name="PATMEnabled" type="boolean">
10675 <desc>Switch for enabling and disabling the PATM component.</desc>
10676 </attribute>
10677
10678 <attribute name="CSAMEnabled" type="boolean">
10679 <desc>Switch for enabling and disabling the CSAM component.</desc>
10680 </attribute>
10681
10682 <attribute name="logEnabled" type="boolean">
10683 <desc>Switch for enabling and disabling logging.</desc>
10684 </attribute>
10685
10686 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10687 <desc>
10688 Flag indicating whether the VM is currently making use of CPU hardware
10689 virtualization extensions.
10690 </desc>
10691 </attribute>
10692
10693 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10694 <desc>
10695 Flag indicating whether the VM is currently making use of the nested paging
10696 CPU hardware virtualization extension.
10697 </desc>
10698 </attribute>
10699
10700 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10701 <desc>
10702 Flag indicating whether the VM is currently making use of the VPID
10703 VT-x extension.
10704 </desc>
10705 </attribute>
10706
10707 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10708 <desc>
10709 Flag indicating whether the VM is currently making use of the Physical
10710 Address Extension CPU feature.
10711 </desc>
10712 </attribute>
10713
10714 <attribute name="virtualTimeRate" type="unsigned long">
10715 <desc>
10716 The rate at which the virtual time runs expressed as a percentage.
10717 The accepted range is 2% to 20000%.
10718 </desc>
10719 </attribute>
10720
10721 <!-- @todo method for setting log flags, groups and destination! -->
10722
10723 <attribute name="VM" type="unsigned long long" readonly="yes">
10724 <desc>
10725 Gets the VM handle. This is only for internal use while
10726 we carve the details of this interface.
10727 </desc>
10728 </attribute>
10729
10730 </interface>
10731
10732 <!--
10733 // IUSBController
10734 /////////////////////////////////////////////////////////////////////////
10735 -->
10736
10737 <interface
10738 name="IUSBController" extends="$unknown"
10739 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
10740 wsmap="managed"
10741 >
10742 <attribute name="enabled" type="boolean">
10743 <desc>
10744 Flag whether the USB controller is present in the
10745 guest system. If disabled, the virtual guest hardware will
10746 not contain any USB controller. Can only be changed when
10747 the VM is powered off.
10748 </desc>
10749 </attribute>
10750
10751 <attribute name="enabledEhci" type="boolean">
10752 <desc>
10753 Flag whether the USB EHCI controller is present in the
10754 guest system. If disabled, the virtual guest hardware will
10755 not contain a USB EHCI controller. Can only be changed when
10756 the VM is powered off.
10757 </desc>
10758 </attribute>
10759
10760 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10761 <desc>
10762 USB standard version which the controller implements.
10763 This is a BCD which means that the major version is in the
10764 high byte and minor version is in the low byte.
10765 </desc>
10766 </attribute>
10767
10768 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
10769 <desc>
10770 List of USB device filters associated with the machine.
10771
10772 If the machine is currently running, these filters are activated
10773 every time a new (supported) USB device is attached to the host
10774 computer that was not ignored by global filters
10775 (<link to="IHost::USBDeviceFilters"/>).
10776
10777 These filters are also activated when the machine is powered up.
10778 They are run against a list of all currently available USB
10779 devices (in states
10780 <link to="USBDeviceState_Available"/>,
10781 <link to="USBDeviceState_Busy"/>,
10782 <link to="USBDeviceState_Held"/>) that were not previously
10783 ignored by global filters.
10784
10785 If at least one filter matches the USB device in question, this
10786 device is automatically captured (attached to) the virtual USB
10787 controller of this machine.
10788
10789 <see>IUSBDeviceFilter, ::IUSBController</see>
10790 </desc>
10791 </attribute>
10792
10793 <method name="createDeviceFilter">
10794 <desc>
10795 Creates a new USB device filter. All attributes except
10796 the filter name are set to <tt>null</tt> (any match),
10797 <i>active</i> is <tt>false</tt> (the filter is not active).
10798
10799 The created filter can then be added to the list of filters using
10800 <link to="#insertDeviceFilter"/>.
10801
10802 <result name="VBOX_E_INVALID_VM_STATE">
10803 The virtual machine is not mutable.
10804 </result>
10805
10806 <see>#deviceFilters</see>
10807 </desc>
10808 <param name="name" type="wstring" dir="in">
10809 <desc>
10810 Filter name. See <link to="IUSBDeviceFilter::name"/>
10811 for more info.
10812 </desc>
10813 </param>
10814 <param name="filter" type="IUSBDeviceFilter" dir="return">
10815 <desc>Created filter object.</desc>
10816 </param>
10817 </method>
10818
10819 <method name="insertDeviceFilter">
10820 <desc>
10821 Inserts the given USB device to the specified position
10822 in the list of filters.
10823
10824 Positions are numbered starting from <tt>0</tt>. If the specified
10825 position is equal to or greater than the number of elements in
10826 the list, the filter is added to the end of the collection.
10827
10828 <note>
10829 Duplicates are not allowed, so an attempt to insert a
10830 filter that is already in the collection, will return an
10831 error.
10832 </note>
10833
10834 <result name="VBOX_E_INVALID_VM_STATE">
10835 Virtual machine is not mutable.
10836 </result>
10837 <result name="E_INVALIDARG">
10838 USB device filter not created within this VirtualBox instance.
10839 </result>
10840 <result name="VBOX_E_INVALID_OBJECT_STATE">
10841 USB device filter already in list.
10842 </result>
10843
10844 <see>#deviceFilters</see>
10845 </desc>
10846 <param name="position" type="unsigned long" dir="in">
10847 <desc>Position to insert the filter to.</desc>
10848 </param>
10849 <param name="filter" type="IUSBDeviceFilter" dir="in">
10850 <desc>USB device filter to insert.</desc>
10851 </param>
10852 </method>
10853
10854 <method name="removeDeviceFilter">
10855 <desc>
10856 Removes a USB device filter from the specified position in the
10857 list of filters.
10858
10859 Positions are numbered starting from <tt>0</tt>. Specifying a
10860 position equal to or greater than the number of elements in
10861 the list will produce an error.
10862
10863 <see>#deviceFilters</see>
10864
10865 <result name="VBOX_E_INVALID_VM_STATE">
10866 Virtual machine is not mutable.
10867 </result>
10868 <result name="E_INVALIDARG">
10869 USB device filter list empty or invalid @a position.
10870 </result>
10871
10872 </desc>
10873 <param name="position" type="unsigned long" dir="in">
10874 <desc>Position to remove the filter from.</desc>
10875 </param>
10876 <param name="filter" type="IUSBDeviceFilter" dir="return">
10877 <desc>Removed USB device filter.</desc>
10878 </param>
10879 </method>
10880
10881 </interface>
10882
10883
10884 <!--
10885 // IUSBDevice
10886 /////////////////////////////////////////////////////////////////////////
10887 -->
10888
10889 <enumerator
10890 name="IUSBDeviceEnumerator" type="IUSBDevice"
10891 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
10892 />
10893
10894 <collection
10895 name="IUSBDeviceCollection" type="IUSBDevice"
10896 enumerator="IUSBDeviceEnumerator"
10897 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
10898 readonly="yes"
10899 >
10900 <method name="findById">
10901 <desc>
10902 Searches this collection for a USB device with the given UUID.
10903 <note>
10904 The method returns an error if the given UUID does not
10905 correspond to any USB device in the collection.
10906 </note>
10907 <see>IUSBDevice::id</see>
10908 </desc>
10909 <param name="id" type="uuid" dir="in">
10910 <desc>UUID of the USB device to search for.</desc>
10911 </param>
10912 <param name="device" type="IUSBDevice" dir="return">
10913 <desc>Found USB device object.</desc>
10914 </param>
10915 </method>
10916
10917 <method name="findByAddress">
10918 <desc>
10919 Searches this collection for a USB device with the given
10920 host address.
10921 <note>
10922 The method returns an error if the given address does not
10923 correspond to any USB device in the collection.
10924 </note>
10925 <see>IUSBDevice::address</see>
10926 </desc>
10927 <param name="name" type="wstring" dir="in">
10928 <desc>
10929 Address of the USB device (as assigned by the host) to
10930 search for.
10931 </desc>
10932 </param>
10933 <param name="device" type="IUSBDevice" dir="return">
10934 <desc>Found USB device object.</desc>
10935 </param>
10936 </method>
10937
10938 </collection>
10939
10940 <interface
10941 name="IUSBDevice" extends="$unknown"
10942 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
10943 wsmap="managed"
10944 >
10945 <desc>
10946 The IUSBDevice interface represents a virtual USB device attached to the
10947 virtual machine.
10948
10949 A collection of objects implementing this interface is stored in the
10950 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
10951 attached to a running virtual machine's USB controller.
10952 </desc>
10953
10954 <attribute name="id" type="uuid" readonly="yes">
10955 <desc>
10956 Unique USB device ID. This ID is built from #vendorId,
10957 #productId, #revision and #serialNumber.
10958 </desc>
10959 </attribute>
10960
10961 <attribute name="vendorId" type="unsigned short" readonly="yes">
10962 <desc>Vendor ID.</desc>
10963 </attribute>
10964
10965 <attribute name="productId" type="unsigned short" readonly="yes">
10966 <desc>Product ID.</desc>
10967 </attribute>
10968
10969 <attribute name="revision" type="unsigned short" readonly="yes">
10970 <desc>
10971 Product revision number. This is a packed BCD represented as
10972 unsigned short. The high byte is the integer part and the low
10973 byte is the decimal.
10974 </desc>
10975 </attribute>
10976
10977 <attribute name="manufacturer" type="wstring" readonly="yes">
10978 <desc>Manufacturer string.</desc>
10979 </attribute>
10980
10981 <attribute name="product" type="wstring" readonly="yes">
10982 <desc>Product string.</desc>
10983 </attribute>
10984
10985 <attribute name="serialNumber" type="wstring" readonly="yes">
10986 <desc>Serial number string.</desc>
10987 </attribute>
10988
10989 <attribute name="address" type="wstring" readonly="yes">
10990 <desc>Host specific address of the device.</desc>
10991 </attribute>
10992
10993 <attribute name="port" type="unsigned short" readonly="yes">
10994 <desc>
10995 Host USB port number the device is physically
10996 connected to.
10997 </desc>
10998 </attribute>
10999
11000 <attribute name="version" type="unsigned short" readonly="yes">
11001 <desc>
11002 The major USB version of the device - 1 or 2.
11003 </desc>
11004 </attribute>
11005
11006 <attribute name="portVersion" type="unsigned short" readonly="yes">
11007 <desc>
11008 The major USB version of the host USB port the device is
11009 physically connected to - 1 or 2. For devices not connected to
11010 anything this will have the same value as the version attribute.
11011 </desc>
11012 </attribute>
11013
11014 <attribute name="remote" type="boolean" readonly="yes">
11015 <desc>
11016 Whether the device is physically connected to a remote VRDP
11017 client or to a local host machine.
11018 </desc>
11019 </attribute>
11020
11021 </interface>
11022
11023
11024 <!--
11025 // IUSBDeviceFilter
11026 /////////////////////////////////////////////////////////////////////////
11027 -->
11028
11029 <enumerator
11030 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
11031 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
11032 />
11033
11034 <collection
11035 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
11036 enumerator="IUSBDeviceFilterEnumerator"
11037 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
11038 readonly="yes"
11039 />
11040
11041 <interface
11042 name="IUSBDeviceFilter" extends="$unknown"
11043 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11044 wsmap="managed"
11045 >
11046 <desc>
11047 The IUSBDeviceFilter interface represents an USB device filter used
11048 to perform actions on a group of USB devices.
11049
11050 This type of filters is used by running virtual machines to
11051 automatically capture selected USB devices once they are physically
11052 attached to the host computer.
11053
11054 A USB device is matched to the given device filter if and only if all
11055 attributes of the device match the corresponding attributes of the
11056 filter (that is, attributes are joined together using the logical AND
11057 operation). On the other hand, all together, filters in the list of
11058 filters carry the semantics of the logical OR operation. So if it is
11059 desirable to create a match like "this vendor id OR this product id",
11060 one needs to create two filters and specify "any match" (see below)
11061 for unused attributes.
11062
11063 All filter attributes used for matching are strings. Each string
11064 is an expression representing a set of values of the corresponding
11065 device attribute, that will match the given filter. Currently, the
11066 following filtering expressions are supported:
11067
11068 <ul>
11069 <li><i>Interval filters</i>. Used to specify valid intervals for
11070 integer device attributes (Vendor ID, Product ID and Revision).
11071 The format of the string is:
11072
11073 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11074
11075 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11076 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11077 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11078 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11079 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11080 possible integer is assumed.
11081 </li>
11082 <li><i>Boolean filters</i>. Used to specify acceptable values for
11083 boolean device attributes. The format of the string is:
11084
11085 <tt>true|false|yes|no|0|1</tt>
11086
11087 </li>
11088 <li><i>Exact match</i>. Used to specify a single value for the given
11089 device attribute. Any string that doesn't start with <tt>int:</tt>
11090 represents the exact match. String device attributes are compared to
11091 this string including case of symbols. Integer attributes are first
11092 converted to a string (see individual filter attributes) and then
11093 compared ignoring case.
11094
11095 </li>
11096 <li><i>Any match</i>. Any value of the corresponding device attribute
11097 will match the given filter. An empty or <tt>null</tt> string is
11098 used to construct this type of filtering expressions.
11099
11100 </li>
11101 </ul>
11102
11103 <note>
11104 On the Windows host platform, interval filters are not currently
11105 available. Also all string filter attributes
11106 (<link to="#manufacturer"/>, <link to="#product"/>,
11107 <link to="#serialNumber"/>) are ignored, so they behave as
11108 <i>any match</i> no matter what string expression is specified.
11109 </note>
11110
11111 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11112 </desc>
11113
11114 <attribute name="name" type="wstring">
11115 <desc>
11116 Visible name for this filter.
11117 This name is used to visually distinguish one filter from another,
11118 so it can neither be <tt>null</tt> nor an empty string.
11119 </desc>
11120 </attribute>
11121
11122 <attribute name="active" type="boolean">
11123 <desc>Whether this filter active or has been temporarily disabled.</desc>
11124 </attribute>
11125
11126 <attribute name="vendorId" type="wstring">
11127 <desc>
11128 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11129 The string representation for the <i>exact matching</i>
11130 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11131 (including leading zeroes).
11132 </desc>
11133 </attribute>
11134
11135 <attribute name="productId" type="wstring">
11136 <desc>
11137 <link to="IUSBDevice::productId">Product ID</link> filter.
11138 The string representation for the <i>exact matching</i>
11139 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11140 (including leading zeroes).
11141 </desc>
11142 </attribute>
11143
11144 <attribute name="revision" type="wstring">
11145 <desc>
11146 <link to="IUSBDevice::productId">Product revision number</link>
11147 filter. The string representation for the <i>exact matching</i>
11148 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11149 of the integer part of the revision, and <tt>F</tt> is the
11150 decimal digit of its fractional part (including leading and
11151 trailing zeros).
11152 Note that for interval filters, it's best to use the hexadecimal
11153 form, because the revision is stored as a 16 bit packed BCD value;
11154 so the expression <tt>int:0x0100-0x0199</tt> will match any
11155 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11156 </desc>
11157 </attribute>
11158
11159 <attribute name="manufacturer" type="wstring">
11160 <desc>
11161 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11162 </desc>
11163 </attribute>
11164
11165 <attribute name="product" type="wstring">
11166 <desc>
11167 <link to="IUSBDevice::product">Product</link> filter.
11168 </desc>
11169 </attribute>
11170
11171 <attribute name="serialNumber" type="wstring">
11172 <desc>
11173 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11174 </desc>
11175 </attribute>
11176
11177 <attribute name="port" type="wstring">
11178 <desc>
11179 <link to="IUSBDevice::port">Host USB port</link> filter.
11180 </desc>
11181 </attribute>
11182
11183 <attribute name="remote" type="wstring">
11184 <desc>
11185 <link to="IUSBDevice::remote">Remote state</link> filter.
11186 <note>
11187 This filter makes sense only for machine USB filters,
11188 i.e. it is ignored by IHostUSBDeviceFilter objects.
11189 </note>
11190 </desc>
11191 </attribute>
11192
11193 <attribute name="maskedInterfaces" type="unsigned long">
11194 <desc>
11195 This is an advanced option for hiding one or more USB interfaces
11196 from the guest. The value is a bit mask where the bits that are set
11197 means the corresponding USB interface should be hidden, masked off
11198 if you like.
11199 This feature only works on Linux hosts.
11200 </desc>
11201 </attribute>
11202
11203 </interface>
11204
11205
11206 <!--
11207 // IHostUSBDevice
11208 /////////////////////////////////////////////////////////////////////////
11209 -->
11210
11211 <enum
11212 name="USBDeviceState"
11213 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11214 >
11215 <desc>
11216 USB device state. This enumeration represents all possible states
11217 of the USB device physically attached to the host computer regarding
11218 its state on the host computer and availability to guest computers
11219 (all currently running virtual machines).
11220
11221 Once a supported USB device is attached to the host, global USB
11222 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11223 either ignore the device, or put it to USBDeviceState_Held state, or do
11224 nothing. Unless the device is ignored by global filters, filters of all
11225 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11226 activated that can put it to USBDeviceState_Captured state.
11227
11228 If the device was ignored by global filters, or didn't match
11229 any filters at all (including guest ones), it is handled by the host
11230 in a normal way. In this case, the device state is determined by
11231 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11232 or USBDeviceState_Available, depending on the current device usage.
11233
11234 Besides auto-capturing based on filters, the device can be manually
11235 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11236 state is USBDeviceState_Busy, USBDeviceState_Available or
11237 USBDeviceState_Held.
11238
11239 <note>
11240 Due to differences in USB stack implementations in Linux and Win32,
11241 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11242 only to the Linux version of the product. This also means that (<link
11243 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11244 device state is USBDeviceState_Held.
11245 </note>
11246
11247 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11248 </desc>
11249
11250 <const name="NotSupported" value="0">
11251 <desc>
11252 Not supported by the VirtualBox server, not available to guests.
11253 </desc>
11254 </const>
11255 <const name="Unavailable" value="1">
11256 <desc>
11257 Being used by the host computer exclusively,
11258 not available to guests.
11259 </desc>
11260 </const>
11261 <const name="Busy" value="2">
11262 <desc>
11263 Being used by the host computer, potentially available to guests.
11264 </desc>
11265 </const>
11266 <const name="Available" value="3">
11267 <desc>
11268 Not used by the host computer, available to guests (the host computer
11269 can also start using the device at any time).
11270 </desc>
11271 </const>
11272 <const name="Held" value="4">
11273 <desc>
11274 Held by the VirtualBox server (ignored by the host computer),
11275 available to guests.
11276 </desc>
11277 </const>
11278 <const name="Captured" value="5">
11279 <desc>
11280 Captured by one of the guest computers, not available
11281 to anybody else.
11282 </desc>
11283 </const>
11284 </enum>
11285
11286 <enumerator
11287 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11288 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11289 />
11290
11291 <collection
11292 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11293 enumerator="IHostUSBDeviceEnumerator"
11294 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11295 readonly="yes"
11296 >
11297 <method name="findById">
11298 <desc>
11299 Searches this collection for a USB device with the given UUID.
11300 <note>
11301 The method returns an error if the given UUID does not
11302 correspond to any USB device in the collection.
11303 </note>
11304 <see>IHostUSBDevice::id</see>
11305 </desc>
11306 <param name="id" type="uuid" dir="in">
11307 <desc>UUID of the USB device to search for.</desc>
11308 </param>
11309 <param name="device" type="IHostUSBDevice" dir="return">
11310 <desc>Found USB device object.</desc>
11311 </param>
11312 </method>
11313
11314 <method name="findByAddress">
11315 <desc>
11316 Searches this collection for a USB device with the given
11317 host address.
11318 <note>
11319 The method returns an error if the given address does not
11320 correspond to any USB device in the collection.
11321 </note>
11322 <see>IHostUSBDevice::address</see>
11323 </desc>
11324 <param name="name" type="wstring" dir="in">
11325 <desc>
11326 Address of the USB device (as assigned by the host) to
11327 search for.
11328 </desc>
11329 </param>
11330 <param name="device" type="IHostUSBDevice" dir="return">
11331 <desc>Found USB device object.</desc>
11332 </param>
11333 </method>
11334
11335 </collection>
11336
11337 <interface
11338 name="IHostUSBDevice" extends="IUSBDevice"
11339 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11340 wsmap="managed"
11341 >
11342 <desc>
11343 The IHostUSBDevice interface represents a physical USB device attached
11344 to the host computer.
11345
11346 Besides properties inherited from IUSBDevice, this interface adds the
11347 <link to="#state"/> property that holds the current state of the USB
11348 device.
11349
11350 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11351 </desc>
11352
11353 <attribute name="state" type="USBDeviceState" readonly="yes">
11354 <desc>
11355 Current state of the device.
11356 </desc>
11357 </attribute>
11358
11359 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11360
11361 </interface>
11362
11363
11364 <!--
11365 // IHostUSBDeviceFilter
11366 /////////////////////////////////////////////////////////////////////////
11367 -->
11368
11369 <enum
11370 name="USBDeviceFilterAction"
11371 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11372 >
11373 <desc>
11374 Actions for host USB device filters.
11375 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11376 </desc>
11377
11378 <const name="Null" value="0">
11379 <desc>Null value (never used by the API).</desc>
11380 </const>
11381 <const name="Ignore" value="1">
11382 <desc>Ignore the matched USB device.</desc>
11383 </const>
11384 <const name="Hold" value="2">
11385 <desc>Hold the matched USB device.</desc>
11386 </const>
11387 </enum>
11388
11389 <enumerator
11390 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
11391 uuid="ff735211-903e-4642-9c37-189eb44579fe"
11392 />
11393
11394 <collection
11395 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
11396 enumerator="IHostUSBDeviceFilterEnumerator"
11397 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
11398 readonly="yes"
11399 />
11400
11401 <interface
11402 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11403 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11404 wsmap="managed"
11405 >
11406 <desc>
11407 The IHostUSBDeviceFilter interface represents a global filter for a
11408 physical USB device used by the host computer. Used indirectly in
11409 <link to="IHost::USBDeviceFilters"/>.
11410
11411 Using filters of this type, the host computer determines the initial
11412 state of the USB device after it is physically attached to the
11413 host's USB controller.
11414
11415 <note>
11416 The <link to="#remote"/> attribute is ignored by this type of
11417 filters, because it makes sense only for
11418 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11419 </note>
11420
11421 <see>IHost::USBDeviceFilters</see>
11422 </desc>
11423
11424 <attribute name="action" type="USBDeviceFilterAction">
11425 <desc>
11426 Action performed by the host when an attached USB device
11427 matches this filter.
11428 </desc>
11429 </attribute>
11430
11431 </interface>
11432
11433 <!--
11434 // IAudioAdapter
11435 /////////////////////////////////////////////////////////////////////////
11436 -->
11437
11438 <enum
11439 name="AudioDriverType"
11440 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11441 >
11442 <desc>
11443 Host audio driver type.
11444 </desc>
11445
11446 <const name="Null" value="0">
11447 <desc>Null value, also means "dummy audio driver".</desc>
11448 </const>
11449 <const name="WinMM" value="1"/>
11450 <const name="OSS" value="2"/>
11451 <const name="ALSA" value="3"/>
11452 <const name="DirectSound" value="4"/>
11453 <const name="CoreAudio" value="5"/>
11454 <const name="MMPM" value="6"/>
11455 <const name="Pulse" value="7"/>
11456 <const name="SolAudio" value="8"/>
11457 </enum>
11458
11459 <enum
11460 name="AudioControllerType"
11461 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11462 >
11463 <desc>
11464 Virtual audio controller type.
11465 </desc>
11466
11467 <const name="AC97" value="0"/>
11468 <const name="SB16" value="1"/>
11469 </enum>
11470
11471 <interface
11472 name="IAudioAdapter" extends="$unknown"
11473 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11474 wsmap="managed"
11475 >
11476 <desc>
11477 The IAudioAdapter interface represents the virtual audio adapter of
11478 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11479 </desc>
11480 <attribute name="enabled" type="boolean">
11481 <desc>
11482 Flag whether the audio adapter is present in the
11483 guest system. If disabled, the virtual guest hardware will
11484 not contain any audio adapter. Can only be changed when
11485 the VM is not running.
11486 </desc>
11487 </attribute>
11488 <attribute name="audioController" type="AudioControllerType">
11489 <desc>
11490 The audio hardware we emulate.
11491 </desc>
11492 </attribute>
11493 <attribute name="audioDriver" type="AudioDriverType">
11494 <desc>
11495 Audio driver the adapter is connected to. This setting
11496 can only be changed when the VM is not running.
11497 </desc>
11498 </attribute>
11499 </interface>
11500
11501 <!--
11502 // IVRDPServer
11503 /////////////////////////////////////////////////////////////////////////
11504 -->
11505
11506 <enum
11507 name="VRDPAuthType"
11508 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11509 >
11510 <desc>
11511 VRDP authentication type.
11512 </desc>
11513
11514 <const name="Null" value="0">
11515 <desc>Null value, also means "no authentication".</desc>
11516 </const>
11517 <const name="External" value="1"/>
11518 <const name="Guest" value="2"/>
11519 </enum>
11520
11521 <interface
11522 name="IVRDPServer" extends="$unknown"
11523 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11524 wsmap="managed"
11525 >
11526 <attribute name="enabled" type="boolean">
11527 <desc>VRDP server status.</desc>
11528 </attribute>
11529
11530 <attribute name="port" type="unsigned long">
11531 <desc>
11532 VRDP server port number.
11533 <note>
11534 Setting the value of this property to <tt>0</tt> will reset the port
11535 number to the default value which is
11536 currently <tt>3389</tt>. Reading this property will always return a
11537 real port number, even after it has been set to <tt>0</tt> (in which
11538 case the default port is returned).
11539 </note>
11540 </desc>
11541 </attribute>
11542
11543 <attribute name="netAddress" type="wstring">
11544 <desc>VRDP server address.</desc>
11545 </attribute>
11546
11547 <attribute name="authType" type="VRDPAuthType">
11548 <desc>VRDP authentication method.</desc>
11549 </attribute>
11550
11551 <attribute name="authTimeout" type="unsigned long">
11552 <desc>Timeout for guest authentication. Milliseconds.</desc>
11553 </attribute>
11554
11555 <attribute name="allowMultiConnection" type="boolean">
11556 <desc>
11557 Flag whether multiple simultaneous connections to the VM are permitted.
11558 Note that this will be replaced by a more powerful mechanism in the future.
11559 </desc>
11560 </attribute>
11561
11562 <attribute name="reuseSingleConnection" type="boolean">
11563 <desc>
11564 Flag whether the existing connection must be dropped and a new connection
11565 must be established by the VRDP server, when a new client connects in single
11566 connection mode.
11567 </desc>
11568 </attribute>
11569
11570 </interface>
11571
11572
11573 <!--
11574 // ISharedFolder
11575 /////////////////////////////////////////////////////////////////////////
11576 -->
11577
11578 <enumerator
11579 name="ISharedFolderEnumerator" type="ISharedFolder"
11580 uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
11581 />
11582
11583 <collection
11584 name="ISharedFolderCollection" type="ISharedFolder"
11585 enumerator="ISharedFolderEnumerator"
11586 uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
11587 readonly="yes">
11588
11589 <method name="findByName">
11590 <desc>
11591 Searches this collection for a shared folder with the given logical
11592 name.
11593 <note>
11594 The method returns an error if the given name does not correspond to
11595 any shared folder in the collection.
11596 </note>
11597 </desc>
11598 <param name="name" type="wstring" dir="in">
11599 <desc>Logical name of the shared folder to search for</desc>
11600 </param>
11601 <param name="sharedFolder" type="ISharedFolder" dir="return">
11602 <desc>Found shared folder object</desc>
11603 </param>
11604 </method>
11605
11606 </collection>
11607
11608 <interface
11609 name="ISharedFolder" extends="$unknown"
11610 uuid="ef41869b-ef31-4b30-8e8f-95af35c0e378"
11611 wsmap="struct"
11612 >
11613 <desc>
11614 The ISharedFolder interface represents a folder in the host computer's
11615 file system accessible from the guest OS running inside a virtual
11616 machine using an associated logical name.
11617
11618 There are three types of shared folders:
11619 <ul>
11620 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11621 folders available to all virtual machines.</li>
11622 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11623 VM-specific shared folders available to the given virtual machine at
11624 startup.</li>
11625 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11626 VM-specific shared folders created in the session context (for
11627 example, when the virtual machine is running) and automatically
11628 discarded when the session is closed (the VM is powered off).</li>
11629 </ul>
11630
11631 Logical names of shared folders must be unique within the given scope
11632 (global, permanent or transient). However, they do not need to be unique
11633 across scopes. In this case, the definition of the shared folder in a
11634 more specific scope takes precedence over definitions in all other
11635 scopes. The order of precedence is (more specific to more general):
11636 <ol>
11637 <li>Transient definitions</li>
11638 <li>Permanent definitions</li>
11639 <li>Global definitions</li>
11640 </ol>
11641
11642 For example, if MyMachine has a shared folder named
11643 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11644 transient shared folder named <tt>C_DRIVE</tt> (that points
11645 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11646 of <tt>C_DRIVE</tt> in the guest OS so
11647 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11648 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11649 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11650 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11651 to <tt>C:\\</tt> if it still exists.
11652
11653 Note that permanent and transient shared folders of different machines
11654 are in different name spaces, so they don't overlap and don't need to
11655 have unique logical names.
11656
11657 <note>
11658 Global shared folders are not implemented in the current version of the
11659 product.
11660 </note>
11661 </desc>
11662
11663 <attribute name="name" type="wstring" readonly="yes">
11664 <desc>Logical name of the shared folder.</desc>
11665 </attribute>
11666
11667 <attribute name="hostPath" type="wstring" readonly="yes">
11668 <desc>Full path to the shared folder in the host file system.</desc>
11669 </attribute>
11670
11671 <attribute name="accessible" type="boolean" readonly="yes">
11672 <desc>
11673 Whether the folder defined by the host path is currently
11674 accessible or not.
11675 For example, the folder can be unaccessible if it is placed
11676 on the network share that is not available by the time
11677 this property is read.
11678 </desc>
11679 </attribute>
11680
11681 <attribute name="writable" type="boolean" readonly="yes">
11682 <desc>
11683 Whether the folder defined by the host path is writable or
11684 not.
11685 </desc>
11686 </attribute>
11687
11688 <attribute name="lastAccessError" type="wstring" readonly="yes">
11689 <desc>
11690 Text message that represents the result of the last accessibility
11691 check.
11692
11693 Accessibility checks are performed each time the <link to="#accessible"/>
11694 attribute is read. A @c null string is returned if the last
11695 accessibility check was successful. A non-null string indicates a
11696 failure and should normally describe a reason of the failure (for
11697 example, a file read error).
11698 </desc>
11699 </attribute>
11700
11701 </interface>
11702
11703 <!--
11704 // ISession
11705 /////////////////////////////////////////////////////////////////////////
11706 -->
11707
11708 <interface
11709 name="IInternalSessionControl" extends="$unknown"
11710 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11711 internal="yes"
11712 wsmap="suppress"
11713 >
11714 <method name="getPID">
11715 <desc>PID of the process that has created this Session object.
11716 </desc>
11717 <param name="pid" type="unsigned long" dir="return"/>
11718 </method>
11719
11720 <method name="getRemoteConsole">
11721 <desc>
11722 Returns the console object suitable for remote control.
11723
11724 <result name="VBOX_E_INVALID_VM_STATE">
11725 Session state prevents operation.
11726 </result>
11727 <result name="VBOX_E_INVALID_OBJECT_STATE">
11728 Session type prevents operation.
11729 </result>
11730
11731 </desc>
11732 <param name="console" type="IConsole" dir="return"/>
11733 </method>
11734
11735 <method name="assignMachine">
11736 <desc>
11737 Assigns the machine object associated with this direct-type
11738 session or informs the session that it will be a remote one
11739 (if @a machine == NULL).
11740
11741 <result name="VBOX_E_INVALID_VM_STATE">
11742 Session state prevents operation.
11743 </result>
11744 <result name="VBOX_E_INVALID_OBJECT_STATE">
11745 Session type prevents operation.
11746 </result>
11747
11748 </desc>
11749 <param name="machine" type="IMachine" dir="in"/>
11750 </method>
11751
11752 <method name="assignRemoteMachine">
11753 <desc>
11754 Assigns the machine and the (remote) console object associated with
11755 this remote-type session.
11756
11757 <result name="VBOX_E_INVALID_VM_STATE">
11758 Session state prevents operation.
11759 </result>
11760
11761 </desc>
11762 <param name="machine" type="IMachine" dir="in"/>
11763 <param name="console" type="IConsole" dir="in"/>
11764 </method>
11765
11766 <method name="updateMachineState">
11767 <desc>
11768 Updates the machine state in the VM process.
11769 Must be called only in certain cases
11770 (see the method implementation).
11771
11772 <result name="VBOX_E_INVALID_VM_STATE">
11773 Session state prevents operation.
11774 </result>
11775 <result name="VBOX_E_INVALID_OBJECT_STATE">
11776 Session type prevents operation.
11777 </result>
11778
11779 </desc>
11780 <param name="aMachineState" type="MachineState" dir="in"/>
11781 </method>
11782
11783 <method name="uninitialize">
11784 <desc>
11785 Uninitializes (closes) this session. Used by VirtualBox to close
11786 the corresponding remote session when the direct session dies
11787 or gets closed.
11788
11789 <result name="VBOX_E_INVALID_VM_STATE">
11790 Session state prevents operation.
11791 </result>
11792
11793 </desc>
11794 </method>
11795
11796 <method name="onDVDDriveChange">
11797 <desc>
11798 Triggered when settings of the DVD drive object of the
11799 associated virtual machine have changed.
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 </method>
11810
11811 <method name="onFloppyDriveChange">
11812 <desc>
11813 Triggered when settings of the floppy drive object of the
11814 associated virtual machine have changed.
11815
11816 <result name="VBOX_E_INVALID_VM_STATE">
11817 Session state prevents operation.
11818 </result>
11819 <result name="VBOX_E_INVALID_OBJECT_STATE">
11820 Session type prevents operation.
11821 </result>
11822
11823 </desc>
11824 </method>
11825
11826 <method name="onNetworkAdapterChange">
11827 <desc>
11828 Triggered when settings of a network adapter of the
11829 associated virtual machine have changed.
11830
11831 <result name="VBOX_E_INVALID_VM_STATE">
11832 Session state prevents operation.
11833 </result>
11834 <result name="VBOX_E_INVALID_OBJECT_STATE">
11835 Session type prevents operation.
11836 </result>
11837
11838 </desc>
11839 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11840 </method>
11841
11842 <method name="onSerialPortChange">
11843 <desc>
11844 Triggered when settings of a serial port of the
11845 associated virtual machine have changed.
11846
11847 <result name="VBOX_E_INVALID_VM_STATE">
11848 Session state prevents operation.
11849 </result>
11850 <result name="VBOX_E_INVALID_OBJECT_STATE">
11851 Session type prevents operation.
11852 </result>
11853
11854 </desc>
11855 <param name="serialPort" type="ISerialPort" dir="in"/>
11856 </method>
11857
11858 <method name="onParallelPortChange">
11859 <desc>
11860 Triggered when settings of a parallel port of the
11861 associated virtual machine have changed.
11862
11863 <result name="VBOX_E_INVALID_VM_STATE">
11864 Session state prevents operation.
11865 </result>
11866 <result name="VBOX_E_INVALID_OBJECT_STATE">
11867 Session type prevents operation.
11868 </result>
11869
11870 </desc>
11871 <param name="parallelPort" type="IParallelPort" dir="in"/>
11872 </method>
11873
11874 <method name="onVRDPServerChange">
11875 <desc>
11876 Triggered when settings of the VRDP server object of the
11877 associated virtual machine have changed.
11878
11879 <result name="VBOX_E_INVALID_VM_STATE">
11880 Session state prevents operation.
11881 </result>
11882 <result name="VBOX_E_INVALID_OBJECT_STATE">
11883 Session type prevents operation.
11884 </result>
11885
11886 </desc>
11887 </method>
11888
11889 <method name="onUSBControllerChange">
11890 <desc>
11891 Triggered when settings of the USB controller object of the
11892 associated virtual machine have changed.
11893
11894 <result name="VBOX_E_INVALID_VM_STATE">
11895 Session state prevents operation.
11896 </result>
11897 <result name="VBOX_E_INVALID_OBJECT_STATE">
11898 Session type prevents operation.
11899 </result>
11900
11901 </desc>
11902 </method>
11903
11904 <method name="onSharedFolderChange">
11905 <desc>
11906 Triggered when a permanent (global or machine) shared folder has been
11907 created or removed.
11908 <note>
11909 We don't pass shared folder parameters in this notification because
11910 the order in which parallel notifications are delivered is not defined,
11911 therefore it could happen that these parameters were outdated by the
11912 time of processing this notification.
11913 </note>
11914
11915 <result name="VBOX_E_INVALID_VM_STATE">
11916 Session state prevents operation.
11917 </result>
11918 <result name="VBOX_E_INVALID_OBJECT_STATE">
11919 Session type prevents operation.
11920 </result>
11921
11922 </desc>
11923 <param name="global" type="boolean" dir="in"/>
11924 </method>
11925
11926 <method name="onUSBDeviceAttach">
11927 <desc>
11928 Triggered when a request to capture a USB device (as a result
11929 of matched USB filters or direct call to
11930 <link to="IConsole::attachUSBDevice"/>) has completed.
11931 A @c null @a error object means success, otherwise it
11932 describes a failure.
11933
11934 <result name="VBOX_E_INVALID_VM_STATE">
11935 Session state prevents operation.
11936 </result>
11937 <result name="VBOX_E_INVALID_OBJECT_STATE">
11938 Session type prevents operation.
11939 </result>
11940
11941 </desc>
11942 <param name="device" type="IUSBDevice" dir="in"/>
11943 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11944 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
11945 </method>
11946
11947 <method name="onUSBDeviceDetach">
11948 <desc>
11949 Triggered when a request to release the USB device (as a result
11950 of machine termination or direct call to
11951 <link to="IConsole::detachUSBDevice"/>) has completed.
11952 A @c null @a error object means success, otherwise it
11953
11954 <result name="VBOX_E_INVALID_VM_STATE">
11955 Session state prevents operation.
11956 </result>
11957 <result name="VBOX_E_INVALID_OBJECT_STATE">
11958 Session type prevents operation.
11959 </result>
11960
11961 </desc>
11962 <param name="id" type="uuid" dir="in"/>
11963 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11964 </method>
11965
11966 <method name="onShowWindow">
11967 <desc>
11968 Called by <link to="IMachine::canShowConsoleWindow"/> and by
11969 <link to="IMachine::showConsoleWindow"/> in order to notify
11970 console callbacks
11971 <link to="IConsoleCallback::onCanShowWindow"/>
11972 and <link to="IConsoleCallback::onShowWindow"/>.
11973
11974 <result name="VBOX_E_INVALID_OBJECT_STATE">
11975 Session type prevents operation.
11976 </result>
11977
11978 </desc>
11979 <param name="check" type="boolean" dir="in"/>
11980 <param name="canShow" type="boolean" dir="out"/>
11981 <param name="winId" type="unsigned long long" dir="out"/>
11982 </method>
11983
11984 <method name="accessGuestProperty">
11985 <desc>
11986 Called by <link to="IMachine::getGuestProperty"/> and by
11987 <link to="IMachine::setGuestProperty"/> in order to read and
11988 modify guest properties.
11989
11990 <result name="VBOX_E_INVALID_VM_STATE">
11991 Machine session is not open.
11992 </result>
11993 <result name="VBOX_E_INVALID_OBJECT_STATE">
11994 Session type is not direct.
11995 </result>
11996
11997 </desc>
11998 <param name="name" type="wstring" dir="in"/>
11999 <param name="value" type="wstring" dir="in"/>
12000 <param name="flags" type="wstring" dir="in"/>
12001 <param name="isSetter" type="boolean" dir="in"/>
12002 <param name="retValue" type="wstring" dir="out"/>
12003 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12004 <param name="retFlags" type="wstring" dir="out"/>
12005 </method>
12006
12007 <method name="enumerateGuestProperties">
12008 <desc>
12009 Return a list of the guest properties matching a set of patterns along
12010 with their values, time stamps and flags.
12011
12012 <result name="VBOX_E_INVALID_VM_STATE">
12013 Machine session is not open.
12014 </result>
12015 <result name="VBOX_E_INVALID_OBJECT_STATE">
12016 Session type is not direct.
12017 </result>
12018
12019 </desc>
12020 <param name="patterns" type="wstring" dir="in">
12021 <desc>
12022 The patterns to match the properties against as a comma-separated
12023 string. If this is empty, all properties currently set will be
12024 returned.
12025 </desc>
12026 </param>
12027 <param name="key" type="wstring" dir="out" safearray="yes">
12028 <desc>
12029 The key names of the properties returned.
12030 </desc>
12031 </param>
12032 <param name="value" type="wstring" dir="out" safearray="yes">
12033 <desc>
12034 The values of the properties returned. The array entries match the
12035 corresponding entries in the @a key array.
12036 </desc>
12037 </param>
12038 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12039 <desc>
12040 The time stamps of the properties returned. The array entries match
12041 the corresponding entries in the @a key array.
12042 </desc>
12043 </param>
12044 <param name="flags" type="wstring" dir="out" safearray="yes">
12045 <desc>
12046 The flags of the properties returned. The array entries match the
12047 corresponding entries in the @a key array.
12048 </desc>
12049 </param>
12050 </method>
12051
12052 </interface>
12053
12054 <interface
12055 name="ISession" extends="$dispatched"
12056 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12057 wsmap="managed"
12058 >
12059 <desc>
12060 The ISession interface represents a serialization primitive for virtual
12061 machines.
12062
12063 With VirtualBox, every time one wishes to manipulate a virtual machine
12064 (e.g. change its settings or start execution), a session object is
12065 required. Such an object must be passed to one of the session methods
12066 that open the given session, which then initiates the machine manipulation.
12067
12068 A session serves several purposes: it identifies to the inter-process VirtualBox
12069 code which process is currently working with the virtual machine, and it ensures
12070 that there are no incompatible requests from several processes for the
12071 same virtual machine. Session objects can therefore be thought of as mutex
12072 semaphores that lock virtual machines to prevent conflicting accesses from
12073 several processes.
12074
12075 How sessions objects are used depends on whether you use the Main API
12076 via COM or via the webservice:
12077
12078 <ul>
12079 <li>When using the COM API directly, an object of the Session class from the
12080 VirtualBox type library needs to be created. In regular COM C++ client code,
12081 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12082 This object will then act as a local session object in further calls to open
12083 a session.
12084 </li>
12085
12086 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12087 one session object automatically when <link to="IWebsessionManager::logon" />
12088 is called. A managed object reference to that session object can be retrieved by
12089 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12090 reference can then be used to open sessions.
12091 </li>
12092 </ul>
12093
12094 Sessions are mainly used in two variations:
12095
12096 <ul>
12097 <li>
12098 To start a virtual machine in a separate process, one would call
12099 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12100 object as its first parameter. This session then identifies the caller
12101 and lets him control the started machine (for example, pause machine
12102 execution or power it down) as well as be notified about machine
12103 execution state changes.
12104 </li>
12105
12106 <li>To alter machine settings, or to start machine execution within the
12107 current process, one needs to open a direct session for the machine first by
12108 calling <link to="IVirtualBox::openSession"/>. While a direct session
12109 is open within one process, no any other process may open another direct
12110 session for the same machine. This prevents the machine from being changed
12111 by other processes while it is running or while the machine is being configured.
12112 </li>
12113 </ul>
12114
12115 One also can attach to an existing direct session already opened by
12116 another process (for example, in order to send a control request to the
12117 virtual machine such as the pause or the reset request). This is done by
12118 calling <link to="IVirtualBox::openExistingSession"/>.
12119
12120 <note>
12121 Unless you are trying to write a new VirtualBox front-end that
12122 performs direct machine execution (like the VirtualBox or VBoxSDL
12123 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12124 session opened by <link to="IVirtualBox::openSession"/> and use this
12125 session only to change virtual machine settings. If you simply want to
12126 start virtual machine execution using one of the existing front-ends
12127 (for example the VirtualBox GUI or headless server), simply use
12128 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12129 will power up the machine automatically for you.
12130 </note>
12131 </desc>
12132
12133 <attribute name="state" type="SessionState" readonly="yes">
12134 <desc>Current state of this session.</desc>
12135 </attribute>
12136
12137 <attribute name="type" type="SessionType" readonly="yes">
12138 <desc>
12139 Type of this session. The value of this attribute is valid only
12140 if the session is currently open (i.e. its #state is
12141 SessionType_SessionOpen), otherwise an error will be returned.
12142 </desc>
12143 </attribute>
12144
12145 <attribute name="machine" type="IMachine" readonly="yes">
12146 <desc>Machine object associated with this session.</desc>
12147 </attribute>
12148
12149 <attribute name="console" type="IConsole" readonly="yes">
12150 <desc>Console object associated with this session.</desc>
12151 </attribute>
12152
12153 <method name="close">
12154 <desc>
12155 Closes a session that was previously opened.
12156
12157 It is recommended that every time an "open session" method (such as
12158 <link to="IVirtualBox::openRemoteSession" /> or
12159 <link to="IVirtualBox::openSession" />) has been called to
12160 manipulate a virtual machine, the caller invoke
12161 ISession::close() when it's done doing so. Since sessions are
12162 serialization primitives much like ordinary mutexes, they are
12163 best used the same way: for each "open" call, there should be
12164 a matching "close" call, even when errors occur.
12165
12166 Otherwise, if a direct session for a machine opened with
12167 <link to="IVirtualBox::openSession"/> is not explicitly closed
12168 when the application terminates, the state of the machine will
12169 be set to <link to="MachineState_Aborted" /> on the server.
12170
12171 Generally, it is recommended to close all open sessions explicitly
12172 before terminating the application (regardless of the reason for
12173 the termination).
12174
12175 <note>
12176 Do not expect the session state (<link to="ISession::state" />
12177 to return to "Closed" immediately after you invoke
12178 ISession::close(), particularly if you have started a remote
12179 session to execute the VM in a new process. The session state will
12180 automatically return to "Closed" once the VM is no longer executing,
12181 which can of course take a very long time.
12182 </note>
12183
12184 <result name="E_UNEXPECTED">
12185 Session is not open.
12186 </result>
12187
12188 </desc>
12189 </method>
12190
12191 </interface>
12192
12193 <!--
12194 // ISATAController
12195 /////////////////////////////////////////////////////////////////////////
12196 -->
12197
12198 <interface
12199 name="ISATAController" extends="$unknown"
12200 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12201 wsmap="managed"
12202 >
12203 <attribute name="enabled" type="boolean">
12204 <desc>
12205 Flag whether the SATA controller is present in the
12206 guest system. If disabled, the virtual guest hardware will
12207 not contain any SATA controller. Can only be changed when
12208 the VM is powered off.
12209 </desc>
12210 </attribute>
12211
12212 <attribute name="portCount" type="unsigned long">
12213 <desc>
12214 The number of usable ports on the SATA controller.
12215 It ranges from 1 to 30.
12216 </desc>
12217 </attribute>
12218
12219 <method name="GetIDEEmulationPort">
12220 <desc>
12221 Gets the corresponding port number which is emulated as an IDE device.
12222
12223 <result name="E_INVALIDARG">
12224 The @a devicePosition is not in the range 0 to 3.
12225 </result>
12226
12227 </desc>
12228 <param name="devicePosition" type="long" dir="in"/>
12229 <param name="portNumber" type="long" dir="return"/>
12230 </method>
12231
12232 <method name="SetIDEEmulationPort">
12233 <desc>
12234 Sets the port number which is emulated as an IDE device.
12235
12236 <result name="E_INVALIDARG">
12237 The @a devicePosition is not in the range 0 to 3 or the
12238 @a portNumber is not in the range 0 to 29.
12239 </result>
12240
12241 </desc>
12242 <param name="devicePosition" type="long" dir="in"/>
12243 <param name="portNumber" type="long" dir="in"/>
12244 </method>
12245
12246 </interface>
12247
12248<if target="wsdl">
12249
12250 <!--
12251 // IManagedObjectRef
12252 /////////////////////////////////////////////////////////////////////////
12253 -->
12254
12255 <interface
12256 name="IManagedObjectRef" extends="$unknown"
12257 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12258 internal="yes"
12259 wsmap="managed"
12260 wscpp="hardcoded"
12261 >
12262 <desc>
12263 Managed object reference.
12264
12265 Only within the webservice, a managed object reference (which is really
12266 an opaque number) allows a webservice client to address an object
12267 that lives in the address space of the webservice server.
12268
12269 Behind each managed object reference, there is a COM object that lives
12270 in the webservice server's address space. The COM object is not freed
12271 until the managed object reference is released, either by an explicit
12272 call to <link to="IManagedObjectRef::release" /> or by logging off from
12273 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12274 all objects created during the webservice session.
12275
12276 Whenever a method call of the VirtualBox API returns a COM object, the
12277 webservice representation of that method will instead return a
12278 managed object reference, which can then be used to invoke methods
12279 on that object.
12280 </desc>
12281
12282 <method name="getInterfaceName">
12283 <desc>
12284 Returns the name of the interface that this managed object represents,
12285 for example, "IMachine", as a string.
12286 </desc>
12287 <param name="return" type="wstring" dir="return"/>
12288 </method>
12289
12290 <method name="release">
12291 <desc>
12292 Releases this managed object reference and frees the resources that
12293 were allocated for it in the webservice server process. After calling
12294 this method, the identifier of the reference can no longer be used.
12295 </desc>
12296 </method>
12297
12298 </interface>
12299
12300 <!--
12301 // IWebsessionManager
12302 /////////////////////////////////////////////////////////////////////////
12303 -->
12304
12305 <interface
12306 name="IWebsessionManager" extends="$unknown"
12307 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12308 internal="yes"
12309 wsmap="global"
12310 wscpp="hardcoded"
12311 >
12312 <desc>
12313 Websession manager. This provides essential services
12314 to webservice clients.
12315 </desc>
12316 <method name="logon">
12317 <desc>
12318 Logs a new client onto the webservice and returns a managed object reference to
12319 the IVirtualBox instance, which the client can then use as a basis to further
12320 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12321 interface, in one way or the other.
12322 </desc>
12323 <param name="username" type="wstring" dir="in"/>
12324 <param name="password" type="wstring" dir="in"/>
12325 <param name="return" type="IVirtualBox" dir="return"/>
12326 </method>
12327
12328 <method name="getSessionObject">
12329 <desc>
12330 Returns a managed object reference to the internal ISession object that was created
12331 for this web service session when the client logged on.
12332
12333 <see>ISession</see>
12334 </desc>
12335 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12336 <param name="return" type="ISession" dir="return"/>
12337 </method>
12338
12339 <method name="logoff">
12340 <desc>
12341 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12342 and destroys all resources associated with the session (most importantly, all
12343 managed objects created in the server while the session was active).
12344 </desc>
12345 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12346 </method>
12347
12348 </interface>
12349
12350</if>
12351
12352 <!--
12353 // IPerformanceCollector & friends
12354 /////////////////////////////////////////////////////////////////////////
12355 -->
12356
12357 <interface
12358 name="IPerformanceMetric" extends="$unknown"
12359 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12360 >
12361 <desc>
12362 The IPerformanceMetric interface represents parameters of the given
12363 performance metric.
12364 </desc>
12365
12366 <attribute name="metricName" type="wstring" readonly="yes">
12367 <desc>
12368 Name of the metric.
12369 </desc>
12370 </attribute>
12371
12372 <attribute name="object" type="$unknown" readonly="yes">
12373 <desc>
12374 Object this metric belongs to.
12375 </desc>
12376 </attribute>
12377
12378 <attribute name="description" type="wstring" readonly="yes">
12379 <desc>
12380 Textual description of the metric.
12381 </desc>
12382 </attribute>
12383
12384 <attribute name="period" type="unsigned long" readonly="yes">
12385 <desc>
12386 Time interval between samples, measured in seconds.
12387 </desc>
12388 </attribute>
12389
12390 <attribute name="count" type="unsigned long" readonly="yes">
12391 <desc>
12392 Number of recent samples retained by the performance collector for this
12393 metric.
12394
12395 When the collected sample count exceeds this number, older samples
12396 are discarded.
12397 </desc>
12398 </attribute>
12399
12400 <attribute name="unit" type="wstring" readonly="yes">
12401 <desc>
12402 Unit of measurement.
12403 </desc>
12404 </attribute>
12405
12406 <attribute name="minimumValue" type="long" readonly="yes">
12407 <desc>
12408 Minimum possible value of this metric.
12409 </desc>
12410 </attribute>
12411
12412 <attribute name="maximumValue" type="long" readonly="yes">
12413 <desc>
12414 Maximum possible value of this metric.
12415 </desc>
12416 </attribute>
12417 </interface>
12418
12419 <interface
12420 name="IPerformanceCollector" extends="$unknown"
12421 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12422 wsmap="managed"
12423 >
12424 <desc>
12425 The IPerformanceCollector interface represents a service that collects and
12426 stores performance metrics data.
12427
12428 Performance metrics are associated with objects like IHost and
12429 IMachine. Each object has a distinct set of performance metrics.
12430 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12431
12432 Metric data are collected at the specified intervals and are retained
12433 internally. The interval and the number of samples retained can be set
12434 with <link to="IPerformanceCollector::setupMetrics" />.
12435
12436 Metrics are organized hierarchically, each level separated by slash (/).
12437 General scheme for metric name is
12438 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12439 metric name stands for: CPU category, Load metric, User submetric, average
12440 aggregate. An aggregate function is computed over all retained data. Valid
12441 aggregate functions are:
12442
12443 <ul>
12444 <li>avg -- average</li>
12445 <li>min -- minimum</li>
12446 <li>max -- maximum</li>
12447 </ul>
12448
12449 "Category/Metric" together form base metric name. A base metric is the
12450 smallest unit for which a sampling interval and the number of retained
12451 samples can be set. Only base metrics can be enabled and disabled. All
12452 sub-metrics are collected when their base metric is collected.
12453 Collected values for any set of sub-metrics can be queried with
12454 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12455 metric parameters, querying metric data, enabling or disabling metrics
12456 wildcards can be used in metric names to specify a subset of metrics. For
12457 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12458 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12459 values without aggregates <tt>*:</tt> can be used.
12460
12461 The valid names for base metrics are:
12462
12463 <ul>
12464 <li>CPU/Load</li>
12465 <li>CPU/MHz</li>
12466 <li>RAM/Usage</li>
12467 </ul>
12468
12469 The general sequence for collecting and retrieving the metrics is:
12470 <ul>
12471 <li>
12472 Obtain an instance of IPerformanceCollector with
12473 <link to="IVirtualBox::performanceCollector" />
12474 </li>
12475 <li>
12476 Allocate and populate an array with references to objects the metrics
12477 will be collected for. Use references to IHost and IMachine objects.
12478 </li>
12479 <li>
12480 Allocate and populate an array with base metric names the data will be
12481 collected for.
12482 </li>
12483 <li>
12484 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12485 metric data will be collected and stored.
12486 </li>
12487 <li>
12488 Wait for the data to get collected.
12489 </li>
12490 <li>
12491 Allocate and populate an array with references to objects the metric
12492 values will be queried for. You can re-use the object array used for
12493 setting base metrics.
12494 </li>
12495 <li>
12496 Allocate and populate an array with metric names the data will be
12497 collected for. Note that metric names differ from base metric names.
12498 </li>
12499 <li>
12500 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12501 have been collected so far are returned. Note that the values are still
12502 retained internally and data collection continues.
12503 </li>
12504 </ul>
12505
12506 For an example of usage refer to the following files in VirtualBox SDK:
12507 <ul>
12508 <li>
12509 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12510 </li>
12511 <li>
12512 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12513 </li>
12514 </ul>
12515 </desc>
12516
12517 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12518 <desc>
12519 Array of unique names of metrics.
12520
12521 This array represents all metrics supported by the performance
12522 collector. Individual objects do not necessarily support all of them.
12523 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12524 list of supported metrics for a particular object.
12525 </desc>
12526 </attribute>
12527
12528 <method name="getMetrics">
12529 <desc>
12530 Returns parameters of specified metrics for a set of objects.
12531 <note>
12532 @c Null metrics array means all metrics. @c Null object array means
12533 all existing objects.
12534 </note>
12535 </desc>
12536 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12537 <desc>
12538 Metric name filter. Currently, only a comma-separated list of metrics
12539 is supported.
12540 </desc>
12541 </param>
12542 <param name="objects" type="$unknown" dir="in" safearray="yes">
12543 <desc>
12544 Set of objects to return metric parameters for.
12545 </desc>
12546 </param>
12547 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12548 <desc>
12549 Array of returned metric parameters.
12550 </desc>
12551 </param>
12552 </method>
12553
12554 <method name="setupMetrics">
12555 <desc>
12556 Sets parameters of specified base metrics for a set of objects. Returns
12557 an array of <link to="IPerformanceMetric" /> describing the metrics have
12558 been affected.
12559 <note>
12560 @c Null or empty metric name array means all metrics. @c Null or empty
12561 object array means all existing objects. If metric name array contains
12562 a single element and object array contains many, the single metric
12563 name array element is applied to each object array element to form
12564 metric/object pairs.
12565 </note>
12566 </desc>
12567 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12568 <desc>
12569 Metric name filter. Comma-separated list of metrics with wildcard
12570 support.
12571 </desc>
12572 </param>
12573 <param name="objects" type="$unknown" dir="in" safearray="yes">
12574 <desc>
12575 Set of objects to setup metric parameters for.
12576 </desc>
12577 </param>
12578 <param name="period" type="unsigned long" dir="in">
12579 <desc>
12580 Time interval in seconds between two consecutive samples of performance
12581 data.
12582 </desc>
12583 </param>
12584 <param name="count" type="unsigned long" dir="in">
12585 <desc>
12586 Number of samples to retain in performance data history. Older samples
12587 get discarded.
12588 </desc>
12589 </param>
12590 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12591 <desc>
12592 Array of metrics that have been modified by the call to this method.
12593 </desc>
12594 </param>
12595 </method>
12596
12597 <method name="enableMetrics">
12598 <desc>
12599 Turns on collecting specified base metrics. Returns an array of
12600 <link to="IPerformanceMetric" /> describing the metrics have been
12601 affected.
12602 <note>
12603 @c Null or empty metric name array means all metrics. @c Null or empty
12604 object array means all existing objects. If metric name array contains
12605 a single element and object array contains many, the single metric
12606 name array element is applied to each object array element to form
12607 metric/object pairs.
12608 </note>
12609 </desc>
12610 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12611 <desc>
12612 Metric name filter. Comma-separated list of metrics with wildcard
12613 support.
12614 </desc>
12615 </param>
12616 <param name="objects" type="$unknown" dir="in" safearray="yes">
12617 <desc>
12618 Set of objects to enable metrics for.
12619 </desc>
12620 </param>
12621 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12622 <desc>
12623 Array of metrics that have been modified by the call to this method.
12624 </desc>
12625 </param>
12626 </method>
12627
12628 <method name="disableMetrics">
12629 <desc>
12630 Turns off collecting specified base metrics. Returns an array of
12631 <link to="IPerformanceMetric" /> describing the metrics have been
12632 affected.
12633 <note>
12634 @c Null or empty metric name array means all metrics. @c Null or empty
12635 object array means all existing objects. If metric name array contains
12636 a single element and object array contains many, the single metric
12637 name array element is applied to each object array element to form
12638 metric/object pairs.
12639 </note>
12640 </desc>
12641 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12642 <desc>
12643 Metric name filter. Comma-separated list of metrics with wildcard
12644 support.
12645 </desc>
12646 </param>
12647 <param name="objects" type="$unknown" dir="in" safearray="yes">
12648 <desc>
12649 Set of objects to disable metrics for.
12650 </desc>
12651 </param>
12652 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12653 <desc>
12654 Array of metrics that have been modified by the call to this method.
12655 </desc>
12656 </param>
12657 </method>
12658
12659 <method name="queryMetricsData">
12660 <desc>
12661 Queries collected metrics data for a set of objects.
12662
12663 The data itself and related metric information are returned in seven
12664 parallel and one flattened array of arrays. Elements of
12665 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12666 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12667 the same index describe one set of values corresponding to a single
12668 metric.
12669
12670 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12671 start and length of a sub-array is indicated by
12672 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12673 value for metric <tt>metricNames[i]</tt> is at
12674 <tt>returnData[returnIndices[i]]</tt>.
12675
12676 <note>
12677 @c Null or empty metric name array means all metrics. @c Null or empty
12678 object array means all existing objects. If metric name array contains
12679 a single element and object array contains many, the single metric
12680 name array element is applied to each object array element to form
12681 metric/object pairs.
12682 </note>
12683 <note>
12684 Data collection continues behind the scenes after call to
12685 @c queryMetricsData. The return data can be seen as the snapshot of
12686 the current state at the time of @c queryMetricsData call. The
12687 internally kept metric values are not cleared by the call. This makes
12688 possible querying different subsets of metrics or aggregates with
12689 subsequent calls. If periodic querying is needed it is highly
12690 suggested to query the values with @c interval*count period to avoid
12691 confusion. This way a completely new set of data values will be
12692 provided by each query.
12693 </note>
12694 </desc>
12695 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12696 <desc>
12697 Metric name filter. Comma-separated list of metrics with wildcard
12698 support.
12699 </desc>
12700 </param>
12701 <param name="objects" type="$unknown" dir="in" safearray="yes">
12702 <desc>
12703 Set of objects to query metrics for.
12704 </desc>
12705 </param>
12706 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12707 <desc>
12708 Names of metrics returned in @c returnData.
12709 </desc>
12710 </param>
12711 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12712 <desc>
12713 Objects associated with metrics returned in @c returnData.
12714 </desc>
12715 </param>
12716 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12717 <desc>
12718 Units of measurement for each returned metric.
12719 </desc>
12720 </param>
12721 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12722 <desc>
12723 Divisor that should be applied to return values in order to get
12724 floating point values. For example:
12725 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12726 will retrieve the floating point value of i-th sample of the first
12727 metric.
12728 </desc>
12729 </param>
12730 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12731 <desc>
12732 Sequence numbers of the first elements of value sequences of particular metrics
12733 returned in @c returnData. For aggregate metrics it is the sequence number of
12734 the sample the aggregate started calculation from.
12735 </desc>
12736 </param>
12737 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12738 <desc>
12739 Indices of the first elements of value sequences of particular metrics
12740 returned in @c returnData.
12741 </desc>
12742 </param>
12743 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12744 <desc>
12745 Lengths of value sequences of particular metrics.
12746 </desc>
12747 </param>
12748 <param name="returnData" type="long" dir="return" safearray="yes">
12749 <desc>
12750 Flattened array of all metric data containing sequences of values for
12751 each metric.
12752 </desc>
12753 </param>
12754 </method>
12755
12756 </interface>
12757
12758 <module name="VBoxSVC" context="LocalServer">
12759 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12760 namespace="virtualbox.org">
12761 <interface name="IVirtualBox" default="yes"/>
12762 </class>
12763 </module>
12764
12765 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12766 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12767 namespace="virtualbox.org">
12768 <interface name="ISession" default="yes"/>
12769 </class>
12770 </module>
12771
12772</library>
12773
12774</idl>
12775
12776<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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