Get [out] parameters in API

Discussion about using the VirtualBox API, Tutorials, Samples.

Get [out] parameters in API

Postby jamesLemon » 3. May 2021, 19:07

In python i see this function return a tuple contains 2 IProgress object instead of 1 IProgress and IHostOnly.
Code: Select all   Expand viewCollapse view
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
jamesLemon
 
Posts: 1
Joined: 3. May 2021, 18:56

Return to The VirtualBox API

Who is online

Users browsing this forum: No registered users and 18 guests