Collapse All
Parallels C API Reference Guide
PrlSrvCfgNet_GetDnsServers Function
PrlApi.h PHT_HW_NET_ADAPTER Send Feedback

Obtains a list of addresses of DNS servers assigned to the specified network adapter.

Syntax
PRL_RESULT PrlSrvCfgNet_GetDnsServers(
    PRL_HANDLE hNetAdapter, 
    PRL_HANDLE_PTR phDnsServersList
);
File
Parameters

hNetAdapter
A valid handle of type PHT_HW_NET_ADAPTER identifying the adapter.
phDnsServersList
[out] A pointer to a variable that receives the PHT_STRINGS_LIST handle containing the list of addresses.
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 (c) 1999-2008 Parallels Software International Inc.
What do you think about this topic? Send feedback!