Class WinHttpHelpers
- java.lang.Object
-
- com.github.markusbernhardt.proxy.jna.win.WinHttpHelpers
-
public class WinHttpHelpers extends Object
Static helper methods for WindowsWinHttpfunctions.- Author:
- phansson
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdetectAutoProxyConfigUrl(com.sun.jna.platform.win32.WinDef.DWORD dwAutoDetectFlags)Finds the URL for the Proxy Auto-Configuration (PAC) file using WPAD.static voidfreeGlobalMemory(com.sun.jna.Pointer p)static StringgetAndFreeGlobalString(com.sun.jna.platform.win32.WTypes.LPWSTR h)
-
-
-
Method Detail
-
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 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.
-
freeGlobalMemory
public static void freeGlobalMemory(com.sun.jna.Pointer p)
-
getAndFreeGlobalString
public static String getAndFreeGlobalString(com.sun.jna.platform.win32.WTypes.LPWSTR h)
-
-