20594d91f14ed8cd45f15ff74f1fc4114ac5c5ed
[reactos.git] / modules / rostests / winetests / urlmon / generated.c
1 /* File generated automatically from tools/winapi/tests.dat; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
3
4 /*
5 * Unit tests for data structure packing
6 */
7
8 #define WIN32_NO_STATUS
9 #define _INC_WINDOWS
10 #define COM_NO_WINDOWS_H
11
12 #ifndef __REACTOS__
13 #define WINVER 0x0501
14 #define _WIN32_IE 0x0501
15 #define _WIN32_WINNT 0x0501
16 #endif
17
18 #define WINE_NOWINSOCK
19
20 #include <stdarg.h>
21 #include <windef.h>
22 #include <winbase.h>
23 #include <objbase.h>
24 #include <urlmon.h>
25
26 #include <wine/test.h>
27
28 /***********************************************************************
29 * Compatibility macros
30 */
31
32 #define DWORD_PTR UINT_PTR
33 #define LONG_PTR INT_PTR
34 #define ULONG_PTR UINT_PTR
35
36 /***********************************************************************
37 * Windows API extension
38 */
39
40 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
41 # define _TYPE_ALIGNMENT(type) __alignof(type)
42 #elif defined(__GNUC__)
43 # define _TYPE_ALIGNMENT(type) __alignof__(type)
44 #else
45 /*
46 * FIXME: May not be possible without a compiler extension
47 * (if type is not just a name that is, otherwise the normal
48 * TYPE_ALIGNMENT can be used)
49 */
50 #endif
51
52 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
53 #pragma warning(disable:4116)
54 #endif
55
56 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
57 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
58 #endif
59
60 /***********************************************************************
61 * Test helper macros
62 */
63
64 #define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
65
66 #ifdef TYPE_ALIGNMENT
67 # define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
68 #else
69 # define TEST_TYPE_ALIGN(type, align)
70 #endif
71
72 #ifdef _TYPE_ALIGNMENT
73 # define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
74 # define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
75 #else
76 # define TEST_TARGET_ALIGN(type, align)
77 # define TEST_FIELD_ALIGN(type, field, align)
78 #endif
79
80 #define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
81
82 #define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
83 #define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
84 #define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
85 #define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
86
87
88 #ifdef _WIN64
89
90 static void test_pack_BINDINFO(void)
91 {
92 /* BINDINFO */
93 TEST_FIELD_SIZE (BINDINFO, cbSize, 4)
94 TEST_FIELD_ALIGN (BINDINFO, cbSize, 4)
95 TEST_FIELD_OFFSET(BINDINFO, cbSize, 0)
96 TEST_FIELD_SIZE (BINDINFO, szExtraInfo, 8)
97 TEST_FIELD_ALIGN (BINDINFO, szExtraInfo, 8)
98 TEST_FIELD_OFFSET(BINDINFO, szExtraInfo, 8)
99 }
100
101 static void test_pack_IBindHost(void)
102 {
103 /* IBindHost */
104 }
105
106 static void test_pack_IBindHostVtbl(void)
107 {
108 /* IBindHostVtbl */
109 }
110
111 static void test_pack_IBindStatusCallback(void)
112 {
113 /* IBindStatusCallback */
114 }
115
116 static void test_pack_IBindStatusCallbackVtbl(void)
117 {
118 /* IBindStatusCallbackVtbl */
119 }
120
121 static void test_pack_IBinding(void)
122 {
123 /* IBinding */
124 }
125
126 static void test_pack_IBindingVtbl(void)
127 {
128 /* IBindingVtbl */
129 }
130
131 static void test_pack_IInternetProtocolInfo(void)
132 {
133 /* IInternetProtocolInfo */
134 }
135
136 static void test_pack_IInternetProtocolInfoVtbl(void)
137 {
138 /* IInternetProtocolInfoVtbl */
139 }
140
141 static void test_pack_IInternetSession(void)
142 {
143 /* IInternetSession */
144 }
145
146 static void test_pack_IInternetSessionVtbl(void)
147 {
148 /* IInternetSessionVtbl */
149 }
150
151 static void test_pack_IPersistMoniker(void)
152 {
153 /* IPersistMoniker */
154 }
155
156 static void test_pack_IPersistMonikerVtbl(void)
157 {
158 /* IPersistMonikerVtbl */
159 }
160
161 static void test_pack_IWinInetHttpInfo(void)
162 {
163 /* IWinInetHttpInfo */
164 }
165
166 static void test_pack_IWinInetHttpInfoVtbl(void)
167 {
168 /* IWinInetHttpInfoVtbl */
169 }
170
171 static void test_pack_IWinInetInfo(void)
172 {
173 /* IWinInetInfo */
174 }
175
176 static void test_pack_IWinInetInfoVtbl(void)
177 {
178 /* IWinInetInfoVtbl */
179 }
180
181 static void test_pack_LPBINDHOST(void)
182 {
183 /* LPBINDHOST */
184 TEST_TYPE_SIZE (LPBINDHOST, 8)
185 TEST_TYPE_ALIGN (LPBINDHOST, 8)
186 }
187
188 static void test_pack_LPBINDING(void)
189 {
190 /* LPBINDING */
191 TEST_TYPE_SIZE (LPBINDING, 8)
192 TEST_TYPE_ALIGN (LPBINDING, 8)
193 }
194
195 static void test_pack_LPBINDSTATUSCALLBACK(void)
196 {
197 /* LPBINDSTATUSCALLBACK */
198 TEST_TYPE_SIZE (LPBINDSTATUSCALLBACK, 8)
199 TEST_TYPE_ALIGN (LPBINDSTATUSCALLBACK, 8)
200 }
201
202 static void test_pack_LPIINTERNETPROTOCOLINFO(void)
203 {
204 /* LPIINTERNETPROTOCOLINFO */
205 TEST_TYPE_SIZE (LPIINTERNETPROTOCOLINFO, 8)
206 TEST_TYPE_ALIGN (LPIINTERNETPROTOCOLINFO, 8)
207 }
208
209 static void test_pack_LPIINTERNETSESSION(void)
210 {
211 /* LPIINTERNETSESSION */
212 TEST_TYPE_SIZE (LPIINTERNETSESSION, 8)
213 TEST_TYPE_ALIGN (LPIINTERNETSESSION, 8)
214 }
215
216 static void test_pack_LPPERSISTMONIKER(void)
217 {
218 /* LPPERSISTMONIKER */
219 TEST_TYPE_SIZE (LPPERSISTMONIKER, 8)
220 TEST_TYPE_ALIGN (LPPERSISTMONIKER, 8)
221 }
222
223 static void test_pack_LPREMFORMATETC(void)
224 {
225 /* LPREMFORMATETC */
226 TEST_TYPE_SIZE (LPREMFORMATETC, 8)
227 TEST_TYPE_ALIGN (LPREMFORMATETC, 8)
228 }
229
230 static void test_pack_LPREMSECURITY_ATTRIBUTES(void)
231 {
232 /* LPREMSECURITY_ATTRIBUTES */
233 TEST_TYPE_SIZE (LPREMSECURITY_ATTRIBUTES, 8)
234 TEST_TYPE_ALIGN (LPREMSECURITY_ATTRIBUTES, 8)
235 }
236
237 static void test_pack_LPWININETHTTPINFO(void)
238 {
239 /* LPWININETHTTPINFO */
240 TEST_TYPE_SIZE (LPWININETHTTPINFO, 8)
241 TEST_TYPE_ALIGN (LPWININETHTTPINFO, 8)
242 }
243
244 static void test_pack_LPWININETINFO(void)
245 {
246 /* LPWININETINFO */
247 TEST_TYPE_SIZE (LPWININETINFO, 8)
248 TEST_TYPE_ALIGN (LPWININETINFO, 8)
249 }
250
251 static void test_pack_PREMSECURITY_ATTRIBUTES(void)
252 {
253 /* PREMSECURITY_ATTRIBUTES */
254 TEST_TYPE_SIZE (PREMSECURITY_ATTRIBUTES, 8)
255 TEST_TYPE_ALIGN (PREMSECURITY_ATTRIBUTES, 8)
256 }
257
258 static void test_pack_REMSECURITY_ATTRIBUTES(void)
259 {
260 /* REMSECURITY_ATTRIBUTES */
261 TEST_TYPE_SIZE (REMSECURITY_ATTRIBUTES, 12)
262 TEST_TYPE_ALIGN (REMSECURITY_ATTRIBUTES, 4)
263 TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, nLength, 4)
264 TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, nLength, 4)
265 TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, nLength, 0)
266 TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
267 TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
268 TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
269 TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, bInheritHandle, 4)
270 TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, bInheritHandle, 4)
271 TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, bInheritHandle, 8)
272 }
273
274 static void test_pack_RemBINDINFO(void)
275 {
276 /* RemBINDINFO */
277 TEST_TYPE_SIZE (RemBINDINFO, 96)
278 TEST_TYPE_ALIGN (RemBINDINFO, 8)
279 TEST_FIELD_SIZE (RemBINDINFO, cbSize, 4)
280 TEST_FIELD_ALIGN (RemBINDINFO, cbSize, 4)
281 TEST_FIELD_OFFSET(RemBINDINFO, cbSize, 0)
282 TEST_FIELD_SIZE (RemBINDINFO, szExtraInfo, 8)
283 TEST_FIELD_ALIGN (RemBINDINFO, szExtraInfo, 8)
284 TEST_FIELD_OFFSET(RemBINDINFO, szExtraInfo, 8)
285 TEST_FIELD_SIZE (RemBINDINFO, grfBindInfoF, 4)
286 TEST_FIELD_ALIGN (RemBINDINFO, grfBindInfoF, 4)
287 TEST_FIELD_OFFSET(RemBINDINFO, grfBindInfoF, 16)
288 TEST_FIELD_SIZE (RemBINDINFO, dwBindVerb, 4)
289 TEST_FIELD_ALIGN (RemBINDINFO, dwBindVerb, 4)
290 TEST_FIELD_OFFSET(RemBINDINFO, dwBindVerb, 20)
291 TEST_FIELD_SIZE (RemBINDINFO, szCustomVerb, 8)
292 TEST_FIELD_ALIGN (RemBINDINFO, szCustomVerb, 8)
293 TEST_FIELD_OFFSET(RemBINDINFO, szCustomVerb, 24)
294 TEST_FIELD_SIZE (RemBINDINFO, cbstgmedData, 4)
295 TEST_FIELD_ALIGN (RemBINDINFO, cbstgmedData, 4)
296 TEST_FIELD_OFFSET(RemBINDINFO, cbstgmedData, 32)
297 TEST_FIELD_SIZE (RemBINDINFO, dwOptions, 4)
298 TEST_FIELD_ALIGN (RemBINDINFO, dwOptions, 4)
299 TEST_FIELD_OFFSET(RemBINDINFO, dwOptions, 36)
300 TEST_FIELD_SIZE (RemBINDINFO, dwOptionsFlags, 4)
301 TEST_FIELD_ALIGN (RemBINDINFO, dwOptionsFlags, 4)
302 TEST_FIELD_OFFSET(RemBINDINFO, dwOptionsFlags, 40)
303 TEST_FIELD_SIZE (RemBINDINFO, dwCodePage, 4)
304 TEST_FIELD_ALIGN (RemBINDINFO, dwCodePage, 4)
305 TEST_FIELD_OFFSET(RemBINDINFO, dwCodePage, 44)
306 TEST_FIELD_SIZE (RemBINDINFO, securityAttributes, 12)
307 TEST_FIELD_ALIGN (RemBINDINFO, securityAttributes, 4)
308 TEST_FIELD_OFFSET(RemBINDINFO, securityAttributes, 48)
309 TEST_FIELD_SIZE (RemBINDINFO, iid, 16)
310 TEST_FIELD_ALIGN (RemBINDINFO, iid, 4)
311 TEST_FIELD_OFFSET(RemBINDINFO, iid, 60)
312 TEST_FIELD_SIZE (RemBINDINFO, pUnk, 8)
313 TEST_FIELD_ALIGN (RemBINDINFO, pUnk, 8)
314 TEST_FIELD_OFFSET(RemBINDINFO, pUnk, 80)
315 TEST_FIELD_SIZE (RemBINDINFO, dwReserved, 4)
316 TEST_FIELD_ALIGN (RemBINDINFO, dwReserved, 4)
317 TEST_FIELD_OFFSET(RemBINDINFO, dwReserved, 88)
318 }
319
320 static void test_pack_RemFORMATETC(void)
321 {
322 /* RemFORMATETC */
323 TEST_TYPE_SIZE (RemFORMATETC, 20)
324 TEST_TYPE_ALIGN (RemFORMATETC, 4)
325 TEST_FIELD_SIZE (RemFORMATETC, cfFormat, 4)
326 TEST_FIELD_ALIGN (RemFORMATETC, cfFormat, 4)
327 TEST_FIELD_OFFSET(RemFORMATETC, cfFormat, 0)
328 TEST_FIELD_SIZE (RemFORMATETC, ptd, 4)
329 TEST_FIELD_ALIGN (RemFORMATETC, ptd, 4)
330 TEST_FIELD_OFFSET(RemFORMATETC, ptd, 4)
331 TEST_FIELD_SIZE (RemFORMATETC, dwAspect, 4)
332 TEST_FIELD_ALIGN (RemFORMATETC, dwAspect, 4)
333 TEST_FIELD_OFFSET(RemFORMATETC, dwAspect, 8)
334 TEST_FIELD_SIZE (RemFORMATETC, lindex, 4)
335 TEST_FIELD_ALIGN (RemFORMATETC, lindex, 4)
336 TEST_FIELD_OFFSET(RemFORMATETC, lindex, 12)
337 TEST_FIELD_SIZE (RemFORMATETC, tymed, 4)
338 TEST_FIELD_ALIGN (RemFORMATETC, tymed, 4)
339 TEST_FIELD_OFFSET(RemFORMATETC, tymed, 16)
340 }
341
342 #else /* _WIN64 */
343
344 static void test_pack_BINDINFO(void)
345 {
346 /* BINDINFO */
347 TEST_FIELD_SIZE (BINDINFO, cbSize, 4)
348 TEST_FIELD_ALIGN (BINDINFO, cbSize, 4)
349 TEST_FIELD_OFFSET(BINDINFO, cbSize, 0)
350 TEST_FIELD_SIZE (BINDINFO, szExtraInfo, 4)
351 TEST_FIELD_ALIGN (BINDINFO, szExtraInfo, 4)
352 TEST_FIELD_OFFSET(BINDINFO, szExtraInfo, 4)
353 }
354
355 static void test_pack_IBindHost(void)
356 {
357 /* IBindHost */
358 }
359
360 static void test_pack_IBindHostVtbl(void)
361 {
362 /* IBindHostVtbl */
363 }
364
365 static void test_pack_IBindStatusCallback(void)
366 {
367 /* IBindStatusCallback */
368 }
369
370 static void test_pack_IBindStatusCallbackVtbl(void)
371 {
372 /* IBindStatusCallbackVtbl */
373 }
374
375 static void test_pack_IBinding(void)
376 {
377 /* IBinding */
378 }
379
380 static void test_pack_IBindingVtbl(void)
381 {
382 /* IBindingVtbl */
383 }
384
385 static void test_pack_IInternetProtocolInfo(void)
386 {
387 /* IInternetProtocolInfo */
388 }
389
390 static void test_pack_IInternetProtocolInfoVtbl(void)
391 {
392 /* IInternetProtocolInfoVtbl */
393 }
394
395 static void test_pack_IInternetSession(void)
396 {
397 /* IInternetSession */
398 }
399
400 static void test_pack_IInternetSessionVtbl(void)
401 {
402 /* IInternetSessionVtbl */
403 }
404
405 static void test_pack_IPersistMoniker(void)
406 {
407 /* IPersistMoniker */
408 }
409
410 static void test_pack_IPersistMonikerVtbl(void)
411 {
412 /* IPersistMonikerVtbl */
413 }
414
415 static void test_pack_IWinInetHttpInfo(void)
416 {
417 /* IWinInetHttpInfo */
418 }
419
420 static void test_pack_IWinInetHttpInfoVtbl(void)
421 {
422 /* IWinInetHttpInfoVtbl */
423 }
424
425 static void test_pack_IWinInetInfo(void)
426 {
427 /* IWinInetInfo */
428 }
429
430 static void test_pack_IWinInetInfoVtbl(void)
431 {
432 /* IWinInetInfoVtbl */
433 }
434
435 static void test_pack_LPBINDHOST(void)
436 {
437 /* LPBINDHOST */
438 TEST_TYPE_SIZE (LPBINDHOST, 4)
439 TEST_TYPE_ALIGN (LPBINDHOST, 4)
440 }
441
442 static void test_pack_LPBINDING(void)
443 {
444 /* LPBINDING */
445 TEST_TYPE_SIZE (LPBINDING, 4)
446 TEST_TYPE_ALIGN (LPBINDING, 4)
447 }
448
449 static void test_pack_LPBINDSTATUSCALLBACK(void)
450 {
451 /* LPBINDSTATUSCALLBACK */
452 TEST_TYPE_SIZE (LPBINDSTATUSCALLBACK, 4)
453 TEST_TYPE_ALIGN (LPBINDSTATUSCALLBACK, 4)
454 }
455
456 static void test_pack_LPIINTERNETPROTOCOLINFO(void)
457 {
458 /* LPIINTERNETPROTOCOLINFO */
459 TEST_TYPE_SIZE (LPIINTERNETPROTOCOLINFO, 4)
460 TEST_TYPE_ALIGN (LPIINTERNETPROTOCOLINFO, 4)
461 }
462
463 static void test_pack_LPIINTERNETSESSION(void)
464 {
465 /* LPIINTERNETSESSION */
466 TEST_TYPE_SIZE (LPIINTERNETSESSION, 4)
467 TEST_TYPE_ALIGN (LPIINTERNETSESSION, 4)
468 }
469
470 static void test_pack_LPPERSISTMONIKER(void)
471 {
472 /* LPPERSISTMONIKER */
473 TEST_TYPE_SIZE (LPPERSISTMONIKER, 4)
474 TEST_TYPE_ALIGN (LPPERSISTMONIKER, 4)
475 }
476
477 static void test_pack_LPREMFORMATETC(void)
478 {
479 /* LPREMFORMATETC */
480 TEST_TYPE_SIZE (LPREMFORMATETC, 4)
481 TEST_TYPE_ALIGN (LPREMFORMATETC, 4)
482 }
483
484 static void test_pack_LPREMSECURITY_ATTRIBUTES(void)
485 {
486 /* LPREMSECURITY_ATTRIBUTES */
487 TEST_TYPE_SIZE (LPREMSECURITY_ATTRIBUTES, 4)
488 TEST_TYPE_ALIGN (LPREMSECURITY_ATTRIBUTES, 4)
489 }
490
491 static void test_pack_LPWININETHTTPINFO(void)
492 {
493 /* LPWININETHTTPINFO */
494 TEST_TYPE_SIZE (LPWININETHTTPINFO, 4)
495 TEST_TYPE_ALIGN (LPWININETHTTPINFO, 4)
496 }
497
498 static void test_pack_LPWININETINFO(void)
499 {
500 /* LPWININETINFO */
501 TEST_TYPE_SIZE (LPWININETINFO, 4)
502 TEST_TYPE_ALIGN (LPWININETINFO, 4)
503 }
504
505 static void test_pack_PREMSECURITY_ATTRIBUTES(void)
506 {
507 /* PREMSECURITY_ATTRIBUTES */
508 TEST_TYPE_SIZE (PREMSECURITY_ATTRIBUTES, 4)
509 TEST_TYPE_ALIGN (PREMSECURITY_ATTRIBUTES, 4)
510 }
511
512 static void test_pack_REMSECURITY_ATTRIBUTES(void)
513 {
514 /* REMSECURITY_ATTRIBUTES */
515 TEST_TYPE_SIZE (REMSECURITY_ATTRIBUTES, 12)
516 TEST_TYPE_ALIGN (REMSECURITY_ATTRIBUTES, 4)
517 TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, nLength, 4)
518 TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, nLength, 4)
519 TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, nLength, 0)
520 TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
521 TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
522 TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
523 TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, bInheritHandle, 4)
524 TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, bInheritHandle, 4)
525 TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, bInheritHandle, 8)
526 }
527
528 static void test_pack_RemBINDINFO(void)
529 {
530 /* RemBINDINFO */
531 TEST_TYPE_SIZE (RemBINDINFO, 72)
532 TEST_TYPE_ALIGN (RemBINDINFO, 4)
533 TEST_FIELD_SIZE (RemBINDINFO, cbSize, 4)
534 TEST_FIELD_ALIGN (RemBINDINFO, cbSize, 4)
535 TEST_FIELD_OFFSET(RemBINDINFO, cbSize, 0)
536 TEST_FIELD_SIZE (RemBINDINFO, szExtraInfo, 4)
537 TEST_FIELD_ALIGN (RemBINDINFO, szExtraInfo, 4)
538 TEST_FIELD_OFFSET(RemBINDINFO, szExtraInfo, 4)
539 TEST_FIELD_SIZE (RemBINDINFO, grfBindInfoF, 4)
540 TEST_FIELD_ALIGN (RemBINDINFO, grfBindInfoF, 4)
541 TEST_FIELD_OFFSET(RemBINDINFO, grfBindInfoF, 8)
542 TEST_FIELD_SIZE (RemBINDINFO, dwBindVerb, 4)
543 TEST_FIELD_ALIGN (RemBINDINFO, dwBindVerb, 4)
544 TEST_FIELD_OFFSET(RemBINDINFO, dwBindVerb, 12)
545 TEST_FIELD_SIZE (RemBINDINFO, szCustomVerb, 4)
546 TEST_FIELD_ALIGN (RemBINDINFO, szCustomVerb, 4)
547 TEST_FIELD_OFFSET(RemBINDINFO, szCustomVerb, 16)
548 TEST_FIELD_SIZE (RemBINDINFO, cbstgmedData, 4)
549 TEST_FIELD_ALIGN (RemBINDINFO, cbstgmedData, 4)
550 TEST_FIELD_OFFSET(RemBINDINFO, cbstgmedData, 20)
551 TEST_FIELD_SIZE (RemBINDINFO, dwOptions, 4)
552 TEST_FIELD_ALIGN (RemBINDINFO, dwOptions, 4)
553 TEST_FIELD_OFFSET(RemBINDINFO, dwOptions, 24)
554 TEST_FIELD_SIZE (RemBINDINFO, dwOptionsFlags, 4)
555 TEST_FIELD_ALIGN (RemBINDINFO, dwOptionsFlags, 4)
556 TEST_FIELD_OFFSET(RemBINDINFO, dwOptionsFlags, 28)
557 TEST_FIELD_SIZE (RemBINDINFO, dwCodePage, 4)
558 TEST_FIELD_ALIGN (RemBINDINFO, dwCodePage, 4)
559 TEST_FIELD_OFFSET(RemBINDINFO, dwCodePage, 32)
560 TEST_FIELD_SIZE (RemBINDINFO, securityAttributes, 12)
561 TEST_FIELD_ALIGN (RemBINDINFO, securityAttributes, 4)
562 TEST_FIELD_OFFSET(RemBINDINFO, securityAttributes, 36)
563 TEST_FIELD_SIZE (RemBINDINFO, iid, 16)
564 TEST_FIELD_ALIGN (RemBINDINFO, iid, 4)
565 TEST_FIELD_OFFSET(RemBINDINFO, iid, 48)
566 TEST_FIELD_SIZE (RemBINDINFO, pUnk, 4)
567 TEST_FIELD_ALIGN (RemBINDINFO, pUnk, 4)
568 TEST_FIELD_OFFSET(RemBINDINFO, pUnk, 64)
569 TEST_FIELD_SIZE (RemBINDINFO, dwReserved, 4)
570 TEST_FIELD_ALIGN (RemBINDINFO, dwReserved, 4)
571 TEST_FIELD_OFFSET(RemBINDINFO, dwReserved, 68)
572 }
573
574 static void test_pack_RemFORMATETC(void)
575 {
576 /* RemFORMATETC */
577 TEST_TYPE_SIZE (RemFORMATETC, 20)
578 TEST_TYPE_ALIGN (RemFORMATETC, 4)
579 TEST_FIELD_SIZE (RemFORMATETC, cfFormat, 4)
580 TEST_FIELD_ALIGN (RemFORMATETC, cfFormat, 4)
581 TEST_FIELD_OFFSET(RemFORMATETC, cfFormat, 0)
582 TEST_FIELD_SIZE (RemFORMATETC, ptd, 4)
583 TEST_FIELD_ALIGN (RemFORMATETC, ptd, 4)
584 TEST_FIELD_OFFSET(RemFORMATETC, ptd, 4)
585 TEST_FIELD_SIZE (RemFORMATETC, dwAspect, 4)
586 TEST_FIELD_ALIGN (RemFORMATETC, dwAspect, 4)
587 TEST_FIELD_OFFSET(RemFORMATETC, dwAspect, 8)
588 TEST_FIELD_SIZE (RemFORMATETC, lindex, 4)
589 TEST_FIELD_ALIGN (RemFORMATETC, lindex, 4)
590 TEST_FIELD_OFFSET(RemFORMATETC, lindex, 12)
591 TEST_FIELD_SIZE (RemFORMATETC, tymed, 4)
592 TEST_FIELD_ALIGN (RemFORMATETC, tymed, 4)
593 TEST_FIELD_OFFSET(RemFORMATETC, tymed, 16)
594 }
595
596 #endif /* _WIN64 */
597
598 static void test_pack(void)
599 {
600 test_pack_BINDINFO();
601 test_pack_IBindHost();
602 test_pack_IBindHostVtbl();
603 test_pack_IBindStatusCallback();
604 test_pack_IBindStatusCallbackVtbl();
605 test_pack_IBinding();
606 test_pack_IBindingVtbl();
607 test_pack_IInternetProtocolInfo();
608 test_pack_IInternetProtocolInfoVtbl();
609 test_pack_IInternetSession();
610 test_pack_IInternetSessionVtbl();
611 test_pack_IPersistMoniker();
612 test_pack_IPersistMonikerVtbl();
613 test_pack_IWinInetHttpInfo();
614 test_pack_IWinInetHttpInfoVtbl();
615 test_pack_IWinInetInfo();
616 test_pack_IWinInetInfoVtbl();
617 test_pack_LPBINDHOST();
618 test_pack_LPBINDING();
619 test_pack_LPBINDSTATUSCALLBACK();
620 test_pack_LPIINTERNETPROTOCOLINFO();
621 test_pack_LPIINTERNETSESSION();
622 test_pack_LPPERSISTMONIKER();
623 test_pack_LPREMFORMATETC();
624 test_pack_LPREMSECURITY_ATTRIBUTES();
625 test_pack_LPWININETHTTPINFO();
626 test_pack_LPWININETINFO();
627 test_pack_PREMSECURITY_ATTRIBUTES();
628 test_pack_REMSECURITY_ATTRIBUTES();
629 test_pack_RemBINDINFO();
630 test_pack_RemFORMATETC();
631 }
632
633 START_TEST(generated)
634 {
635 test_pack();
636 }