Group: Internet Functions (WinInet) - Library: wininet
The DetectAutoProxyUrl function identifies the auto-config script location
BOOL DetectAutoProxyUrl(
LPSTR lpszAutoProxyUrl,
DWORD dwAutoProxyUrlLength,
DWORD dwDetectFlags
);
DECLARE INTEGER DetectAutoProxyUrl IN wininet;
STRING @ lpszAutoProxyUrl,;
LONG dwAutoProxyUrlLength,;
LONG dwDetectFlags
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.
Returns TRUE if successful, or FALSE otherwise.
DetectAutoProxyUrl is called to identify a location (WPAD) from which to obtain the auto-config script. WPAD stands for Web Proxy Auto-Discovery.