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

Allows to set the virtual network ID for a network adapter in a virtual machine.

Syntax
PRL_RESULT PrlVmDevNet_SetVirtualNetworkId(
    PRL_HANDLE hVmDev, 
    PRL_CONST_STR sNewVirtualNetworkId
);
File

PrlApiDeprecated.h

Parameters

hVmDev
A handle of type PHT_VIRTUAL_DEV_NET_ADAPTER identifying the virtual network adapter.
sNewVirtualNetworkId
The new virtual network ID. The specified string must be encoded using UTF-8 and must be terminated with the binary zero character. Can be null or empty in order to drop virtual network ID device field.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

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