So I type in the following in python:
Code: Select all
>>> import win32com.client
>>> VirtualBox = win32com.client.Dispatch("VirtualBox.VirtualBox")
>>> Host=VirtualBox.host
>>> Host.findHostNetworkInterfacesOfType(HostNetworkInterfaceType_Bridged, list)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'HostNetworkInterfaceType_Bridged' is not definedCode: Select all
>>> Host.findHostNetworkInterfacesOfType(0, list)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<COMObject <unknown>>", line 2, in findHostNetworkInterfacesOfType
TypeError: Objects of type 'type' can not be converted to a COM VARIANTCode: Select all
>>> VirtualBox
<COMObject VirtualBox.VirtualBox>
>>> Host
<COMObject <unknown>>
Does anyone else have experience with this?