ReactOS  0.4.15-dev-1201-gb2cf5a4
generated.c
Go to the documentation of this file.
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 WINE_NOWINSOCK
9 
10 #include <stdarg.h>
11 #include "windef.h"
12 #include "winbase.h"
13 #include "wininet.h"
14 #include "wininet_test.h"
15 
16 #include "wine/test.h"
17 
18 /***********************************************************************
19  * Compatibility macros
20  */
21 
22 #define DWORD_PTR UINT_PTR
23 #define LONG_PTR INT_PTR
24 #define ULONG_PTR UINT_PTR
25 
26 /***********************************************************************
27  * Windows API extension
28  */
29 
30 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
31 # define _TYPE_ALIGNMENT(type) __alignof(type)
32 #elif defined(__GNUC__)
33 # define _TYPE_ALIGNMENT(type) __alignof__(type)
34 #else
35 /*
36  * FIXME: May not be possible without a compiler extension
37  * (if type is not just a name that is, otherwise the normal
38  * TYPE_ALIGNMENT can be used)
39  */
40 #endif
41 
42 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
43 #pragma warning(disable:4116)
44 #endif
45 
46 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
47 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
48 #endif
49 
50 /***********************************************************************
51  * Test helper macros
52  */
53 
54 #define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
55 
56 #ifdef TYPE_ALIGNMENT
57 # define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
58 #else
59 # define TEST_TYPE_ALIGN(type, align)
60 #endif
61 
62 #ifdef _TYPE_ALIGNMENT
63 # define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
64 # define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
65 #else
66 # define TEST_TARGET_ALIGN(type, align)
67 # define TEST_FIELD_ALIGN(type, field, align)
68 #endif
69 
70 #define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
71 
72 #define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
73 #define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
74 #define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
75 #define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
76 
77 
78 #ifdef _WIN64
79 
81 {
82  /* GOPHER_ABSTRACT_ATTRIBUTE_TYPEA */
91 }
92 
94 {
95  /* GOPHER_ABSTRACT_ATTRIBUTE_TYPEW */
104 }
105 
107 {
108  /* GOPHER_ADMIN_ATTRIBUTE_TYPEA */
117 }
118 
120 {
121  /* GOPHER_ADMIN_ATTRIBUTE_TYPEW */
130 }
131 
132 static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEA(void)
133 {
134  /* GOPHER_ASK_ATTRIBUTE_TYPEA */
143 }
144 
145 static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEW(void)
146 {
147  /* GOPHER_ASK_ATTRIBUTE_TYPEW */
156 }
157 
159 {
160  /* GOPHER_ATTRIBUTE_ENUMERATORA */
163 }
164 
166 {
167  /* GOPHER_ATTRIBUTE_ENUMERATORW */
170 }
171 
172 static void test_pack_GOPHER_ATTRIBUTE_TYPEA(void)
173 {
174  /* GOPHER_ATTRIBUTE_TYPEA */
175  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEA, CategoryId, 4)
178  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
179  TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
181 }
182 
183 static void test_pack_GOPHER_ATTRIBUTE_TYPEW(void)
184 {
185  /* GOPHER_ATTRIBUTE_TYPEW */
186  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEW, CategoryId, 4)
189  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
190  TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
192 }
193 
194 static void test_pack_GOPHER_FIND_DATAA(void)
195 {
196  /* GOPHER_FIND_DATAA */
202  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, GopherType, 4)
203  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, GopherType, 4)
204  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, GopherType, 132)
205  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, SizeLow, 4)
206  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, SizeLow, 4)
207  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, SizeLow, 136)
208  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, SizeHigh, 4)
209  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, SizeHigh, 4)
210  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, SizeHigh, 140)
211  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, LastModificationTime, 8)
212  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, LastModificationTime, 4)
213  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, LastModificationTime, 144)
214  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, Locator, 654)
215  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, Locator, 1)
216  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, Locator, 152)
217 }
218 
219 static void test_pack_GOPHER_FIND_DATAW(void)
220 {
221  /* GOPHER_FIND_DATAW */
227  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, GopherType, 4)
228  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, GopherType, 4)
229  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, GopherType, 260)
230  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, SizeLow, 4)
231  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, SizeLow, 4)
232  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, SizeLow, 264)
233  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, SizeHigh, 4)
234  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, SizeHigh, 4)
235  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, SizeHigh, 268)
236  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, LastModificationTime, 8)
237  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, LastModificationTime, 4)
238  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, LastModificationTime, 272)
239  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, Locator, 1308)
240  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, Locator, 2)
241  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, Locator, 280)
242 }
243 
245 {
246  /* GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE */
267 }
268 
270 {
271  /* GOPHER_LOCATION_ATTRIBUTE_TYPEA */
277 }
278 
280 {
281  /* GOPHER_LOCATION_ATTRIBUTE_TYPEW */
287 }
288 
290 {
291  /* GOPHER_MOD_DATE_ATTRIBUTE_TYPE */
297 }
298 
300 {
301  /* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA */
307 }
308 
310 {
311  /* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW */
317 }
318 
320 {
321  /* GOPHER_PROVIDER_ATTRIBUTE_TYPEA */
327 }
328 
330 {
331  /* GOPHER_PROVIDER_ATTRIBUTE_TYPEW */
337 }
338 
340 {
341  /* GOPHER_SCORE_ATTRIBUTE_TYPE */
347 }
348 
350 {
351  /* GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE */
360 }
361 
363 {
364  /* GOPHER_SITE_ATTRIBUTE_TYPEA */
370 }
371 
373 {
374  /* GOPHER_SITE_ATTRIBUTE_TYPEW */
380 }
381 
383 {
384  /* GOPHER_TIMEZONE_ATTRIBUTE_TYPE */
390 }
391 
392 static void test_pack_GOPHER_TTL_ATTRIBUTE_TYPE(void)
393 {
394  /* GOPHER_TTL_ATTRIBUTE_TYPE */
400 }
401 
403 {
404  /* GOPHER_UNKNOWN_ATTRIBUTE_TYPEA */
410 }
411 
413 {
414  /* GOPHER_UNKNOWN_ATTRIBUTE_TYPEW */
420 }
421 
423 {
424  /* GOPHER_VERONICA_ATTRIBUTE_TYPE */
430 }
431 
433 {
434  /* GOPHER_VERSION_ATTRIBUTE_TYPEA */
440 }
441 
443 {
444  /* GOPHER_VERSION_ATTRIBUTE_TYPEW */
450 }
451 
453 {
454  /* GOPHER_VIEW_ATTRIBUTE_TYPEA */
466 }
467 
469 {
470  /* GOPHER_VIEW_ATTRIBUTE_TYPEW */
482 }
483 
484 static void test_pack_GROUPID(void)
485 {
486  /* GROUPID */
490 }
491 
492 static void test_pack_HINTERNET(void)
493 {
494  /* HINTERNET */
497 }
498 
499 static void test_pack_HTTP_VERSION_INFO(void)
500 {
501  /* HTTP_VERSION_INFO */
504  TEST_FIELD_SIZE (HTTP_VERSION_INFO, dwMajorVersion, 4)
505  TEST_FIELD_ALIGN (HTTP_VERSION_INFO, dwMajorVersion, 4)
506  TEST_FIELD_OFFSET(HTTP_VERSION_INFO, dwMajorVersion, 0)
507  TEST_FIELD_SIZE (HTTP_VERSION_INFO, dwMinorVersion, 4)
508  TEST_FIELD_ALIGN (HTTP_VERSION_INFO, dwMinorVersion, 4)
509  TEST_FIELD_OFFSET(HTTP_VERSION_INFO, dwMinorVersion, 4)
510 }
511 
512 static void test_pack_INTERNET_ASYNC_RESULT(void)
513 {
514  /* INTERNET_ASYNC_RESULT */
523 }
524 
525 static void test_pack_INTERNET_AUTH_NOTIFY_DATA(void)
526 {
527  /* INTERNET_AUTH_NOTIFY_DATA */
542 }
543 
544 static void test_pack_INTERNET_BUFFERSA(void)
545 {
546  /* INTERNET_BUFFERSA */
549  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwStructSize, 4)
550  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwStructSize, 4)
551  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwStructSize, 0)
555  TEST_FIELD_SIZE (INTERNET_BUFFERSA, lpcszHeader, 8)
556  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, lpcszHeader, 8)
557  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, lpcszHeader, 16)
558  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwHeadersLength, 4)
559  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwHeadersLength, 4)
560  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwHeadersLength, 24)
561  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwHeadersTotal, 4)
562  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwHeadersTotal, 4)
563  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwHeadersTotal, 28)
564  TEST_FIELD_SIZE (INTERNET_BUFFERSA, lpvBuffer, 8)
565  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, lpvBuffer, 8)
566  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, lpvBuffer, 32)
567  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwBufferLength, 4)
568  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwBufferLength, 4)
569  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwBufferLength, 40)
570  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwBufferTotal, 4)
571  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwBufferTotal, 4)
572  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwBufferTotal, 44)
573  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwOffsetLow, 4)
574  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwOffsetLow, 4)
575  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwOffsetLow, 48)
576  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwOffsetHigh, 4)
577  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwOffsetHigh, 4)
578  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwOffsetHigh, 52)
579 }
580 
581 static void test_pack_INTERNET_BUFFERSW(void)
582 {
583  /* INTERNET_BUFFERSW */
586  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwStructSize, 4)
587  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwStructSize, 4)
588  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwStructSize, 0)
592  TEST_FIELD_SIZE (INTERNET_BUFFERSW, lpcszHeader, 8)
593  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, lpcszHeader, 8)
594  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, lpcszHeader, 16)
595  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwHeadersLength, 4)
596  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwHeadersLength, 4)
597  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwHeadersLength, 24)
598  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwHeadersTotal, 4)
599  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwHeadersTotal, 4)
600  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwHeadersTotal, 28)
601  TEST_FIELD_SIZE (INTERNET_BUFFERSW, lpvBuffer, 8)
602  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, lpvBuffer, 8)
603  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, lpvBuffer, 32)
604  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwBufferLength, 4)
605  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwBufferLength, 4)
606  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwBufferLength, 40)
607  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwBufferTotal, 4)
608  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwBufferTotal, 4)
609  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwBufferTotal, 44)
610  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwOffsetLow, 4)
611  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwOffsetLow, 4)
612  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwOffsetLow, 48)
613  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwOffsetHigh, 4)
614  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwOffsetHigh, 4)
615  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwOffsetHigh, 52)
616 }
617 
618 static void test_pack_INTERNET_CACHE_ENTRY_INFOA(void)
619 {
620  /* INTERNET_CACHE_ENTRY_INFOA */
624  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 8)
625  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 8)
626  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 8)
627  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 8)
628  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 8)
629  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 16)
630  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 4)
631  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 4)
632  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 24)
645  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 8)
646  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 4)
647  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 44)
651  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 8)
652  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 4)
653  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 60)
660  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 4)
661  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 4)
662  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 88)
663  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 8)
664  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 8)
665  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 96)
666 }
667 
668 static void test_pack_INTERNET_CACHE_ENTRY_INFOW(void)
669 {
670  /* INTERNET_CACHE_ENTRY_INFOW */
674  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 8)
675  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 8)
676  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 8)
677  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 8)
678  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 8)
679  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 16)
680  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 4)
681  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 4)
682  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 24)
695  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 8)
696  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 4)
697  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 44)
701  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 8)
702  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 4)
703  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 60)
710  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 4)
711  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 4)
712  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 88)
713  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 8)
714  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 8)
715  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 96)
716 }
717 
718 static void test_pack_INTERNET_CERTIFICATE_INFOA(void)
719 {
720  /* INTERNET_CERTIFICATE_INFOA */
729  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 8)
730  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 8)
731  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 16)
732  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 8)
733  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 8)
734  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 24)
735  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 8)
736  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 8)
737  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 32)
738  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 8)
739  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 8)
740  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 40)
741  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 8)
742  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 8)
743  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 48)
747 }
748 
749 static void test_pack_INTERNET_CERTIFICATE_INFOW(void)
750 {
751  /* INTERNET_CERTIFICATE_INFOW */
760  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 8)
761  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 8)
762  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 16)
763  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 8)
764  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 8)
765  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 24)
766  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 8)
767  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 8)
768  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 32)
769  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 8)
770  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 8)
771  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 40)
772  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 8)
773  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 8)
774  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 48)
778 }
779 
780 static void test_pack_INTERNET_CONNECTED_INFO(void)
781 {
782  /* INTERNET_CONNECTED_INFO */
785  TEST_FIELD_SIZE (INTERNET_CONNECTED_INFO, dwConnectedState, 4)
786  TEST_FIELD_ALIGN (INTERNET_CONNECTED_INFO, dwConnectedState, 4)
787  TEST_FIELD_OFFSET(INTERNET_CONNECTED_INFO, dwConnectedState, 0)
791 }
792 
793 static void test_pack_INTERNET_PORT(void)
794 {
795  /* INTERNET_PORT */
799 }
800 
801 static void test_pack_INTERNET_PROXY_INFOA(void)
802 {
803  /* INTERNET_PROXY_INFOA */
806  TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, dwAccessType, 4)
807  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, dwAccessType, 4)
808  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOA, dwAccessType, 0)
809  TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, lpszProxy, 8)
810  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, lpszProxy, 8)
812  TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, lpszProxyBypass, 8)
813  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, lpszProxyBypass, 8)
814  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOA, lpszProxyBypass, 16)
815 }
816 
817 static void test_pack_INTERNET_PROXY_INFOW(void)
818 {
819  /* INTERNET_PROXY_INFOW */
822  TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, dwAccessType, 4)
823  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, dwAccessType, 4)
824  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOW, dwAccessType, 0)
825  TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, lpszProxy, 8)
826  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, lpszProxy, 8)
828  TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, lpszProxyBypass, 8)
829  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, lpszProxyBypass, 8)
830  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOW, lpszProxyBypass, 16)
831 }
832 
833 static void test_pack_INTERNET_STATUS_CALLBACK(void)
834 {
835  /* INTERNET_STATUS_CALLBACK */
838 }
839 
840 static void test_pack_INTERNET_VERSION_INFO(void)
841 {
842  /* INTERNET_VERSION_INFO */
845  TEST_FIELD_SIZE (INTERNET_VERSION_INFO, dwMajorVersion, 4)
846  TEST_FIELD_ALIGN (INTERNET_VERSION_INFO, dwMajorVersion, 4)
847  TEST_FIELD_OFFSET(INTERNET_VERSION_INFO, dwMajorVersion, 0)
848  TEST_FIELD_SIZE (INTERNET_VERSION_INFO, dwMinorVersion, 4)
849  TEST_FIELD_ALIGN (INTERNET_VERSION_INFO, dwMinorVersion, 4)
850  TEST_FIELD_OFFSET(INTERNET_VERSION_INFO, dwMinorVersion, 4)
851 }
852 
854 {
855  /* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA */
860 }
861 
863 {
864  /* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW */
869 }
870 
872 {
873  /* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA */
878 }
879 
881 {
882  /* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW */
887 }
888 
890 {
891  /* LPGOPHER_ASK_ATTRIBUTE_TYPEA */
896 }
897 
899 {
900  /* LPGOPHER_ASK_ATTRIBUTE_TYPEW */
905 }
906 
907 static void test_pack_LPGOPHER_ATTRIBUTE_TYPEA(void)
908 {
909  /* LPGOPHER_ATTRIBUTE_TYPEA */
912 }
913 
914 static void test_pack_LPGOPHER_ATTRIBUTE_TYPEW(void)
915 {
916  /* LPGOPHER_ATTRIBUTE_TYPEW */
919 }
920 
921 static void test_pack_LPGOPHER_FIND_DATAA(void)
922 {
923  /* LPGOPHER_FIND_DATAA */
928 }
929 
930 static void test_pack_LPGOPHER_FIND_DATAW(void)
931 {
932  /* LPGOPHER_FIND_DATAW */
937 }
938 
940 {
941  /* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE */
946 }
947 
949 {
950  /* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA */
955 }
956 
958 {
959  /* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW */
964 }
965 
967 {
968  /* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE */
973 }
974 
976 {
977  /* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA */
982 }
983 
985 {
986  /* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW */
991 }
992 
994 {
995  /* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA */
1000 }
1001 
1003 {
1004  /* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW */
1009 }
1010 
1012 {
1013  /* LPGOPHER_SCORE_ATTRIBUTE_TYPE */
1018 }
1019 
1021 {
1022  /* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE */
1027 }
1028 
1030 {
1031  /* LPGOPHER_SITE_ATTRIBUTE_TYPEA */
1036 }
1037 
1039 {
1040  /* LPGOPHER_SITE_ATTRIBUTE_TYPEW */
1045 }
1046 
1048 {
1049  /* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE */
1054 }
1055 
1056 static void test_pack_LPGOPHER_TTL_ATTRIBUTE_TYPE(void)
1057 {
1058  /* LPGOPHER_TTL_ATTRIBUTE_TYPE */
1063 }
1064 
1066 {
1067  /* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA */
1072 }
1073 
1075 {
1076  /* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW */
1081 }
1082 
1084 {
1085  /* LPGOPHER_VERONICA_ATTRIBUTE_TYPE */
1090 }
1091 
1093 {
1094  /* LPGOPHER_VERSION_ATTRIBUTE_TYPEA */
1099 }
1100 
1102 {
1103  /* LPGOPHER_VERSION_ATTRIBUTE_TYPEW */
1108 }
1109 
1111 {
1112  /* LPGOPHER_VIEW_ATTRIBUTE_TYPEA */
1117 }
1118 
1120 {
1121  /* LPGOPHER_VIEW_ATTRIBUTE_TYPEW */
1126 }
1127 
1128 static void test_pack_LPHINTERNET(void)
1129 {
1130  /* LPHINTERNET */
1135 }
1136 
1137 static void test_pack_LPHTTP_VERSION_INFO(void)
1138 {
1139  /* LPHTTP_VERSION_INFO */
1144 }
1145 
1146 static void test_pack_LPINTERNET_ASYNC_RESULT(void)
1147 {
1148  /* LPINTERNET_ASYNC_RESULT */
1153 }
1154 
1155 static void test_pack_LPINTERNET_BUFFERSA(void)
1156 {
1157  /* LPINTERNET_BUFFERSA */
1162 }
1163 
1164 static void test_pack_LPINTERNET_BUFFERSW(void)
1165 {
1166  /* LPINTERNET_BUFFERSW */
1171 }
1172 
1174 {
1175  /* LPINTERNET_CACHE_ENTRY_INFOA */
1178 }
1179 
1181 {
1182  /* LPINTERNET_CACHE_ENTRY_INFOW */
1185 }
1186 
1188 {
1189  /* LPINTERNET_CERTIFICATE_INFOA */
1194 }
1195 
1197 {
1198  /* LPINTERNET_CERTIFICATE_INFOW */
1203 }
1204 
1205 static void test_pack_LPINTERNET_CONNECTED_INFO(void)
1206 {
1207  /* LPINTERNET_CONNECTED_INFO */
1212 }
1213 
1214 static void test_pack_LPINTERNET_PORT(void)
1215 {
1216  /* LPINTERNET_PORT */
1221 }
1222 
1223 static void test_pack_LPINTERNET_PROXY_INFOA(void)
1224 {
1225  /* LPINTERNET_PROXY_INFOA */
1230 }
1231 
1232 static void test_pack_LPINTERNET_PROXY_INFOW(void)
1233 {
1234  /* LPINTERNET_PROXY_INFOW */
1239 }
1240 
1241 static void test_pack_LPINTERNET_STATUS_CALLBACK(void)
1242 {
1243  /* LPINTERNET_STATUS_CALLBACK */
1248 }
1249 
1250 static void test_pack_LPINTERNET_VERSION_INFO(void)
1251 {
1252  /* LPINTERNET_VERSION_INFO */
1257 }
1258 
1259 static void test_pack_LPURL_COMPONENTSA(void)
1260 {
1261  /* LPURL_COMPONENTSA */
1264 }
1265 
1266 static void test_pack_LPURL_COMPONENTSW(void)
1267 {
1268  /* LPURL_COMPONENTSW */
1271 }
1272 
1273 static void test_pack_PFN_AUTH_NOTIFY(void)
1274 {
1275  /* PFN_AUTH_NOTIFY */
1278 }
1279 
1280 static void test_pack_PFN_DIAL_HANDLER(void)
1281 {
1282  /* PFN_DIAL_HANDLER */
1285 }
1286 
1287 static void test_pack_URL_COMPONENTSA(void)
1288 {
1289  /* URL_COMPONENTSA */
1290  TEST_FIELD_SIZE (URL_COMPONENTSA, dwStructSize, 4)
1291  TEST_FIELD_ALIGN (URL_COMPONENTSA, dwStructSize, 4)
1292  TEST_FIELD_OFFSET(URL_COMPONENTSA, dwStructSize, 0)
1293  TEST_FIELD_SIZE (URL_COMPONENTSA, lpszScheme, 8)
1294  TEST_FIELD_ALIGN (URL_COMPONENTSA, lpszScheme, 8)
1295  TEST_FIELD_OFFSET(URL_COMPONENTSA, lpszScheme, 8)
1296  TEST_FIELD_SIZE (URL_COMPONENTSA, dwSchemeLength, 4)
1297  TEST_FIELD_ALIGN (URL_COMPONENTSA, dwSchemeLength, 4)
1298  TEST_FIELD_OFFSET(URL_COMPONENTSA, dwSchemeLength, 16)
1299 }
1300 
1301 static void test_pack_URL_COMPONENTSW(void)
1302 {
1303  /* URL_COMPONENTSW */
1304  TEST_FIELD_SIZE (URL_COMPONENTSW, dwStructSize, 4)
1305  TEST_FIELD_ALIGN (URL_COMPONENTSW, dwStructSize, 4)
1306  TEST_FIELD_OFFSET(URL_COMPONENTSW, dwStructSize, 0)
1307  TEST_FIELD_SIZE (URL_COMPONENTSW, lpszScheme, 8)
1308  TEST_FIELD_ALIGN (URL_COMPONENTSW, lpszScheme, 8)
1309  TEST_FIELD_OFFSET(URL_COMPONENTSW, lpszScheme, 8)
1310  TEST_FIELD_SIZE (URL_COMPONENTSW, dwSchemeLength, 4)
1311  TEST_FIELD_ALIGN (URL_COMPONENTSW, dwSchemeLength, 4)
1312  TEST_FIELD_OFFSET(URL_COMPONENTSW, dwSchemeLength, 16)
1313 }
1314 
1315 #else /* _WIN64 */
1316 
1318 {
1319  /* GOPHER_ABSTRACT_ATTRIBUTE_TYPEA */
1328 }
1329 
1331 {
1332  /* GOPHER_ABSTRACT_ATTRIBUTE_TYPEW */
1341 }
1342 
1344 {
1345  /* GOPHER_ADMIN_ATTRIBUTE_TYPEA */
1354 }
1355 
1357 {
1358  /* GOPHER_ADMIN_ATTRIBUTE_TYPEW */
1367 }
1368 
1370 {
1371  /* GOPHER_ASK_ATTRIBUTE_TYPEA */
1374  TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionType, 4)
1375  TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionType, 4)
1377  TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionText, 4)
1378  TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionText, 4)
1380 }
1381 
1383 {
1384  /* GOPHER_ASK_ATTRIBUTE_TYPEW */
1387  TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionType, 4)
1388  TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionType, 4)
1390  TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionText, 4)
1391  TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionText, 4)
1393 }
1394 
1396 {
1397  /* GOPHER_ATTRIBUTE_ENUMERATORA */
1400 }
1401 
1403 {
1404  /* GOPHER_ATTRIBUTE_ENUMERATORW */
1407 }
1408 
1410 {
1411  /* GOPHER_ATTRIBUTE_TYPEA */
1412  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEA, CategoryId, 4)
1413  TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEA, CategoryId, 4)
1415  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
1416  TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
1417  TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
1418 }
1419 
1421 {
1422  /* GOPHER_ATTRIBUTE_TYPEW */
1423  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEW, CategoryId, 4)
1424  TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEW, CategoryId, 4)
1426  TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
1427  TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
1428  TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
1429 }
1430 
1432 {
1433  /* GOPHER_FIND_DATAA */
1439  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, GopherType, 4)
1440  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, GopherType, 4)
1441  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, GopherType, 132)
1442  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, SizeLow, 4)
1443  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, SizeLow, 4)
1444  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, SizeLow, 136)
1445  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, SizeHigh, 4)
1446  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, SizeHigh, 4)
1447  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, SizeHigh, 140)
1448  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, LastModificationTime, 8)
1449  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, LastModificationTime, 4)
1450  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, LastModificationTime, 144)
1451  TEST_FIELD_SIZE (GOPHER_FIND_DATAA, Locator, 654)
1452  TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, Locator, 1)
1453  TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, Locator, 152)
1454 }
1455 
1457 {
1458  /* GOPHER_FIND_DATAW */
1464  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, GopherType, 4)
1465  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, GopherType, 4)
1466  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, GopherType, 260)
1467  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, SizeLow, 4)
1468  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, SizeLow, 4)
1469  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, SizeLow, 264)
1470  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, SizeHigh, 4)
1471  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, SizeHigh, 4)
1472  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, SizeHigh, 268)
1473  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, LastModificationTime, 8)
1474  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, LastModificationTime, 4)
1475  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, LastModificationTime, 272)
1476  TEST_FIELD_SIZE (GOPHER_FIND_DATAW, Locator, 1308)
1477  TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, Locator, 2)
1478  TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, Locator, 280)
1479 }
1480 
1482 {
1483  /* GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE */
1504 }
1505 
1507 {
1508  /* GOPHER_LOCATION_ATTRIBUTE_TYPEA */
1514 }
1515 
1517 {
1518  /* GOPHER_LOCATION_ATTRIBUTE_TYPEW */
1524 }
1525 
1527 {
1528  /* GOPHER_MOD_DATE_ATTRIBUTE_TYPE */
1534 }
1535 
1537 {
1538  /* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA */
1544 }
1545 
1547 {
1548  /* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW */
1554 }
1555 
1557 {
1558  /* GOPHER_PROVIDER_ATTRIBUTE_TYPEA */
1564 }
1565 
1567 {
1568  /* GOPHER_PROVIDER_ATTRIBUTE_TYPEW */
1574 }
1575 
1577 {
1578  /* GOPHER_SCORE_ATTRIBUTE_TYPE */
1584 }
1585 
1587 {
1588  /* GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE */
1597 }
1598 
1600 {
1601  /* GOPHER_SITE_ATTRIBUTE_TYPEA */
1607 }
1608 
1610 {
1611  /* GOPHER_SITE_ATTRIBUTE_TYPEW */
1617 }
1618 
1620 {
1621  /* GOPHER_TIMEZONE_ATTRIBUTE_TYPE */
1627 }
1628 
1630 {
1631  /* GOPHER_TTL_ATTRIBUTE_TYPE */
1637 }
1638 
1640 {
1641  /* GOPHER_UNKNOWN_ATTRIBUTE_TYPEA */
1647 }
1648 
1650 {
1651  /* GOPHER_UNKNOWN_ATTRIBUTE_TYPEW */
1657 }
1658 
1660 {
1661  /* GOPHER_VERONICA_ATTRIBUTE_TYPE */
1667 }
1668 
1670 {
1671  /* GOPHER_VERSION_ATTRIBUTE_TYPEA */
1677 }
1678 
1680 {
1681  /* GOPHER_VERSION_ATTRIBUTE_TYPEW */
1687 }
1688 
1690 {
1691  /* GOPHER_VIEW_ATTRIBUTE_TYPEA */
1703 }
1704 
1706 {
1707  /* GOPHER_VIEW_ATTRIBUTE_TYPEW */
1719 }
1720 
1721 static void test_pack_GROUPID(void)
1722 {
1723  /* GROUPID */
1724  TEST_TYPE_SIZE (GROUPID, 8)
1727 }
1728 
1729 static void test_pack_HINTERNET(void)
1730 {
1731  /* HINTERNET */
1734 }
1735 
1737 {
1738  /* HTTP_VERSION_INFO */
1741  TEST_FIELD_SIZE (HTTP_VERSION_INFO, dwMajorVersion, 4)
1742  TEST_FIELD_ALIGN (HTTP_VERSION_INFO, dwMajorVersion, 4)
1743  TEST_FIELD_OFFSET(HTTP_VERSION_INFO, dwMajorVersion, 0)
1744  TEST_FIELD_SIZE (HTTP_VERSION_INFO, dwMinorVersion, 4)
1745  TEST_FIELD_ALIGN (HTTP_VERSION_INFO, dwMinorVersion, 4)
1746  TEST_FIELD_OFFSET(HTTP_VERSION_INFO, dwMinorVersion, 4)
1747 }
1748 
1750 {
1751  /* INTERNET_ASYNC_RESULT */
1754  TEST_FIELD_SIZE (INTERNET_ASYNC_RESULT, dwResult, 4)
1760 }
1761 
1763 {
1764  /* INTERNET_AUTH_NOTIFY_DATA */
1779 }
1780 
1782 {
1783  /* INTERNET_BUFFERSA */
1786  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwStructSize, 4)
1787  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwStructSize, 4)
1788  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwStructSize, 0)
1792  TEST_FIELD_SIZE (INTERNET_BUFFERSA, lpcszHeader, 4)
1793  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, lpcszHeader, 4)
1794  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, lpcszHeader, 8)
1795  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwHeadersLength, 4)
1796  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwHeadersLength, 4)
1797  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwHeadersLength, 12)
1798  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwHeadersTotal, 4)
1799  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwHeadersTotal, 4)
1800  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwHeadersTotal, 16)
1801  TEST_FIELD_SIZE (INTERNET_BUFFERSA, lpvBuffer, 4)
1802  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, lpvBuffer, 4)
1803  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, lpvBuffer, 20)
1804  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwBufferLength, 4)
1805  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwBufferLength, 4)
1806  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwBufferLength, 24)
1807  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwBufferTotal, 4)
1808  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwBufferTotal, 4)
1809  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwBufferTotal, 28)
1810  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwOffsetLow, 4)
1811  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwOffsetLow, 4)
1812  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwOffsetLow, 32)
1813  TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwOffsetHigh, 4)
1814  TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwOffsetHigh, 4)
1815  TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwOffsetHigh, 36)
1816 }
1817 
1819 {
1820  /* INTERNET_BUFFERSW */
1823  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwStructSize, 4)
1824  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwStructSize, 4)
1825  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwStructSize, 0)
1829  TEST_FIELD_SIZE (INTERNET_BUFFERSW, lpcszHeader, 4)
1830  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, lpcszHeader, 4)
1831  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, lpcszHeader, 8)
1832  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwHeadersLength, 4)
1833  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwHeadersLength, 4)
1834  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwHeadersLength, 12)
1835  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwHeadersTotal, 4)
1836  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwHeadersTotal, 4)
1837  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwHeadersTotal, 16)
1838  TEST_FIELD_SIZE (INTERNET_BUFFERSW, lpvBuffer, 4)
1839  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, lpvBuffer, 4)
1840  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, lpvBuffer, 20)
1841  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwBufferLength, 4)
1842  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwBufferLength, 4)
1843  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwBufferLength, 24)
1844  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwBufferTotal, 4)
1845  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwBufferTotal, 4)
1846  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwBufferTotal, 28)
1847  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwOffsetLow, 4)
1848  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwOffsetLow, 4)
1849  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwOffsetLow, 32)
1850  TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwOffsetHigh, 4)
1851  TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwOffsetHigh, 4)
1852  TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwOffsetHigh, 36)
1853 }
1854 
1856 {
1857  /* INTERNET_CACHE_ENTRY_INFOA */
1858  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 4)
1859  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 4)
1861  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 4)
1862  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 4)
1863  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 4)
1864  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 4)
1865  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 4)
1866  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 8)
1867  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 4)
1868  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 4)
1869  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 12)
1882  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 8)
1883  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 4)
1884  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 32)
1888  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 8)
1889  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 4)
1890  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 48)
1891  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastSyncTime, 8)
1892  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastSyncTime, 4)
1894  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpHeaderInfo, 4)
1895  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpHeaderInfo, 4)
1897  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 4)
1898  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 4)
1899  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 68)
1900  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 4)
1901  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 4)
1902  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 72)
1903 }
1904 
1906 {
1907  /* INTERNET_CACHE_ENTRY_INFOW */
1908  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 4)
1909  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 4)
1911  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 4)
1912  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 4)
1913  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 4)
1914  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 4)
1915  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 4)
1916  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 8)
1917  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 4)
1918  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 4)
1919  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 12)
1932  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 8)
1933  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 4)
1934  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 32)
1938  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 8)
1939  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 4)
1940  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 48)
1941  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastSyncTime, 8)
1942  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastSyncTime, 4)
1944  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpHeaderInfo, 4)
1945  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpHeaderInfo, 4)
1947  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 4)
1948  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 4)
1949  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 68)
1950  TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 4)
1951  TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 4)
1952  TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 72)
1953 }
1954 
1956 {
1957  /* INTERNET_CERTIFICATE_INFOA */
1966  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 4)
1967  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 4)
1968  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 16)
1969  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 4)
1970  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 4)
1971  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 20)
1972  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 4)
1973  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 4)
1974  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 24)
1975  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 4)
1976  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 4)
1977  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 28)
1978  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 4)
1979  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 4)
1980  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 32)
1984 }
1985 
1987 {
1988  /* INTERNET_CERTIFICATE_INFOW */
1997  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 4)
1998  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 4)
1999  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 16)
2000  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 4)
2001  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 4)
2002  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 20)
2003  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 4)
2004  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 4)
2005  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 24)
2006  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 4)
2007  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 4)
2008  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 28)
2009  TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 4)
2010  TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 4)
2011  TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 32)
2015 }
2016 
2018 {
2019  /* INTERNET_CONNECTED_INFO */
2022  TEST_FIELD_SIZE (INTERNET_CONNECTED_INFO, dwConnectedState, 4)
2023  TEST_FIELD_ALIGN (INTERNET_CONNECTED_INFO, dwConnectedState, 4)
2024  TEST_FIELD_OFFSET(INTERNET_CONNECTED_INFO, dwConnectedState, 0)
2028 }
2029 
2030 static void test_pack_INTERNET_PORT(void)
2031 {
2032  /* INTERNET_PORT */
2036 }
2037 
2039 {
2040  /* INTERNET_PROXY_INFOA */
2043  TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, dwAccessType, 4)
2044  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, dwAccessType, 4)
2045  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOA, dwAccessType, 0)
2046  TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, lpszProxy, 4)
2047  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, lpszProxy, 4)
2049  TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, lpszProxyBypass, 4)
2050  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, lpszProxyBypass, 4)
2051  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOA, lpszProxyBypass, 8)
2052 }
2053 
2055 {
2056  /* INTERNET_PROXY_INFOW */
2059  TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, dwAccessType, 4)
2060  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, dwAccessType, 4)
2061  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOW, dwAccessType, 0)
2062  TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, lpszProxy, 4)
2063  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, lpszProxy, 4)
2065  TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, lpszProxyBypass, 4)
2066  TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, lpszProxyBypass, 4)
2067  TEST_FIELD_OFFSET(INTERNET_PROXY_INFOW, lpszProxyBypass, 8)
2068 }
2069 
2071 {
2072  /* INTERNET_STATUS_CALLBACK */
2075 }
2076 
2078 {
2079  /* INTERNET_VERSION_INFO */
2082  TEST_FIELD_SIZE (INTERNET_VERSION_INFO, dwMajorVersion, 4)
2083  TEST_FIELD_ALIGN (INTERNET_VERSION_INFO, dwMajorVersion, 4)
2084  TEST_FIELD_OFFSET(INTERNET_VERSION_INFO, dwMajorVersion, 0)
2085  TEST_FIELD_SIZE (INTERNET_VERSION_INFO, dwMinorVersion, 4)
2086  TEST_FIELD_ALIGN (INTERNET_VERSION_INFO, dwMinorVersion, 4)
2087  TEST_FIELD_OFFSET(INTERNET_VERSION_INFO, dwMinorVersion, 4)
2088 }
2089 
2091 {
2092  /* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA */
2097 }
2098 
2100 {
2101  /* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW */
2106 }
2107 
2109 {
2110  /* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA */
2115 }
2116 
2118 {
2119  /* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW */
2124 }
2125 
2127 {
2128  /* LPGOPHER_ASK_ATTRIBUTE_TYPEA */
2133 }
2134 
2136 {
2137  /* LPGOPHER_ASK_ATTRIBUTE_TYPEW */
2142 }
2143 
2145 {
2146  /* LPGOPHER_ATTRIBUTE_TYPEA */
2149 }
2150 
2152 {
2153  /* LPGOPHER_ATTRIBUTE_TYPEW */
2156 }
2157 
2159 {
2160  /* LPGOPHER_FIND_DATAA */
2165 }
2166 
2168 {
2169  /* LPGOPHER_FIND_DATAW */
2174 }
2175 
2177 {
2178  /* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE */
2183 }
2184 
2186 {
2187  /* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA */
2192 }
2193 
2195 {
2196  /* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW */
2201 }
2202 
2204 {
2205  /* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE */
2210 }
2211 
2213 {
2214  /* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA */
2219 }
2220 
2222 {
2223  /* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW */
2228 }
2229 
2231 {
2232  /* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA */
2237 }
2238 
2240 {
2241  /* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW */
2246 }
2247 
2249 {
2250  /* LPGOPHER_SCORE_ATTRIBUTE_TYPE */
2255 }
2256 
2258 {
2259  /* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE */
2264 }
2265 
2267 {
2268  /* LPGOPHER_SITE_ATTRIBUTE_TYPEA */
2273 }
2274 
2276 {
2277  /* LPGOPHER_SITE_ATTRIBUTE_TYPEW */
2282 }
2283 
2285 {
2286  /* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE */
2291 }
2292 
2294 {
2295  /* LPGOPHER_TTL_ATTRIBUTE_TYPE */
2300 }
2301 
2303 {
2304  /* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA */
2309 }
2310 
2312 {
2313  /* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW */
2318 }
2319 
2321 {
2322  /* LPGOPHER_VERONICA_ATTRIBUTE_TYPE */
2327 }
2328 
2330 {
2331  /* LPGOPHER_VERSION_ATTRIBUTE_TYPEA */
2336 }
2337 
2339 {
2340  /* LPGOPHER_VERSION_ATTRIBUTE_TYPEW */
2345 }
2346 
2348 {
2349  /* LPGOPHER_VIEW_ATTRIBUTE_TYPEA */
2354 }
2355 
2357 {
2358  /* LPGOPHER_VIEW_ATTRIBUTE_TYPEW */
2363 }
2364 
2365 static void test_pack_LPHINTERNET(void)
2366 {
2367  /* LPHINTERNET */
2372 }
2373 
2375 {
2376  /* LPHTTP_VERSION_INFO */
2381 }
2382 
2384 {
2385  /* LPINTERNET_ASYNC_RESULT */
2390 }
2391 
2393 {
2394  /* LPINTERNET_BUFFERSA */
2399 }
2400 
2402 {
2403  /* LPINTERNET_BUFFERSW */
2408 }
2409 
2411 {
2412  /* LPINTERNET_CACHE_ENTRY_INFOA */
2415 }
2416 
2418 {
2419  /* LPINTERNET_CACHE_ENTRY_INFOW */
2422 }
2423 
2425 {
2426  /* LPINTERNET_CERTIFICATE_INFOA */
2431 }
2432 
2434 {
2435  /* LPINTERNET_CERTIFICATE_INFOW */
2440 }
2441 
2443 {
2444  /* LPINTERNET_CONNECTED_INFO */
2449 }
2450 
2451 static void test_pack_LPINTERNET_PORT(void)
2452 {
2453  /* LPINTERNET_PORT */
2458 }
2459 
2461 {
2462  /* LPINTERNET_PROXY_INFOA */
2467 }
2468 
2470 {
2471  /* LPINTERNET_PROXY_INFOW */
2476 }
2477 
2479 {
2480  /* LPINTERNET_STATUS_CALLBACK */
2485 }
2486 
2488 {
2489  /* LPINTERNET_VERSION_INFO */
2494 }
2495 
2497 {
2498  /* LPURL_COMPONENTSA */
2501 }
2502 
2504 {
2505  /* LPURL_COMPONENTSW */
2508 }
2509 
2510 static void test_pack_PFN_AUTH_NOTIFY(void)
2511 {
2512  /* PFN_AUTH_NOTIFY */
2515 }
2516 
2518 {
2519  /* PFN_DIAL_HANDLER */
2522 }
2523 
2524 static void test_pack_URL_COMPONENTSA(void)
2525 {
2526  /* URL_COMPONENTSA */
2527  TEST_FIELD_SIZE (URL_COMPONENTSA, dwStructSize, 4)
2528  TEST_FIELD_ALIGN (URL_COMPONENTSA, dwStructSize, 4)
2529  TEST_FIELD_OFFSET(URL_COMPONENTSA, dwStructSize, 0)
2530  TEST_FIELD_SIZE (URL_COMPONENTSA, lpszScheme, 4)
2531  TEST_FIELD_ALIGN (URL_COMPONENTSA, lpszScheme, 4)
2532  TEST_FIELD_OFFSET(URL_COMPONENTSA, lpszScheme, 4)
2533  TEST_FIELD_SIZE (URL_COMPONENTSA, dwSchemeLength, 4)
2534  TEST_FIELD_ALIGN (URL_COMPONENTSA, dwSchemeLength, 4)
2535  TEST_FIELD_OFFSET(URL_COMPONENTSA, dwSchemeLength, 8)
2536 }
2537 
2538 static void test_pack_URL_COMPONENTSW(void)
2539 {
2540  /* URL_COMPONENTSW */
2541  TEST_FIELD_SIZE (URL_COMPONENTSW, dwStructSize, 4)
2542  TEST_FIELD_ALIGN (URL_COMPONENTSW, dwStructSize, 4)
2543  TEST_FIELD_OFFSET(URL_COMPONENTSW, dwStructSize, 0)
2544  TEST_FIELD_SIZE (URL_COMPONENTSW, lpszScheme, 4)
2545  TEST_FIELD_ALIGN (URL_COMPONENTSW, lpszScheme, 4)
2546  TEST_FIELD_OFFSET(URL_COMPONENTSW, lpszScheme, 4)
2547  TEST_FIELD_SIZE (URL_COMPONENTSW, dwSchemeLength, 4)
2548  TEST_FIELD_ALIGN (URL_COMPONENTSW, dwSchemeLength, 4)
2549  TEST_FIELD_OFFSET(URL_COMPONENTSW, dwSchemeLength, 8)
2550 }
2551 
2552 #endif /* _WIN64 */
2553 
2554 static void test_pack(void)
2555 {
2658 }
2659 
2660 START_TEST(generated)
2661 {
2662  test_pack();
2663 }
#define TEST_TYPE_UNSIGNED(type)
Definition: generated.c:75
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1649
static void test_pack_LPGOPHER_SITE_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2275
DWORD dwOptions
Definition: solitaire.cpp:23
static void test_pack_GOPHER_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1420
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1689
static void test_pack_INTERNET_PROXY_INFOA(void)
Definition: generated.c:2038
static void test_pack_INTERNET_ASYNC_RESULT(void)
Definition: generated.c:1749
static void test_pack_LPGOPHER_SITE_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2266
static void test_pack_GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
Definition: generated.c:1481
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:361
static void test_pack_LPINTERNET_VERSION_INFO(void)
Definition: generated.c:2487
static void test_pack_LPGOPHER_ASK_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2135
BOOL(CALLBACK * GOPHER_ATTRIBUTE_ENUMERATORA)(_In_ LPGOPHER_ATTRIBUTE_TYPEA, _In_ DWORD)
Definition: wininet.h:1485
static void test_pack_INTERNET_CACHE_ENTRY_INFOW(void)
Definition: generated.c:1905
#define TEST_TYPE_SIZE(type, size)
Definition: generated.c:54
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1679
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1382
static void test_pack_GOPHER_FIND_DATAA(void)
Definition: generated.c:1431
static void test_pack_INTERNET_STATUS_CALLBACK(void)
Definition: generated.c:2070
static void test_pack_LPURL_COMPONENTSW(void)
Definition: generated.c:2503
static void test_pack_INTERNET_CONNECTED_INFO(void)
Definition: generated.c:2017
static void test_pack_LPGOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2108
VOID(CALLBACK * INTERNET_STATUS_CALLBACK)(_In_ HINTERNET, _In_opt_ DWORD_PTR, _In_ DWORD, _In_opt_ LPVOID, _In_ DWORD)
Definition: wininet.h:859
static void test_pack_HINTERNET(void)
Definition: generated.c:1729
BOOL(CALLBACK * GOPHER_ATTRIBUTE_ENUMERATORW)(_In_ LPGOPHER_ATTRIBUTE_TYPEW, _In_ DWORD)
Definition: wininet.h:1490
#define TEST_FIELD_SIZE(type, field, size)
Definition: generated.c:73
static void test_pack_LPGOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2117
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1546
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1506
static void test_pack_LPINTERNET_BUFFERSA(void)
Definition: generated.c:2392
static void test_pack_INTERNET_CERTIFICATE_INFOA(void)
Definition: generated.c:1955
static void test_pack_LPGOPHER_VIEW_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2347
static void test_pack_LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
Definition: generated.c:2257
static void test_pack_GOPHER_FIND_DATAW(void)
Definition: generated.c:1456
static void test_pack_LPGOPHER_TTL_ATTRIBUTE_TYPE(void)
Definition: generated.c:2293
INTERNET_PORT * LPINTERNET_PORT
Definition: winhttp.h:39
static void test_pack_LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2230
static void test_pack_HTTP_VERSION_INFO(void)
Definition: generated.c:1736
static void test_pack_GOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
Definition: generated.c:1619
static void test_pack_INTERNET_PROXY_INFOW(void)
Definition: generated.c:2054
static void test_pack_INTERNET_BUFFERSA(void)
Definition: generated.c:1781
static void test_pack_LPGOPHER_FIND_DATAW(void)
Definition: generated.c:2167
static void test_pack_LPINTERNET_CACHE_ENTRY_INFOW(void)
Definition: generated.c:2417
static void test_pack_GOPHER_ATTRIBUTE_ENUMERATORW(void)
Definition: generated.c:1402
WORD INTERNET_PORT
Definition: winhttp.h:38
static void test_pack_GOPHER_VERONICA_ATTRIBUTE_TYPE(void)
Definition: generated.c:1659
static void test_pack_GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
Definition: generated.c:1586
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1330
static void test_pack_LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
Definition: generated.c:2203
static void test_pack_INTERNET_CERTIFICATE_INFOW(void)
Definition: generated.c:1986
static void test_pack_LPHINTERNET(void)
Definition: generated.c:2365
Definition: wininet.h:2104
static void test_pack_INTERNET_VERSION_INFO(void)
Definition: generated.c:2077
static void test_pack_INTERNET_CACHE_ENTRY_INFOA(void)
Definition: generated.c:1855
static void test_pack_LPGOPHER_VIEW_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2356
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1516
#define TEST_FIELD_ALIGN(type, field, align)
Definition: generated.c:67
static void test_pack_INTERNET_BUFFERSW(void)
Definition: generated.c:1818
static void test_pack_LPGOPHER_VERSION_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2329
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1705
static void test_pack_LPGOPHER_ASK_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2126
static void test_pack_LPGOPHER_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2151
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1343
static void test_pack_LPGOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2185
static void test_pack_LPINTERNET_CERTIFICATE_INFOW(void)
Definition: generated.c:2433
static void test_pack_LPGOPHER_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2144
static void test_pack_GOPHER_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1409
static void test_pack_LPINTERNET_PROXY_INFOW(void)
Definition: generated.c:2469
static void test_pack_LPINTERNET_CONNECTED_INFO(void)
Definition: generated.c:2442
#define TEST_FIELD_OFFSET(type, field, offset)
Definition: generated.c:70
INTERNET_STATUS_CALLBACK * LPINTERNET_STATUS_CALLBACK
Definition: wininet.h:865
static void test_pack_GOPHER_SCORE_ATTRIBUTE_TYPE(void)
Definition: generated.c:1576
static void test_pack_PFN_AUTH_NOTIFY(void)
Definition: generated.c:2510
static void test_pack_LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2212
DWORD(CALLBACK * PFN_AUTH_NOTIFY)(DWORD_PTR, DWORD, LPVOID)
Definition: wininet.h:1913
static void test_pack_LPINTERNET_PORT(void)
Definition: generated.c:2451
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1639
DWORD(CALLBACK * PFN_DIAL_HANDLER)(HWND, LPCSTR, DWORD, LPDWORD)
Definition: wininet.h:2546
#define TEST_TARGET_ALIGN(type, align)
Definition: generated.c:66
#define TEST_TYPE_SIGNED(type)
Definition: generated.c:74
static void test_pack(void)
Definition: generated.c:2554
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1609
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
static void test_pack_LPGOPHER_VERONICA_ATTRIBUTE_TYPE(void)
Definition: generated.c:2320
static void test_pack_PFN_DIAL_HANDLER(void)
Definition: generated.c:2517
static void test_pack_LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2221
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
static void test_pack_LPGOPHER_SCORE_ATTRIBUTE_TYPE(void)
Definition: generated.c:2248
VOID DisplayString(LPWSTR Msg)
Definition: misc.c:211
static void test_pack_LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2311
static void test_pack_LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2302
static void test_pack_URL_COMPONENTSW(void)
Definition: generated.c:2538
static void test_pack_LPGOPHER_FIND_DATAA(void)
Definition: generated.c:2158
static void test_pack_LPINTERNET_ASYNC_RESULT(void)
Definition: generated.c:2383
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1669
START_TEST(generated)
Definition: generated.c:13553
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1536
static void test_pack_GOPHER_TTL_ATTRIBUTE_TYPE(void)
Definition: generated.c:1629
static void test_pack_LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2239
static void test_pack_LPINTERNET_CACHE_ENTRY_INFOA(void)
Definition: generated.c:2410
static void test_pack_GOPHER_ATTRIBUTE_ENUMERATORA(void)
Definition: generated.c:1395
static void test_pack_LPINTERNET_CERTIFICATE_INFOA(void)
Definition: generated.c:2424
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1599
LONGLONG GROUPID
Definition: wininet.h:2317
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1356
static void test_pack_LPINTERNET_PROXY_INFOA(void)
Definition: generated.c:2460
static void test_pack_LPHTTP_VERSION_INFO(void)
Definition: generated.c:2374
static void test_pack_INTERNET_AUTH_NOTIFY_DATA(void)
Definition: generated.c:1762
static void test_pack_LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
Definition: generated.c:2090
static void test_pack_LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
Definition: generated.c:2284
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1369
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1317
#define TEST_TYPE_ALIGN(type, align)
Definition: generated.c:59
static void test_pack_LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
Definition: generated.c:2176
static void test_pack_LPGOPHER_VERSION_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2338
static void test_pack_LPURL_COMPONENTSA(void)
Definition: generated.c:2496
static void test_pack_LPGOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2194
static void test_pack_GOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
Definition: generated.c:1526
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
Definition: generated.c:1556
static void test_pack_URL_COMPONENTSA(void)
Definition: generated.c:2524
static void test_pack_INTERNET_PORT(void)
Definition: generated.c:2030
static void test_pack_GROUPID(void)
Definition: generated.c:1721
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
Definition: generated.c:1566
char * Text
Definition: combotst.c:136
static void test_pack_LPINTERNET_BUFFERSW(void)
Definition: generated.c:2401
static void test_pack_LPINTERNET_STATUS_CALLBACK(void)
Definition: generated.c:2478
static void test_pack_LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
Definition: generated.c:2099
#define TEST_TARGET_SIZE(type, size)
Definition: generated.c:72
Definition: wininet.h:2127