VirtualBox

Changeset 62900 in vbox for trunk


Ignore:
Timestamp:
Aug 3, 2016 9:51:47 AM (8 years ago)
Author:
vboxsync
Message:

Main/glue/vboxapi.py: use VirtualBoxClient instead of directly creating a remote VirtualBox object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/vboxapi.py

    r61376 r62900  
    464464        win32com.client.gencache.EnsureDispatch('VirtualBox.Session')
    465465        win32com.client.gencache.EnsureDispatch('VirtualBox.VirtualBox')
     466        win32com.client.gencache.EnsureDispatch('VirtualBox.VirtualBoxClient')
    466467
    467468        self.oIntCv = threading.Condition()
     
    507508        import win32com
    508509        from win32com.client import Dispatch
    509         return win32com.client.Dispatch("VirtualBox.VirtualBox")
     510        client = win32com.client.Dispatch("VirtualBox.VirtualBoxClient")
     511        return client.virtualBox
    510512
    511513    def getType(self):
     
    738740    def getVirtualBox(self):
    739741        import xpcom.components
    740         return xpcom.components.classes["@virtualbox.org/VirtualBox;1"].createInstance()
     742        client = xpcom.components.classes["@virtualbox.org/VirtualBoxClient;1"].createInstance()
     743        return client.virtualBox
    741744
    742745    def getType(self):
Note: See TracChangeset for help on using the changeset viewer.

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