DnsGetProxyInformation function (windns.h)

The DnsGetProxyInformation function returns the proxy information for a DNS server's name resolution policy table.

Syntax

DWORD DnsGetProxyInformation(
  [in]                PCWSTR                       hostName,
  [in, out]           DNS_PROXY_INFORMATION        *proxyInformation,
  [in, out, optional] DNS_PROXY_INFORMATION        *defaultProxyInformation,
  [in, optional]      DNS_PROXY_COMPLETION_ROUTINE completionRoutine,
  [in, optional]      void                         *completionContext
);

Parameters

[in] hostName

A pointer to a string that represents the name of the DNS server whose proxy information is returned.

[in, out] proxyInformation

A pointer to a DNS_PROXY_INFORMATION structure that contains the proxy information for hostName.

[in, out, optional] defaultProxyInformation

A pointer to a DNS_PROXY_INFORMATION structure that contains the default proxy information for hostName. This proxy information is for the wildcard DNS policy.

[in, optional] completionRoutine

Reserved. Do not use.

[in, optional] completionContext

Reserved. Do not use.

Return value

The DnsGetProxyInformation function returns the appropriate DNS-specific error code as defined in Winerror.h. The following are possible return values:

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header windns.h
Library Dnsapi.lib
DLL Dnsapi.dll

See also

DNS Functions