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 WINVER 0x0501
9 #define _WIN32_IE 0x0501
10 #define _WIN32_WINNT 0x0501
11 
12 #define WINE_NOWINSOCK
13 
14 #include <stdarg.h>
15 #include "windef.h"
16 #include "winbase.h"
17 #include "ole2.h"
18 #include "rpc.h"
19 #include "rpcndr.h"
20 #include "rpcproxy.h"
21 
22 #include "wine/test.h"
23 
24 /***********************************************************************
25  * Compatibility macros
26  */
27 
28 #define DWORD_PTR UINT_PTR
29 #define LONG_PTR INT_PTR
30 #define ULONG_PTR UINT_PTR
31 
32 /***********************************************************************
33  * Windows API extension
34  */
35 
36 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
37 # define _TYPE_ALIGNMENT(type) __alignof(type)
38 #elif defined(__GNUC__)
39 # define _TYPE_ALIGNMENT(type) __alignof__(type)
40 #else
41 /*
42  * FIXME: May not be possible without a compiler extension
43  *        (if type is not just a name that is, otherwise the normal
44  *         TYPE_ALIGNMENT can be used)
45  */
46 #endif
47 
48 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
49 #pragma warning(disable:4116)
50 #endif
51 
52 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
53 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
54 #endif
55 
56 /***********************************************************************
57  * Test helper macros
58  */
59 
60 #define TEST_TYPE_SIZE(type, size)             C_ASSERT(sizeof(type) == size);
61 
62 #ifdef TYPE_ALIGNMENT
63 # define TEST_TYPE_ALIGN(type, align)          C_ASSERT(TYPE_ALIGNMENT(type) == align);
64 #else
65 # define TEST_TYPE_ALIGN(type, align)
66 #endif
67 
68 #ifdef _TYPE_ALIGNMENT
69 # define TEST_TARGET_ALIGN(type, align)        C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
70 # define TEST_FIELD_ALIGN(type, field, align)  C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
71 #else
72 # define TEST_TARGET_ALIGN(type, align)
73 # define TEST_FIELD_ALIGN(type, field, align)
74 #endif
75 
76 #define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
77 
78 #define TEST_TARGET_SIZE(type, size)            TEST_TYPE_SIZE(*(type)0, size)
79 #define TEST_FIELD_SIZE(type, field, size)      TEST_TYPE_SIZE((((type*)0)->field), size)
80 #define TEST_TYPE_SIGNED(type)                  C_ASSERT((type) -1 < 0);
81 #define TEST_TYPE_UNSIGNED(type)                C_ASSERT((type) -1 > 0);
82 
83 
84 #ifdef _WIN64
85 
86 static void test_pack_I_RPC_HANDLE(void)
87 {
88     /* I_RPC_HANDLE */
89     TEST_TYPE_SIZE   (I_RPC_HANDLE, 8)
90     TEST_TYPE_ALIGN  (I_RPC_HANDLE, 8)
91 }
92 
93 static void test_pack_RPC_STATUS(void)
94 {
95     /* RPC_STATUS */
96     TEST_TYPE_SIZE   (RPC_STATUS, 4)
97     TEST_TYPE_ALIGN  (RPC_STATUS, 4)
98 }
99 
100 static void test_pack_PRPC_POLICY(void)
101 {
102     /* PRPC_POLICY */
103     TEST_TYPE_SIZE   (PRPC_POLICY, 8)
104     TEST_TYPE_ALIGN  (PRPC_POLICY, 8)
105     TEST_TARGET_SIZE (PRPC_POLICY, 12)
106     TEST_TARGET_ALIGN(PRPC_POLICY, 4)
107 }
108 
109 static void test_pack_RPC_AUTH_IDENTITY_HANDLE(void)
110 {
111     /* RPC_AUTH_IDENTITY_HANDLE */
112     TEST_TYPE_SIZE   (RPC_AUTH_IDENTITY_HANDLE, 8)
113     TEST_TYPE_ALIGN  (RPC_AUTH_IDENTITY_HANDLE, 8)
114 }
115 
116 static void test_pack_RPC_AUTH_KEY_RETRIEVAL_FN(void)
117 {
118     /* RPC_AUTH_KEY_RETRIEVAL_FN */
119 }
120 
121 static void test_pack_RPC_AUTHZ_HANDLE(void)
122 {
123     /* RPC_AUTHZ_HANDLE */
124     TEST_TYPE_SIZE   (RPC_AUTHZ_HANDLE, 8)
125     TEST_TYPE_ALIGN  (RPC_AUTHZ_HANDLE, 8)
126 }
127 
128 static void test_pack_RPC_BINDING_HANDLE(void)
129 {
130     /* RPC_BINDING_HANDLE */
131     TEST_TYPE_SIZE   (RPC_BINDING_HANDLE, 8)
132     TEST_TYPE_ALIGN  (RPC_BINDING_HANDLE, 8)
133 }
134 
135 static void test_pack_RPC_BINDING_VECTOR(void)
136 {
137     /* RPC_BINDING_VECTOR */
138     TEST_TYPE_SIZE   (RPC_BINDING_VECTOR, 16)
139     TEST_TYPE_ALIGN  (RPC_BINDING_VECTOR, 8)
140     TEST_FIELD_SIZE  (RPC_BINDING_VECTOR, Count, 4)
141     TEST_FIELD_ALIGN (RPC_BINDING_VECTOR, Count, 4)
142     TEST_FIELD_OFFSET(RPC_BINDING_VECTOR, Count, 0)
143     TEST_FIELD_SIZE  (RPC_BINDING_VECTOR, BindingH, 8)
144     TEST_FIELD_ALIGN (RPC_BINDING_VECTOR, BindingH, 8)
145     TEST_FIELD_OFFSET(RPC_BINDING_VECTOR, BindingH, 8)
146 }
147 
148 static void test_pack_RPC_IF_HANDLE(void)
149 {
150     /* RPC_IF_HANDLE */
151     TEST_TYPE_SIZE   (RPC_IF_HANDLE, 8)
152     TEST_TYPE_ALIGN  (RPC_IF_HANDLE, 8)
153 }
154 
155 static void test_pack_RPC_IF_ID(void)
156 {
157     /* RPC_IF_ID */
158     TEST_TYPE_SIZE   (RPC_IF_ID, 20)
159     TEST_TYPE_ALIGN  (RPC_IF_ID, 4)
160     TEST_FIELD_SIZE  (RPC_IF_ID, Uuid, 16)
161     TEST_FIELD_ALIGN (RPC_IF_ID, Uuid, 4)
162     TEST_FIELD_OFFSET(RPC_IF_ID, Uuid, 0)
163     TEST_FIELD_SIZE  (RPC_IF_ID, VersMajor, 2)
164     TEST_FIELD_ALIGN (RPC_IF_ID, VersMajor, 2)
165     TEST_FIELD_OFFSET(RPC_IF_ID, VersMajor, 16)
166     TEST_FIELD_SIZE  (RPC_IF_ID, VersMinor, 2)
167     TEST_FIELD_ALIGN (RPC_IF_ID, VersMinor, 2)
168     TEST_FIELD_OFFSET(RPC_IF_ID, VersMinor, 18)
169 }
170 
171 static void test_pack_RPC_POLICY(void)
172 {
173     /* RPC_POLICY */
174     TEST_TYPE_SIZE   (RPC_POLICY, 12)
175     TEST_TYPE_ALIGN  (RPC_POLICY, 4)
176     TEST_FIELD_SIZE  (RPC_POLICY, Length, 4)
177     TEST_FIELD_ALIGN (RPC_POLICY, Length, 4)
178     TEST_FIELD_OFFSET(RPC_POLICY, Length, 0)
179     TEST_FIELD_SIZE  (RPC_POLICY, EndpointFlags, 4)
180     TEST_FIELD_ALIGN (RPC_POLICY, EndpointFlags, 4)
181     TEST_FIELD_OFFSET(RPC_POLICY, EndpointFlags, 4)
182     TEST_FIELD_SIZE  (RPC_POLICY, NICFlags, 4)
183     TEST_FIELD_ALIGN (RPC_POLICY, NICFlags, 4)
184     TEST_FIELD_OFFSET(RPC_POLICY, NICFlags, 8)
185 }
186 
187 static void test_pack_UUID_VECTOR(void)
188 {
189     /* UUID_VECTOR */
190     TEST_TYPE_SIZE   (UUID_VECTOR, 16)
191     TEST_TYPE_ALIGN  (UUID_VECTOR, 8)
192     TEST_FIELD_SIZE  (UUID_VECTOR, Count, 4)
193     TEST_FIELD_ALIGN (UUID_VECTOR, Count, 4)
194     TEST_FIELD_OFFSET(UUID_VECTOR, Count, 0)
195     TEST_FIELD_SIZE  (UUID_VECTOR, Uuid, 8)
196     TEST_FIELD_ALIGN (UUID_VECTOR, Uuid, 8)
197     TEST_FIELD_OFFSET(UUID_VECTOR, Uuid, 8)
198 }
199 
200 static void test_pack_PRPC_CLIENT_INTERFACE(void)
201 {
202     /* PRPC_CLIENT_INTERFACE */
203     TEST_TYPE_SIZE   (PRPC_CLIENT_INTERFACE, 8)
204     TEST_TYPE_ALIGN  (PRPC_CLIENT_INTERFACE, 8)
205     TEST_TARGET_SIZE (PRPC_CLIENT_INTERFACE, 96)
206     TEST_TARGET_ALIGN(PRPC_CLIENT_INTERFACE, 8)
207 }
208 
209 static void test_pack_PRPC_DISPATCH_TABLE(void)
210 {
211     /* PRPC_DISPATCH_TABLE */
212     TEST_TYPE_SIZE   (PRPC_DISPATCH_TABLE, 8)
213     TEST_TYPE_ALIGN  (PRPC_DISPATCH_TABLE, 8)
214     TEST_TARGET_SIZE (PRPC_DISPATCH_TABLE, 24)
215     TEST_TARGET_ALIGN(PRPC_DISPATCH_TABLE, 8)
216 }
217 
218 static void test_pack_PRPC_MESSAGE(void)
219 {
220     /* PRPC_MESSAGE */
221     TEST_TYPE_SIZE   (PRPC_MESSAGE, 8)
222     TEST_TYPE_ALIGN  (PRPC_MESSAGE, 8)
223     TEST_TARGET_SIZE (PRPC_MESSAGE, 80)
224     TEST_TARGET_ALIGN(PRPC_MESSAGE, 8)
225 }
226 
227 static void test_pack_PRPC_PROTSEQ_ENDPOINT(void)
228 {
229     /* PRPC_PROTSEQ_ENDPOINT */
230     TEST_TYPE_SIZE   (PRPC_PROTSEQ_ENDPOINT, 8)
231     TEST_TYPE_ALIGN  (PRPC_PROTSEQ_ENDPOINT, 8)
232     TEST_TARGET_SIZE (PRPC_PROTSEQ_ENDPOINT, 16)
233     TEST_TARGET_ALIGN(PRPC_PROTSEQ_ENDPOINT, 8)
234 }
235 
236 static void test_pack_PRPC_SERVER_INTERFACE(void)
237 {
238     /* PRPC_SERVER_INTERFACE */
239     TEST_TYPE_SIZE   (PRPC_SERVER_INTERFACE, 8)
240     TEST_TYPE_ALIGN  (PRPC_SERVER_INTERFACE, 8)
241     TEST_TARGET_SIZE (PRPC_SERVER_INTERFACE, 96)
242     TEST_TARGET_ALIGN(PRPC_SERVER_INTERFACE, 8)
243 }
244 
245 static void test_pack_PRPC_SYNTAX_IDENTIFIER(void)
246 {
247     /* PRPC_SYNTAX_IDENTIFIER */
248     TEST_TYPE_SIZE   (PRPC_SYNTAX_IDENTIFIER, 8)
249     TEST_TYPE_ALIGN  (PRPC_SYNTAX_IDENTIFIER, 8)
250     TEST_TARGET_SIZE (PRPC_SYNTAX_IDENTIFIER, 20)
251     TEST_TARGET_ALIGN(PRPC_SYNTAX_IDENTIFIER, 4)
252 }
253 
254 static void test_pack_RPC_CLIENT_INTERFACE(void)
255 {
256     /* RPC_CLIENT_INTERFACE */
257     TEST_TYPE_SIZE   (RPC_CLIENT_INTERFACE, 96)
258     TEST_TYPE_ALIGN  (RPC_CLIENT_INTERFACE, 8)
259     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, Length, 4)
260     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Length, 4)
261     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Length, 0)
262     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, InterfaceId, 20)
263     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, InterfaceId, 4)
264     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, InterfaceId, 4)
265     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, TransferSyntax, 20)
266     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, TransferSyntax, 4)
267     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, TransferSyntax, 24)
268     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, DispatchTable, 8)
269     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, DispatchTable, 8)
270     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, DispatchTable, 48)
271     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 4)
272     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 4)
273     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 56)
274     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 8)
275     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 8)
276     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 64)
277     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, Reserved, 8)
278     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Reserved, 8)
279     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Reserved, 72)
280     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, InterpreterInfo, 8)
281     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, InterpreterInfo, 8)
282     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, InterpreterInfo, 80)
283     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, Flags, 4)
284     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Flags, 4)
285     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Flags, 88)
286 }
287 
288 static void test_pack_RPC_DISPATCH_FUNCTION(void)
289 {
290     /* RPC_DISPATCH_FUNCTION */
291 }
292 
293 static void test_pack_RPC_DISPATCH_TABLE(void)
294 {
295     /* RPC_DISPATCH_TABLE */
296     TEST_TYPE_SIZE   (RPC_DISPATCH_TABLE, 24)
297     TEST_TYPE_ALIGN  (RPC_DISPATCH_TABLE, 8)
298     TEST_FIELD_SIZE  (RPC_DISPATCH_TABLE, DispatchTableCount, 4)
299     TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, DispatchTableCount, 4)
300     TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, DispatchTableCount, 0)
301     TEST_FIELD_SIZE  (RPC_DISPATCH_TABLE, DispatchTable, 8)
302     TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, DispatchTable, 8)
303     TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, DispatchTable, 8)
304     TEST_FIELD_SIZE  (RPC_DISPATCH_TABLE, Reserved, 8)
305     TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, Reserved, 8)
306     TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, Reserved, 16)
307 }
308 
309 static void test_pack_RPC_MESSAGE(void)
310 {
311     /* RPC_MESSAGE */
312     TEST_TYPE_SIZE   (RPC_MESSAGE, 80)
313     TEST_TYPE_ALIGN  (RPC_MESSAGE, 8)
314     TEST_FIELD_SIZE  (RPC_MESSAGE, Handle, 8)
315     TEST_FIELD_ALIGN (RPC_MESSAGE, Handle, 8)
316     TEST_FIELD_OFFSET(RPC_MESSAGE, Handle, 0)
317     TEST_FIELD_SIZE  (RPC_MESSAGE, DataRepresentation, 4)
318     TEST_FIELD_ALIGN (RPC_MESSAGE, DataRepresentation, 4)
319     TEST_FIELD_OFFSET(RPC_MESSAGE, DataRepresentation, 8)
320     TEST_FIELD_SIZE  (RPC_MESSAGE, Buffer, 8)
321     TEST_FIELD_ALIGN (RPC_MESSAGE, Buffer, 8)
322     TEST_FIELD_OFFSET(RPC_MESSAGE, Buffer, 16)
323     TEST_FIELD_SIZE  (RPC_MESSAGE, BufferLength, 4)
324     TEST_FIELD_ALIGN (RPC_MESSAGE, BufferLength, 4)
325     TEST_FIELD_OFFSET(RPC_MESSAGE, BufferLength, 24)
326     TEST_FIELD_SIZE  (RPC_MESSAGE, ProcNum, 4)
327     TEST_FIELD_ALIGN (RPC_MESSAGE, ProcNum, 4)
328     TEST_FIELD_OFFSET(RPC_MESSAGE, ProcNum, 28)
329     TEST_FIELD_SIZE  (RPC_MESSAGE, TransferSyntax, 8)
330     TEST_FIELD_ALIGN (RPC_MESSAGE, TransferSyntax, 8)
331     TEST_FIELD_OFFSET(RPC_MESSAGE, TransferSyntax, 32)
332     TEST_FIELD_SIZE  (RPC_MESSAGE, RpcInterfaceInformation, 8)
333     TEST_FIELD_ALIGN (RPC_MESSAGE, RpcInterfaceInformation, 8)
334     TEST_FIELD_OFFSET(RPC_MESSAGE, RpcInterfaceInformation, 40)
335     TEST_FIELD_SIZE  (RPC_MESSAGE, ReservedForRuntime, 8)
336     TEST_FIELD_ALIGN (RPC_MESSAGE, ReservedForRuntime, 8)
337     TEST_FIELD_OFFSET(RPC_MESSAGE, ReservedForRuntime, 48)
338     TEST_FIELD_SIZE  (RPC_MESSAGE, ManagerEpv, 8)
339     TEST_FIELD_ALIGN (RPC_MESSAGE, ManagerEpv, 8)
340     TEST_FIELD_OFFSET(RPC_MESSAGE, ManagerEpv, 56)
341     TEST_FIELD_SIZE  (RPC_MESSAGE, ImportContext, 8)
342     TEST_FIELD_ALIGN (RPC_MESSAGE, ImportContext, 8)
343     TEST_FIELD_OFFSET(RPC_MESSAGE, ImportContext, 64)
344     TEST_FIELD_SIZE  (RPC_MESSAGE, RpcFlags, 4)
345     TEST_FIELD_ALIGN (RPC_MESSAGE, RpcFlags, 4)
346     TEST_FIELD_OFFSET(RPC_MESSAGE, RpcFlags, 72)
347 }
348 
349 static void test_pack_RPC_PROTSEQ_ENDPOINT(void)
350 {
351     /* RPC_PROTSEQ_ENDPOINT */
352     TEST_TYPE_SIZE   (RPC_PROTSEQ_ENDPOINT, 16)
353     TEST_TYPE_ALIGN  (RPC_PROTSEQ_ENDPOINT, 8)
354     TEST_FIELD_SIZE  (RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 8)
355     TEST_FIELD_ALIGN (RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 8)
356     TEST_FIELD_OFFSET(RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 0)
357     TEST_FIELD_SIZE  (RPC_PROTSEQ_ENDPOINT, Endpoint, 8)
358     TEST_FIELD_ALIGN (RPC_PROTSEQ_ENDPOINT, Endpoint, 8)
359     TEST_FIELD_OFFSET(RPC_PROTSEQ_ENDPOINT, Endpoint, 8)
360 }
361 
362 static void test_pack_RPC_SERVER_INTERFACE(void)
363 {
364     /* RPC_SERVER_INTERFACE */
365     TEST_TYPE_SIZE   (RPC_SERVER_INTERFACE, 96)
366     TEST_TYPE_ALIGN  (RPC_SERVER_INTERFACE, 8)
367     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, Length, 4)
368     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, Length, 4)
369     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, Length, 0)
370     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, InterfaceId, 20)
371     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, InterfaceId, 4)
372     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, InterfaceId, 4)
373     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, TransferSyntax, 20)
374     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, TransferSyntax, 4)
375     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, TransferSyntax, 24)
376     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, DispatchTable, 8)
377     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, DispatchTable, 8)
378     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, DispatchTable, 48)
379     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 4)
380     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 4)
381     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 56)
382     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 8)
383     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 8)
384     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 64)
385     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, DefaultManagerEpv, 8)
386     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, DefaultManagerEpv, 8)
387     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, DefaultManagerEpv, 72)
388     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, InterpreterInfo, 8)
389     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, InterpreterInfo, 8)
390     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, InterpreterInfo, 80)
391     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, Flags, 4)
392     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, Flags, 4)
393     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, Flags, 88)
394 }
395 
396 static void test_pack_RPC_SYNTAX_IDENTIFIER(void)
397 {
398     /* RPC_SYNTAX_IDENTIFIER */
399     TEST_TYPE_SIZE   (RPC_SYNTAX_IDENTIFIER, 20)
400     TEST_TYPE_ALIGN  (RPC_SYNTAX_IDENTIFIER, 4)
401     TEST_FIELD_SIZE  (RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 16)
402     TEST_FIELD_ALIGN (RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 4)
403     TEST_FIELD_OFFSET(RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 0)
404     TEST_FIELD_SIZE  (RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 4)
405     TEST_FIELD_ALIGN (RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 2)
406     TEST_FIELD_OFFSET(RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 16)
407 }
408 
409 static void test_pack_RPC_VERSION(void)
410 {
411     /* RPC_VERSION */
412     TEST_TYPE_SIZE   (RPC_VERSION, 4)
413     TEST_TYPE_ALIGN  (RPC_VERSION, 2)
414     TEST_FIELD_SIZE  (RPC_VERSION, MajorVersion, 2)
415     TEST_FIELD_ALIGN (RPC_VERSION, MajorVersion, 2)
416     TEST_FIELD_OFFSET(RPC_VERSION, MajorVersion, 0)
417     TEST_FIELD_SIZE  (RPC_VERSION, MinorVersion, 2)
418     TEST_FIELD_ALIGN (RPC_VERSION, MinorVersion, 2)
419     TEST_FIELD_OFFSET(RPC_VERSION, MinorVersion, 2)
420 }
421 
422 static void test_pack_ARRAY_INFO(void)
423 {
424     /* ARRAY_INFO */
425     TEST_TYPE_SIZE   (ARRAY_INFO, 48)
426     TEST_TYPE_ALIGN  (ARRAY_INFO, 8)
427     TEST_FIELD_SIZE  (ARRAY_INFO, Dimension, 4)
428     TEST_FIELD_ALIGN (ARRAY_INFO, Dimension, 4)
429     TEST_FIELD_OFFSET(ARRAY_INFO, Dimension, 0)
430     TEST_FIELD_SIZE  (ARRAY_INFO, BufferConformanceMark, 8)
431     TEST_FIELD_ALIGN (ARRAY_INFO, BufferConformanceMark, 8)
432     TEST_FIELD_OFFSET(ARRAY_INFO, BufferConformanceMark, 8)
433     TEST_FIELD_SIZE  (ARRAY_INFO, BufferVarianceMark, 8)
434     TEST_FIELD_ALIGN (ARRAY_INFO, BufferVarianceMark, 8)
435     TEST_FIELD_OFFSET(ARRAY_INFO, BufferVarianceMark, 16)
436     TEST_FIELD_SIZE  (ARRAY_INFO, MaxCountArray, 8)
437     TEST_FIELD_ALIGN (ARRAY_INFO, MaxCountArray, 8)
438     TEST_FIELD_OFFSET(ARRAY_INFO, MaxCountArray, 24)
439     TEST_FIELD_SIZE  (ARRAY_INFO, OffsetArray, 8)
440     TEST_FIELD_ALIGN (ARRAY_INFO, OffsetArray, 8)
441     TEST_FIELD_OFFSET(ARRAY_INFO, OffsetArray, 32)
442     TEST_FIELD_SIZE  (ARRAY_INFO, ActualCountArray, 8)
443     TEST_FIELD_ALIGN (ARRAY_INFO, ActualCountArray, 8)
444     TEST_FIELD_OFFSET(ARRAY_INFO, ActualCountArray, 40)
445 }
446 
447 static void test_pack_COMM_FAULT_OFFSETS(void)
448 {
449     /* COMM_FAULT_OFFSETS */
450     TEST_TYPE_SIZE   (COMM_FAULT_OFFSETS, 4)
451     TEST_TYPE_ALIGN  (COMM_FAULT_OFFSETS, 2)
452     TEST_FIELD_SIZE  (COMM_FAULT_OFFSETS, CommOffset, 2)
453     TEST_FIELD_ALIGN (COMM_FAULT_OFFSETS, CommOffset, 2)
454     TEST_FIELD_OFFSET(COMM_FAULT_OFFSETS, CommOffset, 0)
455     TEST_FIELD_SIZE  (COMM_FAULT_OFFSETS, FaultOffset, 2)
456     TEST_FIELD_ALIGN (COMM_FAULT_OFFSETS, FaultOffset, 2)
457     TEST_FIELD_OFFSET(COMM_FAULT_OFFSETS, FaultOffset, 2)
458 }
459 
460 static void test_pack_CS_STUB_INFO(void)
461 {
462     /* CS_STUB_INFO */
463     TEST_TYPE_SIZE   (CS_STUB_INFO, 16)
464     TEST_TYPE_ALIGN  (CS_STUB_INFO, 8)
465     TEST_FIELD_SIZE  (CS_STUB_INFO, WireCodeset, 4)
466     TEST_FIELD_ALIGN (CS_STUB_INFO, WireCodeset, 4)
467     TEST_FIELD_OFFSET(CS_STUB_INFO, WireCodeset, 0)
468     TEST_FIELD_SIZE  (CS_STUB_INFO, DesiredReceivingCodeset, 4)
469     TEST_FIELD_ALIGN (CS_STUB_INFO, DesiredReceivingCodeset, 4)
470     TEST_FIELD_OFFSET(CS_STUB_INFO, DesiredReceivingCodeset, 4)
471     TEST_FIELD_SIZE  (CS_STUB_INFO, CSArrayInfo, 8)
472     TEST_FIELD_ALIGN (CS_STUB_INFO, CSArrayInfo, 8)
473     TEST_FIELD_OFFSET(CS_STUB_INFO, CSArrayInfo, 8)
474 }
475 
476 static void test_pack_EXPR_EVAL(void)
477 {
478     /* EXPR_EVAL */
479 }
480 
481 static void test_pack_FULL_PTR_TO_REFID_ELEMENT(void)
482 {
483     /* FULL_PTR_TO_REFID_ELEMENT */
484     TEST_TYPE_SIZE   (FULL_PTR_TO_REFID_ELEMENT, 24)
485     TEST_TYPE_ALIGN  (FULL_PTR_TO_REFID_ELEMENT, 8)
486     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, Next, 8)
487     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, Next, 8)
488     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, Next, 0)
489     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, Pointer, 8)
490     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, Pointer, 8)
491     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, Pointer, 8)
492     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, RefId, 4)
493     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, RefId, 4)
494     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, RefId, 16)
495     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, State, 1)
496     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, State, 1)
497     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, State, 20)
498 }
499 
500 static void test_pack_FULL_PTR_XLAT_TABLES(void)
501 {
502     /* FULL_PTR_XLAT_TABLES */
503 }
504 
505 static void test_pack_GENERIC_BINDING_INFO(void)
506 {
507     /* GENERIC_BINDING_INFO */
508     TEST_FIELD_SIZE  (GENERIC_BINDING_INFO, pObj, 8)
509     TEST_FIELD_ALIGN (GENERIC_BINDING_INFO, pObj, 8)
510     TEST_FIELD_OFFSET(GENERIC_BINDING_INFO, pObj, 0)
511     TEST_FIELD_SIZE  (GENERIC_BINDING_INFO, Size, 4)
512     TEST_FIELD_ALIGN (GENERIC_BINDING_INFO, Size, 4)
513     TEST_FIELD_OFFSET(GENERIC_BINDING_INFO, Size, 8)
514 }
515 
516 static void test_pack_GENERIC_BINDING_ROUTINE_PAIR(void)
517 {
518     /* GENERIC_BINDING_ROUTINE_PAIR */
519 }
520 
521 static void test_pack_MALLOC_FREE_STRUCT(void)
522 {
523     /* MALLOC_FREE_STRUCT */
524 }
525 
526 static void test_pack_MIDL_FORMAT_STRING(void)
527 {
528     /* MIDL_FORMAT_STRING */
529     TEST_FIELD_SIZE  (MIDL_FORMAT_STRING, Pad, 2)
530     TEST_FIELD_ALIGN (MIDL_FORMAT_STRING, Pad, 2)
531     TEST_FIELD_OFFSET(MIDL_FORMAT_STRING, Pad, 0)
532 }
533 
534 static void test_pack_MIDL_SERVER_INFO(void)
535 {
536     /* MIDL_SERVER_INFO */
537     TEST_TYPE_SIZE   (MIDL_SERVER_INFO, 64)
538     TEST_TYPE_ALIGN  (MIDL_SERVER_INFO, 8)
539     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, pStubDesc, 8)
540     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pStubDesc, 8)
541     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pStubDesc, 0)
542     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, DispatchTable, 8)
543     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, DispatchTable, 8)
544     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, DispatchTable, 8)
545     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, ProcString, 8)
546     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, ProcString, 8)
547     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, ProcString, 16)
548     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, FmtStringOffset, 8)
549     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, FmtStringOffset, 8)
550     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, FmtStringOffset, 24)
551     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, ThunkTable, 8)
552     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, ThunkTable, 8)
553     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, ThunkTable, 32)
554     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, pTransferSyntax, 8)
555     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pTransferSyntax, 8)
556     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pTransferSyntax, 40)
557     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, nCount, 8)
558     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, nCount, 8)
559     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, nCount, 48)
560     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, pSyntaxInfo, 8)
561     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pSyntaxInfo, 8)
562     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pSyntaxInfo, 56)
563 }
564 
565 static void test_pack_MIDL_STUB_DESC(void)
566 {
567     /* MIDL_STUB_DESC */
568     TEST_FIELD_SIZE  (MIDL_STUB_DESC, RpcInterfaceInformation, 8)
569     TEST_FIELD_ALIGN (MIDL_STUB_DESC, RpcInterfaceInformation, 8)
570     TEST_FIELD_OFFSET(MIDL_STUB_DESC, RpcInterfaceInformation, 0)
571 }
572 
573 static void test_pack_MIDL_STUB_MESSAGE(void)
574 {
575     /* MIDL_STUB_MESSAGE */
576     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, RpcMsg, 8)
577     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, RpcMsg, 8)
578     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, RpcMsg, 0)
579     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, Buffer, 8)
580     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Buffer, 8)
581     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Buffer, 8)
582     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferStart, 8)
583     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferStart, 8)
584     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferStart, 16)
585     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferEnd, 8)
586     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferEnd, 8)
587     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferEnd, 24)
588     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferMark, 8)
589     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferMark, 8)
590     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferMark, 32)
591     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferLength, 4)
592     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferLength, 4)
593     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferLength, 40)
594     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, MemorySize, 4)
595     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, MemorySize, 4)
596     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, MemorySize, 44)
597     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, Memory, 8)
598     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Memory, 8)
599     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Memory, 48)
600     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, ReuseBuffer, 4)
601     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, ReuseBuffer, 4)
602     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, ReuseBuffer, 60)
603     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, pAllocAllNodesContext, 8)
604     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, pAllocAllNodesContext, 8)
605     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, pAllocAllNodesContext, 64)
606     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, pPointerQueueState, 8)
607     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, pPointerQueueState, 8)
608     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, pPointerQueueState, 72)
609     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 4)
610     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 4)
611     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 80)
612     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, PointerBufferMark, 8)
613     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, PointerBufferMark, 8)
614     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, PointerBufferMark, 88)
615     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, CorrDespIncrement, 1)
616     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, CorrDespIncrement, 1)
617     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, CorrDespIncrement, 96)
618     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, uFlags, 1)
619     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, uFlags, 1)
620     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, uFlags, 97)
621     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, MaxCount, 8)
622     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, MaxCount, 8)
623     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, MaxCount, 104)
624     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, Offset, 4)
625     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Offset, 4)
626     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Offset, 112)
627     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, ActualCount, 4)
628     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, ActualCount, 4)
629     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, ActualCount, 116)
630 }
631 
632 static void test_pack_MIDL_STUBLESS_PROXY_INFO(void)
633 {
634     /* MIDL_STUBLESS_PROXY_INFO */
635     TEST_TYPE_SIZE   (MIDL_STUBLESS_PROXY_INFO, 48)
636     TEST_TYPE_ALIGN  (MIDL_STUBLESS_PROXY_INFO, 8)
637     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, pStubDesc, 8)
638     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pStubDesc, 8)
639     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pStubDesc, 0)
640     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 8)
641     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 8)
642     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 8)
643     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 8)
644     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 8)
645     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 16)
646     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 8)
647     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 8)
648     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 24)
649     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, nCount, 8)
650     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, nCount, 8)
651     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, nCount, 32)
652     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 8)
653     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 8)
654     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 40)
655 }
656 
657 static void test_pack_MIDL_SYNTAX_INFO(void)
658 {
659     /* MIDL_SYNTAX_INFO */
660     TEST_TYPE_SIZE   (MIDL_SYNTAX_INFO, 80)
661     TEST_TYPE_ALIGN  (MIDL_SYNTAX_INFO, 8)
662     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, TransferSyntax, 20)
663     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, TransferSyntax, 4)
664     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, TransferSyntax, 0)
665     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, DispatchTable, 8)
666     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, DispatchTable, 8)
667     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, DispatchTable, 24)
668     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, ProcString, 8)
669     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, ProcString, 8)
670     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, ProcString, 32)
671     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, FmtStringOffset, 8)
672     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, FmtStringOffset, 8)
673     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, FmtStringOffset, 40)
674     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, TypeString, 8)
675     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, TypeString, 8)
676     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, TypeString, 48)
677     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 8)
678     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 8)
679     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 56)
680     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, pReserved1, 8)
681     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, pReserved1, 8)
682     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, pReserved1, 64)
683     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, pReserved2, 8)
684     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, pReserved2, 8)
685     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, pReserved2, 72)
686 }
687 
688 static void test_pack_NDR_CCONTEXT(void)
689 {
690     /* NDR_CCONTEXT */
691     TEST_TYPE_SIZE   (NDR_CCONTEXT, 8)
692     TEST_TYPE_ALIGN  (NDR_CCONTEXT, 8)
693 }
694 
695 static void test_pack_NDR_NOTIFY_ROUTINE(void)
696 {
697     /* NDR_NOTIFY_ROUTINE */
698 }
699 
700 static void test_pack_NDR_NOTIFY2_ROUTINE(void)
701 {
702     /* NDR_NOTIFY2_ROUTINE */
703 }
704 
705 static void test_pack_NDR_RUNDOWN(void)
706 {
707     /* NDR_RUNDOWN */
708 }
709 
710 static void test_pack_NDR_SCONTEXT(void)
711 {
712     /* NDR_SCONTEXT */
713     TEST_TYPE_SIZE   (NDR_SCONTEXT, 8)
714     TEST_TYPE_ALIGN  (NDR_SCONTEXT, 8)
715 }
716 
717 static void test_pack_NDR_USER_MARSHAL_INFO(void)
718 {
719     /* NDR_USER_MARSHAL_INFO */
720     TEST_FIELD_SIZE  (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
721     TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
722     TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO, InformationLevel, 0)
723 }
724 
725 static void test_pack_NDR_USER_MARSHAL_INFO_LEVEL1(void)
726 {
727     /* NDR_USER_MARSHAL_INFO_LEVEL1 */
728     TEST_FIELD_SIZE  (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 8)
729     TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 8)
730     TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 0)
731     TEST_FIELD_SIZE  (NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 4)
732     TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 4)
733     TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 8)
734 }
735 
736 static void test_pack_PARRAY_INFO(void)
737 {
738     /* PARRAY_INFO */
739     TEST_TYPE_SIZE   (PARRAY_INFO, 8)
740     TEST_TYPE_ALIGN  (PARRAY_INFO, 8)
741     TEST_TARGET_SIZE (PARRAY_INFO, 48)
742     TEST_TARGET_ALIGN(PARRAY_INFO, 8)
743 }
744 
745 static void test_pack_PFORMAT_STRING(void)
746 {
747     /* PFORMAT_STRING */
748     TEST_TYPE_SIZE   (PFORMAT_STRING, 8)
749     TEST_TYPE_ALIGN  (PFORMAT_STRING, 8)
750 }
751 
752 static void test_pack_PFULL_PTR_TO_REFID_ELEMENT(void)
753 {
754     /* PFULL_PTR_TO_REFID_ELEMENT */
755     TEST_TYPE_SIZE   (PFULL_PTR_TO_REFID_ELEMENT, 8)
756     TEST_TYPE_ALIGN  (PFULL_PTR_TO_REFID_ELEMENT, 8)
757     TEST_TARGET_SIZE (PFULL_PTR_TO_REFID_ELEMENT, 24)
758     TEST_TARGET_ALIGN(PFULL_PTR_TO_REFID_ELEMENT, 8)
759 }
760 
761 static void test_pack_PFULL_PTR_XLAT_TABLES(void)
762 {
763     /* PFULL_PTR_XLAT_TABLES */
764     TEST_TYPE_SIZE   (PFULL_PTR_XLAT_TABLES, 8)
765     TEST_TYPE_ALIGN  (PFULL_PTR_XLAT_TABLES, 8)
766 }
767 
768 static void test_pack_PGENERIC_BINDING_INFO(void)
769 {
770     /* PGENERIC_BINDING_INFO */
771     TEST_TYPE_SIZE   (PGENERIC_BINDING_INFO, 8)
772     TEST_TYPE_ALIGN  (PGENERIC_BINDING_INFO, 8)
773 }
774 
775 static void test_pack_PGENERIC_BINDING_ROUTINE_PAIR(void)
776 {
777     /* PGENERIC_BINDING_ROUTINE_PAIR */
778     TEST_TYPE_SIZE   (PGENERIC_BINDING_ROUTINE_PAIR, 8)
779     TEST_TYPE_ALIGN  (PGENERIC_BINDING_ROUTINE_PAIR, 8)
780 }
781 
782 static void test_pack_PMIDL_SERVER_INFO(void)
783 {
784     /* PMIDL_SERVER_INFO */
785     TEST_TYPE_SIZE   (PMIDL_SERVER_INFO, 8)
786     TEST_TYPE_ALIGN  (PMIDL_SERVER_INFO, 8)
787     TEST_TARGET_SIZE (PMIDL_SERVER_INFO, 64)
788     TEST_TARGET_ALIGN(PMIDL_SERVER_INFO, 8)
789 }
790 
791 static void test_pack_PMIDL_STUB_DESC(void)
792 {
793     /* PMIDL_STUB_DESC */
794     TEST_TYPE_SIZE   (PMIDL_STUB_DESC, 8)
795     TEST_TYPE_ALIGN  (PMIDL_STUB_DESC, 8)
796 }
797 
798 static void test_pack_PMIDL_STUB_MESSAGE(void)
799 {
800     /* PMIDL_STUB_MESSAGE */
801     TEST_TYPE_SIZE   (PMIDL_STUB_MESSAGE, 8)
802     TEST_TYPE_ALIGN  (PMIDL_STUB_MESSAGE, 8)
803 }
804 
805 static void test_pack_PMIDL_STUBLESS_PROXY_INFO(void)
806 {
807     /* PMIDL_STUBLESS_PROXY_INFO */
808     TEST_TYPE_SIZE   (PMIDL_STUBLESS_PROXY_INFO, 8)
809     TEST_TYPE_ALIGN  (PMIDL_STUBLESS_PROXY_INFO, 8)
810     TEST_TARGET_SIZE (PMIDL_STUBLESS_PROXY_INFO, 48)
811     TEST_TARGET_ALIGN(PMIDL_STUBLESS_PROXY_INFO, 8)
812 }
813 
814 static void test_pack_PMIDL_SYNTAX_INFO(void)
815 {
816     /* PMIDL_SYNTAX_INFO */
817     TEST_TYPE_SIZE   (PMIDL_SYNTAX_INFO, 8)
818     TEST_TYPE_ALIGN  (PMIDL_SYNTAX_INFO, 8)
819     TEST_TARGET_SIZE (PMIDL_SYNTAX_INFO, 80)
820     TEST_TARGET_ALIGN(PMIDL_SYNTAX_INFO, 8)
821 }
822 
823 static void test_pack_PNDR_ASYNC_MESSAGE(void)
824 {
825     /* PNDR_ASYNC_MESSAGE */
826     TEST_TYPE_SIZE   (PNDR_ASYNC_MESSAGE, 8)
827     TEST_TYPE_ALIGN  (PNDR_ASYNC_MESSAGE, 8)
828 }
829 
830 static void test_pack_PNDR_CORRELATION_INFO(void)
831 {
832     /* PNDR_CORRELATION_INFO */
833     TEST_TYPE_SIZE   (PNDR_CORRELATION_INFO, 8)
834     TEST_TYPE_ALIGN  (PNDR_CORRELATION_INFO, 8)
835 }
836 
837 static void test_pack_PSCONTEXT_QUEUE(void)
838 {
839     /* PSCONTEXT_QUEUE */
840     TEST_TYPE_SIZE   (PSCONTEXT_QUEUE, 8)
841     TEST_TYPE_ALIGN  (PSCONTEXT_QUEUE, 8)
842     TEST_TARGET_SIZE (PSCONTEXT_QUEUE, 16)
843     TEST_TARGET_ALIGN(PSCONTEXT_QUEUE, 8)
844 }
845 
846 static void test_pack_PXMIT_ROUTINE_QUINTUPLE(void)
847 {
848     /* PXMIT_ROUTINE_QUINTUPLE */
849     TEST_TYPE_SIZE   (PXMIT_ROUTINE_QUINTUPLE, 8)
850     TEST_TYPE_ALIGN  (PXMIT_ROUTINE_QUINTUPLE, 8)
851 }
852 
853 static void test_pack_SCONTEXT_QUEUE(void)
854 {
855     /* SCONTEXT_QUEUE */
856     TEST_TYPE_SIZE   (SCONTEXT_QUEUE, 16)
857     TEST_TYPE_ALIGN  (SCONTEXT_QUEUE, 8)
858     TEST_FIELD_SIZE  (SCONTEXT_QUEUE, NumberOfObjects, 4)
859     TEST_FIELD_ALIGN (SCONTEXT_QUEUE, NumberOfObjects, 4)
860     TEST_FIELD_OFFSET(SCONTEXT_QUEUE, NumberOfObjects, 0)
861     TEST_FIELD_SIZE  (SCONTEXT_QUEUE, ArrayOfObjects, 8)
862     TEST_FIELD_ALIGN (SCONTEXT_QUEUE, ArrayOfObjects, 8)
863     TEST_FIELD_OFFSET(SCONTEXT_QUEUE, ArrayOfObjects, 8)
864 }
865 
866 static void test_pack_SERVER_ROUTINE(void)
867 {
868     /* SERVER_ROUTINE */
869 }
870 
871 static void test_pack_STUB_THUNK(void)
872 {
873     /* STUB_THUNK */
874 }
875 
876 static void test_pack_USER_MARSHAL_CB(void)
877 {
878     /* USER_MARSHAL_CB */
879     TEST_FIELD_SIZE  (USER_MARSHAL_CB, Flags, 4)
880     TEST_FIELD_ALIGN (USER_MARSHAL_CB, Flags, 4)
881     TEST_FIELD_OFFSET(USER_MARSHAL_CB, Flags, 0)
882     TEST_FIELD_SIZE  (USER_MARSHAL_CB, pStubMsg, 8)
883     TEST_FIELD_ALIGN (USER_MARSHAL_CB, pStubMsg, 8)
884     TEST_FIELD_OFFSET(USER_MARSHAL_CB, pStubMsg, 8)
885     TEST_FIELD_SIZE  (USER_MARSHAL_CB, pReserve, 8)
886     TEST_FIELD_ALIGN (USER_MARSHAL_CB, pReserve, 8)
887     TEST_FIELD_OFFSET(USER_MARSHAL_CB, pReserve, 16)
888     TEST_FIELD_SIZE  (USER_MARSHAL_CB, Signature, 4)
889     TEST_FIELD_ALIGN (USER_MARSHAL_CB, Signature, 4)
890     TEST_FIELD_OFFSET(USER_MARSHAL_CB, Signature, 24)
891 }
892 
893 static void test_pack_USER_MARSHAL_FREEING_ROUTINE(void)
894 {
895     /* USER_MARSHAL_FREEING_ROUTINE */
896 }
897 
898 static void test_pack_USER_MARSHAL_MARSHALLING_ROUTINE(void)
899 {
900     /* USER_MARSHAL_MARSHALLING_ROUTINE */
901 }
902 
903 static void test_pack_USER_MARSHAL_ROUTINE_QUADRUPLE(void)
904 {
905     /* USER_MARSHAL_ROUTINE_QUADRUPLE */
906 }
907 
908 static void test_pack_USER_MARSHAL_SIZING_ROUTINE(void)
909 {
910     /* USER_MARSHAL_SIZING_ROUTINE */
911 }
912 
913 static void test_pack_USER_MARSHAL_UNMARSHALLING_ROUTINE(void)
914 {
915     /* USER_MARSHAL_UNMARSHALLING_ROUTINE */
916 }
917 
918 static void test_pack_XMIT_HELPER_ROUTINE(void)
919 {
920     /* XMIT_HELPER_ROUTINE */
921 }
922 
923 static void test_pack_XMIT_ROUTINE_QUINTUPLE(void)
924 {
925     /* XMIT_ROUTINE_QUINTUPLE */
926 }
927 
928 static void test_pack_PRPC_STUB_FUNCTION(void)
929 {
930     /* PRPC_STUB_FUNCTION */
931 }
932 
933 #else /* _WIN64 */
934 
935 static void test_pack_I_RPC_HANDLE(void)
936 {
937     /* I_RPC_HANDLE */
938     TEST_TYPE_SIZE   (I_RPC_HANDLE, 4)
939     TEST_TYPE_ALIGN  (I_RPC_HANDLE, 4)
940 }
941 
942 static void test_pack_RPC_STATUS(void)
943 {
944     /* RPC_STATUS */
945     TEST_TYPE_SIZE   (RPC_STATUS, 4)
946     TEST_TYPE_ALIGN  (RPC_STATUS, 4)
947 }
948 
949 static void test_pack_PRPC_POLICY(void)
950 {
951     /* PRPC_POLICY */
952     TEST_TYPE_SIZE   (PRPC_POLICY, 4)
953     TEST_TYPE_ALIGN  (PRPC_POLICY, 4)
954     TEST_TARGET_SIZE (PRPC_POLICY, 12)
955     TEST_TARGET_ALIGN(PRPC_POLICY, 4)
956 }
957 
958 static void test_pack_RPC_AUTH_IDENTITY_HANDLE(void)
959 {
960     /* RPC_AUTH_IDENTITY_HANDLE */
961     TEST_TYPE_SIZE   (RPC_AUTH_IDENTITY_HANDLE, 4)
962     TEST_TYPE_ALIGN  (RPC_AUTH_IDENTITY_HANDLE, 4)
963 }
964 
965 static void test_pack_RPC_AUTH_KEY_RETRIEVAL_FN(void)
966 {
967     /* RPC_AUTH_KEY_RETRIEVAL_FN */
968 }
969 
970 static void test_pack_RPC_AUTHZ_HANDLE(void)
971 {
972     /* RPC_AUTHZ_HANDLE */
973     TEST_TYPE_SIZE   (RPC_AUTHZ_HANDLE, 4)
974     TEST_TYPE_ALIGN  (RPC_AUTHZ_HANDLE, 4)
975 }
976 
977 static void test_pack_RPC_BINDING_HANDLE(void)
978 {
979     /* RPC_BINDING_HANDLE */
980     TEST_TYPE_SIZE   (RPC_BINDING_HANDLE, 4)
981     TEST_TYPE_ALIGN  (RPC_BINDING_HANDLE, 4)
982 }
983 
984 static void test_pack_RPC_BINDING_VECTOR(void)
985 {
986     /* RPC_BINDING_VECTOR */
987     TEST_TYPE_SIZE   (RPC_BINDING_VECTOR, 8)
988     TEST_TYPE_ALIGN  (RPC_BINDING_VECTOR, 4)
989     TEST_FIELD_SIZE  (RPC_BINDING_VECTOR, Count, 4)
990     TEST_FIELD_ALIGN (RPC_BINDING_VECTOR, Count, 4)
991     TEST_FIELD_OFFSET(RPC_BINDING_VECTOR, Count, 0)
992     TEST_FIELD_SIZE  (RPC_BINDING_VECTOR, BindingH, 4)
993     TEST_FIELD_ALIGN (RPC_BINDING_VECTOR, BindingH, 4)
994     TEST_FIELD_OFFSET(RPC_BINDING_VECTOR, BindingH, 4)
995 }
996 
997 static void test_pack_RPC_IF_HANDLE(void)
998 {
999     /* RPC_IF_HANDLE */
1000     TEST_TYPE_SIZE   (RPC_IF_HANDLE, 4)
1001     TEST_TYPE_ALIGN  (RPC_IF_HANDLE, 4)
1002 }
1003 
1004 static void test_pack_RPC_IF_ID(void)
1005 {
1006     /* RPC_IF_ID */
1007     TEST_TYPE_SIZE   (RPC_IF_ID, 20)
1008     TEST_TYPE_ALIGN  (RPC_IF_ID, 4)
1009     TEST_FIELD_SIZE  (RPC_IF_ID, Uuid, 16)
1010     TEST_FIELD_ALIGN (RPC_IF_ID, Uuid, 4)
1011     TEST_FIELD_OFFSET(RPC_IF_ID, Uuid, 0)
1012     TEST_FIELD_SIZE  (RPC_IF_ID, VersMajor, 2)
1013     TEST_FIELD_ALIGN (RPC_IF_ID, VersMajor, 2)
1014     TEST_FIELD_OFFSET(RPC_IF_ID, VersMajor, 16)
1015     TEST_FIELD_SIZE  (RPC_IF_ID, VersMinor, 2)
1016     TEST_FIELD_ALIGN (RPC_IF_ID, VersMinor, 2)
1017     TEST_FIELD_OFFSET(RPC_IF_ID, VersMinor, 18)
1018 }
1019 
1020 static void test_pack_RPC_POLICY(void)
1021 {
1022     /* RPC_POLICY */
1023     TEST_TYPE_SIZE   (RPC_POLICY, 12)
1024     TEST_TYPE_ALIGN  (RPC_POLICY, 4)
1025     TEST_FIELD_SIZE  (RPC_POLICY, Length, 4)
1026     TEST_FIELD_ALIGN (RPC_POLICY, Length, 4)
1027     TEST_FIELD_OFFSET(RPC_POLICY, Length, 0)
1028     TEST_FIELD_SIZE  (RPC_POLICY, EndpointFlags, 4)
1029     TEST_FIELD_ALIGN (RPC_POLICY, EndpointFlags, 4)
1030     TEST_FIELD_OFFSET(RPC_POLICY, EndpointFlags, 4)
1031     TEST_FIELD_SIZE  (RPC_POLICY, NICFlags, 4)
1032     TEST_FIELD_ALIGN (RPC_POLICY, NICFlags, 4)
1033     TEST_FIELD_OFFSET(RPC_POLICY, NICFlags, 8)
1034 }
1035 
1036 static void test_pack_UUID_VECTOR(void)
1037 {
1038     /* UUID_VECTOR */
1039     TEST_TYPE_SIZE   (UUID_VECTOR, 8)
1040     TEST_TYPE_ALIGN  (UUID_VECTOR, 4)
1041     TEST_FIELD_SIZE  (UUID_VECTOR, Count, 4)
1042     TEST_FIELD_ALIGN (UUID_VECTOR, Count, 4)
1043     TEST_FIELD_OFFSET(UUID_VECTOR, Count, 0)
1044     TEST_FIELD_SIZE  (UUID_VECTOR, Uuid, 4)
1045     TEST_FIELD_ALIGN (UUID_VECTOR, Uuid, 4)
1046     TEST_FIELD_OFFSET(UUID_VECTOR, Uuid, 4)
1047 }
1048 
1049 static void test_pack_PRPC_CLIENT_INTERFACE(void)
1050 {
1051     /* PRPC_CLIENT_INTERFACE */
1052     TEST_TYPE_SIZE   (PRPC_CLIENT_INTERFACE, 4)
1053     TEST_TYPE_ALIGN  (PRPC_CLIENT_INTERFACE, 4)
1054     TEST_TARGET_SIZE (PRPC_CLIENT_INTERFACE, 68)
1055     TEST_TARGET_ALIGN(PRPC_CLIENT_INTERFACE, 4)
1056 }
1057 
1058 static void test_pack_PRPC_DISPATCH_TABLE(void)
1059 {
1060     /* PRPC_DISPATCH_TABLE */
1061     TEST_TYPE_SIZE   (PRPC_DISPATCH_TABLE, 4)
1062     TEST_TYPE_ALIGN  (PRPC_DISPATCH_TABLE, 4)
1063     TEST_TARGET_SIZE (PRPC_DISPATCH_TABLE, 12)
1064     TEST_TARGET_ALIGN(PRPC_DISPATCH_TABLE, 4)
1065 }
1066 
1067 static void test_pack_PRPC_MESSAGE(void)
1068 {
1069     /* PRPC_MESSAGE */
1070     TEST_TYPE_SIZE   (PRPC_MESSAGE, 4)
1071     TEST_TYPE_ALIGN  (PRPC_MESSAGE, 4)
1072     TEST_TARGET_SIZE (PRPC_MESSAGE, 44)
1073     TEST_TARGET_ALIGN(PRPC_MESSAGE, 4)
1074 }
1075 
1076 static void test_pack_PRPC_PROTSEQ_ENDPOINT(void)
1077 {
1078     /* PRPC_PROTSEQ_ENDPOINT */
1079     TEST_TYPE_SIZE   (PRPC_PROTSEQ_ENDPOINT, 4)
1080     TEST_TYPE_ALIGN  (PRPC_PROTSEQ_ENDPOINT, 4)
1081     TEST_TARGET_SIZE (PRPC_PROTSEQ_ENDPOINT, 8)
1082     TEST_TARGET_ALIGN(PRPC_PROTSEQ_ENDPOINT, 4)
1083 }
1084 
1085 static void test_pack_PRPC_SERVER_INTERFACE(void)
1086 {
1087     /* PRPC_SERVER_INTERFACE */
1088     TEST_TYPE_SIZE   (PRPC_SERVER_INTERFACE, 4)
1089     TEST_TYPE_ALIGN  (PRPC_SERVER_INTERFACE, 4)
1090     TEST_TARGET_SIZE (PRPC_SERVER_INTERFACE, 68)
1091     TEST_TARGET_ALIGN(PRPC_SERVER_INTERFACE, 4)
1092 }
1093 
1094 static void test_pack_PRPC_SYNTAX_IDENTIFIER(void)
1095 {
1096     /* PRPC_SYNTAX_IDENTIFIER */
1097     TEST_TYPE_SIZE   (PRPC_SYNTAX_IDENTIFIER, 4)
1098     TEST_TYPE_ALIGN  (PRPC_SYNTAX_IDENTIFIER, 4)
1099     TEST_TARGET_SIZE (PRPC_SYNTAX_IDENTIFIER, 20)
1100     TEST_TARGET_ALIGN(PRPC_SYNTAX_IDENTIFIER, 4)
1101 }
1102 
1103 static void test_pack_RPC_CLIENT_INTERFACE(void)
1104 {
1105     /* RPC_CLIENT_INTERFACE */
1106     TEST_TYPE_SIZE   (RPC_CLIENT_INTERFACE, 68)
1107     TEST_TYPE_ALIGN  (RPC_CLIENT_INTERFACE, 4)
1108     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, Length, 4)
1109     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Length, 4)
1110     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Length, 0)
1111     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, InterfaceId, 20)
1112     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, InterfaceId, 4)
1113     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, InterfaceId, 4)
1114     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, TransferSyntax, 20)
1115     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, TransferSyntax, 4)
1116     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, TransferSyntax, 24)
1117     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, DispatchTable, 4)
1118     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, DispatchTable, 4)
1119     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, DispatchTable, 44)
1120     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 4)
1121     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 4)
1122     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 48)
1123     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 4)
1124     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 4)
1125     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 52)
1126     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, Reserved, 4)
1127     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Reserved, 4)
1128     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Reserved, 56)
1129     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, InterpreterInfo, 4)
1130     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, InterpreterInfo, 4)
1131     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, InterpreterInfo, 60)
1132     TEST_FIELD_SIZE  (RPC_CLIENT_INTERFACE, Flags, 4)
1133     TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Flags, 4)
1134     TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Flags, 64)
1135 }
1136 
1137 static void test_pack_RPC_DISPATCH_FUNCTION(void)
1138 {
1139     /* RPC_DISPATCH_FUNCTION */
1140 }
1141 
1142 static void test_pack_RPC_DISPATCH_TABLE(void)
1143 {
1144     /* RPC_DISPATCH_TABLE */
1145     TEST_TYPE_SIZE   (RPC_DISPATCH_TABLE, 12)
1146     TEST_TYPE_ALIGN  (RPC_DISPATCH_TABLE, 4)
1147     TEST_FIELD_SIZE  (RPC_DISPATCH_TABLE, DispatchTableCount, 4)
1148     TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, DispatchTableCount, 4)
1149     TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, DispatchTableCount, 0)
1150     TEST_FIELD_SIZE  (RPC_DISPATCH_TABLE, DispatchTable, 4)
1151     TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, DispatchTable, 4)
1152     TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, DispatchTable, 4)
1153     TEST_FIELD_SIZE  (RPC_DISPATCH_TABLE, Reserved, 4)
1154     TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, Reserved, 4)
1155     TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, Reserved, 8)
1156 }
1157 
1158 static void test_pack_RPC_MESSAGE(void)
1159 {
1160     /* RPC_MESSAGE */
1161     TEST_TYPE_SIZE   (RPC_MESSAGE, 44)
1162     TEST_TYPE_ALIGN  (RPC_MESSAGE, 4)
1163     TEST_FIELD_SIZE  (RPC_MESSAGE, Handle, 4)
1164     TEST_FIELD_ALIGN (RPC_MESSAGE, Handle, 4)
1165     TEST_FIELD_OFFSET(RPC_MESSAGE, Handle, 0)
1166     TEST_FIELD_SIZE  (RPC_MESSAGE, DataRepresentation, 4)
1167     TEST_FIELD_ALIGN (RPC_MESSAGE, DataRepresentation, 4)
1168     TEST_FIELD_OFFSET(RPC_MESSAGE, DataRepresentation, 4)
1169     TEST_FIELD_SIZE  (RPC_MESSAGE, Buffer, 4)
1170     TEST_FIELD_ALIGN (RPC_MESSAGE, Buffer, 4)
1171     TEST_FIELD_OFFSET(RPC_MESSAGE, Buffer, 8)
1172     TEST_FIELD_SIZE  (RPC_MESSAGE, BufferLength, 4)
1173     TEST_FIELD_ALIGN (RPC_MESSAGE, BufferLength, 4)
1174     TEST_FIELD_OFFSET(RPC_MESSAGE, BufferLength, 12)
1175     TEST_FIELD_SIZE  (RPC_MESSAGE, ProcNum, 4)
1176     TEST_FIELD_ALIGN (RPC_MESSAGE, ProcNum, 4)
1177     TEST_FIELD_OFFSET(RPC_MESSAGE, ProcNum, 16)
1178     TEST_FIELD_SIZE  (RPC_MESSAGE, TransferSyntax, 4)
1179     TEST_FIELD_ALIGN (RPC_MESSAGE, TransferSyntax, 4)
1180     TEST_FIELD_OFFSET(RPC_MESSAGE, TransferSyntax, 20)
1181     TEST_FIELD_SIZE  (RPC_MESSAGE, RpcInterfaceInformation, 4)
1182     TEST_FIELD_ALIGN (RPC_MESSAGE, RpcInterfaceInformation, 4)
1183     TEST_FIELD_OFFSET(RPC_MESSAGE, RpcInterfaceInformation, 24)
1184     TEST_FIELD_SIZE  (RPC_MESSAGE, ReservedForRuntime, 4)
1185     TEST_FIELD_ALIGN (RPC_MESSAGE, ReservedForRuntime, 4)
1186     TEST_FIELD_OFFSET(RPC_MESSAGE, ReservedForRuntime, 28)
1187     TEST_FIELD_SIZE  (RPC_MESSAGE, ManagerEpv, 4)
1188     TEST_FIELD_ALIGN (RPC_MESSAGE, ManagerEpv, 4)
1189     TEST_FIELD_OFFSET(RPC_MESSAGE, ManagerEpv, 32)
1190     TEST_FIELD_SIZE  (RPC_MESSAGE, ImportContext, 4)
1191     TEST_FIELD_ALIGN (RPC_MESSAGE, ImportContext, 4)
1192     TEST_FIELD_OFFSET(RPC_MESSAGE, ImportContext, 36)
1193     TEST_FIELD_SIZE  (RPC_MESSAGE, RpcFlags, 4)
1194     TEST_FIELD_ALIGN (RPC_MESSAGE, RpcFlags, 4)
1195     TEST_FIELD_OFFSET(RPC_MESSAGE, RpcFlags, 40)
1196 }
1197 
1198 static void test_pack_RPC_PROTSEQ_ENDPOINT(void)
1199 {
1200     /* RPC_PROTSEQ_ENDPOINT */
1201     TEST_TYPE_SIZE   (RPC_PROTSEQ_ENDPOINT, 8)
1202     TEST_TYPE_ALIGN  (RPC_PROTSEQ_ENDPOINT, 4)
1203     TEST_FIELD_SIZE  (RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 4)
1204     TEST_FIELD_ALIGN (RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 4)
1205     TEST_FIELD_OFFSET(RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 0)
1206     TEST_FIELD_SIZE  (RPC_PROTSEQ_ENDPOINT, Endpoint, 4)
1207     TEST_FIELD_ALIGN (RPC_PROTSEQ_ENDPOINT, Endpoint, 4)
1208     TEST_FIELD_OFFSET(RPC_PROTSEQ_ENDPOINT, Endpoint, 4)
1209 }
1210 
1211 static void test_pack_RPC_SERVER_INTERFACE(void)
1212 {
1213     /* RPC_SERVER_INTERFACE */
1214     TEST_TYPE_SIZE   (RPC_SERVER_INTERFACE, 68)
1215     TEST_TYPE_ALIGN  (RPC_SERVER_INTERFACE, 4)
1216     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, Length, 4)
1217     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, Length, 4)
1218     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, Length, 0)
1219     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, InterfaceId, 20)
1220     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, InterfaceId, 4)
1221     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, InterfaceId, 4)
1222     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, TransferSyntax, 20)
1223     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, TransferSyntax, 4)
1224     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, TransferSyntax, 24)
1225     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, DispatchTable, 4)
1226     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, DispatchTable, 4)
1227     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, DispatchTable, 44)
1228     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 4)
1229     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 4)
1230     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 48)
1231     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 4)
1232     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 4)
1233     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 52)
1234     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, DefaultManagerEpv, 4)
1235     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, DefaultManagerEpv, 4)
1236     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, DefaultManagerEpv, 56)
1237     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, InterpreterInfo, 4)
1238     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, InterpreterInfo, 4)
1239     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, InterpreterInfo, 60)
1240     TEST_FIELD_SIZE  (RPC_SERVER_INTERFACE, Flags, 4)
1241     TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, Flags, 4)
1242     TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, Flags, 64)
1243 }
1244 
1245 static void test_pack_RPC_SYNTAX_IDENTIFIER(void)
1246 {
1247     /* RPC_SYNTAX_IDENTIFIER */
1248     TEST_TYPE_SIZE   (RPC_SYNTAX_IDENTIFIER, 20)
1249     TEST_TYPE_ALIGN  (RPC_SYNTAX_IDENTIFIER, 4)
1250     TEST_FIELD_SIZE  (RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 16)
1251     TEST_FIELD_ALIGN (RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 4)
1252     TEST_FIELD_OFFSET(RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 0)
1253     TEST_FIELD_SIZE  (RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 4)
1254     TEST_FIELD_ALIGN (RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 2)
1255     TEST_FIELD_OFFSET(RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 16)
1256 }
1257 
1258 static void test_pack_RPC_VERSION(void)
1259 {
1260     /* RPC_VERSION */
1261     TEST_TYPE_SIZE   (RPC_VERSION, 4)
1262     TEST_TYPE_ALIGN  (RPC_VERSION, 2)
1263     TEST_FIELD_SIZE  (RPC_VERSION, MajorVersion, 2)
1264     TEST_FIELD_ALIGN (RPC_VERSION, MajorVersion, 2)
1265     TEST_FIELD_OFFSET(RPC_VERSION, MajorVersion, 0)
1266     TEST_FIELD_SIZE  (RPC_VERSION, MinorVersion, 2)
1267     TEST_FIELD_ALIGN (RPC_VERSION, MinorVersion, 2)
1268     TEST_FIELD_OFFSET(RPC_VERSION, MinorVersion, 2)
1269 }
1270 
1271 static void test_pack_ARRAY_INFO(void)
1272 {
1273     /* ARRAY_INFO */
1274     TEST_TYPE_SIZE   (ARRAY_INFO, 24)
1275     TEST_TYPE_ALIGN  (ARRAY_INFO, 4)
1276     TEST_FIELD_SIZE  (ARRAY_INFO, Dimension, 4)
1277     TEST_FIELD_ALIGN (ARRAY_INFO, Dimension, 4)
1278     TEST_FIELD_OFFSET(ARRAY_INFO, Dimension, 0)
1279     TEST_FIELD_SIZE  (ARRAY_INFO, BufferConformanceMark, 4)
1280     TEST_FIELD_ALIGN (ARRAY_INFO, BufferConformanceMark, 4)
1281     TEST_FIELD_OFFSET(ARRAY_INFO, BufferConformanceMark, 4)
1282     TEST_FIELD_SIZE  (ARRAY_INFO, BufferVarianceMark, 4)
1283     TEST_FIELD_ALIGN (ARRAY_INFO, BufferVarianceMark, 4)
1284     TEST_FIELD_OFFSET(ARRAY_INFO, BufferVarianceMark, 8)
1285     TEST_FIELD_SIZE  (ARRAY_INFO, MaxCountArray, 4)
1286     TEST_FIELD_ALIGN (ARRAY_INFO, MaxCountArray, 4)
1287     TEST_FIELD_OFFSET(ARRAY_INFO, MaxCountArray, 12)
1288     TEST_FIELD_SIZE  (ARRAY_INFO, OffsetArray, 4)
1289     TEST_FIELD_ALIGN (ARRAY_INFO, OffsetArray, 4)
1290     TEST_FIELD_OFFSET(ARRAY_INFO, OffsetArray, 16)
1291     TEST_FIELD_SIZE  (ARRAY_INFO, ActualCountArray, 4)
1292     TEST_FIELD_ALIGN (ARRAY_INFO, ActualCountArray, 4)
1293     TEST_FIELD_OFFSET(ARRAY_INFO, ActualCountArray, 20)
1294 }
1295 
1296 static void test_pack_COMM_FAULT_OFFSETS(void)
1297 {
1298     /* COMM_FAULT_OFFSETS */
1299     TEST_TYPE_SIZE   (COMM_FAULT_OFFSETS, 4)
1300     TEST_TYPE_ALIGN  (COMM_FAULT_OFFSETS, 2)
1301     TEST_FIELD_SIZE  (COMM_FAULT_OFFSETS, CommOffset, 2)
1302     TEST_FIELD_ALIGN (COMM_FAULT_OFFSETS, CommOffset, 2)
1303     TEST_FIELD_OFFSET(COMM_FAULT_OFFSETS, CommOffset, 0)
1304     TEST_FIELD_SIZE  (COMM_FAULT_OFFSETS, FaultOffset, 2)
1305     TEST_FIELD_ALIGN (COMM_FAULT_OFFSETS, FaultOffset, 2)
1306     TEST_FIELD_OFFSET(COMM_FAULT_OFFSETS, FaultOffset, 2)
1307 }
1308 
1309 static void test_pack_CS_STUB_INFO(void)
1310 {
1311     /* CS_STUB_INFO */
1312     TEST_TYPE_SIZE   (CS_STUB_INFO, 12)
1313     TEST_TYPE_ALIGN  (CS_STUB_INFO, 4)
1314     TEST_FIELD_SIZE  (CS_STUB_INFO, WireCodeset, 4)
1315     TEST_FIELD_ALIGN (CS_STUB_INFO, WireCodeset, 4)
1316     TEST_FIELD_OFFSET(CS_STUB_INFO, WireCodeset, 0)
1317     TEST_FIELD_SIZE  (CS_STUB_INFO, DesiredReceivingCodeset, 4)
1318     TEST_FIELD_ALIGN (CS_STUB_INFO, DesiredReceivingCodeset, 4)
1319     TEST_FIELD_OFFSET(CS_STUB_INFO, DesiredReceivingCodeset, 4)
1320     TEST_FIELD_SIZE  (CS_STUB_INFO, CSArrayInfo, 4)
1321     TEST_FIELD_ALIGN (CS_STUB_INFO, CSArrayInfo, 4)
1322     TEST_FIELD_OFFSET(CS_STUB_INFO, CSArrayInfo, 8)
1323 }
1324 
1325 static void test_pack_EXPR_EVAL(void)
1326 {
1327     /* EXPR_EVAL */
1328 }
1329 
1330 static void test_pack_FULL_PTR_TO_REFID_ELEMENT(void)
1331 {
1332     /* FULL_PTR_TO_REFID_ELEMENT */
1333     TEST_TYPE_SIZE   (FULL_PTR_TO_REFID_ELEMENT, 16)
1334     TEST_TYPE_ALIGN  (FULL_PTR_TO_REFID_ELEMENT, 4)
1335     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, Next, 4)
1336     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, Next, 4)
1337     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, Next, 0)
1338     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, Pointer, 4)
1339     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, Pointer, 4)
1340     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, Pointer, 4)
1341     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, RefId, 4)
1342     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, RefId, 4)
1343     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, RefId, 8)
1344     TEST_FIELD_SIZE  (FULL_PTR_TO_REFID_ELEMENT, State, 1)
1345     TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, State, 1)
1346     TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, State, 12)
1347 }
1348 
1349 static void test_pack_FULL_PTR_XLAT_TABLES(void)
1350 {
1351     /* FULL_PTR_XLAT_TABLES */
1352 }
1353 
1354 static void test_pack_GENERIC_BINDING_INFO(void)
1355 {
1356     /* GENERIC_BINDING_INFO */
1357     TEST_FIELD_SIZE  (GENERIC_BINDING_INFO, pObj, 4)
1358     TEST_FIELD_ALIGN (GENERIC_BINDING_INFO, pObj, 4)
1359     TEST_FIELD_OFFSET(GENERIC_BINDING_INFO, pObj, 0)
1360     TEST_FIELD_SIZE  (GENERIC_BINDING_INFO, Size, 4)
1361     TEST_FIELD_ALIGN (GENERIC_BINDING_INFO, Size, 4)
1362     TEST_FIELD_OFFSET(GENERIC_BINDING_INFO, Size, 4)
1363 }
1364 
1365 static void test_pack_GENERIC_BINDING_ROUTINE_PAIR(void)
1366 {
1367     /* GENERIC_BINDING_ROUTINE_PAIR */
1368 }
1369 
1370 static void test_pack_MALLOC_FREE_STRUCT(void)
1371 {
1372     /* MALLOC_FREE_STRUCT */
1373 }
1374 
1375 static void test_pack_MIDL_FORMAT_STRING(void)
1376 {
1377     /* MIDL_FORMAT_STRING */
1378     TEST_FIELD_SIZE  (MIDL_FORMAT_STRING, Pad, 2)
1379     TEST_FIELD_ALIGN (MIDL_FORMAT_STRING, Pad, 2)
1380     TEST_FIELD_OFFSET(MIDL_FORMAT_STRING, Pad, 0)
1381 }
1382 
1383 static void test_pack_MIDL_SERVER_INFO(void)
1384 {
1385     /* MIDL_SERVER_INFO */
1386     TEST_TYPE_SIZE   (MIDL_SERVER_INFO, 32)
1387     TEST_TYPE_ALIGN  (MIDL_SERVER_INFO, 4)
1388     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, pStubDesc, 4)
1389     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pStubDesc, 4)
1390     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pStubDesc, 0)
1391     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, DispatchTable, 4)
1392     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, DispatchTable, 4)
1393     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, DispatchTable, 4)
1394     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, ProcString, 4)
1395     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, ProcString, 4)
1396     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, ProcString, 8)
1397     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, FmtStringOffset, 4)
1398     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, FmtStringOffset, 4)
1399     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, FmtStringOffset, 12)
1400     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, ThunkTable, 4)
1401     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, ThunkTable, 4)
1402     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, ThunkTable, 16)
1403     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, pTransferSyntax, 4)
1404     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pTransferSyntax, 4)
1405     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pTransferSyntax, 20)
1406     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, nCount, 4)
1407     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, nCount, 4)
1408     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, nCount, 24)
1409     TEST_FIELD_SIZE  (MIDL_SERVER_INFO, pSyntaxInfo, 4)
1410     TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pSyntaxInfo, 4)
1411     TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pSyntaxInfo, 28)
1412 }
1413 
1414 static void test_pack_MIDL_STUB_DESC(void)
1415 {
1416     /* MIDL_STUB_DESC */
1417     TEST_FIELD_SIZE  (MIDL_STUB_DESC, RpcInterfaceInformation, 4)
1418     TEST_FIELD_ALIGN (MIDL_STUB_DESC, RpcInterfaceInformation, 4)
1419     TEST_FIELD_OFFSET(MIDL_STUB_DESC, RpcInterfaceInformation, 0)
1420 }
1421 
1422 static void test_pack_MIDL_STUB_MESSAGE(void)
1423 {
1424     /* MIDL_STUB_MESSAGE */
1425     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, RpcMsg, 4)
1426     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, RpcMsg, 4)
1427     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, RpcMsg, 0)
1428     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, Buffer, 4)
1429     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Buffer, 4)
1430     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Buffer, 4)
1431     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferStart, 4)
1432     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferStart, 4)
1433     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferStart, 8)
1434     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferEnd, 4)
1435     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferEnd, 4)
1436     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferEnd, 12)
1437     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferMark, 4)
1438     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferMark, 4)
1439     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferMark, 16)
1440     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, BufferLength, 4)
1441     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferLength, 4)
1442     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferLength, 20)
1443     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, MemorySize, 4)
1444     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, MemorySize, 4)
1445     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, MemorySize, 24)
1446     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, Memory, 4)
1447     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Memory, 4)
1448     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Memory, 28)
1449     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, ReuseBuffer, 4)
1450     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, ReuseBuffer, 4)
1451     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, ReuseBuffer, 36)
1452     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, pAllocAllNodesContext, 4)
1453     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, pAllocAllNodesContext, 4)
1454     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, pAllocAllNodesContext, 40)
1455     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, pPointerQueueState, 4)
1456     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, pPointerQueueState, 4)
1457     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, pPointerQueueState, 44)
1458     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 4)
1459     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 4)
1460     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 48)
1461     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, PointerBufferMark, 4)
1462     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, PointerBufferMark, 4)
1463     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, PointerBufferMark, 52)
1464     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, CorrDespIncrement, 1)
1465     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, CorrDespIncrement, 1)
1466     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, CorrDespIncrement, 56)
1467     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, uFlags, 1)
1468     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, uFlags, 1)
1469     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, uFlags, 57)
1470     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, MaxCount, 4)
1471     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, MaxCount, 4)
1472     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, MaxCount, 60)
1473     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, Offset, 4)
1474     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Offset, 4)
1475     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Offset, 64)
1476     TEST_FIELD_SIZE  (MIDL_STUB_MESSAGE, ActualCount, 4)
1477     TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, ActualCount, 4)
1478     TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, ActualCount, 68)
1479 }
1480 
1481 static void test_pack_MIDL_STUBLESS_PROXY_INFO(void)
1482 {
1483     /* MIDL_STUBLESS_PROXY_INFO */
1484     TEST_TYPE_SIZE   (MIDL_STUBLESS_PROXY_INFO, 24)
1485     TEST_TYPE_ALIGN  (MIDL_STUBLESS_PROXY_INFO, 4)
1486     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, pStubDesc, 4)
1487     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pStubDesc, 4)
1488     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pStubDesc, 0)
1489     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 4)
1490     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 4)
1491     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 4)
1492     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 4)
1493     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 4)
1494     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 8)
1495     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 4)
1496     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 4)
1497     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 12)
1498     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, nCount, 4)
1499     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, nCount, 4)
1500     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, nCount, 16)
1501     TEST_FIELD_SIZE  (MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 4)
1502     TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 4)
1503     TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 20)
1504 }
1505 
1506 static void test_pack_MIDL_SYNTAX_INFO(void)
1507 {
1508     /* MIDL_SYNTAX_INFO */
1509     TEST_TYPE_SIZE   (MIDL_SYNTAX_INFO, 48)
1510     TEST_TYPE_ALIGN  (MIDL_SYNTAX_INFO, 4)
1511     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, TransferSyntax, 20)
1512     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, TransferSyntax, 4)
1513     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, TransferSyntax, 0)
1514     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, DispatchTable, 4)
1515     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, DispatchTable, 4)
1516     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, DispatchTable, 20)
1517     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, ProcString, 4)
1518     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, ProcString, 4)
1519     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, ProcString, 24)
1520     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, FmtStringOffset, 4)
1521     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, FmtStringOffset, 4)
1522     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, FmtStringOffset, 28)
1523     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, TypeString, 4)
1524     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, TypeString, 4)
1525     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, TypeString, 32)
1526     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 4)
1527     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 4)
1528     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 36)
1529     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, pReserved1, 4)
1530     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, pReserved1, 4)
1531     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, pReserved1, 40)
1532     TEST_FIELD_SIZE  (MIDL_SYNTAX_INFO, pReserved2, 4)
1533     TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, pReserved2, 4)
1534     TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, pReserved2, 44)
1535 }
1536 
1537 static void test_pack_NDR_CCONTEXT(void)
1538 {
1539     /* NDR_CCONTEXT */
1540     TEST_TYPE_SIZE   (NDR_CCONTEXT, 4)
1541     TEST_TYPE_ALIGN  (NDR_CCONTEXT, 4)
1542 }
1543 
1544 static void test_pack_NDR_NOTIFY_ROUTINE(void)
1545 {
1546     /* NDR_NOTIFY_ROUTINE */
1547 }
1548 
1549 static void test_pack_NDR_NOTIFY2_ROUTINE(void)
1550 {
1551     /* NDR_NOTIFY2_ROUTINE */
1552 }
1553 
1554 static void test_pack_NDR_RUNDOWN(void)
1555 {
1556     /* NDR_RUNDOWN */
1557 }
1558 
1559 static void test_pack_NDR_SCONTEXT(void)
1560 {
1561     /* NDR_SCONTEXT */
1562     TEST_TYPE_SIZE   (NDR_SCONTEXT, 4)
1563     TEST_TYPE_ALIGN  (NDR_SCONTEXT, 4)
1564 }
1565 
1566 static void test_pack_NDR_USER_MARSHAL_INFO(void)
1567 {
1568     /* NDR_USER_MARSHAL_INFO */
1569     TEST_FIELD_SIZE  (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
1570     TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
1571     TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO, InformationLevel, 0)
1572 }
1573 
1574 static void test_pack_NDR_USER_MARSHAL_INFO_LEVEL1(void)
1575 {
1576     /* NDR_USER_MARSHAL_INFO_LEVEL1 */
1577     TEST_FIELD_SIZE  (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 4)
1578     TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 4)
1579     TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 0)
1580     TEST_FIELD_SIZE  (NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 4)
1581     TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 4)
1582     TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 4)
1583 }
1584 
1585 static void test_pack_PARRAY_INFO(void)
1586 {
1587     /* PARRAY_INFO */
1588     TEST_TYPE_SIZE   (PARRAY_INFO, 4)
1589     TEST_TYPE_ALIGN  (PARRAY_INFO, 4)
1590     TEST_TARGET_SIZE (PARRAY_INFO, 24)
1591     TEST_TARGET_ALIGN(PARRAY_INFO, 4)
1592 }
1593 
1594 static void test_pack_PFORMAT_STRING(void)
1595 {
1596     /* PFORMAT_STRING */
1597     TEST_TYPE_SIZE   (PFORMAT_STRING, 4)
1598     TEST_TYPE_ALIGN  (PFORMAT_STRING, 4)
1599 }
1600 
1601 static void test_pack_PFULL_PTR_TO_REFID_ELEMENT(void)
1602 {
1603     /* PFULL_PTR_TO_REFID_ELEMENT */
1604     TEST_TYPE_SIZE   (PFULL_PTR_TO_REFID_ELEMENT, 4)
1605     TEST_TYPE_ALIGN  (PFULL_PTR_TO_REFID_ELEMENT, 4)
1606     TEST_TARGET_SIZE (PFULL_PTR_TO_REFID_ELEMENT, 16)
1607     TEST_TARGET_ALIGN(PFULL_PTR_TO_REFID_ELEMENT, 4)
1608 }
1609 
1610 static void test_pack_PFULL_PTR_XLAT_TABLES(void)
1611 {
1612     /* PFULL_PTR_XLAT_TABLES */
1613     TEST_TYPE_SIZE   (PFULL_PTR_XLAT_TABLES, 4)
1614     TEST_TYPE_ALIGN  (PFULL_PTR_XLAT_TABLES, 4)
1615 }
1616 
1617 static void test_pack_PGENERIC_BINDING_INFO(void)
1618 {
1619     /* PGENERIC_BINDING_INFO */
1620     TEST_TYPE_SIZE   (PGENERIC_BINDING_INFO, 4)
1621     TEST_TYPE_ALIGN  (PGENERIC_BINDING_INFO, 4)
1622 }
1623 
1624 static void test_pack_PGENERIC_BINDING_ROUTINE_PAIR(void)
1625 {
1626     /* PGENERIC_BINDING_ROUTINE_PAIR */
1627     TEST_TYPE_SIZE   (PGENERIC_BINDING_ROUTINE_PAIR, 4)
1628     TEST_TYPE_ALIGN  (PGENERIC_BINDING_ROUTINE_PAIR, 4)
1629 }
1630 
1631 static void test_pack_PMIDL_SERVER_INFO(void)
1632 {
1633     /* PMIDL_SERVER_INFO */
1634     TEST_TYPE_SIZE   (PMIDL_SERVER_INFO, 4)
1635     TEST_TYPE_ALIGN  (PMIDL_SERVER_INFO, 4)
1636     TEST_TARGET_SIZE (PMIDL_SERVER_INFO, 32)
1637     TEST_TARGET_ALIGN(PMIDL_SERVER_INFO, 4)
1638 }
1639 
1640 static void test_pack_PMIDL_STUB_DESC(void)
1641 {
1642     /* PMIDL_STUB_DESC */
1643     TEST_TYPE_SIZE   (PMIDL_STUB_DESC, 4)
1644     TEST_TYPE_ALIGN  (PMIDL_STUB_DESC, 4)
1645 }
1646 
1647 static void test_pack_PMIDL_STUB_MESSAGE(void)
1648 {
1649     /* PMIDL_STUB_MESSAGE */
1650     TEST_TYPE_SIZE   (PMIDL_STUB_MESSAGE, 4)
1651     TEST_TYPE_ALIGN  (PMIDL_STUB_MESSAGE, 4)
1652 }
1653 
1654 static void test_pack_PMIDL_STUBLESS_PROXY_INFO(void)
1655 {
1656     /* PMIDL_STUBLESS_PROXY_INFO */
1657     TEST_TYPE_SIZE   (PMIDL_STUBLESS_PROXY_INFO, 4)
1658     TEST_TYPE_ALIGN  (PMIDL_STUBLESS_PROXY_INFO, 4)
1659     TEST_TARGET_SIZE (PMIDL_STUBLESS_PROXY_INFO, 24)
1660     TEST_TARGET_ALIGN(PMIDL_STUBLESS_PROXY_INFO, 4)
1661 }
1662 
1663 static void test_pack_PMIDL_SYNTAX_INFO(void)
1664 {
1665     /* PMIDL_SYNTAX_INFO */
1666     TEST_TYPE_SIZE   (PMIDL_SYNTAX_INFO, 4)
1667     TEST_TYPE_ALIGN  (PMIDL_SYNTAX_INFO, 4)
1668     TEST_TARGET_SIZE (PMIDL_SYNTAX_INFO, 48)
1669     TEST_TARGET_ALIGN(PMIDL_SYNTAX_INFO, 4)
1670 }
1671 
1672 static void test_pack_PNDR_ASYNC_MESSAGE(void)
1673 {
1674     /* PNDR_ASYNC_MESSAGE */
1675     TEST_TYPE_SIZE   (PNDR_ASYNC_MESSAGE, 4)
1676     TEST_TYPE_ALIGN  (PNDR_ASYNC_MESSAGE, 4)
1677 }
1678 
1679 static void test_pack_PNDR_CORRELATION_INFO(void)
1680 {
1681     /* PNDR_CORRELATION_INFO */
1682     TEST_TYPE_SIZE   (PNDR_CORRELATION_INFO, 4)
1683     TEST_TYPE_ALIGN  (PNDR_CORRELATION_INFO, 4)
1684 }
1685 
1686 static void test_pack_PSCONTEXT_QUEUE(void)
1687 {
1688     /* PSCONTEXT_QUEUE */
1689     TEST_TYPE_SIZE   (PSCONTEXT_QUEUE, 4)
1690     TEST_TYPE_ALIGN  (PSCONTEXT_QUEUE, 4)
1691     TEST_TARGET_SIZE (PSCONTEXT_QUEUE, 8)
1692     TEST_TARGET_ALIGN(PSCONTEXT_QUEUE, 4)
1693 }
1694 
1695 static void test_pack_PXMIT_ROUTINE_QUINTUPLE(void)
1696 {
1697     /* PXMIT_ROUTINE_QUINTUPLE */
1698     TEST_TYPE_SIZE   (PXMIT_ROUTINE_QUINTUPLE, 4)
1699     TEST_TYPE_ALIGN  (PXMIT_ROUTINE_QUINTUPLE, 4)
1700 }
1701 
1702 static void test_pack_SCONTEXT_QUEUE(void)
1703 {
1704     /* SCONTEXT_QUEUE */
1705     TEST_TYPE_SIZE   (SCONTEXT_QUEUE, 8)
1706     TEST_TYPE_ALIGN  (SCONTEXT_QUEUE, 4)
1707     TEST_FIELD_SIZE  (SCONTEXT_QUEUE, NumberOfObjects, 4)
1708     TEST_FIELD_ALIGN (SCONTEXT_QUEUE, NumberOfObjects, 4)
1709     TEST_FIELD_OFFSET(SCONTEXT_QUEUE, NumberOfObjects, 0)
1710     TEST_FIELD_SIZE  (SCONTEXT_QUEUE, ArrayOfObjects, 4)
1711     TEST_FIELD_ALIGN (SCONTEXT_QUEUE, ArrayOfObjects, 4)
1712     TEST_FIELD_OFFSET(SCONTEXT_QUEUE, ArrayOfObjects, 4)
1713 }
1714 
1715 static void test_pack_SERVER_ROUTINE(void)
1716 {
1717     /* SERVER_ROUTINE */
1718 }
1719 
1720 static void test_pack_STUB_THUNK(void)
1721 {
1722     /* STUB_THUNK */
1723 }
1724 
1725 static void test_pack_USER_MARSHAL_CB(void)
1726 {
1727     /* USER_MARSHAL_CB */
1728     TEST_FIELD_SIZE  (USER_MARSHAL_CB, Flags, 4)
1729     TEST_FIELD_ALIGN (USER_MARSHAL_CB, Flags, 4)
1730     TEST_FIELD_OFFSET(USER_MARSHAL_CB, Flags, 0)
1731     TEST_FIELD_SIZE  (USER_MARSHAL_CB, pStubMsg, 4)
1732     TEST_FIELD_ALIGN (USER_MARSHAL_CB, pStubMsg, 4)
1733     TEST_FIELD_OFFSET(USER_MARSHAL_CB, pStubMsg, 4)
1734     TEST_FIELD_SIZE  (USER_MARSHAL_CB, pReserve, 4)
1735     TEST_FIELD_ALIGN (USER_MARSHAL_CB, pReserve, 4)
1736     TEST_FIELD_OFFSET(USER_MARSHAL_CB, pReserve, 8)
1737     TEST_FIELD_SIZE  (USER_MARSHAL_CB, Signature, 4)
1738     TEST_FIELD_ALIGN (USER_MARSHAL_CB, Signature, 4)
1739     TEST_FIELD_OFFSET(USER_MARSHAL_CB, Signature, 12)
1740 }
1741 
1742 static void test_pack_USER_MARSHAL_FREEING_ROUTINE(void)
1743 {
1744     /* USER_MARSHAL_FREEING_ROUTINE */
1745 }
1746 
1747 static void test_pack_USER_MARSHAL_MARSHALLING_ROUTINE(void)
1748 {
1749     /* USER_MARSHAL_MARSHALLING_ROUTINE */
1750 }
1751 
1752 static void test_pack_USER_MARSHAL_ROUTINE_QUADRUPLE(void)
1753 {
1754     /* USER_MARSHAL_ROUTINE_QUADRUPLE */
1755 }
1756 
1757 static void test_pack_USER_MARSHAL_SIZING_ROUTINE(void)
1758 {
1759     /* USER_MARSHAL_SIZING_ROUTINE */
1760 }
1761 
1762 static void test_pack_USER_MARSHAL_UNMARSHALLING_ROUTINE(void)
1763 {
1764     /* USER_MARSHAL_UNMARSHALLING_ROUTINE */
1765 }
1766 
1767 static void test_pack_XMIT_HELPER_ROUTINE(void)
1768 {
1769     /* XMIT_HELPER_ROUTINE */
1770 }
1771 
1772 static void test_pack_XMIT_ROUTINE_QUINTUPLE(void)
1773 {
1774     /* XMIT_ROUTINE_QUINTUPLE */
1775 }
1776 
1777 static void test_pack_PRPC_STUB_FUNCTION(void)
1778 {
1779     /* PRPC_STUB_FUNCTION */
1780 }
1781 
1782 #endif /* _WIN64 */
1783 
1784 static void test_pack(void)
1785 {
1786     test_pack_ARRAY_INFO();
1787     test_pack_COMM_FAULT_OFFSETS();
1788     test_pack_CS_STUB_INFO();
1789     test_pack_EXPR_EVAL();
1790     test_pack_FULL_PTR_TO_REFID_ELEMENT();
1791     test_pack_FULL_PTR_XLAT_TABLES();
1792     test_pack_GENERIC_BINDING_INFO();
1793     test_pack_GENERIC_BINDING_ROUTINE_PAIR();
1794     test_pack_I_RPC_HANDLE();
1795     test_pack_MALLOC_FREE_STRUCT();
1796     test_pack_MIDL_FORMAT_STRING();
1797     test_pack_MIDL_SERVER_INFO();
1798     test_pack_MIDL_STUBLESS_PROXY_INFO();
1799     test_pack_MIDL_STUB_DESC();
1800     test_pack_MIDL_STUB_MESSAGE();
1801     test_pack_MIDL_SYNTAX_INFO();
1802     test_pack_NDR_CCONTEXT();
1803     test_pack_NDR_NOTIFY2_ROUTINE();
1804     test_pack_NDR_NOTIFY_ROUTINE();
1805     test_pack_NDR_RUNDOWN();
1806     test_pack_NDR_SCONTEXT();
1807     test_pack_NDR_USER_MARSHAL_INFO();
1808     test_pack_NDR_USER_MARSHAL_INFO_LEVEL1();
1809     test_pack_PARRAY_INFO();
1810     test_pack_PFORMAT_STRING();
1811     test_pack_PFULL_PTR_TO_REFID_ELEMENT();
1812     test_pack_PFULL_PTR_XLAT_TABLES();
1813     test_pack_PGENERIC_BINDING_INFO();
1814     test_pack_PGENERIC_BINDING_ROUTINE_PAIR();
1815     test_pack_PMIDL_SERVER_INFO();
1816     test_pack_PMIDL_STUBLESS_PROXY_INFO();
1817     test_pack_PMIDL_STUB_DESC();
1818     test_pack_PMIDL_STUB_MESSAGE();
1819     test_pack_PMIDL_SYNTAX_INFO();
1820     test_pack_PNDR_ASYNC_MESSAGE();
1821     test_pack_PNDR_CORRELATION_INFO();
1822     test_pack_PRPC_CLIENT_INTERFACE();
1823     test_pack_PRPC_DISPATCH_TABLE();
1824     test_pack_PRPC_MESSAGE();
1825     test_pack_PRPC_POLICY();
1826     test_pack_PRPC_PROTSEQ_ENDPOINT();
1827     test_pack_PRPC_SERVER_INTERFACE();
1828     test_pack_PRPC_STUB_FUNCTION();
1829     test_pack_PRPC_SYNTAX_IDENTIFIER();
1830     test_pack_PSCONTEXT_QUEUE();
1831     test_pack_PXMIT_ROUTINE_QUINTUPLE();
1832     test_pack_RPC_AUTHZ_HANDLE();
1833     test_pack_RPC_AUTH_IDENTITY_HANDLE();
1834     test_pack_RPC_AUTH_KEY_RETRIEVAL_FN();
1835     test_pack_RPC_BINDING_HANDLE();
1836     test_pack_RPC_BINDING_VECTOR();
1837     test_pack_RPC_CLIENT_INTERFACE();
1838     test_pack_RPC_DISPATCH_FUNCTION();
1839     test_pack_RPC_DISPATCH_TABLE();
1840     test_pack_RPC_IF_HANDLE();
1841     test_pack_RPC_IF_ID();
1842     test_pack_RPC_MESSAGE();
1843     test_pack_RPC_POLICY();
1844     test_pack_RPC_PROTSEQ_ENDPOINT();
1845     test_pack_RPC_SERVER_INTERFACE();
1846     test_pack_RPC_STATUS();
1847     test_pack_RPC_SYNTAX_IDENTIFIER();
1848     test_pack_RPC_VERSION();
1849     test_pack_SCONTEXT_QUEUE();
1850     test_pack_SERVER_ROUTINE();
1851     test_pack_STUB_THUNK();
1852     test_pack_USER_MARSHAL_CB();
1853     test_pack_USER_MARSHAL_FREEING_ROUTINE();
1854     test_pack_USER_MARSHAL_MARSHALLING_ROUTINE();
1855     test_pack_USER_MARSHAL_ROUTINE_QUADRUPLE();
1856     test_pack_USER_MARSHAL_SIZING_ROUTINE();
1857     test_pack_USER_MARSHAL_UNMARSHALLING_ROUTINE();
1858     test_pack_UUID_VECTOR();
1859     test_pack_XMIT_HELPER_ROUTINE();
1860     test_pack_XMIT_ROUTINE_QUINTUPLE();
1861 }
1862 
1863 START_TEST(generated)
1864 {
1865     test_pack();
1866 }
1867