<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Micheal,</DIV>
<DIV> </DIV>
<DIV>You are correct. For clipboard and shared file module, we don't need the vm name.</DIV>
<DIV> </DIV>
<DIV>We are also developing another addition, that will add shortcuts to the host start menu, so vm apps can be launched directly from host. In order to do this, we need the vm name to add to host shortcuts so it can correlate the correct vm. VM could be offline, and the shortcuts are stored on host disk, so when a user click a link, it will launch the vm, then the app inside vm.</DIV>
<DIV> </DIV>
<DIV>When an app is installed in a vm, our addin will inform the host to create the shortcuts. The shortcut will embed a vm name.</DIV>
<DIV> </DIV>
<DIV>Huihong<BR><BR>--- On <B>Mon, 5/11/09, Michael Thayer <I><Michael.Thayer@Sun.COM></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Michael Thayer <Michael.Thayer@Sun.COM><BR>Subject: Re: [vbox-dev] How to get the current running IMachine instance inside a host service?<BR>To: "Huihong Luo" <huisinro@yahoo.com><BR>Cc: vbox-dev@virtualbox.org<BR>Date: Monday, May 11, 2009, 9:27 AM<BR><BR>
<DIV class=plainMail>Hello Huilong,<BR><BR>Huihong Luo wrote:<BR>> Thanks. This is the info I needed.<BR>>  <BR>> I was trying not to modify the main line code. If there is no better way, I guess need to modify the host call to pass the vm info I needed.<BR>>  <BR>> By the way, we have added copy/paste of files between guest and host, so a user can do Control-C/Control-V for file copying, etc. To do this, we added CF_HDROP format support to the shared clipboard. We used our own shared folder additions. if you would like to add this support to the main line of code, pls let me know. (we only did it on windows guest and host).<BR>>  <BR>> We may add drag-drop support on windows later on<BR>I take it from the above that you are rebuilding the clipboard service<BR>and additions module.  If this is correct and you can give me a hint as<BR>to why you need to know the VM name, perhaps we can think of a way<BR>around this
 without modifying the main VBox code.<BR><BR>Regards,<BR><BR>Michael<BR>--<BR>Sun Microsystems GmbH        Michael Thayer<BR>Werkstrasse 24               VirtualBox engineer<BR>71384 Weinstadt, Germany     mailto:<A href="http://us.mc11.mail.yahoo.com/mc/compose?to=michael.thayer@sun.com" ymailto="mailto:michael.thayer@sun.com">michael.thayer@sun.com</A><BR><BR>Sitz der Gesellschaft:<BR>Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten<BR>Amtsgericht Muenchen: HRB 161028<BR>Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel<BR>Vorsitzender des Aufsichtsrates: Martin Haering<BR></DIV></BLOCKQUOTE></td></tr></table>