DetectAutoProxyUrl function (wininet.h)
Attempts to determine the location of a WPAD autoproxy script.
Syntax
BOOL DetectAutoProxyUrl(
[in, out] PSTR pszAutoProxyUrl,
[in] DWORD cchAutoProxyUrl,
[in] DWORD dwDetectFlags
);
Parameters
[in, out] pszAutoProxyUrl
Pointer to a buffer to receive the URL from which a WPAD autoproxy script can be downloaded.
[in] cchAutoProxyUrl
Size of the buffer pointed to by lpszAutoProxyUrl, in bytes.
[in] dwDetectFlags
Automation detection type. This parameter can be one or both of the following values.
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wininet.h (include Wininet.h) |
Library | Wininet.lib |
DLL | Wininet.dll |