Get [out] parameters in API

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
jamesLemon
Posts: 1
Joined: 3. May 2021, 18:56

Get [out] parameters in API

Post by jamesLemon »

In python i see this function return a tuple contains 2 IProgress object instead of 1 IProgress and IHostOnly.

Code: Select all

createHostOnlyNetworkInterface

     IProgress IHost::createHostOnlyNetworkInterface(
              [out] IHostNetworkInterface hostInterface)
     hostInterface Created host interface object.
    Creates a new adapter for Host Only Networking.
    If this method fails, the following error codes may be reported:
    E_INVALIDARG: Host network interface name already exists
So my question is how can I get this [out] parameters by vboxapi in python?
Thank for any help!

Additional Information:
API version: 6.1
VBox version: 6.1
Language used: Python
OS: Windows
Post Reply