Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlVirtNet_SetNATServerEnabled Function
PHT_VIRTUAL_NETWORK

Allows to enable or disable a specified virtual network NAT server.

Syntax
PRL_RESULT PrlVirtNet_SetNATServerEnabled(
    PRL_HANDLE hVirtNet, 
    PRL_BOOL bEnabled
);
File

PrlApiNet.h

Parameters

hVirtNet
A handle of type PHT_VIRTUAL_NETWORK identifying the virual network.
bEnabled
A boolean value indicating the type of action to perform. PRL_TRUE will enable the NAT server. PRL_FALSE will disable it.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

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