Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DnsGetProxyInformation

DnsGetProxyInformation function

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

Syntax


DNS_STATUS WINAPI DnsGetProxyInformation(
  _In_        PCWSTR                       hostName,
  _Inout_     DNS_PROXY_INFORMATION        *proxyInformation,
  _Inout_opt_ DNS_PROXY_INFORMATION        *defaultProxyInformation,
  _In_opt_    DNS_PROXY_COMPLETION_ROUTINE completionRoutine,
  _In_opt_    void                         *completionContext
);

Parameters

hostName [in]

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

proxyInformation [in, out]

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

defaultProxyInformation [in, out, optional]

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 [in, optional]

Reserved. Do not use.

completionContext [in, optional]

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:

ERROR_SUCCESS
ERROR_INVALID_PARAMETER

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Windns.h

Library

Dnsapi.lib

DLL

Dnsapi.dll

See also

DNS Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft