Collapse All
Parallels C API Reference Guide
PrlSrvCfg_GetDnsServers Function
PrlApi.h PHT_SERVER_CONFIG

Obtains the list of IP addresses of DNS servers for the specified host or guest.

Syntax
PRL_RESULT PrlSrvCfg_GetDnsServers(
    PRL_HANDLE hSrvConfig, 
    PRL_HANDLE_PTR phDnsServersList
);
File
Parameters

hSrvConfig
A handle of type PHT_SERVER_CONFIG . When obtaining the host OS information, use the PrlSrv_GetSrvConfig to obtain the handle. When obtaining the guest OS information, use the PrlVmGuest_GetNetworkSettings function.
phDnsServersList
[out] A pointer to a variable that receives the PHT_STRINGS_LIST handle containing the IP addresses of DNS servers.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_OUT_OF_MEMORY - not enough memory to instantiate strings list object

PRL_ERR_SUCCESS - function completed successfully.

Links
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!