1 | cpp_quote("/**")
|
---|
2 | cpp_quote(" * This file is part of the mingw-w64 runtime package.")
|
---|
3 | cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
|
---|
4 | cpp_quote(" */")
|
---|
5 | cpp_quote("")
|
---|
6 | cpp_quote("#include <winapifamily.h>")
|
---|
7 | cpp_quote("")
|
---|
8 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
---|
9 | cpp_quote("")
|
---|
10 |
|
---|
11 | import "wtypes.idl";
|
---|
12 |
|
---|
13 | #define FWP_BYTE_ARRAY6_SIZE 6
|
---|
14 | #define FWP_V6_ADDR_SIZE (16)
|
---|
15 |
|
---|
16 | cpp_quote("#define FWP_BYTE_ARRAY6_SIZE 6")
|
---|
17 | cpp_quote("#define FWP_V6_ADDR_SIZE (16)")
|
---|
18 | cpp_quote("#define FWP_ACTRL_MATCH_FILTER (1)")
|
---|
19 |
|
---|
20 | cpp_quote("")
|
---|
21 |
|
---|
22 | cpp_quote("#define FWP_OPTION_VALUE_ALLOW_MULTICAST_STATE (0)")
|
---|
23 | cpp_quote("#define FWP_OPTION_VALUE_DENY_MULTICAST_STATE (1)")
|
---|
24 | cpp_quote("#define FWP_OPTION_VALUE_ALLOW_GLOBAL_MULTICAST_STATE (2)")
|
---|
25 |
|
---|
26 | cpp_quote("")
|
---|
27 |
|
---|
28 | cpp_quote("#define FWP_OPTION_VALUE_DISABLE_LOOSE_SOURCE (0)")
|
---|
29 | cpp_quote("#define FWP_OPTION_VALUE_ENABLE_LOOSE_SOURCE (1)")
|
---|
30 |
|
---|
31 | cpp_quote("")
|
---|
32 |
|
---|
33 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)")
|
---|
34 | cpp_quote("#define FWP_OPTION_VALUE_DISABLE_LOCAL_ONLY_MAPPING (0)")
|
---|
35 | cpp_quote("#define FWP_OPTION_VALUE_ENABLE_LOCAL_ONLY_MAPPING (1)")
|
---|
36 | cpp_quote("#endif")
|
---|
37 |
|
---|
38 | cpp_quote("")
|
---|
39 |
|
---|
40 | cpp_quote("#define FWP_ACTION_FLAG_TERMINATING (0x00001000)")
|
---|
41 | cpp_quote("#define FWP_ACTION_FLAG_NON_TERMINATING (0x00002000)")
|
---|
42 | cpp_quote("#define FWP_ACTION_FLAG_CALLOUT (0x00004000)")
|
---|
43 | cpp_quote("")
|
---|
44 | cpp_quote("#define FWP_ACTION_BLOCK (0x1 | FWP_ACTION_FLAG_TERMINATING)")
|
---|
45 | cpp_quote("#define FWP_ACTION_PERMIT (0x2 | FWP_ACTION_FLAG_TERMINATING)")
|
---|
46 | cpp_quote("#define FWP_ACTION_CALLOUT_TERMINATING (0x3 | FWP_ACTION_FLAG_CALLOUT | FWP_ACTION_FLAG_TERMINATING)")
|
---|
47 | cpp_quote("#define FWP_ACTION_CALLOUT_INSPECTION (0x4 | FWP_ACTION_FLAG_CALLOUT | FWP_ACTION_FLAG_NON_TERMINATING)")
|
---|
48 | cpp_quote("#define FWP_ACTION_CALLOUT_UNKNOWN (0x5 | FWP_ACTION_FLAG_CALLOUT)")
|
---|
49 | cpp_quote("#define FWP_ACTION_CONTINUE (0x6 | FWP_ACTION_FLAG_NON_TERMINATING)")
|
---|
50 | cpp_quote("#define FWP_ACTION_NONE (0x7)")
|
---|
51 | cpp_quote("#define FWP_ACTION_NONE_NO_MATCH (0x8)")
|
---|
52 |
|
---|
53 | cpp_quote("")
|
---|
54 |
|
---|
55 | cpp_quote("#define FWP_CONDITION_FLAG_IS_LOOPBACK (0x00000001)")
|
---|
56 | cpp_quote("#define FWP_CONDITION_FLAG_IS_IPSEC_SECURED (0x00000002)")
|
---|
57 | cpp_quote("#define FWP_CONDITION_FLAG_IS_REAUTHORIZE (0x00000004)")
|
---|
58 | cpp_quote("#define FWP_CONDITION_FLAG_IS_WILDCARD_BIND (0x00000008)")
|
---|
59 | cpp_quote("#define FWP_CONDITION_FLAG_IS_RAW_ENDPOINT (0x00000010)")
|
---|
60 | cpp_quote("#define FWP_CONDITION_FLAG_IS_FRAGMENT (0x00000020)")
|
---|
61 | cpp_quote("#define FWP_CONDITION_FLAG_IS_FRAGMENT_GROUP (0x00000040)")
|
---|
62 | cpp_quote("#define FWP_CONDITION_FLAG_IS_IPSEC_NATT_RECLASSIFY (0x00000080)")
|
---|
63 | cpp_quote("#define FWP_CONDITION_FLAG_REQUIRES_ALE_CLASSIFY (0x00000100)")
|
---|
64 | cpp_quote("#define FWP_CONDITION_FLAG_IS_IMPLICIT_BIND (0x00000200)")
|
---|
65 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN6SP1)")
|
---|
66 | cpp_quote("#define FWP_CONDITION_FLAG_IS_REASSEMBLED (0x00000400)")
|
---|
67 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN7)")
|
---|
68 | cpp_quote("#define FWP_CONDITION_FLAG_IS_NAME_APP_SPECIFIED (0x00004000)")
|
---|
69 | cpp_quote("#define FWP_CONDITION_FLAG_IS_PROMISCUOUS (0x00008000)")
|
---|
70 | cpp_quote("#define FWP_CONDITION_FLAG_IS_AUTH_FW (0x00010000)")
|
---|
71 | cpp_quote("#define FWP_CONDITION_FLAG_IS_RECLASSIFY (0x00020000)")
|
---|
72 | cpp_quote("#define FWP_CONDITION_FLAG_IS_OUTBOUND_PASS_THRU (0x00040000)")
|
---|
73 | cpp_quote("#define FWP_CONDITION_FLAG_IS_INBOUND_PASS_THRU (0x00080000)")
|
---|
74 | cpp_quote("#define FWP_CONDITION_FLAG_IS_CONNECTION_REDIRECTED (0x00100000)")
|
---|
75 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)")
|
---|
76 | cpp_quote("#define FWP_CONDITION_FLAG_IS_PROXY_CONNECTION (0x00200000)")
|
---|
77 | cpp_quote("#define FWP_CONDITION_FLAG_IS_APPCONTAINER_LOOPBACK (0x00400000)")
|
---|
78 | cpp_quote("#define FWP_CONDITION_FLAG_IS_NON_APPCONTAINER_LOOPBACK (0x00800000)")
|
---|
79 | cpp_quote("#define FWP_CONDITION_FLAG_IS_RESERVED (0x01000000)")
|
---|
80 | cpp_quote("#define FWP_CONDITION_FLAG_IS_HONORING_POLICY_AUTHORIZE (0x02000000)")
|
---|
81 | cpp_quote("#endif")
|
---|
82 |
|
---|
83 | cpp_quote("")
|
---|
84 |
|
---|
85 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_POLICY_CHANGE (0x00000001)")
|
---|
86 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_NEW_ARRIVAL_INTERFACE (0x00000002)")
|
---|
87 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_NEW_NEXTHOP_INTERFACE (0x00000004)")
|
---|
88 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_PROFILE_CROSSING (0x00000008)")
|
---|
89 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_CLASSIFY_COMPLETION (0x00000010)")
|
---|
90 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_IPSEC_PROPERTIES_CHANGED (0x00000020)")
|
---|
91 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_MID_STREAM_INSPECTION (0x00000040)")
|
---|
92 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_SOCKET_PROPERTY_CHANGED (0x00000080)")
|
---|
93 | cpp_quote("#define FWP_CONDITION_REAUTHORIZE_REASON_NEW_INBOUND_MCAST_BCAST_PACKET (0x00000100)")
|
---|
94 | cpp_quote("")
|
---|
95 | cpp_quote("#define FWP_CONDITION_SOCKET_PROPERTY_FLAG_IS_SYSTEM_PORT_RPC (0x00000001)")
|
---|
96 | cpp_quote("#define FWP_CONDITION_SOCKET_PROPERTY_FLAG_ALLOW_EDGE_TRAFFIC (0x00000002)")
|
---|
97 | cpp_quote("#define FWP_CONDITION_SOCKET_PROPERTY_FLAG_DENY_EDGE_TRAFFIC (0x00000004)")
|
---|
98 | cpp_quote("")
|
---|
99 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)")
|
---|
100 | cpp_quote("#define FWP_CONDITION_L2_IS_NATIVE_ETHERNET (0x00000001)")
|
---|
101 | cpp_quote("#define FWP_CONDITION_L2_IS_WIFI (0x00000002)")
|
---|
102 | cpp_quote("#define FWP_CONDITION_L2_IS_MOBILE_BROADBAND (0x00000004)")
|
---|
103 | cpp_quote("#define FWP_CONDITION_L2_IS_WIFI_DIRECT_DATA (0x00000008)")
|
---|
104 | cpp_quote("#define FWP_CONDITION_L2_IS_VM2VM (0x00000010)")
|
---|
105 | cpp_quote("#define FWP_CONDITION_L2_IS_MALFORMED_PACKET (0x00000020)")
|
---|
106 | cpp_quote("#define FWP_CONDITION_L2_IS_IP_FRAGMENT_GROUP (0x00000040)")
|
---|
107 | cpp_quote("#define FWP_CONDITION_L2_IF_CONNECTOR_PRESENT (0x00000080)")
|
---|
108 | cpp_quote("#endif")
|
---|
109 | cpp_quote("#endif")
|
---|
110 | cpp_quote("#endif")
|
---|
111 |
|
---|
112 | cpp_quote("")
|
---|
113 |
|
---|
114 | cpp_quote("#define FWP_FILTER_ENUM_FLAG_BEST_TERMINATING_MATCH (0x00000001)")
|
---|
115 | cpp_quote("#define FWP_FILTER_ENUM_FLAG_SORTED (0x00000002)")
|
---|
116 | cpp_quote("#define FWP_FILTER_ENUM_FLAG_BOOTTIME_ONLY (0x00000004)")
|
---|
117 | cpp_quote("#define FWP_FILTER_ENUM_FLAG_INCLUDE_BOOTTIME (0x00000008)")
|
---|
118 | cpp_quote("#define FWP_FILTER_ENUM_FLAG_INCLUDE_DISABLED (0x00000010)")
|
---|
119 |
|
---|
120 | cpp_quote("")
|
---|
121 |
|
---|
122 | cpp_quote("#define FWP_FILTER_ENUM_VALID_FLAGS (FWP_FILTER_ENUM_FLAG_BEST_TERMINATING_MATCH | FWP_FILTER_ENUM_FLAG_SORTED)")
|
---|
123 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)")
|
---|
124 | cpp_quote("#define FWP_FILTER_ENUM_FLAG_RESERVED1 (0x00000020)")
|
---|
125 | cpp_quote("#endif")
|
---|
126 |
|
---|
127 | cpp_quote("")
|
---|
128 |
|
---|
129 | cpp_quote("#define FWP_CALLOUT_FLAG_CONDITIONAL_ON_FLOW (0x00000001)")
|
---|
130 | cpp_quote("#define FWP_CALLOUT_FLAG_ALLOW_OFFLOAD (0x00000002)")
|
---|
131 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN7)")
|
---|
132 | cpp_quote("#define FWP_CALLOUT_FLAG_ENABLE_COMMIT_ADD_NOTIFY (0x00000004)")
|
---|
133 | cpp_quote("#define FWP_CALLOUT_FLAG_ALLOW_MID_STREAM_INSPECTION (0x00000008)")
|
---|
134 | cpp_quote("#define FWP_CALLOUT_FLAG_ALLOW_RECLASSIFY (0x00000010)")
|
---|
135 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)")
|
---|
136 | cpp_quote("#define FWP_CALLOUT_FLAG_RESERVED1 (0x00000020)")
|
---|
137 | cpp_quote("#define FWP_CALLOUT_FLAG_ALLOW_RSC (0x00000040)")
|
---|
138 | cpp_quote("#define FWP_CALLOUT_FLAG_ALLOW_L2_BATCH_CLASSIFY (0x00000080)")
|
---|
139 | cpp_quote("#endif")
|
---|
140 | cpp_quote("#endif")
|
---|
141 |
|
---|
142 | cpp_quote("#ifdef __midl")
|
---|
143 | typedef struct _LUID {
|
---|
144 | DWORD LowPart;
|
---|
145 | LONG HighPart;
|
---|
146 | } LUID, *PLUID;
|
---|
147 | cpp_quote("#endif")
|
---|
148 |
|
---|
149 | cpp_quote("")
|
---|
150 |
|
---|
151 | typedef UINT32 FWP_ACTION_TYPE;
|
---|
152 |
|
---|
153 | cpp_quote("")
|
---|
154 |
|
---|
155 | cpp_quote("")
|
---|
156 | typedef [v1_enum] enum FWP_DIRECTION_ {
|
---|
157 | FWP_DIRECTION_OUTBOUND, FWP_DIRECTION_INBOUND, FWP_DIRECTION_MAX
|
---|
158 | } FWP_DIRECTION;
|
---|
159 |
|
---|
160 | cpp_quote("")
|
---|
161 |
|
---|
162 | typedef [v1_enum] enum FWP_IP_VERSION_ {
|
---|
163 | FWP_IP_VERSION_V4, FWP_IP_VERSION_V6, FWP_IP_VERSION_NONE, FWP_IP_VERSION_MAX
|
---|
164 | } FWP_IP_VERSION;
|
---|
165 |
|
---|
166 | cpp_quote("")
|
---|
167 |
|
---|
168 | typedef [v1_enum] enum FWP_NE_FAMILY_ {
|
---|
169 | FWP_AF_INET = FWP_IP_VERSION_V4, FWP_AF_INET6 = FWP_IP_VERSION_V6,
|
---|
170 | FWP_AF_ETHER = FWP_IP_VERSION_NONE, FWP_AF_NONE
|
---|
171 | } FWP_AF;
|
---|
172 |
|
---|
173 | cpp_quote("")
|
---|
174 |
|
---|
175 | typedef [v1_enum] enum FWP_ETHER_ENCAP_METHOD_ {
|
---|
176 | FWP_ETHER_ENCAP_METHOD_ETHER_V2 = 0, FWP_ETHER_ENCAP_METHOD_SNAP = 1,
|
---|
177 | FWP_ETHER_ENCAP_METHOD_SNAP_W_OUI_ZERO = 3
|
---|
178 | } FWP_ETHER_ENCAP_METHOD;
|
---|
179 |
|
---|
180 | cpp_quote("")
|
---|
181 |
|
---|
182 | typedef [v1_enum] enum FWP_DATA_TYPE_ {
|
---|
183 | FWP_EMPTY, FWP_UINT8, FWP_UINT16, FWP_UINT32, FWP_UINT64,
|
---|
184 | FWP_INT8, FWP_INT16, FWP_INT32, FWP_INT64,
|
---|
185 | FWP_FLOAT, FWP_DOUBLE,
|
---|
186 | FWP_BYTE_ARRAY16_TYPE, FWP_BYTE_BLOB_TYPE, FWP_SID,
|
---|
187 | FWP_SECURITY_DESCRIPTOR_TYPE, FWP_TOKEN_INFORMATION_TYPE,
|
---|
188 | FWP_TOKEN_ACCESS_INFORMATION_TYPE, FWP_UNICODE_STRING_TYPE,
|
---|
189 | FWP_BYTE_ARRAY6_TYPE, FWP_SINGLE_DATA_TYPE_MAX = 0xff,
|
---|
190 | FWP_V4_ADDR_MASK, FWP_V6_ADDR_MASK, FWP_RANGE_TYPE, FWP_DATA_TYPE_MAX
|
---|
191 | } FWP_DATA_TYPE;
|
---|
192 |
|
---|
193 | cpp_quote("")
|
---|
194 |
|
---|
195 | typedef [v1_enum] enum FWP_MATCH_TYPE_ {
|
---|
196 | FWP_MATCH_EQUAL, FWP_MATCH_GREATER,
|
---|
197 | FWP_MATCH_LESS, FWP_MATCH_GREATER_OR_EQUAL,
|
---|
198 | FWP_MATCH_LESS_OR_EQUAL, FWP_MATCH_RANGE,
|
---|
199 | FWP_MATCH_FLAGS_ALL_SET, FWP_MATCH_FLAGS_ANY_SET,
|
---|
200 | FWP_MATCH_FLAGS_NONE_SET, FWP_MATCH_EQUAL_CASE_INSENSITIVE,
|
---|
201 | FWP_MATCH_NOT_EQUAL, FWP_MATCH_TYPE_MAX
|
---|
202 | } FWP_MATCH_TYPE;
|
---|
203 |
|
---|
204 | cpp_quote("")
|
---|
205 |
|
---|
206 | cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)")
|
---|
207 | typedef [v1_enum] enum FWP_VSWITCH_NETWORK_TYPE_ {
|
---|
208 | FWP_VSWITCH_NETWORK_TYPE_UNKNOWN, FWP_VSWITCH_NETWORK_TYPE_PRIVATE,
|
---|
209 | FWP_VSWITCH_NETWORK_TYPE_INTERNAL, FWP_VSWITCH_NETWORK_TYPE_EXTERNAL
|
---|
210 | } FWP_VSWITCH_NETWORK_TYPE;
|
---|
211 | cpp_quote("#endif")
|
---|
212 |
|
---|
213 | cpp_quote("")
|
---|
214 |
|
---|
215 | typedef [v1_enum] enum FWP_CLASSIFY_OPTION_TYPE_ {
|
---|
216 | FWP_CLASSIFY_OPTION_MULTICAST_STATE, FWP_CLASSIFY_OPTION_LOOSE_SOURCE_MAPPING,
|
---|
217 | FWP_CLASSIFY_OPTION_UNICAST_LIFETIME, FWP_CLASSIFY_OPTION_MCAST_BCAST_LIFETIME,
|
---|
218 | FWP_CLASSIFY_OPTION_SECURE_SOCKET_SECURITY_FLAGS, FWP_CLASSIFY_OPTION_SECURE_SOCKET_AUTHIP_MM_POLICY_KEY,
|
---|
219 | FWP_CLASSIFY_OPTION_SECURE_SOCKET_AUTHIP_QM_POLICY_KEY, FWP_CLASSIFY_OPTION_LOCAL_ONLY_MAPPING,
|
---|
220 | FWP_CLASSIFY_OPTION_MAX
|
---|
221 | } FWP_CLASSIFY_OPTION_TYPE;
|
---|
222 |
|
---|
223 | cpp_quote("")
|
---|
224 |
|
---|
225 | typedef [v1_enum] enum FWP_FILTER_ENUM_TYPE_ {
|
---|
226 | FWP_FILTER_ENUM_FULLY_CONTAINED, FWP_FILTER_ENUM_OVERLAPPING, FWP_FILTER_ENUM_TYPE_MAX
|
---|
227 | } FWP_FILTER_ENUM_TYPE;
|
---|
228 |
|
---|
229 | cpp_quote("")
|
---|
230 |
|
---|
231 | typedef struct FWP_BYTE_ARRAY6_ {
|
---|
232 | UINT8 byteArray6[6];
|
---|
233 | } FWP_BYTE_ARRAY6;
|
---|
234 | cpp_quote("")
|
---|
235 | typedef struct FWP_BYTE_ARRAY16_ {
|
---|
236 | UINT8 byteArray16[16];
|
---|
237 | } FWP_BYTE_ARRAY16;
|
---|
238 |
|
---|
239 | cpp_quote("")
|
---|
240 |
|
---|
241 | typedef struct FWP_BYTE_BLOB_ {
|
---|
242 | UINT32 size;
|
---|
243 | [size_is(size), unique] UINT8 *data;
|
---|
244 | } FWP_BYTE_BLOB;
|
---|
245 |
|
---|
246 | cpp_quote("")
|
---|
247 |
|
---|
248 | typedef struct FWP_TOKEN_INFORMATION_ {
|
---|
249 | ULONG sidCount;
|
---|
250 | [size_is(sidCount)] PSID_AND_ATTRIBUTES sids;
|
---|
251 | ULONG restrictedSidCount;
|
---|
252 | [size_is(restrictedSidCount)] PSID_AND_ATTRIBUTES restrictedSids;
|
---|
253 | } FWP_TOKEN_INFORMATION;
|
---|
254 |
|
---|
255 | cpp_quote("")
|
---|
256 |
|
---|
257 | typedef struct FWP_VALUE0_ {
|
---|
258 | FWP_DATA_TYPE type;
|
---|
259 | [switch_type(FWP_DATA_TYPE), switch_is(type)]
|
---|
260 | union {
|
---|
261 | [case(FWP_EMPTY)]
|
---|
262 | ;
|
---|
263 | [case(FWP_UINT8)]
|
---|
264 | UINT8 uint8;
|
---|
265 | [case(FWP_UINT16)]
|
---|
266 | UINT16 uint16;
|
---|
267 | [case(FWP_UINT32)]
|
---|
268 | UINT32 uint32;
|
---|
269 | [case(FWP_UINT64)]
|
---|
270 | [unique] UINT64 *uint64;
|
---|
271 | [case(FWP_INT8)]
|
---|
272 | INT8 int8;
|
---|
273 | [case(FWP_INT16)]
|
---|
274 | INT16 int16;
|
---|
275 | [case(FWP_INT32)]
|
---|
276 | INT32 int32;
|
---|
277 | [case(FWP_INT64)]
|
---|
278 | [unique] INT64 *int64;
|
---|
279 | [case(FWP_FLOAT)]
|
---|
280 | float float32;
|
---|
281 | [case(FWP_DOUBLE)]
|
---|
282 | [unique] double *double64;
|
---|
283 | [case(FWP_BYTE_ARRAY16_TYPE)]
|
---|
284 | [unique] FWP_BYTE_ARRAY16 *byteArray16;
|
---|
285 | [case(FWP_BYTE_BLOB_TYPE)]
|
---|
286 | [unique] FWP_BYTE_BLOB *byteBlob;
|
---|
287 | [case(FWP_SID)]
|
---|
288 | [unique] SID *sid;
|
---|
289 | [case(FWP_SECURITY_DESCRIPTOR_TYPE)]
|
---|
290 | [unique] FWP_BYTE_BLOB *sd;
|
---|
291 | [case(FWP_TOKEN_INFORMATION_TYPE)]
|
---|
292 | [unique] FWP_TOKEN_INFORMATION *tokenInformation;
|
---|
293 | [case(FWP_TOKEN_ACCESS_INFORMATION_TYPE)]
|
---|
294 | [unique] FWP_BYTE_BLOB *tokenAccessInformation;
|
---|
295 | [case(FWP_UNICODE_STRING_TYPE)]
|
---|
296 | [string] LPWSTR unicodeString;
|
---|
297 | [case(FWP_BYTE_ARRAY6_TYPE)]
|
---|
298 | [unique] FWP_BYTE_ARRAY6 *byteArray6;
|
---|
299 | };
|
---|
300 | } FWP_VALUE0;
|
---|
301 |
|
---|
302 | cpp_quote("")
|
---|
303 |
|
---|
304 | typedef struct FWP_V4_ADDR_AND_MASK_ {
|
---|
305 | UINT32 addr;
|
---|
306 | UINT32 mask;
|
---|
307 | } FWP_V4_ADDR_AND_MASK;
|
---|
308 |
|
---|
309 | cpp_quote("")
|
---|
310 |
|
---|
311 | typedef struct FWP_V6_ADDR_AND_MASK_ {
|
---|
312 | UINT8 addr[FWP_V6_ADDR_SIZE];
|
---|
313 | UINT8 prefixLength;
|
---|
314 | } FWP_V6_ADDR_AND_MASK;
|
---|
315 |
|
---|
316 | cpp_quote("")
|
---|
317 |
|
---|
318 | typedef struct FWP_RANGE0_ {
|
---|
319 | FWP_VALUE0 valueLow;
|
---|
320 | FWP_VALUE0 valueHigh;
|
---|
321 | } FWP_RANGE0;
|
---|
322 |
|
---|
323 | cpp_quote("")
|
---|
324 |
|
---|
325 | typedef struct FWP_CONDITION_VALUE0_ {
|
---|
326 | FWP_DATA_TYPE type;
|
---|
327 | [switch_type(FWP_DATA_TYPE), switch_is(type)]
|
---|
328 | union {
|
---|
329 | [case(FWP_EMPTY)]
|
---|
330 | ;
|
---|
331 | [case(FWP_UINT8)]
|
---|
332 | UINT8 uint8;
|
---|
333 | [case(FWP_UINT16)]
|
---|
334 | UINT16 uint16;
|
---|
335 | [case(FWP_UINT32)]
|
---|
336 | UINT32 uint32;
|
---|
337 | [case(FWP_UINT64)]
|
---|
338 | [unique] UINT64 *uint64;
|
---|
339 | [case(FWP_INT8)]
|
---|
340 | INT8 int8;
|
---|
341 | [case(FWP_INT16)]
|
---|
342 | INT16 int16;
|
---|
343 | [case(FWP_INT32)]
|
---|
344 | INT32 int32;
|
---|
345 | [case(FWP_INT64)]
|
---|
346 | [unique] INT64 *int64;
|
---|
347 | [case(FWP_FLOAT)]
|
---|
348 | float float32;
|
---|
349 | [case(FWP_DOUBLE)]
|
---|
350 | [unique] double *double64;
|
---|
351 | [case(FWP_BYTE_ARRAY16_TYPE)]
|
---|
352 | [unique] FWP_BYTE_ARRAY16 *byteArray16;
|
---|
353 | [case(FWP_BYTE_BLOB_TYPE)]
|
---|
354 | [unique] FWP_BYTE_BLOB *byteBlob;
|
---|
355 | [case(FWP_SID)]
|
---|
356 | [unique] SID *sid;
|
---|
357 | [case(FWP_SECURITY_DESCRIPTOR_TYPE)]
|
---|
358 | [unique] FWP_BYTE_BLOB *sd;
|
---|
359 | [case(FWP_TOKEN_INFORMATION_TYPE)]
|
---|
360 | [unique] FWP_TOKEN_INFORMATION *tokenInformation;
|
---|
361 | [case(FWP_TOKEN_ACCESS_INFORMATION_TYPE)]
|
---|
362 | [unique] FWP_BYTE_BLOB *tokenAccessInformation;
|
---|
363 | [case(FWP_UNICODE_STRING_TYPE)]
|
---|
364 | [string] LPWSTR unicodeString;
|
---|
365 | [case(FWP_BYTE_ARRAY6_TYPE)]
|
---|
366 | [unique] FWP_BYTE_ARRAY6 *byteArray6;
|
---|
367 | [case(FWP_V4_ADDR_MASK)]
|
---|
368 | [unique] FWP_V4_ADDR_AND_MASK *v4AddrMask;
|
---|
369 | [case(FWP_V6_ADDR_MASK)]
|
---|
370 | [unique] FWP_V6_ADDR_AND_MASK *v6AddrMask;
|
---|
371 | [case(FWP_RANGE_TYPE)]
|
---|
372 | [unique] FWP_RANGE0 *rangeValue;
|
---|
373 | };
|
---|
374 | } FWP_CONDITION_VALUE0;
|
---|
375 |
|
---|
376 | cpp_quote("")
|
---|
377 |
|
---|
378 | cpp_quote("#endif /* WINAPI_PARTITION_DESKTOP. */")
|
---|