Debian Codegraph @

src/main/java/com/github/markusbernhardt/proxy/jna/win/WinHttpCurrentUserIEProxyConfig.java

raw symbols SCIP
1 package com.github.markusbernhardt.proxy.jna.win;
2
3 import java.util.Arrays;
4 import java.util.List;
5
6 import com.sun.jna.Pointer;
7 import com.sun.jna.Structure;
8 import com.sun.jna.platform.win32.WTypes;
9
10 /**
11 * The WINHTTP_CURRENT_USER_IE_PROXY_CONFIG structure contains the Internet
12 * Explorer proxy configuration information.
13 *
14 * @author Markus Bernhardt, Copyright 2016
15 */
16 public class WinHttpCurrentUserIEProxyConfig extends Structure {
17
18 /**
19 * If TRUE, indicates that the Internet Explorer proxy configuration for the
20 * current user specifies "automatically detect settings".
21 */
22 public boolean fAutoDetect;
23
24 /**
25 * Pointer to a null-terminated Unicode string that contains the
26 * auto-configuration URL if the Internet Explorer proxy configuration for
27 * the current user specifies "Use automatic proxy configuration".
28 */
29 public WTypes.LPWSTR lpszAutoConfigUrl;
30
31 /**
32 * Pointer to a null-terminated Unicode string that contains the proxy URL
33 * if the Internet Explorer proxy configuration for the current user
34 * specifies "use a proxy server".
35 */
36 public WTypes.LPWSTR lpszProxy;
37
38 /**
39 * Pointer to a null-terminated Unicode string that contains the optional
40 * proxy by-pass server list.
41 */
42 public WTypes.LPWSTR lpszProxyBypass;
43
44 /**
45 * Create WinHttpCurrentUserIeProxyConfig structure.
46 */
47 public WinHttpCurrentUserIEProxyConfig() {
48 super();
49 }
50
51 /**
52 * Create WinHttpCurrentUserIeProxyConfig structure cast onto pre-allocated
53 * memory.
54 *
55 * @param pointer
56 * pointer to pre-allocated memory
57 */
58 public WinHttpCurrentUserIEProxyConfig(Pointer pointer) {
59 super(pointer);
60 read();
61 }
62
63 /**
64 * Return this Structure's field names in their proper order. For example,
65 *
66 * <pre>
67 * <code>
68 * protected List getFieldOrder() {
69 * return Arrays.asList(new String[] { ... });
70 * }
71 * </code>
72 * </pre>
73 *
74 * <strong>IMPORTANT</strong> When deriving from an existing Structure
75 * subclass, ensure that you augment the list provided by the superclass,
76 * e.g.
77 *
78 * <pre>
79 * <code>
80 * protected List getFieldOrder() {
81 * List fields = new ArrayList(super.getFieldOrder());
82 * fields.addAll(Arrays.asList(new String[] { ... }));
83 * return fields;
84 * }
85 * </code>
86 * </pre>
87 *
88 * Field order must be explicitly indicated, since the field order as
89 * returned by {@link Class#getFields()} is not guaranteed to be
90 * predictable.
91 *
92 * @return ordered list of field names
93 */
94 @Override
95 protected List<String> getFieldOrder() {
96 return Arrays.asList("fAutoDetect", "lpszAutoConfigUrl", "lpszProxy", "lpszProxyBypass");
97 }
98
99 /**
100 * Tagging interface to indicate the address of an instance of the Structure
101 * type is to be used within a <code>Structure</code> definition rather than
102 * nesting the full Structure contents. The default behavior is to inline
103 * <code>Structure</code> fields.
104 */
105 public static class ByReference extends WinHttpProxyInfo implements Structure.ByReference {
106 }
107
108 /**
109 * Tagging interface to indicate the value of an instance of the
110 * <code>Structure</code> type is to be used in function invocations rather
111 * than its address. The default behavior is to treat <code>Structure</code>
112 * function parameters and return values as by reference, meaning the
113 * address of the structure is used.
114 */
115 public static class ByValue extends WinHttpProxyInfo implements Structure.ByValue {
116 }
117
118 }