VirtualBox

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

Last change on this file since 10692 was 10598, checked in by vboxsync, 17 years ago

Performance API documentation update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 368.2 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Frontends/VirtualBox4/include/COMWrappers.xsl =>
41 * out/<platform>/obj/src/VBox/Frontends/VirtualBox4/VirtualBox/include/COMWrappers.h
42 * (smart Qt-based C++ wrapper classes for COM interfaces
43 * of the Main API)
44 *
45 * 7. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
46 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
47 * (Main API TypeLib block for the WiX installer)
48 *
49 Copyright (C) 2006-2007 Sun Microsystems, Inc.
50
51 This file is part of VirtualBox Open Source Edition (OSE), as
52 available from http://www.virtualbox.org. This file is free software;
53 you can redistribute it and/or modify it under the terms of the GNU
54 General Public License (GPL) as published by the Free Software
55 Foundation, in version 2 as it comes in the "COPYING" file of the
56 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
57 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
58
59 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
60 Clara, CA 95054 USA or visit http://www.sun.com if you need
61 additional information or have any questions.
62-->
63
64<idl>
65
66<if target="midl">
67 <cpp line="enum {"/>
68 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
69 <cpp line=" kTypeLibraryMinorVersion = 0"/>
70 <cpp line="};"/>
71</if>
72
73<if target="xpidl">
74 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
75 <cpp>
76// currenty, nsISupportsImpl.h lacks the below-like macros
77#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
78#define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
79 NS_IMPL_THREADSAFE_ADDREF(_class) \
80 NS_IMPL_THREADSAFE_RELEASE(_class) \
81 NS_IMPL_QUERY_INTERFACE1_CI(_class, _interface) \
82 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
83#endif
84#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
85#define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
86 NS_IMPL_THREADSAFE_ADDREF(_class) \
87 NS_IMPL_THREADSAFE_RELEASE(_class) \
88 NS_IMPL_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
89 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
90#endif
91 </cpp>
92</if>
93
94<library
95 name="VirtualBox"
96 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
97 version="1.3"
98 desc="VirtualBox Type Library"
99 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
100 supportsErrorInfo="yes"
101>
102
103 <!--
104 // all common enums
105 /////////////////////////////////////////////////////////////////////////
106 -->
107
108 <enum
109 name="TSBool"
110 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
111 >
112 <desc>
113 Boolean variable having a third state, default.
114 </desc>
115
116 <const name="False" value="0"/>
117 <const name="True" value="1"/>
118 <const name="Default" value="2"/>
119 </enum>
120
121 <enum
122 name="MachineState"
123 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
124 >
125 <desc>
126 Virtual machine execution state. This enumeration represents possible
127 values of the <link to="IMachine::state"/> attribute.
128 </desc>
129
130 <const name="Null" value="0">
131 <desc><tt>null</tt> value. Never used by the API.</desc>
132 </const>
133 <const name="PoweredOff" value="1">
134 <desc>
135 The machine is not running.
136 </desc>
137 </const>
138 <const name="Saved" value="2">
139 <desc>
140 The machine is not currently running, but the execution state
141 of the machine has been saved to an external file when it
142 was running.
143 <note>
144 No any machine settings can be altered when the machine
145 is in this state.
146 </note>
147 </desc>
148 </const>
149 <const name="Aborted" value="3">
150 <desc>
151 A process that run the machine has abnormally terminated.
152 Other than that, this value is equivalent to #PoweredOff.
153 </desc>
154 </const>
155 <const name="Running" value="4">
156 <desc>
157 The machine is currently being executed.
158 <note>
159 This value can be used in comparison expressions:
160 all state values below it describe a virtual machine that is
161 not currently being executed (i.e., it is completely out of
162 action).
163 </note>
164 <note>
165 For whoever decides to touch this enum: In order to keep the
166 aforementioned comparisons valid, this state must immediately
167 preceed the Paused state.
168 </note>
169 </desc>
170 </const>
171 <const name="Paused" value="5">
172 <desc>
173 The execution of the machine has been paused.
174 <note>
175 This value can be used in comparison expressions: all state values
176 above it represent unstable states of the running virtual
177 machine. Unless explicitly stated otherwise, no machine settings can
178 be altered when it is in one of the unstable sates.
179 </note>
180 <note>
181 For whoever decides to touch this enum: In order to keep the
182 aforementioned comparisons valid, this state must immediately
183 follow the Running state.
184 </note>
185 </desc>
186 </const>
187 <const name="Stuck" value="6">
188 <desc>
189 The execution of the machine has reached the Guru Meditaion
190 condition. This condition indicates an internal VMM failure which may
191 happen as a result of either an unhandled low-level virtual hardware
192 exception or one of the recompiler exceptions (such as
193 the <i>too-many-traps</i> condition).
194 </desc>
195 </const>
196 <const name="Starting" value="7">
197 <desc>
198 The machine is being started after
199 <link to="IConsole::powerUp">powering it on</link> from a
200 zero execution state.
201 </desc>
202 </const>
203 <const name="Stopping" value="8">
204 <desc>
205 The machine is being normally stopped
206 (after explicitly <link to="IConsole::powerDown">powering it off</link>,
207 or after the guest OS has initiated a shutdown sequence).
208 </desc>
209 </const>
210 <const name="Saving" value="9">
211 <desc>
212 The machine is saving its execution state to a file as a
213 result of calling <link to="IConsole::saveState"/> or an online
214 snapshot of the machine is being taken using
215 <link to="IConsole::takeSnapshot"/>.
216 </desc>
217 </const>
218 <const name="Restoring" value="10">
219 <desc>
220 The execution state of the machine is being restored from a file
221 after <link to="IConsole::powerUp">powering it on</link> from
222 a saved execution state.
223 </desc>
224 </const>
225 <const name="Discarding" value="11">
226 <desc>
227 A snapshot of the machine is being discarded after calling
228 <link to="IConsole::discardSnapshot"/> or its current state is
229 being discarded after <link to="IConsole::discardCurrentState"/>.
230 </desc>
231 </const>
232 </enum>
233
234 <enum
235 name="SessionState"
236 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
237 >
238 <desc>
239 Session state. This enumeration represents possible values of
240 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
241 attributes. Idividual value descriptions contain the appropriate
242 meaning for every case.
243 </desc>
244
245 <const name="Null" value="0">
246 <desc><tt>null</tt> value. Never used by the API.</desc>
247 </const>
248 <const name="Closed" value="1">
249 <desc>
250 The machine has no open sessions (<link to="IMachine::sessionState"/>);
251 the session is closed (<link to="ISession::state"/>)
252 </desc>
253 </const>
254 <const name="Open" value="2">
255 <desc>
256 The machine has an open direct session (<link to="IMachine::sessionState"/>);
257 the session is open (<link to="ISession::state"/>)
258 </desc>
259 </const>
260 <const name="Spawning" value="3">
261 <desc>
262 A new (direct) session is being opened for the machine
263 as a result of <link to="IVirtualBox::openRemoteSession()"/>
264 call (<link to="IMachine::sessionState"/>);
265 the session is currently being opened
266 as a result of <link to="IVirtualBox::openRemoteSession()"/>
267 call (<link to="ISession::state"/>)
268 </desc>
269 </const>
270 <const name="Closing" value="4">
271 <desc>
272 The direct session is being closed (<link to="IMachine::sessionState"/>);
273 the session is being closed (<link to="ISession::state"/>)
274 </desc>
275 </const>
276 </enum>
277
278 <enum
279 name="SessionType"
280 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
281 >
282 <desc>
283 Session type. This enumeration represents possible values of the
284 <link to="ISession::type"/> attribute.
285 </desc>
286
287 <const name="Null" value="0">
288 <desc><tt>null</tt> value. Never used by the API.</desc>
289 </const>
290 <const name="Direct" value="1">
291 <desc>
292 Direct session
293 (opened by <link to="IVirtualBox::openSession()"/>)
294 </desc>
295 </const>
296 <const name="Remote" value="2">
297 <desc>
298 Remote session
299 (opened by <link to="IVirtualBox::openRemoteSession()"/>)
300 </desc>
301 </const>
302 <const name="Existing" value="3">
303 <desc>
304 Existing session
305 (opened by <link to="IVirtualBox::openExistingSession()"/>)
306 </desc>
307 </const>
308 </enum>
309
310 <enum
311 name="DeviceType"
312 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
313 >
314 <desc>
315 Device type.
316 </desc>
317 <const name="Null" value="0">
318 <desc>
319 <tt>null</tt> value which may also mean "no device".
320 <note>
321 This value is not allowed for
322 <link to="IConsole::getDeviceActivity"/>
323 </note>
324 </desc>
325 </const>
326 <const name="Floppy" value="1">
327 <desc>Floppy device.</desc>
328 </const>
329 <const name="DVD" value="2">
330 <desc>CD/DVD-ROM device.</desc>
331 </const>
332 <const name="HardDisk" value="3">
333 <desc>Hard disk device.</desc>
334 </const>
335 <const name="Network" value="4">
336 <desc>Network device.</desc>
337 </const>
338 <const name="USB" value="5">
339 <desc>USB device.</desc>
340 </const>
341 <const name="SharedFolder" value="6">
342 <desc>Shared folder device.</desc>
343 </const>
344 </enum>
345
346 <enum
347 name="DeviceActivity"
348 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
349 >
350 <desc>
351 Device activity for <link to="IConsole::getDeviceActivity"/>.
352 </desc>
353
354 <const name="Null" value="0"/>
355 <const name="Idle" value="1"/>
356 <const name="Reading" value="2"/>
357 <const name="Writing" value="3"/>
358 </enum>
359
360 <enum
361 name="ResourceUsage"
362 uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809"
363 >
364 <desc>
365 Usage type constants for
366 <link to="IVirtualBox::getDVDImageUsage"/> and
367 <link to="IVirtualBox::getFloppyImageUsage"/>.
368 </desc>
369
370 <const name="Null" value="0">
371 <desc><tt>null</tt> value. Never used by the API.</desc>
372 </const>
373 <const name="Permanent" value="1">
374 <desc>
375 Scopes the VMs that use the resource permanently
376 (the information about this usage is stored in the VM
377 settings file).
378 </desc>
379 </const>
380 <const name="Temporary" value="2">
381 <desc>
382 Scopes the VMs that are temporarily using the resource
383 (the information about the usage is not yet saved in the VM
384 settings file). Temporary usage can take place only in the
385 context of an open session.
386 </desc>
387 </const>
388 <const name="All" value="3">
389 <desc>
390 Combines Permanent and Temporary.
391 </desc>
392 </const>
393 </enum>
394
395 <enum
396 name="StorageBus"
397 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
398 >
399 <desc>Interface bus type for storage devices.</desc>
400
401 <const name="Null" value="0">
402 <desc><tt>null</tt> value. Never used by the API.</desc>
403 </const>
404
405 <const name="IDE" value="1"/>
406 <const name="SATA" value="2"/>
407 </enum>
408
409 <enum
410 name="ClipboardMode"
411 uuid="33364716-4008-4701-8f14-be0fa3d62950"
412 >
413 <desc>
414 Host-Guest clipboard interchange mode.
415 </desc>
416
417 <const name="Disabled" value="0"/>
418 <const name="HostToGuest" value="1"/>
419 <const name="GuestToHost" value="2"/>
420 <const name="Bidirectional" value="3"/>
421 </enum>
422
423 <enum
424 name="Scope"
425 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
426 >
427 <desc>
428 Scope of the operation.
429
430 A generic enumeration used in various methods to define the action or
431 argument scope.
432 </desc>
433
434 <const name="Global" value="0"/>
435 <const name="Machine" value="1"/>
436 <const name="Session" value="2"/>
437 </enum>
438
439 <enum
440 name="GuestStatisticType"
441 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
442 >
443 <desc>
444 Statistics type for <link to="IGuest::getStatistic"/>.
445 </desc>
446
447 <const name="CPULoad_Idle" value="0">
448 <desc>
449 Idle CPU load (0-100%) for last interval.
450 </desc>
451 </const>
452 <const name="CPULoad_Kernel" value="1">
453 <desc>
454 Kernel CPU load (0-100%) for last interval.
455 </desc>
456 </const>
457 <const name="CPULoad_User" value="2">
458 <desc>
459 User CPU load (0-100%) for last interval.
460 </desc>
461 </const>
462 <const name="Threads" value="3">
463 <desc>
464 Total number of threads in the system.
465 </desc>
466 </const>
467 <const name="Processes" value="4">
468 <desc>
469 Total number of processes in the system.
470 </desc>
471 </const>
472 <const name="Handles" value="5">
473 <desc>
474 Total number of handles in the system.
475 </desc>
476 </const>
477 <const name="MemoryLoad" value="6">
478 <desc>
479 Memory load (0-100%).
480 </desc>
481 </const>
482 <const name="PhysMemTotal" value="7">
483 <desc>
484 Total physical memory in megabytes.
485 </desc>
486 </const>
487 <const name="PhysMemAvailable" value="8">
488 <desc>
489 Free physical memory in megabytes.
490 </desc>
491 </const>
492 <const name="PhysMemBalloon" value="9">
493 <desc>
494 Ballooned physical memory in megabytes.
495 </desc>
496 </const>
497 <const name="MemCommitTotal" value="10">
498 <desc>
499 Total amount of memory in the committed state in megabytes.
500 </desc>
501 </const>
502 <const name="MemKernelTotal" value="11">
503 <desc>
504 Total amount of memory used by the guest OS's kernel in megabytes.
505 </desc>
506 </const>
507 <const name="MemKernelPaged" value="12">
508 <desc>
509 Total amount of paged memory used by the guest OS's kernel in megabytes.
510 </desc>
511 </const>
512 <const name="MemKernelNonpaged" value="13">
513 <desc>
514 Total amount of nonpaged memory used by the guest OS's kernel in megabytes.
515 </desc>
516 </const>
517 <const name="MemSystemCache" value="14">
518 <desc>
519 Total amount of memory used by the guest OS's system cache in megabytes.
520 </desc>
521 </const>
522 <const name="PageFileSize" value="15">
523 <desc>
524 Pagefile size in megabytes.
525 </desc>
526 </const>
527 <const name="SampleNumber" value="16">
528 <desc>
529 Statistics sample number
530 </desc>
531 </const>
532 <const name="MaxVal" value="17"/>
533 </enum>
534
535 <enum
536 name="BIOSBootMenuMode"
537 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
538 >
539 <desc>
540 BIOS boot menu mode.
541 </desc>
542
543 <const name="Disabled" value="0"/>
544 <const name="MenuOnly" value="1"/>
545 <const name="MessageAndMenu" value="2"/>
546 </enum>
547
548 <enum
549 name="IDEControllerType"
550 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
551 >
552 <desc>
553 IDE controller type.
554 </desc>
555
556 <const name="Null" value="0">
557 <desc><tt>null</tt> value. Never used by the API.</desc>
558 </const>
559 <const name="PIIX3" value="1"/>
560 <const name="PIIX4" value="2"/>
561 </enum>
562
563 <enum
564 name="DriveState"
565 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
566 >
567 <const name="Null" value="0">
568 <desc><tt>null</tt> value. Never used by the API.</desc>
569 </const>
570 <const name="NotMounted" value="1"/>
571 <const name="ImageMounted" value="2"/>
572 <const name="HostDriveCaptured" value="3"/>
573 </enum>
574
575 <!--
576 // IVirtualBoxErrorInfo
577 /////////////////////////////////////////////////////////////////////////
578 -->
579
580 <interface
581 name="IVirtualBoxErrorInfo" extends="$errorinfo"
582 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
583 supportsErrorInfo="no"
584 wsmap="suppress"
585 >
586 <desc>
587 The IVirtualBoxErrorInfo interface represents extended error information.
588
589 Extended error information can be set by VirtualBox components after
590 unsuccessful or partially successful method invocation. This information
591 can be retrievefd by the calling party as an IVirtualBoxErrorInfo object
592 and then shown to the client in addition to the plain 32-bit result code.
593
594 In MS COM, this interface extends the IErrorInfo interface,
595 in XPCOM, it extends the nsIException interface. In both cases,
596 it provides a set of common attributes to retrieve error
597 information.
598
599 Sometimes invocation of some component's method may involve methods of
600 other components that may also fail (independently of this method's
601 failure), or a series of non-fatal errors may precede a fatal error that
602 causes method failure. In cases like that, it may be desirable to preserve
603 information about all errors happened during method invocation and deliver
604 it to the caller. The <link to="#next"/> attribute is intended
605 specifically for this purpose and allows to represent a chain of errors
606 through a single IVirtualBoxErrorInfo object set after method invocation.
607
608 Note that errors are stored to a chain in the reverse order, i.e. the
609 initial error object you query right after method invocation is the last
610 error set by the callee, the object it points to in the @a next attribute
611 is the previous error and so on, up to the first error (which is the last
612 in the chain).
613 </desc>
614
615 <attribute name="resultCode" type="result" readonly="yes">
616 <desc>
617 Result code of the error.
618 Usually, it will be the same as the result code returned
619 by the method that provided this error information, but not
620 always. For example, on Win32, CoCreateInstance() will most
621 likely return E_NOINTERFACE upon unsuccessful component
622 instantiation attempt, but not the value the component factory
623 returned.
624 <note>
625 In MS COM, there is no equivalent.
626 In XPCOM, it is the same as nsIException::result.
627 </note>
628 </desc>
629 </attribute>
630
631 <attribute name="interfaceID" type="uuid" readonly="yes">
632 <desc>
633 UUID of the interface that defined the error.
634 <note>
635 In MS COM, it is the same as IErrorInfo::GetGUID.
636 In XPCOM, there is no equivalent.
637 </note>
638 </desc>
639 </attribute>
640
641 <attribute name="component" type="wstring" readonly="yes">
642 <desc>
643 Name of the component that generated the error.
644 <note>
645 In MS COM, it is the same as IErrorInfo::GetSource.
646 In XPCOM, there is no equivalent.
647 </note>
648 </desc>
649 </attribute>
650
651 <attribute name="text" type="wstring" readonly="yes">
652 <desc>
653 Text description of the error.
654 <note>
655 In MS COM, it is the same as IErrorInfo::GetDescription.
656 In XPCOM, it is the same as nsIException::message.
657 </note>
658 </desc>
659 </attribute>
660
661 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
662 <desc>
663 Next error object if there is any, or @c null otherwise.
664 <note>
665 In MS COM, there is no equivalent.
666 In XPCOM, it is the same as nsIException::inner.
667 </note>
668 </desc>
669 </attribute>
670
671 </interface>
672
673
674 <!--
675 // IVirtualBox
676 /////////////////////////////////////////////////////////////////////////
677 -->
678
679 <interface
680 name="IVirtualBoxCallback" extends="$unknown"
681 uuid="ee95ffc2-b6c6-4ce8-9e9e-ceadbb5019fe"
682 wsmap="suppress"
683 >
684 <method name="onMachineStateChange">
685 <desc>
686 The execution state of the given machine has changed.
687 <see>IMachine::state</see>
688 </desc>
689 <param name="machineId" type="uuid" dir="in">
690 <desc>ID of the machine this event relates to.</desc>
691 </param>
692 <param name="state" type="MachineState" dir="in">
693 <desc>New execution state.</desc>
694 </param>
695 </method>
696
697 <method name="onMachineDataChange">
698 <desc>
699 Any of the settings of the given machine has changed.
700 </desc>
701 <param name="machineId" type="uuid" dir="in">
702 <desc>ID of the machine this event relates to.</desc>
703 </param>
704 </method>
705
706 <method name="onExtraDataCanChange">
707 <desc>
708 Notification when someone tries to change extra data for
709 either the given machine or (if null) global extra data.
710 This gives the chance to veto against changes.
711 </desc>
712 <param name="machineId" type="uuid" dir="in">
713 <desc>
714 ID of the machine this event relates to
715 (null ID for global extra data change requests).
716 </desc>
717 </param>
718 <param name="key" type="wstring" dir="in">
719 <desc>
720 Extra data key for the attempted write.
721 </desc>
722 </param>
723 <param name="value" type="wstring" dir="in">
724 <desc>
725 Extra data value for the given key.
726 </desc>
727 </param>
728 <param name="error" type="wstring" dir="out">
729 <desc>
730 Optional error message describing the reason of the
731 veto (ignored if this notification returns @c true).
732 </desc>
733 </param>
734 <param name="allowChange" type="boolean" dir="return">
735 <desc>
736 Flag to indicate whether the callee agrees (@ true)
737 or vetoes against the change (@ false).
738 </desc>
739 </param>
740 </method>
741
742 <method name="onExtraDataChange">
743 <desc>
744 Notification when machine specific or global extra data
745 has changed.
746 </desc>
747 <param name="machineId" type="uuid" dir="in">
748 <desc>
749 ID of the machine this event relates to.
750 Null for global extra data changes.
751 </desc>
752 </param>
753 <param name="key" type="wstring" dir="in">
754 <desc>
755 Extra data key that has changed.
756 </desc>
757 </param>
758 <param name="value" type="wstring" dir="in">
759 <desc>
760 Extra data value for the given key.
761 </desc>
762 </param>
763 </method>
764
765 <method name="onMediaRegistered">
766 <desc>
767 The given media was registered or unregistered
768 within this VirtualBox installation.
769
770 The @a mediaType parameter describes what type of
771 media the specified @a mediaId refers to. Possible
772 values are:
773
774 - <link to="DeviceType::HardDisk"/>: the media is a hard disk
775 that, if registered, can be obtained using the
776 <link to="IVirtualBox::getHardDisk"/> call.
777 - <link to="DeviceType::DVD"/>: the media is a CD/DVD image
778 that, if registered, can be obtained using the
779 <link to="IVirtualBox::getDVDImage"/> call.
780 - <link to="DeviceType::Floppy"/>: the media is a Floppy image
781 that, if registered, can be obtained using the
782 <link to="IVirtualBox::getFloppyImage"/> call.
783
784 Note that if this is a deregistration notification,
785 there is no way to access the object representing the
786 unregistered media. It is supposed that the
787 application will do required cleanup based on the @a
788 mediaId value.
789 </desc>
790 <param name="mediaId" type="uuid" dir="in">
791 <desc>ID of the media this event relates to.</desc>
792 </param>
793 <param name="mediaType" type="DeviceType" dir="in">
794 <desc>Type of the media this event relates to.</desc>
795 </param>
796 <param name="registered" type="boolean" dir="in">
797 <desc>
798 If true, the media was registered, otherwise it was
799 unregistered.
800 </desc>
801 </param>
802 </method>
803
804 <method name="onMachineRegistered">
805 <desc>
806 The given machine was registered or unregistered
807 within this VirtualBox installation.
808 </desc>
809 <param name="machineId" type="uuid" dir="in">
810 <desc>ID of the machine this event relates to.</desc>
811 </param>
812 <param name="registered" type="boolean" dir="in">
813 <desc>
814 If true, the machine was registered, otherwise it was
815 unregistered.
816 </desc>
817 </param>
818 </method>
819
820 <method name="onSessionStateChange">
821 <desc>
822 The state of the session for the given machine was changed.
823 <see>IMachine::sessionState</see>
824 </desc>
825 <param name="machineId" type="uuid" dir="in">
826 <desc>ID of the machine this event relates to.</desc>
827 </param>
828 <param name="state" type="SessionState" dir="in">
829 <desc>New session state.</desc>
830 </param>
831 </method>
832
833 <method name="onSnapshotTaken">
834 <desc>
835 A new snapshot of the machine has been taken.
836 <see>ISnapshot</see>
837 </desc>
838 <param name="machineId" type="uuid" dir="in">
839 <desc>ID of the machine this event relates to.</desc>
840 </param>
841 <param name="snapshotId" type="uuid" dir="in">
842 <desc>ID of the new snapshot.</desc>
843 </param>
844 </method>
845
846 <method name="onSnapshotDiscarded">
847 <desc>
848 Snapshot of the given machine has been discarded.
849
850 <note>
851 This notification is delivered <b>after</b> the snapshot
852 object has been uninitialized on the server (so that any
853 attempt to call its methods will return an error).
854 </note>
855
856 <see>ISnapshot</see>
857 </desc>
858 <param name="machineId" type="uuid" dir="in">
859 <desc>ID of the machine this event relates to.</desc>
860 </param>
861 <param name="snapshotId" type="uuid" dir="in">
862 <desc>
863 ID of the discarded snapshot. <tt>null</tt> means the
864 current machine state has been discarded (restored from
865 the current snapshot).
866 </desc>
867 </param>
868 </method>
869
870 <method name="onSnapshotChange">
871 <desc>
872 Snapshot properties (name and/or description) have been changed.
873 <see>ISnapshot</see>
874 </desc>
875 <param name="machineId" type="uuid" dir="in">
876 <desc>ID of the machine this event relates to.</desc>
877 </param>
878 <param name="snapshotId" type="uuid" dir="in">
879 <desc>ID of the changed snapshot.</desc>
880 </param>
881 </method>
882
883 </interface>
884
885 <interface
886 name="IVirtualBox" extends="$dispatched"
887 uuid="557a07bc-e6ae-4520-a361-4a8493199137"
888 wsmap="managed"
889 >
890 <desc>
891 The IVirtualBox interface represents the main interface exposed by the
892 product that provides virtual machine management.
893
894 An instance of IVirtualBox is required for the product to do anything
895 useful. Even though the interface does not expose this, internally,
896 IVirtualBox is implemented as a singleton and actually lives in the
897 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
898 IVirtualBox can track the state of all virtual machines on a particular
899 host, regardless of which frontend started them.
900
901 To enumerate all the virtual machines on the host, use the
902 <link to="IVirtualBox::machines"/> attribute.
903 </desc>
904
905 <attribute name="version" type="wstring" readonly="yes">
906 <desc>
907 A string representing the version number of the product. The
908 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
909 last number represents the build number and will frequently change.
910 </desc>
911 </attribute>
912
913 <attribute name="packageType" type="wstring" readonly="yes">
914 <desc>
915 A string representing the package type of this product. The
916 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
917 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
918 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
919 this.
920 </desc>
921 </attribute>
922
923 <attribute name="homeFolder" type="wstring" readonly="yes">
924 <desc>
925 Full path to the directory where the global settings file,
926 <tt>VirtualBox.xml</tt>, is stored.
927
928 In this version of VirtualBox, the value of this property is
929 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
930 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
931 as determined by the host OS), and cannot be changed.
932
933 This path is also used as the base to resolve relative paths in
934 places where relative paths are allowed (unless otherwise
935 expressly indicated).
936 </desc>
937 </attribute>
938
939 <attribute name="settingsFilePath" type="wstring" readonly="yes">
940 <desc>
941 Full name of the global settings file.
942 The value of this property corresponds to the value of
943 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
944 </desc>
945 </attribute>
946
947 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
948 <desc>
949 Current version of the format of the global VirtualBox settings file
950 (<tt>VirtualBox.xml</tt>).
951
952 The version string has the following format:
953 <pre>
954 x.y-platform
955 </pre>
956 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
957 versions, and <tt>platform</tt> is the platform identifier.
958
959 The current version usually matches the value of the
960 <link to="#settingsFormatVersion"/> attribute unless the
961 settings file was created by an older version of VirtualBox and there
962 was a change of the settings file format since then.
963
964 Note that VirtualBox automatically converts settings files from older
965 versions to the most recent version when reading them (usually at
966 VirtualBox startup) but it doesn't save the changes back until
967 you call a method that implicitly saves settings (such as
968 <link to="#setExtraData()"/>) or call <link to="#saveSettings()"/>
969 explicitly. Therefore, if the value of this attribute differs from the
970 value of <link to="#settingsFormatVersion"/>, then it
971 means that the settings file was converted but the result of the
972 conversion is not yet saved to disk.
973
974 The above feature may be used by interactive front-ends to inform users
975 about the settings file format change and offer them to explicitly save
976 all converted settings files (the global and VM-specific ones),
977 optionally create bacup copies of the old settings files before saving,
978 etc.
979
980 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
981 </desc>
982 </attribute>
983
984 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
985 <desc>
986 Most recent version of the settings file format.
987
988 The version string has the following format:
989 <pre>
990 x.y-platform
991 </pre>
992 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
993 versions, and <tt>platform</tt> is the platform identifier.
994
995 VirtualBox uses this version of the format when saving settings files
996 (either as a result of method calls that require to save settings or as
997 a result of an explicit call to <link to="#saveSettings()"/>).
998
999 <see>settingsFileVersion</see>
1000 </desc>
1001 </attribute>
1002
1003 <attribute name="host" type="IHost" readonly="yes">
1004 <desc>Associated host object.</desc>
1005 </attribute>
1006
1007 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1008 <desc>Associated system information object.</desc>
1009 </attribute>
1010
1011 <attribute name="machines" type="IMachineCollection" readonly="yes">
1012 <desc>
1013 Collection of machine objects registered within this VirtualBox
1014 instance.
1015 </desc>
1016 </attribute>
1017
1018 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1019 <desc>
1020 Array of machine objects registered within this VirtualBox instance.
1021 </desc>
1022 </attribute>
1023
1024 <attribute name="hardDisks" type="IHardDiskCollection" readonly="yes">
1025 <desc>
1026 Collection of hard disk objects registered within this VirtualBox
1027 instance.
1028
1029 This collection contains only "top-level" (basic or independent) hard
1030 disk images, but not differencing ones. All differencing images of the
1031 given top-level image (i.e. all its children) can be enumerated using
1032 <link to="IHardDisk::children"/>.
1033 </desc>
1034 </attribute>
1035
1036 <attribute name="DVDImages" type="IDVDImageCollection" readonly="yes"/>
1037
1038 <attribute name="FloppyImages" type="IFloppyImageCollection" readonly="yes"/>
1039
1040 <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
1041
1042 <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
1043
1044 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
1045 <desc>
1046 Collection of global shared folders. Global shared folders are
1047 available to all virtual machines.
1048
1049 New shared folders are added to the collection using
1050 <link to="#createSharedFolder"/>. Existing shared folders can be
1051 removed using <link to="#removeSharedFolder"/>.
1052
1053 <note>
1054 In the current version of the product, global shared folders are not
1055 implemented and therefore this collection is always empty.
1056 </note>
1057 </desc>
1058 </attribute>
1059
1060 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1061 <desc>
1062 Associated performance collector object.
1063 </desc>
1064 </attribute>
1065
1066 <method name="createMachine">
1067 <desc>
1068 Creates a new virtual machine.
1069
1070 The new machine will have "empty" default settings and will not
1071 yet be registered. The typical sequence to create a virtual machine
1072 is therefore something like this:
1073
1074 <ol>
1075 <li>Call this method (IVirtualBox::createMachine) to have a new
1076 machine created. The machine object returned is "mutable", i.e.
1077 automatically locked for the current session, as if
1078 <link to="#openSession" /> had been called on it.</li>
1079
1080 <li>Assign meaningful settings to the new machine by calling the
1081 respective methods.</li>
1082
1083 <li>Call <link to="IMachine::saveSettings" /> to have the settings written
1084 to the machine's XML settings file. The configuration of the newly
1085 created machine will not be saved to disk (and the settings subfolder
1086 and file, as described below, will not be created) until this method
1087 is called.</li>
1088
1089 <li>Call <link to="#registerMachine" /> to have the
1090 machine show up in the list of machines registered with VirtualBox.</li>
1091 </ol>
1092
1093 Every machine has a <i>settings file</i> that is used to store
1094 the machine configuration. This file is stored in the directory
1095 called <i>machine settings subfolder</i>. Unless specified otherwise,
1096 both the subfolder and the settings file will have a name that
1097 corresponds to the name of the virtual machine. You can specify
1098 where to create the machine settings subfolder using the @a
1099 baseFolder argument. The base folder can be absolute (full path)
1100 or relative to the <link to="IVirtualBox::homeFolder">
1101 VirtualBox home directory</link>.
1102
1103 If a null or empty string is given as the base folder (which is
1104 recommended), the <link to="ISystemProperties::defaultMachineFolder">
1105 default machine settings folder</link> will be used as the base
1106 folder to create the machine settings subfolder and file. In
1107 any case, the full path to the settings file will look like:
1108 <pre>
1109 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1110 </pre>
1111
1112 Optionally the UUID of the machine can be predefined. If this is
1113 not desired (i.e. a new UUID should be generated), pass just an
1114 empty or null UUID.
1115
1116 You should also specify a valid name for the machine.
1117 See the <link to="IMachine::name"/> property
1118 description for more details about the machine name.
1119
1120 The created machine remains
1121 unregistered until you call <link to="#registerMachine()"/>.
1122
1123 <note>
1124 There is no way to change the name of the settings file or
1125 subfolder of the created machine directly.
1126 </note>
1127 </desc>
1128 <param name="baseFolder" type="wstring" dir="in">
1129 <desc>
1130 Name of the folder where to create the machine settings
1131 subfolder containing the settings file.
1132 </desc>
1133 </param>
1134 <param name="name" type="wstring" dir="in">
1135 <desc>Machine name.</desc>
1136 </param>
1137 <param name="id" type="uuid" dir="in">
1138 <desc>
1139 UUID of the newly created VM, when non-null or non-empty.
1140 Otherwise a UUID is automatically generated.
1141 </desc>
1142 </param>
1143 <param name="machine" type="IMachine" dir="return">
1144 <desc>Created machine object.</desc>
1145 </param>
1146 </method>
1147
1148 <method name="createLegacyMachine">
1149 <desc>
1150 Creates a new virtual machine in "legacy" mode, using the
1151 specified settings file to store machine settings.
1152
1153 As opposed to machines created by <link to="#createMachine()"/>,
1154 the settings file of the machine created in "legacy" mode
1155 is not automatically renamed when the machine name is
1156 changed -- it will always remain the same as specified in this
1157 method call.
1158
1159 The specified settings file name can be absolute
1160 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1161 VirtualBox home directory</link>. If the file name doesn't
1162 contain an extension, the default extension (.xml) will be
1163 appended.
1164
1165 Optionally the UUID of the machine can be predefined. If this is
1166 not desired (i.e. a new UUID should be generated), pass just an
1167 empty or null UUID.
1168
1169 Note that the configuration of the newly created machine is not
1170 saved to disk (and therefore no settings file is created)
1171 until <link to="IMachine::saveSettings()"/> is called. If the
1172 specified settings file already exists,
1173 <link to="IMachine::saveSettings()"/> will return an error.
1174
1175 You should also specify a valid name for the machine.
1176 See the <link to="IMachine::name"/> property
1177 description for more details about the machine name.
1178
1179 The created machine remains
1180 unregistered until you call <link to="#registerMachine()"/>.
1181
1182 @deprecated This method may be removed later. It is better
1183 to use <link to="IVirtualBox::createMachine()"/>.
1184
1185 <note>
1186 There is no way to change the name of the settings file
1187 of the created machine.
1188 </note>
1189 </desc>
1190 <param name="settingsFile" type="wstring" dir="in">
1191 <desc>
1192 Name of the file where to store machine settings.
1193 </desc>
1194 </param>
1195 <param name="name" type="wstring" dir="in">
1196 <desc>Machine name.</desc>
1197 </param>
1198 <param name="id" type="uuid" dir="in">
1199 <desc>
1200 UUID of the newly created VM, when non-null or non-empty.
1201 Otherwise a UUID is automatically generated.
1202 </desc>
1203 </param>
1204 <param name="machine" type="IMachine" dir="return">
1205 <desc>Created machine object.</desc>
1206 </param>
1207 </method>
1208
1209 <method name="openMachine">
1210 <desc>
1211 Opens a virtual machine from the existing settings file.
1212 The opened machine remains unregistered until you call
1213 <link to="#registerMachine()"/>.
1214
1215 The specified settings file name can be absolute
1216 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1217 VirtualBox home directory</link>. This file must exist
1218 and must be a valid machine settings file whose contents
1219 will be used to construct the machine object.
1220
1221 @deprecated Will be removed soon.
1222 </desc>
1223 <param name="settingsFile" type="wstring" dir="in">
1224 <desc>
1225 Name of the machine settings file.
1226 </desc>
1227 </param>
1228 <param name="machine" type="IMachine" dir="return">
1229 <desc>Opened machine object.</desc>
1230 </param>
1231 <note>
1232 <link to="IMachine::settingsModified"/> will return
1233 false for the created machine, until any of machine settigs
1234 are changed.
1235 </note>
1236 </method>
1237
1238 <method name="registerMachine">
1239 <desc>
1240
1241 Registers the machine previously created using
1242 <link to="#createMachine()"/> or opened using
1243 <link to="#openMachine()"/> within this VirtualBox installation. After
1244 successful method invocation, the
1245 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1246 to all registered callbacks.
1247
1248 <note>
1249 This method implicitly calls <link to="IMachine::saveSettings"/>
1250 to save all current machine settings before registering it.
1251 </note>
1252
1253 </desc>
1254 <param name="machine" type="IMachine" dir="in"/>
1255 </method>
1256
1257 <method name="getMachine">
1258 <desc>
1259 Attempts to find a virtual machine given its UUID.
1260 To look up a machine by name, use <link to="IVirtualBox::findMachine" /> instead.
1261 </desc>
1262 <param name="id" type="uuid" dir="in"/>
1263 <param name="machine" type="IMachine" dir="return"/>
1264 </method>
1265
1266 <method name="findMachine">
1267 <desc>
1268 Attempts to find a virtual machine given its name.
1269 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> instead.
1270 </desc>
1271 <param name="name" type="wstring" dir="in"/>
1272 <param name="machine" type="IMachine" dir="return"/>
1273 </method>
1274
1275 <method name="unregisterMachine">
1276 <desc>
1277
1278 Unregisters the machine previously registered using
1279 <link to="#registerMachine"/>. After successful method invocation, the
1280 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1281 to all registered callbacks.
1282
1283 <note>
1284 The specified machine must not be in the Saved state, have an open
1285 (or a spawning) direct session associated with it, have snapshots or
1286 have hard disks attached.
1287 </note>
1288
1289 <note>
1290 This method implicitly calls <link to="IMachine::saveSettings"/> to
1291 save all current machine settings before unregistering it.
1292 </note>
1293
1294 <note>
1295 If the given machine is inaccessible (see
1296 <link to="IMachine::accessible"/>), it will be unregistered and
1297 fully uninitialized right afterwards. As a result, the returned
1298 machine object will be unusable and an attempt to call
1299 <b>any</b> method will return the "Object not ready" error.
1300 </note>
1301
1302 </desc>
1303 <param name="id" type="uuid" dir="in">
1304 <desc>UUID of the machine to unregister.</desc>
1305 </param>
1306 <param name="machine" type="IMachine" dir="return">
1307 <desc>Unregistered machine object.</desc>
1308 </param>
1309 </method>
1310
1311 <method name="createHardDisk">
1312 <desc>
1313
1314 Creates a new unregistered hard disk that will use the given
1315 storage type.
1316
1317 Most properties of the created hard disk object are
1318 uninitialized. Valid values must be assigned to them (and probalby
1319 some actions performed) to make the actual usage of this hard disk
1320 (<link to="#registerHardDisk()">register</link>, attach to a virtual
1321 machine, etc.). See the description of <link to="IHardDisk"/> and
1322 descriptions of storage type specific interfaces for more information.
1323
1324 <note>
1325 For hard disks using
1326 the <link
1327 to="HardDiskStorageType::VirtualDiskImage">VirtualDiskImage</link>
1328 storage type, an image file is not actually created until you call
1329 <link to="IVirtualDiskImage::createDynamicImage()"/> or
1330 <link to="IVirtualDiskImage::createFixedImage()"/>.
1331 </note>
1332
1333 </desc>
1334
1335 <param name="storageType" type="HardDiskStorageType" dir="in">
1336 <desc>Storage type of the hard disk image to create.</desc>
1337 </param>
1338 <param name="hardDisk" type="IHardDisk" dir="return">
1339 <desc>Created hard disk object of the given storage type.</desc>
1340 </param>
1341
1342 </method>
1343
1344 <method name="openHardDisk">
1345 <desc>
1346
1347 Opens a hard disk from an existing location.
1348
1349 This method tries to guess the
1350 <link to="HardDiskStorageType">hard disk storage type</link> from the
1351 format of the location string and from the contents of the resource the
1352 location points to. Currently, a <i>file path</i> is the only
1353 supported format for the location string which must point to either a
1354 VDI file or to a VMDK file. On success, an IHardDisk object will be
1355 returned that also implements the corresponding interface
1356 (IVirtualDiskImage or IVMDKImage, respectively). The
1357 <link to="IHardDisk::storageType"/> property may also be used to
1358 determine the storage type of the returned object (instead of trying
1359 to query one of these interfaces).
1360
1361 <note>
1362 The specified file path can be absolute (full path) or relative to
1363 the <link to="IVirtualBox::homeFolder">VirtualBox home
1364 directory</link>. If only a file name without any path is given,
1365 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
1366 folder</link> will be used as a path to the image file.
1367 </note>
1368
1369 The opened hard disk remains unregistered
1370 until <link to="#registerHardDisk()"/> is called.
1371
1372 </desc>
1373
1374 <param name="location" type="wstring" dir="in">
1375 <desc>
1376 Location of the resource that contains a valid hard disk.
1377 </desc>
1378 </param>
1379 <param name="hardDisk" type="IHardDisk" dir="return">
1380 <desc>Opened hard disk object.</desc>
1381 </param>
1382 </method>
1383
1384 <method name="openVirtualDiskImage">
1385 <desc>
1386
1387 Opens a hard disk from an existing Virtual Disk Image file.
1388 The opened hard disk remains unregistered
1389 until <link to="#registerHardDisk()"/> is called.
1390
1391 @deprecated Use <link to="IVirtualBox::openHardDisk()"/> instead.
1392
1393 <note>Opening differencing images is not supported.</note>
1394
1395 <note>The specified file path can be absolute (full path) or
1396 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1397 home directory</link>. If only a file name without any path is
1398 given, the <link to="ISystemProperties::defaultVDIFolder">
1399 default VDI folder</link> will be used as a path to the image
1400 file.</note>
1401
1402 </desc>
1403
1404 <param name="filePath" type="wstring" dir="in">
1405 <desc>
1406 Name of the file that contains a valid Virtual Disk Image.
1407 </desc>
1408 </param>
1409 <param name="image" type="IVirtualDiskImage" dir="return">
1410 <desc>Opened hard disk object.</desc>
1411 </param>
1412 </method>
1413
1414 <method name="registerHardDisk">
1415 <desc>
1416
1417 Registers the given hard disk within this VirtualBox
1418 installation. The hard disk must not be registered, must be
1419 <link to="IHardDisk::accessible"/> and must not be a
1420 differencing hard disk, otherwise the registration will fail.
1421
1422 </desc>
1423 <param name="hardDisk" type="IHardDisk" dir="in">
1424 <desc>Hard disk object to register.</desc>
1425 </param>
1426 </method>
1427
1428 <method name="getHardDisk" const="yes">
1429 <desc>
1430 Returns the registered hard disk with the given UUID.
1431 </desc>
1432 <param name="id" type="uuid" dir="in">
1433 <desc>UUID of the hard disk to look for.</desc>
1434 </param>
1435 <param name="hardDisk" type="IHardDisk" dir="return">
1436 <desc>Found hard disk object.</desc>
1437 </param>
1438 </method>
1439
1440 <method name="findHardDisk">
1441 <desc>
1442
1443 Returns a registered hard disk that uses the given location to
1444 store data. The search is done by comparing the
1445 value of the @a location argument to the
1446 <link to="IHardDisk::location"/> attribute of each registered
1447 hard disk.
1448
1449 For locations repesented by file paths (such as VDI and VMDK
1450 images), the specified location can be either an absolute file
1451 path or a path relative to
1452 the <link to="IVirtualBox::homeFolder"> VirtualBox home
1453 directory</link>. If only a file name without any path is
1454 given, the <link to="ISystemProperties::defaultVDIFolder">
1455 default VDI folder</link> will be used as a path to construct
1456 the absolute image file name to search for. Note that on host
1457 systems with case sensitive filesystems, a case sensitive
1458 comparison is performed, otherwise the case of symbols in the
1459 file path is ignored.
1460
1461 </desc>
1462 <param name="location" type="wstring" dir="in">
1463 <desc>Hard disk location specification to search for.</desc>
1464 </param>
1465 <param name="hardDisk" type="IHardDisk" dir="return">
1466 <desc>Found hard disk object.</desc>
1467 </param>
1468 </method>
1469
1470 <method name="findVirtualDiskImage">
1471 <desc>
1472
1473 Returns a registered hard disk that uses the given image file.
1474
1475 @deprecated Use <link to="IVirtualBox::findHardDisk()"/> instead.
1476
1477 <note>The specified file path can be absolute (full path) or
1478 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1479 home directory</link>. If only a file name without any path is
1480 given, the <link to="ISystemProperties::defaultVDIFolder">
1481 default VDI folder</link> will be used as a path to the image
1482 file.</note>
1483
1484 <note>On host systems with case sensitive filesystems, a case
1485 sensitive comparison is performed, otherwise the case of symbols
1486 in the file path is ignored.</note>
1487
1488 </desc>
1489 <param name="filePath" type="wstring" dir="in">
1490 <desc>Virtual Disk Image file path to look for.</desc>
1491 </param>
1492 <param name="image" type="IVirtualDiskImage" dir="return">
1493 <desc>Found hard disk object.</desc>
1494 </param>
1495 </method>
1496
1497 <method name="unregisterHardDisk">
1498 <desc>
1499 Unregisters a hard disk previously registered using
1500 <link to="#registerHardDisk()"/>.
1501 <note>
1502 The specified hard disk must not be attached to any of
1503 the existing virtual machines and must not have children
1504 (differencing) hard disks.
1505 </note>
1506 </desc>
1507 <param name="id" type="uuid" dir="in">
1508 <desc>UUID of the hard disk to unregister.</desc>
1509 </param>
1510 <param name="hardDisk" type="IHardDisk" dir="return">
1511 <desc>Unregistered hard disk object.</desc>
1512 </param>
1513 </method>
1514
1515 <method name="openDVDImage">
1516 <desc>
1517 Opens the CD/DVD image contained in the specified file of
1518 the supported format and assigns it the given UUID. The opened
1519 image remains unregistered
1520 until <link to="#registerDVDImage()"/> is called.
1521 </desc>
1522 <param name="filePath" type="wstring" dir="in">
1523 <desc>
1524 Full name of the file that contains a valid
1525 CD/DVD image. Currently, only ISO images are supported.
1526 <note>
1527 The specified file name can be absolute or relative
1528 to the <link to="IVirtualBox::homeFolder">
1529 VirtualBox home directory</link>.
1530 </note>
1531 </desc>
1532 </param>
1533 <param name="id" type="uuid" dir="in">
1534 <desc>
1535 UUID to assign to the given image file within this
1536 VirtualBox installation. If an empty (null) UUID is
1537 specified, the system will randomly generate an UUID.
1538 </desc>
1539 </param>
1540 <param name="image" type="IDVDImage" dir="return">
1541 <desc>Opened CD/DVD image object.</desc>
1542 </param>
1543 </method>
1544
1545 <method name="registerDVDImage">
1546 <desc>
1547 Registers a CD/DVD image within this VirtualBox
1548 installation. The image must not be registered and must not
1549 be associated with the same image file as any of the already
1550 registered images, otherwise the registration will fail.
1551 </desc>
1552 <param name="image" type="IDVDImage" dir="in">
1553 <desc>CD/DVD image object to register.</desc>
1554 </param>
1555 </method>
1556
1557 <method name="getDVDImage">
1558 <desc>
1559 Returns a registered CD/DVD image with the given UUID.
1560 </desc>
1561 <param name="id" type="uuid" dir="in">
1562 <desc>UUID of the image to look for.</desc>
1563 </param>
1564 <param name="image" type="IDVDImage" dir="return">
1565 <desc>Found CD/DVD image object.</desc>
1566 </param>
1567 </method>
1568
1569 <method name="findDVDImage">
1570 <desc>
1571 Returns a registered CD/DVD image with the given image file.
1572 <note>
1573 On host systems with case sensitive filesystems, a case
1574 sensitive comparison is performed, otherwise the case of
1575 symbols in the file path is ignored.
1576 </note>
1577 </desc>
1578 <param name="filePath" type="wstring" dir="in">
1579 <desc>CD/DVD image file path to look for.</desc>
1580 </param>
1581 <param name="image" type="IDVDImage" dir="return">
1582 <desc>Found CD/DVD image object.</desc>
1583 </param>
1584 </method>
1585
1586 <method name="getDVDImageUsage">
1587 <desc>
1588 Returns the list of of UUIDs of all virtual machines that use
1589 the given CD/DVD image.
1590 </desc>
1591 <param name="id" type="uuid" dir="in">
1592 <desc>UUID of the image to get the usage information for.</desc>
1593 </param>
1594 <param name="usage" type="ResourceUsage" dir="in">
1595 <desc>Type of the usage (permanent, temporary or all).</desc>
1596 </param>
1597 <param name="machineIDs" type="wstring" dir="return">
1598 <desc>
1599 List of UUIDs of all machines that use the given image
1600 in the way specified by the usage parameter.
1601 The list is returned as a string containing UUIDs separated
1602 by spaces. A null string means that the image is not used.
1603 <note>
1604 When the usage type is <link to="ResourceUsage::All"/> and the image
1605 is used by the VM both permanently and temporarily, the VM's UUID
1606 will be present only once in the list.
1607 </note>
1608 </desc>
1609 </param>
1610 </method>
1611
1612 <method name="unregisterDVDImage">
1613 <desc>
1614 Unregisters the CD/DVD image previously registered using
1615 <link to="#registerDVDImage()"/>.
1616 <note>
1617 The specified image must not be mounted to any of
1618 the existing virtual machines.
1619 </note>
1620 </desc>
1621 <param name="id" type="uuid" dir="in">
1622 <desc>UUID of the CD/DVD image to unregister.</desc>
1623 </param>
1624 <param name="image" type="IDVDImage" dir="return">
1625 <desc>Unregistered image object.</desc>
1626 </param>
1627 </method>
1628
1629 <method name="openFloppyImage">
1630 <desc>
1631 Opens a floppy image contained in the specified file of
1632 the supported format and assigns it the given UUID. The opened
1633 image remains unregistered
1634 until <link to="#registerFloppyImage()"/> is called.
1635 </desc>
1636 <param name="filePath" type="wstring" dir="in">
1637 <desc>
1638 Full name of the file that contains a valid
1639 floppy image.
1640 <note>
1641 The specified file name can be absolute or relative
1642 to the <link to="IVirtualBox::homeFolder">
1643 VirtualBox home directory</link>.
1644 </note>
1645 </desc>
1646 </param>
1647 <param name="id" type="uuid" dir="in">
1648 <desc>
1649 UUID to assign to the given image file within this
1650 VirtualBox installation. If an empty (null) UUID is
1651 specified, the system will randomly generate an UUID.
1652 </desc>
1653 </param>
1654 <param name="image" type="IFloppyImage" dir="return">
1655 <desc>Opened CD/DVD image object.</desc>
1656 </param>
1657 </method>
1658
1659 <method name="registerFloppyImage">
1660 <desc>
1661 Registers a floppy image within this VirtualBox
1662 installation. The image must not be registered and must not
1663 be associated with the same image file as any of the already
1664 registered images, otherwise the registration will fail.
1665 </desc>
1666 <param name="image" type="IFloppyImage" dir="in">
1667 <desc>Floppy image object to register.</desc>
1668 </param>
1669 </method>
1670
1671 <method name="getFloppyImage">
1672 <desc>
1673 Returns a registered floppy image with the given UUID.
1674 </desc>
1675 <param name="id" type="uuid" dir="in">
1676 <desc>UUID of the image to look for.</desc>
1677 </param>
1678 <param name="image" type="IFloppyImage" dir="return">
1679 <desc>Found floppy image object.</desc>
1680 </param>
1681 </method>
1682
1683 <method name="findFloppyImage">
1684 <desc>
1685 Returns a registered floppy image with the given image file.
1686 <note>
1687 On host systems with case sensitive filesystems, a case
1688 sensitive comparison is performed, otherwise the case of
1689 symbols in the file path is ignored.
1690 </note>
1691 </desc>
1692 <param name="filePath" type="wstring" dir="in">
1693 <desc>Floppy image file path to look for.</desc>
1694 </param>
1695 <param name="image" type="IFloppyImage" dir="return">
1696 <desc>Found floppy image object.</desc>
1697 </param>
1698 </method>
1699
1700 <method name="getFloppyImageUsage">
1701 <desc>
1702 Returns the list of of UUIDs of all virtual machines that use
1703 the given floppy image.
1704 </desc>
1705 <param name="id" type="uuid" dir="in">
1706 <desc>UUID of the image to get the usage information for.</desc>
1707 </param>
1708 <param name="usage" type="ResourceUsage" dir="in">
1709 <desc>Type of the usage (permanent, temporary or all).</desc>
1710 </param>
1711 <param name="machineIDs" type="wstring" dir="return">
1712 <desc>
1713 List of UUIDs of all machines that use the given image
1714 in the way specified by the usage parameter.
1715 The list is returned as a string containing UUIDs separated
1716 by spaces. A null string means that the image is not used.
1717 <note>
1718 When the usage type is <link to="ResourceUsage::All"/> and the image
1719 is used by the VM both permanently and temporarily, the VM's UUID
1720 will be present only once in the list.
1721 </note>
1722 </desc>
1723 </param>
1724 </method>
1725
1726 <method name="unregisterFloppyImage">
1727 <desc>
1728 Unregisters the floppy image previously registered using
1729 <link to="#registerFloppyImage()"/>.
1730 <note>
1731 The specified image must not be mounted to any of
1732 the existing virtual machines.
1733 </note>
1734 </desc>
1735 <param name="id" type="uuid" dir="in">
1736 <desc>UUID of the floppy image to unregister.</desc>
1737 </param>
1738 <param name="image" type="IFloppyImage" dir="return">
1739 <desc>Unregistered image object.</desc>
1740 </param>
1741 </method>
1742
1743 <method name="getGuestOSType">
1744 <param name="id" type="wstring" dir="in"/>
1745 <param name="type" type="IGuestOSType" dir="return"/>
1746 </method>
1747
1748 <method name="createSharedFolder">
1749 <desc>
1750 Creates a new global shared folder by associating the given logical
1751 name with the given host path, adds it to the collection of shared
1752 folders and starts sharing it. Refer to the description of
1753 <link to="ISharedFolder"/> to read more about logical names.
1754 </desc>
1755 <param name="name" type="wstring" dir="in">
1756 <desc>Unique logical name of the shared folder.</desc>
1757 </param>
1758 <param name="hostPath" type="wstring" dir="in">
1759 <desc>Full path to the shared folder in the host file system.</desc>
1760 </param>
1761 <param name="writable" type="boolean" dir="in">
1762 <desc>Whether the share is writable or readonly</desc>
1763 </param>
1764 </method>
1765
1766 <method name="removeSharedFolder">
1767 <desc>
1768 Removes the global shared folder with the given name previously
1769 created by <link to="#createSharedFolder"/> from the collection of
1770 shared folders and stops sharing it.
1771 </desc>
1772 <param name="name" type="wstring" dir="in">
1773 <desc>Logical name of the shared folder to remove.</desc>
1774 </param>
1775 </method>
1776
1777 <method name="getNextExtraDataKey">
1778 <desc>
1779 Returns the global extra data key name following the supplied key.
1780
1781 An error is returned if the supplied @a key does not exist. @c NULL is
1782 returned in @a nextKey if the supplied key is the last key. When
1783 supplying @c NULL for the @a key, the first key item is returned in @a
1784 nextKey (if there is any). @a nextValue is an optional parameter and
1785 if supplied, the next key's value is returned in it.
1786 </desc>
1787 <param name="key" type="wstring" dir="in">
1788 <desc>Name of the data key to follow.</desc>
1789 </param>
1790 <param name="nextKey" type="wstring" dir="out">
1791 <desc>Name of the next data key.</desc>
1792 </param>
1793 <param name="nextValue" type="wstring" dir="out">
1794 <desc>Value of the next data key.</desc>
1795 </param>
1796 </method>
1797
1798 <method name="getExtraData">
1799 <desc>
1800 Returns associated global extra data.
1801
1802 If the requested data @a key does not exist, this function will
1803 succeed and return @c NULL in the @a value argument.
1804 </desc>
1805 <param name="key" type="wstring" dir="in">
1806 <desc>Name of the data key to get.</desc>
1807 </param>
1808 <param name="value" type="wstring" dir="return">
1809 <desc>Value of the requested data key.</desc>
1810 </param>
1811 </method>
1812
1813 <method name="setExtraData">
1814 <desc>
1815 Sets associated global extra data.
1816
1817 If you pass @c NULL as a key @a value, the given @a key will be
1818 deleted.
1819
1820 <note>
1821 Before performing the actual data change, this method will ask all
1822 registered callbacks using the
1823 <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
1824 notification for a permission. If one of the callbacks refuses the
1825 new value, the change will not be performed.
1826 </note>
1827 <note>
1828 On success, the
1829 <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
1830 is called to inform all registered callbacks about a successful data
1831 change.
1832 </note>
1833 </desc>
1834 <param name="key" type="wstring" dir="in">
1835 <desc>Name of the data key to set.</desc>
1836 </param>
1837 <param name="value" type="wstring" dir="in">
1838 <desc>Value to assign to the key.</desc>
1839 </param>
1840 </method>
1841
1842 <method name="openSession">
1843 <desc>
1844 Opens a new direct session with the given virtual machine.
1845
1846 Within the direct session context, it is possible to change
1847 all VM settings, as well as to execute the VM in the process
1848 space of the session object. There can be only one direct
1849 session open at a time for every virtual machine. In VirtualBox
1850 terminology, the machine becomes "mutable" after a session has
1851 been opened.
1852
1853 Upon successful return, the session object can be used to
1854 get access to the machine and to the VM console.
1855
1856 Note that the "mutable" machine object, on which you may want
1857 to invoke IMachine methods to change its settings, will be a
1858 different object from the immutable IMachine objects returned
1859 by various IVirtualBox methods. To obtain a mutable
1860 IMachine object, upon which you can invoke settings methods,
1861 use the "machine" attribute of the ISession object which represents
1862 your open session.
1863
1864 In other words, to change settings on a machine, the following
1865 sequence is typically performed:
1866
1867 <ol>
1868 <li>Call this method (openSession) to have a machine locked for
1869 the current session.</li>
1870
1871 <li>Obtain a mutable IMachine object from ISession::machine.</li>
1872
1873 <li>Change the settings of the machine.</li>
1874
1875 <li>Call IMachine::saveSettings.</li>
1876
1877 <li>Close the session by calling <link to="#close" />.</li>
1878 </ol>
1879 </desc>
1880 <param name="session" type="ISession" dir="in">
1881 <desc>
1882 Session object that will represent the opened session after
1883 successful method invocation. This object must not represent
1884 the already open session.
1885 <note>
1886 This session will be automatically closed if the
1887 VirtualBox server is terminated for some reason.
1888 </note>
1889 </desc>
1890 </param>
1891 <param name="machineId" type="uuid" dir="in">
1892 <desc>ID of the virtual machine to open a session with.</desc>
1893 </param>
1894 </method>
1895
1896 <method name="openRemoteSession">
1897 <desc>
1898 Opens a new remote session with the given virtual machine.
1899
1900 Opening a remote session causes the VirtualBox server to start a new
1901 process that opens a direct session with the given VM. The remote
1902 session provides some level of control over the VM execution to the
1903 caller (using the IConsole interface); however, within the remote
1904 session context, not all VM settings are available for modification.
1905
1906 This operation can take some time (a new VM is started in a new process,
1907 for which memory and other resources need to be set up, which can take
1908 a few seconds). Because of this, a progress object is returned to allow the
1909 caller to wait for this asynchronous operation to be completed. Until then,
1910 the remote session object remains in the closed state and accessing the
1911 machine or its console through it is invalid. It is recommended to use
1912 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
1913 completion.
1914
1915 Currently supported session types (values of the @a type
1916 argument) are:
1917 <ul>
1918 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
1919 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
1920 </ul>
1921
1922 The @a environment argument is a string containing definitions of
1923 environment variables in the following format:
1924 @code
1925 NAME[=VALUE]\n
1926 NAME[=VALUE]\n
1927 ...
1928 @endcode
1929 where <tt>\\n</tt> is the new line character. These environment
1930 variables will be appended to the environment of the VirtualBox server
1931 process. If an environment variable exists both in the server process
1932 and in this list, the value from this list takes precedence over the
1933 server's variable. If the value of the environment variable is
1934 omitted, this variable will be removed from the resulting environment.
1935 If the environment string is @c null, the server environment is
1936 inherited by the started process as is.
1937
1938 <note>
1939 It is an error to open a remote session with the machine
1940 that already has an open direct session or waits until the
1941 previous request to open the remote session is completed
1942 (see <link to="IMachine::sessionState"/>).
1943 </note>
1944
1945 <note>
1946 The opened @a session will be automatically closed when
1947 the corresponding direct session dies or gets closed.
1948 </note>
1949
1950 <see>openExistingSession</see>
1951 </desc>
1952 <param name="session" type="ISession" dir="in">
1953 <desc>
1954 Session object that will represent the opened remote session
1955 after successful method invocation (this object must not
1956 represent an already open session).
1957 </desc>
1958 </param>
1959 <param name="machineId" type="uuid" dir="in">
1960 <desc>ID of the virtual machine to open a session with.</desc>
1961 </param>
1962 <param name="type" type="wstring" dir="in">
1963 <desc>
1964 Type of the remote session (case sensitive).
1965 </desc>
1966 </param>
1967 <param name="environment" type="wstring" dir="in">
1968 <desc>
1969 Environment to pass to the opened session (may be @c null).
1970 </desc>
1971 </param>
1972 <param name="progress" type="IProgress" dir="return">
1973 <desc>Progress object to track the operation completion.</desc>
1974 </param>
1975 </method>
1976
1977 <method name="openExistingSession">
1978 <desc>
1979 Opens a new remote session with the virtual machine for
1980 which a direct session is already open.
1981
1982 The remote session provides some level of control over the VM
1983 execution (using the IConsole interface) to the caller; however,
1984 within the remote session context, not all VM settings are available
1985 for modification.
1986
1987 As opposed to <link to="#openRemoteSession()"/>, the number of
1988 remote sessions opened this way is not limited by the API
1989
1990 <note>
1991 It is an error to open a remote session with the machine that
1992 doesn't have an open direct session.
1993 </note>
1994
1995 <see>openRemoteSession</see>
1996 </desc>
1997 <param name="session" type="ISession" dir="in">
1998 <desc>
1999 Session object that will represent the open remote session
2000 after successful method invocation. This object must not
2001 represent an already open session.
2002 <note>
2003 This session will be automatically closed when the peer
2004 (direct) session dies or gets closed.
2005 </note>
2006 </desc>
2007 </param>
2008 <param name="machineId" type="uuid" dir="in">
2009 <desc>ID of the virtual machine to open a session with.</desc>
2010 </param>
2011 </method>
2012
2013 <method name="registerCallback">
2014 <desc>
2015 Registers a new global VirtualBox callback. The methods of the given
2016 callback object will be called by VirtualBox when an appropriate
2017 event occurs.
2018 </desc>
2019 <param name="callback" type="IVirtualBoxCallback" dir="in">
2020 <desc>Callback object to register.</desc>
2021 </param>
2022 </method>
2023
2024 <method name="unregisterCallback">
2025 <desc>
2026 Unregisters the previously registered global VirtualBox callback.
2027 </desc>
2028 <param name="callback" type="IVirtualBoxCallback" dir="in">
2029 <desc>Callback object to unregister.</desc>
2030 </param>
2031 </method>
2032
2033 <method name="waitForPropertyChange">
2034 <desc>
2035 Blocks the caller until any of the properties represented by the @a
2036 what argument changes the value or until the given timeout interval
2037 expires.
2038
2039 The @a what argument is a comma separated list of propertiy masks that
2040 describe properties the caller is interested in. The property mask is
2041 a string in the following format:
2042
2043 @code
2044 [[group.]subgroup.]name
2045 @endcode
2046
2047 where @c name is the property name and @c group, @c subgroup are zero
2048 or or more property group specifiers. Each element (group or name) in
2049 the property mask may be either a latin string or an asterisk symbol
2050 (@c "*") which is used to match any string for the given element. A
2051 property mask that doesn't contain asterisk symbols represents a
2052 single fully qualified property name.
2053
2054 Groups in the fully qualified property name go from more generic (the
2055 left-most part) to more specific (the right-most part). The first
2056 element is usually a name of the object the property belongs to. The
2057 second element may be either a property name, or a child object name,
2058 or an index if the preceeding element names an object which is one of
2059 many objects of the same type. This way, property names form a
2060 hierarchy of properties. Here are some examples of property names:
2061
2062 <table>
2063 <tr>
2064 <td><tt>VirtualBox.version</tt></td>
2065 <td><link to="IVirtualBox::version"/> property</td>
2066 </tr>
2067 <tr>
2068 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2069 <td><link to="IMachine::name"/> property of the machine with the
2070 given UUID</td>
2071 </tr>
2072 </table>
2073
2074 Most property names directly correspond to the properties of objects
2075 (components) provided by the VirtualBox library and may be used to
2076 track changes to these properties. However, there may be
2077 pseudo-property names that don't correspond to any existing object's
2078 property directly, as well as there may be object properties that
2079 don't have a corresponding property name that is understood by this
2080 method, and therefore changes to such properties cannot be
2081 tracked. See individual object's property descrcriptions to get a
2082 fully qualified property name that can be used with this method (if
2083 any).
2084
2085 There is a special property mask @c "*" (i.e. a string consisting of a
2086 single asterisk symbol) that can be used to match all properties.
2087 Below are more examples of property masks:
2088
2089 <table>
2090 <tr>
2091 <td><tt>VirtualBox.*</tt></td>
2092 <td>Track all properties of the VirtualBox object</td>
2093 </tr>
2094 <tr>
2095 <td><tt>Machine.*.name</tt></td>
2096 <td>Track changes to the <link to="IMachine::name"/> property of
2097 all registered virtual machines</td>
2098 </tr>
2099 </table>
2100
2101 </desc>
2102 <param name="what" type="wstring" dir="in">
2103 <desc>Comma separated list of property masks.</desc>
2104 </param>
2105 <param name="timeout" type="unsigned long" dir="in">
2106 <desc>
2107 Wait timeout in milliseconds.
2108 Specify -1 for an indefinite wait.
2109 </desc>
2110 </param>
2111 <param name="changed" type="wstring" dir="out">
2112 <desc>
2113 Comma separated list of properties that have been changed and caused
2114 this method to return to the caller.
2115 </desc>
2116 </param>
2117 <param name="values" type="wstring" dir="out">
2118 <desc>Reserved, not currently used.</desc>
2119 </param>
2120 </method>
2121
2122 <method name="saveSettings">
2123 <desc>
2124 Saves the global settings to the global settings file
2125 (<link to="#settingsFilePath"/>).
2126
2127 This method is only useful for explicitly saving the global settings
2128 file after it has been auto-converted from the old format to the most
2129 recent format (see <link to="#settingsFileVersion"/> for details).
2130 Normally, the global settings file is implicitly saved when a global
2131 setting is changed.
2132 </desc>
2133 </method>
2134
2135 <method name="saveSettingsWithBackup">
2136 <desc>
2137 Creates a backup copy of the global settings file
2138 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2139 calls <link to="#saveSettings()"/>.
2140
2141 Note that the backup copy is created <b>only</b> if the settings file
2142 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2143 details). Otherwise, this call is fully equivalent to
2144 <link to="#saveSettings()"/> and no backup copying is done.
2145
2146 The backup copy is created in the same directory where the original
2147 settings file is located. It is given the following file name:
2148 <pre>
2149 original.xml.x.y-platform.bak
2150 </pre>
2151 where <tt>original.xml</tt> is the original settings file name
2152 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2153 format of the settings file (before auto-conversion).
2154
2155 If the given backup file already exists, this method will try to add the
2156 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2157 0 to 9) and copy it again until it succeeds. If all suffixes are
2158 occupied, or if any other copy error occurs, this method will return a
2159 failure.
2160
2161 If the copy operation succeeds, the @a bakFileName return argument will
2162 receive a full path to the created backup file (for informational
2163 purposes). Note that this will happen even if the subsequent
2164 <link to="#saveSettings()"/> call performed by this method after the
2165 copy operation, fails.
2166
2167 <note>
2168 The VirtualBox API never calls this method. It is intended purely for
2169 the purposes of creating backup copies of the settings files by
2170 front-ends before saving the results of the automatically performed
2171 settings conversion to disk.
2172 </note>
2173
2174 <see>settingsFileVersion</see>
2175 </desc>
2176 <param name="bakFileName" type="wstring" dir="return">
2177 <desc>Full path to the created backup copy.</desc>
2178 </param>
2179 </method>
2180
2181 </interface>
2182
2183 <!--
2184 // IMachine
2185 /////////////////////////////////////////////////////////////////////////
2186 -->
2187
2188 <enumerator
2189 name="IMachineEnumerator" type="IMachine"
2190 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
2191 />
2192
2193 <collection
2194 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
2195 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
2196 readonly="yes"
2197 />
2198
2199 <interface
2200 name="IInternalMachineControl" extends="$unknown"
2201 uuid="1063893c-4c38-4304-aee9-73e072c181cc"
2202 internal="yes"
2203 wsmap="suppress"
2204 >
2205 <method name="updateState">
2206 <desc>
2207 Updates the VM state.
2208 <note>
2209 This operation will also update the settings file with
2210 the correct information about the saved state file
2211 and delete this file from disk when appropriate.
2212 </note>
2213 </desc>
2214 <param name="state" type="MachineState" dir="in"/>
2215 </method>
2216
2217 <method name="getIPCId">
2218 <param name="id" type="wstring" dir="return"/>
2219 </method>
2220
2221 <method name="runUSBDeviceFilters">
2222 <desc>
2223 Asks the server to run USB devices filters of the associated
2224 machine against the given USB device and tell if there is
2225 a match.
2226 <note>
2227 Intended to be used only for remote USB devices. Local
2228 ones don't require to call this method (this is done
2229 implicitly by the Host and USBProxyService).
2230 </note>
2231 </desc>
2232 <param name="device" type="IUSBDevice" dir="in"/>
2233 <param name="matched" type="boolean" dir="out"/>
2234 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
2235 </method>
2236
2237 <method name="captureUSBDevice">
2238 <desc>
2239 Requests a capture of the given host USB device.
2240 When the request is completed, the VM process will
2241 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
2242 notification.
2243 </desc>
2244 <param name="id" type="uuid" dir="in"/>
2245 </method>
2246
2247 <method name="detachUSBDevice">
2248 <desc>
2249 Notification that a VM is going to detach (done = false) or has
2250 already detached (done = true) the given USB device.
2251 When the done = true request is completed, the VM process will
2252 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
2253 notification.
2254 <note>
2255 In the done = true case, the server must run its own filters
2256 and filters of all VMs but this one on the detached device
2257 as if it were just attached to the host computer.
2258 </note>
2259 </desc>
2260 <param name="id" type="uuid" dir="in"/>
2261 <param name="done" type="boolean" dir="in"/>
2262 </method>
2263
2264 <method name="autoCaptureUSBDevices">
2265 <desc>
2266 Requests a capture all matching USB devices attached to the host.
2267 When the request is completed, the VM process will
2268 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
2269 notification per every captured device.
2270 </desc>
2271 </method>
2272
2273 <method name="detachAllUSBDevices">
2274 <desc>
2275 Notification that a VM that is being powered down. The done
2276 parameter indicates whether which stage of the power down
2277 we're at. When done = false the VM is announcing its
2278 intentions, while when done = true the VM is reporting
2279 what it has done.
2280 <note>
2281 In the done = true case, the server must run its own filters
2282 and filters of all VMs but this one on all detach devices as
2283 if they were just attached to the host computer.
2284 </note>
2285 </desc>
2286 <param name="done" type="boolean" dir="in"/>
2287 </method>
2288
2289 <method name="onSessionEnd">
2290 <desc>
2291 Triggered by the given session object when the session is about
2292 to close normally.
2293 </desc>
2294 <param name="session" type="ISession" dir="in">
2295 <desc>Session that is being closed</desc>
2296 </param>
2297 <param name="progress" type="IProgress" dir="return">
2298 <desc>
2299 Used to wait until the corresponding machine is actually
2300 deassociated from the given session on the server.
2301 Returned only when this session is a direct one.
2302 </desc>
2303 </param>
2304 </method>
2305
2306 <method name="beginSavingState">
2307 <desc>
2308 Called by the VM process to inform the server it wants to
2309 save the current state and stop the VM execution.
2310 </desc>
2311 <param name="progress" type="IProgress" dir="in">
2312 <desc>
2313 Progress object created by the VM process to wait until
2314 the state is saved.
2315 </desc>
2316 </param>
2317 <param name="stateFilePath" type="wstring" dir="out">
2318 <desc>
2319 File path the VM process must save the execution state to.
2320 </desc>
2321 </param>
2322 </method>
2323
2324 <method name="endSavingState">
2325 <desc>
2326 Called by the VM process to inform the server that saving
2327 the state previously requested by #beginSavingState is either
2328 successfully finished or there was a failure.
2329 </desc>
2330
2331 <param name="success" type="boolean" dir="in">
2332 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
2333 </param>
2334 </method>
2335
2336 <method name="adoptSavedState">
2337 <desc>
2338 Gets called by IConsole::adoptSavedState.
2339 </desc>
2340 <param name="savedStateFile" type="wstring" dir="in">
2341 <desc>Path to the saved state file to adopt.</desc>
2342 </param>
2343 </method>
2344
2345 <method name="beginTakingSnapshot">
2346 <desc>
2347 Called by the VM process to inform the server it wants to
2348 take a snapshot.
2349 </desc>
2350 <param name="initiator" type="IConsole" dir="in">
2351 <desc>The console object that initiated this call.</desc>
2352 </param>
2353 <param name="name" type="wstring" dir="in">
2354 <desc>Snapshot name</desc>
2355 </param>
2356 <param name="description" type="wstring" dir="in">
2357 <desc>Snapshot description</desc>
2358 </param>
2359 <param name="progress" type="IProgress" dir="in">
2360 <desc>
2361 Progress object created by the VM process to wait until
2362 the state is saved (only for online snapshots).
2363 </desc>
2364 </param>
2365 <param name="stateFilePath" type="wstring" dir="out">
2366 <desc>
2367 File path the VM process must save the execution state to.
2368 </desc>
2369 </param>
2370 <param name="serverProgress" type="IProgress" dir="out">
2371 <desc>
2372 Progress object created by the server process to wait until
2373 the snapshot is taken (VDI diff creation, etc.).
2374 </desc>
2375 </param>
2376 </method>
2377
2378 <method name="endTakingSnapshot">
2379 <desc>
2380 Called by the VM process to inform the server that the snapshot
2381 previously requested by #beginTakingSnapshot is either
2382 successfully taken or there was a failure.
2383 </desc>
2384
2385 <param name="success" type="boolean" dir="in">
2386 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
2387 </param>
2388 </method>
2389
2390 <method name="discardSnapshot">
2391 <desc>
2392 Gets called by IConsole::discardSnapshot.
2393 </desc>
2394 <param name="initiator" type="IConsole" dir="in">
2395 <desc>The console object that initiated this call.</desc>
2396 </param>
2397 <param name="id" type="uuid" dir="in">
2398 <desc>UUID of the snapshot to discard.</desc>
2399 </param>
2400 <param name="machineState" type="MachineState" dir="out">
2401 <desc>New machine state after this operation is started.</desc>
2402 </param>
2403 <param name="progress" type="IProgress" dir="return">
2404 <desc>Progress object to track the operation completion.</desc>
2405 </param>
2406 </method>
2407
2408 <method name="discardCurrentState">
2409 <desc>
2410 Gets called by IConsole::discardCurrentState.
2411 </desc>
2412 <param name="initiator" type="IConsole" dir="in">
2413 <desc>The console object that initiated this call.</desc>
2414 </param>
2415 <param name="machineState" type="MachineState" dir="out">
2416 <desc>New machine state after this operation is started.</desc>
2417 </param>
2418 <param name="progress" type="IProgress" dir="return">
2419 <desc>Progress object to track the operation completion.</desc>
2420 </param>
2421 </method>
2422
2423 <method name="discardCurrentSnapshotAndState">
2424 <desc>
2425 Gets called by IConsole::discardCurrentSnapshotAndState.
2426 </desc>
2427 <param name="initiator" type="IConsole" dir="in">
2428 <desc>The console object that initiated this call.</desc>
2429 </param>
2430 <param name="machineState" type="MachineState" dir="out">
2431 <desc>New machine state after this operation is started.</desc>
2432 </param>
2433 <param name="progress" type="IProgress" dir="return">
2434 <desc>Progress object to track the operation completion.</desc>
2435 </param>
2436 </method>
2437
2438 </interface>
2439
2440 <interface
2441 name="IBIOSSettings" extends="$unknown"
2442 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
2443 wsmap="struct"
2444 >
2445 <desc>
2446 The IBIOSSettings interface represents BIOS settings of the virtual
2447 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
2448
2449 <note>With the COM API, this is an interface like all the others. With the webservice,
2450 this is mapped to a structure, so querying the attribute will not return an object,
2451 but a complete structure.</note>
2452 </desc>
2453 <attribute name="logoFadeIn" type="boolean">
2454 <desc>Fade in flag for BIOS logo animation.</desc>
2455 </attribute>
2456
2457 <attribute name="logoFadeOut" type="boolean">
2458 <desc>Fade out flag for BIOS logo animation.</desc>
2459 </attribute>
2460
2461 <attribute name="logoDisplayTime" type="unsigned long">
2462 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
2463 </attribute>
2464
2465 <attribute name="logoImagePath" type="wstring">
2466 <desc>Local file system path for external BIOS image.</desc>
2467 </attribute>
2468
2469 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
2470 <desc>Mode of the BIOS boot device menu.</desc>
2471 </attribute>
2472
2473 <attribute name="ACPIEnabled" type="boolean">
2474 <desc>ACPI support flag.</desc>
2475 </attribute>
2476
2477 <attribute name="IOAPICEnabled" type="boolean">
2478 <desc>
2479 IO APIC support flag. If set, VirtualBox will provide an IO APIC
2480 and support IRQs above 15.
2481 </desc>
2482 </attribute>
2483
2484 <attribute name="timeOffset" type="long long">
2485 <desc>
2486 Offset in milliseconds from the host system time. This allows for
2487 guests running with a different system date/time than the host.
2488 It is equivalent to setting the system date/time in the BIOS other
2489 than it's not an absolute value but a relative one. Guest Additions
2490 time synchronization also honors this offset.
2491 </desc>
2492 </attribute>
2493
2494 <attribute name="PXEDebugEnabled" type="boolean">
2495 <desc>
2496 PXE debug logging flag. If set, VirtualBox will write extensive
2497 PXE trace information to the release log.
2498 </desc>
2499 </attribute>
2500
2501 <attribute name="IDEControllerType" type="IDEControllerType">
2502 <desc>
2503 Type of the virtual IDE controller. Depending on this value,
2504 VirtualBox will provide different virtual IDE hardware
2505 devices to the guest.
2506 </desc>
2507 </attribute>
2508
2509 </interface>
2510
2511 <interface
2512 name="IMachine" extends="$unknown"
2513 uuid="d6181581-e7c7-418a-b3b6-2da10b11a763"
2514 wsmap="managed"
2515 >
2516 <desc>
2517 The IMachine interface represents a virtual machine, or guest, created
2518 in VirtualBox.
2519
2520 This interface is used in two contexts. First of all, a collection of
2521 objects implementing this interface is stored in the
2522 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
2523 machines that are currently registered with this VirtualBox
2524 installation. Also, once a session has been opened for the given virtual
2525 machine (e.g. the virtual machine is running), the machine object
2526 associated with the open session can be queried from the session object;
2527 see <link to="ISession"/> for details.
2528
2529 The main role of this interface is to expose the settings of the virtual
2530 machine and provide methods to change various aspects of the virtual
2531 machine's configuration. For machine objects stored in the
2532 <link to="IVirtualBox::machines"/> collection, all attributes are
2533 read-only unless explicitely stated otherwise in individual attribute
2534 and method descriptions. In order to change a machine setting, a session
2535 for this machine must be opened using one of
2536 <link to="IVirtualBox::openSession"/>,
2537 <link to="IVirtualBox::openRemoteSession"/> or
2538 <link to="IVirtualBox::openExistingSession"/> methdods. After the
2539 session has been successfully opened, a mutable machine object needs to
2540 be queried from the session object and then the desired settings changes
2541 can be applied to the returned object using IMachine attributes and
2542 methods. See the ISession interface description for more information
2543 about sessions.
2544
2545 Note that the IMachine interface does not provide methods to control
2546 virtual machine execution (such as start the machine, or power it
2547 down) -- these methods are grouped in a separate IConsole
2548 interface. Refer to the IConsole interface description to get more
2549 information about this topic.
2550
2551 <see>ISession, IConsole</see>
2552 </desc>
2553
2554 <attribute name="parent" type="IVirtualBox" readonly="yes">
2555 <desc>Associated parent obect.</desc>
2556 </attribute>
2557
2558 <attribute name="accessible" type="boolean" readonly="yes">
2559 <desc>
2560 Whether this virtual machine is currently accessible or not.
2561
2562 The machine is considered to be inaccessible when:
2563 <ul>
2564 <li>It is a registered virtual machine, and
2565 </li>
2566 <li>Its settings file is inaccessible (for example, it is
2567 located on a network share that is not accessible during
2568 VirtualBox startup, or becomes inaccessible later, or if
2569 the settings file can be read but is invalid).
2570 </li>
2571 </ul>
2572
2573 Otherwise, the value of this property is always <tt>true</tt>.
2574
2575 Every time this property is read, the accessibility state of
2576 this machine is re-evaluated. If the returned value is |false|,
2577 the <link to="#accessError"/> property may be used to get the
2578 detailed error information describing the reason of
2579 inaccessibility.
2580
2581 When the machine is inaccessible, only the following properties
2582 can be used on it:
2583 <ul>
2584 <li><link to="#parent"/></li>
2585 <li><link to="#id"/></li>
2586 <li><link to="#settingsFilePath"/></li>
2587 <li><link to="#accessible"/></li>
2588 <li><link to="#accessError"/></li>
2589 </ul>
2590
2591 An attempt to access any other property or method will return
2592 an error.
2593
2594 The only possible action you can perform on an inaccessible
2595 machine is to unregister it using the
2596 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
2597 for the accessibility state once more by querying this
2598 property).
2599
2600 <note>
2601 In the current implementation, once this property returns
2602 <tt>true</tt>, the machine will never become inaccessible
2603 later, even if its settings file cannot be successfully
2604 read/written any more (at least, until the VirtualBox
2605 server is restarted). This limitation may be removed in
2606 future releases.
2607 </note>
2608 </desc>
2609 </attribute>
2610
2611 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
2612 <desc>
2613 Error information describing the reason of machine
2614 inaccessibility.
2615
2616 Reading this property is only valid after the last call to
2617 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
2618 machine is currently unaccessible). Otherwise, a null
2619 IVirtualBoxErrorInfo object will be returned.
2620 </desc>
2621 </attribute>
2622
2623 <attribute name="name" type="wstring">
2624 <desc>
2625 Name of the virtual machine.
2626
2627 Besides being used for human-readable identification purposes
2628 everywhere in VirtualBox, the virtual machine name is also used
2629 as a name of the machine's settings file and as a name of the
2630 subdirectory this settings file resides in. Thus, every time you
2631 change the value of this property, the settings file will be
2632 renamed once you call <link to="#saveSettings()"/> to confirm the
2633 change. The containing subdirectory will be also renamed, but
2634 only if it has exactly the same name as the settings file
2635 itself prior to changing this property (for backward compatibility
2636 with previous API releases). The above implies the following
2637 limitations:
2638 <ul>
2639 <li>The machine name cannot be empty.</li>
2640 <li>The machine name can contain only characters that are valid
2641 file name characters according to the rules of the file
2642 system used to store VirtualBox configuration.</li>
2643 <li>You cannot have two or more machines with the same name
2644 if they use the same subdirectory for storing the machine
2645 settings files.</li>
2646 <li>You cannot change the name of the machine if it is running,
2647 or if any file in the directory containing the settings file
2648 is being used by another running machine or by any other
2649 process in the host operating system at a time when
2650 <link to="#saveSettings()"/> is called.
2651 </li>
2652 </ul>
2653 If any of the above limitations are hit, <link to="#saveSettings()"/>
2654 will return an appropriate error message explaining the exact
2655 reason and the changes you made to this machine will not be
2656 saved.
2657 <note>
2658 For "legacy" machines created using the
2659 <link to="IVirtualBox::createLegacyMachine()"/> call,
2660 the above naming limitations do not apply because the
2661 machine name does not affect the settings file name.
2662 The settings file name remains the same as it was specified
2663 during machine creation and never changes.
2664 </note>
2665 </desc>
2666 </attribute>
2667
2668 <attribute name="description" type="wstring">
2669 <desc>
2670 Description of the virtual machine.
2671
2672 The description attribute can contain any text and is
2673 typically used to describe the hardware and software
2674 configuration of the virtual machine in detail (i.e. network
2675 settings, versions of the installed software and so on).
2676 </desc>
2677 </attribute>
2678
2679 <attribute name="id" type="uuid" readonly="yes">
2680 <desc>UUID of the virtual machine.</desc>
2681 </attribute>
2682
2683 <attribute name="OSTypeId" type="wstring">
2684 <desc>
2685 User-defined identifier of the Guest OS type.
2686 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
2687 an IGuestOSType object representing details about the given
2688 Guest OS type.
2689 <note>
2690 This value may differ from the value returned by
2691 <link to="IGuest::OSTypeId"/> if Guest Additions are
2692 installed to the guest OS.
2693 </note>
2694 </desc>
2695 </attribute>
2696
2697 <attribute name="memorySize" type="unsigned long">
2698 <desc>System memory size in megabytes.</desc>
2699 </attribute>
2700
2701 <attribute name="memoryBalloonSize" type="unsigned long">
2702 <desc>Initial memory balloon size in megabytes.</desc>
2703 </attribute>
2704
2705 <attribute name="statisticsUpdateInterval" type="unsigned long">
2706 <desc>Initial interval to update guest statistics in seconds.</desc>
2707 </attribute>
2708
2709 <attribute name="VRAMSize" type="unsigned long">
2710 <desc>Video memory size in megabytes.</desc>
2711 </attribute>
2712
2713 <attribute name="MonitorCount" type="unsigned long">
2714 <desc>
2715 Number of virtual monitors.
2716 <note>
2717 Only effective on Windows XP and later guests with
2718 Guest Additions installed.
2719 </note>
2720 </desc>
2721 </attribute>
2722
2723 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
2724 <desc>Object containing all BIOS settings.</desc>
2725 </attribute>
2726
2727 <attribute name="HWVirtExEnabled" type="TSBool">
2728 <desc>
2729 This setting determines whether VirtualBox will try to make use of
2730 the host CPU's hardware virtualization extensions such as Intel VT-x
2731 and AMD-V. Note that in case such extensions are not available,
2732 they will not be used.
2733 </desc>
2734 </attribute>
2735
2736 <attribute name="PAEEnabled" type="boolean" default="false">
2737 <desc>
2738 This setting determines whether VirtualBox will expose the Physical Address
2739 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
2740 is not available, it will not be reported.
2741 </desc>
2742 </attribute>
2743
2744 <attribute name="snapshotFolder" type="wstring">
2745 <desc>
2746 Full path to the directory used to store snapshot data
2747 (difrerencing hard disks and saved state files) of this machine.
2748
2749 The initial value of this property is
2750 <tt>&lt;</tt><link to="#settingsFilePath">
2751 path_to_settings_file</link><tt>&gt;/&lt;</tt>
2752 <link to="#id">machine_uuid</link>
2753 <tt>&gt;</tt>.
2754
2755 Currently, it is an error to try to change this property on
2756 a machine that has snapshots (because this would require to
2757 move possibly large files to a different location).
2758 A separate method will be available for this purpose later.
2759
2760 <note>
2761 Setting this property to <tt>null</tt> will restore the
2762 initial value.
2763 </note>
2764 <note>
2765 When setting this property, the specified path can be
2766 absolute (full path) or relative to the directory where the
2767 <link to="#settingsFilePath">machine settings file</link>
2768 is located. When reading this property, a full path is
2769 always returned.
2770 </note>
2771 <note>
2772 The specified path may not exist, it will be created
2773 when necessary.
2774 </note>
2775 </desc>
2776 </attribute>
2777
2778 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
2779 <desc>VRDP server object.</desc>
2780 </attribute>
2781
2782 <attribute name="hardDiskAttachments" type="IHardDiskAttachmentCollection" readonly="yes">
2783 <desc>Collection of hard disks attached to the machine.</desc>
2784 </attribute>
2785
2786 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
2787 <desc>Associated DVD drive object.</desc>
2788 </attribute>
2789
2790 <attribute name="FloppyDrive" type="IFloppyDrive" readonly="yes">
2791 <desc>Associated floppy drive object.</desc>
2792 </attribute>
2793
2794 <attribute name="USBController" type="IUSBController" readonly="yes">
2795 <desc>
2796 Associated USB controller object.
2797
2798 <note>
2799 This method may set a @ref com_warnings "warning result code".
2800 </note>
2801 <note>
2802 If USB functionality is not avaliable in the given edition of
2803 VirtualBox, this method will set the result code to @c E_NOTIMPL.
2804 </note>
2805 </desc>
2806 </attribute>
2807
2808 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
2809 <desc>Associated audio adapter, always present.</desc>
2810 </attribute>
2811
2812 <attribute name="SATAController" type="ISATAController" readonly="yes">
2813 <desc>
2814 Associated SATA controller object.
2815 </desc>
2816 </attribute>
2817
2818 <attribute name="settingsFilePath" type="wstring" readonly="yes">
2819 <desc>
2820 Full name of the file containing machine settings data.
2821 </desc>
2822 </attribute>
2823
2824 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
2825 <desc>
2826 Current version of the format of the settings file of this machine
2827 (<link to="#settingsFilePath"/>).
2828
2829 The version string has the following format:
2830 <pre>
2831 x.y-platform
2832 </pre>
2833 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
2834 versions, and <tt>platform</tt> is the platform identifier.
2835
2836 The current version usually matches the value of the
2837 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
2838 settings file was created by an older version of VirtualBox and there
2839 was a change of the settings file format since then.
2840
2841 Note that VirtualBox automatically converts settings files from older
2842 versions to the most recent version when reading them (usually at
2843 VirtualBox startup) but it doesn't save the changes back until
2844 you call a method that implicitly saves settings (such as
2845 <link to="#setExtraData()"/>) or call <link to="#saveSettings()"/>
2846 explicitly. Therefore, if the value of this attribute differs from the
2847 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
2848 means that the settings file was converted but the result of the
2849 conversion is not yet saved to disk.
2850
2851 The above feature may be used by interactive front-ends to inform users
2852 about the settings file format change and offer them to explicitly save
2853 all converted settings files (the global and VM-specific ones),
2854 optionally create bacup copies of the old settings files before saving,
2855 etc.
2856
2857 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
2858 </desc>
2859 </attribute>
2860
2861 <attribute name="settingsModified" type="boolean" readonly="yes">
2862 <desc>
2863 Whether the settings of this machine have been modified
2864 (but neither yet saved nor discarded).
2865 <note>
2866 Reading this property is only valid on instances returned
2867 by <link to="ISession::machine"/> and on new machines
2868 created by <link to="IVirtualBox::createMachine"/> or opened
2869 by <link to="IVirtualBox::openMachine"/> but not
2870 yet registered, or on unregistered machines after calling
2871 <link to="IVirtualBox::unregisterMachine"/>. For all other
2872 cases, the settigs can never be modified.
2873 </note>
2874 <note>
2875 For newly created unregistered machines, the value of this
2876 property is always TRUE until <link to="#saveSettings()"/>
2877 is called (no matter if any machine settings have been
2878 changed after the creation or not). For opened machines
2879 the value is set to FALSE (and then follows to normal rules).
2880 </note>
2881 </desc>
2882 </attribute>
2883
2884 <attribute name="sessionState" type="SessionState" readonly="yes">
2885 <desc>Current session state for this machine.</desc>
2886 </attribute>
2887
2888 <attribute name="sessionType" type="wstring" readonly="yes">
2889 <desc>
2890 Type of the session. If <link to="#sessionState"/> is
2891 SessionSpawning or SessionOpen, this attribute contains the
2892 same value as passed to the
2893 <link to="IVirtualBox::openRemoteSession()"/> method in the @a
2894 type parameter. If the session was opened directly using
2895 <link to="IVirtualBox::openSession()"/>, or if
2896 <link to="#sessionState"/> is SessionClosed, the value of this
2897 attribute is @c null.
2898 </desc>
2899 </attribute>
2900
2901 <attribute name="sessionPid" type="unsigned long" readonly="yes">
2902 <desc>
2903 Identifier of the session process. This attribute contains the
2904 platform-dependent identifier of the process that has opened a
2905 direct session for this machine using the
2906 <link to="IVirtualBox::openSession()"/> call. The returned value
2907 is only valid if <link to="#sessionState"/> is SessionOpen or
2908 SessionClosing (i.e. a session is currently open or being
2909 closed) by the time this property is read.
2910 </desc>
2911 </attribute>
2912
2913 <attribute name="state" type="MachineState" readonly="yes">
2914 <desc>Current execution state of this machine.</desc>
2915 </attribute>
2916
2917 <attribute name="lastStateChange" type="long long" readonly="yes">
2918 <desc>
2919 Time stamp of the last execution state change,
2920 in milliseconds since 1970-01-01 UTC.
2921 </desc>
2922 </attribute>
2923
2924 <attribute name="stateFilePath" type="wstring" readonly="yes">
2925 <desc>
2926 Full path to the file that stores the execution state of
2927 the machine when it is in the <link to="MachineState::Saved"/>
2928 state.
2929 <note>
2930 When the machine is not in the Saved state, this attribute
2931 <tt>null</tt>.
2932 </note>
2933 </desc>
2934 </attribute>
2935
2936 <attribute name="logFolder" type="wstring" readonly="yes">
2937 <desc>
2938 Full path to the folder that stores a set of rotated log files
2939 recorded during machine execution. The most recent log file is
2940 named <tt>VBox.log</tt>, the previous log file is
2941 named <tt>VBox.log.1</tt> and so on (upto <tt>VBox.log.3</tt>
2942 in the current version).
2943 </desc>
2944 </attribute>
2945
2946 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
2947 <desc>
2948 Current snapshot of this machine.
2949 <note>
2950 A <tt>null</tt> object is returned if the machine doesn't
2951 have snapshots.
2952 </note>
2953 <see><link to="ISnapshot"/></see>
2954 </desc>
2955 </attribute>
2956
2957 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
2958 <desc>
2959 Number of snapshots taken on this machine. Zero means the
2960 machine doesn't have any snapshots.
2961 </desc>
2962 </attribute>
2963
2964 <attribute name="currentStateModified" type="boolean" readonly="yes">
2965 <desc>
2966 Returns <tt>true</tt> if the current state of the machine is not
2967 identical to the state stored in the current snapshot.
2968
2969 The current state is identical to the current snapshot right
2970 after one of the following calls are made:
2971 <ul>
2972 <li><link to="IConsole::discardCurrentState"/> or
2973 <link to="IConsole::discardCurrentSnapshotAndState"/>
2974 </li>
2975 <li><link to="IConsole::takeSnapshot"/> (issued on a
2976 powered off or saved machine, for which
2977 <link to="#settingsModified"/> returns <tt>false</tt>)
2978 </li>
2979 <li><link to="IMachine::setCurrentSnapshot"/>
2980 </li>
2981 </ul>
2982
2983 The current state remains identical until one of the following
2984 happens:
2985 <ul>
2986 <li>settings of the machine are changed</li>
2987 <li>the saved state is discarded</li>
2988 <li>the current snapshot is discarded</li>
2989 <li>an attempt to execute the machine is made</li>
2990 </ul>
2991
2992 <note>
2993 For machines that don't have snapshots, this property is
2994 always <tt>false</tt>.
2995 </note>
2996 </desc>
2997 </attribute>
2998
2999 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
3000 <desc>
3001 Collection of shared folders for this machine (permanent shared
3002 folders). These folders are shared automatically at machine startup
3003 and available only to the guest OS installed within this machine.
3004
3005 New shared folders are added to the collection using
3006 <link to="#createSharedFolder"/>. Existing shared folders can be
3007 removed using <link to="#removeSharedFolder"/>.
3008 </desc>
3009 </attribute>
3010
3011 <attribute name="clipboardMode" type="ClipboardMode">
3012 <desc>
3013 Synchronization mode between the host OS clipboard
3014 and the guest OS clipboard.
3015 </desc>
3016 </attribute>
3017
3018 <method name="setBootOrder">
3019 <desc>
3020 Puts the given device to the specified position in
3021 the boot order.
3022
3023 To indicate that no device is associated with the given position,
3024 <link to="DeviceType::Null"/> should be used.
3025
3026 @todo setHardDiskBootOrder(), setNetworkBootOrder()
3027 </desc>
3028 <param name="position" type="unsigned long" dir="in">
3029 <desc>
3030 Position in the boot order (<tt>1</tt> to the total number of
3031 devices the machine can boot from, as returned by
3032 <link to="ISystemProperties::maxBootPosition"/>).
3033 </desc>
3034 </param>
3035 <param name="device" type="DeviceType" dir="in">
3036 <desc>
3037 The type of the device used to boot at the given position.
3038 </desc>
3039 </param>
3040 </method>
3041
3042 <method name="getBootOrder" const="yes">
3043 <desc>
3044 Returns the device type that occupies the specified
3045 position in the boot order.
3046
3047 @todo [remove?]
3048 If the machine can have more than one device of the returned type
3049 (such as hard disks), then a separate method should be used to
3050 retrieve the individual device that occupies the given position.
3051
3052 If here are no devices at the given position, then
3053 <link to="DeviceType::Null"/> is returned.
3054
3055 @todo getHardDiskBootOrder(), getNetworkBootOrder()
3056 </desc>
3057 <param name="order" type="unsigned long" dir="in">
3058 <desc>
3059 Position in the boot order (<tt>1</tt> to the total number of
3060 devices the machine can boot from, as returned by
3061 <link to="ISystemProperties::maxBootPosition"/>).
3062 </desc>
3063 </param>
3064 <param name="device" type="DeviceType" dir="return">
3065 <desc>
3066 Device at the given position.
3067 </desc>
3068 </param>
3069 </method>
3070
3071 <method name="attachHardDisk">
3072 <desc>
3073
3074 Attaches a virtual hard disk identified by the given UUID to the
3075 given device slot of the given channel on the given bus. The
3076 specified device slot must not have another disk attached and the
3077 given hard disk must not be already attached to this machine.
3078
3079 See <link to="IHardDisk"/> for detailed information about
3080 attaching hard disks.
3081
3082 <note>You cannot attach a hard disk to a running machine. Also,
3083 you cannot attach a hard disk to a newly created machine until
3084 it is registered.</note>
3085
3086 <note>Attaching a hard disk to a machine creates a <i>lazy</i>
3087 attachment. In particular, no differeincing images are
3088 actually created until <link to="#saveSettings()"/> is called to
3089 commit all changed settings.</note>
3090
3091 </desc>
3092 <param name="id" type="uuid" dir="in">
3093 <desc>UUID of the hard disk to attach.</desc>
3094 </param>
3095 <param name="bus" type="StorageBus" dir="in">
3096 <desc>Type of storage bus to use (IDE or SATA).</desc>
3097 </param>
3098 <param name="channel" type="long" dir="in">
3099 <desc>Channel to attach the hard disk to. For IDE controllers,
3100 this can either be 0 or 1, for the primary or secondary controller,
3101 respectively.</desc>
3102 </param>
3103 <param name="device" type="long" dir="in">
3104 <desc>Device slot in the given channel to attach the hard disk to.
3105 For IDE devices, within each channel (0 or 1), this can again be
3106 0 or 1, for master or slave, respectively.</desc>
3107 </param>
3108 </method>
3109
3110 <method name="getHardDisk" const="yes">
3111 <desc>
3112 Returns the hard disk attached to the
3113 given controller under the specified device number.
3114 </desc>
3115 <param name="bus" type="StorageBus" dir="in"/>
3116 <param name="channel" type="long" dir="in"/>
3117 <param name="device" type="long" dir="in"/>
3118 <param name="hardDisk" type="IHardDisk" dir="return"/>
3119 </method>
3120
3121 <method name="detachHardDisk">
3122 <desc>
3123
3124 Detaches the hard disk drive attached to the given device slot
3125 of the given controller.
3126
3127 See <link to="IHardDisk"/> for detailed information about
3128 attaching hard disks.
3129
3130 <note>You cannot detach a hard disk from a running
3131 machine.</note>
3132
3133 <note>
3134 Detaching a hard disk from a machine creates a <i>lazy</i>
3135 detachment. In particular, if the detached hard disk is a
3136 differencing hard disk, it is not actually deleted until
3137 <link to="#saveSettings()"/> is called to commit all changed settings.
3138 Keep in mind, that doing <link to="#saveSettings()"/> will
3139 <b>physically delete</b> all detached differencing hard disks,
3140 so be careful.
3141 </note>
3142
3143 </desc>
3144 <param name="bus" type="StorageBus" dir="in">
3145 <desc>Bus to dettach the hard disk from.</desc>
3146 </param>
3147 <param name="channel" type="long" dir="in">
3148 <desc>Channel number to dettach the hard disk from.</desc>
3149 </param>
3150 <param name="device" type="long" dir="in">
3151 <desc>Device slot number to dettach the hard disk from.</desc>
3152 </param>
3153 </method>
3154
3155 <method name="getNetworkAdapter" const="yes">
3156 <desc>
3157 Returns the network adapter associated with the given slot.
3158 Slots are numbered sequentially, starting with zero. The total
3159 number of adapters per every machine is defined by the
3160 <link to="ISystemProperties::networkAdapterCount"/> property,
3161 so the maximum slot number is one less than that property's value.
3162 </desc>
3163 <param name="slot" type="unsigned long" dir="in"/>
3164 <param name="adapter" type="INetworkAdapter" dir="return"/>
3165 </method>
3166
3167 <method name="getSerialPort" const="yes">
3168 <desc>
3169 Returns the serial port associated with the given slot.
3170 Slots are numbered sequentially, starting with zero. The total
3171 number of serial ports per every machine is defined by the
3172 <link to="ISystemProperties::serialPortCount"/> property,
3173 so the maximum slot number is one less than that property's value.
3174 </desc>
3175 <param name="slot" type="unsigned long" dir="in"/>
3176 <param name="port" type="ISerialPort" dir="return"/>
3177 </method>
3178
3179 <method name="getParallelPort" const="yes">
3180 <desc>
3181 Returns the parallel port associated with the given slot.
3182 Slots are numbered sequentially, starting with zero. The total
3183 number of parallel ports per every machine is defined by the
3184 <link to="ISystemProperties::parallelPortCount"/> property,
3185 so the maximum slot number is one less than that property's value.
3186 </desc>
3187 <param name="slot" type="unsigned long" dir="in"/>
3188 <param name="port" type="IParallelPort" dir="return"/>
3189 </method>
3190
3191 <method name="getNextExtraDataKey">
3192 <desc>
3193 Returns the machine-specific extra data key name following the
3194 supplied key.
3195
3196 An error is returned if the supplied @a key does not exist. @c NULL is
3197 returned in @a nextKey if the supplied key is the last key. When
3198 supplying @c NULL for the @a key, the first key item is returned in @a
3199 nextKey (if there is any). @a nextValue is an optional parameter and
3200 if supplied, the next key's value is returned in it.
3201 </desc>
3202 <param name="key" type="wstring" dir="in">
3203 <desc>Name of the data key to follow.</desc>
3204 </param>
3205 <param name="nextKey" type="wstring" dir="out">
3206 <desc>Name of the next data key.</desc>
3207 </param>
3208 <param name="nextValue" type="wstring" dir="out">
3209 <desc>Value of the next data key.</desc>
3210 </param>
3211 </method>
3212
3213 <method name="getExtraData">
3214 <desc>
3215 Returns associated machine-specific extra data.
3216
3217 If the reuqested data @a key does not exist, this function will
3218 succeed and return @c NULL in the @a value argument.
3219 </desc>
3220 <param name="key" type="wstring" dir="in">
3221 <desc>Name of the data key to get.</desc>
3222 </param>
3223 <param name="value" type="wstring" dir="return">
3224 <desc>Value of the requested data key.</desc>
3225 </param>
3226 </method>
3227
3228 <method name="setExtraData">
3229 <desc>
3230 Sets associated machine-specific extra data.
3231
3232 If you pass @c NULL as a key @a vaule, the given @a key will be
3233 deleted.
3234
3235 <note>
3236 Before performing the actual data change, this method will ask all
3237 registered callbacks using the
3238 <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
3239 notification for a permission. If one of the callbacks refuses the
3240 new value, the change will not be performed.
3241 </note>
3242 <note>
3243 On success, the
3244 <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
3245 is called to inform all registered callbacks about a successful data
3246 change.
3247 </note>
3248 <note>
3249 This method can be called outside the machine session and therefore
3250 it's a caller's responsibility to handle possible race conditions
3251 when several clients change the same key at the same time.
3252 </note>
3253 </desc>
3254 <param name="key" type="wstring" dir="in">
3255 <desc>Name of the data key to set.</desc>
3256 </param>
3257 <param name="value" type="wstring" dir="in">
3258 <desc>Value to assign to the key.</desc>
3259 </param>
3260 </method>
3261
3262 <method name="saveSettings">
3263 <desc>
3264 Saves any changes to machine settings made since the session
3265 has been opened or a new machine has been created, or since the
3266 last call to <link to="#saveSettings()"/> or <link to="#discardSettings()"/>.
3267 For registered machines, new settings become visible to all
3268 other VirtualBox clients after successful invocation of this
3269 method.
3270 <note>
3271 The method sends <link to="IVirtualBoxCallback::onMachineDataChange()"/>
3272 notification event after the configuration has been successfully
3273 saved (only for registered machines).
3274 </note>
3275 <note>
3276 Calling this method is only valid on instances returned
3277 by <link to="ISession::machine"/> and on new machines
3278 created by <link to="IVirtualBox::createMachine"/> but not
3279 yet registered, or on unregistered machines after calling
3280 <link to="IVirtualBox::unregisterMachine"/>.
3281 </note>
3282 </desc>
3283 </method>
3284
3285 <method name="saveSettingsWithBackup">
3286 <desc>
3287 Creates a backup copy of the machine settings file (<link
3288 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
3289 <link to="#saveSettings()"/>.
3290
3291 Note that the backup copy is created <b>only</b> if the settings file
3292 auto-conversion took place (see <link to="#settingsFileVersion"/> for
3293 details). Otherwise, this call is fully equivalent to
3294 <link to="#saveSettings()"/> and no backup copying is done.
3295
3296 The backup copy is created in the same directory where the original
3297 settings file is located. It is given the following file name:
3298 <pre>
3299 original.xml.x.y-platform.bak
3300 </pre>
3301 where <tt>original.xml</tt> is the original settings file name
3302 (excluding path), and <tt>x.y-platform</tt> is the version of the old
3303 format of the settings file (before auto-conversion).
3304
3305 If the given backup file already exists, this method will try to add the
3306 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
3307 0 to 9) and copy it again until it succeeds. If all suffixes are
3308 occupied, or if any other copy error occurs, this method will return a
3309 failure.
3310
3311 If the copy operation succeeds, the @a bakFileName return argument will
3312 receive a full path to the created backup file (for informational
3313 purposes). Note that this will happen even if the subsequent
3314 <link to="#saveSettings()"/> call performed by this method after the
3315 copy operation, fails.
3316
3317 <note>
3318 The VirtualBox API never calls this method. It is intended purely for
3319 the purposes of creating backup copies of the settings files by
3320 front-ends before saving the results of the automatically performed
3321 settings conversion to disk.
3322 </note>
3323
3324 <see>settingsFileVersion</see>
3325 </desc>
3326 <param name="bakFileName" type="wstring" dir="return">
3327 <desc>Full path to the created backup copy.</desc>
3328 </param>
3329 </method>
3330
3331 <method name="discardSettings">
3332 <desc>
3333 Discards any changes to the machine settings made since the session
3334 has been opened or since the last call to <link to="#saveSettings()"/>
3335 or <link to="#discardSettings"/>.
3336 <note>
3337 Calling this method is only valid on instances returned
3338 by <link to="ISession::machine"/> and on new machines
3339 created by <link to="IVirtualBox::createMachine"/> or
3340 opened by <link to="IVirtualBox::openMachine"/> but not
3341 yet registered, or on unregistered machines after calling
3342 <link to="IVirtualBox::unregisterMachine"/>.
3343 </note>
3344 </desc>
3345 </method>
3346
3347 <method name="deleteSettings">
3348 <desc>
3349 Deletes the settings file of this machine from disk.
3350 The machine must not be registered in order for this operation
3351 to succeed.
3352 <note>
3353 <link to="#settingsModified"/> will return TRUE after this
3354 method successfully returns.
3355 </note>
3356 <note>
3357 Calling this method is only valid on instances returned
3358 by <link to="ISession::machine"/> and on new machines
3359 created by <link to="IVirtualBox::createMachine"/> or
3360 opened by <link to="IVirtualBox::openMachine"/> but not
3361 yet registered, or on unregistered machines after calling
3362 <link to="IVirtualBox::unregisterMachine"/>.
3363 </note>
3364 <note>
3365 The deleted machine settings file can be restored (saved again)
3366 by calling <link to="#saveSettings()"/>.
3367 </note>
3368 </desc>
3369 </method>
3370
3371 <method name="getSnapshot">
3372 <desc>
3373 Returns a snapshot of this machine with the given UUID.
3374 A <tt>null</tt> UUID can be used to obtain the first snapshot
3375 taken on this machine. This is useful if you want to traverse
3376 the whole tree of snapshots starting from the root.
3377 </desc>
3378 <param name="id" type="uuid" dir="in">
3379 <desc>UUID of the snapshot to get</desc>
3380 </param>
3381 <param name="snapshot" type="ISnapshot" dir="return">
3382 <desc>Snapshot object with the given UUID.</desc>
3383 </param>
3384 </method>
3385
3386 <method name="findSnapshot">
3387 <desc>
3388 Returns a snapshot of this machine with the given name.
3389 </desc>
3390 <param name="name" type="wstring" dir="in">
3391 <desc>Name of the snapshot to find</desc>
3392 </param>
3393 <param name="snapshot" type="ISnapshot" dir="return">
3394 <desc>Snapshot object with the given name.</desc>
3395 </param>
3396 </method>
3397
3398 <method name="setCurrentSnapshot">
3399 <desc>
3400 Sets the current snapshot of this machine.
3401 <note>
3402 In the current implementation, this operation is not
3403 implemented.
3404 </note>
3405 </desc>
3406 <param name="id" type="uuid" dir="in">
3407 <desc>UUID of the snapshot to set as the current snapshot.</desc>
3408 </param>
3409 </method>
3410
3411 <method name="createSharedFolder">
3412 <desc>
3413 Creates a new permanent shared folder by associating the given logical
3414 name with the given host path, adds it to the collection of shared
3415 folders and starts sharing it. Refer to the description of
3416 <link to="ISharedFolder"/> to read more about logical names.
3417 </desc>
3418 <param name="name" type="wstring" dir="in">
3419 <desc>Unique logical name of the shared folder.</desc>
3420 </param>
3421 <param name="hostPath" type="wstring" dir="in">
3422 <desc>Full path to the shared folder in the host file system.</desc>
3423 </param>
3424 <param name="writable" type="boolean" dir="in">
3425 <desc>Whether the share is writable or readonly</desc>
3426 </param>
3427 </method>
3428
3429 <method name="removeSharedFolder">
3430 <desc>
3431 Removes the permanent shared folder with the given name previously
3432 created by <link to="#createSharedFolder"/> from the collection of
3433 shared folders and stops sharing it.
3434 </desc>
3435 <param name="name" type="wstring" dir="in">
3436 <desc>Logical name of the shared folder to remove.</desc>
3437 </param>
3438 </method>
3439
3440 <method name="canShowConsoleWindow">
3441 <desc>
3442 Returns @c true if the VM console process can activate the
3443 console window and bring it to foreground on the desktop of
3444 the host PC.
3445 <note>
3446 This method will fail if a session for this machine is not
3447 currently open.
3448 </note>
3449 </desc>
3450 <param name="canShow" type="boolean" dir="return">
3451 <desc>
3452 @c true if the console window can be shown and @c
3453 false otherwise.
3454 </desc>
3455 </param>
3456 </method>
3457
3458 <method name="showConsoleWindow">
3459 <desc>
3460 Activates the console window and brings it to foreground on
3461 the desktop of the host PC. Many modern window managers on
3462 many platforms implement some sort of focus stealing
3463 prevention logic, so that it may be impossible to activate
3464 a window without the help of the currently active
3465 application. In this case, this method will return a non-zero
3466 identifier that represents the top-level window of the VM
3467 console process. The caller, if it represents a currently
3468 active process, is responsible to use this identifier (in a
3469 platform-dependent manner) to perform actual window
3470 activation.
3471 <note>
3472 This method will fail if a session for this machine is not
3473 currently open.
3474 </note>
3475 </desc>
3476 <param name="winId" type="unsigned long long" dir="return">
3477 <desc>
3478 Platform-dependent identifier of the top-level VM console
3479 window, or zero if this method has performed all actions
3480 necessary to implement the <i>show window</i> semantics for
3481 the given platform and/or VirtualBox front-end.
3482 </desc>
3483 </param>
3484 </method>
3485
3486 <method name="getGuestProperty">
3487 <desc>
3488 Reads a value from the machine's host/guest property store.
3489
3490 If a session for this virtual machine is currently open then queries the
3491 session object for the value, since the current values of the property
3492 store will be held in RAM in the session. Otherwise reads the value from
3493 machine extra data, where it is stored between sessions.
3494
3495 This method will fail if we are currently transitioning between session
3496 states.
3497 </desc>
3498 <param name="key" type="wstring" dir="in">
3499 <desc>
3500 The name of the key to read.
3501 </desc>
3502 </param>
3503 <param name="value" type="wstring" dir="return">
3504 <desc>
3505 The value of the key. If the key does not exist then this will be
3506 empty.
3507 </desc>
3508 </param>
3509 </method>
3510
3511 <method name="setGuestProperty">
3512 <desc>
3513 Sets, changes or deletes a value in the machine's host/guest
3514 property store.
3515
3516 If a session for this virtual machine is currently open then changes the
3517 value on the session object, since the current values of the property
3518 store will be held in RAM in the session. Otherwise changes the value
3519 in machine extra data, where it is stored between sessions.
3520
3521 This method will fail if we are currently transitioning between session
3522 states.
3523 </desc>
3524 <param name="key" type="wstring" dir="in">
3525 <desc>
3526 The name of the key to set, change or delete.
3527 </desc>
3528 </param>
3529 <param name="value" type="wstring" dir="in">
3530 <desc>
3531 The new value of the key to set, change or delete. If the key does
3532 not yet exist and @a value is non-empty, it will be created. If
3533 @a value is empty, the key will be deleted if it exists.
3534 </desc>
3535 </param>
3536 </method>
3537
3538 </interface>
3539
3540 <!--
3541 // IConsole
3542 /////////////////////////////////////////////////////////////////////////
3543 -->
3544
3545 <interface
3546 name="IConsoleCallback" extends="$unknown"
3547 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
3548 wsmap="suppress"
3549 >
3550
3551 <method name="onMousePointerShapeChange">
3552 <desc>
3553 Notification when the guest mouse pointer shape has
3554 changed. The new shape data is given.
3555 </desc>
3556 <param name="visible" type="boolean" dir="in">
3557 <desc>
3558 Flag whether the pointer is visible.
3559 </desc>
3560 </param>
3561 <param name="alpha" type="boolean" dir="in">
3562 <desc>
3563 Flag whether the pointer has an alpha channel.
3564 </desc>
3565 </param>
3566 <param name="xHot" type="unsigned long" dir="in">
3567 <desc>
3568 The pointer hot spot x coordinate.
3569 </desc>
3570 </param>
3571 <param name="yHot" type="unsigned long" dir="in">
3572 <desc>
3573 The pointer hot spot y coordinate.
3574 </desc>
3575 </param>
3576 <param name="width" type="unsigned long" dir="in">
3577 <desc>
3578 Width of the pointer shape in pixels.
3579 </desc>
3580 </param>
3581 <param name="height" type="unsigned long" dir="in">
3582 <desc>
3583 Height of the pointer shape in pixels.
3584 </desc>
3585 </param>
3586 <param name="shape" type="octet" mod="ptr" dir="in">
3587 <desc>
3588 Address of the shape buffer.
3589
3590 The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
3591
3592 For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
3593 For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
3594
3595 AND mask presents for pointers with alpha channel, so if the callback does not
3596 support alpha, the pointer could be displayed as a normal color pointer.
3597
3598 The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
3599 therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
3600 end of any scanline are undefined.
3601
3602 The XOR mask follows the AND mask on the next 4 bytes aligned offset:
3603 <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>
3604 Bytes in the gap between the AND and the XOR mask are undefined.
3605 XOR mask scanlines have no gap between them and size of XOR mask is:
3606 <tt>cXor = width * 4 * height</tt>.
3607
3608 <note>
3609 If 'shape' is equal to 0, only pointer visibility is being changed.
3610 </note>
3611 </desc>
3612 </param>
3613 </method>
3614
3615 <method name="onMouseCapabilityChange">
3616 <desc>
3617 Notification when the mouse capabilities reported by the
3618 guest have changed. The new capabilities are passed.
3619 </desc>
3620 <param name="supportsAbsolute" type="boolean" dir="in"/>
3621 <param name="needsHostCursor" type="boolean" dir="in"/>
3622 </method>
3623
3624 <method name="onKeyboardLedsChange">
3625 <desc>
3626 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
3627 to alter the state of the keyboard LEDs.
3628 </desc>
3629 <param name="numLock" type="boolean" dir="in"/>
3630 <param name="capsLock" type="boolean" dir="in"/>
3631 <param name="scrollLock" type="boolean" dir="in"/>
3632 </method>
3633
3634 <method name="onStateChange">
3635 <desc>
3636 Notification when the execution state of the machine has changed.
3637 The new state will be given.
3638 </desc>
3639 <param name="state" type="MachineState" dir="in"/>
3640 </method>
3641
3642 <method name="onAdditionsStateChange">
3643 <desc>
3644 Notification when a Guest Additions property changes.
3645 Interested callees should query IGuest attributes to
3646 find out what has changed.
3647 </desc>
3648 </method>
3649
3650 <method name="onDVDDriveChange">
3651 <desc>
3652 Notification when a property of the
3653 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
3654 Interested callees should use IDVDDrive methods to find out what has
3655 changed.
3656 </desc>
3657 </method>
3658
3659 <method name="onFloppyDriveChange">
3660 <desc>
3661 Notification when a property of the
3662 virtual <link to="IMachine::FloppyDrive">floppy drive</link> changes.
3663 Interested callees should use IFloppyDrive methods to find out what
3664 has changed.
3665 </desc>
3666 </method>
3667
3668 <method name="onNetworkAdapterChange">
3669 <desc>
3670 Notification when a property of one of the
3671 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
3672 changes. Interested callees should use INetworkAdapter methods and
3673 attributes to find out what has changed.
3674 </desc>
3675 <param name="networkAdapter" type="INetworkAdapter" dir="in">
3676 <desc>Network adapter that is subject to change.</desc>
3677 </param>
3678 </method>
3679
3680 <method name="onSerialPortChange">
3681 <desc>
3682 Notification when a property of one of the
3683 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
3684 Interested callees should use ISerialPort methods and attributes
3685 to find out what has changed.
3686 </desc>
3687 <param name="serialPort" type="ISerialPort" dir="in">
3688 <desc>Serial port that is subject to change.</desc>
3689 </param>
3690 </method>
3691
3692 <method name="onParallelPortChange">
3693 <desc>
3694 Notification when a property of one of the
3695 virtual <link to="IMachine::getParallelPort">parallel ports</link>
3696 changes. Interested callees should use ISerialPort methods and
3697 attributes to find out what has changed.
3698 </desc>
3699 <param name="parallelPort" type="IParallelPort" dir="in">
3700 <desc>Parallel port that is subject to change.</desc>
3701 </param>
3702 </method>
3703
3704 <method name="onVRDPServerChange">
3705 <desc>
3706 Notification when a property of the
3707 <link to="IMachine::VRDPServer">VRDP server</link> changes.
3708 Interested callees should use IVRDPServer methods and attributes to
3709 find out what has changed.
3710 </desc>
3711 </method>
3712
3713 <method name="onUSBControllerChange">
3714 <desc>
3715 Notification when a property of the virtual
3716 <link to="IMachine::USBController">USB controller</link> changes.
3717 Interested callees should use IUSBController methods and attributes to
3718 find out what has changed.
3719 </desc>
3720 </method>
3721
3722 <method name="onUSBDeviceStateChange">
3723 <desc>
3724 Notification when a USB device is attached to or detached from
3725 the virtual USB controller.
3726
3727 This notification is sent as a result of the indirect
3728 request to attach the device because it matches one of the
3729 machine USB filters, or as a result of the direct request
3730 issued by <link to="IConsole::attachUSBDevice"/> or
3731 <link to="IConsole::detachUSBDevice"/>.
3732
3733 This notification is sent in case of both a succeeded and a
3734 failed request completion. When the request succeeds, the @a
3735 error parameter is @c null, and the given device has been
3736 already added to (when @a attached is @c true) or removed from
3737 (when @a attached is @c false) the collection represented by
3738 <link to="IConsole::USBDevices"/>. On failure, the collection
3739 doesn't change and the @a error perameter represents the error
3740 message describing the failure.
3741
3742 </desc>
3743 <param name="device" type="IUSBDevice" dir="in">
3744 <desc>Device that is subject to state change.</desc>
3745 </param>
3746 <param name="attached" type="boolean" dir="in">
3747 <desc>
3748 <tt>true</tt> if the device was attached
3749 and <tt>false</tt> otherwise.
3750 </desc>
3751 </param>
3752 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
3753 <desc>
3754 <tt>null</tt> on success or an error message object on
3755 failure.
3756 </desc>
3757 </param>
3758 </method>
3759
3760 <method name="onSharedFolderChange">
3761 <desc>
3762 Notification when a shared folder is added or removed.
3763 The @a scope argument defines one of three scopes:
3764 <link to="IVirtualBox::sharedFolders">global shared folders</link>
3765 (<link to="Scope::Global">Global</link>),
3766 <link to="IMachine::sharedFolders">permanent shared folders</link> of
3767 the machine (<link to="Scope::Machine">Machine</link>) or <link
3768 to="IConsole::sharedFolders">transient shared folders</link> of the
3769 machine (<link to="Scope::Session">Session</link>). Interested callees
3770 should use query the corresponding collections to find out what has
3771 changed.
3772 </desc>
3773 <param name="scope" type="Scope" dir="in">
3774 <desc>Sope of the notification.</desc>
3775 </param>
3776 </method>
3777
3778 <method name="onRuntimeError">
3779 <desc>
3780 Notification when an error happens during the virtual
3781 machine execution.
3782
3783 There are three kinds of runtime errors:
3784 <ul>
3785 <li><i>fatal</i></li>
3786 <li><i>non-fatal with retry</i></li>
3787 <li><i>non-fatal warnings</i></li>
3788 </ul>
3789
3790 <b>Fatal</b> errors are indicated by the @a fatal parameter set
3791 to <tt>true</tt>. In case of fatal errors, the virtual machine
3792 execution is always paused before calling this notification, and
3793 the notification handler is supposed either to immediately save
3794 the virtual machine state using <link to="IConsole::saveState()"/>
3795 or power it off using <link to="IConsole::powerDown()"/>.
3796 Resuming the execution can lead to unpredictable results.
3797
3798 <b>Non-fatal</b> errors and warnings are indicated by the
3799 @a fatal parameter set to <tt>false</tt>. If the virtual machine
3800 is in the Paused state by the time the error notification is
3801 received, it means that the user can <i>try to resume</i> the machine
3802 execution after attempting to solve the probem that caused the
3803 error. In this case, the notification handler is supposed
3804 to show an appropriate message to the user (depending on the
3805 value of the @a id parameter) that offers several actions such
3806 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
3807 wants to retry, the notification handler should continue
3808 the machine execution using the <link to="IConsole::resume()"/>
3809 call. If the machine execution is not Paused during this
3810 notification, then it means this notification is a <i>warning</i>
3811 (for example, about a fatal condition that can happen very soon);
3812 no immediate action is required from the user, the machine
3813 continues its normal execution.
3814
3815 Note that in either case the notification handler
3816 <b>must not</b> perform any action directly on a thread
3817 where this notification is called. Everything it is allowed to
3818 do is to post a message to another thread that will then talk
3819 to the user and take the corresponding action.
3820
3821 Currently, the following error identificators are known:
3822 <ul>
3823 <li><tt>"HostMemoryLow"</tt></li>
3824 <li><tt>"HostAudioNotResponding"</tt></li>
3825 <li><tt>"VDIStorageFull"</tt></li>
3826 </ul>
3827
3828 <note>
3829 This notification is not designed to be implemented by
3830 more than one callback at a time. If you have multiple
3831 IConsoleCallback instances registered on the given
3832 IConsole object, make sure you simply do nothing but
3833 return @c S_OK from all but one of them that does actual
3834 user notification and performs necessary actions.
3835 </note>
3836
3837 </desc>
3838 <param name="fatal" type="boolean" dir="in">
3839 <desc>Whether the error is fatal or not</desc>
3840 </param>
3841 <param name="id" type="wstring" dir="in">
3842 <desc>Error identificator</desc>
3843 </param>
3844 <param name="message" type="wstring" dir="in">
3845 <desc>Optional error message</desc>
3846 </param>
3847 </method>
3848
3849 <method name="onCanShowWindow">
3850 <desc>
3851 Notification when a call to
3852 <link to="IMachine::canShowConsoleWindow()"/> is made by a
3853 front-end to check if a subsequent call to
3854 <link to="IMachine::showConsoleWindow()"/> can succeed.
3855
3856 The callee should give an answer appropriate to the current
3857 machine state in the @a canShow argument. This answer must
3858 remain valid at least until the next
3859 <link to="IConsole::state">machine state</link> change.
3860
3861 <note>
3862 This notification is not designed to be implemented by
3863 more than one callback at a time. If you have multiple
3864 IConsoleCallback instances registered on the given
3865 IConsole object, make sure you simply do nothing but
3866 return @c true and @c S_OK from all but one of them that
3867 actually manages console window activation.
3868 </note>
3869 </desc>
3870 <param name="canShow" type="boolean" dir="return">
3871 <desc>
3872 @c true if the console window can be shown and @c
3873 false otherwise.
3874 </desc>
3875 </param>
3876 </method>
3877
3878 <method name="onShowWindow">
3879 <desc>
3880 Notification when a call to
3881 <link to="IMachine::showConsoleWindow()"/>
3882 requests the console window to be activated and brought to
3883 foreground on the desktop of the host PC.
3884
3885 This notification should cause the VM console process to
3886 perform the requested action as described above. If it is
3887 impossible to do it at a time of this notification, this
3888 method should return a failure.
3889
3890 Note that many modern window managers on many platforms
3891 implement some sort of focus stealing prevention logic, so
3892 that it may be impossible to activate a window without the
3893 help of the currently active application (which is supposedly
3894 an initiator of this notification). In this case, this method
3895 must return a non-zero identifier that represents the
3896 top-level window of the VM console process. The caller, if it
3897 represents a currently active process, is responsible to use
3898 this identifier (in a platform-dependent manner) to perform
3899 actual window activation.
3900
3901 This method must set @a winId to zero if it has performed all
3902 actions necessary to complete the request and the console
3903 window is now active and in foreground, to indicate that no
3904 further action is required on the caller's side.
3905
3906 <note>
3907 This notification is not designed to be implemented by
3908 more than one callback at a time. If you have multiple
3909 IConsoleCallback instances registered on the given
3910 IConsole object, make sure you simply do nothing but
3911 return@c S_OK from all but one of them that actually
3912 manages console window activation.
3913 </note>
3914 </desc>
3915 <param name="winId" type="unsigned long long" dir="return">
3916 <desc>
3917 Platform-dependent identifier of the top-level VM console
3918 window, or zero if this method has performed all actions
3919 necessary to implement the <i>show window</i> semantics for
3920 the given platform and/or this VirtualBox front-end.
3921 </desc>
3922 </param>
3923 </method>
3924
3925 </interface>
3926
3927 <interface
3928 name="IRemoteDisplayInfo" extends="$unknown"
3929 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
3930 wsmap="struct"
3931 >
3932 <desc>
3933 Contains information about the remote display (VRDP) capabilities and status.
3934 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
3935
3936 <note>With the COM API, this is an interface like all the others. With the webservice,
3937 this is mapped to a structure, so querying the attribute will not return an object,
3938 but a complete structure.</note>
3939 </desc>
3940
3941 <attribute name="active" type="boolean" readonly="yes">
3942 <desc>
3943 Whether the remote display connection is active.
3944 </desc>
3945 </attribute>
3946
3947 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
3948 <desc>
3949 How many times a client connected.
3950 </desc>
3951 </attribute>
3952
3953 <attribute name="beginTime" type="long long" readonly="yes">
3954 <desc>
3955 When the last connection was established, in milliseconds since 1970-01-01 UTC.
3956 </desc>
3957 </attribute>
3958
3959 <attribute name="endTime" type="long long" readonly="yes">
3960 <desc>
3961 When the last connection was terminated or the current time, if
3962 connection is still active, in milliseconds since 1970-01-01 UTC.
3963 </desc>
3964 </attribute>
3965
3966 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
3967 <desc>
3968 How many bytes were sent in last or current, if still active, connection.
3969 </desc>
3970 </attribute>
3971
3972 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
3973 <desc>
3974 How many bytes were sent in all connections.
3975 </desc>
3976 </attribute>
3977
3978 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
3979 <desc>
3980 How many bytes were received in last or current, if still active, connection.
3981 </desc>
3982 </attribute>
3983
3984 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
3985 <desc>
3986 How many bytes were received in all connections.
3987 </desc>
3988 </attribute>
3989
3990 <attribute name="user" type="wstring" readonly="yes">
3991 <desc>
3992 Login user name supplied by the client.
3993 </desc>
3994 </attribute>
3995
3996 <attribute name="domain" type="wstring" readonly="yes">
3997 <desc>
3998 Login domain name supplied by the client.
3999 </desc>
4000 </attribute>
4001
4002 <attribute name="clientName" type="wstring" readonly="yes">
4003 <desc>
4004 The client name supplied by the client.
4005 </desc>
4006 </attribute>
4007
4008 <attribute name="clientIP" type="wstring" readonly="yes">
4009 <desc>
4010 The IP address of the client.
4011 </desc>
4012 </attribute>
4013
4014 <attribute name="clientVersion" type="unsigned long" readonly="yes">
4015 <desc>
4016 The client software version number.
4017 </desc>
4018 </attribute>
4019
4020 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
4021 <desc>
4022 Public key exchange method used when connection was established.
4023 Values: 0 - RDP4 public key exchange scheme.
4024 1 - X509 sertificates were sent to client.
4025 </desc>
4026 </attribute>
4027
4028 </interface>
4029
4030 <interface
4031 name="IConsole" extends="$unknown"
4032 uuid="d5a1cbda-f5d7-4824-9afe-d640c94c7dcf"
4033 wsmap="managed"
4034 >
4035 <desc>
4036 The IConsole interface represents an interface to control virtual
4037 machine execution.
4038
4039 The console object that implements the IConsole interface is obtained
4040 from a session object after the session for the given machine has been
4041 opened using one of <link to="IVirtualBox::openSession"/>,
4042 <link to="IVirtualBox::openRemoteSession"/> or
4043 <link to="IVirtualBox::openExistingSession"/> methdods.
4044
4045 Methods of the IConsole interface allow the caller to query the current
4046 virtual machine execution state, pause the machine or power it down, save
4047 the machine state or take a snapshot, attach and detach removable media
4048 and so on.
4049
4050 <see>ISession</see>
4051 </desc>
4052
4053 <attribute name="machine" type="IMachine" readonly="yes">
4054 <desc>
4055 Machine object this console is sessioned with.
4056 <note>
4057 This is a convenience property, it has the same value as
4058 <link to="ISession::machine"/> of the corresponding session
4059 object.
4060 </note>
4061 </desc>
4062 </attribute>
4063
4064 <attribute name="state" type="MachineState" readonly="yes">
4065 <desc>
4066 Current execution state of the machine.
4067 <note>
4068 This property always returns the same value as the corresponding
4069 property of the IMachine object this console is sessioned with.
4070 For the process that owns (executes) the VM, this is the
4071 preferable way of querying the VM state, because no IPC
4072 calls are made.
4073 </note>
4074 </desc>
4075 </attribute>
4076
4077 <attribute name="guest" type="IGuest" readonly="yes">
4078 <desc>Guest object.</desc>
4079 </attribute>
4080
4081 <attribute name="keyboard" type="IKeyboard" readonly="yes">
4082 <desc>
4083 Virtual keyboard object.
4084 <note>
4085 If the machine is not running, any attempt to use
4086 the returned object will result in an error.
4087 </note>
4088 </desc>
4089 </attribute>
4090
4091 <attribute name="mouse" type="IMouse" readonly="yes">
4092 <desc>
4093 Virtual mouse object.
4094 <note>
4095 If the machine is not running, any attempt to use
4096 the returned object will result in an error.
4097 </note>
4098 </desc>
4099 </attribute>
4100
4101 <attribute name="display" type="IDisplay" readonly="yes">
4102 <desc>Virtual display object.
4103 <note>
4104 If the machine is not running, any attempt to use
4105 the returned object will result in an error.
4106 </note>
4107 </desc>
4108 </attribute>
4109
4110 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
4111 <desc>Debugging interface.</desc>
4112 </attribute>
4113
4114 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
4115 <desc>
4116 Collection of USB devices currently attached to the virtual
4117 USB controller.
4118 <note>
4119 The collection is empty if the machine is not running.
4120 </note>
4121 </desc>
4122 </attribute>
4123
4124 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
4125 <desc>
4126 List of USB devices currently attached to the remote VRDP client.
4127 Once a new device is physically attached to the remote host computer,
4128 it appears in this list and remains there until detached.
4129 </desc>
4130 </attribute>
4131
4132 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
4133 <desc>
4134 Collection of shared folders for the current session. These folders
4135 are called transient shared folders because they are available to the
4136 guest OS running inside the associated virtual machine only for the
4137 duration of the session (as opposed to
4138 <link to="IMachine::sharedFolders"/> which represent permanent shared
4139 folders). When the session is closed (e.g. the machine is powered down),
4140 these folders are automatically discarded.
4141
4142 New shared folders are added to the collection using
4143 <link to="#createSharedFolder"/>. Existing shared folders can be
4144 removed using <link to="#removeSharedFolder"/>.
4145 </desc>
4146 </attribute>
4147
4148 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
4149 <desc>
4150 Interface that provides information on Remote Display (VRDP) connection.
4151 </desc>
4152 </attribute>
4153
4154 <method name="powerUp">
4155 <desc>
4156 Starts the virtual machine execution using the current machine
4157 state (i.e. its current execution state, current settings and
4158 current hard disks).
4159
4160 If the machine is powered off or aborted, the execution will
4161 start from the beginning (as if the real hardware were just
4162 powered on).
4163
4164 If the machine is in the <link to="MachineState::Saved"/> state,
4165 it will continue its execution the point where the state has
4166 been saved.
4167
4168 <note>
4169 Unless you are trying to write a new VirtualBox front-end that
4170 performs direct machine execution (like the VirtualBox or VBoxSDL
4171 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
4172 session opened by <link to="IVirtualBox::openSession"/> and use this
4173 session only to change virtual machine settings. If you simply want to
4174 start virtual machine execution using one of the existing front-ends
4175 (for example the VirtualBox GUI or headless server), simply use
4176 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
4177 will power up the machine automatically for you.
4178 </note>
4179
4180 <see>#saveState</see>
4181 </desc>
4182 <param name="progress" type="IProgress" dir="return">
4183 <desc>Progress object to track the operation completion.</desc>
4184 </param>
4185 </method>
4186
4187 <method name="powerDown">
4188 <desc>
4189 Stops the virtual machine execution.
4190 After this operation completes, the machine will go to the
4191 PoweredOff state.
4192 </desc>
4193 </method>
4194
4195 <method name="reset">
4196 <desc>Resets the virtual machine.</desc>
4197 </method>
4198
4199 <method name="pause">
4200 <desc>Pauses the virtual machine execution.</desc>
4201 </method>
4202
4203 <method name="resume">
4204 <desc>Resumes the virtual machine execution.</desc>
4205 </method>
4206
4207 <method name="powerButton">
4208 <desc>Send the ACPI power button event to the guest.</desc>
4209 </method>
4210
4211 <method name="sleepButton">
4212 <desc>Send the ACPI sleep button event to the guest.</desc>
4213 </method>
4214
4215 <method name="getPowerButtonHandled">
4216 <desc>Check if the last power button event was handled by guest.</desc>
4217 <param name="handled" type="boolean" dir="return"/>
4218 </method>
4219
4220 <method name="saveState">
4221 <desc>
4222 Saves the current execution state of a running virtual machine
4223 and stops its execution.
4224
4225 After this operation completes, the machine will go to the
4226 Saved state. Next time it is powered up, this state will
4227 be restored and the machine will continue its execution from
4228 the place where it was saved.
4229
4230 This operation differs from taking a snapshot to the effect
4231 that it doesn't create new differencing hard disks. Also, once
4232 the machine is powered up from the state saved using this method,
4233 the saved state is deleted, so it will be impossible to return
4234 to this state later.
4235
4236 <note>
4237 On success, this method implicitly calls
4238 <link to="IMachine::saveSettings()"/> to save all current machine
4239 settings (including runtime changes to the DVD drive, etc.).
4240 Together with the impossibility to change any VM settings when it is
4241 in the Saved state, this guarantees the adequate hardware
4242 configuration of the machine when it is restored from the saved
4243 state file.
4244 </note>
4245
4246 <note>
4247 The machine must be in the Running or Paused state, otherwise
4248 the operation will fail.
4249 </note>
4250
4251 <see><link to="#takeSnapshot"/></see>
4252 </desc>
4253 <param name="progress" type="IProgress" dir="return">
4254 <desc>Progress object to track the operation completion.</desc>
4255 </param>
4256 </method>
4257
4258 <method name="adoptSavedState">
4259 <desc>
4260 Associates the given saved state file to the virtual machine.
4261
4262 On success, the machine will go to the Saved state. Next time it is
4263 powered up, it will be restored from the adopted saved state and
4264 continue execution from the place where the saved state file was
4265 created.
4266
4267 The specified saved state file path may be full or relative to the
4268 folder the VM normally saves the state to (usually,
4269 <link to="IMachine::snapshotFolder"/>).
4270
4271 <note>
4272 It's a caller's responsibility to make sure the given saved state
4273 file is compatible with the settings of this virtual machine that
4274 represent its virtual hardware (memory size, hard disk configuration
4275 etc.). If there is a mismatch, the behavior of the virtual machine
4276 is undefined.
4277 </note>
4278 </desc>
4279 <param name="savedStateFile" type="wstring" dir="in">
4280 <desc>Path to the saved state file to adopt.</desc>
4281 </param>
4282 </method>
4283
4284 <method name="discardSavedState">
4285 <desc>
4286 Discards (deletes) the saved state of the virtual machine
4287 previously created by <link to="#saveState"/>. Next time the
4288 machine is powered up, a clean boot will occur.
4289 <note>
4290 This operation is equivalent to resetting or powering off
4291 the machine without doing a proper shutdown in the guest OS.
4292 </note>
4293 </desc>
4294 </method>
4295
4296 <method name="getDeviceActivity">
4297 <desc>
4298 Gets the current activity type of a given device or device group.
4299 </desc>
4300 <param name="type" type="DeviceType" dir="in"/>
4301 <param name="activity" type="DeviceActivity" dir="return"/>
4302 </method>
4303
4304 <method name="attachUSBDevice">
4305 <desc>
4306 Attaches a host USB device with the given UUID to the
4307 USB controller of the virtual machine.
4308
4309 The device needs to be in one of the following states:
4310 <link to="USBDeviceState::Busy">Busy</link>,
4311 <link to="USBDeviceState::Available">Available</link> or
4312 <link to="USBDeviceState::Held">Held</link>,
4313 otherwise an error is immediately returned.
4314
4315 When the device state is
4316 <link to="USBDeviceState::Busy">Busy</link>, an error may also
4317 be returned if the host computer refuses to release it for some reason.
4318
4319 <see>IUSBController::deviceFilters, USBDeviceState</see>
4320 </desc>
4321 <param name="id" type="uuid" dir="in">
4322 <desc>UUID of the host USB device to attach.</desc>
4323 </param>
4324 </method>
4325
4326 <method name="detachUSBDevice">
4327 <desc>
4328 Detaches an USB device with the given UUID from the USB controller
4329 oif the virtual machine.
4330
4331 After this method succeeds, the VirtualBox server reinitiates
4332 all USB filters as if the device were just physically attached
4333 to the host, but filters of this machine are ignored to avoid
4334 a possible automatic reattachment.
4335
4336 <see>IUSBController::deviceFilters, USBDeviceState</see>
4337 </desc>
4338 <param name="id" type="uuid" dir="in">
4339 <desc>UUID of the USB device to detach.</desc>
4340 </param>
4341 <param name="device" type="IUSBDevice" dir="return">
4342 <desc>Detached USB device.</desc>
4343 </param>
4344 </method>
4345
4346 <method name="createSharedFolder">
4347 <desc>
4348 Creates a transient new shared folder by associating the given logical
4349 name with the given host path, adds it to the collection of shared
4350 folders and starts sharing it. Refer to the description of
4351 <link to="ISharedFolder"/> to read more about logical names.
4352 </desc>
4353 <param name="name" type="wstring" dir="in">
4354 <desc>Unique logical name of the shared folder.</desc>
4355 </param>
4356 <param name="hostPath" type="wstring" dir="in">
4357 <desc>Full path to the shared folder in the host file system.</desc>
4358 </param>
4359 <param name="writable" type="boolean" dir="in">
4360 <desc>Whether the share is writable or readonly</desc>
4361 </param>
4362 </method>
4363
4364 <method name="removeSharedFolder">
4365 <desc>
4366 Removes a transient shared folder with the given name previously
4367 created by <link to="#createSharedFolder"/> from the collection of
4368 shared folders and stops sharing it.
4369 </desc>
4370 <param name="name" type="wstring" dir="in">
4371 <desc>Logical name of the shared folder to remove.</desc>
4372 </param>
4373 </method>
4374
4375 <method name="takeSnapshot">
4376 <desc>
4377 Saves the current execution state and all settings of the
4378 machine and creates differencing images for all
4379 normal (non-independent) hard disks.
4380
4381 This method can be called for a PoweredOff, Saved, Running or
4382 Paused virtual machine. When the machine is PoweredOff, an
4383 offline <link to="ISnapshot">snapshot</link> is created,
4384 in all other cases -- an online snapshot.
4385
4386 The taken snapshot is always based on the
4387 <link to="IMachine::currentSnapshot">current
4388 snapshot</link> of the associated virtual machine and becomes
4389 a new current snapshot.
4390
4391 <note>
4392 This method implicitly calls <link to="IMachine::saveSettings()"/> to
4393 save all current machine settings before taking an offline snapshot.
4394 </note>
4395
4396 <see>ISnapshot, <link to="#saveState"/></see>
4397 </desc>
4398 <param name="name" type="wstring" dir="in">
4399 <desc>Short name for the snapshot.</desc>
4400 </param>
4401 <param name="description" type="wstring" dir="in">
4402 <desc>Optional description of the snapshot.</desc>
4403 </param>
4404 <param name="progress" type="IProgress" dir="return">
4405 <desc>Progress object to track the operation completion.</desc>
4406 </param>
4407 </method>
4408
4409 <method name="discardSnapshot">
4410 <desc>
4411
4412 Starts discarding the specified snapshot. The execution state
4413 and settings of the associated machine stored in the snapshot
4414 will be deleted. The contents of all differencing hard disks of
4415 this snapshot will be merged with the contents of their
4416 dependent child hard disks to keep the, disks valid (in other
4417 words, all changes represented by hard disks being discarded
4418 will be propagated to their child hard disks). After that, this
4419 snapshot's differencing hard disks will be deleted. The parent
4420 of this snapshot will become a new parent for all its child
4421 snapshots.
4422
4423 If the discarded snapshot is the current one, its parent
4424 snapshot will become a new current snapshot. The current machine
4425 state is not directly affected in this case, except that
4426 currently attached differencing hard disks based on hard disks
4427 of the discarded snapshot will be also merged as described
4428 above.
4429
4430 If the discarded snapshot is the first one (the root snapshot)
4431 and it has exactly one child snapshot, this child snapshot will
4432 become the first snapshot after discarding. If there are no
4433 children at all (i.e. the first snapshot is the only snapshot of
4434 the machine), both the current and the first snapshot of the
4435 machine will be set to null. In all other cases, the first
4436 snapshot cannot be discarded.
4437
4438 You cannot discard the snapshot if it
4439 stores <link to="HardDiskType::Normal">normal</link> (non-differencing)
4440 hard disks that have differencing hard disks based on them. Snapshots of
4441 such kind can be discarded only when every normal hard disk has either
4442 no children at all or exactly one child. In the former case, the normal
4443 hard disk simply becomes unused (i.e. not attached to any VM). In the
4444 latter case, it receives all the changes strored in the child hard disk,
4445 and then it replaces the child hard disk in the configuration of the
4446 corresponding snapshot or machine.
4447
4448 Also, you cannot discard the snapshot if it stores hard disks
4449 (of any type) having differencing child hard disks that belong
4450 to other machines. Such snapshots can be only discarded after
4451 you discard all snapshots of other machines containing "foreign"
4452 child disks, or detach these "foreign" child disks from machines
4453 they are attached to.
4454
4455 One particular example of the snapshot storing normal hard disks
4456 is the first snapshot of a virtual machine that had normal hard
4457 disks attached when taking the snapshot. Be careful when
4458 discarding such snapshots because this implicitly commits
4459 changes (made since the snapshot being discarded has been taken)
4460 to normal hard disks (as described above), which may be not what
4461 you want.
4462
4463 The virtual machine is put to
4464 the <link to="MachineState::Discarding">Discarding</link> state until
4465 the discard operation is completed.
4466
4467 <note>
4468 The machine must not be running, otherwise the operation
4469 will fail.
4470 </note>
4471
4472 <note>
4473 Child hard disks of all normal hard disks of the discarded snapshot
4474 must be <link to="IHardDisk::accessible">accessible</link> for this
4475 operation to succeed. In particular, this means that all virtual
4476 machines, whose hard disks are directly or indirectly based on the
4477 hard disks of discarded snapshot, must be powered off.
4478 </note>
4479 <note>
4480 Merging hard disk contents can be very time and disk space
4481 consuming, if these disks are big in size and have many
4482 children. However, if the snapshot being discarded is the last
4483 (head) snapshot on the branch, the operation will be rather
4484 quick.
4485 </note>
4486 <note>
4487 Note that discarding the current snapshot
4488 will imlicitly call <link to="IMachine::saveSettings()"/> to
4489 make all current machine settings permanent.
4490 </note>
4491 </desc>
4492 <param name="id" type="uuid" dir="in">
4493 <desc>UUID of the snapshot to discard.</desc>
4494 </param>
4495 <param name="progress" type="IProgress" dir="return">
4496 <desc>Progress object to track the operation completion.</desc>
4497 </param>
4498 </method>
4499
4500 <method name="discardCurrentState">
4501 <desc>
4502 This operation is similar to <link to="#discardSnapshot()"/> but
4503 affects the current machine state. This means that the state stored in
4504 the current snapshot will become a new current state, and all current
4505 settings of the machine and changes stored in differencing hard disks
4506 will be lost.
4507
4508 After this operation is successfully completed, new empty differencing
4509 hard disks are created for all normal hard disks of the machine.
4510
4511 If the current snapshot of the machine is an online snapshot, the
4512 machine will go to the <link to="MachineState::Saved"> saved
4513 state</link>, so that the next time it is powered on, the execution
4514 state will be restored from the current snapshot.
4515
4516 <note>
4517 The machine must not be running, otherwise the operation will fail.
4518 </note>
4519
4520 <note>
4521 If the machine state is <link to="MachineState::Saved">Saved</link>
4522 prior to this operation, the saved state file will be implicitly
4523 discarded (as if <link to="IConsole::discardSavedState()"/> were
4524 called).
4525 </note>
4526
4527 </desc>
4528 <param name="progress" type="IProgress" dir="return">
4529 <desc>Progress object to track the operation completion.</desc>
4530 </param>
4531 </method>
4532
4533 <method name="discardCurrentSnapshotAndState">
4534 <desc>
4535
4536 This method is equivalent to
4537 doing <link to="#discardSnapshot">discardSnapshot</link>
4538 (<link
4539 to="IMachine::currentSnapshot">currentSnapshot</link>.<link
4540 to="ISnapshot::id">id()</link>, ...) followed by
4541 <link to="#discardCurrentState()"/>.
4542
4543 As a result, the machine will be fully restored from the
4544 snapshot preceeding the current snapshot, while both the current
4545 snapshot and the current machine state will be discarded.
4546
4547 If the current snapshot is the first snapshot of the machine (i.e. it
4548 has the only snapshot), the current machine state will be
4549 discarded <b>before</b> discarding the snapshot. In other words, the
4550 machine will be restored from its last snapshot, before discarding
4551 it. This differs from performing a single
4552 <link to="#discardSnapshot()"/> call (note that no
4553 <link to="#discardCurrentState()"/> will be possible after it) to the
4554 effect that the latter will preserve the current state instead of
4555 discarding it.
4556
4557 Unless explicitly mentioned otherwise, all remarks and
4558 limitations of the above two methods also apply to this method.
4559
4560 <note>
4561 The machine must not be running, otherwise the operation
4562 will fail.
4563 </note>
4564
4565 <note>
4566 If the machine state is <link to="MachineState::Saved">Saved</link>
4567 prior to this operation, the saved state file will be implicitly
4568 discarded (as if <link to="IConsole::discardSavedState()"/> were
4569 called).</note>
4570
4571 <note>
4572 This method is more efficient than calling two above
4573 methods separately: it requires less IPC calls and provides
4574 a single progress object.
4575 </note>
4576
4577 </desc>
4578 <param name="progress" type="IProgress" dir="return">
4579 <desc>Progress object to track the operation completion.</desc>
4580 </param>
4581 </method>
4582
4583 <method name="registerCallback">
4584 <desc>
4585 Registers a new console callback on this instance. The methods of the
4586 callback interface will be called by this instance when the appropriate
4587 event occurs.
4588 </desc>
4589 <param name="callback" type="IConsoleCallback" dir="in"/>
4590 </method>
4591
4592 <method name="unregisterCallback">
4593 <desc>
4594 Unregisters the console callback previously registered using
4595 <link to="#registerCallback"/>.
4596 </desc>
4597 <param name="callback" type="IConsoleCallback" dir="in"/>
4598 </method>
4599 </interface>
4600
4601 <!--
4602 // IHost
4603 /////////////////////////////////////////////////////////////////////////
4604 -->
4605
4606 <interface
4607 name="IHostDVDDrive" extends="$unknown"
4608 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
4609 wsmap="managed"
4610 >
4611 <desc>
4612 The IHostDVDDrive interface represents the physical CD/DVD drive
4613 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
4614 </desc>
4615
4616 <attribute name="name" type="wstring" readonly="yes">
4617 <desc>
4618 Returns the platform-specific device identifier.
4619 On DOS-like platforms, it is a drive name (e.g. R:).
4620 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
4621 </desc>
4622 </attribute>
4623 <attribute name="description" type="wstring" readonly="yes">
4624 <desc>
4625 Returns a human readable description for the drive. This
4626 description usually contains the product and vendor name. A
4627 @c null string is returned if the description is not available.
4628 </desc>
4629 </attribute>
4630 <attribute name="udi" type="wstring" readonly="yes">
4631 <desc>
4632 Returns the unique device identifier for the drive. This
4633 attribute is reserved for future use instead of
4634 <link to="#name"/>. Currently it is not used and may return
4635 @c null on some platforms.
4636 </desc>
4637 </attribute>
4638
4639 </interface>
4640
4641 <enumerator
4642 name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
4643 uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
4644 />
4645
4646 <collection
4647 name="IHostDVDDriveCollection" type="IHostDVDDrive"
4648 enumerator="IHostDVDDriveEnumerator"
4649 uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
4650 readonly="yes"
4651 >
4652 <method name="findByName">
4653 <desc>
4654 Searches this collection for a host drive with the given name.
4655 <note>
4656 The method returns an error if the given name does not
4657 correspond to any host drive in the collection.
4658 </note>
4659 </desc>
4660 <param name="name" type="wstring" dir="in">
4661 <desc>Name of the host drive to search for</desc>
4662 </param>
4663 <param name="drive" type="IHostDVDDrive" dir="return">
4664 <desc>Found host drive object</desc>
4665 </param>
4666 </method>
4667 </collection>
4668
4669 <interface
4670 name="IHostFloppyDrive" extends="$unknown"
4671 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
4672 wsmap="managed"
4673 >
4674 <desc>
4675 The IHostFloppyDrive interface represents the physical floppy drive
4676 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
4677 </desc>
4678 <attribute name="name" type="wstring" readonly="yes">
4679 <desc>
4680 Returns the platform-specific device identifier.
4681 On DOS-like platforms, it is a drive name (e.g. A:).
4682 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
4683 </desc>
4684 </attribute>
4685 <attribute name="description" type="wstring" readonly="yes">
4686 <desc>
4687 Returns a human readable description for the drive. This
4688 description usually contains the product and vendor name. A
4689 @c null string is returned if the description is not available.
4690 </desc>
4691 </attribute>
4692 <attribute name="udi" type="wstring" readonly="yes">
4693 <desc>
4694 Returns the unique device identifier for the drive. This
4695 attribute is reserved for future use instead of
4696 <link to="#name"/>. Currently it is not used and may return
4697 @c null on some platforms.
4698 </desc>
4699 </attribute>
4700 </interface>
4701
4702 <enumerator
4703 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
4704 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
4705 />
4706
4707 <collection
4708 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
4709 enumerator="IHostFloppyDriveEnumerator"
4710 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
4711 readonly="yes"
4712 >
4713 <method name="findByName">
4714 <desc>
4715 Searches this collection for a host drive with the given name.
4716 <note>
4717 The method returns an error if the given name does not
4718 correspond to any host drive in the collection.
4719 </note>
4720 </desc>
4721 <param name="name" type="wstring" dir="in">
4722 <desc>Name of the host drive to search for</desc>
4723 </param>
4724 <param name="drive" type="IHostFloppyDrive" dir="return">
4725 <desc>Found host drive object</desc>
4726 </param>
4727 </method>
4728 </collection>
4729
4730<if target="midl">
4731 <interface
4732 name="IHostNetworkInterface" extends="$unknown"
4733 uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
4734 wsmap="managed"
4735 >
4736 <attribute name="name" type="wstring" readonly="yes">
4737 <desc>Returns the host network interface name.</desc>
4738 </attribute>
4739
4740 <attribute name="id" type="uuid" readonly="yes">
4741 <desc>Returns the interface UUID.</desc>
4742 </attribute>
4743 </interface>
4744
4745 <enumerator
4746 name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
4747 uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
4748 />
4749
4750 <collection
4751 name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
4752 enumerator="IHostNetworkInterfaceEnumerator"
4753 uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
4754 readonly="yes"
4755 >
4756 <method name="findByName">
4757 <desc>
4758 Searches this collection for a host network interface with the given name.
4759 <note>
4760 The method returns an error if the given name does not
4761 correspond to any host network interface in the collection.
4762 </note>
4763 </desc>
4764 <param name="name" type="wstring" dir="in">
4765 <desc>Name of the host network interface to search for.</desc>
4766 </param>
4767 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
4768 <desc>Found host network interface object.</desc>
4769 </param>
4770 </method>
4771 <method name="findById">
4772 <desc>
4773 Searches this collection for a host network interface with the given GUID.
4774 <note>
4775 The method returns an error if the given GUID does not
4776 correspond to any host network interface in the collection.
4777 </note>
4778 </desc>
4779 <param name="id" type="uuid" dir="in">
4780 <desc>GUID of the host network interface to search for.</desc>
4781 </param>
4782 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
4783 <desc>Found host network interface object.</desc>
4784 </param>
4785 </method>
4786 </collection>
4787</if>
4788
4789 <interface
4790 name="IHost" extends="$unknown"
4791 uuid="3d864057-ae6b-4d05-9cf7-c341139b6062"
4792 wsmap="managed"
4793 >
4794 <desc>
4795 The IHost interface represents the physical machine that this VirtualBox
4796 installation runs on.
4797
4798 An object implementing this interface is returned by the
4799 <link to="IVirtualBox::host" /> attribute. This interface contains
4800 read-only information about the host's physical hardware (such as what
4801 processors, and disks are available, what the host operating system is,
4802 and so on) and also allows for manipulating some of the host's hardware,
4803 such as global USB device filters and host interface networking.
4804
4805 </desc>
4806 <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
4807 <desc>List of DVD drives available on the host.</desc>
4808 </attribute>
4809
4810 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
4811 <desc>List of floppy drives available on the host.</desc>
4812 </attribute>
4813
4814 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
4815 <desc>
4816 List of USB devices currently attached to the host.
4817 Once a new device is physically attached to the host computer,
4818 it appears in this list and remains there until detached.
4819
4820 <note>
4821 This method may set a @ref com_warnings "warning result code".
4822 </note>
4823 <note>
4824 If USB functionality is not avaliable in the given edition of
4825 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4826 </note>
4827 </desc>
4828 </attribute>
4829
4830 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
4831 <desc>
4832 List of USB device filters in action.
4833 When a new device is physically attached to the host computer,
4834 filters from this list are applied to it (in order they are stored
4835 in the list). The first matched filter will determine the
4836 <link to="IHostUSBDeviceFilter::action">action</link>
4837 performed on the device.
4838
4839 Unless the device is ignored by these filters, filters of all
4840 currently running virtual machines
4841 (<link to="IUSBController::deviceFilters"/>) are applied to it.
4842
4843 <note>
4844 This method may set a @ref com_warnings "warning result code".
4845 </note>
4846 <note>
4847 If USB functionality is not avaliable in the given edition of
4848 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4849 </note>
4850
4851 <see>IHostUSBDeviceFilter, USBDeviceState</see>
4852 </desc>
4853 </attribute>
4854
4855<if target="midl">
4856 <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
4857 <desc>List of host network interfaces currently defined on the host.</desc>
4858 </attribute>
4859</if>
4860
4861 <attribute name="processorCount" type="unsigned long" readonly="yes">
4862 <desc>Number of (logical) CPUs installed in the host system.</desc>
4863 </attribute>
4864
4865 <method name="getProcessorSpeed">
4866 <desc>Query the (approximate) maximum speed of a specified host CPU in Megahertz.</desc>
4867 <param name="cpuId" type="unsigned long" dir="in">
4868 <desc>
4869 Identifier of the CPU.
4870 </desc>
4871 </param>
4872 <param name="speed" type="unsigned long" dir="return">
4873 <desc>
4874 Speed value. 0 is returned if value is not known or @a cpuId is
4875 invalid.
4876 </desc>
4877 </param>
4878 </method>
4879
4880 <method name="getProcessorDescription">
4881 <desc>Query the model string of a specified host CPU.</desc>
4882 <param name="cpuId" type="unsigned long" dir="in">
4883 <desc>
4884 Identifier of the CPU.
4885 </desc>
4886 </param>
4887 <param name="description" type="wstring" dir="return">
4888 <desc>
4889 Model string. A NULL string is returned if value is not known or
4890 @a cpuId is invalid.
4891 </desc>
4892 </param>
4893 </method>
4894
4895 <attribute name="memorySize" type="unsigned long" readonly="yes">
4896 <desc>Amount of system memory in megabytes installed in the host system.</desc>
4897 </attribute>
4898
4899 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
4900 <desc>Available system memory in the host system.</desc>
4901 </attribute>
4902
4903 <attribute name="operatingSystem" type="wstring" readonly="yes">
4904 <desc>Name of the host system's operating system.</desc>
4905 </attribute>
4906
4907 <attribute name="OSVersion" type="wstring" readonly="yes">
4908 <desc>Host operating system's version string.</desc>
4909 </attribute>
4910
4911 <attribute name="UTCTime" type="long long" readonly="yes">
4912 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
4913 </attribute>
4914
4915<if target="midl">
4916 <method name="createHostNetworkInterface">
4917 <desc>
4918 Creates a new adapter for Host Interface Networking.
4919 </desc>
4920 <param name="name" type="wstring" dir="in">
4921 <desc>
4922 Adapter name.
4923 </desc>
4924 </param>
4925 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
4926 <desc>
4927 Created host interface object.
4928 </desc>
4929 </param>
4930 <param name="progress" type="IProgress" dir="return">
4931 <desc>
4932 Progress object to track the operation completion.
4933 </desc>
4934 </param>
4935 </method>
4936 <method name="removeHostNetworkInterface">
4937 <desc>
4938 Removes the given host network interface.
4939 </desc>
4940 <param name="id" type="uuid" dir="in">
4941 <desc>
4942 Adapter GUID.
4943 </desc>
4944 </param>
4945 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
4946 <desc>
4947 Removed host interface object.
4948 </desc>
4949 </param>
4950 <param name="progress" type="IProgress" dir="return">
4951 <desc>
4952 Progress object to track the operation completion.
4953 </desc>
4954 </param>
4955 </method>
4956</if>
4957
4958 <method name="createUSBDeviceFilter">
4959 <desc>
4960 Creates a new USB device filter. All attributes except
4961 the filter name are set to <tt>null</tt> (any match),
4962 <i>active</i> is <tt>false</tt> (the filter is not active).
4963
4964 The created filter can be added to the list of filters using
4965 <link to="#insertUSBDeviceFilter()"/>.
4966
4967 <see>#USBDeviceFilters</see>
4968 </desc>
4969 <param name="name" type="wstring" dir="in">
4970 <desc>
4971 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
4972 for more info.
4973 </desc>
4974 </param>
4975 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
4976 <desc>Created filter object.</desc>
4977 </param>
4978 </method>
4979
4980 <method name="insertUSBDeviceFilter">
4981 <desc>
4982 Inserts the given USB device to the specified position
4983 in the list of filters.
4984
4985 Positions are numbered starting from <tt>0</tt>. If the specified
4986 position is equal to or greater than the number of elements in
4987 the list, the filter is added to the end of the collection.
4988
4989 <note>
4990 Duplicates are not allowed, so an attempt to insert a
4991 filter that is already in the list, will return an
4992 error.
4993 </note>
4994 <note>
4995 This method may set a @ref com_warnings "warning result code".
4996 </note>
4997 <note>
4998 If USB functionality is not avaliable in the given edition of
4999 VirtualBox, this method will set the result code to @c E_NOTIMPL.
5000 </note>
5001
5002 <see>#USBDeviceFilters</see>
5003 </desc>
5004 <param name="position" type="unsigned long" dir="in">
5005 <desc>Position to insert the filter to.</desc>
5006 </param>
5007 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
5008 <desc>USB device filter to insert.</desc>
5009 </param>
5010 </method>
5011
5012 <method name="removeUSBDeviceFilter">
5013 <desc>
5014 Removes a USB device filter from the specified position in the
5015 list of filters.
5016
5017 Positions are numbered starting from <tt>0</tt>. Specifying a
5018 position equal to or greater than the number of elements in
5019 the list will produce an error.
5020
5021 <note>
5022 This method may set a @ref com_warnings "warning result code".
5023 </note>
5024 <note>
5025 If USB functionality is not avaliable in the given edition of
5026 VirtualBox, this method will set the result code to @c E_NOTIMPL.
5027 </note>
5028
5029 <see>#USBDeviceFilters</see>
5030 </desc>
5031 <param name="position" type="unsigned long" dir="in">
5032 <desc>Position to remove the filter from.</desc>
5033 </param>
5034 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
5035 <desc>Removed USB device filter.</desc>
5036 </param>
5037 </method>
5038
5039 </interface>
5040
5041 <!--
5042 // ISystemProperties
5043 /////////////////////////////////////////////////////////////////////////
5044 -->
5045
5046 <interface
5047 name="ISystemProperties"
5048 extends="$unknown"
5049 uuid="12c2e31e-247f-4d51-82e5-5b9d4a6c7d5b"
5050 wsmap="managed"
5051 >
5052 <desc>
5053 The ISystemProperties interface represents global properties
5054 of the given VirtualBox installation.
5055
5056 These properties define limits and default values for various
5057 attributes and parameters. Most of the properties are read-only, but some can be
5058 changed by a user.
5059 </desc>
5060
5061 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
5062 <desc>Minium guest system memory in Megabytes.</desc>
5063 </attribute>
5064
5065 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
5066 <desc>Maximum guest system memory in Megabytes.</desc>
5067 </attribute>
5068
5069 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
5070 <desc>Minimum guest video memory in Megabytes.</desc>
5071 </attribute>
5072
5073 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
5074 <desc>Maximum guest video memory in Megabytes.</desc>
5075 </attribute>
5076
5077 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
5078 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
5079 </attribute>
5080
5081 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
5082 <desc>
5083 Number of network adapters associated with every
5084 <link to="IMachine"/> instance.
5085 </desc>
5086 </attribute>
5087
5088 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
5089 <desc>
5090 Number of serial ports associated with every
5091 <link to="IMachine"/> instance.
5092 </desc>
5093 </attribute>
5094
5095 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
5096 <desc>
5097 Number of parallel ports associated with every
5098 <link to="IMachine"/> instance.
5099 </desc>
5100 </attribute>
5101
5102 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
5103 <desc>
5104 Maximum device position in the boot order. This value corresponds
5105 to the total number of devices a machine can boot from, to make it
5106 possible to include all possible devices to the boot list.
5107 <see><link to="IMachine::setBootOrder()"/></see>
5108 </desc>
5109 </attribute>
5110
5111 <attribute name="defaultVDIFolder" type="wstring">
5112 <desc>
5113 Full path to the default directory used to create new or open
5114 existing virtual disk images when an image file name contains no
5115 path.
5116
5117 The initial value of this property is
5118 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
5119 VirtualBox_home</link><tt>&gt;/VDI</tt>.
5120
5121 <note>
5122 Setting this property to <tt>null</tt> will restore the
5123 initial value.
5124 </note>
5125 <note>
5126 When settings this property, the specified path can be
5127 absolute (full path) or relative
5128 to the <link to="IVirtualBox::homeFolder">
5129 VirtualBox home directory</link>.
5130 When reading this property, a full path is
5131 always returned.
5132 </note>
5133 <note>
5134 The specified path may not exist, it will be created
5135 when necessary.
5136 </note>
5137
5138 <see>
5139 <link to="IVirtualBox::createHardDisk()"/>,
5140 <link to="IVirtualBox::openVirtualDiskImage()"/>
5141 </see>
5142 </desc>
5143 </attribute>
5144
5145 <attribute name="defaultMachineFolder" type="wstring">
5146 <desc>
5147 Full path to the default directory used to create new or open
5148 existing machines when a settings file name contains no
5149 path.
5150
5151 The initial value of this property is
5152 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
5153 VirtualBox_home</link><tt>&gt;/Machines</tt>.
5154
5155 <note>
5156 Setting this property to <tt>null</tt> will restore the
5157 initial value.
5158 </note>
5159 <note>
5160 When settings this property, the specified path can be
5161 absolute (full path) or relative
5162 to the <link to="IVirtualBox::homeFolder">
5163 VirtualBox home directory</link>.
5164 When reading this property, a full path is
5165 always returned.
5166 </note>
5167 <note>
5168 The specified path may not exist, it will be created
5169 when necessary.
5170 </note>
5171
5172 <see>
5173 <link to="IVirtualBox::createMachine()"/>,
5174 <link to="IVirtualBox::openMachine()"/>
5175 </see>
5176 </desc>
5177 </attribute>
5178
5179 <attribute name="remoteDisplayAuthLibrary" type="wstring">
5180 <desc>
5181 Library that provides authentication for VRDP clients. The library
5182 is used if a virtual machine's authentication type is set to "external"
5183 in the VM RemoteDisplay configuration.
5184
5185 The system library extension (".DLL" or ".so") must be omitted.
5186 A full path can be specified; if not, then the library must reside on the
5187 system's default library path.
5188
5189 The default value of this property is <tt>VRDPAuth</tt>. There is a library
5190 of that name in one of the default VirtualBox library directories.
5191
5192 For details about VirtualBox authentication libraries and how to implement
5193 them, please refer to the VirtualBox manual.
5194
5195 <note>
5196 Setting this property to <tt>null</tt> will restore the
5197 initial value.
5198 </note>
5199 </desc>
5200 </attribute>
5201
5202 <attribute name="webServiceAuthLibrary" type="wstring">
5203 <desc>
5204 Library that provides authentication for webservice clients. The library
5205 is used if a virtual machine's authentication type is set to "external"
5206 in the VM RemoteDisplay configuration and will be called from
5207 within the <link to="IWebsessionManager::logon" /> implementation.
5208
5209 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
5210 there is no per-VM setting for this, as the webservice is a global
5211 resource (if it is running). Only for this setting (for the webservice),
5212 setting this value to a literal "null" string disables authentication,
5213 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
5214 no matter what user name and password are supplied.
5215
5216 The initial value of this property is <tt>VRDPAuth</tt>,
5217 meaning that the webservice will use the same authentication
5218 library that is used by default for VBoxVRDP (again, see
5219 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
5220 The format and calling convetion of authentication libraries
5221 is the same for the webservice as it is for VBoxVRDP.
5222
5223 </desc>
5224 </attribute>
5225
5226 <attribute name="HWVirtExEnabled" type="boolean">
5227 <desc>
5228 This specifies the default value for hardware virtualization
5229 extensions. If enabled, virtual machines will make use of
5230 hardware virtualization extensions such as Intel VT-x and
5231 AMD-V by default. This value can be overridden by each VM
5232 using their <link to="IMachine::HWVirtExEnabled" /> property.
5233 </desc>
5234 </attribute>
5235
5236 <attribute name="LogHistoryCount" type="unsigned long">
5237 <desc>
5238 This value specifies how many old release log files are kept.
5239 </desc>
5240 </attribute>
5241 </interface>
5242
5243 <!--
5244 // IGuest
5245 /////////////////////////////////////////////////////////////////////////
5246 -->
5247
5248 <interface
5249 name="IGuestOSType" extends="$unknown"
5250 uuid="da94f478-1f37-4726-b750-2235950dc2fe"
5251 wsmap="struct"
5252 >
5253 <desc>
5254 <note>With the COM API, this is an interface like all the others. With the webservice,
5255 this is mapped to a structure, so querying the attribute will not return an object,
5256 but a complete structure.</note>
5257 </desc>
5258
5259 <attribute name="id" type="wstring" readonly="yes">
5260 <desc>Guest OS identifier string.</desc>
5261 </attribute>
5262
5263 <attribute name="description" type="wstring" readonly="yes">
5264 <desc>Human readable description of the guest OS.</desc>
5265 </attribute>
5266
5267 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
5268 <desc>Recommended RAM size in Megabytes.</desc>
5269 </attribute>
5270
5271 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
5272 <desc>Recommended video RAM size in Megabytes.</desc>
5273 </attribute>
5274
5275 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
5276 <desc>Recommended hard disk size in Megabytes.</desc>
5277 </attribute>
5278 </interface>
5279
5280
5281 <enumerator
5282 name="IGuestOSTypeEnumerator" type="IGuestOSType"
5283 uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
5284 />
5285
5286 <collection
5287 name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
5288 uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
5289 readonly="yes"
5290 />
5291
5292 <interface
5293 name="IGuest" extends="$unknown"
5294 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
5295
5296 wsmap="suppress"
5297 >
5298 <desc>
5299 The IGuest interface represents information about the operating system
5300 running inside the virtual machine. Used in
5301 <link to="IConsole::guest"/>.
5302
5303 IGuest provides information about the guest operating system, whether
5304 Guest Additions are installed and other OS-specific virtual machine
5305 properties.
5306 </desc>
5307
5308 <attribute name="OSTypeId" type="wstring" readonly="yes">
5309 <desc>
5310 Identifier of the Guest OS type as reported by the Guest
5311 Additions.
5312 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
5313 an IGuestOSType object representing details about the given
5314 Guest OS type.
5315 <note>
5316 If Guest Additions are not installed, this value will be
5317 the same as <link to="IMachine::OSTypeId"/>.
5318 </note>
5319 </desc>
5320 </attribute>
5321
5322 <attribute name="additionsActive" type="boolean" readonly="yes">
5323 <desc>
5324 Flag whether the Guest Additions are installed and active
5325 in which case their version will be returned by the
5326 <link to="#additionsVersion"/> property.
5327 </desc>
5328 </attribute>
5329
5330 <attribute name="additionsVersion" type="wstring" readonly="yes">
5331 <desc>
5332 Version of the Guest Additions (3 decimal numbers separated
5333 by dots) or empty when the Additions are not installed. The
5334 Additions may also report a version but yet not be active as
5335 the version might be refused by VirtualBox (incompatible) or
5336 other failures occured.
5337 </desc>
5338 </attribute>
5339
5340 <attribute name="supportsSeamless" type="boolean" readonly="yes">
5341 <desc>
5342 Flag whether seamless guest display rendering (seamless desktop
5343 integration) is supported.
5344 </desc>
5345 </attribute>
5346
5347 <attribute name="supportsGraphics" type="boolean" readonly="yes">
5348 <desc>
5349 Flag whether the guest is in graphics mode. If it is not, then
5350 seamless rendering will not work, resize hints are not immediately
5351 acted on and guest display resizes are probably not initiated by
5352 the guest additions.
5353 </desc>
5354 </attribute>
5355
5356 <attribute name="memoryBalloonSize" type="unsigned long">
5357 <desc>Guest system memory balloon size in megabytes.</desc>
5358 </attribute>
5359
5360 <attribute name="statisticsUpdateInterval" type="unsigned long">
5361 <desc>Interval to update guest statistics in seconds.</desc>
5362 </attribute>
5363
5364 <method name="setCredentials">
5365 <desc>
5366 Store login credentials that can be queried by guest operating
5367 systems with Additions installed. The credentials are transient
5368 to the session and the guest may also choose to erase them. Note
5369 that the caller cannot determine whether the guest operating system
5370 has queried or made use of the credentials.
5371 </desc>
5372 <param name="userName" type="wstring" dir="in">
5373 <desc>User name string, can be empty</desc>
5374 </param>
5375 <param name="password" type="wstring" dir="in">
5376 <desc>Password string, can be empty</desc>
5377 </param>
5378 <param name="domain" type="wstring" dir="in">
5379 <desc>Domain name (guest logon scheme specific), can be emtpy</desc>
5380 </param>
5381 <param name="allowInteractiveLogon" type="boolean" dir="in">
5382 <desc>
5383 Flag whether the guest should alternatively allow the user to
5384 interactively specify different credentials. This flag might
5385 not be supported by all versions of the Additions.
5386 </desc>
5387 </param>
5388 </method>
5389
5390 <method name="getStatistic">
5391 <desc>
5392 Query specified guest statistics as reported by the VirtualBox Additions.
5393 </desc>
5394 <param name="cpuId" type="unsigned long" dir="in">
5395 <desc>Virtual CPU id; not relevant for all statistic types</desc>
5396 </param>
5397 <param name="statistic" type="GuestStatisticType" dir="in">
5398 <desc>Statistic type.</desc>
5399 </param>
5400 <param name="statVal" type="unsigned long" dir="out">
5401 <desc>Statistics value</desc>
5402 </param>
5403 </method>
5404
5405 </interface>
5406
5407
5408 <!--
5409 // IProgress
5410 /////////////////////////////////////////////////////////////////////////
5411 -->
5412
5413 <enumerator
5414 name="IProgressEnumerator" type="IProgress"
5415 uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
5416 />
5417
5418 <collection
5419 name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
5420 uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
5421 readonly="yes"
5422 />
5423
5424 <interface
5425 name="IProgress" extends="$unknown"
5426 uuid="10CC03A1-717E-429b-992D-C67B56175A51"
5427 wsmap="managed"
5428 >
5429 <desc>
5430 The IProgress interface represents a task progress object that allows
5431 to wait for the completion of some asynchronous task.
5432
5433 The task consists of one or more operations that run sequentially,
5434 one after one. There is an individual percent of completion of the
5435 current operation and the percent of completion of the task as a
5436 whole. Similarly, you can wait for the completion of a particular
5437 operation or for the completion of the whole task.
5438
5439 Every operation is identified by a number (starting from 0)
5440 and has a separate description.
5441 </desc>
5442
5443 <attribute name="id" type="uuid" readonly="yes">
5444 <desc>ID of the task.</desc>
5445 </attribute>
5446
5447 <attribute name="description" type="wstring" readonly="yes">
5448 <desc>Description of the task.</desc>
5449 </attribute>
5450
5451 <attribute name="initiator" type="$unknown" readonly="yes">
5452 <desc>Initiator of the task.</desc>
5453 </attribute>
5454
5455 <attribute name="cancelable" type="boolean" readonly="yes">
5456 <desc>Whether the task can be interrupted.</desc>
5457 </attribute>
5458
5459 <attribute name="percent" type="long" readonly="yes">
5460 <desc>
5461 Current task progress value in percent.
5462 This value depends on how many operations are already complete.
5463 </desc>
5464 </attribute>
5465
5466 <attribute name="completed" type="boolean" readonly="yes">
5467 <desc>Whether the task has been completed.</desc>
5468 </attribute>
5469
5470 <attribute name="canceled" type="boolean" readonly="yes">
5471 <desc>Whether the task has been canceled.</desc>
5472 </attribute>
5473
5474 <attribute name="resultCode" type="result" readonly="yes">
5475 <desc>
5476 Result code of the progress task.
5477 Valid only if <link to="#completed"/> is true.
5478 </desc>
5479 </attribute>
5480
5481 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
5482 <desc>
5483 Extended information about the unsuccessful result of the
5484 progress operation. May be NULL when no extended information
5485 is available.
5486 Valid only if <link to="#completed"/> is true and
5487 <link to="#resultCode"/> indicates a failure.
5488 </desc>
5489 </attribute>
5490
5491 <attribute name="operationCount" type="unsigned long" readonly="yes">
5492 <desc>
5493 Number of operations this task is divided into.
5494 Every task consists of at least one operation.
5495 </desc>
5496 </attribute>
5497
5498 <attribute name="operation" type="unsigned long" readonly="yes">
5499 <desc>Number of the operation being currently executed.</desc>
5500 </attribute>
5501
5502 <attribute name="operationDescription" type="wstring" readonly="yes">
5503 <desc>
5504 Description of the operation being currently executed.
5505 </desc>
5506 </attribute>
5507
5508 <attribute name="operationPercent" type="long" readonly="yes">
5509 <desc>Current operation progress value in percent.</desc>
5510 </attribute>
5511
5512 <method name="waitForCompletion">
5513 <desc>
5514 Waits until the task is done (including all operations) with a
5515 given timeout.
5516 </desc>
5517 <param name="timeout" type="long" dir="in">
5518 <desc>
5519 Timeout value in milliseconds.
5520 Specify -1 for an indefinite wait.
5521 </desc>
5522 </param>
5523 </method>
5524
5525 <method name="waitForOperationCompletion">
5526 <desc>
5527 Waits until the given operation is done with a given timeout.
5528 </desc>
5529 <param name="operation" type="unsigned long" dir="in">
5530 <desc>
5531 Number of the operation to wait for.
5532 Must be less than <link to="#operationCount"/>.
5533 </desc>
5534 </param>
5535 <param name="timeout" type="long" dir="in">
5536 <desc>
5537 Timeout value in milliseconds.
5538 Specify -1 for an indefinite wait.
5539 </desc>
5540 </param>
5541 </method>
5542
5543 <method name="cancel">
5544 <desc>
5545 Cancels the task.
5546 <note>
5547 If <link to="#cancelable"/> is <tt>false</tt>, then
5548 this method will fail.
5549 </note>
5550 </desc>
5551 </method>
5552
5553 </interface>
5554
5555
5556 <!--
5557 // ISnapshot
5558 /////////////////////////////////////////////////////////////////////////
5559 -->
5560
5561 <enumerator
5562 name="ISnapshotEnumerator" type="ISnapshot"
5563 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
5564 />
5565
5566 <collection
5567 name="ISnapshotCollection" type="ISnapshot"
5568 enumerator="ISnapshotEnumerator"
5569 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
5570 readonly="yes"
5571 />
5572
5573 <interface
5574 name="ISnapshot" extends="$unknown"
5575 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
5576 wsmap="managed"
5577 >
5578 <desc>
5579 The ISnapshot interface represents a snapshot of the virtual
5580 machine.
5581
5582 The <i>snapshot</i> stores all the information about a virtual
5583 machine necessary to bring it to exactly the same state as it was at
5584 the time of taking the snapshot. The snapshot includes:
5585
5586 <ul>
5587 <li>all settings of the virtual machine (i.e. its hardware
5588 configuration: RAM size, attached hard disks, etc.)
5589 </li>
5590 <li>the execution state of the virtual machine (memory contents,
5591 CPU state, etc.).
5592 </li>
5593 </ul>
5594
5595 Snapshots can be <i>offline</i> (taken when the VM is powered off)
5596 or <i>online</i> (taken when the VM is running). The execution
5597 state of the offline snapshot is called a <i>zero execution state</i>
5598 (it doesn't actually contain any information about memory contents
5599 or the CPU state, assuming that all hardware is just powered off).
5600
5601 <h3>Snapshot branches</h3>
5602
5603 Snapshots can be chained. Chained snapshots form a branch where
5604 every next snapshot is based on the previous one. This chaining is
5605 mostly related to hard disk branching (see <link to="IHardDisk"/>
5606 description). This means that every time a new snapshot is created,
5607 a new differencing hard disk is implicitly created for all normal
5608 hard disks attached to the given virtual machine. This allows to
5609 fully restore hard disk contents when the machine is later reverted
5610 to a particular snapshot.
5611
5612 In the current implelemtation, multiple snapshot branches within one
5613 virtual machine are not allowed. Every machine has a signle branch,
5614 and <link to="IConsole::takeSnapshot()"/> operation adds a new
5615 snapshot to the top of that branch.
5616
5617 Existings snapshots can be discarded using
5618 <link to="IConsole::discardSnapshot()"/>.
5619
5620 <h3>Current snapshot</h3>
5621
5622 Every virtual machine has a current snapshot, identified by
5623 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
5624 a base for the <i>current machine state</i> (see below), to the effect
5625 that all normal hard disks of the machine and its execution
5626 state are based on this snapshot.
5627
5628 In the current implementation, the current snapshot is always the
5629 last taken snapshot (i.e. the head snapshot on the branch) and it
5630 cannot be changed.
5631
5632 The current snapshot is <tt>null</tt> if the machine doesn't have
5633 snapshots at all; in this case the current machine state is just
5634 current settings of this machine plus its current execution state.
5635
5636 <h3>Current machine state</h3>
5637
5638 The current machine state is what represened by IMachine instances got
5639 directly from IVirtualBox
5640 using <link
5641 to="IVirtualBox::getMachine()">getMachine()</link>, <link
5642 to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as opposed
5643 to instances returned by <link to="ISnapshot::machine"/>). This state
5644 is always used when the machine is <link to="IConsole::powerUp"> powered
5645 on</link>.
5646
5647 The current machine state also includes the current execution state.
5648 If the machine is being currently executed
5649 (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
5650 and above), its execution state is just what's happening now.
5651 If it is powered off (<link to="MachineState::PoweredOff"/> or
5652 <link to="MachineState::Aborted"/>), it has a zero execution state.
5653 If the machine is saved (<link to="MachineState::Saved"/>), its
5654 execution state is what saved in the execution state file
5655 (<link to="IMachine::stateFilePath"/>).
5656
5657 If the machine is in the saved state, then, next time it is powered
5658 on, its execution state will be fully restored from the saved state
5659 file and the execution will continue from the point where the state
5660 was saved.
5661
5662 Similarly to snapshots, the current machine state can be discarded
5663 using <link to="IConsole::discardCurrentState()"/>.
5664
5665 <h3>Taking and discarding snapshots</h3>
5666
5667 The table below briefly explains the meaning of every snapshot
5668 operation:
5669
5670 <table>
5671 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
5672
5673 <tr><td><link to="IConsole::takeSnapshot()"/></td>
5674
5675 <td>Save the current state of the virtual machine, including all
5676 settings, contents of normal hard disks and the current modifications
5677 to immutable hard disks (for online snapshots)</td>
5678
5679 <td>The current state is not changed (the machine will continue
5680 execution if it is being executed when the snapshot is
5681 taken)</td></tr>
5682
5683 <tr><td><link to="IConsole::discardSnapshot()"/></td>
5684
5685 <td>Forget the state of the virtual machine stored in the snapshot:
5686 dismiss all saved settings and delete the saved execution state (for
5687 online snapshots)</td>
5688
5689 <td>Other snapshots (including child snapshots, if any) and the
5690 current state are not directly affected</td></tr>
5691
5692 <tr><td><link to="IConsole::discardCurrentState()"/></td>
5693
5694 <td>Restore the current state of the virtual machine from the state
5695 stored in the current snapshot, including all settings and hard disk
5696 contents</td>
5697
5698 <td>The current state of the machine existed prior to this operation
5699 is lost</td></tr>
5700
5701 <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
5702
5703 <td>Completely revert the virtual machine to the state it was in
5704 before the current snapshot has been taken</td>
5705
5706 <td>The current state, as well as the current snapshot, are
5707 lost</td></tr>
5708
5709 </table>
5710
5711 </desc>
5712
5713 <attribute name="id" type="uuid" readonly="yes">
5714 <desc>UUID of the snapshot.</desc>
5715 </attribute>
5716
5717 <attribute name="name" type="wstring">
5718 <desc>Short name of the snapshot.</desc>
5719 </attribute>
5720
5721 <attribute name="description" type="wstring">
5722 <desc>Optional description of the snapshot.</desc>
5723 </attribute>
5724
5725 <attribute name="timeStamp" type="long long" readonly="yes">
5726 <desc>
5727 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
5728 </desc>
5729 </attribute>
5730
5731 <attribute name="online" type="boolean" readonly="yes">
5732 <desc>
5733 <tt>true</tt> if this snapshot is an online snapshot and
5734 <tt>false</tt> otherwise.
5735
5736 <note>
5737 When this attribute is <tt>true</tt>, the
5738 <link to="IMachine::stateFilePath"/> attribute of the
5739 <link to="#machine"/> object associated with this snapshot
5740 will point to the saved state file. Otherwise, it will be
5741 <tt>null</tt>.
5742 </note>
5743 </desc>
5744 </attribute>
5745
5746 <attribute name="machine" type="IMachine" readonly="yes">
5747 <desc>
5748 Virtual machine this snapshot is taken on. This object
5749 stores all settings the machine had when taking this snapshot.
5750 <note>
5751 The returned machine object is immutable, i.e. no
5752 any settings can be changed.
5753 </note>
5754 </desc>
5755 </attribute>
5756
5757 <attribute name="parent" type="ISnapshot" readonly="yes">
5758 <desc>
5759 Parent snapshot (a snapshot this one is based on).
5760 <note>
5761 It's not an error to read this attribute on a snapshot
5762 that doesn't have a parent -- a null object will be
5763 returned to indicate this.
5764 </note>
5765 </desc>
5766 </attribute>
5767
5768 <attribute name="children" type="ISnapshotCollection" readonly="yes">
5769 <desc>
5770 Child snapshots (all snapshots having this one as a parent).
5771 <note>
5772 In the current implementation, there can be only one
5773 child snapshot, or no children at all, meaning this is the
5774 last (head) snapshot.
5775 </note>
5776 </desc>
5777 </attribute>
5778
5779 </interface>
5780
5781 <!--
5782 // IHardDisk
5783 /////////////////////////////////////////////////////////////////////////
5784 -->
5785
5786 <enum
5787 name="HardDiskStorageType"
5788 uuid="48138584-ad99-479d-a36f-eb82a7663685"
5789 >
5790 <desc>
5791 Virtual hard disk storage type.
5792 <see>IHardDisk</see>
5793 </desc>
5794
5795 <const name="VirtualDiskImage" value="0">
5796 <desc>
5797 Virtual Disk Image, VDI (a regular file in the file
5798 system of the host OS, see <link to="IVirtualDiskImage"/>)
5799 </desc>
5800 </const>
5801 <const name="ISCSIHardDisk" value="1">
5802 <desc>
5803 iSCSI Remote Disk (a disk accessed via the Internet
5804 SCSI protocol over a TCP/IP network, see
5805 <link to="IISCSIHardDisk"/>)
5806 </desc>
5807 </const>
5808 <const name="VMDKImage" value="2">
5809 <desc>
5810 VMware Virtual Machine Disk image (a regular file in the file
5811 system of the host OS, see <link to="IVMDKImage"/>)
5812 </desc>
5813 </const>
5814 <const name="CustomHardDisk" value="3">
5815 <desc>
5816 Disk formats supported through plugins (see
5817 <link to="ICustomHardDisk"/>)
5818 </desc>
5819 </const>
5820 <const name="VHDImage" value="4">
5821 <desc>
5822 Virtual PC Virtual Machine Disk image (a regular file in the file
5823 system of the host OS, see <link to="IVHDImage"/>)
5824 </desc>
5825 </const>
5826 </enum>
5827
5828 <enum
5829 name="HardDiskType"
5830 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
5831 >
5832 <desc>
5833 Virtual hard disk type.
5834 <see>IHardDisk</see>
5835 </desc>
5836
5837 <const name="Normal" value="0">
5838 <desc>
5839 Normal hard disk (attached directly or indirectly, preserved
5840 when taking snapshots).
5841 </desc>
5842 </const>
5843 <const name="Immutable" value="1">
5844 <desc>
5845 Immutable hard disk (attached indirectly, changes are wiped out
5846 after powering off the virtual machine).
5847 </desc>
5848 </const>
5849 <const name="Writethrough" value="2">
5850 <desc>
5851 Write through hard disk (attached directly, ignored when
5852 taking snapshots).
5853 </desc>
5854 </const>
5855 </enum>
5856
5857 <interface
5858 name="IHardDiskAttachment" extends="$unknown"
5859 uuid="c0ffe596-21c6-4797-8d8a-b47b66881e7a"
5860 wsmap="struct"
5861 >
5862 <desc>
5863 <note>With the COM API, this is an interface like all the others. With the webservice,
5864 this is mapped to a structure, so querying the attribute will not return an object,
5865 but a complete structure.</note>
5866 </desc>
5867 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
5868 <desc>Harddisk object this attachment is about.</desc>
5869 </attribute>
5870
5871 <attribute name="bus" type="StorageBus" readonly="yes">
5872 <desc>Disk controller ID of this attachment.</desc>
5873 </attribute>
5874
5875 <attribute name="channel" type="long" readonly="yes">
5876 <desc>Channel number of the attachment.</desc>
5877 </attribute>
5878
5879 <attribute name="device" type="long" readonly="yes">
5880 <desc>Device slot number of the attachment.</desc>
5881 </attribute>
5882
5883 </interface>
5884
5885 <enumerator
5886 name="IHardDiskAttachmentEnumerator" type="IHardDiskAttachment"
5887 uuid="9955e486-2f0b-432a-99e4-0ebbd338875e"
5888 />
5889
5890 <collection
5891 name="IHardDiskAttachmentCollection" type="IHardDiskAttachment"
5892 enumerator="IHardDiskAttachmentEnumerator"
5893 uuid="8f727842-bb77-45d4-92de-4ec14bf613c9"
5894 readonly="yes"
5895 />
5896
5897 <enumerator
5898 name="IHardDiskEnumerator" type="IHardDisk"
5899 uuid="b976f97b-cdb8-47e3-9860-084031cbd533"
5900 />
5901
5902 <collection
5903 name="IHardDiskCollection" type="IHardDisk"
5904 enumerator="IHardDiskEnumerator"
5905 uuid="43EAC2BC-5C61-40fa-BC38-46DE2C7DB6BB"
5906 readonly="yes"
5907 />
5908
5909 <interface
5910 name="IHardDisk" extends="$unknown"
5911 uuid="FD443EC1-000F-4F5B-9282-D72760A66916"
5912 wsmap="managed"
5913 >
5914 <desc>
5915 The IHardDisk interface represents a virtual hard disk drive
5916 used by virtual machines.
5917
5918 The virtual hard disk drive virtualizes the hard disk hardware and
5919 looks like a regular hard disk inside the virtual machine and
5920 the guest OS.
5921
5922 <h3>Storage Types</h3>
5923
5924 The <link to="HardDiskStorageType">storage type</link> of the
5925 virtual hard disk determines where and how it stores its data
5926 (sectors). Currently, the following storage types are supported:
5927
5928 <ul>
5929
5930 <li>
5931 <i>Virtual Disk Image (VDI)</i>, a regular file in the file system
5932 of the host OS (represented by the <link to="IVirtualDiskImage"/>
5933 interface). This file has a special format optimized so that unused
5934 sectors of data occupy much less space than on a physical hard disk.
5935 </li>
5936
5937 <li>
5938 <i>iSCSI Remote Disk</i>, a disk accessed via the Internet SCSI
5939 protocol over a TCP/IP network link (represented by the
5940 <link to="IISCSIHardDisk"/> interface).
5941 </li>
5942
5943 <li>
5944 <i>VMware VMDK image</i>, a regular file in the file system of the
5945 host OS (represented by the <link to="IVMDKImage"/> interface).
5946 Note that the regular file may be just a descriptor referring to
5947 further files, so don't make assumptions about the OS representation
5948 of a VMDK image.
5949 </li>
5950
5951 <li>
5952 <i>Custom HardDisk</i>, a disk accessed via a plugin which is loaded
5953 when the disk is accessed (represented by the
5954 <link to="ICustomHardDisk"/> interface).
5955 </li>
5956
5957 <li>
5958 <i>Virtual PC VHD Image</i>, a regular file in the file system of the
5959 host OS (represented by the <link to="IVHDImage"/> interface).
5960 </li>
5961
5962 </ul>
5963
5964 The storage type of the particular hard disk object is indicated by
5965 the <link to="#storageType"/> property.
5966
5967 Each storage type is represented by its own interface (as shown
5968 above), that allows to query and set properties and perform
5969 operations specific to that storage type. When an IHardDisk object
5970 reports it uses some particular storage type, it also guaranteed to
5971 support the corresponding interface which you can query. And vice
5972 versa, every object that supports a storage-specific interface, also
5973 supports IHardDisk.
5974
5975 <h3>Virtual Hard Disk Types</h3>
5976
5977 The <link to="HardDiskType">type</link> of the virtual hard disk
5978 determines how it is attached to the virtual machine when you call
5979 <link to="IMachine::attachHardDisk()"/> and what happens to it when
5980 a <link to="ISnapshot">snapshot</link> of the virtual machine is
5981 taken.
5982
5983 There are three types of virtual hard disks:
5984
5985 <ul>
5986 <li><i>Normal</i></li>
5987 <li><i>Immutable</i></li>
5988 <li><i>Writethrough</i></li>
5989 </ul>
5990
5991 The virtual disk type is indicated by the <link to="#type"/>
5992 property. Each of the above types is described in detail further
5993 down.
5994
5995 There is also a forth, "hidden" virtual disk type:
5996 <i>Differencing</i>. It is "hidden" because you cannot directly
5997 create hard disks of this type -- they are automatically created by
5998 VirtualBox when necessary.
5999
6000 <b>Differencing Hard Disks</b>
6001
6002 Unlike disks of other types (that are similar to real hard disks),
6003 the differencing hard disk does not store the full range of data
6004 sectors. Instead, it stores only a subset of sectors of some other
6005 disk that were changed since the differencing hard disk has been
6006 created. Thus, every differencing hard disk has a parent hard disk
6007 it is linked to, and represents the difference between the initial
6008 and the current hard disk state. A differencing hard disk can be
6009 linked to another differencing hard disk -- this way, differencing
6010 hard disks can form a branch of changes. More over, a given virtual
6011 hard disk can have more than one differencing hard disk linked to
6012 it.
6013
6014 A disk the differencing hard disk is linked to (or, in other words,
6015 based on) is called a <i>parent</i> hard disk and is accessible through
6016 the <link to="#parent"/> property. Similarly, all existing differencing
6017 hard disks for a given parent hard disk are called its <i>child</i> hard
6018 disks (and accessible through the <link to="#children"/> property).
6019
6020 All differencing hard disks use Virtual Disk Image files to store
6021 changed sectors. They have the <link to="#type"/> property set to
6022 Normal, but can be easily distinguished from normal hard disks using
6023 the <link to="#parent"/> property: all differencing hard disks have
6024 a parent, while all normal hard disks don't.
6025
6026 When the virtual machine makes an attempt to read a sector that is
6027 missing in a differencing hard disk, its parent is accessed to
6028 resolve the sector in question. This process continues until the
6029 sector is found, or until the root hard disk is encountered, which
6030 always contains all sectors. As a consequence,
6031
6032 <ul>
6033
6034 <li>
6035 The virtual hard disk geometry seen by the guest OS is
6036 always defined by the root hard disk.
6037 </li>
6038
6039 <li>
6040 All hard disks on a branch, up to the root, must be
6041 <link to="#accessible"/> for a given differencing hard disk in order
6042 to let it function properly when the virtual machine is
6043 running.
6044 </li>
6045
6046 </ul>
6047
6048 Differencing hard disks can be implicitly created by VirtualBox in
6049 the following cases:
6050
6051 <ul>
6052
6053 <li>
6054 When a hard disk is <i>indirectly</i> attached to the virtual
6055 machine using <link to="IMachine::attachHardDisk()"/>. In this
6056 case, all disk writes performed by the guest OS will go to the
6057 created diffferencing hard disk, as opposed to the
6058 <i>direct</i> attachment, where all changes are written to the
6059 attached hard disk itself.
6060 </li>
6061
6062 <li>
6063 When a <link to="ISnapshot">snapshot</link> of the virtual machine
6064 is taken. After that, disk writes to hard disks the differencing
6065 ones have been created for, will be directed to those differencing
6066 hard disks, to preserve the contents of the original disks.
6067 </li>
6068
6069 </ul>
6070
6071 Whether to create a differencing hard disk or not depends on the
6072 type of the hard disk attached to the virtual machine. This is
6073 explained below.
6074
6075 Note that in the current implementation, only the
6076 <link to="VirtualDiskImage"/> storage type is used to
6077 represent differencing hard disks. In other words, all
6078 differencing hard disks are <link to="IVirtualDiskImage"/>
6079 objects.
6080
6081 <b>Normal Hard Disks</b>
6082
6083 Normal hard disks are the most commonly used virtual hard disk. A
6084 normal hard disk is attached to the machine directly if it is not
6085 already attached to some other machine. Otherwise, an attempt to
6086 make an indirect attachment through a differencing hard disk will be
6087 made. This attempt will fail if the hard disk is attached to a
6088 virtual machine without snapshots (because it's impossible to create
6089 a differencing hard disk based on a hard disk that is subject to
6090 change).
6091
6092 When an indirect attachment takes place, in the simplest case, where
6093 the machine the hard disk is being attached to doesn't have
6094 snapshots, the differencing hard disk will be based on the normal
6095 hard disk being attached. Otherwise, the first (i.e. the most
6096 recent) descendant of the given normal hard disk found in the
6097 current snapshot branch (starting from the current snapshot and
6098 going up to the root) will be actually used as a base.
6099
6100 Note that when you detach an indirectly attached hard disk from the
6101 machine, the created differencing hard disk image is simply
6102 <b>deleted</b>, so <b>all changes are lost</b>. If you attach the
6103 same disk again, a clean differencing disk will be created based on
6104 the most recent child, as described above.
6105
6106 When taking a snapshot, the contents of all normal hard disks (and
6107 all differencing disks whose roots are normal hard disks) currently
6108 attached to the virtual machine is preserved by creating
6109 differencing hard disks based on them.
6110
6111 <b>Immutable Hard Disks</b>
6112
6113 Immutable hard disks can be used to provide a sort of read-only
6114 access. An immutable hard disk is always attached indirectly. The
6115 created differencing hard disk is automatically wiped out (recreated
6116 from scratch) every time you power off the virtual machine. Thus,
6117 the contents of the immutable disk remains unchanged between runs.
6118
6119 Detaching an immutable hard disk deletes the differencing disk
6120 created for it, with the same effect as in case with normal hard
6121 disks.
6122
6123 When taking a snapshot, the differencing part of the immutable
6124 hard disk is cloned (i.e. copied to a separate Virtual Disk Image
6125 file) without any changes. This is necessary to preserve the exact
6126 virtual machine state when you create an online snapshot.
6127
6128 <b>Writethrough Hard Disks</b>
6129
6130 Hard disks of this type are always attached directly. This means
6131 that every given writethrough hard disk can be attached only to one
6132 virtual machine at a time.
6133
6134 It is impossible to take a snapshot of a virtual machine with the
6135 writethrough hard disk attached, because taking a snapshot implies
6136 saving the execution state and preserving the contents of all hard
6137 disks, but writethrough hard disks cannot be preserved. Preserving
6138 hard disk contents is necessary to ensure the guest OS stored in the
6139 snapshot will get the same hard disk state when restored, which is
6140 especially important when it has open file handles or when there are
6141 cached files and directories stored in memory.
6142
6143 <h3>Creating, Opening and Registering Hard Disks</h3>
6144
6145 Non-differencing hard disks are either created from scratch using
6146 <link to="IVirtualBox::createHardDisk()"/> or opened from a VDI file
6147 using <link to="IVirtualBox::openVirtualDiskImage()"/> (only for hard
6148 disks using the VirtualDiskImage storage type). Once a hard disk is
6149 created or opened, it needs to be registered using
6150 <link to="IVirtualBox::registerHardDisk()"/> to make it available for
6151 attaching to virtual machines. See the documentation of individual
6152 interfaces for various storage types to get more information.
6153
6154 Differencing hard disks are never created explicitly and cannot
6155 be registered or unregistered; they are automatically registered
6156 upon creation and deregistered when deleted.
6157
6158 <h3>More about Indirect Hard Disk Attachments</h3>
6159
6160 Normally, when you attach a hard disk to the virtual machine, and then
6161 query the corresponding attachment using
6162 <link to="IMachine::getHardDisk()"/> or
6163 <link to="IMachine::hardDiskAttachments"/> you will get the same hard
6164 disk object, whose UUID you passed earlier to
6165 <link to="IMachine::attachHardDisk()"/>. However, when an indirect
6166 attachment takes place, calling <link to="IMachine::getHardDisk()"/>
6167 will return a differencing hard disk object, that is either based on the
6168 attached hard disk or on another differencing hard disk, the attached
6169 hard disk is eventually a root for (as described above). In both cases
6170 the returned hard disk object is the object the virtual machine actually
6171 uses to perform disk writes to.
6172
6173 Regardless of whether the attachment is direct or indirect, the
6174 <link to="#machineId"/> property of the attached disk will contain an
6175 UUID of the machine object <link to="IMachine::attachHardDisk()"/>
6176 has been called on.
6177
6178 Note that both <link to="IMachine::attachHardDisk()"/> and
6179 <link to="IMachine::detachHardDisk()"/> are <i>lazy</i> operations. In
6180 particular, this means that when an indirect attachment is made,
6181 differencing hard disks are not created until machine settings are
6182 committed using <link to="IMachine::saveSettings()"/>. Similarly, when a
6183 differencing hard disk is detached, it is not deleted until
6184 <link to="IMachine::saveSettings()"/> is called. Calling
6185 <link to="IMachine::discardSettings()"/> cancels all lazy attachments or
6186 detachments made since the last commit and effectively restores the
6187 previous set of hard disks.
6188
6189 <h3>Hard Disk Accessibility</h3>
6190
6191 The <link to="#accessible"/> attribute of the hard disk object
6192 defines the accessibility state of the respective hard disk storage
6193 (for example, the VDI file for IVirtualDiskImage objects). If the
6194 value of this attribute is <tt>false</tt> then some hard disk
6195 attributes may contain invalid or outdated values (for example, the
6196 virtual or the actual hard disk size) until a new accessibility
6197 check is done that returns <tt>true</tt> (see the attribute
6198 description for more details).
6199
6200 <note>
6201 Because of the possible slowness of the accessibility check,
6202 it is not implicitly performed upon the VirtualBox server startup
6203 (to prevent the application freeze). In partcular, this means that
6204 if you try to read hard disk properties that depend on the
6205 accessibility state without first reading the value of the
6206 <link to="#accessible"/> attribute and ensuring it's value is
6207 <tt>true</tt>, you will get wrong (zero) values.
6208 </note>
6209
6210 </desc>
6211
6212 <attribute name="id" type="uuid" readonly="yes">
6213 <desc>
6214
6215 UUID of the hard disk. For newly created hard disk objects,
6216 this value is a randomly generated UUID.
6217
6218 </desc>
6219 </attribute>
6220
6221 <attribute name="description" type="wstring">
6222 <desc>
6223
6224 Optional description of the hard disk. For a newly created hard
6225 disk, this value is <tt>null</tt>.
6226
6227 <note>For some storage types, reading this property is
6228 meaningless when <link to="#accessible"/> is <tt>false</tt>.
6229 Also, you cannot assign it a new value in this case.</note>
6230
6231 </desc>
6232 </attribute>
6233
6234 <attribute name="storageType" type="HardDiskStorageType" readonly="yes">
6235 <desc>
6236
6237 Storage type of this hard disk.
6238
6239 Storage type is defined when you open or create a new hard disk
6240 object.
6241
6242 </desc>
6243 </attribute>
6244
6245 <attribute name="location" type="wstring" readonly="yes">
6246 <desc>
6247
6248 Storage location of this hard disk. The returned string serves
6249 for informational purposes only. To access detailed information
6250 about the storage, query the appropriate storage-specific
6251 interface.
6252
6253 </desc>
6254 </attribute>
6255
6256 <attribute name="type" type="HardDiskType">
6257 <desc>
6258
6259 Type (behavior) of this hard disk. For a newly created or opened hard
6260 disk, this value is <link to="HardDiskType::Normal"/>.
6261
6262 <note>
6263 In the current implementation, this property can be
6264 changed only on an unregistered hard disk object. This may be
6265 changed later.
6266 </note>
6267
6268 </desc>
6269 </attribute>
6270
6271 <attribute name="parent" type="IHardDisk" readonly="yes">
6272 <desc>
6273
6274 Parent of this hard disk (a hard disk this one is directly based
6275 on).
6276
6277 Only differencing hard disks have parents, so a <tt>null</tt>
6278 object is returned for a hard disk of any other type.
6279 </desc>
6280 </attribute>
6281
6282 <attribute name="children" type="IHardDiskCollection" readonly="yes">
6283 <desc>
6284
6285 Children of this hard disk (all differencing hard disks for
6286 those this one is a parent). An empty collection is returned, if
6287 this hard disk doesn't have any children.
6288
6289 </desc>
6290 </attribute>
6291
6292 <attribute name="root" type="IHardDisk" readonly="yes">
6293 <desc>
6294
6295 Root hard disk of this hard disk. If this hard disk is a
6296 differencing hard disk, its root hard disk is the first disk on
6297 the branch. For all other types of hard disks, this property
6298 returns the hard disk object itself (i.e. the same object you
6299 read this property on).
6300
6301 </desc>
6302 </attribute>
6303
6304 <attribute name="accessible" type="boolean" readonly="yes">
6305 <desc>
6306
6307 Whether the hard disk storage is currently accessible or not.
6308 The storage, for example, can be unaccessible if it doesn't exist
6309 or if it is placed on a network resource that is not available
6310 by the time this attribute is read.
6311
6312 In the current implementation, the value of this property is
6313 also <tt>false</tt> if this hard disk is attached to a running
6314 virtual machine.
6315
6316 The accessibility check is performed automatically every time
6317 this attribute is read. You should keep it in mind that this check
6318 may be slow and can block the calling thread for a long time (for
6319 example, if the network resourse where the hard disk storage is
6320 located is down).
6321
6322 The following attributes of the hard disk object are considered
6323 to be invalid when this attribute is <tt>false</tt>:
6324 <ul>
6325 <li><link to="#size"/></li>
6326 <li><link to="#actualSize"/></li>
6327 </ul>
6328 Individual hard disk storage type interfaces may define
6329 additional attributes that depend on the accessibility state.
6330 </desc>
6331 </attribute>
6332
6333 <attribute name="allAccessible" type="boolean" readonly="yes">
6334 <desc>
6335
6336 Whether the whole hard disk branch, starting from this image and
6337 going through its ancestors up to the root, is accessible or
6338 not.
6339
6340 This property makes sense only for differencing hard disks. For
6341 all other types of hard disks it returns the same value as
6342 <link to="#accessible"/>.
6343
6344 </desc>
6345 </attribute>
6346
6347 <attribute name="lastAccessError" type="wstring" readonly="yes">
6348 <desc>
6349
6350 String describing the reason of inaccessibility of this hard
6351 disk after the last call to <link to="#accessible"/> that
6352 returned <tt>false</tt>. A <tt>null</tt> value of this property
6353 means that the last accessibility check returned <tt>true</tt>.
6354
6355 </desc>
6356 </attribute>
6357
6358 <attribute name="size" type="unsigned long long" readonly="yes">
6359 <desc>
6360
6361 Logical size of this hard disk (in megabytes), as reported to the
6362 guest OS running inside the vurtual machine this disk is
6363 attached to. The logical size is defined when the hard disk is
6364 created.
6365
6366 <note>Reading this property on a differencing hard disk will
6367 return the size of its root hard disk.</note>
6368
6369 <note>Reading this property is meaningless when
6370 <link to="#accessible"/> is <tt>false</tt></note>
6371
6372 </desc>
6373 </attribute>
6374
6375 <attribute name="actualSize" type="unsigned long long" readonly="yes">
6376 <desc>
6377
6378 Physical size of the storage used to store hard disk data (in
6379 bytes). This size is usually less than the logical size of the
6380 hard disk, depending on the storage type and on the size
6381 optimization method used for that storage.
6382
6383 <note>Reading this property is meaningless when
6384 <link to="#accessible"/> is <tt>false</tt></note>
6385
6386 </desc>
6387 </attribute>
6388
6389 <attribute name="machineId" type="uuid" readonly="yes">
6390 <desc>
6391
6392 UUID of the machine this hard disk is attached to (or a
6393 <tt>null</tt> UUID if it is not attached).
6394
6395 <note>Immutable hard disks are never attached directly, so this
6396 attribute is always <tt>null</tt> in this case.</note>
6397
6398 </desc>
6399 </attribute>
6400
6401 <attribute name="snapshotId" type="uuid" readonly="yes">
6402 <desc>
6403
6404 UUID of the <link to="ISnapshot">snapshot</link> this hard disk
6405 is associated with (or <tt>null</tt> UUID if it is not
6406 associated with any snapshot).
6407
6408 <note>
6409 This attribute is always <tt>null</tt> if <link to="#machineId"/>
6410 is <tt>null</tt>.
6411 </note>
6412
6413 <note>
6414 Writethrough hard disks are always attached directly and cannot be
6415 involved when taking snapshots, so this attribute is meaningless and
6416 therefore always <tt>null</tt>.
6417 </note>
6418
6419 </desc>
6420 </attribute>
6421
6422 <method name="cloneToImage">
6423
6424 <desc>
6425
6426 Starts creating a clone of this hard disk. The cloned hard disk
6427 will use the specified Virtual Disk Image file as a storage and
6428 will contain exactly the same sector data as the hard disk being
6429 cloned, except that a new UUID for the clone will be randomly
6430 generated.
6431
6432 The specified image file path can be absolute (full path) or
6433 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
6434 home directory</link>. If only a file name without any path is
6435 given, the <link to="ISystemProperties::defaultVDIFolder">
6436 default VDI folder</link> will be used as a path to the image
6437 file.
6438
6439 It is an error to use the object returned in the @a image
6440 parameter until the returned @a progress object reports success.
6441
6442 <note>In the current implementation, only non-differencing hard
6443 disks can be cloned.</note>
6444
6445 </desc>
6446
6447 <param name="filePath" type="wstring" dir="in">
6448 <desc>Path to a file where to store the cloned hard disk.</desc>
6449 </param>
6450 <param name="image" type="IVirtualDiskImage" dir="out">
6451 <desc>Cloned hard disk object.</desc>
6452 </param>
6453 <param name="progress" type="IProgress" dir="return">
6454 <desc>Progress object to track the operation completion.</desc>
6455 </param>
6456
6457 </method>
6458
6459 </interface>
6460
6461 <!--
6462 // IVirtualDiskImage
6463 /////////////////////////////////////////////////////////////////////////
6464 -->
6465
6466 <interface
6467 name="IVirtualDiskImage" extends="$unknown"
6468 uuid="a8265b5a-0d20-4a46-a02f-65693a4e8239"
6469 wsmap="managed"
6470 >
6471
6472 <desc>
6473 The IVirtualDiskImage interface represent a specific type of
6474 <link to="IHardDisk" /> that uses VDI image files.
6475
6476 The Virtual Disk Image (VDI) format is VirtualBox's native format for
6477 hard disk containers.
6478
6479 Objects that support this interface also support the
6480 <link to="IHardDisk"/> interface.
6481
6482 Hard disks using virtual disk images can be either opened using
6483 <link to="IVirtualBox::openHardDisk()"/> or created from
6484 scratch using <link to="IVirtualBox::createHardDisk()"/>.
6485
6486 When a new hard disk object is created from scratch, an image file for it
6487 is not automatically created. To do it, you need to specify a
6488 valid <link to="#filePath">file path</link>, and call
6489 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6490 When it is done, the hard disk object can be registered by calling
6491 <link to="IVirtualBox::registerHardDisk()"/> and then
6492 <link to="IMachine::attachHardDisk()">attached</link> to
6493 virtual machines.
6494
6495 The <link to="IHardDisk::description">description</link> of the
6496 Virtual Disk Image is stored in the image file. For this reason,
6497 changing the value of this property requires the hard disk to be
6498 <link to="IHardDisk::accessible">accessible</link>. The description
6499 of a registered hard disk can be changed only if a virtual machine
6500 using it is not running.
6501
6502 </desc>
6503
6504 <attribute name="filePath" type="wstring">
6505 <desc>
6506
6507 Full file name of the virtual disk image of this hard disk. For
6508 newly created hard disk objects, this value is <tt>null</tt>.
6509
6510 When assigning a new path, it can be absolute (full path) or relative
6511 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
6512 directory</link>. If only a file name without any path is given,
6513 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
6514 folder</link> will be used as a path to the image file.
6515
6516 When reading this propery, a full path is always returned.
6517
6518 <note>
6519 This property cannot be changed when <link to="#created"/>
6520 returns <tt>true</tt>.
6521 </note>
6522
6523 </desc>
6524 </attribute>
6525
6526 <attribute name="created" type="boolean" readonly="yes">
6527 <desc>
6528
6529 Whether the virual disk image is created or not. For newly
6530 created hard disk objects or after a successful invocation of
6531 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
6532 <link to="#createFixedImage()"/> or <link
6533 to="#createDynamicImage()"/> is called.
6534
6535 </desc>
6536 </attribute>
6537
6538 <method name="createDynamicImage">
6539
6540 <desc>
6541
6542 Starts creating a dymically expanding hard disk image in the
6543 background. The previous image associated with this object, if
6544 any, must be deleted using <link to="#deleteImage"/>, otherwise
6545 the operation will fail.
6546
6547 <note>After the returned progress object reports that the
6548 operation is complete, this hard disk object can be
6549 <link to="IVirtualBox::registerHardDisk()">registered</link>
6550 within this VirtualBox installation.</note>
6551
6552 </desc>
6553
6554 <param name="size" type="unsigned long long" dir="in">
6555 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6556 </param>
6557 <param name="progress" type="IProgress" dir="return">
6558 <desc>Progress object to track the operation completion.</desc>
6559 </param>
6560
6561 </method>
6562
6563 <method name="createFixedImage">
6564 <desc>
6565
6566 Starts creating a fixed-size hard disk image in the background. The
6567 previous image, if any, must be deleted using
6568 <link to="#deleteImage"/>, otherwise the operation will fail.
6569
6570 <note>
6571 After the returned progress object reports that the
6572 operation is complete, this hard disk object can be
6573 <link to="IVirtualBox::registerHardDisk()">registered</link>
6574 within this VirtualBox installation.
6575 </note>
6576
6577 </desc>
6578
6579 <param name="size" type="unsigned long long" dir="in">
6580 <desc>Logical size of the hard disk in megabytes.</desc>
6581 </param>
6582 <param name="progress" type="IProgress" dir="return">
6583 <desc>Progress object to track the operation completion.</desc>
6584 </param>
6585
6586 </method>
6587
6588 <method name="deleteImage">
6589 <desc>
6590
6591 Deletes the existing hard disk image. The hard disk must not be
6592 registered within this VirtualBox installation, otherwise the
6593 operation will fail.
6594
6595 <note>
6596 After this operation succeeds, it will be impossible to
6597 register the hard disk until the image file is created
6598 again.
6599 </note>
6600
6601 <note>
6602 This operation is valid only for non-differencing hard disks, after
6603 they are unregistered using
6604 <link to="IVirtualBox::unregisterHardDisk()"/>.
6605 </note>
6606
6607 </desc>
6608 </method>
6609
6610 </interface>
6611
6612 <!--
6613 // IISCSIHardDisk
6614 /////////////////////////////////////////////////////////////////////////
6615 -->
6616
6617 <interface
6618 name="IISCSIHardDisk" extends="$unknown"
6619 uuid="003f6ca9-3257-4ef9-99c9-c66ce44576cb"
6620 wsmap="managed"
6621 >
6622
6623 <desc>
6624 THe IISCSIHardDisk interface represents a specific type of
6625 <link to="IHardDisk"/> that uses iSCSI.
6626
6627 The IISCSIHardDisk interface represents <link to="IHardDisk">virtual
6628 hard disks</link> that use the Internet SCSI (iSCSI) protocol to store
6629 hard disk data on remote machines.
6630
6631 Objects that support this interface also support the
6632 <link to="IHardDisk"/> interface.
6633
6634 iSCSI hard disks can be created using
6635 <link to="IVirtualBox::createHardDisk()"/>. When a new hard disk object
6636 is created, all its properties are uninitialized. After you assign some
6637 meaningful values to them, the hard disk object can be registered by
6638 calling <link to="IVirtualBox::registerHardDisk()"/> and
6639 then <link to="IMachine::attachHardDisk()">attached</link> to virtual
6640 machines.
6641
6642 The <link to="IHardDisk::description">description</link>
6643 of the iSCSI hard disk is stored in the VirtualBox
6644 configuration file, so it can be changed (at appropriate
6645 times) even when
6646 <link to="IHardDisk::accessible">accessible</link> returns
6647 <tt>false</tt>. However, the hard disk must not be
6648 attached to a running virtual machine.
6649
6650 <note>
6651 In the current imlementation, the type of all iSCSI hard disks
6652 is <link to="HardDiskType::Writethrough">Writethrough</link>
6653 and cannot be changed.
6654 </note>
6655
6656 </desc>
6657
6658 <attribute name="server" type="wstring">
6659 <desc>
6660
6661 iSCSI Server name (either a host name or an IP address). For
6662 newly created hard disk objects, this value is <tt>null</tt>.
6663
6664 </desc>
6665 </attribute>
6666
6667 <attribute name="port" type="unsigned short">
6668 <desc>
6669
6670 iSCSI Server port. For newly created hard disk objects, this
6671 value is <tt>0</tt>, which means the default port.
6672
6673 </desc>
6674 </attribute>
6675
6676 <attribute name="target" type="wstring">
6677 <desc>
6678
6679 iSCSI target name. For newly created hard disk objects, this
6680 value is <tt>null</tt>.
6681
6682 </desc>
6683 </attribute>
6684
6685 <attribute name="lun" type="unsigned long long">
6686 <desc>
6687
6688 Logical unit number for this iSCSI disk. For newly created hard
6689 disk objects, this value is <tt>0</tt>.
6690
6691 </desc>
6692 </attribute>
6693
6694 <attribute name="userName" type="wstring">
6695 <desc>
6696
6697 User name for accessing this iSCSI disk. For newly created hard
6698 disk objects, this value is <tt>null</tt>.
6699
6700 </desc>
6701 </attribute>
6702
6703 <attribute name="password" type="wstring">
6704 <desc>
6705
6706 User password for accessing this iSCSI disk. For newly created
6707 hard disk objects, this value is <tt>null</tt>.
6708
6709 </desc>
6710 </attribute>
6711
6712 </interface>
6713
6714 <!--
6715 // IVMDKImage
6716 /////////////////////////////////////////////////////////////////////////
6717 -->
6718
6719 <interface
6720 name="IVMDKImage" extends="$unknown"
6721 uuid="178398f5-8559-4fee-979e-420af5b53eef"
6722 wsmap="managed"
6723 >
6724 <desc>
6725 The IVMDKImage interface represents a specific type of
6726 <link to="IHardDisk"/> that uses VMDK image files.
6727
6728 The Virtual Machine Disk (VMDK) format is the industry standard format
6729 for virtual hard disk image files, which VirtualBox supports besides its
6730 own native VDI format.
6731
6732 Objects that support this interface also support the
6733 <link to="IHardDisk"/> interface.
6734
6735 Hard disks using VMDK images can be either opened using
6736 <link to="IVirtualBox::openHardDisk()"/> or created from
6737 scratch using <link to="IVirtualBox::createHardDisk()"/>.
6738
6739 When a new hard disk object is created from scratch, an image file for it
6740 is not automatically created. To do it, you need to specify a
6741 valid <link to="#filePath">file path</link>, and call
6742 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6743 When it is done, the hard disk object can be registered by calling
6744 <link to="IVirtualBox::registerHardDisk()"/> and then
6745 <link to="IMachine::attachHardDisk()">attached</link> to
6746 virtual machines.
6747
6748 The <link to="IHardDisk::description">description</link>
6749 of the VMDK hard disk is stored in the VirtualBox
6750 configuration file, so it can be changed (at appropriate
6751 times) even when
6752 <link to="IHardDisk::accessible">accessible</link> returns
6753 <tt>false</tt>. However, the hard disk must not be
6754 attached to a running virtual machine.
6755
6756 <note>
6757 In the current imlementation, the type of all VMDK hard disks
6758 is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot
6759 be changed.
6760 </note>
6761
6762 </desc>
6763
6764 <attribute name="filePath" type="wstring">
6765 <desc>
6766
6767 Full file name of the VMDK image of this hard disk. For
6768 newly created hard disk objects, this value is <tt>null</tt>.
6769
6770 When assigning a new path, it can be absolute (full path) or relative
6771 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
6772 directory</link>. If only a file name without any path is given,
6773 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
6774 folder</link> will be used as a path to the image file.
6775
6776 When reading this propery, a full path is always returned.
6777
6778 <note>
6779 This property cannot be changed when <link to="#created"/>
6780 returns <tt>true</tt>.
6781 </note>
6782
6783 </desc>
6784 </attribute>
6785
6786 <attribute name="created" type="boolean" readonly="yes">
6787 <desc>
6788
6789 Whether the virual disk image is created or not. For newly created
6790 hard disk objects or after a successful invocation of
6791 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
6792 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
6793 is called.
6794
6795 </desc>
6796 </attribute>
6797
6798 <method name="createDynamicImage">
6799
6800 <desc>
6801
6802 Starts creating a dymically expanding hard disk image in the
6803 background. The previous image associated with this object, if
6804 any, must be deleted using <link to="#deleteImage"/>, otherwise
6805 the operation will fail.
6806
6807 <note>
6808 After the returned progress object reports that the
6809 operation is complete, this hard disk object can be
6810 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6811 this VirtualBox installation.
6812 </note>
6813
6814 </desc>
6815
6816 <param name="size" type="unsigned long long" dir="in">
6817 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6818 </param>
6819 <param name="progress" type="IProgress" dir="return">
6820 <desc>Progress object to track the operation completion.</desc>
6821 </param>
6822
6823 </method>
6824
6825 <method name="createFixedImage">
6826 <desc>
6827
6828 Starts creating a fixed-size hard disk image in the background. The
6829 previous image, if any, must be deleted using
6830 <link to="#deleteImage"/>, otherwise the operation will fail.
6831
6832 <note>
6833 After the returned progress object reports that the
6834 operation is complete, this hard disk object can be
6835 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6836 this VirtualBox installation.
6837 </note>
6838
6839 </desc>
6840
6841 <param name="size" type="unsigned long long" dir="in">
6842 <desc>Logical size of the hard disk in megabytes.</desc>
6843 </param>
6844 <param name="progress" type="IProgress" dir="return">
6845 <desc>Progress object to track the operation completion.</desc>
6846 </param>
6847
6848 </method>
6849
6850 <method name="deleteImage">
6851 <desc>
6852
6853 Deletes the existing hard disk image. The hard disk must not be
6854 registered within this VirtualBox installation, otherwise the
6855 operation will fail.
6856
6857 <note>
6858 After this operation succeeds, it will be impossible to register the
6859 hard disk until the image file is created again.
6860 </note>
6861
6862 <note>
6863 This operation is valid only for non-differencing hard disks, after
6864 they are unregistered using
6865 <link to="IVirtualBox::unregisterHardDisk()"/>.
6866 </note>
6867
6868 </desc>
6869 </method>
6870
6871 </interface>
6872
6873 <!--
6874 // ICustomHardDisk
6875 /////////////////////////////////////////////////////////////////////////
6876 -->
6877
6878 <interface
6879 name="ICustomHardDisk" extends="$unknown"
6880 uuid="a7b0236d-3ff4-47c0-a4aa-ddc4ddc1141a"
6881 wsmap="managed"
6882 >
6883 <desc>
6884 The ICustomHardDisk interface represents a specific type of
6885 <link to="IHardDisk" /> that is supported through a third-party plugin.
6886
6887 This interface allows to add support for custom hard disk formats to
6888 VirtualBox.
6889
6890 Objects that support this interface also support the
6891 <link to="IHardDisk"/> interface.
6892
6893 Hard disks using custom hard disk formats can be either opened using
6894 <link to="IVirtualBox::openHardDisk()"/> or created from scratch using
6895 <link to="IVirtualBox::createHardDisk()"/>.
6896
6897 When a new hard disk object is created from scratch, an image file for
6898 it is not automatically created. To do it, you need to specify a
6899 valid <link to="#location">location</link>, and call
6900 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6901 When it is done, the hard disk object can be registered by calling
6902 <link to="IVirtualBox::registerHardDisk()"/> and then
6903 <link to="IMachine::attachHardDisk()">attached</link> to
6904 virtual machines.
6905
6906 The <link to="IHardDisk::description">description</link>
6907 of the hard disk is stored in the VirtualBox
6908 configuration file, so it can be changed (at appropriate
6909 times) even when
6910 <link to="IHardDisk::accessible">accessible</link> returns
6911 <tt>false</tt>. However, the hard disk must not be
6912 attached to a running virtual machine.
6913
6914 </desc>
6915
6916 <attribute name="location" type="wstring">
6917 <desc>
6918
6919 Location of this custom hard disk. For
6920 newly created hard disk objects, this value is <tt>null</tt>.
6921
6922 The format of the location string is plugin-dependent. In case if the
6923 plugin uses a regular file in the local file system to store hard disk
6924 data, then the location is a file path and the following rules apply:
6925 <ul>
6926 <li>
6927 when assigning a new path, it must be absolute (full path) or
6928 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
6929 home directory</link>. If only a file name without any path is
6930 given, the <link to="ISystemProperties::defaultVDIFolder"> default
6931 VDI folder</link> will be used as a path to the image file.
6932 </li>
6933 <li>
6934 When reading this propery, a full path is always returned.
6935 </li>
6936 </ul>
6937
6938 <note>
6939 This property cannot be changed when <link to="#created"/>
6940 returns <tt>true</tt>.
6941 </note>
6942
6943 </desc>
6944 </attribute>
6945
6946 <attribute name="format" type="wstring" readonly="yes">
6947 <desc>
6948
6949 The plugin name of the image file.
6950
6951 </desc>
6952 </attribute>
6953
6954 <attribute name="created" type="boolean" readonly="yes">
6955 <desc>
6956
6957 Whether the virual disk image is created or not. For newly created
6958 hard disk objects or after a successful invocation of
6959 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
6960 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
6961 is called.
6962
6963 </desc>
6964 </attribute>
6965
6966 <method name="createDynamicImage">
6967
6968 <desc>
6969
6970 Starts creating a dymically expanding hard disk image in the
6971 background. The previous image associated with this object, if
6972 any, must be deleted using <link to="#deleteImage"/>, otherwise
6973 the operation will fail.
6974
6975 <note>
6976 After the returned progress object reports that the
6977 operation is complete, this hard disk object can be
6978 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6979 this VirtualBox installation.
6980 </note>
6981
6982 </desc>
6983
6984 <param name="size" type="unsigned long long" dir="in">
6985 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6986 </param>
6987 <param name="progress" type="IProgress" dir="return">
6988 <desc>Progress object to track the operation completion.</desc>
6989 </param>
6990
6991 </method>
6992
6993 <method name="createFixedImage">
6994 <desc>
6995
6996 Starts creating a fixed-size hard disk image in the background. The
6997 previous image, if any, must be deleted using
6998 <link to="#deleteImage"/>, otherwise the operation will fail.
6999
7000 <note>
7001 After the returned progress object reports that the
7002 operation is complete, this hard disk object can be
7003 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7004 this VirtualBox installation.
7005 </note>
7006
7007 </desc>
7008
7009 <param name="size" type="unsigned long long" dir="in">
7010 <desc>Logical size of the hard disk in megabytes.</desc>
7011 </param>
7012 <param name="progress" type="IProgress" dir="return">
7013 <desc>Progress object to track the operation completion.</desc>
7014 </param>
7015
7016 </method>
7017
7018 <method name="deleteImage">
7019 <desc>
7020
7021 Deletes the existing hard disk image. The hard disk must not be
7022 registered within this VirtualBox installation, otherwise the
7023 operation will fail.
7024
7025 <note>
7026 After this operation succeeds, it will be impossible to register the
7027 hard disk until the image file is created again.
7028 </note>
7029
7030 <note>
7031 This operation is valid only for non-differencing hard disks, after
7032 they are unregistered using
7033 <link to="IVirtualBox::unregisterHardDisk()"/>.
7034 </note>
7035
7036 </desc>
7037 </method>
7038
7039 </interface>
7040
7041 <!--
7042 // IVHDImage
7043 /////////////////////////////////////////////////////////////////////////
7044 -->
7045
7046 <interface
7047 name="IVHDImage" extends="$unknown"
7048 uuid="163b88c3-7552-424a-8205-daf17a004747"
7049 wsmap="managed"
7050 >
7051 <desc>
7052
7053 The IVHDImage interface represents <link to="IHardDisk">virtual hard
7054 disks</link> that use Virtual PC Virtual Machine Disk image files to store
7055 hard disk data.
7056
7057 Hard disks using VHD images can be either opened using
7058 <link to="IVirtualBox::openHardDisk()"/> or created from
7059 scratch using <link to="IVirtualBox::createHardDisk()"/>.
7060
7061 Objects that support this interface also support the
7062 <link to="IHardDisk"/> interface.
7063
7064 When a new hard disk object is created from scatch, an image file for it
7065 is not automatically created. To do it, you need to specify a
7066 valid <link to="#filePath">file path</link>, and call
7067 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
7068 When it is done, the hard disk object can be registered by calling
7069 <link to="IVirtualBox::registerHardDisk()"/> and then
7070 <link to="IMachine::attachHardDisk()">attached</link> to
7071 virtual machines.
7072
7073 The <link to="IHardDisk::description">description</link>
7074 of the VHD hard disk is stored in the VirtualBox
7075 configuration file, so it can be changed (at appropriate
7076 times) even when
7077 <link to="IHardDisk::accessible">accessible</link> returns
7078 <tt>false</tt>. However, the hard disk must not be
7079 attached to a running virtual machine.
7080
7081 <note>
7082 In the current imlementation, the type of all VHD hard disks
7083 is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot
7084 be changed.
7085 </note>
7086
7087 </desc>
7088
7089 <attribute name="filePath" type="wstring">
7090 <desc>
7091
7092 Full file name of the VHD image of this hard disk. For
7093 newly created hard disk objects, this value is <tt>null</tt>.
7094
7095 When assigning a new path, it can be absolute (full path) or relative
7096 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
7097 directory</link>. If only a file name without any path is given,
7098 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
7099 folder</link> will be used as a path to the image file.
7100
7101 When reading this propery, a full path is always returned.
7102
7103 <note>
7104 This property cannot be changed when <link to="#created"/>
7105 returns <tt>true</tt>. In this case, the specified file name can be
7106 absolute (full path) or relative to
7107 the <link to="IVirtualBox::homeFolder"> VirtualBox home
7108 directory</link>. If only a file name without any path is given,
7109 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
7110 folder</link> will be used as a path to the image file.
7111 </note>
7112
7113 </desc>
7114 </attribute>
7115
7116 <attribute name="created" type="boolean" readonly="yes">
7117 <desc>
7118
7119 Whether the virual disk image is created or not. For newly created
7120 hard disk objects or after a successful invocation of
7121 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
7122 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
7123 is called.
7124
7125 </desc>
7126 </attribute>
7127
7128 <method name="createDynamicImage">
7129
7130 <desc>
7131
7132 Starts creating a dymically expanding hard disk image in the
7133 background. The previous image associated with this object, if
7134 any, must be deleted using <link to="#deleteImage"/>, otherwise
7135 the operation will fail.
7136
7137 <note>
7138 After the returned progress object reports that the
7139 operation is complete, this hard disk object can be
7140 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7141 this VirtualBox installation.
7142 </note>
7143
7144 </desc>
7145
7146 <param name="size" type="unsigned long long" dir="in">
7147 <desc>Maximum logical size of the hard disk in megabytes.</desc>
7148 </param>
7149 <param name="progress" type="IProgress" dir="return">
7150 <desc>Progress object to track the operation completion.</desc>
7151 </param>
7152
7153 </method>
7154
7155 <method name="createFixedImage">
7156 <desc>
7157
7158 Starts creating a fixed-size hard disk image in the background. The
7159 previous image, if any, must be deleted using
7160 <link to="#deleteImage"/>, otherwise the operation will fail.
7161
7162 <note>
7163 After the returned progress object reports that the
7164 operation is complete, this hard disk object can be
7165 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7166 this VirtualBox installation.
7167 </note>
7168
7169 </desc>
7170
7171 <param name="size" type="unsigned long long" dir="in">
7172 <desc>Logical size of the hard disk in megabytes.</desc>
7173 </param>
7174 <param name="progress" type="IProgress" dir="return">
7175 <desc>Progress object to track the operation completion.</desc>
7176 </param>
7177
7178 </method>
7179
7180 <method name="deleteImage">
7181 <desc>
7182
7183 Deletes the existing hard disk image. The hard disk must not be
7184 registered within this VirtualBox installation, otherwise the
7185 operation will fail.
7186
7187 <note>
7188 After this operation succeeds, it will be impossible to register the
7189 hard disk until the image file is created again.
7190 </note>
7191
7192 <note>
7193 This operation is valid only for non-differencing hard disks, after
7194 they are unregistered using
7195 <link to="IVirtualBox::unregisterHardDisk()"/>.
7196 </note>
7197
7198 </desc>
7199 </method>
7200
7201 </interface>
7202
7203 <!--
7204 // IDVDImage
7205 /////////////////////////////////////////////////////////////////////////
7206 -->
7207
7208 <enumerator
7209 name="IDVDImageEnumerator" type="IDVDImage"
7210 uuid="9BE77C8D-E1BE-4bf2-A67B-B4DD3D2B0F28"
7211 />
7212
7213 <collection
7214 name="IDVDImageCollection" type="IDVDImage"
7215 enumerator="IDVDImageEnumerator"
7216 uuid="AE7053FA-ADD2-4ea4-AFCF-24D5F8DDED64"
7217 readonly="yes"
7218 >
7219 <method name="findByPath">
7220 <desc>
7221 Searches this collection for a DVD image with the given disk path.
7222 <note>
7223 The method returns an error if the given name does not
7224 correspond to any DVD image in the collection.
7225 </note>
7226 </desc>
7227 <param name="path" type="wstring" dir="in">
7228 <desc>Name of the DVD image's file system location.</desc>
7229 </param>
7230 <param name="image" type="IDVDImage" dir="return">
7231 <desc>Found DVD image object</desc>
7232 </param>
7233 </method>
7234 </collection>
7235
7236 <interface
7237 name="IDVDImage" extends="$unknown"
7238 uuid="140FFF03-E479-4194-8562-ABC4F8171009"
7239 wsmap="managed"
7240 >
7241 <desc>
7242
7243 The IDVDImage interface represents a file containing the image
7244 of the DVD or CD disk.
7245
7246 <h3>Image Accessibility</h3>
7247
7248 The <link to="#accessible"/> attribute of the image object
7249 defines the accessibility state of the image file. If the
7250 value of this attribute is <tt>false</tt> then some image
7251 attributes may contain invalid or outdated values (for example, the
7252 the image file size) until a new accessibility
7253 check is done that returns <tt>true</tt>.
7254
7255 <note>
7256 Because of the possible slowness of the accessibility check,
7257 it is not implicitly performed upon the VirtualBox server startup
7258 (to prevent the application freeze). In partcular, this means that
7259 if you try to read image properties that depend on the
7260 accessibility state without first reading the value of the
7261 <link to="#accessible"/> attribute and ensuring it's value is
7262 <tt>true</tt>, you will get wrong (zero) values.
7263 </note>
7264
7265 </desc>
7266 <attribute name="id" type="uuid" readonly="yes">
7267 <desc>UUID of the CD/DVD image.</desc>
7268 </attribute>
7269
7270 <attribute name="filePath" type="wstring" readonly="yes">
7271 <desc>Full file name of the CD/DVD image.</desc>
7272 </attribute>
7273
7274 <attribute name="accessible" type="boolean" readonly="yes">
7275 <desc>
7276
7277 Whether the CD/DVD image is currently accessible or not.
7278 The image, for example, can be unaccessible if it is placed
7279 on a network share that is not available by the time
7280 this property is read.
7281
7282 The accessibility check is performed automatically every time
7283 this attribute is read. You should keep it in mind that this check
7284 may be slow and can block the calling thread for a long time (for
7285 example, if the network share where the image is located is down).
7286
7287 The following attributes of the image object are considered
7288 to be invalid when this attribute is <tt>false</tt>:
7289 <ul>
7290 <li><link to="#size"/></li>
7291 </ul>
7292
7293 </desc>
7294 </attribute>
7295
7296 <attribute name="size" type="unsigned long long" readonly="yes">
7297 <desc>Size of the ISO image in bytes.</desc>
7298 </attribute>
7299
7300 </interface>
7301
7302
7303 <!--
7304 // IDVDDrive
7305 /////////////////////////////////////////////////////////////////////////
7306 -->
7307
7308 <interface
7309 name="IDVDDrive" extends="$unknown"
7310 uuid="d9bd101a-8079-4fb9-bad1-31bf32482b75"
7311 wsmap="managed"
7312 >
7313 <desc>
7314 The IDVDDrive interface represents the virtual CD/DVD drive of the
7315 virtual machine. Used in <link to="IMachine::DVDDrive"/>.
7316 </desc>
7317 <attribute name="state" type="DriveState" readonly="yes">
7318 <desc>Current drive state.</desc>
7319 </attribute>
7320
7321 <attribute name="passthrough" type="boolean">
7322 <desc>
7323 When a host drive is mounted and passthrough is enabled
7324 the guest will be able to directly send SCSI commands to
7325 the host drive. This enables the guest to use CD/DVD writers
7326 but is potentially dangerous.
7327 </desc>
7328 </attribute>
7329
7330 <method name="mountImage">
7331 <desc>Mounts the specified image.</desc>
7332 <param name="imageId" type="uuid" dir="in"/>
7333 </method>
7334
7335 <method name="captureHostDrive">
7336 <desc>Captures the specified host drive.</desc>
7337 <param name="drive" type="IHostDVDDrive" dir="in"/>
7338 </method>
7339
7340 <method name="unmount">
7341 <desc>Unmounts the currently mounted image/device.</desc>
7342 </method>
7343
7344 <method name="getImage">
7345 <desc>Gets the currently mounted image ID.</desc>
7346 <param name="image" type="IDVDImage" dir="return"/>
7347 </method>
7348
7349 <method name="getHostDrive">
7350 <desc>Gets the currently mounted image ID.</desc>
7351 <param name="drive" type="IHostDVDDrive" dir="return"/>
7352 </method>
7353
7354 </interface>
7355
7356 <!--
7357 // IFloppyImage
7358 /////////////////////////////////////////////////////////////////////////
7359 -->
7360
7361 <enumerator
7362 name="IFloppyImageEnumerator" type="IFloppyImage"
7363 uuid="902C4089-76B7-41f1-91E8-49A261A28A2C"
7364 />
7365
7366 <collection
7367 name="IFloppyImageCollection" type="IFloppyImage"
7368 enumerator="IFloppyImageEnumerator"
7369 uuid="327A8928-8572-446e-AD9A-18FE30E81F3F"
7370 readonly="yes">
7371 <method name="findByPath">
7372 <desc>
7373 Searches this collection for a floppy image with the given disk path.
7374 <note>
7375 The method returns an error if the given name does not
7376 correspond to any floppy image in the collection.
7377 </note>
7378 </desc>
7379 <param name="path" type="wstring" dir="in">
7380 <desc>Name of the floppy image's file system location.</desc>
7381 </param>
7382 <param name="image" type="IFloppyImage" dir="return">
7383 <desc>Found Floppy image object</desc>
7384 </param>
7385 </method>
7386 </collection>
7387
7388 <interface
7389 name="IFloppyImage" extends="$unknown"
7390 uuid="CC696755-EA98-4ffe-9DC5-C003047034AB"
7391 wsmap="managed"
7392 >
7393 <desc>
7394
7395 The IFloppyImage interface represents a file containing the image
7396 of a floppy disk.
7397
7398 <h3>Image Accessibility</h3>
7399
7400 The <link to="#accessible"/> attribute of the image object
7401 defines the accessibility state of the image file. If the
7402 value of this attribute is <tt>false</tt> then some image
7403 attributes may contain invalid or outdated values (for example, the
7404 the image file size) until a new accessibility
7405 check is done that returns <tt>true</tt>.
7406
7407 <note>
7408 Because of the possible slowness of the accessibility check,
7409 it is not implicitly performed upon the VirtualBox server startup
7410 (to prevent the application freeze). In partcular, this means that
7411 if you try to read image properties that depend on the
7412 accessibility state without first reading the value of the
7413 <link to="#accessible"/> attribute and ensuring it's value is
7414 <tt>true</tt>, you will get wrong (zero) values.
7415 </note>
7416
7417 </desc>
7418 <attribute name="id" type="uuid" readonly="yes">
7419 <desc>UUID of the floppy image.</desc>
7420 </attribute>
7421
7422 <attribute name="filePath" type="wstring" readonly="yes">
7423 <desc>Full file name of the floppy image.</desc>
7424 </attribute>
7425
7426 <attribute name="accessible" type="boolean" readonly="yes">
7427 <desc>
7428
7429 Whether the floppy image is currently accessible or not.
7430 The image, for example, can be unaccessible if it is placed
7431 on a network share that is not available by the time
7432 this property is read.
7433
7434 The accessibility check is performed automatically every time
7435 this attribute is read. You should keep it in mind that this check
7436 may be slow and can block the calling thread for a long time (for
7437 example, if the network share where the image is located is down).
7438
7439 The following attributes of the image object are considered
7440 to be invalid when this attribute is <tt>false</tt>:
7441 <ul>
7442 <li><link to="#size"/></li>
7443 </ul>
7444
7445 </desc>
7446 </attribute>
7447
7448 <attribute name="size" type="unsigned long" readonly="yes">
7449 <desc>Size of the floppy image in bytes.</desc>
7450 </attribute>
7451
7452 </interface>
7453
7454
7455 <!--
7456 // IFloppyDrive
7457 /////////////////////////////////////////////////////////////////////////
7458 -->
7459
7460 <interface
7461 name="IFloppyDrive" extends="$unknown"
7462 uuid="E9318F71-78D2-4b00-863C-B7CB0030A2D9"
7463 wsmap="managed"
7464 >
7465 <desc>
7466 The IFloppyDrive interface represents the virtual floppy drive of the
7467 virtual machine. Used in <link to="IMachine::FloppyDrive" />.
7468 </desc>
7469
7470 <attribute name="enabled" type="boolean">
7471 <desc>
7472 Flag whether the floppy drive is enabled. If it is disabled,
7473 the floppy drive will not be reported to the guest.
7474 </desc>
7475 </attribute>
7476
7477 <attribute name="state" type="DriveState" readonly="yes">
7478 <desc>Current drive state.</desc>
7479 </attribute>
7480
7481 <method name="mountImage">
7482 <desc>Mounts the specified image.</desc>
7483 <param name="imageId" type="uuid" dir="in"/>
7484 </method>
7485
7486 <method name="captureHostDrive">
7487 <desc>Captures the specified host drive.</desc>
7488 <param name="drive" type="IHostFloppyDrive" dir="in"/>
7489 </method>
7490
7491 <method name="unmount">
7492 <desc>Unmounts the currently mounted image/device.</desc>
7493 </method>
7494
7495 <method name="getImage">
7496 <desc>Gets the currently mounted image ID.</desc>
7497 <param name="image" type="IFloppyImage" dir="return"/>
7498 </method>
7499
7500 <method name="getHostDrive">
7501 <desc>Gets the currently mounted image ID.</desc>
7502 <param name="drive" type="IHostFloppyDrive" dir="return"/>
7503 </method>
7504
7505 </interface>
7506
7507
7508 <!--
7509 // IKeyboard
7510 /////////////////////////////////////////////////////////////////////////
7511 -->
7512
7513 <interface
7514 name="IKeyboard" extends="$unknown"
7515 uuid="FD443EC1-000A-4F5B-9282-D72760A66916"
7516 wsmap="managed"
7517 >
7518 <desc>
7519 The IKeyboard interface represents the virtual machine's keyboard. Used
7520 in <link to="IConsole::keyboard"/>.
7521
7522 Through this interface, the virtual machine's virtual keyboard can be controlled. One
7523 can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it.
7524 </desc>
7525 <method name="putScancode">
7526 <desc>Sends a scancode to the keyboard.</desc>
7527 <param name="scancode" type="long" dir="in"/>
7528 </method>
7529
7530 <method name="putScancodes">
7531 <desc>Sends an array of scancode to the keyboard.</desc>
7532 <param name="scancodes" type="long" dir="in" array="count"/>
7533 <param name="count" type="unsigned long" dir="in"/>
7534 <param name="codesStored" type="unsigned long" dir="return"/>
7535 </method>
7536
7537 <method name="putCAD">
7538 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
7539 </method>
7540
7541 </interface>
7542
7543
7544 <!--
7545 // IMouse
7546 /////////////////////////////////////////////////////////////////////////
7547 -->
7548
7549 <enum
7550 name="MouseButtonState"
7551 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
7552 >
7553 <desc>
7554 Mouse button state.
7555 </desc>
7556
7557 <const name="LeftButton" value="0x01"/>
7558 <const name="RightButton" value="0x02"/>
7559 <const name="MiddleButton" value="0x04"/>
7560 <const name="WheelUp" value="0x08"/>
7561 <const name="WheelDown" value="0x10"/>
7562 <const name="MouseStateMask" value="0x1F"/>
7563 </enum>
7564
7565 <interface
7566 name="IMouse" extends="$unknown"
7567 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
7568 wsmap="managed"
7569 >
7570 <desc>
7571 The IMouse interface represents the virtual machine's mouse. Used in
7572 <link to="IConsole::mouse"/>.
7573
7574 Through this interface, the virtual machine's virtual mouse can be
7575 controlled.
7576 </desc>
7577
7578 <attribute name="absoluteSupported" type="boolean" readonly="yes">
7579 <desc>
7580 Whether the guest OS supports absolute mouse pointer positioning
7581 or not.
7582 <note>
7583 VirtualBox Guest Tools need to be installed to the guest OS
7584 in order to enable absolute mouse positioning support.
7585 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
7586 callback to be instantly informed about changes of this attribute
7587 during virtual machine execution.
7588 </note>
7589 <see><link to="#putMouseEventAbsolute"/></see>
7590 </desc>
7591 </attribute>
7592
7593 <method name="putMouseEvent">
7594 <desc>
7595 Initiates a mouse event using relative pointer movements
7596 along x and y axis.
7597 </desc>
7598
7599 <param name="dx" type="long" dir="in">
7600 <desc>
7601 Amout of pixels the mouse should move to the right.
7602 Negative values move the mouse to the left.
7603 </desc>
7604 </param>
7605 <param name="dy" type="long" dir="in">
7606 <desc>
7607 Amout of pixels the mouse should move downwards.
7608 Negative values move the mouse upwards.
7609 </desc>
7610 </param>
7611 <param name="dz" type="long" dir="in">
7612 <desc>
7613 Amount of mouse wheel moves.
7614 Positive values describe clockwize wheel rotations,
7615 negative values describe counterclockwise rotations.
7616 </desc>
7617 </param>
7618 <param name="buttonState" type="long" dir="in">
7619 <desc>
7620 The current state of mouse buttons. Every bit represents
7621 a mouse button as follows:
7622 <table>
7623 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
7624 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
7625 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
7626 </table>
7627 A value of <tt>1</tt> means the corresponding button is pressed.
7628 otherwise it is released.
7629 </desc>
7630 </param>
7631 </method>
7632
7633 <method name="putMouseEventAbsolute">
7634 <desc>
7635 Positions the mouse pointer using absolute x and y coordinates.
7636 These coordinates are expressed in pixels and
7637 start from <tt>[1,1]</tt> which corresponds to the top left
7638 corner of the virtual display.
7639
7640 <note>
7641 This method will have effect only if absolute mouse
7642 positioning is supported by the guest OS.
7643 </note>
7644
7645 <see><link to="#absoluteSupported"/></see>
7646 </desc>
7647
7648 <param name="x" type="long" dir="in">
7649 <desc>
7650 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
7651 </desc>
7652 </param>
7653 <param name="y" type="long" dir="in">
7654 <desc>
7655 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
7656 </desc>
7657 </param>
7658 <param name="dz" type="long" dir="in">
7659 <desc>
7660 Amout of mouse wheel moves.
7661 Positive values describe clockwize wheel rotations,
7662 negative values describe counterclockwise rotations.
7663 </desc>
7664 </param>
7665 <param name="buttonState" type="long" dir="in">
7666 <desc>
7667 The current state of mouse buttons. Every bit represents
7668 a mouse button as follows:
7669 <table>
7670 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
7671 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
7672 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
7673 </table>
7674 A value of <tt>1</tt> means the corresponding button is pressed.
7675 otherwise it is released.
7676 </desc>
7677 </param>
7678 </method>
7679
7680 </interface>
7681
7682 <!--
7683 // IDisplay
7684 /////////////////////////////////////////////////////////////////////////
7685 -->
7686
7687 <enum
7688 name="FramebufferAccelerationOperation"
7689 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
7690 >
7691 <desc>
7692 Framebuffer acceleration operation.
7693 </desc>
7694
7695 <const name="SolidFillAcceleration" value="1"/>
7696 <const name="ScreenCopyAcceleration" value="2"/>
7697 </enum>
7698
7699 <enum
7700 name="FramebufferPixelFormat"
7701 uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d"
7702 >
7703 <desc>
7704 Format of the video memory buffer. Constants represented by this enum can
7705 be used to test for particular values of <link
7706 to="IFramebuffer::pixelFormat"/>. See also <link
7707 to="IFramebuffer::requestResize()"/>.
7708
7709 See also www.fourcc.org for more informantion about FOURCC pixel formats.
7710 </desc>
7711
7712 <const name="Opaque" value="0xFFFFFFFF">
7713 <desc>
7714 Unknown buffer format. The user may not assume any particular
7715 format of the buffer.
7716 </desc>
7717 </const>
7718 <const name="FOURCC_RGB" value="0x32424752">
7719 <desc>
7720 Basic RGB format. <link to="IFramebuffer::bitsPerPixel"/> determines
7721 the bit layout.
7722 </desc>
7723 </const>
7724 </enum>
7725
7726 <interface
7727 name="IFramebuffer" extends="$unknown"
7728 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
7729 wsmap="suppress"
7730 >
7731 <attribute name="address" type="octet" mod="ptr" readonly="yes">
7732 <desc>Address of the start byte of the framebuffer.</desc>
7733 </attribute>
7734
7735 <attribute name="width" type="unsigned long" readonly="yes">
7736 <desc>Framebuffer width, in pixels.</desc>
7737 </attribute>
7738
7739 <attribute name="height" type="unsigned long" readonly="yes">
7740 <desc>Framebuffer height, in pixels.</desc>
7741 </attribute>
7742
7743 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
7744 <desc>
7745 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
7746 to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, valid values
7747 are: 8, 15, 16, 24 and 32.
7748 </desc>
7749 </attribute>
7750
7751 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
7752 <desc>
7753 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
7754 to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, the
7755 size of the scan line must be aligned to 32 bits.
7756 </desc>
7757 </attribute>
7758
7759 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
7760 <desc>
7761 Framebuffer pixel format. It's either one of the values defined by <link
7762 to="FramebufferPixelFormat"/> or a raw FOURCC code.
7763 <note>
7764 This attribute must never return <link
7765 to="PixelFormat::Opaque"/> -- the format of the buffer
7766 <link to="#address"/> points to must be always known.
7767 </note>
7768 </desc>
7769 </attribute>
7770
7771 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
7772 <desc>
7773 Defines whether this framebuffer uses the virtual video card's memory
7774 buffer (guest VRAM) directly or not. See <link
7775 to="IFramebuffer::requestResize()"/> for more information.
7776 </desc>
7777 </attribute>
7778
7779 <attribute name="heightReduction" type="unsigned long" readonly="yes">
7780 <desc>
7781 Hint from the framebuffer about how much of the standard
7782 screen height it wants to use for itself. This information is
7783 exposed to the guest through the VESA BIOS and VMMDev interface
7784 so that it can use it for determining its video mode table. It
7785 is not guaranteed that the guest respects the value.
7786 </desc>
7787 </attribute>
7788
7789 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
7790 <desc>
7791 An alpha-blended overlay which is superposed over the framebuffer.
7792 The initial purpose is to allow the display of icons providing
7793 information about the VM state, including disk activity, in front
7794 ends which do not have other means of doing that. The overlay is
7795 designed to controlled exclusively by IDisplay. It has no locking
7796 of its own, and any changes made to it are not guaranteed to be
7797 visible until the affected portion of IFramebuffer is updated. The
7798 overlay can be created lazily the first time it is requested. This
7799 attribute can also return NULL to signal that the overlay is not
7800 implemented.
7801 </desc>
7802 </attribute>
7803
7804 <method name="lock">
7805 <desc>
7806 Locks the framebuffer.
7807 Gets called by the IDisplay object where this framebuffer is
7808 bound to.
7809 </desc>
7810 </method>
7811
7812 <method name="unlock">
7813 <desc>
7814 Unlocks the framebuffer.
7815 Gets called by the IDisplay object where this framebuffer is
7816 bound to.
7817 </desc>
7818 </method>
7819
7820 <method name="notifyUpdate">
7821 <desc>
7822 Informs about an update.
7823 Gets called by the display object where this buffer is
7824 registered.
7825 </desc>
7826 <param name="x" type="unsigned long" dir="in"/>
7827 <param name="y" type="unsigned long" dir="in"/>
7828 <param name="width" type="unsigned long" dir="in"/>
7829 <param name="height" type="unsigned long" dir="in"/>
7830 <param name="finished" type="boolean" dir="return"/>
7831 </method>
7832
7833 <method name="requestResize">
7834 <desc>
7835 Requests a size and pixel format change.
7836
7837 There are two modes of working with the video buffer of the virtual
7838 machine. The <i>indirect</i> mode implies that the IFramebuffer
7839 implementation allocates a memory buffer for the requested display mode
7840 and provides it to the virtual machine. In <i>direct</i> mode, the
7841 IFramebuffer implementation uses the memory buffer allocated and owned
7842 by the virtual machine. This buffer represents the video memory of the
7843 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
7844 usually faster because the implementation gets a raw pointer to the
7845 guest VRAM buffer which it can directly use for visualising the contents
7846 of the virtual display, as opposed to the indirect mode where the
7847 contents of guest VRAM are copied to the memory buffer provided by
7848 the implementation every time a display update occurs.
7849
7850 It is important to note that the direct mode is really fast only when
7851 the implementation uses the given guest VRAM buffer directly, for
7852 example, by blitting it to the window representing the virtual machine's
7853 display, which saves at least one copy operation comparing to the
7854 indirect mode. However, using the guest VRAM buffer directly is not
7855 always possible: the format and the color depth of this buffer may be
7856 not supported by the target window, or it may be unknown (opaque) as in
7857 case of text or non-linear multi-plane VGA video modes. In this case,
7858 the indirect mode (that is always available) should be used as a
7859 fallback: when the guest VRAM contents are copied to the
7860 implementation-provided memory buffer, color and format conversion is
7861 done authomatically by the underlying code.
7862
7863 The @a pixelFormat parameter defines whether the direct mode is
7864 available or not. If @a pixelFormat is <link
7865 to="PixelFormat::Opaque"/> then direct access to the guest
7866 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
7867 bytesPerLine parameters must be ignored and the implementation must use
7868 the indirect mode (where it provides its own buffer in one of the
7869 supported formats). In all other cases, @a pixelFormat together with @a
7870 bitsPerPixel and @a bytesPerLine define the format of the video memory
7871 buffer pointed to by the @a VRAM parameter and the implementation is
7872 free to choose which mode to use. To indicate that this framebuffer uses
7873 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
7874 attribute must return <tt>true</tt> and <link to="#address"/> must
7875 return exactly the same address that is passed in the @a VRAM parameter
7876 of this method; otherwise it is assumed that the indirect strategy is
7877 chosen.
7878
7879 The @a width and @a height parameters represent the size of the
7880 requested display mode in both modes. In case of indirect mode, the
7881 provided memory buffer should be big enough to store data of the given
7882 display mode. In case of direct mode, it is guaranteed that the given @a
7883 VRAM buffer contains enough space to represent the display mode of the
7884 given size. Note that this framebuffer's <link to="#width"/> and <link
7885 to="#height"/> attributes must return exactly the same values as
7886 passed to this method after the resize is completed (see below).
7887
7888 The @a finished output parameter determines if the implementation has
7889 finished resizing the framebuffer or not. If, for some reason, the
7890 resize cannot be finished immediately during this call, @a finished
7891 must be set to @c false, and the implementation must call
7892 <link to="IDisplay::resizeCompleted()"/> after it has returned from
7893 this method as soon as possible. If @a finished is @c false, the
7894 machine will not call any framebuffer methods until
7895 <link to="IDisplay::resizeCompleted()"/> is called.
7896
7897 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
7898 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
7899 this framebuffer must return exactly the same values as specified in the
7900 parameters of this method, after the resize is completed. If the
7901 indirect mode is chosen, these attributes must return values describing
7902 the format of the implementation's own memory buffer <link
7903 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
7904 value must always correlate with <link to="#pixelFormat"/>. Note that
7905 the <link to="#pixelFormat"/> attribute must never return <link
7906 to="PixelFormat::Opaque"/> regardless of the selected mode.
7907
7908 <note>
7909 This method is called by the IDisplay object under the
7910 <link to="#lock()"/> provided by this IFramebuffer
7911 implementation. If this method returns @c false in @a finished, then
7912 this lock is not released until
7913 <link to="IDisplay::resizeCompleted()"/> is called.
7914 </note>
7915 </desc>
7916 <param name="screenId" type="unsigned long" dir="in">
7917 <desc>
7918 Logical screen number. Must be used in the corresponding call to
7919 <link to="IDisplay::resizeCompleted()"/> if this call is made.
7920 </desc>
7921 </param>
7922 <param name="pixelFormat" type="unsigned long" dir="in">
7923 <desc>
7924 Pixel format of the memory buffer pointed to by @a VRAM.
7925 See also <link to="FramebufferPixelFormat"/>.
7926 </desc>
7927 </param>
7928 <param name="VRAM" type="octet" mod="ptr" dir="in">
7929 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
7930 </param>
7931 <param name="bitsPerPixel" type="unsigned long" dir="in">
7932 <desc>Color depth, bits per pixel.</desc>
7933 </param>
7934 <param name="bytesPerLine" type="unsigned long" dir="in">
7935 <desc>Size of one scan line, in bytes.</desc>
7936 </param>
7937 <param name="width" type="unsigned long" dir="in">
7938 <desc>Width of the guest display, in pixels.</desc>
7939 </param>
7940 <param name="height" type="unsigned long" dir="in">
7941 <desc>Height of the guest display, in pixels.</desc>
7942 </param>
7943 <param name="finished" type="boolean" dir="return">
7944 <desc>
7945 Can the VM start using the new framebuffer immediately
7946 after this method returns or it should wait for
7947 <link to="IDisplay::resizeCompleted()"/>.
7948 </desc>
7949 </param>
7950 </method>
7951
7952 <method name="operationSupported">
7953 <desc>
7954 Returns whether the given acceleration operation is supported
7955 by the IFramebuffer implementation. If not, the display object
7956 will not attempt to call the corresponding IFramebuffer entry
7957 point. Even if an operation is indicated to supported, the
7958 IFramebuffer implementation always has the option to return non
7959 supported from the corresponding acceleration method in which
7960 case the operation will be performed by the display engine. This
7961 allows for reduced IFramebuffer implementation complexity where
7962 only common cases are handled.
7963 </desc>
7964 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
7965 <param name="supported" type="boolean" dir="return"/>
7966 </method>
7967
7968 <method name="videoModeSupported">
7969 <desc>
7970 Returns whether the framebuffer implementation is willing to
7971 support a given video mode. In case it is not able to render
7972 the video mode (or for some reason not willing), it should
7973 return false. Usually this method is called when the guest
7974 asks the VMM device whether a given video mode is supported
7975 so the information returned is directly exposed to the guest.
7976 It is important that this method returns very quickly.
7977 </desc>
7978 <param name="width" type="unsigned long" dir="in"/>
7979 <param name="height" type="unsigned long" dir="in"/>
7980 <param name="bpp" type="unsigned long" dir="in"/>
7981 <param name="supported" type="boolean" dir="return"/>
7982 </method>
7983
7984 <method name="solidFill">
7985 <desc>
7986 Fills the specified rectangle on screen with a solid color.
7987 </desc>
7988 <param name="x" type="unsigned long" dir="in"/>
7989 <param name="y" type="unsigned long" dir="in"/>
7990 <param name="width" type="unsigned long" dir="in"/>
7991 <param name="height" type="unsigned long" dir="in"/>
7992 <param name="color" type="unsigned long" dir="in"/>
7993 <param name="handled" type="boolean" dir="return"/>
7994 </method>
7995
7996 <method name="copyScreenBits">
7997 <desc>
7998 Copies specified rectangle on the screen.
7999 </desc>
8000 <param name="xDst" type="unsigned long" dir="in"/>
8001 <param name="yDst" type="unsigned long" dir="in"/>
8002 <param name="xSrc" type="unsigned long" dir="in"/>
8003 <param name="ySrc" type="unsigned long" dir="in"/>
8004 <param name="width" type="unsigned long" dir="in"/>
8005 <param name="height" type="unsigned long" dir="in"/>
8006 <param name="handled" type="boolean" dir="return"/>
8007 </method>
8008
8009 <method name="getVisibleRegion">
8010 <desc>
8011 Returns the visible region of this framebuffer.
8012
8013 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
8014 @a count parameter is ignored and the number of elements necessary to
8015 describe the current visible region is returned in @a countCopied.
8016
8017 If @a rectangles is not <tt>NULL</tt> but @a count is less
8018 than the required number of elements to store region data, the method
8019 will report a failure. If @a count is equal or greater than the
8020 required number of elements, then the actual number of elements copied
8021 to the provided array will be returned in @a countCopied.
8022
8023 <note>
8024 The address of the provided array must be in the process space of
8025 this IFramebuffer object.
8026 </note>
8027 </desc>
8028 <param name="rectangles" type="octet" mod="ptr" dir="in">
8029 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
8030 </param>
8031 <param name="count" type="unsigned long" dir="in">
8032 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
8033 </param>
8034 <param name="countCopied" type="unsigned long" dir="return">
8035 <desc>Number of elements copied to the @a rectangles array.</desc>
8036 </param>
8037 </method>
8038
8039 <method name="setVisibleRegion">
8040 <desc>
8041 Suggests a new visible region to this framebuffer. This region
8042 represents the area of the VM display which is a union of regions of
8043 all top-level windows of the guest operating system running inside the
8044 VM (if the Guest Additions for this system support this
8045 functionality). This information may be used by the frontends to
8046 implement the seamless desktop integration feature.
8047
8048 <note>
8049 The address of the provided array must be in the process space of
8050 this IFramebuffer object.
8051 </note>
8052 <note>
8053 The IFramebuffer implementation must make a copy of the provided
8054 array of rectangles.
8055 </note>
8056 </desc>
8057 <param name="rectangles" type="octet" mod="ptr" dir="in">
8058 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
8059 </param>
8060 <param name="count" type="unsigned long" dir="in">
8061 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
8062 </param>
8063 </method>
8064
8065 </interface>
8066
8067 <interface
8068 name="IFramebufferOverlay" extends="IFrameBuffer"
8069 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
8070 wsmap="suppress"
8071 >
8072 <desc>
8073 The IFramebufferOverlay interface represents an alpha blended overlay
8074 for displaying status icons above an IFramebuffer. It is always created
8075 not visible, so that it must be explicitly shown. It only covers a
8076 portion of the IFramebuffer, determined by its width, height and
8077 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
8078 that order) format, and may be written to directly. Do re-read the
8079 width though, after setting it, as it may be adjusted (increased) to
8080 make it more suitable for the front end.
8081 </desc>
8082 <attribute name="x" type="unsigned long" readonly="yes">
8083 <desc>X position of the overlay, relative to the framebuffer.</desc>
8084 </attribute>
8085
8086 <attribute name="y" type="unsigned long" readonly="yes">
8087 <desc>Y position of the overlay, relative to the framebuffer.</desc>
8088 </attribute>
8089
8090 <attribute name="visible" type="boolean" readonly="no">
8091 <desc>
8092 Whether the overlay is currently visible.
8093 </desc>
8094 </attribute>
8095
8096 <attribute name="alpha" type="unsigned long" readonly="no">
8097 <desc>
8098 The global alpha value for the overlay. This may or may not be
8099 supported by a given front end.
8100 </desc>
8101 </attribute>
8102
8103 <method name="move">
8104 <desc>
8105 Changes the overlay's position relative to the IFramebuffer.
8106 </desc>
8107 <param name="x" type="unsigned long" dir="in"/>
8108 <param name="y" type="unsigned long" dir="in"/>
8109 </method>
8110
8111 </interface>
8112
8113 <interface
8114 name="IDisplay" extends="$unknown"
8115 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
8116 wsmap="suppress"
8117 >
8118 <desc>
8119 The IDisplay interface represents the virtual machine's display.
8120
8121 The object implementing this interface is contained in each
8122 <link to="IConsole::display"/> attribute and represents the visual
8123 output of the virtual machine.
8124
8125 The virtual display supports pluggable output targets represented by the
8126 IFramebuffer interface. Examples of the output target are a window on
8127 the host computer or an RDP sessoin's display on a remote computer.
8128 </desc>
8129 <attribute name="width" type="unsigned long" readonly="yes">
8130 <desc>Current display width.</desc>
8131 </attribute>
8132
8133 <attribute name="height" type="unsigned long" readonly="yes">
8134 <desc>Current display height.</desc>
8135 </attribute>
8136
8137 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
8138 <desc>
8139 Current guest display color depth. Note that this may differ
8140 from <link to="IFramebuffer::bitsPerPixel"/>.
8141 </desc>
8142 </attribute>
8143
8144 <method name="setupInternalFramebuffer">
8145 <desc>
8146 Prepares an internally managed framebuffer.
8147 </desc>
8148 <param name="depth" type="unsigned long" dir="in"/>
8149 </method>
8150
8151 <method name="lockFramebuffer">
8152 <desc>
8153 Requests access to the internal framebuffer.
8154 </desc>
8155 <param name="address" type="octet" mod="ptr" dir="return"/>
8156 </method>
8157
8158 <method name="unlockFramebuffer">
8159 <desc>
8160 Releases access to the internal framebuffer.
8161 </desc>
8162 </method>
8163
8164 <method name="registerExternalFramebuffer">
8165 <desc>
8166 Registers an external framebuffer.
8167 </desc>
8168 <param name="framebuffer" type="IFramebuffer" dir="in"/>
8169 </method>
8170
8171 <method name="setFramebuffer">
8172 <desc>
8173 Sets the framebuffer for given screen.
8174 </desc>
8175 <param name="screenId" type="unsigned long" dir="in"/>
8176 <param name="framebuffer" type="IFramebuffer" dir="in"/>
8177 </method>
8178
8179 <method name="getFramebuffer">
8180 <desc>
8181 Queries the framebuffer for given screen.
8182 </desc>
8183 <param name="screenId" type="unsigned long" dir="in"/>
8184 <param name="framebuffer" type="IFramebuffer" dir="out"/>
8185 <param name="xOrigin" type="long" dir="out"/>
8186 <param name="yOrigin" type="long" dir="out"/>
8187 </method>
8188
8189 <method name="setVideoModeHint">
8190 <desc>
8191 Asks VirtualBox to request the given video mode from
8192 the guest. This is just a hint and it cannot be guaranteed
8193 that the requested resolution will be used. Guest Additions
8194 are required for the request to be seen by guests. The caller
8195 should issue the request and wait for a resolution change and
8196 after a timeout retry.
8197
8198 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
8199 parameters means that the corresponding values should be taken from the
8200 current video mode (i.e. left unchanged).
8201
8202 If the guest OS supports multi-monitor configuration then the @a display
8203 parameter specifies the number of the guest display to send the hint to:
8204 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
8205 so on. If the multi-monitor configuration is not supported, @a display
8206 must be <tt>0</tt>.
8207
8208 </desc>
8209 <param name="width" type="unsigned long" dir="in"/>
8210 <param name="height" type="unsigned long" dir="in"/>
8211 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
8212 <param name="display" type="unsigned long" dir="in"/>
8213 </method>
8214
8215 <method name="setSeamlessMode">
8216 <desc>
8217 Enables or disables seamless guest display rendering (seamless desktop
8218 integration) mode.
8219 <note>
8220 Calling this method has no effect if <link
8221 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
8222 </note>
8223 </desc>
8224 <param name="enabled" type="boolean" dir="in"/>
8225 </method>
8226
8227 <method name="takeScreenShot">
8228 <desc>
8229 Takes a screen shot of the requested size and copies it to the
8230 32-bpp buffer allocated by the caller.
8231 </desc>
8232 <param name="address" type="octet" mod="ptr" dir="in"/>
8233 <param name="width" type="unsigned long" dir="in"/>
8234 <param name="height" type="unsigned long" dir="in"/>
8235 </method>
8236
8237 <method name="drawToScreen">
8238 <desc>
8239 Draws a 32-bpp image of the specified size from the given buffer
8240 to the given point on the VM display.
8241 </desc>
8242 <param name="address" type="octet" mod="ptr" dir="in"/>
8243 <param name="x" type="unsigned long" dir="in"/>
8244 <param name="y" type="unsigned long" dir="in"/>
8245 <param name="width" type="unsigned long" dir="in"/>
8246 <param name="height" type="unsigned long" dir="in"/>
8247 </method>
8248
8249 <method name="invalidateAndUpdate">
8250 <desc>
8251 Does a full invalidation of the VM display and instructs the VM
8252 to update it.
8253 </desc>
8254 </method>
8255
8256 <method name="resizeCompleted">
8257 <desc>
8258 Signals that a framebuffer has completed the resize operation.
8259 </desc>
8260 <param name="screenId" type="unsigned long" dir="in"/>
8261 </method>
8262
8263 <method name="updateCompleted">
8264 <desc>
8265 Signals that a framebuffer has completed the update operation.
8266 </desc>
8267 </method>
8268
8269 </interface>
8270
8271 <!--
8272 // INetworkAdapter
8273 /////////////////////////////////////////////////////////////////////////
8274 -->
8275
8276 <enum
8277 name="NetworkAttachmentType"
8278 uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
8279 >
8280 <desc>
8281 Network attachment type.
8282 </desc>
8283
8284 <const name="Null" value="0">
8285 <desc><tt>null</tt> value. Also means "not attached".</desc>
8286 </const>
8287 <const name="NAT" value="1"/>
8288 <const name="HostInterface" value="2"/>
8289 <const name="Internal" value="3"/>
8290 </enum>
8291
8292 <enum
8293 name="NetworkAdapterType"
8294 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
8295 >
8296 <desc>
8297 Network adapter type.
8298 </desc>
8299
8300 <const name="Null" value="0">
8301 <desc><tt>null</tt> value. Never used by the API.</desc>
8302 </const>
8303 <const name="Am79C970A" value="1"/>
8304 <const name="Am79C973" value="2"/>
8305 <const name="I82540EM" value="3"/>
8306 <const name="I82543GC" value="4"/>
8307 </enum>
8308
8309 <interface
8310 name="INetworkAdapter" extends="$unknown"
8311 uuid="a876d9b1-68d9-43b1-9c68-ddea0a473663"
8312 wsmap="managed"
8313 >
8314 <attribute name="adapterType" type="NetworkAdapterType">
8315 <desc>
8316 Type of the virtual network adapter. Depending on this value,
8317 VirtualBox will provide a different virtual network hardware
8318 to the guest.
8319 </desc>
8320 </attribute>
8321
8322 <attribute name="slot" type="unsigned long" readonly="yes">
8323 <desc>
8324 Slot number this adapter is plugged into. Corresponds to
8325 the value you pass to <link to="IMachine::getNetworkAdapter"/>
8326 to obtain this instance.
8327 </desc>
8328 </attribute>
8329
8330 <attribute name="enabled" type="boolean">
8331 <desc>
8332 Flag whether the network adapter is present in the
8333 guest system. If disabled, the virtual guest hardware will
8334 not contain this network adapter. Can only be changed when
8335 the VM is not running.
8336 </desc>
8337 </attribute>
8338
8339 <attribute name="MACAddress" type="wstring">
8340 <desc>
8341 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
8342 it to NULL, VirtualBox will generate a unique MAC address.
8343 </desc>
8344 </attribute>
8345
8346 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
8347
8348 <attribute name="hostInterface" type="wstring">
8349 <desc>
8350 Name of the Host Network Interface that is currently in use. NULL will be returned
8351 if no device has been allocated. On Linux, setting this refers to a permanent TAP
8352 device. However, a file descriptor has precedence over the interface name on Linux.
8353 Note that when VBox allocates a TAP device, this property will not be set, i.e. the
8354 interface name would have to be determined using the file descriptor and /proc/self/fd.
8355 </desc>
8356 </attribute>
8357
8358<if target="xpidl">
8359 <attribute name="TAPFileDescriptor" type="long">
8360 <desc>
8361 File descriptor of the TAP device. It can either be setup by the caller
8362 which has to supply an existing valid file handle allocated in the parent
8363 process of the VM process or allocated by VirtualBox. The value is -1 if it
8364 has not been defined. This property is non persistent, i.e. it will not be
8365 stored in the VM's configuration data and thus has to be set at each startup.
8366 </desc>
8367 </attribute>
8368 <attribute name="TAPSetupApplication" type="wstring">
8369 <desc>
8370 Application to start to configure the TAP device.
8371 It is being passed two parameters, 1) the file handle (as ascii),
8372 2) the TAP device name if it is available.
8373 </desc>
8374 </attribute>
8375 <attribute name="TAPTerminateApplication" type="wstring">
8376 <desc>
8377 Application to start before closing a TAP device.
8378 It is being passed two parameters, 1) the file handle (as ascii),
8379 2) the TAP device name if it is available.
8380 </desc>
8381 </attribute>
8382</if>
8383
8384 <attribute name="internalNetwork" type="wstring">
8385 <desc>
8386 Name of the internal network the VM is attached to.
8387 </desc>
8388 </attribute>
8389
8390 <attribute name="NATNetwork" type="wstring">
8391 <desc>
8392 Name of the NAT network the VM is attached to.
8393 </desc>
8394 </attribute>
8395
8396 <attribute name="cableConnected" type="boolean">
8397 <desc>
8398 Flag whether the adapter reports the cable as connected or not.
8399 It can be used to report offline situations to a VM.
8400 </desc>
8401 </attribute>
8402
8403 <attribute name="lineSpeed" type="unsigned long">
8404 <desc>
8405 Line speed reported by custom drivers, in units of 1 kbps.
8406 </desc>
8407 </attribute>
8408
8409 <attribute name="traceEnabled" type="boolean">
8410 <desc>
8411 Flag whether network traffic from/to the network card should be traced.
8412 Can only be toggled when the VM is turned off.
8413 </desc>
8414 </attribute>
8415
8416 <attribute name="traceFile" type="wstring">
8417 <desc>
8418 Filename where a network trace will be stored. If not set, VBox-pid.pcap
8419 will be used.
8420 </desc>
8421 </attribute>
8422
8423 <method name="attachToNAT">
8424 <desc>
8425 Attach the network adapter to the Network Address Translation (NAT) interface.
8426 </desc>
8427 </method>
8428
8429 <method name="attachToHostInterface">
8430 <desc>
8431 Attach the network adapter to a host interface. On Linux, the TAP
8432 setup application will be executed if configured and unless a device
8433 name and/or file descriptor has been set, a new TAP interface will be
8434 created.
8435 </desc>
8436 </method>
8437
8438 <method name="attachToInternalNetwork">
8439 <desc>
8440 Attach the network adapter to an internal network.
8441 </desc>
8442 </method>
8443
8444 <method name="detach">
8445 <desc>
8446 Detach the network adapter
8447 </desc>
8448 </method>
8449 </interface>
8450
8451
8452 <!--
8453 // ISerialPort
8454 /////////////////////////////////////////////////////////////////////////
8455 -->
8456
8457 <enum
8458 name="PortMode"
8459 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
8460 >
8461 <desc>
8462 The PortMode enumeration represents possible communicaton modes for
8463 the virtual serial port device.
8464 </desc>
8465
8466 <const name="Disconnected" value="0">
8467 <desc>Virtual device is not attached to any real host device.</desc>
8468 </const>
8469 <const name="HostPipe" value="1">
8470 <desc>Virtual device is attached to a host pipe.</desc>
8471 </const>
8472 <const name="HostDevice" value="2">
8473 <desc>Virtual device is attached to a host device.</desc>
8474 </const>
8475 </enum>
8476
8477 <interface
8478 name="ISerialPort" extends="$unknown"
8479 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
8480 wsmap="managed"
8481 >
8482
8483 <desc>
8484 The ISerialPort interface represents the virtual serial port device.
8485
8486 The virtual serial port device acts like an ordinary serial port
8487 inside the virtual machine. This device communicates to the real
8488 serial port hardware in one of two modes: host pipe or host device.
8489
8490 In host pipe mode, the #path attribute specifies the path to the pipe on
8491 the host computer that represents a serial port. The #server attribute
8492 determines if this pipe is created by the virtual machine process at
8493 machine startup or it must already exist before starting machine
8494 execution.
8495
8496 In host device mode, the #path attribute specifies the name of the
8497 serial port device on the host computer.
8498
8499 There is also a third communication mode: the disconnected mode. In this
8500 mode, the guest OS running inside the virtual machine will be able to
8501 detect the serial port, but all port write operations will be discarded
8502 and all port read operations will return no data.
8503
8504 <see>IMachine::getSerialPort</see>
8505 </desc>
8506
8507 <attribute name="slot" type="unsigned long" readonly="yes">
8508 <desc>
8509 Slot number this serial port is plugged into. Corresponds to
8510 the value you pass to <link to="IMachine::getSerialPort"/>
8511 to obtain this instance.
8512 </desc>
8513 </attribute>
8514
8515 <attribute name="enabled" type="boolean">
8516 <desc>
8517 Flag whether the serial port is enabled. If disabled,
8518 the serial port will not be reported to the guest OS.
8519 </desc>
8520 </attribute>
8521
8522 <attribute name="IOBase" type="unsigned long">
8523 <desc>Base I/O address of the serial port.</desc>
8524 </attribute>
8525
8526 <attribute name="IRQ" type="unsigned long">
8527 <desc>IRQ number of the serial port.</desc>
8528 </attribute>
8529
8530 <attribute name="hostMode" type="PortMode">
8531 <desc>How is this port connected to the host.</desc>
8532 </attribute>
8533
8534 <attribute name="server" type="boolean">
8535 <desc>
8536 Flag whether this serial port acts as a server (creates a new pipe on
8537 the host) or as a client (uses the existing pipe). This attribute is
8538 used only when #hostMode is PortMode::HostPipePort.
8539 </desc>
8540 </attribute>
8541
8542 <attribute name="path" type="wstring">
8543 <desc>
8544 Path to the serial port's pipe on the host when #hostMode is
8545 PortMode::HostPipePort, or the host serial device name when #hostMode
8546 is PortMode::HostDevicePort. In either of the above cases, setting a
8547 @c null or an empty string as the attribute's value will result into
8548 an error. Otherwise, the value of this property is ignored.
8549 </desc>
8550 </attribute>
8551
8552 </interface>
8553
8554 <!--
8555 // IParallelPort
8556 /////////////////////////////////////////////////////////////////////////
8557 -->
8558
8559 <interface
8560 name="IParallelPort" extends="$unknown"
8561 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
8562 wsmap="managed"
8563 >
8564
8565 <desc>
8566 The IParallelPort interface represents the virtual parallel port device.
8567
8568 The virtual parallel port device acts like an ordinary parallel port
8569 inside the virtual machine. This device communicates to the real
8570 parallel port hardware using the name of the parallel device on the host
8571 computer specified in the #path attribute.
8572
8573 Each virtual parallel port device is assigned a base I/O address and an
8574 IRQ number that will be reported to the guest operating system and used
8575 to operate the given parallel port from within the virtual machine.
8576
8577 <see>IMachine::getParallelPort</see>
8578 </desc>
8579
8580 <attribute name="slot" type="unsigned long" readonly="yes">
8581 <desc>
8582 Slot number this parallel port is plugged into. Corresponds to
8583 the value you pass to <link to="IMachine::getParallelPort"/>
8584 to obtain this instance.
8585 </desc>
8586 </attribute>
8587
8588 <attribute name="enabled" type="boolean">
8589 <desc>
8590 Flag whether the parallel port is enabled. If disabled,
8591 the parallel port will not be reported to the guest OS.
8592 </desc>
8593 </attribute>
8594
8595 <attribute name="IOBase" type="unsigned long">
8596 <desc>Base I/O address of the parallel port.</desc>
8597 </attribute>
8598
8599 <attribute name="IRQ" type="unsigned long">
8600 <desc>IRQ number of the parallel port.</desc>
8601 </attribute>
8602
8603 <attribute name="path" type="wstring">
8604 <desc>
8605 Host parallel device name. If this parallel port is enabled, setting a
8606 @c null or an empty string as this attribute's value will result into
8607 an error.
8608 </desc>
8609 </attribute>
8610
8611 </interface>
8612
8613
8614 <!--
8615 // IMachineDebugger
8616 /////////////////////////////////////////////////////////////////////////
8617 -->
8618
8619 <interface
8620 name="IMachineDebugger" extends="$unknown"
8621 uuid="b3a02721-556a-4481-9d47-052a3f8cff90"
8622 wsmap="suppress"
8623 >
8624 <method name="resetStats">
8625 <desc>
8626 Reset VM statistics.
8627 </desc>
8628 <param name="pattern" type="wstring" dir="in">
8629 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8630 </param>
8631 </method>
8632
8633 <method name="dumpStats">
8634 <desc>
8635 Dumps VM statistics.
8636 </desc>
8637 <param name="pattern" type="wstring" dir="in">
8638 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8639 </param>
8640 </method>
8641
8642 <method name="getStats">
8643 <desc>
8644 Get the VM statistics in a XMLish format.
8645 </desc>
8646 <param name="pattern" type="wstring" dir="in">
8647 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8648 </param>
8649 <param name="withDescriptions" type="boolean" dir="in">
8650 <desc>Whether to include the descriptions.</desc>
8651 </param>
8652 <param name="stats" type="wstring" dir="out">
8653 <desc>The XML document containing the statistics.</desc>
8654 </param>
8655 </method>
8656
8657 <attribute name="singlestep" type="boolean">
8658 <desc>Switch for enabling singlestepping.</desc>
8659 </attribute>
8660
8661 <attribute name="recompileUser" type="boolean">
8662 <desc>Switch for forcing code recompilation for user mode code.</desc>
8663 </attribute>
8664
8665 <attribute name="recompileSupervisor" type="boolean">
8666 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
8667 </attribute>
8668
8669 <attribute name="PATMEnabled" type="boolean">
8670 <desc>Switch for enabling and disabling the PATM component.</desc>
8671 </attribute>
8672
8673 <attribute name="CSAMEnabled" type="boolean">
8674 <desc>Switch for enabling and disabling the CSAM component.</desc>
8675 </attribute>
8676
8677 <attribute name="logEnabled" type="boolean">
8678 <desc>Switch for enabling and disabling logging.</desc>
8679 </attribute>
8680
8681 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
8682 <desc>
8683 Flag indicating whether the VM is currently making use of CPU hardware
8684 virtualization extensions
8685 </desc>
8686 </attribute>
8687
8688 <attribute name="PAEEnabled" type="boolean" readonly="yes">
8689 <desc>
8690 Flag indicating whether the VM is currently making use of the Physical
8691 Address Extension CPU feature.
8692 </desc>
8693 </attribute>
8694
8695 <attribute name="virtualTimeRate" type="unsigned long">
8696 <desc>
8697 The rate at which the virtual time runs expressed as a percentage.
8698 The accepted range is 2% to 20000%.
8699 </desc>
8700 </attribute>
8701
8702 <!-- @todo method for setting log flags, groups and destination! -->
8703
8704 <attribute name="VM" type="unsigned long long" readonly="yes">
8705 <desc>
8706 Gets the VM handle. This is only for internal use while
8707 we carve the details of this interface.
8708 </desc>
8709 </attribute>
8710
8711 </interface>
8712
8713 <!--
8714 // IUSBController
8715 /////////////////////////////////////////////////////////////////////////
8716 -->
8717
8718 <interface
8719 name="IUSBController" extends="$unknown"
8720 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
8721 wsmap="managed"
8722 >
8723 <attribute name="enabled" type="boolean">
8724 <desc>
8725 Flag whether the USB controller is present in the
8726 guest system. If disabled, the virtual guest hardware will
8727 not contain any USB controller. Can only be changed when
8728 the VM is powered off.
8729 </desc>
8730 </attribute>
8731
8732 <attribute name="enabledEhci" type="boolean">
8733 <desc>
8734 Flag whether the USB EHCI controller is present in the
8735 guest system. If disabled, the virtual guest hardware will
8736 not contain a USB EHCI controller. Can only be changed when
8737 the VM is powered off.
8738 </desc>
8739 </attribute>
8740
8741 <attribute name="USBStandard" type="unsigned short" readonly="yes">
8742 <desc>
8743 USB standard version which the controller implements.
8744 This is a BCD which means that the major version is in the
8745 high byte and minor version is in the low byte.
8746 </desc>
8747 </attribute>
8748
8749 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
8750 <desc>
8751 List of USB device filters associated with the machine.
8752
8753 If the machine is currently running, these filters are activated
8754 every time a new (supported) USB device is attached to the host
8755 computer that was not ignored by global filters
8756 (<link to="IHost::USBDeviceFilters"/>).
8757
8758 These filters are also activated when the machine is powered up.
8759 They are run against a list of all currently available USB
8760 devices (in states
8761 <link to="USBDeviceState::Available">Available</link>,
8762 <link to="USBDeviceState::Busy">Busy</link>,
8763 <link to="USBDeviceState::Held">Held</link>) that were not previously
8764 ignored by global filters.
8765
8766 If at least one filter matches the USB device in question, this
8767 device is automatically captured (attached to) the virtual USB
8768 controller of this machine.
8769
8770 <see>IUSBDeviceFilter, ::IUSBController</see>
8771 </desc>
8772 </attribute>
8773
8774 <method name="createDeviceFilter">
8775 <desc>
8776 Creates a new USB device filter. All attributes except
8777 the filter name are set to <tt>null</tt> (any match),
8778 <i>active</i> is <tt>false</tt> (the filter is not active).
8779
8780 The created filter can then be added to the list of filters using
8781 <link to="#insertDeviceFilter()"/>.
8782
8783 <see>#deviceFilters</see>
8784 </desc>
8785 <param name="name" type="wstring" dir="in">
8786 <desc>
8787 Filter name. See <link to="IUSBDeviceFilter::name"/>
8788 for more info.
8789 </desc>
8790 </param>
8791 <param name="filter" type="IUSBDeviceFilter" dir="return">
8792 <desc>Created filter object.</desc>
8793 </param>
8794 </method>
8795
8796 <method name="insertDeviceFilter">
8797 <desc>
8798 Inserts the given USB device to the specified position
8799 in the list of filters.
8800
8801 Positions are numbered starting from <tt>0</tt>. If the specified
8802 position is equal to or greater than the number of elements in
8803 the list, the filter is added to the end of the collection.
8804
8805 <note>
8806 Duplicates are not allowed, so an attempt to inster a
8807 filter that is already in the collection, will return an
8808 error.
8809 </note>
8810
8811 <see>#deviceFilters</see>
8812 </desc>
8813 <param name="position" type="unsigned long" dir="in">
8814 <desc>Position to insert the filter to.</desc>
8815 </param>
8816 <param name="filter" type="IUSBDeviceFilter" dir="in">
8817 <desc>USB device filter to insert.</desc>
8818 </param>
8819 </method>
8820
8821 <method name="removeDeviceFilter">
8822 <desc>
8823 Removes a USB device filter from the specified position in the
8824 list of filters.
8825
8826 Positions are numbered starting from <tt>0</tt>. Specifying a
8827 position equal to or greater than the number of elements in
8828 the list will produce an error.
8829
8830 <see>#deviceFilters</see>
8831 </desc>
8832 <param name="position" type="unsigned long" dir="in">
8833 <desc>Position to remove the filter from.</desc>
8834 </param>
8835 <param name="filter" type="IUSBDeviceFilter" dir="return">
8836 <desc>Removed USB device filter.</desc>
8837 </param>
8838 </method>
8839
8840 </interface>
8841
8842
8843 <!--
8844 // IUSBDevice
8845 /////////////////////////////////////////////////////////////////////////
8846 -->
8847
8848 <enumerator
8849 name="IUSBDeviceEnumerator" type="IUSBDevice"
8850 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
8851 />
8852
8853 <collection
8854 name="IUSBDeviceCollection" type="IUSBDevice"
8855 enumerator="IUSBDeviceEnumerator"
8856 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
8857 readonly="yes"
8858 >
8859 <method name="findById">
8860 <desc>
8861 Searches this collection for a USB device with the given UUID.
8862 <note>
8863 The method returns an error if the given UUID does not
8864 correspond to any USB device in the collection.
8865 </note>
8866 <see>IUSBDevice::id</see>
8867 </desc>
8868 <param name="id" type="uuid" dir="in">
8869 <desc>UUID of the USB device to search for.</desc>
8870 </param>
8871 <param name="device" type="IUSBDevice" dir="return">
8872 <desc>Found USB device object.</desc>
8873 </param>
8874 </method>
8875
8876 <method name="findByAddress">
8877 <desc>
8878 Searches this collection for a USB device with the given
8879 host address.
8880 <note>
8881 The method returns an error if the given address does not
8882 correspond to any USB device in the collection.
8883 </note>
8884 <see>IUSBDevice::address</see>
8885 </desc>
8886 <param name="name" type="wstring" dir="in">
8887 <desc>
8888 Address of the USB device (as assigned by the host) to
8889 search for.
8890 </desc>
8891 </param>
8892 <param name="device" type="IUSBDevice" dir="return">
8893 <desc>Found USB device object.</desc>
8894 </param>
8895 </method>
8896
8897 </collection>
8898
8899 <interface
8900 name="IUSBDevice" extends="$unknown"
8901 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
8902 wsmap="managed"
8903 >
8904 <desc>
8905 The IUSBDevice interface represents a virtual USB device attached to the
8906 virtual machine.
8907
8908 A collection of objects implementing this interface is stored in the
8909 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
8910 attached to a running virtual machine's USB controller.
8911 </desc>
8912
8913 <attribute name="id" type="uuid" readonly="yes">
8914 <desc>
8915 Unique USB device ID. This ID is built from #vendorId,
8916 #productId, #revision and #serialNumber.
8917 </desc>
8918 </attribute>
8919
8920 <attribute name="vendorId" type="unsigned short" readonly="yes">
8921 <desc>Vendor ID.</desc>
8922 </attribute>
8923
8924 <attribute name="productId" type="unsigned short" readonly="yes">
8925 <desc>Product ID.</desc>
8926 </attribute>
8927
8928 <attribute name="revision" type="unsigned short" readonly="yes">
8929 <desc>
8930 Product revision number. This is a packed BCD represented as
8931 unsigned short. The high byte is the integer part and the low
8932 byte is the decimal.
8933 </desc>
8934 </attribute>
8935
8936 <attribute name="manufacturer" type="wstring" readonly="yes">
8937 <desc>Manufacturer string.</desc>
8938 </attribute>
8939
8940 <attribute name="product" type="wstring" readonly="yes">
8941 <desc>Product string.</desc>
8942 </attribute>
8943
8944 <attribute name="serialNumber" type="wstring" readonly="yes">
8945 <desc>Serial number string.</desc>
8946 </attribute>
8947
8948 <attribute name="address" type="wstring" readonly="yes">
8949 <desc>Host specific address of the device.</desc>
8950 </attribute>
8951
8952 <attribute name="port" type="unsigned short" readonly="yes">
8953 <desc>
8954 Host USB port number the device is physically
8955 coonected to.
8956 </desc>
8957 </attribute>
8958
8959 <attribute name="version" type="unsigned short" readonly="yes">
8960 <desc>
8961 The major USB version of the device - 1 or 2.
8962 </desc>
8963 </attribute>
8964
8965 <attribute name="portVersion" type="unsigned short" readonly="yes">
8966 <desc>
8967 The major USB version of the host USB port the device is
8968 physically coonected to - 1 or 2. For devices not connected to
8969 anything this will have the same value as the version attribute.
8970 </desc>
8971 </attribute>
8972
8973 <attribute name="remote" type="boolean" readonly="yes">
8974 <desc>
8975 Whether the device is physically connected to a remote VRDP
8976 client or to a local host machine.
8977 </desc>
8978 </attribute>
8979
8980 </interface>
8981
8982
8983 <!--
8984 // IUSBDeviceFilter
8985 /////////////////////////////////////////////////////////////////////////
8986 -->
8987
8988 <enumerator
8989 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
8990 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
8991 />
8992
8993 <collection
8994 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
8995 enumerator="IUSBDeviceFilterEnumerator"
8996 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
8997 readonly="yes"
8998 />
8999
9000 <interface
9001 name="IUSBDeviceFilter" extends="$unknown"
9002 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
9003 wsmap="managed"
9004 >
9005 <desc>
9006 The IUSBDeviceFilter interface represents an USB device filter used
9007 to perform actions on a group of USB devices.
9008
9009 This type of filters is used by running virtual machines to
9010 automatically capture selected USB devices once they are physically
9011 attached to the host computer.
9012
9013 A USB device is matched to the given device filter if and only if all
9014 attributes of the device match the corresponding attributes of the
9015 filter (that is, attributes are joined together using the logical AND
9016 operation). On the other hand, all together, filters in the list of
9017 filters carry the semantics of the logical OR operation. So if it is
9018 desirable to create a match like "this vendor id OR this product id",
9019 one needs to create two filters and specify "any match" (see below)
9020 for unused attributes.
9021
9022 All filter attributes used for matching are strings. Each string
9023 is an expression representing a set of values of the corresponding
9024 device attribute, that will match the given filter. Currently, the
9025 following filtering expressions are supported:
9026
9027 <ul>
9028 <li><i>Interval filters</i>. Used to specify valid intervals for
9029 integer device attributes (Vendor ID, Product ID and Revision).
9030 The format of the string is:
9031
9032 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
9033
9034 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
9035 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
9036 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
9037 is ommitted before a dash (<tt>-</tt>), the minimum possible integer
9038 is assumed; if <tt>n</tt> is ommitted after a dash, the maximum
9039 possible integer is assummed.
9040 </li>
9041 <li><i>Boolean filters</i>. Used to specify acceptable values for
9042 boolean device attributes. The format of the string is:
9043
9044 <tt>true|false|yes|no|0|1</tt>
9045
9046 </li>
9047 <li><i>Exact match</i>. Used to specify a single value for the given
9048 device attribute. Any string that does't start with <tt>int:</tt>
9049 represents the exact match. String device attributes are compared to
9050 this string including case of symbols. Integer attributes are first
9051 converted to a string (see individual filter attributes) and then
9052 compared ignoring case.
9053
9054 </li>
9055 <li><i>Any match</i>. Any value of the corresponding device attribute
9056 will match the given filter. An empty or <tt>null</tt> string is
9057 used to construct this type of filtering expressions.
9058
9059 </li>
9060 </ul>
9061
9062 <note>
9063 On the Windows host platform, interval filters are not currently
9064 available. Also all string filter attributes
9065 (<link to="#manufacturer"/>, <link to="#product"/>,
9066 <link to="#serialNumber"/>) are ignored, so they behave as
9067 <i>any match</i> no matter what string expression is specified.
9068 </note>
9069
9070 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
9071 </desc>
9072
9073 <attribute name="name" type="wstring">
9074 <desc>
9075 Visible name for this filter.
9076 This name is used to visually distungish one filter from another,
9077 so it can neither be <tt>null</tt> nor an empty string.
9078 </desc>
9079 </attribute>
9080
9081 <attribute name="active" type="boolean">
9082 <desc>Whether this filter active or has been temporarily disabled.</desc>
9083 </attribute>
9084
9085 <attribute name="vendorId" type="wstring">
9086 <desc>
9087 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
9088 The string representation for the <i>exact matching</i>
9089 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
9090 (including leading zeroes).
9091 </desc>
9092 </attribute>
9093
9094 <attribute name="productId" type="wstring">
9095 <desc>
9096 <link to="IUSBDevice::productId">Product ID</link> filter.
9097 The string representation for the <i>exact matching</i>
9098 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
9099 (including leading zeroes).
9100 </desc>
9101 </attribute>
9102
9103 <attribute name="revision" type="wstring">
9104 <desc>
9105 <link to="IUSBDevice::productId">Product revision number</link>
9106 filter. The string representation for the <i>exact matching</i>
9107 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
9108 of the integer part of the revision, and <tt>F</tt> is the
9109 decimal digit of its fractional part (including leading and
9110 trailing zeroes).
9111 Note that for interval filters, it's best to use the hexadecimal
9112 form, because the revision is stored as a 16 bit packed BCD value;
9113 so the expression <tt>int:0x0100-0x0199</tt> will match any
9114 revision from <tt>1.0</tt> to <tt>1.99</tt>.
9115 </desc>
9116 </attribute>
9117
9118 <attribute name="manufacturer" type="wstring">
9119 <desc>
9120 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
9121 </desc>
9122 </attribute>
9123
9124 <attribute name="product" type="wstring">
9125 <desc>
9126 <link to="IUSBDevice::product">Product</link> filter.
9127 </desc>
9128 </attribute>
9129
9130 <attribute name="serialNumber" type="wstring">
9131 <desc>
9132 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
9133 </desc>
9134 </attribute>
9135
9136 <attribute name="port" type="wstring">
9137 <desc>
9138 <link to="IUSBDevice::port">Host USB port</link> filter.
9139 </desc>
9140 </attribute>
9141
9142 <attribute name="remote" type="wstring">
9143 <desc>
9144 <link to="IUSBDevice::remote">Remote state</link> filter.
9145 <note>
9146 This filter makes sense only for machine USB filters,
9147 i.e. it is ignored by IHostUSBDeviceFilter objects.
9148 </note>
9149 </desc>
9150 </attribute>
9151
9152 <attribute name="maskedInterfaces" type="unsigned long">
9153 <desc>
9154 This is an advanced option for hiding one or more USB interfaces
9155 from the guest. The value is a bitmask where the bits that are set
9156 means the corresponding USB interface should be hidden, masked off
9157 if you like.
9158 This feature only works on Linux hosts.
9159 </desc>
9160 </attribute>
9161
9162 </interface>
9163
9164
9165 <!--
9166 // IHostUSBDevice
9167 /////////////////////////////////////////////////////////////////////////
9168 -->
9169
9170 <enum
9171 name="USBDeviceState"
9172 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
9173 >
9174 <desc>
9175 USB device state. This enumeration represents all possible states
9176 of the USB device physically attached to the host computer regarding
9177 its state on the host computer and availability to guest computers
9178 (all currently running virtual machines).
9179
9180 Once a supported USB device is attached to the host, global USB
9181 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
9182 either ignore the device, or put ot to #Held state, or do nothing. Unless
9183 the device is ignored by global filters, filters of all currently running
9184 guests (<link to="IUSBController::deviceFilters"/>) are activated that can
9185 put it to #Captured state.
9186
9187 If the device was ignored by global filters, or didn't match
9188 any filters at all (including guest ones), it is handled by the host
9189 in a normal way. In this case, the device state is determined by
9190 the host and can be one of #Unavailable, #Busy or #Available, depending on
9191 the current device usage.
9192
9193 Besides auto-capturing based on filters, the device can be manually
9194 captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
9195 state is #Busy, #Available or #Held.
9196
9197 <note>
9198 Due to differences in USB stack implementations in Linux and Win32,
9199 states #Busy and #Available are applicable only to the Linux version of
9200 the product. This also means that (<link
9201 to="IConsole::attachUSBDevice()"/>) can only succeed on Win32 if
9202 the device state is #USBDeviceHeld.
9203 </note>
9204
9205 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
9206 </desc>
9207
9208 <const name="NotSupported" value="0">
9209 <desc>
9210 Not supported by the VirtualBox server, not available to guests.
9211 </desc>
9212 </const>
9213 <const name="Unavailable" value="1">
9214 <desc>
9215 Being used by the host computer exclusively,
9216 not available to guests.
9217 </desc>
9218 </const>
9219 <const name="Busy" value="2">
9220 <desc>
9221 Being used by the host computer, potentially available to guests.
9222 </desc>
9223 </const>
9224 <const name="Available" value="3">
9225 <desc>
9226 Not used by the host computer, available to guests.
9227 The host computer can also start using the device at any time.
9228 </desc>
9229 </const>
9230 <const name="Held" value="4">
9231 <desc>
9232 Held by the VirtualBox server (ignored by the host computer),
9233 available to guests.
9234 </desc>
9235 </const>
9236 <const name="Captured" value="5">
9237 <desc>
9238 Captured by one of the guest computers, not available
9239 to anybody else.
9240 </desc>
9241 </const>
9242 </enum>
9243
9244 <enumerator
9245 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
9246 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
9247 />
9248
9249 <collection
9250 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
9251 enumerator="IHostUSBDeviceEnumerator"
9252 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
9253 readonly="yes"
9254 >
9255 <method name="findById">
9256 <desc>
9257 Searches this collection for a USB device with the given UUID.
9258 <note>
9259 The method returns an error if the given UUID does not
9260 correspond to any USB device in the collection.
9261 </note>
9262 <see>IHostUSBDevice::id</see>
9263 </desc>
9264 <param name="id" type="uuid" dir="in">
9265 <desc>UUID of the USB device to search for.</desc>
9266 </param>
9267 <param name="device" type="IHostUSBDevice" dir="return">
9268 <desc>Found USB device object.</desc>
9269 </param>
9270 </method>
9271
9272 <method name="findByAddress">
9273 <desc>
9274 Searches this collection for a USB device with the given
9275 host address.
9276 <note>
9277 The method returns an error if the given address does not
9278 correspond to any USB device in the collection.
9279 </note>
9280 <see>IHostUSBDevice::address</see>
9281 </desc>
9282 <param name="name" type="wstring" dir="in">
9283 <desc>
9284 Address of the USB device (as assigned by the host) to
9285 search for.
9286 </desc>
9287 </param>
9288 <param name="device" type="IHostUSBDevice" dir="return">
9289 <desc>Found USB device object.</desc>
9290 </param>
9291 </method>
9292
9293 </collection>
9294
9295 <interface
9296 name="IHostUSBDevice" extends="IUSBDevice"
9297 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
9298 wsmap="managed"
9299 >
9300 <desc>
9301 The IHostUSBDevice interface represents a physical USB device attached
9302 to the host computer.
9303
9304 Besides properties inherited from IUSBDevice, this interface adds the
9305 <link to="#state"/> property that holds the courrent state of the USB
9306 device.
9307
9308 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
9309 </desc>
9310
9311 <attribute name="state" type="USBDeviceState" readonly="yes">
9312 <desc>
9313 Current state of the device.
9314 </desc>
9315 </attribute>
9316
9317 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
9318
9319 </interface>
9320
9321
9322 <!--
9323 // IHostUSBDeviceFilter
9324 /////////////////////////////////////////////////////////////////////////
9325 -->
9326
9327 <enum
9328 name="USBDeviceFilterAction"
9329 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
9330 >
9331 <desc>
9332 Actions for host USB device filters.
9333 <see>IHostUSBDeviceFilter, USBDeviceState</see>
9334 </desc>
9335
9336 <const name="Null" value="0">
9337 <desc><tt>null</tt> value. Never used by the API.</desc>
9338 </const>
9339 <const name="Ignore" value="1">
9340 <desc>Ignore the matched USB device.</desc>
9341 </const>
9342 <const name="Hold" value="2">
9343 <desc>Hold the matched USB device.</desc>
9344 </const>
9345 </enum>
9346
9347 <enumerator
9348 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
9349 uuid="ff735211-903e-4642-9c37-189eb44579fe"
9350 />
9351
9352 <collection
9353 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
9354 enumerator="IHostUSBDeviceFilterEnumerator"
9355 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
9356 readonly="yes"
9357 />
9358
9359 <interface
9360 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
9361 uuid="4cc70246-d74a-400f-8222-3900489c0374"
9362 wsmap="managed"
9363 >
9364 <desc>
9365 The IHostUSBDeviceFilter interface represents a global filter for a
9366 physical USB device used by the host computer. Used indirectly in
9367 <link to="IHost::USBDeviceFilters"/>.
9368
9369 Using filters of this type, the host computer determines the initial
9370 state of the USB device after it is physically attached to the
9371 host's USB controller.
9372
9373 <note>
9374 The <link to="#remote"/> attribute is ignored by this type of
9375 filters, because it makes sense only for
9376 <link to="IUSBController::deviceFilters">machine USB filters</link>.
9377 </note>
9378
9379 <see>IHost::USBDeviceFilters</see>
9380 </desc>
9381
9382 <attribute name="action" type="USBDeviceFilterAction">
9383 <desc>
9384 Action performed by the host when an attached USB device
9385 matches this filter.
9386 </desc>
9387 </attribute>
9388
9389 </interface>
9390
9391 <!--
9392 // IAudioAdapter
9393 /////////////////////////////////////////////////////////////////////////
9394 -->
9395
9396 <enum
9397 name="AudioDriverType"
9398 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
9399 >
9400 <desc>
9401 Host audio driver type.
9402 </desc>
9403
9404 <const name="Null" value="0">
9405 <desc><tt>null</tt> value. Also means "dummy audio driver".</desc>
9406 </const>
9407 <const name="WinMM" value="1"/>
9408 <const name="OSS" value="2"/>
9409 <const name="ALSA" value="3"/>
9410 <const name="DirectSound" value="4"/>
9411 <const name="CoreAudio" value="5"/>
9412 <const name="MMPM" value="6"/>
9413 <const name="Pulse" value="7"/>
9414 <const name="SolAudio" value="8"/>
9415 </enum>
9416
9417 <enum
9418 name="AudioControllerType"
9419 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
9420 >
9421 <desc>
9422 Virtual audio controller type.
9423 </desc>
9424
9425 <const name="AC97" value="0"/>
9426 <const name="SB16" value="1"/>
9427 </enum>
9428
9429 <interface
9430 name="IAudioAdapter" extends="$unknown"
9431 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
9432 wsmap="managed"
9433 >
9434 <desc>
9435 The IAudioAdapter interface represents the virtual audio adapter of
9436 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
9437 </desc>
9438 <attribute name="enabled" type="boolean">
9439 <desc>
9440 Flag whether the audio adapter is present in the
9441 guest system. If disabled, the virtual guest hardware will
9442 not contain any audio adapter. Can only be changed when
9443 the VM is not running.
9444 </desc>
9445 </attribute>
9446 <attribute name="audioController" type="AudioControllerType">
9447 <desc>
9448 The audio hardware we emulate.
9449 </desc>
9450 </attribute>
9451 <attribute name="audioDriver" type="AudioDriverType">
9452 <desc>
9453 Audio driver the adapter is connected to. This setting
9454 can only be changed when the VM is not running.
9455 </desc>
9456 </attribute>
9457 </interface>
9458
9459 <!--
9460 // IVRDPServer
9461 /////////////////////////////////////////////////////////////////////////
9462 -->
9463
9464 <enum
9465 name="VRDPAuthType"
9466 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
9467 >
9468 <desc>
9469 VRDP authentication type.
9470 </desc>
9471
9472 <const name="Null" value="0">
9473 <desc><tt>null</tt> value. Also means "no authentication".</desc>
9474 </const>
9475 <const name="External" value="1"/>
9476 <const name="Guest" value="2"/>
9477 </enum>
9478
9479 <interface
9480 name="IVRDPServer" extends="$unknown"
9481 uuid="ed9d31ae-867f-45fc-b727-6740084d1883"
9482 wsmap="managed"
9483 >
9484 <attribute name="enabled" type="boolean">
9485 <desc>VRDP server status.</desc>
9486 </attribute>
9487
9488 <attribute name="port" type="unsigned long">
9489 <desc>
9490 VRDP server port number.
9491 <note>
9492 Setting the value of this property to <tt>0</tt> will reset the port
9493 number to the default value which is
9494 currently <tt>3389</tt>. Reading this property will always return a
9495 real port number, even after it has been set to <tt>0</tt> (in which
9496 case the default port is returned).
9497 </note>
9498 </desc>
9499 </attribute>
9500
9501 <attribute name="netAddress" type="wstring">
9502 <desc>VRDP server address.</desc>
9503 </attribute>
9504
9505 <attribute name="authType" type="VRDPAuthType">
9506 <desc>VRDP authentication method.</desc>
9507 </attribute>
9508
9509 <attribute name="authTimeout" type="unsigned long">
9510 <desc>Timeout for guest authentication. Milliseconds.</desc>
9511 </attribute>
9512
9513 <attribute name="allowMultiConnection" type="boolean">
9514 <desc>
9515 Flag whether multiple simultaneous connections to the VM are permitted.
9516 Note that this will be replaced by a more powerful mechanism in the future.
9517 </desc>
9518 </attribute>
9519
9520 </interface>
9521
9522
9523 <!--
9524 // ISharedFolder
9525 /////////////////////////////////////////////////////////////////////////
9526 -->
9527
9528 <enumerator
9529 name="ISharedFolderEnumerator" type="ISharedFolder"
9530 uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
9531 />
9532
9533 <collection
9534 name="ISharedFolderCollection" type="ISharedFolder"
9535 enumerator="ISharedFolderEnumerator"
9536 uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
9537 readonly="yes">
9538
9539 <method name="findByName">
9540 <desc>
9541 Searches this collection for a shared folder with the given logical
9542 name.
9543 <note>
9544 The method returns an error if the given name does not correspond to
9545 any shared folder in the collection.
9546 </note>
9547 </desc>
9548 <param name="name" type="wstring" dir="in">
9549 <desc>Logical name of the shared folder to search for</desc>
9550 </param>
9551 <param name="sharedFolder" type="ISharedFolder" dir="return">
9552 <desc>Found shared folder object</desc>
9553 </param>
9554 </method>
9555
9556 </collection>
9557
9558 <interface
9559 name="ISharedFolder" extends="$unknown"
9560 uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
9561 wsmap="struct"
9562 >
9563 <desc>
9564 The ISharedFolder interface represents a folder in the host computer's
9565 file system accessible from the guest OS running inside a virtual
9566 machine using an associated logical name.
9567
9568 There are three types of shared folders:
9569 <ul>
9570 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
9571 folders available to all virtual machines.</li>
9572 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
9573 VM-specific shared folders available to the given virtual machine at
9574 startup.</li>
9575 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
9576 VM-specific shared folders created in the session context (for
9577 example, when the virtual machine is running) and automatically
9578 discarded when the session is closed (the VM is powered off).</li>
9579 </ul>
9580
9581 Logical names of shared folders must be unique within the given scope
9582 (global, permanent or transient). However, they do not need to be unique
9583 across scopes. In this case, the definitioin of the shared folder in a
9584 more specific scope takes precedence over definitions in all other
9585 scopes. The order of precedence is (more specific to more general):
9586 <ol>
9587 <li>Transient definitions</li>
9588 <li>Permanent definitions</li>
9589 <li>Global definitions</li>
9590 </ol>
9591
9592 For example, if MyMachine has a shared folder named
9593 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then cretaing a
9594 transient shared folder named <tt>C_DRIVE</tt> (that points
9595 to <tt>C:\\\\WINDOWS</tt>) will change the definition
9596 of <tt>C_DRIVE</tt> in the guest OS so
9597 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
9598 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
9599 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
9600 the prevoious (permanent) definition of <tt>C_DRIVE</tt> that points
9601 to <tt>C:\\</tt> if it still exists.
9602
9603 Note that permanent and transient shared folders of different machines
9604 are in different name spaces, so they don't overlap and don't need to
9605 have unique logical names.
9606
9607 <note>With the COM API, this is an interface like all the others. With the webservice,
9608 this is mapped to a structure, so querying the attribute will not return an object,
9609 but a complete structure.</note>
9610
9611 <note>
9612 Global shared folders are not implemented in the current vesion of the
9613 product.
9614 </note>
9615 </desc>
9616
9617 <attribute name="name" type="wstring" readonly="yes">
9618 <desc>Logical name of the shared folder.</desc>
9619 </attribute>
9620
9621 <attribute name="hostPath" type="wstring" readonly="yes">
9622 <desc>Full path to the shared folder in the host file system.</desc>
9623 </attribute>
9624
9625 <attribute name="accessible" type="boolean" readonly="yes">
9626 <desc>
9627 Whether the folder defined by the host path is currently
9628 accessible or not.
9629 For example, the folder can be unaccessible if it is placed
9630 on the network share that is not available by the time
9631 this property is read.
9632 </desc>
9633 </attribute>
9634
9635 <attribute name="writable" type="boolean" readonly="yes">
9636 <desc>
9637 Whether the folder defined by the host path is writable or
9638 not.
9639 </desc>
9640 </attribute>
9641
9642 </interface>
9643
9644 <!--
9645 // ISession
9646 /////////////////////////////////////////////////////////////////////////
9647 -->
9648
9649 <interface
9650 name="IInternalSessionControl" extends="$unknown"
9651 uuid="ee0bec44-ffec-4994-8f15-c3dea54bbbb6"
9652 internal="yes"
9653 wsmap="suppress"
9654 >
9655 <method name="getPID">
9656 <desc>PID of the process that has created this Session object.
9657 </desc>
9658 <param name="pid" type="unsigned long" dir="return"/>
9659 </method>
9660
9661 <method name="getRemoteConsole">
9662 <desc>Returns the console object suitable for remote control.</desc>
9663 <param name="console" type="IConsole" dir="return"/>
9664 </method>
9665
9666 <method name="assignMachine">
9667 <desc>
9668 Assigns the machine object associated with this direct-type
9669 session or informs the session that it will be a remote one
9670 (if machine = NULL).
9671 </desc>
9672 <param name="machine" type="IMachine" dir="in"/>
9673 </method>
9674
9675 <method name="assignRemoteMachine">
9676 <desc>
9677 Assigns the machine and the (remote) console object associated with
9678 this remote-type session.
9679 </desc>
9680 <param name="machine" type="IMachine" dir="in"/>
9681 <param name="console" type="IConsole" dir="in"/>
9682 </method>
9683
9684 <method name="updateMachineState">
9685 <desc>
9686 Updates the machine state in the VM process.
9687 Must be called only in certain cases
9688 (see the method implementation).
9689 </desc>
9690 <param name="aMachineState" type="MachineState" dir="in"/>
9691 </method>
9692
9693 <method name="uninitialize">
9694 <desc>
9695 Uninitializes (closes) this session. Used by VirtualBox to close
9696 the corresponding remote session when the direct session dies
9697 or gets closed.
9698 </desc>
9699 </method>
9700
9701 <method name="onDVDDriveChange">
9702 <desc>
9703 Triggered when settings of the DVD drive object of the
9704 associated virtual machine have changed.
9705 </desc>
9706 </method>
9707
9708 <method name="onFloppyDriveChange">
9709 <desc>
9710 Triggered when settings of the floppy drive object of the
9711 associated virtual machine have changed.
9712 </desc>
9713 </method>
9714
9715 <method name="onNetworkAdapterChange">
9716 <desc>
9717 Triggered when settions of a network adapter of the
9718 associated virtual machine have changed.
9719 </desc>
9720 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
9721 </method>
9722
9723 <method name="onSerialPortChange">
9724 <desc>
9725 Triggered when settions of a serial port of the
9726 associated virtual machine have changed.
9727 </desc>
9728 <param name="serialPort" type="ISerialPort" dir="in"/>
9729 </method>
9730
9731 <method name="onParallelPortChange">
9732 <desc>
9733 Triggered when settings of a parallel port of the
9734 associated virtual machine have changed.
9735 </desc>
9736 <param name="parallelPort" type="IParallelPort" dir="in"/>
9737 </method>
9738
9739 <method name="onVRDPServerChange">
9740 <desc>
9741 Triggered when settings of the VRDP server object of the
9742 associated virtual machine have changed.
9743 </desc>
9744 </method>
9745
9746 <method name="onUSBControllerChange">
9747 <desc>
9748 Triggered when settings of the USB controller object of the
9749 associated virtual machine have changed.
9750 </desc>
9751 </method>
9752
9753 <method name="onSharedFolderChange">
9754 <desc>
9755 Triggered when a permanent (global or machine) shared folder has been
9756 created or removed.
9757 <note>
9758 We don't pass shared folder parameters in this notification because
9759 the order in which parallel notifications are delivered is not defined,
9760 therefore it could happen that these parameters were outdated by the
9761 time of processing this notification.
9762 </note>
9763 </desc>
9764 <param name="global" type="boolean" dir="in"/>
9765 </method>
9766
9767 <method name="onUSBDeviceAttach">
9768 <desc>
9769 Triggered when a request to capture a USB device (as a result
9770 of matched USB filters or direct call to
9771 <link to="IConsole::attachUSBDevice"/>) has completed.
9772 A @c null @a error object means success, otherwise it
9773 describes a failure.
9774 </desc>
9775 <param name="device" type="IUSBDevice" dir="in"/>
9776 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
9777 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
9778 </method>
9779
9780 <method name="onUSBDeviceDetach">
9781 <desc>
9782 Triggered when a request to release the USB device (as a result
9783 of machine termination or direct call to
9784 <link to="IConsole::detachUSBDevice"/>) has completed.
9785 A @c null @a error object means success, otherwise it
9786 </desc>
9787 <param name="id" type="uuid" dir="in"/>
9788 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
9789 </method>
9790
9791 <method name="onShowWindow">
9792 <desc>
9793 Called by <link to="IMachine::canShowConsoleWindow()"/> and by
9794 <link to="IMachine::showConsoleWindow()"/> in order to notify
9795 console callbacks
9796 <link to="IConsoleCallback::onCanShowWindow()"/>
9797 and <link to="IConsoleCallback::onShowWindow()"/>.
9798 </desc>
9799 <param name="check" type="boolean" dir="in"/>
9800 <param name="canShow" type="boolean" dir="out"/>
9801 <param name="winId" type="unsigned long long" dir="out"/>
9802 </method>
9803
9804 <method name="accessGuestProperty">
9805 <desc>
9806 Called by <link to="IMachine::getGuestProperty()"/> and by
9807 <link to="IMachine::setGuestProperty()"/> in order to read and
9808 modify guest properties.
9809 </desc>
9810 <param name="key" type="wstring" dir="in"/>
9811 <param name="value" type="wstring" dir="in"/>
9812 <param name="isSetter" type="boolean" dir="in"/>
9813 <param name="retValue" type="wstring" dir="return"/>
9814 </method>
9815
9816 </interface>
9817
9818 <interface
9819 name="ISession" extends="$dispatched"
9820 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
9821 wsmap="managed"
9822 >
9823 <desc>
9824 The ISession interface represents a serialization primitive for virtual
9825 machines.
9826
9827 Within VirtualBox, every time one wishes to manipulate a virtual machine
9828 (for example, change its settings or start execution), an instance of
9829 the ISession interface is required. One first creates a local session
9830 object that implements the ISession interface and then passes the
9831 created object with the method call that opens the given session and
9832 thus initiates the machine manipulation. The session serves several
9833 purposes: it identifies to the inter-process VirtualBox code which
9834 process is currently working with the virtual machine, and it ensures
9835 that there are no incompatible requests from several processes for the
9836 same virtual machine.
9837
9838 How sessions objects are used depends on whether you use the Main API
9839 via COM or via the web service:
9840
9841 <ul>
9842 <li>When using the COM API directly, an object of the Session class from the
9843 VirtualBox type library needs to be created. In regular COM C++ client code,
9844 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
9845 This object will then act as a local session object in further calls to open
9846 a session.
9847 </li>
9848
9849 <li>In the webservice, the session manager (IWebsessionManager) instead creates
9850 one session object automatically when <link to="IWebsessionManager::logon" />
9851 is called. A managed object reference to that session object can be retrieved by
9852 calling <link to="IWebsessionManager::getSessionObject" />. This session object
9853 reference can then be used to open sessions.
9854 </li>
9855 </ul>
9856
9857 Sessions are mainly used in two variations:
9858
9859 <ul>
9860 <li>
9861 To start a virtual machine in a separate process, one would call
9862 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
9863 object as its first parameter. This session then identifies the caller
9864 and lets him control the started machine (for example, pause machine
9865 execution or power it down) as well as be notified about machine
9866 execution state changes.
9867 </li>
9868
9869 <li>To alter machine settings, or to start machine execution within the
9870 current process, one needs to open a direct session for the machine first by
9871 calling <link to="IVirtualBox::openSession"/>. While a direct session
9872 is open within one process, no any other process may open another direct
9873 session for the same machine. This prevents the machine from being changed
9874 by other processes while it is running or while the machine is being configured.
9875 </li>
9876 </ul>
9877
9878 One also can attach to an existing direct session alreay opened by
9879 another process (for example, in order to send a control request to the
9880 virtual machine such as the pause or the reset request). This is done by
9881 calling <link to="IVirtualBox::openExistingSession"/>.
9882
9883 <note>
9884 Unless you are trying to write a new VirtualBox front-end that
9885 performs direct machine execution (like the VirtualBox or VBoxSDL
9886 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
9887 session opened by <link to="IVirtualBox::openSession"/> and use this
9888 session only to change virtual machine settings. If you simply want to
9889 start virtual machine execution using one of the existing front-ends
9890 (for example the VirtualBox GUI or headless server), simply use
9891 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
9892 will power up the machine automatically for you.
9893 </note>
9894 </desc>
9895
9896 <attribute name="state" type="SessionState" readonly="yes">
9897 <desc>Current state of this session.</desc>
9898 </attribute>
9899
9900 <attribute name="type" type="SessionType" readonly="yes">
9901 <desc>
9902 Type of this session. The value of this attribute is valid only
9903 if the session is currently open (i.e. its #state is SessionType::SessionOpen),
9904 otherwise an error will be returned.
9905 </desc>
9906 </attribute>
9907
9908 <attribute name="machine" type="IMachine" readonly="yes">
9909 <desc>Machine object associated with this session.</desc>
9910 </attribute>
9911
9912 <attribute name="console" type="IConsole" readonly="yes">
9913 <desc>Console object associated with this session.</desc>
9914 </attribute>
9915
9916 <method name="close">
9917 <desc>
9918 Closes this session.
9919 <note>
9920 If a direct session for a machine opened with
9921 <link to="IVirtualBox::openSession()"/> is not explicitly
9922 closed when the application terminates, the state of the
9923 machine will be set to <link to="MachineState::Aborted"/>
9924 on the server. Generally, it is recommended to close all
9925 open sessions explicitly before terminating the application
9926 (no matter what is the reason of the termination).
9927 </note>
9928 </desc>
9929 </method>
9930
9931 </interface>
9932
9933 <!--
9934 // ISATAController
9935 /////////////////////////////////////////////////////////////////////////
9936 -->
9937
9938 <interface
9939 name="ISATAController" extends="$unknown"
9940 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
9941 wsmap="managed"
9942 >
9943 <attribute name="enabled" type="boolean">
9944 <desc>
9945 Flag whether the SATA controller is present in the
9946 guest system. If disabled, the virtual guest hardware will
9947 not contain any SATA controller. Can only be changed when
9948 the VM is powered off.
9949 </desc>
9950 </attribute>
9951
9952 <attribute name="portCount" type="unsigned long">
9953 <desc>
9954 The number of usable ports on the sata controller.
9955 It ranges from 1 to 30.
9956 </desc>
9957 </attribute>
9958
9959 <method name="GetIDEEmulationPort">
9960 <desc>Gets the corresponding port number which is emulated as an IDE device.</desc>
9961 <param name="devicePosition" type="long" dir="in"/>
9962 <param name="portNumber" type="long" dir="return"/>
9963 </method>
9964
9965 <method name="SetIDEEmulationPort">
9966 <desc>Sets the port number which is emulated as an IDE device.</desc>
9967 <param name="devicePosition" type="long" dir="in"/>
9968 <param name="portNumber" type="long" dir="in"/>
9969 </method>
9970
9971 </interface>
9972
9973<if target="wsdl">
9974
9975 <!--
9976 // IManagedObjectRef
9977 /////////////////////////////////////////////////////////////////////////
9978 -->
9979
9980 <interface
9981 name="IManagedObjectRef" extends="$unknown"
9982 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
9983 internal="yes"
9984 wsmap="managed"
9985 wscpp="hardcoded"
9986 >
9987 <desc>
9988 Webservice only: Managed object reference.
9989
9990 Only within the webservice, a managed object reference (which is really
9991 an opaque number) allows a webservice client to address an object
9992 that lives in the address space of the webservice server.
9993
9994 Behind each managed object reference, there is a COM object that lives
9995 in the webservice server's address space. The COM object is not freed
9996 until the managed object reference is released, either by an explicit
9997 call to <link to="IManagedObjectRef::release" /> or by logging off from
9998 the webservice (<link to="IWebsessionManager::logoff" />), which releases
9999 all objects created during the webservice session.
10000
10001 Whenever a method call of the VirtualBox API returns a COM object, the
10002 webservice representation of that method will instead return a
10003 managed object reference, which can then be used to invoke methods
10004 on that object.
10005 </desc>
10006
10007 <method name="getInterfaceName">
10008 <desc>
10009 Returns the name of the interface that this managed object represents,
10010 for example, "IMachine", as a string.
10011 </desc>
10012 <param name="return" type="wstring" dir="return"/>
10013 </method>
10014
10015 <method name="release">
10016 <desc>
10017 Releases this managed object reference and frees the resources that
10018 were allocated for it in the webservice server process. After calling
10019 this method, the identifier of the reference can no longer be used.
10020 </desc>
10021 </method>
10022
10023 </interface>
10024
10025 <!--
10026 // IWebsessionManager
10027 /////////////////////////////////////////////////////////////////////////
10028 -->
10029
10030 <interface
10031 name="IWebsessionManager" extends="$unknown"
10032 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
10033 internal="yes"
10034 wsmap="global"
10035 wscpp="hardcoded"
10036 >
10037 <desc>
10038 Webservice only: Websession manager. This provides essential services
10039 to webservice clients.
10040 </desc>
10041 <method name="logon">
10042 <desc>
10043 Logs a new client onto the webservice and returns a managed object reference to
10044 the IVirtualBox instance, which the client can then use as a basis to further
10045 queries, since all calls to the VirtualBox API are based on the IVirtualBox
10046 interface, in one way or the other.
10047 </desc>
10048 <param name="username" type="wstring" dir="in"/>
10049 <param name="password" type="wstring" dir="in"/>
10050 <param name="return" type="wstring" dir="return"/>
10051 </method>
10052
10053 <method name="getSessionObject">
10054 <desc>
10055 Returns a managed object reference to the internal ISession object that was created
10056 for this web service session when the client logged on.
10057
10058 <see>ISession</see>
10059 </desc>
10060 <param name="refIVirtualBox" type="wstring" dir="in"/>
10061 <param name="return" type="wstring" dir="return"/>
10062 </method>
10063
10064 <method name="logoff">
10065 <desc>
10066 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
10067 and destroys all resources associated with the session (most importantly, all
10068 managed objects created in the server while the session was active).
10069 </desc>
10070 <param name="refIVirtualBox" type="wstring" dir="in"/>
10071 </method>
10072
10073 </interface>
10074
10075</if>
10076
10077 <!--
10078 // IPerformanceCollector & friends
10079 /////////////////////////////////////////////////////////////////////////
10080 -->
10081
10082 <interface
10083 name="IPerformanceMetric" extends="$unknown"
10084 uuid="50831d4c-ed55-4221-836c-87b487d3b44a" wsmap="managed"
10085 >
10086 <desc>
10087 The IPerformanceMetric interface represents parameters of the given
10088 performance metric.
10089 </desc>
10090
10091 <attribute name="metricName" type="wstring" readonly="yes">
10092 <desc>
10093 Name of the metric.
10094 </desc>
10095 </attribute>
10096
10097 <attribute name="object" type="$unknown" readonly="yes">
10098 <desc>
10099 Object this metric belongs to.
10100 </desc>
10101 </attribute>
10102
10103 <attribute name="period" type="unsigned long" readonly="yes">
10104 <desc>
10105 Time interval between samples, measured in seconds.
10106 </desc>
10107 </attribute>
10108
10109 <attribute name="count" type="unsigned long" readonly="yes">
10110 <desc>
10111 Number of recent samples retained by the performance collector for this
10112 metric.
10113
10114 When the collected sample count exceeds this number, older samples
10115 are discarded.
10116 </desc>
10117 </attribute>
10118
10119 <attribute name="unit" type="wstring" readonly="yes">
10120 <desc>
10121 Unit of measurement.
10122 </desc>
10123 </attribute>
10124
10125 <attribute name="minimumValue" type="long" readonly="yes">
10126 <desc>
10127 Minimum possible value of this metric.
10128 </desc>
10129 </attribute>
10130
10131 <attribute name="maximumValue" type="long" readonly="yes">
10132 <desc>
10133 Maximum possible value of this metric.
10134 </desc>
10135 </attribute>
10136 </interface>
10137
10138 <interface
10139 name="IPerformanceCollector" extends="$unknown"
10140 uuid="dcd37e5a-3964-43d1-be30-0f3c7234e347"
10141 wsmap="managed"
10142 >
10143 <desc>
10144 The IPerformanceCollector interfaces represents a service that collects
10145 and stores performace metrics data.
10146
10147 Performance metrics are associated with objects like IHost and IMachine.
10148 Each object has a distict set of performance metrics. It can be obtained
10149 with <link to="IPerformanceCollector::getMetrics"/>.
10150 </desc>
10151
10152 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
10153 <desc>
10154 Array of unique names of metrics.
10155
10156 This array represents all metrics supported by the performance
10157 collector. Individual objects do not necessarily support all of them.
10158 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
10159 list of supported metrics for a particular object.
10160 </desc>
10161 </attribute>
10162
10163 <method name="getMetrics">
10164 <desc>
10165 Returns parameters of specified metrics for a set of objects.
10166 <note>
10167 @c Null metrics array means all metrics. @c Null object array means
10168 all existing objects.
10169 </note>
10170 </desc>
10171 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10172 <desc>
10173 Metric name filter. Currently, only a comma-separated list of metrics
10174 is supported.
10175 </desc>
10176 </param>
10177 <param name="objects" type="$unknown" dir="in" safearray="yes">
10178 <desc>
10179 Set of objects to return metric parameters for.
10180 </desc>
10181 </param>
10182 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
10183 <desc>
10184 Array of returned metric parameters.
10185 </desc>
10186 </param>
10187 </method>
10188
10189 <method name="setupMetrics">
10190 <desc>
10191 Sets parameters of specified metrics for a set of objects.
10192 <note>
10193 @c Null metrics array means all metrics. @c Null object array means
10194 all existing objects.
10195 </note>
10196 </desc>
10197 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10198 <desc>
10199 Metric name filter. Currently, only a comma-separated list of metrics
10200 is supported.
10201 </desc>
10202 </param>
10203 <param name="objects" type="$unknown" dir="in" safearray="yes">
10204 <desc>
10205 Set of objects to setup metric parameters for.
10206 </desc>
10207 </param>
10208 <param name="period" type="unsigned long" dir="in">
10209 <desc>
10210 Time interval in seconds between two consecutive samples of performace
10211 data.
10212 </desc>
10213 </param>
10214 <param name="count" type="unsigned long" dir="in">
10215 <desc>
10216 Number of samples to retain in performance data history. Older samples
10217 get discarded.
10218 </desc>
10219 </param>
10220 </method>
10221
10222 <method name="enableMetrics">
10223 <desc>
10224 Turns on collecting specified metrics.
10225 <note>
10226 @c Null metrics array means all metrics. @c Null object array means
10227 all existing objects.
10228 </note>
10229 </desc>
10230 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10231 <desc>
10232 Metric name filter. Currently, only a comma-separated list of metrics
10233 is supported.
10234 </desc>
10235 </param>
10236 <param name="objects" type="$unknown" dir="in" safearray="yes">
10237 <desc>
10238 Set of objects to enable metrics for.
10239 </desc>
10240 </param>
10241 </method>
10242
10243 <method name="disableMetrics">
10244 <desc>
10245 Turns off collecting specified metrics.
10246 <note>
10247 @c Null metrics array means all metrics. @c Null object array means
10248 all existing objects.
10249 </note>
10250 </desc>
10251 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10252 <desc>
10253 Metric name filter. Currently, only a comma-separated list of metrics
10254 is supported.
10255 </desc>
10256 </param>
10257 <param name="objects" type="$unknown" dir="in" safearray="yes">
10258 <desc>
10259 Set of objects to disable metrics for.
10260 </desc>
10261 </param>
10262 </method>
10263
10264 <method name="queryMetricsData">
10265 <desc>
10266 Queries collected metrics data for a set of objects.
10267
10268 The @a returnData parameter is a flattened array of arrays. Each start
10269 and length of a sub-array is indicated by @a returnDataIndices and @a
10270 returnDataLengths.
10271
10272 <note>
10273 @c Null metrics array means all applicable metrics. @c Null object
10274 array means all existing objects.
10275 </note>
10276 </desc>
10277 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10278 <desc>
10279 Metric name filter. Currently, only a comma-separated list of metrics
10280 is supported.
10281 </desc>
10282 </param>
10283 <param name="objects" type="$unknown" dir="in" safearray="yes">
10284 <desc>
10285 Set of objects to query metrics for.
10286 </desc>
10287 </param>
10288 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
10289 <desc>
10290 Names of metrics returned in @c returnData.
10291 </desc>
10292 </param>
10293 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
10294 <desc>
10295 Objects associated with metrics returned in @c returnData.
10296 </desc>
10297 </param>
10298 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
10299 <desc>
10300 Indices of the first elements of value sequences of particular metrics
10301 returned in @c returnData.
10302 </desc>
10303 </param>
10304 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
10305 <desc>
10306 Lengths of value sequences of particular metrics.
10307 </desc>
10308 </param>
10309 <param name="returnData" type="long" dir="return" safearray="yes">
10310 <desc>
10311 Flattened array of all metric data containing sequences of values for
10312 each metric. The first value for metric <tt>metricNames[i]</tt> is at
10313 <tt> returnData[returnIndices[i]]</tt>.
10314 </desc>
10315 </param>
10316 </method>
10317
10318 </interface>
10319
10320 <module name="VBoxSVC" context="LocalServer">
10321 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
10322 namespace="virtualbox.org">
10323 <interface name="IVirtualBox" default="yes"/>
10324 </class>
10325 </module>
10326
10327 <module name="VBoxC" context="InprocServer" threadingModel="Free">
10328 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
10329 namespace="virtualbox.org">
10330 <interface name="ISession" default="yes"/>
10331 </class>
10332 </module>
10333
10334</library>
10335
10336</idl>
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