VirtualBox

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

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

+changed IFramebuffer interface to report id of associated window if there's one
+changed sdl/qt3/qt4 frontends's interface implementations to report this id
+added VBoxSharedCrOpenGL hgcm service
(VBoxManage.exe setextradata lvm_winxp_sp2 VBoxInternal/Devices/VMMDev/0/LUN#0/Config/crOpenGLEnabled 1)
+changed crserver to be launched from vmmdev by guest request
+added hgcm call to supply desired window id to render spu
+changed guest icd driver to initialize hgcm and cause tcpip listener startup on host
+fixed spu finalization
+fixed q3 startup, again :)

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