Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlDispCfg_CreateDispNet Function
PHT_DISP_CONFIG

Creates a new virtual network adapter object and adds it to the network adapters list.

Syntax
PRL_RESULT PrlDispCfg_CreateDispNet(
    PRL_HANDLE hDispConfig, 
    PRL_HANDLE_PTR phDispNet
);
File

PrlApiDeprecated.h

Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG.
phDispNet
[out] A pointer to a new handle of type PHT_DISP_NET_ADAPTER.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

This function merely creates a new virtual network adapter object in the local memory. To add a network adapter to the Parallels Service, populate the necessary network adapter properties using functions from the PHT_DISP_NET_ADAPTER group and then call PrlSrv_AddNetAdapter to add the adapter to the Parallels Service configuration.

Links
© 2021 Parallels International GmbH. All rights reserved.