Expand Minimize
This topic has not yet been rated - Rate this topic

DetectAutoProxyUrl function

Attempts to determine the location of a WPAD autoproxy script.

Syntax


BOOL DetectAutoProxyUrl(
  _Inout_  LPSTR lpszAutoProxyUrl,
  _In_     DWORD dwAutoProxyUrlLength,
  _In_     DWORD dwDetectFlags
);

Parameters

lpszAutoProxyUrl [in, out]

Pointer to a buffer to receive the URL from which a WPAD autoproxy script can be downloaded.

dwAutoProxyUrlLength [in]

Size of the buffer pointed to by lpszAutoProxyUrl, in bytes.

dwDetectFlags [in]

Automation detection type. This parameter can be one or both of the following values.

ValueMeaning
PROXY_AUTO_DETECT_TYPE_DHCP

Use a Dynamic Host Configuration Protocol (DHCP) search to identify the proxy.

PROXY_AUTO_DETECT_TYPE_DNS_A

Use a well qualified name search to identify the proxy.

 

Return value

Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.

Remarks

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

See also

InternetDeInitializeAutoProxyDll
InternetGetProxyInfo
InternetInitializeAutoProxyDll

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.