Class WinHttpHelpers
java.lang.Object
com.github.markusbernhardt.proxy.jna.win.WinHttpHelpers
Static helper methods for Windows
WinHttp functions.- Author:
- phansson
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdetectAutoProxyConfigUrl(com.sun.jna.platform.win32.WinDef.DWORD dwAutoDetectFlags) Finds the URL for the Proxy Auto-Configuration (PAC) file using WPAD.
-
Field Details
-
WINHTTP_INSTANCE
-
-
Method Details
-
detectAutoProxyConfigUrl
public static String detectAutoProxyConfigUrl(com.sun.jna.platform.win32.WinDef.DWORD dwAutoDetectFlags) Finds the URL for the Proxy Auto-Configuration (PAC) file using WPAD. This is merely a wrapper aroundWinHttpDetectAutoProxyConfigUrlThis method is blocking and may take some time to execute.
- Parameters:
dwAutoDetectFlags- flags for auto detection- Returns:
- the url of the PAC file or
nullif it cannot be located using WPAD method.
-