Page 1 of 1

Get [out] parameters in API

Posted: 3. May 2021, 19:07
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