Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlVmDevNet_SetBoundAdapterIndex Function
PHT_VIRTUAL_DEV_NET_ADAPTER  See Also

Sets the index of the adapter to which the specified virtual adapter should be bound.

Syntax
PRL_RESULT PrlVmDevNet_SetBoundAdapterIndex(
    PRL_HANDLE hVmDev, 
    PRL_INT32 nIndex
);
File

PrlApiVm.h

Parameters

hVmDev
A handle of type PHT_VIRTUAL_DEV_NET_ADAPTER identifying the virtual network adapter.
nIndex
The index of the adapter to which the specified virtual adapter should be bound. If you would like to bind the virtual adapter to the default adapter, specify -1 (negative one).

Returns

PRL_RESULT. Possible values: PRL_ERR_INVALID_ARG - non valid net VM device handle or handle of already removed net VM device was passed PRL_ERR_SUCCESS - operation successfully completed

Remarks

In a bridged networking mode, a network adapter inside a virtual machine is bound to an adapter on the host. This function allows to set the index of the adapter from the host.

See Also
Links
© 2021 Parallels International GmbH. All rights reserved.