VirtualBox

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

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

VBoxManage interface to hostonly if basis

  • Property svn:eol-style set to native
File size: 473.9 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, <tt>NULL</tt>). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="MachineState"
363 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
364 >
365 <desc>
366 Virtual machine execution state.
367
368 This enumeration represents possible values of the <link
369 to="IMachine::state"/> attribute.
370
371 Below is the basic virtual machine state diagram. It shows how the state
372 changes during virtual machine execution. The text in square braces shows
373 a method of the IConsole interface that performs the given state
374 transition.
375
376 <pre>
377 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
378 V |
379 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
380 | | | | V |
381 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
382 | | ^ | ^ |
383 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
384 | ^ | | | |
385 | | +-----------------------------------------+-|-------------------+ +
386 | | | | |
387 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
388 | | | |
389 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
390 | | |
391 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
392 </pre>
393
394 Note that states to the right from PoweredOff, Aborted and Saved in the
395 above diagram are called <i>online VM states</i>. These states
396 represent the virtual machine which is being executed in a dedicated
397 process (usually with a GUI window attached to it where you can see the
398 activity of the virtual machine and interact with it). There are two
399 special pseudo-states, FirstOnline and LastOnline, that can be used in
400 relational expressions to detect if the given machine state is online or
401 not:
402
403 <pre>
404 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
405 machine.GetState() &lt;= MachineState_LastOnline)
406 {
407 ...the machine is being executed...
408 }
409 </pre>
410
411 When the virtual machine is in one of the online VM states (that is, being
412 executed), only a few machine settings can be modified. Methods working
413 with such settings contain an explicit note about that. An attempt to
414 change any oter setting or perform a modifying operation during this time
415 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
416
417 All online states except Running, Paused and Stuck are transitional: they
418 represent temporary conditions of the virtual machine that will last as
419 long as the operation that initiated such a condition.
420
421 The Stuck state is a special case. It means that execution of the machine
422 has reached the "Guru Meditation" condition. This condition indicates an
423 internal VMM (virtual machine manager) failure which may happen as a
424 result of either an unhandled low-level virtual hardware exception or one
425 of the recompiler exceptions (such as the <i>too-many-traps</i>
426 condition).
427
428 Note also that any online VM state may transit to the Aborted state. This
429 happens if the process that is executing the virtual machine terminates
430 unexpectedly (for example, crashes). Other than that, the Aborted state is
431 equivalent to PoweredOff.
432
433 There are also a few additional state diagrams that do not deal with
434 virtual machine execution and therefore are shown separately. The states
435 shown on these diagrams are called <i>offline VM states</i> (this includes
436 PoweredOff, Aborted and Saved too).
437
438 The first diagram shows what happens when a lengthy setup operation is
439 being executed (such as <link to="IMachine::attachHardDisk"/>).
440
441 <pre>
442 +-----------------------------------(same sate as before the call)------+
443 | |
444 +-&gt; PoweredOff --+ |
445 | | |
446 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
447 | |
448 +-&gt; Saved -------+
449 </pre>
450
451 The next two diagrams demonstrate the process of taking a snapshot of a
452 powered off virtual machine and performing one of the "discard..."
453 operations, respectively.
454
455 <pre>
456 +-----------------------------------(same sate as before the call)------+
457 | |
458 +-&gt; PoweredOff --+ |
459 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
460 +-&gt; Aborted -----+
461
462 +-&gt; PoweredOff --+
463 | |
464 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
465 | | [discardCurrentState()] |
466 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
467 | |
468 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
469 </pre>
470
471 Note that the Saving state is present in both the offline state group and
472 online state group. Currently, the only way to determine what group is
473 assumed in a particular case is to remember the previous machine state: if
474 it was Running or Paused, then Saving is an online state, otherwise it is
475 an offline state. This inconsistency may be removed in one of the future
476 versions of VirtualBox by adding a new state.
477
478 <note internal="yes">
479 For whoever decides to touch this enum: In order to keep the
480 comparisons involving FirstOnline and LastOnline pseudo-states valid,
481 the numeric values of these states must be correspondingly updated if
482 needed: for any online VM state, the condition
483 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
484 <tt>true</tt>. The same relates to transient states for which
485 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
486 <tt>true</tt>.
487 </note>
488 </desc>
489
490 <const name="Null" value="0">
491 <desc>Null value (nver used by the API).</desc>
492 </const>
493 <const name="PoweredOff" value="1">
494 <desc>
495 The machine is not running.
496 </desc>
497 </const>
498 <const name="Saved" value="2">
499 <desc>
500 The machine is not currently running, but the execution state of the machine
501 has been saved to an external file when it was running.
502 </desc>
503 </const>
504 <const name="Aborted" value="3">
505 <desc>
506 The process running the machine has terminated abnormally.
507 </desc>
508 </const>
509 <const name="Running" value="4">
510 <desc>
511 The machine is currently being executed.
512 <note internal="yes">
513 For whoever decides to touch this enum: In order to keep the
514 comparisons in the old source code valid, this state must immediately
515 precede the Paused state.
516 </note>
517 </desc>
518 </const>
519 <const name="Paused" value="5">
520 <desc>
521 Execution of the machine has been paused.
522 <note internal="yes">
523 For whoever decides to touch this enum: In order to keep the
524 comparisons in the old source code valid, this state must immediately
525 follow the Running state.
526 </note>
527 </desc>
528 </const>
529 <const name="Stuck" value="6">
530 <desc>
531 Execution of the machine has reached the "Guru Meditation"
532 condition.
533 </desc>
534 </const>
535 <const name="Starting" value="7">
536 <desc>
537 Machine is being started after powering it on from a
538 zero execution state.
539 </desc>
540 </const>
541 <const name="Stopping" value="8">
542 <desc>
543 Machine is being normally stopped powering it off, or after the guest OS
544 has initiated a shutdown sequence.
545 </desc>
546 </const>
547 <const name="Saving" value="9">
548 <desc>
549 Machine is saving its execution state to a file or an online
550 snapshot of the machine is being taken.
551 </desc>
552 </const>
553 <const name="Restoring" value="10">
554 <desc>
555 Execution state of the machine is being restored from a file
556 after powering it on from the saved execution state.
557 </desc>
558 </const>
559 <const name="Discarding" value="11">
560 <desc>
561 Snapshot of the machine is being discarded.
562 </desc>
563 </const>
564 <const name="SettingUp" value="12">
565 <desc>
566 Lengthy setup operation is in progress.
567 </desc>
568 </const>
569
570 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
571 <desc>
572 Pseudo-state: first online state (for use in relational expressions).
573 </desc>
574 </const>
575 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
576 <desc>
577 Pseudo-state: last online state (for use in relational expressions).
578 </desc>
579 </const>
580
581 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
582 <desc>
583 Pseudo-state: first transient state (for use in relational expressions).
584 </desc>
585 </const>
586 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
587 <desc>
588 Pseudo-state: last transient state (for use in relational expressions).
589 </desc>
590 </const>
591
592 </enum>
593
594 <enum
595 name="SessionState"
596 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
597 >
598 <desc>
599 Session state. This enumeration represents possible values of
600 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
601 attributes. See individual enumerator descriptions for the meaning for
602 every value.
603 </desc>
604
605 <const name="Null" value="0">
606 <desc>Null value (never used by the API).</desc>
607 </const>
608 <const name="Closed" value="1">
609 <desc>
610 The machine has no open sessions (<link to="IMachine::sessionState"/>);
611 the session is closed (<link to="ISession::state"/>)
612 </desc>
613 </const>
614 <const name="Open" value="2">
615 <desc>
616 The machine has an open direct session (<link to="IMachine::sessionState"/>);
617 the session is open (<link to="ISession::state"/>)
618 </desc>
619 </const>
620 <const name="Spawning" value="3">
621 <desc>
622 A new (direct) session is being opened for the machine
623 as a result of <link to="IVirtualBox::openRemoteSession"/>
624 call (<link to="IMachine::sessionState"/>);
625 the session is currently being opened
626 as a result of <link to="IVirtualBox::openRemoteSession"/>
627 call (<link to="ISession::state"/>)
628 </desc>
629 </const>
630 <const name="Closing" value="4">
631 <desc>
632 The direct session is being closed (<link to="IMachine::sessionState"/>);
633 the session is being closed (<link to="ISession::state"/>)
634 </desc>
635 </const>
636 </enum>
637
638 <enum
639 name="SessionType"
640 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
641 >
642 <desc>
643 Session type. This enumeration represents possible values of the
644 <link to="ISession::type"/> attribute.
645 </desc>
646
647 <const name="Null" value="0">
648 <desc>Null value (never used by the API).</desc>
649 </const>
650 <const name="Direct" value="1">
651 <desc>
652 Direct session
653 (opened by <link to="IVirtualBox::openSession"/>)
654 </desc>
655 </const>
656 <const name="Remote" value="2">
657 <desc>
658 Remote session
659 (opened by <link to="IVirtualBox::openRemoteSession"/>)
660 </desc>
661 </const>
662 <const name="Existing" value="3">
663 <desc>
664 Existing session
665 (opened by <link to="IVirtualBox::openExistingSession"/>)
666 </desc>
667 </const>
668 </enum>
669
670 <enum
671 name="DeviceType"
672 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
673 >
674 <desc>
675 Device type.
676 </desc>
677 <const name="Null" value="0">
678 <desc>
679 Null value, may also mean "no device" (not allowed for
680 <link to="IConsole::getDeviceActivity"/>).
681 </desc>
682 </const>
683 <const name="Floppy" value="1">
684 <desc>Floppy device.</desc>
685 </const>
686 <const name="DVD" value="2">
687 <desc>CD/DVD-ROM device.</desc>
688 </const>
689 <const name="HardDisk" value="3">
690 <desc>Hard disk device.</desc>
691 </const>
692 <const name="Network" value="4">
693 <desc>Network device.</desc>
694 </const>
695 <const name="USB" value="5">
696 <desc>USB device.</desc>
697 </const>
698 <const name="SharedFolder" value="6">
699 <desc>Shared folder device.</desc>
700 </const>
701 </enum>
702
703 <enum
704 name="DeviceActivity"
705 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
706 >
707 <desc>
708 Device activity for <link to="IConsole::getDeviceActivity"/>.
709 </desc>
710
711 <const name="Null" value="0"/>
712 <const name="Idle" value="1"/>
713 <const name="Reading" value="2"/>
714 <const name="Writing" value="3"/>
715 </enum>
716
717 <enum
718 name="StorageBus"
719 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
720 >
721 <desc>Interface bus type for storage devices.</desc>
722
723 <const name="Null" value="0">
724 <desc>Null value (never used by the API).</desc>
725 </const>
726
727 <const name="IDE" value="1"/>
728 <const name="SATA" value="2"/>
729 </enum>
730
731 <enum
732 name="ClipboardMode"
733 uuid="33364716-4008-4701-8f14-be0fa3d62950"
734 >
735 <desc>
736 Host-Guest clipboard interchange mode.
737 </desc>
738
739 <const name="Disabled" value="0"/>
740 <const name="HostToGuest" value="1"/>
741 <const name="GuestToHost" value="2"/>
742 <const name="Bidirectional" value="3"/>
743 </enum>
744
745 <enum
746 name="Scope"
747 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
748 >
749 <desc>
750 Scope of the operation.
751
752 A generic enumeration used in various methods to define the action or
753 argument scope.
754 </desc>
755
756 <const name="Global" value="0"/>
757 <const name="Machine" value="1"/>
758 <const name="Session" value="2"/>
759 </enum>
760
761 <enum
762 name="GuestStatisticType"
763 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
764 >
765 <desc>
766 Statistics type for <link to="IGuest::getStatistic"/>.
767 </desc>
768
769 <const name="CPULoad_Idle" value="0">
770 <desc>
771 Idle CPU load (0-100%) for last interval.
772 </desc>
773 </const>
774 <const name="CPULoad_Kernel" value="1">
775 <desc>
776 Kernel CPU load (0-100%) for last interval.
777 </desc>
778 </const>
779 <const name="CPULoad_User" value="2">
780 <desc>
781 User CPU load (0-100%) for last interval.
782 </desc>
783 </const>
784 <const name="Threads" value="3">
785 <desc>
786 Total number of threads in the system.
787 </desc>
788 </const>
789 <const name="Processes" value="4">
790 <desc>
791 Total number of processes in the system.
792 </desc>
793 </const>
794 <const name="Handles" value="5">
795 <desc>
796 Total number of handles in the system.
797 </desc>
798 </const>
799 <const name="MemoryLoad" value="6">
800 <desc>
801 Memory load (0-100%).
802 </desc>
803 </const>
804 <const name="PhysMemTotal" value="7">
805 <desc>
806 Total physical memory in megabytes.
807 </desc>
808 </const>
809 <const name="PhysMemAvailable" value="8">
810 <desc>
811 Free physical memory in megabytes.
812 </desc>
813 </const>
814 <const name="PhysMemBalloon" value="9">
815 <desc>
816 Ballooned physical memory in megabytes.
817 </desc>
818 </const>
819 <const name="MemCommitTotal" value="10">
820 <desc>
821 Total amount of memory in the committed state in megabytes.
822 </desc>
823 </const>
824 <const name="MemKernelTotal" value="11">
825 <desc>
826 Total amount of memory used by the guest OS's kernel in megabytes.
827 </desc>
828 </const>
829 <const name="MemKernelPaged" value="12">
830 <desc>
831 Total amount of paged memory used by the guest OS's kernel in megabytes.
832 </desc>
833 </const>
834 <const name="MemKernelNonpaged" value="13">
835 <desc>
836 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
837 </desc>
838 </const>
839 <const name="MemSystemCache" value="14">
840 <desc>
841 Total amount of memory used by the guest OS's system cache in megabytes.
842 </desc>
843 </const>
844 <const name="PageFileSize" value="15">
845 <desc>
846 Pagefile size in megabytes.
847 </desc>
848 </const>
849 <const name="SampleNumber" value="16">
850 <desc>
851 Statistics sample number
852 </desc>
853 </const>
854 <const name="MaxVal" value="17"/>
855 </enum>
856
857 <enum
858 name="BIOSBootMenuMode"
859 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
860 >
861 <desc>
862 BIOS boot menu mode.
863 </desc>
864
865 <const name="Disabled" value="0"/>
866 <const name="MenuOnly" value="1"/>
867 <const name="MessageAndMenu" value="2"/>
868 </enum>
869
870 <enum
871 name="IDEControllerType"
872 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
873 >
874 <desc>
875 IDE controller type.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="PIIX3" value="1"/>
882 <const name="PIIX4" value="2"/>
883 <const name="ICH6" value="3"/>
884 </enum>
885
886 <enum
887 name="DriveState"
888 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
889 >
890 <const name="Null" value="0">
891 <desc>Null value (never used by the API).</desc>
892 </const>
893 <const name="NotMounted" value="1"/>
894 <const name="ImageMounted" value="2"/>
895 <const name="HostDriveCaptured" value="3"/>
896 </enum>
897
898 <enum
899 name="ProcessorFeature"
900 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
901 >
902 <desc>
903 CPU features.
904 </desc>
905
906 <const name="HWVirtEx" value="0"/>
907 <const name="PAE" value="1"/>
908 <const name="LongMode" value="2"/>
909 </enum>
910
911
912 <!--
913 // IVirtualBoxErrorInfo
914 /////////////////////////////////////////////////////////////////////////
915 -->
916
917 <interface
918 name="IVirtualBoxErrorInfo" extends="$errorinfo"
919 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
920 supportsErrorInfo="no"
921 wsmap="suppress"
922 >
923 <desc>
924 The IVirtualBoxErrorInfo interface represents extended error information.
925
926 Extended error information can be set by VirtualBox components after
927 unsuccessful or partially successful method invocation. This information
928 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
929 and then shown to the client in addition to the plain 32-bit result code.
930
931 In MS COM, this interface extends the IErrorInfo interface,
932 in XPCOM, it extends the nsIException interface. In both cases,
933 it provides a set of common attributes to retrieve error
934 information.
935
936 Sometimes invocation of some component's method may involve methods of
937 other components that may also fail (independently of this method's
938 failure), or a series of non-fatal errors may precede a fatal error that
939 causes method failure. In cases like that, it may be desirable to preserve
940 information about all errors happened during method invocation and deliver
941 it to the caller. The <link to="#next"/> attribute is intended
942 specifically for this purpose and allows to represent a chain of errors
943 through a single IVirtualBoxErrorInfo object set after method invocation.
944
945 Note that errors are stored to a chain in the reverse order, i.e. the
946 initial error object you query right after method invocation is the last
947 error set by the callee, the object it points to in the @a next attribute
948 is the previous error and so on, up to the first error (which is the last
949 in the chain).
950 </desc>
951
952 <attribute name="resultCode" type="result" readonly="yes">
953 <desc>
954 Result code of the error.
955 Usually, it will be the same as the result code returned
956 by the method that provided this error information, but not
957 always. For example, on Win32, CoCreateInstance() will most
958 likely return E_NOINTERFACE upon unsuccessful component
959 instantiation attempt, but not the value the component factory
960 returned.
961 <note>
962 In MS COM, there is no equivalent.
963 In XPCOM, it is the same as nsIException::result.
964 </note>
965 </desc>
966 </attribute>
967
968 <attribute name="interfaceID" type="uuid" readonly="yes">
969 <desc>
970 UUID of the interface that defined the error.
971 <note>
972 In MS COM, it is the same as IErrorInfo::GetGUID.
973 In XPCOM, there is no equivalent.
974 </note>
975 </desc>
976 </attribute>
977
978 <attribute name="component" type="wstring" readonly="yes">
979 <desc>
980 Name of the component that generated the error.
981 <note>
982 In MS COM, it is the same as IErrorInfo::GetSource.
983 In XPCOM, there is no equivalent.
984 </note>
985 </desc>
986 </attribute>
987
988 <attribute name="text" type="wstring" readonly="yes">
989 <desc>
990 Text description of the error.
991 <note>
992 In MS COM, it is the same as IErrorInfo::GetDescription.
993 In XPCOM, it is the same as nsIException::message.
994 </note>
995 </desc>
996 </attribute>
997
998 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
999 <desc>
1000 Next error object if there is any, or @c null otherwise.
1001 <note>
1002 In MS COM, there is no equivalent.
1003 In XPCOM, it is the same as nsIException::inner.
1004 </note>
1005 </desc>
1006 </attribute>
1007
1008 </interface>
1009
1010
1011 <!--
1012 // IVirtualBox
1013 /////////////////////////////////////////////////////////////////////////
1014 -->
1015
1016 <interface
1017 name="IVirtualBoxCallback" extends="$unknown"
1018 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
1019 wsmap="suppress"
1020 >
1021 <method name="onMachineStateChange">
1022 <desc>
1023 The execution state of the given machine has changed.
1024 <see>IMachine::state</see>
1025 </desc>
1026 <param name="machineId" type="uuid" dir="in">
1027 <desc>ID of the machine this event relates to.</desc>
1028 </param>
1029 <param name="state" type="MachineState" dir="in">
1030 <desc>New execution state.</desc>
1031 </param>
1032 </method>
1033
1034 <method name="onMachineDataChange">
1035 <desc>
1036 Any of the settings of the given machine has changed.
1037 </desc>
1038 <param name="machineId" type="uuid" dir="in">
1039 <desc>ID of the machine this event relates to.</desc>
1040 </param>
1041 </method>
1042
1043 <method name="onExtraDataCanChange">
1044 <desc>
1045 Notification when someone tries to change extra data for
1046 either the given machine or (if null) global extra data.
1047 This gives the chance to veto against changes.
1048 </desc>
1049 <param name="machineId" type="uuid" dir="in">
1050 <desc>
1051 ID of the machine this event relates to
1052 (null ID for global extra data change requests).
1053 </desc>
1054 </param>
1055 <param name="key" type="wstring" dir="in">
1056 <desc>
1057 Extra data key for the attempted write.
1058 </desc>
1059 </param>
1060 <param name="value" type="wstring" dir="in">
1061 <desc>
1062 Extra data value for the given key.
1063 </desc>
1064 </param>
1065 <param name="error" type="wstring" dir="out">
1066 <desc>
1067 Optional error message describing the reason of the
1068 veto (ignored if this notification returns @c true).
1069 </desc>
1070 </param>
1071 <param name="allowChange" type="boolean" dir="return">
1072 <desc>
1073 Flag to indicate whether the callee agrees (@c true)
1074 or vetoes against the change (@c false).
1075 </desc>
1076 </param>
1077 </method>
1078
1079 <method name="onExtraDataChange">
1080 <desc>
1081 Notification when machine specific or global extra data
1082 has changed.
1083 </desc>
1084 <param name="machineId" type="uuid" dir="in">
1085 <desc>
1086 ID of the machine this event relates to.
1087 Null for global extra data changes.
1088 </desc>
1089 </param>
1090 <param name="key" type="wstring" dir="in">
1091 <desc>
1092 Extra data key that has changed.
1093 </desc>
1094 </param>
1095 <param name="value" type="wstring" dir="in">
1096 <desc>
1097 Extra data value for the given key.
1098 </desc>
1099 </param>
1100 </method>
1101
1102 <method name="onMediaRegistered">
1103 <desc>
1104 The given media was registered or unregistered
1105 within this VirtualBox installation.
1106
1107 The @a mediaType parameter describes what type of
1108 media the specified @a mediaId refers to. Possible
1109 values are:
1110
1111 <ul>
1112 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1113 that, if registered, can be obtained using the
1114 <link to="IVirtualBox::getHardDisk"/> call.</li>
1115 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1116 that, if registered, can be obtained using the
1117 <link to="IVirtualBox::getDVDImage"/> call.</li>
1118 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1119 that, if registered, can be obtained using the
1120 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1121 </ul>
1122
1123 Note that if this is a deregistration notification,
1124 there is no way to access the object representing the
1125 unregistered media. It is supposed that the
1126 application will do required cleanup based on the
1127 @a mediaId value.
1128 </desc>
1129 <param name="mediaId" type="uuid" dir="in">
1130 <desc>ID of the media this event relates to.</desc>
1131 </param>
1132 <param name="mediaType" type="DeviceType" dir="in">
1133 <desc>Type of the media this event relates to.</desc>
1134 </param>
1135 <param name="registered" type="boolean" dir="in">
1136 <desc>
1137 If true, the media was registered, otherwise it was
1138 unregistered.
1139 </desc>
1140 </param>
1141 </method>
1142
1143 <method name="onMachineRegistered">
1144 <desc>
1145 The given machine was registered or unregistered
1146 within this VirtualBox installation.
1147 </desc>
1148 <param name="machineId" type="uuid" dir="in">
1149 <desc>ID of the machine this event relates to.</desc>
1150 </param>
1151 <param name="registered" type="boolean" dir="in">
1152 <desc>
1153 If true, the machine was registered, otherwise it was
1154 unregistered.
1155 </desc>
1156 </param>
1157 </method>
1158
1159 <method name="onSessionStateChange">
1160 <desc>
1161 The state of the session for the given machine was changed.
1162 <see>IMachine::sessionState</see>
1163 </desc>
1164 <param name="machineId" type="uuid" dir="in">
1165 <desc>ID of the machine this event relates to.</desc>
1166 </param>
1167 <param name="state" type="SessionState" dir="in">
1168 <desc>New session state.</desc>
1169 </param>
1170 </method>
1171
1172 <method name="onSnapshotTaken">
1173 <desc>
1174 A new snapshot of the machine has been taken.
1175 <see>ISnapshot</see>
1176 </desc>
1177 <param name="machineId" type="uuid" dir="in">
1178 <desc>ID of the machine this event relates to.</desc>
1179 </param>
1180 <param name="snapshotId" type="uuid" dir="in">
1181 <desc>ID of the new snapshot.</desc>
1182 </param>
1183 </method>
1184
1185 <method name="onSnapshotDiscarded">
1186 <desc>
1187 Snapshot of the given machine has been discarded.
1188
1189 <note>
1190 This notification is delivered <b>after</b> the snapshot
1191 object has been uninitialized on the server (so that any
1192 attempt to call its methods will return an error).
1193 </note>
1194
1195 <see>ISnapshot</see>
1196 </desc>
1197 <param name="machineId" type="uuid" dir="in">
1198 <desc>ID of the machine this event relates to.</desc>
1199 </param>
1200 <param name="snapshotId" type="uuid" dir="in">
1201 <desc>
1202 ID of the discarded snapshot. <tt>null</tt> means the
1203 current machine state has been discarded (restored from
1204 the current snapshot).
1205 </desc>
1206 </param>
1207 </method>
1208
1209 <method name="onSnapshotChange">
1210 <desc>
1211 Snapshot properties (name and/or description) have been changed.
1212 <see>ISnapshot</see>
1213 </desc>
1214 <param name="machineId" type="uuid" dir="in">
1215 <desc>ID of the machine this event relates to.</desc>
1216 </param>
1217 <param name="snapshotId" type="uuid" dir="in">
1218 <desc>ID of the changed snapshot.</desc>
1219 </param>
1220 </method>
1221
1222 <method name="onGuestPropertyChange">
1223 <desc>
1224 Notification when a guest property has changed.
1225 </desc>
1226 <param name="machineId" type="uuid" dir="in">
1227 <desc>
1228 ID of the machine this event relates to.
1229 </desc>
1230 </param>
1231 <param name="name" type="wstring" dir="in">
1232 <desc>
1233 The name of the property that has changed.
1234 </desc>
1235 </param>
1236 <param name="value" type="wstring" dir="in">
1237 <desc>
1238 The new property value.
1239 </desc>
1240 </param>
1241 <param name="flags" type="wstring" dir="in">
1242 <desc>
1243 The new property flags.
1244 </desc>
1245 </param>
1246 </method>
1247
1248 </interface>
1249
1250 <interface
1251 name="IVirtualBox" extends="$dispatched"
1252 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1253 wsmap="managed"
1254 >
1255 <desc>
1256 The IVirtualBox interface represents the main interface exposed by the
1257 product that provides virtual machine management.
1258
1259 An instance of IVirtualBox is required for the product to do anything
1260 useful. Even though the interface does not expose this, internally,
1261 IVirtualBox is implemented as a singleton and actually lives in the
1262 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1263 IVirtualBox can track the state of all virtual machines on a particular
1264 host, regardless of which frontend started them.
1265
1266 To enumerate all the virtual machines on the host, use the
1267 <link to="IVirtualBox::machines2"/> attribute.
1268 </desc>
1269
1270 <attribute name="version" type="wstring" readonly="yes">
1271 <desc>
1272 A string representing the version number of the product. The
1273 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1274 last number represents the build number and will frequently change.
1275 </desc>
1276 </attribute>
1277
1278 <attribute name="revision" type="unsigned long" readonly="yes">
1279 <desc>
1280 The internal build revision number of the product.
1281 </desc>
1282 </attribute>
1283
1284 <attribute name="packageType" type="wstring" readonly="yes">
1285 <desc>
1286 A string representing the package type of this product. The
1287 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1288 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1289 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1290 this.
1291 </desc>
1292 </attribute>
1293
1294 <attribute name="homeFolder" type="wstring" readonly="yes">
1295 <desc>
1296 Full path to the directory where the global settings file,
1297 <tt>VirtualBox.xml</tt>, is stored.
1298
1299 In this version of VirtualBox, the value of this property is
1300 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1301 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1302 as determined by the host OS), and cannot be changed.
1303
1304 This path is also used as the base to resolve relative paths in
1305 places where relative paths are allowed (unless otherwise
1306 expressly indicated).
1307 </desc>
1308 </attribute>
1309
1310 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1311 <desc>
1312 Full name of the global settings file.
1313 The value of this property corresponds to the value of
1314 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1315 </desc>
1316 </attribute>
1317
1318 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1319 <desc>
1320 Current version of the format of the global VirtualBox settings file
1321 (<tt>VirtualBox.xml</tt>).
1322
1323 The version string has the following format:
1324 <pre>
1325 x.y-platform
1326 </pre>
1327 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1328 versions, and <tt>platform</tt> is the platform identifier.
1329
1330 The current version usually matches the value of the
1331 <link to="#settingsFormatVersion"/> attribute unless the
1332 settings file was created by an older version of VirtualBox and there
1333 was a change of the settings file format since then.
1334
1335 Note that VirtualBox automatically converts settings files from older
1336 versions to the most recent version when reading them (usually at
1337 VirtualBox startup) but it doesn't save the changes back until
1338 you call a method that implicitly saves settings (such as
1339 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1340 explicitly. Therefore, if the value of this attribute differs from the
1341 value of <link to="#settingsFormatVersion"/>, then it
1342 means that the settings file was converted but the result of the
1343 conversion is not yet saved to disk.
1344
1345 The above feature may be used by interactive front-ends to inform users
1346 about the settings file format change and offer them to explicitly save
1347 all converted settings files (the global and VM-specific ones),
1348 optionally create backup copies of the old settings files before saving,
1349 etc.
1350
1351 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1356 <desc>
1357 Most recent version of the settings file format.
1358
1359 The version string has the following format:
1360 <pre>
1361 x.y-platform
1362 </pre>
1363 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1364 versions, and <tt>platform</tt> is the platform identifier.
1365
1366 VirtualBox uses this version of the format when saving settings files
1367 (either as a result of method calls that require to save settings or as
1368 a result of an explicit call to <link to="#saveSettings"/>).
1369
1370 <see>settingsFileVersion</see>
1371 </desc>
1372 </attribute>
1373
1374 <attribute name="host" type="IHost" readonly="yes">
1375 <desc>Associated host object.</desc>
1376 </attribute>
1377
1378 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1379 <desc>Associated system information object.</desc>
1380 </attribute>
1381
1382 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1383 <desc>
1384 Array of machine objects registered within this VirtualBox instance.
1385 </desc>
1386 </attribute>
1387
1388 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1389 <desc>
1390 Array of hard disk objects known to this VirtualBox installation.
1391
1392 This array contains only base (root) hard disks. All differencing
1393 hard disks of the given base hard disk can be enumerated using
1394 <link to="IHardDisk::children"/>.
1395 </desc>
1396 </attribute>
1397
1398 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1399 <desc>
1400 Array of CD/DVD image objects registered with this VirtualBox instance.
1401 </desc>
1402 </attribute>
1403
1404 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1405 <desc>
1406 Array of floppy image objects registered with this VirtualBox instance.
1407 </desc>
1408 </attribute>
1409
1410 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1411
1412 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1413
1414 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1415 <desc>
1416 Collection of global shared folders. Global shared folders are
1417 available to all virtual machines.
1418
1419 New shared folders are added to the collection using
1420 <link to="#createSharedFolder"/>. Existing shared folders can be
1421 removed using <link to="#removeSharedFolder"/>.
1422
1423 <note>
1424 In the current version of the product, global shared folders are not
1425 implemented and therefore this collection is always empty.
1426 </note>
1427 </desc>
1428 </attribute>
1429
1430 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1431 <desc>
1432 Associated performance collector object.
1433 </desc>
1434 </attribute>
1435
1436 <method name="createMachine">
1437 <desc>
1438 Creates a new virtual machine.
1439
1440 The new machine is created unregistered, with the initial configuration
1441 set according to the specified guest OS type. A typical sequence of
1442 actions to create a new virtual machine is as follows:
1443
1444 <ol>
1445 <li>
1446 Call this method to have a new machine created. The returned machine
1447 object will be "mutable" allowing to change any machine property.
1448 </li>
1449
1450 <li>
1451 Configure the machine using the appropriate attributes and methods.
1452 </li>
1453
1454 <li>
1455 Call <link to="IMachine::saveSettings" /> to write the settings
1456 to the machine's XML settings file. The configuration of the newly
1457 created machine will not be saved to disk until this method is
1458 called.
1459 </li>
1460
1461 <li>
1462 Call <link to="#registerMachine" /> to add the machine to the list
1463 of machines known to VirtualBox.
1464 </li>
1465 </ol>
1466
1467 You should specify valid name for the newly created machine when calling
1468 this method. See the <link to="IMachine::name"/> attribute description
1469 for more details about the machine name.
1470
1471 The specified guest OS type identifier must match an ID of one of known
1472 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1473 array.
1474
1475 Every machine has a <i>settings file</i> that is used to store
1476 the machine configuration. This file is stored in a directory called the
1477 <i>machine settings subfolder</i>. Both the settings subfolder and file
1478 will have a name that corresponds to the name of the virtual machine.
1479 You can specify where to create the machine setting subfolder using the
1480 @a baseFolder argument. The base folder can be absolute (full path) or
1481 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1482 directory</link>.
1483
1484 If @a baseFolder is a null or empty string (which is recommended), the
1485 <link to="ISystemProperties::defaultMachineFolder">default machine
1486 settings folder</link> will be used as a base folder for the created
1487 machine. Otherwise the given base folder will be used. In either case,
1488 the full path to the resulting settings file has the following
1489 structure:
1490 <pre>
1491 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1492 </pre>
1493
1494 Note that if the resulting settings file already exists, this method
1495 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1496
1497 Optionally, you may specify an UUID of to assign to the created machine.
1498 However, this is not recommended and you should normally pass an empty
1499 (null) UUID to this method so that a new UUID will be automatically
1500 generated for every created machine. You can use UUID
1501 00000000-0000-0000-0000-000000000000 as null value.
1502
1503 <note>
1504 There is no way to change the name of the settings file or
1505 subfolder of the created machine directly.
1506 </note>
1507
1508 <result name="VBOX_E_OBJECT_NOT_FOUND">
1509 @a osTypeId is invalid.
1510 </result>
1511 <result name="VBOX_E_FILE_ERROR">
1512 Resulting settings file name is invalid or the settings file already
1513 exists or could not be created due to an I/O error.
1514 </result>
1515 <result name="E_INVALIDARG">
1516 @a name is empty or null.
1517 </result>
1518 </desc>
1519
1520 <param name="name" type="wstring" dir="in">
1521 <desc>Machine name.</desc>
1522 </param>
1523 <param name="osTypeId" type="wstring" dir="in">
1524 <desc>Guest OS Type ID.</desc>
1525 </param>
1526 <param name="baseFolder" type="wstring" dir="in">
1527 <desc>Base machine folder (optional).</desc>
1528 </param>
1529 <param name="id" type="uuid" dir="in">
1530 <desc>Machine UUID (optional).</desc>
1531 </param>
1532 <param name="machine" type="IMachine" dir="return">
1533 <desc>Created machine object.</desc>
1534 </param>
1535 </method>
1536
1537 <method name="createLegacyMachine">
1538 <desc>
1539 Creates a new virtual machine in "legacy" mode, using the specified
1540 settings file to store machine settings.
1541
1542 As opposed to machines created by <link to="#createMachine"/>,
1543 the settings file of the machine created in "legacy" mode is not
1544 automatically renamed when the machine name is changed -- it will always
1545 remain the same as specified in this method call.
1546
1547 The specified settings file name can be absolute (full path) or relative
1548 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1549 directory</link>. If the file name doesn't contain an extension, the
1550 default extension (.xml) will be appended.
1551
1552 Note that the configuration of the newly created machine is not
1553 saved to disk (and therefore no settings file is created)
1554 until <link to="IMachine::saveSettings"/> is called. If the
1555 specified settings file already exists, this method
1556 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1557
1558 See <link to="#createMachine"/> for more information.
1559
1560 @deprecated This method may be removed later. Use <link
1561 to="IVirtualBox::createMachine"/> instead.
1562
1563 <note>
1564 There is no way to change the name of the settings file
1565 of the machine created in "legacy" mode.
1566 </note>
1567
1568 <result name="VBOX_E_OBJECT_NOT_FOUND">
1569 @a osTypeId is invalid.
1570 </result>
1571 <result name="VBOX_E_FILE_ERROR">
1572 @a settingsFile is invalid or the settings file already exists or
1573 could not be created due to an I/O error.
1574 </result>
1575 <result name="E_INVALIDARG">
1576 @a name or @a settingsFile is empty or null.
1577 </result>
1578 </desc>
1579
1580 <param name="name" type="wstring" dir="in">
1581 <desc>Machine name.</desc>
1582 </param>
1583 <param name="osTypeId" type="wstring" dir="in">
1584 <desc>Machine OS Type ID.</desc>
1585 </param>
1586 <param name="settingsFile" type="wstring" dir="in">
1587 <desc>Name of the machine settings file.</desc>
1588 </param>
1589 <param name="id" type="uuid" dir="in">
1590 <desc>Machine UUID (optional).</desc>
1591 </param>
1592 <param name="machine" type="IMachine" dir="return">
1593 <desc>Created machine object.</desc>
1594 </param>
1595 </method>
1596
1597 <method name="openMachine">
1598 <desc>
1599 Opens a virtual machine from the existing settings file.
1600 The opened machine remains unregistered until you call
1601 <link to="#registerMachine"/>.
1602
1603 The specified settings file name can be absolute
1604 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1605 VirtualBox home directory</link>. This file must exist
1606 and must be a valid machine settings file whose contents
1607 will be used to construct the machine object.
1608
1609 @deprecated Will be removed soon.
1610 <result name="VBOX_E_FILE_ERROR">
1611 Settings file name invalid, not found or sharing violation.
1612 </result>
1613 </desc>
1614 <param name="settingsFile" type="wstring" dir="in">
1615 <desc>
1616 Name of the machine settings file.
1617 </desc>
1618 </param>
1619 <param name="machine" type="IMachine" dir="return">
1620 <desc>Opened machine object.</desc>
1621 </param>
1622 <note>
1623 <link to="IMachine::settingsModified"/> will return
1624 false for the created machine, until any of machine settings
1625 are changed.
1626 </note>
1627 </method>
1628
1629 <method name="registerMachine">
1630 <desc>
1631
1632 Registers the machine previously created using
1633 <link to="#createMachine"/> or opened using
1634 <link to="#openMachine"/> within this VirtualBox installation. After
1635 successful method invocation, the
1636 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1637 to all registered callbacks.
1638
1639 <note>
1640 This method implicitly calls <link to="IMachine::saveSettings"/>
1641 to save all current machine settings before registering it.
1642 </note>
1643
1644 <result name="VBOX_E_OBJECT_NOT_FOUND">
1645 No matching virtual machine found.
1646 </result>
1647 <result name="VBOX_E_INVALID_OBJECT_STATE">
1648 Virtual machine was not created within this VirtualBox instance.
1649 </result>
1650
1651 </desc>
1652 <param name="machine" type="IMachine" dir="in"/>
1653 </method>
1654
1655 <method name="getMachine">
1656 <desc>
1657 Attempts to find a virtual machine given its UUID.
1658 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1659 instead.
1660
1661 <result name="VBOX_E_OBJECT_NOT_FOUND">
1662 Could not find registered machine matching @a id.
1663 </result>
1664
1665 </desc>
1666 <param name="id" type="uuid" dir="in"/>
1667 <param name="machine" type="IMachine" dir="return"/>
1668 </method>
1669
1670 <method name="findMachine">
1671 <desc>
1672 Attempts to find a virtual machine given its name.
1673 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1674 instead.
1675
1676 <result name="VBOX_E_OBJECT_NOT_FOUND">
1677 Could not find registered machine matching @a name.
1678 </result>
1679
1680 </desc>
1681 <param name="name" type="wstring" dir="in"/>
1682 <param name="machine" type="IMachine" dir="return"/>
1683 </method>
1684
1685 <method name="unregisterMachine">
1686 <desc>
1687
1688 Unregisters the machine previously registered using
1689 <link to="#registerMachine"/>. After successful method invocation, the
1690 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1691 to all registered callbacks.
1692
1693 <note>
1694 The specified machine must not be in the Saved state, have an open
1695 (or a spawning) direct session associated with it, have snapshots or
1696 have hard disks attached.
1697 </note>
1698
1699 <note>
1700 This method implicitly calls <link to="IMachine::saveSettings"/> to
1701 save all current machine settings before unregistering it.
1702 </note>
1703
1704 <note>
1705 If the given machine is inaccessible (see
1706 <link to="IMachine::accessible"/>), it will be unregistered and
1707 fully uninitialized right afterwards. As a result, the returned
1708 machine object will be unusable and an attempt to call
1709 <b>any</b> method will return the "Object not ready" error.
1710 </note>
1711
1712 <result name="VBOX_E_OBJECT_NOT_FOUND">
1713 Could not find registered machine matching @a id.
1714 </result>
1715 <result name="VBOX_E_INVALID_VM_STATE">
1716 Machine is in Saved state.
1717 </result>
1718 <result name="VBOX_E_INVALID_OBJECT_STATE">
1719 Machine has snapshot or open session or hard disk attached.
1720 </result>
1721
1722 </desc>
1723 <param name="id" type="uuid" dir="in">
1724 <desc>UUID of the machine to unregister.</desc>
1725 </param>
1726 <param name="machine" type="IMachine" dir="return">
1727 <desc>Unregistered machine object.</desc>
1728 </param>
1729 </method>
1730
1731 <method name="createAppliance">
1732 <desc>
1733 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1734 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1735 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1736 </desc>
1737 <param name="appliance" type="IAppliance" dir="return">
1738 <desc>New appliance.</desc>
1739 </param>
1740 </method>
1741
1742 <method name="createHardDisk">
1743 <desc>
1744 Creates a new base hard disk object that will use the given storage
1745 format and location for hard disk data.
1746
1747 Note that the actual storage unit is not created by this method. In
1748 order to do it, and before you are able to attach the created hard disk
1749 to virtual machines, you must call one of the following methods to
1750 allocate a format-specific storage unit at the specified location:
1751 <ul>
1752 <li><link to="IHardDisk::createDynamicStorage"/></li>
1753 <li><link to="IHardDisk::createFixedStorage"/></li>
1754 <li><link to="IHardDisk::createDiffStorage"/></li>
1755 </ul>
1756
1757 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1758 remain uninitialized until the hard disk storage unit is successfully
1759 created by one of the above methods.
1760
1761 After the storage unit is successfully created, the hard disk gets
1762 remembered by this VirtualBox installation and will be accessible
1763 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1764 methods. Remembered root (base) hard disks are also returned as part of
1765 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1766
1767 The list of all storage formats supported by this VirtualBox
1768 installation can be obtained using
1769 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1770 attribute is empty or <tt>null</tt> then the default storage format
1771 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1772 be used for creating a storage unit of the hard disk.
1773
1774 Note that the format of the location string is storage format specific.
1775 See <link to="IMedium::location"/>, IHardDisk and
1776 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1777
1778 <result name="VBOX_E_OBJECT_NOT_FOUND">
1779 @a format identifier is invalid. See
1780 <link to="ISystemProperties::hardDiskFormats"/>.
1781 </result>
1782 <result name="VBOX_E_FILE_ERROR">
1783 @a location is a not valid file name (for file-based formats only).
1784 </result>
1785 <result name="E_INVALIDARG">
1786 @a format is a null or empty string.
1787 </result>
1788 </desc>
1789 <param name="format" type="wstring" dir="in">
1790 <desc>
1791 Identifier of the storage format to use for the new hard disk.
1792 </desc>
1793 </param>
1794 <param name="location" type="wstring" dir="in">
1795 <desc>
1796 Location of the storage unit for the new hard disk.
1797 </desc>
1798 </param>
1799 <param name="hardDisk" type="IHardDisk" dir="return">
1800 <desc>Created hard disk object.</desc>
1801 </param>
1802 </method>
1803
1804 <method name="openHardDisk">
1805 <desc>
1806 Opens a hard disk from an existing location.
1807
1808 After the hard disk is successfully opened by this method, it gets
1809 remembered by (known to) this VirtualBox installation and will be
1810 accessible through <link to="#getHardDisk"/> and
1811 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1812 are also returned as part of the <link to="#hardDisks"/> array and can
1813 be attached to virtual machines. See IHardDisk for more details.
1814
1815 If a differencing hard disk is to be opened by this method, the
1816 operation will succeed only if its parent hard disk and all ancestors,
1817 if any, are already known to this VirtualBox installation (for example,
1818 were opened by this method before).
1819
1820 This method tries to guess the storage format of the specified hard disk
1821 by reading hard disk data at the specified location.
1822
1823 Note that the format of the location string is storage format specific.
1824 See <link to="IMedium::location"/>, IHardDisk and
1825 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1826
1827
1828 <result name="VBOX_E_FILE_ERROR">
1829 Invalid hard disk storage file location.
1830 </result>
1831 <result name="VBOX_E_IPRT_ERROR">
1832 Could not get hard disk storage format.
1833 </result>
1834 <result name="E_INVALIDARG">
1835 Invalid hard disk storage format.
1836 </result>
1837
1838 </desc>
1839 <param name="location" type="wstring" dir="in">
1840 <desc>
1841 Location of the storage unit that contains hard disk data in one of
1842 the supported storage formats.
1843 </desc>
1844 </param>
1845 <param name="hardDisk" type="IHardDisk" dir="return">
1846 <desc>Opened hard disk object.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getHardDisk" const="yes">
1851 <desc>
1852 Returns a hard disk with the given UUID.
1853
1854 The hard disk with the given UUID must be known to this VirtualBox
1855 installation, i.e. it must be previously created by
1856 <link to="#createHardDisk"/> or opened by <link
1857 to="#openHardDisk"/>, or attached to some known virtual machine.
1858
1859 <result name="VBOX_E_OBJECT_NOT_FOUND">
1860 No hard disk object matching @a id found.
1861 </result>
1862
1863 </desc>
1864 <param name="id" type="uuid" dir="in">
1865 <desc>UUID of the hard disk to look for.</desc>
1866 </param>
1867 <param name="hardDisk" type="IHardDisk" dir="return">
1868 <desc>Found hard disk object.</desc>
1869 </param>
1870 </method>
1871
1872 <method name="findHardDisk">
1873 <desc>
1874 Returns a hard disk that uses the given location to store hard
1875 disk data.
1876
1877 The given hard disk must be known to this VirtualBox installation, i.e.
1878 it must be previously created by
1879 <link to="#createHardDisk"/> or opened by <link
1880 to="#openHardDisk"/>, or attached to some known virtual machine.
1881
1882 The search is done by comparing the value of the @a location argument to
1883 the <link to="IHardDisk::location"/> attribute of each known hard
1884 disk.
1885
1886 For locations represented by file names in the host's file system, the
1887 requested location can be a path relative to the
1888 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1889 only a file name without any path is given, the
1890 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1891 folder</link> will be prepended to the file name before searching. Note
1892 that on case sensitive file systems, a case sensitive comparison is
1893 performed, otherwise the case of symbols in the file path is ignored.
1894
1895 <result name="VBOX_E_OBJECT_NOT_FOUND">
1896 No hard disk object matching @a location found.
1897 </result>
1898
1899 </desc>
1900 <param name="location" type="wstring" dir="in">
1901 <desc>Location string to search for.</desc>
1902 </param>
1903 <param name="hardDisk" type="IHardDisk" dir="return">
1904 <desc>Found hard disk object.</desc>
1905 </param>
1906 </method>
1907
1908 <method name="openDVDImage">
1909 <desc>
1910 Opens a CD/DVD image contained in the specified file of the supported
1911 format and assigns it the given UUID.
1912
1913 After the image is successfully opened by this method, it gets
1914 remembered by (known to) this VirtualBox installation and will be
1915 accessible through <link to="#getDVDImage"/> and
1916 <link to="#findDVDImage"/> methods. Remembered images are also
1917 returned as part of the <link to="#DVDImages"/> array and can be mounted
1918 to virtual machines. See IMedium for more details.
1919
1920 See <link to="IMedium::location"/> to get more details about the format
1921 of the location string.
1922
1923 <note>
1924 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1925 </note>
1926
1927 <result name="VBOX_E_INVALID_OBJECT_STATE">
1928 CD/DVD image already exists in the media registry.
1929 </result>
1930
1931 </desc>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Full path to the file that contains a valid CD/DVD image.
1935 </desc>
1936 </param>
1937 <param name="id" type="uuid" dir="in">
1938 <desc>
1939 UUID to assign to the given image within this VirtualBox installation.
1940 If an empty (null) UUID is specified, the system will randomly
1941 generate a new UUID.
1942 </desc>
1943 </param>
1944 <param name="image" type="IDVDImage" dir="return">
1945 <desc>Opened CD/DVD image object.</desc>
1946 </param>
1947 </method>
1948
1949 <method name="getDVDImage">
1950 <desc>
1951 Returns a CD/DVD image with the given UUID.
1952
1953 The image with the given UUID must be known to this VirtualBox
1954 installation, i.e. it must be previously opened by <link
1955 to="#openDVDImage"/>, or mounted to some known virtual machine.
1956
1957 <result name="VBOX_E_OBJECT_NOT_FOUND">
1958 No matching DVD image found in the media registry.
1959 </result>
1960
1961 </desc>
1962 <param name="id" type="uuid" dir="in">
1963 <desc>UUID of the image to look for.</desc>
1964 </param>
1965 <param name="image" type="IDVDImage" dir="return">
1966 <desc>Found CD/DVD image object.</desc>
1967 </param>
1968 </method>
1969
1970 <method name="findDVDImage">
1971 <desc>
1972 Returns a CD/DVD image with the given image location.
1973
1974 The image with the given UUID must be known to this VirtualBox
1975 installation, i.e. it must be previously opened by <link
1976 to="#openDVDImage"/>, or mounted to some known virtual machine.
1977
1978 The search is done by comparing the value of the @a location argument to
1979 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1980
1981 The requested location can be a path relative to the
1982 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1983 only a file name without any path is given, the
1984 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1985 folder</link> will be prepended to the file name before searching. Note
1986 that on case sensitive file systems, a case sensitive comparison is
1987 performed, otherwise the case in the file path is ignored.
1988
1989 <result name="VBOX_E_FILE_ERROR">
1990 Invalid image file location.
1991 </result>
1992 <result name="VBOX_E_OBJECT_NOT_FOUND">
1993 No matching DVD image found in the media registry.
1994 </result>
1995
1996 </desc>
1997 <param name="location" type="wstring" dir="in">
1998 <desc>CD/DVD image file path to look for.</desc>
1999 </param>
2000 <param name="image" type="IDVDImage" dir="return">
2001 <desc>Found CD/DVD image object.</desc>
2002 </param>
2003 </method>
2004
2005 <method name="openFloppyImage">
2006 <desc>
2007 Opens a floppy image contained in the specified file of the supported
2008 format and assigns it the given UUID.
2009
2010 After the image is successfully opened by this method, it gets
2011 remembered by (known to) this VirtualBox installation and will be
2012 accessible through <link to="#getFloppyImage"/> and
2013 <link to="#findFloppyImage"/> methods. Remembered images are also
2014 returned as part of the <link to="#floppyImages"/> array and can be
2015 mounted to virtual machines. See IMedium for more details.
2016
2017 See <link to="IMedium::location"/> to get more details about the format
2018 of the location string.
2019
2020 <result name="VBOX_E_FILE_ERROR">
2021 Floppy image specified by @a location not accessible.
2022 </result>
2023 <result name="VBOX_E_INVALID_OBJECT_STATE">
2024 Floppy image already exists in the media registry.
2025 </result>
2026
2027 <note>
2028 Currently, only raw floppy images are supported by VirtualBox.
2029 </note>
2030 </desc>
2031 <param name="location" type="wstring" dir="in">
2032 <desc>
2033 Full path to the file that contains a valid floppy image.
2034 </desc>
2035 </param>
2036 <param name="id" type="uuid" dir="in">
2037 <desc>
2038 UUID to assign to the given image file within this VirtualBox
2039 installation. If an empty (null) UUID is specified, the system will
2040 randomly generate a new UUID.
2041 </desc>
2042 </param>
2043 <param name="image" type="IFloppyImage" dir="return">
2044 <desc>Opened floppy image object.</desc>
2045 </param>
2046 </method>
2047
2048 <method name="getFloppyImage">
2049 <desc>
2050 Returns a floppy image with the given UUID.
2051
2052 The image with the given UUID must be known to this VirtualBox
2053 installation, i.e. it must be previously opened by <link
2054 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2055
2056 <result name="VBOX_E_OBJECT_NOT_FOUND">
2057 No matching floppy image found in the media registry.
2058 </result>
2059
2060 </desc>
2061 <param name="id" type="uuid" dir="in">
2062 <desc>UUID of the image to look for.</desc>
2063 </param>
2064 <param name="image" type="IFloppyImage" dir="return">
2065 <desc>Found floppy image object.</desc>
2066 </param>
2067 </method>
2068
2069 <method name="findFloppyImage">
2070 <desc>
2071 Returns a floppy image with the given image location.
2072
2073 The image with the given UUID must be known to this VirtualBox
2074 installation, i.e. it must be previously opened by <link
2075 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2076
2077 The search is done by comparing the value of the @a location argument to
2078 the <link to="IMedium::location"/> attribute of each known floppy image.
2079
2080 The requested location can be a path relative to the
2081 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2082 only a file name without any path is given, the
2083 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2084 folder</link> will be prepended to the file name before searching. Note
2085 that on case sensitive file systems, a case sensitive comparison is
2086 performed, otherwise the case of symbols in the file path is ignored.
2087
2088 <result name="VBOX_E_FILE_ERROR">
2089 Invalid image file location.
2090 </result>
2091 <result name="VBOX_E_OBJECT_NOT_FOUND">
2092 No matching floppy image found in the media registry.
2093 </result>
2094
2095 </desc>
2096 <param name="location" type="wstring" dir="in">
2097 <desc>Floppy image file path to look for.</desc>
2098 </param>
2099 <param name="image" type="IFloppyImage" dir="return">
2100 <desc>Found floppy image object.</desc>
2101 </param>
2102 </method>
2103
2104 <method name="getGuestOSType">
2105 <desc>
2106 Returns an object describing the specified guest OS type.
2107
2108 The requested guest OS type is specified using a string which is a
2109 mnemonic identifier of the guest operating system, such as
2110 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2111 particular virtual machine can be read or set using the
2112 <link to="IMachine::OSTypeId"/> attribute.
2113
2114 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2115 available guest OS type objects. Each object has an
2116 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2117 the guest OS this object describes.
2118
2119 <result name="E_INVALIDARG">
2120 @a id is not a valid Guest OS type.
2121 </result>
2122
2123 </desc>
2124 <param name="id" type="wstring" dir="in">
2125 <desc>Guest OS type ID string.</desc>
2126 </param>
2127 <param name="type" type="IGuestOSType" dir="return">
2128 <desc>Guest OS type object.</desc>
2129 </param>
2130 </method>
2131
2132 <method name="createSharedFolder">
2133 <desc>
2134 Creates a new global shared folder by associating the given logical
2135 name with the given host path, adds it to the collection of shared
2136 folders and starts sharing it. Refer to the description of
2137 <link to="ISharedFolder"/> to read more about logical names.
2138 <note>
2139 In the current implementation, this operation is not
2140 implemented.
2141 </note>
2142 </desc>
2143 <param name="name" type="wstring" dir="in">
2144 <desc>Unique logical name of the shared folder.</desc>
2145 </param>
2146 <param name="hostPath" type="wstring" dir="in">
2147 <desc>Full path to the shared folder in the host file system.</desc>
2148 </param>
2149 <param name="writable" type="boolean" dir="in">
2150 <desc>Whether the share is writable or readonly</desc>
2151 </param>
2152 </method>
2153
2154 <method name="removeSharedFolder">
2155 <desc>
2156 Removes the global shared folder with the given name previously
2157 created by <link to="#createSharedFolder"/> from the collection of
2158 shared folders and stops sharing it.
2159 <note>
2160 In the current implementation, this operation is not
2161 implemented.
2162 </note>
2163 </desc>
2164 <param name="name" type="wstring" dir="in">
2165 <desc>Logical name of the shared folder to remove.</desc>
2166 </param>
2167 </method>
2168
2169 <method name="getNextExtraDataKey">
2170 <desc>
2171 Returns the global extra data key name following the supplied key.
2172
2173 An error is returned if the supplied @a key does not exist. @c NULL is
2174 returned in @a nextKey if the supplied key is the last key. When
2175 supplying @c NULL for the @a key, the first key item is returned in
2176 @a nextKey (if there is any). @a nextValue is an optional parameter and
2177 if supplied, the next key's value is returned in it.
2178
2179 <result name="VBOX_E_OBJECT_NOT_FOUND">
2180 Extra data @a key not found.
2181 </result>
2182
2183 </desc>
2184 <param name="key" type="wstring" dir="in">
2185 <desc>Name of the data key to follow.</desc>
2186 </param>
2187 <param name="nextKey" type="wstring" dir="out">
2188 <desc>Name of the next data key.</desc>
2189 </param>
2190 <param name="nextValue" type="wstring" dir="out">
2191 <desc>Value of the next data key.</desc>
2192 </param>
2193 </method>
2194
2195 <method name="getExtraData">
2196 <desc>
2197 Returns associated global extra data.
2198
2199 If the requested data @a key does not exist, this function will
2200 succeed and return @c NULL in the @a value argument.
2201
2202 <result name="VBOX_E_FILE_ERROR">
2203 Settings file not accessible.
2204 </result>
2205 <result name="VBOX_E_XML_ERROR">
2206 Could not parse the settings file.
2207 </result>
2208
2209 </desc>
2210 <param name="key" type="wstring" dir="in">
2211 <desc>Name of the data key to get.</desc>
2212 </param>
2213 <param name="value" type="wstring" dir="return">
2214 <desc>Value of the requested data key.</desc>
2215 </param>
2216 </method>
2217
2218 <method name="setExtraData">
2219 <desc>
2220 Sets associated global extra data.
2221
2222 If you pass @c NULL as a key @a value, the given @a key will be
2223 deleted.
2224
2225 <note>
2226 Before performing the actual data change, this method will ask all
2227 registered callbacks using the
2228 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2229 notification for a permission. If one of the callbacks refuses the
2230 new value, the change will not be performed.
2231 </note>
2232 <note>
2233 On success, the
2234 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2235 is called to inform all registered callbacks about a successful data
2236 change.
2237 </note>
2238
2239 <result name="VBOX_E_FILE_ERROR">
2240 Settings file not accessible.
2241 </result>
2242 <result name="VBOX_E_XML_ERROR">
2243 Could not parse the settings file.
2244 </result>
2245 <result name="E_ACCESSDENIED">
2246 Modification request refused.
2247 </result>
2248
2249 </desc>
2250 <param name="key" type="wstring" dir="in">
2251 <desc>Name of the data key to set.</desc>
2252 </param>
2253 <param name="value" type="wstring" dir="in">
2254 <desc>Value to assign to the key.</desc>
2255 </param>
2256 </method>
2257
2258 <method name="openSession">
2259 <desc>
2260 Opens a new direct session with the given virtual machine.
2261
2262 A direct session acts as a local lock on the given VM.
2263 There can be only one direct session open at a time for every
2264 virtual machine, protecting the VM from being manipulated by
2265 conflicting actions from different processes. Only after a
2266 direct session has been opened, one can change all VM settings
2267 and execute the VM in the process space of the session object.
2268
2269 Sessions therefore can be compared to mutex semaphores that
2270 lock a given VM for modification and execution.
2271 See <link to="ISession">ISession</link> for details.
2272
2273 <note>Unless you are writing a new VM frontend, you will not
2274 want to execute a VM in the current process. To spawn a new
2275 process that executes a VM, use
2276 <link to="IVirtualBox::openRemoteSession" />
2277 instead.</note>
2278
2279 Upon successful return, the session object can be used to
2280 get access to the machine and to the VM console.
2281
2282 In VirtualBox terminology, the machine becomes "mutable" after
2283 a session has been opened. Note that the "mutable" machine
2284 object, on which you may invoke IMachine methods to change its
2285 settings, will be a different object from the immutable IMachine
2286 objects returned by various IVirtualBox methods. To obtain a
2287 mutable IMachine object (upon which you can invoke settings methods),
2288 use the <link to="ISession::machine" /> attribute.
2289
2290 One must always call <link to="ISession::close" /> to release the
2291 lock on the machine, or the machine's state will eventually be
2292 set to "Aborted".
2293
2294 In other words, to change settings on a machine, the following
2295 sequence is typically performed:
2296
2297 <ol>
2298 <li>Call this method (openSession) to have a machine locked for
2299 the current session.</li>
2300
2301 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2302
2303 <li>Change the settings of the machine.</li>
2304
2305 <li>Call <link to="IMachine::saveSettings" />.</li>
2306
2307 <li>Close the session by calling <link to="ISession::close"/>.</li>
2308 </ol>
2309
2310 <result name="E_UNEXPECTED">
2311 Virtual machine not registered.
2312 </result>
2313 <result name="E_ACCESSDENIED">
2314 Process not started by OpenRemoteSession.
2315 </result>
2316 <result name="VBOX_E_OBJECT_NOT_FOUND">
2317 No matching virtual machine found.
2318 </result>
2319 <result name="VBOX_E_INVALID_OBJECT_STATE">
2320 Session already open or being opened.
2321 </result>
2322 <result name="VBOX_E_VM_ERROR">
2323 Failed to assign machine to session.
2324 </result>
2325
2326 </desc>
2327 <param name="session" type="ISession" dir="in">
2328 <desc>
2329 Session object that will represent the opened session after
2330 successful method invocation. This object must not represent
2331 the already open session.
2332 <note>
2333 This session will be automatically closed if the
2334 VirtualBox server is terminated for some reason.
2335 </note>
2336 </desc>
2337 </param>
2338 <param name="machineId" type="uuid" dir="in">
2339 <desc>ID of the virtual machine to open a session with.</desc>
2340 </param>
2341 </method>
2342
2343 <method name="openRemoteSession">
2344 <desc>
2345 Spawns a new process that executes a virtual machine (called a
2346 "remote session").
2347
2348 Opening a remote session causes the VirtualBox server to start a new
2349 process that opens a direct session with the given VM. As a result, the
2350 VM is locked by that direct session in the new process, preventing
2351 conflicting changes from other processes. Since sessions act as locks
2352 that prevent conflicting changes, one cannot open a remote session
2353 for a VM that already has another open session (direct or remote), or
2354 is currently in the process of opening one (see <link
2355 to="IMachine::sessionState"/>).
2356
2357 While the remote session still provides some level of control over the
2358 VM execution to the caller (using the <link to="IConsole" /> interface),
2359 not all VM settings are available for modification within the remote
2360 session context.
2361
2362 This operation can take some time (a new VM is started in a new process,
2363 for which memory and other resources need to be set up). Because of this,
2364 an <link to="IProgress" /> is returned to allow the caller to wait for this
2365 asynchronous operation to be completed. Until then, the remote session
2366 object remains in the closed state, and accessing the machine or its
2367 console through it is invalid. It is recommended to use
2368 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2369 completion.
2370
2371 As with all <link to="ISession" /> objects, it is recommended to call
2372 <link to="ISession::close" /> on the local session object once openRemoteSession()
2373 has been called. However, the session's state (see <link to="ISession::state" />)
2374 will not return to "Closed" until the remote session has also closed (i.e.
2375 until the VM is no longer running). In that case, however, the state of
2376 the session will automatically change back to "Closed".
2377
2378 Currently supported session types (values of the @a type
2379 argument) are:
2380 <ul>
2381 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2382 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2383 </ul>
2384
2385 The @a environment argument is a string containing definitions of
2386 environment variables in the following format:
2387 @code
2388 NAME[=VALUE]\n
2389 NAME[=VALUE]\n
2390 ...
2391 @endcode
2392 where <tt>\\n</tt> is the new line character. These environment
2393 variables will be appended to the environment of the VirtualBox server
2394 process. If an environment variable exists both in the server process
2395 and in this list, the value from this list takes precedence over the
2396 server's variable. If the value of the environment variable is
2397 omitted, this variable will be removed from the resulting environment.
2398 If the environment string is @c null, the server environment is
2399 inherited by the started process as is.
2400
2401 <see>openExistingSession</see>
2402
2403 <result name="E_UNEXPECTED">
2404 Virtual machine not registered.
2405 </result>
2406 <result name="E_INVALIDARG">
2407 Invalid session type @a type.
2408 </result>
2409 <result name="VBOX_E_OBJECT_NOT_FOUND">
2410 No machine matching @a machineId found.
2411 </result>
2412 <result name="VBOX_E_INVALID_OBJECT_STATE">
2413 Session already open or being opened.
2414 </result>
2415 <result name="VBOX_E_IPRT_ERROR">
2416 Launching process for machine failed.
2417 </result>
2418 <result name="VBOX_E_VM_ERROR">
2419 Failed to assign machine to session.
2420 </result>
2421
2422 </desc>
2423 <param name="session" type="ISession" dir="in">
2424 <desc>
2425 Session object that will represent the opened remote session
2426 after successful method invocation (this object must not
2427 represent an already open session).
2428 </desc>
2429 </param>
2430 <param name="machineId" type="uuid" dir="in">
2431 <desc>ID of the virtual machine to open a session with.</desc>
2432 </param>
2433 <param name="type" type="wstring" dir="in">
2434 <desc>
2435 Type of the remote session (case sensitive).
2436 </desc>
2437 </param>
2438 <param name="environment" type="wstring" dir="in">
2439 <desc>
2440 Environment to pass to the opened session (may be @c null).
2441 </desc>
2442 </param>
2443 <param name="progress" type="IProgress" dir="return">
2444 <desc>Progress object to track the operation completion.</desc>
2445 </param>
2446 </method>
2447
2448 <method name="openExistingSession">
2449 <desc>
2450 Opens a new remote session with the virtual machine for
2451 which a direct session is already open.
2452
2453 The remote session provides some level of control over the VM
2454 execution (using the IConsole interface) to the caller; however,
2455 within the remote session context, not all VM settings are available
2456 for modification.
2457
2458 As opposed to <link to="#openRemoteSession"/>, the number of
2459 remote sessions opened this way is not limited by the API
2460
2461 <note>
2462 It is an error to open a remote session with the machine that
2463 doesn't have an open direct session.
2464 </note>
2465
2466 <result name="E_UNEXPECTED">
2467 Virtual machine not registered.
2468 </result>
2469 <result name="VBOX_E_OBJECT_NOT_FOUND">
2470 No machine matching @a machineId found.
2471 </result>
2472 <result name="VBOX_E_INVALID_OBJECT_STATE">
2473 Session already open or being opened.
2474 </result>
2475 <result name="VBOX_E_INVALID_SESSION_STATE">
2476 Direct session state not Open.
2477 </result>
2478 <result name="VBOX_E_VM_ERROR">
2479 Failed to get console object from direct session or assign
2480 machine to session.
2481 </result>
2482
2483 <see>openRemoteSession</see>
2484 </desc>
2485 <param name="session" type="ISession" dir="in">
2486 <desc>
2487 Session object that will represent the open remote session
2488 after successful method invocation. This object must not
2489 represent an already open session.
2490 <note>
2491 This session will be automatically closed when the peer
2492 (direct) session dies or gets closed.
2493 </note>
2494 </desc>
2495 </param>
2496 <param name="machineId" type="uuid" dir="in">
2497 <desc>ID of the virtual machine to open a session with.</desc>
2498 </param>
2499 </method>
2500
2501 <method name="registerCallback">
2502 <desc>
2503 Registers a new global VirtualBox callback. The methods of the given
2504 callback object will be called by VirtualBox when an appropriate
2505 event occurs.
2506
2507 <result name="E_INVALIDARG">
2508 A @c NULL callback cannot be registered.
2509 </result>
2510
2511 </desc>
2512 <param name="callback" type="IVirtualBoxCallback" dir="in">
2513 <desc>Callback object to register.</desc>
2514 </param>
2515 </method>
2516
2517 <method name="unregisterCallback">
2518 <desc>
2519 Unregisters the previously registered global VirtualBox callback.
2520
2521 <result name="E_INVALIDARG">
2522 Specified @a callback not registered.
2523 </result>
2524
2525 </desc>
2526 <param name="callback" type="IVirtualBoxCallback" dir="in">
2527 <desc>Callback object to unregister.</desc>
2528 </param>
2529 </method>
2530
2531 <method name="waitForPropertyChange">
2532 <desc>
2533 Blocks the caller until any of the properties represented by the
2534 @a what argument changes the value or until the given timeout interval
2535 expires.
2536
2537 The @a what argument is a comma separated list of property masks that
2538 describe properties the caller is interested in. The property mask is
2539 a string in the following format:
2540
2541 <pre>
2542 [[group.]subgroup.]name
2543 </pre>
2544
2545 where @c name is the property name and @c group, @c subgroup are zero
2546 or more property group specifiers. Each element (group or name) in
2547 the property mask may be either a Latin string or an asterisk symbol
2548 (@c "*") which is used to match any string for the given element. A
2549 property mask that doesn't contain asterisk symbols represents a
2550 single fully qualified property name.
2551
2552 Groups in the fully qualified property name go from more generic (the
2553 left-most part) to more specific (the right-most part). The first
2554 element is usually a name of the object the property belongs to. The
2555 second element may be either a property name, or a child object name,
2556 or an index if the preceding element names an object which is one of
2557 many objects of the same type. This way, property names form a
2558 hierarchy of properties. Here are some examples of property names:
2559
2560 <table>
2561 <tr>
2562 <td><tt>VirtualBox.version</tt></td>
2563 <td><link to="IVirtualBox::version"/> property</td>
2564 </tr>
2565 <tr>
2566 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2567 <td><link to="IMachine::name"/> property of the machine with the
2568 given UUID</td>
2569 </tr>
2570 </table>
2571
2572 Most property names directly correspond to the properties of objects
2573 (components) provided by the VirtualBox library and may be used to
2574 track changes to these properties. However, there may be
2575 pseudo-property names that don't correspond to any existing object's
2576 property directly, as well as there may be object properties that
2577 don't have a corresponding property name that is understood by this
2578 method, and therefore changes to such properties cannot be
2579 tracked. See individual object's property descriptions to get a
2580 fully qualified property name that can be used with this method (if
2581 any).
2582
2583 There is a special property mask @c "*" (i.e. a string consisting of a
2584 single asterisk symbol) that can be used to match all properties.
2585 Below are more examples of property masks:
2586
2587 <table>
2588 <tr>
2589 <td><tt>VirtualBox.*</tt></td>
2590 <td>Track all properties of the VirtualBox object</td>
2591 </tr>
2592 <tr>
2593 <td><tt>Machine.*.name</tt></td>
2594 <td>Track changes to the <link to="IMachine::name"/> property of
2595 all registered virtual machines</td>
2596 </tr>
2597 </table>
2598
2599 <note>
2600 This function is not implemented in the current version of the
2601 product.
2602 </note>
2603 </desc>
2604 <param name="what" type="wstring" dir="in">
2605 <desc>Comma separated list of property masks.</desc>
2606 </param>
2607 <param name="timeout" type="unsigned long" dir="in">
2608 <desc>
2609 Wait timeout in milliseconds.
2610 Specify -1 for an indefinite wait.
2611 </desc>
2612 </param>
2613 <param name="changed" type="wstring" dir="out">
2614 <desc>
2615 Comma separated list of properties that have been changed and caused
2616 this method to return to the caller.
2617 </desc>
2618 </param>
2619 <param name="values" type="wstring" dir="out">
2620 <desc>Reserved, not currently used.</desc>
2621 </param>
2622 </method>
2623
2624 <method name="saveSettings">
2625 <desc>
2626 Saves the global settings to the global settings file
2627 (<link to="#settingsFilePath"/>).
2628
2629 This method is only useful for explicitly saving the global settings
2630 file after it has been auto-converted from the old format to the most
2631 recent format (see <link to="#settingsFileVersion"/> for details).
2632 Normally, the global settings file is implicitly saved when a global
2633 setting is changed.
2634
2635 <result name="VBOX_E_FILE_ERROR">
2636 Settings file not accessible.
2637 </result>
2638 <result name="VBOX_E_XML_ERROR">
2639 Could not parse the settings file.
2640 </result>
2641
2642 </desc>
2643 </method>
2644
2645 <method name="saveSettingsWithBackup">
2646 <desc>
2647 Creates a backup copy of the global settings file
2648 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2649 calls <link to="#saveSettings"/>.
2650
2651 Note that the backup copy is created <b>only</b> if the settings file
2652 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2653 details). Otherwise, this call is fully equivalent to
2654 <link to="#saveSettings"/> and no backup copying is done.
2655
2656 The backup copy is created in the same directory where the original
2657 settings file is located. It is given the following file name:
2658 <pre>
2659 original.xml.x.y-platform.bak
2660 </pre>
2661 where <tt>original.xml</tt> is the original settings file name
2662 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2663 format of the settings file (before auto-conversion).
2664
2665 If the given backup file already exists, this method will try to add the
2666 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2667 0 to 9) and copy it again until it succeeds. If all suffixes are
2668 occupied, or if any other copy error occurs, this method will return a
2669 failure.
2670
2671 If the copy operation succeeds, the @a bakFileName return argument will
2672 receive a full path to the created backup file (for informational
2673 purposes). Note that this will happen even if the subsequent
2674 <link to="#saveSettings"/> call performed by this method after the
2675 copy operation, fails.
2676
2677 <note>
2678 The VirtualBox API never calls this method. It is intended purely for
2679 the purposes of creating backup copies of the settings files by
2680 front-ends before saving the results of the automatically performed
2681 settings conversion to disk.
2682 </note>
2683
2684 <see>settingsFileVersion</see>
2685
2686 <result name="VBOX_E_FILE_ERROR">
2687 Settings file not accessible.
2688 </result>
2689 <result name="VBOX_E_XML_ERROR">
2690 Could not parse the settings file.
2691 </result>
2692 <result name="VBOX_E_IPRT_ERROR">
2693 Could not copy the settings file.
2694 </result>
2695
2696 </desc>
2697 <param name="bakFileName" type="wstring" dir="return">
2698 <desc>Full path to the created backup copy.</desc>
2699 </param>
2700 </method>
2701
2702 </interface>
2703
2704 <!--
2705 // IAppliance
2706 /////////////////////////////////////////////////////////////////////////
2707 -->
2708
2709 <enum
2710 name="CIMOSType"
2711 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2712 >
2713 <desc>
2714 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2715 </desc>
2716
2717 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2718 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2719 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2720 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2721 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2722 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2723 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2724 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2725 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2726 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2727 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2728 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2729 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2730 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2731 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2732 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2733 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2734 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2735 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2736 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2737 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2738 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2739 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2740 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2741 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2742 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2743 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2744 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2745 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2746 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2747 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2748 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2749 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2750 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2751 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2752 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2753 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2754 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2755 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2756 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2757 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2758 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2759 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2760 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2761 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2762 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2763 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2764 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2765 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2766 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2767 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2768 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2769 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2770 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2771 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2772 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2773 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2774 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2775 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2776 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2777 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2778 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2779 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2780 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2781 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2782 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2783 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2784 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2785 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2786 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2787 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2788 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2789 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2790 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2791 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2792 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2793 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2794 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2795 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2796 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2797 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2798 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2799 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2800 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2801 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2802 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2803 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2804 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2805 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2806 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2807 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2808 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2809 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2810 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2811 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2812 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2813 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2814 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2815 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2816 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2817 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2818 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2819 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2820 </enum>
2821
2822 <enum
2823 name="OVFResourceType"
2824 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2825 >
2826 <desc>
2827 OVF resource type.
2828 </desc>
2829
2830 <const name="Other" value="1" />
2831 <const name="ComputerSystem" value="2" />
2832 <const name="Processor" value="3" />
2833 <const name="Memory" value="4" />
2834 <const name="IdeController" value="5" />
2835 <const name="ParallelScsiHba" value="6" />
2836 <const name="FcHba" value="7" />
2837 <const name="iScsiHba" value="8" />
2838 <const name="IbHca" value="9" />
2839 <const name="EthernetAdapter" value="10" />
2840 <const name="OtherNetworkAdapter" value="11" />
2841 <const name="IoSlot" value="12" />
2842 <const name="IoDevice" value="13" />
2843 <const name="FloppyDrive" value="14" />
2844 <const name="CdDrive" value="15" />
2845 <const name="DvdDrive" value="16" />
2846 <const name="HardDisk" value="17" />
2847 <const name="UsbController" value="23" />
2848 <const name="SoundCard" value="35" />
2849 </enum>
2850
2851 <interface
2852 name="IAppliance" extends="$unknown"
2853 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2854 wsmap="managed"
2855 >
2856 <desc>
2857 Represents a platform-independent appliance in OVF format. An instance of this is returned
2858 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2859 appliances with VirtualBox.
2860
2861 The OVF standard suggests two different physical file formats:
2862
2863 <ol>
2864 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2865 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2866 this descriptor file references other files, as OVF appliances distributed as a set of
2867 files most likely do, those files must be in the same directory as the descriptor file.</li>
2868
2869 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2870 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2871 files and optionally other files.
2872
2873 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2874 be added with a later version.</li>
2875 </ol>
2876
2877 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2878 <link to="IMachine" /> involves the following sequence of API calls:
2879
2880 <ol>
2881 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2882 </li>
2883
2884 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2885 would like to import. So long as this file is syntactically valid, this will succeed
2886 and return an instance of IAppliance that contains the parsed data from the OVF file.
2887 </li>
2888
2889 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2890 contents of the IAppliance attributes accordingly. These can be inspected by a
2891 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2892 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2893 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2894 systems in the OVF, which in turn describe the virtual hardware prescribed by the
2895 OVF (network and hardware adapters, virtual disk images, memory size and so on).
2896 The GUI can then give the user the option to confirm and/or change these suggestions.
2897 </li>
2898
2899 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2900 virtual system to override the suggestions made by VirtualBox.
2901 </li>
2902
2903 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2904 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2905 virtual system descriptions.
2906 </li>
2907 </ol>
2908
2909 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2910
2911 <ol>
2912 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2913 an empty IAppliance object.
2914 </li>
2915
2916 <li>For each machine you would like to export, call <link to="IMachine::export" />
2917 with the IAppliance object you just created. This creates an instance of
2918 <link to="IVirtualSystemDescription" /> inside the appliance.
2919 </li>
2920
2921 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2922 file written.</li>
2923 </ol>
2924
2925 </desc>
2926
2927 <attribute name="path" type="wstring" readonly="yes">
2928 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2929 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2930 <link to="#write" /> (for export).
2931 This attribute is empty until one of these methods has been called.
2932 </desc>
2933 </attribute>
2934
2935 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2936 <desc>
2937 Array of virtual disk definitions. One such description exists for each
2938 disk definition in the OVF; each string array item represents one such piece of
2939 disk information, with the information fields separated by tab (\t) characters.
2940
2941 The caller should be prepared for additional fields being appended to
2942 this string in future versions of VirtualBox and therefore check for
2943 the number of tabs in the strings returned.
2944
2945 In the current version, the following eight fields are returned per string
2946 in the array:
2947
2948 <ol>
2949 <li>Disk ID (unique string identifier given to disk)</li>
2950
2951 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2952
2953 <li>Populated size (optional unsigned integer indicating the current size of the
2954 disk; can be approximate; -1 if unspecified)</li>
2955
2956 <li>Format (string identifying the disk format, typically
2957 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2958
2959 <li>Reference (where to find the disk image, typically a file name; if empty,
2960 then the disk should be created on import)</li>
2961
2962 <li>Image size (optional unsigned integer indicating the size of the image,
2963 which need not necessarily be the same as the values specified above, since
2964 the image may be compressed or sparse; -1 if not specified)</li>
2965
2966 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2967 presently unsupported and always -1)</li>
2968
2969 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2970 </ol>
2971 </desc>
2972 </attribute>
2973
2974 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2975 <desc> Array of virtual system descriptions. One such description is created
2976 for each virtual system found in the OVF.
2977 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2978 (for export) has been called.
2979 </desc>
2980 </attribute>
2981
2982 <method name="read">
2983 <desc>
2984 Reads an OVF file into the appliance object.
2985
2986 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2987 mere fact that this method returns successfully does not mean that VirtualBox supports all
2988 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2989 </desc>
2990 <param name="file" type="wstring" dir="in">
2991 <desc>
2992 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2993 on whether the appliance is distributed as a set of files or as a single file, respectively).
2994 </desc>
2995 </param>
2996 </method>
2997
2998 <method name="interpret">
2999 <desc>
3000 Interprets the OVF data that was read when the appliance was constructed. After
3001 calling this method, one can inspect the
3002 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3003 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3004 the appliance.
3005
3006 Calling this method is the second step of importing an appliance into VirtualBox;
3007 see <link to="IAppliance" /> for an overview.
3008 </desc>
3009 </method>
3010
3011 <method name="importMachines">
3012 <desc>
3013 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3014 and other interfaces that match the information contained in the appliance as
3015 closely as possible, as represented by the import instructions in the
3016 <link to="#virtualSystemDescriptions" /> array.
3017
3018 Calling this method is the final step of importing an appliance into VirtualBox;
3019 see <link to="IAppliance" /> for an overview.
3020
3021 Since importing the appliance will most probably involve copying and converting
3022 disk images, which can take a long time, this method operates asynchronously and
3023 returns an IProgress object to allow the caller to monitor the progress.
3024 </desc>
3025
3026 <param name="aProgress" type="IProgress" dir="return">
3027 <desc></desc>
3028 </param>
3029 </method>
3030
3031 <method name="write">
3032 <desc>
3033 Writes the contents of the appliance exports into a new OVF file.
3034
3035 Calling this method is the final step of exporting an appliance from VirtualBox;
3036 see <link to="IAppliance" /> for an overview.
3037
3038 Since importing the appliance will most probably involve copying and converting
3039 disk images, which can take a long time, this method operates asynchronously and
3040 returns an IProgress object to allow the caller to monitor the progress.
3041 </desc>
3042 <param name="path" type="wstring" dir="in">
3043 <desc>
3044 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3045 on whether the appliance is distributed as a set of files or as a single file, respectively).
3046 </desc>
3047 </param>
3048 <param name="aProgress" type="IProgress" dir="return">
3049 <desc></desc>
3050 </param>
3051 </method>
3052
3053 </interface>
3054
3055 <enum
3056 name="VirtualSystemDescriptionType"
3057 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3058 >
3059 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3060 a configuration value.</desc>
3061
3062 <const name="Ignore" value="1" />
3063 <const name="OS" value="2" />
3064 <const name="Name" value="3" />
3065 <const name="CPU" value="4" />
3066 <const name="Memory" value="5" />
3067 <const name="HardDiskControllerIDE" value="6" />
3068 <const name="HardDiskControllerSATA" value="7" />
3069 <const name="HardDiskControllerSCSI" value="8" />
3070 <const name="HardDiskImage" value="9" />
3071 <const name="Floppy" value="10" />
3072 <const name="CDROM" value="11" />
3073 <const name="LogicalNetwork" value="12" />
3074 <const name="NetworkAdapter" value="13" />
3075 <const name="USBController" value="14" />
3076 <const name="SoundCard" value="15" />
3077
3078 </enum>
3079
3080 <interface
3081 name="IVirtualSystemDescription" extends="$unknown"
3082 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3083 wsmap="managed"
3084 >
3085
3086 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3087 After <link to="IAppliance::interpret" /> has been called, that array contains
3088 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3089 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3090 into VirtualBox.
3091 </desc>
3092
3093 <attribute name="count" type="unsigned long" readonly="yes">
3094 <desc>Return the number of virtual system description entries.</desc>
3095 </attribute>
3096
3097 <method name="getDescription">
3098 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3099 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3100
3101 The list below identifies the value sets that are possible depending on the
3102 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3103 the array item with the same index in aOvfValues[] will contain the original value as contained
3104 in the OVF file (just for informational purposes), and the corresponding item in aVboxValues[]
3105 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3106 the aExtraConfigValues[] array item may also be used.
3107
3108 <ul>
3109 <li>
3110 "OS": the guest operating system type. There must be exactly one such array item on import. The
3111 corresponding item in aVboxValues[] contains the suggested guest operating system for VirtualBox.
3112 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3113 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3114 (see <link to="CIMOSType" />).
3115 </li>
3116 <li>
3117 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3118 if none is present on import, then an automatic name will be created from the operating system
3119 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3120 from the OVF file, and aVboxValues[] will contain a suggestion for a unique VirtualBox
3121 <link to="IMachine" /> name that does not exist yet.
3122 </li>
3123 <li>
3124 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3125 </li>
3126 <li>
3127 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3128 is present on import, then VirtualBox will set a meaningful default based on the operating system
3129 type.
3130 </li>
3131 <li>
3132 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3133 has no value in aOvfValues[] or aVboxValues[].
3134 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3135 type can use to specify which hard disk controller a virtual disk should be connected to.
3136 </li>
3137 <li>
3138 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3139 has no value in aOvfValues[] or aVboxValues[].
3140 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3141 </li>
3142 <li>
3143 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3144 The items in aOvfValues[] and aVboxValues[] will either be "LsiLogic" or "BusLogic".
3145 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3146 </li>
3147 <li>
3148 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3149 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3150
3151 The array item in aOvfValues[] will contain the file specification from the OVF file,
3152 whereas the item in aVboxValues[] will contain a qualified path specification to where
3153 VirtualBox uses the hard disk image. This means that on import the image will be copied
3154 and converted from the "ovf" location to the "vbox" location; on export, this will be
3155 handled the other way round. On import, the target image will also be registered with VirtualBox.
3156
3157 The matching item in the aExtraConfigValues[] array must contain a string of the following
3158 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3159 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3160 the image to. That number must be the index of an array item with one of the hard disk controller
3161 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3162 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3163 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3164 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3165 SCSI conrollers, the channel can range from 0-29.
3166 </li>
3167 <li>
3168 "LogicalNetwork": a logical network to which virtual machines can connect. This is taken from
3169 the Network section in the OVF that is shared between several virtual systems. OVF has no
3170 formal description of how the network shall be set up (e.g. whether to use NAT or host interface
3171 networking), but OVFs typically name the logical networks "nat" or "bridged" to suggest such
3172 a configuration.
3173 </li>
3174 <li>
3175 "NetworkAdapter": a network adapter. The array item in aVboxValues[] will specify the hardware
3176 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3177 of the "network=&lt;nw&gt;" format, where &lt;nw&gt; must be one of the networks as specified with the
3178 LogicalNetwork type.
3179 </li>
3180 <li>
3181 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3182 present, sound support will be enabled for the new virtual machine. Note that the virtual
3183 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3184 may be different from the virtual soundcard expected by the appliance.
3185 </li>
3186 </ul>
3187
3188 </desc>
3189
3190 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3191 <desc></desc>
3192 </param>
3193
3194 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3195 <desc></desc>
3196 </param>
3197
3198 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3199 <desc></desc>
3200 </param>
3201
3202 <param name="aVboxValues" type="wstring" dir="out" safearray="yes">
3203 <desc></desc>
3204 </param>
3205
3206 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3207 <desc></desc>
3208 </param>
3209
3210 </method>
3211
3212 <method name="setFinalValues">
3213 <desc>
3214 This method allows the appliance's user to change the configuration for the virtual
3215 system descriptions. For each array item returned from <link to="getDescription" />,
3216 you must pass in one boolean value and one configuration value.
3217
3218 Each item in the boolean array determines whether the particular configuration item
3219 should be enabled.
3220 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3221 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3222 and SoundCard.
3223
3224 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3225 as returned in the aVboxValues and aExtraConfigValues arrays from getDescription(),
3226 the configuration remains unchanged. Please see the documentation for getDescription()
3227 for valid configuration values for the individual array item types. If the
3228 corresponding item in the aEnabled array is false, the configuration value is ignored.
3229 </desc>
3230
3231 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3232 <desc></desc>
3233 </param>
3234
3235 <param name="aVboxValues" type="wstring" dir="in" safearray="yes">
3236 <desc></desc>
3237 </param>
3238
3239 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3240 <desc></desc>
3241 </param>
3242 </method>
3243
3244 <method name="getWarnings">
3245 <desc>Returns textual warnings which occured during the virtual system
3246 interpretion.</desc>
3247
3248 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3249 <desc></desc>
3250 </param>
3251 </method>
3252
3253 </interface>
3254
3255
3256 <!--
3257 // IMachine
3258 /////////////////////////////////////////////////////////////////////////
3259 -->
3260
3261 <interface
3262 name="IInternalMachineControl" extends="$unknown"
3263 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3264 internal="yes"
3265 wsmap="suppress"
3266 >
3267 <method name="updateState">
3268 <desc>
3269 Updates the VM state.
3270 <note>
3271 This operation will also update the settings file with
3272 the correct information about the saved state file
3273 and delete this file from disk when appropriate.
3274 </note>
3275 </desc>
3276 <param name="state" type="MachineState" dir="in"/>
3277 </method>
3278
3279 <method name="getIPCId">
3280 <param name="id" type="wstring" dir="return"/>
3281 </method>
3282
3283 <method name="runUSBDeviceFilters">
3284 <desc>
3285 Asks the server to run USB devices filters of the associated
3286 machine against the given USB device and tell if there is
3287 a match.
3288 <note>
3289 Intended to be used only for remote USB devices. Local
3290 ones don't require to call this method (this is done
3291 implicitly by the Host and USBProxyService).
3292 </note>
3293 </desc>
3294 <param name="device" type="IUSBDevice" dir="in"/>
3295 <param name="matched" type="boolean" dir="out"/>
3296 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3297 </method>
3298
3299 <method name="captureUSBDevice">
3300 <desc>
3301 Requests a capture of the given host USB device.
3302 When the request is completed, the VM process will
3303 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3304 notification.
3305 </desc>
3306 <param name="id" type="uuid" dir="in"/>
3307 </method>
3308
3309 <method name="detachUSBDevice">
3310 <desc>
3311 Notification that a VM is going to detach (done = false) or has
3312 already detached (done = true) the given USB device.
3313 When the done = true request is completed, the VM process will
3314 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3315 notification.
3316 <note>
3317 In the done = true case, the server must run its own filters
3318 and filters of all VMs but this one on the detached device
3319 as if it were just attached to the host computer.
3320 </note>
3321 </desc>
3322 <param name="id" type="uuid" dir="in"/>
3323 <param name="done" type="boolean" dir="in"/>
3324 </method>
3325
3326 <method name="autoCaptureUSBDevices">
3327 <desc>
3328 Requests a capture all matching USB devices attached to the host.
3329 When the request is completed, the VM process will
3330 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3331 notification per every captured device.
3332 </desc>
3333 </method>
3334
3335 <method name="detachAllUSBDevices">
3336 <desc>
3337 Notification that a VM that is being powered down. The done
3338 parameter indicates whether which stage of the power down
3339 we're at. When done = false the VM is announcing its
3340 intentions, while when done = true the VM is reporting
3341 what it has done.
3342 <note>
3343 In the done = true case, the server must run its own filters
3344 and filters of all VMs but this one on all detach devices as
3345 if they were just attached to the host computer.
3346 </note>
3347 </desc>
3348 <param name="done" type="boolean" dir="in"/>
3349 </method>
3350
3351 <method name="onSessionEnd">
3352 <desc>
3353 Triggered by the given session object when the session is about
3354 to close normally.
3355 </desc>
3356 <param name="session" type="ISession" dir="in">
3357 <desc>Session that is being closed</desc>
3358 </param>
3359 <param name="progress" type="IProgress" dir="return">
3360 <desc>
3361 Used to wait until the corresponding machine is actually
3362 dissociated from the given session on the server.
3363 Returned only when this session is a direct one.
3364 </desc>
3365 </param>
3366 </method>
3367
3368 <method name="beginSavingState">
3369 <desc>
3370 Called by the VM process to inform the server it wants to
3371 save the current state and stop the VM execution.
3372 </desc>
3373 <param name="progress" type="IProgress" dir="in">
3374 <desc>
3375 Progress object created by the VM process to wait until
3376 the state is saved.
3377 </desc>
3378 </param>
3379 <param name="stateFilePath" type="wstring" dir="out">
3380 <desc>
3381 File path the VM process must save the execution state to.
3382 </desc>
3383 </param>
3384 </method>
3385
3386 <method name="endSavingState">
3387 <desc>
3388 Called by the VM process to inform the server that saving
3389 the state previously requested by #beginSavingState is either
3390 successfully finished or there was a failure.
3391
3392 <result name="VBOX_E_FILE_ERROR">
3393 Settings file not accessible.
3394 </result>
3395 <result name="VBOX_E_XML_ERROR">
3396 Could not parse the settings file.
3397 </result>
3398
3399 </desc>
3400
3401 <param name="success" type="boolean" dir="in">
3402 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3403 otherwise.
3404 </desc>
3405 </param>
3406 </method>
3407
3408 <method name="adoptSavedState">
3409 <desc>
3410 Gets called by IConsole::adoptSavedState.
3411 <result name="VBOX_E_FILE_ERROR">
3412 Invalid saved state file path.
3413 </result>
3414 </desc>
3415 <param name="savedStateFile" type="wstring" dir="in">
3416 <desc>Path to the saved state file to adopt.</desc>
3417 </param>
3418 </method>
3419
3420 <method name="beginTakingSnapshot">
3421 <desc>
3422 Called by the VM process to inform the server it wants to
3423 take a snapshot.
3424
3425 <result name="VBOX_E_FILE_ERROR">
3426 Settings file not accessible.
3427 </result>
3428 <result name="VBOX_E_XML_ERROR">
3429 Could not parse the settings file.
3430 </result>
3431 </desc>
3432 <param name="initiator" type="IConsole" dir="in">
3433 <desc>The console object that initiated this call.</desc>
3434 </param>
3435 <param name="name" type="wstring" dir="in">
3436 <desc>Snapshot name.</desc>
3437 </param>
3438 <param name="description" type="wstring" dir="in">
3439 <desc>Snapshot description.</desc>
3440 </param>
3441 <param name="progress" type="IProgress" dir="in">
3442 <desc>
3443 Progress object created by the VM process to wait until
3444 the state is saved (only for online snapshots).
3445 </desc>
3446 </param>
3447 <param name="stateFilePath" type="wstring" dir="out">
3448 <desc>
3449 File path the VM process must save the execution state to.
3450 </desc>
3451 </param>
3452 <param name="serverProgress" type="IProgress" dir="out">
3453 <desc>
3454 Progress object created by the server process to wait until
3455 the snapshot is taken (VDI diff creation, etc.).
3456 </desc>
3457 </param>
3458 </method>
3459
3460 <method name="endTakingSnapshot">
3461 <desc>
3462 Called by the VM process to inform the server that the snapshot
3463 previously requested by #beginTakingSnapshot is either
3464 successfully taken or there was a failure.
3465 </desc>
3466
3467 <param name="success" type="boolean" dir="in">
3468 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3469 </param>
3470 </method>
3471
3472 <method name="discardSnapshot">
3473 <desc>
3474 Gets called by IConsole::discardSnapshot.
3475 <result name="VBOX_E_INVALID_OBJECT_STATE">
3476 Snapshot has more than one child snapshot.
3477 </result>
3478 </desc>
3479 <param name="initiator" type="IConsole" dir="in">
3480 <desc>The console object that initiated this call.</desc>
3481 </param>
3482 <param name="id" type="uuid" dir="in">
3483 <desc>UUID of the snapshot to discard.</desc>
3484 </param>
3485 <param name="machineState" type="MachineState" dir="out">
3486 <desc>New machine state after this operation is started.</desc>
3487 </param>
3488 <param name="progress" type="IProgress" dir="return">
3489 <desc>Progress object to track the operation completion.</desc>
3490 </param>
3491 </method>
3492
3493 <method name="discardCurrentState">
3494 <desc>
3495 Gets called by IConsole::discardCurrentState.
3496 <result name="VBOX_E_INVALID_OBJECT_STATE">
3497 Virtual machine does not have any snapshot.
3498 </result>
3499 </desc>
3500 <param name="initiator" type="IConsole" dir="in">
3501 <desc>The console object that initiated this call.</desc>
3502 </param>
3503 <param name="machineState" type="MachineState" dir="out">
3504 <desc>New machine state after this operation is started.</desc>
3505 </param>
3506 <param name="progress" type="IProgress" dir="return">
3507 <desc>Progress object to track the operation completion.</desc>
3508 </param>
3509 </method>
3510
3511 <method name="discardCurrentSnapshotAndState">
3512 <desc>
3513 Gets called by IConsole::discardCurrentSnapshotAndState.
3514 <result name="VBOX_E_INVALID_OBJECT_STATE">
3515 Virtual machine does not have any snapshot.
3516 </result>
3517 </desc>
3518 <param name="initiator" type="IConsole" dir="in">
3519 <desc>The console object that initiated this call.</desc>
3520 </param>
3521 <param name="machineState" type="MachineState" dir="out">
3522 <desc>New machine state after this operation is started.</desc>
3523 </param>
3524 <param name="progress" type="IProgress" dir="return">
3525 <desc>Progress object to track the operation completion.</desc>
3526 </param>
3527 </method>
3528
3529 <method name="pullGuestProperties">
3530 <desc>
3531 Get the list of the guest properties matching a set of patterns along
3532 with their values, time stamps and flags and give responsibility for
3533 managing properties to the console.
3534 </desc>
3535 <param name="name" type="wstring" dir="out" safearray="yes">
3536 <desc>
3537 The names of the properties returned.
3538 </desc>
3539 </param>
3540 <param name="value" type="wstring" dir="out" safearray="yes">
3541 <desc>
3542 The values of the properties returned. The array entries match the
3543 corresponding entries in the @a name array.
3544 </desc>
3545 </param>
3546 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3547 <desc>
3548 The time stamps of the properties returned. The array entries match
3549 the corresponding entries in the @a name array.
3550 </desc>
3551 </param>
3552 <param name="flags" type="wstring" dir="out" safearray="yes">
3553 <desc>
3554 The flags of the properties returned. The array entries match the
3555 corresponding entries in the @a name array.
3556 </desc>
3557 </param>
3558 </method>
3559
3560 <method name="pushGuestProperties">
3561 <desc>
3562 Set the list of the guest properties matching a set of patterns along
3563 with their values, time stamps and flags and return responsibility for
3564 managing properties to IMachine.
3565 </desc>
3566 <param name="name" type="wstring" dir="in" safearray="yes">
3567 <desc>
3568 The names of the properties.
3569 </desc>
3570 </param>
3571 <param name="value" type="wstring" dir="in" safearray="yes">
3572 <desc>
3573 The values of the properties. The array entries match the
3574 corresponding entries in the @a name array.
3575 </desc>
3576 </param>
3577 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3578 <desc>
3579 The time stamps of the properties. The array entries match
3580 the corresponding entries in the @a name array.
3581 </desc>
3582 </param>
3583 <param name="flags" type="wstring" dir="in" safearray="yes">
3584 <desc>
3585 The flags of the properties. The array entries match the
3586 corresponding entries in the @a name array.
3587 </desc>
3588 </param>
3589 </method>
3590 <method name="pushGuestProperty">
3591 <desc>
3592 Update a single guest property in IMachine.
3593 </desc>
3594 <param name="name" type="wstring" dir="in">
3595 <desc>
3596 The name of the property to be updated.
3597 </desc>
3598 </param>
3599 <param name="value" type="wstring" dir="in">
3600 <desc>
3601 The value of the property.
3602 </desc>
3603 </param>
3604 <param name="timestamp" type="unsigned long long" dir="in">
3605 <desc>
3606 The timestamp of the property.
3607 </desc>
3608 </param>
3609 <param name="flags" type="wstring" dir="in">
3610 <desc>
3611 The flags of the property.
3612 </desc>
3613 </param>
3614 </method>
3615 </interface>
3616
3617 <interface
3618 name="IBIOSSettings" extends="$unknown"
3619 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3620 wsmap="managed"
3621 >
3622 <desc>
3623 The IBIOSSettings interface represents BIOS settings of the virtual
3624 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3625 </desc>
3626 <attribute name="logoFadeIn" type="boolean">
3627 <desc>Fade in flag for BIOS logo animation.</desc>
3628 </attribute>
3629
3630 <attribute name="logoFadeOut" type="boolean">
3631 <desc>Fade out flag for BIOS logo animation.</desc>
3632 </attribute>
3633
3634 <attribute name="logoDisplayTime" type="unsigned long">
3635 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3636 </attribute>
3637
3638 <attribute name="logoImagePath" type="wstring">
3639 <desc>Local file system path for external BIOS image.</desc>
3640 </attribute>
3641
3642 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3643 <desc>Mode of the BIOS boot device menu.</desc>
3644 </attribute>
3645
3646 <attribute name="ACPIEnabled" type="boolean">
3647 <desc>ACPI support flag.</desc>
3648 </attribute>
3649
3650 <attribute name="IOAPICEnabled" type="boolean">
3651 <desc>
3652 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3653 and support IRQs above 15.
3654 </desc>
3655 </attribute>
3656
3657 <attribute name="timeOffset" type="long long">
3658 <desc>
3659 Offset in milliseconds from the host system time. This allows for
3660 guests running with a different system date/time than the host.
3661 It is equivalent to setting the system date/time in the BIOS except
3662 it is not an absolute value but a relative one. Guest Additions
3663 time synchronization honors this offset.
3664 </desc>
3665 </attribute>
3666
3667 <attribute name="PXEDebugEnabled" type="boolean">
3668 <desc>
3669 PXE debug logging flag. If set, VirtualBox will write extensive
3670 PXE trace information to the release log.
3671 </desc>
3672 </attribute>
3673
3674 <attribute name="IDEControllerType" type="IDEControllerType">
3675 <desc>
3676 Type of the virtual IDE controller. Depending on this value,
3677 VirtualBox will provide different virtual IDE hardware
3678 devices to the guest.
3679 </desc>
3680 </attribute>
3681
3682 </interface>
3683
3684 <interface
3685 name="IMachine" extends="$unknown"
3686 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3687 wsmap="managed"
3688 >
3689 <desc>
3690 The IMachine interface represents a virtual machine, or guest, created
3691 in VirtualBox.
3692
3693 This interface is used in two contexts. First of all, a collection of
3694 objects implementing this interface is stored in the
3695 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3696 machines that are currently registered with this VirtualBox
3697 installation. Also, once a session has been opened for the given virtual
3698 machine (e.g. the virtual machine is running), the machine object
3699 associated with the open session can be queried from the session object;
3700 see <link to="ISession"/> for details.
3701
3702 The main role of this interface is to expose the settings of the virtual
3703 machine and provide methods to change various aspects of the virtual
3704 machine's configuration. For machine objects stored in the
3705 <link to="IVirtualBox::machines2"/> collection, all attributes are
3706 read-only unless explicitly stated otherwise in individual attribute
3707 and method descriptions. In order to change a machine setting, a session
3708 for this machine must be opened using one of
3709 <link to="IVirtualBox::openSession"/>,
3710 <link to="IVirtualBox::openRemoteSession"/> or
3711 <link to="IVirtualBox::openExistingSession"/> methods. After the
3712 session has been successfully opened, a mutable machine object needs to
3713 be queried from the session object and then the desired settings changes
3714 can be applied to the returned object using IMachine attributes and
3715 methods. See the ISession interface description for more information
3716 about sessions.
3717
3718 Note that the IMachine interface does not provide methods to control
3719 virtual machine execution (such as start the machine, or power it
3720 down) -- these methods are grouped in a separate IConsole
3721 interface. Refer to the IConsole interface description to get more
3722 information about this topic.
3723
3724 <see>ISession, IConsole</see>
3725 </desc>
3726
3727 <attribute name="parent" type="IVirtualBox" readonly="yes">
3728 <desc>Associated parent object.</desc>
3729 </attribute>
3730
3731 <attribute name="accessible" type="boolean" readonly="yes">
3732 <desc>
3733 Whether this virtual machine is currently accessible or not.
3734
3735 The machine is considered to be inaccessible when:
3736 <ul>
3737 <li>It is a registered virtual machine, and
3738 </li>
3739 <li>Its settings file is inaccessible (for example, it is
3740 located on a network share that is not accessible during
3741 VirtualBox startup, or becomes inaccessible later, or if
3742 the settings file can be read but is invalid).
3743 </li>
3744 </ul>
3745
3746 Otherwise, the value of this property is always <tt>true</tt>.
3747
3748 Every time this property is read, the accessibility state of
3749 this machine is re-evaluated. If the returned value is |false|,
3750 the <link to="#accessError"/> property may be used to get the
3751 detailed error information describing the reason of
3752 inaccessibility.
3753
3754 When the machine is inaccessible, only the following properties
3755 can be used on it:
3756 <ul>
3757 <li><link to="#parent"/></li>
3758 <li><link to="#id"/></li>
3759 <li><link to="#settingsFilePath"/></li>
3760 <li><link to="#accessible"/></li>
3761 <li><link to="#accessError"/></li>
3762 </ul>
3763
3764 An attempt to access any other property or method will return
3765 an error.
3766
3767 The only possible action you can perform on an inaccessible
3768 machine is to unregister it using the
3769 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3770 for the accessibility state once more by querying this
3771 property).
3772
3773 <note>
3774 In the current implementation, once this property returns
3775 <tt>true</tt>, the machine will never become inaccessible
3776 later, even if its settings file cannot be successfully
3777 read/written any more (at least, until the VirtualBox
3778 server is restarted). This limitation may be removed in
3779 future releases.
3780 </note>
3781 </desc>
3782 </attribute>
3783
3784 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3785 <desc>
3786 Error information describing the reason of machine
3787 inaccessibility.
3788
3789 Reading this property is only valid after the last call to
3790 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3791 machine is currently unaccessible). Otherwise, a null
3792 IVirtualBoxErrorInfo object will be returned.
3793 </desc>
3794 </attribute>
3795
3796 <attribute name="name" type="wstring">
3797 <desc>
3798 Name of the virtual machine.
3799
3800 Besides being used for human-readable identification purposes
3801 everywhere in VirtualBox, the virtual machine name is also used
3802 as a name of the machine's settings file and as a name of the
3803 subdirectory this settings file resides in. Thus, every time you
3804 change the value of this property, the settings file will be
3805 renamed once you call <link to="#saveSettings"/> to confirm the
3806 change. The containing subdirectory will be also renamed, but
3807 only if it has exactly the same name as the settings file
3808 itself prior to changing this property (for backward compatibility
3809 with previous API releases). The above implies the following
3810 limitations:
3811 <ul>
3812 <li>The machine name cannot be empty.</li>
3813 <li>The machine name can contain only characters that are valid
3814 file name characters according to the rules of the file
3815 system used to store VirtualBox configuration.</li>
3816 <li>You cannot have two or more machines with the same name
3817 if they use the same subdirectory for storing the machine
3818 settings files.</li>
3819 <li>You cannot change the name of the machine if it is running,
3820 or if any file in the directory containing the settings file
3821 is being used by another running machine or by any other
3822 process in the host operating system at a time when
3823 <link to="#saveSettings"/> is called.
3824 </li>
3825 </ul>
3826 If any of the above limitations are hit, <link to="#saveSettings"/>
3827 will return an appropriate error message explaining the exact
3828 reason and the changes you made to this machine will not be
3829 saved.
3830 <note>
3831 For "legacy" machines created using the
3832 <link to="IVirtualBox::createLegacyMachine"/> call,
3833 the above naming limitations do not apply because the
3834 machine name does not affect the settings file name.
3835 The settings file name remains the same as it was specified
3836 during machine creation and never changes.
3837 </note>
3838 </desc>
3839 </attribute>
3840
3841 <attribute name="description" type="wstring">
3842 <desc>
3843 Description of the virtual machine.
3844
3845 The description attribute can contain any text and is
3846 typically used to describe the hardware and software
3847 configuration of the virtual machine in detail (i.e. network
3848 settings, versions of the installed software and so on).
3849 </desc>
3850 </attribute>
3851
3852 <attribute name="id" type="uuid" readonly="yes">
3853 <desc>UUID of the virtual machine.</desc>
3854 </attribute>
3855
3856 <attribute name="OSTypeId" type="wstring">
3857 <desc>
3858 User-defined identifier of the Guest OS type.
3859 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3860 an IGuestOSType object representing details about the given
3861 Guest OS type.
3862 <note>
3863 This value may differ from the value returned by
3864 <link to="IGuest::OSTypeId"/> if Guest Additions are
3865 installed to the guest OS.
3866 </note>
3867 </desc>
3868 </attribute>
3869
3870 <attribute name="HardwareVersion" type="wstring">
3871 <desc>Hardware version identifier. Internal use only for now.</desc>
3872 </attribute>
3873
3874 <attribute name="CPUCount" type="unsigned long">
3875 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3876 </attribute>
3877
3878 <attribute name="memorySize" type="unsigned long">
3879 <desc>System memory size in megabytes.</desc>
3880 </attribute>
3881
3882 <attribute name="memoryBalloonSize" type="unsigned long">
3883 <desc>Initial memory balloon size in megabytes.</desc>
3884 </attribute>
3885
3886 <attribute name="statisticsUpdateInterval" type="unsigned long">
3887 <desc>Initial interval to update guest statistics in seconds.</desc>
3888 </attribute>
3889
3890 <attribute name="VRAMSize" type="unsigned long">
3891 <desc>Video memory size in megabytes.</desc>
3892 </attribute>
3893
3894 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3895 <desc>
3896 This setting determines whether VirtualBox allows guests to make use
3897 of the 3D graphics support available on the host. Currently limited
3898 to OpenGL only. </desc>
3899 </attribute>
3900
3901 <attribute name="monitorCount" type="unsigned long">
3902 <desc>
3903 Number of virtual monitors.
3904 <note>
3905 Only effective on Windows XP and later guests with
3906 Guest Additions installed.
3907 </note>
3908 </desc>
3909 </attribute>
3910
3911 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3912 <desc>Object containing all BIOS settings.</desc>
3913 </attribute>
3914
3915 <attribute name="HWVirtExEnabled" type="TSBool">
3916 <desc>
3917 This setting determines whether VirtualBox will try to make use of
3918 the host CPU's hardware virtualization extensions such as Intel VT-x
3919 and AMD-V. Note that in case such extensions are not available,
3920 they will not be used.
3921 </desc>
3922 </attribute>
3923
3924 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3925 <desc>
3926 This setting determines whether VirtualBox will try to make use of
3927 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3928 such extensions are not available, they will not be used.
3929 </desc>
3930 </attribute>
3931
3932 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3933 <desc>
3934 This setting determines whether VirtualBox will try to make use of
3935 the VPID extension of Intel VT-x. Note that in case such extensions are
3936 not available, they will not be used.
3937 </desc>
3938 </attribute>
3939
3940 <attribute name="PAEEnabled" type="boolean" default="false">
3941 <desc>
3942 This setting determines whether VirtualBox will expose the Physical Address
3943 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3944 is not available, it will not be reported.
3945 </desc>
3946 </attribute>
3947
3948 <attribute name="snapshotFolder" type="wstring">
3949 <desc>
3950 Full path to the directory used to store snapshot data
3951 (differencing hard disks and saved state files) of this machine.
3952
3953 The initial value of this property is
3954 <tt>&lt;</tt><link to="#settingsFilePath">
3955 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3956 <link to="#id">machine_uuid</link>
3957 <tt>&gt;</tt>.
3958
3959 Currently, it is an error to try to change this property on
3960 a machine that has snapshots (because this would require to
3961 move possibly large files to a different location).
3962 A separate method will be available for this purpose later.
3963
3964 <note>
3965 Setting this property to <tt>null</tt> will restore the
3966 initial value.
3967 </note>
3968 <note>
3969 When setting this property, the specified path can be
3970 absolute (full path) or relative to the directory where the
3971 <link to="#settingsFilePath">machine settings file</link>
3972 is located. When reading this property, a full path is
3973 always returned.
3974 </note>
3975 <note>
3976 The specified path may not exist, it will be created
3977 when necessary.
3978 </note>
3979 </desc>
3980 </attribute>
3981
3982 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3983 <desc>VRDP server object.</desc>
3984 </attribute>
3985
3986 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3987 <desc>Array of hard disks attached to this machine.</desc>
3988 </attribute>
3989
3990 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3991 <desc>Associated DVD drive object.</desc>
3992 </attribute>
3993
3994 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3995 <desc>Associated floppy drive object.</desc>
3996 </attribute>
3997
3998 <attribute name="USBController" type="IUSBController" readonly="yes">
3999 <desc>
4000 Associated USB controller object.
4001
4002 <note>
4003 This method may set a @ref com_warnings "warning result code".
4004 </note>
4005 <note>
4006 If USB functionality is not available in the given edition of
4007 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4008 </note>
4009 </desc>
4010 </attribute>
4011
4012 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4013 <desc>Associated audio adapter, always present.</desc>
4014 </attribute>
4015
4016 <attribute name="SATAController" type="ISATAController" readonly="yes">
4017 <desc>
4018 Associated SATA controller object.
4019 </desc>
4020 </attribute>
4021
4022 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4023 <desc>
4024 Full name of the file containing machine settings data.
4025 </desc>
4026 </attribute>
4027
4028 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4029 <desc>
4030 Current version of the format of the settings file of this machine
4031 (<link to="#settingsFilePath"/>).
4032
4033 The version string has the following format:
4034 <pre>
4035 x.y-platform
4036 </pre>
4037 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4038 versions, and <tt>platform</tt> is the platform identifier.
4039
4040 The current version usually matches the value of the
4041 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4042 settings file was created by an older version of VirtualBox and there
4043 was a change of the settings file format since then.
4044
4045 Note that VirtualBox automatically converts settings files from older
4046 versions to the most recent version when reading them (usually at
4047 VirtualBox startup) but it doesn't save the changes back until
4048 you call a method that implicitly saves settings (such as
4049 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4050 explicitly. Therefore, if the value of this attribute differs from the
4051 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4052 means that the settings file was converted but the result of the
4053 conversion is not yet saved to disk.
4054
4055 The above feature may be used by interactive front-ends to inform users
4056 about the settings file format change and offer them to explicitly save
4057 all converted settings files (the global and VM-specific ones),
4058 optionally create backup copies of the old settings files before saving,
4059 etc.
4060
4061 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4062 </desc>
4063 </attribute>
4064
4065 <attribute name="settingsModified" type="boolean" readonly="yes">
4066 <desc>
4067 Whether the settings of this machine have been modified
4068 (but neither yet saved nor discarded).
4069 <note>
4070 Reading this property is only valid on instances returned
4071 by <link to="ISession::machine"/> and on new machines
4072 created by <link to="IVirtualBox::createMachine"/> or opened
4073 by <link to="IVirtualBox::openMachine"/> but not
4074 yet registered, or on unregistered machines after calling
4075 <link to="IVirtualBox::unregisterMachine"/>. For all other
4076 cases, the settings can never be modified.
4077 </note>
4078 <note>
4079 For newly created unregistered machines, the value of this
4080 property is always TRUE until <link to="#saveSettings"/>
4081 is called (no matter if any machine settings have been
4082 changed after the creation or not). For opened machines
4083 the value is set to FALSE (and then follows to normal rules).
4084 </note>
4085 </desc>
4086 </attribute>
4087
4088 <attribute name="sessionState" type="SessionState" readonly="yes">
4089 <desc>Current session state for this machine.</desc>
4090 </attribute>
4091
4092 <attribute name="sessionType" type="wstring" readonly="yes">
4093 <desc>
4094 Type of the session. If <link to="#sessionState"/> is
4095 SessionSpawning or SessionOpen, this attribute contains the
4096 same value as passed to the
4097 <link to="IVirtualBox::openRemoteSession"/> method in the
4098 @a type parameter. If the session was opened directly using
4099 <link to="IVirtualBox::openSession"/>, or if
4100 <link to="#sessionState"/> is SessionClosed, the value of this
4101 attribute is @c null.
4102 </desc>
4103 </attribute>
4104
4105 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4106 <desc>
4107 Identifier of the session process. This attribute contains the
4108 platform-dependent identifier of the process that has opened a
4109 direct session for this machine using the
4110 <link to="IVirtualBox::openSession"/> call. The returned value
4111 is only valid if <link to="#sessionState"/> is SessionOpen or
4112 SessionClosing (i.e. a session is currently open or being
4113 closed) by the time this property is read.
4114 </desc>
4115 </attribute>
4116
4117 <attribute name="state" type="MachineState" readonly="yes">
4118 <desc>Current execution state of this machine.</desc>
4119 </attribute>
4120
4121 <attribute name="lastStateChange" type="long long" readonly="yes">
4122 <desc>
4123 Time stamp of the last execution state change,
4124 in milliseconds since 1970-01-01 UTC.
4125 </desc>
4126 </attribute>
4127
4128 <attribute name="stateFilePath" type="wstring" readonly="yes">
4129 <desc>
4130 Full path to the file that stores the execution state of
4131 the machine when it is in the <link to="MachineState_Saved"/> state.
4132 <note>
4133 When the machine is not in the Saved state, this attribute
4134 <tt>null</tt>.
4135 </note>
4136 </desc>
4137 </attribute>
4138
4139 <attribute name="logFolder" type="wstring" readonly="yes">
4140 <desc>
4141 Full path to the folder that stores a set of rotated log files
4142 recorded during machine execution. The most recent log file is
4143 named <tt>VBox.log</tt>, the previous log file is
4144 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4145 in the current version).
4146 </desc>
4147 </attribute>
4148
4149 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4150 <desc>
4151 Current snapshot of this machine.
4152 <note>
4153 A <tt>null</tt> object is returned if the machine doesn't
4154 have snapshots.
4155 </note>
4156 <see><link to="ISnapshot"/></see>
4157 </desc>
4158 </attribute>
4159
4160 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4161 <desc>
4162 Number of snapshots taken on this machine. Zero means the
4163 machine doesn't have any snapshots.
4164 </desc>
4165 </attribute>
4166
4167 <attribute name="currentStateModified" type="boolean" readonly="yes">
4168 <desc>
4169 Returns <tt>true</tt> if the current state of the machine is not
4170 identical to the state stored in the current snapshot.
4171
4172 The current state is identical to the current snapshot right
4173 after one of the following calls are made:
4174 <ul>
4175 <li><link to="IConsole::discardCurrentState"/> or
4176 <link to="IConsole::discardCurrentSnapshotAndState"/>
4177 </li>
4178 <li><link to="IConsole::takeSnapshot"/> (issued on a
4179 powered off or saved machine, for which
4180 <link to="#settingsModified"/> returns <tt>false</tt>)
4181 </li>
4182 <li><link to="IMachine::setCurrentSnapshot"/>
4183 </li>
4184 </ul>
4185
4186 The current state remains identical until one of the following
4187 happens:
4188 <ul>
4189 <li>settings of the machine are changed</li>
4190 <li>the saved state is discarded</li>
4191 <li>the current snapshot is discarded</li>
4192 <li>an attempt to execute the machine is made</li>
4193 </ul>
4194
4195 <note>
4196 For machines that don't have snapshots, this property is
4197 always <tt>false</tt>.
4198 </note>
4199 </desc>
4200 </attribute>
4201
4202 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4203 <desc>
4204 Collection of shared folders for this machine (permanent shared
4205 folders). These folders are shared automatically at machine startup
4206 and available only to the guest OS installed within this machine.
4207
4208 New shared folders are added to the collection using
4209 <link to="#createSharedFolder"/>. Existing shared folders can be
4210 removed using <link to="#removeSharedFolder"/>.
4211 </desc>
4212 </attribute>
4213
4214 <attribute name="clipboardMode" type="ClipboardMode">
4215 <desc>
4216 Synchronization mode between the host OS clipboard
4217 and the guest OS clipboard.
4218 </desc>
4219 </attribute>
4220
4221 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4222 <desc>
4223 A comma-separated list of simple glob patterns. Changes to guest
4224 properties whose name matches one of the patterns will generate an
4225 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4226 </desc>
4227 </attribute>
4228
4229 <method name="setBootOrder">
4230 <desc>
4231 Puts the given device to the specified position in
4232 the boot order.
4233
4234 To indicate that no device is associated with the given position,
4235 <link to="DeviceType_Null"/> should be used.
4236
4237 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4238
4239 <result name="E_INVALIDARG">
4240 Boot @a position out of range.
4241 </result>
4242 <result name="E_NOTIMPL">
4243 Booting from USB @a device currently not supported.
4244 </result>
4245
4246 </desc>
4247 <param name="position" type="unsigned long" dir="in">
4248 <desc>
4249 Position in the boot order (<tt>1</tt> to the total number of
4250 devices the machine can boot from, as returned by
4251 <link to="ISystemProperties::maxBootPosition"/>).
4252 </desc>
4253 </param>
4254 <param name="device" type="DeviceType" dir="in">
4255 <desc>
4256 The type of the device used to boot at the given position.
4257 </desc>
4258 </param>
4259 </method>
4260
4261 <method name="getBootOrder" const="yes">
4262 <desc>
4263 Returns the device type that occupies the specified
4264 position in the boot order.
4265
4266 @todo [remove?]
4267 If the machine can have more than one device of the returned type
4268 (such as hard disks), then a separate method should be used to
4269 retrieve the individual device that occupies the given position.
4270
4271 If here are no devices at the given position, then
4272 <link to="DeviceType_Null"/> is returned.
4273
4274 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4275
4276 <result name="E_INVALIDARG">
4277 Boot @a position out of range.
4278 </result>
4279
4280 </desc>
4281 <param name="position" type="unsigned long" dir="in">
4282 <desc>
4283 Position in the boot order (<tt>1</tt> to the total number of
4284 devices the machine can boot from, as returned by
4285 <link to="ISystemProperties::maxBootPosition"/>).
4286 </desc>
4287 </param>
4288 <param name="device" type="DeviceType" dir="return">
4289 <desc>
4290 Device at the given position.
4291 </desc>
4292 </param>
4293 </method>
4294
4295 <method name="attachHardDisk">
4296 <desc>
4297 Attaches a virtual hard disk identified by the given UUID @a id
4298 to a device slot of the specified bus.
4299
4300 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4301 specify the primary or secondary IDE controller, respectively. The
4302 SATA bus supports 30 channels, so this parameter can be a number
4303 ranging from @c 0 to @c 29.
4304
4305 For the primary controller of the IDE bus, the @a device number can be
4306 either @c 0 or @c 1, to specify the master or the slave device,
4307 respectively. For the secondary IDE controller, the device number is
4308 always @c 1 because the master device is reserved for the CD-ROM drive.
4309
4310 For the SATA bus, the @a device parameter is currently unused and
4311 must be @c 0.
4312
4313 The specified device slot must not have another disk attached to it, or
4314 this method will fail.
4315
4316 See <link to="IHardDisk"/> for more detailed information about
4317 attaching hard disks.
4318
4319 <note>
4320 You cannot attach a hard disk to a running machine. Also, you cannot
4321 attach a hard disk to a newly created machine until this machine's
4322 settings are saved to disk using <link to="#saveSettings"/>.
4323 </note>
4324 <note>
4325 If the hard disk is being attached indirectly, a new differencing hard
4326 disk will implicitly be created for it and attached instead. If the
4327 changes made to the machine settings (including this indirect
4328 attachment) are later cancelled using <link to="#discardSettings"/>,
4329 this implicitly created differencing hard disk will implicitly
4330 be deleted.
4331 </note>
4332
4333 <result name="E_INVALIDARG">
4334 SATA device, SATA channel, IDE channel or IDE slot out of range.
4335 </result>
4336 <result name="VBOX_E_INVALID_OBJECT_STATE">
4337 Attempt to attach hard disk to an unregistered virtual machine.
4338 </result>
4339 <result name="VBOX_E_INVALID_VM_STATE">
4340 Invalid machine state.
4341 </result>
4342 <result name="VBOX_E_OBJECT_IN_USE">
4343 Hard disk already attached to this or another virtual machine.
4344 </result>
4345
4346 </desc>
4347 <param name="id" type="uuid" dir="in">
4348 <desc>UUID of the hard disk to attach.</desc>
4349 </param>
4350 <param name="bus" type="StorageBus" dir="in">
4351 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4352 </param>
4353 <param name="channel" type="long" dir="in">
4354 <desc>Channel to attach the hard disk to.</desc>
4355 </param>
4356 <param name="device" type="long" dir="in">
4357 <desc>
4358 Device slot in the given channel to attach the hard disk to.
4359 </desc>
4360 </param>
4361 </method>
4362
4363 <method name="getHardDisk" const="yes">
4364 <desc>
4365 Returns the virtual hard disk attached to a device slot of the specified
4366 bus.
4367
4368 Note that if the hard disk was indirectly attached by
4369 <link to="#attachHardDisk"/> to the given device slot then this
4370 method will return not the same object as passed to the
4371 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4372 more detailed information about attaching hard disks.
4373
4374 <result name="VBOX_E_OBJECT_NOT_FOUND">
4375 No hard disk attached to given slot/bus.
4376 </result>
4377
4378 </desc>
4379 <param name="bus" type="StorageBus" dir="in">
4380 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4381 </param>
4382 <param name="channel" type="long" dir="in">
4383 <desc>Channel to query.</desc>
4384 </param>
4385 <param name="device" type="long" dir="in">
4386 <desc>Device slot in the given channel to query.</desc>
4387 </param>
4388 <param name="hardDisk" type="IHardDisk" dir="return">
4389 <desc>Attached hard disk object.</desc>
4390 </param>
4391 </method>
4392
4393 <method name="detachHardDisk">
4394 <desc>
4395 Detaches the virtual hard disk attached to a device slot of the
4396 specified bus.
4397
4398 Detaching the hard disk from the virtual machine is deferred. This means
4399 that the hard disk remains associated with the machine when this method
4400 returns and gets actually de-associated only after a successful
4401 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4402 for more detailed information about attaching hard disks.
4403
4404 <note>
4405 You cannot detach the hard disk from a running machine.
4406 </note>
4407 <note>
4408 Detaching differencing hard disks implicitly created by <link
4409 to="#attachHardDisk"/> for the indirect attachment using this
4410 method will <b>not</b> implicitly delete them. The
4411 <link to="IHardDisk::deleteStorage"/> operation should be
4412 explicitly performed by the caller after the hard disk is successfully
4413 detached and the settings are saved with
4414 <link to="#saveSettings"/>, if it is the desired action.
4415 </note>
4416
4417 <result name="VBOX_E_INVALID_VM_STATE">
4418 Attempt to detach hard disk from a running virtual machine.
4419 </result>
4420 <result name="VBOX_E_OBJECT_NOT_FOUND">
4421 No hard disk attached to given slot/bus.
4422 </result>
4423 <result name="VBOX_E_NOT_SUPPORTED">
4424 Hard disk format does not support storage deletion.
4425 </result>
4426
4427 </desc>
4428 <param name="bus" type="StorageBus" dir="in">
4429 <desc>Bus to detach the hard disk from.</desc>
4430 </param>
4431 <param name="channel" type="long" dir="in">
4432 <desc>Channel number to detach the hard disk from.</desc>
4433 </param>
4434 <param name="device" type="long" dir="in">
4435 <desc>Device slot number to detach the hard disk from.</desc>
4436 </param>
4437 </method>
4438
4439 <method name="getNetworkAdapter" const="yes">
4440 <desc>
4441 Returns the network adapter associated with the given slot.
4442 Slots are numbered sequentially, starting with zero. The total
4443 number of adapters per machine is defined by the
4444 <link to="ISystemProperties::networkAdapterCount"/> property,
4445 so the maximum slot number is one less than that property's value.
4446
4447 <result name="E_INVALIDARG">
4448 Invalid @a slot number.
4449 </result>
4450
4451 </desc>
4452 <param name="slot" type="unsigned long" dir="in"/>
4453 <param name="adapter" type="INetworkAdapter" dir="return"/>
4454 </method>
4455
4456 <method name="getSerialPort" const="yes">
4457 <desc>
4458 Returns the serial port associated with the given slot.
4459 Slots are numbered sequentially, starting with zero. The total
4460 number of serial ports per machine is defined by the
4461 <link to="ISystemProperties::serialPortCount"/> property,
4462 so the maximum slot number is one less than that property's value.
4463
4464 <result name="E_INVALIDARG">
4465 Invalid @a slot number.
4466 </result>
4467
4468 </desc>
4469 <param name="slot" type="unsigned long" dir="in"/>
4470 <param name="port" type="ISerialPort" dir="return"/>
4471 </method>
4472
4473 <method name="getParallelPort" const="yes">
4474 <desc>
4475 Returns the parallel port associated with the given slot.
4476 Slots are numbered sequentially, starting with zero. The total
4477 number of parallel ports per machine is defined by the
4478 <link to="ISystemProperties::parallelPortCount"/> property,
4479 so the maximum slot number is one less than that property's value.
4480
4481 <result name="E_INVALIDARG">
4482 Invalid @a slot number.
4483 </result>
4484
4485 </desc>
4486 <param name="slot" type="unsigned long" dir="in"/>
4487 <param name="port" type="IParallelPort" dir="return"/>
4488 </method>
4489
4490 <method name="getNextExtraDataKey">
4491 <desc>
4492 Returns the machine-specific extra data key name following the
4493 supplied key.
4494
4495 An error is returned if the supplied @a key does not exist. @c NULL is
4496 returned in @a nextKey if the supplied key is the last key. When
4497 supplying @c NULL for the @a key, the first key item is returned in
4498 @a nextKey (if there is any). @a nextValue is an optional parameter and
4499 if supplied, the next key's value is returned in it.
4500
4501 <result name="VBOX_E_OBJECT_NOT_FOUND">
4502 Extra data @a key not found.
4503 </result>
4504
4505 </desc>
4506 <param name="key" type="wstring" dir="in">
4507 <desc>Name of the data key to follow.</desc>
4508 </param>
4509 <param name="nextKey" type="wstring" dir="out">
4510 <desc>Name of the next data key.</desc>
4511 </param>
4512 <param name="nextValue" type="wstring" dir="out">
4513 <desc>Value of the next data key.</desc>
4514 </param>
4515 </method>
4516
4517 <method name="getExtraData">
4518 <desc>
4519 Returns associated machine-specific extra data.
4520
4521 If the requested data @a key does not exist, this function will
4522 succeed and return @c NULL in the @a value argument.
4523
4524 <result name="VBOX_E_FILE_ERROR">
4525 Settings file not accessible.
4526 </result>
4527 <result name="VBOX_E_XML_ERROR">
4528 Could not parse the settings file.
4529 </result>
4530
4531 </desc>
4532 <param name="key" type="wstring" dir="in">
4533 <desc>Name of the data key to get.</desc>
4534 </param>
4535 <param name="value" type="wstring" dir="return">
4536 <desc>Value of the requested data key.</desc>
4537 </param>
4538 </method>
4539
4540 <method name="setExtraData">
4541 <desc>
4542 Sets associated machine-specific extra data.
4543
4544 If you pass @c NULL as a key @a value, the given @a key will be
4545 deleted.
4546
4547 <note>
4548 Before performing the actual data change, this method will ask all
4549 registered callbacks using the
4550 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4551 notification for a permission. If one of the callbacks refuses the
4552 new value, the change will not be performed.
4553 </note>
4554 <note>
4555 On success, the
4556 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4557 is called to inform all registered callbacks about a successful data
4558 change.
4559 </note>
4560 <note>
4561 This method can be called outside the machine session and therefore
4562 it's a caller's responsibility to handle possible race conditions
4563 when several clients change the same key at the same time.
4564 </note>
4565
4566 <result name="VBOX_E_FILE_ERROR">
4567 Settings file not accessible.
4568 </result>
4569 <result name="VBOX_E_XML_ERROR">
4570 Could not parse the settings file.
4571 </result>
4572
4573 </desc>
4574 <param name="key" type="wstring" dir="in">
4575 <desc>Name of the data key to set.</desc>
4576 </param>
4577 <param name="value" type="wstring" dir="in">
4578 <desc>Value to assign to the key.</desc>
4579 </param>
4580 </method>
4581
4582 <method name="saveSettings">
4583 <desc>
4584 Saves any changes to machine settings made since the session
4585 has been opened or a new machine has been created, or since the
4586 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4587 For registered machines, new settings become visible to all
4588 other VirtualBox clients after successful invocation of this
4589 method.
4590 <note>
4591 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4592 notification event after the configuration has been successfully
4593 saved (only for registered machines).
4594 </note>
4595 <note>
4596 Calling this method is only valid on instances returned
4597 by <link to="ISession::machine"/> and on new machines
4598 created by <link to="IVirtualBox::createMachine"/> but not
4599 yet registered, or on unregistered machines after calling
4600 <link to="IVirtualBox::unregisterMachine"/>.
4601 </note>
4602
4603 <result name="VBOX_E_FILE_ERROR">
4604 Settings file not accessible.
4605 </result>
4606 <result name="VBOX_E_XML_ERROR">
4607 Could not parse the settings file.
4608 </result>
4609 <result name="E_ACCESSDENIED">
4610 Modification request refused.
4611 </result>
4612
4613 </desc>
4614 </method>
4615
4616 <method name="saveSettingsWithBackup">
4617 <desc>
4618 Creates a backup copy of the machine settings file (<link
4619 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4620 <link to="#saveSettings"/>.
4621
4622 Note that the backup copy is created <b>only</b> if the settings file
4623 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4624 details). Otherwise, this call is fully equivalent to
4625 <link to="#saveSettings"/> and no backup copying is done.
4626
4627 The backup copy is created in the same directory where the original
4628 settings file is located. It is given the following file name:
4629 <pre>
4630 original.xml.x.y-platform.bak
4631 </pre>
4632 where <tt>original.xml</tt> is the original settings file name
4633 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4634 format of the settings file (before auto-conversion).
4635
4636 If the given backup file already exists, this method will try to add the
4637 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4638 0 to 9) and copy it again until it succeeds. If all suffixes are
4639 occupied, or if any other copy error occurs, this method will return a
4640 failure.
4641
4642 If the copy operation succeeds, the @a bakFileName return argument will
4643 receive a full path to the created backup file (for informational
4644 purposes). Note that this will happen even if the subsequent
4645 <link to="#saveSettings"/> call performed by this method after the
4646 copy operation, fails.
4647
4648 <note>
4649 The VirtualBox API never calls this method. It is intended purely for
4650 the purposes of creating backup copies of the settings files by
4651 front-ends before saving the results of the automatically performed
4652 settings conversion to disk.
4653 </note>
4654
4655 <see>settingsFileVersion</see>
4656
4657 <result name="VBOX_E_FILE_ERROR">
4658 Settings file not accessible.
4659 </result>
4660 <result name="VBOX_E_XML_ERROR">
4661 Could not parse the settings file.
4662 </result>
4663 <result name="VBOX_E_INVALID_VM_STATE">
4664 Virtual machine is not mutable.
4665 </result>
4666 <result name="E_ACCESSDENIED">
4667 Modification request refused.
4668 </result>
4669
4670 </desc>
4671 <param name="bakFileName" type="wstring" dir="return">
4672 <desc>Full path to the created backup copy.</desc>
4673 </param>
4674 </method>
4675
4676 <method name="discardSettings">
4677 <desc>
4678 Discards any changes to the machine settings made since the session
4679 has been opened or since the last call to <link to="#saveSettings"/>
4680 or <link to="#discardSettings"/>.
4681 <note>
4682 Calling this method is only valid on instances returned
4683 by <link to="ISession::machine"/> and on new machines
4684 created by <link to="IVirtualBox::createMachine"/> or
4685 opened by <link to="IVirtualBox::openMachine"/> but not
4686 yet registered, or on unregistered machines after calling
4687 <link to="IVirtualBox::unregisterMachine"/>.
4688 </note>
4689
4690 <result name="VBOX_E_INVALID_VM_STATE">
4691 Virtual machine is not mutable.
4692 </result>
4693
4694 </desc>
4695 </method>
4696
4697 <method name="deleteSettings">
4698 <desc>
4699 Deletes the settings file of this machine from disk.
4700 The machine must not be registered in order for this operation
4701 to succeed.
4702 <note>
4703 <link to="#settingsModified"/> will return TRUE after this
4704 method successfully returns.
4705 </note>
4706 <note>
4707 Calling this method is only valid on instances returned
4708 by <link to="ISession::machine"/> and on new machines
4709 created by <link to="IVirtualBox::createMachine"/> or
4710 opened by <link to="IVirtualBox::openMachine"/> but not
4711 yet registered, or on unregistered machines after calling
4712 <link to="IVirtualBox::unregisterMachine"/>.
4713 </note>
4714 <note>
4715 The deleted machine settings file can be restored (saved again)
4716 by calling <link to="#saveSettings"/>.
4717 </note>
4718
4719 <result name="VBOX_E_INVALID_VM_STATE">
4720 Cannot delete settings of a registered machine or
4721 machine not mutable.
4722 </result>
4723 <result name="VBOX_E_IPRT_ERROR">
4724 Could not delete the settings file.
4725 </result>
4726
4727 </desc>
4728 </method>
4729
4730 <method name="export">
4731 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
4732 steps required to export VirtualBox machines to OVF.
4733 </desc>
4734
4735 <param name="appliance" type="IAppliance" dir="in">
4736 <desc>Appliance to export this machine to.</desc>
4737 </param>
4738 </method >
4739
4740 <method name="getSnapshot">
4741 <desc>
4742 Returns a snapshot of this machine with the given UUID.
4743 A <tt>null</tt> UUID can be used to obtain the first snapshot
4744 taken on this machine. This is useful if you want to traverse
4745 the whole tree of snapshots starting from the root.
4746
4747 <result name="VBOX_E_OBJECT_NOT_FOUND">
4748 Virtual machine has no snapshots or snapshot not found.
4749 </result>
4750
4751 </desc>
4752 <param name="id" type="uuid" dir="in">
4753 <desc>UUID of the snapshot to get</desc>
4754 </param>
4755 <param name="snapshot" type="ISnapshot" dir="return">
4756 <desc>Snapshot object with the given UUID.</desc>
4757 </param>
4758 </method>
4759
4760 <method name="findSnapshot">
4761 <desc>
4762 Returns a snapshot of this machine with the given name.
4763
4764 <result name="VBOX_E_OBJECT_NOT_FOUND">
4765 Virtual machine has no snapshots or snapshot not found.
4766 </result>
4767
4768 </desc>
4769 <param name="name" type="wstring" dir="in">
4770 <desc>Name of the snapshot to find</desc>
4771 </param>
4772 <param name="snapshot" type="ISnapshot" dir="return">
4773 <desc>Snapshot object with the given name.</desc>
4774 </param>
4775 </method>
4776
4777 <method name="setCurrentSnapshot">
4778 <desc>
4779 Sets the current snapshot of this machine.
4780 <note>
4781 In the current implementation, this operation is not
4782 implemented.
4783 </note>
4784 </desc>
4785 <param name="id" type="uuid" dir="in">
4786 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4787 </param>
4788 </method>
4789
4790 <method name="createSharedFolder">
4791 <desc>
4792 Creates a new permanent shared folder by associating the given logical
4793 name with the given host path, adds it to the collection of shared
4794 folders and starts sharing it. Refer to the description of
4795 <link to="ISharedFolder"/> to read more about logical names.
4796
4797 <result name="VBOX_E_OBJECT_IN_USE">
4798 Shared folder already exists.
4799 </result>
4800 <result name="VBOX_E_FILE_ERROR">
4801 Shared folder @a hostPath not accessible.
4802 </result>
4803
4804 </desc>
4805 <param name="name" type="wstring" dir="in">
4806 <desc>Unique logical name of the shared folder.</desc>
4807 </param>
4808 <param name="hostPath" type="wstring" dir="in">
4809 <desc>Full path to the shared folder in the host file system.</desc>
4810 </param>
4811 <param name="writable" type="boolean" dir="in">
4812 <desc>Whether the share is writable or readonly</desc>
4813 </param>
4814 </method>
4815
4816 <method name="removeSharedFolder">
4817 <desc>
4818 Removes the permanent shared folder with the given name previously
4819 created by <link to="#createSharedFolder"/> from the collection of
4820 shared folders and stops sharing it.
4821
4822 <result name="VBOX_E_INVALID_VM_STATE">
4823 Virtual machine is not mutable.
4824 </result>
4825 <result name="VBOX_E_OBJECT_NOT_FOUND">
4826 Shared folder @a name does not exist.
4827 </result>
4828
4829 </desc>
4830 <param name="name" type="wstring" dir="in">
4831 <desc>Logical name of the shared folder to remove.</desc>
4832 </param>
4833 </method>
4834
4835 <method name="canShowConsoleWindow">
4836 <desc>
4837 Returns @c true if the VM console process can activate the
4838 console window and bring it to foreground on the desktop of
4839 the host PC.
4840 <note>
4841 This method will fail if a session for this machine is not
4842 currently open.
4843 </note>
4844
4845 <result name="VBOX_E_INVALID_VM_STATE">
4846 Machine session is not open.
4847 </result>
4848
4849 </desc>
4850 <param name="canShow" type="boolean" dir="return">
4851 <desc>
4852 @c true if the console window can be shown and @c
4853 false otherwise.
4854 </desc>
4855 </param>
4856 </method>
4857
4858 <method name="showConsoleWindow">
4859 <desc>
4860 Activates the console window and brings it to foreground on
4861 the desktop of the host PC. Many modern window managers on
4862 many platforms implement some sort of focus stealing
4863 prevention logic, so that it may be impossible to activate
4864 a window without the help of the currently active
4865 application. In this case, this method will return a non-zero
4866 identifier that represents the top-level window of the VM
4867 console process. The caller, if it represents a currently
4868 active process, is responsible to use this identifier (in a
4869 platform-dependent manner) to perform actual window
4870 activation.
4871 <note>
4872 This method will fail if a session for this machine is not
4873 currently open.
4874 </note>
4875
4876 <result name="VBOX_E_INVALID_VM_STATE">
4877 Machine session is not open.
4878 </result>
4879
4880 </desc>
4881 <param name="winId" type="unsigned long long" dir="return">
4882 <desc>
4883 Platform-dependent identifier of the top-level VM console
4884 window, or zero if this method has performed all actions
4885 necessary to implement the <i>show window</i> semantics for
4886 the given platform and/or VirtualBox front-end.
4887 </desc>
4888 </param>
4889 </method>
4890
4891 <method name="getGuestProperty">
4892 <desc>
4893 Reads an entry from the machine's guest property store.
4894
4895 <result name="VBOX_E_INVALID_VM_STATE">
4896 Machine session is not open.
4897 </result>
4898
4899 </desc>
4900 <param name="name" type="wstring" dir="in">
4901 <desc>
4902 The name of the property to read.
4903 </desc>
4904 </param>
4905 <param name="value" type="wstring" dir="out">
4906 <desc>
4907 The value of the property. If the property does not exist then this
4908 will be empty.
4909 </desc>
4910 </param>
4911 <param name="timestamp" type="unsigned long long" dir="out">
4912 <desc>
4913 The time at which the property was last modified, as seen by the
4914 server process.
4915 </desc>
4916 </param>
4917 <param name="flags" type="wstring" dir="out">
4918 <desc>
4919 Additional property parameters, passed as a comma-separated list of
4920 "name=value" type entries.
4921 </desc>
4922 </param>
4923 </method>
4924
4925 <method name="getGuestPropertyValue">
4926 <desc>
4927 Reads a value from the machine's guest property store.
4928
4929 <result name="VBOX_E_INVALID_VM_STATE">
4930 Machine session is not open.
4931 </result>
4932
4933 </desc>
4934 <param name="property" type="wstring" dir="in">
4935 <desc>
4936 The name of the property to read.
4937 </desc>
4938 </param>
4939 <param name="value" type="wstring" dir="return">
4940 <desc>
4941 The value of the property. If the property does not exist then this
4942 will be empty.
4943 </desc>
4944 </param>
4945 </method>
4946
4947 <method name="getGuestPropertyTimestamp">
4948 <desc>
4949 Reads a property timestamp from the machine's guest property store.
4950
4951 <result name="VBOX_E_INVALID_VM_STATE">
4952 Machine session is not open.
4953 </result>
4954
4955 </desc>
4956 <param name="property" type="wstring" dir="in">
4957 <desc>
4958 The name of the property to read.
4959 </desc>
4960 </param>
4961 <param name="value" type="unsigned long long" dir="return">
4962 <desc>
4963 The timestamp. If the property does not exist then this will be
4964 empty.
4965 </desc>
4966 </param>
4967 </method>
4968
4969 <method name="setGuestProperty">
4970 <desc>
4971 Sets, changes or deletes an entry in the machine's guest property
4972 store.
4973
4974 <result name="E_ACCESSDENIED">
4975 Property cannot be changed.
4976 </result>
4977 <result name="E_INVALIDARG">
4978 Invalid @a flags.
4979 </result>
4980 <result name="VBOX_E_INVALID_VM_STATE">
4981 Virtual machine is not mutable or session not open.
4982 </result>
4983 <result name="VBOX_E_INVALID_OBJECT_STATE">
4984 Cannot set transient property when machine not running.
4985 </result>
4986
4987 </desc>
4988 <param name="property" type="wstring" dir="in">
4989 <desc>
4990 The name of the property to set, change or delete.
4991 </desc>
4992 </param>
4993 <param name="value" type="wstring" dir="in">
4994 <desc>
4995 The new value of the property to set, change or delete. If the
4996 property does not yet exist and value is non-empty, it will be
4997 created. If the value is empty, the key will be deleted if it
4998 exists.
4999 </desc>
5000 </param>
5001 <param name="flags" type="wstring" dir="in">
5002 <desc>
5003 Additional property parameters, passed as a comma-separated list of
5004 "name=value" type entries.
5005 </desc>
5006 </param>
5007 </method>
5008
5009 <method name="setGuestPropertyValue">
5010 <desc>
5011 Sets, changes or deletes a value in the machine's guest property
5012 store. The flags field will be left unchanged or created empty for a
5013 new property.
5014
5015 <result name="E_ACCESSDENIED">
5016 Property cannot be changed.
5017 </result>
5018 <result name="VBOX_E_INVALID_VM_STATE">
5019 Virtual machine is not mutable or session not open.
5020 </result>
5021 <result name="VBOX_E_INVALID_OBJECT_STATE">
5022 Cannot set transient property when machine not running.
5023 </result>
5024 </desc>
5025
5026 <param name="property" type="wstring" dir="in">
5027 <desc>
5028 The name of the property to set, change or delete.
5029 </desc>
5030 </param>
5031 <param name="value" type="wstring" dir="in">
5032 <desc>
5033 The new value of the property to set, change or delete. If the
5034 property does not yet exist and value is non-empty, it will be
5035 created. If value is empty, the property will be deleted if it
5036 exists.
5037 </desc>
5038 </param>
5039 </method>
5040
5041 <method name="enumerateGuestProperties">
5042 <desc>
5043 Return a list of the guest properties matching a set of patterns along
5044 with their values, time stamps and flags.
5045 </desc>
5046 <param name="patterns" type="wstring" dir="in">
5047 <desc>
5048 The patterns to match the properties against, separated by '|'
5049 characters. If this is empty or NULL, all properties will match.
5050 </desc>
5051 </param>
5052 <param name="name" type="wstring" dir="out" safearray="yes">
5053 <desc>
5054 The names of the properties returned.
5055 </desc>
5056 </param>
5057 <param name="value" type="wstring" dir="out" safearray="yes">
5058 <desc>
5059 The values of the properties returned. The array entries match the
5060 corresponding entries in the @a name array.
5061 </desc>
5062 </param>
5063 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5064 <desc>
5065 The time stamps of the properties returned. The array entries match
5066 the corresponding entries in the @a name array.
5067 </desc>
5068 </param>
5069 <param name="flags" type="wstring" dir="out" safearray="yes">
5070 <desc>
5071 The flags of the properties returned. The array entries match the
5072 corresponding entries in the @a name array.
5073 </desc>
5074 </param>
5075 </method>
5076</interface>
5077
5078 <!--
5079 // IConsole
5080 /////////////////////////////////////////////////////////////////////////
5081 -->
5082
5083 <interface
5084 name="IConsoleCallback" extends="$unknown"
5085 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5086 wsmap="suppress"
5087 >
5088
5089 <method name="onMousePointerShapeChange">
5090 <desc>
5091 Notification when the guest mouse pointer shape has
5092 changed. The new shape data is given.
5093 </desc>
5094 <param name="visible" type="boolean" dir="in">
5095 <desc>
5096 Flag whether the pointer is visible.
5097 </desc>
5098 </param>
5099 <param name="alpha" type="boolean" dir="in">
5100 <desc>
5101 Flag whether the pointer has an alpha channel.
5102 </desc>
5103 </param>
5104 <param name="xHot" type="unsigned long" dir="in">
5105 <desc>
5106 The pointer hot spot x coordinate.
5107 </desc>
5108 </param>
5109 <param name="yHot" type="unsigned long" dir="in">
5110 <desc>
5111 The pointer hot spot y coordinate.
5112 </desc>
5113 </param>
5114 <param name="width" type="unsigned long" dir="in">
5115 <desc>
5116 Width of the pointer shape in pixels.
5117 </desc>
5118 </param>
5119 <param name="height" type="unsigned long" dir="in">
5120 <desc>
5121 Height of the pointer shape in pixels.
5122 </desc>
5123 </param>
5124 <param name="shape" type="octet" mod="ptr" dir="in">
5125 <desc>
5126 Address of the shape buffer.
5127
5128 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5129 followed by a 32-bpp XOR (color) mask.
5130
5131 For pointers without alpha channel the XOR mask pixels are 32
5132 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5133 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5134
5135 An AND mask is used for pointers with alpha channel, so if the
5136 callback does not support alpha, the pointer could be
5137 displayed as a normal color pointer.
5138
5139 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5140 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5141 height</tt>. The padding bits at the end of each scanline are
5142 undefined.
5143
5144 The XOR mask follows the AND mask on the next 4-byte aligned
5145 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5146 Bytes in the gap between the AND and the XOR mask are undefined.
5147 The XOR mask scanlines have no gap between them and the size of
5148 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5149
5150 <note>
5151 If @a shape is 0, only the pointer visibility is changed.
5152 </note>
5153 </desc>
5154 </param>
5155 </method>
5156
5157 <method name="onMouseCapabilityChange">
5158 <desc>
5159 Notification when the mouse capabilities reported by the
5160 guest have changed. The new capabilities are passed.
5161 </desc>
5162 <param name="supportsAbsolute" type="boolean" dir="in"/>
5163 <param name="needsHostCursor" type="boolean" dir="in"/>
5164 </method>
5165
5166 <method name="onKeyboardLedsChange">
5167 <desc>
5168 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5169 to alter the state of the keyboard LEDs.
5170 </desc>
5171 <param name="numLock" type="boolean" dir="in"/>
5172 <param name="capsLock" type="boolean" dir="in"/>
5173 <param name="scrollLock" type="boolean" dir="in"/>
5174 </method>
5175
5176 <method name="onStateChange">
5177 <desc>
5178 Notification when the execution state of the machine has changed.
5179 The new state will be given.
5180 </desc>
5181 <param name="state" type="MachineState" dir="in"/>
5182 </method>
5183
5184 <method name="onAdditionsStateChange">
5185 <desc>
5186 Notification when a Guest Additions property changes.
5187 Interested callees should query IGuest attributes to
5188 find out what has changed.
5189 </desc>
5190 </method>
5191
5192 <method name="onDVDDriveChange">
5193 <desc>
5194 Notification when a property of the
5195 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5196 Interested callees should use IDVDDrive methods to find out what has
5197 changed.
5198 </desc>
5199 </method>
5200
5201 <method name="onFloppyDriveChange">
5202 <desc>
5203 Notification when a property of the
5204 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5205 Interested callees should use IFloppyDrive methods to find out what
5206 has changed.
5207 </desc>
5208 </method>
5209
5210 <method name="onNetworkAdapterChange">
5211 <desc>
5212 Notification when a property of one of the
5213 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5214 changes. Interested callees should use INetworkAdapter methods and
5215 attributes to find out what has changed.
5216 </desc>
5217 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5218 <desc>Network adapter that is subject to change.</desc>
5219 </param>
5220 </method>
5221
5222 <method name="onSerialPortChange">
5223 <desc>
5224 Notification when a property of one of the
5225 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5226 Interested callees should use ISerialPort methods and attributes
5227 to find out what has changed.
5228 </desc>
5229 <param name="serialPort" type="ISerialPort" dir="in">
5230 <desc>Serial port that is subject to change.</desc>
5231 </param>
5232 </method>
5233
5234 <method name="onParallelPortChange">
5235 <desc>
5236 Notification when a property of one of the
5237 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5238 changes. Interested callees should use ISerialPort methods and
5239 attributes to find out what has changed.
5240 </desc>
5241 <param name="parallelPort" type="IParallelPort" dir="in">
5242 <desc>Parallel port that is subject to change.</desc>
5243 </param>
5244 </method>
5245
5246 <method name="onVRDPServerChange">
5247 <desc>
5248 Notification when a property of the
5249 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5250 Interested callees should use IVRDPServer methods and attributes to
5251 find out what has changed.
5252 </desc>
5253 </method>
5254
5255 <method name="onUSBControllerChange">
5256 <desc>
5257 Notification when a property of the virtual
5258 <link to="IMachine::USBController">USB controller</link> changes.
5259 Interested callees should use IUSBController methods and attributes to
5260 find out what has changed.
5261 </desc>
5262 </method>
5263
5264 <method name="onUSBDeviceStateChange">
5265 <desc>
5266 Notification when a USB device is attached to or detached from
5267 the virtual USB controller.
5268
5269 This notification is sent as a result of the indirect
5270 request to attach the device because it matches one of the
5271 machine USB filters, or as a result of the direct request
5272 issued by <link to="IConsole::attachUSBDevice"/> or
5273 <link to="IConsole::detachUSBDevice"/>.
5274
5275 This notification is sent in case of both a succeeded and a
5276 failed request completion. When the request succeeds, the
5277 @a error parameter is @c null, and the given device has been
5278 already added to (when @a attached is @c true) or removed from
5279 (when @a attached is @c false) the collection represented by
5280 <link to="IConsole::USBDevices"/>. On failure, the collection
5281 doesn't change and the @a error parameter represents the error
5282 message describing the failure.
5283
5284 </desc>
5285 <param name="device" type="IUSBDevice" dir="in">
5286 <desc>Device that is subject to state change.</desc>
5287 </param>
5288 <param name="attached" type="boolean" dir="in">
5289 <desc>
5290 <tt>true</tt> if the device was attached
5291 and <tt>false</tt> otherwise.
5292 </desc>
5293 </param>
5294 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5295 <desc>
5296 <tt>null</tt> on success or an error message object on
5297 failure.
5298 </desc>
5299 </param>
5300 </method>
5301
5302 <method name="onSharedFolderChange">
5303 <desc>
5304 Notification when a shared folder is added or removed.
5305 The @a scope argument defines one of three scopes:
5306 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5307 (<link to="Scope_Global">Global</link>),
5308 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5309 the machine (<link to="Scope_Machine">Machine</link>) or <link
5310 to="IConsole::sharedFolders">transient shared folders</link> of the
5311 machine (<link to="Scope_Session">Session</link>). Interested callees
5312 should use query the corresponding collections to find out what has
5313 changed.
5314 </desc>
5315 <param name="scope" type="Scope" dir="in">
5316 <desc>Scope of the notification.</desc>
5317 </param>
5318 </method>
5319
5320 <method name="onRuntimeError">
5321 <desc>
5322 Notification when an error happens during the virtual
5323 machine execution.
5324
5325 There are three kinds of runtime errors:
5326 <ul>
5327 <li><i>fatal</i></li>
5328 <li><i>non-fatal with retry</i></li>
5329 <li><i>non-fatal warnings</i></li>
5330 </ul>
5331
5332 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5333 to <tt>true</tt>. In case of fatal errors, the virtual machine
5334 execution is always paused before calling this notification, and
5335 the notification handler is supposed either to immediately save
5336 the virtual machine state using <link to="IConsole::saveState"/>
5337 or power it off using <link to="IConsole::powerDown"/>.
5338 Resuming the execution can lead to unpredictable results.
5339
5340 <b>Non-fatal</b> errors and warnings are indicated by the
5341 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5342 is in the Paused state by the time the error notification is
5343 received, it means that the user can <i>try to resume</i> the machine
5344 execution after attempting to solve the problem that caused the
5345 error. In this case, the notification handler is supposed
5346 to show an appropriate message to the user (depending on the
5347 value of the @a id parameter) that offers several actions such
5348 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5349 wants to retry, the notification handler should continue
5350 the machine execution using the <link to="IConsole::resume"/>
5351 call. If the machine execution is not Paused during this
5352 notification, then it means this notification is a <i>warning</i>
5353 (for example, about a fatal condition that can happen very soon);
5354 no immediate action is required from the user, the machine
5355 continues its normal execution.
5356
5357 Note that in either case the notification handler
5358 <b>must not</b> perform any action directly on a thread
5359 where this notification is called. Everything it is allowed to
5360 do is to post a message to another thread that will then talk
5361 to the user and take the corresponding action.
5362
5363 Currently, the following error identifiers are known:
5364 <ul>
5365 <li><tt>"HostMemoryLow"</tt></li>
5366 <li><tt>"HostAudioNotResponding"</tt></li>
5367 <li><tt>"VDIStorageFull"</tt></li>
5368 </ul>
5369
5370 <note>
5371 This notification is not designed to be implemented by
5372 more than one callback at a time. If you have multiple
5373 IConsoleCallback instances registered on the given
5374 IConsole object, make sure you simply do nothing but
5375 return @c S_OK from all but one of them that does actual
5376 user notification and performs necessary actions.
5377 </note>
5378
5379 </desc>
5380 <param name="fatal" type="boolean" dir="in">
5381 <desc>Whether the error is fatal or not</desc>
5382 </param>
5383 <param name="id" type="wstring" dir="in">
5384 <desc>Error identifier</desc>
5385 </param>
5386 <param name="message" type="wstring" dir="in">
5387 <desc>Optional error message</desc>
5388 </param>
5389 </method>
5390
5391 <method name="onCanShowWindow">
5392 <desc>
5393 Notification when a call to
5394 <link to="IMachine::canShowConsoleWindow"/> is made by a
5395 front-end to check if a subsequent call to
5396 <link to="IMachine::showConsoleWindow"/> can succeed.
5397
5398 The callee should give an answer appropriate to the current
5399 machine state in the @a canShow argument. This answer must
5400 remain valid at least until the next
5401 <link to="IConsole::state">machine state</link> change.
5402
5403 <note>
5404 This notification is not designed to be implemented by
5405 more than one callback at a time. If you have multiple
5406 IConsoleCallback instances registered on the given
5407 IConsole object, make sure you simply do nothing but
5408 return @c true and @c S_OK from all but one of them that
5409 actually manages console window activation.
5410 </note>
5411 </desc>
5412 <param name="canShow" type="boolean" dir="return">
5413 <desc>
5414 @c true if the console window can be shown and @c
5415 false otherwise.
5416 </desc>
5417 </param>
5418 </method>
5419
5420 <method name="onShowWindow">
5421 <desc>
5422 Notification when a call to
5423 <link to="IMachine::showConsoleWindow"/>
5424 requests the console window to be activated and brought to
5425 foreground on the desktop of the host PC.
5426
5427 This notification should cause the VM console process to
5428 perform the requested action as described above. If it is
5429 impossible to do it at a time of this notification, this
5430 method should return a failure.
5431
5432 Note that many modern window managers on many platforms
5433 implement some sort of focus stealing prevention logic, so
5434 that it may be impossible to activate a window without the
5435 help of the currently active application (which is supposedly
5436 an initiator of this notification). In this case, this method
5437 must return a non-zero identifier that represents the
5438 top-level window of the VM console process. The caller, if it
5439 represents a currently active process, is responsible to use
5440 this identifier (in a platform-dependent manner) to perform
5441 actual window activation.
5442
5443 This method must set @a winId to zero if it has performed all
5444 actions necessary to complete the request and the console
5445 window is now active and in foreground, to indicate that no
5446 further action is required on the caller's side.
5447
5448 <note>
5449 This notification is not designed to be implemented by
5450 more than one callback at a time. If you have multiple
5451 IConsoleCallback instances registered on the given
5452 IConsole object, make sure you simply do nothing but
5453 return @c S_OK from all but one of them that actually
5454 manages console window activation.
5455 </note>
5456 </desc>
5457 <param name="winId" type="unsigned long long" dir="return">
5458 <desc>
5459 Platform-dependent identifier of the top-level VM console
5460 window, or zero if this method has performed all actions
5461 necessary to implement the <i>show window</i> semantics for
5462 the given platform and/or this VirtualBox front-end.
5463 </desc>
5464 </param>
5465 </method>
5466
5467 </interface>
5468
5469 <interface
5470 name="IRemoteDisplayInfo" extends="$unknown"
5471 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5472 wsmap="struct"
5473 >
5474 <desc>
5475 Contains information about the remote display (VRDP) capabilities and status.
5476 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5477 </desc>
5478
5479 <attribute name="active" type="boolean" readonly="yes">
5480 <desc>
5481 Whether the remote display connection is active.
5482 </desc>
5483 </attribute>
5484
5485 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5486 <desc>
5487 How many times a client connected.
5488 </desc>
5489 </attribute>
5490
5491 <attribute name="beginTime" type="long long" readonly="yes">
5492 <desc>
5493 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5494 </desc>
5495 </attribute>
5496
5497 <attribute name="endTime" type="long long" readonly="yes">
5498 <desc>
5499 When the last connection was terminated or the current time, if
5500 connection is still active, in milliseconds since 1970-01-01 UTC.
5501 </desc>
5502 </attribute>
5503
5504 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5505 <desc>
5506 How many bytes were sent in last or current, if still active, connection.
5507 </desc>
5508 </attribute>
5509
5510 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5511 <desc>
5512 How many bytes were sent in all connections.
5513 </desc>
5514 </attribute>
5515
5516 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5517 <desc>
5518 How many bytes were received in last or current, if still active, connection.
5519 </desc>
5520 </attribute>
5521
5522 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5523 <desc>
5524 How many bytes were received in all connections.
5525 </desc>
5526 </attribute>
5527
5528 <attribute name="user" type="wstring" readonly="yes">
5529 <desc>
5530 Login user name supplied by the client.
5531 </desc>
5532 </attribute>
5533
5534 <attribute name="domain" type="wstring" readonly="yes">
5535 <desc>
5536 Login domain name supplied by the client.
5537 </desc>
5538 </attribute>
5539
5540 <attribute name="clientName" type="wstring" readonly="yes">
5541 <desc>
5542 The client name supplied by the client.
5543 </desc>
5544 </attribute>
5545
5546 <attribute name="clientIP" type="wstring" readonly="yes">
5547 <desc>
5548 The IP address of the client.
5549 </desc>
5550 </attribute>
5551
5552 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5553 <desc>
5554 The client software version number.
5555 </desc>
5556 </attribute>
5557
5558 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5559 <desc>
5560 Public key exchange method used when connection was established.
5561 Values: 0 - RDP4 public key exchange scheme.
5562 1 - X509 certificates were sent to client.
5563 </desc>
5564 </attribute>
5565
5566 </interface>
5567
5568 <interface
5569 name="IConsole" extends="$unknown"
5570 uuid="e3c6d4a1-a935-47ca-b16d-f9e9c496e53e"
5571 wsmap="managed"
5572 >
5573 <desc>
5574 The IConsole interface represents an interface to control virtual
5575 machine execution.
5576
5577 The console object that implements the IConsole interface is obtained
5578 from a session object after the session for the given machine has been
5579 opened using one of <link to="IVirtualBox::openSession"/>,
5580 <link to="IVirtualBox::openRemoteSession"/> or
5581 <link to="IVirtualBox::openExistingSession"/> methods.
5582
5583 Methods of the IConsole interface allow the caller to query the current
5584 virtual machine execution state, pause the machine or power it down, save
5585 the machine state or take a snapshot, attach and detach removable media
5586 and so on.
5587
5588 <see>ISession</see>
5589 </desc>
5590
5591 <attribute name="machine" type="IMachine" readonly="yes">
5592 <desc>
5593 Machine object this console is sessioned with.
5594 <note>
5595 This is a convenience property, it has the same value as
5596 <link to="ISession::machine"/> of the corresponding session
5597 object.
5598 </note>
5599 </desc>
5600 </attribute>
5601
5602 <attribute name="state" type="MachineState" readonly="yes">
5603 <desc>
5604 Current execution state of the machine.
5605 <note>
5606 This property always returns the same value as the corresponding
5607 property of the IMachine object this console is sessioned with.
5608 For the process that owns (executes) the VM, this is the
5609 preferable way of querying the VM state, because no IPC
5610 calls are made.
5611 </note>
5612 </desc>
5613 </attribute>
5614
5615 <attribute name="guest" type="IGuest" readonly="yes">
5616 <desc>Guest object.</desc>
5617 </attribute>
5618
5619 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5620 <desc>
5621 Virtual keyboard object.
5622 <note>
5623 If the machine is not running, any attempt to use
5624 the returned object will result in an error.
5625 </note>
5626 </desc>
5627 </attribute>
5628
5629 <attribute name="mouse" type="IMouse" readonly="yes">
5630 <desc>
5631 Virtual mouse object.
5632 <note>
5633 If the machine is not running, any attempt to use
5634 the returned object will result in an error.
5635 </note>
5636 </desc>
5637 </attribute>
5638
5639 <attribute name="display" type="IDisplay" readonly="yes">
5640 <desc>Virtual display object.
5641 <note>
5642 If the machine is not running, any attempt to use
5643 the returned object will result in an error.
5644 </note>
5645 </desc>
5646 </attribute>
5647
5648 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5649 <desc>Debugging interface.</desc>
5650 </attribute>
5651
5652 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
5653 <desc>
5654 Collection of USB devices currently attached to the virtual
5655 USB controller.
5656 <note>
5657 The collection is empty if the machine is not running.
5658 </note>
5659 </desc>
5660 </attribute>
5661
5662 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5663 <desc>
5664 List of USB devices currently attached to the remote VRDP client.
5665 Once a new device is physically attached to the remote host computer,
5666 it appears in this list and remains there until detached.
5667 </desc>
5668 </attribute>
5669
5670 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5671 <desc>
5672 Collection of shared folders for the current session. These folders
5673 are called transient shared folders because they are available to the
5674 guest OS running inside the associated virtual machine only for the
5675 duration of the session (as opposed to
5676 <link to="IMachine::sharedFolders"/> which represent permanent shared
5677 folders). When the session is closed (e.g. the machine is powered down),
5678 these folders are automatically discarded.
5679
5680 New shared folders are added to the collection using
5681 <link to="#createSharedFolder"/>. Existing shared folders can be
5682 removed using <link to="#removeSharedFolder"/>.
5683 </desc>
5684 </attribute>
5685
5686 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5687 <desc>
5688 Interface that provides information on Remote Display (VRDP) connection.
5689 </desc>
5690 </attribute>
5691
5692 <method name="powerUp">
5693 <desc>
5694 Starts the virtual machine execution using the current machine
5695 state (that is, its current execution state, current settings and
5696 current hard disks).
5697
5698 If the machine is powered off or aborted, the execution will
5699 start from the beginning (as if the real hardware were just
5700 powered on).
5701
5702 If the machine is in the <link to="MachineState_Saved"/> state,
5703 it will continue its execution the point where the state has
5704 been saved.
5705
5706 <note>
5707 Unless you are trying to write a new VirtualBox front-end that
5708 performs direct machine execution (like the VirtualBox or VBoxSDL
5709 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5710 session opened by <link to="IVirtualBox::openSession"/> and use this
5711 session only to change virtual machine settings. If you simply want to
5712 start virtual machine execution using one of the existing front-ends
5713 (for example the VirtualBox GUI or headless server), simply use
5714 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5715 power up the machine automatically for you.
5716 </note>
5717
5718 <see>#saveState</see>
5719 <result name="VBOX_E_INVALID_VM_STATE">
5720 Virtual machine already running.
5721 </result>
5722 <result name="VBOX_E_HOST_ERROR">
5723 Host interface does not exist or name not set.
5724 </result>
5725 <result name="VBOX_E_FILE_ERROR">
5726 Invalid saved state file.
5727 </result>
5728 </desc>
5729 <param name="progress" type="IProgress" dir="return">
5730 <desc>Progress object to track the operation completion.</desc>
5731 </param>
5732 </method>
5733
5734 <method name="powerUpPaused">
5735 <desc>
5736 Identical to powerUp except that the VM will enter the
5737 <link to="MachineState_Paused"/> state, instead of
5738 <link to="MachineState_Running"/>.
5739
5740 <see>#powerUp</see>
5741 <result name="VBOX_E_INVALID_VM_STATE">
5742 Virtual machine already running.
5743 </result>
5744 <result name="VBOX_E_HOST_ERROR">
5745 Host interface does not exist or name not set.
5746 </result>
5747 <result name="VBOX_E_FILE_ERROR">
5748 Invalid saved state file.
5749 </result>
5750 </desc>
5751 <param name="progress" type="IProgress" dir="return">
5752 <desc>Progress object to track the operation completion.</desc>
5753 </param>
5754 </method>
5755
5756 <method name="powerDown">
5757 <desc>
5758 Stops the virtual machine execution.
5759 After this operation completes, the machine will go to the
5760 PoweredOff state.
5761
5762 @deprecated This method will be removed in VirtualBox 2.1 where the
5763 powerDownAsync() method will take its name. Do not use this method in
5764 the code.
5765 <result name="VBOX_E_INVALID_VM_STATE">
5766 Virtual machine must be Running, Paused or Stuck to be powered down.
5767 </result>
5768 <result name="VBOX_E_VM_ERROR">
5769 Unable to power off or destroy virtual machine.
5770 </result>
5771 </desc>
5772 </method>
5773
5774 <method name="powerDownAsync">
5775 <desc>
5776 Initiates the power down procedure to stop the virtual machine
5777 execution.
5778
5779 The completion of the power down procedure is tracked using the returned
5780 IProgress object. After the operation is complete, the machine will go
5781 to the PoweredOff state.
5782
5783 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5784 where the original powerDown() method will be removed. You will need to
5785 rename "powerDownAsync" to "powerDown" in your sources to make them
5786 build with version 2.1.
5787 <result name="VBOX_E_INVALID_VM_STATE">
5788 Virtual machine must be Running, Paused or Stuck to be powered down.
5789 </result>
5790 </desc>
5791 <param name="progress" type="IProgress" dir="return">
5792 <desc>Progress object to track the operation completion.</desc>
5793 </param>
5794 </method>
5795
5796 <method name="reset">
5797 <desc>Resets the virtual machine.
5798 <result name="VBOX_E_INVALID_VM_STATE">
5799 Virtual machine not in Running state.
5800 </result>
5801 <result name="VBOX_E_VM_ERROR">
5802 Virtual machine error in reset operation.
5803 </result>
5804 </desc>
5805 </method>
5806
5807 <method name="pause">
5808 <desc>Pauses the virtual machine execution.
5809 <result name="VBOX_E_INVALID_VM_STATE">
5810 Virtual machine not in Running state.
5811 </result>
5812 <result name="VBOX_E_VM_ERROR">
5813 Virtual machine error in suspend operation.
5814 </result>
5815 </desc>
5816 </method>
5817
5818 <method name="resume">
5819 <desc>Resumes the virtual machine execution.
5820 <result name="VBOX_E_INVALID_VM_STATE">
5821 Virtual machine not in Paused state.
5822 </result>
5823 <result name="VBOX_E_VM_ERROR">
5824 Virtual machine error in resume operation.
5825 </result>
5826 </desc>
5827 </method>
5828
5829 <method name="powerButton">
5830 <desc>Sends the ACPI power button event to the guest.
5831 <result name="VBOX_E_INVALID_VM_STATE">
5832 Virtual machine not in Running state.
5833 </result>
5834 <result name="VBOX_E_PDM_ERROR">
5835 Controlled power off failed.
5836 </result>
5837 </desc>
5838 </method>
5839
5840 <method name="sleepButton">
5841 <desc>Sends the ACPI sleep button event to the guest.
5842 <result name="VBOX_E_INVALID_VM_STATE">
5843 Virtual machine not in Running state.
5844 </result>
5845 <result name="VBOX_E_PDM_ERROR">
5846 Sending sleep button event failed.
5847 </result>
5848 </desc>
5849 </method>
5850
5851 <method name="getPowerButtonHandled">
5852 <desc>Checks if the last power button event was handled by guest.
5853 <result name="VBOX_E_PDM_ERROR">
5854 Checking if the event was handled by the guest OS failed.
5855 </result>
5856 </desc>
5857 <param name="handled" type="boolean" dir="return"/>
5858 </method>
5859
5860 <method name="getGuestEnteredACPIMode">
5861 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5862 G1 (sleeping). If this method returns false, the guest will
5863 most likely not respond to external ACPI events.
5864 <result name="VBOX_E_INVALID_VM_STATE">
5865 Virtual machine not in Running state.
5866 </result>
5867 </desc>
5868 <param name="entered" type="boolean" dir="return"/>
5869 </method>
5870
5871 <method name="saveState">
5872 <desc>
5873 Saves the current execution state of a running virtual machine
5874 and stops its execution.
5875
5876 After this operation completes, the machine will go to the
5877 Saved state. Next time it is powered up, this state will
5878 be restored and the machine will continue its execution from
5879 the place where it was saved.
5880
5881 This operation differs from taking a snapshot to the effect
5882 that it doesn't create new differencing hard disks. Also, once
5883 the machine is powered up from the state saved using this method,
5884 the saved state is deleted, so it will be impossible to return
5885 to this state later.
5886
5887 <note>
5888 On success, this method implicitly calls
5889 <link to="IMachine::saveSettings"/> to save all current machine
5890 settings (including runtime changes to the DVD drive, etc.).
5891 Together with the impossibility to change any VM settings when it is
5892 in the Saved state, this guarantees adequate hardware
5893 configuration of the machine when it is restored from the saved
5894 state file.
5895 </note>
5896
5897 <note>
5898 The machine must be in the Running or Paused state, otherwise
5899 the operation will fail.
5900 </note>
5901 <result name="VBOX_E_INVALID_VM_STATE">
5902 Virtual machine state neither Running nor Paused.
5903 </result>
5904 <result name="VBOX_E_FILE_ERROR">
5905 Failed to create directory for saved state file.
5906 </result>
5907
5908 <see><link to="#takeSnapshot"/></see>
5909 </desc>
5910 <param name="progress" type="IProgress" dir="return">
5911 <desc>Progress object to track the operation completion.</desc>
5912 </param>
5913 </method>
5914
5915 <method name="adoptSavedState">
5916 <desc>
5917 Associates the given saved state file to the virtual machine.
5918
5919 On success, the machine will go to the Saved state. Next time it is
5920 powered up, it will be restored from the adopted saved state and
5921 continue execution from the place where the saved state file was
5922 created.
5923
5924 The specified saved state file path may be absolute or relative to the
5925 folder the VM normally saves the state to (usually,
5926 <link to="IMachine::snapshotFolder"/>).
5927
5928 <note>
5929 It's a caller's responsibility to make sure the given saved state
5930 file is compatible with the settings of this virtual machine that
5931 represent its virtual hardware (memory size, hard disk configuration
5932 etc.). If there is a mismatch, the behavior of the virtual machine
5933 is undefined.
5934 </note>
5935 <result name="VBOX_E_INVALID_VM_STATE">
5936 Virtual machine state neither PoweredOff nor Aborted.
5937 </result>
5938 </desc>
5939 <param name="savedStateFile" type="wstring" dir="in">
5940 <desc>Path to the saved state file to adopt.</desc>
5941 </param>
5942 </method>
5943
5944 <method name="discardSavedState">
5945 <desc>
5946 Discards (deletes) the saved state of the virtual machine
5947 previously created by <link to="#saveState"/>. Next time the
5948 machine is powered up, a clean boot will occur.
5949 <note>
5950 This operation is equivalent to resetting or powering off
5951 the machine without doing a proper shutdown in the guest OS.
5952 </note>
5953 <result name="VBOX_E_INVALID_VM_STATE">
5954 Virtual machine not in state Saved.
5955 </result>
5956 </desc>
5957 </method>
5958
5959 <method name="getDeviceActivity">
5960 <desc>
5961 Gets the current activity type of a given device or device group.
5962 <result name="E_INVALIDARG">
5963 Invalid device type.
5964 </result>
5965 </desc>
5966 <param name="type" type="DeviceType" dir="in"/>
5967 <param name="activity" type="DeviceActivity" dir="return"/>
5968 </method>
5969
5970 <method name="attachUSBDevice">
5971 <desc>
5972 Attaches a host USB device with the given UUID to the
5973 USB controller of the virtual machine.
5974
5975 The device needs to be in one of the following states:
5976 <link to="USBDeviceState_Busy"/>,
5977 <link to="USBDeviceState_Available"/> or
5978 <link to="USBDeviceState_Held"/>,
5979 otherwise an error is immediately returned.
5980
5981 When the device state is
5982 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5983 be returned if the host computer refuses to release it for some reason.
5984
5985 <see>IUSBController::deviceFilters, USBDeviceState</see>
5986 <result name="VBOX_E_INVALID_VM_STATE">
5987 Virtual machine state neither Running nor Paused.
5988 </result>
5989 <result name="VBOX_E_PDM_ERROR">
5990 Virtual machine does not have a USB controller.
5991 </result>
5992 </desc>
5993 <param name="id" type="uuid" dir="in">
5994 <desc>UUID of the host USB device to attach.</desc>
5995 </param>
5996 </method>
5997
5998 <method name="detachUSBDevice">
5999 <desc>
6000 Detaches an USB device with the given UUID from the USB controller
6001 of the virtual machine.
6002
6003 After this method succeeds, the VirtualBox server re-initiates
6004 all USB filters as if the device were just physically attached
6005 to the host, but filters of this machine are ignored to avoid
6006 a possible automatic re-attachment.
6007
6008 <see>IUSBController::deviceFilters, USBDeviceState</see>
6009
6010 <result name="VBOX_E_PDM_ERROR">
6011 Virtual machine does not have a USB controller.
6012 </result>
6013 <result name="E_INVALIDARG">
6014 USB device not attached to this virtual machine.
6015 </result>
6016 </desc>
6017 <param name="id" type="uuid" dir="in">
6018 <desc>UUID of the USB device to detach.</desc>
6019 </param>
6020 <param name="device" type="IUSBDevice" dir="return">
6021 <desc>Detached USB device.</desc>
6022 </param>
6023 </method>
6024
6025 <method name="createSharedFolder">
6026 <desc>
6027 Creates a transient new shared folder by associating the given logical
6028 name with the given host path, adds it to the collection of shared
6029 folders and starts sharing it. Refer to the description of
6030 <link to="ISharedFolder"/> to read more about logical names.
6031
6032 <result name="VBOX_E_INVALID_VM_STATE">
6033 Virtual machine in Saved state or currently changing state.
6034 </result>
6035 <result name="VBOX_E_FILE_ERROR">
6036 Shared folder already exists or not accessible.
6037 </result>
6038 </desc>
6039 <param name="name" type="wstring" dir="in">
6040 <desc>Unique logical name of the shared folder.</desc>
6041 </param>
6042 <param name="hostPath" type="wstring" dir="in">
6043 <desc>Full path to the shared folder in the host file system.</desc>
6044 </param>
6045 <param name="writable" type="boolean" dir="in">
6046 <desc>Whether the share is writable or readonly</desc>
6047 </param>
6048 </method>
6049
6050 <method name="removeSharedFolder">
6051 <desc>
6052 Removes a transient shared folder with the given name previously
6053 created by <link to="#createSharedFolder"/> from the collection of
6054 shared folders and stops sharing it.
6055 <result name="VBOX_E_INVALID_VM_STATE">
6056 Virtual machine in Saved state or currently changing state.
6057 </result>
6058 <result name="VBOX_E_FILE_ERROR">
6059 Shared folder does not exists.
6060 </result>
6061 </desc>
6062 <param name="name" type="wstring" dir="in">
6063 <desc>Logical name of the shared folder to remove.</desc>
6064 </param>
6065 </method>
6066
6067 <method name="takeSnapshot">
6068 <desc>
6069 Saves the current execution state and all settings of the
6070 machine and creates differencing images for all
6071 normal (non-independent) hard disks.
6072
6073 This method can be called for a PoweredOff, Saved, Running or
6074 Paused virtual machine. When the machine is PoweredOff, an
6075 offline <link to="ISnapshot">snapshot</link> is created,
6076 in all other cases -- an online snapshot.
6077
6078 The taken snapshot is always based on the
6079 <link to="IMachine::currentSnapshot">current
6080 snapshot</link> of the associated virtual machine and becomes
6081 a new current snapshot.
6082
6083 <note>
6084 This method implicitly calls <link to="IMachine::saveSettings"/> to
6085 save all current machine settings before taking an offline snapshot.
6086 </note>
6087
6088 <see>ISnapshot, <link to="#saveState"/></see>
6089 <result name="VBOX_E_INVALID_VM_STATE">
6090 Virtual machine currently changing state.
6091 </result>
6092 </desc>
6093 <param name="name" type="wstring" dir="in">
6094 <desc>Short name for the snapshot.</desc>
6095 </param>
6096 <param name="description" type="wstring" dir="in">
6097 <desc>Optional description of the snapshot.</desc>
6098 </param>
6099 <param name="progress" type="IProgress" dir="return">
6100 <desc>Progress object to track the operation completion.</desc>
6101 </param>
6102 </method>
6103
6104 <method name="discardSnapshot">
6105 <desc>
6106
6107 Starts discarding the specified snapshot. The execution state
6108 and settings of the associated machine stored in the snapshot
6109 will be deleted. The contents of all differencing hard disks of
6110 this snapshot will be merged with the contents of their
6111 dependent child hard disks to keep the, disks valid (in other
6112 words, all changes represented by hard disks being discarded
6113 will be propagated to their child hard disks). After that, this
6114 snapshot's differencing hard disks will be deleted. The parent
6115 of this snapshot will become a new parent for all its child
6116 snapshots.
6117
6118 If the discarded snapshot is the current one, its parent
6119 snapshot will become a new current snapshot. The current machine
6120 state is not directly affected in this case, except that
6121 currently attached differencing hard disks based on hard disks
6122 of the discarded snapshot will be also merged as described
6123 above.
6124
6125 If the discarded snapshot is the first one (the root snapshot)
6126 and it has exactly one child snapshot, this child snapshot will
6127 become the first snapshot after discarding. If there are no
6128 children at all (i.e. the first snapshot is the only snapshot of
6129 the machine), both the current and the first snapshot of the
6130 machine will be set to null. In all other cases, the first
6131 snapshot cannot be discarded.
6132
6133 You cannot discard the snapshot if it
6134 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6135 hard disks that have differencing hard disks based on them. Snapshots of
6136 such kind can be discarded only when every normal hard disk has either
6137 no children at all or exactly one child. In the former case, the normal
6138 hard disk simply becomes unused (i.e. not attached to any VM). In the
6139 latter case, it receives all the changes stored in the child hard disk,
6140 and then it replaces the child hard disk in the configuration of the
6141 corresponding snapshot or machine.
6142
6143 Also, you cannot discard the snapshot if it stores hard disks
6144 (of any type) having differencing child hard disks that belong
6145 to other machines. Such snapshots can be only discarded after
6146 you discard all snapshots of other machines containing "foreign"
6147 child disks, or detach these "foreign" child disks from machines
6148 they are attached to.
6149
6150 One particular example of the snapshot storing normal hard disks
6151 is the first snapshot of a virtual machine that had normal hard
6152 disks attached when taking the snapshot. Be careful when
6153 discarding such snapshots because this implicitly commits
6154 changes (made since the snapshot being discarded has been taken)
6155 to normal hard disks (as described above), which may be not what
6156 you want.
6157
6158 The virtual machine is put to
6159 the <link to="MachineState_Discarding">Discarding</link> state until
6160 the discard operation is completed.
6161
6162 <note>
6163 The machine must not be running, otherwise the operation
6164 will fail.
6165 </note>
6166
6167 <note>
6168 Child hard disks of all normal hard disks of the discarded snapshot
6169 must be accessible (see <link to="IMedium::state"/>) for this
6170 operation to succeed. In particular, this means that all virtual
6171 machines, whose hard disks are directly or indirectly based on the
6172 hard disks of discarded snapshot, must be powered off.
6173 </note>
6174 <note>
6175 Merging hard disk contents can be very time and disk space
6176 consuming, if these disks are big in size and have many
6177 children. However, if the snapshot being discarded is the last
6178 (head) snapshot on the branch, the operation will be rather
6179 quick.
6180 </note>
6181 <note>
6182 Note that discarding the current snapshot
6183 will implicitly call <link to="IMachine::saveSettings"/> to
6184 make all current machine settings permanent.
6185 </note>
6186 <result name="VBOX_E_INVALID_VM_STATE">
6187 Virtual machine is running.
6188 </result>
6189 </desc>
6190 <param name="id" type="uuid" dir="in">
6191 <desc>UUID of the snapshot to discard.</desc>
6192 </param>
6193 <param name="progress" type="IProgress" dir="return">
6194 <desc>Progress object to track the operation completion.</desc>
6195 </param>
6196 </method>
6197
6198 <method name="discardCurrentState">
6199 <desc>
6200 This operation is similar to <link to="#discardSnapshot"/> but
6201 affects the current machine state. This means that the state stored in
6202 the current snapshot will become a new current state, and all current
6203 settings of the machine and changes stored in differencing hard disks
6204 will be lost.
6205
6206 After this operation is successfully completed, new empty differencing
6207 hard disks are created for all normal hard disks of the machine.
6208
6209 If the current snapshot of the machine is an online snapshot, the
6210 machine will go to the <link to="MachineState_Saved"> saved
6211 state</link>, so that the next time it is powered on, the execution
6212 state will be restored from the current snapshot.
6213
6214 <note>
6215 The machine must not be running, otherwise the operation will fail.
6216 </note>
6217
6218 <note>
6219 If the machine state is <link to="MachineState_Saved">Saved</link>
6220 prior to this operation, the saved state file will be implicitly
6221 discarded (as if <link to="IConsole::discardSavedState"/> were
6222 called).
6223 </note>
6224
6225 <result name="VBOX_E_INVALID_VM_STATE">
6226 Virtual machine is running.
6227 </result>
6228 </desc>
6229 <param name="progress" type="IProgress" dir="return">
6230 <desc>Progress object to track the operation completion.</desc>
6231 </param>
6232 </method>
6233
6234 <method name="discardCurrentSnapshotAndState">
6235 <desc>
6236
6237 This method is equivalent to
6238 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6239 (currentSnapshot.id(), progress) followed by
6240 <link to="#discardCurrentState"/>.
6241
6242 As a result, the machine will be fully restored from the
6243 snapshot preceding the current snapshot, while both the current
6244 snapshot and the current machine state will be discarded.
6245
6246 If the current snapshot is the first snapshot of the machine (i.e. it
6247 has the only snapshot), the current machine state will be
6248 discarded <b>before</b> discarding the snapshot. In other words, the
6249 machine will be restored from its last snapshot, before discarding
6250 it. This differs from performing a single
6251 <link to="#discardSnapshot"/> call (note that no
6252 <link to="#discardCurrentState"/> will be possible after it)
6253 to the effect that the latter will preserve the current state instead of
6254 discarding it.
6255
6256 Unless explicitly mentioned otherwise, all remarks and
6257 limitations of the above two methods also apply to this method.
6258
6259 <note>
6260 The machine must not be running, otherwise the operation
6261 will fail.
6262 </note>
6263
6264 <note>
6265 If the machine state is <link to="MachineState_Saved">Saved</link>
6266 prior to this operation, the saved state file will be implicitly
6267 discarded (as if <link to="#discardSavedState"/> were
6268 called).
6269 </note>
6270
6271 <note>
6272 This method is more efficient than calling both of the above
6273 methods separately: it requires less IPC calls and provides
6274 a single progress object.
6275 </note>
6276
6277 <result name="VBOX_E_INVALID_VM_STATE">
6278 Virtual machine is running.
6279 </result>
6280 </desc>
6281 <param name="progress" type="IProgress" dir="return">
6282 <desc>Progress object to track the operation completion.</desc>
6283 </param>
6284 </method>
6285
6286 <method name="registerCallback">
6287 <desc>
6288 Registers a new console callback on this instance. The methods of the
6289 callback interface will be called by this instance when the appropriate
6290 event occurs.
6291 </desc>
6292 <param name="callback" type="IConsoleCallback" dir="in"/>
6293 </method>
6294
6295 <method name="unregisterCallback">
6296 <desc>
6297 Unregisters the console callback previously registered using
6298 <link to="#registerCallback"/>.
6299 <result name="E_INVALIDARG">
6300 Given @a callback handler is not registered.
6301 </result>
6302 </desc>
6303 <param name="callback" type="IConsoleCallback" dir="in"/>
6304 </method>
6305 </interface>
6306
6307 <!--
6308 // IHost
6309 /////////////////////////////////////////////////////////////////////////
6310 -->
6311
6312 <interface
6313 name="IHostDVDDrive" extends="$unknown"
6314 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6315 wsmap="managed"
6316 >
6317 <desc>
6318 The IHostDVDDrive interface represents the physical CD/DVD drive
6319 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6320 </desc>
6321
6322 <attribute name="name" type="wstring" readonly="yes">
6323 <desc>
6324 Returns the platform-specific device identifier.
6325 On DOS-like platforms, it is a drive name (e.g. R:).
6326 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6327 </desc>
6328 </attribute>
6329 <attribute name="description" type="wstring" readonly="yes">
6330 <desc>
6331 Returns a human readable description for the drive. This
6332 description usually contains the product and vendor name. A
6333 @c null string is returned if the description is not available.
6334 </desc>
6335 </attribute>
6336 <attribute name="udi" type="wstring" readonly="yes">
6337 <desc>
6338 Returns the unique device identifier for the drive. This
6339 attribute is reserved for future use instead of
6340 <link to="#name"/>. Currently it is not used and may return
6341 @c null on some platforms.
6342 </desc>
6343 </attribute>
6344
6345 </interface>
6346
6347 <interface
6348 name="IHostFloppyDrive" extends="$unknown"
6349 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6350 wsmap="managed"
6351 >
6352 <desc>
6353 The IHostFloppyDrive interface represents the physical floppy drive
6354 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6355 </desc>
6356 <attribute name="name" type="wstring" readonly="yes">
6357 <desc>
6358 Returns the platform-specific device identifier.
6359 On DOS-like platforms, it is a drive name (e.g. A:).
6360 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6361 </desc>
6362 </attribute>
6363 <attribute name="description" type="wstring" readonly="yes">
6364 <desc>
6365 Returns a human readable description for the drive. This
6366 description usually contains the product and vendor name. A
6367 @c null string is returned if the description is not available.
6368 </desc>
6369 </attribute>
6370 <attribute name="udi" type="wstring" readonly="yes">
6371 <desc>
6372 Returns the unique device identifier for the drive. This
6373 attribute is reserved for future use instead of
6374 <link to="#name"/>. Currently it is not used and may return
6375 @c null on some platforms.
6376 </desc>
6377 </attribute>
6378 </interface>
6379
6380 <enum
6381 name="HostNetworkInterfaceMediumType"
6382 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6383 >
6384 <desc>
6385 Type of encapsulation. Ethernet encapsulation includes both wired and
6386 wireless Ethernet connections.
6387 <see>IHostNetworkInterface</see>
6388 </desc>
6389
6390 <const name="Unknown" value="0">
6391 <desc>
6392 The type of interface cannot be determined.
6393 </desc>
6394 </const>
6395 <const name="Ethernet" value="1">
6396 <desc>
6397 Ethernet frame encapsulation.
6398 </desc>
6399 </const>
6400 <const name="PPP" value="2">
6401 <desc>
6402 Point-to-point protocol encapsulation.
6403 </desc>
6404 </const>
6405 <const name="SLIP" value="3">
6406 <desc>
6407 Serial line IP encapsulation.
6408 </desc>
6409 </const>
6410 </enum>
6411
6412 <enum
6413 name="HostNetworkInterfaceStatus"
6414 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6415 >
6416 <desc>
6417 Current status of the interface.
6418 <see>IHostNetworkInterface</see>
6419 </desc>
6420
6421 <const name="Unknown" value="0">
6422 <desc>
6423 The state of interface cannot be determined.
6424 </desc>
6425 </const>
6426 <const name="Up" value="1">
6427 <desc>
6428 The interface is fully operational.
6429 </desc>
6430 </const>
6431 <const name="Down" value="2">
6432 <desc>
6433 The interface is not functioning.
6434 </desc>
6435 </const>
6436 </enum>
6437
6438 <enum
6439 name="HostNetworkInterfaceType"
6440 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6441 >
6442 <desc>
6443 Network interface type.
6444 </desc>
6445 <const name="Bridged" value="1"/>
6446 <const name="HostOnly" value="2"/>
6447 </enum>
6448
6449 <interface
6450 name="IHostNetworkInterface" extends="$unknown"
6451 uuid="a82f7de2-695b-4bb9-ac13-f033e5fd75c2"
6452 wsmap="managed"
6453 >
6454 <desc>
6455 Reprents one of host's network interfaces. IP V6 address and network
6456 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6457 separated by colons.
6458 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6459 </desc>
6460 <attribute name="name" type="wstring" readonly="yes">
6461 <desc>Returns the host network interface name.</desc>
6462 </attribute>
6463
6464 <attribute name="id" type="uuid" readonly="yes">
6465 <desc>Returns the interface UUID.</desc>
6466 </attribute>
6467
6468 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6469 <desc>Returns the IP V4 address of the interface.</desc>
6470 </attribute>
6471
6472 <attribute name="networkMask" type="unsigned long" readonly="yes">
6473 <desc>Returns the network mask of the interface.</desc>
6474 </attribute>
6475
6476 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6477 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6478 </attribute>
6479
6480 <attribute name="IPV6Address" type="wstring" readonly="yes">
6481 <desc>Returns the IP V6 address of the interface.</desc>
6482 </attribute>
6483
6484 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6485 <desc>Returns the IP V6 network mask of the interface.</desc>
6486 </attribute>
6487
6488 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6489 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6490 </attribute>
6491
6492 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6493 <desc>Type of protocol encapsulation used.</desc>
6494 </attribute>
6495
6496 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6497 <desc>Status of the interface.</desc>
6498 </attribute>
6499
6500 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6501 <desc>specifies the host interface type.</desc>
6502 </attribute>
6503
6504 <method name="enableStaticIpConfig">
6505 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6506 <param name="IPAddress" type="unsigned long" dir="in">
6507 <desc>
6508 IP address.
6509 </desc>
6510 </param>
6511 <param name="networkMask" type="unsigned long" dir="in">
6512 <desc>
6513 network mask.
6514 </desc>
6515 </param>
6516 </method>
6517
6518 <method name="enableStaticIpConfigV6">
6519 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6520 <param name="IPV6Address" type="wstring" dir="in">
6521 <desc>
6522 IP address.
6523 </desc>
6524 </param>
6525 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6526 <desc>
6527 network mask.
6528 </desc>
6529 </param>
6530 </method>
6531
6532 <method name="enableDynamicIpConfig">
6533 <desc>enables the dynamic IP configuration.</desc>
6534 </method>
6535
6536 </interface>
6537
6538 <interface
6539 name="IHost" extends="$unknown"
6540 uuid="378cf146-6cd6-4dbc-bc60-cbd2004d99c5"
6541 wsmap="managed"
6542 >
6543 <desc>
6544 The IHost interface represents the physical machine that this VirtualBox
6545 installation runs on.
6546
6547 An object implementing this interface is returned by the
6548 <link to="IVirtualBox::host" /> attribute. This interface contains
6549 read-only information about the host's physical hardware (such as what
6550 processors and disks are available, what the host operating system is,
6551 and so on) and also allows for manipulating some of the host's hardware,
6552 such as global USB device filters and host interface networking.
6553
6554 </desc>
6555 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
6556 <desc>List of DVD drives available on the host.</desc>
6557 </attribute>
6558
6559 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
6560 <desc>List of floppy drives available on the host.</desc>
6561 </attribute>
6562
6563 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6564 <desc>
6565 List of USB devices currently attached to the host.
6566 Once a new device is physically attached to the host computer,
6567 it appears in this list and remains there until detached.
6568
6569 <note>
6570 This method may set a @ref com_warnings "warning result code".
6571 </note>
6572 <note>
6573 If USB functionality is not available in the given edition of
6574 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6575 </note>
6576 </desc>
6577 </attribute>
6578
6579 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6580 <desc>
6581 List of USB device filters in action.
6582 When a new device is physically attached to the host computer,
6583 filters from this list are applied to it (in order they are stored
6584 in the list). The first matched filter will determine the
6585 <link to="IHostUSBDeviceFilter::action">action</link>
6586 performed on the device.
6587
6588 Unless the device is ignored by these filters, filters of all
6589 currently running virtual machines
6590 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6591
6592 <note>
6593 This method may set a @ref com_warnings "warning result code".
6594 </note>
6595 <note>
6596 If USB functionality is not available in the given edition of
6597 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6598 </note>
6599
6600 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6601 </desc>
6602 </attribute>
6603
6604 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6605 <desc>List of host network interfaces currently defined on the host.</desc>
6606 </attribute>
6607
6608 <attribute name="processorCount" type="unsigned long" readonly="yes">
6609 <desc>Number of (logical) CPUs installed in the host system.</desc>
6610 </attribute>
6611
6612 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6613 <desc>Number of (logical) CPUs online in the host system.</desc>
6614 </attribute>
6615
6616 <method name="getProcessorSpeed">
6617 <desc>Query the (approximate) maximum speed of a specified host CPU in
6618 Megahertz.
6619 </desc>
6620 <param name="cpuId" type="unsigned long" dir="in">
6621 <desc>
6622 Identifier of the CPU.
6623 </desc>
6624 </param>
6625 <param name="speed" type="unsigned long" dir="return">
6626 <desc>
6627 Speed value. 0 is returned if value is not known or @a cpuId is
6628 invalid.
6629 </desc>
6630 </param>
6631 </method>
6632
6633 <method name="getProcessorFeature">
6634 <desc>Query whether a CPU feature is supported or not.</desc>
6635 <param name="feature" type="ProcessorFeature" dir="in">
6636 <desc>
6637 CPU Feature identifier.
6638 </desc>
6639 </param>
6640 <param name="supported" type="boolean" dir="return">
6641 <desc>
6642 Feature is supported or not.
6643 </desc>
6644 </param>
6645 </method>
6646
6647 <method name="getProcessorDescription">
6648 <desc>Query the model string of a specified host CPU.
6649 <note>
6650 This function is not implemented in the current version of the
6651 product.
6652 </note>
6653 </desc>
6654 <param name="cpuId" type="unsigned long" dir="in">
6655 <desc>
6656 Identifier of the CPU.
6657 </desc>
6658 </param>
6659 <param name="description" type="wstring" dir="return">
6660 <desc>
6661 Model string. A NULL string is returned if value is not known or
6662 @a cpuId is invalid.
6663 </desc>
6664 </param>
6665 </method>
6666
6667 <attribute name="memorySize" type="unsigned long" readonly="yes">
6668 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6669 </attribute>
6670
6671 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6672 <desc>Available system memory in the host system.</desc>
6673 </attribute>
6674
6675 <attribute name="operatingSystem" type="wstring" readonly="yes">
6676 <desc>Name of the host system's operating system.</desc>
6677 </attribute>
6678
6679 <attribute name="OSVersion" type="wstring" readonly="yes">
6680 <desc>Host operating system's version string.</desc>
6681 </attribute>
6682
6683 <attribute name="UTCTime" type="long long" readonly="yes">
6684 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6685 </attribute>
6686
6687<if target="midl">
6688 <method name="createHostOnlyNetworkInterface">
6689 <desc>
6690 Creates a new adapter for Host Only Networking.
6691 <result name="E_INVALIDARG">
6692 Host network interface @a name already exists.
6693 </result>
6694 </desc>
6695 <param name="name" type="wstring" dir="in">
6696 <desc>
6697 Adapter name.
6698 </desc>
6699 </param>
6700 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6701 <desc>
6702 Created host interface object.
6703 </desc>
6704 </param>
6705 <param name="progress" type="IProgress" dir="return">
6706 <desc>
6707 Progress object to track the operation completion.
6708 </desc>
6709 </param>
6710 </method>
6711 <method name="removeHostOnlyNetworkInterface">
6712 <desc>
6713 Removes the given Host Only Networking interface.
6714 <result name="VBOX_E_OBJECT_NOT_FOUND">
6715 No host network interface matching @a id found.
6716 </result>
6717 </desc>
6718 <param name="id" type="uuid" dir="in">
6719 <desc>
6720 Adapter GUID.
6721 </desc>
6722 </param>
6723 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6724 <desc>
6725 Removed host interface object.
6726 </desc>
6727 </param>
6728 <param name="progress" type="IProgress" dir="return">
6729 <desc>
6730 Progress object to track the operation completion.
6731 </desc>
6732 </param>
6733 </method>
6734</if>
6735
6736 <method name="createUSBDeviceFilter">
6737 <desc>
6738 Creates a new USB device filter. All attributes except
6739 the filter name are set to <tt>null</tt> (any match),
6740 <i>active</i> is <tt>false</tt> (the filter is not active).
6741
6742 The created filter can be added to the list of filters using
6743 <link to="#insertUSBDeviceFilter"/>.
6744
6745 <see>#USBDeviceFilters</see>
6746 </desc>
6747 <param name="name" type="wstring" dir="in">
6748 <desc>
6749 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6750 for more info.
6751 </desc>
6752 </param>
6753 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6754 <desc>Created filter object.</desc>
6755 </param>
6756 </method>
6757
6758 <method name="insertUSBDeviceFilter">
6759 <desc>
6760 Inserts the given USB device to the specified position
6761 in the list of filters.
6762
6763 Positions are numbered starting from <tt>0</tt>. If the specified
6764 position is equal to or greater than the number of elements in
6765 the list, the filter is added at the end of the collection.
6766
6767 <note>
6768 Duplicates are not allowed, so an attempt to insert a
6769 filter that is already in the list, will return an
6770 error.
6771 </note>
6772 <note>
6773 This method may set a @ref com_warnings "warning result code".
6774 </note>
6775 <note>
6776 If USB functionality is not available in the given edition of
6777 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6778 </note>
6779
6780 <see>#USBDeviceFilters</see>
6781
6782 <result name="VBOX_E_INVALID_OBJECT_STATE">
6783 USB device filter is not created within this VirtualBox instance.
6784 </result>
6785 <result name="E_INVALIDARG">
6786 USB device filter already in list.
6787 </result>
6788
6789 </desc>
6790 <param name="position" type="unsigned long" dir="in">
6791 <desc>Position to insert the filter to.</desc>
6792 </param>
6793 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6794 <desc>USB device filter to insert.</desc>
6795 </param>
6796 </method>
6797
6798 <method name="removeUSBDeviceFilter">
6799 <desc>
6800 Removes a USB device filter from the specified position in the
6801 list of filters.
6802
6803 Positions are numbered starting from <tt>0</tt>. Specifying a
6804 position equal to or greater than the number of elements in
6805 the list will produce an error.
6806
6807 <note>
6808 This method may set a @ref com_warnings "warning result code".
6809 </note>
6810 <note>
6811 If USB functionality is not available in the given edition of
6812 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6813 </note>
6814
6815 <see>#USBDeviceFilters</see>
6816
6817 <result name="E_INVALIDARG">
6818 USB device filter list empty or invalid @a position.
6819 </result>
6820
6821 </desc>
6822 <param name="position" type="unsigned long" dir="in">
6823 <desc>Position to remove the filter from.</desc>
6824 </param>
6825 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6826 <desc>Removed USB device filter.</desc>
6827 </param>
6828 </method>
6829
6830 <method name="findHostDVDDrive">
6831 <desc>
6832 Searches for a host DVD drive with the given @c name.
6833
6834 <result name="VBOX_E_OBJECT_NOT_FOUND">
6835 Given @c name does not correspond to any host drive.
6836 </result>
6837
6838 </desc>
6839 <param name="name" type="wstring" dir="in">
6840 <desc>Name of the host drive to search for</desc>
6841 </param>
6842 <param name="drive" type="IHostDVDDrive" dir="return">
6843 <desc>Found host drive object</desc>
6844 </param>
6845 </method>
6846
6847 <method name="findHostFloppyDrive">
6848 <desc>
6849 Searches for a host floppy drive with the given @c name.
6850
6851 <result name="VBOX_E_OBJECT_NOT_FOUND">
6852 Given @c name does not correspond to any host floppy drive.
6853 </result>
6854
6855 </desc>
6856 <param name="name" type="wstring" dir="in">
6857 <desc>Name of the host floppy drive to search for</desc>
6858 </param>
6859 <param name="drive" type="IHostFloppyDrive" dir="return">
6860 <desc>Found host floppy drive object</desc>
6861 </param>
6862 </method>
6863
6864 <method name="findHostNetworkInterfaceByName">
6865 <desc>
6866 Searches through all host network interfaces for an interface with
6867 the given @c name.
6868 <note>
6869 The method returns an error if the given @c name does not
6870 correspond to any host network interface.
6871 </note>
6872 </desc>
6873 <param name="name" type="wstring" dir="in">
6874 <desc>Name of the host network interface to search for.</desc>
6875 </param>
6876 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6877 <desc>Found host network interface object.</desc>
6878 </param>
6879 </method>
6880 <method name="findHostNetworkInterfaceById">
6881 <desc>
6882 Searches through all host network interfaces for an interface with
6883 the given GUID.
6884 <note>
6885 The method returns an error if the given GUID does not
6886 correspond to any host network interface.
6887 </note>
6888 </desc>
6889 <param name="id" type="uuid" dir="in">
6890 <desc>GUID of the host network interface to search for.</desc>
6891 </param>
6892 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6893 <desc>Found host network interface object.</desc>
6894 </param>
6895 </method>
6896 <method name="findHostNetworkInterfacesOfType">
6897 <desc>
6898 Searches through all host network interfaces and returns a list of interfaces of the specified type
6899 </desc>
6900 <param name="type" type="HostNetworkInterfaceType" dir="in">
6901 <desc>type of the host network interfaces to search for.</desc>
6902 </param>
6903 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
6904 <desc>Found host network interface objects.</desc>
6905 </param>
6906 </method>
6907 </interface>
6908
6909 <!--
6910 // ISystemProperties
6911 /////////////////////////////////////////////////////////////////////////
6912 -->
6913
6914 <interface
6915 name="ISystemProperties"
6916 extends="$unknown"
6917 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6918 wsmap="managed"
6919 >
6920 <desc>
6921 The ISystemProperties interface represents global properties of the given
6922 VirtualBox installation.
6923
6924 These properties define limits and default values for various attributes
6925 and parameters. Most of the properties are read-only, but some can be
6926 changed by a user.
6927 </desc>
6928
6929 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6930 <desc>Minimum guest system memory in Megabytes.</desc>
6931 </attribute>
6932
6933 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6934 <desc>Maximum guest system memory in Megabytes.</desc>
6935 </attribute>
6936
6937 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6938 <desc>Minimum guest video memory in Megabytes.</desc>
6939 </attribute>
6940
6941 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6942 <desc>Maximum guest video memory in Megabytes.</desc>
6943 </attribute>
6944
6945 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6946 <desc>Minimum CPU count.</desc>
6947 </attribute>
6948
6949 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6950 <desc>Maximum CPU count.</desc>
6951 </attribute>
6952
6953 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6954 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6955 </attribute>
6956
6957 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6958 <desc>
6959 Number of network adapters associated with every
6960 <link to="IMachine"/> instance.
6961 </desc>
6962 </attribute>
6963
6964 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
6965 <desc>
6966 Number of serial ports associated with every
6967 <link to="IMachine"/> instance.
6968 </desc>
6969 </attribute>
6970
6971 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
6972 <desc>
6973 Number of parallel ports associated with every
6974 <link to="IMachine"/> instance.
6975 </desc>
6976 </attribute>
6977
6978 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
6979 <desc>
6980 Maximum device position in the boot order. This value corresponds
6981 to the total number of devices a machine can boot from, to make it
6982 possible to include all possible devices to the boot list.
6983 <see><link to="IMachine::setBootOrder"/></see>
6984 </desc>
6985 </attribute>
6986
6987 <attribute name="defaultMachineFolder" type="wstring">
6988 <desc>
6989 Full path to the default directory used to create new or open
6990 existing machines when a settings file name contains no
6991 path.
6992
6993 The initial value of this property is
6994 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
6995 VirtualBox_home</link><tt>&gt;/Machines</tt>.
6996
6997 <note>
6998 Setting this property to <tt>null</tt> will restore the
6999 initial value.
7000 </note>
7001 <note>
7002 When settings this property, the specified path can be
7003 absolute (full path) or relative
7004 to the <link to="IVirtualBox::homeFolder">
7005 VirtualBox home directory</link>.
7006 When reading this property, a full path is
7007 always returned.
7008 </note>
7009 <note>
7010 The specified path may not exist, it will be created
7011 when necessary.
7012 </note>
7013
7014 <see>
7015 <link to="IVirtualBox::createMachine"/>,
7016 <link to="IVirtualBox::openMachine"/>
7017 </see>
7018 </desc>
7019 </attribute>
7020
7021 <attribute name="defaultHardDiskFolder" type="wstring">
7022 <desc>
7023 Full path to the default directory used to create new or open existing
7024 virtual disks.
7025
7026 This path is used when the storage unit of a hard disk is a regular file
7027 in the host's file system and only a file name that contains no path is
7028 given.
7029
7030 The initial value of this property is
7031 <tt>&lt;</tt>
7032 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7033 <tt>&gt;/HardDisks</tt>.
7034
7035 <note>
7036 Setting this property to <tt>null</tt> will restore the
7037 initial value.
7038 </note>
7039 <note>
7040 When settings this property, the specified path can be relative
7041 to the
7042 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7043 absolute. When reading this property, a full path is
7044 always returned.
7045 </note>
7046 <note>
7047 The specified path may not exist, it will be created
7048 when necessary.
7049 </note>
7050
7051 <see>
7052 IHardDisk,
7053 <link to="IVirtualBox::createHardDisk"/>,
7054 <link to="IVirtualBox::openHardDisk"/>,
7055 <link to="IMedium::location"/>
7056 </see>
7057 </desc>
7058 </attribute>
7059
7060 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7061 <desc>
7062 List of all hard disk storage formats supported by this VirtualBox
7063 installation.
7064
7065 Keep in mind that the hard disk format identifier
7066 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7067 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7068 hard disk format is a case-insensitive string. This means that, for
7069 example, all of the following strings:
7070 <pre>
7071 "VDI"
7072 "vdi"
7073 "VdI"</pre>
7074 refer to the same hard disk format.
7075
7076 Note that the virtual hard disk framework is backend-based, therefore
7077 the list of supported formats depends on what backends are currently
7078 installed.
7079
7080 <see>
7081 <link to="IHardDiskFormat"/>,
7082 </see>
7083 </desc>
7084 </attribute>
7085
7086 <attribute name="defaultHardDiskFormat" type="wstring">
7087 <desc>
7088 Identifier of the default hard disk format used by VirtualBox.
7089
7090 The hard disk format set by this attribute is used by VirtualBox
7091 when the hard disk format was not specified explicitly. One example is
7092 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7093 format argument. A more complex example is implicit creation of
7094 differencing hard disks when taking a snapshot of a virtual machine:
7095 this operation will try to use a format of the parent hard disk first
7096 and if this format does not support differencing hard disks the default
7097 format specified by this argument will be used.
7098
7099 The list of supported hard disk formats may be obtained by the
7100 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7101 format must have a capability to create differencing hard disks;
7102 otherwise opeartions that create hard disks implicitly may fail
7103 unexpectedly.
7104
7105 The initial value of this property is <tt>VDI</tt> in the current
7106 version of the VirtualBox product, but may change in the future.
7107
7108 <note>
7109 Setting this property to <tt>null</tt> will restore the
7110 initial value.
7111 </note>
7112
7113 <see>
7114 <link to="#hardDiskFormats"/>,
7115 <link to="IHardDiskFormat::id"/>,
7116 <link to="IVirtualBox::createHardDisk"/>
7117 </see>
7118 </desc>
7119 </attribute>
7120
7121 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7122 <desc>
7123 Library that provides authentication for VRDP clients. The library
7124 is used if a virtual machine's authentication type is set to "external"
7125 in the VM RemoteDisplay configuration.
7126
7127 The system library extension (".DLL" or ".so") must be omitted.
7128 A full path can be specified; if not, then the library must reside on the
7129 system's default library path.
7130
7131 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7132 of that name in one of the default VirtualBox library directories.
7133
7134 For details about VirtualBox authentication libraries and how to implement
7135 them, please refer to the VirtualBox manual.
7136
7137 <note>
7138 Setting this property to <tt>null</tt> will restore the
7139 initial value.
7140 </note>
7141 </desc>
7142 </attribute>
7143
7144 <attribute name="webServiceAuthLibrary" type="wstring">
7145 <desc>
7146 Library that provides authentication for webservice clients. The library
7147 is used if a virtual machine's authentication type is set to "external"
7148 in the VM RemoteDisplay configuration and will be called from
7149 within the <link to="IWebsessionManager::logon" /> implementation.
7150
7151 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7152 there is no per-VM setting for this, as the webservice is a global
7153 resource (if it is running). Only for this setting (for the webservice),
7154 setting this value to a literal "null" string disables authentication,
7155 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7156 no matter what user name and password are supplied.
7157
7158 The initial value of this property is <tt>VRDPAuth</tt>,
7159 meaning that the webservice will use the same authentication
7160 library that is used by default for VBoxVRDP (again, see
7161 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7162 The format and calling convention of authentication libraries
7163 is the same for the webservice as it is for VBoxVRDP.
7164
7165 </desc>
7166 </attribute>
7167
7168 <attribute name="HWVirtExEnabled" type="boolean">
7169 <desc>
7170 This specifies the default value for hardware virtualization
7171 extensions. If enabled, virtual machines will make use of
7172 hardware virtualization extensions such as Intel VT-x and
7173 AMD-V by default. This value can be overridden by each VM
7174 using their <link to="IMachine::HWVirtExEnabled" /> property.
7175 </desc>
7176 </attribute>
7177
7178 <attribute name="LogHistoryCount" type="unsigned long">
7179 <desc>
7180 This value specifies how many old release log files are kept.
7181 </desc>
7182 </attribute>
7183 </interface>
7184
7185 <!--
7186 // IGuest
7187 /////////////////////////////////////////////////////////////////////////
7188 -->
7189
7190 <interface
7191 name="IGuestOSType" extends="$unknown"
7192 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7193 wsmap="struct"
7194 >
7195 <desc>
7196 </desc>
7197
7198 <attribute name="familyId" type="wstring" readonly="yes">
7199 <desc>Guest OS family identifier string.</desc>
7200 </attribute>
7201
7202 <attribute name="familyDescription" type="wstring" readonly="yes">
7203 <desc>Human readable description of the guest OS family.</desc>
7204 </attribute>
7205
7206 <attribute name="id" type="wstring" readonly="yes">
7207 <desc>Guest OS identifier string.</desc>
7208 </attribute>
7209
7210 <attribute name="description" type="wstring" readonly="yes">
7211 <desc>Human readable description of the guest OS.</desc>
7212 </attribute>
7213
7214 <attribute name="is64Bit" type="boolean" readonly="yes">
7215 <desc>Returns @c true if the given OS is 64-bit</desc>
7216 </attribute>
7217
7218 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7219 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7220 </attribute>
7221
7222 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7223 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7224 </attribute>
7225
7226 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7227 <desc>Recommended RAM size in Megabytes.</desc>
7228 </attribute>
7229
7230 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7231 <desc>Recommended video RAM size in Megabytes.</desc>
7232 </attribute>
7233
7234 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7235 <desc>Recommended hard disk size in Megabytes.</desc>
7236 </attribute>
7237
7238 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7239 <desc>Returns recommended network adapter for this OS type.</desc>
7240 </attribute>
7241 </interface>
7242
7243 <interface
7244 name="IGuest" extends="$unknown"
7245 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7246
7247 wsmap="suppress"
7248 >
7249 <desc>
7250 The IGuest interface represents information about the operating system
7251 running inside the virtual machine. Used in
7252 <link to="IConsole::guest"/>.
7253
7254 IGuest provides information about the guest operating system, whether
7255 Guest Additions are installed and other OS-specific virtual machine
7256 properties.
7257 </desc>
7258
7259 <attribute name="OSTypeId" type="wstring" readonly="yes">
7260 <desc>
7261 Identifier of the Guest OS type as reported by the Guest
7262 Additions.
7263 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7264 an IGuestOSType object representing details about the given
7265 Guest OS type.
7266 <note>
7267 If Guest Additions are not installed, this value will be
7268 the same as <link to="IMachine::OSTypeId"/>.
7269 </note>
7270 </desc>
7271 </attribute>
7272
7273 <attribute name="additionsActive" type="boolean" readonly="yes">
7274 <desc>
7275 Flag whether the Guest Additions are installed and active
7276 in which case their version will be returned by the
7277 <link to="#additionsVersion"/> property.
7278 </desc>
7279 </attribute>
7280
7281 <attribute name="additionsVersion" type="wstring" readonly="yes">
7282 <desc>
7283 Version of the Guest Additions (3 decimal numbers separated
7284 by dots) or empty when the Additions are not installed. The
7285 Additions may also report a version but yet not be active as
7286 the version might be refused by VirtualBox (incompatible) or
7287 other failures occurred.
7288 </desc>
7289 </attribute>
7290
7291 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7292 <desc>
7293 Flag whether seamless guest display rendering (seamless desktop
7294 integration) is supported.
7295 </desc>
7296 </attribute>
7297
7298 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7299 <desc>
7300 Flag whether the guest is in graphics mode. If it is not, then
7301 seamless rendering will not work, resize hints are not immediately
7302 acted on and guest display resizes are probably not initiated by
7303 the guest additions.
7304 </desc>
7305 </attribute>
7306
7307 <attribute name="memoryBalloonSize" type="unsigned long">
7308 <desc>Guest system memory balloon size in megabytes.</desc>
7309 </attribute>
7310
7311 <attribute name="statisticsUpdateInterval" type="unsigned long">
7312 <desc>Interval to update guest statistics in seconds.</desc>
7313 </attribute>
7314
7315 <method name="setCredentials">
7316 <desc>
7317 Store login credentials that can be queried by guest operating
7318 systems with Additions installed. The credentials are transient
7319 to the session and the guest may also choose to erase them. Note
7320 that the caller cannot determine whether the guest operating system
7321 has queried or made use of the credentials.
7322
7323 <result name="VBOX_E_VM_ERROR">
7324 VMM device is not available.
7325 </result>
7326
7327 </desc>
7328 <param name="userName" type="wstring" dir="in">
7329 <desc>User name string, can be empty</desc>
7330 </param>
7331 <param name="password" type="wstring" dir="in">
7332 <desc>Password string, can be empty</desc>
7333 </param>
7334 <param name="domain" type="wstring" dir="in">
7335 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7336 </param>
7337 <param name="allowInteractiveLogon" type="boolean" dir="in">
7338 <desc>
7339 Flag whether the guest should alternatively allow the user to
7340 interactively specify different credentials. This flag might
7341 not be supported by all versions of the Additions.
7342 </desc>
7343 </param>
7344 </method>
7345
7346 <method name="getStatistic">
7347 <desc>
7348 Query specified guest statistics as reported by the VirtualBox Additions.
7349 </desc>
7350 <param name="cpuId" type="unsigned long" dir="in">
7351 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7352 </param>
7353 <param name="statistic" type="GuestStatisticType" dir="in">
7354 <desc>Statistic type.</desc>
7355 </param>
7356 <param name="statVal" type="unsigned long" dir="out">
7357 <desc>Statistics value</desc>
7358 </param>
7359 </method>
7360
7361 </interface>
7362
7363
7364 <!--
7365 // IProgress
7366 /////////////////////////////////////////////////////////////////////////
7367 -->
7368
7369 <interface
7370 name="IProgress" extends="$unknown"
7371 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7372 wsmap="managed"
7373 >
7374 <desc>
7375 The IProgress interface represents a task progress object that allows
7376 to wait for the completion of some asynchronous task.
7377
7378 The task consists of one or more operations that run sequentially,
7379 one by one. There is an individual percentage of completion of the
7380 current operation and the percentage of completion of the task as a
7381 whole. Similarly, you can wait for the completion of a particular
7382 operation or for the completion of the whole task.
7383
7384 Every operation is identified by a number (starting from 0)
7385 and has a separate description.
7386 </desc>
7387
7388 <attribute name="id" type="uuid" readonly="yes">
7389 <desc>ID of the task.</desc>
7390 </attribute>
7391
7392 <attribute name="description" type="wstring" readonly="yes">
7393 <desc>Description of the task.</desc>
7394 </attribute>
7395
7396 <attribute name="initiator" type="$unknown" readonly="yes">
7397 <desc>Initiator of the task.</desc>
7398 </attribute>
7399
7400 <attribute name="cancelable" type="boolean" readonly="yes">
7401 <desc>Whether the task can be interrupted.</desc>
7402 </attribute>
7403
7404 <attribute name="percent" type="long" readonly="yes">
7405 <desc>
7406 Current task progress value in percent.
7407 This value depends on how many operations are already complete.
7408 </desc>
7409 </attribute>
7410
7411 <attribute name="completed" type="boolean" readonly="yes">
7412 <desc>Whether the task has been completed.</desc>
7413 </attribute>
7414
7415 <attribute name="canceled" type="boolean" readonly="yes">
7416 <desc>Whether the task has been canceled.</desc>
7417 </attribute>
7418
7419 <attribute name="resultCode" type="result" readonly="yes">
7420 <desc>
7421 Result code of the progress task.
7422 Valid only if <link to="#completed"/> is true.
7423 </desc>
7424 </attribute>
7425
7426 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7427 <desc>
7428 Extended information about the unsuccessful result of the
7429 progress operation. May be NULL when no extended information
7430 is available.
7431 Valid only if <link to="#completed"/> is true and
7432 <link to="#resultCode"/> indicates a failure.
7433 </desc>
7434 </attribute>
7435
7436 <attribute name="operationCount" type="unsigned long" readonly="yes">
7437 <desc>
7438 Number of operations this task is divided into.
7439 Every task consists of at least one operation.
7440 </desc>
7441 </attribute>
7442
7443 <attribute name="operation" type="unsigned long" readonly="yes">
7444 <desc>Number of the operation being currently executed.</desc>
7445 </attribute>
7446
7447 <attribute name="operationDescription" type="wstring" readonly="yes">
7448 <desc>
7449 Description of the operation being currently executed.
7450 </desc>
7451 </attribute>
7452
7453 <attribute name="operationPercent" type="long" readonly="yes">
7454 <desc>Current operation progress value in percent.</desc>
7455 </attribute>
7456
7457 <method name="waitForCompletion">
7458 <desc>
7459 Waits until the task is done (including all operations) with a
7460 given timeout.
7461
7462 <result name="VBOX_E_IPRT_ERROR">
7463 Failed to wait for task completion.
7464 </result>
7465
7466 </desc>
7467 <param name="timeout" type="long" dir="in">
7468 <desc>
7469 Timeout value in milliseconds.
7470 Specify -1 for an indefinite wait.
7471 </desc>
7472 </param>
7473 </method>
7474
7475 <method name="waitForOperationCompletion">
7476 <desc>
7477 Waits until the given operation is done with a given timeout.
7478
7479 <result name="VBOX_E_IPRT_ERROR">
7480 Failed to wait for operation completion.
7481 </result>
7482
7483 </desc>
7484 <param name="operation" type="unsigned long" dir="in">
7485 <desc>
7486 Number of the operation to wait for.
7487 Must be less than <link to="#operationCount"/>.
7488 </desc>
7489 </param>
7490 <param name="timeout" type="long" dir="in">
7491 <desc>
7492 Timeout value in milliseconds.
7493 Specify -1 for an indefinite wait.
7494 </desc>
7495 </param>
7496 </method>
7497
7498 <method name="cancel">
7499 <desc>
7500 Cancels the task.
7501 <note>
7502 If <link to="#cancelable"/> is <tt>false</tt>, then
7503 this method will fail.
7504 </note>
7505
7506 <result name="VBOX_E_INVALID_OBJECT_STATE">
7507 Operation cannot be canceled.
7508 </result>
7509
7510 </desc>
7511 </method>
7512
7513 </interface>
7514
7515
7516 <!--
7517 // ISnapshot
7518 /////////////////////////////////////////////////////////////////////////
7519 -->
7520
7521 <interface
7522 name="ISnapshot" extends="$unknown"
7523 uuid="5db6b1d9-c76b-4424-a6f4-8257f642d6ea"
7524 wsmap="managed"
7525 >
7526 <desc>
7527 The ISnapshot interface represents a snapshot of the virtual
7528 machine.
7529
7530 The <i>snapshot</i> stores all the information about a virtual
7531 machine necessary to bring it to exactly the same state as it was at
7532 the time of taking the snapshot. The snapshot includes:
7533
7534 <ul>
7535 <li>all settings of the virtual machine (i.e. its hardware
7536 configuration: RAM size, attached hard disks, etc.)
7537 </li>
7538 <li>the execution state of the virtual machine (memory contents,
7539 CPU state, etc.).
7540 </li>
7541 </ul>
7542
7543 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7544 or <i>online</i> (taken when the VM is running). The execution
7545 state of the offline snapshot is called a <i>zero execution state</i>
7546 (it doesn't actually contain any information about memory contents
7547 or the CPU state, assuming that all hardware is just powered off).
7548
7549 <h3>Snapshot branches</h3>
7550
7551 Snapshots can be chained. Chained snapshots form a branch where
7552 every next snapshot is based on the previous one. This chaining is
7553 mostly related to hard disk branching (see <link to="IHardDisk"/>
7554 description). This means that every time a new snapshot is created,
7555 a new differencing hard disk is implicitly created for all normal
7556 hard disks attached to the given virtual machine. This allows to
7557 fully restore hard disk contents when the machine is later reverted
7558 to a particular snapshot.
7559
7560 In the current implementation, multiple snapshot branches within one
7561 virtual machine are not allowed. Every machine has a single branch,
7562 and <link to="IConsole::takeSnapshot"/> operation adds a new
7563 snapshot to the top of that branch.
7564
7565 Existing snapshots can be discarded using
7566 <link to="IConsole::discardSnapshot"/>.
7567
7568 <h3>Current snapshot</h3>
7569
7570 Every virtual machine has a current snapshot, identified by
7571 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7572 a base for the <i>current machine state</i> (see below), to the effect
7573 that all normal hard disks of the machine and its execution
7574 state are based on this snapshot.
7575
7576 In the current implementation, the current snapshot is always the
7577 last taken snapshot (i.e. the head snapshot on the branch) and it
7578 cannot be changed.
7579
7580 The current snapshot is <tt>null</tt> if the machine doesn't have
7581 snapshots at all; in this case the current machine state is just
7582 current settings of this machine plus its current execution state.
7583
7584 <h3>Current machine state</h3>
7585
7586 The current machine state is what represented by IMachine instances got
7587 directly from IVirtualBox
7588 using <link
7589 to="IVirtualBox::getMachine">getMachine()</link>, <link
7590 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7591 to instances returned by <link to="ISnapshot::machine"/>). This state
7592 is always used when the machine is <link to="IConsole::powerUp"> powered
7593 on</link>.
7594
7595 The current machine state also includes the current execution state.
7596 If the machine is being currently executed
7597 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7598 and above), its execution state is just what's happening now.
7599 If it is powered off (<link to="MachineState_PoweredOff"/> or
7600 <link to="MachineState_Aborted"/>), it has a zero execution state.
7601 If the machine is saved (<link to="MachineState_Saved"/>), its
7602 execution state is what saved in the execution state file
7603 (<link to="IMachine::stateFilePath"/>).
7604
7605 If the machine is in the saved state, then, next time it is powered
7606 on, its execution state will be fully restored from the saved state
7607 file and the execution will continue from the point where the state
7608 was saved.
7609
7610 Similarly to snapshots, the current machine state can be discarded
7611 using <link to="IConsole::discardCurrentState"/>.
7612
7613 <h3>Taking and discarding snapshots</h3>
7614
7615 The table below briefly explains the meaning of every snapshot
7616 operation:
7617
7618 <table>
7619 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7620
7621 <tr><td><link to="IConsole::takeSnapshot"/></td>
7622
7623 <td>Save the current state of the virtual machine, including all
7624 settings, contents of normal hard disks and the current modifications
7625 to immutable hard disks (for online snapshots)</td>
7626
7627 <td>The current state is not changed (the machine will continue
7628 execution if it is being executed when the snapshot is
7629 taken)</td></tr>
7630
7631 <tr><td><link to="IConsole::discardSnapshot"/></td>
7632
7633 <td>Forget the state of the virtual machine stored in the snapshot:
7634 dismiss all saved settings and delete the saved execution state (for
7635 online snapshots)</td>
7636
7637 <td>Other snapshots (including child snapshots, if any) and the
7638 current state are not directly affected</td></tr>
7639
7640 <tr><td><link to="IConsole::discardCurrentState"/></td>
7641
7642 <td>Restore the current state of the virtual machine from the state
7643 stored in the current snapshot, including all settings and hard disk
7644 contents</td>
7645
7646 <td>The current state of the machine existed prior to this operation
7647 is lost</td></tr>
7648
7649 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7650
7651 <td>Completely revert the virtual machine to the state it was in
7652 before the current snapshot has been taken</td>
7653
7654 <td>The current state, as well as the current snapshot, are
7655 lost</td></tr>
7656
7657 </table>
7658
7659 </desc>
7660
7661 <attribute name="id" type="uuid" readonly="yes">
7662 <desc>UUID of the snapshot.</desc>
7663 </attribute>
7664
7665 <attribute name="name" type="wstring">
7666 <desc>Short name of the snapshot.</desc>
7667 </attribute>
7668
7669 <attribute name="description" type="wstring">
7670 <desc>Optional description of the snapshot.</desc>
7671 </attribute>
7672
7673 <attribute name="timeStamp" type="long long" readonly="yes">
7674 <desc>
7675 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7676 </desc>
7677 </attribute>
7678
7679 <attribute name="online" type="boolean" readonly="yes">
7680 <desc>
7681 <tt>true</tt> if this snapshot is an online snapshot and
7682 <tt>false</tt> otherwise.
7683
7684 <note>
7685 When this attribute is <tt>true</tt>, the
7686 <link to="IMachine::stateFilePath"/> attribute of the
7687 <link to="#machine"/> object associated with this snapshot
7688 will point to the saved state file. Otherwise, it will be
7689 <tt>null</tt>.
7690 </note>
7691 </desc>
7692 </attribute>
7693
7694 <attribute name="machine" type="IMachine" readonly="yes">
7695 <desc>
7696 Virtual machine this snapshot is taken on. This object
7697 stores all settings the machine had when taking this snapshot.
7698 <note>
7699 The returned machine object is immutable, i.e. no
7700 any settings can be changed.
7701 </note>
7702 </desc>
7703 </attribute>
7704
7705 <attribute name="parent" type="ISnapshot" readonly="yes">
7706 <desc>
7707 Parent snapshot (a snapshot this one is based on).
7708 <note>
7709 It's not an error to read this attribute on a snapshot
7710 that doesn't have a parent -- a null object will be
7711 returned to indicate this.
7712 </note>
7713 </desc>
7714 </attribute>
7715
7716 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
7717 <desc>
7718 Child snapshots (all snapshots having this one as a parent).
7719 <note>
7720 In the current implementation, there can be only one
7721 child snapshot, or no children at all, meaning this is the
7722 last (head) snapshot.
7723 </note>
7724 </desc>
7725 </attribute>
7726
7727 </interface>
7728
7729
7730 <!--
7731 // IMedia
7732 /////////////////////////////////////////////////////////////////////////
7733 -->
7734
7735 <enum
7736 name="MediaState"
7737 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7738 >
7739 <desc>
7740 Virtual media state.
7741 <see>IMedia</see>
7742 </desc>
7743
7744 <const name="NotCreated" value="0">
7745 <desc>
7746 Associated media storage does not exist (either was not created yet or
7747 was deleted).
7748 </desc>
7749 </const>
7750 <const name="Created" value="1">
7751 <desc>
7752 Associated storage exists and accessible.
7753 </desc>
7754 </const>
7755 <const name="LockedRead" value="2">
7756 <desc>
7757 Media is locked for reading, no data modification is possible.
7758 </desc>
7759 </const>
7760 <const name="LockedWrite" value="3">
7761 <desc>
7762 Media is locked for writing, no concurrent data reading or modification
7763 is possible.
7764 </desc>
7765 </const>
7766 <const name="Inaccessible" value="4">
7767 <desc>
7768 Associated media storage is not accessible.
7769 </desc>
7770 </const>
7771 <const name="Creating" value="5">
7772 <desc>
7773 Associated media storage is being created.
7774 </desc>
7775 </const>
7776 <const name="Deleting" value="6">
7777 <desc>
7778 Associated media storage is being deleted.
7779 </desc>
7780 </const>
7781 </enum>
7782
7783 <interface
7784 name="IMedium" extends="$unknown"
7785 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7786 wsmap="managed"
7787 >
7788 <desc>
7789 The IMedium interface is a common interface for all objects representing
7790 virtual media such as hard disks, DVD images.
7791
7792 Each medium is associated with a storage unit (such as a file on the host
7793 computer or a network resource) that holds actual data. The location of
7794 the storage unit is represented by the #location attribute. The value of
7795 this attribute is media type dependent.
7796
7797 The exact media type may be determined by querying the appropriate
7798 interface such as:
7799 <ul>
7800 <li>IHardDisk (virtual hard disks)</li>
7801 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7802 <li>IFloppyImage (raw floppy image files)</li>
7803 </ul>
7804
7805 Existing media are opened using the following methods, depending on the
7806 media type:
7807 <ul>
7808 <li><link to="IVirtualBox::openHardDisk"/></li>
7809 <li><link to="IVirtualBox::openDVDImage"/></li>
7810 <li><link to="IVirtualBox::openFloppyImage"/></li>
7811 </ul>
7812
7813 New hard disk media are created using the
7814 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7815 images are created outside VirtualBox, usually by storing a copy
7816 of the real medium of the corresponding type in a regular file.
7817
7818 <h3>Known Media</h3>
7819
7820 When an existing medium gets opened for the first time, it gets
7821 automatically remembered by the given VirtualBox installation or, in other
7822 words, becomes a <i>known medium</i>. Known media are stored in the media
7823 registry transparently maintained by VirtualBox and stored in settings
7824 files so that this registry is preserved when VirtualBox is not running.
7825
7826 Newly created virtual hard disks get remembered only when the associated
7827 storage unit is actually created (see IHardDisk for more details).
7828
7829 All known media can be enumerated using
7830 <link to="IVirtualBox::hardDisks"/>,
7831 <link to="IVirtualBox::DVDImages"/> and
7832 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7833 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7834 and similar methods or by location using
7835 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7836
7837 Only known media can be attached to virtual machines.
7838
7839 Removing known media from the media registry is performed when the given
7840 medium is closed using the <link to="#close"/> method or when its
7841 associated storage unit is deleted (only for hard disks).
7842
7843 <h3>Accessibility Checks</h3>
7844
7845 The given medium (with the created storage unit) is considered to be
7846 <i>accessible</i> when its storage unit can be successfully read from.
7847 Accessible media are indicated by the <link to="MediaState_Created"/>
7848 value of the <link to="#state"/> attribute. When the storage unit cannot
7849 be read (for example, because it is located on a disconnected network
7850 resource, or was accidentally deleted outside VirtualBox), the medium is
7851 considered to be <i>inaccessible</i> which is indicated by the
7852 <link to="MediaState_Inaccessible"/> state. The details about the reason
7853 of being inaccessible can be obtained using the
7854 <link to="#lastAccessError"/> attribute.
7855
7856 A new accessibility check is performed each time the <link to="#state"/>
7857 attribute is read. Please note that this check may take long time (several
7858 seconds or even minutes, depending on the storage unit location and
7859 format), and will block the calling thread until finished. For this
7860 reason, it is recommended to never read this attribute on the main UI
7861 thread to avoid making the UI unresponsive.
7862
7863 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7864 created for the first time), all known media are in the
7865 <link to="MediaState_Inaccessible"/> state but the value of the <link
7866 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7867 accessibility check is made on startup. This is done to make the
7868 VirtualBox object ready for serving requests as
7869 fast as possible and let the end-user application decide if it needs to
7870 check media accessibility right away or not.
7871 </desc>
7872
7873 <attribute name="id" type="uuid" readonly="yes">
7874 <desc>
7875 UUID of the medium. For a newly created medium, this value is a randomly
7876 generated UUID.
7877
7878 <note>
7879 For media in one of MediaState_NotCreated, MediaState_Creating or
7880 MediaState_Deleting states, the value of this property is undefined
7881 and will most likely be an empty UUID.
7882 </note>
7883 </desc>
7884 </attribute>
7885
7886 <attribute name="description" type="wstring">
7887 <desc>
7888 Optional description of the medium. For newly created media, the value
7889 of this attribute value is <tt>null</tt>.
7890
7891 Media types that don't support this attribute will return E_NOTIMPL in
7892 attempt to get or set this attribute's value.
7893
7894 <note>
7895 For some storage types, reading this attribute may return an outdated
7896 (last known) value when <link to="#state"/> is <link
7897 to="MediaState_Inaccessible"/> or <link
7898 to="MediaState_LockedWrite"/> because the value of this attribute is
7899 stored within the storage unit itself. Also note that changing the
7900 attribute value is not possible in such case, as well as when the
7901 medium is the <link to="MediaState_LockedRead"/> state.
7902 </note>
7903 </desc>
7904 </attribute>
7905
7906 <attribute name="state" type="MediaState" readonly="yes">
7907 <desc>
7908 Current media state. Inspect <link to="MediaState"/> values for details.
7909
7910 Reading this attribute may take long time because a new accessibility
7911 check of the storage unit is performed every time the attribute is read.
7912 This check may cause a significant delay if the storage unit of the
7913 given medium is, for example, a file located on a network share which is
7914 not currently accessible due to connectivity problems -- the call will
7915 not return until a timeout interval defined by the host OS for this
7916 operation expires.
7917
7918 If the last known state of the medium is <link to="MediaState_Created"/>
7919 and the accessibility check fails then the state would be set to
7920 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7921 may be used to get more details about the failure. If the state of the
7922 medium is <link to="MediaState_LockedRead"/> or
7923 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7924 non-null value of <link to="#lastAccessError"/> will indicate a failed
7925 accessibility check in this case.
7926
7927 Note that not all media states are applicable to certain media types.
7928 For example, states <link to="MediaState_NotCreated"/>,
7929 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7930 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
7931 IFloppyImage media.
7932 </desc>
7933 </attribute>
7934
7935 <attribute name="location" type="wstring">
7936 <desc>
7937 Location of the storage unit holding media data.
7938
7939 The format of the location string is media type specific. For media
7940 types that use regular files in a host's file system, the location
7941 string is just a full file name.
7942
7943 Some media types may support changing the storage unit location by
7944 simply changing the value of this property. If this operation is not
7945 supported, the implementation will return E_NOTIMPL in attempt to set
7946 this attribute's value.
7947
7948 When setting a value of the location attribute which is a regular file
7949 in the host's file system, the given file name may be either relative to
7950 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7951 absolute. Note that if the given location specification does not contain
7952 the file extension part then a proper default extension will be
7953 automatically appended by the implementation depending on the media type.
7954 </desc>
7955 </attribute>
7956
7957 <attribute name="name" type="wstring" readonly="yes">
7958 <desc>
7959 Name of the storage unit holding media data.
7960
7961 The returned string is a short version of the <link to="#location"/>
7962 attribute that is suitable for representing the medium in situations
7963 where the full location specification is too long (such as lists
7964 and comboboxes in GUI frontends). This string is also used by frontends
7965 to sort the media list alphabetically when needed.
7966
7967 For example, for locations that are regular files in the host's file
7968 system, the value of this attribute is just a file name (+ extension),
7969 without the path specification.
7970
7971 Note that as opposed to the <link to="#location"/> attribute, the name
7972 attribute will not necessary be unique for a list of media of the
7973 given type and format.
7974 </desc>
7975 </attribute>
7976
7977 <attribute name="size" type="unsigned long long" readonly="yes">
7978 <desc>
7979 Physical size of the storage unit used to hold media data (in bytes).
7980
7981 <note>
7982 For media whose <link to="#state"/> is <link
7983 to="MediaState_Inaccessible"/>, the value of this property is the
7984 last known size. For <link to="MediaState_NotCreated"/> media,
7985 the returned value is zero.
7986 </note>
7987 </desc>
7988 </attribute>
7989
7990 <attribute name="lastAccessError" type="wstring" readonly="yes">
7991 <desc>
7992 Text message that represents the result of the last accessibility
7993 check.
7994
7995 Accessibility checks are performed each time the <link to="#state"/>
7996 attribute is read. A @c null string is returned if the last
7997 accessibility check was successful. A non-null string indicates a
7998 failure and should normally describe a reason of the failure (for
7999 example, a file read error).
8000 </desc>
8001 </attribute>
8002
8003 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
8004 <desc>
8005 Array of UUIDs of all machines this medium is attached to.
8006
8007 A <tt>null</tt> array is returned if this medium is not attached to any
8008 machine or to any machine's snapshot.
8009
8010 <note>
8011 The returned array will include a machine even if this medium is not
8012 attached to that machine in the current state but attached to it in
8013 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8014 details.
8015 </note>
8016 </desc>
8017 </attribute>
8018
8019 <method name="getSnapshotIds">
8020 <desc>
8021 Returns an array of UUIDs of all snapshots of the given machine where
8022 this medium is attached to it.
8023
8024 If the medium is attached to the machine in the current state, then the
8025 first element in the array will always be the ID of the queried machine
8026 (i.e. the value equal to the @c machineId argument), followed by
8027 snapshot IDs (if any).
8028
8029 If the medium is not attached to the machine in the current state, then
8030 the array will contain only snapshot IDs.
8031
8032 The returned array may be <tt>null</tt> if this medium is not attached
8033 to the given machine at all, neither in the current state nor in one of
8034 snapshots.
8035 </desc>
8036 <param name="machineId" type="uuid" dir="in">
8037 <desc>
8038 UUID of the machine to query.
8039 </desc>
8040 </param>
8041 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
8042 <desc>
8043 Array of snapshot UUIDs of the given machine using this medium.
8044 </desc>
8045 </param>
8046 </method>
8047
8048 <method name="lockRead">
8049 <desc>
8050 Locks this medium for reading.
8051
8052 The read lock is shared: many clients can simultaneously lock the
8053 same media for reading unless it is already locked for writing (see
8054 <link to="#lockWrite"/>) in which case an error is returned.
8055
8056 When the medium is locked for reading, it cannot be modified
8057 from within VirtualBox. This means that any method that changes
8058 the properties of this medium or contents of the storage unit
8059 will return an error (unless explicitly stated otherwise) and
8060 that an attempt to start a virtual machine that wants to modify
8061 the medium will also fail.
8062
8063 When the virtual machine is started up, it locks for reading all
8064 media it uses in read-only mode. If some media cannot be locked
8065 for reading, the startup procedure will fail.
8066
8067 The medium locked for reading must be unlocked using the <link
8068 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8069 can be nested and must be followed by the same number of paired
8070 <link to="#unlockRead"/> calls.
8071
8072 This method sets the media state to <link
8073 to="MediaState_LockedRead"/> on success. The state prior to
8074 this call must be <link to="MediaState_Created"/>, <link
8075 to="MediaState_Inaccessible"/> or <link
8076 to="MediaState_LockedRead"/>. As you can see, inaccessible
8077 media can be locked too. This is not an error; this method
8078 performs a logical lock that prevents modifications of this
8079 media through the VirtualBox API, not a physical lock of the
8080 underlying storage unit.
8081
8082 This method returns the current state of the medium
8083 <b>before</b> the operation.
8084
8085 <result name="VBOX_E_INVALID_OBJECT_STATE">
8086 Invalid media state (e.g. not created, locked, inaccessible,
8087 creating, deleting).
8088 </result>
8089
8090 </desc>
8091 <param name="state" type="MediaState" dir="return">
8092 <desc>
8093 State of the medium after the operation.
8094 </desc>
8095 </param>
8096 </method>
8097
8098 <method name="unlockRead">
8099 <desc>
8100 Cancels the read lock previously set by <link to="#lockRead"/>.
8101
8102 Either on success or on failure, this method returns the current state
8103 of the medium <b>after</b> the operation.
8104
8105 See <link to="#lockRead"/> for more details.
8106
8107 <result name="VBOX_E_INVALID_OBJECT_STATE">
8108 Medium not locked for reading.
8109 </result>
8110
8111 </desc>
8112 <param name="state" type="MediaState" dir="return">
8113 <desc>
8114 State of the medium after the operation.
8115 </desc>
8116 </param>
8117 </method>
8118
8119 <method name="lockWrite">
8120 <desc>
8121 Locks this medium for writing.
8122
8123 The write lock, as opposed to <link to="#lockRead"/>, is
8124 exclusive: there may be only one client that holds a write lock
8125 and there may be no read locks while the write lock is held.
8126
8127 When the medium is locked for writing, it cannot be modified
8128 from within VirtualBox and it is not guaranteed that the values
8129 of its properties are up-to-date. Any method that changes the
8130 properties of this medium or contents of the storage unit will
8131 return an error ((unless explicitly stated otherwise) and an
8132 attempt to start a virtual machine that wants to modify or to
8133 read the medium will also fail.
8134
8135 When the virtual machine is started up, it locks for writing all
8136 media it uses to write data to. If some media cannot be locked
8137 for writing, the startup procedure will fail.
8138
8139 The medium locked for writing must be unlocked using the <link
8140 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8141 can <b>not</b> be nested and must be followed by a paired <link
8142 to="#unlockWrite"/> call.
8143
8144 This method sets the media state to <link
8145 to="MediaState_LockedWrite"/> on success. The state prior to
8146 this call must be <link to="MediaState_Created"/> or <link
8147 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8148 media can be locked too. This is not an error; this method
8149 performs a logical lock that prevents modifications of this
8150 media through the VirtualBox API, not a physical lock of the
8151 underlying storage unit.
8152
8153 Either on success or on failure, this method returns the current
8154 state of the medium <b>before</b> the operation.
8155
8156 <result name="VBOX_E_INVALID_OBJECT_STATE">
8157 Invalid media state (e.g. not created, locked, inaccessible,
8158 creating, deleting).
8159 </result>
8160
8161 </desc>
8162 <param name="state" type="MediaState" dir="return">
8163 <desc>
8164 State of the medium after the operation.
8165 </desc>
8166 </param>
8167 </method>
8168
8169 <method name="unlockWrite">
8170 <desc>
8171 Cancels the write lock previously set by <link to="#lockWrite"/>.
8172
8173 Either on success or on failure, this method returns the current
8174 state of the medium <b>after</b> the operation.
8175
8176 See <link to="#lockWrite"/> for more details.
8177
8178 <result name="VBOX_E_INVALID_OBJECT_STATE">
8179 Medium not locked for writing.
8180 </result>
8181
8182 </desc>
8183 <param name="state" type="MediaState" dir="return">
8184 <desc>
8185 State of the medium after the operation.
8186 </desc>
8187 </param>
8188 </method>
8189
8190 <method name="close">
8191 <desc>
8192 Closes this medium.
8193
8194 The hard disk must not be attached to any known virtual machine
8195 and must not have any known child hard disks, otherwise the
8196 operation will fail.
8197
8198 When the hard disk is successfully closed, it gets removed from
8199 the list of remembered hard disks, but its storage unit is not
8200 deleted. In particular, this means that this hard disk can be
8201 later opened again using the <link
8202 to="IVirtualBox::openHardDisk"/> call.
8203
8204 Note that after this method successfully returns, the given hard
8205 disk object becomes uninitialized. This means that any attempt
8206 to call any of its methods or attributes will fail with the
8207 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8208
8209 <result name="VBOX_E_INVALID_OBJECT_STATE">
8210 Invalid media state (other than not created, created or
8211 inaccessible).
8212 </result>
8213 <result name="VBOX_E_OBJECT_IN_USE">
8214 Medium attached to virtual machine.
8215 </result>
8216 <result name="VBOX_E_FILE_ERROR">
8217 Settings file not accessible.
8218 </result>
8219 <result name="VBOX_E_XML_ERROR">
8220 Could not parse the settings file.
8221 </result>
8222
8223 </desc>
8224 </method>
8225
8226 </interface>
8227
8228
8229 <!--
8230 // IHardDisk
8231 /////////////////////////////////////////////////////////////////////////
8232 -->
8233
8234 <enum
8235 name="HardDiskType"
8236 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8237 >
8238 <desc>
8239 Virtual hard disk type.
8240 <see>IHardDisk</see>
8241 </desc>
8242
8243 <const name="Normal" value="0">
8244 <desc>
8245 Normal hard disk (attached directly or indirectly, preserved
8246 when taking snapshots).
8247 </desc>
8248 </const>
8249 <const name="Immutable" value="1">
8250 <desc>
8251 Immutable hard disk (attached indirectly, changes are wiped out
8252 after powering off the virtual machine).
8253 </desc>
8254 </const>
8255 <const name="Writethrough" value="2">
8256 <desc>
8257 Write through hard disk (attached directly, ignored when
8258 taking snapshots).
8259 </desc>
8260 </const>
8261 </enum>
8262
8263 <interface
8264 name="IHardDiskAttachment" extends="$unknown"
8265 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8266 wsmap="struct"
8267 >
8268 <desc>
8269 The IHardDiskAttachment interface represents a hard disk attachment of a
8270 virtual machine.
8271
8272 Every hard disk attachment specifies a slot of the virtual hard disk
8273 controller and a virtual hard disk attached to this slot.
8274
8275 The array of hard disk attachments is returned by
8276 <link to="IMachine::hardDiskAttachments"/>.
8277 </desc>
8278 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8279 <desc>Hard disk object associated with this attachment.</desc>
8280 </attribute>
8281
8282 <attribute name="bus" type="StorageBus" readonly="yes">
8283 <desc>Interface bus of this attachment.</desc>
8284 </attribute>
8285
8286 <attribute name="channel" type="long" readonly="yes">
8287 <desc>Channel number of this attachment.</desc>
8288 </attribute>
8289
8290 <attribute name="device" type="long" readonly="yes">
8291 <desc>Device slot number of this attachment.</desc>
8292 </attribute>
8293
8294 </interface>
8295
8296 <interface
8297 name="IHardDisk" extends="IMedium"
8298 uuid="a4d391a5-e2b1-474d-824e-2ff668a92d58"
8299 wsmap="managed"
8300 >
8301 <desc>
8302 The IHardDisk interface represents a virtual hard disk drive
8303 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8304
8305 Virtual hard disk objects virtualize the hard disk hardware and look like
8306 regular hard disks for the guest OS running inside the virtual machine.
8307
8308 <h3>Hard Disk Types</h3>
8309
8310 There are three types of hard disks:
8311 <link to="HardDiskType_Normal">Normal</link>,
8312 <link to="HardDiskType_Immutable">Immutable</link> and
8313 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8314 hard disk defines how the hard disk is attached to a virtual machine and
8315 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8316 machine with the attached hard disk is taken. The type of the hard disk is
8317 defined by the <link to="#type"/> attribute.
8318
8319 All hard disks can be also divided in two big groups: <i>base</i> hard
8320 disks and <i>differencing</i> hard disks. A base hard disk contains all
8321 sectors of the hard disk data in its storage unit and therefore can be
8322 used independently. On the contrary, a differencing hard disk contains
8323 only some part of the hard disk data (a subset of sectors) and needs
8324 another hard disk to get access to the missing sectors of data. This
8325 another hard disk is called a <i>parent</i> hard disk and defines a hard
8326 disk to which this differencing hard disk is known to be <i>linked to</i>.
8327 The parent hard disk may be itself a differencing hard disk. This
8328 way, differencing hard disks form a linked hard disk chain. This chain
8329 always ends with the base hard disk which is sometimes referred to as the
8330 root hard disk of this chain. Note that several differencing hard disks
8331 may be linked to the same parent hard disk. This way, all known hard disks
8332 form a hard disk tree which is based on their parent-child relationship.
8333
8334 Differencing hard disks can be distinguished from base hard disks by
8335 querying the <link to="#parent"/> attribute: base hard disks do not have
8336 parents they would depend on, so the value of this attribute is always
8337 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8338 the hard disk tree (from the child hard disk to its parent). It is also
8339 possible to walk down the tree using the <link to="#children"/>
8340 attribute.
8341
8342 Note that the type of all differencing hard disks is
8343 <link to="HardDiskType_Normal">Normal</link>; all other values are
8344 meaningless for them. Base hard disks may be of any type.
8345
8346 <h3>Creating Hard Disks</h3>
8347
8348 New base hard disks are created using
8349 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8350 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8351 disks are usually implicitly created by VirtualBox when needed but may
8352 also be created explicitly using <link to="#createDiffStorage"/>.
8353
8354 After the hard disk is successfully created (including the storage unit)
8355 or opened, it becomes a known hard disk (remembered in the internal media
8356 registry). Known hard disks can be attached to a virtual machine, accessed
8357 through <link to="IVirtualBox::getHardDisk"/> and
8358 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8359 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8360
8361 The following methods, besides <link to="IMedium::close"/>,
8362 automatically remove the hard disk from the media registry:
8363 <ul>
8364 <li><link to="#deleteStorage"/></li>
8365 <li><link to="#mergeTo"/></li>
8366 </ul>
8367
8368 If the storage unit of the hard disk is a regular file in the host's
8369 file system then the rules stated in the description of the
8370 <link to="IMedium::location"/> attribute apply when setting its value. In
8371 addition, a plain file name without any path may be given, in which case
8372 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8373 folder</link> will be prepended to it.
8374
8375 <h4>Automatic composition of the file name part</h4>
8376
8377 Another extension to the <link to="IMedium::location"/> attribute is that
8378 there is a possibility to cause VirtualBox to compose a unique value for
8379 the file name part of the location using the UUID of the hard disk. This
8380 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8381 e.g. before the storage unit is created, and works as follows. You set the
8382 value of the <link to="IMedium::location"/> attribute to a location
8383 specification which only contains the path specification but not the file
8384 name part and ends with either a forward slash or a backslash character.
8385 In response, VirtualBox will generate a new UUID for the hard disk and
8386 compose the file name using the following pattern:
8387 <pre>
8388 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8389 </pre>
8390 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8391 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8392 is the default extension for the storage format of this hard disk. After
8393 that, you may call any of the methods that create a new hard disk storage
8394 unit and they will use the generated UUID and file name.
8395
8396 <h3>Attaching Hard Disks</h3>
8397
8398 Hard disks are attached to virtual machines using the
8399 <link to="IMachine::attachHardDisk"/> method and detached using the
8400 <link to="IMachine::detachHardDisk"/> method. Depending on their
8401 <link to="#type"/>, hard disks are attached either
8402 <i>directly</i> or <i>indirectly</i>.
8403
8404 When a hard disk is being attached directly, it is associated with the
8405 virtual machine and used for hard disk operations when the machine is
8406 running. When a hard disk is being attached indirectly, a new differencing
8407 hard disk linked to it is implicitly created and this differencing hard
8408 disk is associated with the machine and used for hard disk operations.
8409 This also means that if <link to="IMachine::attachHardDisk"/> performs
8410 a direct attachment then the same hard disk will be returned in response
8411 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8412 an indirect attachment is performed then
8413 <link to="IMachine::getHardDisk"/> will return the implicitly created
8414 differencing hard disk, not the original one passed to <link
8415 to="IMachine::attachHardDisk"/>. The following table shows the
8416 dependency of the attachment type on the hard disk type:
8417
8418 <table>
8419 <tr>
8420 <th>Hard Disk Type</th>
8421 <th>Direct or Indirect?</th>
8422 </tr>
8423 <tr>
8424 <td>Normal (Base)</td>
8425 <td>
8426 Normal base hard disks that do not have children (i.e. differencing
8427 hard disks linked to them) and that are not already attached to
8428 virtual machines in snapshots are attached <b>directly</b>.
8429 Otherwise, they are attached <b>indirectly</b> because having
8430 dependent children or being part of the snapshot makes it impossible
8431 to modify hard disk contents without breaking the integrity of the
8432 dependent party. The <link to="#readOnly"/> attribute allows to
8433 quickly determine the kind of the attachment for the given hard
8434 disk. Note that if a normal base hard disk is to be indirectly
8435 attached to a virtual machine with snapshots then a special
8436 procedure called <i>smart attachment</i> is performed (see below).
8437 </td>
8438 </tr>
8439 <tr>
8440 <td>Normal (Differencing)</td>
8441 <td>
8442 Differencing hard disks are like normal base hard disks: attached
8443 <b>directly</b> if they do not have children and are not attached to
8444 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8445 that the smart attachment procedure is never performed for
8446 differencing hard disks.
8447 </td>
8448 </tr>
8449 <tr>
8450 <td>Immutable</td>
8451 <td>
8452 Immutable hard disks are always attached <b>indirectly</b> because
8453 they are designed to be non-writable. If an immutable hard disk is
8454 attached to a virtual machine with snapshots then a special
8455 procedure called smart attachment is performed (see below).
8456 </td>
8457 </tr>
8458 <tr>
8459 <td>Writethrough</td>
8460 <td>
8461 Writethrough hard disks are always attached <b>directly</b>, also as
8462 designed. This also means that writethrough hard disks cannot have
8463 other hard disks linked to them at all.
8464 </td>
8465 </tr>
8466 </table>
8467
8468 Note that the same hard disk, regardless of its type, may be attached to
8469 more than one virtual machine at a time. In this case, the machine that is
8470 started first gains exclusive access to the hard disk and attempts to
8471 start other machines having this hard disk attached will fail until the
8472 first machine is powered down.
8473
8474 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8475 that the given hard disk remains associated with the given machine after a
8476 successful <link to="IMachine::detachHardDisk"/> call until
8477 <link to="IMachine::saveSettings"/> is called to save all changes to
8478 machine settings to disk. This deferring is necessary to guarantee that
8479 the hard disk configuration may be restored at any time by a call to
8480 <link to="IMachine::discardSettings"/> before the settings
8481 are saved (committed).
8482
8483 Note that if <link to="IMachine::discardSettings"/> is called after
8484 indirectly attaching some hard disks to the machine but before a call to
8485 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8486 all differencing hard disks implicitly created by
8487 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8488 Such implicitly created hard disks will also be immediately deleted when
8489 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8490 call if it is made before <link to="IMachine::saveSettings"/>. This
8491 implicit deletion is safe because newly created differencing hard
8492 disks do not contain any user data.
8493
8494 However, keep in mind that detaching differencing hard disks that were
8495 implicitly created by <link to="IMachine::attachHardDisk"/>
8496 before the last <link to="IMachine::saveSettings"/> call will
8497 <b>not</b> implicitly delete them as they may already contain some data
8498 (for example, as a result of virtual machine execution). If these hard
8499 disks are no more necessary, the caller can always delete them explicitly
8500 using <link to="#deleteStorage"/> after they are actually de-associated
8501 from this machine by the <link to="IMachine::saveSettings"/> call.
8502
8503 <h3>Smart Attachment</h3>
8504
8505 When normal base or immutable hard disks are indirectly attached to a
8506 virtual machine then some additional steps are performed to make sure the
8507 virtual machine will have the most recent "view" of the hard disk being
8508 attached. These steps include walking through the machine's snapshots
8509 starting from the current one and going through ancestors up to the first
8510 snapshot. Hard disks attached to the virtual machine in all
8511 of the encountered snapshots are checked whether they are descendants of
8512 the given normal base or immutable hard disk. The first found child (which
8513 is the differencing hard disk) will be used instead of the normal base or
8514 immutable hard disk as a parent for creating a new differencing hard disk
8515 that will be actually attached to the machine. And only if no descendants
8516 are found or if the virtual machine does not have any snapshots then the
8517 normal base or immutable hard disk will be used itself as a parent for
8518 this differencing hard disk.
8519
8520 It is easier to explain what smart attachment does using the
8521 following example:
8522 <pre>
8523BEFORE attaching B.vdi: AFTER attaching B.vdi:
8524
8525Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8526 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8527 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8528 Snapshot 4 (none) Snapshot 4 (none)
8529 CurState (none) CurState (D3->D2.vdi)
8530
8531 NOT
8532 ...
8533 CurState (D3->B.vdi)
8534 </pre>
8535 The first column is the virtual machine configuration before the base hard
8536 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8537 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8538 mean that the hard disk that is actually attached to the machine is a
8539 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8540 another hard disk, <tt>B.vdi</tt>.
8541
8542 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8543 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8544 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8545 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8546 it cannot be attached directly and needs an indirect attachment (i.e.
8547 implicit creation of a new differencing hard disk). Due to the smart
8548 attachment procedure, the new differencing hard disk
8549 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8550 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8551 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8552 machine.
8553
8554 Note that if there is more than one descendant hard disk of the given base
8555 hard disk found in a snapshot, and there is an exact device, channel and
8556 bus match, then this exact match will be used. Otherwise, the youngest
8557 descendant will be picked up.
8558
8559 There is one more important aspect of the smart attachment procedure which
8560 is not related to snapshots at all. Before walking through the snapshots
8561 as described above, the backup copy of the current list of hard disk
8562 attachment is searched for descendants. This backup copy is created when
8563 the hard disk configuration is changed for the first time after the last
8564 <link to="IMachine::saveSettings"/> call and used by
8565 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8566 changes. When such a descendant is found in this backup copy, it will be
8567 simply re-attached back, without creating a new differencing hard disk for
8568 it. This optimization is necessary to make it possible to re-attach the
8569 base or immutable hard disk to a different bus, channel or device slot
8570 without losing the contents of the differencing hard disk actually
8571 attached to the machine in place of it.
8572 </desc>
8573
8574 <attribute name="format" type="wstring" readonly="yes">
8575 <desc>
8576 Storage format of this hard disk.
8577
8578 The value of this attribute is a string that specifies a backend used to
8579 store hard disk data. The storage format is defined when you create a
8580 new hard disk or automatically detected when you open an existing hard
8581 disk medium, and cannot be changed later.
8582
8583 The list of all storage formats supported by this VirtualBox
8584 installation can be obtained using
8585 <link to="ISystemProperties::hardDiskFormats"/>.
8586 </desc>
8587 </attribute>
8588
8589 <attribute name="type" type="HardDiskType">
8590 <desc>
8591 Type (role) of this hard disk.
8592
8593 The following constraints apply when changing the value of this
8594 attribute:
8595 <ul>
8596 <li>If a hard disk is attached to a virtual machine (either in the
8597 current state or in one of the snapshots), its type cannot be
8598 changed.
8599 </li>
8600 <li>As long as the hard disk has children, its type cannot be set
8601 to <link to="HardDiskType_Writethrough"/>.
8602 </li>
8603 <li>The type of all differencing hard disks is
8604 <link to="HardDiskType_Normal"/> and cannot be changed.
8605 </li>
8606 </ul>
8607
8608 The type of a newly created or opened hard disk is set to
8609 <link to="HardDiskType_Normal"/>.
8610 </desc>
8611 </attribute>
8612
8613 <attribute name="parent" type="IHardDisk" readonly="yes">
8614 <desc>
8615 Parent of this hard disk (a hard disk this hard disk is directly based
8616 on).
8617
8618 Only differencing hard disks have parents. For base (non-differencing)
8619 hard disks, <tt>null</tt> is returned.
8620 </desc>
8621 </attribute>
8622
8623 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8624 <desc>
8625 Children of this hard disk (all differencing hard disks directly based
8626 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8627 does not have any children.
8628 </desc>
8629 </attribute>
8630
8631 <attribute name="root" type="IHardDisk" readonly="yes">
8632 <desc>
8633 Root hard disk of this hard disk.
8634
8635 If this is a differencing hard disk, its root hard disk is the base hard
8636 disk the given hard disk branch starts from. For all other types of hard
8637 disks, this property returns the hard disk object itself (i.e. the same
8638 object this property is read on).
8639 </desc>
8640 </attribute>
8641
8642 <attribute name="readOnly" type="boolean" readonly="yes">
8643 <desc>
8644 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8645 otherwise.
8646
8647 A hard disk is considered to be read-only when its contents cannot be
8648 modified without breaking the integrity of other parties that depend on
8649 this hard disk such as its child hard disks or snapshots of virtual
8650 machines where this hard disk is attached to these machines. If there
8651 are no children and no such snapshots then there is no dependency and
8652 the hard disk is not read-only.
8653
8654 The value of this attribute can be used to determine the kind of the
8655 attachment that will take place when attaching this hard disk to a
8656 virtual machine. If the value is <tt>false</tt> then the hard disk will
8657 be attached directly. If the value is <tt>true</tt> then the hard disk
8658 will be attached indirectly by creating a new differencing child hard
8659 disk for that. See the interface description for more information.
8660
8661 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8662 disks are always read-only while all
8663 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8664 always not.
8665
8666 <note>
8667 The read-only condition represented by this attribute is related to
8668 the hard disk type and usage, not to the current
8669 <link to="IMedium::state">media state</link> and not to the read-only
8670 state of the storage unit.
8671 </note>
8672 </desc>
8673 </attribute>
8674
8675 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8676 <desc>
8677 Logical size of this hard disk (in megabytes), as reported to the
8678 guest OS running inside the virtual machine this disk is
8679 attached to. The logical size is defined when the hard disk is created
8680 and cannot be changed later.
8681
8682 <note>
8683 Reading this property on a differencing hard disk will return the size
8684 of its <link to="#root"/> hard disk.
8685 </note>
8686 <note>
8687 For hard disks whose state is <link to="#state"/> is <link
8688 to="MediaState_Inaccessible"/>, the value of this property is the
8689 last known logical size. For <link to="MediaState_NotCreated"/> hard
8690 disks, the returned value is zero.
8691 </note>
8692 </desc>
8693 </attribute>
8694
8695 <attribute name="autoReset" type="boolean">
8696 <desc>
8697 Whether this differencing hard disk will be automatically reset each
8698 time a virtual machine it is attached to is powered up.
8699
8700 See <link to="#reset()"/> for more information about resetting
8701 differencing hard disks.
8702
8703 <note>
8704 Reading this property on a base (non-differencing) hard disk will
8705 always <tt>false</tt>. Changing the value of this property in this
8706 case is not supported.
8707 </note>
8708
8709 <result name="VBOX_E_NOT_SUPPORTED">
8710 This is not a differencing hard disk (when changing the attribute
8711 value).
8712 </result>
8713 </desc>
8714 </attribute>
8715
8716 <!-- storage methods -->
8717
8718 <method name="getProperty">
8719 <desc>
8720 Returns the value of the custom hard disk property with the given name.
8721
8722 The list of all properties supported by the given hard disk format can
8723 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8724
8725 Note that if this method returns a <tt>null</tt> @a value, the requested
8726 property is supported but currently not assigned any value.
8727
8728 <result name="VBOX_E_OBJECT_NOT_FOUND">
8729 Requested property does not exist (not supported by the format).
8730 </result>
8731 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8732 </desc>
8733 <param name="name" type="wstring" dir="in">
8734 <desc>Name of the property to get.</desc>
8735 </param>
8736 <param name="value" type="wstring" dir="return">
8737 <desc>Current property value.</desc>
8738 </param>
8739 </method>
8740
8741 <method name="setProperty">
8742 <desc>
8743 Sets the value of the custom hard disk property with the given name.
8744
8745 The list of all properties supported by the given hard disk format can
8746 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8747
8748 Note that setting the property value to <tt>null</tt> is equivalent to
8749 deleting the existing value. A default value (if it is defined for this
8750 property) will be used by the format backend in this case.
8751
8752 <result name="VBOX_E_OBJECT_NOT_FOUND">
8753 Requested property does not exist (not supported by the format).
8754 </result>
8755 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8756 </desc>
8757 <param name="name" type="wstring" dir="in">
8758 <desc>Name of the property to set.</desc>
8759 </param>
8760 <param name="value" type="wstring" dir="in">
8761 <desc>Property value to set.</desc>
8762 </param>
8763 </method>
8764
8765 <method name="getProperties">
8766 <desc>
8767 Returns values for a group of properties in one call.
8768
8769 The names of the properties to get are specified using the @a names
8770 argument which is a list of comma-separated property names or
8771 <tt>null</tt> if all properties are to be returned. Note that currently
8772 the value of this argument is ignored and the method always returns all
8773 existing properties.
8774
8775 The list of all properties supported by the given hard disk format can
8776 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8777
8778 The method returns two arrays, the array of property names corresponding
8779 to the @a names argument and the current values of these properties.
8780 Both arrays have the same number of elements with each elemend at the
8781 given index in the first array corresponds to an element at the same
8782 index in the second array.
8783
8784 Note that for properties that do not have assigned values,
8785 <tt>null</tt> is returned at the appropriate index in the
8786 @a returnValues array.
8787
8788 </desc>
8789 <param name="names" type="wstring" dir="in">
8790 <desc>
8791 Names of properties to get.
8792 </desc>
8793 </param>
8794 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8795 <desc>Names of returned properties.</desc>
8796 </param>
8797 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8798 <desc>Values of returned properties.</desc>
8799 </param>
8800 </method>
8801
8802 <method name="setProperties">
8803 <desc>
8804 Sets values for a group of properties in one call.
8805
8806 The names of the properties to set are passed in the @a names
8807 array along with the new values for them in the @a values array. Both
8808 arrays have the same number of elements with each elemend at the given
8809 index in the first array corresponding to an element at the same index
8810 in the second array.
8811
8812 If there is at least one property name in @a names that is not valid,
8813 the method will fail before changing the values of any other properties
8814 from the @a names array.
8815
8816 Using this method over <link to="#setProperty"/> is preferred if you
8817 need to set several properties at once since it will result into less
8818 IPC calls.
8819
8820 The list of all properties supported by the given hard disk format can
8821 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8822
8823 Note that setting the property value to <tt>null</tt> is equivalent to
8824 deleting the existing value. A default value (if it is defined for this
8825 property) will be used by the format backend in this case.
8826 </desc>
8827 <param name="names" type="wstring" safearray="yes" dir="in">
8828 <desc>Names of properties to set.</desc>
8829 </param>
8830 <param name="values" type="wstring" safearray="yes" dir="in">
8831 <desc>Values of properties to set.</desc>
8832 </param>
8833 </method>
8834
8835 <!-- storage methods -->
8836
8837 <method name="createDynamicStorage">
8838 <desc>
8839 Starts creating a dynamically expanding hard disk storage unit in the
8840 background. The previous storage unit created for this object, if
8841 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8842 the operation will fail.
8843
8844 Before the operation starts, the hard disk is placed in
8845 <link to="MediaState_Creating"/> state. If the create operation
8846 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8847 state.
8848
8849 After the returned progress object reports that the operation has
8850 successfully completed, the media state will be set to <link
8851 to="MediaState_Created"/>, the hard disk will be remembered by this
8852 VirtualBox installation and may be attached to virtual machines.
8853
8854 <result name="VBOX_E_NOT_SUPPORTED">
8855 Dynamic storage creation operation is not supported. See <link
8856 to="IHardDiskFormat::capabilities"/>.
8857 </result>
8858 </desc>
8859 <param name="logicalSize" type="unsigned long long" dir="in">
8860 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8861 </param>
8862 <param name="progress" type="IProgress" dir="return">
8863 <desc>Progress object to track the operation completion.</desc>
8864 </param>
8865 </method>
8866
8867 <method name="createFixedStorage">
8868 <desc>
8869 Starts creating a fixed-size hard disk storage unit in the background.
8870 The previous storage unit created for this object, if
8871 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8872 the operation will fail.
8873
8874 Before the operation starts, the hard disk is placed to
8875 <link to="MediaState_Creating"/> state. If the create operation
8876 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8877 state.
8878
8879 After the returned progress object reports that the operation is
8880 successfully complete, the media state will be set to <link
8881 to="MediaState_Created"/>, the hard disk will be remembered by this
8882 VirtualBox installation and may be attached to virtual machines.
8883
8884 <result name="VBOX_E_NOT_SUPPORTED">
8885 Fixed storage creation operation is not supported. See
8886 <link to="IHardDiskFormat::capabilities"/>.
8887 </result>
8888 </desc>
8889 <param name="logicalSize" type="unsigned long long" dir="in">
8890 <desc>Logical size of the hard disk in megabytes.</desc>
8891 </param>
8892 <param name="progress" type="IProgress" dir="return">
8893 <desc>Progress object to track the operation completion.</desc>
8894 </param>
8895 </method>
8896
8897 <method name="deleteStorage">
8898 <desc>
8899 Starts deleting the storage unit of this hard disk.
8900
8901 The hard disk must not be attached to any known virtual machine and must
8902 not have any known child hard disks, otherwise the operation will fail.
8903 It will also fail if there is no storage unit to delete or if deletion
8904 is already in progress, or if the hard disk is being in use (locked for
8905 read or for write) or inaccessible. Therefore, the only valid state for
8906 this operation to succeed is <link to="MediaState_Created"/>.
8907
8908 Before the operation starts, the hard disk is placed to
8909 <link to="MediaState_Deleting"/> state and gets removed from the list
8910 of remembered hard disks (media registry). If the delete operation
8911 fails, the media will be remembered again and placed back to
8912 <link to="MediaState_Created"/> state.
8913
8914 After the returned progress object reports that the operation is
8915 complete, the media state will be set to
8916 <link to="MediaState_NotCreated"/> and you will be able to use one of
8917 the storage creation methods to create it again.
8918
8919 <see>#close()</see>
8920
8921 <result name="VBOX_E_OBJECT_IN_USE">
8922 Hard disk is attached to a virtual machine.
8923 </result>
8924 <result name="VBOX_E_NOT_SUPPORTED">
8925 Storage deletion is not allowed because neither of storage creation
8926 operations are supported. See
8927 <link to="IHardDiskFormat::capabilities"/>.
8928 </result>
8929
8930 <note>
8931 If the deletion operation fails, it is not guaranteed that the storage
8932 unit still exists. You may check the <link to="IMedium::state"/> value
8933 to answer this question.
8934 </note>
8935 </desc>
8936 <param name="progress" type="IProgress" dir="return">
8937 <desc>Progress object to track the operation completion.</desc>
8938 </param>
8939 </method>
8940
8941 <!-- diff methods -->
8942
8943 <method name="createDiffStorage">
8944 <desc>
8945 Starts creating an empty differencing storage unit based on this hard
8946 disk in the format and at the location defined by the @a target
8947 argument.
8948
8949 The target hard disk must be in <link to="MediaState_NotCreated"/>
8950 state (i.e. must not have an existing storage unit). Upon successful
8951 completion, this operation will set the type of the target hard disk to
8952 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8953 represent the differencing hard disk data in the given format (according
8954 to the storage format of the target object).
8955
8956 After the returned progress object reports that the operation is
8957 successfully complete, the target hard disk gets remembered by this
8958 VirtualBox installation and may be attached to virtual machines.
8959
8960 <note>
8961 The hard disk will be set to <link to="MediaState_LockedRead"/>
8962 state for the duration of this operation.
8963 </note>
8964 <result name="VBOX_E_OBJECT_IN_USE">
8965 Hard disk not in NotCreated state.
8966 </result>
8967 </desc>
8968 <param name="target" type="IHardDisk" dir="in">
8969 <desc>Target hard disk.</desc>
8970 </param>
8971 <param name="progress" type="IProgress" dir="return">
8972 <desc>Progress object to track the operation completion.</desc>
8973 </param>
8974 </method>
8975
8976 <method name="mergeTo">
8977 <desc>
8978 Starts merging the contents of this hard disk and all intermediate
8979 differencing hard disks in the chain to the given target hard disk.
8980
8981 The target hard disk must be either a descendant of this hard disk or
8982 its ancestor (otherwise this method will immediately return a failure).
8983 It follows that there are two logical directions of the merge operation:
8984 from ancestor to descendant (<i>forward merge</i>) and from descendant to
8985 ancestor (<i>backward merge</i>). Let us consider the following hard disk
8986 chain:
8987
8988 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
8989
8990 Here, calling this method on the <tt>Base</tt> hard disk object with
8991 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
8992 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
8993 merge. Note that in both cases the contents of the resulting hard disk
8994 will be the same, the only difference is the hard disk object that takes
8995 the result of the merge operation. In case of the forward merge in the
8996 above example, the result will be written to <tt>Diff_2</tt>; in case of
8997 the backward merge, the result will be written to <tt>Base</tt>. In
8998 other words, the result of the operation is always stored in the target
8999 hard disk.
9000
9001 Upon successful operation completion, the storage units of all hard
9002 disks in the chain between this (source) hard disk and the target hard
9003 disk, including the source hard disk itself, will be automatically
9004 deleted and the relevant hard disk objects (including this hard disk)
9005 will become uninitialized. This means that any attempt to call any of
9006 their methods or attributes will fail with the
9007 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9008 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9009 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9010 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9011 disk itself since it will no longer be based on any other hard disk.
9012
9013 Considering the above, all of the following conditions must be met in
9014 order for the merge operation to succeed:
9015 <ul>
9016 <li>
9017 Neither this (source) hard disk nor any intermediate
9018 differencing hard disk in the chain between it and the target
9019 hard disk is attached to any virtual machine.
9020 </li>
9021 <li>
9022 Neither the source hard disk nor the target hard disk is an
9023 <link to="HardDiskType_Immutable"/> hard disk.
9024 </li>
9025 <li>
9026 The part of the hard disk tree from the source hard disk to the
9027 target hard disk is a linear chain, i.e. all hard disks in this
9028 chain have exactly one child which is the next hard disk in this
9029 chain. The only exception from this rule is the target hard disk in
9030 the forward merge operation; it is allowed to have any number of
9031 child hard disks because the merge operation will hot change its
9032 logical contents (as it is seen by the guest OS or by children).
9033 </li>
9034 <li>
9035 None of the involved hard disks are in
9036 <link to="MediaState_LockedRead"/> or
9037 <link to="MediaState_LockedWrite"/> state.
9038 </li>
9039 </ul>
9040
9041 <note>
9042 This (source) hard disk and all intermediates will be placed to <link
9043 to="MediaState_Deleting"/> state and the target hard disk will be
9044 placed to <link to="MediaState_LockedWrite"/> state and for the
9045 duration of this operation.
9046 </note>
9047 </desc>
9048 <param name="targetId" type="uuid" dir="in">
9049 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9050 </param>
9051 <param name="progress" type="IProgress" dir="return">
9052 <desc>Progress object to track the operation completion.</desc>
9053 </param>
9054 </method>
9055
9056 <!-- clone methods -->
9057
9058 <method name="cloneTo">
9059 <desc>
9060 Starts creating a clone of this hard disk in the format and at the
9061 location defined by the @a target argument.
9062
9063 The target hard disk must be in <link to="MediaState_NotCreated"/>
9064 state (i.e. must not have an existing storage unit). Upon successful
9065 completion, the cloned hard disk will contain exactly the same sector
9066 data as the hard disk being cloned, except that a new UUID for the clone
9067 will be randomly generated.
9068
9069 After the returned progress object reports that the operation is
9070 successfully complete, the target hard disk gets remembered by this
9071 VirtualBox installation and may be attached to virtual machines.
9072
9073 <note>
9074 If the cloned hard disk is a differencing hard disk, it will inherit
9075 parent dependency of the original hard disk.
9076 </note>
9077 <note>
9078 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9079 state for the duration of this operation.
9080 </note>
9081 </desc>
9082 <param name="target" type="IHardDisk" dir="in">
9083 <desc>Target hard disk.</desc>
9084 </param>
9085 <param name="progress" type="IProgress" dir="return">
9086 <desc>Progress object to track the operation completion.</desc>
9087 </param>
9088 </method>
9089
9090 <method name="flattenTo">
9091 <desc>
9092 Starts creating a deep (independent) clone of this hard disk in the
9093 format and at the location defined by the @a target argument.
9094
9095 This operation is similar to <link to="#cloneTo"/> except that when
9096 applied to a differencing hard disk, it will also copy missing hard disk
9097 data from all parent hard disks it is linked to. This will make the
9098 created clone an independent base hard disk that contains all hard disk
9099 data and does not need any other hard disks to operate.
9100
9101 After the returned progress object reports that the operation is
9102 successfully complete, the target hard disk gets remembered by this
9103 VirtualBox installation and may be attached to virtual machines.
9104
9105 <note>
9106 For base hard disks, this operation is identical to
9107 <link to="#cloneTo"/>.
9108 </note>
9109 <note>
9110 This hard disk and all its parent hard disks will be placed to <link
9111 to="MediaState_LockedRead"/> state for the duration of this
9112 operation.
9113 </note>
9114 </desc>
9115 <param name="target" type="IHardDisk" dir="in">
9116 <desc>Target hard disk.</desc>
9117 </param>
9118 <param name="progress" type="IProgress" dir="return">
9119 <desc>Progress object to track the operation completion.</desc>
9120 </param>
9121 </method>
9122
9123 <!-- other methods -->
9124
9125 <method name="compact">
9126 <desc>
9127 Starts compacting of this hard disk. This means that the disk is
9128 transformed into a possibly more compact storage representation.
9129 This potentially creates temporary images, which can require a
9130 substantial amount of additional disk space.
9131
9132 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9133 state and all its parent hard disks (if any) will be placed to
9134 <link to="MediaState_LockedRead"/> state for the duration of this
9135 operation.
9136 </desc>
9137 <param name="progress" type="IProgress" dir="return">
9138 <desc>Progress object to track the operation completion.</desc>
9139 </param>
9140 </method>
9141
9142 <method name="reset">
9143 <desc>
9144 Starts erasing the contents of this differencing hard disk.
9145
9146 This operation will reset the differencing hard disk to its initial
9147 state when it does not contain any sector data and any read operation is
9148 redirected to its parent hard disk.
9149
9150 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9151 for the duration of this operation.
9152
9153 <result name="VBOX_E_NOT_SUPPORTED">
9154 This is not a differencing hard disk.
9155 </result>
9156 <result name="VBOX_E_INVALID_OBJECT_STATE">
9157 Hard disk is not in <link to="MediaState_Created"/> or
9158 <link to="MediaState_Inaccessible"/> state.
9159 </result>
9160 </desc>
9161 <param name="progress" type="IProgress" dir="return">
9162 <desc>Progress object to track the operation completion.</desc>
9163 </param>
9164 </method>
9165
9166 </interface>
9167
9168
9169 <!--
9170 // IHardDiskFormat
9171 /////////////////////////////////////////////////////////////////////////
9172 -->
9173
9174 <enum
9175 name="DataType"
9176 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9177 >
9178 <const name="Int32" value="0"/>
9179 <const name="Int8" value="1"/>
9180 <const name="String" value="2"/>
9181 </enum>
9182
9183 <enum
9184 name="DataFlags"
9185 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9186 >
9187 <const name="None" value="0x00"/>
9188 <const name="Mandatory" value="0x01"/>
9189 <const name="Expert" value="0x02"/>
9190 <const name="Array" value="0x04"/>
9191 <const name="FlagMask" value="0x07"/>
9192 </enum>
9193
9194 <enum
9195 name="HardDiskFormatCapabilities"
9196 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9197 >
9198 <desc>
9199 Hard disk format capability flags.
9200 </desc>
9201
9202 <const name="Uuid" value="0x01">
9203 <desc>
9204 Supports UUIDs as expected by VirtualBox code.
9205 </desc>
9206 </const>
9207
9208 <const name="CreateFixed" value="0x02">
9209 <desc>
9210 Supports creating fixed size images, allocating all space instantly.
9211 </desc>
9212 </const>
9213
9214 <const name="CreateDynamic" value="0x04">
9215 <desc>
9216 Supports creating dynamically growing images, allocating space on
9217 demand.
9218 </desc>
9219 </const>
9220
9221 <const name="CreateSplit2G" value="0x08">
9222 <desc>
9223 Supports creating images split in chunks of a bit less than 2 GBytes.
9224 </desc>
9225 </const>
9226
9227 <const name="Differencing" value="0x10">
9228 <desc>
9229 Supports being used as a format for differencing hard disks (see <link
9230 to="IHardDisk::createDiffStorage"/>).
9231 </desc>
9232 </const>
9233
9234 <const name="Asynchronous" value="0x20">
9235 <desc>
9236 Supports asynchronous I/O operations for at least some configurations.
9237 </desc>
9238 </const>
9239
9240 <const name="File" value="0x40">
9241 <desc>
9242 The format backend operates on files (the <link to="IMedium::location"/>
9243 attribute of the hard disk specifies a file used to store hard disk
9244 data; for a list of supported file extensions see
9245 <link to="IHardDiskFormat::fileExtensions"/>).
9246 </desc>
9247 </const>
9248
9249 <const name="Properties" value="0x80">
9250 <desc>
9251 The format backend uses the property interface to configure the storage
9252 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9253 method is used to get access to properties supported by the given hard
9254 disk format).
9255 </desc>
9256 </const>
9257
9258 <const name="CapabilityMask" value="0xFF"/>
9259 </enum>
9260
9261 <interface
9262 name="IHardDiskFormat" extends="$unknown"
9263 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9264 wsmap="managed"
9265 >
9266 <desc>
9267 The IHardDiskFormat interface represents a virtual hard disk format.
9268
9269 Each hard disk format has an associated backend which is used to handle
9270 hard disks stored in this format. This interface provides information
9271 about the properties of the associated backend.
9272
9273 Each hard disk format is identified by a string represented by the
9274 <link to="#id"/> attribute. This string is used in calls like
9275 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9276 format.
9277
9278 The list of all supported hard disk formats can be obtained using
9279 <link to="ISystemProperties::hardDiskFormats"/>.
9280
9281 <see>IHardDisk</see>
9282 </desc>
9283
9284 <attribute name="id" type="wstring" readonly="yes">
9285 <desc>
9286 Identifier of this format.
9287
9288 The format identifier is a non-null non-empty ASCII string. Note that
9289 this string is case-insensitive. This means that, for example, all of
9290 the following strings:
9291 <pre>
9292 "VDI"
9293 "vdi"
9294 "VdI"</pre>
9295 refer to the same hard disk format.
9296
9297 This string is used in methods of other interfaces where it is necessary
9298 to specify a hard disk format, such as
9299 <link to="IVirtualBox::createHardDisk"/>.
9300 </desc>
9301 </attribute>
9302
9303 <attribute name="name" type="wstring" readonly="yes">
9304 <desc>
9305 Human readable description of this format.
9306
9307 Mainly for use in file open dialogs.
9308 </desc>
9309 </attribute>
9310
9311 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9312 <desc>
9313 Array of strings containing the supported file extensions.
9314
9315 The first extension in the array is the extension preferred by the
9316 backend. It is recommended to use this extension when specifying a
9317 location of the storage unit for a new hard disk.
9318
9319 Note that some backends do not work on files, so this array may be
9320 empty.
9321
9322 <see>IHardDiskFormat::capabilities</see>
9323 </desc>
9324 </attribute>
9325
9326 <attribute name="capabilities" type="unsigned long" readonly="yes">
9327 <desc>
9328 Capabilities of the format as a set of bit flags.
9329
9330 For the meaning of individual capability flags see
9331 <link to="HardDiskFormatCapabilities"/>.
9332 </desc>
9333 </attribute>
9334
9335 <method name="describeProperties">
9336 <desc>
9337 Returns several arrays describing the properties supported by this
9338 format.
9339
9340 An element with the given index in each array describes one
9341 property. Thus, the number of elements in each returned array is the
9342 same and corresponds to the number of supported properties.
9343
9344 The returned arrays are filled in only if the
9345 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9346 All arguments must be non-NULL.
9347
9348 <see>DataType</see>
9349 <see>DataFlags</see>
9350 </desc>
9351
9352 <param name="names" type="wstring" safearray="yes" dir="out">
9353 <desc>Array of property names.</desc>
9354 </param>
9355 <param name="description" type="wstring" safearray="yes" dir="out">
9356 <desc>Array of property descriptions.</desc>
9357 </param>
9358 <param name="types" type="DataType" safearray="yes" dir="out">
9359 <desc>Array of property types.</desc>
9360 </param>
9361 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9362 <desc>Array of property flags.</desc>
9363 </param>
9364 <param name="defaults" type="wstring" safearray="yes" dir="out">
9365 <desc>Array of default property values.</desc>
9366 </param>
9367 </method>
9368
9369 </interface>
9370
9371
9372 <!--
9373 // IFloppyImage
9374 /////////////////////////////////////////////////////////////////////////
9375 -->
9376
9377 <interface
9378 name="IFloppyImage" extends="IMedium"
9379 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9380 wsmap="managed"
9381 >
9382 <desc>
9383 The IFloppyImage interface represents a medium containing the image
9384 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9385 </desc>
9386
9387 </interface>
9388
9389
9390 <!--
9391 // IDVDImage
9392 /////////////////////////////////////////////////////////////////////////
9393 -->
9394
9395 <interface
9396 name="IDVDImage" extends="IMedium"
9397 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9398 wsmap="managed"
9399 >
9400 <desc>
9401 The IDVDImage interface represents a medium containing the image
9402 of a CD or DVD disk in the ISO format.
9403
9404 This is a subclass of <link to="IMedium" />; see remarks there.
9405 </desc>
9406
9407 </interface>
9408
9409
9410 <!--
9411 // IDVDDrive
9412 /////////////////////////////////////////////////////////////////////////
9413 -->
9414
9415 <interface
9416 name="IDVDDrive" extends="$unknown"
9417 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9418 wsmap="managed"
9419 >
9420 <desc>
9421 The IDVDDrive interface represents the virtual CD/DVD drive of the
9422 virtual machine. An object of this type is returned by
9423 <link to="IMachine::DVDDrive"/>.
9424 </desc>
9425
9426 <attribute name="state" type="DriveState" readonly="yes">
9427 <desc>Current drive state.</desc>
9428 </attribute>
9429
9430 <attribute name="passthrough" type="boolean">
9431 <desc>
9432 When a host drive is mounted and passthrough is enabled
9433 the guest OS will be able to directly send SCSI commands to
9434 the host drive. This enables the guest OS to use CD/DVD writers
9435 but is potentially dangerous.
9436 </desc>
9437 </attribute>
9438
9439 <method name="mountImage">
9440 <desc>Mounts a CD/DVD image with the specified UUID.
9441
9442 <result name="VBOX_E_FILE_ERROR">
9443 Invalid image file location.
9444 </result>
9445 <result name="VBOX_E_OBJECT_NOT_FOUND">
9446 Could not find a CD/DVD image matching @a imageID.
9447 </result>
9448 <result name="VBOX_E_INVALID_OBJECT_STATE">
9449 Invalid media state.
9450 </result>
9451
9452 </desc>
9453 <param name="imageId" type="uuid" dir="in"/>
9454 </method>
9455
9456 <method name="captureHostDrive">
9457 <desc>Captures the specified host CD/DVD drive.</desc>
9458 <param name="drive" type="IHostDVDDrive" dir="in"/>
9459 </method>
9460
9461 <method name="unmount">
9462 <desc>Unmounts the currently mounted image or host drive.</desc>
9463 </method>
9464
9465 <method name="getImage">
9466 <desc>Returns the currently mounted CD/DVD image.</desc>
9467 <param name="image" type="IDVDImage" dir="return"/>
9468 </method>
9469
9470 <method name="getHostDrive">
9471 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9472 <param name="drive" type="IHostDVDDrive" dir="return"/>
9473 </method>
9474
9475 </interface>
9476
9477
9478 <!--
9479 // IFloppyDrive
9480 /////////////////////////////////////////////////////////////////////////
9481 -->
9482
9483 <interface
9484 name="IFloppyDrive" extends="$unknown"
9485 uuid="159412cd-bab8-452e-8097-218a020825a6"
9486 wsmap="managed"
9487 >
9488 <desc>
9489 The IFloppyDrive interface represents the virtual floppy drive of the
9490 virtual machine. An object of this type is returned by
9491 <link to="IMachine::floppyDrive" />.
9492 </desc>
9493
9494 <attribute name="enabled" type="boolean">
9495 <desc>
9496 Flag whether the floppy drive is enabled. If it is disabled,
9497 the floppy drive will not be reported to the guest OS.
9498 </desc>
9499 </attribute>
9500
9501 <attribute name="state" type="DriveState" readonly="yes">
9502 <desc>Current drive state.</desc>
9503 </attribute>
9504
9505 <method name="mountImage">
9506 <desc>Mounts a floppy image with the specified UUID.
9507
9508 <result name="VBOX_E_FILE_ERROR">
9509 Invalid image file location.
9510 </result>
9511 <result name="VBOX_E_OBJECT_NOT_FOUND">
9512 Could not find a floppy image matching @a imageID.
9513 </result>
9514 <result name="VBOX_E_INVALID_OBJECT_STATE">
9515 Invalid media state.
9516 </result>
9517
9518 </desc>
9519 <param name="imageId" type="uuid" dir="in"/>
9520 </method>
9521
9522 <method name="captureHostDrive">
9523 <desc>Captures the specified host floppy drive.</desc>
9524 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9525 </method>
9526
9527 <method name="unmount">
9528 <desc>Unmounts the currently mounted image or host drive.</desc>
9529 </method>
9530
9531 <method name="getImage">
9532 <desc>Returns the currently mounted floppy image.</desc>
9533 <param name="image" type="IFloppyImage" dir="return"/>
9534 </method>
9535
9536 <method name="getHostDrive">
9537 <desc>Returns the currently mounted host floppy drive.</desc>
9538 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9539 </method>
9540
9541 </interface>
9542
9543
9544 <!--
9545 // IKeyboard
9546 /////////////////////////////////////////////////////////////////////////
9547 -->
9548
9549 <interface
9550 name="IKeyboard" extends="$unknown"
9551 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9552 wsmap="managed"
9553 >
9554 <desc>
9555 The IKeyboard interface represents the virtual machine's keyboard. Used
9556 in <link to="IConsole::keyboard"/>.
9557
9558 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9559 to the virtual machine.
9560
9561 </desc>
9562 <method name="putScancode">
9563 <desc>Sends a scancode to the keyboard.
9564
9565 <result name="VBOX_E_IPRT_ERROR">
9566 Could not send scan code to virtual keyboard.
9567 </result>
9568
9569 </desc>
9570 <param name="scancode" type="long" dir="in"/>
9571 </method>
9572
9573 <method name="putScancodes">
9574 <desc>Sends an array of scancodes to the keyboard.
9575
9576 <result name="VBOX_E_IPRT_ERROR">
9577 Could not send all scan codes to virtual keyboard.
9578 </result>
9579
9580 </desc>
9581 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9582 <param name="codesStored" type="unsigned long" dir="return"/>
9583 </method>
9584
9585 <method name="putCAD">
9586 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9587 function is nothing special, it is just a convenience function
9588 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9589
9590 <result name="VBOX_E_IPRT_ERROR">
9591 Could not send all scan codes to virtual keyboard.
9592 </result>
9593
9594 </desc>
9595 </method>
9596
9597 </interface>
9598
9599
9600 <!--
9601 // IMouse
9602 /////////////////////////////////////////////////////////////////////////
9603 -->
9604
9605 <enum
9606 name="MouseButtonState"
9607 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9608 >
9609 <desc>
9610 Mouse button state.
9611 </desc>
9612
9613 <const name="LeftButton" value="0x01"/>
9614 <const name="RightButton" value="0x02"/>
9615 <const name="MiddleButton" value="0x04"/>
9616 <const name="WheelUp" value="0x08"/>
9617 <const name="WheelDown" value="0x10"/>
9618 <const name="MouseStateMask" value="0x1F"/>
9619 </enum>
9620
9621 <interface
9622 name="IMouse" extends="$unknown"
9623 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9624 wsmap="managed"
9625 >
9626 <desc>
9627 The IMouse interface represents the virtual machine's mouse. Used in
9628 <link to="IConsole::mouse"/>.
9629
9630 Through this interface, the virtual machine's virtual mouse can be
9631 controlled.
9632 </desc>
9633
9634 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9635 <desc>
9636 Whether the guest OS supports absolute mouse pointer positioning
9637 or not.
9638 <note>
9639 VirtualBox Guest Tools need to be installed to the guest OS
9640 in order to enable absolute mouse positioning support.
9641 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9642 callback to be instantly informed about changes of this attribute
9643 during virtual machine execution.
9644 </note>
9645 <see><link to="#putMouseEventAbsolute"/></see>
9646 </desc>
9647 </attribute>
9648
9649 <method name="putMouseEvent">
9650 <desc>
9651 Initiates a mouse event using relative pointer movements
9652 along x and y axis.
9653
9654 <result name="E_ACCESSDENIED">
9655 Console not powered up.
9656 </result>
9657 <result name="VBOX_E_IPRT_ERROR">
9658 Could not send mouse event to virtual mouse.
9659 </result>
9660
9661 </desc>
9662
9663 <param name="dx" type="long" dir="in">
9664 <desc>
9665 Amount of pixels the mouse should move to the right.
9666 Negative values move the mouse to the left.
9667 </desc>
9668 </param>
9669 <param name="dy" type="long" dir="in">
9670 <desc>
9671 Amount of pixels the mouse should move downwards.
9672 Negative values move the mouse upwards.
9673 </desc>
9674 </param>
9675 <param name="dz" type="long" dir="in">
9676 <desc>
9677 Amount of mouse wheel moves.
9678 Positive values describe clockwise wheel rotations,
9679 negative values describe counterclockwise rotations.
9680 </desc>
9681 </param>
9682 <param name="buttonState" type="long" dir="in">
9683 <desc>
9684 The current state of mouse buttons. Every bit represents
9685 a mouse button as follows:
9686 <table>
9687 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9688 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9689 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9690 </table>
9691 A value of <tt>1</tt> means the corresponding button is pressed.
9692 otherwise it is released.
9693 </desc>
9694 </param>
9695 </method>
9696
9697 <method name="putMouseEventAbsolute">
9698 <desc>
9699 Positions the mouse pointer using absolute x and y coordinates.
9700 These coordinates are expressed in pixels and
9701 start from <tt>[1,1]</tt> which corresponds to the top left
9702 corner of the virtual display.
9703
9704 <result name="E_ACCESSDENIED">
9705 Console not powered up.
9706 </result>
9707 <result name="VBOX_E_IPRT_ERROR">
9708 Could not send mouse event to virtual mouse.
9709 </result>
9710
9711 <note>
9712 This method will have effect only if absolute mouse
9713 positioning is supported by the guest OS.
9714 </note>
9715
9716 <see><link to="#absoluteSupported"/></see>
9717 </desc>
9718
9719 <param name="x" type="long" dir="in">
9720 <desc>
9721 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9722 </desc>
9723 </param>
9724 <param name="y" type="long" dir="in">
9725 <desc>
9726 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9727 </desc>
9728 </param>
9729 <param name="dz" type="long" dir="in">
9730 <desc>
9731 Amount of mouse wheel moves.
9732 Positive values describe clockwise wheel rotations,
9733 negative values describe counterclockwise rotations.
9734 </desc>
9735 </param>
9736 <param name="buttonState" type="long" dir="in">
9737 <desc>
9738 The current state of mouse buttons. Every bit represents
9739 a mouse button as follows:
9740 <table>
9741 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9742 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9743 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9744 </table>
9745 A value of <tt>1</tt> means the corresponding button is pressed.
9746 otherwise it is released.
9747 </desc>
9748 </param>
9749 </method>
9750
9751 </interface>
9752
9753 <!--
9754 // IDisplay
9755 /////////////////////////////////////////////////////////////////////////
9756 -->
9757
9758 <enum
9759 name="FramebufferAccelerationOperation"
9760 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9761 >
9762 <desc>
9763 Frame buffer acceleration operation.
9764 </desc>
9765
9766 <const name="SolidFillAcceleration" value="1"/>
9767 <const name="ScreenCopyAcceleration" value="2"/>
9768 </enum>
9769
9770 <enum
9771 name="FramebufferPixelFormat"
9772 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9773 >
9774 <desc>
9775 Format of the video memory buffer. Constants represented by this enum can
9776 be used to test for particular values of <link
9777 to="IFramebuffer::pixelFormat"/>. See also <link
9778 to="IFramebuffer::requestResize"/>.
9779
9780 See also www.fourcc.org for more information about FOURCC pixel formats.
9781 </desc>
9782
9783 <const name="Opaque" value="0">
9784 <desc>
9785 Unknown buffer format (the user may not assume any particular format of
9786 the buffer).
9787 </desc>
9788 </const>
9789 <const name="FOURCC_RGB" value="0x32424752">
9790 <desc>
9791 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9792 bit layout).
9793 </desc>
9794 </const>
9795 </enum>
9796
9797 <interface
9798 name="IFramebuffer" extends="$unknown"
9799 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9800 wsmap="suppress"
9801 >
9802 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9803 <desc>Address of the start byte of the frame buffer.</desc>
9804 </attribute>
9805
9806 <attribute name="width" type="unsigned long" readonly="yes">
9807 <desc>Frame buffer width, in pixels.</desc>
9808 </attribute>
9809
9810 <attribute name="height" type="unsigned long" readonly="yes">
9811 <desc>Frame buffer height, in pixels.</desc>
9812 </attribute>
9813
9814 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9815 <desc>
9816 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9817 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9818 are: 8, 15, 16, 24 and 32.
9819 </desc>
9820 </attribute>
9821
9822 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9823 <desc>
9824 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9825 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9826 size of the scan line must be aligned to 32 bits.
9827 </desc>
9828 </attribute>
9829
9830 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9831 <desc>
9832 Frame buffer pixel format. It's either one of the values defined by <link
9833 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9834 <note>
9835 This attribute must never return <link
9836 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9837 <link to="#address"/> points to must be always known.
9838 </note>
9839 </desc>
9840 </attribute>
9841
9842 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9843 <desc>
9844 Defines whether this frame buffer uses the virtual video card's memory
9845 buffer (guest VRAM) directly or not. See <link
9846 to="IFramebuffer::requestResize"/> for more information.
9847 </desc>
9848 </attribute>
9849
9850 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9851 <desc>
9852 Hint from the frame buffer about how much of the standard
9853 screen height it wants to use for itself. This information is
9854 exposed to the guest through the VESA BIOS and VMMDev interface
9855 so that it can use it for determining its video mode table. It
9856 is not guaranteed that the guest respects the value.
9857 </desc>
9858 </attribute>
9859
9860 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9861 <desc>
9862 An alpha-blended overlay which is superposed over the frame buffer.
9863 The initial purpose is to allow the display of icons providing
9864 information about the VM state, including disk activity, in front
9865 ends which do not have other means of doing that. The overlay is
9866 designed to controlled exclusively by IDisplay. It has no locking
9867 of its own, and any changes made to it are not guaranteed to be
9868 visible until the affected portion of IFramebuffer is updated. The
9869 overlay can be created lazily the first time it is requested. This
9870 attribute can also return NULL to signal that the overlay is not
9871 implemented.
9872 </desc>
9873 </attribute>
9874
9875 <attribute name="winId" type="unsigned long long" readonly="yes">
9876 <desc>
9877 Platform-dependent identifier of the window where context of this
9878 frame buffer is drawn, or zero if there's no such window.
9879 </desc>
9880 </attribute>
9881
9882 <method name="lock">
9883 <desc>
9884 Locks the frame buffer.
9885 Gets called by the IDisplay object where this frame buffer is
9886 bound to.
9887 </desc>
9888 </method>
9889
9890 <method name="unlock">
9891 <desc>
9892 Unlocks the frame buffer.
9893 Gets called by the IDisplay object where this frame buffer is
9894 bound to.
9895 </desc>
9896 </method>
9897
9898 <method name="notifyUpdate">
9899 <desc>
9900 Informs about an update.
9901 Gets called by the display object where this buffer is
9902 registered.
9903 </desc>
9904 <param name="x" type="unsigned long" dir="in"/>
9905 <param name="y" type="unsigned long" dir="in"/>
9906 <param name="width" type="unsigned long" dir="in"/>
9907 <param name="height" type="unsigned long" dir="in"/>
9908 <param name="finished" type="boolean" dir="return"/>
9909 </method>
9910
9911 <method name="requestResize">
9912 <desc>
9913 Requests a size and pixel format change.
9914
9915 There are two modes of working with the video buffer of the virtual
9916 machine. The <i>indirect</i> mode implies that the IFramebuffer
9917 implementation allocates a memory buffer for the requested display mode
9918 and provides it to the virtual machine. In <i>direct</i> mode, the
9919 IFramebuffer implementation uses the memory buffer allocated and owned
9920 by the virtual machine. This buffer represents the video memory of the
9921 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9922 usually faster because the implementation gets a raw pointer to the
9923 guest VRAM buffer which it can directly use for visualizing the contents
9924 of the virtual display, as opposed to the indirect mode where the
9925 contents of guest VRAM are copied to the memory buffer provided by
9926 the implementation every time a display update occurs.
9927
9928 It is important to note that the direct mode is really fast only when
9929 the implementation uses the given guest VRAM buffer directly, for
9930 example, by blitting it to the window representing the virtual machine's
9931 display, which saves at least one copy operation comparing to the
9932 indirect mode. However, using the guest VRAM buffer directly is not
9933 always possible: the format and the color depth of this buffer may be
9934 not supported by the target window, or it may be unknown (opaque) as in
9935 case of text or non-linear multi-plane VGA video modes. In this case,
9936 the indirect mode (that is always available) should be used as a
9937 fallback: when the guest VRAM contents are copied to the
9938 implementation-provided memory buffer, color and format conversion is
9939 done automatically by the underlying code.
9940
9941 The @a pixelFormat parameter defines whether the direct mode is
9942 available or not. If @a pixelFormat is <link
9943 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9944 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
9945 @a bytesPerLine parameters must be ignored and the implementation must use
9946 the indirect mode (where it provides its own buffer in one of the
9947 supported formats). In all other cases, @a pixelFormat together with
9948 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
9949 buffer pointed to by the @a VRAM parameter and the implementation is
9950 free to choose which mode to use. To indicate that this frame buffer uses
9951 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9952 attribute must return <tt>true</tt> and <link to="#address"/> must
9953 return exactly the same address that is passed in the @a VRAM parameter
9954 of this method; otherwise it is assumed that the indirect strategy is
9955 chosen.
9956
9957 The @a width and @a height parameters represent the size of the
9958 requested display mode in both modes. In case of indirect mode, the
9959 provided memory buffer should be big enough to store data of the given
9960 display mode. In case of direct mode, it is guaranteed that the given
9961 @a VRAM buffer contains enough space to represent the display mode of the
9962 given size. Note that this frame buffer's <link to="#width"/> and <link
9963 to="#height"/> attributes must return exactly the same values as
9964 passed to this method after the resize is completed (see below).
9965
9966 The @a finished output parameter determines if the implementation has
9967 finished resizing the frame buffer or not. If, for some reason, the
9968 resize cannot be finished immediately during this call, @a finished
9969 must be set to @c false, and the implementation must call
9970 <link to="IDisplay::resizeCompleted"/> after it has returned from
9971 this method as soon as possible. If @a finished is @c false, the
9972 machine will not call any frame buffer methods until
9973 <link to="IDisplay::resizeCompleted"/> is called.
9974
9975 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
9976 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
9977 this frame buffer must return exactly the same values as specified in the
9978 parameters of this method, after the resize is completed. If the
9979 indirect mode is chosen, these attributes must return values describing
9980 the format of the implementation's own memory buffer <link
9981 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
9982 value must always correlate with <link to="#pixelFormat"/>. Note that
9983 the <link to="#pixelFormat"/> attribute must never return <link
9984 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
9985
9986 <note>
9987 This method is called by the IDisplay object under the
9988 <link to="#lock"/> provided by this IFramebuffer
9989 implementation. If this method returns @c false in @a finished, then
9990 this lock is not released until
9991 <link to="IDisplay::resizeCompleted"/> is called.
9992 </note>
9993 </desc>
9994 <param name="screenId" type="unsigned long" dir="in">
9995 <desc>
9996 Logical screen number. Must be used in the corresponding call to
9997 <link to="IDisplay::resizeCompleted"/> if this call is made.
9998 </desc>
9999 </param>
10000 <param name="pixelFormat" type="unsigned long" dir="in">
10001 <desc>
10002 Pixel format of the memory buffer pointed to by @a VRAM.
10003 See also <link to="FramebufferPixelFormat"/>.
10004 </desc>
10005 </param>
10006 <param name="VRAM" type="octet" mod="ptr" dir="in">
10007 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10008 </param>
10009 <param name="bitsPerPixel" type="unsigned long" dir="in">
10010 <desc>Color depth, bits per pixel.</desc>
10011 </param>
10012 <param name="bytesPerLine" type="unsigned long" dir="in">
10013 <desc>Size of one scan line, in bytes.</desc>
10014 </param>
10015 <param name="width" type="unsigned long" dir="in">
10016 <desc>Width of the guest display, in pixels.</desc>
10017 </param>
10018 <param name="height" type="unsigned long" dir="in">
10019 <desc>Height of the guest display, in pixels.</desc>
10020 </param>
10021 <param name="finished" type="boolean" dir="return">
10022 <desc>
10023 Can the VM start using the new frame buffer immediately
10024 after this method returns or it should wait for
10025 <link to="IDisplay::resizeCompleted"/>.
10026 </desc>
10027 </param>
10028 </method>
10029
10030 <method name="operationSupported">
10031 <desc>
10032 Returns whether the given acceleration operation is supported
10033 by the IFramebuffer implementation. If not, the display object
10034 will not attempt to call the corresponding IFramebuffer entry
10035 point. Even if an operation is indicated as supported, the
10036 IFramebuffer implementation always has the option to return non
10037 supported from the corresponding acceleration method in which
10038 case the operation will be performed by the display engine. This
10039 allows for reduced IFramebuffer implementation complexity where
10040 only common cases are handled.
10041 </desc>
10042 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
10043 <param name="supported" type="boolean" dir="return"/>
10044 </method>
10045
10046 <method name="videoModeSupported">
10047 <desc>
10048 Returns whether the frame buffer implementation is willing to
10049 support a given video mode. In case it is not able to render
10050 the video mode (or for some reason not willing), it should
10051 return false. Usually this method is called when the guest
10052 asks the VMM device whether a given video mode is supported
10053 so the information returned is directly exposed to the guest.
10054 It is important that this method returns very quickly.
10055 </desc>
10056 <param name="width" type="unsigned long" dir="in"/>
10057 <param name="height" type="unsigned long" dir="in"/>
10058 <param name="bpp" type="unsigned long" dir="in"/>
10059 <param name="supported" type="boolean" dir="return"/>
10060 </method>
10061
10062 <method name="solidFill">
10063 <desc>
10064 Fills the specified rectangle on screen with a solid color.
10065 </desc>
10066 <param name="x" type="unsigned long" dir="in"/>
10067 <param name="y" type="unsigned long" dir="in"/>
10068 <param name="width" type="unsigned long" dir="in"/>
10069 <param name="height" type="unsigned long" dir="in"/>
10070 <param name="color" type="unsigned long" dir="in"/>
10071 <param name="handled" type="boolean" dir="return"/>
10072 </method>
10073
10074 <method name="copyScreenBits">
10075 <desc>
10076 Copies specified rectangle on the screen.
10077 </desc>
10078 <param name="xDst" type="unsigned long" dir="in"/>
10079 <param name="yDst" type="unsigned long" dir="in"/>
10080 <param name="xSrc" type="unsigned long" dir="in"/>
10081 <param name="ySrc" type="unsigned long" dir="in"/>
10082 <param name="width" type="unsigned long" dir="in"/>
10083 <param name="height" type="unsigned long" dir="in"/>
10084 <param name="handled" type="boolean" dir="return"/>
10085 </method>
10086
10087 <method name="getVisibleRegion">
10088 <desc>
10089 Returns the visible region of this frame buffer.
10090
10091 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10092 @a count parameter is ignored and the number of elements necessary to
10093 describe the current visible region is returned in @a countCopied.
10094
10095 If @a rectangles is not <tt>NULL</tt> but @a count is less
10096 than the required number of elements to store region data, the method
10097 will report a failure. If @a count is equal or greater than the
10098 required number of elements, then the actual number of elements copied
10099 to the provided array will be returned in @a countCopied.
10100
10101 <note>
10102 The address of the provided array must be in the process space of
10103 this IFramebuffer object.
10104 </note>
10105 <note>
10106 Method not yet implemented.
10107 </note>
10108 </desc>
10109 <param name="rectangles" type="octet" mod="ptr" dir="in">
10110 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10111 </param>
10112 <param name="count" type="unsigned long" dir="in">
10113 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10114 </param>
10115 <param name="countCopied" type="unsigned long" dir="return">
10116 <desc>Number of elements copied to the @a rectangles array.</desc>
10117 </param>
10118 </method>
10119
10120 <method name="setVisibleRegion">
10121 <desc>
10122 Suggests a new visible region to this frame buffer. This region
10123 represents the area of the VM display which is a union of regions of
10124 all top-level windows of the guest operating system running inside the
10125 VM (if the Guest Additions for this system support this
10126 functionality). This information may be used by the frontends to
10127 implement the seamless desktop integration feature.
10128
10129 <note>
10130 The address of the provided array must be in the process space of
10131 this IFramebuffer object.
10132 </note>
10133 <note>
10134 The IFramebuffer implementation must make a copy of the provided
10135 array of rectangles.
10136 </note>
10137 <note>
10138 Method not yet implemented.
10139 </note>
10140 </desc>
10141 <param name="rectangles" type="octet" mod="ptr" dir="in">
10142 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10143 </param>
10144 <param name="count" type="unsigned long" dir="in">
10145 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10146 </param>
10147 </method>
10148
10149 </interface>
10150
10151 <interface
10152 name="IFramebufferOverlay" extends="IFramebuffer"
10153 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10154 wsmap="suppress"
10155 >
10156 <desc>
10157 The IFramebufferOverlay interface represents an alpha blended overlay
10158 for displaying status icons above an IFramebuffer. It is always created
10159 not visible, so that it must be explicitly shown. It only covers a
10160 portion of the IFramebuffer, determined by its width, height and
10161 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10162 that order) format, and may be written to directly. Do re-read the
10163 width though, after setting it, as it may be adjusted (increased) to
10164 make it more suitable for the front end.
10165 </desc>
10166 <attribute name="x" type="unsigned long" readonly="yes">
10167 <desc>X position of the overlay, relative to the frame buffer.</desc>
10168 </attribute>
10169
10170 <attribute name="y" type="unsigned long" readonly="yes">
10171 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10172 </attribute>
10173
10174 <attribute name="visible" type="boolean" readonly="no">
10175 <desc>
10176 Whether the overlay is currently visible.
10177 </desc>
10178 </attribute>
10179
10180 <attribute name="alpha" type="unsigned long" readonly="no">
10181 <desc>
10182 The global alpha value for the overlay. This may or may not be
10183 supported by a given front end.
10184 </desc>
10185 </attribute>
10186
10187 <method name="move">
10188 <desc>
10189 Changes the overlay's position relative to the IFramebuffer.
10190 </desc>
10191 <param name="x" type="unsigned long" dir="in"/>
10192 <param name="y" type="unsigned long" dir="in"/>
10193 </method>
10194
10195 </interface>
10196
10197 <interface
10198 name="IDisplay" extends="$unknown"
10199 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10200 wsmap="suppress"
10201 >
10202 <desc>
10203 The IDisplay interface represents the virtual machine's display.
10204
10205 The object implementing this interface is contained in each
10206 <link to="IConsole::display"/> attribute and represents the visual
10207 output of the virtual machine.
10208
10209 The virtual display supports pluggable output targets represented by the
10210 IFramebuffer interface. Examples of the output target are a window on
10211 the host computer or an RDP session's display on a remote computer.
10212 </desc>
10213 <attribute name="width" type="unsigned long" readonly="yes">
10214 <desc>Current display width.</desc>
10215 </attribute>
10216
10217 <attribute name="height" type="unsigned long" readonly="yes">
10218 <desc>Current display height.</desc>
10219 </attribute>
10220
10221 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10222 <desc>
10223 Current guest display color depth. Note that this may differ
10224 from <link to="IFramebuffer::bitsPerPixel"/>.
10225 </desc>
10226 </attribute>
10227
10228 <method name="setupInternalFramebuffer">
10229 <desc>
10230 Prepares an internally managed frame buffer.
10231 </desc>
10232 <param name="depth" type="unsigned long" dir="in"/>
10233 </method>
10234
10235 <method name="lockFramebuffer">
10236 <desc>
10237 Requests access to the internal frame buffer.
10238
10239 <result name="VBOX_E_NOT_SUPPORTED">
10240 Attempt to lock a non-internal frame buffer.
10241 </result>
10242
10243 </desc>
10244 <param name="address" type="octet" mod="ptr" dir="return"/>
10245 </method>
10246
10247 <method name="unlockFramebuffer">
10248 <desc>
10249 Releases access to the internal frame buffer.
10250
10251 <result name="VBOX_E_NOT_SUPPORTED">
10252 Attempt to unlock a non-internal frame buffer.
10253 </result>
10254
10255 </desc>
10256 </method>
10257
10258 <method name="registerExternalFramebuffer">
10259 <desc>
10260 Registers an external frame buffer.
10261 </desc>
10262 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10263 </method>
10264
10265 <method name="setFramebuffer">
10266 <desc>
10267 Sets the framebuffer for given screen.
10268 </desc>
10269 <param name="screenId" type="unsigned long" dir="in"/>
10270 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10271 </method>
10272
10273 <method name="getFramebuffer">
10274 <desc>
10275 Queries the framebuffer for given screen.
10276 </desc>
10277 <param name="screenId" type="unsigned long" dir="in"/>
10278 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10279 <param name="xOrigin" type="long" dir="out"/>
10280 <param name="yOrigin" type="long" dir="out"/>
10281 </method>
10282
10283 <method name="setVideoModeHint">
10284 <desc>
10285 Asks VirtualBox to request the given video mode from
10286 the guest. This is just a hint and it cannot be guaranteed
10287 that the requested resolution will be used. Guest Additions
10288 are required for the request to be seen by guests. The caller
10289 should issue the request and wait for a resolution change and
10290 after a timeout retry.
10291
10292 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10293 parameters means that the corresponding values should be taken from the
10294 current video mode (i.e. left unchanged).
10295
10296 If the guest OS supports multi-monitor configuration then the @a display
10297 parameter specifies the number of the guest display to send the hint to:
10298 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10299 so on. If the multi-monitor configuration is not supported, @a display
10300 must be <tt>0</tt>.
10301
10302 <result name="E_INVALIDARG">
10303 The @a display is not associated with any monitor.
10304 </result>
10305
10306 </desc>
10307 <param name="width" type="unsigned long" dir="in"/>
10308 <param name="height" type="unsigned long" dir="in"/>
10309 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10310 <param name="display" type="unsigned long" dir="in"/>
10311 </method>
10312
10313 <method name="setSeamlessMode">
10314 <desc>
10315 Enables or disables seamless guest display rendering (seamless desktop
10316 integration) mode.
10317 <note>
10318 Calling this method has no effect if <link
10319 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10320 </note>
10321 </desc>
10322 <param name="enabled" type="boolean" dir="in"/>
10323 </method>
10324
10325 <method name="takeScreenShot">
10326 <desc>
10327 Takes a screen shot of the requested size and copies it to the
10328 32-bpp buffer allocated by the caller.
10329
10330 <result name="E_NOTIMPL">
10331 Feature not implemented.
10332 </result>
10333 <result name="VBOX_E_IPRT_ERROR">
10334 Could not take a screenshot.
10335 </result>
10336
10337 </desc>
10338 <param name="address" type="octet" mod="ptr" dir="in"/>
10339 <param name="width" type="unsigned long" dir="in"/>
10340 <param name="height" type="unsigned long" dir="in"/>
10341 </method>
10342
10343 <method name="drawToScreen">
10344 <desc>
10345 Draws a 32-bpp image of the specified size from the given buffer
10346 to the given point on the VM display.
10347
10348 <result name="E_NOTIMPL">
10349 Feature not implemented.
10350 </result>
10351 <result name="VBOX_E_IPRT_ERROR">
10352 Could not draw to screen.
10353 </result>
10354
10355 </desc>
10356 <param name="address" type="octet" mod="ptr" dir="in"/>
10357 <param name="x" type="unsigned long" dir="in"/>
10358 <param name="y" type="unsigned long" dir="in"/>
10359 <param name="width" type="unsigned long" dir="in"/>
10360 <param name="height" type="unsigned long" dir="in"/>
10361 </method>
10362
10363 <method name="invalidateAndUpdate">
10364 <desc>
10365 Does a full invalidation of the VM display and instructs the VM
10366 to update it.
10367
10368 <result name="VBOX_E_IPRT_ERROR">
10369 Could not invalidate and update screen.
10370 </result>
10371
10372 </desc>
10373 </method>
10374
10375 <method name="resizeCompleted">
10376 <desc>
10377 Signals that a framebuffer has completed the resize operation.
10378
10379 <result name="VBOX_E_NOT_SUPPORTED">
10380 Operation only valid for external frame buffers.
10381 </result>
10382
10383 </desc>
10384 <param name="screenId" type="unsigned long" dir="in"/>
10385 </method>
10386
10387 <method name="updateCompleted">
10388 <desc>
10389 Signals that a framebuffer has completed the update operation.
10390
10391 <result name="VBOX_E_NOT_SUPPORTED">
10392 Operation only valid for external frame buffers.
10393 </result>
10394
10395 </desc>
10396 </method>
10397
10398 </interface>
10399
10400 <!--
10401 // INetworkAdapter
10402 /////////////////////////////////////////////////////////////////////////
10403 -->
10404
10405 <enum
10406 name="NetworkAttachmentType"
10407 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
10408 >
10409 <desc>
10410 Network attachment type.
10411 </desc>
10412
10413 <const name="Null" value="0">
10414 <desc>Null value, also means "not attached".</desc>
10415 </const>
10416 <const name="NAT" value="1"/>
10417 <const name="Bridged" value="2"/>
10418 <const name="Internal" value="3"/>
10419 <const name="HostOnly" value="4"/>
10420 </enum>
10421
10422 <enum
10423 name="NetworkAdapterType"
10424 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10425 >
10426 <desc>
10427 Network adapter type.
10428 </desc>
10429
10430 <const name="Null" value="0">
10431 <desc>Null value (never used by the API).</desc>
10432 </const>
10433 <const name="Am79C970A" value="1"/>
10434 <const name="Am79C973" value="2"/>
10435 <const name="I82540EM" value="3"/>
10436 <const name="I82543GC" value="4"/>
10437 </enum>
10438
10439 <interface
10440 name="INetworkAdapter" extends="$unknown"
10441 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
10442 wsmap="managed"
10443 >
10444 <attribute name="adapterType" type="NetworkAdapterType">
10445 <desc>
10446 Type of the virtual network adapter. Depending on this value,
10447 VirtualBox will provide a different virtual network hardware
10448 to the guest.
10449 </desc>
10450 </attribute>
10451
10452 <attribute name="slot" type="unsigned long" readonly="yes">
10453 <desc>
10454 Slot number this adapter is plugged into. Corresponds to
10455 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10456 to obtain this instance.
10457 </desc>
10458 </attribute>
10459
10460 <attribute name="enabled" type="boolean">
10461 <desc>
10462 Flag whether the network adapter is present in the
10463 guest system. If disabled, the virtual guest hardware will
10464 not contain this network adapter. Can only be changed when
10465 the VM is not running.
10466 </desc>
10467 </attribute>
10468
10469 <attribute name="MACAddress" type="wstring">
10470 <desc>
10471 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10472 it to NULL, VirtualBox will generate a unique MAC address.
10473 </desc>
10474 </attribute>
10475
10476 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10477
10478 <attribute name="hostInterface" type="wstring">
10479 <desc>
10480 Name of the host network interface the VM is attached to.
10481 </desc>
10482 </attribute>
10483
10484 <attribute name="internalNetwork" type="wstring">
10485 <desc>
10486 Name of the internal network the VM is attached to.
10487 </desc>
10488 </attribute>
10489
10490 <attribute name="NATNetwork" type="wstring">
10491 <desc>
10492 Name of the NAT network the VM is attached to.
10493 </desc>
10494 </attribute>
10495
10496 <attribute name="cableConnected" type="boolean">
10497 <desc>
10498 Flag whether the adapter reports the cable as connected or not.
10499 It can be used to report offline situations to a VM.
10500 </desc>
10501 </attribute>
10502
10503 <attribute name="lineSpeed" type="unsigned long">
10504 <desc>
10505 Line speed reported by custom drivers, in units of 1 kbps.
10506 </desc>
10507 </attribute>
10508
10509 <attribute name="traceEnabled" type="boolean">
10510 <desc>
10511 Flag whether network traffic from/to the network card should be traced.
10512 Can only be toggled when the VM is turned off.
10513 </desc>
10514 </attribute>
10515
10516 <attribute name="traceFile" type="wstring">
10517 <desc>
10518 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10519 will be used.
10520 </desc>
10521 </attribute>
10522
10523 <method name="attachToNAT">
10524 <desc>
10525 Attach the network adapter to the Network Address Translation (NAT) interface.
10526 </desc>
10527 </method>
10528
10529 <method name="attachToBridgedInterface">
10530 <desc>
10531 Attach the network adapter to a bridged host interface.
10532 </desc>
10533 </method>
10534
10535 <method name="attachToInternalNetwork">
10536 <desc>
10537 Attach the network adapter to an internal network.
10538 </desc>
10539 </method>
10540
10541 <method name="attachToHostOnlyInterface">
10542 <desc>
10543 Attach the network adapter to the host-only network.
10544 </desc>
10545 </method>
10546
10547 <method name="detach">
10548 <desc>
10549 Detach the network adapter
10550 </desc>
10551 </method>
10552 </interface>
10553
10554
10555 <!--
10556 // ISerialPort
10557 /////////////////////////////////////////////////////////////////////////
10558 -->
10559
10560 <enum
10561 name="PortMode"
10562 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10563 >
10564 <desc>
10565 The PortMode enumeration represents possible communication modes for
10566 the virtual serial port device.
10567 </desc>
10568
10569 <const name="Disconnected" value="0">
10570 <desc>Virtual device is not attached to any real host device.</desc>
10571 </const>
10572 <const name="HostPipe" value="1">
10573 <desc>Virtual device is attached to a host pipe.</desc>
10574 </const>
10575 <const name="HostDevice" value="2">
10576 <desc>Virtual device is attached to a host device.</desc>
10577 </const>
10578 </enum>
10579
10580 <interface
10581 name="ISerialPort" extends="$unknown"
10582 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10583 wsmap="managed"
10584 >
10585
10586 <desc>
10587 The ISerialPort interface represents the virtual serial port device.
10588
10589 The virtual serial port device acts like an ordinary serial port
10590 inside the virtual machine. This device communicates to the real
10591 serial port hardware in one of two modes: host pipe or host device.
10592
10593 In host pipe mode, the #path attribute specifies the path to the pipe on
10594 the host computer that represents a serial port. The #server attribute
10595 determines if this pipe is created by the virtual machine process at
10596 machine startup or it must already exist before starting machine
10597 execution.
10598
10599 In host device mode, the #path attribute specifies the name of the
10600 serial port device on the host computer.
10601
10602 There is also a third communication mode: the disconnected mode. In this
10603 mode, the guest OS running inside the virtual machine will be able to
10604 detect the serial port, but all port write operations will be discarded
10605 and all port read operations will return no data.
10606
10607 <see>IMachine::getSerialPort</see>
10608 </desc>
10609
10610 <attribute name="slot" type="unsigned long" readonly="yes">
10611 <desc>
10612 Slot number this serial port is plugged into. Corresponds to
10613 the value you pass to <link to="IMachine::getSerialPort"/>
10614 to obtain this instance.
10615 </desc>
10616 </attribute>
10617
10618 <attribute name="enabled" type="boolean">
10619 <desc>
10620 Flag whether the serial port is enabled. If disabled,
10621 the serial port will not be reported to the guest OS.
10622 </desc>
10623 </attribute>
10624
10625 <attribute name="IOBase" type="unsigned long">
10626 <desc>Base I/O address of the serial port.</desc>
10627 </attribute>
10628
10629 <attribute name="IRQ" type="unsigned long">
10630 <desc>IRQ number of the serial port.</desc>
10631 </attribute>
10632
10633 <attribute name="hostMode" type="PortMode">
10634 <desc>
10635 How is this port connected to the host.
10636 <note>
10637 Changing this attribute may fail if the conditions for
10638 <link to="#path"/> are not met.
10639 </note>
10640 </desc>
10641 </attribute>
10642
10643 <attribute name="server" type="boolean">
10644 <desc>
10645 Flag whether this serial port acts as a server (creates a new pipe on
10646 the host) or as a client (uses the existing pipe). This attribute is
10647 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10648 </desc>
10649 </attribute>
10650
10651 <attribute name="path" type="wstring">
10652 <desc>
10653 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10654 PortMode_HostPipe, or the host serial device name when
10655 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10656 cases, setting a @c null or an empty string as the attribute's value
10657 will result into an error. Otherwise, the value of this property is
10658 ignored.
10659 </desc>
10660 </attribute>
10661
10662 </interface>
10663
10664 <!--
10665 // IParallelPort
10666 /////////////////////////////////////////////////////////////////////////
10667 -->
10668
10669 <interface
10670 name="IParallelPort" extends="$unknown"
10671 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10672 wsmap="managed"
10673 >
10674
10675 <desc>
10676 The IParallelPort interface represents the virtual parallel port device.
10677
10678 The virtual parallel port device acts like an ordinary parallel port
10679 inside the virtual machine. This device communicates to the real
10680 parallel port hardware using the name of the parallel device on the host
10681 computer specified in the #path attribute.
10682
10683 Each virtual parallel port device is assigned a base I/O address and an
10684 IRQ number that will be reported to the guest operating system and used
10685 to operate the given parallel port from within the virtual machine.
10686
10687 <see>IMachine::getParallelPort</see>
10688 </desc>
10689
10690 <attribute name="slot" type="unsigned long" readonly="yes">
10691 <desc>
10692 Slot number this parallel port is plugged into. Corresponds to
10693 the value you pass to <link to="IMachine::getParallelPort"/>
10694 to obtain this instance.
10695 </desc>
10696 </attribute>
10697
10698 <attribute name="enabled" type="boolean">
10699 <desc>
10700 Flag whether the parallel port is enabled. If disabled,
10701 the parallel port will not be reported to the guest OS.
10702 </desc>
10703 </attribute>
10704
10705 <attribute name="IOBase" type="unsigned long">
10706 <desc>Base I/O address of the parallel port.</desc>
10707 </attribute>
10708
10709 <attribute name="IRQ" type="unsigned long">
10710 <desc>IRQ number of the parallel port.</desc>
10711 </attribute>
10712
10713 <attribute name="path" type="wstring">
10714 <desc>
10715 Host parallel device name. If this parallel port is enabled, setting a
10716 @c null or an empty string as this attribute's value will result into
10717 an error.
10718 </desc>
10719 </attribute>
10720
10721 </interface>
10722
10723
10724 <!--
10725 // IMachineDebugger
10726 /////////////////////////////////////////////////////////////////////////
10727 -->
10728
10729 <interface
10730 name="IMachineDebugger" extends="$unknown"
10731 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10732 wsmap="suppress"
10733 >
10734 <method name="resetStats">
10735 <desc>
10736 Reset VM statistics.
10737 </desc>
10738 <param name="pattern" type="wstring" dir="in">
10739 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10740 </param>
10741 </method>
10742
10743 <method name="dumpStats">
10744 <desc>
10745 Dumps VM statistics.
10746 </desc>
10747 <param name="pattern" type="wstring" dir="in">
10748 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10749 </param>
10750 </method>
10751
10752 <method name="getStats">
10753 <desc>
10754 Get the VM statistics in a XMLish format.
10755 </desc>
10756 <param name="pattern" type="wstring" dir="in">
10757 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10758 </param>
10759 <param name="withDescriptions" type="boolean" dir="in">
10760 <desc>Whether to include the descriptions.</desc>
10761 </param>
10762 <param name="stats" type="wstring" dir="out">
10763 <desc>The XML document containing the statistics.</desc>
10764 </param>
10765 </method>
10766
10767 <method name="injectNMI">
10768 <desc>
10769 Inject an NMI into a running VT-x/AMD-V VM.
10770 </desc>
10771 </method>
10772
10773 <attribute name="singlestep" type="boolean">
10774 <desc>Switch for enabling singlestepping.</desc>
10775 </attribute>
10776
10777 <attribute name="recompileUser" type="boolean">
10778 <desc>Switch for forcing code recompilation for user mode code.</desc>
10779 </attribute>
10780
10781 <attribute name="recompileSupervisor" type="boolean">
10782 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10783 </attribute>
10784
10785 <attribute name="PATMEnabled" type="boolean">
10786 <desc>Switch for enabling and disabling the PATM component.</desc>
10787 </attribute>
10788
10789 <attribute name="CSAMEnabled" type="boolean">
10790 <desc>Switch for enabling and disabling the CSAM component.</desc>
10791 </attribute>
10792
10793 <attribute name="logEnabled" type="boolean">
10794 <desc>Switch for enabling and disabling logging.</desc>
10795 </attribute>
10796
10797 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10798 <desc>
10799 Flag indicating whether the VM is currently making use of CPU hardware
10800 virtualization extensions.
10801 </desc>
10802 </attribute>
10803
10804 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10805 <desc>
10806 Flag indicating whether the VM is currently making use of the nested paging
10807 CPU hardware virtualization extension.
10808 </desc>
10809 </attribute>
10810
10811 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10812 <desc>
10813 Flag indicating whether the VM is currently making use of the VPID
10814 VT-x extension.
10815 </desc>
10816 </attribute>
10817
10818 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10819 <desc>
10820 Flag indicating whether the VM is currently making use of the Physical
10821 Address Extension CPU feature.
10822 </desc>
10823 </attribute>
10824
10825 <attribute name="virtualTimeRate" type="unsigned long">
10826 <desc>
10827 The rate at which the virtual time runs expressed as a percentage.
10828 The accepted range is 2% to 20000%.
10829 </desc>
10830 </attribute>
10831
10832 <!-- @todo method for setting log flags, groups and destination! -->
10833
10834 <attribute name="VM" type="unsigned long long" readonly="yes">
10835 <desc>
10836 Gets the VM handle. This is only for internal use while
10837 we carve the details of this interface.
10838 </desc>
10839 </attribute>
10840
10841 </interface>
10842
10843 <!--
10844 // IUSBController
10845 /////////////////////////////////////////////////////////////////////////
10846 -->
10847
10848 <interface
10849 name="IUSBController" extends="$unknown"
10850 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
10851 wsmap="managed"
10852 >
10853 <attribute name="enabled" type="boolean">
10854 <desc>
10855 Flag whether the USB controller is present in the
10856 guest system. If disabled, the virtual guest hardware will
10857 not contain any USB controller. Can only be changed when
10858 the VM is powered off.
10859 </desc>
10860 </attribute>
10861
10862 <attribute name="enabledEhci" type="boolean">
10863 <desc>
10864 Flag whether the USB EHCI controller is present in the
10865 guest system. If disabled, the virtual guest hardware will
10866 not contain a USB EHCI controller. Can only be changed when
10867 the VM is powered off.
10868 </desc>
10869 </attribute>
10870
10871 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10872 <desc>
10873 USB standard version which the controller implements.
10874 This is a BCD which means that the major version is in the
10875 high byte and minor version is in the low byte.
10876 </desc>
10877 </attribute>
10878
10879 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
10880 <desc>
10881 List of USB device filters associated with the machine.
10882
10883 If the machine is currently running, these filters are activated
10884 every time a new (supported) USB device is attached to the host
10885 computer that was not ignored by global filters
10886 (<link to="IHost::USBDeviceFilters"/>).
10887
10888 These filters are also activated when the machine is powered up.
10889 They are run against a list of all currently available USB
10890 devices (in states
10891 <link to="USBDeviceState_Available"/>,
10892 <link to="USBDeviceState_Busy"/>,
10893 <link to="USBDeviceState_Held"/>) that were not previously
10894 ignored by global filters.
10895
10896 If at least one filter matches the USB device in question, this
10897 device is automatically captured (attached to) the virtual USB
10898 controller of this machine.
10899
10900 <see>IUSBDeviceFilter, ::IUSBController</see>
10901 </desc>
10902 </attribute>
10903
10904 <method name="createDeviceFilter">
10905 <desc>
10906 Creates a new USB device filter. All attributes except
10907 the filter name are set to <tt>null</tt> (any match),
10908 <i>active</i> is <tt>false</tt> (the filter is not active).
10909
10910 The created filter can then be added to the list of filters using
10911 <link to="#insertDeviceFilter"/>.
10912
10913 <result name="VBOX_E_INVALID_VM_STATE">
10914 The virtual machine is not mutable.
10915 </result>
10916
10917 <see>#deviceFilters</see>
10918 </desc>
10919 <param name="name" type="wstring" dir="in">
10920 <desc>
10921 Filter name. See <link to="IUSBDeviceFilter::name"/>
10922 for more info.
10923 </desc>
10924 </param>
10925 <param name="filter" type="IUSBDeviceFilter" dir="return">
10926 <desc>Created filter object.</desc>
10927 </param>
10928 </method>
10929
10930 <method name="insertDeviceFilter">
10931 <desc>
10932 Inserts the given USB device to the specified position
10933 in the list of filters.
10934
10935 Positions are numbered starting from <tt>0</tt>. If the specified
10936 position is equal to or greater than the number of elements in
10937 the list, the filter is added to the end of the collection.
10938
10939 <note>
10940 Duplicates are not allowed, so an attempt to insert a
10941 filter that is already in the collection, will return an
10942 error.
10943 </note>
10944
10945 <result name="VBOX_E_INVALID_VM_STATE">
10946 Virtual machine is not mutable.
10947 </result>
10948 <result name="E_INVALIDARG">
10949 USB device filter not created within this VirtualBox instance.
10950 </result>
10951 <result name="VBOX_E_INVALID_OBJECT_STATE">
10952 USB device filter already in list.
10953 </result>
10954
10955 <see>#deviceFilters</see>
10956 </desc>
10957 <param name="position" type="unsigned long" dir="in">
10958 <desc>Position to insert the filter to.</desc>
10959 </param>
10960 <param name="filter" type="IUSBDeviceFilter" dir="in">
10961 <desc>USB device filter to insert.</desc>
10962 </param>
10963 </method>
10964
10965 <method name="removeDeviceFilter">
10966 <desc>
10967 Removes a USB device filter from the specified position in the
10968 list of filters.
10969
10970 Positions are numbered starting from <tt>0</tt>. Specifying a
10971 position equal to or greater than the number of elements in
10972 the list will produce an error.
10973
10974 <see>#deviceFilters</see>
10975
10976 <result name="VBOX_E_INVALID_VM_STATE">
10977 Virtual machine is not mutable.
10978 </result>
10979 <result name="E_INVALIDARG">
10980 USB device filter list empty or invalid @a position.
10981 </result>
10982
10983 </desc>
10984 <param name="position" type="unsigned long" dir="in">
10985 <desc>Position to remove the filter from.</desc>
10986 </param>
10987 <param name="filter" type="IUSBDeviceFilter" dir="return">
10988 <desc>Removed USB device filter.</desc>
10989 </param>
10990 </method>
10991
10992 </interface>
10993
10994
10995 <!--
10996 // IUSBDevice
10997 /////////////////////////////////////////////////////////////////////////
10998 -->
10999
11000 <enumerator
11001 name="IUSBDeviceEnumerator" type="IUSBDevice"
11002 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
11003 />
11004
11005 <collection
11006 name="IUSBDeviceCollection" type="IUSBDevice"
11007 enumerator="IUSBDeviceEnumerator"
11008 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
11009 readonly="yes"
11010 >
11011 <method name="findById">
11012 <desc>
11013 Searches this collection for a USB device with the given UUID.
11014 <note>
11015 The method returns an error if the given UUID does not
11016 correspond to any USB device in the collection.
11017 </note>
11018 <see>IUSBDevice::id</see>
11019 </desc>
11020 <param name="id" type="uuid" dir="in">
11021 <desc>UUID of the USB device to search for.</desc>
11022 </param>
11023 <param name="device" type="IUSBDevice" dir="return">
11024 <desc>Found USB device object.</desc>
11025 </param>
11026 </method>
11027
11028 <method name="findByAddress">
11029 <desc>
11030 Searches this collection for a USB device with the given
11031 host address.
11032 <note>
11033 The method returns an error if the given address does not
11034 correspond to any USB device in the collection.
11035 </note>
11036 <see>IUSBDevice::address</see>
11037 </desc>
11038 <param name="name" type="wstring" dir="in">
11039 <desc>
11040 Address of the USB device (as assigned by the host) to
11041 search for.
11042 </desc>
11043 </param>
11044 <param name="device" type="IUSBDevice" dir="return">
11045 <desc>Found USB device object.</desc>
11046 </param>
11047 </method>
11048
11049 </collection>
11050
11051 <interface
11052 name="IUSBDevice" extends="$unknown"
11053 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
11054 wsmap="managed"
11055 >
11056 <desc>
11057 The IUSBDevice interface represents a virtual USB device attached to the
11058 virtual machine.
11059
11060 A collection of objects implementing this interface is stored in the
11061 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11062 attached to a running virtual machine's USB controller.
11063 </desc>
11064
11065 <attribute name="id" type="uuid" readonly="yes">
11066 <desc>
11067 Unique USB device ID. This ID is built from #vendorId,
11068 #productId, #revision and #serialNumber.
11069 </desc>
11070 </attribute>
11071
11072 <attribute name="vendorId" type="unsigned short" readonly="yes">
11073 <desc>Vendor ID.</desc>
11074 </attribute>
11075
11076 <attribute name="productId" type="unsigned short" readonly="yes">
11077 <desc>Product ID.</desc>
11078 </attribute>
11079
11080 <attribute name="revision" type="unsigned short" readonly="yes">
11081 <desc>
11082 Product revision number. This is a packed BCD represented as
11083 unsigned short. The high byte is the integer part and the low
11084 byte is the decimal.
11085 </desc>
11086 </attribute>
11087
11088 <attribute name="manufacturer" type="wstring" readonly="yes">
11089 <desc>Manufacturer string.</desc>
11090 </attribute>
11091
11092 <attribute name="product" type="wstring" readonly="yes">
11093 <desc>Product string.</desc>
11094 </attribute>
11095
11096 <attribute name="serialNumber" type="wstring" readonly="yes">
11097 <desc>Serial number string.</desc>
11098 </attribute>
11099
11100 <attribute name="address" type="wstring" readonly="yes">
11101 <desc>Host specific address of the device.</desc>
11102 </attribute>
11103
11104 <attribute name="port" type="unsigned short" readonly="yes">
11105 <desc>
11106 Host USB port number the device is physically
11107 connected to.
11108 </desc>
11109 </attribute>
11110
11111 <attribute name="version" type="unsigned short" readonly="yes">
11112 <desc>
11113 The major USB version of the device - 1 or 2.
11114 </desc>
11115 </attribute>
11116
11117 <attribute name="portVersion" type="unsigned short" readonly="yes">
11118 <desc>
11119 The major USB version of the host USB port the device is
11120 physically connected to - 1 or 2. For devices not connected to
11121 anything this will have the same value as the version attribute.
11122 </desc>
11123 </attribute>
11124
11125 <attribute name="remote" type="boolean" readonly="yes">
11126 <desc>
11127 Whether the device is physically connected to a remote VRDP
11128 client or to a local host machine.
11129 </desc>
11130 </attribute>
11131
11132 </interface>
11133
11134
11135 <!--
11136 // IUSBDeviceFilter
11137 /////////////////////////////////////////////////////////////////////////
11138 -->
11139
11140 <interface
11141 name="IUSBDeviceFilter" extends="$unknown"
11142 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11143 wsmap="managed"
11144 >
11145 <desc>
11146 The IUSBDeviceFilter interface represents an USB device filter used
11147 to perform actions on a group of USB devices.
11148
11149 This type of filters is used by running virtual machines to
11150 automatically capture selected USB devices once they are physically
11151 attached to the host computer.
11152
11153 A USB device is matched to the given device filter if and only if all
11154 attributes of the device match the corresponding attributes of the
11155 filter (that is, attributes are joined together using the logical AND
11156 operation). On the other hand, all together, filters in the list of
11157 filters carry the semantics of the logical OR operation. So if it is
11158 desirable to create a match like "this vendor id OR this product id",
11159 one needs to create two filters and specify "any match" (see below)
11160 for unused attributes.
11161
11162 All filter attributes used for matching are strings. Each string
11163 is an expression representing a set of values of the corresponding
11164 device attribute, that will match the given filter. Currently, the
11165 following filtering expressions are supported:
11166
11167 <ul>
11168 <li><i>Interval filters</i>. Used to specify valid intervals for
11169 integer device attributes (Vendor ID, Product ID and Revision).
11170 The format of the string is:
11171
11172 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11173
11174 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11175 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11176 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11177 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11178 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11179 possible integer is assumed.
11180 </li>
11181 <li><i>Boolean filters</i>. Used to specify acceptable values for
11182 boolean device attributes. The format of the string is:
11183
11184 <tt>true|false|yes|no|0|1</tt>
11185
11186 </li>
11187 <li><i>Exact match</i>. Used to specify a single value for the given
11188 device attribute. Any string that doesn't start with <tt>int:</tt>
11189 represents the exact match. String device attributes are compared to
11190 this string including case of symbols. Integer attributes are first
11191 converted to a string (see individual filter attributes) and then
11192 compared ignoring case.
11193
11194 </li>
11195 <li><i>Any match</i>. Any value of the corresponding device attribute
11196 will match the given filter. An empty or <tt>null</tt> string is
11197 used to construct this type of filtering expressions.
11198
11199 </li>
11200 </ul>
11201
11202 <note>
11203 On the Windows host platform, interval filters are not currently
11204 available. Also all string filter attributes
11205 (<link to="#manufacturer"/>, <link to="#product"/>,
11206 <link to="#serialNumber"/>) are ignored, so they behave as
11207 <i>any match</i> no matter what string expression is specified.
11208 </note>
11209
11210 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11211 </desc>
11212
11213 <attribute name="name" type="wstring">
11214 <desc>
11215 Visible name for this filter.
11216 This name is used to visually distinguish one filter from another,
11217 so it can neither be <tt>null</tt> nor an empty string.
11218 </desc>
11219 </attribute>
11220
11221 <attribute name="active" type="boolean">
11222 <desc>Whether this filter active or has been temporarily disabled.</desc>
11223 </attribute>
11224
11225 <attribute name="vendorId" type="wstring">
11226 <desc>
11227 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11228 The string representation for the <i>exact matching</i>
11229 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11230 (including leading zeroes).
11231 </desc>
11232 </attribute>
11233
11234 <attribute name="productId" type="wstring">
11235 <desc>
11236 <link to="IUSBDevice::productId">Product ID</link> filter.
11237 The string representation for the <i>exact matching</i>
11238 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11239 (including leading zeroes).
11240 </desc>
11241 </attribute>
11242
11243 <attribute name="revision" type="wstring">
11244 <desc>
11245 <link to="IUSBDevice::productId">Product revision number</link>
11246 filter. The string representation for the <i>exact matching</i>
11247 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11248 of the integer part of the revision, and <tt>F</tt> is the
11249 decimal digit of its fractional part (including leading and
11250 trailing zeros).
11251 Note that for interval filters, it's best to use the hexadecimal
11252 form, because the revision is stored as a 16 bit packed BCD value;
11253 so the expression <tt>int:0x0100-0x0199</tt> will match any
11254 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11255 </desc>
11256 </attribute>
11257
11258 <attribute name="manufacturer" type="wstring">
11259 <desc>
11260 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11261 </desc>
11262 </attribute>
11263
11264 <attribute name="product" type="wstring">
11265 <desc>
11266 <link to="IUSBDevice::product">Product</link> filter.
11267 </desc>
11268 </attribute>
11269
11270 <attribute name="serialNumber" type="wstring">
11271 <desc>
11272 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11273 </desc>
11274 </attribute>
11275
11276 <attribute name="port" type="wstring">
11277 <desc>
11278 <link to="IUSBDevice::port">Host USB port</link> filter.
11279 </desc>
11280 </attribute>
11281
11282 <attribute name="remote" type="wstring">
11283 <desc>
11284 <link to="IUSBDevice::remote">Remote state</link> filter.
11285 <note>
11286 This filter makes sense only for machine USB filters,
11287 i.e. it is ignored by IHostUSBDeviceFilter objects.
11288 </note>
11289 </desc>
11290 </attribute>
11291
11292 <attribute name="maskedInterfaces" type="unsigned long">
11293 <desc>
11294 This is an advanced option for hiding one or more USB interfaces
11295 from the guest. The value is a bit mask where the bits that are set
11296 means the corresponding USB interface should be hidden, masked off
11297 if you like.
11298 This feature only works on Linux hosts.
11299 </desc>
11300 </attribute>
11301
11302 </interface>
11303
11304
11305 <!--
11306 // IHostUSBDevice
11307 /////////////////////////////////////////////////////////////////////////
11308 -->
11309
11310 <enum
11311 name="USBDeviceState"
11312 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11313 >
11314 <desc>
11315 USB device state. This enumeration represents all possible states
11316 of the USB device physically attached to the host computer regarding
11317 its state on the host computer and availability to guest computers
11318 (all currently running virtual machines).
11319
11320 Once a supported USB device is attached to the host, global USB
11321 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11322 either ignore the device, or put it to USBDeviceState_Held state, or do
11323 nothing. Unless the device is ignored by global filters, filters of all
11324 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11325 activated that can put it to USBDeviceState_Captured state.
11326
11327 If the device was ignored by global filters, or didn't match
11328 any filters at all (including guest ones), it is handled by the host
11329 in a normal way. In this case, the device state is determined by
11330 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11331 or USBDeviceState_Available, depending on the current device usage.
11332
11333 Besides auto-capturing based on filters, the device can be manually
11334 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11335 state is USBDeviceState_Busy, USBDeviceState_Available or
11336 USBDeviceState_Held.
11337
11338 <note>
11339 Due to differences in USB stack implementations in Linux and Win32,
11340 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11341 only to the Linux version of the product. This also means that (<link
11342 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11343 device state is USBDeviceState_Held.
11344 </note>
11345
11346 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11347 </desc>
11348
11349 <const name="NotSupported" value="0">
11350 <desc>
11351 Not supported by the VirtualBox server, not available to guests.
11352 </desc>
11353 </const>
11354 <const name="Unavailable" value="1">
11355 <desc>
11356 Being used by the host computer exclusively,
11357 not available to guests.
11358 </desc>
11359 </const>
11360 <const name="Busy" value="2">
11361 <desc>
11362 Being used by the host computer, potentially available to guests.
11363 </desc>
11364 </const>
11365 <const name="Available" value="3">
11366 <desc>
11367 Not used by the host computer, available to guests (the host computer
11368 can also start using the device at any time).
11369 </desc>
11370 </const>
11371 <const name="Held" value="4">
11372 <desc>
11373 Held by the VirtualBox server (ignored by the host computer),
11374 available to guests.
11375 </desc>
11376 </const>
11377 <const name="Captured" value="5">
11378 <desc>
11379 Captured by one of the guest computers, not available
11380 to anybody else.
11381 </desc>
11382 </const>
11383 </enum>
11384
11385 <enumerator
11386 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11387 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11388 />
11389
11390 <collection
11391 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11392 enumerator="IHostUSBDeviceEnumerator"
11393 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11394 readonly="yes"
11395 >
11396 <method name="findById">
11397 <desc>
11398 Searches this collection for a USB device with the given UUID.
11399 <note>
11400 The method returns an error if the given UUID does not
11401 correspond to any USB device in the collection.
11402 </note>
11403 <see>IHostUSBDevice::id</see>
11404 </desc>
11405 <param name="id" type="uuid" dir="in">
11406 <desc>UUID of the USB device to search for.</desc>
11407 </param>
11408 <param name="device" type="IHostUSBDevice" dir="return">
11409 <desc>Found USB device object.</desc>
11410 </param>
11411 </method>
11412
11413 <method name="findByAddress">
11414 <desc>
11415 Searches this collection for a USB device with the given
11416 host address.
11417 <note>
11418 The method returns an error if the given address does not
11419 correspond to any USB device in the collection.
11420 </note>
11421 <see>IHostUSBDevice::address</see>
11422 </desc>
11423 <param name="name" type="wstring" dir="in">
11424 <desc>
11425 Address of the USB device (as assigned by the host) to
11426 search for.
11427 </desc>
11428 </param>
11429 <param name="device" type="IHostUSBDevice" dir="return">
11430 <desc>Found USB device object.</desc>
11431 </param>
11432 </method>
11433
11434 </collection>
11435
11436 <interface
11437 name="IHostUSBDevice" extends="IUSBDevice"
11438 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11439 wsmap="managed"
11440 >
11441 <desc>
11442 The IHostUSBDevice interface represents a physical USB device attached
11443 to the host computer.
11444
11445 Besides properties inherited from IUSBDevice, this interface adds the
11446 <link to="#state"/> property that holds the current state of the USB
11447 device.
11448
11449 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11450 </desc>
11451
11452 <attribute name="state" type="USBDeviceState" readonly="yes">
11453 <desc>
11454 Current state of the device.
11455 </desc>
11456 </attribute>
11457
11458 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11459
11460 </interface>
11461
11462
11463 <!--
11464 // IHostUSBDeviceFilter
11465 /////////////////////////////////////////////////////////////////////////
11466 -->
11467
11468 <enum
11469 name="USBDeviceFilterAction"
11470 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11471 >
11472 <desc>
11473 Actions for host USB device filters.
11474 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11475 </desc>
11476
11477 <const name="Null" value="0">
11478 <desc>Null value (never used by the API).</desc>
11479 </const>
11480 <const name="Ignore" value="1">
11481 <desc>Ignore the matched USB device.</desc>
11482 </const>
11483 <const name="Hold" value="2">
11484 <desc>Hold the matched USB device.</desc>
11485 </const>
11486 </enum>
11487
11488 <interface
11489 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11490 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11491 wsmap="managed"
11492 >
11493 <desc>
11494 The IHostUSBDeviceFilter interface represents a global filter for a
11495 physical USB device used by the host computer. Used indirectly in
11496 <link to="IHost::USBDeviceFilters"/>.
11497
11498 Using filters of this type, the host computer determines the initial
11499 state of the USB device after it is physically attached to the
11500 host's USB controller.
11501
11502 <note>
11503 The <link to="#remote"/> attribute is ignored by this type of
11504 filters, because it makes sense only for
11505 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11506 </note>
11507
11508 <see>IHost::USBDeviceFilters</see>
11509 </desc>
11510
11511 <attribute name="action" type="USBDeviceFilterAction">
11512 <desc>
11513 Action performed by the host when an attached USB device
11514 matches this filter.
11515 </desc>
11516 </attribute>
11517
11518 </interface>
11519
11520 <!--
11521 // IAudioAdapter
11522 /////////////////////////////////////////////////////////////////////////
11523 -->
11524
11525 <enum
11526 name="AudioDriverType"
11527 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11528 >
11529 <desc>
11530 Host audio driver type.
11531 </desc>
11532
11533 <const name="Null" value="0">
11534 <desc>Null value, also means "dummy audio driver".</desc>
11535 </const>
11536 <const name="WinMM" value="1"/>
11537 <const name="OSS" value="2"/>
11538 <const name="ALSA" value="3"/>
11539 <const name="DirectSound" value="4"/>
11540 <const name="CoreAudio" value="5"/>
11541 <const name="MMPM" value="6"/>
11542 <const name="Pulse" value="7"/>
11543 <const name="SolAudio" value="8"/>
11544 </enum>
11545
11546 <enum
11547 name="AudioControllerType"
11548 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11549 >
11550 <desc>
11551 Virtual audio controller type.
11552 </desc>
11553
11554 <const name="AC97" value="0"/>
11555 <const name="SB16" value="1"/>
11556 </enum>
11557
11558 <interface
11559 name="IAudioAdapter" extends="$unknown"
11560 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11561 wsmap="managed"
11562 >
11563 <desc>
11564 The IAudioAdapter interface represents the virtual audio adapter of
11565 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11566 </desc>
11567 <attribute name="enabled" type="boolean">
11568 <desc>
11569 Flag whether the audio adapter is present in the
11570 guest system. If disabled, the virtual guest hardware will
11571 not contain any audio adapter. Can only be changed when
11572 the VM is not running.
11573 </desc>
11574 </attribute>
11575 <attribute name="audioController" type="AudioControllerType">
11576 <desc>
11577 The audio hardware we emulate.
11578 </desc>
11579 </attribute>
11580 <attribute name="audioDriver" type="AudioDriverType">
11581 <desc>
11582 Audio driver the adapter is connected to. This setting
11583 can only be changed when the VM is not running.
11584 </desc>
11585 </attribute>
11586 </interface>
11587
11588 <!--
11589 // IVRDPServer
11590 /////////////////////////////////////////////////////////////////////////
11591 -->
11592
11593 <enum
11594 name="VRDPAuthType"
11595 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11596 >
11597 <desc>
11598 VRDP authentication type.
11599 </desc>
11600
11601 <const name="Null" value="0">
11602 <desc>Null value, also means "no authentication".</desc>
11603 </const>
11604 <const name="External" value="1"/>
11605 <const name="Guest" value="2"/>
11606 </enum>
11607
11608 <interface
11609 name="IVRDPServer" extends="$unknown"
11610 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11611 wsmap="managed"
11612 >
11613 <attribute name="enabled" type="boolean">
11614 <desc>VRDP server status.</desc>
11615 </attribute>
11616
11617 <attribute name="port" type="unsigned long">
11618 <desc>
11619 VRDP server port number.
11620 <note>
11621 Setting the value of this property to <tt>0</tt> will reset the port
11622 number to the default value which is
11623 currently <tt>3389</tt>. Reading this property will always return a
11624 real port number, even after it has been set to <tt>0</tt> (in which
11625 case the default port is returned).
11626 </note>
11627 </desc>
11628 </attribute>
11629
11630 <attribute name="netAddress" type="wstring">
11631 <desc>VRDP server address.</desc>
11632 </attribute>
11633
11634 <attribute name="authType" type="VRDPAuthType">
11635 <desc>VRDP authentication method.</desc>
11636 </attribute>
11637
11638 <attribute name="authTimeout" type="unsigned long">
11639 <desc>Timeout for guest authentication. Milliseconds.</desc>
11640 </attribute>
11641
11642 <attribute name="allowMultiConnection" type="boolean">
11643 <desc>
11644 Flag whether multiple simultaneous connections to the VM are permitted.
11645 Note that this will be replaced by a more powerful mechanism in the future.
11646 </desc>
11647 </attribute>
11648
11649 <attribute name="reuseSingleConnection" type="boolean">
11650 <desc>
11651 Flag whether the existing connection must be dropped and a new connection
11652 must be established by the VRDP server, when a new client connects in single
11653 connection mode.
11654 </desc>
11655 </attribute>
11656
11657 </interface>
11658
11659
11660 <!--
11661 // ISharedFolder
11662 /////////////////////////////////////////////////////////////////////////
11663 -->
11664
11665 <interface
11666 name="ISharedFolder" extends="$unknown"
11667 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
11668 wsmap="struct"
11669 >
11670 <desc>
11671 The ISharedFolder interface represents a folder in the host computer's
11672 file system accessible from the guest OS running inside a virtual
11673 machine using an associated logical name.
11674
11675 There are three types of shared folders:
11676 <ul>
11677 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11678 folders available to all virtual machines.</li>
11679 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11680 VM-specific shared folders available to the given virtual machine at
11681 startup.</li>
11682 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11683 VM-specific shared folders created in the session context (for
11684 example, when the virtual machine is running) and automatically
11685 discarded when the session is closed (the VM is powered off).</li>
11686 </ul>
11687
11688 Logical names of shared folders must be unique within the given scope
11689 (global, permanent or transient). However, they do not need to be unique
11690 across scopes. In this case, the definition of the shared folder in a
11691 more specific scope takes precedence over definitions in all other
11692 scopes. The order of precedence is (more specific to more general):
11693 <ol>
11694 <li>Transient definitions</li>
11695 <li>Permanent definitions</li>
11696 <li>Global definitions</li>
11697 </ol>
11698
11699 For example, if MyMachine has a shared folder named
11700 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11701 transient shared folder named <tt>C_DRIVE</tt> (that points
11702 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11703 of <tt>C_DRIVE</tt> in the guest OS so
11704 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11705 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11706 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11707 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11708 to <tt>C:\\</tt> if it still exists.
11709
11710 Note that permanent and transient shared folders of different machines
11711 are in different name spaces, so they don't overlap and don't need to
11712 have unique logical names.
11713
11714 <note>
11715 Global shared folders are not implemented in the current version of the
11716 product.
11717 </note>
11718 </desc>
11719
11720 <attribute name="name" type="wstring" readonly="yes">
11721 <desc>Logical name of the shared folder.</desc>
11722 </attribute>
11723
11724 <attribute name="hostPath" type="wstring" readonly="yes">
11725 <desc>Full path to the shared folder in the host file system.</desc>
11726 </attribute>
11727
11728 <attribute name="accessible" type="boolean" readonly="yes">
11729 <desc>
11730 Whether the folder defined by the host path is currently
11731 accessible or not.
11732 For example, the folder can be unaccessible if it is placed
11733 on the network share that is not available by the time
11734 this property is read.
11735 </desc>
11736 </attribute>
11737
11738 <attribute name="writable" type="boolean" readonly="yes">
11739 <desc>
11740 Whether the folder defined by the host path is writable or
11741 not.
11742 </desc>
11743 </attribute>
11744
11745 <attribute name="lastAccessError" type="wstring" readonly="yes">
11746 <desc>
11747 Text message that represents the result of the last accessibility
11748 check.
11749
11750 Accessibility checks are performed each time the <link to="#accessible"/>
11751 attribute is read. A @c null string is returned if the last
11752 accessibility check was successful. A non-null string indicates a
11753 failure and should normally describe a reason of the failure (for
11754 example, a file read error).
11755 </desc>
11756 </attribute>
11757
11758 </interface>
11759
11760 <!--
11761 // ISession
11762 /////////////////////////////////////////////////////////////////////////
11763 -->
11764
11765 <interface
11766 name="IInternalSessionControl" extends="$unknown"
11767 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11768 internal="yes"
11769 wsmap="suppress"
11770 >
11771 <method name="getPID">
11772 <desc>PID of the process that has created this Session object.
11773 </desc>
11774 <param name="pid" type="unsigned long" dir="return"/>
11775 </method>
11776
11777 <method name="getRemoteConsole">
11778 <desc>
11779 Returns the console object suitable for remote control.
11780
11781 <result name="VBOX_E_INVALID_VM_STATE">
11782 Session state prevents operation.
11783 </result>
11784 <result name="VBOX_E_INVALID_OBJECT_STATE">
11785 Session type prevents operation.
11786 </result>
11787
11788 </desc>
11789 <param name="console" type="IConsole" dir="return"/>
11790 </method>
11791
11792 <method name="assignMachine">
11793 <desc>
11794 Assigns the machine object associated with this direct-type
11795 session or informs the session that it will be a remote one
11796 (if @a machine == NULL).
11797
11798 <result name="VBOX_E_INVALID_VM_STATE">
11799 Session state prevents operation.
11800 </result>
11801 <result name="VBOX_E_INVALID_OBJECT_STATE">
11802 Session type prevents operation.
11803 </result>
11804
11805 </desc>
11806 <param name="machine" type="IMachine" dir="in"/>
11807 </method>
11808
11809 <method name="assignRemoteMachine">
11810 <desc>
11811 Assigns the machine and the (remote) console object associated with
11812 this remote-type session.
11813
11814 <result name="VBOX_E_INVALID_VM_STATE">
11815 Session state prevents operation.
11816 </result>
11817
11818 </desc>
11819 <param name="machine" type="IMachine" dir="in"/>
11820 <param name="console" type="IConsole" dir="in"/>
11821 </method>
11822
11823 <method name="updateMachineState">
11824 <desc>
11825 Updates the machine state in the VM process.
11826 Must be called only in certain cases
11827 (see the method implementation).
11828
11829 <result name="VBOX_E_INVALID_VM_STATE">
11830 Session state prevents operation.
11831 </result>
11832 <result name="VBOX_E_INVALID_OBJECT_STATE">
11833 Session type prevents operation.
11834 </result>
11835
11836 </desc>
11837 <param name="aMachineState" type="MachineState" dir="in"/>
11838 </method>
11839
11840 <method name="uninitialize">
11841 <desc>
11842 Uninitializes (closes) this session. Used by VirtualBox to close
11843 the corresponding remote session when the direct session dies
11844 or gets closed.
11845
11846 <result name="VBOX_E_INVALID_VM_STATE">
11847 Session state prevents operation.
11848 </result>
11849
11850 </desc>
11851 </method>
11852
11853 <method name="onDVDDriveChange">
11854 <desc>
11855 Triggered when settings of the DVD drive object of the
11856 associated virtual machine have changed.
11857
11858 <result name="VBOX_E_INVALID_VM_STATE">
11859 Session state prevents operation.
11860 </result>
11861 <result name="VBOX_E_INVALID_OBJECT_STATE">
11862 Session type prevents operation.
11863 </result>
11864
11865 </desc>
11866 </method>
11867
11868 <method name="onFloppyDriveChange">
11869 <desc>
11870 Triggered when settings of the floppy drive object of the
11871 associated virtual machine have changed.
11872
11873 <result name="VBOX_E_INVALID_VM_STATE">
11874 Session state prevents operation.
11875 </result>
11876 <result name="VBOX_E_INVALID_OBJECT_STATE">
11877 Session type prevents operation.
11878 </result>
11879
11880 </desc>
11881 </method>
11882
11883 <method name="onNetworkAdapterChange">
11884 <desc>
11885 Triggered when settings of a network adapter of the
11886 associated virtual machine have changed.
11887
11888 <result name="VBOX_E_INVALID_VM_STATE">
11889 Session state prevents operation.
11890 </result>
11891 <result name="VBOX_E_INVALID_OBJECT_STATE">
11892 Session type prevents operation.
11893 </result>
11894
11895 </desc>
11896 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11897 </method>
11898
11899 <method name="onSerialPortChange">
11900 <desc>
11901 Triggered when settings of a serial port of the
11902 associated virtual machine have changed.
11903
11904 <result name="VBOX_E_INVALID_VM_STATE">
11905 Session state prevents operation.
11906 </result>
11907 <result name="VBOX_E_INVALID_OBJECT_STATE">
11908 Session type prevents operation.
11909 </result>
11910
11911 </desc>
11912 <param name="serialPort" type="ISerialPort" dir="in"/>
11913 </method>
11914
11915 <method name="onParallelPortChange">
11916 <desc>
11917 Triggered when settings of a parallel port of the
11918 associated virtual machine have changed.
11919
11920 <result name="VBOX_E_INVALID_VM_STATE">
11921 Session state prevents operation.
11922 </result>
11923 <result name="VBOX_E_INVALID_OBJECT_STATE">
11924 Session type prevents operation.
11925 </result>
11926
11927 </desc>
11928 <param name="parallelPort" type="IParallelPort" dir="in"/>
11929 </method>
11930
11931 <method name="onVRDPServerChange">
11932 <desc>
11933 Triggered when settings of the VRDP server object of the
11934 associated virtual machine have changed.
11935
11936 <result name="VBOX_E_INVALID_VM_STATE">
11937 Session state prevents operation.
11938 </result>
11939 <result name="VBOX_E_INVALID_OBJECT_STATE">
11940 Session type prevents operation.
11941 </result>
11942
11943 </desc>
11944 </method>
11945
11946 <method name="onUSBControllerChange">
11947 <desc>
11948 Triggered when settings of the USB controller object of the
11949 associated virtual machine have changed.
11950
11951 <result name="VBOX_E_INVALID_VM_STATE">
11952 Session state prevents operation.
11953 </result>
11954 <result name="VBOX_E_INVALID_OBJECT_STATE">
11955 Session type prevents operation.
11956 </result>
11957
11958 </desc>
11959 </method>
11960
11961 <method name="onSharedFolderChange">
11962 <desc>
11963 Triggered when a permanent (global or machine) shared folder has been
11964 created or removed.
11965 <note>
11966 We don't pass shared folder parameters in this notification because
11967 the order in which parallel notifications are delivered is not defined,
11968 therefore it could happen that these parameters were outdated by the
11969 time of processing this notification.
11970 </note>
11971
11972 <result name="VBOX_E_INVALID_VM_STATE">
11973 Session state prevents operation.
11974 </result>
11975 <result name="VBOX_E_INVALID_OBJECT_STATE">
11976 Session type prevents operation.
11977 </result>
11978
11979 </desc>
11980 <param name="global" type="boolean" dir="in"/>
11981 </method>
11982
11983 <method name="onUSBDeviceAttach">
11984 <desc>
11985 Triggered when a request to capture a USB device (as a result
11986 of matched USB filters or direct call to
11987 <link to="IConsole::attachUSBDevice"/>) has completed.
11988 A @c null @a error object means success, otherwise it
11989 describes a failure.
11990
11991 <result name="VBOX_E_INVALID_VM_STATE">
11992 Session state prevents operation.
11993 </result>
11994 <result name="VBOX_E_INVALID_OBJECT_STATE">
11995 Session type prevents operation.
11996 </result>
11997
11998 </desc>
11999 <param name="device" type="IUSBDevice" dir="in"/>
12000 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12001 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12002 </method>
12003
12004 <method name="onUSBDeviceDetach">
12005 <desc>
12006 Triggered when a request to release the USB device (as a result
12007 of machine termination or direct call to
12008 <link to="IConsole::detachUSBDevice"/>) has completed.
12009 A @c null @a error object means success, otherwise it
12010
12011 <result name="VBOX_E_INVALID_VM_STATE">
12012 Session state prevents operation.
12013 </result>
12014 <result name="VBOX_E_INVALID_OBJECT_STATE">
12015 Session type prevents operation.
12016 </result>
12017
12018 </desc>
12019 <param name="id" type="uuid" dir="in"/>
12020 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12021 </method>
12022
12023 <method name="onShowWindow">
12024 <desc>
12025 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12026 <link to="IMachine::showConsoleWindow"/> in order to notify
12027 console callbacks
12028 <link to="IConsoleCallback::onCanShowWindow"/>
12029 and <link to="IConsoleCallback::onShowWindow"/>.
12030
12031 <result name="VBOX_E_INVALID_OBJECT_STATE">
12032 Session type prevents operation.
12033 </result>
12034
12035 </desc>
12036 <param name="check" type="boolean" dir="in"/>
12037 <param name="canShow" type="boolean" dir="out"/>
12038 <param name="winId" type="unsigned long long" dir="out"/>
12039 </method>
12040
12041 <method name="accessGuestProperty">
12042 <desc>
12043 Called by <link to="IMachine::getGuestProperty"/> and by
12044 <link to="IMachine::setGuestProperty"/> in order to read and
12045 modify guest properties.
12046
12047 <result name="VBOX_E_INVALID_VM_STATE">
12048 Machine session is not open.
12049 </result>
12050 <result name="VBOX_E_INVALID_OBJECT_STATE">
12051 Session type is not direct.
12052 </result>
12053
12054 </desc>
12055 <param name="name" type="wstring" dir="in"/>
12056 <param name="value" type="wstring" dir="in"/>
12057 <param name="flags" type="wstring" dir="in"/>
12058 <param name="isSetter" type="boolean" dir="in"/>
12059 <param name="retValue" type="wstring" dir="out"/>
12060 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12061 <param name="retFlags" type="wstring" dir="out"/>
12062 </method>
12063
12064 <method name="enumerateGuestProperties">
12065 <desc>
12066 Return a list of the guest properties matching a set of patterns along
12067 with their values, time stamps and flags.
12068
12069 <result name="VBOX_E_INVALID_VM_STATE">
12070 Machine session is not open.
12071 </result>
12072 <result name="VBOX_E_INVALID_OBJECT_STATE">
12073 Session type is not direct.
12074 </result>
12075
12076 </desc>
12077 <param name="patterns" type="wstring" dir="in">
12078 <desc>
12079 The patterns to match the properties against as a comma-separated
12080 string. If this is empty, all properties currently set will be
12081 returned.
12082 </desc>
12083 </param>
12084 <param name="key" type="wstring" dir="out" safearray="yes">
12085 <desc>
12086 The key names of the properties returned.
12087 </desc>
12088 </param>
12089 <param name="value" type="wstring" dir="out" safearray="yes">
12090 <desc>
12091 The values of the properties returned. The array entries match the
12092 corresponding entries in the @a key array.
12093 </desc>
12094 </param>
12095 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12096 <desc>
12097 The time stamps of the properties returned. The array entries match
12098 the corresponding entries in the @a key array.
12099 </desc>
12100 </param>
12101 <param name="flags" type="wstring" dir="out" safearray="yes">
12102 <desc>
12103 The flags of the properties returned. The array entries match the
12104 corresponding entries in the @a key array.
12105 </desc>
12106 </param>
12107 </method>
12108
12109 </interface>
12110
12111 <interface
12112 name="ISession" extends="$dispatched"
12113 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12114 wsmap="managed"
12115 >
12116 <desc>
12117 The ISession interface represents a serialization primitive for virtual
12118 machines.
12119
12120 With VirtualBox, every time one wishes to manipulate a virtual machine
12121 (e.g. change its settings or start execution), a session object is
12122 required. Such an object must be passed to one of the session methods
12123 that open the given session, which then initiates the machine manipulation.
12124
12125 A session serves several purposes: it identifies to the inter-process VirtualBox
12126 code which process is currently working with the virtual machine, and it ensures
12127 that there are no incompatible requests from several processes for the
12128 same virtual machine. Session objects can therefore be thought of as mutex
12129 semaphores that lock virtual machines to prevent conflicting accesses from
12130 several processes.
12131
12132 How sessions objects are used depends on whether you use the Main API
12133 via COM or via the webservice:
12134
12135 <ul>
12136 <li>When using the COM API directly, an object of the Session class from the
12137 VirtualBox type library needs to be created. In regular COM C++ client code,
12138 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12139 This object will then act as a local session object in further calls to open
12140 a session.
12141 </li>
12142
12143 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12144 one session object automatically when <link to="IWebsessionManager::logon" />
12145 is called. A managed object reference to that session object can be retrieved by
12146 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12147 reference can then be used to open sessions.
12148 </li>
12149 </ul>
12150
12151 Sessions are mainly used in two variations:
12152
12153 <ul>
12154 <li>
12155 To start a virtual machine in a separate process, one would call
12156 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12157 object as its first parameter. This session then identifies the caller
12158 and lets him control the started machine (for example, pause machine
12159 execution or power it down) as well as be notified about machine
12160 execution state changes.
12161 </li>
12162
12163 <li>To alter machine settings, or to start machine execution within the
12164 current process, one needs to open a direct session for the machine first by
12165 calling <link to="IVirtualBox::openSession"/>. While a direct session
12166 is open within one process, no any other process may open another direct
12167 session for the same machine. This prevents the machine from being changed
12168 by other processes while it is running or while the machine is being configured.
12169 </li>
12170 </ul>
12171
12172 One also can attach to an existing direct session already opened by
12173 another process (for example, in order to send a control request to the
12174 virtual machine such as the pause or the reset request). This is done by
12175 calling <link to="IVirtualBox::openExistingSession"/>.
12176
12177 <note>
12178 Unless you are trying to write a new VirtualBox front-end that
12179 performs direct machine execution (like the VirtualBox or VBoxSDL
12180 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12181 session opened by <link to="IVirtualBox::openSession"/> and use this
12182 session only to change virtual machine settings. If you simply want to
12183 start virtual machine execution using one of the existing front-ends
12184 (for example the VirtualBox GUI or headless server), simply use
12185 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12186 will power up the machine automatically for you.
12187 </note>
12188 </desc>
12189
12190 <attribute name="state" type="SessionState" readonly="yes">
12191 <desc>Current state of this session.</desc>
12192 </attribute>
12193
12194 <attribute name="type" type="SessionType" readonly="yes">
12195 <desc>
12196 Type of this session. The value of this attribute is valid only
12197 if the session is currently open (i.e. its #state is
12198 SessionType_SessionOpen), otherwise an error will be returned.
12199 </desc>
12200 </attribute>
12201
12202 <attribute name="machine" type="IMachine" readonly="yes">
12203 <desc>Machine object associated with this session.</desc>
12204 </attribute>
12205
12206 <attribute name="console" type="IConsole" readonly="yes">
12207 <desc>Console object associated with this session.</desc>
12208 </attribute>
12209
12210 <method name="close">
12211 <desc>
12212 Closes a session that was previously opened.
12213
12214 It is recommended that every time an "open session" method (such as
12215 <link to="IVirtualBox::openRemoteSession" /> or
12216 <link to="IVirtualBox::openSession" />) has been called to
12217 manipulate a virtual machine, the caller invoke
12218 ISession::close() when it's done doing so. Since sessions are
12219 serialization primitives much like ordinary mutexes, they are
12220 best used the same way: for each "open" call, there should be
12221 a matching "close" call, even when errors occur.
12222
12223 Otherwise, if a direct session for a machine opened with
12224 <link to="IVirtualBox::openSession"/> is not explicitly closed
12225 when the application terminates, the state of the machine will
12226 be set to <link to="MachineState_Aborted" /> on the server.
12227
12228 Generally, it is recommended to close all open sessions explicitly
12229 before terminating the application (regardless of the reason for
12230 the termination).
12231
12232 <note>
12233 Do not expect the session state (<link to="ISession::state" />
12234 to return to "Closed" immediately after you invoke
12235 ISession::close(), particularly if you have started a remote
12236 session to execute the VM in a new process. The session state will
12237 automatically return to "Closed" once the VM is no longer executing,
12238 which can of course take a very long time.
12239 </note>
12240
12241 <result name="E_UNEXPECTED">
12242 Session is not open.
12243 </result>
12244
12245 </desc>
12246 </method>
12247
12248 </interface>
12249
12250 <!--
12251 // ISATAController
12252 /////////////////////////////////////////////////////////////////////////
12253 -->
12254
12255 <interface
12256 name="ISATAController" extends="$unknown"
12257 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12258 wsmap="managed"
12259 >
12260 <attribute name="enabled" type="boolean">
12261 <desc>
12262 Flag whether the SATA controller is present in the
12263 guest system. If disabled, the virtual guest hardware will
12264 not contain any SATA controller. Can only be changed when
12265 the VM is powered off.
12266 </desc>
12267 </attribute>
12268
12269 <attribute name="portCount" type="unsigned long">
12270 <desc>
12271 The number of usable ports on the SATA controller.
12272 It ranges from 1 to 30.
12273 </desc>
12274 </attribute>
12275
12276 <method name="GetIDEEmulationPort">
12277 <desc>
12278 Gets the corresponding port number which is emulated as an IDE device.
12279
12280 <result name="E_INVALIDARG">
12281 The @a devicePosition is not in the range 0 to 3.
12282 </result>
12283
12284 </desc>
12285 <param name="devicePosition" type="long" dir="in"/>
12286 <param name="portNumber" type="long" dir="return"/>
12287 </method>
12288
12289 <method name="SetIDEEmulationPort">
12290 <desc>
12291 Sets the port number which is emulated as an IDE device.
12292
12293 <result name="E_INVALIDARG">
12294 The @a devicePosition is not in the range 0 to 3 or the
12295 @a portNumber is not in the range 0 to 29.
12296 </result>
12297
12298 </desc>
12299 <param name="devicePosition" type="long" dir="in"/>
12300 <param name="portNumber" type="long" dir="in"/>
12301 </method>
12302
12303 </interface>
12304
12305<if target="wsdl">
12306
12307 <!--
12308 // IManagedObjectRef
12309 /////////////////////////////////////////////////////////////////////////
12310 -->
12311
12312 <interface
12313 name="IManagedObjectRef" extends="$unknown"
12314 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12315 internal="yes"
12316 wsmap="managed"
12317 wscpp="hardcoded"
12318 >
12319 <desc>
12320 Managed object reference.
12321
12322 Only within the webservice, a managed object reference (which is really
12323 an opaque number) allows a webservice client to address an object
12324 that lives in the address space of the webservice server.
12325
12326 Behind each managed object reference, there is a COM object that lives
12327 in the webservice server's address space. The COM object is not freed
12328 until the managed object reference is released, either by an explicit
12329 call to <link to="IManagedObjectRef::release" /> or by logging off from
12330 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12331 all objects created during the webservice session.
12332
12333 Whenever a method call of the VirtualBox API returns a COM object, the
12334 webservice representation of that method will instead return a
12335 managed object reference, which can then be used to invoke methods
12336 on that object.
12337 </desc>
12338
12339 <method name="getInterfaceName">
12340 <desc>
12341 Returns the name of the interface that this managed object represents,
12342 for example, "IMachine", as a string.
12343 </desc>
12344 <param name="return" type="wstring" dir="return"/>
12345 </method>
12346
12347 <method name="release">
12348 <desc>
12349 Releases this managed object reference and frees the resources that
12350 were allocated for it in the webservice server process. After calling
12351 this method, the identifier of the reference can no longer be used.
12352 </desc>
12353 </method>
12354
12355 </interface>
12356
12357 <!--
12358 // IWebsessionManager
12359 /////////////////////////////////////////////////////////////////////////
12360 -->
12361
12362 <interface
12363 name="IWebsessionManager" extends="$unknown"
12364 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12365 internal="yes"
12366 wsmap="global"
12367 wscpp="hardcoded"
12368 >
12369 <desc>
12370 Websession manager. This provides essential services
12371 to webservice clients.
12372 </desc>
12373 <method name="logon">
12374 <desc>
12375 Logs a new client onto the webservice and returns a managed object reference to
12376 the IVirtualBox instance, which the client can then use as a basis to further
12377 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12378 interface, in one way or the other.
12379 </desc>
12380 <param name="username" type="wstring" dir="in"/>
12381 <param name="password" type="wstring" dir="in"/>
12382 <param name="return" type="IVirtualBox" dir="return"/>
12383 </method>
12384
12385 <method name="getSessionObject">
12386 <desc>
12387 Returns a managed object reference to the internal ISession object that was created
12388 for this web service session when the client logged on.
12389
12390 <see>ISession</see>
12391 </desc>
12392 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12393 <param name="return" type="ISession" dir="return"/>
12394 </method>
12395
12396 <method name="logoff">
12397 <desc>
12398 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12399 and destroys all resources associated with the session (most importantly, all
12400 managed objects created in the server while the session was active).
12401 </desc>
12402 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12403 </method>
12404
12405 </interface>
12406
12407</if>
12408
12409 <!--
12410 // IPerformanceCollector & friends
12411 /////////////////////////////////////////////////////////////////////////
12412 -->
12413
12414 <interface
12415 name="IPerformanceMetric" extends="$unknown"
12416 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12417 >
12418 <desc>
12419 The IPerformanceMetric interface represents parameters of the given
12420 performance metric.
12421 </desc>
12422
12423 <attribute name="metricName" type="wstring" readonly="yes">
12424 <desc>
12425 Name of the metric.
12426 </desc>
12427 </attribute>
12428
12429 <attribute name="object" type="$unknown" readonly="yes">
12430 <desc>
12431 Object this metric belongs to.
12432 </desc>
12433 </attribute>
12434
12435 <attribute name="description" type="wstring" readonly="yes">
12436 <desc>
12437 Textual description of the metric.
12438 </desc>
12439 </attribute>
12440
12441 <attribute name="period" type="unsigned long" readonly="yes">
12442 <desc>
12443 Time interval between samples, measured in seconds.
12444 </desc>
12445 </attribute>
12446
12447 <attribute name="count" type="unsigned long" readonly="yes">
12448 <desc>
12449 Number of recent samples retained by the performance collector for this
12450 metric.
12451
12452 When the collected sample count exceeds this number, older samples
12453 are discarded.
12454 </desc>
12455 </attribute>
12456
12457 <attribute name="unit" type="wstring" readonly="yes">
12458 <desc>
12459 Unit of measurement.
12460 </desc>
12461 </attribute>
12462
12463 <attribute name="minimumValue" type="long" readonly="yes">
12464 <desc>
12465 Minimum possible value of this metric.
12466 </desc>
12467 </attribute>
12468
12469 <attribute name="maximumValue" type="long" readonly="yes">
12470 <desc>
12471 Maximum possible value of this metric.
12472 </desc>
12473 </attribute>
12474 </interface>
12475
12476 <interface
12477 name="IPerformanceCollector" extends="$unknown"
12478 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12479 wsmap="managed"
12480 >
12481 <desc>
12482 The IPerformanceCollector interface represents a service that collects and
12483 stores performance metrics data.
12484
12485 Performance metrics are associated with objects like IHost and
12486 IMachine. Each object has a distinct set of performance metrics.
12487 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12488
12489 Metric data are collected at the specified intervals and are retained
12490 internally. The interval and the number of samples retained can be set
12491 with <link to="IPerformanceCollector::setupMetrics" />.
12492
12493 Metrics are organized hierarchically, each level separated by slash (/).
12494 General scheme for metric name is
12495 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12496 metric name stands for: CPU category, Load metric, User submetric, average
12497 aggregate. An aggregate function is computed over all retained data. Valid
12498 aggregate functions are:
12499
12500 <ul>
12501 <li>avg -- average</li>
12502 <li>min -- minimum</li>
12503 <li>max -- maximum</li>
12504 </ul>
12505
12506 "Category/Metric" together form base metric name. A base metric is the
12507 smallest unit for which a sampling interval and the number of retained
12508 samples can be set. Only base metrics can be enabled and disabled. All
12509 sub-metrics are collected when their base metric is collected.
12510 Collected values for any set of sub-metrics can be queried with
12511 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12512 metric parameters, querying metric data, enabling or disabling metrics
12513 wildcards can be used in metric names to specify a subset of metrics. For
12514 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12515 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12516 values without aggregates <tt>*:</tt> can be used.
12517
12518 The valid names for base metrics are:
12519
12520 <ul>
12521 <li>CPU/Load</li>
12522 <li>CPU/MHz</li>
12523 <li>RAM/Usage</li>
12524 </ul>
12525
12526 The general sequence for collecting and retrieving the metrics is:
12527 <ul>
12528 <li>
12529 Obtain an instance of IPerformanceCollector with
12530 <link to="IVirtualBox::performanceCollector" />
12531 </li>
12532 <li>
12533 Allocate and populate an array with references to objects the metrics
12534 will be collected for. Use references to IHost and IMachine objects.
12535 </li>
12536 <li>
12537 Allocate and populate an array with base metric names the data will be
12538 collected for.
12539 </li>
12540 <li>
12541 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12542 metric data will be collected and stored.
12543 </li>
12544 <li>
12545 Wait for the data to get collected.
12546 </li>
12547 <li>
12548 Allocate and populate an array with references to objects the metric
12549 values will be queried for. You can re-use the object array used for
12550 setting base metrics.
12551 </li>
12552 <li>
12553 Allocate and populate an array with metric names the data will be
12554 collected for. Note that metric names differ from base metric names.
12555 </li>
12556 <li>
12557 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12558 have been collected so far are returned. Note that the values are still
12559 retained internally and data collection continues.
12560 </li>
12561 </ul>
12562
12563 For an example of usage refer to the following files in VirtualBox SDK:
12564 <ul>
12565 <li>
12566 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12567 </li>
12568 <li>
12569 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12570 </li>
12571 </ul>
12572 </desc>
12573
12574 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12575 <desc>
12576 Array of unique names of metrics.
12577
12578 This array represents all metrics supported by the performance
12579 collector. Individual objects do not necessarily support all of them.
12580 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12581 list of supported metrics for a particular object.
12582 </desc>
12583 </attribute>
12584
12585 <method name="getMetrics">
12586 <desc>
12587 Returns parameters of specified metrics for a set of objects.
12588 <note>
12589 @c Null metrics array means all metrics. @c Null object array means
12590 all existing objects.
12591 </note>
12592 </desc>
12593 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12594 <desc>
12595 Metric name filter. Currently, only a comma-separated list of metrics
12596 is supported.
12597 </desc>
12598 </param>
12599 <param name="objects" type="$unknown" dir="in" safearray="yes">
12600 <desc>
12601 Set of objects to return metric parameters for.
12602 </desc>
12603 </param>
12604 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12605 <desc>
12606 Array of returned metric parameters.
12607 </desc>
12608 </param>
12609 </method>
12610
12611 <method name="setupMetrics">
12612 <desc>
12613 Sets parameters of specified base metrics for a set of objects. Returns
12614 an array of <link to="IPerformanceMetric" /> describing the metrics have
12615 been affected.
12616 <note>
12617 @c Null or empty metric name array means all metrics. @c Null or empty
12618 object array means all existing objects. If metric name array contains
12619 a single element and object array contains many, the single metric
12620 name array element is applied to each object array element to form
12621 metric/object pairs.
12622 </note>
12623 </desc>
12624 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12625 <desc>
12626 Metric name filter. Comma-separated list of metrics with wildcard
12627 support.
12628 </desc>
12629 </param>
12630 <param name="objects" type="$unknown" dir="in" safearray="yes">
12631 <desc>
12632 Set of objects to setup metric parameters for.
12633 </desc>
12634 </param>
12635 <param name="period" type="unsigned long" dir="in">
12636 <desc>
12637 Time interval in seconds between two consecutive samples of performance
12638 data.
12639 </desc>
12640 </param>
12641 <param name="count" type="unsigned long" dir="in">
12642 <desc>
12643 Number of samples to retain in performance data history. Older samples
12644 get discarded.
12645 </desc>
12646 </param>
12647 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12648 <desc>
12649 Array of metrics that have been modified by the call to this method.
12650 </desc>
12651 </param>
12652 </method>
12653
12654 <method name="enableMetrics">
12655 <desc>
12656 Turns on collecting specified base metrics. Returns an array of
12657 <link to="IPerformanceMetric" /> describing the metrics have been
12658 affected.
12659 <note>
12660 @c Null or empty metric name array means all metrics. @c Null or empty
12661 object array means all existing objects. If metric name array contains
12662 a single element and object array contains many, the single metric
12663 name array element is applied to each object array element to form
12664 metric/object pairs.
12665 </note>
12666 </desc>
12667 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12668 <desc>
12669 Metric name filter. Comma-separated list of metrics with wildcard
12670 support.
12671 </desc>
12672 </param>
12673 <param name="objects" type="$unknown" dir="in" safearray="yes">
12674 <desc>
12675 Set of objects to enable metrics for.
12676 </desc>
12677 </param>
12678 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12679 <desc>
12680 Array of metrics that have been modified by the call to this method.
12681 </desc>
12682 </param>
12683 </method>
12684
12685 <method name="disableMetrics">
12686 <desc>
12687 Turns off collecting specified base metrics. Returns an array of
12688 <link to="IPerformanceMetric" /> describing the metrics have been
12689 affected.
12690 <note>
12691 @c Null or empty metric name array means all metrics. @c Null or empty
12692 object array means all existing objects. If metric name array contains
12693 a single element and object array contains many, the single metric
12694 name array element is applied to each object array element to form
12695 metric/object pairs.
12696 </note>
12697 </desc>
12698 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12699 <desc>
12700 Metric name filter. Comma-separated list of metrics with wildcard
12701 support.
12702 </desc>
12703 </param>
12704 <param name="objects" type="$unknown" dir="in" safearray="yes">
12705 <desc>
12706 Set of objects to disable metrics for.
12707 </desc>
12708 </param>
12709 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12710 <desc>
12711 Array of metrics that have been modified by the call to this method.
12712 </desc>
12713 </param>
12714 </method>
12715
12716 <method name="queryMetricsData">
12717 <desc>
12718 Queries collected metrics data for a set of objects.
12719
12720 The data itself and related metric information are returned in seven
12721 parallel and one flattened array of arrays. Elements of
12722 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12723 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12724 the same index describe one set of values corresponding to a single
12725 metric.
12726
12727 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12728 start and length of a sub-array is indicated by
12729 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12730 value for metric <tt>metricNames[i]</tt> is at
12731 <tt>returnData[returnIndices[i]]</tt>.
12732
12733 <note>
12734 @c Null or empty metric name array means all metrics. @c Null or empty
12735 object array means all existing objects. If metric name array contains
12736 a single element and object array contains many, the single metric
12737 name array element is applied to each object array element to form
12738 metric/object pairs.
12739 </note>
12740 <note>
12741 Data collection continues behind the scenes after call to
12742 @c queryMetricsData. The return data can be seen as the snapshot of
12743 the current state at the time of @c queryMetricsData call. The
12744 internally kept metric values are not cleared by the call. This makes
12745 possible querying different subsets of metrics or aggregates with
12746 subsequent calls. If periodic querying is needed it is highly
12747 suggested to query the values with @c interval*count period to avoid
12748 confusion. This way a completely new set of data values will be
12749 provided by each query.
12750 </note>
12751 </desc>
12752 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12753 <desc>
12754 Metric name filter. Comma-separated list of metrics with wildcard
12755 support.
12756 </desc>
12757 </param>
12758 <param name="objects" type="$unknown" dir="in" safearray="yes">
12759 <desc>
12760 Set of objects to query metrics for.
12761 </desc>
12762 </param>
12763 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12764 <desc>
12765 Names of metrics returned in @c returnData.
12766 </desc>
12767 </param>
12768 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12769 <desc>
12770 Objects associated with metrics returned in @c returnData.
12771 </desc>
12772 </param>
12773 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12774 <desc>
12775 Units of measurement for each returned metric.
12776 </desc>
12777 </param>
12778 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12779 <desc>
12780 Divisor that should be applied to return values in order to get
12781 floating point values. For example:
12782 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12783 will retrieve the floating point value of i-th sample of the first
12784 metric.
12785 </desc>
12786 </param>
12787 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12788 <desc>
12789 Sequence numbers of the first elements of value sequences of particular metrics
12790 returned in @c returnData. For aggregate metrics it is the sequence number of
12791 the sample the aggregate started calculation from.
12792 </desc>
12793 </param>
12794 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12795 <desc>
12796 Indices of the first elements of value sequences of particular metrics
12797 returned in @c returnData.
12798 </desc>
12799 </param>
12800 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12801 <desc>
12802 Lengths of value sequences of particular metrics.
12803 </desc>
12804 </param>
12805 <param name="returnData" type="long" dir="return" safearray="yes">
12806 <desc>
12807 Flattened array of all metric data containing sequences of values for
12808 each metric.
12809 </desc>
12810 </param>
12811 </method>
12812
12813 </interface>
12814
12815 <module name="VBoxSVC" context="LocalServer">
12816 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12817 namespace="virtualbox.org">
12818 <interface name="IVirtualBox" default="yes"/>
12819 </class>
12820 </module>
12821
12822 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12823 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12824 namespace="virtualbox.org">
12825 <interface name="ISession" default="yes"/>
12826 </class>
12827 </module>
12828
12829</library>
12830
12831</idl>
12832
12833<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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