Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlNetworkShapingBandwidthEntry_Create Function
PHT_NETWORK_SHAPING_BANDWIDTH

Creates a new handle of type PHT_NETWORK_SHAPING_BANDWIDTH.

Syntax
PRL_RESULT PrlNetworkShapingBandwidthEntry_Create(
    PRL_CONST_STR sDev, 
    PRL_UINT32 nBandwidth, 
    PRL_HANDLE_PTR phDeviceEntry
);
File

PrlApiNet.h

Parameters

sDev
network device name.
nBandwidth
Network device bandwidth phDeviceEntryN:[out] A pointer to a variable that receives the handle.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - null pointer was passed. 

PRL_ERR_OUT_OF_MEMORY - not enough memory to create a virtual network object. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

The handle is necessary to configure network shaping configuration. 

It is the responsibility of the caller to free the handle with the PrlHandle_Free call when it is no longer needed.

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.