Collapse All
Parallels C API Reference Guide
PrlNetworkShapingEntry_Create Function
PrlApi.h PHT_NETWORK_SHAPING

Creates a new handle of type PHT_NETWORK_SHAPING .

Syntax
PRL_RESULT PrlNetworkShapingEntry_Create(
    PRL_UINT32 nClassId, 
    PRL_UINT32 nTotalRate, 
    PRL_HANDLE_PTR phNetworkShapingEntry
);
File
Parameters

nClassId
Network class id
nTotalRate
Specifies bound rate for network class phNetworkShapingEntry:[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 © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!