Collapse All
Parallels C API Reference Guide
PrlVmDevNet_SetBoundAdapterIndex Function
PrlApi.h 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
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
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!