dispex: Use the upper WORD of the flags parameter to indicate whether the optional...
[wine/hramrach.git] / server / request.h
blob11382d8f7f05bcbedd0be4e93b40f3400eaf1bfa
1 /*
2 * Wine server requests
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_SERVER_REQUEST_H
22 #define __WINE_SERVER_REQUEST_H
24 #include <assert.h>
26 #include "thread.h"
27 #include "wine/server_protocol.h"
29 /* max request length */
30 #define MAX_REQUEST_LENGTH 8192
32 /* request handler definition */
33 #define DECL_HANDLER(name) \
34 void req_##name( const struct name##_request *req, struct name##_reply *reply )
36 /* request functions */
38 #ifdef __GNUC__
39 extern void fatal_protocol_error( struct thread *thread,
40 const char *err, ... ) __attribute__((format (printf,2,3)));
41 extern void fatal_protocol_perror( struct thread *thread,
42 const char *err, ... ) __attribute__((format (printf,2,3)));
43 extern void fatal_error( const char *err, ... ) __attribute__((noreturn,format(printf,1,2)));
44 extern void fatal_perror( const char *err, ... ) __attribute__((noreturn,format(printf,1,2)));
45 #else
46 extern void fatal_protocol_error( struct thread *thread, const char *err, ... );
47 extern void fatal_protocol_perror( struct thread *thread, const char *err, ... );
48 extern void fatal_error( const char *err, ... );
49 extern void fatal_perror( const char *err, ... );
50 #endif
52 extern const char *get_config_dir(void);
53 extern void *set_reply_data_size( data_size_t size );
54 extern int receive_fd( struct process *process );
55 extern int send_client_fd( struct process *process, int fd, obj_handle_t handle );
56 extern void read_request( struct thread *thread );
57 extern void write_reply( struct thread *thread );
58 extern unsigned int get_tick_count(void);
59 extern void open_master_socket(void);
60 extern void close_master_socket( timeout_t timeout );
61 extern void shutdown_master_socket(void);
62 extern int wait_for_lock(void);
63 extern int kill_lock_owner( int sig );
64 extern int server_dir_fd, config_dir_fd;
66 extern void trace_request(void);
67 extern void trace_reply( enum request req, const union generic_reply *reply );
69 /* get the request vararg data */
70 static inline const void *get_req_data(void)
72 return current->req_data;
75 /* get the request vararg size */
76 static inline data_size_t get_req_data_size(void)
78 return current->req.request_header.request_size;
81 /* get the request vararg as unicode string */
82 static inline void get_req_unicode_str( struct unicode_str *str )
84 str->str = get_req_data();
85 str->len = (get_req_data_size() / sizeof(WCHAR)) * sizeof(WCHAR);
88 /* get the reply maximum vararg size */
89 static inline data_size_t get_reply_max_size(void)
91 return current->req.request_header.reply_size;
94 /* allocate and fill the reply data */
95 static inline void *set_reply_data( const void *data, data_size_t size )
97 void *ret = set_reply_data_size( size );
98 if (ret) memcpy( ret, data, size );
99 return ret;
102 /* set the reply data pointer directly (will be freed by request code) */
103 static inline void set_reply_data_ptr( void *data, data_size_t size )
105 assert( size <= get_reply_max_size() );
106 current->reply_size = size;
107 current->reply_data = data;
111 /* Everything below this line is generated automatically by tools/make_requests */
112 /* ### make_requests begin ### */
114 DECL_HANDLER(new_process);
115 DECL_HANDLER(get_new_process_info);
116 DECL_HANDLER(new_thread);
117 DECL_HANDLER(get_startup_info);
118 DECL_HANDLER(init_process_done);
119 DECL_HANDLER(init_thread);
120 DECL_HANDLER(terminate_process);
121 DECL_HANDLER(terminate_thread);
122 DECL_HANDLER(get_process_info);
123 DECL_HANDLER(set_process_info);
124 DECL_HANDLER(get_thread_info);
125 DECL_HANDLER(set_thread_info);
126 DECL_HANDLER(get_dll_info);
127 DECL_HANDLER(suspend_thread);
128 DECL_HANDLER(resume_thread);
129 DECL_HANDLER(load_dll);
130 DECL_HANDLER(unload_dll);
131 DECL_HANDLER(queue_apc);
132 DECL_HANDLER(get_apc_result);
133 DECL_HANDLER(close_handle);
134 DECL_HANDLER(set_handle_info);
135 DECL_HANDLER(dup_handle);
136 DECL_HANDLER(open_process);
137 DECL_HANDLER(open_thread);
138 DECL_HANDLER(select);
139 DECL_HANDLER(create_event);
140 DECL_HANDLER(event_op);
141 DECL_HANDLER(open_event);
142 DECL_HANDLER(create_mutex);
143 DECL_HANDLER(release_mutex);
144 DECL_HANDLER(open_mutex);
145 DECL_HANDLER(create_semaphore);
146 DECL_HANDLER(release_semaphore);
147 DECL_HANDLER(open_semaphore);
148 DECL_HANDLER(create_file);
149 DECL_HANDLER(open_file_object);
150 DECL_HANDLER(alloc_file_handle);
151 DECL_HANDLER(get_handle_unix_name);
152 DECL_HANDLER(get_handle_fd);
153 DECL_HANDLER(flush_file);
154 DECL_HANDLER(lock_file);
155 DECL_HANDLER(unlock_file);
156 DECL_HANDLER(create_socket);
157 DECL_HANDLER(accept_socket);
158 DECL_HANDLER(set_socket_event);
159 DECL_HANDLER(get_socket_event);
160 DECL_HANDLER(enable_socket_event);
161 DECL_HANDLER(set_socket_deferred);
162 DECL_HANDLER(alloc_console);
163 DECL_HANDLER(free_console);
164 DECL_HANDLER(get_console_renderer_events);
165 DECL_HANDLER(open_console);
166 DECL_HANDLER(get_console_wait_event);
167 DECL_HANDLER(get_console_mode);
168 DECL_HANDLER(set_console_mode);
169 DECL_HANDLER(set_console_input_info);
170 DECL_HANDLER(get_console_input_info);
171 DECL_HANDLER(append_console_input_history);
172 DECL_HANDLER(get_console_input_history);
173 DECL_HANDLER(create_console_output);
174 DECL_HANDLER(set_console_output_info);
175 DECL_HANDLER(get_console_output_info);
176 DECL_HANDLER(write_console_input);
177 DECL_HANDLER(read_console_input);
178 DECL_HANDLER(write_console_output);
179 DECL_HANDLER(fill_console_output);
180 DECL_HANDLER(read_console_output);
181 DECL_HANDLER(move_console_output);
182 DECL_HANDLER(send_console_signal);
183 DECL_HANDLER(read_directory_changes);
184 DECL_HANDLER(read_change);
185 DECL_HANDLER(create_mapping);
186 DECL_HANDLER(open_mapping);
187 DECL_HANDLER(get_mapping_info);
188 DECL_HANDLER(get_mapping_committed_range);
189 DECL_HANDLER(add_mapping_committed_range);
190 DECL_HANDLER(create_snapshot);
191 DECL_HANDLER(next_process);
192 DECL_HANDLER(next_thread);
193 DECL_HANDLER(wait_debug_event);
194 DECL_HANDLER(queue_exception_event);
195 DECL_HANDLER(get_exception_status);
196 DECL_HANDLER(output_debug_string);
197 DECL_HANDLER(continue_debug_event);
198 DECL_HANDLER(debug_process);
199 DECL_HANDLER(debug_break);
200 DECL_HANDLER(set_debugger_kill_on_exit);
201 DECL_HANDLER(read_process_memory);
202 DECL_HANDLER(write_process_memory);
203 DECL_HANDLER(create_key);
204 DECL_HANDLER(open_key);
205 DECL_HANDLER(delete_key);
206 DECL_HANDLER(flush_key);
207 DECL_HANDLER(enum_key);
208 DECL_HANDLER(set_key_value);
209 DECL_HANDLER(get_key_value);
210 DECL_HANDLER(enum_key_value);
211 DECL_HANDLER(delete_key_value);
212 DECL_HANDLER(load_registry);
213 DECL_HANDLER(unload_registry);
214 DECL_HANDLER(save_registry);
215 DECL_HANDLER(set_registry_notification);
216 DECL_HANDLER(create_timer);
217 DECL_HANDLER(open_timer);
218 DECL_HANDLER(set_timer);
219 DECL_HANDLER(cancel_timer);
220 DECL_HANDLER(get_timer_info);
221 DECL_HANDLER(get_thread_context);
222 DECL_HANDLER(set_thread_context);
223 DECL_HANDLER(get_selector_entry);
224 DECL_HANDLER(add_atom);
225 DECL_HANDLER(delete_atom);
226 DECL_HANDLER(find_atom);
227 DECL_HANDLER(get_atom_information);
228 DECL_HANDLER(set_atom_information);
229 DECL_HANDLER(empty_atom_table);
230 DECL_HANDLER(init_atom_table);
231 DECL_HANDLER(get_msg_queue);
232 DECL_HANDLER(set_queue_fd);
233 DECL_HANDLER(set_queue_mask);
234 DECL_HANDLER(get_queue_status);
235 DECL_HANDLER(get_process_idle_event);
236 DECL_HANDLER(send_message);
237 DECL_HANDLER(post_quit_message);
238 DECL_HANDLER(send_hardware_message);
239 DECL_HANDLER(get_message);
240 DECL_HANDLER(reply_message);
241 DECL_HANDLER(accept_hardware_message);
242 DECL_HANDLER(get_message_reply);
243 DECL_HANDLER(set_win_timer);
244 DECL_HANDLER(kill_win_timer);
245 DECL_HANDLER(is_window_hung);
246 DECL_HANDLER(get_serial_info);
247 DECL_HANDLER(set_serial_info);
248 DECL_HANDLER(register_async);
249 DECL_HANDLER(cancel_async);
250 DECL_HANDLER(ioctl);
251 DECL_HANDLER(get_ioctl_result);
252 DECL_HANDLER(create_named_pipe);
253 DECL_HANDLER(get_named_pipe_info);
254 DECL_HANDLER(create_window);
255 DECL_HANDLER(destroy_window);
256 DECL_HANDLER(get_desktop_window);
257 DECL_HANDLER(set_window_owner);
258 DECL_HANDLER(get_window_info);
259 DECL_HANDLER(set_window_info);
260 DECL_HANDLER(set_parent);
261 DECL_HANDLER(get_window_parents);
262 DECL_HANDLER(get_window_children);
263 DECL_HANDLER(get_window_children_from_point);
264 DECL_HANDLER(get_window_tree);
265 DECL_HANDLER(set_window_pos);
266 DECL_HANDLER(get_window_rectangles);
267 DECL_HANDLER(get_window_text);
268 DECL_HANDLER(set_window_text);
269 DECL_HANDLER(get_windows_offset);
270 DECL_HANDLER(get_visible_region);
271 DECL_HANDLER(get_window_region);
272 DECL_HANDLER(set_window_region);
273 DECL_HANDLER(get_update_region);
274 DECL_HANDLER(update_window_zorder);
275 DECL_HANDLER(redraw_window);
276 DECL_HANDLER(set_window_property);
277 DECL_HANDLER(remove_window_property);
278 DECL_HANDLER(get_window_property);
279 DECL_HANDLER(get_window_properties);
280 DECL_HANDLER(create_winstation);
281 DECL_HANDLER(open_winstation);
282 DECL_HANDLER(close_winstation);
283 DECL_HANDLER(get_process_winstation);
284 DECL_HANDLER(set_process_winstation);
285 DECL_HANDLER(enum_winstation);
286 DECL_HANDLER(create_desktop);
287 DECL_HANDLER(open_desktop);
288 DECL_HANDLER(close_desktop);
289 DECL_HANDLER(get_thread_desktop);
290 DECL_HANDLER(set_thread_desktop);
291 DECL_HANDLER(enum_desktop);
292 DECL_HANDLER(set_user_object_info);
293 DECL_HANDLER(attach_thread_input);
294 DECL_HANDLER(get_thread_input);
295 DECL_HANDLER(get_last_input_time);
296 DECL_HANDLER(get_key_state);
297 DECL_HANDLER(set_key_state);
298 DECL_HANDLER(set_foreground_window);
299 DECL_HANDLER(set_focus_window);
300 DECL_HANDLER(set_active_window);
301 DECL_HANDLER(set_capture_window);
302 DECL_HANDLER(set_caret_window);
303 DECL_HANDLER(set_caret_info);
304 DECL_HANDLER(set_hook);
305 DECL_HANDLER(remove_hook);
306 DECL_HANDLER(start_hook_chain);
307 DECL_HANDLER(finish_hook_chain);
308 DECL_HANDLER(get_hook_info);
309 DECL_HANDLER(create_class);
310 DECL_HANDLER(destroy_class);
311 DECL_HANDLER(set_class_info);
312 DECL_HANDLER(set_clipboard_info);
313 DECL_HANDLER(open_token);
314 DECL_HANDLER(set_global_windows);
315 DECL_HANDLER(adjust_token_privileges);
316 DECL_HANDLER(get_token_privileges);
317 DECL_HANDLER(check_token_privileges);
318 DECL_HANDLER(duplicate_token);
319 DECL_HANDLER(access_check);
320 DECL_HANDLER(get_token_sid);
321 DECL_HANDLER(get_token_groups);
322 DECL_HANDLER(get_token_default_dacl);
323 DECL_HANDLER(set_token_default_dacl);
324 DECL_HANDLER(set_security_object);
325 DECL_HANDLER(get_security_object);
326 DECL_HANDLER(create_mailslot);
327 DECL_HANDLER(set_mailslot_info);
328 DECL_HANDLER(create_directory);
329 DECL_HANDLER(open_directory);
330 DECL_HANDLER(get_directory_entry);
331 DECL_HANDLER(create_symlink);
332 DECL_HANDLER(open_symlink);
333 DECL_HANDLER(query_symlink);
334 DECL_HANDLER(get_object_info);
335 DECL_HANDLER(unlink_object);
336 DECL_HANDLER(get_token_impersonation_level);
337 DECL_HANDLER(allocate_locally_unique_id);
338 DECL_HANDLER(create_device_manager);
339 DECL_HANDLER(create_device);
340 DECL_HANDLER(delete_device);
341 DECL_HANDLER(get_next_device_request);
342 DECL_HANDLER(make_process_system);
343 DECL_HANDLER(get_token_statistics);
344 DECL_HANDLER(create_completion);
345 DECL_HANDLER(open_completion);
346 DECL_HANDLER(add_completion);
347 DECL_HANDLER(remove_completion);
348 DECL_HANDLER(query_completion);
349 DECL_HANDLER(set_completion_info);
350 DECL_HANDLER(add_fd_completion);
351 DECL_HANDLER(get_window_layered_info);
352 DECL_HANDLER(set_window_layered_info);
353 DECL_HANDLER(alloc_user_handle);
354 DECL_HANDLER(free_user_handle);
356 #ifdef WANT_REQUEST_HANDLERS
358 typedef void (*req_handler)( const void *req, void *reply );
359 static const req_handler req_handlers[REQ_NB_REQUESTS] =
361 (req_handler)req_new_process,
362 (req_handler)req_get_new_process_info,
363 (req_handler)req_new_thread,
364 (req_handler)req_get_startup_info,
365 (req_handler)req_init_process_done,
366 (req_handler)req_init_thread,
367 (req_handler)req_terminate_process,
368 (req_handler)req_terminate_thread,
369 (req_handler)req_get_process_info,
370 (req_handler)req_set_process_info,
371 (req_handler)req_get_thread_info,
372 (req_handler)req_set_thread_info,
373 (req_handler)req_get_dll_info,
374 (req_handler)req_suspend_thread,
375 (req_handler)req_resume_thread,
376 (req_handler)req_load_dll,
377 (req_handler)req_unload_dll,
378 (req_handler)req_queue_apc,
379 (req_handler)req_get_apc_result,
380 (req_handler)req_close_handle,
381 (req_handler)req_set_handle_info,
382 (req_handler)req_dup_handle,
383 (req_handler)req_open_process,
384 (req_handler)req_open_thread,
385 (req_handler)req_select,
386 (req_handler)req_create_event,
387 (req_handler)req_event_op,
388 (req_handler)req_open_event,
389 (req_handler)req_create_mutex,
390 (req_handler)req_release_mutex,
391 (req_handler)req_open_mutex,
392 (req_handler)req_create_semaphore,
393 (req_handler)req_release_semaphore,
394 (req_handler)req_open_semaphore,
395 (req_handler)req_create_file,
396 (req_handler)req_open_file_object,
397 (req_handler)req_alloc_file_handle,
398 (req_handler)req_get_handle_unix_name,
399 (req_handler)req_get_handle_fd,
400 (req_handler)req_flush_file,
401 (req_handler)req_lock_file,
402 (req_handler)req_unlock_file,
403 (req_handler)req_create_socket,
404 (req_handler)req_accept_socket,
405 (req_handler)req_set_socket_event,
406 (req_handler)req_get_socket_event,
407 (req_handler)req_enable_socket_event,
408 (req_handler)req_set_socket_deferred,
409 (req_handler)req_alloc_console,
410 (req_handler)req_free_console,
411 (req_handler)req_get_console_renderer_events,
412 (req_handler)req_open_console,
413 (req_handler)req_get_console_wait_event,
414 (req_handler)req_get_console_mode,
415 (req_handler)req_set_console_mode,
416 (req_handler)req_set_console_input_info,
417 (req_handler)req_get_console_input_info,
418 (req_handler)req_append_console_input_history,
419 (req_handler)req_get_console_input_history,
420 (req_handler)req_create_console_output,
421 (req_handler)req_set_console_output_info,
422 (req_handler)req_get_console_output_info,
423 (req_handler)req_write_console_input,
424 (req_handler)req_read_console_input,
425 (req_handler)req_write_console_output,
426 (req_handler)req_fill_console_output,
427 (req_handler)req_read_console_output,
428 (req_handler)req_move_console_output,
429 (req_handler)req_send_console_signal,
430 (req_handler)req_read_directory_changes,
431 (req_handler)req_read_change,
432 (req_handler)req_create_mapping,
433 (req_handler)req_open_mapping,
434 (req_handler)req_get_mapping_info,
435 (req_handler)req_get_mapping_committed_range,
436 (req_handler)req_add_mapping_committed_range,
437 (req_handler)req_create_snapshot,
438 (req_handler)req_next_process,
439 (req_handler)req_next_thread,
440 (req_handler)req_wait_debug_event,
441 (req_handler)req_queue_exception_event,
442 (req_handler)req_get_exception_status,
443 (req_handler)req_output_debug_string,
444 (req_handler)req_continue_debug_event,
445 (req_handler)req_debug_process,
446 (req_handler)req_debug_break,
447 (req_handler)req_set_debugger_kill_on_exit,
448 (req_handler)req_read_process_memory,
449 (req_handler)req_write_process_memory,
450 (req_handler)req_create_key,
451 (req_handler)req_open_key,
452 (req_handler)req_delete_key,
453 (req_handler)req_flush_key,
454 (req_handler)req_enum_key,
455 (req_handler)req_set_key_value,
456 (req_handler)req_get_key_value,
457 (req_handler)req_enum_key_value,
458 (req_handler)req_delete_key_value,
459 (req_handler)req_load_registry,
460 (req_handler)req_unload_registry,
461 (req_handler)req_save_registry,
462 (req_handler)req_set_registry_notification,
463 (req_handler)req_create_timer,
464 (req_handler)req_open_timer,
465 (req_handler)req_set_timer,
466 (req_handler)req_cancel_timer,
467 (req_handler)req_get_timer_info,
468 (req_handler)req_get_thread_context,
469 (req_handler)req_set_thread_context,
470 (req_handler)req_get_selector_entry,
471 (req_handler)req_add_atom,
472 (req_handler)req_delete_atom,
473 (req_handler)req_find_atom,
474 (req_handler)req_get_atom_information,
475 (req_handler)req_set_atom_information,
476 (req_handler)req_empty_atom_table,
477 (req_handler)req_init_atom_table,
478 (req_handler)req_get_msg_queue,
479 (req_handler)req_set_queue_fd,
480 (req_handler)req_set_queue_mask,
481 (req_handler)req_get_queue_status,
482 (req_handler)req_get_process_idle_event,
483 (req_handler)req_send_message,
484 (req_handler)req_post_quit_message,
485 (req_handler)req_send_hardware_message,
486 (req_handler)req_get_message,
487 (req_handler)req_reply_message,
488 (req_handler)req_accept_hardware_message,
489 (req_handler)req_get_message_reply,
490 (req_handler)req_set_win_timer,
491 (req_handler)req_kill_win_timer,
492 (req_handler)req_is_window_hung,
493 (req_handler)req_get_serial_info,
494 (req_handler)req_set_serial_info,
495 (req_handler)req_register_async,
496 (req_handler)req_cancel_async,
497 (req_handler)req_ioctl,
498 (req_handler)req_get_ioctl_result,
499 (req_handler)req_create_named_pipe,
500 (req_handler)req_get_named_pipe_info,
501 (req_handler)req_create_window,
502 (req_handler)req_destroy_window,
503 (req_handler)req_get_desktop_window,
504 (req_handler)req_set_window_owner,
505 (req_handler)req_get_window_info,
506 (req_handler)req_set_window_info,
507 (req_handler)req_set_parent,
508 (req_handler)req_get_window_parents,
509 (req_handler)req_get_window_children,
510 (req_handler)req_get_window_children_from_point,
511 (req_handler)req_get_window_tree,
512 (req_handler)req_set_window_pos,
513 (req_handler)req_get_window_rectangles,
514 (req_handler)req_get_window_text,
515 (req_handler)req_set_window_text,
516 (req_handler)req_get_windows_offset,
517 (req_handler)req_get_visible_region,
518 (req_handler)req_get_window_region,
519 (req_handler)req_set_window_region,
520 (req_handler)req_get_update_region,
521 (req_handler)req_update_window_zorder,
522 (req_handler)req_redraw_window,
523 (req_handler)req_set_window_property,
524 (req_handler)req_remove_window_property,
525 (req_handler)req_get_window_property,
526 (req_handler)req_get_window_properties,
527 (req_handler)req_create_winstation,
528 (req_handler)req_open_winstation,
529 (req_handler)req_close_winstation,
530 (req_handler)req_get_process_winstation,
531 (req_handler)req_set_process_winstation,
532 (req_handler)req_enum_winstation,
533 (req_handler)req_create_desktop,
534 (req_handler)req_open_desktop,
535 (req_handler)req_close_desktop,
536 (req_handler)req_get_thread_desktop,
537 (req_handler)req_set_thread_desktop,
538 (req_handler)req_enum_desktop,
539 (req_handler)req_set_user_object_info,
540 (req_handler)req_attach_thread_input,
541 (req_handler)req_get_thread_input,
542 (req_handler)req_get_last_input_time,
543 (req_handler)req_get_key_state,
544 (req_handler)req_set_key_state,
545 (req_handler)req_set_foreground_window,
546 (req_handler)req_set_focus_window,
547 (req_handler)req_set_active_window,
548 (req_handler)req_set_capture_window,
549 (req_handler)req_set_caret_window,
550 (req_handler)req_set_caret_info,
551 (req_handler)req_set_hook,
552 (req_handler)req_remove_hook,
553 (req_handler)req_start_hook_chain,
554 (req_handler)req_finish_hook_chain,
555 (req_handler)req_get_hook_info,
556 (req_handler)req_create_class,
557 (req_handler)req_destroy_class,
558 (req_handler)req_set_class_info,
559 (req_handler)req_set_clipboard_info,
560 (req_handler)req_open_token,
561 (req_handler)req_set_global_windows,
562 (req_handler)req_adjust_token_privileges,
563 (req_handler)req_get_token_privileges,
564 (req_handler)req_check_token_privileges,
565 (req_handler)req_duplicate_token,
566 (req_handler)req_access_check,
567 (req_handler)req_get_token_sid,
568 (req_handler)req_get_token_groups,
569 (req_handler)req_get_token_default_dacl,
570 (req_handler)req_set_token_default_dacl,
571 (req_handler)req_set_security_object,
572 (req_handler)req_get_security_object,
573 (req_handler)req_create_mailslot,
574 (req_handler)req_set_mailslot_info,
575 (req_handler)req_create_directory,
576 (req_handler)req_open_directory,
577 (req_handler)req_get_directory_entry,
578 (req_handler)req_create_symlink,
579 (req_handler)req_open_symlink,
580 (req_handler)req_query_symlink,
581 (req_handler)req_get_object_info,
582 (req_handler)req_unlink_object,
583 (req_handler)req_get_token_impersonation_level,
584 (req_handler)req_allocate_locally_unique_id,
585 (req_handler)req_create_device_manager,
586 (req_handler)req_create_device,
587 (req_handler)req_delete_device,
588 (req_handler)req_get_next_device_request,
589 (req_handler)req_make_process_system,
590 (req_handler)req_get_token_statistics,
591 (req_handler)req_create_completion,
592 (req_handler)req_open_completion,
593 (req_handler)req_add_completion,
594 (req_handler)req_remove_completion,
595 (req_handler)req_query_completion,
596 (req_handler)req_set_completion_info,
597 (req_handler)req_add_fd_completion,
598 (req_handler)req_get_window_layered_info,
599 (req_handler)req_set_window_layered_info,
600 (req_handler)req_alloc_user_handle,
601 (req_handler)req_free_user_handle,
604 C_ASSERT( sizeof(affinity_t) == 8 );
605 C_ASSERT( sizeof(apc_call_t) == 40 );
606 C_ASSERT( sizeof(apc_param_t) == 8 );
607 C_ASSERT( sizeof(apc_result_t) == 40 );
608 C_ASSERT( sizeof(async_data_t) == 40 );
609 C_ASSERT( sizeof(atom_t) == 4 );
610 C_ASSERT( sizeof(char) == 1 );
611 C_ASSERT( sizeof(char_info_t) == 4 );
612 C_ASSERT( sizeof(client_ptr_t) == 8 );
613 C_ASSERT( sizeof(cpu_type_t) == 4 );
614 C_ASSERT( sizeof(data_size_t) == 4 );
615 C_ASSERT( sizeof(file_pos_t) == 8 );
616 C_ASSERT( sizeof(int) == 4 );
617 C_ASSERT( sizeof(ioctl_code_t) == 4 );
618 C_ASSERT( sizeof(lparam_t) == 8 );
619 C_ASSERT( sizeof(luid_t) == 8 );
620 C_ASSERT( sizeof(mem_size_t) == 8 );
621 C_ASSERT( sizeof(mod_handle_t) == 8 );
622 C_ASSERT( sizeof(obj_handle_t) == 4 );
623 C_ASSERT( sizeof(process_id_t) == 4 );
624 C_ASSERT( sizeof(rectangle_t) == 16 );
625 C_ASSERT( sizeof(short int) == 2 );
626 C_ASSERT( sizeof(thread_id_t) == 4 );
627 C_ASSERT( sizeof(timeout_t) == 8 );
628 C_ASSERT( sizeof(unsigned char) == 1 );
629 C_ASSERT( sizeof(unsigned int) == 4 );
630 C_ASSERT( sizeof(unsigned short) == 2 );
631 C_ASSERT( sizeof(user_handle_t) == 4 );
632 C_ASSERT( FIELD_OFFSET(struct new_process_request, inherit_all) == 12 );
633 C_ASSERT( FIELD_OFFSET(struct new_process_request, create_flags) == 16 );
634 C_ASSERT( FIELD_OFFSET(struct new_process_request, socket_fd) == 20 );
635 C_ASSERT( FIELD_OFFSET(struct new_process_request, exe_file) == 24 );
636 C_ASSERT( FIELD_OFFSET(struct new_process_request, process_access) == 28 );
637 C_ASSERT( FIELD_OFFSET(struct new_process_request, process_attr) == 32 );
638 C_ASSERT( FIELD_OFFSET(struct new_process_request, thread_access) == 36 );
639 C_ASSERT( FIELD_OFFSET(struct new_process_request, thread_attr) == 40 );
640 C_ASSERT( FIELD_OFFSET(struct new_process_request, info_size) == 44 );
641 C_ASSERT( FIELD_OFFSET(struct new_process_reply, info) == 8 );
642 C_ASSERT( FIELD_OFFSET(struct new_process_reply, pid) == 12 );
643 C_ASSERT( FIELD_OFFSET(struct new_process_reply, phandle) == 16 );
644 C_ASSERT( FIELD_OFFSET(struct new_process_reply, tid) == 20 );
645 C_ASSERT( FIELD_OFFSET(struct new_process_reply, thandle) == 24 );
646 C_ASSERT( sizeof(struct new_process_reply) == 32 );
647 C_ASSERT( FIELD_OFFSET(struct get_new_process_info_request, info) == 12 );
648 C_ASSERT( FIELD_OFFSET(struct get_new_process_info_reply, success) == 8 );
649 C_ASSERT( FIELD_OFFSET(struct get_new_process_info_reply, exit_code) == 12 );
650 C_ASSERT( sizeof(struct get_new_process_info_reply) == 16 );
651 C_ASSERT( FIELD_OFFSET(struct new_thread_request, access) == 12 );
652 C_ASSERT( FIELD_OFFSET(struct new_thread_request, attributes) == 16 );
653 C_ASSERT( FIELD_OFFSET(struct new_thread_request, suspend) == 20 );
654 C_ASSERT( FIELD_OFFSET(struct new_thread_request, request_fd) == 24 );
655 C_ASSERT( FIELD_OFFSET(struct new_thread_reply, tid) == 8 );
656 C_ASSERT( FIELD_OFFSET(struct new_thread_reply, handle) == 12 );
657 C_ASSERT( sizeof(struct new_thread_reply) == 16 );
658 C_ASSERT( FIELD_OFFSET(struct get_startup_info_reply, exe_file) == 8 );
659 C_ASSERT( FIELD_OFFSET(struct get_startup_info_reply, info_size) == 12 );
660 C_ASSERT( sizeof(struct get_startup_info_reply) == 16 );
661 C_ASSERT( FIELD_OFFSET(struct init_process_done_request, gui) == 12 );
662 C_ASSERT( FIELD_OFFSET(struct init_process_done_request, module) == 16 );
663 C_ASSERT( FIELD_OFFSET(struct init_process_done_request, ldt_copy) == 24 );
664 C_ASSERT( FIELD_OFFSET(struct init_process_done_request, entry) == 32 );
665 C_ASSERT( sizeof(struct init_process_done_request) == 40 );
666 C_ASSERT( FIELD_OFFSET(struct init_thread_request, unix_pid) == 12 );
667 C_ASSERT( FIELD_OFFSET(struct init_thread_request, unix_tid) == 16 );
668 C_ASSERT( FIELD_OFFSET(struct init_thread_request, debug_level) == 20 );
669 C_ASSERT( FIELD_OFFSET(struct init_thread_request, teb) == 24 );
670 C_ASSERT( FIELD_OFFSET(struct init_thread_request, entry) == 32 );
671 C_ASSERT( FIELD_OFFSET(struct init_thread_request, reply_fd) == 40 );
672 C_ASSERT( FIELD_OFFSET(struct init_thread_request, wait_fd) == 44 );
673 C_ASSERT( FIELD_OFFSET(struct init_thread_request, cpu) == 48 );
674 C_ASSERT( FIELD_OFFSET(struct init_thread_reply, pid) == 8 );
675 C_ASSERT( FIELD_OFFSET(struct init_thread_reply, tid) == 12 );
676 C_ASSERT( FIELD_OFFSET(struct init_thread_reply, server_start) == 16 );
677 C_ASSERT( FIELD_OFFSET(struct init_thread_reply, info_size) == 24 );
678 C_ASSERT( FIELD_OFFSET(struct init_thread_reply, version) == 28 );
679 C_ASSERT( FIELD_OFFSET(struct init_thread_reply, all_cpus) == 32 );
680 C_ASSERT( sizeof(struct init_thread_reply) == 40 );
681 C_ASSERT( FIELD_OFFSET(struct terminate_process_request, handle) == 12 );
682 C_ASSERT( FIELD_OFFSET(struct terminate_process_request, exit_code) == 16 );
683 C_ASSERT( FIELD_OFFSET(struct terminate_process_reply, self) == 8 );
684 C_ASSERT( sizeof(struct terminate_process_reply) == 16 );
685 C_ASSERT( FIELD_OFFSET(struct terminate_thread_request, handle) == 12 );
686 C_ASSERT( FIELD_OFFSET(struct terminate_thread_request, exit_code) == 16 );
687 C_ASSERT( FIELD_OFFSET(struct terminate_thread_reply, self) == 8 );
688 C_ASSERT( FIELD_OFFSET(struct terminate_thread_reply, last) == 12 );
689 C_ASSERT( sizeof(struct terminate_thread_reply) == 16 );
690 C_ASSERT( FIELD_OFFSET(struct get_process_info_request, handle) == 12 );
691 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, pid) == 8 );
692 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, ppid) == 12 );
693 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, affinity) == 16 );
694 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, peb) == 24 );
695 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, start_time) == 32 );
696 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, end_time) == 40 );
697 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, exit_code) == 48 );
698 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, priority) == 52 );
699 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, cpu) == 56 );
700 C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, debugger_present) == 60 );
701 C_ASSERT( sizeof(struct get_process_info_reply) == 64 );
702 C_ASSERT( FIELD_OFFSET(struct set_process_info_request, handle) == 12 );
703 C_ASSERT( FIELD_OFFSET(struct set_process_info_request, mask) == 16 );
704 C_ASSERT( FIELD_OFFSET(struct set_process_info_request, priority) == 20 );
705 C_ASSERT( FIELD_OFFSET(struct set_process_info_request, affinity) == 24 );
706 C_ASSERT( sizeof(struct set_process_info_request) == 32 );
707 C_ASSERT( FIELD_OFFSET(struct get_thread_info_request, handle) == 12 );
708 C_ASSERT( FIELD_OFFSET(struct get_thread_info_request, tid_in) == 16 );
709 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, pid) == 8 );
710 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, tid) == 12 );
711 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, teb) == 16 );
712 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, affinity) == 24 );
713 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, creation_time) == 32 );
714 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, exit_time) == 40 );
715 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, exit_code) == 48 );
716 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, priority) == 52 );
717 C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, last) == 56 );
718 C_ASSERT( sizeof(struct get_thread_info_reply) == 64 );
719 C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, handle) == 12 );
720 C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, mask) == 16 );
721 C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, priority) == 20 );
722 C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, affinity) == 24 );
723 C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, token) == 32 );
724 C_ASSERT( sizeof(struct set_thread_info_request) == 40 );
725 C_ASSERT( FIELD_OFFSET(struct get_dll_info_request, handle) == 12 );
726 C_ASSERT( FIELD_OFFSET(struct get_dll_info_request, base_address) == 16 );
727 C_ASSERT( FIELD_OFFSET(struct get_dll_info_reply, entry_point) == 8 );
728 C_ASSERT( FIELD_OFFSET(struct get_dll_info_reply, size) == 16 );
729 C_ASSERT( FIELD_OFFSET(struct get_dll_info_reply, filename_len) == 20 );
730 C_ASSERT( sizeof(struct get_dll_info_reply) == 24 );
731 C_ASSERT( FIELD_OFFSET(struct suspend_thread_request, handle) == 12 );
732 C_ASSERT( FIELD_OFFSET(struct suspend_thread_reply, count) == 8 );
733 C_ASSERT( sizeof(struct suspend_thread_reply) == 16 );
734 C_ASSERT( FIELD_OFFSET(struct resume_thread_request, handle) == 12 );
735 C_ASSERT( FIELD_OFFSET(struct resume_thread_reply, count) == 8 );
736 C_ASSERT( sizeof(struct resume_thread_reply) == 16 );
737 C_ASSERT( FIELD_OFFSET(struct load_dll_request, handle) == 12 );
738 C_ASSERT( FIELD_OFFSET(struct load_dll_request, base) == 16 );
739 C_ASSERT( FIELD_OFFSET(struct load_dll_request, name) == 24 );
740 C_ASSERT( FIELD_OFFSET(struct load_dll_request, size) == 32 );
741 C_ASSERT( FIELD_OFFSET(struct load_dll_request, dbg_offset) == 36 );
742 C_ASSERT( FIELD_OFFSET(struct load_dll_request, dbg_size) == 40 );
743 C_ASSERT( sizeof(struct load_dll_request) == 48 );
744 C_ASSERT( FIELD_OFFSET(struct unload_dll_request, base) == 16 );
745 C_ASSERT( sizeof(struct unload_dll_request) == 24 );
746 C_ASSERT( FIELD_OFFSET(struct queue_apc_request, handle) == 12 );
747 C_ASSERT( FIELD_OFFSET(struct queue_apc_request, call) == 16 );
748 C_ASSERT( FIELD_OFFSET(struct queue_apc_reply, handle) == 8 );
749 C_ASSERT( FIELD_OFFSET(struct queue_apc_reply, self) == 12 );
750 C_ASSERT( sizeof(struct queue_apc_reply) == 16 );
751 C_ASSERT( FIELD_OFFSET(struct get_apc_result_request, handle) == 12 );
752 C_ASSERT( FIELD_OFFSET(struct get_apc_result_reply, result) == 8 );
753 C_ASSERT( sizeof(struct get_apc_result_reply) == 48 );
754 C_ASSERT( FIELD_OFFSET(struct close_handle_request, handle) == 12 );
755 C_ASSERT( sizeof(struct close_handle_request) == 16 );
756 C_ASSERT( FIELD_OFFSET(struct set_handle_info_request, handle) == 12 );
757 C_ASSERT( FIELD_OFFSET(struct set_handle_info_request, flags) == 16 );
758 C_ASSERT( FIELD_OFFSET(struct set_handle_info_request, mask) == 20 );
759 C_ASSERT( FIELD_OFFSET(struct set_handle_info_reply, old_flags) == 8 );
760 C_ASSERT( sizeof(struct set_handle_info_reply) == 16 );
761 C_ASSERT( FIELD_OFFSET(struct dup_handle_request, src_process) == 12 );
762 C_ASSERT( FIELD_OFFSET(struct dup_handle_request, src_handle) == 16 );
763 C_ASSERT( FIELD_OFFSET(struct dup_handle_request, dst_process) == 20 );
764 C_ASSERT( FIELD_OFFSET(struct dup_handle_request, access) == 24 );
765 C_ASSERT( FIELD_OFFSET(struct dup_handle_request, attributes) == 28 );
766 C_ASSERT( FIELD_OFFSET(struct dup_handle_request, options) == 32 );
767 C_ASSERT( FIELD_OFFSET(struct dup_handle_reply, handle) == 8 );
768 C_ASSERT( FIELD_OFFSET(struct dup_handle_reply, self) == 12 );
769 C_ASSERT( FIELD_OFFSET(struct dup_handle_reply, closed) == 16 );
770 C_ASSERT( sizeof(struct dup_handle_reply) == 24 );
771 C_ASSERT( FIELD_OFFSET(struct open_process_request, pid) == 12 );
772 C_ASSERT( FIELD_OFFSET(struct open_process_request, access) == 16 );
773 C_ASSERT( FIELD_OFFSET(struct open_process_request, attributes) == 20 );
774 C_ASSERT( FIELD_OFFSET(struct open_process_reply, handle) == 8 );
775 C_ASSERT( sizeof(struct open_process_reply) == 16 );
776 C_ASSERT( FIELD_OFFSET(struct open_thread_request, tid) == 12 );
777 C_ASSERT( FIELD_OFFSET(struct open_thread_request, access) == 16 );
778 C_ASSERT( FIELD_OFFSET(struct open_thread_request, attributes) == 20 );
779 C_ASSERT( FIELD_OFFSET(struct open_thread_reply, handle) == 8 );
780 C_ASSERT( sizeof(struct open_thread_reply) == 16 );
781 C_ASSERT( FIELD_OFFSET(struct select_request, flags) == 12 );
782 C_ASSERT( FIELD_OFFSET(struct select_request, cookie) == 16 );
783 C_ASSERT( FIELD_OFFSET(struct select_request, signal) == 24 );
784 C_ASSERT( FIELD_OFFSET(struct select_request, prev_apc) == 28 );
785 C_ASSERT( FIELD_OFFSET(struct select_request, timeout) == 32 );
786 C_ASSERT( FIELD_OFFSET(struct select_reply, timeout) == 8 );
787 C_ASSERT( FIELD_OFFSET(struct select_reply, call) == 16 );
788 C_ASSERT( FIELD_OFFSET(struct select_reply, apc_handle) == 56 );
789 C_ASSERT( sizeof(struct select_reply) == 64 );
790 C_ASSERT( FIELD_OFFSET(struct create_event_request, access) == 12 );
791 C_ASSERT( FIELD_OFFSET(struct create_event_request, attributes) == 16 );
792 C_ASSERT( FIELD_OFFSET(struct create_event_request, manual_reset) == 20 );
793 C_ASSERT( FIELD_OFFSET(struct create_event_request, initial_state) == 24 );
794 C_ASSERT( FIELD_OFFSET(struct create_event_reply, handle) == 8 );
795 C_ASSERT( sizeof(struct create_event_reply) == 16 );
796 C_ASSERT( FIELD_OFFSET(struct event_op_request, handle) == 12 );
797 C_ASSERT( FIELD_OFFSET(struct event_op_request, op) == 16 );
798 C_ASSERT( sizeof(struct event_op_request) == 24 );
799 C_ASSERT( FIELD_OFFSET(struct open_event_request, access) == 12 );
800 C_ASSERT( FIELD_OFFSET(struct open_event_request, attributes) == 16 );
801 C_ASSERT( FIELD_OFFSET(struct open_event_request, rootdir) == 20 );
802 C_ASSERT( FIELD_OFFSET(struct open_event_reply, handle) == 8 );
803 C_ASSERT( sizeof(struct open_event_reply) == 16 );
804 C_ASSERT( FIELD_OFFSET(struct create_mutex_request, access) == 12 );
805 C_ASSERT( FIELD_OFFSET(struct create_mutex_request, attributes) == 16 );
806 C_ASSERT( FIELD_OFFSET(struct create_mutex_request, owned) == 20 );
807 C_ASSERT( FIELD_OFFSET(struct create_mutex_reply, handle) == 8 );
808 C_ASSERT( sizeof(struct create_mutex_reply) == 16 );
809 C_ASSERT( FIELD_OFFSET(struct release_mutex_request, handle) == 12 );
810 C_ASSERT( FIELD_OFFSET(struct release_mutex_reply, prev_count) == 8 );
811 C_ASSERT( sizeof(struct release_mutex_reply) == 16 );
812 C_ASSERT( FIELD_OFFSET(struct open_mutex_request, access) == 12 );
813 C_ASSERT( FIELD_OFFSET(struct open_mutex_request, attributes) == 16 );
814 C_ASSERT( FIELD_OFFSET(struct open_mutex_request, rootdir) == 20 );
815 C_ASSERT( FIELD_OFFSET(struct open_mutex_reply, handle) == 8 );
816 C_ASSERT( sizeof(struct open_mutex_reply) == 16 );
817 C_ASSERT( FIELD_OFFSET(struct create_semaphore_request, access) == 12 );
818 C_ASSERT( FIELD_OFFSET(struct create_semaphore_request, attributes) == 16 );
819 C_ASSERT( FIELD_OFFSET(struct create_semaphore_request, initial) == 20 );
820 C_ASSERT( FIELD_OFFSET(struct create_semaphore_request, max) == 24 );
821 C_ASSERT( FIELD_OFFSET(struct create_semaphore_reply, handle) == 8 );
822 C_ASSERT( sizeof(struct create_semaphore_reply) == 16 );
823 C_ASSERT( FIELD_OFFSET(struct release_semaphore_request, handle) == 12 );
824 C_ASSERT( FIELD_OFFSET(struct release_semaphore_request, count) == 16 );
825 C_ASSERT( FIELD_OFFSET(struct release_semaphore_reply, prev_count) == 8 );
826 C_ASSERT( sizeof(struct release_semaphore_reply) == 16 );
827 C_ASSERT( FIELD_OFFSET(struct open_semaphore_request, access) == 12 );
828 C_ASSERT( FIELD_OFFSET(struct open_semaphore_request, attributes) == 16 );
829 C_ASSERT( FIELD_OFFSET(struct open_semaphore_request, rootdir) == 20 );
830 C_ASSERT( FIELD_OFFSET(struct open_semaphore_reply, handle) == 8 );
831 C_ASSERT( sizeof(struct open_semaphore_reply) == 16 );
832 C_ASSERT( FIELD_OFFSET(struct create_file_request, access) == 12 );
833 C_ASSERT( FIELD_OFFSET(struct create_file_request, attributes) == 16 );
834 C_ASSERT( FIELD_OFFSET(struct create_file_request, sharing) == 20 );
835 C_ASSERT( FIELD_OFFSET(struct create_file_request, create) == 24 );
836 C_ASSERT( FIELD_OFFSET(struct create_file_request, options) == 28 );
837 C_ASSERT( FIELD_OFFSET(struct create_file_request, attrs) == 32 );
838 C_ASSERT( FIELD_OFFSET(struct create_file_reply, handle) == 8 );
839 C_ASSERT( sizeof(struct create_file_reply) == 16 );
840 C_ASSERT( FIELD_OFFSET(struct open_file_object_request, access) == 12 );
841 C_ASSERT( FIELD_OFFSET(struct open_file_object_request, attributes) == 16 );
842 C_ASSERT( FIELD_OFFSET(struct open_file_object_request, rootdir) == 20 );
843 C_ASSERT( FIELD_OFFSET(struct open_file_object_request, sharing) == 24 );
844 C_ASSERT( FIELD_OFFSET(struct open_file_object_request, options) == 28 );
845 C_ASSERT( FIELD_OFFSET(struct open_file_object_reply, handle) == 8 );
846 C_ASSERT( sizeof(struct open_file_object_reply) == 16 );
847 C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_request, access) == 12 );
848 C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_request, attributes) == 16 );
849 C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_request, fd) == 20 );
850 C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_reply, handle) == 8 );
851 C_ASSERT( sizeof(struct alloc_file_handle_reply) == 16 );
852 C_ASSERT( FIELD_OFFSET(struct get_handle_unix_name_request, handle) == 12 );
853 C_ASSERT( FIELD_OFFSET(struct get_handle_unix_name_reply, name_len) == 8 );
854 C_ASSERT( sizeof(struct get_handle_unix_name_reply) == 16 );
855 C_ASSERT( FIELD_OFFSET(struct get_handle_fd_request, handle) == 12 );
856 C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, type) == 8 );
857 C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, removable) == 12 );
858 C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, access) == 16 );
859 C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, options) == 20 );
860 C_ASSERT( sizeof(struct get_handle_fd_reply) == 24 );
861 C_ASSERT( FIELD_OFFSET(struct flush_file_request, handle) == 12 );
862 C_ASSERT( FIELD_OFFSET(struct flush_file_reply, event) == 8 );
863 C_ASSERT( sizeof(struct flush_file_reply) == 16 );
864 C_ASSERT( FIELD_OFFSET(struct lock_file_request, handle) == 12 );
865 C_ASSERT( FIELD_OFFSET(struct lock_file_request, offset) == 16 );
866 C_ASSERT( FIELD_OFFSET(struct lock_file_request, count) == 24 );
867 C_ASSERT( FIELD_OFFSET(struct lock_file_request, shared) == 32 );
868 C_ASSERT( FIELD_OFFSET(struct lock_file_request, wait) == 36 );
869 C_ASSERT( FIELD_OFFSET(struct lock_file_reply, handle) == 8 );
870 C_ASSERT( FIELD_OFFSET(struct lock_file_reply, overlapped) == 12 );
871 C_ASSERT( sizeof(struct lock_file_reply) == 16 );
872 C_ASSERT( FIELD_OFFSET(struct unlock_file_request, handle) == 12 );
873 C_ASSERT( FIELD_OFFSET(struct unlock_file_request, offset) == 16 );
874 C_ASSERT( FIELD_OFFSET(struct unlock_file_request, count) == 24 );
875 C_ASSERT( sizeof(struct unlock_file_request) == 32 );
876 C_ASSERT( FIELD_OFFSET(struct create_socket_request, access) == 12 );
877 C_ASSERT( FIELD_OFFSET(struct create_socket_request, attributes) == 16 );
878 C_ASSERT( FIELD_OFFSET(struct create_socket_request, family) == 20 );
879 C_ASSERT( FIELD_OFFSET(struct create_socket_request, type) == 24 );
880 C_ASSERT( FIELD_OFFSET(struct create_socket_request, protocol) == 28 );
881 C_ASSERT( FIELD_OFFSET(struct create_socket_request, flags) == 32 );
882 C_ASSERT( FIELD_OFFSET(struct create_socket_reply, handle) == 8 );
883 C_ASSERT( sizeof(struct create_socket_reply) == 16 );
884 C_ASSERT( FIELD_OFFSET(struct accept_socket_request, lhandle) == 12 );
885 C_ASSERT( FIELD_OFFSET(struct accept_socket_request, access) == 16 );
886 C_ASSERT( FIELD_OFFSET(struct accept_socket_request, attributes) == 20 );
887 C_ASSERT( FIELD_OFFSET(struct accept_socket_reply, handle) == 8 );
888 C_ASSERT( sizeof(struct accept_socket_reply) == 16 );
889 C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, handle) == 12 );
890 C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, mask) == 16 );
891 C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, event) == 20 );
892 C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, window) == 24 );
893 C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, msg) == 28 );
894 C_ASSERT( sizeof(struct set_socket_event_request) == 32 );
895 C_ASSERT( FIELD_OFFSET(struct get_socket_event_request, handle) == 12 );
896 C_ASSERT( FIELD_OFFSET(struct get_socket_event_request, service) == 16 );
897 C_ASSERT( FIELD_OFFSET(struct get_socket_event_request, c_event) == 20 );
898 C_ASSERT( FIELD_OFFSET(struct get_socket_event_reply, mask) == 8 );
899 C_ASSERT( FIELD_OFFSET(struct get_socket_event_reply, pmask) == 12 );
900 C_ASSERT( FIELD_OFFSET(struct get_socket_event_reply, state) == 16 );
901 C_ASSERT( sizeof(struct get_socket_event_reply) == 24 );
902 C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, handle) == 12 );
903 C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, mask) == 16 );
904 C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, sstate) == 20 );
905 C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, cstate) == 24 );
906 C_ASSERT( sizeof(struct enable_socket_event_request) == 32 );
907 C_ASSERT( FIELD_OFFSET(struct set_socket_deferred_request, handle) == 12 );
908 C_ASSERT( FIELD_OFFSET(struct set_socket_deferred_request, deferred) == 16 );
909 C_ASSERT( sizeof(struct set_socket_deferred_request) == 24 );
910 C_ASSERT( FIELD_OFFSET(struct alloc_console_request, access) == 12 );
911 C_ASSERT( FIELD_OFFSET(struct alloc_console_request, attributes) == 16 );
912 C_ASSERT( FIELD_OFFSET(struct alloc_console_request, pid) == 20 );
913 C_ASSERT( FIELD_OFFSET(struct alloc_console_reply, handle_in) == 8 );
914 C_ASSERT( FIELD_OFFSET(struct alloc_console_reply, event) == 12 );
915 C_ASSERT( sizeof(struct alloc_console_reply) == 16 );
916 C_ASSERT( sizeof(struct free_console_request) == 16 );
917 C_ASSERT( FIELD_OFFSET(struct get_console_renderer_events_request, handle) == 12 );
918 C_ASSERT( sizeof(struct get_console_renderer_events_reply) == 8 );
919 C_ASSERT( FIELD_OFFSET(struct open_console_request, from) == 12 );
920 C_ASSERT( FIELD_OFFSET(struct open_console_request, access) == 16 );
921 C_ASSERT( FIELD_OFFSET(struct open_console_request, attributes) == 20 );
922 C_ASSERT( FIELD_OFFSET(struct open_console_request, share) == 24 );
923 C_ASSERT( FIELD_OFFSET(struct open_console_reply, handle) == 8 );
924 C_ASSERT( sizeof(struct open_console_reply) == 16 );
925 C_ASSERT( FIELD_OFFSET(struct get_console_wait_event_reply, handle) == 8 );
926 C_ASSERT( sizeof(struct get_console_wait_event_reply) == 16 );
927 C_ASSERT( FIELD_OFFSET(struct get_console_mode_request, handle) == 12 );
928 C_ASSERT( FIELD_OFFSET(struct get_console_mode_reply, mode) == 8 );
929 C_ASSERT( sizeof(struct get_console_mode_reply) == 16 );
930 C_ASSERT( FIELD_OFFSET(struct set_console_mode_request, handle) == 12 );
931 C_ASSERT( FIELD_OFFSET(struct set_console_mode_request, mode) == 16 );
932 C_ASSERT( sizeof(struct set_console_mode_request) == 24 );
933 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, handle) == 12 );
934 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, mask) == 16 );
935 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, active_sb) == 20 );
936 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, history_mode) == 24 );
937 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, history_size) == 28 );
938 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, edition_mode) == 32 );
939 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, input_cp) == 36 );
940 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, output_cp) == 40 );
941 C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, win) == 44 );
942 C_ASSERT( sizeof(struct set_console_input_info_request) == 48 );
943 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_request, handle) == 12 );
944 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, history_mode) == 8 );
945 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, history_size) == 12 );
946 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, history_index) == 16 );
947 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, edition_mode) == 20 );
948 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, input_cp) == 24 );
949 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, output_cp) == 28 );
950 C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, win) == 32 );
951 C_ASSERT( sizeof(struct get_console_input_info_reply) == 40 );
952 C_ASSERT( FIELD_OFFSET(struct append_console_input_history_request, handle) == 12 );
953 C_ASSERT( sizeof(struct append_console_input_history_request) == 16 );
954 C_ASSERT( FIELD_OFFSET(struct get_console_input_history_request, handle) == 12 );
955 C_ASSERT( FIELD_OFFSET(struct get_console_input_history_request, index) == 16 );
956 C_ASSERT( FIELD_OFFSET(struct get_console_input_history_reply, total) == 8 );
957 C_ASSERT( sizeof(struct get_console_input_history_reply) == 16 );
958 C_ASSERT( FIELD_OFFSET(struct create_console_output_request, handle_in) == 12 );
959 C_ASSERT( FIELD_OFFSET(struct create_console_output_request, access) == 16 );
960 C_ASSERT( FIELD_OFFSET(struct create_console_output_request, attributes) == 20 );
961 C_ASSERT( FIELD_OFFSET(struct create_console_output_request, share) == 24 );
962 C_ASSERT( FIELD_OFFSET(struct create_console_output_reply, handle_out) == 8 );
963 C_ASSERT( sizeof(struct create_console_output_reply) == 16 );
964 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, handle) == 12 );
965 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, mask) == 16 );
966 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_size) == 20 );
967 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_visible) == 22 );
968 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_x) == 24 );
969 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_y) == 26 );
970 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, width) == 28 );
971 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, height) == 30 );
972 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, attr) == 32 );
973 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_left) == 34 );
974 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_top) == 36 );
975 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_right) == 38 );
976 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_bottom) == 40 );
977 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, max_width) == 42 );
978 C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, max_height) == 44 );
979 C_ASSERT( sizeof(struct set_console_output_info_request) == 48 );
980 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_request, handle) == 12 );
981 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_size) == 8 );
982 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_visible) == 10 );
983 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_x) == 12 );
984 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_y) == 14 );
985 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, width) == 16 );
986 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, height) == 18 );
987 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, attr) == 20 );
988 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_left) == 22 );
989 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_top) == 24 );
990 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_right) == 26 );
991 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_bottom) == 28 );
992 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, max_width) == 30 );
993 C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, max_height) == 32 );
994 C_ASSERT( sizeof(struct get_console_output_info_reply) == 40 );
995 C_ASSERT( FIELD_OFFSET(struct write_console_input_request, handle) == 12 );
996 C_ASSERT( FIELD_OFFSET(struct write_console_input_reply, written) == 8 );
997 C_ASSERT( sizeof(struct write_console_input_reply) == 16 );
998 C_ASSERT( FIELD_OFFSET(struct read_console_input_request, handle) == 12 );
999 C_ASSERT( FIELD_OFFSET(struct read_console_input_request, flush) == 16 );
1000 C_ASSERT( FIELD_OFFSET(struct read_console_input_reply, read) == 8 );
1001 C_ASSERT( sizeof(struct read_console_input_reply) == 16 );
1002 C_ASSERT( FIELD_OFFSET(struct write_console_output_request, handle) == 12 );
1003 C_ASSERT( FIELD_OFFSET(struct write_console_output_request, x) == 16 );
1004 C_ASSERT( FIELD_OFFSET(struct write_console_output_request, y) == 20 );
1005 C_ASSERT( FIELD_OFFSET(struct write_console_output_request, mode) == 24 );
1006 C_ASSERT( FIELD_OFFSET(struct write_console_output_request, wrap) == 28 );
1007 C_ASSERT( FIELD_OFFSET(struct write_console_output_reply, written) == 8 );
1008 C_ASSERT( FIELD_OFFSET(struct write_console_output_reply, width) == 12 );
1009 C_ASSERT( FIELD_OFFSET(struct write_console_output_reply, height) == 16 );
1010 C_ASSERT( sizeof(struct write_console_output_reply) == 24 );
1011 C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, handle) == 12 );
1012 C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, x) == 16 );
1013 C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, y) == 20 );
1014 C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, mode) == 24 );
1015 C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, count) == 28 );
1016 C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, wrap) == 32 );
1017 C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, data) == 36 );
1018 C_ASSERT( FIELD_OFFSET(struct fill_console_output_reply, written) == 8 );
1019 C_ASSERT( sizeof(struct fill_console_output_reply) == 16 );
1020 C_ASSERT( FIELD_OFFSET(struct read_console_output_request, handle) == 12 );
1021 C_ASSERT( FIELD_OFFSET(struct read_console_output_request, x) == 16 );
1022 C_ASSERT( FIELD_OFFSET(struct read_console_output_request, y) == 20 );
1023 C_ASSERT( FIELD_OFFSET(struct read_console_output_request, mode) == 24 );
1024 C_ASSERT( FIELD_OFFSET(struct read_console_output_request, wrap) == 28 );
1025 C_ASSERT( FIELD_OFFSET(struct read_console_output_reply, width) == 8 );
1026 C_ASSERT( FIELD_OFFSET(struct read_console_output_reply, height) == 12 );
1027 C_ASSERT( sizeof(struct read_console_output_reply) == 16 );
1028 C_ASSERT( FIELD_OFFSET(struct move_console_output_request, handle) == 12 );
1029 C_ASSERT( FIELD_OFFSET(struct move_console_output_request, x_src) == 16 );
1030 C_ASSERT( FIELD_OFFSET(struct move_console_output_request, y_src) == 18 );
1031 C_ASSERT( FIELD_OFFSET(struct move_console_output_request, x_dst) == 20 );
1032 C_ASSERT( FIELD_OFFSET(struct move_console_output_request, y_dst) == 22 );
1033 C_ASSERT( FIELD_OFFSET(struct move_console_output_request, w) == 24 );
1034 C_ASSERT( FIELD_OFFSET(struct move_console_output_request, h) == 26 );
1035 C_ASSERT( sizeof(struct move_console_output_request) == 32 );
1036 C_ASSERT( FIELD_OFFSET(struct send_console_signal_request, signal) == 12 );
1037 C_ASSERT( FIELD_OFFSET(struct send_console_signal_request, group_id) == 16 );
1038 C_ASSERT( sizeof(struct send_console_signal_request) == 24 );
1039 C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, filter) == 12 );
1040 C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, subtree) == 16 );
1041 C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, want_data) == 20 );
1042 C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, async) == 24 );
1043 C_ASSERT( sizeof(struct read_directory_changes_request) == 64 );
1044 C_ASSERT( FIELD_OFFSET(struct read_change_request, handle) == 12 );
1045 C_ASSERT( FIELD_OFFSET(struct read_change_reply, action) == 8 );
1046 C_ASSERT( sizeof(struct read_change_reply) == 16 );
1047 C_ASSERT( FIELD_OFFSET(struct create_mapping_request, access) == 12 );
1048 C_ASSERT( FIELD_OFFSET(struct create_mapping_request, attributes) == 16 );
1049 C_ASSERT( FIELD_OFFSET(struct create_mapping_request, protect) == 20 );
1050 C_ASSERT( FIELD_OFFSET(struct create_mapping_request, size) == 24 );
1051 C_ASSERT( FIELD_OFFSET(struct create_mapping_request, file_handle) == 32 );
1052 C_ASSERT( FIELD_OFFSET(struct create_mapping_reply, handle) == 8 );
1053 C_ASSERT( sizeof(struct create_mapping_reply) == 16 );
1054 C_ASSERT( FIELD_OFFSET(struct open_mapping_request, access) == 12 );
1055 C_ASSERT( FIELD_OFFSET(struct open_mapping_request, attributes) == 16 );
1056 C_ASSERT( FIELD_OFFSET(struct open_mapping_request, rootdir) == 20 );
1057 C_ASSERT( FIELD_OFFSET(struct open_mapping_reply, handle) == 8 );
1058 C_ASSERT( sizeof(struct open_mapping_reply) == 16 );
1059 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_request, handle) == 12 );
1060 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_request, access) == 16 );
1061 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, size) == 8 );
1062 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, protect) == 16 );
1063 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, header_size) == 20 );
1064 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, base) == 24 );
1065 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, mapping) == 32 );
1066 C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, shared_file) == 36 );
1067 C_ASSERT( sizeof(struct get_mapping_info_reply) == 40 );
1068 C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_request, handle) == 12 );
1069 C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_request, offset) == 16 );
1070 C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_reply, size) == 8 );
1071 C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_reply, committed) == 16 );
1072 C_ASSERT( sizeof(struct get_mapping_committed_range_reply) == 24 );
1073 C_ASSERT( FIELD_OFFSET(struct add_mapping_committed_range_request, handle) == 12 );
1074 C_ASSERT( FIELD_OFFSET(struct add_mapping_committed_range_request, offset) == 16 );
1075 C_ASSERT( FIELD_OFFSET(struct add_mapping_committed_range_request, size) == 24 );
1076 C_ASSERT( sizeof(struct add_mapping_committed_range_request) == 32 );
1077 C_ASSERT( FIELD_OFFSET(struct create_snapshot_request, attributes) == 12 );
1078 C_ASSERT( FIELD_OFFSET(struct create_snapshot_request, flags) == 16 );
1079 C_ASSERT( FIELD_OFFSET(struct create_snapshot_reply, handle) == 8 );
1080 C_ASSERT( sizeof(struct create_snapshot_reply) == 16 );
1081 C_ASSERT( FIELD_OFFSET(struct next_process_request, handle) == 12 );
1082 C_ASSERT( FIELD_OFFSET(struct next_process_request, reset) == 16 );
1083 C_ASSERT( FIELD_OFFSET(struct next_process_reply, count) == 8 );
1084 C_ASSERT( FIELD_OFFSET(struct next_process_reply, pid) == 12 );
1085 C_ASSERT( FIELD_OFFSET(struct next_process_reply, ppid) == 16 );
1086 C_ASSERT( FIELD_OFFSET(struct next_process_reply, threads) == 20 );
1087 C_ASSERT( FIELD_OFFSET(struct next_process_reply, priority) == 24 );
1088 C_ASSERT( FIELD_OFFSET(struct next_process_reply, handles) == 28 );
1089 C_ASSERT( sizeof(struct next_process_reply) == 32 );
1090 C_ASSERT( FIELD_OFFSET(struct next_thread_request, handle) == 12 );
1091 C_ASSERT( FIELD_OFFSET(struct next_thread_request, reset) == 16 );
1092 C_ASSERT( FIELD_OFFSET(struct next_thread_reply, count) == 8 );
1093 C_ASSERT( FIELD_OFFSET(struct next_thread_reply, pid) == 12 );
1094 C_ASSERT( FIELD_OFFSET(struct next_thread_reply, tid) == 16 );
1095 C_ASSERT( FIELD_OFFSET(struct next_thread_reply, base_pri) == 20 );
1096 C_ASSERT( FIELD_OFFSET(struct next_thread_reply, delta_pri) == 24 );
1097 C_ASSERT( sizeof(struct next_thread_reply) == 32 );
1098 C_ASSERT( FIELD_OFFSET(struct wait_debug_event_request, get_handle) == 12 );
1099 C_ASSERT( FIELD_OFFSET(struct wait_debug_event_reply, pid) == 8 );
1100 C_ASSERT( FIELD_OFFSET(struct wait_debug_event_reply, tid) == 12 );
1101 C_ASSERT( FIELD_OFFSET(struct wait_debug_event_reply, wait) == 16 );
1102 C_ASSERT( sizeof(struct wait_debug_event_reply) == 24 );
1103 C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, first) == 12 );
1104 C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, code) == 16 );
1105 C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, flags) == 20 );
1106 C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, record) == 24 );
1107 C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, address) == 32 );
1108 C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, len) == 40 );
1109 C_ASSERT( FIELD_OFFSET(struct queue_exception_event_reply, handle) == 8 );
1110 C_ASSERT( sizeof(struct queue_exception_event_reply) == 16 );
1111 C_ASSERT( FIELD_OFFSET(struct get_exception_status_request, handle) == 12 );
1112 C_ASSERT( sizeof(struct get_exception_status_reply) == 8 );
1113 C_ASSERT( FIELD_OFFSET(struct output_debug_string_request, length) == 12 );
1114 C_ASSERT( FIELD_OFFSET(struct output_debug_string_request, string) == 16 );
1115 C_ASSERT( sizeof(struct output_debug_string_request) == 24 );
1116 C_ASSERT( FIELD_OFFSET(struct continue_debug_event_request, pid) == 12 );
1117 C_ASSERT( FIELD_OFFSET(struct continue_debug_event_request, tid) == 16 );
1118 C_ASSERT( FIELD_OFFSET(struct continue_debug_event_request, status) == 20 );
1119 C_ASSERT( sizeof(struct continue_debug_event_request) == 24 );
1120 C_ASSERT( FIELD_OFFSET(struct debug_process_request, pid) == 12 );
1121 C_ASSERT( FIELD_OFFSET(struct debug_process_request, attach) == 16 );
1122 C_ASSERT( sizeof(struct debug_process_request) == 24 );
1123 C_ASSERT( FIELD_OFFSET(struct debug_break_request, handle) == 12 );
1124 C_ASSERT( FIELD_OFFSET(struct debug_break_reply, self) == 8 );
1125 C_ASSERT( sizeof(struct debug_break_reply) == 16 );
1126 C_ASSERT( FIELD_OFFSET(struct set_debugger_kill_on_exit_request, kill_on_exit) == 12 );
1127 C_ASSERT( sizeof(struct set_debugger_kill_on_exit_request) == 16 );
1128 C_ASSERT( FIELD_OFFSET(struct read_process_memory_request, handle) == 12 );
1129 C_ASSERT( FIELD_OFFSET(struct read_process_memory_request, addr) == 16 );
1130 C_ASSERT( sizeof(struct read_process_memory_reply) == 8 );
1131 C_ASSERT( FIELD_OFFSET(struct write_process_memory_request, handle) == 12 );
1132 C_ASSERT( FIELD_OFFSET(struct write_process_memory_request, addr) == 16 );
1133 C_ASSERT( sizeof(struct write_process_memory_request) == 24 );
1134 C_ASSERT( FIELD_OFFSET(struct create_key_request, parent) == 12 );
1135 C_ASSERT( FIELD_OFFSET(struct create_key_request, access) == 16 );
1136 C_ASSERT( FIELD_OFFSET(struct create_key_request, attributes) == 20 );
1137 C_ASSERT( FIELD_OFFSET(struct create_key_request, options) == 24 );
1138 C_ASSERT( FIELD_OFFSET(struct create_key_request, namelen) == 28 );
1139 C_ASSERT( FIELD_OFFSET(struct create_key_reply, hkey) == 8 );
1140 C_ASSERT( FIELD_OFFSET(struct create_key_reply, created) == 12 );
1141 C_ASSERT( sizeof(struct create_key_reply) == 16 );
1142 C_ASSERT( FIELD_OFFSET(struct open_key_request, parent) == 12 );
1143 C_ASSERT( FIELD_OFFSET(struct open_key_request, access) == 16 );
1144 C_ASSERT( FIELD_OFFSET(struct open_key_request, attributes) == 20 );
1145 C_ASSERT( FIELD_OFFSET(struct open_key_reply, hkey) == 8 );
1146 C_ASSERT( sizeof(struct open_key_reply) == 16 );
1147 C_ASSERT( FIELD_OFFSET(struct delete_key_request, hkey) == 12 );
1148 C_ASSERT( sizeof(struct delete_key_request) == 16 );
1149 C_ASSERT( FIELD_OFFSET(struct flush_key_request, hkey) == 12 );
1150 C_ASSERT( sizeof(struct flush_key_request) == 16 );
1151 C_ASSERT( FIELD_OFFSET(struct enum_key_request, hkey) == 12 );
1152 C_ASSERT( FIELD_OFFSET(struct enum_key_request, index) == 16 );
1153 C_ASSERT( FIELD_OFFSET(struct enum_key_request, info_class) == 20 );
1154 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, subkeys) == 8 );
1155 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_subkey) == 12 );
1156 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_class) == 16 );
1157 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, values) == 20 );
1158 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_value) == 24 );
1159 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_data) == 28 );
1160 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, modif) == 32 );
1161 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, total) == 40 );
1162 C_ASSERT( FIELD_OFFSET(struct enum_key_reply, namelen) == 44 );
1163 C_ASSERT( sizeof(struct enum_key_reply) == 48 );
1164 C_ASSERT( FIELD_OFFSET(struct set_key_value_request, hkey) == 12 );
1165 C_ASSERT( FIELD_OFFSET(struct set_key_value_request, type) == 16 );
1166 C_ASSERT( FIELD_OFFSET(struct set_key_value_request, namelen) == 20 );
1167 C_ASSERT( sizeof(struct set_key_value_request) == 24 );
1168 C_ASSERT( FIELD_OFFSET(struct get_key_value_request, hkey) == 12 );
1169 C_ASSERT( FIELD_OFFSET(struct get_key_value_reply, type) == 8 );
1170 C_ASSERT( FIELD_OFFSET(struct get_key_value_reply, total) == 12 );
1171 C_ASSERT( sizeof(struct get_key_value_reply) == 16 );
1172 C_ASSERT( FIELD_OFFSET(struct enum_key_value_request, hkey) == 12 );
1173 C_ASSERT( FIELD_OFFSET(struct enum_key_value_request, index) == 16 );
1174 C_ASSERT( FIELD_OFFSET(struct enum_key_value_request, info_class) == 20 );
1175 C_ASSERT( FIELD_OFFSET(struct enum_key_value_reply, type) == 8 );
1176 C_ASSERT( FIELD_OFFSET(struct enum_key_value_reply, total) == 12 );
1177 C_ASSERT( FIELD_OFFSET(struct enum_key_value_reply, namelen) == 16 );
1178 C_ASSERT( sizeof(struct enum_key_value_reply) == 24 );
1179 C_ASSERT( FIELD_OFFSET(struct delete_key_value_request, hkey) == 12 );
1180 C_ASSERT( sizeof(struct delete_key_value_request) == 16 );
1181 C_ASSERT( FIELD_OFFSET(struct load_registry_request, hkey) == 12 );
1182 C_ASSERT( FIELD_OFFSET(struct load_registry_request, file) == 16 );
1183 C_ASSERT( sizeof(struct load_registry_request) == 24 );
1184 C_ASSERT( FIELD_OFFSET(struct unload_registry_request, hkey) == 12 );
1185 C_ASSERT( sizeof(struct unload_registry_request) == 16 );
1186 C_ASSERT( FIELD_OFFSET(struct save_registry_request, hkey) == 12 );
1187 C_ASSERT( FIELD_OFFSET(struct save_registry_request, file) == 16 );
1188 C_ASSERT( sizeof(struct save_registry_request) == 24 );
1189 C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, hkey) == 12 );
1190 C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, event) == 16 );
1191 C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, subtree) == 20 );
1192 C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, filter) == 24 );
1193 C_ASSERT( sizeof(struct set_registry_notification_request) == 32 );
1194 C_ASSERT( FIELD_OFFSET(struct create_timer_request, access) == 12 );
1195 C_ASSERT( FIELD_OFFSET(struct create_timer_request, attributes) == 16 );
1196 C_ASSERT( FIELD_OFFSET(struct create_timer_request, rootdir) == 20 );
1197 C_ASSERT( FIELD_OFFSET(struct create_timer_request, manual) == 24 );
1198 C_ASSERT( FIELD_OFFSET(struct create_timer_reply, handle) == 8 );
1199 C_ASSERT( sizeof(struct create_timer_reply) == 16 );
1200 C_ASSERT( FIELD_OFFSET(struct open_timer_request, access) == 12 );
1201 C_ASSERT( FIELD_OFFSET(struct open_timer_request, attributes) == 16 );
1202 C_ASSERT( FIELD_OFFSET(struct open_timer_request, rootdir) == 20 );
1203 C_ASSERT( FIELD_OFFSET(struct open_timer_reply, handle) == 8 );
1204 C_ASSERT( sizeof(struct open_timer_reply) == 16 );
1205 C_ASSERT( FIELD_OFFSET(struct set_timer_request, handle) == 12 );
1206 C_ASSERT( FIELD_OFFSET(struct set_timer_request, expire) == 16 );
1207 C_ASSERT( FIELD_OFFSET(struct set_timer_request, callback) == 24 );
1208 C_ASSERT( FIELD_OFFSET(struct set_timer_request, arg) == 32 );
1209 C_ASSERT( FIELD_OFFSET(struct set_timer_request, period) == 40 );
1210 C_ASSERT( FIELD_OFFSET(struct set_timer_reply, signaled) == 8 );
1211 C_ASSERT( sizeof(struct set_timer_reply) == 16 );
1212 C_ASSERT( FIELD_OFFSET(struct cancel_timer_request, handle) == 12 );
1213 C_ASSERT( FIELD_OFFSET(struct cancel_timer_reply, signaled) == 8 );
1214 C_ASSERT( sizeof(struct cancel_timer_reply) == 16 );
1215 C_ASSERT( FIELD_OFFSET(struct get_timer_info_request, handle) == 12 );
1216 C_ASSERT( FIELD_OFFSET(struct get_timer_info_reply, when) == 8 );
1217 C_ASSERT( FIELD_OFFSET(struct get_timer_info_reply, signaled) == 16 );
1218 C_ASSERT( sizeof(struct get_timer_info_reply) == 24 );
1219 C_ASSERT( FIELD_OFFSET(struct get_thread_context_request, handle) == 12 );
1220 C_ASSERT( FIELD_OFFSET(struct get_thread_context_request, flags) == 16 );
1221 C_ASSERT( FIELD_OFFSET(struct get_thread_context_request, suspend) == 20 );
1222 C_ASSERT( FIELD_OFFSET(struct get_thread_context_reply, self) == 8 );
1223 C_ASSERT( sizeof(struct get_thread_context_reply) == 16 );
1224 C_ASSERT( FIELD_OFFSET(struct set_thread_context_request, handle) == 12 );
1225 C_ASSERT( FIELD_OFFSET(struct set_thread_context_request, suspend) == 16 );
1226 C_ASSERT( FIELD_OFFSET(struct set_thread_context_reply, self) == 8 );
1227 C_ASSERT( sizeof(struct set_thread_context_reply) == 16 );
1228 C_ASSERT( FIELD_OFFSET(struct get_selector_entry_request, handle) == 12 );
1229 C_ASSERT( FIELD_OFFSET(struct get_selector_entry_request, entry) == 16 );
1230 C_ASSERT( FIELD_OFFSET(struct get_selector_entry_reply, base) == 8 );
1231 C_ASSERT( FIELD_OFFSET(struct get_selector_entry_reply, limit) == 12 );
1232 C_ASSERT( FIELD_OFFSET(struct get_selector_entry_reply, flags) == 16 );
1233 C_ASSERT( sizeof(struct get_selector_entry_reply) == 24 );
1234 C_ASSERT( FIELD_OFFSET(struct add_atom_request, table) == 12 );
1235 C_ASSERT( FIELD_OFFSET(struct add_atom_reply, atom) == 8 );
1236 C_ASSERT( sizeof(struct add_atom_reply) == 16 );
1237 C_ASSERT( FIELD_OFFSET(struct delete_atom_request, table) == 12 );
1238 C_ASSERT( FIELD_OFFSET(struct delete_atom_request, atom) == 16 );
1239 C_ASSERT( sizeof(struct delete_atom_request) == 24 );
1240 C_ASSERT( FIELD_OFFSET(struct find_atom_request, table) == 12 );
1241 C_ASSERT( FIELD_OFFSET(struct find_atom_reply, atom) == 8 );
1242 C_ASSERT( sizeof(struct find_atom_reply) == 16 );
1243 C_ASSERT( FIELD_OFFSET(struct get_atom_information_request, table) == 12 );
1244 C_ASSERT( FIELD_OFFSET(struct get_atom_information_request, atom) == 16 );
1245 C_ASSERT( FIELD_OFFSET(struct get_atom_information_reply, count) == 8 );
1246 C_ASSERT( FIELD_OFFSET(struct get_atom_information_reply, pinned) == 12 );
1247 C_ASSERT( FIELD_OFFSET(struct get_atom_information_reply, total) == 16 );
1248 C_ASSERT( sizeof(struct get_atom_information_reply) == 24 );
1249 C_ASSERT( FIELD_OFFSET(struct set_atom_information_request, table) == 12 );
1250 C_ASSERT( FIELD_OFFSET(struct set_atom_information_request, atom) == 16 );
1251 C_ASSERT( FIELD_OFFSET(struct set_atom_information_request, pinned) == 20 );
1252 C_ASSERT( sizeof(struct set_atom_information_request) == 24 );
1253 C_ASSERT( FIELD_OFFSET(struct empty_atom_table_request, table) == 12 );
1254 C_ASSERT( FIELD_OFFSET(struct empty_atom_table_request, if_pinned) == 16 );
1255 C_ASSERT( sizeof(struct empty_atom_table_request) == 24 );
1256 C_ASSERT( FIELD_OFFSET(struct init_atom_table_request, entries) == 12 );
1257 C_ASSERT( FIELD_OFFSET(struct init_atom_table_reply, table) == 8 );
1258 C_ASSERT( sizeof(struct init_atom_table_reply) == 16 );
1259 C_ASSERT( FIELD_OFFSET(struct get_msg_queue_reply, handle) == 8 );
1260 C_ASSERT( sizeof(struct get_msg_queue_reply) == 16 );
1261 C_ASSERT( FIELD_OFFSET(struct set_queue_fd_request, handle) == 12 );
1262 C_ASSERT( sizeof(struct set_queue_fd_request) == 16 );
1263 C_ASSERT( FIELD_OFFSET(struct set_queue_mask_request, wake_mask) == 12 );
1264 C_ASSERT( FIELD_OFFSET(struct set_queue_mask_request, changed_mask) == 16 );
1265 C_ASSERT( FIELD_OFFSET(struct set_queue_mask_request, skip_wait) == 20 );
1266 C_ASSERT( FIELD_OFFSET(struct set_queue_mask_reply, wake_bits) == 8 );
1267 C_ASSERT( FIELD_OFFSET(struct set_queue_mask_reply, changed_bits) == 12 );
1268 C_ASSERT( sizeof(struct set_queue_mask_reply) == 16 );
1269 C_ASSERT( FIELD_OFFSET(struct get_queue_status_request, clear) == 12 );
1270 C_ASSERT( FIELD_OFFSET(struct get_queue_status_reply, wake_bits) == 8 );
1271 C_ASSERT( FIELD_OFFSET(struct get_queue_status_reply, changed_bits) == 12 );
1272 C_ASSERT( sizeof(struct get_queue_status_reply) == 16 );
1273 C_ASSERT( FIELD_OFFSET(struct get_process_idle_event_request, handle) == 12 );
1274 C_ASSERT( FIELD_OFFSET(struct get_process_idle_event_reply, event) == 8 );
1275 C_ASSERT( sizeof(struct get_process_idle_event_reply) == 16 );
1276 C_ASSERT( FIELD_OFFSET(struct send_message_request, id) == 12 );
1277 C_ASSERT( FIELD_OFFSET(struct send_message_request, type) == 16 );
1278 C_ASSERT( FIELD_OFFSET(struct send_message_request, flags) == 20 );
1279 C_ASSERT( FIELD_OFFSET(struct send_message_request, win) == 24 );
1280 C_ASSERT( FIELD_OFFSET(struct send_message_request, msg) == 28 );
1281 C_ASSERT( FIELD_OFFSET(struct send_message_request, wparam) == 32 );
1282 C_ASSERT( FIELD_OFFSET(struct send_message_request, lparam) == 40 );
1283 C_ASSERT( FIELD_OFFSET(struct send_message_request, timeout) == 48 );
1284 C_ASSERT( sizeof(struct send_message_request) == 56 );
1285 C_ASSERT( FIELD_OFFSET(struct post_quit_message_request, exit_code) == 12 );
1286 C_ASSERT( sizeof(struct post_quit_message_request) == 16 );
1287 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, id) == 12 );
1288 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, win) == 16 );
1289 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, msg) == 20 );
1290 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, wparam) == 24 );
1291 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, lparam) == 32 );
1292 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, info) == 40 );
1293 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, x) == 48 );
1294 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, y) == 52 );
1295 C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, time) == 56 );
1296 C_ASSERT( sizeof(struct send_hardware_message_request) == 64 );
1297 C_ASSERT( FIELD_OFFSET(struct get_message_request, flags) == 12 );
1298 C_ASSERT( FIELD_OFFSET(struct get_message_request, get_win) == 16 );
1299 C_ASSERT( FIELD_OFFSET(struct get_message_request, get_first) == 20 );
1300 C_ASSERT( FIELD_OFFSET(struct get_message_request, get_last) == 24 );
1301 C_ASSERT( FIELD_OFFSET(struct get_message_request, hw_id) == 28 );
1302 C_ASSERT( FIELD_OFFSET(struct get_message_request, wake_mask) == 32 );
1303 C_ASSERT( FIELD_OFFSET(struct get_message_request, changed_mask) == 36 );
1304 C_ASSERT( FIELD_OFFSET(struct get_message_reply, win) == 8 );
1305 C_ASSERT( FIELD_OFFSET(struct get_message_reply, msg) == 12 );
1306 C_ASSERT( FIELD_OFFSET(struct get_message_reply, wparam) == 16 );
1307 C_ASSERT( FIELD_OFFSET(struct get_message_reply, lparam) == 24 );
1308 C_ASSERT( FIELD_OFFSET(struct get_message_reply, type) == 32 );
1309 C_ASSERT( FIELD_OFFSET(struct get_message_reply, time) == 36 );
1310 C_ASSERT( FIELD_OFFSET(struct get_message_reply, active_hooks) == 40 );
1311 C_ASSERT( FIELD_OFFSET(struct get_message_reply, total) == 44 );
1312 C_ASSERT( sizeof(struct get_message_reply) == 48 );
1313 C_ASSERT( FIELD_OFFSET(struct reply_message_request, remove) == 12 );
1314 C_ASSERT( FIELD_OFFSET(struct reply_message_request, result) == 16 );
1315 C_ASSERT( sizeof(struct reply_message_request) == 24 );
1316 C_ASSERT( FIELD_OFFSET(struct accept_hardware_message_request, hw_id) == 12 );
1317 C_ASSERT( FIELD_OFFSET(struct accept_hardware_message_request, remove) == 16 );
1318 C_ASSERT( FIELD_OFFSET(struct accept_hardware_message_request, new_win) == 20 );
1319 C_ASSERT( sizeof(struct accept_hardware_message_request) == 24 );
1320 C_ASSERT( FIELD_OFFSET(struct get_message_reply_request, cancel) == 12 );
1321 C_ASSERT( FIELD_OFFSET(struct get_message_reply_reply, result) == 8 );
1322 C_ASSERT( sizeof(struct get_message_reply_reply) == 16 );
1323 C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, win) == 12 );
1324 C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, msg) == 16 );
1325 C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, rate) == 20 );
1326 C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, id) == 24 );
1327 C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, lparam) == 32 );
1328 C_ASSERT( FIELD_OFFSET(struct set_win_timer_reply, id) == 8 );
1329 C_ASSERT( sizeof(struct set_win_timer_reply) == 16 );
1330 C_ASSERT( FIELD_OFFSET(struct kill_win_timer_request, win) == 12 );
1331 C_ASSERT( FIELD_OFFSET(struct kill_win_timer_request, id) == 16 );
1332 C_ASSERT( FIELD_OFFSET(struct kill_win_timer_request, msg) == 24 );
1333 C_ASSERT( sizeof(struct kill_win_timer_request) == 32 );
1334 C_ASSERT( FIELD_OFFSET(struct is_window_hung_request, win) == 12 );
1335 C_ASSERT( FIELD_OFFSET(struct is_window_hung_reply, is_hung) == 8 );
1336 C_ASSERT( sizeof(struct is_window_hung_reply) == 16 );
1337 C_ASSERT( FIELD_OFFSET(struct get_serial_info_request, handle) == 12 );
1338 C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, readinterval) == 8 );
1339 C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, readconst) == 12 );
1340 C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, readmult) == 16 );
1341 C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, writeconst) == 20 );
1342 C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, writemult) == 24 );
1343 C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, eventmask) == 28 );
1344 C_ASSERT( sizeof(struct get_serial_info_reply) == 32 );
1345 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, handle) == 12 );
1346 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, flags) == 16 );
1347 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, readinterval) == 20 );
1348 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, readconst) == 24 );
1349 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, readmult) == 28 );
1350 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, writeconst) == 32 );
1351 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, writemult) == 36 );
1352 C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, eventmask) == 40 );
1353 C_ASSERT( sizeof(struct set_serial_info_request) == 48 );
1354 C_ASSERT( FIELD_OFFSET(struct register_async_request, type) == 12 );
1355 C_ASSERT( FIELD_OFFSET(struct register_async_request, async) == 16 );
1356 C_ASSERT( FIELD_OFFSET(struct register_async_request, count) == 56 );
1357 C_ASSERT( sizeof(struct register_async_request) == 64 );
1358 C_ASSERT( FIELD_OFFSET(struct cancel_async_request, handle) == 12 );
1359 C_ASSERT( FIELD_OFFSET(struct cancel_async_request, iosb) == 16 );
1360 C_ASSERT( FIELD_OFFSET(struct cancel_async_request, only_thread) == 24 );
1361 C_ASSERT( sizeof(struct cancel_async_request) == 32 );
1362 C_ASSERT( FIELD_OFFSET(struct ioctl_request, code) == 12 );
1363 C_ASSERT( FIELD_OFFSET(struct ioctl_request, async) == 16 );
1364 C_ASSERT( FIELD_OFFSET(struct ioctl_request, blocking) == 56 );
1365 C_ASSERT( FIELD_OFFSET(struct ioctl_reply, wait) == 8 );
1366 C_ASSERT( FIELD_OFFSET(struct ioctl_reply, options) == 12 );
1367 C_ASSERT( sizeof(struct ioctl_reply) == 16 );
1368 C_ASSERT( FIELD_OFFSET(struct get_ioctl_result_request, handle) == 12 );
1369 C_ASSERT( FIELD_OFFSET(struct get_ioctl_result_request, user_arg) == 16 );
1370 C_ASSERT( sizeof(struct get_ioctl_result_reply) == 8 );
1371 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, access) == 12 );
1372 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, attributes) == 16 );
1373 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, rootdir) == 20 );
1374 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, options) == 24 );
1375 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, maxinstances) == 28 );
1376 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, outsize) == 32 );
1377 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, insize) == 36 );
1378 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, timeout) == 40 );
1379 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, flags) == 48 );
1380 C_ASSERT( FIELD_OFFSET(struct create_named_pipe_reply, handle) == 8 );
1381 C_ASSERT( sizeof(struct create_named_pipe_reply) == 16 );
1382 C_ASSERT( FIELD_OFFSET(struct get_named_pipe_info_request, handle) == 12 );
1383 C_ASSERT( FIELD_OFFSET(struct get_named_pipe_info_reply, flags) == 8 );
1384 C_ASSERT( FIELD_OFFSET(struct get_named_pipe_info_reply, maxinstances) == 12 );
1385 C_ASSERT( FIELD_OFFSET(struct get_named_pipe_info_reply, instances) == 16 );
1386 C_ASSERT( FIELD_OFFSET(struct get_named_pipe_info_reply, outsize) == 20 );
1387 C_ASSERT( FIELD_OFFSET(struct get_named_pipe_info_reply, insize) == 24 );
1388 C_ASSERT( sizeof(struct get_named_pipe_info_reply) == 32 );
1389 C_ASSERT( FIELD_OFFSET(struct create_window_request, parent) == 12 );
1390 C_ASSERT( FIELD_OFFSET(struct create_window_request, owner) == 16 );
1391 C_ASSERT( FIELD_OFFSET(struct create_window_request, atom) == 20 );
1392 C_ASSERT( FIELD_OFFSET(struct create_window_request, instance) == 24 );
1393 C_ASSERT( FIELD_OFFSET(struct create_window_reply, handle) == 8 );
1394 C_ASSERT( FIELD_OFFSET(struct create_window_reply, parent) == 12 );
1395 C_ASSERT( FIELD_OFFSET(struct create_window_reply, owner) == 16 );
1396 C_ASSERT( FIELD_OFFSET(struct create_window_reply, extra) == 20 );
1397 C_ASSERT( FIELD_OFFSET(struct create_window_reply, class_ptr) == 24 );
1398 C_ASSERT( sizeof(struct create_window_reply) == 32 );
1399 C_ASSERT( FIELD_OFFSET(struct destroy_window_request, handle) == 12 );
1400 C_ASSERT( sizeof(struct destroy_window_request) == 16 );
1401 C_ASSERT( FIELD_OFFSET(struct get_desktop_window_request, force) == 12 );
1402 C_ASSERT( FIELD_OFFSET(struct get_desktop_window_reply, top_window) == 8 );
1403 C_ASSERT( FIELD_OFFSET(struct get_desktop_window_reply, msg_window) == 12 );
1404 C_ASSERT( sizeof(struct get_desktop_window_reply) == 16 );
1405 C_ASSERT( FIELD_OFFSET(struct set_window_owner_request, handle) == 12 );
1406 C_ASSERT( FIELD_OFFSET(struct set_window_owner_request, owner) == 16 );
1407 C_ASSERT( FIELD_OFFSET(struct set_window_owner_reply, full_owner) == 8 );
1408 C_ASSERT( FIELD_OFFSET(struct set_window_owner_reply, prev_owner) == 12 );
1409 C_ASSERT( sizeof(struct set_window_owner_reply) == 16 );
1410 C_ASSERT( FIELD_OFFSET(struct get_window_info_request, handle) == 12 );
1411 C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, full_handle) == 8 );
1412 C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, last_active) == 12 );
1413 C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, pid) == 16 );
1414 C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, tid) == 20 );
1415 C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, atom) == 24 );
1416 C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, is_unicode) == 28 );
1417 C_ASSERT( sizeof(struct get_window_info_reply) == 32 );
1418 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, flags) == 12 );
1419 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, is_unicode) == 14 );
1420 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, handle) == 16 );
1421 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, style) == 20 );
1422 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, ex_style) == 24 );
1423 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, id) == 28 );
1424 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, instance) == 32 );
1425 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, user_data) == 40 );
1426 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, extra_offset) == 48 );
1427 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, extra_size) == 52 );
1428 C_ASSERT( FIELD_OFFSET(struct set_window_info_request, extra_value) == 56 );
1429 C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_style) == 8 );
1430 C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_ex_style) == 12 );
1431 C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_instance) == 16 );
1432 C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_user_data) == 24 );
1433 C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_extra_value) == 32 );
1434 C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_id) == 40 );
1435 C_ASSERT( sizeof(struct set_window_info_reply) == 48 );
1436 C_ASSERT( FIELD_OFFSET(struct set_parent_request, handle) == 12 );
1437 C_ASSERT( FIELD_OFFSET(struct set_parent_request, parent) == 16 );
1438 C_ASSERT( FIELD_OFFSET(struct set_parent_reply, old_parent) == 8 );
1439 C_ASSERT( FIELD_OFFSET(struct set_parent_reply, full_parent) == 12 );
1440 C_ASSERT( sizeof(struct set_parent_reply) == 16 );
1441 C_ASSERT( FIELD_OFFSET(struct get_window_parents_request, handle) == 12 );
1442 C_ASSERT( FIELD_OFFSET(struct get_window_parents_reply, count) == 8 );
1443 C_ASSERT( sizeof(struct get_window_parents_reply) == 16 );
1444 C_ASSERT( FIELD_OFFSET(struct get_window_children_request, desktop) == 12 );
1445 C_ASSERT( FIELD_OFFSET(struct get_window_children_request, parent) == 16 );
1446 C_ASSERT( FIELD_OFFSET(struct get_window_children_request, atom) == 20 );
1447 C_ASSERT( FIELD_OFFSET(struct get_window_children_request, tid) == 24 );
1448 C_ASSERT( FIELD_OFFSET(struct get_window_children_reply, count) == 8 );
1449 C_ASSERT( sizeof(struct get_window_children_reply) == 16 );
1450 C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_request, parent) == 12 );
1451 C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_request, x) == 16 );
1452 C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_request, y) == 20 );
1453 C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_reply, count) == 8 );
1454 C_ASSERT( sizeof(struct get_window_children_from_point_reply) == 16 );
1455 C_ASSERT( FIELD_OFFSET(struct get_window_tree_request, handle) == 12 );
1456 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, parent) == 8 );
1457 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, owner) == 12 );
1458 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, next_sibling) == 16 );
1459 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, prev_sibling) == 20 );
1460 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, first_sibling) == 24 );
1461 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, last_sibling) == 28 );
1462 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, first_child) == 32 );
1463 C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, last_child) == 36 );
1464 C_ASSERT( sizeof(struct get_window_tree_reply) == 40 );
1465 C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, flags) == 12 );
1466 C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, handle) == 16 );
1467 C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, previous) == 20 );
1468 C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, window) == 24 );
1469 C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, client) == 40 );
1470 C_ASSERT( FIELD_OFFSET(struct set_window_pos_reply, new_style) == 8 );
1471 C_ASSERT( FIELD_OFFSET(struct set_window_pos_reply, new_ex_style) == 12 );
1472 C_ASSERT( sizeof(struct set_window_pos_reply) == 16 );
1473 C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_request, handle) == 12 );
1474 C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_reply, window) == 8 );
1475 C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_reply, visible) == 24 );
1476 C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_reply, client) == 40 );
1477 C_ASSERT( sizeof(struct get_window_rectangles_reply) == 56 );
1478 C_ASSERT( FIELD_OFFSET(struct get_window_text_request, handle) == 12 );
1479 C_ASSERT( sizeof(struct get_window_text_reply) == 8 );
1480 C_ASSERT( FIELD_OFFSET(struct set_window_text_request, handle) == 12 );
1481 C_ASSERT( sizeof(struct set_window_text_request) == 16 );
1482 C_ASSERT( FIELD_OFFSET(struct get_windows_offset_request, from) == 12 );
1483 C_ASSERT( FIELD_OFFSET(struct get_windows_offset_request, to) == 16 );
1484 C_ASSERT( FIELD_OFFSET(struct get_windows_offset_reply, x) == 8 );
1485 C_ASSERT( FIELD_OFFSET(struct get_windows_offset_reply, y) == 12 );
1486 C_ASSERT( sizeof(struct get_windows_offset_reply) == 16 );
1487 C_ASSERT( FIELD_OFFSET(struct get_visible_region_request, window) == 12 );
1488 C_ASSERT( FIELD_OFFSET(struct get_visible_region_request, flags) == 16 );
1489 C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, top_win) == 8 );
1490 C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, top_rect) == 12 );
1491 C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, win_rect) == 28 );
1492 C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, total_size) == 44 );
1493 C_ASSERT( sizeof(struct get_visible_region_reply) == 48 );
1494 C_ASSERT( FIELD_OFFSET(struct get_window_region_request, window) == 12 );
1495 C_ASSERT( FIELD_OFFSET(struct get_window_region_reply, total_size) == 8 );
1496 C_ASSERT( sizeof(struct get_window_region_reply) == 16 );
1497 C_ASSERT( FIELD_OFFSET(struct set_window_region_request, window) == 12 );
1498 C_ASSERT( FIELD_OFFSET(struct set_window_region_request, redraw) == 16 );
1499 C_ASSERT( sizeof(struct set_window_region_request) == 24 );
1500 C_ASSERT( FIELD_OFFSET(struct get_update_region_request, window) == 12 );
1501 C_ASSERT( FIELD_OFFSET(struct get_update_region_request, from_child) == 16 );
1502 C_ASSERT( FIELD_OFFSET(struct get_update_region_request, flags) == 20 );
1503 C_ASSERT( FIELD_OFFSET(struct get_update_region_reply, child) == 8 );
1504 C_ASSERT( FIELD_OFFSET(struct get_update_region_reply, flags) == 12 );
1505 C_ASSERT( FIELD_OFFSET(struct get_update_region_reply, total_size) == 16 );
1506 C_ASSERT( sizeof(struct get_update_region_reply) == 24 );
1507 C_ASSERT( FIELD_OFFSET(struct update_window_zorder_request, window) == 12 );
1508 C_ASSERT( FIELD_OFFSET(struct update_window_zorder_request, rect) == 16 );
1509 C_ASSERT( sizeof(struct update_window_zorder_request) == 32 );
1510 C_ASSERT( FIELD_OFFSET(struct redraw_window_request, window) == 12 );
1511 C_ASSERT( FIELD_OFFSET(struct redraw_window_request, flags) == 16 );
1512 C_ASSERT( sizeof(struct redraw_window_request) == 24 );
1513 C_ASSERT( FIELD_OFFSET(struct set_window_property_request, window) == 12 );
1514 C_ASSERT( FIELD_OFFSET(struct set_window_property_request, data) == 16 );
1515 C_ASSERT( FIELD_OFFSET(struct set_window_property_request, atom) == 24 );
1516 C_ASSERT( sizeof(struct set_window_property_request) == 32 );
1517 C_ASSERT( FIELD_OFFSET(struct remove_window_property_request, window) == 12 );
1518 C_ASSERT( FIELD_OFFSET(struct remove_window_property_request, atom) == 16 );
1519 C_ASSERT( FIELD_OFFSET(struct remove_window_property_reply, data) == 8 );
1520 C_ASSERT( sizeof(struct remove_window_property_reply) == 16 );
1521 C_ASSERT( FIELD_OFFSET(struct get_window_property_request, window) == 12 );
1522 C_ASSERT( FIELD_OFFSET(struct get_window_property_request, atom) == 16 );
1523 C_ASSERT( FIELD_OFFSET(struct get_window_property_reply, data) == 8 );
1524 C_ASSERT( sizeof(struct get_window_property_reply) == 16 );
1525 C_ASSERT( FIELD_OFFSET(struct get_window_properties_request, window) == 12 );
1526 C_ASSERT( FIELD_OFFSET(struct get_window_properties_reply, total) == 8 );
1527 C_ASSERT( sizeof(struct get_window_properties_reply) == 16 );
1528 C_ASSERT( FIELD_OFFSET(struct create_winstation_request, flags) == 12 );
1529 C_ASSERT( FIELD_OFFSET(struct create_winstation_request, access) == 16 );
1530 C_ASSERT( FIELD_OFFSET(struct create_winstation_request, attributes) == 20 );
1531 C_ASSERT( FIELD_OFFSET(struct create_winstation_reply, handle) == 8 );
1532 C_ASSERT( sizeof(struct create_winstation_reply) == 16 );
1533 C_ASSERT( FIELD_OFFSET(struct open_winstation_request, access) == 12 );
1534 C_ASSERT( FIELD_OFFSET(struct open_winstation_request, attributes) == 16 );
1535 C_ASSERT( FIELD_OFFSET(struct open_winstation_reply, handle) == 8 );
1536 C_ASSERT( sizeof(struct open_winstation_reply) == 16 );
1537 C_ASSERT( FIELD_OFFSET(struct close_winstation_request, handle) == 12 );
1538 C_ASSERT( sizeof(struct close_winstation_request) == 16 );
1539 C_ASSERT( FIELD_OFFSET(struct get_process_winstation_reply, handle) == 8 );
1540 C_ASSERT( sizeof(struct get_process_winstation_reply) == 16 );
1541 C_ASSERT( FIELD_OFFSET(struct set_process_winstation_request, handle) == 12 );
1542 C_ASSERT( sizeof(struct set_process_winstation_request) == 16 );
1543 C_ASSERT( FIELD_OFFSET(struct enum_winstation_request, index) == 12 );
1544 C_ASSERT( FIELD_OFFSET(struct enum_winstation_reply, next) == 8 );
1545 C_ASSERT( sizeof(struct enum_winstation_reply) == 16 );
1546 C_ASSERT( FIELD_OFFSET(struct create_desktop_request, flags) == 12 );
1547 C_ASSERT( FIELD_OFFSET(struct create_desktop_request, access) == 16 );
1548 C_ASSERT( FIELD_OFFSET(struct create_desktop_request, attributes) == 20 );
1549 C_ASSERT( FIELD_OFFSET(struct create_desktop_reply, handle) == 8 );
1550 C_ASSERT( sizeof(struct create_desktop_reply) == 16 );
1551 C_ASSERT( FIELD_OFFSET(struct open_desktop_request, winsta) == 12 );
1552 C_ASSERT( FIELD_OFFSET(struct open_desktop_request, flags) == 16 );
1553 C_ASSERT( FIELD_OFFSET(struct open_desktop_request, access) == 20 );
1554 C_ASSERT( FIELD_OFFSET(struct open_desktop_request, attributes) == 24 );
1555 C_ASSERT( FIELD_OFFSET(struct open_desktop_reply, handle) == 8 );
1556 C_ASSERT( sizeof(struct open_desktop_reply) == 16 );
1557 C_ASSERT( FIELD_OFFSET(struct close_desktop_request, handle) == 12 );
1558 C_ASSERT( sizeof(struct close_desktop_request) == 16 );
1559 C_ASSERT( FIELD_OFFSET(struct get_thread_desktop_request, tid) == 12 );
1560 C_ASSERT( FIELD_OFFSET(struct get_thread_desktop_reply, handle) == 8 );
1561 C_ASSERT( sizeof(struct get_thread_desktop_reply) == 16 );
1562 C_ASSERT( FIELD_OFFSET(struct set_thread_desktop_request, handle) == 12 );
1563 C_ASSERT( sizeof(struct set_thread_desktop_request) == 16 );
1564 C_ASSERT( FIELD_OFFSET(struct enum_desktop_request, winstation) == 12 );
1565 C_ASSERT( FIELD_OFFSET(struct enum_desktop_request, index) == 16 );
1566 C_ASSERT( FIELD_OFFSET(struct enum_desktop_reply, next) == 8 );
1567 C_ASSERT( sizeof(struct enum_desktop_reply) == 16 );
1568 C_ASSERT( FIELD_OFFSET(struct set_user_object_info_request, handle) == 12 );
1569 C_ASSERT( FIELD_OFFSET(struct set_user_object_info_request, flags) == 16 );
1570 C_ASSERT( FIELD_OFFSET(struct set_user_object_info_request, obj_flags) == 20 );
1571 C_ASSERT( FIELD_OFFSET(struct set_user_object_info_reply, is_desktop) == 8 );
1572 C_ASSERT( FIELD_OFFSET(struct set_user_object_info_reply, old_obj_flags) == 12 );
1573 C_ASSERT( sizeof(struct set_user_object_info_reply) == 16 );
1574 C_ASSERT( FIELD_OFFSET(struct attach_thread_input_request, tid_from) == 12 );
1575 C_ASSERT( FIELD_OFFSET(struct attach_thread_input_request, tid_to) == 16 );
1576 C_ASSERT( FIELD_OFFSET(struct attach_thread_input_request, attach) == 20 );
1577 C_ASSERT( sizeof(struct attach_thread_input_request) == 24 );
1578 C_ASSERT( FIELD_OFFSET(struct get_thread_input_request, tid) == 12 );
1579 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, focus) == 8 );
1580 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, capture) == 12 );
1581 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, active) == 16 );
1582 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, foreground) == 20 );
1583 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, menu_owner) == 24 );
1584 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, move_size) == 28 );
1585 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, caret) == 32 );
1586 C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, rect) == 36 );
1587 C_ASSERT( sizeof(struct get_thread_input_reply) == 56 );
1588 C_ASSERT( FIELD_OFFSET(struct get_last_input_time_reply, time) == 8 );
1589 C_ASSERT( sizeof(struct get_last_input_time_reply) == 16 );
1590 C_ASSERT( FIELD_OFFSET(struct get_key_state_request, tid) == 12 );
1591 C_ASSERT( FIELD_OFFSET(struct get_key_state_request, key) == 16 );
1592 C_ASSERT( FIELD_OFFSET(struct get_key_state_reply, state) == 8 );
1593 C_ASSERT( sizeof(struct get_key_state_reply) == 16 );
1594 C_ASSERT( FIELD_OFFSET(struct set_key_state_request, tid) == 12 );
1595 C_ASSERT( sizeof(struct set_key_state_request) == 16 );
1596 C_ASSERT( FIELD_OFFSET(struct set_foreground_window_request, handle) == 12 );
1597 C_ASSERT( FIELD_OFFSET(struct set_foreground_window_reply, previous) == 8 );
1598 C_ASSERT( FIELD_OFFSET(struct set_foreground_window_reply, send_msg_old) == 12 );
1599 C_ASSERT( FIELD_OFFSET(struct set_foreground_window_reply, send_msg_new) == 16 );
1600 C_ASSERT( sizeof(struct set_foreground_window_reply) == 24 );
1601 C_ASSERT( FIELD_OFFSET(struct set_focus_window_request, handle) == 12 );
1602 C_ASSERT( FIELD_OFFSET(struct set_focus_window_reply, previous) == 8 );
1603 C_ASSERT( sizeof(struct set_focus_window_reply) == 16 );
1604 C_ASSERT( FIELD_OFFSET(struct set_active_window_request, handle) == 12 );
1605 C_ASSERT( FIELD_OFFSET(struct set_active_window_reply, previous) == 8 );
1606 C_ASSERT( sizeof(struct set_active_window_reply) == 16 );
1607 C_ASSERT( FIELD_OFFSET(struct set_capture_window_request, handle) == 12 );
1608 C_ASSERT( FIELD_OFFSET(struct set_capture_window_request, flags) == 16 );
1609 C_ASSERT( FIELD_OFFSET(struct set_capture_window_reply, previous) == 8 );
1610 C_ASSERT( FIELD_OFFSET(struct set_capture_window_reply, full_handle) == 12 );
1611 C_ASSERT( sizeof(struct set_capture_window_reply) == 16 );
1612 C_ASSERT( FIELD_OFFSET(struct set_caret_window_request, handle) == 12 );
1613 C_ASSERT( FIELD_OFFSET(struct set_caret_window_request, width) == 16 );
1614 C_ASSERT( FIELD_OFFSET(struct set_caret_window_request, height) == 20 );
1615 C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, previous) == 8 );
1616 C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, old_rect) == 12 );
1617 C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, old_hide) == 28 );
1618 C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, old_state) == 32 );
1619 C_ASSERT( sizeof(struct set_caret_window_reply) == 40 );
1620 C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, flags) == 12 );
1621 C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, handle) == 16 );
1622 C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, x) == 20 );
1623 C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, y) == 24 );
1624 C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, hide) == 28 );
1625 C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, state) == 32 );
1626 C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, full_handle) == 8 );
1627 C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, old_rect) == 12 );
1628 C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, old_hide) == 28 );
1629 C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, old_state) == 32 );
1630 C_ASSERT( sizeof(struct set_caret_info_reply) == 40 );
1631 C_ASSERT( FIELD_OFFSET(struct set_hook_request, id) == 12 );
1632 C_ASSERT( FIELD_OFFSET(struct set_hook_request, pid) == 16 );
1633 C_ASSERT( FIELD_OFFSET(struct set_hook_request, tid) == 20 );
1634 C_ASSERT( FIELD_OFFSET(struct set_hook_request, event_min) == 24 );
1635 C_ASSERT( FIELD_OFFSET(struct set_hook_request, event_max) == 28 );
1636 C_ASSERT( FIELD_OFFSET(struct set_hook_request, proc) == 32 );
1637 C_ASSERT( FIELD_OFFSET(struct set_hook_request, flags) == 40 );
1638 C_ASSERT( FIELD_OFFSET(struct set_hook_request, unicode) == 44 );
1639 C_ASSERT( FIELD_OFFSET(struct set_hook_reply, handle) == 8 );
1640 C_ASSERT( FIELD_OFFSET(struct set_hook_reply, active_hooks) == 12 );
1641 C_ASSERT( sizeof(struct set_hook_reply) == 16 );
1642 C_ASSERT( FIELD_OFFSET(struct remove_hook_request, handle) == 12 );
1643 C_ASSERT( FIELD_OFFSET(struct remove_hook_request, proc) == 16 );
1644 C_ASSERT( FIELD_OFFSET(struct remove_hook_request, id) == 24 );
1645 C_ASSERT( FIELD_OFFSET(struct remove_hook_reply, active_hooks) == 8 );
1646 C_ASSERT( sizeof(struct remove_hook_reply) == 16 );
1647 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, id) == 12 );
1648 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, event) == 16 );
1649 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, window) == 20 );
1650 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, object_id) == 24 );
1651 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, child_id) == 28 );
1652 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, handle) == 8 );
1653 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, pid) == 12 );
1654 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, tid) == 16 );
1655 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, unicode) == 20 );
1656 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, proc) == 24 );
1657 C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, active_hooks) == 32 );
1658 C_ASSERT( sizeof(struct start_hook_chain_reply) == 40 );
1659 C_ASSERT( FIELD_OFFSET(struct finish_hook_chain_request, id) == 12 );
1660 C_ASSERT( sizeof(struct finish_hook_chain_request) == 16 );
1661 C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, handle) == 12 );
1662 C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, get_next) == 16 );
1663 C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, event) == 20 );
1664 C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, window) == 24 );
1665 C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, object_id) == 28 );
1666 C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, child_id) == 32 );
1667 C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, handle) == 8 );
1668 C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, id) == 12 );
1669 C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, pid) == 16 );
1670 C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, tid) == 20 );
1671 C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, proc) == 24 );
1672 C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, unicode) == 32 );
1673 C_ASSERT( sizeof(struct get_hook_info_reply) == 40 );
1674 C_ASSERT( FIELD_OFFSET(struct create_class_request, local) == 12 );
1675 C_ASSERT( FIELD_OFFSET(struct create_class_request, atom) == 16 );
1676 C_ASSERT( FIELD_OFFSET(struct create_class_request, style) == 20 );
1677 C_ASSERT( FIELD_OFFSET(struct create_class_request, instance) == 24 );
1678 C_ASSERT( FIELD_OFFSET(struct create_class_request, extra) == 32 );
1679 C_ASSERT( FIELD_OFFSET(struct create_class_request, win_extra) == 36 );
1680 C_ASSERT( FIELD_OFFSET(struct create_class_request, client_ptr) == 40 );
1681 C_ASSERT( FIELD_OFFSET(struct create_class_reply, atom) == 8 );
1682 C_ASSERT( sizeof(struct create_class_reply) == 16 );
1683 C_ASSERT( FIELD_OFFSET(struct destroy_class_request, atom) == 12 );
1684 C_ASSERT( FIELD_OFFSET(struct destroy_class_request, instance) == 16 );
1685 C_ASSERT( FIELD_OFFSET(struct destroy_class_reply, client_ptr) == 8 );
1686 C_ASSERT( sizeof(struct destroy_class_reply) == 16 );
1687 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, window) == 12 );
1688 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, flags) == 16 );
1689 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, atom) == 20 );
1690 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, style) == 24 );
1691 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, win_extra) == 28 );
1692 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, instance) == 32 );
1693 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, extra_offset) == 40 );
1694 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, extra_size) == 44 );
1695 C_ASSERT( FIELD_OFFSET(struct set_class_info_request, extra_value) == 48 );
1696 C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_atom) == 8 );
1697 C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_style) == 12 );
1698 C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_extra) == 16 );
1699 C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_win_extra) == 20 );
1700 C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_instance) == 24 );
1701 C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_extra_value) == 32 );
1702 C_ASSERT( sizeof(struct set_class_info_reply) == 40 );
1703 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_request, flags) == 12 );
1704 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_request, clipboard) == 16 );
1705 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_request, owner) == 20 );
1706 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_request, viewer) == 24 );
1707 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_request, seqno) == 28 );
1708 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_reply, flags) == 8 );
1709 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_reply, old_clipboard) == 12 );
1710 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_reply, old_owner) == 16 );
1711 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_reply, old_viewer) == 20 );
1712 C_ASSERT( FIELD_OFFSET(struct set_clipboard_info_reply, seqno) == 24 );
1713 C_ASSERT( sizeof(struct set_clipboard_info_reply) == 32 );
1714 C_ASSERT( FIELD_OFFSET(struct open_token_request, handle) == 12 );
1715 C_ASSERT( FIELD_OFFSET(struct open_token_request, access) == 16 );
1716 C_ASSERT( FIELD_OFFSET(struct open_token_request, attributes) == 20 );
1717 C_ASSERT( FIELD_OFFSET(struct open_token_request, flags) == 24 );
1718 C_ASSERT( FIELD_OFFSET(struct open_token_reply, token) == 8 );
1719 C_ASSERT( sizeof(struct open_token_reply) == 16 );
1720 C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, flags) == 12 );
1721 C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, shell_window) == 16 );
1722 C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, shell_listview) == 20 );
1723 C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, progman_window) == 24 );
1724 C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, taskman_window) == 28 );
1725 C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_shell_window) == 8 );
1726 C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_shell_listview) == 12 );
1727 C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_progman_window) == 16 );
1728 C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_taskman_window) == 20 );
1729 C_ASSERT( sizeof(struct set_global_windows_reply) == 24 );
1730 C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_request, handle) == 12 );
1731 C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_request, disable_all) == 16 );
1732 C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_request, get_modified_state) == 20 );
1733 C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_reply, len) == 8 );
1734 C_ASSERT( sizeof(struct adjust_token_privileges_reply) == 16 );
1735 C_ASSERT( FIELD_OFFSET(struct get_token_privileges_request, handle) == 12 );
1736 C_ASSERT( FIELD_OFFSET(struct get_token_privileges_reply, len) == 8 );
1737 C_ASSERT( sizeof(struct get_token_privileges_reply) == 16 );
1738 C_ASSERT( FIELD_OFFSET(struct check_token_privileges_request, handle) == 12 );
1739 C_ASSERT( FIELD_OFFSET(struct check_token_privileges_request, all_required) == 16 );
1740 C_ASSERT( FIELD_OFFSET(struct check_token_privileges_reply, has_privileges) == 8 );
1741 C_ASSERT( sizeof(struct check_token_privileges_reply) == 16 );
1742 C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, handle) == 12 );
1743 C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, access) == 16 );
1744 C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, attributes) == 20 );
1745 C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, primary) == 24 );
1746 C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, impersonation_level) == 28 );
1747 C_ASSERT( FIELD_OFFSET(struct duplicate_token_reply, new_handle) == 8 );
1748 C_ASSERT( sizeof(struct duplicate_token_reply) == 16 );
1749 C_ASSERT( FIELD_OFFSET(struct access_check_request, handle) == 12 );
1750 C_ASSERT( FIELD_OFFSET(struct access_check_request, desired_access) == 16 );
1751 C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_read) == 20 );
1752 C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_write) == 24 );
1753 C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_execute) == 28 );
1754 C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_all) == 32 );
1755 C_ASSERT( FIELD_OFFSET(struct access_check_reply, access_granted) == 8 );
1756 C_ASSERT( FIELD_OFFSET(struct access_check_reply, access_status) == 12 );
1757 C_ASSERT( FIELD_OFFSET(struct access_check_reply, privileges_len) == 16 );
1758 C_ASSERT( sizeof(struct access_check_reply) == 24 );
1759 C_ASSERT( FIELD_OFFSET(struct get_token_sid_request, handle) == 12 );
1760 C_ASSERT( FIELD_OFFSET(struct get_token_sid_request, which_sid) == 16 );
1761 C_ASSERT( FIELD_OFFSET(struct get_token_sid_reply, sid_len) == 8 );
1762 C_ASSERT( sizeof(struct get_token_sid_reply) == 16 );
1763 C_ASSERT( FIELD_OFFSET(struct get_token_groups_request, handle) == 12 );
1764 C_ASSERT( FIELD_OFFSET(struct get_token_groups_reply, user_len) == 8 );
1765 C_ASSERT( sizeof(struct get_token_groups_reply) == 16 );
1766 C_ASSERT( FIELD_OFFSET(struct get_token_default_dacl_request, handle) == 12 );
1767 C_ASSERT( FIELD_OFFSET(struct get_token_default_dacl_reply, acl_len) == 8 );
1768 C_ASSERT( sizeof(struct get_token_default_dacl_reply) == 16 );
1769 C_ASSERT( FIELD_OFFSET(struct set_token_default_dacl_request, handle) == 12 );
1770 C_ASSERT( sizeof(struct set_token_default_dacl_request) == 16 );
1771 C_ASSERT( FIELD_OFFSET(struct set_security_object_request, handle) == 12 );
1772 C_ASSERT( FIELD_OFFSET(struct set_security_object_request, security_info) == 16 );
1773 C_ASSERT( sizeof(struct set_security_object_request) == 24 );
1774 C_ASSERT( FIELD_OFFSET(struct get_security_object_request, handle) == 12 );
1775 C_ASSERT( FIELD_OFFSET(struct get_security_object_request, security_info) == 16 );
1776 C_ASSERT( FIELD_OFFSET(struct get_security_object_reply, sd_len) == 8 );
1777 C_ASSERT( sizeof(struct get_security_object_reply) == 16 );
1778 C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, access) == 12 );
1779 C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, attributes) == 16 );
1780 C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, rootdir) == 20 );
1781 C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, read_timeout) == 24 );
1782 C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, max_msgsize) == 32 );
1783 C_ASSERT( FIELD_OFFSET(struct create_mailslot_reply, handle) == 8 );
1784 C_ASSERT( sizeof(struct create_mailslot_reply) == 16 );
1785 C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_request, handle) == 12 );
1786 C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_request, read_timeout) == 16 );
1787 C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_request, flags) == 24 );
1788 C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_reply, read_timeout) == 8 );
1789 C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_reply, max_msgsize) == 16 );
1790 C_ASSERT( sizeof(struct set_mailslot_info_reply) == 24 );
1791 C_ASSERT( FIELD_OFFSET(struct create_directory_request, access) == 12 );
1792 C_ASSERT( FIELD_OFFSET(struct create_directory_request, attributes) == 16 );
1793 C_ASSERT( FIELD_OFFSET(struct create_directory_request, rootdir) == 20 );
1794 C_ASSERT( FIELD_OFFSET(struct create_directory_reply, handle) == 8 );
1795 C_ASSERT( sizeof(struct create_directory_reply) == 16 );
1796 C_ASSERT( FIELD_OFFSET(struct open_directory_request, access) == 12 );
1797 C_ASSERT( FIELD_OFFSET(struct open_directory_request, attributes) == 16 );
1798 C_ASSERT( FIELD_OFFSET(struct open_directory_request, rootdir) == 20 );
1799 C_ASSERT( FIELD_OFFSET(struct open_directory_reply, handle) == 8 );
1800 C_ASSERT( sizeof(struct open_directory_reply) == 16 );
1801 C_ASSERT( FIELD_OFFSET(struct get_directory_entry_request, handle) == 12 );
1802 C_ASSERT( FIELD_OFFSET(struct get_directory_entry_request, index) == 16 );
1803 C_ASSERT( FIELD_OFFSET(struct get_directory_entry_reply, name_len) == 8 );
1804 C_ASSERT( sizeof(struct get_directory_entry_reply) == 16 );
1805 C_ASSERT( FIELD_OFFSET(struct create_symlink_request, access) == 12 );
1806 C_ASSERT( FIELD_OFFSET(struct create_symlink_request, attributes) == 16 );
1807 C_ASSERT( FIELD_OFFSET(struct create_symlink_request, rootdir) == 20 );
1808 C_ASSERT( FIELD_OFFSET(struct create_symlink_request, name_len) == 24 );
1809 C_ASSERT( FIELD_OFFSET(struct create_symlink_reply, handle) == 8 );
1810 C_ASSERT( sizeof(struct create_symlink_reply) == 16 );
1811 C_ASSERT( FIELD_OFFSET(struct open_symlink_request, access) == 12 );
1812 C_ASSERT( FIELD_OFFSET(struct open_symlink_request, attributes) == 16 );
1813 C_ASSERT( FIELD_OFFSET(struct open_symlink_request, rootdir) == 20 );
1814 C_ASSERT( FIELD_OFFSET(struct open_symlink_reply, handle) == 8 );
1815 C_ASSERT( sizeof(struct open_symlink_reply) == 16 );
1816 C_ASSERT( FIELD_OFFSET(struct query_symlink_request, handle) == 12 );
1817 C_ASSERT( sizeof(struct query_symlink_reply) == 8 );
1818 C_ASSERT( FIELD_OFFSET(struct get_object_info_request, handle) == 12 );
1819 C_ASSERT( FIELD_OFFSET(struct get_object_info_reply, access) == 8 );
1820 C_ASSERT( FIELD_OFFSET(struct get_object_info_reply, ref_count) == 12 );
1821 C_ASSERT( FIELD_OFFSET(struct get_object_info_reply, total) == 16 );
1822 C_ASSERT( sizeof(struct get_object_info_reply) == 24 );
1823 C_ASSERT( FIELD_OFFSET(struct unlink_object_request, handle) == 12 );
1824 C_ASSERT( sizeof(struct unlink_object_request) == 16 );
1825 C_ASSERT( FIELD_OFFSET(struct get_token_impersonation_level_request, handle) == 12 );
1826 C_ASSERT( FIELD_OFFSET(struct get_token_impersonation_level_reply, impersonation_level) == 8 );
1827 C_ASSERT( sizeof(struct get_token_impersonation_level_reply) == 16 );
1828 C_ASSERT( FIELD_OFFSET(struct allocate_locally_unique_id_reply, luid) == 8 );
1829 C_ASSERT( sizeof(struct allocate_locally_unique_id_reply) == 16 );
1830 C_ASSERT( FIELD_OFFSET(struct create_device_manager_request, access) == 12 );
1831 C_ASSERT( FIELD_OFFSET(struct create_device_manager_request, attributes) == 16 );
1832 C_ASSERT( FIELD_OFFSET(struct create_device_manager_reply, handle) == 8 );
1833 C_ASSERT( sizeof(struct create_device_manager_reply) == 16 );
1834 C_ASSERT( FIELD_OFFSET(struct create_device_request, access) == 12 );
1835 C_ASSERT( FIELD_OFFSET(struct create_device_request, attributes) == 16 );
1836 C_ASSERT( FIELD_OFFSET(struct create_device_request, rootdir) == 20 );
1837 C_ASSERT( FIELD_OFFSET(struct create_device_request, user_ptr) == 24 );
1838 C_ASSERT( FIELD_OFFSET(struct create_device_request, manager) == 32 );
1839 C_ASSERT( FIELD_OFFSET(struct create_device_reply, handle) == 8 );
1840 C_ASSERT( sizeof(struct create_device_reply) == 16 );
1841 C_ASSERT( FIELD_OFFSET(struct delete_device_request, handle) == 12 );
1842 C_ASSERT( sizeof(struct delete_device_request) == 16 );
1843 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, manager) == 12 );
1844 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, prev) == 16 );
1845 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, status) == 20 );
1846 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, next) == 8 );
1847 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, code) == 12 );
1848 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, user_ptr) == 16 );
1849 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, in_size) == 24 );
1850 C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, out_size) == 28 );
1851 C_ASSERT( sizeof(struct get_next_device_request_reply) == 32 );
1852 C_ASSERT( FIELD_OFFSET(struct make_process_system_reply, event) == 8 );
1853 C_ASSERT( sizeof(struct make_process_system_reply) == 16 );
1854 C_ASSERT( FIELD_OFFSET(struct get_token_statistics_request, handle) == 12 );
1855 C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, token_id) == 8 );
1856 C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, modified_id) == 16 );
1857 C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, primary) == 24 );
1858 C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, impersonation_level) == 28 );
1859 C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, group_count) == 32 );
1860 C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, privilege_count) == 36 );
1861 C_ASSERT( sizeof(struct get_token_statistics_reply) == 40 );
1862 C_ASSERT( FIELD_OFFSET(struct create_completion_request, access) == 12 );
1863 C_ASSERT( FIELD_OFFSET(struct create_completion_request, attributes) == 16 );
1864 C_ASSERT( FIELD_OFFSET(struct create_completion_request, concurrent) == 20 );
1865 C_ASSERT( FIELD_OFFSET(struct create_completion_request, rootdir) == 24 );
1866 C_ASSERT( FIELD_OFFSET(struct create_completion_reply, handle) == 8 );
1867 C_ASSERT( sizeof(struct create_completion_reply) == 16 );
1868 C_ASSERT( FIELD_OFFSET(struct open_completion_request, access) == 12 );
1869 C_ASSERT( FIELD_OFFSET(struct open_completion_request, attributes) == 16 );
1870 C_ASSERT( FIELD_OFFSET(struct open_completion_request, rootdir) == 20 );
1871 C_ASSERT( FIELD_OFFSET(struct open_completion_reply, handle) == 8 );
1872 C_ASSERT( sizeof(struct open_completion_reply) == 16 );
1873 C_ASSERT( FIELD_OFFSET(struct add_completion_request, handle) == 12 );
1874 C_ASSERT( FIELD_OFFSET(struct add_completion_request, ckey) == 16 );
1875 C_ASSERT( FIELD_OFFSET(struct add_completion_request, cvalue) == 24 );
1876 C_ASSERT( FIELD_OFFSET(struct add_completion_request, information) == 32 );
1877 C_ASSERT( FIELD_OFFSET(struct add_completion_request, status) == 36 );
1878 C_ASSERT( sizeof(struct add_completion_request) == 40 );
1879 C_ASSERT( FIELD_OFFSET(struct remove_completion_request, handle) == 12 );
1880 C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, ckey) == 8 );
1881 C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, cvalue) == 16 );
1882 C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, information) == 24 );
1883 C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, status) == 28 );
1884 C_ASSERT( sizeof(struct remove_completion_reply) == 32 );
1885 C_ASSERT( FIELD_OFFSET(struct query_completion_request, handle) == 12 );
1886 C_ASSERT( FIELD_OFFSET(struct query_completion_reply, depth) == 8 );
1887 C_ASSERT( sizeof(struct query_completion_reply) == 16 );
1888 C_ASSERT( FIELD_OFFSET(struct set_completion_info_request, handle) == 12 );
1889 C_ASSERT( FIELD_OFFSET(struct set_completion_info_request, ckey) == 16 );
1890 C_ASSERT( FIELD_OFFSET(struct set_completion_info_request, chandle) == 24 );
1891 C_ASSERT( sizeof(struct set_completion_info_request) == 32 );
1892 C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, handle) == 12 );
1893 C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, cvalue) == 16 );
1894 C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, status) == 24 );
1895 C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, information) == 28 );
1896 C_ASSERT( sizeof(struct add_fd_completion_request) == 32 );
1897 C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_request, handle) == 12 );
1898 C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_reply, color_key) == 8 );
1899 C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_reply, alpha) == 12 );
1900 C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_reply, flags) == 16 );
1901 C_ASSERT( sizeof(struct get_window_layered_info_reply) == 24 );
1902 C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, handle) == 12 );
1903 C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, color_key) == 16 );
1904 C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, alpha) == 20 );
1905 C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, flags) == 24 );
1906 C_ASSERT( sizeof(struct set_window_layered_info_request) == 32 );
1907 C_ASSERT( FIELD_OFFSET(struct alloc_user_handle_reply, handle) == 8 );
1908 C_ASSERT( sizeof(struct alloc_user_handle_reply) == 16 );
1909 C_ASSERT( FIELD_OFFSET(struct free_user_handle_request, handle) == 12 );
1910 C_ASSERT( sizeof(struct free_user_handle_request) == 16 );
1912 #endif /* WANT_REQUEST_HANDLERS */
1914 /* ### make_requests end ### */
1915 /* Everything above this line is generated automatically by tools/make_requests */
1917 #endif /* __WINE_SERVER_REQUEST_H */