1 /* File generated automatically from tools/winapi/test.dat; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
5 * Unit tests for data structure packing
10 #include "wine/test.h"
15 /* BY_HANDLE_FILE_INFORMATION */
16 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes) == 0,
17 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes) == %ld (expected 0)",
18 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes)); /* DWORD */
19 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime) == 4,
20 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime) == %ld (expected 4)",
21 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime)); /* FILETIME */
22 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime) == 12,
23 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime) == %ld (expected 12)",
24 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime)); /* FILETIME */
25 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime) == 20,
26 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime) == %ld (expected 20)",
27 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime)); /* FILETIME */
28 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber) == 28,
29 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber) == %ld (expected 28)",
30 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber)); /* DWORD */
31 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh) == 32,
32 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh) == %ld (expected 32)",
33 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh)); /* DWORD */
34 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow) == 36,
35 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow) == %ld (expected 36)",
36 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow)); /* DWORD */
37 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks) == 40,
38 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks) == %ld (expected 40)",
39 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks)); /* DWORD */
40 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh) == 44,
41 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh) == %ld (expected 44)",
42 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh)); /* DWORD */
43 ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow) == 48,
44 "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow) == %ld (expected 48)",
45 FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow)); /* DWORD */
46 ok(sizeof(BY_HANDLE_FILE_INFORMATION) == 52, "sizeof(BY_HANDLE_FILE_INFORMATION) == %d (expected 52)", sizeof(BY_HANDLE_FILE_INFORMATION));
49 ok(FIELD_OFFSET(COMMCONFIG, dwSize) == 0,
50 "FIELD_OFFSET(COMMCONFIG, dwSize) == %ld (expected 0)",
51 FIELD_OFFSET(COMMCONFIG, dwSize)); /* DWORD */
52 ok(FIELD_OFFSET(COMMCONFIG, wVersion) == 4,
53 "FIELD_OFFSET(COMMCONFIG, wVersion) == %ld (expected 4)",
54 FIELD_OFFSET(COMMCONFIG, wVersion)); /* WORD */
55 ok(FIELD_OFFSET(COMMCONFIG, wReserved) == 6,
56 "FIELD_OFFSET(COMMCONFIG, wReserved) == %ld (expected 6)",
57 FIELD_OFFSET(COMMCONFIG, wReserved)); /* WORD */
58 ok(FIELD_OFFSET(COMMCONFIG, dcb) == 8,
59 "FIELD_OFFSET(COMMCONFIG, dcb) == %ld (expected 8)",
60 FIELD_OFFSET(COMMCONFIG, dcb)); /* DCB */
61 ok(FIELD_OFFSET(COMMCONFIG, dwProviderSubType) == 36,
62 "FIELD_OFFSET(COMMCONFIG, dwProviderSubType) == %ld (expected 36)",
63 FIELD_OFFSET(COMMCONFIG, dwProviderSubType)); /* DWORD */
64 ok(FIELD_OFFSET(COMMCONFIG, dwProviderOffset) == 40,
65 "FIELD_OFFSET(COMMCONFIG, dwProviderOffset) == %ld (expected 40)",
66 FIELD_OFFSET(COMMCONFIG, dwProviderOffset)); /* DWORD */
67 ok(FIELD_OFFSET(COMMCONFIG, dwProviderSize) == 44,
68 "FIELD_OFFSET(COMMCONFIG, dwProviderSize) == %ld (expected 44)",
69 FIELD_OFFSET(COMMCONFIG, dwProviderSize)); /* DWORD */
70 ok(FIELD_OFFSET(COMMCONFIG, wcProviderData) == 48,
71 "FIELD_OFFSET(COMMCONFIG, wcProviderData) == %ld (expected 48)",
72 FIELD_OFFSET(COMMCONFIG, wcProviderData)); /* DWORD[1] */
73 ok(sizeof(COMMCONFIG) == 52, "sizeof(COMMCONFIG) == %d (expected 52)", sizeof(COMMCONFIG));
76 ok(FIELD_OFFSET(COMMPROP, wPacketLength) == 0,
77 "FIELD_OFFSET(COMMPROP, wPacketLength) == %ld (expected 0)",
78 FIELD_OFFSET(COMMPROP, wPacketLength)); /* WORD */
79 ok(FIELD_OFFSET(COMMPROP, wPacketVersion) == 2,
80 "FIELD_OFFSET(COMMPROP, wPacketVersion) == %ld (expected 2)",
81 FIELD_OFFSET(COMMPROP, wPacketVersion)); /* WORD */
82 ok(FIELD_OFFSET(COMMPROP, dwServiceMask) == 4,
83 "FIELD_OFFSET(COMMPROP, dwServiceMask) == %ld (expected 4)",
84 FIELD_OFFSET(COMMPROP, dwServiceMask)); /* DWORD */
85 ok(FIELD_OFFSET(COMMPROP, dwReserved1) == 8,
86 "FIELD_OFFSET(COMMPROP, dwReserved1) == %ld (expected 8)",
87 FIELD_OFFSET(COMMPROP, dwReserved1)); /* DWORD */
88 ok(FIELD_OFFSET(COMMPROP, dwMaxTxQueue) == 12,
89 "FIELD_OFFSET(COMMPROP, dwMaxTxQueue) == %ld (expected 12)",
90 FIELD_OFFSET(COMMPROP, dwMaxTxQueue)); /* DWORD */
91 ok(FIELD_OFFSET(COMMPROP, dwMaxRxQueue) == 16,
92 "FIELD_OFFSET(COMMPROP, dwMaxRxQueue) == %ld (expected 16)",
93 FIELD_OFFSET(COMMPROP, dwMaxRxQueue)); /* DWORD */
94 ok(FIELD_OFFSET(COMMPROP, dwMaxBaud) == 20,
95 "FIELD_OFFSET(COMMPROP, dwMaxBaud) == %ld (expected 20)",
96 FIELD_OFFSET(COMMPROP, dwMaxBaud)); /* DWORD */
97 ok(FIELD_OFFSET(COMMPROP, dwProvSubType) == 24,
98 "FIELD_OFFSET(COMMPROP, dwProvSubType) == %ld (expected 24)",
99 FIELD_OFFSET(COMMPROP, dwProvSubType)); /* DWORD */
100 ok(FIELD_OFFSET(COMMPROP, dwProvCapabilities) == 28,
101 "FIELD_OFFSET(COMMPROP, dwProvCapabilities) == %ld (expected 28)",
102 FIELD_OFFSET(COMMPROP, dwProvCapabilities)); /* DWORD */
103 ok(FIELD_OFFSET(COMMPROP, dwSettableParams) == 32,
104 "FIELD_OFFSET(COMMPROP, dwSettableParams) == %ld (expected 32)",
105 FIELD_OFFSET(COMMPROP, dwSettableParams)); /* DWORD */
106 ok(FIELD_OFFSET(COMMPROP, dwSettableBaud) == 36,
107 "FIELD_OFFSET(COMMPROP, dwSettableBaud) == %ld (expected 36)",
108 FIELD_OFFSET(COMMPROP, dwSettableBaud)); /* DWORD */
109 ok(FIELD_OFFSET(COMMPROP, wSettableData) == 40,
110 "FIELD_OFFSET(COMMPROP, wSettableData) == %ld (expected 40)",
111 FIELD_OFFSET(COMMPROP, wSettableData)); /* WORD */
112 ok(FIELD_OFFSET(COMMPROP, wSettableStopParity) == 42,
113 "FIELD_OFFSET(COMMPROP, wSettableStopParity) == %ld (expected 42)",
114 FIELD_OFFSET(COMMPROP, wSettableStopParity)); /* WORD */
115 ok(FIELD_OFFSET(COMMPROP, dwCurrentTxQueue) == 44,
116 "FIELD_OFFSET(COMMPROP, dwCurrentTxQueue) == %ld (expected 44)",
117 FIELD_OFFSET(COMMPROP, dwCurrentTxQueue)); /* DWORD */
118 ok(FIELD_OFFSET(COMMPROP, dwCurrentRxQueue) == 48,
119 "FIELD_OFFSET(COMMPROP, dwCurrentRxQueue) == %ld (expected 48)",
120 FIELD_OFFSET(COMMPROP, dwCurrentRxQueue)); /* DWORD */
121 ok(FIELD_OFFSET(COMMPROP, dwProvSpec1) == 52,
122 "FIELD_OFFSET(COMMPROP, dwProvSpec1) == %ld (expected 52)",
123 FIELD_OFFSET(COMMPROP, dwProvSpec1)); /* DWORD */
124 ok(FIELD_OFFSET(COMMPROP, dwProvSpec2) == 56,
125 "FIELD_OFFSET(COMMPROP, dwProvSpec2) == %ld (expected 56)",
126 FIELD_OFFSET(COMMPROP, dwProvSpec2)); /* DWORD */
127 ok(FIELD_OFFSET(COMMPROP, wcProvChar) == 60,
128 "FIELD_OFFSET(COMMPROP, wcProvChar) == %ld (expected 60)",
129 FIELD_OFFSET(COMMPROP, wcProvChar)); /* WCHAR[1] */
130 ok(sizeof(COMMPROP) == 64, "sizeof(COMMPROP) == %d (expected 64)", sizeof(COMMPROP));
133 ok(FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout) == 0,
134 "FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout) == %ld (expected 0)",
135 FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout)); /* DWORD */
136 ok(FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier) == 4,
137 "FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier) == %ld (expected 4)",
138 FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier)); /* DWORD */
139 ok(FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant) == 8,
140 "FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant) == %ld (expected 8)",
141 FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant)); /* DWORD */
142 ok(FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier) == 12,
143 "FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier) == %ld (expected 12)",
144 FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier)); /* DWORD */
145 ok(FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant) == 16,
146 "FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant) == %ld (expected 16)",
147 FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant)); /* DWORD */
148 ok(sizeof(COMMTIMEOUTS) == 20, "sizeof(COMMTIMEOUTS) == %d (expected 20)", sizeof(COMMTIMEOUTS));
151 ok(FIELD_OFFSET(COMSTAT, status) == 0,
152 "FIELD_OFFSET(COMSTAT, status) == %ld (expected 0)",
153 FIELD_OFFSET(COMSTAT, status)); /* DWORD */
154 ok(FIELD_OFFSET(COMSTAT, cbInQue) == 4,
155 "FIELD_OFFSET(COMSTAT, cbInQue) == %ld (expected 4)",
156 FIELD_OFFSET(COMSTAT, cbInQue)); /* DWORD */
157 ok(FIELD_OFFSET(COMSTAT, cbOutQue) == 8,
158 "FIELD_OFFSET(COMSTAT, cbOutQue) == %ld (expected 8)",
159 FIELD_OFFSET(COMSTAT, cbOutQue)); /* DWORD */
160 ok(sizeof(COMSTAT) == 12, "sizeof(COMSTAT) == %d (expected 12)", sizeof(COMSTAT));
162 /* CREATE_PROCESS_DEBUG_INFO */
163 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile) == 0,
164 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile) == %ld (expected 0)",
165 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile)); /* HANDLE */
166 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess) == 4,
167 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess) == %ld (expected 4)",
168 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess)); /* HANDLE */
169 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread) == 8,
170 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread) == %ld (expected 8)",
171 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread)); /* HANDLE */
172 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage) == 12,
173 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage) == %ld (expected 12)",
174 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage)); /* LPVOID */
175 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset) == 16,
176 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset) == %ld (expected 16)",
177 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset)); /* DWORD */
178 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize) == 20,
179 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize) == %ld (expected 20)",
180 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize)); /* DWORD */
181 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase) == 24,
182 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase) == %ld (expected 24)",
183 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase)); /* LPVOID */
184 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress) == 28,
185 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress) == %ld (expected 28)",
186 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress)); /* LPTHREAD_START_ROUTINE */
187 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName) == 32,
188 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName) == %ld (expected 32)",
189 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName)); /* LPVOID */
190 ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode) == 36,
191 "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode) == %ld (expected 36)",
192 FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode)); /* WORD */
193 ok(sizeof(CREATE_PROCESS_DEBUG_INFO) == 40, "sizeof(CREATE_PROCESS_DEBUG_INFO) == %d (expected 40)", sizeof(CREATE_PROCESS_DEBUG_INFO));
195 /* CREATE_THREAD_DEBUG_INFO */
196 ok(FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread) == 0,
197 "FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread) == %ld (expected 0)",
198 FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread)); /* HANDLE */
199 ok(FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase) == 4,
200 "FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase) == %ld (expected 4)",
201 FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase)); /* LPVOID */
202 ok(FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress) == 8,
203 "FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress) == %ld (expected 8)",
204 FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress)); /* LPTHREAD_START_ROUTINE */
205 ok(sizeof(CREATE_THREAD_DEBUG_INFO) == 12, "sizeof(CREATE_THREAD_DEBUG_INFO) == %d (expected 12)", sizeof(CREATE_THREAD_DEBUG_INFO));
208 ok(FIELD_OFFSET(DCB, DCBlength) == 0,
209 "FIELD_OFFSET(DCB, DCBlength) == %ld (expected 0)",
210 FIELD_OFFSET(DCB, DCBlength)); /* DWORD */
211 ok(FIELD_OFFSET(DCB, BaudRate) == 4,
212 "FIELD_OFFSET(DCB, BaudRate) == %ld (expected 4)",
213 FIELD_OFFSET(DCB, BaudRate)); /* DWORD */
214 ok(FIELD_OFFSET(DCB, wReserved) == 12,
215 "FIELD_OFFSET(DCB, wReserved) == %ld (expected 12)",
216 FIELD_OFFSET(DCB, wReserved)); /* WORD */
217 ok(FIELD_OFFSET(DCB, XonLim) == 14,
218 "FIELD_OFFSET(DCB, XonLim) == %ld (expected 14)",
219 FIELD_OFFSET(DCB, XonLim)); /* WORD */
220 ok(FIELD_OFFSET(DCB, XoffLim) == 16,
221 "FIELD_OFFSET(DCB, XoffLim) == %ld (expected 16)",
222 FIELD_OFFSET(DCB, XoffLim)); /* WORD */
223 ok(FIELD_OFFSET(DCB, ByteSize) == 18,
224 "FIELD_OFFSET(DCB, ByteSize) == %ld (expected 18)",
225 FIELD_OFFSET(DCB, ByteSize)); /* BYTE */
226 ok(FIELD_OFFSET(DCB, Parity) == 19,
227 "FIELD_OFFSET(DCB, Parity) == %ld (expected 19)",
228 FIELD_OFFSET(DCB, Parity)); /* BYTE */
229 ok(FIELD_OFFSET(DCB, StopBits) == 20,
230 "FIELD_OFFSET(DCB, StopBits) == %ld (expected 20)",
231 FIELD_OFFSET(DCB, StopBits)); /* BYTE */
232 ok(FIELD_OFFSET(DCB, XonChar) == 21,
233 "FIELD_OFFSET(DCB, XonChar) == %ld (expected 21)",
234 FIELD_OFFSET(DCB, XonChar)); /* char */
235 ok(FIELD_OFFSET(DCB, XoffChar) == 22,
236 "FIELD_OFFSET(DCB, XoffChar) == %ld (expected 22)",
237 FIELD_OFFSET(DCB, XoffChar)); /* char */
238 ok(FIELD_OFFSET(DCB, ErrorChar) == 23,
239 "FIELD_OFFSET(DCB, ErrorChar) == %ld (expected 23)",
240 FIELD_OFFSET(DCB, ErrorChar)); /* char */
241 ok(FIELD_OFFSET(DCB, EofChar) == 24,
242 "FIELD_OFFSET(DCB, EofChar) == %ld (expected 24)",
243 FIELD_OFFSET(DCB, EofChar)); /* char */
244 ok(FIELD_OFFSET(DCB, EvtChar) == 25,
245 "FIELD_OFFSET(DCB, EvtChar) == %ld (expected 25)",
246 FIELD_OFFSET(DCB, EvtChar)); /* char */
247 ok(sizeof(DCB) == 28, "sizeof(DCB) == %d (expected 28)", sizeof(DCB));
249 /* EXCEPTION_DEBUG_INFO */
250 ok(FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord) == 0,
251 "FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord) == %ld (expected 0)",
252 FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord)); /* EXCEPTION_RECORD */
253 ok(FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance) == 80,
254 "FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance) == %ld (expected 80)",
255 FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance)); /* DWORD */
256 ok(sizeof(EXCEPTION_DEBUG_INFO) == 84, "sizeof(EXCEPTION_DEBUG_INFO) == %d (expected 84)", sizeof(EXCEPTION_DEBUG_INFO));
258 /* EXIT_PROCESS_DEBUG_INFO */
259 ok(FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode) == 0,
260 "FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode) == %ld (expected 0)",
261 FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode)); /* DWORD */
262 ok(sizeof(EXIT_PROCESS_DEBUG_INFO) == 4, "sizeof(EXIT_PROCESS_DEBUG_INFO) == %d (expected 4)", sizeof(EXIT_PROCESS_DEBUG_INFO));
264 /* EXIT_THREAD_DEBUG_INFO */
265 ok(FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode) == 0,
266 "FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode) == %ld (expected 0)",
267 FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode)); /* DWORD */
268 ok(sizeof(EXIT_THREAD_DEBUG_INFO) == 4, "sizeof(EXIT_THREAD_DEBUG_INFO) == %d (expected 4)", sizeof(EXIT_THREAD_DEBUG_INFO));
271 ok(FIELD_OFFSET(LDT_ENTRY, LimitLow) == 0,
272 "FIELD_OFFSET(LDT_ENTRY, LimitLow) == %ld (expected 0)",
273 FIELD_OFFSET(LDT_ENTRY, LimitLow)); /* WORD */
274 ok(FIELD_OFFSET(LDT_ENTRY, BaseLow) == 2,
275 "FIELD_OFFSET(LDT_ENTRY, BaseLow) == %ld (expected 2)",
276 FIELD_OFFSET(LDT_ENTRY, BaseLow)); /* WORD */
277 ok(sizeof(LDT_ENTRY) == 8, "sizeof(LDT_ENTRY) == %d (expected 8)", sizeof(LDT_ENTRY));
279 /* LOAD_DLL_DEBUG_INFO */
280 ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile) == 0,
281 "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile) == %ld (expected 0)",
282 FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile)); /* HANDLE */
283 ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll) == 4,
284 "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll) == %ld (expected 4)",
285 FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll)); /* LPVOID */
286 ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset) == 8,
287 "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset) == %ld (expected 8)",
288 FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset)); /* DWORD */
289 ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize) == 12,
290 "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize) == %ld (expected 12)",
291 FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize)); /* DWORD */
292 ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName) == 16,
293 "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName) == %ld (expected 16)",
294 FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName)); /* LPVOID */
295 ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode) == 20,
296 "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode) == %ld (expected 20)",
297 FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode)); /* WORD */
298 ok(sizeof(LOAD_DLL_DEBUG_INFO) == 24, "sizeof(LOAD_DLL_DEBUG_INFO) == %d (expected 24)", sizeof(LOAD_DLL_DEBUG_INFO));
301 ok(FIELD_OFFSET(MEMORYSTATUS, dwLength) == 0,
302 "FIELD_OFFSET(MEMORYSTATUS, dwLength) == %ld (expected 0)",
303 FIELD_OFFSET(MEMORYSTATUS, dwLength)); /* DWORD */
304 ok(FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad) == 4,
305 "FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad) == %ld (expected 4)",
306 FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad)); /* DWORD */
307 ok(FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys) == 8,
308 "FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys) == %ld (expected 8)",
309 FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys)); /* SIZE_T */
310 ok(FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys) == 12,
311 "FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys) == %ld (expected 12)",
312 FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys)); /* SIZE_T */
313 ok(FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile) == 16,
314 "FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile) == %ld (expected 16)",
315 FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile)); /* SIZE_T */
316 ok(FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile) == 20,
317 "FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile) == %ld (expected 20)",
318 FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile)); /* SIZE_T */
319 ok(FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual) == 24,
320 "FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual) == %ld (expected 24)",
321 FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual)); /* SIZE_T */
322 ok(FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual) == 28,
323 "FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual) == %ld (expected 28)",
324 FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual)); /* SIZE_T */
325 ok(sizeof(MEMORYSTATUS) == 32, "sizeof(MEMORYSTATUS) == %d (expected 32)", sizeof(MEMORYSTATUS));
328 ok(FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize) == 0,
329 "FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize) == %ld (expected 0)",
330 FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize)); /* DWORD */
331 ok(FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion) == 4,
332 "FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion) == %ld (expected 4)",
333 FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion)); /* DWORD */
334 ok(FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion) == 8,
335 "FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion) == %ld (expected 8)",
336 FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion)); /* DWORD */
337 ok(FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber) == 12,
338 "FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber) == %ld (expected 12)",
339 FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber)); /* DWORD */
340 ok(FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId) == 16,
341 "FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId) == %ld (expected 16)",
342 FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId)); /* DWORD */
343 ok(FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion) == 20,
344 "FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion) == %ld (expected 20)",
345 FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion)); /* CHAR[128] */
346 ok(sizeof(OSVERSIONINFOA) == 148, "sizeof(OSVERSIONINFOA) == %d (expected 148)", sizeof(OSVERSIONINFOA));
348 /* OSVERSIONINFOEXA */
349 ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize) == 0,
350 "FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize) == %ld (expected 0)",
351 FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize)); /* DWORD */
352 ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion) == 4,
353 "FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion) == %ld (expected 4)",
354 FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion)); /* DWORD */
355 ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion) == 8,
356 "FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion) == %ld (expected 8)",
357 FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion)); /* DWORD */
358 ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber) == 12,
359 "FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber) == %ld (expected 12)",
360 FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber)); /* DWORD */
361 ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId) == 16,
362 "FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId) == %ld (expected 16)",
363 FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId)); /* DWORD */
364 ok(FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion) == 20,
365 "FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion) == %ld (expected 20)",
366 FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion)); /* CHAR[128] */
367 ok(FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor) == 148,
368 "FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor) == %ld (expected 148)",
369 FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor)); /* WORD */
370 ok(FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor) == 150,
371 "FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor) == %ld (expected 150)",
372 FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor)); /* WORD */
373 ok(FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask) == 152,
374 "FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask) == %ld (expected 152)",
375 FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask)); /* WORD */
376 ok(FIELD_OFFSET(OSVERSIONINFOEXA, wProductType) == 154,
377 "FIELD_OFFSET(OSVERSIONINFOEXA, wProductType) == %ld (expected 154)",
378 FIELD_OFFSET(OSVERSIONINFOEXA, wProductType)); /* BYTE */
379 ok(FIELD_OFFSET(OSVERSIONINFOEXA, wReserved) == 155,
380 "FIELD_OFFSET(OSVERSIONINFOEXA, wReserved) == %ld (expected 155)",
381 FIELD_OFFSET(OSVERSIONINFOEXA, wReserved)); /* BYTE */
382 ok(sizeof(OSVERSIONINFOEXA) == 156, "sizeof(OSVERSIONINFOEXA) == %d (expected 156)", sizeof(OSVERSIONINFOEXA));
384 /* OSVERSIONINFOEXW */
385 ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize) == 0,
386 "FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize) == %ld (expected 0)",
387 FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize)); /* DWORD */
388 ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion) == 4,
389 "FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion) == %ld (expected 4)",
390 FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion)); /* DWORD */
391 ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion) == 8,
392 "FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion) == %ld (expected 8)",
393 FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion)); /* DWORD */
394 ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber) == 12,
395 "FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber) == %ld (expected 12)",
396 FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber)); /* DWORD */
397 ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId) == 16,
398 "FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId) == %ld (expected 16)",
399 FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId)); /* DWORD */
400 ok(FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion) == 20,
401 "FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion) == %ld (expected 20)",
402 FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion)); /* WCHAR[128] */
403 ok(FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor) == 276,
404 "FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor) == %ld (expected 276)",
405 FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor)); /* WORD */
406 ok(FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor) == 278,
407 "FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor) == %ld (expected 278)",
408 FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor)); /* WORD */
409 ok(FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask) == 280,
410 "FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask) == %ld (expected 280)",
411 FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask)); /* WORD */
412 ok(FIELD_OFFSET(OSVERSIONINFOEXW, wProductType) == 282,
413 "FIELD_OFFSET(OSVERSIONINFOEXW, wProductType) == %ld (expected 282)",
414 FIELD_OFFSET(OSVERSIONINFOEXW, wProductType)); /* BYTE */
415 ok(FIELD_OFFSET(OSVERSIONINFOEXW, wReserved) == 283,
416 "FIELD_OFFSET(OSVERSIONINFOEXW, wReserved) == %ld (expected 283)",
417 FIELD_OFFSET(OSVERSIONINFOEXW, wReserved)); /* BYTE */
418 ok(sizeof(OSVERSIONINFOEXW) == 284, "sizeof(OSVERSIONINFOEXW) == %d (expected 284)", sizeof(OSVERSIONINFOEXW));
421 ok(FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize) == 0,
422 "FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize) == %ld (expected 0)",
423 FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize)); /* DWORD */
424 ok(FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion) == 4,
425 "FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion) == %ld (expected 4)",
426 FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion)); /* DWORD */
427 ok(FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion) == 8,
428 "FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion) == %ld (expected 8)",
429 FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion)); /* DWORD */
430 ok(FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber) == 12,
431 "FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber) == %ld (expected 12)",
432 FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber)); /* DWORD */
433 ok(FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId) == 16,
434 "FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId) == %ld (expected 16)",
435 FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId)); /* DWORD */
436 ok(FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion) == 20,
437 "FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion) == %ld (expected 20)",
438 FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion)); /* WCHAR[128] */
439 ok(sizeof(OSVERSIONINFOW) == 276, "sizeof(OSVERSIONINFOW) == %d (expected 276)", sizeof(OSVERSIONINFOW));
441 /* OUTPUT_DEBUG_STRING_INFO */
442 ok(FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData) == 0,
443 "FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData) == %ld (expected 0)",
444 FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData)); /* LPSTR */
445 ok(FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode) == 4,
446 "FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode) == %ld (expected 4)",
447 FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode)); /* WORD */
448 ok(FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength) == 6,
449 "FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength) == %ld (expected 6)",
450 FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength)); /* WORD */
451 ok(sizeof(OUTPUT_DEBUG_STRING_INFO) == 8, "sizeof(OUTPUT_DEBUG_STRING_INFO) == %d (expected 8)", sizeof(OUTPUT_DEBUG_STRING_INFO));
454 ok(FIELD_OFFSET(OVERLAPPED, Internal) == 0,
455 "FIELD_OFFSET(OVERLAPPED, Internal) == %ld (expected 0)",
456 FIELD_OFFSET(OVERLAPPED, Internal)); /* DWORD */
457 ok(FIELD_OFFSET(OVERLAPPED, InternalHigh) == 4,
458 "FIELD_OFFSET(OVERLAPPED, InternalHigh) == %ld (expected 4)",
459 FIELD_OFFSET(OVERLAPPED, InternalHigh)); /* DWORD */
460 ok(FIELD_OFFSET(OVERLAPPED, Offset) == 8,
461 "FIELD_OFFSET(OVERLAPPED, Offset) == %ld (expected 8)",
462 FIELD_OFFSET(OVERLAPPED, Offset)); /* DWORD */
463 ok(FIELD_OFFSET(OVERLAPPED, OffsetHigh) == 12,
464 "FIELD_OFFSET(OVERLAPPED, OffsetHigh) == %ld (expected 12)",
465 FIELD_OFFSET(OVERLAPPED, OffsetHigh)); /* DWORD */
466 ok(FIELD_OFFSET(OVERLAPPED, hEvent) == 16,
467 "FIELD_OFFSET(OVERLAPPED, hEvent) == %ld (expected 16)",
468 FIELD_OFFSET(OVERLAPPED, hEvent)); /* HANDLE */
469 ok(sizeof(OVERLAPPED) == 20, "sizeof(OVERLAPPED) == %d (expected 20)", sizeof(OVERLAPPED));
471 /* PROCESS_INFORMATION */
472 ok(FIELD_OFFSET(PROCESS_INFORMATION, hProcess) == 0,
473 "FIELD_OFFSET(PROCESS_INFORMATION, hProcess) == %ld (expected 0)",
474 FIELD_OFFSET(PROCESS_INFORMATION, hProcess)); /* HANDLE */
475 ok(FIELD_OFFSET(PROCESS_INFORMATION, hThread) == 4,
476 "FIELD_OFFSET(PROCESS_INFORMATION, hThread) == %ld (expected 4)",
477 FIELD_OFFSET(PROCESS_INFORMATION, hThread)); /* HANDLE */
478 ok(FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId) == 8,
479 "FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId) == %ld (expected 8)",
480 FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId)); /* DWORD */
481 ok(FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId) == 12,
482 "FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId) == %ld (expected 12)",
483 FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId)); /* DWORD */
484 ok(sizeof(PROCESS_INFORMATION) == 16, "sizeof(PROCESS_INFORMATION) == %d (expected 16)", sizeof(PROCESS_INFORMATION));
487 ok(FIELD_OFFSET(RIP_INFO, dwError) == 0,
488 "FIELD_OFFSET(RIP_INFO, dwError) == %ld (expected 0)",
489 FIELD_OFFSET(RIP_INFO, dwError)); /* DWORD */
490 ok(FIELD_OFFSET(RIP_INFO, dwType) == 4,
491 "FIELD_OFFSET(RIP_INFO, dwType) == %ld (expected 4)",
492 FIELD_OFFSET(RIP_INFO, dwType)); /* DWORD */
493 ok(sizeof(RIP_INFO) == 8, "sizeof(RIP_INFO) == %d (expected 8)", sizeof(RIP_INFO));
495 /* SECURITY_ATTRIBUTES */
496 ok(FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength) == 0,
497 "FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength) == %ld (expected 0)",
498 FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength)); /* DWORD */
499 ok(FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor) == 4,
500 "FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor) == %ld (expected 4)",
501 FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor)); /* LPVOID */
502 ok(FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle) == 8,
503 "FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle) == %ld (expected 8)",
504 FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle)); /* BOOL */
505 ok(sizeof(SECURITY_ATTRIBUTES) == 12, "sizeof(SECURITY_ATTRIBUTES) == %d (expected 12)", sizeof(SECURITY_ATTRIBUTES));
508 ok(FIELD_OFFSET(STARTUPINFOA, cb) == 0,
509 "FIELD_OFFSET(STARTUPINFOA, cb) == %ld (expected 0)",
510 FIELD_OFFSET(STARTUPINFOA, cb)); /* DWORD */
511 ok(FIELD_OFFSET(STARTUPINFOA, lpReserved) == 4,
512 "FIELD_OFFSET(STARTUPINFOA, lpReserved) == %ld (expected 4)",
513 FIELD_OFFSET(STARTUPINFOA, lpReserved)); /* LPSTR */
514 ok(FIELD_OFFSET(STARTUPINFOA, lpDesktop) == 8,
515 "FIELD_OFFSET(STARTUPINFOA, lpDesktop) == %ld (expected 8)",
516 FIELD_OFFSET(STARTUPINFOA, lpDesktop)); /* LPSTR */
517 ok(FIELD_OFFSET(STARTUPINFOA, lpTitle) == 12,
518 "FIELD_OFFSET(STARTUPINFOA, lpTitle) == %ld (expected 12)",
519 FIELD_OFFSET(STARTUPINFOA, lpTitle)); /* LPSTR */
520 ok(FIELD_OFFSET(STARTUPINFOA, dwX) == 16,
521 "FIELD_OFFSET(STARTUPINFOA, dwX) == %ld (expected 16)",
522 FIELD_OFFSET(STARTUPINFOA, dwX)); /* DWORD */
523 ok(FIELD_OFFSET(STARTUPINFOA, dwY) == 20,
524 "FIELD_OFFSET(STARTUPINFOA, dwY) == %ld (expected 20)",
525 FIELD_OFFSET(STARTUPINFOA, dwY)); /* DWORD */
526 ok(FIELD_OFFSET(STARTUPINFOA, dwXSize) == 24,
527 "FIELD_OFFSET(STARTUPINFOA, dwXSize) == %ld (expected 24)",
528 FIELD_OFFSET(STARTUPINFOA, dwXSize)); /* DWORD */
529 ok(FIELD_OFFSET(STARTUPINFOA, dwYSize) == 28,
530 "FIELD_OFFSET(STARTUPINFOA, dwYSize) == %ld (expected 28)",
531 FIELD_OFFSET(STARTUPINFOA, dwYSize)); /* DWORD */
532 ok(FIELD_OFFSET(STARTUPINFOA, dwXCountChars) == 32,
533 "FIELD_OFFSET(STARTUPINFOA, dwXCountChars) == %ld (expected 32)",
534 FIELD_OFFSET(STARTUPINFOA, dwXCountChars)); /* DWORD */
535 ok(FIELD_OFFSET(STARTUPINFOA, dwYCountChars) == 36,
536 "FIELD_OFFSET(STARTUPINFOA, dwYCountChars) == %ld (expected 36)",
537 FIELD_OFFSET(STARTUPINFOA, dwYCountChars)); /* DWORD */
538 ok(FIELD_OFFSET(STARTUPINFOA, dwFillAttribute) == 40,
539 "FIELD_OFFSET(STARTUPINFOA, dwFillAttribute) == %ld (expected 40)",
540 FIELD_OFFSET(STARTUPINFOA, dwFillAttribute)); /* DWORD */
541 ok(FIELD_OFFSET(STARTUPINFOA, dwFlags) == 44,
542 "FIELD_OFFSET(STARTUPINFOA, dwFlags) == %ld (expected 44)",
543 FIELD_OFFSET(STARTUPINFOA, dwFlags)); /* DWORD */
544 ok(FIELD_OFFSET(STARTUPINFOA, wShowWindow) == 48,
545 "FIELD_OFFSET(STARTUPINFOA, wShowWindow) == %ld (expected 48)",
546 FIELD_OFFSET(STARTUPINFOA, wShowWindow)); /* WORD */
547 ok(FIELD_OFFSET(STARTUPINFOA, cbReserved2) == 50,
548 "FIELD_OFFSET(STARTUPINFOA, cbReserved2) == %ld (expected 50)",
549 FIELD_OFFSET(STARTUPINFOA, cbReserved2)); /* WORD */
550 ok(FIELD_OFFSET(STARTUPINFOA, lpReserved2) == 52,
551 "FIELD_OFFSET(STARTUPINFOA, lpReserved2) == %ld (expected 52)",
552 FIELD_OFFSET(STARTUPINFOA, lpReserved2)); /* BYTE * */
553 ok(FIELD_OFFSET(STARTUPINFOA, hStdInput) == 56,
554 "FIELD_OFFSET(STARTUPINFOA, hStdInput) == %ld (expected 56)",
555 FIELD_OFFSET(STARTUPINFOA, hStdInput)); /* HANDLE */
556 ok(FIELD_OFFSET(STARTUPINFOA, hStdOutput) == 60,
557 "FIELD_OFFSET(STARTUPINFOA, hStdOutput) == %ld (expected 60)",
558 FIELD_OFFSET(STARTUPINFOA, hStdOutput)); /* HANDLE */
559 ok(FIELD_OFFSET(STARTUPINFOA, hStdError) == 64,
560 "FIELD_OFFSET(STARTUPINFOA, hStdError) == %ld (expected 64)",
561 FIELD_OFFSET(STARTUPINFOA, hStdError)); /* HANDLE */
562 ok(sizeof(STARTUPINFOA) == 68, "sizeof(STARTUPINFOA) == %d (expected 68)", sizeof(STARTUPINFOA));
565 ok(FIELD_OFFSET(STARTUPINFOW, cb) == 0,
566 "FIELD_OFFSET(STARTUPINFOW, cb) == %ld (expected 0)",
567 FIELD_OFFSET(STARTUPINFOW, cb)); /* DWORD */
568 ok(FIELD_OFFSET(STARTUPINFOW, lpReserved) == 4,
569 "FIELD_OFFSET(STARTUPINFOW, lpReserved) == %ld (expected 4)",
570 FIELD_OFFSET(STARTUPINFOW, lpReserved)); /* LPWSTR */
571 ok(FIELD_OFFSET(STARTUPINFOW, lpDesktop) == 8,
572 "FIELD_OFFSET(STARTUPINFOW, lpDesktop) == %ld (expected 8)",
573 FIELD_OFFSET(STARTUPINFOW, lpDesktop)); /* LPWSTR */
574 ok(FIELD_OFFSET(STARTUPINFOW, lpTitle) == 12,
575 "FIELD_OFFSET(STARTUPINFOW, lpTitle) == %ld (expected 12)",
576 FIELD_OFFSET(STARTUPINFOW, lpTitle)); /* LPWSTR */
577 ok(FIELD_OFFSET(STARTUPINFOW, dwX) == 16,
578 "FIELD_OFFSET(STARTUPINFOW, dwX) == %ld (expected 16)",
579 FIELD_OFFSET(STARTUPINFOW, dwX)); /* DWORD */
580 ok(FIELD_OFFSET(STARTUPINFOW, dwY) == 20,
581 "FIELD_OFFSET(STARTUPINFOW, dwY) == %ld (expected 20)",
582 FIELD_OFFSET(STARTUPINFOW, dwY)); /* DWORD */
583 ok(FIELD_OFFSET(STARTUPINFOW, dwXSize) == 24,
584 "FIELD_OFFSET(STARTUPINFOW, dwXSize) == %ld (expected 24)",
585 FIELD_OFFSET(STARTUPINFOW, dwXSize)); /* DWORD */
586 ok(FIELD_OFFSET(STARTUPINFOW, dwYSize) == 28,
587 "FIELD_OFFSET(STARTUPINFOW, dwYSize) == %ld (expected 28)",
588 FIELD_OFFSET(STARTUPINFOW, dwYSize)); /* DWORD */
589 ok(FIELD_OFFSET(STARTUPINFOW, dwXCountChars) == 32,
590 "FIELD_OFFSET(STARTUPINFOW, dwXCountChars) == %ld (expected 32)",
591 FIELD_OFFSET(STARTUPINFOW, dwXCountChars)); /* DWORD */
592 ok(FIELD_OFFSET(STARTUPINFOW, dwYCountChars) == 36,
593 "FIELD_OFFSET(STARTUPINFOW, dwYCountChars) == %ld (expected 36)",
594 FIELD_OFFSET(STARTUPINFOW, dwYCountChars)); /* DWORD */
595 ok(FIELD_OFFSET(STARTUPINFOW, dwFillAttribute) == 40,
596 "FIELD_OFFSET(STARTUPINFOW, dwFillAttribute) == %ld (expected 40)",
597 FIELD_OFFSET(STARTUPINFOW, dwFillAttribute)); /* DWORD */
598 ok(FIELD_OFFSET(STARTUPINFOW, dwFlags) == 44,
599 "FIELD_OFFSET(STARTUPINFOW, dwFlags) == %ld (expected 44)",
600 FIELD_OFFSET(STARTUPINFOW, dwFlags)); /* DWORD */
601 ok(FIELD_OFFSET(STARTUPINFOW, wShowWindow) == 48,
602 "FIELD_OFFSET(STARTUPINFOW, wShowWindow) == %ld (expected 48)",
603 FIELD_OFFSET(STARTUPINFOW, wShowWindow)); /* WORD */
604 ok(FIELD_OFFSET(STARTUPINFOW, cbReserved2) == 50,
605 "FIELD_OFFSET(STARTUPINFOW, cbReserved2) == %ld (expected 50)",
606 FIELD_OFFSET(STARTUPINFOW, cbReserved2)); /* WORD */
607 ok(FIELD_OFFSET(STARTUPINFOW, lpReserved2) == 52,
608 "FIELD_OFFSET(STARTUPINFOW, lpReserved2) == %ld (expected 52)",
609 FIELD_OFFSET(STARTUPINFOW, lpReserved2)); /* BYTE * */
610 ok(FIELD_OFFSET(STARTUPINFOW, hStdInput) == 56,
611 "FIELD_OFFSET(STARTUPINFOW, hStdInput) == %ld (expected 56)",
612 FIELD_OFFSET(STARTUPINFOW, hStdInput)); /* HANDLE */
613 ok(FIELD_OFFSET(STARTUPINFOW, hStdOutput) == 60,
614 "FIELD_OFFSET(STARTUPINFOW, hStdOutput) == %ld (expected 60)",
615 FIELD_OFFSET(STARTUPINFOW, hStdOutput)); /* HANDLE */
616 ok(FIELD_OFFSET(STARTUPINFOW, hStdError) == 64,
617 "FIELD_OFFSET(STARTUPINFOW, hStdError) == %ld (expected 64)",
618 FIELD_OFFSET(STARTUPINFOW, hStdError)); /* HANDLE */
619 ok(sizeof(STARTUPINFOW) == 68, "sizeof(STARTUPINFOW) == %d (expected 68)", sizeof(STARTUPINFOW));
622 ok(FIELD_OFFSET(SYSLEVEL, crst) == 0,
623 "FIELD_OFFSET(SYSLEVEL, crst) == %ld (expected 0)",
624 FIELD_OFFSET(SYSLEVEL, crst)); /* CRITICAL_SECTION */
625 ok(FIELD_OFFSET(SYSLEVEL, level) == 24,
626 "FIELD_OFFSET(SYSLEVEL, level) == %ld (expected 24)",
627 FIELD_OFFSET(SYSLEVEL, level)); /* INT */
628 ok(sizeof(SYSLEVEL) == 28, "sizeof(SYSLEVEL) == %d (expected 28)", sizeof(SYSLEVEL));
631 ok(FIELD_OFFSET(SYSTEMTIME, wYear) == 0,
632 "FIELD_OFFSET(SYSTEMTIME, wYear) == %ld (expected 0)",
633 FIELD_OFFSET(SYSTEMTIME, wYear)); /* WORD */
634 ok(FIELD_OFFSET(SYSTEMTIME, wMonth) == 2,
635 "FIELD_OFFSET(SYSTEMTIME, wMonth) == %ld (expected 2)",
636 FIELD_OFFSET(SYSTEMTIME, wMonth)); /* WORD */
637 ok(FIELD_OFFSET(SYSTEMTIME, wDayOfWeek) == 4,
638 "FIELD_OFFSET(SYSTEMTIME, wDayOfWeek) == %ld (expected 4)",
639 FIELD_OFFSET(SYSTEMTIME, wDayOfWeek)); /* WORD */
640 ok(FIELD_OFFSET(SYSTEMTIME, wDay) == 6,
641 "FIELD_OFFSET(SYSTEMTIME, wDay) == %ld (expected 6)",
642 FIELD_OFFSET(SYSTEMTIME, wDay)); /* WORD */
643 ok(FIELD_OFFSET(SYSTEMTIME, wHour) == 8,
644 "FIELD_OFFSET(SYSTEMTIME, wHour) == %ld (expected 8)",
645 FIELD_OFFSET(SYSTEMTIME, wHour)); /* WORD */
646 ok(FIELD_OFFSET(SYSTEMTIME, wMinute) == 10,
647 "FIELD_OFFSET(SYSTEMTIME, wMinute) == %ld (expected 10)",
648 FIELD_OFFSET(SYSTEMTIME, wMinute)); /* WORD */
649 ok(FIELD_OFFSET(SYSTEMTIME, wSecond) == 12,
650 "FIELD_OFFSET(SYSTEMTIME, wSecond) == %ld (expected 12)",
651 FIELD_OFFSET(SYSTEMTIME, wSecond)); /* WORD */
652 ok(FIELD_OFFSET(SYSTEMTIME, wMilliseconds) == 14,
653 "FIELD_OFFSET(SYSTEMTIME, wMilliseconds) == %ld (expected 14)",
654 FIELD_OFFSET(SYSTEMTIME, wMilliseconds)); /* WORD */
655 ok(sizeof(SYSTEMTIME) == 16, "sizeof(SYSTEMTIME) == %d (expected 16)", sizeof(SYSTEMTIME));
658 ok(FIELD_OFFSET(SYSTEM_INFO, dwPageSize) == 4,
659 "FIELD_OFFSET(SYSTEM_INFO, dwPageSize) == %ld (expected 4)",
660 FIELD_OFFSET(SYSTEM_INFO, dwPageSize)); /* DWORD */
661 ok(FIELD_OFFSET(SYSTEM_INFO, lpMinimumApplicationAddress) == 8,
662 "FIELD_OFFSET(SYSTEM_INFO, lpMinimumApplicationAddress) == %ld (expected 8)",
663 FIELD_OFFSET(SYSTEM_INFO, lpMinimumApplicationAddress)); /* LPVOID */
664 ok(FIELD_OFFSET(SYSTEM_INFO, lpMaximumApplicationAddress) == 12,
665 "FIELD_OFFSET(SYSTEM_INFO, lpMaximumApplicationAddress) == %ld (expected 12)",
666 FIELD_OFFSET(SYSTEM_INFO, lpMaximumApplicationAddress)); /* LPVOID */
667 ok(FIELD_OFFSET(SYSTEM_INFO, dwActiveProcessorMask) == 16,
668 "FIELD_OFFSET(SYSTEM_INFO, dwActiveProcessorMask) == %ld (expected 16)",
669 FIELD_OFFSET(SYSTEM_INFO, dwActiveProcessorMask)); /* DWORD */
670 ok(FIELD_OFFSET(SYSTEM_INFO, dwNumberOfProcessors) == 20,
671 "FIELD_OFFSET(SYSTEM_INFO, dwNumberOfProcessors) == %ld (expected 20)",
672 FIELD_OFFSET(SYSTEM_INFO, dwNumberOfProcessors)); /* DWORD */
673 ok(FIELD_OFFSET(SYSTEM_INFO, dwProcessorType) == 24,
674 "FIELD_OFFSET(SYSTEM_INFO, dwProcessorType) == %ld (expected 24)",
675 FIELD_OFFSET(SYSTEM_INFO, dwProcessorType)); /* DWORD */
676 ok(FIELD_OFFSET(SYSTEM_INFO, dwAllocationGranularity) == 28,
677 "FIELD_OFFSET(SYSTEM_INFO, dwAllocationGranularity) == %ld (expected 28)",
678 FIELD_OFFSET(SYSTEM_INFO, dwAllocationGranularity)); /* DWORD */
679 ok(FIELD_OFFSET(SYSTEM_INFO, wProcessorLevel) == 32,
680 "FIELD_OFFSET(SYSTEM_INFO, wProcessorLevel) == %ld (expected 32)",
681 FIELD_OFFSET(SYSTEM_INFO, wProcessorLevel)); /* WORD */
682 ok(FIELD_OFFSET(SYSTEM_INFO, wProcessorRevision) == 34,
683 "FIELD_OFFSET(SYSTEM_INFO, wProcessorRevision) == %ld (expected 34)",
684 FIELD_OFFSET(SYSTEM_INFO, wProcessorRevision)); /* WORD */
685 ok(sizeof(SYSTEM_INFO) == 36, "sizeof(SYSTEM_INFO) == %d (expected 36)", sizeof(SYSTEM_INFO));
687 /* SYSTEM_POWER_STATUS */
688 ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus) == 0,
689 "FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus) == %ld (expected 0)",
690 FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus)); /* BYTE */
691 ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag) == 1,
692 "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag) == %ld (expected 1)",
693 FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag)); /* BYTE */
694 ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent) == 2,
695 "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent) == %ld (expected 2)",
696 FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent)); /* BYTE */
697 ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, reserved) == 3,
698 "FIELD_OFFSET(SYSTEM_POWER_STATUS, reserved) == %ld (expected 3)",
699 FIELD_OFFSET(SYSTEM_POWER_STATUS, reserved)); /* BYTE */
700 ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime) == 4,
701 "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime) == %ld (expected 4)",
702 FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime)); /* DWORD */
703 ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime) == 8,
704 "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime) == %ld (expected 8)",
705 FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime)); /* DWORD */
706 ok(sizeof(SYSTEM_POWER_STATUS) == 12, "sizeof(SYSTEM_POWER_STATUS) == %d (expected 12)", sizeof(SYSTEM_POWER_STATUS));
708 /* TIME_ZONE_INFORMATION */
709 ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias) == 0,
710 "FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias) == %ld (expected 0)",
711 FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias)); /* LONG */
712 ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName) == 4,
713 "FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName) == %ld (expected 4)",
714 FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName)); /* WCHAR[32] */
715 ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate) == 68,
716 "FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate) == %ld (expected 68)",
717 FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate)); /* SYSTEMTIME */
718 ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias) == 84,
719 "FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias) == %ld (expected 84)",
720 FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias)); /* LONG */
721 ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName) == 88,
722 "FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName) == %ld (expected 88)",
723 FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName)); /* WCHAR[32] */
724 ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate) == 152,
725 "FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate) == %ld (expected 152)",
726 FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate)); /* SYSTEMTIME */
727 ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias) == 168,
728 "FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias) == %ld (expected 168)",
729 FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias)); /* LONG */
730 ok(sizeof(TIME_ZONE_INFORMATION) == 172, "sizeof(TIME_ZONE_INFORMATION) == %d (expected 172)", sizeof(TIME_ZONE_INFORMATION));
732 /* UNLOAD_DLL_DEBUG_INFO */
733 ok(FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll) == 0,
734 "FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll) == %ld (expected 0)",
735 FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll)); /* LPVOID */
736 ok(sizeof(UNLOAD_DLL_DEBUG_INFO) == 4, "sizeof(UNLOAD_DLL_DEBUG_INFO) == %d (expected 4)", sizeof(UNLOAD_DLL_DEBUG_INFO));
738 /* WIN32_FILE_ATTRIBUTE_DATA */
739 ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes) == 0,
740 "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes) == %ld (expected 0)",
741 FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes)); /* DWORD */
742 ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime) == 4,
743 "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime) == %ld (expected 4)",
744 FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime)); /* FILETIME */
745 ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime) == 12,
746 "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime) == %ld (expected 12)",
747 FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime)); /* FILETIME */
748 ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime) == 20,
749 "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime) == %ld (expected 20)",
750 FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime)); /* FILETIME */
751 ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh) == 28,
752 "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh) == %ld (expected 28)",
753 FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh)); /* DWORD */
754 ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow) == 32,
755 "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow) == %ld (expected 32)",
756 FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow)); /* DWORD */
757 ok(sizeof(WIN32_FILE_ATTRIBUTE_DATA) == 36, "sizeof(WIN32_FILE_ATTRIBUTE_DATA) == %d (expected 36)", sizeof(WIN32_FILE_ATTRIBUTE_DATA));
759 /* WIN32_FIND_DATAA */
760 ok(FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes) == 0,
761 "FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes) == %ld (expected 0)",
762 FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes)); /* DWORD */
763 ok(FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime) == 4,
764 "FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime) == %ld (expected 4)",
765 FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime)); /* FILETIME */
766 ok(FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime) == 12,
767 "FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime) == %ld (expected 12)",
768 FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime)); /* FILETIME */
769 ok(FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime) == 20,
770 "FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime) == %ld (expected 20)",
771 FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime)); /* FILETIME */
772 ok(FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh) == 28,
773 "FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh) == %ld (expected 28)",
774 FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh)); /* DWORD */
775 ok(FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow) == 32,
776 "FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow) == %ld (expected 32)",
777 FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow)); /* DWORD */
778 ok(FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0) == 36,
779 "FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0) == %ld (expected 36)",
780 FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0)); /* DWORD */
781 ok(FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1) == 40,
782 "FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1) == %ld (expected 40)",
783 FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1)); /* DWORD */
784 ok(FIELD_OFFSET(WIN32_FIND_DATAA, cFileName) == 44,
785 "FIELD_OFFSET(WIN32_FIND_DATAA, cFileName) == %ld (expected 44)",
786 FIELD_OFFSET(WIN32_FIND_DATAA, cFileName)); /* CHAR[260] */
787 ok(FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName) == 304,
788 "FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName) == %ld (expected 304)",
789 FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName)); /* CHAR[14] */
790 ok(sizeof(WIN32_FIND_DATAA) == 320, "sizeof(WIN32_FIND_DATAA) == %d (expected 320)", sizeof(WIN32_FIND_DATAA));
792 /* WIN32_FIND_DATAW */
793 ok(FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes) == 0,
794 "FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes) == %ld (expected 0)",
795 FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes)); /* DWORD */
796 ok(FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime) == 4,
797 "FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime) == %ld (expected 4)",
798 FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime)); /* FILETIME */
799 ok(FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime) == 12,
800 "FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime) == %ld (expected 12)",
801 FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime)); /* FILETIME */
802 ok(FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime) == 20,
803 "FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime) == %ld (expected 20)",
804 FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime)); /* FILETIME */
805 ok(FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh) == 28,
806 "FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh) == %ld (expected 28)",
807 FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh)); /* DWORD */
808 ok(FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow) == 32,
809 "FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow) == %ld (expected 32)",
810 FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow)); /* DWORD */
811 ok(FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0) == 36,
812 "FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0) == %ld (expected 36)",
813 FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0)); /* DWORD */
814 ok(FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1) == 40,
815 "FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1) == %ld (expected 40)",
816 FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1)); /* DWORD */
817 ok(FIELD_OFFSET(WIN32_FIND_DATAW, cFileName) == 44,
818 "FIELD_OFFSET(WIN32_FIND_DATAW, cFileName) == %ld (expected 44)",
819 FIELD_OFFSET(WIN32_FIND_DATAW, cFileName)); /* WCHAR[260] */
820 ok(FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName) == 564,
821 "FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName) == %ld (expected 564)",
822 FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName)); /* WCHAR[14] */
823 ok(sizeof(WIN32_FIND_DATAW) == 592, "sizeof(WIN32_FIND_DATAW) == %d (expected 592)", sizeof(WIN32_FIND_DATAW));
825 /* WIN32_STREAM_ID */
826 ok(FIELD_OFFSET(WIN32_STREAM_ID, dwStreamID) == 0,
827 "FIELD_OFFSET(WIN32_STREAM_ID, dwStreamID) == %ld (expected 0)",
828 FIELD_OFFSET(WIN32_STREAM_ID, dwStreamID)); /* DWORD */
829 ok(FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes) == 4,
830 "FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes) == %ld (expected 4)",
831 FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes)); /* DWORD */
832 ok(FIELD_OFFSET(WIN32_STREAM_ID, Size) == 8,
833 "FIELD_OFFSET(WIN32_STREAM_ID, Size) == %ld (expected 8)",
834 FIELD_OFFSET(WIN32_STREAM_ID, Size)); /* LARGE_INTEGER */
835 ok(FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize) == 16,
836 "FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize) == %ld (expected 16)",
837 FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize)); /* DWORD */
838 ok(FIELD_OFFSET(WIN32_STREAM_ID, cStreamName) == 20,
839 "FIELD_OFFSET(WIN32_STREAM_ID, cStreamName) == %ld (expected 20)",
840 FIELD_OFFSET(WIN32_STREAM_ID, cStreamName)); /* WCHAR[ANYSIZE_ARRAY] */
841 ok(sizeof(WIN32_STREAM_ID) == 24, "sizeof(WIN32_STREAM_ID) == %d (expected 24)", sizeof(WIN32_STREAM_ID));
845 START_TEST(generated)