Collapse All
Parallels C API Reference Guide
PrlVmDevNet_SetDefaultGateway Function
PrlApi.h PHT_VIRTUAL_DEV_NET_ADAPTER See Also Send Feedback

Allows to manually set the default gateway address for a network adapter in a virtual machine.

Syntax
PRL_RESULT PrlVmDevNet_SetDefaultGateway(
    PRL_HANDLE hVmDev, 
    PRL_CONST_STR sNewDefaultGateway
);
File
Parameters

hVmDev
A handle of type PHT_VIRTUAL_DEV_NET_ADAPTER identifying the virtual network adapter.
sNewDefaultGateway
The new default gateway address. The specified string must be encoded using UTF-8 and must be terminated with the binary zero character.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

Note : For these changes to take effect, Parallels Tools must be installed in a target virtual machine.

If the changes are applied to a stopped virtual machine, they will take effect the next time the machine is started. If the changes are applied to a running virtual machine, they will take effect on configuration changes commit.

See Also
Links
Copyright (c) 1999-2008 Parallels Software International Inc.
What do you think about this topic? Send feedback!