Collapse All
Parallels C API Reference Guide
PrlDispCfg_CreateDispNet Function
PrlApi.h PHT_DISP_CONFIG Send Feedback

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
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
Copyright (c) 1999-2008 Parallels Software International Inc.
What do you think about this topic? Send feedback!