[vbox-dev] How to get the current running IMachine instance inside a host service?

Huihong Luo huisinro at yahoo.com
Mon May 11 16:41:52 GMT 2009


Micheal,
 
You are correct. For clipboard and shared file module, we don't need the vm name.
 
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.
 
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.
 
Huihong

--- On Mon, 5/11/09, Michael Thayer <Michael.Thayer at Sun.COM> wrote:


From: Michael Thayer <Michael.Thayer at Sun.COM>
Subject: Re: [vbox-dev] How to get the current running IMachine instance inside a host service?
To: "Huihong Luo" <huisinro at yahoo.com>
Cc: vbox-dev at virtualbox.org
Date: Monday, May 11, 2009, 9:27 AM


Hello Huilong,

Huihong Luo wrote:
> Thanks. This is the info I needed.
>  
> 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.
>  
> 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).
>  
> We may add drag-drop support on windows later on
I take it from the above that you are rebuilding the clipboard service
and additions module.  If this is correct and you can give me a hint as
to why you need to know the VM name, perhaps we can think of a way
around this without modifying the main VBox code.

Regards,

Michael
--
Sun Microsystems GmbH        Michael Thayer
Werkstrasse 24               VirtualBox engineer
71384 Weinstadt, Germany     mailto:michael.thayer at sun.com

Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Haering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090511/42e788b1/attachment.html>


More information about the vbox-dev mailing list