DnsGetProxyInformation function

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

Syntax

DWORD DnsGetProxyInformation(
  PCWSTR                       hostName,
  DNS_PROXY_INFORMATION        *proxyInformation,
  DNS_PROXY_INFORMATION        *defaultProxyInformation,
  DNS_PROXY_COMPLETION_ROUTINE completionRoutine,
  void                         *completionContext
);

Parameters

hostName

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

proxyInformation

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

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.

completionRoutine

Reserved. Do not use.

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

   
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