request.h 149 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631
  1. /*
  2. * Wine server requests
  3. *
  4. * Copyright (C) 1999 Alexandre Julliard
  5. *
  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.
  10. *
  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.
  15. *
  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
  19. */
  20. #ifndef __WINE_SERVER_REQUEST_H
  21. #define __WINE_SERVER_REQUEST_H
  22. #include <assert.h>
  23. #include "thread.h"
  24. #include "wine/server_protocol.h"
  25. /* max request length */
  26. #define MAX_REQUEST_LENGTH 8192
  27. /* request handler definition */
  28. #define DECL_HANDLER(name) \
  29. void req_##name( const struct name##_request *req, struct name##_reply *reply )
  30. /* request functions */
  31. #ifdef __GNUC__
  32. extern void fatal_protocol_error( struct thread *thread,
  33. const char *err, ... ) __attribute__((format (printf,2,3)));
  34. extern void fatal_error( const char *err, ... ) __attribute__((noreturn,format(printf,1,2)));
  35. #else
  36. extern void fatal_protocol_error( struct thread *thread, const char *err, ... );
  37. extern void fatal_error( const char *err, ... );
  38. #endif
  39. extern const char *get_config_dir(void);
  40. extern void *set_reply_data_size( data_size_t size );
  41. extern const struct object_attributes *get_req_object_attributes( const struct security_descriptor **sd,
  42. struct unicode_str *name,
  43. struct object **root );
  44. extern const void *get_req_data_after_objattr( const struct object_attributes *attr, data_size_t *len );
  45. extern int receive_fd( struct process *process );
  46. extern int send_client_fd( struct process *process, int fd, obj_handle_t handle );
  47. extern void read_request( struct thread *thread );
  48. extern void write_reply( struct thread *thread );
  49. extern unsigned int get_tick_count(void);
  50. extern void open_master_socket(void);
  51. extern void close_master_socket( timeout_t timeout );
  52. extern void shutdown_master_socket(void);
  53. extern int wait_for_lock(void);
  54. extern int kill_lock_owner( int sig );
  55. extern char *server_dir;
  56. extern int server_dir_fd, config_dir_fd;
  57. extern void trace_request(void);
  58. extern void trace_reply( enum request req, const union generic_reply *reply );
  59. /* get the request vararg data */
  60. static inline const void *get_req_data(void)
  61. {
  62. return current->req_data;
  63. }
  64. /* get the request vararg size */
  65. static inline data_size_t get_req_data_size(void)
  66. {
  67. return current->req.request_header.request_size;
  68. }
  69. /* get the request vararg as unicode string */
  70. static inline struct unicode_str get_req_unicode_str(void)
  71. {
  72. struct unicode_str ret;
  73. ret.str = get_req_data();
  74. ret.len = (get_req_data_size() / sizeof(WCHAR)) * sizeof(WCHAR);
  75. return ret;
  76. }
  77. /* get the reply maximum vararg size */
  78. static inline data_size_t get_reply_max_size(void)
  79. {
  80. return current->req.request_header.reply_size;
  81. }
  82. /* allocate and fill the reply data */
  83. static inline void *set_reply_data( const void *data, data_size_t size )
  84. {
  85. void *ret = set_reply_data_size( size );
  86. if (ret) memcpy( ret, data, size );
  87. return ret;
  88. }
  89. /* set the reply data pointer directly (will be freed by request code) */
  90. static inline void set_reply_data_ptr( void *data, data_size_t size )
  91. {
  92. assert( size <= get_reply_max_size() );
  93. current->reply_size = size;
  94. current->reply_data = data;
  95. }
  96. /* Everything below this line is generated automatically by tools/make_requests */
  97. /* ### make_requests begin ### */
  98. DECL_HANDLER(new_process);
  99. DECL_HANDLER(exec_process);
  100. DECL_HANDLER(get_new_process_info);
  101. DECL_HANDLER(wait_proc_init);
  102. DECL_HANDLER(wait_thread_init);
  103. DECL_HANDLER(new_thread);
  104. DECL_HANDLER(get_startup_info);
  105. DECL_HANDLER(init_process_done);
  106. DECL_HANDLER(init_thread);
  107. DECL_HANDLER(terminate_process);
  108. DECL_HANDLER(terminate_thread);
  109. DECL_HANDLER(get_process_info);
  110. DECL_HANDLER(get_process_vm_counters);
  111. DECL_HANDLER(set_process_info);
  112. DECL_HANDLER(get_thread_info);
  113. DECL_HANDLER(get_thread_times);
  114. DECL_HANDLER(set_thread_info);
  115. DECL_HANDLER(get_dll_info);
  116. DECL_HANDLER(suspend_thread);
  117. DECL_HANDLER(resume_thread);
  118. DECL_HANDLER(load_dll);
  119. DECL_HANDLER(unload_dll);
  120. DECL_HANDLER(queue_apc);
  121. DECL_HANDLER(finalize_apc);
  122. DECL_HANDLER(get_apc_result);
  123. DECL_HANDLER(open_handle);
  124. DECL_HANDLER(close_handle);
  125. DECL_HANDLER(socket_cleanup);
  126. DECL_HANDLER(set_handle_info);
  127. DECL_HANDLER(dup_handle);
  128. DECL_HANDLER(open_process);
  129. DECL_HANDLER(open_thread);
  130. DECL_HANDLER(select);
  131. DECL_HANDLER(create_event);
  132. DECL_HANDLER(event_op);
  133. DECL_HANDLER(query_event);
  134. DECL_HANDLER(open_event);
  135. DECL_HANDLER(create_keyed_event);
  136. DECL_HANDLER(open_keyed_event);
  137. DECL_HANDLER(create_mutex);
  138. DECL_HANDLER(release_mutex);
  139. DECL_HANDLER(open_mutex);
  140. DECL_HANDLER(query_mutex);
  141. DECL_HANDLER(create_semaphore);
  142. DECL_HANDLER(release_semaphore);
  143. DECL_HANDLER(query_semaphore);
  144. DECL_HANDLER(open_semaphore);
  145. DECL_HANDLER(create_file);
  146. DECL_HANDLER(open_file_object);
  147. DECL_HANDLER(alloc_file_handle);
  148. DECL_HANDLER(get_handle_unix_name);
  149. DECL_HANDLER(get_handle_fd);
  150. DECL_HANDLER(get_directory_cache_entry);
  151. DECL_HANDLER(get_shared_memory);
  152. DECL_HANDLER(flush);
  153. DECL_HANDLER(get_file_info);
  154. DECL_HANDLER(get_volume_info);
  155. DECL_HANDLER(lock_file);
  156. DECL_HANDLER(unlock_file);
  157. DECL_HANDLER(create_socket);
  158. DECL_HANDLER(accept_socket);
  159. DECL_HANDLER(accept_into_socket);
  160. DECL_HANDLER(reuse_socket);
  161. DECL_HANDLER(set_socket_event);
  162. DECL_HANDLER(get_socket_event);
  163. DECL_HANDLER(get_socket_info);
  164. DECL_HANDLER(enable_socket_event);
  165. DECL_HANDLER(set_socket_deferred);
  166. DECL_HANDLER(alloc_console);
  167. DECL_HANDLER(free_console);
  168. DECL_HANDLER(get_console_renderer_events);
  169. DECL_HANDLER(open_console);
  170. DECL_HANDLER(attach_console);
  171. DECL_HANDLER(get_console_wait_event);
  172. DECL_HANDLER(get_console_mode);
  173. DECL_HANDLER(set_console_mode);
  174. DECL_HANDLER(set_console_input_info);
  175. DECL_HANDLER(get_console_input_info);
  176. DECL_HANDLER(append_console_input_history);
  177. DECL_HANDLER(get_console_input_history);
  178. DECL_HANDLER(create_console_output);
  179. DECL_HANDLER(set_console_output_info);
  180. DECL_HANDLER(get_console_output_info);
  181. DECL_HANDLER(write_console_input);
  182. DECL_HANDLER(read_console_input);
  183. DECL_HANDLER(write_console_output);
  184. DECL_HANDLER(fill_console_output);
  185. DECL_HANDLER(read_console_output);
  186. DECL_HANDLER(move_console_output);
  187. DECL_HANDLER(send_console_signal);
  188. DECL_HANDLER(read_directory_changes);
  189. DECL_HANDLER(read_change);
  190. DECL_HANDLER(create_mapping);
  191. DECL_HANDLER(open_mapping);
  192. DECL_HANDLER(get_mapping_info);
  193. DECL_HANDLER(map_view);
  194. DECL_HANDLER(unmap_view);
  195. DECL_HANDLER(get_mapping_file);
  196. DECL_HANDLER(get_mapping_committed_range);
  197. DECL_HANDLER(add_mapping_committed_range);
  198. DECL_HANDLER(is_same_mapping);
  199. DECL_HANDLER(create_snapshot);
  200. DECL_HANDLER(next_process);
  201. DECL_HANDLER(next_thread);
  202. DECL_HANDLER(wait_debug_event);
  203. DECL_HANDLER(queue_exception_event);
  204. DECL_HANDLER(get_exception_status);
  205. DECL_HANDLER(continue_debug_event);
  206. DECL_HANDLER(debug_process);
  207. DECL_HANDLER(set_debugger_kill_on_exit);
  208. DECL_HANDLER(read_process_memory);
  209. DECL_HANDLER(write_process_memory);
  210. DECL_HANDLER(create_key);
  211. DECL_HANDLER(open_key);
  212. DECL_HANDLER(delete_key);
  213. DECL_HANDLER(flush_key);
  214. DECL_HANDLER(enum_key);
  215. DECL_HANDLER(set_key_value);
  216. DECL_HANDLER(get_key_value);
  217. DECL_HANDLER(enum_key_value);
  218. DECL_HANDLER(delete_key_value);
  219. DECL_HANDLER(load_registry);
  220. DECL_HANDLER(unload_registry);
  221. DECL_HANDLER(save_registry);
  222. DECL_HANDLER(set_registry_notification);
  223. DECL_HANDLER(create_timer);
  224. DECL_HANDLER(open_timer);
  225. DECL_HANDLER(set_timer);
  226. DECL_HANDLER(cancel_timer);
  227. DECL_HANDLER(get_timer_info);
  228. DECL_HANDLER(get_thread_context);
  229. DECL_HANDLER(set_thread_context);
  230. DECL_HANDLER(get_selector_entry);
  231. DECL_HANDLER(add_atom);
  232. DECL_HANDLER(delete_atom);
  233. DECL_HANDLER(find_atom);
  234. DECL_HANDLER(get_atom_information);
  235. DECL_HANDLER(set_atom_information);
  236. DECL_HANDLER(empty_atom_table);
  237. DECL_HANDLER(init_atom_table);
  238. DECL_HANDLER(get_msg_queue);
  239. DECL_HANDLER(set_queue_fd);
  240. DECL_HANDLER(set_queue_mask);
  241. DECL_HANDLER(get_queue_status);
  242. DECL_HANDLER(get_process_idle_event);
  243. DECL_HANDLER(send_message);
  244. DECL_HANDLER(post_quit_message);
  245. DECL_HANDLER(send_hardware_message);
  246. DECL_HANDLER(get_message);
  247. DECL_HANDLER(reply_message);
  248. DECL_HANDLER(accept_hardware_message);
  249. DECL_HANDLER(get_message_reply);
  250. DECL_HANDLER(set_win_timer);
  251. DECL_HANDLER(kill_win_timer);
  252. DECL_HANDLER(is_window_hung);
  253. DECL_HANDLER(get_serial_info);
  254. DECL_HANDLER(set_serial_info);
  255. DECL_HANDLER(register_async);
  256. DECL_HANDLER(cancel_async);
  257. DECL_HANDLER(get_async_result);
  258. DECL_HANDLER(read);
  259. DECL_HANDLER(write);
  260. DECL_HANDLER(ioctl);
  261. DECL_HANDLER(set_irp_result);
  262. DECL_HANDLER(create_named_pipe);
  263. DECL_HANDLER(set_named_pipe_info);
  264. DECL_HANDLER(create_window);
  265. DECL_HANDLER(destroy_window);
  266. DECL_HANDLER(get_desktop_window);
  267. DECL_HANDLER(set_window_owner);
  268. DECL_HANDLER(get_window_info);
  269. DECL_HANDLER(set_window_info);
  270. DECL_HANDLER(set_parent);
  271. DECL_HANDLER(get_window_parents);
  272. DECL_HANDLER(get_window_children);
  273. DECL_HANDLER(get_window_children_from_point);
  274. DECL_HANDLER(get_window_tree);
  275. DECL_HANDLER(set_window_pos);
  276. DECL_HANDLER(get_window_rectangles);
  277. DECL_HANDLER(get_window_text);
  278. DECL_HANDLER(set_window_text);
  279. DECL_HANDLER(get_windows_offset);
  280. DECL_HANDLER(get_visible_region);
  281. DECL_HANDLER(get_surface_region);
  282. DECL_HANDLER(get_window_region);
  283. DECL_HANDLER(set_window_region);
  284. DECL_HANDLER(set_layer_region);
  285. DECL_HANDLER(get_update_region);
  286. DECL_HANDLER(update_window_zorder);
  287. DECL_HANDLER(redraw_window);
  288. DECL_HANDLER(set_window_property);
  289. DECL_HANDLER(remove_window_property);
  290. DECL_HANDLER(get_window_property);
  291. DECL_HANDLER(get_window_properties);
  292. DECL_HANDLER(create_winstation);
  293. DECL_HANDLER(open_winstation);
  294. DECL_HANDLER(close_winstation);
  295. DECL_HANDLER(get_process_winstation);
  296. DECL_HANDLER(set_process_winstation);
  297. DECL_HANDLER(enum_winstation);
  298. DECL_HANDLER(create_desktop);
  299. DECL_HANDLER(open_desktop);
  300. DECL_HANDLER(open_input_desktop);
  301. DECL_HANDLER(close_desktop);
  302. DECL_HANDLER(get_thread_desktop);
  303. DECL_HANDLER(set_thread_desktop);
  304. DECL_HANDLER(enum_desktop);
  305. DECL_HANDLER(set_user_object_info);
  306. DECL_HANDLER(register_hotkey);
  307. DECL_HANDLER(unregister_hotkey);
  308. DECL_HANDLER(attach_thread_input);
  309. DECL_HANDLER(get_thread_input);
  310. DECL_HANDLER(get_last_input_time);
  311. DECL_HANDLER(get_key_state);
  312. DECL_HANDLER(set_key_state);
  313. DECL_HANDLER(set_foreground_window);
  314. DECL_HANDLER(set_focus_window);
  315. DECL_HANDLER(set_active_window);
  316. DECL_HANDLER(set_capture_window);
  317. DECL_HANDLER(set_caret_window);
  318. DECL_HANDLER(set_caret_info);
  319. DECL_HANDLER(set_hook);
  320. DECL_HANDLER(remove_hook);
  321. DECL_HANDLER(start_hook_chain);
  322. DECL_HANDLER(finish_hook_chain);
  323. DECL_HANDLER(get_hook_info);
  324. DECL_HANDLER(create_class);
  325. DECL_HANDLER(destroy_class);
  326. DECL_HANDLER(set_class_info);
  327. DECL_HANDLER(open_clipboard);
  328. DECL_HANDLER(close_clipboard);
  329. DECL_HANDLER(empty_clipboard);
  330. DECL_HANDLER(set_clipboard_data);
  331. DECL_HANDLER(get_clipboard_data);
  332. DECL_HANDLER(get_clipboard_formats);
  333. DECL_HANDLER(enum_clipboard_formats);
  334. DECL_HANDLER(release_clipboard);
  335. DECL_HANDLER(get_clipboard_info);
  336. DECL_HANDLER(set_clipboard_viewer);
  337. DECL_HANDLER(add_clipboard_listener);
  338. DECL_HANDLER(remove_clipboard_listener);
  339. DECL_HANDLER(open_token);
  340. DECL_HANDLER(set_global_windows);
  341. DECL_HANDLER(adjust_token_privileges);
  342. DECL_HANDLER(get_token_privileges);
  343. DECL_HANDLER(check_token_privileges);
  344. DECL_HANDLER(duplicate_token);
  345. DECL_HANDLER(filter_token);
  346. DECL_HANDLER(access_check);
  347. DECL_HANDLER(get_token_sid);
  348. DECL_HANDLER(get_token_integrity);
  349. DECL_HANDLER(get_token_groups);
  350. DECL_HANDLER(get_token_default_dacl);
  351. DECL_HANDLER(set_token_default_dacl);
  352. DECL_HANDLER(set_security_object);
  353. DECL_HANDLER(get_security_object);
  354. DECL_HANDLER(get_system_handles);
  355. DECL_HANDLER(create_mailslot);
  356. DECL_HANDLER(set_mailslot_info);
  357. DECL_HANDLER(create_directory);
  358. DECL_HANDLER(open_directory);
  359. DECL_HANDLER(get_directory_entry);
  360. DECL_HANDLER(create_symlink);
  361. DECL_HANDLER(open_symlink);
  362. DECL_HANDLER(query_symlink);
  363. DECL_HANDLER(get_object_info);
  364. DECL_HANDLER(get_object_type);
  365. DECL_HANDLER(get_object_type_by_index);
  366. DECL_HANDLER(unlink_object);
  367. DECL_HANDLER(get_token_impersonation_level);
  368. DECL_HANDLER(allocate_locally_unique_id);
  369. DECL_HANDLER(create_device_manager);
  370. DECL_HANDLER(create_device);
  371. DECL_HANDLER(delete_device);
  372. DECL_HANDLER(get_next_device_request);
  373. DECL_HANDLER(get_kernel_object_ptr);
  374. DECL_HANDLER(set_kernel_object_ptr);
  375. DECL_HANDLER(grab_kernel_object);
  376. DECL_HANDLER(release_kernel_object);
  377. DECL_HANDLER(get_kernel_object_handle);
  378. DECL_HANDLER(callback_subscribe);
  379. DECL_HANDLER(get_next_callback_event);
  380. DECL_HANDLER(attach_process);
  381. DECL_HANDLER(make_process_system);
  382. DECL_HANDLER(get_token_statistics);
  383. DECL_HANDLER(get_token_elevation_type);
  384. DECL_HANDLER(create_token);
  385. DECL_HANDLER(replace_process_token);
  386. DECL_HANDLER(create_completion);
  387. DECL_HANDLER(open_completion);
  388. DECL_HANDLER(add_completion);
  389. DECL_HANDLER(remove_completion);
  390. DECL_HANDLER(query_completion);
  391. DECL_HANDLER(set_completion_info);
  392. DECL_HANDLER(add_fd_completion);
  393. DECL_HANDLER(set_fd_completion_mode);
  394. DECL_HANDLER(set_fd_disp_info);
  395. DECL_HANDLER(set_fd_name_info);
  396. DECL_HANDLER(set_fd_eof_info);
  397. DECL_HANDLER(get_window_layered_info);
  398. DECL_HANDLER(set_window_layered_info);
  399. DECL_HANDLER(alloc_user_handle);
  400. DECL_HANDLER(free_user_handle);
  401. DECL_HANDLER(set_cursor);
  402. DECL_HANDLER(update_rawinput_devices);
  403. DECL_HANDLER(get_rawinput_devices);
  404. DECL_HANDLER(get_suspend_context);
  405. DECL_HANDLER(set_suspend_context);
  406. DECL_HANDLER(create_job);
  407. DECL_HANDLER(open_job);
  408. DECL_HANDLER(assign_job);
  409. DECL_HANDLER(process_in_job);
  410. DECL_HANDLER(set_job_limits);
  411. DECL_HANDLER(set_job_completion_port);
  412. DECL_HANDLER(terminate_job);
  413. DECL_HANDLER(suspend_process);
  414. DECL_HANDLER(resume_process);
  415. DECL_HANDLER(get_system_info);
  416. DECL_HANDLER(create_esync);
  417. DECL_HANDLER(open_esync);
  418. DECL_HANDLER(get_esync_fd);
  419. DECL_HANDLER(get_esync_apc_fd);
  420. DECL_HANDLER(esync_msgwait);
  421. #ifdef WANT_REQUEST_HANDLERS
  422. typedef void (*req_handler)( const void *req, void *reply );
  423. static const req_handler req_handlers[REQ_NB_REQUESTS] =
  424. {
  425. (req_handler)req_new_process,
  426. (req_handler)req_exec_process,
  427. (req_handler)req_get_new_process_info,
  428. (req_handler)req_wait_proc_init,
  429. (req_handler)req_wait_thread_init,
  430. (req_handler)req_new_thread,
  431. (req_handler)req_get_startup_info,
  432. (req_handler)req_init_process_done,
  433. (req_handler)req_init_thread,
  434. (req_handler)req_terminate_process,
  435. (req_handler)req_terminate_thread,
  436. (req_handler)req_get_process_info,
  437. (req_handler)req_get_process_vm_counters,
  438. (req_handler)req_set_process_info,
  439. (req_handler)req_get_thread_info,
  440. (req_handler)req_get_thread_times,
  441. (req_handler)req_set_thread_info,
  442. (req_handler)req_get_dll_info,
  443. (req_handler)req_suspend_thread,
  444. (req_handler)req_resume_thread,
  445. (req_handler)req_load_dll,
  446. (req_handler)req_unload_dll,
  447. (req_handler)req_queue_apc,
  448. (req_handler)req_finalize_apc,
  449. (req_handler)req_get_apc_result,
  450. (req_handler)req_open_handle,
  451. (req_handler)req_close_handle,
  452. (req_handler)req_socket_cleanup,
  453. (req_handler)req_set_handle_info,
  454. (req_handler)req_dup_handle,
  455. (req_handler)req_open_process,
  456. (req_handler)req_open_thread,
  457. (req_handler)req_select,
  458. (req_handler)req_create_event,
  459. (req_handler)req_event_op,
  460. (req_handler)req_query_event,
  461. (req_handler)req_open_event,
  462. (req_handler)req_create_keyed_event,
  463. (req_handler)req_open_keyed_event,
  464. (req_handler)req_create_mutex,
  465. (req_handler)req_release_mutex,
  466. (req_handler)req_open_mutex,
  467. (req_handler)req_query_mutex,
  468. (req_handler)req_create_semaphore,
  469. (req_handler)req_release_semaphore,
  470. (req_handler)req_query_semaphore,
  471. (req_handler)req_open_semaphore,
  472. (req_handler)req_create_file,
  473. (req_handler)req_open_file_object,
  474. (req_handler)req_alloc_file_handle,
  475. (req_handler)req_get_handle_unix_name,
  476. (req_handler)req_get_handle_fd,
  477. (req_handler)req_get_directory_cache_entry,
  478. (req_handler)req_get_shared_memory,
  479. (req_handler)req_flush,
  480. (req_handler)req_get_file_info,
  481. (req_handler)req_get_volume_info,
  482. (req_handler)req_lock_file,
  483. (req_handler)req_unlock_file,
  484. (req_handler)req_create_socket,
  485. (req_handler)req_accept_socket,
  486. (req_handler)req_accept_into_socket,
  487. (req_handler)req_reuse_socket,
  488. (req_handler)req_set_socket_event,
  489. (req_handler)req_get_socket_event,
  490. (req_handler)req_get_socket_info,
  491. (req_handler)req_enable_socket_event,
  492. (req_handler)req_set_socket_deferred,
  493. (req_handler)req_alloc_console,
  494. (req_handler)req_free_console,
  495. (req_handler)req_get_console_renderer_events,
  496. (req_handler)req_open_console,
  497. (req_handler)req_attach_console,
  498. (req_handler)req_get_console_wait_event,
  499. (req_handler)req_get_console_mode,
  500. (req_handler)req_set_console_mode,
  501. (req_handler)req_set_console_input_info,
  502. (req_handler)req_get_console_input_info,
  503. (req_handler)req_append_console_input_history,
  504. (req_handler)req_get_console_input_history,
  505. (req_handler)req_create_console_output,
  506. (req_handler)req_set_console_output_info,
  507. (req_handler)req_get_console_output_info,
  508. (req_handler)req_write_console_input,
  509. (req_handler)req_read_console_input,
  510. (req_handler)req_write_console_output,
  511. (req_handler)req_fill_console_output,
  512. (req_handler)req_read_console_output,
  513. (req_handler)req_move_console_output,
  514. (req_handler)req_send_console_signal,
  515. (req_handler)req_read_directory_changes,
  516. (req_handler)req_read_change,
  517. (req_handler)req_create_mapping,
  518. (req_handler)req_open_mapping,
  519. (req_handler)req_get_mapping_info,
  520. (req_handler)req_map_view,
  521. (req_handler)req_unmap_view,
  522. (req_handler)req_get_mapping_file,
  523. (req_handler)req_get_mapping_committed_range,
  524. (req_handler)req_add_mapping_committed_range,
  525. (req_handler)req_is_same_mapping,
  526. (req_handler)req_create_snapshot,
  527. (req_handler)req_next_process,
  528. (req_handler)req_next_thread,
  529. (req_handler)req_wait_debug_event,
  530. (req_handler)req_queue_exception_event,
  531. (req_handler)req_get_exception_status,
  532. (req_handler)req_continue_debug_event,
  533. (req_handler)req_debug_process,
  534. (req_handler)req_set_debugger_kill_on_exit,
  535. (req_handler)req_read_process_memory,
  536. (req_handler)req_write_process_memory,
  537. (req_handler)req_create_key,
  538. (req_handler)req_open_key,
  539. (req_handler)req_delete_key,
  540. (req_handler)req_flush_key,
  541. (req_handler)req_enum_key,
  542. (req_handler)req_set_key_value,
  543. (req_handler)req_get_key_value,
  544. (req_handler)req_enum_key_value,
  545. (req_handler)req_delete_key_value,
  546. (req_handler)req_load_registry,
  547. (req_handler)req_unload_registry,
  548. (req_handler)req_save_registry,
  549. (req_handler)req_set_registry_notification,
  550. (req_handler)req_create_timer,
  551. (req_handler)req_open_timer,
  552. (req_handler)req_set_timer,
  553. (req_handler)req_cancel_timer,
  554. (req_handler)req_get_timer_info,
  555. (req_handler)req_get_thread_context,
  556. (req_handler)req_set_thread_context,
  557. (req_handler)req_get_selector_entry,
  558. (req_handler)req_add_atom,
  559. (req_handler)req_delete_atom,
  560. (req_handler)req_find_atom,
  561. (req_handler)req_get_atom_information,
  562. (req_handler)req_set_atom_information,
  563. (req_handler)req_empty_atom_table,
  564. (req_handler)req_init_atom_table,
  565. (req_handler)req_get_msg_queue,
  566. (req_handler)req_set_queue_fd,
  567. (req_handler)req_set_queue_mask,
  568. (req_handler)req_get_queue_status,
  569. (req_handler)req_get_process_idle_event,
  570. (req_handler)req_send_message,
  571. (req_handler)req_post_quit_message,
  572. (req_handler)req_send_hardware_message,
  573. (req_handler)req_get_message,
  574. (req_handler)req_reply_message,
  575. (req_handler)req_accept_hardware_message,
  576. (req_handler)req_get_message_reply,
  577. (req_handler)req_set_win_timer,
  578. (req_handler)req_kill_win_timer,
  579. (req_handler)req_is_window_hung,
  580. (req_handler)req_get_serial_info,
  581. (req_handler)req_set_serial_info,
  582. (req_handler)req_register_async,
  583. (req_handler)req_cancel_async,
  584. (req_handler)req_get_async_result,
  585. (req_handler)req_read,
  586. (req_handler)req_write,
  587. (req_handler)req_ioctl,
  588. (req_handler)req_set_irp_result,
  589. (req_handler)req_create_named_pipe,
  590. (req_handler)req_set_named_pipe_info,
  591. (req_handler)req_create_window,
  592. (req_handler)req_destroy_window,
  593. (req_handler)req_get_desktop_window,
  594. (req_handler)req_set_window_owner,
  595. (req_handler)req_get_window_info,
  596. (req_handler)req_set_window_info,
  597. (req_handler)req_set_parent,
  598. (req_handler)req_get_window_parents,
  599. (req_handler)req_get_window_children,
  600. (req_handler)req_get_window_children_from_point,
  601. (req_handler)req_get_window_tree,
  602. (req_handler)req_set_window_pos,
  603. (req_handler)req_get_window_rectangles,
  604. (req_handler)req_get_window_text,
  605. (req_handler)req_set_window_text,
  606. (req_handler)req_get_windows_offset,
  607. (req_handler)req_get_visible_region,
  608. (req_handler)req_get_surface_region,
  609. (req_handler)req_get_window_region,
  610. (req_handler)req_set_window_region,
  611. (req_handler)req_set_layer_region,
  612. (req_handler)req_get_update_region,
  613. (req_handler)req_update_window_zorder,
  614. (req_handler)req_redraw_window,
  615. (req_handler)req_set_window_property,
  616. (req_handler)req_remove_window_property,
  617. (req_handler)req_get_window_property,
  618. (req_handler)req_get_window_properties,
  619. (req_handler)req_create_winstation,
  620. (req_handler)req_open_winstation,
  621. (req_handler)req_close_winstation,
  622. (req_handler)req_get_process_winstation,
  623. (req_handler)req_set_process_winstation,
  624. (req_handler)req_enum_winstation,
  625. (req_handler)req_create_desktop,
  626. (req_handler)req_open_desktop,
  627. (req_handler)req_open_input_desktop,
  628. (req_handler)req_close_desktop,
  629. (req_handler)req_get_thread_desktop,
  630. (req_handler)req_set_thread_desktop,
  631. (req_handler)req_enum_desktop,
  632. (req_handler)req_set_user_object_info,
  633. (req_handler)req_register_hotkey,
  634. (req_handler)req_unregister_hotkey,
  635. (req_handler)req_attach_thread_input,
  636. (req_handler)req_get_thread_input,
  637. (req_handler)req_get_last_input_time,
  638. (req_handler)req_get_key_state,
  639. (req_handler)req_set_key_state,
  640. (req_handler)req_set_foreground_window,
  641. (req_handler)req_set_focus_window,
  642. (req_handler)req_set_active_window,
  643. (req_handler)req_set_capture_window,
  644. (req_handler)req_set_caret_window,
  645. (req_handler)req_set_caret_info,
  646. (req_handler)req_set_hook,
  647. (req_handler)req_remove_hook,
  648. (req_handler)req_start_hook_chain,
  649. (req_handler)req_finish_hook_chain,
  650. (req_handler)req_get_hook_info,
  651. (req_handler)req_create_class,
  652. (req_handler)req_destroy_class,
  653. (req_handler)req_set_class_info,
  654. (req_handler)req_open_clipboard,
  655. (req_handler)req_close_clipboard,
  656. (req_handler)req_empty_clipboard,
  657. (req_handler)req_set_clipboard_data,
  658. (req_handler)req_get_clipboard_data,
  659. (req_handler)req_get_clipboard_formats,
  660. (req_handler)req_enum_clipboard_formats,
  661. (req_handler)req_release_clipboard,
  662. (req_handler)req_get_clipboard_info,
  663. (req_handler)req_set_clipboard_viewer,
  664. (req_handler)req_add_clipboard_listener,
  665. (req_handler)req_remove_clipboard_listener,
  666. (req_handler)req_open_token,
  667. (req_handler)req_set_global_windows,
  668. (req_handler)req_adjust_token_privileges,
  669. (req_handler)req_get_token_privileges,
  670. (req_handler)req_check_token_privileges,
  671. (req_handler)req_duplicate_token,
  672. (req_handler)req_filter_token,
  673. (req_handler)req_access_check,
  674. (req_handler)req_get_token_sid,
  675. (req_handler)req_get_token_integrity,
  676. (req_handler)req_get_token_groups,
  677. (req_handler)req_get_token_default_dacl,
  678. (req_handler)req_set_token_default_dacl,
  679. (req_handler)req_set_security_object,
  680. (req_handler)req_get_security_object,
  681. (req_handler)req_get_system_handles,
  682. (req_handler)req_create_mailslot,
  683. (req_handler)req_set_mailslot_info,
  684. (req_handler)req_create_directory,
  685. (req_handler)req_open_directory,
  686. (req_handler)req_get_directory_entry,
  687. (req_handler)req_create_symlink,
  688. (req_handler)req_open_symlink,
  689. (req_handler)req_query_symlink,
  690. (req_handler)req_get_object_info,
  691. (req_handler)req_get_object_type,
  692. (req_handler)req_get_object_type_by_index,
  693. (req_handler)req_unlink_object,
  694. (req_handler)req_get_token_impersonation_level,
  695. (req_handler)req_allocate_locally_unique_id,
  696. (req_handler)req_create_device_manager,
  697. (req_handler)req_create_device,
  698. (req_handler)req_delete_device,
  699. (req_handler)req_get_next_device_request,
  700. (req_handler)req_get_kernel_object_ptr,
  701. (req_handler)req_set_kernel_object_ptr,
  702. (req_handler)req_grab_kernel_object,
  703. (req_handler)req_release_kernel_object,
  704. (req_handler)req_get_kernel_object_handle,
  705. (req_handler)req_callback_subscribe,
  706. (req_handler)req_get_next_callback_event,
  707. (req_handler)req_attach_process,
  708. (req_handler)req_make_process_system,
  709. (req_handler)req_get_token_statistics,
  710. (req_handler)req_get_token_elevation_type,
  711. (req_handler)req_create_token,
  712. (req_handler)req_replace_process_token,
  713. (req_handler)req_create_completion,
  714. (req_handler)req_open_completion,
  715. (req_handler)req_add_completion,
  716. (req_handler)req_remove_completion,
  717. (req_handler)req_query_completion,
  718. (req_handler)req_set_completion_info,
  719. (req_handler)req_add_fd_completion,
  720. (req_handler)req_set_fd_completion_mode,
  721. (req_handler)req_set_fd_disp_info,
  722. (req_handler)req_set_fd_name_info,
  723. (req_handler)req_set_fd_eof_info,
  724. (req_handler)req_get_window_layered_info,
  725. (req_handler)req_set_window_layered_info,
  726. (req_handler)req_alloc_user_handle,
  727. (req_handler)req_free_user_handle,
  728. (req_handler)req_set_cursor,
  729. (req_handler)req_update_rawinput_devices,
  730. (req_handler)req_get_rawinput_devices,
  731. (req_handler)req_get_suspend_context,
  732. (req_handler)req_set_suspend_context,
  733. (req_handler)req_create_job,
  734. (req_handler)req_open_job,
  735. (req_handler)req_assign_job,
  736. (req_handler)req_process_in_job,
  737. (req_handler)req_set_job_limits,
  738. (req_handler)req_set_job_completion_port,
  739. (req_handler)req_terminate_job,
  740. (req_handler)req_suspend_process,
  741. (req_handler)req_resume_process,
  742. (req_handler)req_get_system_info,
  743. (req_handler)req_create_esync,
  744. (req_handler)req_open_esync,
  745. (req_handler)req_get_esync_fd,
  746. (req_handler)req_get_esync_apc_fd,
  747. (req_handler)req_esync_msgwait,
  748. };
  749. C_ASSERT( sizeof(affinity_t) == 8 );
  750. C_ASSERT( sizeof(apc_call_t) == 40 );
  751. C_ASSERT( sizeof(apc_param_t) == 8 );
  752. C_ASSERT( sizeof(apc_result_t) == 40 );
  753. C_ASSERT( sizeof(async_data_t) == 40 );
  754. C_ASSERT( sizeof(atom_t) == 4 );
  755. C_ASSERT( sizeof(char) == 1 );
  756. C_ASSERT( sizeof(char_info_t) == 4 );
  757. C_ASSERT( sizeof(client_cpu_t) == 4 );
  758. C_ASSERT( sizeof(client_ptr_t) == 8 );
  759. C_ASSERT( sizeof(data_size_t) == 4 );
  760. C_ASSERT( sizeof(file_pos_t) == 8 );
  761. C_ASSERT( sizeof(hw_input_t) == 32 );
  762. C_ASSERT( sizeof(int) == 4 );
  763. C_ASSERT( sizeof(ioctl_code_t) == 4 );
  764. C_ASSERT( sizeof(irp_params_t) == 40 );
  765. C_ASSERT( sizeof(krnl_cbdata_t) == 32 );
  766. C_ASSERT( sizeof(lparam_t) == 8 );
  767. C_ASSERT( sizeof(luid_t) == 8 );
  768. C_ASSERT( sizeof(mem_size_t) == 8 );
  769. C_ASSERT( sizeof(mod_handle_t) == 8 );
  770. C_ASSERT( sizeof(obj_handle_t) == 4 );
  771. C_ASSERT( sizeof(process_id_t) == 4 );
  772. C_ASSERT( sizeof(rectangle_t) == 16 );
  773. C_ASSERT( sizeof(short int) == 2 );
  774. C_ASSERT( sizeof(thread_id_t) == 4 );
  775. C_ASSERT( sizeof(timeout_t) == 8 );
  776. C_ASSERT( sizeof(unsigned char) == 1 );
  777. C_ASSERT( sizeof(unsigned int) == 4 );
  778. C_ASSERT( sizeof(unsigned short) == 2 );
  779. C_ASSERT( sizeof(user_handle_t) == 4 );
  780. C_ASSERT( FIELD_OFFSET(struct new_process_request, parent_process) == 12 );
  781. C_ASSERT( FIELD_OFFSET(struct new_process_request, inherit_all) == 16 );
  782. C_ASSERT( FIELD_OFFSET(struct new_process_request, create_flags) == 20 );
  783. C_ASSERT( FIELD_OFFSET(struct new_process_request, socket_fd) == 24 );
  784. C_ASSERT( FIELD_OFFSET(struct new_process_request, exe_file) == 28 );
  785. C_ASSERT( FIELD_OFFSET(struct new_process_request, access) == 32 );
  786. C_ASSERT( FIELD_OFFSET(struct new_process_request, cpu) == 36 );
  787. C_ASSERT( FIELD_OFFSET(struct new_process_request, info_size) == 40 );
  788. C_ASSERT( FIELD_OFFSET(struct new_process_request, token) == 44 );
  789. C_ASSERT( sizeof(struct new_process_request) == 48 );
  790. C_ASSERT( FIELD_OFFSET(struct new_process_reply, info) == 8 );
  791. C_ASSERT( FIELD_OFFSET(struct new_process_reply, pid) == 12 );
  792. C_ASSERT( FIELD_OFFSET(struct new_process_reply, handle) == 16 );
  793. C_ASSERT( sizeof(struct new_process_reply) == 24 );
  794. C_ASSERT( FIELD_OFFSET(struct exec_process_request, socket_fd) == 12 );
  795. C_ASSERT( FIELD_OFFSET(struct exec_process_request, cpu) == 16 );
  796. C_ASSERT( sizeof(struct exec_process_request) == 24 );
  797. C_ASSERT( FIELD_OFFSET(struct get_new_process_info_request, info) == 12 );
  798. C_ASSERT( sizeof(struct get_new_process_info_request) == 16 );
  799. C_ASSERT( FIELD_OFFSET(struct get_new_process_info_reply, success) == 8 );
  800. C_ASSERT( FIELD_OFFSET(struct get_new_process_info_reply, exit_code) == 12 );
  801. C_ASSERT( sizeof(struct get_new_process_info_reply) == 16 );
  802. C_ASSERT( FIELD_OFFSET(struct wait_proc_init_request, process) == 12 );
  803. C_ASSERT( sizeof(struct wait_proc_init_request) == 16 );
  804. C_ASSERT( FIELD_OFFSET(struct wait_proc_init_reply, process_state) == 8 );
  805. C_ASSERT( FIELD_OFFSET(struct wait_proc_init_reply, init_event) == 12 );
  806. C_ASSERT( sizeof(struct wait_proc_init_reply) == 16 );
  807. C_ASSERT( FIELD_OFFSET(struct wait_thread_init_request, thread) == 12 );
  808. C_ASSERT( sizeof(struct wait_thread_init_request) == 16 );
  809. C_ASSERT( FIELD_OFFSET(struct wait_thread_init_reply, thread_state) == 8 );
  810. C_ASSERT( FIELD_OFFSET(struct wait_thread_init_reply, init_event) == 12 );
  811. C_ASSERT( sizeof(struct wait_thread_init_reply) == 16 );
  812. C_ASSERT( FIELD_OFFSET(struct new_thread_request, process) == 12 );
  813. C_ASSERT( FIELD_OFFSET(struct new_thread_request, access) == 16 );
  814. C_ASSERT( FIELD_OFFSET(struct new_thread_request, suspend) == 20 );
  815. C_ASSERT( FIELD_OFFSET(struct new_thread_request, request_fd) == 24 );
  816. C_ASSERT( sizeof(struct new_thread_request) == 32 );
  817. C_ASSERT( FIELD_OFFSET(struct new_thread_reply, tid) == 8 );
  818. C_ASSERT( FIELD_OFFSET(struct new_thread_reply, handle) == 12 );
  819. C_ASSERT( sizeof(struct new_thread_reply) == 16 );
  820. C_ASSERT( sizeof(struct get_startup_info_request) == 16 );
  821. C_ASSERT( FIELD_OFFSET(struct get_startup_info_reply, info_size) == 8 );
  822. C_ASSERT( sizeof(struct get_startup_info_reply) == 16 );
  823. C_ASSERT( FIELD_OFFSET(struct init_process_done_request, gui) == 12 );
  824. C_ASSERT( FIELD_OFFSET(struct init_process_done_request, module) == 16 );
  825. C_ASSERT( FIELD_OFFSET(struct init_process_done_request, ldt_copy) == 24 );
  826. C_ASSERT( FIELD_OFFSET(struct init_process_done_request, entry) == 32 );
  827. C_ASSERT( sizeof(struct init_process_done_request) == 40 );
  828. C_ASSERT( FIELD_OFFSET(struct init_process_done_reply, suspend) == 8 );
  829. C_ASSERT( FIELD_OFFSET(struct init_process_done_reply, processed_event) == 12 );
  830. C_ASSERT( sizeof(struct init_process_done_reply) == 16 );
  831. C_ASSERT( FIELD_OFFSET(struct init_thread_request, unix_pid) == 12 );
  832. C_ASSERT( FIELD_OFFSET(struct init_thread_request, unix_tid) == 16 );
  833. C_ASSERT( FIELD_OFFSET(struct init_thread_request, debug_level) == 20 );
  834. C_ASSERT( FIELD_OFFSET(struct init_thread_request, teb) == 24 );
  835. C_ASSERT( FIELD_OFFSET(struct init_thread_request, entry) == 32 );
  836. C_ASSERT( FIELD_OFFSET(struct init_thread_request, reply_fd) == 40 );
  837. C_ASSERT( FIELD_OFFSET(struct init_thread_request, wait_fd) == 44 );
  838. C_ASSERT( FIELD_OFFSET(struct init_thread_request, cpu) == 48 );
  839. C_ASSERT( sizeof(struct init_thread_request) == 56 );
  840. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, pid) == 8 );
  841. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, tid) == 12 );
  842. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, server_start) == 16 );
  843. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, info_size) == 24 );
  844. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, version) == 28 );
  845. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, all_cpus) == 32 );
  846. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, suspend) == 36 );
  847. C_ASSERT( FIELD_OFFSET(struct init_thread_reply, processed_event) == 40 );
  848. C_ASSERT( sizeof(struct init_thread_reply) == 48 );
  849. C_ASSERT( FIELD_OFFSET(struct terminate_process_request, handle) == 12 );
  850. C_ASSERT( FIELD_OFFSET(struct terminate_process_request, exit_code) == 16 );
  851. C_ASSERT( sizeof(struct terminate_process_request) == 24 );
  852. C_ASSERT( FIELD_OFFSET(struct terminate_process_reply, self) == 8 );
  853. C_ASSERT( sizeof(struct terminate_process_reply) == 16 );
  854. C_ASSERT( FIELD_OFFSET(struct terminate_thread_request, handle) == 12 );
  855. C_ASSERT( FIELD_OFFSET(struct terminate_thread_request, exit_code) == 16 );
  856. C_ASSERT( sizeof(struct terminate_thread_request) == 24 );
  857. C_ASSERT( FIELD_OFFSET(struct terminate_thread_reply, self) == 8 );
  858. C_ASSERT( FIELD_OFFSET(struct terminate_thread_reply, last) == 12 );
  859. C_ASSERT( sizeof(struct terminate_thread_reply) == 16 );
  860. C_ASSERT( FIELD_OFFSET(struct get_process_info_request, handle) == 12 );
  861. C_ASSERT( sizeof(struct get_process_info_request) == 16 );
  862. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, pid) == 8 );
  863. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, ppid) == 12 );
  864. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, affinity) == 16 );
  865. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, peb) == 24 );
  866. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, start_time) == 32 );
  867. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, end_time) == 40 );
  868. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, exit_code) == 48 );
  869. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, priority) == 52 );
  870. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, cpu) == 56 );
  871. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, debugger_present) == 60 );
  872. C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, debug_children) == 62 );
  873. C_ASSERT( sizeof(struct get_process_info_reply) == 64 );
  874. C_ASSERT( FIELD_OFFSET(struct get_process_vm_counters_request, handle) == 12 );
  875. C_ASSERT( sizeof(struct get_process_vm_counters_request) == 16 );
  876. C_ASSERT( FIELD_OFFSET(struct get_process_vm_counters_reply, peak_virtual_size) == 8 );
  877. C_ASSERT( FIELD_OFFSET(struct get_process_vm_counters_reply, virtual_size) == 16 );
  878. C_ASSERT( FIELD_OFFSET(struct get_process_vm_counters_reply, peak_working_set_size) == 24 );
  879. C_ASSERT( FIELD_OFFSET(struct get_process_vm_counters_reply, working_set_size) == 32 );
  880. C_ASSERT( FIELD_OFFSET(struct get_process_vm_counters_reply, pagefile_usage) == 40 );
  881. C_ASSERT( FIELD_OFFSET(struct get_process_vm_counters_reply, peak_pagefile_usage) == 48 );
  882. C_ASSERT( sizeof(struct get_process_vm_counters_reply) == 56 );
  883. C_ASSERT( FIELD_OFFSET(struct set_process_info_request, handle) == 12 );
  884. C_ASSERT( FIELD_OFFSET(struct set_process_info_request, mask) == 16 );
  885. C_ASSERT( FIELD_OFFSET(struct set_process_info_request, priority) == 20 );
  886. C_ASSERT( FIELD_OFFSET(struct set_process_info_request, affinity) == 24 );
  887. C_ASSERT( sizeof(struct set_process_info_request) == 32 );
  888. C_ASSERT( FIELD_OFFSET(struct get_thread_info_request, handle) == 12 );
  889. C_ASSERT( FIELD_OFFSET(struct get_thread_info_request, tid_in) == 16 );
  890. C_ASSERT( sizeof(struct get_thread_info_request) == 24 );
  891. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, pid) == 8 );
  892. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, tid) == 12 );
  893. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, teb) == 16 );
  894. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, entry_point) == 24 );
  895. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, affinity) == 32 );
  896. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, exit_code) == 40 );
  897. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, priority) == 44 );
  898. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, last) == 48 );
  899. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, suspend_count) == 52 );
  900. C_ASSERT( FIELD_OFFSET(struct get_thread_info_reply, desc_len) == 56 );
  901. C_ASSERT( sizeof(struct get_thread_info_reply) == 64 );
  902. C_ASSERT( FIELD_OFFSET(struct get_thread_times_request, handle) == 12 );
  903. C_ASSERT( sizeof(struct get_thread_times_request) == 16 );
  904. C_ASSERT( FIELD_OFFSET(struct get_thread_times_reply, creation_time) == 8 );
  905. C_ASSERT( FIELD_OFFSET(struct get_thread_times_reply, exit_time) == 16 );
  906. C_ASSERT( FIELD_OFFSET(struct get_thread_times_reply, unix_pid) == 24 );
  907. C_ASSERT( FIELD_OFFSET(struct get_thread_times_reply, unix_tid) == 28 );
  908. C_ASSERT( sizeof(struct get_thread_times_reply) == 32 );
  909. C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, handle) == 12 );
  910. C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, mask) == 16 );
  911. C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, priority) == 20 );
  912. C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, affinity) == 24 );
  913. C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, entry_point) == 32 );
  914. C_ASSERT( FIELD_OFFSET(struct set_thread_info_request, token) == 40 );
  915. C_ASSERT( sizeof(struct set_thread_info_request) == 48 );
  916. C_ASSERT( FIELD_OFFSET(struct get_dll_info_request, handle) == 12 );
  917. C_ASSERT( FIELD_OFFSET(struct get_dll_info_request, base_address) == 16 );
  918. C_ASSERT( sizeof(struct get_dll_info_request) == 24 );
  919. C_ASSERT( FIELD_OFFSET(struct get_dll_info_reply, entry_point) == 8 );
  920. C_ASSERT( FIELD_OFFSET(struct get_dll_info_reply, base_address) == 16 );
  921. C_ASSERT( FIELD_OFFSET(struct get_dll_info_reply, filename_len) == 24 );
  922. C_ASSERT( sizeof(struct get_dll_info_reply) == 32 );
  923. C_ASSERT( FIELD_OFFSET(struct suspend_thread_request, handle) == 12 );
  924. C_ASSERT( sizeof(struct suspend_thread_request) == 16 );
  925. C_ASSERT( FIELD_OFFSET(struct suspend_thread_reply, count) == 8 );
  926. C_ASSERT( sizeof(struct suspend_thread_reply) == 16 );
  927. C_ASSERT( FIELD_OFFSET(struct resume_thread_request, handle) == 12 );
  928. C_ASSERT( sizeof(struct resume_thread_request) == 16 );
  929. C_ASSERT( FIELD_OFFSET(struct resume_thread_reply, count) == 8 );
  930. C_ASSERT( sizeof(struct resume_thread_reply) == 16 );
  931. C_ASSERT( FIELD_OFFSET(struct load_dll_request, dbg_offset) == 12 );
  932. C_ASSERT( FIELD_OFFSET(struct load_dll_request, base) == 16 );
  933. C_ASSERT( FIELD_OFFSET(struct load_dll_request, name) == 24 );
  934. C_ASSERT( FIELD_OFFSET(struct load_dll_request, dbg_size) == 32 );
  935. C_ASSERT( sizeof(struct load_dll_request) == 40 );
  936. C_ASSERT( FIELD_OFFSET(struct load_dll_reply, processed_event) == 8 );
  937. C_ASSERT( sizeof(struct load_dll_reply) == 16 );
  938. C_ASSERT( FIELD_OFFSET(struct unload_dll_request, base) == 16 );
  939. C_ASSERT( sizeof(struct unload_dll_request) == 24 );
  940. C_ASSERT( FIELD_OFFSET(struct queue_apc_request, handle) == 12 );
  941. C_ASSERT( FIELD_OFFSET(struct queue_apc_request, call) == 16 );
  942. C_ASSERT( sizeof(struct queue_apc_request) == 56 );
  943. C_ASSERT( FIELD_OFFSET(struct queue_apc_reply, handle) == 8 );
  944. C_ASSERT( FIELD_OFFSET(struct queue_apc_reply, self) == 12 );
  945. C_ASSERT( sizeof(struct queue_apc_reply) == 16 );
  946. C_ASSERT( FIELD_OFFSET(struct finalize_apc_request, handle) == 12 );
  947. C_ASSERT( FIELD_OFFSET(struct finalize_apc_request, call) == 16 );
  948. C_ASSERT( sizeof(struct finalize_apc_request) == 56 );
  949. C_ASSERT( FIELD_OFFSET(struct get_apc_result_request, handle) == 12 );
  950. C_ASSERT( sizeof(struct get_apc_result_request) == 16 );
  951. C_ASSERT( FIELD_OFFSET(struct get_apc_result_reply, result) == 8 );
  952. C_ASSERT( sizeof(struct get_apc_result_reply) == 48 );
  953. C_ASSERT( FIELD_OFFSET(struct open_handle_request, access) == 12 );
  954. C_ASSERT( FIELD_OFFSET(struct open_handle_request, attributes) == 16 );
  955. C_ASSERT( FIELD_OFFSET(struct open_handle_request, rootdir) == 20 );
  956. C_ASSERT( sizeof(struct open_handle_request) == 24 );
  957. C_ASSERT( FIELD_OFFSET(struct open_handle_reply, handle) == 8 );
  958. C_ASSERT( sizeof(struct open_handle_reply) == 16 );
  959. C_ASSERT( FIELD_OFFSET(struct close_handle_request, handle) == 12 );
  960. C_ASSERT( sizeof(struct close_handle_request) == 16 );
  961. C_ASSERT( sizeof(struct socket_cleanup_request) == 16 );
  962. C_ASSERT( FIELD_OFFSET(struct set_handle_info_request, handle) == 12 );
  963. C_ASSERT( FIELD_OFFSET(struct set_handle_info_request, flags) == 16 );
  964. C_ASSERT( FIELD_OFFSET(struct set_handle_info_request, mask) == 20 );
  965. C_ASSERT( sizeof(struct set_handle_info_request) == 24 );
  966. C_ASSERT( FIELD_OFFSET(struct set_handle_info_reply, old_flags) == 8 );
  967. C_ASSERT( sizeof(struct set_handle_info_reply) == 16 );
  968. C_ASSERT( FIELD_OFFSET(struct dup_handle_request, src_process) == 12 );
  969. C_ASSERT( FIELD_OFFSET(struct dup_handle_request, src_handle) == 16 );
  970. C_ASSERT( FIELD_OFFSET(struct dup_handle_request, dst_process) == 20 );
  971. C_ASSERT( FIELD_OFFSET(struct dup_handle_request, access) == 24 );
  972. C_ASSERT( FIELD_OFFSET(struct dup_handle_request, attributes) == 28 );
  973. C_ASSERT( FIELD_OFFSET(struct dup_handle_request, options) == 32 );
  974. C_ASSERT( sizeof(struct dup_handle_request) == 40 );
  975. C_ASSERT( FIELD_OFFSET(struct dup_handle_reply, handle) == 8 );
  976. C_ASSERT( FIELD_OFFSET(struct dup_handle_reply, self) == 12 );
  977. C_ASSERT( FIELD_OFFSET(struct dup_handle_reply, closed) == 16 );
  978. C_ASSERT( sizeof(struct dup_handle_reply) == 24 );
  979. C_ASSERT( FIELD_OFFSET(struct open_process_request, pid) == 12 );
  980. C_ASSERT( FIELD_OFFSET(struct open_process_request, access) == 16 );
  981. C_ASSERT( FIELD_OFFSET(struct open_process_request, attributes) == 20 );
  982. C_ASSERT( sizeof(struct open_process_request) == 24 );
  983. C_ASSERT( FIELD_OFFSET(struct open_process_reply, handle) == 8 );
  984. C_ASSERT( sizeof(struct open_process_reply) == 16 );
  985. C_ASSERT( FIELD_OFFSET(struct open_thread_request, tid) == 12 );
  986. C_ASSERT( FIELD_OFFSET(struct open_thread_request, access) == 16 );
  987. C_ASSERT( FIELD_OFFSET(struct open_thread_request, attributes) == 20 );
  988. C_ASSERT( sizeof(struct open_thread_request) == 24 );
  989. C_ASSERT( FIELD_OFFSET(struct open_thread_reply, handle) == 8 );
  990. C_ASSERT( sizeof(struct open_thread_reply) == 16 );
  991. C_ASSERT( FIELD_OFFSET(struct select_request, flags) == 12 );
  992. C_ASSERT( FIELD_OFFSET(struct select_request, cookie) == 16 );
  993. C_ASSERT( FIELD_OFFSET(struct select_request, timeout) == 24 );
  994. C_ASSERT( FIELD_OFFSET(struct select_request, prev_apc) == 32 );
  995. C_ASSERT( sizeof(struct select_request) == 40 );
  996. C_ASSERT( FIELD_OFFSET(struct select_reply, timeout) == 8 );
  997. C_ASSERT( FIELD_OFFSET(struct select_reply, call) == 16 );
  998. C_ASSERT( FIELD_OFFSET(struct select_reply, apc_handle) == 56 );
  999. C_ASSERT( sizeof(struct select_reply) == 64 );
  1000. C_ASSERT( FIELD_OFFSET(struct create_event_request, access) == 12 );
  1001. C_ASSERT( FIELD_OFFSET(struct create_event_request, manual_reset) == 16 );
  1002. C_ASSERT( FIELD_OFFSET(struct create_event_request, initial_state) == 20 );
  1003. C_ASSERT( sizeof(struct create_event_request) == 24 );
  1004. C_ASSERT( FIELD_OFFSET(struct create_event_reply, handle) == 8 );
  1005. C_ASSERT( sizeof(struct create_event_reply) == 16 );
  1006. C_ASSERT( FIELD_OFFSET(struct event_op_request, handle) == 12 );
  1007. C_ASSERT( FIELD_OFFSET(struct event_op_request, op) == 16 );
  1008. C_ASSERT( sizeof(struct event_op_request) == 24 );
  1009. C_ASSERT( FIELD_OFFSET(struct event_op_reply, state) == 8 );
  1010. C_ASSERT( sizeof(struct event_op_reply) == 16 );
  1011. C_ASSERT( FIELD_OFFSET(struct query_event_request, handle) == 12 );
  1012. C_ASSERT( sizeof(struct query_event_request) == 16 );
  1013. C_ASSERT( FIELD_OFFSET(struct query_event_reply, manual_reset) == 8 );
  1014. C_ASSERT( FIELD_OFFSET(struct query_event_reply, state) == 12 );
  1015. C_ASSERT( sizeof(struct query_event_reply) == 16 );
  1016. C_ASSERT( FIELD_OFFSET(struct open_event_request, access) == 12 );
  1017. C_ASSERT( FIELD_OFFSET(struct open_event_request, attributes) == 16 );
  1018. C_ASSERT( FIELD_OFFSET(struct open_event_request, rootdir) == 20 );
  1019. C_ASSERT( sizeof(struct open_event_request) == 24 );
  1020. C_ASSERT( FIELD_OFFSET(struct open_event_reply, handle) == 8 );
  1021. C_ASSERT( sizeof(struct open_event_reply) == 16 );
  1022. C_ASSERT( FIELD_OFFSET(struct create_keyed_event_request, access) == 12 );
  1023. C_ASSERT( sizeof(struct create_keyed_event_request) == 16 );
  1024. C_ASSERT( FIELD_OFFSET(struct create_keyed_event_reply, handle) == 8 );
  1025. C_ASSERT( sizeof(struct create_keyed_event_reply) == 16 );
  1026. C_ASSERT( FIELD_OFFSET(struct open_keyed_event_request, access) == 12 );
  1027. C_ASSERT( FIELD_OFFSET(struct open_keyed_event_request, attributes) == 16 );
  1028. C_ASSERT( FIELD_OFFSET(struct open_keyed_event_request, rootdir) == 20 );
  1029. C_ASSERT( sizeof(struct open_keyed_event_request) == 24 );
  1030. C_ASSERT( FIELD_OFFSET(struct open_keyed_event_reply, handle) == 8 );
  1031. C_ASSERT( sizeof(struct open_keyed_event_reply) == 16 );
  1032. C_ASSERT( FIELD_OFFSET(struct create_mutex_request, access) == 12 );
  1033. C_ASSERT( FIELD_OFFSET(struct create_mutex_request, owned) == 16 );
  1034. C_ASSERT( sizeof(struct create_mutex_request) == 24 );
  1035. C_ASSERT( FIELD_OFFSET(struct create_mutex_reply, handle) == 8 );
  1036. C_ASSERT( sizeof(struct create_mutex_reply) == 16 );
  1037. C_ASSERT( FIELD_OFFSET(struct release_mutex_request, handle) == 12 );
  1038. C_ASSERT( sizeof(struct release_mutex_request) == 16 );
  1039. C_ASSERT( FIELD_OFFSET(struct release_mutex_reply, prev_count) == 8 );
  1040. C_ASSERT( sizeof(struct release_mutex_reply) == 16 );
  1041. C_ASSERT( FIELD_OFFSET(struct open_mutex_request, access) == 12 );
  1042. C_ASSERT( FIELD_OFFSET(struct open_mutex_request, attributes) == 16 );
  1043. C_ASSERT( FIELD_OFFSET(struct open_mutex_request, rootdir) == 20 );
  1044. C_ASSERT( sizeof(struct open_mutex_request) == 24 );
  1045. C_ASSERT( FIELD_OFFSET(struct open_mutex_reply, handle) == 8 );
  1046. C_ASSERT( sizeof(struct open_mutex_reply) == 16 );
  1047. C_ASSERT( FIELD_OFFSET(struct query_mutex_request, handle) == 12 );
  1048. C_ASSERT( sizeof(struct query_mutex_request) == 16 );
  1049. C_ASSERT( FIELD_OFFSET(struct query_mutex_reply, count) == 8 );
  1050. C_ASSERT( FIELD_OFFSET(struct query_mutex_reply, owned) == 12 );
  1051. C_ASSERT( FIELD_OFFSET(struct query_mutex_reply, abandoned) == 16 );
  1052. C_ASSERT( sizeof(struct query_mutex_reply) == 24 );
  1053. C_ASSERT( FIELD_OFFSET(struct create_semaphore_request, access) == 12 );
  1054. C_ASSERT( FIELD_OFFSET(struct create_semaphore_request, initial) == 16 );
  1055. C_ASSERT( FIELD_OFFSET(struct create_semaphore_request, max) == 20 );
  1056. C_ASSERT( sizeof(struct create_semaphore_request) == 24 );
  1057. C_ASSERT( FIELD_OFFSET(struct create_semaphore_reply, handle) == 8 );
  1058. C_ASSERT( sizeof(struct create_semaphore_reply) == 16 );
  1059. C_ASSERT( FIELD_OFFSET(struct release_semaphore_request, handle) == 12 );
  1060. C_ASSERT( FIELD_OFFSET(struct release_semaphore_request, count) == 16 );
  1061. C_ASSERT( sizeof(struct release_semaphore_request) == 24 );
  1062. C_ASSERT( FIELD_OFFSET(struct release_semaphore_reply, prev_count) == 8 );
  1063. C_ASSERT( sizeof(struct release_semaphore_reply) == 16 );
  1064. C_ASSERT( FIELD_OFFSET(struct query_semaphore_request, handle) == 12 );
  1065. C_ASSERT( sizeof(struct query_semaphore_request) == 16 );
  1066. C_ASSERT( FIELD_OFFSET(struct query_semaphore_reply, current) == 8 );
  1067. C_ASSERT( FIELD_OFFSET(struct query_semaphore_reply, max) == 12 );
  1068. C_ASSERT( sizeof(struct query_semaphore_reply) == 16 );
  1069. C_ASSERT( FIELD_OFFSET(struct open_semaphore_request, access) == 12 );
  1070. C_ASSERT( FIELD_OFFSET(struct open_semaphore_request, attributes) == 16 );
  1071. C_ASSERT( FIELD_OFFSET(struct open_semaphore_request, rootdir) == 20 );
  1072. C_ASSERT( sizeof(struct open_semaphore_request) == 24 );
  1073. C_ASSERT( FIELD_OFFSET(struct open_semaphore_reply, handle) == 8 );
  1074. C_ASSERT( sizeof(struct open_semaphore_reply) == 16 );
  1075. C_ASSERT( FIELD_OFFSET(struct create_file_request, access) == 12 );
  1076. C_ASSERT( FIELD_OFFSET(struct create_file_request, sharing) == 16 );
  1077. C_ASSERT( FIELD_OFFSET(struct create_file_request, create) == 20 );
  1078. C_ASSERT( FIELD_OFFSET(struct create_file_request, options) == 24 );
  1079. C_ASSERT( FIELD_OFFSET(struct create_file_request, attrs) == 28 );
  1080. C_ASSERT( sizeof(struct create_file_request) == 32 );
  1081. C_ASSERT( FIELD_OFFSET(struct create_file_reply, handle) == 8 );
  1082. C_ASSERT( sizeof(struct create_file_reply) == 16 );
  1083. C_ASSERT( FIELD_OFFSET(struct open_file_object_request, access) == 12 );
  1084. C_ASSERT( FIELD_OFFSET(struct open_file_object_request, attributes) == 16 );
  1085. C_ASSERT( FIELD_OFFSET(struct open_file_object_request, rootdir) == 20 );
  1086. C_ASSERT( FIELD_OFFSET(struct open_file_object_request, sharing) == 24 );
  1087. C_ASSERT( FIELD_OFFSET(struct open_file_object_request, options) == 28 );
  1088. C_ASSERT( sizeof(struct open_file_object_request) == 32 );
  1089. C_ASSERT( FIELD_OFFSET(struct open_file_object_reply, handle) == 8 );
  1090. C_ASSERT( sizeof(struct open_file_object_reply) == 16 );
  1091. C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_request, access) == 12 );
  1092. C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_request, attributes) == 16 );
  1093. C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_request, fd) == 20 );
  1094. C_ASSERT( sizeof(struct alloc_file_handle_request) == 24 );
  1095. C_ASSERT( FIELD_OFFSET(struct alloc_file_handle_reply, handle) == 8 );
  1096. C_ASSERT( sizeof(struct alloc_file_handle_reply) == 16 );
  1097. C_ASSERT( FIELD_OFFSET(struct get_handle_unix_name_request, handle) == 12 );
  1098. C_ASSERT( sizeof(struct get_handle_unix_name_request) == 16 );
  1099. C_ASSERT( FIELD_OFFSET(struct get_handle_unix_name_reply, name_len) == 8 );
  1100. C_ASSERT( sizeof(struct get_handle_unix_name_reply) == 16 );
  1101. C_ASSERT( FIELD_OFFSET(struct get_handle_fd_request, handle) == 12 );
  1102. C_ASSERT( sizeof(struct get_handle_fd_request) == 16 );
  1103. C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, type) == 8 );
  1104. C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, cacheable) == 12 );
  1105. C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, access) == 16 );
  1106. C_ASSERT( FIELD_OFFSET(struct get_handle_fd_reply, options) == 20 );
  1107. C_ASSERT( sizeof(struct get_handle_fd_reply) == 24 );
  1108. C_ASSERT( FIELD_OFFSET(struct get_directory_cache_entry_request, handle) == 12 );
  1109. C_ASSERT( sizeof(struct get_directory_cache_entry_request) == 16 );
  1110. C_ASSERT( FIELD_OFFSET(struct get_directory_cache_entry_reply, entry) == 8 );
  1111. C_ASSERT( sizeof(struct get_directory_cache_entry_reply) == 16 );
  1112. C_ASSERT( FIELD_OFFSET(struct get_shared_memory_request, tid) == 12 );
  1113. C_ASSERT( sizeof(struct get_shared_memory_request) == 16 );
  1114. C_ASSERT( FIELD_OFFSET(struct flush_request, async) == 16 );
  1115. C_ASSERT( sizeof(struct flush_request) == 56 );
  1116. C_ASSERT( FIELD_OFFSET(struct flush_reply, event) == 8 );
  1117. C_ASSERT( sizeof(struct flush_reply) == 16 );
  1118. C_ASSERT( FIELD_OFFSET(struct get_file_info_request, handle) == 12 );
  1119. C_ASSERT( FIELD_OFFSET(struct get_file_info_request, info_class) == 16 );
  1120. C_ASSERT( sizeof(struct get_file_info_request) == 24 );
  1121. C_ASSERT( sizeof(struct get_file_info_reply) == 8 );
  1122. C_ASSERT( FIELD_OFFSET(struct get_volume_info_request, handle) == 12 );
  1123. C_ASSERT( FIELD_OFFSET(struct get_volume_info_request, info_class) == 16 );
  1124. C_ASSERT( sizeof(struct get_volume_info_request) == 24 );
  1125. C_ASSERT( sizeof(struct get_volume_info_reply) == 8 );
  1126. C_ASSERT( FIELD_OFFSET(struct lock_file_request, handle) == 12 );
  1127. C_ASSERT( FIELD_OFFSET(struct lock_file_request, offset) == 16 );
  1128. C_ASSERT( FIELD_OFFSET(struct lock_file_request, count) == 24 );
  1129. C_ASSERT( FIELD_OFFSET(struct lock_file_request, shared) == 32 );
  1130. C_ASSERT( FIELD_OFFSET(struct lock_file_request, wait) == 36 );
  1131. C_ASSERT( sizeof(struct lock_file_request) == 40 );
  1132. C_ASSERT( FIELD_OFFSET(struct lock_file_reply, handle) == 8 );
  1133. C_ASSERT( FIELD_OFFSET(struct lock_file_reply, overlapped) == 12 );
  1134. C_ASSERT( sizeof(struct lock_file_reply) == 16 );
  1135. C_ASSERT( FIELD_OFFSET(struct unlock_file_request, handle) == 12 );
  1136. C_ASSERT( FIELD_OFFSET(struct unlock_file_request, offset) == 16 );
  1137. C_ASSERT( FIELD_OFFSET(struct unlock_file_request, count) == 24 );
  1138. C_ASSERT( sizeof(struct unlock_file_request) == 32 );
  1139. C_ASSERT( FIELD_OFFSET(struct create_socket_request, access) == 12 );
  1140. C_ASSERT( FIELD_OFFSET(struct create_socket_request, attributes) == 16 );
  1141. C_ASSERT( FIELD_OFFSET(struct create_socket_request, family) == 20 );
  1142. C_ASSERT( FIELD_OFFSET(struct create_socket_request, type) == 24 );
  1143. C_ASSERT( FIELD_OFFSET(struct create_socket_request, protocol) == 28 );
  1144. C_ASSERT( FIELD_OFFSET(struct create_socket_request, flags) == 32 );
  1145. C_ASSERT( sizeof(struct create_socket_request) == 40 );
  1146. C_ASSERT( FIELD_OFFSET(struct create_socket_reply, handle) == 8 );
  1147. C_ASSERT( sizeof(struct create_socket_reply) == 16 );
  1148. C_ASSERT( FIELD_OFFSET(struct accept_socket_request, lhandle) == 12 );
  1149. C_ASSERT( FIELD_OFFSET(struct accept_socket_request, access) == 16 );
  1150. C_ASSERT( FIELD_OFFSET(struct accept_socket_request, attributes) == 20 );
  1151. C_ASSERT( sizeof(struct accept_socket_request) == 24 );
  1152. C_ASSERT( FIELD_OFFSET(struct accept_socket_reply, handle) == 8 );
  1153. C_ASSERT( sizeof(struct accept_socket_reply) == 16 );
  1154. C_ASSERT( FIELD_OFFSET(struct accept_into_socket_request, lhandle) == 12 );
  1155. C_ASSERT( FIELD_OFFSET(struct accept_into_socket_request, ahandle) == 16 );
  1156. C_ASSERT( sizeof(struct accept_into_socket_request) == 24 );
  1157. C_ASSERT( FIELD_OFFSET(struct reuse_socket_request, handle) == 12 );
  1158. C_ASSERT( sizeof(struct reuse_socket_request) == 16 );
  1159. C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, handle) == 12 );
  1160. C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, mask) == 16 );
  1161. C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, event) == 20 );
  1162. C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, window) == 24 );
  1163. C_ASSERT( FIELD_OFFSET(struct set_socket_event_request, msg) == 28 );
  1164. C_ASSERT( sizeof(struct set_socket_event_request) == 32 );
  1165. C_ASSERT( FIELD_OFFSET(struct get_socket_event_request, handle) == 12 );
  1166. C_ASSERT( FIELD_OFFSET(struct get_socket_event_request, service) == 16 );
  1167. C_ASSERT( FIELD_OFFSET(struct get_socket_event_request, c_event) == 20 );
  1168. C_ASSERT( sizeof(struct get_socket_event_request) == 24 );
  1169. C_ASSERT( FIELD_OFFSET(struct get_socket_event_reply, mask) == 8 );
  1170. C_ASSERT( FIELD_OFFSET(struct get_socket_event_reply, pmask) == 12 );
  1171. C_ASSERT( FIELD_OFFSET(struct get_socket_event_reply, state) == 16 );
  1172. C_ASSERT( sizeof(struct get_socket_event_reply) == 24 );
  1173. C_ASSERT( FIELD_OFFSET(struct get_socket_info_request, handle) == 12 );
  1174. C_ASSERT( sizeof(struct get_socket_info_request) == 16 );
  1175. C_ASSERT( FIELD_OFFSET(struct get_socket_info_reply, family) == 8 );
  1176. C_ASSERT( FIELD_OFFSET(struct get_socket_info_reply, type) == 12 );
  1177. C_ASSERT( FIELD_OFFSET(struct get_socket_info_reply, protocol) == 16 );
  1178. C_ASSERT( FIELD_OFFSET(struct get_socket_info_reply, connect_time) == 24 );
  1179. C_ASSERT( sizeof(struct get_socket_info_reply) == 32 );
  1180. C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, handle) == 12 );
  1181. C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, mask) == 16 );
  1182. C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, sstate) == 20 );
  1183. C_ASSERT( FIELD_OFFSET(struct enable_socket_event_request, cstate) == 24 );
  1184. C_ASSERT( sizeof(struct enable_socket_event_request) == 32 );
  1185. C_ASSERT( FIELD_OFFSET(struct set_socket_deferred_request, handle) == 12 );
  1186. C_ASSERT( FIELD_OFFSET(struct set_socket_deferred_request, deferred) == 16 );
  1187. C_ASSERT( sizeof(struct set_socket_deferred_request) == 24 );
  1188. C_ASSERT( FIELD_OFFSET(struct alloc_console_request, access) == 12 );
  1189. C_ASSERT( FIELD_OFFSET(struct alloc_console_request, attributes) == 16 );
  1190. C_ASSERT( FIELD_OFFSET(struct alloc_console_request, pid) == 20 );
  1191. C_ASSERT( FIELD_OFFSET(struct alloc_console_request, input_fd) == 24 );
  1192. C_ASSERT( sizeof(struct alloc_console_request) == 32 );
  1193. C_ASSERT( FIELD_OFFSET(struct alloc_console_reply, handle_in) == 8 );
  1194. C_ASSERT( FIELD_OFFSET(struct alloc_console_reply, event) == 12 );
  1195. C_ASSERT( sizeof(struct alloc_console_reply) == 16 );
  1196. C_ASSERT( sizeof(struct free_console_request) == 16 );
  1197. C_ASSERT( FIELD_OFFSET(struct get_console_renderer_events_request, handle) == 12 );
  1198. C_ASSERT( sizeof(struct get_console_renderer_events_request) == 16 );
  1199. C_ASSERT( sizeof(struct get_console_renderer_events_reply) == 8 );
  1200. C_ASSERT( FIELD_OFFSET(struct open_console_request, from) == 12 );
  1201. C_ASSERT( FIELD_OFFSET(struct open_console_request, access) == 16 );
  1202. C_ASSERT( FIELD_OFFSET(struct open_console_request, attributes) == 20 );
  1203. C_ASSERT( FIELD_OFFSET(struct open_console_request, share) == 24 );
  1204. C_ASSERT( sizeof(struct open_console_request) == 32 );
  1205. C_ASSERT( FIELD_OFFSET(struct open_console_reply, handle) == 8 );
  1206. C_ASSERT( sizeof(struct open_console_reply) == 16 );
  1207. C_ASSERT( FIELD_OFFSET(struct attach_console_request, pid) == 12 );
  1208. C_ASSERT( sizeof(struct attach_console_request) == 16 );
  1209. C_ASSERT( FIELD_OFFSET(struct attach_console_reply, std_in) == 8 );
  1210. C_ASSERT( FIELD_OFFSET(struct attach_console_reply, std_out) == 12 );
  1211. C_ASSERT( FIELD_OFFSET(struct attach_console_reply, std_err) == 16 );
  1212. C_ASSERT( sizeof(struct attach_console_reply) == 24 );
  1213. C_ASSERT( FIELD_OFFSET(struct get_console_wait_event_request, handle) == 12 );
  1214. C_ASSERT( sizeof(struct get_console_wait_event_request) == 16 );
  1215. C_ASSERT( FIELD_OFFSET(struct get_console_wait_event_reply, event) == 8 );
  1216. C_ASSERT( sizeof(struct get_console_wait_event_reply) == 16 );
  1217. C_ASSERT( FIELD_OFFSET(struct get_console_mode_request, handle) == 12 );
  1218. C_ASSERT( sizeof(struct get_console_mode_request) == 16 );
  1219. C_ASSERT( FIELD_OFFSET(struct get_console_mode_reply, mode) == 8 );
  1220. C_ASSERT( sizeof(struct get_console_mode_reply) == 16 );
  1221. C_ASSERT( FIELD_OFFSET(struct set_console_mode_request, handle) == 12 );
  1222. C_ASSERT( FIELD_OFFSET(struct set_console_mode_request, mode) == 16 );
  1223. C_ASSERT( sizeof(struct set_console_mode_request) == 24 );
  1224. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, handle) == 12 );
  1225. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, mask) == 16 );
  1226. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, active_sb) == 20 );
  1227. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, history_mode) == 24 );
  1228. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, history_size) == 28 );
  1229. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, edition_mode) == 32 );
  1230. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, input_cp) == 36 );
  1231. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, output_cp) == 40 );
  1232. C_ASSERT( FIELD_OFFSET(struct set_console_input_info_request, win) == 44 );
  1233. C_ASSERT( sizeof(struct set_console_input_info_request) == 48 );
  1234. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_request, handle) == 12 );
  1235. C_ASSERT( sizeof(struct get_console_input_info_request) == 16 );
  1236. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, history_mode) == 8 );
  1237. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, history_size) == 12 );
  1238. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, history_index) == 16 );
  1239. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, edition_mode) == 20 );
  1240. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, input_cp) == 24 );
  1241. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, output_cp) == 28 );
  1242. C_ASSERT( FIELD_OFFSET(struct get_console_input_info_reply, win) == 32 );
  1243. C_ASSERT( sizeof(struct get_console_input_info_reply) == 40 );
  1244. C_ASSERT( FIELD_OFFSET(struct append_console_input_history_request, handle) == 12 );
  1245. C_ASSERT( sizeof(struct append_console_input_history_request) == 16 );
  1246. C_ASSERT( FIELD_OFFSET(struct get_console_input_history_request, handle) == 12 );
  1247. C_ASSERT( FIELD_OFFSET(struct get_console_input_history_request, index) == 16 );
  1248. C_ASSERT( sizeof(struct get_console_input_history_request) == 24 );
  1249. C_ASSERT( FIELD_OFFSET(struct get_console_input_history_reply, total) == 8 );
  1250. C_ASSERT( sizeof(struct get_console_input_history_reply) == 16 );
  1251. C_ASSERT( FIELD_OFFSET(struct create_console_output_request, handle_in) == 12 );
  1252. C_ASSERT( FIELD_OFFSET(struct create_console_output_request, access) == 16 );
  1253. C_ASSERT( FIELD_OFFSET(struct create_console_output_request, attributes) == 20 );
  1254. C_ASSERT( FIELD_OFFSET(struct create_console_output_request, share) == 24 );
  1255. C_ASSERT( FIELD_OFFSET(struct create_console_output_request, fd) == 28 );
  1256. C_ASSERT( sizeof(struct create_console_output_request) == 32 );
  1257. C_ASSERT( FIELD_OFFSET(struct create_console_output_reply, handle_out) == 8 );
  1258. C_ASSERT( sizeof(struct create_console_output_reply) == 16 );
  1259. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, handle) == 12 );
  1260. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, mask) == 16 );
  1261. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_size) == 20 );
  1262. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_visible) == 22 );
  1263. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_x) == 24 );
  1264. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, cursor_y) == 26 );
  1265. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, width) == 28 );
  1266. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, height) == 30 );
  1267. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, attr) == 32 );
  1268. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, popup_attr) == 34 );
  1269. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_left) == 36 );
  1270. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_top) == 38 );
  1271. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_right) == 40 );
  1272. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, win_bottom) == 42 );
  1273. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, max_width) == 44 );
  1274. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, max_height) == 46 );
  1275. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, font_width) == 48 );
  1276. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, font_height) == 50 );
  1277. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, font_weight) == 52 );
  1278. C_ASSERT( FIELD_OFFSET(struct set_console_output_info_request, font_pitch_family) == 54 );
  1279. C_ASSERT( sizeof(struct set_console_output_info_request) == 56 );
  1280. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_request, handle) == 12 );
  1281. C_ASSERT( sizeof(struct get_console_output_info_request) == 16 );
  1282. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_size) == 8 );
  1283. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_visible) == 10 );
  1284. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_x) == 12 );
  1285. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, cursor_y) == 14 );
  1286. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, width) == 16 );
  1287. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, height) == 18 );
  1288. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, attr) == 20 );
  1289. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, popup_attr) == 22 );
  1290. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_left) == 24 );
  1291. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_top) == 26 );
  1292. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_right) == 28 );
  1293. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, win_bottom) == 30 );
  1294. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, max_width) == 32 );
  1295. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, max_height) == 34 );
  1296. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, font_width) == 36 );
  1297. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, font_height) == 38 );
  1298. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, font_weight) == 40 );
  1299. C_ASSERT( FIELD_OFFSET(struct get_console_output_info_reply, font_pitch_family) == 42 );
  1300. C_ASSERT( sizeof(struct get_console_output_info_reply) == 48 );
  1301. C_ASSERT( FIELD_OFFSET(struct write_console_input_request, handle) == 12 );
  1302. C_ASSERT( sizeof(struct write_console_input_request) == 16 );
  1303. C_ASSERT( FIELD_OFFSET(struct write_console_input_reply, written) == 8 );
  1304. C_ASSERT( sizeof(struct write_console_input_reply) == 16 );
  1305. C_ASSERT( FIELD_OFFSET(struct read_console_input_request, handle) == 12 );
  1306. C_ASSERT( FIELD_OFFSET(struct read_console_input_request, flush) == 16 );
  1307. C_ASSERT( sizeof(struct read_console_input_request) == 24 );
  1308. C_ASSERT( FIELD_OFFSET(struct read_console_input_reply, read) == 8 );
  1309. C_ASSERT( sizeof(struct read_console_input_reply) == 16 );
  1310. C_ASSERT( FIELD_OFFSET(struct write_console_output_request, handle) == 12 );
  1311. C_ASSERT( FIELD_OFFSET(struct write_console_output_request, x) == 16 );
  1312. C_ASSERT( FIELD_OFFSET(struct write_console_output_request, y) == 20 );
  1313. C_ASSERT( FIELD_OFFSET(struct write_console_output_request, mode) == 24 );
  1314. C_ASSERT( FIELD_OFFSET(struct write_console_output_request, wrap) == 28 );
  1315. C_ASSERT( sizeof(struct write_console_output_request) == 32 );
  1316. C_ASSERT( FIELD_OFFSET(struct write_console_output_reply, written) == 8 );
  1317. C_ASSERT( FIELD_OFFSET(struct write_console_output_reply, width) == 12 );
  1318. C_ASSERT( FIELD_OFFSET(struct write_console_output_reply, height) == 16 );
  1319. C_ASSERT( sizeof(struct write_console_output_reply) == 24 );
  1320. C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, handle) == 12 );
  1321. C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, x) == 16 );
  1322. C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, y) == 20 );
  1323. C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, mode) == 24 );
  1324. C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, count) == 28 );
  1325. C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, wrap) == 32 );
  1326. C_ASSERT( FIELD_OFFSET(struct fill_console_output_request, data) == 36 );
  1327. C_ASSERT( sizeof(struct fill_console_output_request) == 40 );
  1328. C_ASSERT( FIELD_OFFSET(struct fill_console_output_reply, written) == 8 );
  1329. C_ASSERT( sizeof(struct fill_console_output_reply) == 16 );
  1330. C_ASSERT( FIELD_OFFSET(struct read_console_output_request, handle) == 12 );
  1331. C_ASSERT( FIELD_OFFSET(struct read_console_output_request, x) == 16 );
  1332. C_ASSERT( FIELD_OFFSET(struct read_console_output_request, y) == 20 );
  1333. C_ASSERT( FIELD_OFFSET(struct read_console_output_request, mode) == 24 );
  1334. C_ASSERT( FIELD_OFFSET(struct read_console_output_request, wrap) == 28 );
  1335. C_ASSERT( sizeof(struct read_console_output_request) == 32 );
  1336. C_ASSERT( FIELD_OFFSET(struct read_console_output_reply, width) == 8 );
  1337. C_ASSERT( FIELD_OFFSET(struct read_console_output_reply, height) == 12 );
  1338. C_ASSERT( sizeof(struct read_console_output_reply) == 16 );
  1339. C_ASSERT( FIELD_OFFSET(struct move_console_output_request, handle) == 12 );
  1340. C_ASSERT( FIELD_OFFSET(struct move_console_output_request, x_src) == 16 );
  1341. C_ASSERT( FIELD_OFFSET(struct move_console_output_request, y_src) == 18 );
  1342. C_ASSERT( FIELD_OFFSET(struct move_console_output_request, x_dst) == 20 );
  1343. C_ASSERT( FIELD_OFFSET(struct move_console_output_request, y_dst) == 22 );
  1344. C_ASSERT( FIELD_OFFSET(struct move_console_output_request, w) == 24 );
  1345. C_ASSERT( FIELD_OFFSET(struct move_console_output_request, h) == 26 );
  1346. C_ASSERT( sizeof(struct move_console_output_request) == 32 );
  1347. C_ASSERT( FIELD_OFFSET(struct send_console_signal_request, signal) == 12 );
  1348. C_ASSERT( FIELD_OFFSET(struct send_console_signal_request, group_id) == 16 );
  1349. C_ASSERT( sizeof(struct send_console_signal_request) == 24 );
  1350. C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, filter) == 12 );
  1351. C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, subtree) == 16 );
  1352. C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, want_data) == 20 );
  1353. C_ASSERT( FIELD_OFFSET(struct read_directory_changes_request, async) == 24 );
  1354. C_ASSERT( sizeof(struct read_directory_changes_request) == 64 );
  1355. C_ASSERT( FIELD_OFFSET(struct read_change_request, handle) == 12 );
  1356. C_ASSERT( sizeof(struct read_change_request) == 16 );
  1357. C_ASSERT( sizeof(struct read_change_reply) == 8 );
  1358. C_ASSERT( FIELD_OFFSET(struct create_mapping_request, access) == 12 );
  1359. C_ASSERT( FIELD_OFFSET(struct create_mapping_request, flags) == 16 );
  1360. C_ASSERT( FIELD_OFFSET(struct create_mapping_request, file_access) == 20 );
  1361. C_ASSERT( FIELD_OFFSET(struct create_mapping_request, size) == 24 );
  1362. C_ASSERT( FIELD_OFFSET(struct create_mapping_request, file_handle) == 32 );
  1363. C_ASSERT( sizeof(struct create_mapping_request) == 40 );
  1364. C_ASSERT( FIELD_OFFSET(struct create_mapping_reply, handle) == 8 );
  1365. C_ASSERT( sizeof(struct create_mapping_reply) == 16 );
  1366. C_ASSERT( FIELD_OFFSET(struct open_mapping_request, access) == 12 );
  1367. C_ASSERT( FIELD_OFFSET(struct open_mapping_request, attributes) == 16 );
  1368. C_ASSERT( FIELD_OFFSET(struct open_mapping_request, rootdir) == 20 );
  1369. C_ASSERT( sizeof(struct open_mapping_request) == 24 );
  1370. C_ASSERT( FIELD_OFFSET(struct open_mapping_reply, handle) == 8 );
  1371. C_ASSERT( sizeof(struct open_mapping_reply) == 16 );
  1372. C_ASSERT( FIELD_OFFSET(struct get_mapping_info_request, handle) == 12 );
  1373. C_ASSERT( FIELD_OFFSET(struct get_mapping_info_request, access) == 16 );
  1374. C_ASSERT( sizeof(struct get_mapping_info_request) == 24 );
  1375. C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, size) == 8 );
  1376. C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, flags) == 16 );
  1377. C_ASSERT( FIELD_OFFSET(struct get_mapping_info_reply, shared_file) == 20 );
  1378. C_ASSERT( sizeof(struct get_mapping_info_reply) == 24 );
  1379. C_ASSERT( FIELD_OFFSET(struct map_view_request, mapping) == 12 );
  1380. C_ASSERT( FIELD_OFFSET(struct map_view_request, access) == 16 );
  1381. C_ASSERT( FIELD_OFFSET(struct map_view_request, base) == 24 );
  1382. C_ASSERT( FIELD_OFFSET(struct map_view_request, size) == 32 );
  1383. C_ASSERT( FIELD_OFFSET(struct map_view_request, start) == 40 );
  1384. C_ASSERT( sizeof(struct map_view_request) == 48 );
  1385. C_ASSERT( FIELD_OFFSET(struct unmap_view_request, base) == 16 );
  1386. C_ASSERT( sizeof(struct unmap_view_request) == 24 );
  1387. C_ASSERT( FIELD_OFFSET(struct get_mapping_file_request, process) == 12 );
  1388. C_ASSERT( FIELD_OFFSET(struct get_mapping_file_request, addr) == 16 );
  1389. C_ASSERT( sizeof(struct get_mapping_file_request) == 24 );
  1390. C_ASSERT( FIELD_OFFSET(struct get_mapping_file_reply, handle) == 8 );
  1391. C_ASSERT( sizeof(struct get_mapping_file_reply) == 16 );
  1392. C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_request, base) == 16 );
  1393. C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_request, offset) == 24 );
  1394. C_ASSERT( sizeof(struct get_mapping_committed_range_request) == 32 );
  1395. C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_reply, size) == 8 );
  1396. C_ASSERT( FIELD_OFFSET(struct get_mapping_committed_range_reply, committed) == 16 );
  1397. C_ASSERT( sizeof(struct get_mapping_committed_range_reply) == 24 );
  1398. C_ASSERT( FIELD_OFFSET(struct add_mapping_committed_range_request, base) == 16 );
  1399. C_ASSERT( FIELD_OFFSET(struct add_mapping_committed_range_request, offset) == 24 );
  1400. C_ASSERT( FIELD_OFFSET(struct add_mapping_committed_range_request, size) == 32 );
  1401. C_ASSERT( sizeof(struct add_mapping_committed_range_request) == 40 );
  1402. C_ASSERT( FIELD_OFFSET(struct is_same_mapping_request, base1) == 16 );
  1403. C_ASSERT( FIELD_OFFSET(struct is_same_mapping_request, base2) == 24 );
  1404. C_ASSERT( sizeof(struct is_same_mapping_request) == 32 );
  1405. C_ASSERT( FIELD_OFFSET(struct create_snapshot_request, attributes) == 12 );
  1406. C_ASSERT( FIELD_OFFSET(struct create_snapshot_request, flags) == 16 );
  1407. C_ASSERT( sizeof(struct create_snapshot_request) == 24 );
  1408. C_ASSERT( FIELD_OFFSET(struct create_snapshot_reply, handle) == 8 );
  1409. C_ASSERT( sizeof(struct create_snapshot_reply) == 16 );
  1410. C_ASSERT( FIELD_OFFSET(struct next_process_request, handle) == 12 );
  1411. C_ASSERT( FIELD_OFFSET(struct next_process_request, reset) == 16 );
  1412. C_ASSERT( sizeof(struct next_process_request) == 24 );
  1413. C_ASSERT( FIELD_OFFSET(struct next_process_reply, count) == 8 );
  1414. C_ASSERT( FIELD_OFFSET(struct next_process_reply, pid) == 12 );
  1415. C_ASSERT( FIELD_OFFSET(struct next_process_reply, ppid) == 16 );
  1416. C_ASSERT( FIELD_OFFSET(struct next_process_reply, threads) == 20 );
  1417. C_ASSERT( FIELD_OFFSET(struct next_process_reply, priority) == 24 );
  1418. C_ASSERT( FIELD_OFFSET(struct next_process_reply, handles) == 28 );
  1419. C_ASSERT( FIELD_OFFSET(struct next_process_reply, unix_pid) == 32 );
  1420. C_ASSERT( FIELD_OFFSET(struct next_process_reply, start_time) == 40 );
  1421. C_ASSERT( sizeof(struct next_process_reply) == 48 );
  1422. C_ASSERT( FIELD_OFFSET(struct next_thread_request, handle) == 12 );
  1423. C_ASSERT( FIELD_OFFSET(struct next_thread_request, reset) == 16 );
  1424. C_ASSERT( sizeof(struct next_thread_request) == 24 );
  1425. C_ASSERT( FIELD_OFFSET(struct next_thread_reply, count) == 8 );
  1426. C_ASSERT( FIELD_OFFSET(struct next_thread_reply, pid) == 12 );
  1427. C_ASSERT( FIELD_OFFSET(struct next_thread_reply, tid) == 16 );
  1428. C_ASSERT( FIELD_OFFSET(struct next_thread_reply, creation_time) == 24 );
  1429. C_ASSERT( FIELD_OFFSET(struct next_thread_reply, base_pri) == 32 );
  1430. C_ASSERT( FIELD_OFFSET(struct next_thread_reply, delta_pri) == 36 );
  1431. C_ASSERT( FIELD_OFFSET(struct next_thread_reply, unix_tid) == 40 );
  1432. C_ASSERT( sizeof(struct next_thread_reply) == 48 );
  1433. C_ASSERT( FIELD_OFFSET(struct wait_debug_event_request, get_handle) == 12 );
  1434. C_ASSERT( sizeof(struct wait_debug_event_request) == 16 );
  1435. C_ASSERT( FIELD_OFFSET(struct wait_debug_event_reply, pid) == 8 );
  1436. C_ASSERT( FIELD_OFFSET(struct wait_debug_event_reply, tid) == 12 );
  1437. C_ASSERT( FIELD_OFFSET(struct wait_debug_event_reply, wait) == 16 );
  1438. C_ASSERT( sizeof(struct wait_debug_event_reply) == 24 );
  1439. C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, first) == 12 );
  1440. C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, code) == 16 );
  1441. C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, flags) == 20 );
  1442. C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, record) == 24 );
  1443. C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, address) == 32 );
  1444. C_ASSERT( FIELD_OFFSET(struct queue_exception_event_request, len) == 40 );
  1445. C_ASSERT( sizeof(struct queue_exception_event_request) == 48 );
  1446. C_ASSERT( FIELD_OFFSET(struct queue_exception_event_reply, handle) == 8 );
  1447. C_ASSERT( sizeof(struct queue_exception_event_reply) == 16 );
  1448. C_ASSERT( FIELD_OFFSET(struct get_exception_status_request, handle) == 12 );
  1449. C_ASSERT( sizeof(struct get_exception_status_request) == 16 );
  1450. C_ASSERT( sizeof(struct get_exception_status_reply) == 8 );
  1451. C_ASSERT( FIELD_OFFSET(struct continue_debug_event_request, pid) == 12 );
  1452. C_ASSERT( FIELD_OFFSET(struct continue_debug_event_request, tid) == 16 );
  1453. C_ASSERT( FIELD_OFFSET(struct continue_debug_event_request, status) == 20 );
  1454. C_ASSERT( sizeof(struct continue_debug_event_request) == 24 );
  1455. C_ASSERT( FIELD_OFFSET(struct debug_process_request, pid) == 12 );
  1456. C_ASSERT( FIELD_OFFSET(struct debug_process_request, attach) == 16 );
  1457. C_ASSERT( sizeof(struct debug_process_request) == 24 );
  1458. C_ASSERT( FIELD_OFFSET(struct set_debugger_kill_on_exit_request, kill_on_exit) == 12 );
  1459. C_ASSERT( sizeof(struct set_debugger_kill_on_exit_request) == 16 );
  1460. C_ASSERT( FIELD_OFFSET(struct read_process_memory_request, handle) == 12 );
  1461. C_ASSERT( FIELD_OFFSET(struct read_process_memory_request, addr) == 16 );
  1462. C_ASSERT( sizeof(struct read_process_memory_request) == 24 );
  1463. C_ASSERT( sizeof(struct read_process_memory_reply) == 8 );
  1464. C_ASSERT( FIELD_OFFSET(struct write_process_memory_request, handle) == 12 );
  1465. C_ASSERT( FIELD_OFFSET(struct write_process_memory_request, addr) == 16 );
  1466. C_ASSERT( sizeof(struct write_process_memory_request) == 24 );
  1467. C_ASSERT( FIELD_OFFSET(struct create_key_request, access) == 12 );
  1468. C_ASSERT( FIELD_OFFSET(struct create_key_request, options) == 16 );
  1469. C_ASSERT( sizeof(struct create_key_request) == 24 );
  1470. C_ASSERT( FIELD_OFFSET(struct create_key_reply, hkey) == 8 );
  1471. C_ASSERT( FIELD_OFFSET(struct create_key_reply, created) == 12 );
  1472. C_ASSERT( sizeof(struct create_key_reply) == 16 );
  1473. C_ASSERT( FIELD_OFFSET(struct open_key_request, parent) == 12 );
  1474. C_ASSERT( FIELD_OFFSET(struct open_key_request, access) == 16 );
  1475. C_ASSERT( FIELD_OFFSET(struct open_key_request, attributes) == 20 );
  1476. C_ASSERT( sizeof(struct open_key_request) == 24 );
  1477. C_ASSERT( FIELD_OFFSET(struct open_key_reply, hkey) == 8 );
  1478. C_ASSERT( sizeof(struct open_key_reply) == 16 );
  1479. C_ASSERT( FIELD_OFFSET(struct delete_key_request, hkey) == 12 );
  1480. C_ASSERT( sizeof(struct delete_key_request) == 16 );
  1481. C_ASSERT( FIELD_OFFSET(struct flush_key_request, hkey) == 12 );
  1482. C_ASSERT( sizeof(struct flush_key_request) == 16 );
  1483. C_ASSERT( FIELD_OFFSET(struct enum_key_request, hkey) == 12 );
  1484. C_ASSERT( FIELD_OFFSET(struct enum_key_request, index) == 16 );
  1485. C_ASSERT( FIELD_OFFSET(struct enum_key_request, info_class) == 20 );
  1486. C_ASSERT( sizeof(struct enum_key_request) == 24 );
  1487. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, subkeys) == 8 );
  1488. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_subkey) == 12 );
  1489. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_class) == 16 );
  1490. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, values) == 20 );
  1491. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_value) == 24 );
  1492. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, max_data) == 28 );
  1493. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, modif) == 32 );
  1494. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, total) == 40 );
  1495. C_ASSERT( FIELD_OFFSET(struct enum_key_reply, namelen) == 44 );
  1496. C_ASSERT( sizeof(struct enum_key_reply) == 48 );
  1497. C_ASSERT( FIELD_OFFSET(struct set_key_value_request, hkey) == 12 );
  1498. C_ASSERT( FIELD_OFFSET(struct set_key_value_request, type) == 16 );
  1499. C_ASSERT( FIELD_OFFSET(struct set_key_value_request, namelen) == 20 );
  1500. C_ASSERT( sizeof(struct set_key_value_request) == 24 );
  1501. C_ASSERT( FIELD_OFFSET(struct get_key_value_request, hkey) == 12 );
  1502. C_ASSERT( sizeof(struct get_key_value_request) == 16 );
  1503. C_ASSERT( FIELD_OFFSET(struct get_key_value_reply, type) == 8 );
  1504. C_ASSERT( FIELD_OFFSET(struct get_key_value_reply, total) == 12 );
  1505. C_ASSERT( sizeof(struct get_key_value_reply) == 16 );
  1506. C_ASSERT( FIELD_OFFSET(struct enum_key_value_request, hkey) == 12 );
  1507. C_ASSERT( FIELD_OFFSET(struct enum_key_value_request, index) == 16 );
  1508. C_ASSERT( FIELD_OFFSET(struct enum_key_value_request, info_class) == 20 );
  1509. C_ASSERT( sizeof(struct enum_key_value_request) == 24 );
  1510. C_ASSERT( FIELD_OFFSET(struct enum_key_value_reply, type) == 8 );
  1511. C_ASSERT( FIELD_OFFSET(struct enum_key_value_reply, total) == 12 );
  1512. C_ASSERT( FIELD_OFFSET(struct enum_key_value_reply, namelen) == 16 );
  1513. C_ASSERT( sizeof(struct enum_key_value_reply) == 24 );
  1514. C_ASSERT( FIELD_OFFSET(struct delete_key_value_request, hkey) == 12 );
  1515. C_ASSERT( sizeof(struct delete_key_value_request) == 16 );
  1516. C_ASSERT( FIELD_OFFSET(struct load_registry_request, file) == 12 );
  1517. C_ASSERT( sizeof(struct load_registry_request) == 16 );
  1518. C_ASSERT( FIELD_OFFSET(struct unload_registry_request, hkey) == 12 );
  1519. C_ASSERT( sizeof(struct unload_registry_request) == 16 );
  1520. C_ASSERT( FIELD_OFFSET(struct save_registry_request, hkey) == 12 );
  1521. C_ASSERT( FIELD_OFFSET(struct save_registry_request, file) == 16 );
  1522. C_ASSERT( sizeof(struct save_registry_request) == 24 );
  1523. C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, hkey) == 12 );
  1524. C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, event) == 16 );
  1525. C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, subtree) == 20 );
  1526. C_ASSERT( FIELD_OFFSET(struct set_registry_notification_request, filter) == 24 );
  1527. C_ASSERT( sizeof(struct set_registry_notification_request) == 32 );
  1528. C_ASSERT( FIELD_OFFSET(struct create_timer_request, access) == 12 );
  1529. C_ASSERT( FIELD_OFFSET(struct create_timer_request, manual) == 16 );
  1530. C_ASSERT( sizeof(struct create_timer_request) == 24 );
  1531. C_ASSERT( FIELD_OFFSET(struct create_timer_reply, handle) == 8 );
  1532. C_ASSERT( sizeof(struct create_timer_reply) == 16 );
  1533. C_ASSERT( FIELD_OFFSET(struct open_timer_request, access) == 12 );
  1534. C_ASSERT( FIELD_OFFSET(struct open_timer_request, attributes) == 16 );
  1535. C_ASSERT( FIELD_OFFSET(struct open_timer_request, rootdir) == 20 );
  1536. C_ASSERT( sizeof(struct open_timer_request) == 24 );
  1537. C_ASSERT( FIELD_OFFSET(struct open_timer_reply, handle) == 8 );
  1538. C_ASSERT( sizeof(struct open_timer_reply) == 16 );
  1539. C_ASSERT( FIELD_OFFSET(struct set_timer_request, handle) == 12 );
  1540. C_ASSERT( FIELD_OFFSET(struct set_timer_request, expire) == 16 );
  1541. C_ASSERT( FIELD_OFFSET(struct set_timer_request, callback) == 24 );
  1542. C_ASSERT( FIELD_OFFSET(struct set_timer_request, arg) == 32 );
  1543. C_ASSERT( FIELD_OFFSET(struct set_timer_request, period) == 40 );
  1544. C_ASSERT( sizeof(struct set_timer_request) == 48 );
  1545. C_ASSERT( FIELD_OFFSET(struct set_timer_reply, signaled) == 8 );
  1546. C_ASSERT( sizeof(struct set_timer_reply) == 16 );
  1547. C_ASSERT( FIELD_OFFSET(struct cancel_timer_request, handle) == 12 );
  1548. C_ASSERT( sizeof(struct cancel_timer_request) == 16 );
  1549. C_ASSERT( FIELD_OFFSET(struct cancel_timer_reply, signaled) == 8 );
  1550. C_ASSERT( sizeof(struct cancel_timer_reply) == 16 );
  1551. C_ASSERT( FIELD_OFFSET(struct get_timer_info_request, handle) == 12 );
  1552. C_ASSERT( sizeof(struct get_timer_info_request) == 16 );
  1553. C_ASSERT( FIELD_OFFSET(struct get_timer_info_reply, when) == 8 );
  1554. C_ASSERT( FIELD_OFFSET(struct get_timer_info_reply, signaled) == 16 );
  1555. C_ASSERT( sizeof(struct get_timer_info_reply) == 24 );
  1556. C_ASSERT( FIELD_OFFSET(struct get_thread_context_request, handle) == 12 );
  1557. C_ASSERT( FIELD_OFFSET(struct get_thread_context_request, flags) == 16 );
  1558. C_ASSERT( FIELD_OFFSET(struct get_thread_context_request, suspend) == 20 );
  1559. C_ASSERT( sizeof(struct get_thread_context_request) == 24 );
  1560. C_ASSERT( FIELD_OFFSET(struct get_thread_context_reply, self) == 8 );
  1561. C_ASSERT( sizeof(struct get_thread_context_reply) == 16 );
  1562. C_ASSERT( FIELD_OFFSET(struct set_thread_context_request, handle) == 12 );
  1563. C_ASSERT( FIELD_OFFSET(struct set_thread_context_request, suspend) == 16 );
  1564. C_ASSERT( sizeof(struct set_thread_context_request) == 24 );
  1565. C_ASSERT( FIELD_OFFSET(struct set_thread_context_reply, self) == 8 );
  1566. C_ASSERT( sizeof(struct set_thread_context_reply) == 16 );
  1567. C_ASSERT( FIELD_OFFSET(struct get_selector_entry_request, handle) == 12 );
  1568. C_ASSERT( FIELD_OFFSET(struct get_selector_entry_request, entry) == 16 );
  1569. C_ASSERT( sizeof(struct get_selector_entry_request) == 24 );
  1570. C_ASSERT( FIELD_OFFSET(struct get_selector_entry_reply, base) == 8 );
  1571. C_ASSERT( FIELD_OFFSET(struct get_selector_entry_reply, limit) == 12 );
  1572. C_ASSERT( FIELD_OFFSET(struct get_selector_entry_reply, flags) == 16 );
  1573. C_ASSERT( sizeof(struct get_selector_entry_reply) == 24 );
  1574. C_ASSERT( FIELD_OFFSET(struct add_atom_request, table) == 12 );
  1575. C_ASSERT( sizeof(struct add_atom_request) == 16 );
  1576. C_ASSERT( FIELD_OFFSET(struct add_atom_reply, atom) == 8 );
  1577. C_ASSERT( sizeof(struct add_atom_reply) == 16 );
  1578. C_ASSERT( FIELD_OFFSET(struct delete_atom_request, table) == 12 );
  1579. C_ASSERT( FIELD_OFFSET(struct delete_atom_request, atom) == 16 );
  1580. C_ASSERT( sizeof(struct delete_atom_request) == 24 );
  1581. C_ASSERT( FIELD_OFFSET(struct find_atom_request, table) == 12 );
  1582. C_ASSERT( sizeof(struct find_atom_request) == 16 );
  1583. C_ASSERT( FIELD_OFFSET(struct find_atom_reply, atom) == 8 );
  1584. C_ASSERT( sizeof(struct find_atom_reply) == 16 );
  1585. C_ASSERT( FIELD_OFFSET(struct get_atom_information_request, table) == 12 );
  1586. C_ASSERT( FIELD_OFFSET(struct get_atom_information_request, atom) == 16 );
  1587. C_ASSERT( sizeof(struct get_atom_information_request) == 24 );
  1588. C_ASSERT( FIELD_OFFSET(struct get_atom_information_reply, count) == 8 );
  1589. C_ASSERT( FIELD_OFFSET(struct get_atom_information_reply, pinned) == 12 );
  1590. C_ASSERT( FIELD_OFFSET(struct get_atom_information_reply, total) == 16 );
  1591. C_ASSERT( sizeof(struct get_atom_information_reply) == 24 );
  1592. C_ASSERT( FIELD_OFFSET(struct set_atom_information_request, table) == 12 );
  1593. C_ASSERT( FIELD_OFFSET(struct set_atom_information_request, atom) == 16 );
  1594. C_ASSERT( FIELD_OFFSET(struct set_atom_information_request, pinned) == 20 );
  1595. C_ASSERT( sizeof(struct set_atom_information_request) == 24 );
  1596. C_ASSERT( FIELD_OFFSET(struct empty_atom_table_request, table) == 12 );
  1597. C_ASSERT( FIELD_OFFSET(struct empty_atom_table_request, if_pinned) == 16 );
  1598. C_ASSERT( sizeof(struct empty_atom_table_request) == 24 );
  1599. C_ASSERT( FIELD_OFFSET(struct init_atom_table_request, entries) == 12 );
  1600. C_ASSERT( sizeof(struct init_atom_table_request) == 16 );
  1601. C_ASSERT( FIELD_OFFSET(struct init_atom_table_reply, table) == 8 );
  1602. C_ASSERT( sizeof(struct init_atom_table_reply) == 16 );
  1603. C_ASSERT( sizeof(struct get_msg_queue_request) == 16 );
  1604. C_ASSERT( FIELD_OFFSET(struct get_msg_queue_reply, handle) == 8 );
  1605. C_ASSERT( sizeof(struct get_msg_queue_reply) == 16 );
  1606. C_ASSERT( FIELD_OFFSET(struct set_queue_fd_request, handle) == 12 );
  1607. C_ASSERT( sizeof(struct set_queue_fd_request) == 16 );
  1608. C_ASSERT( FIELD_OFFSET(struct set_queue_mask_request, wake_mask) == 12 );
  1609. C_ASSERT( FIELD_OFFSET(struct set_queue_mask_request, changed_mask) == 16 );
  1610. C_ASSERT( FIELD_OFFSET(struct set_queue_mask_request, skip_wait) == 20 );
  1611. C_ASSERT( sizeof(struct set_queue_mask_request) == 24 );
  1612. C_ASSERT( FIELD_OFFSET(struct set_queue_mask_reply, wake_bits) == 8 );
  1613. C_ASSERT( FIELD_OFFSET(struct set_queue_mask_reply, changed_bits) == 12 );
  1614. C_ASSERT( sizeof(struct set_queue_mask_reply) == 16 );
  1615. C_ASSERT( FIELD_OFFSET(struct get_queue_status_request, clear_bits) == 12 );
  1616. C_ASSERT( sizeof(struct get_queue_status_request) == 16 );
  1617. C_ASSERT( FIELD_OFFSET(struct get_queue_status_reply, wake_bits) == 8 );
  1618. C_ASSERT( FIELD_OFFSET(struct get_queue_status_reply, changed_bits) == 12 );
  1619. C_ASSERT( sizeof(struct get_queue_status_reply) == 16 );
  1620. C_ASSERT( FIELD_OFFSET(struct get_process_idle_event_request, handle) == 12 );
  1621. C_ASSERT( sizeof(struct get_process_idle_event_request) == 16 );
  1622. C_ASSERT( FIELD_OFFSET(struct get_process_idle_event_reply, event) == 8 );
  1623. C_ASSERT( sizeof(struct get_process_idle_event_reply) == 16 );
  1624. C_ASSERT( FIELD_OFFSET(struct send_message_request, id) == 12 );
  1625. C_ASSERT( FIELD_OFFSET(struct send_message_request, type) == 16 );
  1626. C_ASSERT( FIELD_OFFSET(struct send_message_request, flags) == 20 );
  1627. C_ASSERT( FIELD_OFFSET(struct send_message_request, win) == 24 );
  1628. C_ASSERT( FIELD_OFFSET(struct send_message_request, msg) == 28 );
  1629. C_ASSERT( FIELD_OFFSET(struct send_message_request, wparam) == 32 );
  1630. C_ASSERT( FIELD_OFFSET(struct send_message_request, lparam) == 40 );
  1631. C_ASSERT( FIELD_OFFSET(struct send_message_request, timeout) == 48 );
  1632. C_ASSERT( sizeof(struct send_message_request) == 56 );
  1633. C_ASSERT( FIELD_OFFSET(struct post_quit_message_request, exit_code) == 12 );
  1634. C_ASSERT( sizeof(struct post_quit_message_request) == 16 );
  1635. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, win) == 12 );
  1636. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, input) == 16 );
  1637. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_request, flags) == 48 );
  1638. C_ASSERT( sizeof(struct send_hardware_message_request) == 56 );
  1639. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_reply, wait) == 8 );
  1640. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_reply, prev_x) == 12 );
  1641. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_reply, prev_y) == 16 );
  1642. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_reply, new_x) == 20 );
  1643. C_ASSERT( FIELD_OFFSET(struct send_hardware_message_reply, new_y) == 24 );
  1644. C_ASSERT( sizeof(struct send_hardware_message_reply) == 32 );
  1645. C_ASSERT( FIELD_OFFSET(struct get_message_request, flags) == 12 );
  1646. C_ASSERT( FIELD_OFFSET(struct get_message_request, get_win) == 16 );
  1647. C_ASSERT( FIELD_OFFSET(struct get_message_request, get_first) == 20 );
  1648. C_ASSERT( FIELD_OFFSET(struct get_message_request, get_last) == 24 );
  1649. C_ASSERT( FIELD_OFFSET(struct get_message_request, hw_id) == 28 );
  1650. C_ASSERT( FIELD_OFFSET(struct get_message_request, wake_mask) == 32 );
  1651. C_ASSERT( FIELD_OFFSET(struct get_message_request, changed_mask) == 36 );
  1652. C_ASSERT( sizeof(struct get_message_request) == 40 );
  1653. C_ASSERT( FIELD_OFFSET(struct get_message_reply, win) == 8 );
  1654. C_ASSERT( FIELD_OFFSET(struct get_message_reply, msg) == 12 );
  1655. C_ASSERT( FIELD_OFFSET(struct get_message_reply, wparam) == 16 );
  1656. C_ASSERT( FIELD_OFFSET(struct get_message_reply, lparam) == 24 );
  1657. C_ASSERT( FIELD_OFFSET(struct get_message_reply, type) == 32 );
  1658. C_ASSERT( FIELD_OFFSET(struct get_message_reply, x) == 36 );
  1659. C_ASSERT( FIELD_OFFSET(struct get_message_reply, y) == 40 );
  1660. C_ASSERT( FIELD_OFFSET(struct get_message_reply, time) == 44 );
  1661. C_ASSERT( FIELD_OFFSET(struct get_message_reply, active_hooks) == 48 );
  1662. C_ASSERT( FIELD_OFFSET(struct get_message_reply, total) == 52 );
  1663. C_ASSERT( sizeof(struct get_message_reply) == 56 );
  1664. C_ASSERT( FIELD_OFFSET(struct reply_message_request, remove) == 12 );
  1665. C_ASSERT( FIELD_OFFSET(struct reply_message_request, result) == 16 );
  1666. C_ASSERT( sizeof(struct reply_message_request) == 24 );
  1667. C_ASSERT( FIELD_OFFSET(struct accept_hardware_message_request, hw_id) == 12 );
  1668. C_ASSERT( FIELD_OFFSET(struct accept_hardware_message_request, remove) == 16 );
  1669. C_ASSERT( sizeof(struct accept_hardware_message_request) == 24 );
  1670. C_ASSERT( FIELD_OFFSET(struct get_message_reply_request, cancel) == 12 );
  1671. C_ASSERT( sizeof(struct get_message_reply_request) == 16 );
  1672. C_ASSERT( FIELD_OFFSET(struct get_message_reply_reply, result) == 8 );
  1673. C_ASSERT( sizeof(struct get_message_reply_reply) == 16 );
  1674. C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, win) == 12 );
  1675. C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, msg) == 16 );
  1676. C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, rate) == 20 );
  1677. C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, id) == 24 );
  1678. C_ASSERT( FIELD_OFFSET(struct set_win_timer_request, lparam) == 32 );
  1679. C_ASSERT( sizeof(struct set_win_timer_request) == 40 );
  1680. C_ASSERT( FIELD_OFFSET(struct set_win_timer_reply, id) == 8 );
  1681. C_ASSERT( sizeof(struct set_win_timer_reply) == 16 );
  1682. C_ASSERT( FIELD_OFFSET(struct kill_win_timer_request, win) == 12 );
  1683. C_ASSERT( FIELD_OFFSET(struct kill_win_timer_request, id) == 16 );
  1684. C_ASSERT( FIELD_OFFSET(struct kill_win_timer_request, msg) == 24 );
  1685. C_ASSERT( sizeof(struct kill_win_timer_request) == 32 );
  1686. C_ASSERT( FIELD_OFFSET(struct is_window_hung_request, win) == 12 );
  1687. C_ASSERT( sizeof(struct is_window_hung_request) == 16 );
  1688. C_ASSERT( FIELD_OFFSET(struct is_window_hung_reply, is_hung) == 8 );
  1689. C_ASSERT( sizeof(struct is_window_hung_reply) == 16 );
  1690. C_ASSERT( FIELD_OFFSET(struct get_serial_info_request, handle) == 12 );
  1691. C_ASSERT( FIELD_OFFSET(struct get_serial_info_request, flags) == 16 );
  1692. C_ASSERT( sizeof(struct get_serial_info_request) == 24 );
  1693. C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, eventmask) == 8 );
  1694. C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, cookie) == 12 );
  1695. C_ASSERT( FIELD_OFFSET(struct get_serial_info_reply, pending_write) == 16 );
  1696. C_ASSERT( sizeof(struct get_serial_info_reply) == 24 );
  1697. C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, handle) == 12 );
  1698. C_ASSERT( FIELD_OFFSET(struct set_serial_info_request, flags) == 16 );
  1699. C_ASSERT( sizeof(struct set_serial_info_request) == 24 );
  1700. C_ASSERT( FIELD_OFFSET(struct register_async_request, type) == 12 );
  1701. C_ASSERT( FIELD_OFFSET(struct register_async_request, async) == 16 );
  1702. C_ASSERT( FIELD_OFFSET(struct register_async_request, count) == 56 );
  1703. C_ASSERT( sizeof(struct register_async_request) == 64 );
  1704. C_ASSERT( FIELD_OFFSET(struct cancel_async_request, handle) == 12 );
  1705. C_ASSERT( FIELD_OFFSET(struct cancel_async_request, iosb) == 16 );
  1706. C_ASSERT( FIELD_OFFSET(struct cancel_async_request, only_thread) == 24 );
  1707. C_ASSERT( sizeof(struct cancel_async_request) == 32 );
  1708. C_ASSERT( FIELD_OFFSET(struct get_async_result_request, user_arg) == 16 );
  1709. C_ASSERT( sizeof(struct get_async_result_request) == 24 );
  1710. C_ASSERT( FIELD_OFFSET(struct get_async_result_reply, size) == 8 );
  1711. C_ASSERT( sizeof(struct get_async_result_reply) == 16 );
  1712. C_ASSERT( FIELD_OFFSET(struct read_request, async) == 16 );
  1713. C_ASSERT( FIELD_OFFSET(struct read_request, pos) == 56 );
  1714. C_ASSERT( sizeof(struct read_request) == 64 );
  1715. C_ASSERT( FIELD_OFFSET(struct read_reply, wait) == 8 );
  1716. C_ASSERT( FIELD_OFFSET(struct read_reply, options) == 12 );
  1717. C_ASSERT( sizeof(struct read_reply) == 16 );
  1718. C_ASSERT( FIELD_OFFSET(struct write_request, async) == 16 );
  1719. C_ASSERT( FIELD_OFFSET(struct write_request, pos) == 56 );
  1720. C_ASSERT( sizeof(struct write_request) == 64 );
  1721. C_ASSERT( FIELD_OFFSET(struct write_reply, wait) == 8 );
  1722. C_ASSERT( FIELD_OFFSET(struct write_reply, options) == 12 );
  1723. C_ASSERT( FIELD_OFFSET(struct write_reply, size) == 16 );
  1724. C_ASSERT( sizeof(struct write_reply) == 24 );
  1725. C_ASSERT( FIELD_OFFSET(struct ioctl_request, code) == 12 );
  1726. C_ASSERT( FIELD_OFFSET(struct ioctl_request, async) == 16 );
  1727. C_ASSERT( FIELD_OFFSET(struct ioctl_request, input_buffer) == 56 );
  1728. C_ASSERT( FIELD_OFFSET(struct ioctl_request, output_buffer) == 64 );
  1729. C_ASSERT( sizeof(struct ioctl_request) == 72 );
  1730. C_ASSERT( FIELD_OFFSET(struct ioctl_reply, wait) == 8 );
  1731. C_ASSERT( FIELD_OFFSET(struct ioctl_reply, options) == 12 );
  1732. C_ASSERT( sizeof(struct ioctl_reply) == 16 );
  1733. C_ASSERT( FIELD_OFFSET(struct set_irp_result_request, handle) == 12 );
  1734. C_ASSERT( FIELD_OFFSET(struct set_irp_result_request, status) == 16 );
  1735. C_ASSERT( FIELD_OFFSET(struct set_irp_result_request, size) == 20 );
  1736. C_ASSERT( sizeof(struct set_irp_result_request) == 24 );
  1737. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, access) == 12 );
  1738. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, options) == 16 );
  1739. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, sharing) == 20 );
  1740. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, maxinstances) == 24 );
  1741. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, outsize) == 28 );
  1742. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, insize) == 32 );
  1743. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, timeout) == 40 );
  1744. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_request, flags) == 48 );
  1745. C_ASSERT( sizeof(struct create_named_pipe_request) == 56 );
  1746. C_ASSERT( FIELD_OFFSET(struct create_named_pipe_reply, handle) == 8 );
  1747. C_ASSERT( sizeof(struct create_named_pipe_reply) == 16 );
  1748. C_ASSERT( FIELD_OFFSET(struct set_named_pipe_info_request, handle) == 12 );
  1749. C_ASSERT( FIELD_OFFSET(struct set_named_pipe_info_request, flags) == 16 );
  1750. C_ASSERT( sizeof(struct set_named_pipe_info_request) == 24 );
  1751. C_ASSERT( FIELD_OFFSET(struct create_window_request, parent) == 12 );
  1752. C_ASSERT( FIELD_OFFSET(struct create_window_request, owner) == 16 );
  1753. C_ASSERT( FIELD_OFFSET(struct create_window_request, atom) == 20 );
  1754. C_ASSERT( FIELD_OFFSET(struct create_window_request, instance) == 24 );
  1755. C_ASSERT( FIELD_OFFSET(struct create_window_request, dpi) == 32 );
  1756. C_ASSERT( FIELD_OFFSET(struct create_window_request, awareness) == 36 );
  1757. C_ASSERT( sizeof(struct create_window_request) == 40 );
  1758. C_ASSERT( FIELD_OFFSET(struct create_window_reply, handle) == 8 );
  1759. C_ASSERT( FIELD_OFFSET(struct create_window_reply, parent) == 12 );
  1760. C_ASSERT( FIELD_OFFSET(struct create_window_reply, owner) == 16 );
  1761. C_ASSERT( FIELD_OFFSET(struct create_window_reply, extra) == 20 );
  1762. C_ASSERT( FIELD_OFFSET(struct create_window_reply, class_ptr) == 24 );
  1763. C_ASSERT( FIELD_OFFSET(struct create_window_reply, dpi) == 32 );
  1764. C_ASSERT( FIELD_OFFSET(struct create_window_reply, awareness) == 36 );
  1765. C_ASSERT( sizeof(struct create_window_reply) == 40 );
  1766. C_ASSERT( FIELD_OFFSET(struct destroy_window_request, handle) == 12 );
  1767. C_ASSERT( sizeof(struct destroy_window_request) == 16 );
  1768. C_ASSERT( FIELD_OFFSET(struct get_desktop_window_request, force) == 12 );
  1769. C_ASSERT( sizeof(struct get_desktop_window_request) == 16 );
  1770. C_ASSERT( FIELD_OFFSET(struct get_desktop_window_reply, top_window) == 8 );
  1771. C_ASSERT( FIELD_OFFSET(struct get_desktop_window_reply, msg_window) == 12 );
  1772. C_ASSERT( sizeof(struct get_desktop_window_reply) == 16 );
  1773. C_ASSERT( FIELD_OFFSET(struct set_window_owner_request, handle) == 12 );
  1774. C_ASSERT( FIELD_OFFSET(struct set_window_owner_request, owner) == 16 );
  1775. C_ASSERT( sizeof(struct set_window_owner_request) == 24 );
  1776. C_ASSERT( FIELD_OFFSET(struct set_window_owner_reply, full_owner) == 8 );
  1777. C_ASSERT( FIELD_OFFSET(struct set_window_owner_reply, prev_owner) == 12 );
  1778. C_ASSERT( sizeof(struct set_window_owner_reply) == 16 );
  1779. C_ASSERT( FIELD_OFFSET(struct get_window_info_request, handle) == 12 );
  1780. C_ASSERT( sizeof(struct get_window_info_request) == 16 );
  1781. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, full_handle) == 8 );
  1782. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, last_active) == 12 );
  1783. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, pid) == 16 );
  1784. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, tid) == 20 );
  1785. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, atom) == 24 );
  1786. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, is_unicode) == 28 );
  1787. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, dpi) == 32 );
  1788. C_ASSERT( FIELD_OFFSET(struct get_window_info_reply, awareness) == 36 );
  1789. C_ASSERT( sizeof(struct get_window_info_reply) == 40 );
  1790. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, flags) == 12 );
  1791. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, is_unicode) == 14 );
  1792. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, handle) == 16 );
  1793. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, style) == 20 );
  1794. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, ex_style) == 24 );
  1795. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, id) == 28 );
  1796. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, instance) == 32 );
  1797. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, user_data) == 40 );
  1798. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, extra_offset) == 48 );
  1799. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, extra_size) == 52 );
  1800. C_ASSERT( FIELD_OFFSET(struct set_window_info_request, extra_value) == 56 );
  1801. C_ASSERT( sizeof(struct set_window_info_request) == 64 );
  1802. C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_style) == 8 );
  1803. C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_ex_style) == 12 );
  1804. C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_instance) == 16 );
  1805. C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_user_data) == 24 );
  1806. C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_extra_value) == 32 );
  1807. C_ASSERT( FIELD_OFFSET(struct set_window_info_reply, old_id) == 40 );
  1808. C_ASSERT( sizeof(struct set_window_info_reply) == 48 );
  1809. C_ASSERT( FIELD_OFFSET(struct set_parent_request, handle) == 12 );
  1810. C_ASSERT( FIELD_OFFSET(struct set_parent_request, parent) == 16 );
  1811. C_ASSERT( sizeof(struct set_parent_request) == 24 );
  1812. C_ASSERT( FIELD_OFFSET(struct set_parent_reply, old_parent) == 8 );
  1813. C_ASSERT( FIELD_OFFSET(struct set_parent_reply, full_parent) == 12 );
  1814. C_ASSERT( FIELD_OFFSET(struct set_parent_reply, dpi) == 16 );
  1815. C_ASSERT( FIELD_OFFSET(struct set_parent_reply, awareness) == 20 );
  1816. C_ASSERT( sizeof(struct set_parent_reply) == 24 );
  1817. C_ASSERT( FIELD_OFFSET(struct get_window_parents_request, handle) == 12 );
  1818. C_ASSERT( sizeof(struct get_window_parents_request) == 16 );
  1819. C_ASSERT( FIELD_OFFSET(struct get_window_parents_reply, count) == 8 );
  1820. C_ASSERT( sizeof(struct get_window_parents_reply) == 16 );
  1821. C_ASSERT( FIELD_OFFSET(struct get_window_children_request, desktop) == 12 );
  1822. C_ASSERT( FIELD_OFFSET(struct get_window_children_request, parent) == 16 );
  1823. C_ASSERT( FIELD_OFFSET(struct get_window_children_request, atom) == 20 );
  1824. C_ASSERT( FIELD_OFFSET(struct get_window_children_request, tid) == 24 );
  1825. C_ASSERT( sizeof(struct get_window_children_request) == 32 );
  1826. C_ASSERT( FIELD_OFFSET(struct get_window_children_reply, count) == 8 );
  1827. C_ASSERT( sizeof(struct get_window_children_reply) == 16 );
  1828. C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_request, parent) == 12 );
  1829. C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_request, x) == 16 );
  1830. C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_request, y) == 20 );
  1831. C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_request, dpi) == 24 );
  1832. C_ASSERT( sizeof(struct get_window_children_from_point_request) == 32 );
  1833. C_ASSERT( FIELD_OFFSET(struct get_window_children_from_point_reply, count) == 8 );
  1834. C_ASSERT( sizeof(struct get_window_children_from_point_reply) == 16 );
  1835. C_ASSERT( FIELD_OFFSET(struct get_window_tree_request, handle) == 12 );
  1836. C_ASSERT( sizeof(struct get_window_tree_request) == 16 );
  1837. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, parent) == 8 );
  1838. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, owner) == 12 );
  1839. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, next_sibling) == 16 );
  1840. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, prev_sibling) == 20 );
  1841. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, first_sibling) == 24 );
  1842. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, last_sibling) == 28 );
  1843. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, first_child) == 32 );
  1844. C_ASSERT( FIELD_OFFSET(struct get_window_tree_reply, last_child) == 36 );
  1845. C_ASSERT( sizeof(struct get_window_tree_reply) == 40 );
  1846. C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, swp_flags) == 12 );
  1847. C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, paint_flags) == 14 );
  1848. C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, handle) == 16 );
  1849. C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, previous) == 20 );
  1850. C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, window) == 24 );
  1851. C_ASSERT( FIELD_OFFSET(struct set_window_pos_request, client) == 40 );
  1852. C_ASSERT( sizeof(struct set_window_pos_request) == 56 );
  1853. C_ASSERT( FIELD_OFFSET(struct set_window_pos_reply, new_style) == 8 );
  1854. C_ASSERT( FIELD_OFFSET(struct set_window_pos_reply, new_ex_style) == 12 );
  1855. C_ASSERT( FIELD_OFFSET(struct set_window_pos_reply, surface_win) == 16 );
  1856. C_ASSERT( FIELD_OFFSET(struct set_window_pos_reply, needs_update) == 20 );
  1857. C_ASSERT( sizeof(struct set_window_pos_reply) == 24 );
  1858. C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_request, handle) == 12 );
  1859. C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_request, relative) == 16 );
  1860. C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_request, dpi) == 20 );
  1861. C_ASSERT( sizeof(struct get_window_rectangles_request) == 24 );
  1862. C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_reply, window) == 8 );
  1863. C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_reply, client) == 24 );
  1864. C_ASSERT( sizeof(struct get_window_rectangles_reply) == 40 );
  1865. C_ASSERT( FIELD_OFFSET(struct get_window_text_request, handle) == 12 );
  1866. C_ASSERT( sizeof(struct get_window_text_request) == 16 );
  1867. C_ASSERT( FIELD_OFFSET(struct get_window_text_reply, length) == 8 );
  1868. C_ASSERT( sizeof(struct get_window_text_reply) == 16 );
  1869. C_ASSERT( FIELD_OFFSET(struct set_window_text_request, handle) == 12 );
  1870. C_ASSERT( sizeof(struct set_window_text_request) == 16 );
  1871. C_ASSERT( FIELD_OFFSET(struct get_windows_offset_request, from) == 12 );
  1872. C_ASSERT( FIELD_OFFSET(struct get_windows_offset_request, to) == 16 );
  1873. C_ASSERT( FIELD_OFFSET(struct get_windows_offset_request, dpi) == 20 );
  1874. C_ASSERT( sizeof(struct get_windows_offset_request) == 24 );
  1875. C_ASSERT( FIELD_OFFSET(struct get_windows_offset_reply, x) == 8 );
  1876. C_ASSERT( FIELD_OFFSET(struct get_windows_offset_reply, y) == 12 );
  1877. C_ASSERT( FIELD_OFFSET(struct get_windows_offset_reply, mirror) == 16 );
  1878. C_ASSERT( sizeof(struct get_windows_offset_reply) == 24 );
  1879. C_ASSERT( FIELD_OFFSET(struct get_visible_region_request, window) == 12 );
  1880. C_ASSERT( FIELD_OFFSET(struct get_visible_region_request, flags) == 16 );
  1881. C_ASSERT( sizeof(struct get_visible_region_request) == 24 );
  1882. C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, top_win) == 8 );
  1883. C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, top_rect) == 12 );
  1884. C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, win_rect) == 28 );
  1885. C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, paint_flags) == 44 );
  1886. C_ASSERT( FIELD_OFFSET(struct get_visible_region_reply, total_size) == 48 );
  1887. C_ASSERT( sizeof(struct get_visible_region_reply) == 56 );
  1888. C_ASSERT( FIELD_OFFSET(struct get_surface_region_request, window) == 12 );
  1889. C_ASSERT( sizeof(struct get_surface_region_request) == 16 );
  1890. C_ASSERT( FIELD_OFFSET(struct get_surface_region_reply, visible_rect) == 8 );
  1891. C_ASSERT( FIELD_OFFSET(struct get_surface_region_reply, total_size) == 24 );
  1892. C_ASSERT( sizeof(struct get_surface_region_reply) == 32 );
  1893. C_ASSERT( FIELD_OFFSET(struct get_window_region_request, window) == 12 );
  1894. C_ASSERT( sizeof(struct get_window_region_request) == 16 );
  1895. C_ASSERT( FIELD_OFFSET(struct get_window_region_reply, total_size) == 8 );
  1896. C_ASSERT( sizeof(struct get_window_region_reply) == 16 );
  1897. C_ASSERT( FIELD_OFFSET(struct set_window_region_request, window) == 12 );
  1898. C_ASSERT( FIELD_OFFSET(struct set_window_region_request, redraw) == 16 );
  1899. C_ASSERT( sizeof(struct set_window_region_request) == 24 );
  1900. C_ASSERT( FIELD_OFFSET(struct set_layer_region_request, window) == 12 );
  1901. C_ASSERT( sizeof(struct set_layer_region_request) == 16 );
  1902. C_ASSERT( FIELD_OFFSET(struct get_update_region_request, window) == 12 );
  1903. C_ASSERT( FIELD_OFFSET(struct get_update_region_request, from_child) == 16 );
  1904. C_ASSERT( FIELD_OFFSET(struct get_update_region_request, flags) == 20 );
  1905. C_ASSERT( sizeof(struct get_update_region_request) == 24 );
  1906. C_ASSERT( FIELD_OFFSET(struct get_update_region_reply, child) == 8 );
  1907. C_ASSERT( FIELD_OFFSET(struct get_update_region_reply, flags) == 12 );
  1908. C_ASSERT( FIELD_OFFSET(struct get_update_region_reply, total_size) == 16 );
  1909. C_ASSERT( sizeof(struct get_update_region_reply) == 24 );
  1910. C_ASSERT( FIELD_OFFSET(struct update_window_zorder_request, window) == 12 );
  1911. C_ASSERT( FIELD_OFFSET(struct update_window_zorder_request, rect) == 16 );
  1912. C_ASSERT( sizeof(struct update_window_zorder_request) == 32 );
  1913. C_ASSERT( FIELD_OFFSET(struct redraw_window_request, window) == 12 );
  1914. C_ASSERT( FIELD_OFFSET(struct redraw_window_request, flags) == 16 );
  1915. C_ASSERT( sizeof(struct redraw_window_request) == 24 );
  1916. C_ASSERT( FIELD_OFFSET(struct set_window_property_request, window) == 12 );
  1917. C_ASSERT( FIELD_OFFSET(struct set_window_property_request, data) == 16 );
  1918. C_ASSERT( FIELD_OFFSET(struct set_window_property_request, atom) == 24 );
  1919. C_ASSERT( sizeof(struct set_window_property_request) == 32 );
  1920. C_ASSERT( FIELD_OFFSET(struct remove_window_property_request, window) == 12 );
  1921. C_ASSERT( FIELD_OFFSET(struct remove_window_property_request, atom) == 16 );
  1922. C_ASSERT( sizeof(struct remove_window_property_request) == 24 );
  1923. C_ASSERT( FIELD_OFFSET(struct remove_window_property_reply, data) == 8 );
  1924. C_ASSERT( sizeof(struct remove_window_property_reply) == 16 );
  1925. C_ASSERT( FIELD_OFFSET(struct get_window_property_request, window) == 12 );
  1926. C_ASSERT( FIELD_OFFSET(struct get_window_property_request, atom) == 16 );
  1927. C_ASSERT( sizeof(struct get_window_property_request) == 24 );
  1928. C_ASSERT( FIELD_OFFSET(struct get_window_property_reply, data) == 8 );
  1929. C_ASSERT( sizeof(struct get_window_property_reply) == 16 );
  1930. C_ASSERT( FIELD_OFFSET(struct get_window_properties_request, window) == 12 );
  1931. C_ASSERT( sizeof(struct get_window_properties_request) == 16 );
  1932. C_ASSERT( FIELD_OFFSET(struct get_window_properties_reply, total) == 8 );
  1933. C_ASSERT( sizeof(struct get_window_properties_reply) == 16 );
  1934. C_ASSERT( FIELD_OFFSET(struct create_winstation_request, flags) == 12 );
  1935. C_ASSERT( FIELD_OFFSET(struct create_winstation_request, access) == 16 );
  1936. C_ASSERT( FIELD_OFFSET(struct create_winstation_request, attributes) == 20 );
  1937. C_ASSERT( FIELD_OFFSET(struct create_winstation_request, rootdir) == 24 );
  1938. C_ASSERT( sizeof(struct create_winstation_request) == 32 );
  1939. C_ASSERT( FIELD_OFFSET(struct create_winstation_reply, handle) == 8 );
  1940. C_ASSERT( sizeof(struct create_winstation_reply) == 16 );
  1941. C_ASSERT( FIELD_OFFSET(struct open_winstation_request, access) == 12 );
  1942. C_ASSERT( FIELD_OFFSET(struct open_winstation_request, attributes) == 16 );
  1943. C_ASSERT( FIELD_OFFSET(struct open_winstation_request, rootdir) == 20 );
  1944. C_ASSERT( sizeof(struct open_winstation_request) == 24 );
  1945. C_ASSERT( FIELD_OFFSET(struct open_winstation_reply, handle) == 8 );
  1946. C_ASSERT( sizeof(struct open_winstation_reply) == 16 );
  1947. C_ASSERT( FIELD_OFFSET(struct close_winstation_request, handle) == 12 );
  1948. C_ASSERT( sizeof(struct close_winstation_request) == 16 );
  1949. C_ASSERT( sizeof(struct get_process_winstation_request) == 16 );
  1950. C_ASSERT( FIELD_OFFSET(struct get_process_winstation_reply, handle) == 8 );
  1951. C_ASSERT( sizeof(struct get_process_winstation_reply) == 16 );
  1952. C_ASSERT( FIELD_OFFSET(struct set_process_winstation_request, handle) == 12 );
  1953. C_ASSERT( sizeof(struct set_process_winstation_request) == 16 );
  1954. C_ASSERT( FIELD_OFFSET(struct enum_winstation_request, index) == 12 );
  1955. C_ASSERT( sizeof(struct enum_winstation_request) == 16 );
  1956. C_ASSERT( FIELD_OFFSET(struct enum_winstation_reply, next) == 8 );
  1957. C_ASSERT( sizeof(struct enum_winstation_reply) == 16 );
  1958. C_ASSERT( FIELD_OFFSET(struct create_desktop_request, flags) == 12 );
  1959. C_ASSERT( FIELD_OFFSET(struct create_desktop_request, access) == 16 );
  1960. C_ASSERT( FIELD_OFFSET(struct create_desktop_request, attributes) == 20 );
  1961. C_ASSERT( sizeof(struct create_desktop_request) == 24 );
  1962. C_ASSERT( FIELD_OFFSET(struct create_desktop_reply, handle) == 8 );
  1963. C_ASSERT( sizeof(struct create_desktop_reply) == 16 );
  1964. C_ASSERT( FIELD_OFFSET(struct open_desktop_request, winsta) == 12 );
  1965. C_ASSERT( FIELD_OFFSET(struct open_desktop_request, flags) == 16 );
  1966. C_ASSERT( FIELD_OFFSET(struct open_desktop_request, access) == 20 );
  1967. C_ASSERT( FIELD_OFFSET(struct open_desktop_request, attributes) == 24 );
  1968. C_ASSERT( sizeof(struct open_desktop_request) == 32 );
  1969. C_ASSERT( FIELD_OFFSET(struct open_desktop_reply, handle) == 8 );
  1970. C_ASSERT( sizeof(struct open_desktop_reply) == 16 );
  1971. C_ASSERT( FIELD_OFFSET(struct open_input_desktop_request, flags) == 12 );
  1972. C_ASSERT( FIELD_OFFSET(struct open_input_desktop_request, access) == 16 );
  1973. C_ASSERT( FIELD_OFFSET(struct open_input_desktop_request, attributes) == 20 );
  1974. C_ASSERT( sizeof(struct open_input_desktop_request) == 24 );
  1975. C_ASSERT( FIELD_OFFSET(struct open_input_desktop_reply, handle) == 8 );
  1976. C_ASSERT( sizeof(struct open_input_desktop_reply) == 16 );
  1977. C_ASSERT( FIELD_OFFSET(struct close_desktop_request, handle) == 12 );
  1978. C_ASSERT( sizeof(struct close_desktop_request) == 16 );
  1979. C_ASSERT( FIELD_OFFSET(struct get_thread_desktop_request, tid) == 12 );
  1980. C_ASSERT( sizeof(struct get_thread_desktop_request) == 16 );
  1981. C_ASSERT( FIELD_OFFSET(struct get_thread_desktop_reply, handle) == 8 );
  1982. C_ASSERT( sizeof(struct get_thread_desktop_reply) == 16 );
  1983. C_ASSERT( FIELD_OFFSET(struct set_thread_desktop_request, handle) == 12 );
  1984. C_ASSERT( sizeof(struct set_thread_desktop_request) == 16 );
  1985. C_ASSERT( FIELD_OFFSET(struct enum_desktop_request, winstation) == 12 );
  1986. C_ASSERT( FIELD_OFFSET(struct enum_desktop_request, index) == 16 );
  1987. C_ASSERT( sizeof(struct enum_desktop_request) == 24 );
  1988. C_ASSERT( FIELD_OFFSET(struct enum_desktop_reply, next) == 8 );
  1989. C_ASSERT( sizeof(struct enum_desktop_reply) == 16 );
  1990. C_ASSERT( FIELD_OFFSET(struct set_user_object_info_request, handle) == 12 );
  1991. C_ASSERT( FIELD_OFFSET(struct set_user_object_info_request, flags) == 16 );
  1992. C_ASSERT( FIELD_OFFSET(struct set_user_object_info_request, obj_flags) == 20 );
  1993. C_ASSERT( sizeof(struct set_user_object_info_request) == 24 );
  1994. C_ASSERT( FIELD_OFFSET(struct set_user_object_info_reply, is_desktop) == 8 );
  1995. C_ASSERT( FIELD_OFFSET(struct set_user_object_info_reply, old_obj_flags) == 12 );
  1996. C_ASSERT( sizeof(struct set_user_object_info_reply) == 16 );
  1997. C_ASSERT( FIELD_OFFSET(struct register_hotkey_request, window) == 12 );
  1998. C_ASSERT( FIELD_OFFSET(struct register_hotkey_request, id) == 16 );
  1999. C_ASSERT( FIELD_OFFSET(struct register_hotkey_request, flags) == 20 );
  2000. C_ASSERT( FIELD_OFFSET(struct register_hotkey_request, vkey) == 24 );
  2001. C_ASSERT( sizeof(struct register_hotkey_request) == 32 );
  2002. C_ASSERT( FIELD_OFFSET(struct register_hotkey_reply, replaced) == 8 );
  2003. C_ASSERT( FIELD_OFFSET(struct register_hotkey_reply, flags) == 12 );
  2004. C_ASSERT( FIELD_OFFSET(struct register_hotkey_reply, vkey) == 16 );
  2005. C_ASSERT( sizeof(struct register_hotkey_reply) == 24 );
  2006. C_ASSERT( FIELD_OFFSET(struct unregister_hotkey_request, window) == 12 );
  2007. C_ASSERT( FIELD_OFFSET(struct unregister_hotkey_request, id) == 16 );
  2008. C_ASSERT( sizeof(struct unregister_hotkey_request) == 24 );
  2009. C_ASSERT( FIELD_OFFSET(struct unregister_hotkey_reply, flags) == 8 );
  2010. C_ASSERT( FIELD_OFFSET(struct unregister_hotkey_reply, vkey) == 12 );
  2011. C_ASSERT( sizeof(struct unregister_hotkey_reply) == 16 );
  2012. C_ASSERT( FIELD_OFFSET(struct attach_thread_input_request, tid_from) == 12 );
  2013. C_ASSERT( FIELD_OFFSET(struct attach_thread_input_request, tid_to) == 16 );
  2014. C_ASSERT( FIELD_OFFSET(struct attach_thread_input_request, attach) == 20 );
  2015. C_ASSERT( sizeof(struct attach_thread_input_request) == 24 );
  2016. C_ASSERT( FIELD_OFFSET(struct get_thread_input_request, tid) == 12 );
  2017. C_ASSERT( sizeof(struct get_thread_input_request) == 16 );
  2018. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, focus) == 8 );
  2019. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, capture) == 12 );
  2020. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, active) == 16 );
  2021. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, foreground) == 20 );
  2022. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, menu_owner) == 24 );
  2023. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, move_size) == 28 );
  2024. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, caret) == 32 );
  2025. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, cursor) == 36 );
  2026. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, show_count) == 40 );
  2027. C_ASSERT( FIELD_OFFSET(struct get_thread_input_reply, rect) == 44 );
  2028. C_ASSERT( sizeof(struct get_thread_input_reply) == 64 );
  2029. C_ASSERT( sizeof(struct get_last_input_time_request) == 16 );
  2030. C_ASSERT( FIELD_OFFSET(struct get_last_input_time_reply, time) == 8 );
  2031. C_ASSERT( sizeof(struct get_last_input_time_reply) == 16 );
  2032. C_ASSERT( FIELD_OFFSET(struct get_key_state_request, tid) == 12 );
  2033. C_ASSERT( FIELD_OFFSET(struct get_key_state_request, key) == 16 );
  2034. C_ASSERT( sizeof(struct get_key_state_request) == 24 );
  2035. C_ASSERT( FIELD_OFFSET(struct get_key_state_reply, state) == 8 );
  2036. C_ASSERT( sizeof(struct get_key_state_reply) == 16 );
  2037. C_ASSERT( FIELD_OFFSET(struct set_key_state_request, tid) == 12 );
  2038. C_ASSERT( FIELD_OFFSET(struct set_key_state_request, async) == 16 );
  2039. C_ASSERT( sizeof(struct set_key_state_request) == 24 );
  2040. C_ASSERT( FIELD_OFFSET(struct set_foreground_window_request, handle) == 12 );
  2041. C_ASSERT( sizeof(struct set_foreground_window_request) == 16 );
  2042. C_ASSERT( FIELD_OFFSET(struct set_foreground_window_reply, previous) == 8 );
  2043. C_ASSERT( FIELD_OFFSET(struct set_foreground_window_reply, send_msg_old) == 12 );
  2044. C_ASSERT( FIELD_OFFSET(struct set_foreground_window_reply, send_msg_new) == 16 );
  2045. C_ASSERT( sizeof(struct set_foreground_window_reply) == 24 );
  2046. C_ASSERT( FIELD_OFFSET(struct set_focus_window_request, handle) == 12 );
  2047. C_ASSERT( sizeof(struct set_focus_window_request) == 16 );
  2048. C_ASSERT( FIELD_OFFSET(struct set_focus_window_reply, previous) == 8 );
  2049. C_ASSERT( sizeof(struct set_focus_window_reply) == 16 );
  2050. C_ASSERT( FIELD_OFFSET(struct set_active_window_request, handle) == 12 );
  2051. C_ASSERT( sizeof(struct set_active_window_request) == 16 );
  2052. C_ASSERT( FIELD_OFFSET(struct set_active_window_reply, previous) == 8 );
  2053. C_ASSERT( sizeof(struct set_active_window_reply) == 16 );
  2054. C_ASSERT( FIELD_OFFSET(struct set_capture_window_request, handle) == 12 );
  2055. C_ASSERT( FIELD_OFFSET(struct set_capture_window_request, flags) == 16 );
  2056. C_ASSERT( sizeof(struct set_capture_window_request) == 24 );
  2057. C_ASSERT( FIELD_OFFSET(struct set_capture_window_reply, previous) == 8 );
  2058. C_ASSERT( FIELD_OFFSET(struct set_capture_window_reply, full_handle) == 12 );
  2059. C_ASSERT( sizeof(struct set_capture_window_reply) == 16 );
  2060. C_ASSERT( FIELD_OFFSET(struct set_caret_window_request, handle) == 12 );
  2061. C_ASSERT( FIELD_OFFSET(struct set_caret_window_request, width) == 16 );
  2062. C_ASSERT( FIELD_OFFSET(struct set_caret_window_request, height) == 20 );
  2063. C_ASSERT( sizeof(struct set_caret_window_request) == 24 );
  2064. C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, previous) == 8 );
  2065. C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, old_rect) == 12 );
  2066. C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, old_hide) == 28 );
  2067. C_ASSERT( FIELD_OFFSET(struct set_caret_window_reply, old_state) == 32 );
  2068. C_ASSERT( sizeof(struct set_caret_window_reply) == 40 );
  2069. C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, flags) == 12 );
  2070. C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, handle) == 16 );
  2071. C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, x) == 20 );
  2072. C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, y) == 24 );
  2073. C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, hide) == 28 );
  2074. C_ASSERT( FIELD_OFFSET(struct set_caret_info_request, state) == 32 );
  2075. C_ASSERT( sizeof(struct set_caret_info_request) == 40 );
  2076. C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, full_handle) == 8 );
  2077. C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, old_rect) == 12 );
  2078. C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, old_hide) == 28 );
  2079. C_ASSERT( FIELD_OFFSET(struct set_caret_info_reply, old_state) == 32 );
  2080. C_ASSERT( sizeof(struct set_caret_info_reply) == 40 );
  2081. C_ASSERT( FIELD_OFFSET(struct set_hook_request, id) == 12 );
  2082. C_ASSERT( FIELD_OFFSET(struct set_hook_request, pid) == 16 );
  2083. C_ASSERT( FIELD_OFFSET(struct set_hook_request, tid) == 20 );
  2084. C_ASSERT( FIELD_OFFSET(struct set_hook_request, event_min) == 24 );
  2085. C_ASSERT( FIELD_OFFSET(struct set_hook_request, event_max) == 28 );
  2086. C_ASSERT( FIELD_OFFSET(struct set_hook_request, proc) == 32 );
  2087. C_ASSERT( FIELD_OFFSET(struct set_hook_request, flags) == 40 );
  2088. C_ASSERT( FIELD_OFFSET(struct set_hook_request, unicode) == 44 );
  2089. C_ASSERT( sizeof(struct set_hook_request) == 48 );
  2090. C_ASSERT( FIELD_OFFSET(struct set_hook_reply, handle) == 8 );
  2091. C_ASSERT( FIELD_OFFSET(struct set_hook_reply, active_hooks) == 12 );
  2092. C_ASSERT( sizeof(struct set_hook_reply) == 16 );
  2093. C_ASSERT( FIELD_OFFSET(struct remove_hook_request, handle) == 12 );
  2094. C_ASSERT( FIELD_OFFSET(struct remove_hook_request, proc) == 16 );
  2095. C_ASSERT( FIELD_OFFSET(struct remove_hook_request, id) == 24 );
  2096. C_ASSERT( sizeof(struct remove_hook_request) == 32 );
  2097. C_ASSERT( FIELD_OFFSET(struct remove_hook_reply, active_hooks) == 8 );
  2098. C_ASSERT( sizeof(struct remove_hook_reply) == 16 );
  2099. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, id) == 12 );
  2100. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, event) == 16 );
  2101. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, window) == 20 );
  2102. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, object_id) == 24 );
  2103. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_request, child_id) == 28 );
  2104. C_ASSERT( sizeof(struct start_hook_chain_request) == 32 );
  2105. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, handle) == 8 );
  2106. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, pid) == 12 );
  2107. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, tid) == 16 );
  2108. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, unicode) == 20 );
  2109. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, proc) == 24 );
  2110. C_ASSERT( FIELD_OFFSET(struct start_hook_chain_reply, active_hooks) == 32 );
  2111. C_ASSERT( sizeof(struct start_hook_chain_reply) == 40 );
  2112. C_ASSERT( FIELD_OFFSET(struct finish_hook_chain_request, id) == 12 );
  2113. C_ASSERT( sizeof(struct finish_hook_chain_request) == 16 );
  2114. C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, handle) == 12 );
  2115. C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, get_next) == 16 );
  2116. C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, event) == 20 );
  2117. C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, window) == 24 );
  2118. C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, object_id) == 28 );
  2119. C_ASSERT( FIELD_OFFSET(struct get_hook_info_request, child_id) == 32 );
  2120. C_ASSERT( sizeof(struct get_hook_info_request) == 40 );
  2121. C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, handle) == 8 );
  2122. C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, id) == 12 );
  2123. C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, pid) == 16 );
  2124. C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, tid) == 20 );
  2125. C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, proc) == 24 );
  2126. C_ASSERT( FIELD_OFFSET(struct get_hook_info_reply, unicode) == 32 );
  2127. C_ASSERT( sizeof(struct get_hook_info_reply) == 40 );
  2128. C_ASSERT( FIELD_OFFSET(struct create_class_request, local) == 12 );
  2129. C_ASSERT( FIELD_OFFSET(struct create_class_request, atom) == 16 );
  2130. C_ASSERT( FIELD_OFFSET(struct create_class_request, style) == 20 );
  2131. C_ASSERT( FIELD_OFFSET(struct create_class_request, instance) == 24 );
  2132. C_ASSERT( FIELD_OFFSET(struct create_class_request, extra) == 32 );
  2133. C_ASSERT( FIELD_OFFSET(struct create_class_request, win_extra) == 36 );
  2134. C_ASSERT( FIELD_OFFSET(struct create_class_request, client_ptr) == 40 );
  2135. C_ASSERT( FIELD_OFFSET(struct create_class_request, name_offset) == 48 );
  2136. C_ASSERT( sizeof(struct create_class_request) == 56 );
  2137. C_ASSERT( FIELD_OFFSET(struct create_class_reply, atom) == 8 );
  2138. C_ASSERT( sizeof(struct create_class_reply) == 16 );
  2139. C_ASSERT( FIELD_OFFSET(struct destroy_class_request, atom) == 12 );
  2140. C_ASSERT( FIELD_OFFSET(struct destroy_class_request, instance) == 16 );
  2141. C_ASSERT( sizeof(struct destroy_class_request) == 24 );
  2142. C_ASSERT( FIELD_OFFSET(struct destroy_class_reply, client_ptr) == 8 );
  2143. C_ASSERT( sizeof(struct destroy_class_reply) == 16 );
  2144. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, window) == 12 );
  2145. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, flags) == 16 );
  2146. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, atom) == 20 );
  2147. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, style) == 24 );
  2148. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, win_extra) == 28 );
  2149. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, instance) == 32 );
  2150. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, extra_offset) == 40 );
  2151. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, extra_size) == 44 );
  2152. C_ASSERT( FIELD_OFFSET(struct set_class_info_request, extra_value) == 48 );
  2153. C_ASSERT( sizeof(struct set_class_info_request) == 56 );
  2154. C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_atom) == 8 );
  2155. C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, base_atom) == 12 );
  2156. C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_instance) == 16 );
  2157. C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_extra_value) == 24 );
  2158. C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_style) == 32 );
  2159. C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_extra) == 36 );
  2160. C_ASSERT( FIELD_OFFSET(struct set_class_info_reply, old_win_extra) == 40 );
  2161. C_ASSERT( sizeof(struct set_class_info_reply) == 48 );
  2162. C_ASSERT( FIELD_OFFSET(struct open_clipboard_request, window) == 12 );
  2163. C_ASSERT( sizeof(struct open_clipboard_request) == 16 );
  2164. C_ASSERT( FIELD_OFFSET(struct open_clipboard_reply, owner) == 8 );
  2165. C_ASSERT( sizeof(struct open_clipboard_reply) == 16 );
  2166. C_ASSERT( sizeof(struct close_clipboard_request) == 16 );
  2167. C_ASSERT( FIELD_OFFSET(struct close_clipboard_reply, viewer) == 8 );
  2168. C_ASSERT( FIELD_OFFSET(struct close_clipboard_reply, owner) == 12 );
  2169. C_ASSERT( sizeof(struct close_clipboard_reply) == 16 );
  2170. C_ASSERT( sizeof(struct empty_clipboard_request) == 16 );
  2171. C_ASSERT( FIELD_OFFSET(struct set_clipboard_data_request, format) == 12 );
  2172. C_ASSERT( FIELD_OFFSET(struct set_clipboard_data_request, lcid) == 16 );
  2173. C_ASSERT( sizeof(struct set_clipboard_data_request) == 24 );
  2174. C_ASSERT( FIELD_OFFSET(struct set_clipboard_data_reply, seqno) == 8 );
  2175. C_ASSERT( sizeof(struct set_clipboard_data_reply) == 16 );
  2176. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_request, format) == 12 );
  2177. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_request, render) == 16 );
  2178. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_request, cached) == 20 );
  2179. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_request, seqno) == 24 );
  2180. C_ASSERT( sizeof(struct get_clipboard_data_request) == 32 );
  2181. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_reply, from) == 8 );
  2182. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_reply, owner) == 12 );
  2183. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_reply, seqno) == 16 );
  2184. C_ASSERT( FIELD_OFFSET(struct get_clipboard_data_reply, total) == 20 );
  2185. C_ASSERT( sizeof(struct get_clipboard_data_reply) == 24 );
  2186. C_ASSERT( FIELD_OFFSET(struct get_clipboard_formats_request, format) == 12 );
  2187. C_ASSERT( sizeof(struct get_clipboard_formats_request) == 16 );
  2188. C_ASSERT( FIELD_OFFSET(struct get_clipboard_formats_reply, count) == 8 );
  2189. C_ASSERT( sizeof(struct get_clipboard_formats_reply) == 16 );
  2190. C_ASSERT( FIELD_OFFSET(struct enum_clipboard_formats_request, previous) == 12 );
  2191. C_ASSERT( sizeof(struct enum_clipboard_formats_request) == 16 );
  2192. C_ASSERT( FIELD_OFFSET(struct enum_clipboard_formats_reply, format) == 8 );
  2193. C_ASSERT( sizeof(struct enum_clipboard_formats_reply) == 16 );
  2194. C_ASSERT( FIELD_OFFSET(struct release_clipboard_request, owner) == 12 );
  2195. C_ASSERT( sizeof(struct release_clipboard_request) == 16 );
  2196. C_ASSERT( FIELD_OFFSET(struct release_clipboard_reply, viewer) == 8 );
  2197. C_ASSERT( FIELD_OFFSET(struct release_clipboard_reply, owner) == 12 );
  2198. C_ASSERT( sizeof(struct release_clipboard_reply) == 16 );
  2199. C_ASSERT( sizeof(struct get_clipboard_info_request) == 16 );
  2200. C_ASSERT( FIELD_OFFSET(struct get_clipboard_info_reply, window) == 8 );
  2201. C_ASSERT( FIELD_OFFSET(struct get_clipboard_info_reply, owner) == 12 );
  2202. C_ASSERT( FIELD_OFFSET(struct get_clipboard_info_reply, viewer) == 16 );
  2203. C_ASSERT( FIELD_OFFSET(struct get_clipboard_info_reply, seqno) == 20 );
  2204. C_ASSERT( sizeof(struct get_clipboard_info_reply) == 24 );
  2205. C_ASSERT( FIELD_OFFSET(struct set_clipboard_viewer_request, viewer) == 12 );
  2206. C_ASSERT( FIELD_OFFSET(struct set_clipboard_viewer_request, previous) == 16 );
  2207. C_ASSERT( sizeof(struct set_clipboard_viewer_request) == 24 );
  2208. C_ASSERT( FIELD_OFFSET(struct set_clipboard_viewer_reply, old_viewer) == 8 );
  2209. C_ASSERT( FIELD_OFFSET(struct set_clipboard_viewer_reply, owner) == 12 );
  2210. C_ASSERT( sizeof(struct set_clipboard_viewer_reply) == 16 );
  2211. C_ASSERT( FIELD_OFFSET(struct add_clipboard_listener_request, window) == 12 );
  2212. C_ASSERT( sizeof(struct add_clipboard_listener_request) == 16 );
  2213. C_ASSERT( FIELD_OFFSET(struct remove_clipboard_listener_request, window) == 12 );
  2214. C_ASSERT( sizeof(struct remove_clipboard_listener_request) == 16 );
  2215. C_ASSERT( FIELD_OFFSET(struct open_token_request, handle) == 12 );
  2216. C_ASSERT( FIELD_OFFSET(struct open_token_request, access) == 16 );
  2217. C_ASSERT( FIELD_OFFSET(struct open_token_request, attributes) == 20 );
  2218. C_ASSERT( FIELD_OFFSET(struct open_token_request, flags) == 24 );
  2219. C_ASSERT( sizeof(struct open_token_request) == 32 );
  2220. C_ASSERT( FIELD_OFFSET(struct open_token_reply, token) == 8 );
  2221. C_ASSERT( sizeof(struct open_token_reply) == 16 );
  2222. C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, flags) == 12 );
  2223. C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, shell_window) == 16 );
  2224. C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, shell_listview) == 20 );
  2225. C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, progman_window) == 24 );
  2226. C_ASSERT( FIELD_OFFSET(struct set_global_windows_request, taskman_window) == 28 );
  2227. C_ASSERT( sizeof(struct set_global_windows_request) == 32 );
  2228. C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_shell_window) == 8 );
  2229. C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_shell_listview) == 12 );
  2230. C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_progman_window) == 16 );
  2231. C_ASSERT( FIELD_OFFSET(struct set_global_windows_reply, old_taskman_window) == 20 );
  2232. C_ASSERT( sizeof(struct set_global_windows_reply) == 24 );
  2233. C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_request, handle) == 12 );
  2234. C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_request, disable_all) == 16 );
  2235. C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_request, get_modified_state) == 20 );
  2236. C_ASSERT( sizeof(struct adjust_token_privileges_request) == 24 );
  2237. C_ASSERT( FIELD_OFFSET(struct adjust_token_privileges_reply, len) == 8 );
  2238. C_ASSERT( sizeof(struct adjust_token_privileges_reply) == 16 );
  2239. C_ASSERT( FIELD_OFFSET(struct get_token_privileges_request, handle) == 12 );
  2240. C_ASSERT( sizeof(struct get_token_privileges_request) == 16 );
  2241. C_ASSERT( FIELD_OFFSET(struct get_token_privileges_reply, len) == 8 );
  2242. C_ASSERT( sizeof(struct get_token_privileges_reply) == 16 );
  2243. C_ASSERT( FIELD_OFFSET(struct check_token_privileges_request, handle) == 12 );
  2244. C_ASSERT( FIELD_OFFSET(struct check_token_privileges_request, all_required) == 16 );
  2245. C_ASSERT( sizeof(struct check_token_privileges_request) == 24 );
  2246. C_ASSERT( FIELD_OFFSET(struct check_token_privileges_reply, has_privileges) == 8 );
  2247. C_ASSERT( sizeof(struct check_token_privileges_reply) == 16 );
  2248. C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, handle) == 12 );
  2249. C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, access) == 16 );
  2250. C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, primary) == 20 );
  2251. C_ASSERT( FIELD_OFFSET(struct duplicate_token_request, impersonation_level) == 24 );
  2252. C_ASSERT( sizeof(struct duplicate_token_request) == 32 );
  2253. C_ASSERT( FIELD_OFFSET(struct duplicate_token_reply, new_handle) == 8 );
  2254. C_ASSERT( sizeof(struct duplicate_token_reply) == 16 );
  2255. C_ASSERT( FIELD_OFFSET(struct filter_token_request, handle) == 12 );
  2256. C_ASSERT( FIELD_OFFSET(struct filter_token_request, flags) == 16 );
  2257. C_ASSERT( FIELD_OFFSET(struct filter_token_request, privileges_size) == 20 );
  2258. C_ASSERT( sizeof(struct filter_token_request) == 24 );
  2259. C_ASSERT( FIELD_OFFSET(struct filter_token_reply, new_handle) == 8 );
  2260. C_ASSERT( sizeof(struct filter_token_reply) == 16 );
  2261. C_ASSERT( FIELD_OFFSET(struct access_check_request, handle) == 12 );
  2262. C_ASSERT( FIELD_OFFSET(struct access_check_request, desired_access) == 16 );
  2263. C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_read) == 20 );
  2264. C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_write) == 24 );
  2265. C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_execute) == 28 );
  2266. C_ASSERT( FIELD_OFFSET(struct access_check_request, mapping_all) == 32 );
  2267. C_ASSERT( sizeof(struct access_check_request) == 40 );
  2268. C_ASSERT( FIELD_OFFSET(struct access_check_reply, access_granted) == 8 );
  2269. C_ASSERT( FIELD_OFFSET(struct access_check_reply, access_status) == 12 );
  2270. C_ASSERT( FIELD_OFFSET(struct access_check_reply, privileges_len) == 16 );
  2271. C_ASSERT( sizeof(struct access_check_reply) == 24 );
  2272. C_ASSERT( FIELD_OFFSET(struct get_token_sid_request, handle) == 12 );
  2273. C_ASSERT( FIELD_OFFSET(struct get_token_sid_request, which_sid) == 16 );
  2274. C_ASSERT( sizeof(struct get_token_sid_request) == 24 );
  2275. C_ASSERT( FIELD_OFFSET(struct get_token_sid_reply, sid_len) == 8 );
  2276. C_ASSERT( sizeof(struct get_token_sid_reply) == 16 );
  2277. C_ASSERT( FIELD_OFFSET(struct get_token_integrity_request, handle) == 12 );
  2278. C_ASSERT( sizeof(struct get_token_integrity_request) == 16 );
  2279. C_ASSERT( FIELD_OFFSET(struct get_token_integrity_reply, sid_len) == 8 );
  2280. C_ASSERT( sizeof(struct get_token_integrity_reply) == 16 );
  2281. C_ASSERT( FIELD_OFFSET(struct get_token_groups_request, handle) == 12 );
  2282. C_ASSERT( sizeof(struct get_token_groups_request) == 16 );
  2283. C_ASSERT( FIELD_OFFSET(struct get_token_groups_reply, user_len) == 8 );
  2284. C_ASSERT( sizeof(struct get_token_groups_reply) == 16 );
  2285. C_ASSERT( FIELD_OFFSET(struct get_token_default_dacl_request, handle) == 12 );
  2286. C_ASSERT( sizeof(struct get_token_default_dacl_request) == 16 );
  2287. C_ASSERT( FIELD_OFFSET(struct get_token_default_dacl_reply, acl_len) == 8 );
  2288. C_ASSERT( sizeof(struct get_token_default_dacl_reply) == 16 );
  2289. C_ASSERT( FIELD_OFFSET(struct set_token_default_dacl_request, handle) == 12 );
  2290. C_ASSERT( sizeof(struct set_token_default_dacl_request) == 16 );
  2291. C_ASSERT( FIELD_OFFSET(struct set_security_object_request, handle) == 12 );
  2292. C_ASSERT( FIELD_OFFSET(struct set_security_object_request, security_info) == 16 );
  2293. C_ASSERT( sizeof(struct set_security_object_request) == 24 );
  2294. C_ASSERT( FIELD_OFFSET(struct get_security_object_request, handle) == 12 );
  2295. C_ASSERT( FIELD_OFFSET(struct get_security_object_request, security_info) == 16 );
  2296. C_ASSERT( sizeof(struct get_security_object_request) == 24 );
  2297. C_ASSERT( FIELD_OFFSET(struct get_security_object_reply, sd_len) == 8 );
  2298. C_ASSERT( sizeof(struct get_security_object_reply) == 16 );
  2299. C_ASSERT( sizeof(struct get_system_handles_request) == 16 );
  2300. C_ASSERT( FIELD_OFFSET(struct get_system_handles_reply, count) == 8 );
  2301. C_ASSERT( sizeof(struct get_system_handles_reply) == 16 );
  2302. C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, access) == 12 );
  2303. C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, read_timeout) == 16 );
  2304. C_ASSERT( FIELD_OFFSET(struct create_mailslot_request, max_msgsize) == 24 );
  2305. C_ASSERT( sizeof(struct create_mailslot_request) == 32 );
  2306. C_ASSERT( FIELD_OFFSET(struct create_mailslot_reply, handle) == 8 );
  2307. C_ASSERT( sizeof(struct create_mailslot_reply) == 16 );
  2308. C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_request, handle) == 12 );
  2309. C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_request, read_timeout) == 16 );
  2310. C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_request, flags) == 24 );
  2311. C_ASSERT( sizeof(struct set_mailslot_info_request) == 32 );
  2312. C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_reply, read_timeout) == 8 );
  2313. C_ASSERT( FIELD_OFFSET(struct set_mailslot_info_reply, max_msgsize) == 16 );
  2314. C_ASSERT( sizeof(struct set_mailslot_info_reply) == 24 );
  2315. C_ASSERT( FIELD_OFFSET(struct create_directory_request, access) == 12 );
  2316. C_ASSERT( sizeof(struct create_directory_request) == 16 );
  2317. C_ASSERT( FIELD_OFFSET(struct create_directory_reply, handle) == 8 );
  2318. C_ASSERT( sizeof(struct create_directory_reply) == 16 );
  2319. C_ASSERT( FIELD_OFFSET(struct open_directory_request, access) == 12 );
  2320. C_ASSERT( FIELD_OFFSET(struct open_directory_request, attributes) == 16 );
  2321. C_ASSERT( FIELD_OFFSET(struct open_directory_request, rootdir) == 20 );
  2322. C_ASSERT( sizeof(struct open_directory_request) == 24 );
  2323. C_ASSERT( FIELD_OFFSET(struct open_directory_reply, handle) == 8 );
  2324. C_ASSERT( sizeof(struct open_directory_reply) == 16 );
  2325. C_ASSERT( FIELD_OFFSET(struct get_directory_entry_request, handle) == 12 );
  2326. C_ASSERT( FIELD_OFFSET(struct get_directory_entry_request, index) == 16 );
  2327. C_ASSERT( sizeof(struct get_directory_entry_request) == 24 );
  2328. C_ASSERT( FIELD_OFFSET(struct get_directory_entry_reply, name_len) == 8 );
  2329. C_ASSERT( sizeof(struct get_directory_entry_reply) == 16 );
  2330. C_ASSERT( FIELD_OFFSET(struct create_symlink_request, access) == 12 );
  2331. C_ASSERT( sizeof(struct create_symlink_request) == 16 );
  2332. C_ASSERT( FIELD_OFFSET(struct create_symlink_reply, handle) == 8 );
  2333. C_ASSERT( sizeof(struct create_symlink_reply) == 16 );
  2334. C_ASSERT( FIELD_OFFSET(struct open_symlink_request, access) == 12 );
  2335. C_ASSERT( FIELD_OFFSET(struct open_symlink_request, attributes) == 16 );
  2336. C_ASSERT( FIELD_OFFSET(struct open_symlink_request, rootdir) == 20 );
  2337. C_ASSERT( sizeof(struct open_symlink_request) == 24 );
  2338. C_ASSERT( FIELD_OFFSET(struct open_symlink_reply, handle) == 8 );
  2339. C_ASSERT( sizeof(struct open_symlink_reply) == 16 );
  2340. C_ASSERT( FIELD_OFFSET(struct query_symlink_request, handle) == 12 );
  2341. C_ASSERT( sizeof(struct query_symlink_request) == 16 );
  2342. C_ASSERT( FIELD_OFFSET(struct query_symlink_reply, total) == 8 );
  2343. C_ASSERT( sizeof(struct query_symlink_reply) == 16 );
  2344. C_ASSERT( FIELD_OFFSET(struct get_object_info_request, handle) == 12 );
  2345. C_ASSERT( sizeof(struct get_object_info_request) == 16 );
  2346. C_ASSERT( FIELD_OFFSET(struct get_object_info_reply, access) == 8 );
  2347. C_ASSERT( FIELD_OFFSET(struct get_object_info_reply, ref_count) == 12 );
  2348. C_ASSERT( FIELD_OFFSET(struct get_object_info_reply, handle_count) == 16 );
  2349. C_ASSERT( FIELD_OFFSET(struct get_object_info_reply, total) == 20 );
  2350. C_ASSERT( sizeof(struct get_object_info_reply) == 24 );
  2351. C_ASSERT( FIELD_OFFSET(struct get_object_type_request, handle) == 12 );
  2352. C_ASSERT( sizeof(struct get_object_type_request) == 16 );
  2353. C_ASSERT( FIELD_OFFSET(struct get_object_type_reply, index) == 8 );
  2354. C_ASSERT( FIELD_OFFSET(struct get_object_type_reply, total) == 12 );
  2355. C_ASSERT( sizeof(struct get_object_type_reply) == 16 );
  2356. C_ASSERT( FIELD_OFFSET(struct get_object_type_by_index_request, index) == 12 );
  2357. C_ASSERT( sizeof(struct get_object_type_by_index_request) == 16 );
  2358. C_ASSERT( FIELD_OFFSET(struct get_object_type_by_index_reply, total) == 8 );
  2359. C_ASSERT( sizeof(struct get_object_type_by_index_reply) == 16 );
  2360. C_ASSERT( FIELD_OFFSET(struct unlink_object_request, handle) == 12 );
  2361. C_ASSERT( sizeof(struct unlink_object_request) == 16 );
  2362. C_ASSERT( FIELD_OFFSET(struct get_token_impersonation_level_request, handle) == 12 );
  2363. C_ASSERT( sizeof(struct get_token_impersonation_level_request) == 16 );
  2364. C_ASSERT( FIELD_OFFSET(struct get_token_impersonation_level_reply, impersonation_level) == 8 );
  2365. C_ASSERT( sizeof(struct get_token_impersonation_level_reply) == 16 );
  2366. C_ASSERT( sizeof(struct allocate_locally_unique_id_request) == 16 );
  2367. C_ASSERT( FIELD_OFFSET(struct allocate_locally_unique_id_reply, luid) == 8 );
  2368. C_ASSERT( sizeof(struct allocate_locally_unique_id_reply) == 16 );
  2369. C_ASSERT( FIELD_OFFSET(struct create_device_manager_request, access) == 12 );
  2370. C_ASSERT( FIELD_OFFSET(struct create_device_manager_request, attributes) == 16 );
  2371. C_ASSERT( sizeof(struct create_device_manager_request) == 24 );
  2372. C_ASSERT( FIELD_OFFSET(struct create_device_manager_reply, handle) == 8 );
  2373. C_ASSERT( sizeof(struct create_device_manager_reply) == 16 );
  2374. C_ASSERT( FIELD_OFFSET(struct create_device_request, rootdir) == 12 );
  2375. C_ASSERT( FIELD_OFFSET(struct create_device_request, user_ptr) == 16 );
  2376. C_ASSERT( FIELD_OFFSET(struct create_device_request, manager) == 24 );
  2377. C_ASSERT( sizeof(struct create_device_request) == 32 );
  2378. C_ASSERT( FIELD_OFFSET(struct delete_device_request, manager) == 12 );
  2379. C_ASSERT( FIELD_OFFSET(struct delete_device_request, device) == 16 );
  2380. C_ASSERT( sizeof(struct delete_device_request) == 24 );
  2381. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, manager) == 12 );
  2382. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, prev) == 16 );
  2383. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, status) == 20 );
  2384. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, user_ptr) == 24 );
  2385. C_ASSERT( sizeof(struct get_next_device_request_request) == 32 );
  2386. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, params) == 8 );
  2387. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, next) == 48 );
  2388. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, client_tid) == 52 );
  2389. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, client_thread) == 56 );
  2390. C_ASSERT( FIELD_OFFSET(struct get_next_device_request_reply, in_size) == 64 );
  2391. C_ASSERT( sizeof(struct get_next_device_request_reply) == 72 );
  2392. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_ptr_request, manager) == 12 );
  2393. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_ptr_request, handle) == 16 );
  2394. C_ASSERT( sizeof(struct get_kernel_object_ptr_request) == 24 );
  2395. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_ptr_reply, user_ptr) == 8 );
  2396. C_ASSERT( sizeof(struct get_kernel_object_ptr_reply) == 16 );
  2397. C_ASSERT( FIELD_OFFSET(struct set_kernel_object_ptr_request, manager) == 12 );
  2398. C_ASSERT( FIELD_OFFSET(struct set_kernel_object_ptr_request, handle) == 16 );
  2399. C_ASSERT( FIELD_OFFSET(struct set_kernel_object_ptr_request, user_ptr) == 24 );
  2400. C_ASSERT( sizeof(struct set_kernel_object_ptr_request) == 32 );
  2401. C_ASSERT( FIELD_OFFSET(struct grab_kernel_object_request, manager) == 12 );
  2402. C_ASSERT( FIELD_OFFSET(struct grab_kernel_object_request, user_ptr) == 16 );
  2403. C_ASSERT( sizeof(struct grab_kernel_object_request) == 24 );
  2404. C_ASSERT( FIELD_OFFSET(struct release_kernel_object_request, manager) == 12 );
  2405. C_ASSERT( FIELD_OFFSET(struct release_kernel_object_request, user_ptr) == 16 );
  2406. C_ASSERT( sizeof(struct release_kernel_object_request) == 24 );
  2407. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_handle_request, manager) == 12 );
  2408. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_handle_request, user_ptr) == 16 );
  2409. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_handle_request, access) == 24 );
  2410. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_handle_request, attributes) == 28 );
  2411. C_ASSERT( sizeof(struct get_kernel_object_handle_request) == 32 );
  2412. C_ASSERT( FIELD_OFFSET(struct get_kernel_object_handle_reply, handle) == 8 );
  2413. C_ASSERT( sizeof(struct get_kernel_object_handle_reply) == 16 );
  2414. C_ASSERT( FIELD_OFFSET(struct callback_subscribe_request, manager) == 12 );
  2415. C_ASSERT( FIELD_OFFSET(struct callback_subscribe_request, callback_mask) == 16 );
  2416. C_ASSERT( sizeof(struct callback_subscribe_request) == 24 );
  2417. C_ASSERT( FIELD_OFFSET(struct get_next_callback_event_request, manager) == 12 );
  2418. C_ASSERT( sizeof(struct get_next_callback_event_request) == 16 );
  2419. C_ASSERT( FIELD_OFFSET(struct get_next_callback_event_reply, cb_data) == 8 );
  2420. C_ASSERT( FIELD_OFFSET(struct get_next_callback_event_reply, client_tid) == 40 );
  2421. C_ASSERT( FIELD_OFFSET(struct get_next_callback_event_reply, client_thread) == 48 );
  2422. C_ASSERT( sizeof(struct get_next_callback_event_reply) == 56 );
  2423. C_ASSERT( FIELD_OFFSET(struct attach_process_request, manager) == 12 );
  2424. C_ASSERT( FIELD_OFFSET(struct attach_process_request, process) == 16 );
  2425. C_ASSERT( FIELD_OFFSET(struct attach_process_request, detach) == 24 );
  2426. C_ASSERT( sizeof(struct attach_process_request) == 32 );
  2427. C_ASSERT( sizeof(struct make_process_system_request) == 16 );
  2428. C_ASSERT( FIELD_OFFSET(struct make_process_system_reply, event) == 8 );
  2429. C_ASSERT( sizeof(struct make_process_system_reply) == 16 );
  2430. C_ASSERT( FIELD_OFFSET(struct get_token_statistics_request, handle) == 12 );
  2431. C_ASSERT( sizeof(struct get_token_statistics_request) == 16 );
  2432. C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, token_id) == 8 );
  2433. C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, modified_id) == 16 );
  2434. C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, primary) == 24 );
  2435. C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, impersonation_level) == 28 );
  2436. C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, group_count) == 32 );
  2437. C_ASSERT( FIELD_OFFSET(struct get_token_statistics_reply, privilege_count) == 36 );
  2438. C_ASSERT( sizeof(struct get_token_statistics_reply) == 40 );
  2439. C_ASSERT( FIELD_OFFSET(struct get_token_elevation_type_request, handle) == 12 );
  2440. C_ASSERT( sizeof(struct get_token_elevation_type_request) == 16 );
  2441. C_ASSERT( FIELD_OFFSET(struct get_token_elevation_type_reply, elevation) == 8 );
  2442. C_ASSERT( sizeof(struct get_token_elevation_type_reply) == 16 );
  2443. C_ASSERT( FIELD_OFFSET(struct create_token_request, admin) == 12 );
  2444. C_ASSERT( sizeof(struct create_token_request) == 16 );
  2445. C_ASSERT( FIELD_OFFSET(struct create_token_reply, token) == 8 );
  2446. C_ASSERT( sizeof(struct create_token_reply) == 16 );
  2447. C_ASSERT( FIELD_OFFSET(struct replace_process_token_request, token) == 12 );
  2448. C_ASSERT( sizeof(struct replace_process_token_request) == 16 );
  2449. C_ASSERT( sizeof(struct replace_process_token_reply) == 8 );
  2450. C_ASSERT( FIELD_OFFSET(struct create_completion_request, access) == 12 );
  2451. C_ASSERT( FIELD_OFFSET(struct create_completion_request, concurrent) == 16 );
  2452. C_ASSERT( sizeof(struct create_completion_request) == 24 );
  2453. C_ASSERT( FIELD_OFFSET(struct create_completion_reply, handle) == 8 );
  2454. C_ASSERT( sizeof(struct create_completion_reply) == 16 );
  2455. C_ASSERT( FIELD_OFFSET(struct open_completion_request, access) == 12 );
  2456. C_ASSERT( FIELD_OFFSET(struct open_completion_request, attributes) == 16 );
  2457. C_ASSERT( FIELD_OFFSET(struct open_completion_request, rootdir) == 20 );
  2458. C_ASSERT( sizeof(struct open_completion_request) == 24 );
  2459. C_ASSERT( FIELD_OFFSET(struct open_completion_reply, handle) == 8 );
  2460. C_ASSERT( sizeof(struct open_completion_reply) == 16 );
  2461. C_ASSERT( FIELD_OFFSET(struct add_completion_request, handle) == 12 );
  2462. C_ASSERT( FIELD_OFFSET(struct add_completion_request, ckey) == 16 );
  2463. C_ASSERT( FIELD_OFFSET(struct add_completion_request, cvalue) == 24 );
  2464. C_ASSERT( FIELD_OFFSET(struct add_completion_request, information) == 32 );
  2465. C_ASSERT( FIELD_OFFSET(struct add_completion_request, status) == 40 );
  2466. C_ASSERT( sizeof(struct add_completion_request) == 48 );
  2467. C_ASSERT( FIELD_OFFSET(struct remove_completion_request, handle) == 12 );
  2468. C_ASSERT( sizeof(struct remove_completion_request) == 16 );
  2469. C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, ckey) == 8 );
  2470. C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, cvalue) == 16 );
  2471. C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, information) == 24 );
  2472. C_ASSERT( FIELD_OFFSET(struct remove_completion_reply, status) == 32 );
  2473. C_ASSERT( sizeof(struct remove_completion_reply) == 40 );
  2474. C_ASSERT( FIELD_OFFSET(struct query_completion_request, handle) == 12 );
  2475. C_ASSERT( sizeof(struct query_completion_request) == 16 );
  2476. C_ASSERT( FIELD_OFFSET(struct query_completion_reply, depth) == 8 );
  2477. C_ASSERT( sizeof(struct query_completion_reply) == 16 );
  2478. C_ASSERT( FIELD_OFFSET(struct set_completion_info_request, handle) == 12 );
  2479. C_ASSERT( FIELD_OFFSET(struct set_completion_info_request, ckey) == 16 );
  2480. C_ASSERT( FIELD_OFFSET(struct set_completion_info_request, chandle) == 24 );
  2481. C_ASSERT( sizeof(struct set_completion_info_request) == 32 );
  2482. C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, handle) == 12 );
  2483. C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, cvalue) == 16 );
  2484. C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, information) == 24 );
  2485. C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, status) == 32 );
  2486. C_ASSERT( FIELD_OFFSET(struct add_fd_completion_request, async) == 36 );
  2487. C_ASSERT( sizeof(struct add_fd_completion_request) == 40 );
  2488. C_ASSERT( FIELD_OFFSET(struct set_fd_completion_mode_request, handle) == 12 );
  2489. C_ASSERT( FIELD_OFFSET(struct set_fd_completion_mode_request, flags) == 16 );
  2490. C_ASSERT( sizeof(struct set_fd_completion_mode_request) == 24 );
  2491. C_ASSERT( FIELD_OFFSET(struct set_fd_disp_info_request, handle) == 12 );
  2492. C_ASSERT( FIELD_OFFSET(struct set_fd_disp_info_request, unlink) == 16 );
  2493. C_ASSERT( sizeof(struct set_fd_disp_info_request) == 24 );
  2494. C_ASSERT( FIELD_OFFSET(struct set_fd_name_info_request, handle) == 12 );
  2495. C_ASSERT( FIELD_OFFSET(struct set_fd_name_info_request, rootdir) == 16 );
  2496. C_ASSERT( FIELD_OFFSET(struct set_fd_name_info_request, link) == 20 );
  2497. C_ASSERT( FIELD_OFFSET(struct set_fd_name_info_request, replace) == 24 );
  2498. C_ASSERT( sizeof(struct set_fd_name_info_request) == 32 );
  2499. C_ASSERT( FIELD_OFFSET(struct set_fd_eof_info_request, handle) == 12 );
  2500. C_ASSERT( FIELD_OFFSET(struct set_fd_eof_info_request, eof) == 16 );
  2501. C_ASSERT( sizeof(struct set_fd_eof_info_request) == 24 );
  2502. C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_request, handle) == 12 );
  2503. C_ASSERT( sizeof(struct get_window_layered_info_request) == 16 );
  2504. C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_reply, color_key) == 8 );
  2505. C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_reply, alpha) == 12 );
  2506. C_ASSERT( FIELD_OFFSET(struct get_window_layered_info_reply, flags) == 16 );
  2507. C_ASSERT( sizeof(struct get_window_layered_info_reply) == 24 );
  2508. C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, handle) == 12 );
  2509. C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, color_key) == 16 );
  2510. C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, alpha) == 20 );
  2511. C_ASSERT( FIELD_OFFSET(struct set_window_layered_info_request, flags) == 24 );
  2512. C_ASSERT( sizeof(struct set_window_layered_info_request) == 32 );
  2513. C_ASSERT( sizeof(struct alloc_user_handle_request) == 16 );
  2514. C_ASSERT( FIELD_OFFSET(struct alloc_user_handle_reply, handle) == 8 );
  2515. C_ASSERT( sizeof(struct alloc_user_handle_reply) == 16 );
  2516. C_ASSERT( FIELD_OFFSET(struct free_user_handle_request, handle) == 12 );
  2517. C_ASSERT( sizeof(struct free_user_handle_request) == 16 );
  2518. C_ASSERT( FIELD_OFFSET(struct set_cursor_request, flags) == 12 );
  2519. C_ASSERT( FIELD_OFFSET(struct set_cursor_request, handle) == 16 );
  2520. C_ASSERT( FIELD_OFFSET(struct set_cursor_request, show_count) == 20 );
  2521. C_ASSERT( FIELD_OFFSET(struct set_cursor_request, x) == 24 );
  2522. C_ASSERT( FIELD_OFFSET(struct set_cursor_request, y) == 28 );
  2523. C_ASSERT( FIELD_OFFSET(struct set_cursor_request, clip) == 32 );
  2524. C_ASSERT( FIELD_OFFSET(struct set_cursor_request, clip_msg) == 48 );
  2525. C_ASSERT( sizeof(struct set_cursor_request) == 56 );
  2526. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, prev_handle) == 8 );
  2527. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, prev_count) == 12 );
  2528. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, prev_x) == 16 );
  2529. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, prev_y) == 20 );
  2530. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, new_x) == 24 );
  2531. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, new_y) == 28 );
  2532. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, new_clip) == 32 );
  2533. C_ASSERT( FIELD_OFFSET(struct set_cursor_reply, last_change) == 48 );
  2534. C_ASSERT( sizeof(struct set_cursor_reply) == 56 );
  2535. C_ASSERT( sizeof(struct update_rawinput_devices_request) == 16 );
  2536. C_ASSERT( sizeof(struct get_rawinput_devices_request) == 16 );
  2537. C_ASSERT( FIELD_OFFSET(struct get_rawinput_devices_reply, device_count) == 8 );
  2538. C_ASSERT( sizeof(struct get_rawinput_devices_reply) == 16 );
  2539. C_ASSERT( sizeof(struct get_suspend_context_request) == 16 );
  2540. C_ASSERT( sizeof(struct get_suspend_context_reply) == 8 );
  2541. C_ASSERT( sizeof(struct set_suspend_context_request) == 16 );
  2542. C_ASSERT( FIELD_OFFSET(struct create_job_request, access) == 12 );
  2543. C_ASSERT( sizeof(struct create_job_request) == 16 );
  2544. C_ASSERT( FIELD_OFFSET(struct create_job_reply, handle) == 8 );
  2545. C_ASSERT( sizeof(struct create_job_reply) == 16 );
  2546. C_ASSERT( FIELD_OFFSET(struct open_job_request, access) == 12 );
  2547. C_ASSERT( FIELD_OFFSET(struct open_job_request, attributes) == 16 );
  2548. C_ASSERT( FIELD_OFFSET(struct open_job_request, rootdir) == 20 );
  2549. C_ASSERT( sizeof(struct open_job_request) == 24 );
  2550. C_ASSERT( FIELD_OFFSET(struct open_job_reply, handle) == 8 );
  2551. C_ASSERT( sizeof(struct open_job_reply) == 16 );
  2552. C_ASSERT( FIELD_OFFSET(struct assign_job_request, job) == 12 );
  2553. C_ASSERT( FIELD_OFFSET(struct assign_job_request, process) == 16 );
  2554. C_ASSERT( sizeof(struct assign_job_request) == 24 );
  2555. C_ASSERT( FIELD_OFFSET(struct process_in_job_request, job) == 12 );
  2556. C_ASSERT( FIELD_OFFSET(struct process_in_job_request, process) == 16 );
  2557. C_ASSERT( sizeof(struct process_in_job_request) == 24 );
  2558. C_ASSERT( FIELD_OFFSET(struct set_job_limits_request, handle) == 12 );
  2559. C_ASSERT( FIELD_OFFSET(struct set_job_limits_request, limit_flags) == 16 );
  2560. C_ASSERT( sizeof(struct set_job_limits_request) == 24 );
  2561. C_ASSERT( FIELD_OFFSET(struct set_job_completion_port_request, job) == 12 );
  2562. C_ASSERT( FIELD_OFFSET(struct set_job_completion_port_request, port) == 16 );
  2563. C_ASSERT( FIELD_OFFSET(struct set_job_completion_port_request, key) == 24 );
  2564. C_ASSERT( sizeof(struct set_job_completion_port_request) == 32 );
  2565. C_ASSERT( FIELD_OFFSET(struct terminate_job_request, handle) == 12 );
  2566. C_ASSERT( FIELD_OFFSET(struct terminate_job_request, status) == 16 );
  2567. C_ASSERT( sizeof(struct terminate_job_request) == 24 );
  2568. C_ASSERT( FIELD_OFFSET(struct suspend_process_request, handle) == 12 );
  2569. C_ASSERT( sizeof(struct suspend_process_request) == 16 );
  2570. C_ASSERT( FIELD_OFFSET(struct resume_process_request, handle) == 12 );
  2571. C_ASSERT( sizeof(struct resume_process_request) == 16 );
  2572. C_ASSERT( sizeof(struct get_system_info_request) == 16 );
  2573. C_ASSERT( FIELD_OFFSET(struct get_system_info_reply, processes) == 8 );
  2574. C_ASSERT( FIELD_OFFSET(struct get_system_info_reply, threads) == 12 );
  2575. C_ASSERT( FIELD_OFFSET(struct get_system_info_reply, handles) == 16 );
  2576. C_ASSERT( sizeof(struct get_system_info_reply) == 24 );
  2577. C_ASSERT( FIELD_OFFSET(struct create_esync_request, access) == 12 );
  2578. C_ASSERT( FIELD_OFFSET(struct create_esync_request, initval) == 16 );
  2579. C_ASSERT( FIELD_OFFSET(struct create_esync_request, type) == 20 );
  2580. C_ASSERT( FIELD_OFFSET(struct create_esync_request, max) == 24 );
  2581. C_ASSERT( sizeof(struct create_esync_request) == 32 );
  2582. C_ASSERT( FIELD_OFFSET(struct create_esync_reply, handle) == 8 );
  2583. C_ASSERT( FIELD_OFFSET(struct create_esync_reply, type) == 12 );
  2584. C_ASSERT( FIELD_OFFSET(struct create_esync_reply, shm_idx) == 16 );
  2585. C_ASSERT( sizeof(struct create_esync_reply) == 24 );
  2586. C_ASSERT( FIELD_OFFSET(struct open_esync_request, access) == 12 );
  2587. C_ASSERT( FIELD_OFFSET(struct open_esync_request, attributes) == 16 );
  2588. C_ASSERT( FIELD_OFFSET(struct open_esync_request, rootdir) == 20 );
  2589. C_ASSERT( FIELD_OFFSET(struct open_esync_request, type) == 24 );
  2590. C_ASSERT( sizeof(struct open_esync_request) == 32 );
  2591. C_ASSERT( FIELD_OFFSET(struct open_esync_reply, handle) == 8 );
  2592. C_ASSERT( FIELD_OFFSET(struct open_esync_reply, type) == 12 );
  2593. C_ASSERT( FIELD_OFFSET(struct open_esync_reply, shm_idx) == 16 );
  2594. C_ASSERT( sizeof(struct open_esync_reply) == 24 );
  2595. C_ASSERT( FIELD_OFFSET(struct get_esync_fd_request, handle) == 12 );
  2596. C_ASSERT( sizeof(struct get_esync_fd_request) == 16 );
  2597. C_ASSERT( FIELD_OFFSET(struct get_esync_fd_reply, type) == 8 );
  2598. C_ASSERT( FIELD_OFFSET(struct get_esync_fd_reply, shm_idx) == 12 );
  2599. C_ASSERT( sizeof(struct get_esync_fd_reply) == 16 );
  2600. C_ASSERT( sizeof(struct get_esync_apc_fd_request) == 16 );
  2601. C_ASSERT( FIELD_OFFSET(struct esync_msgwait_request, in_msgwait) == 12 );
  2602. C_ASSERT( sizeof(struct esync_msgwait_request) == 16 );
  2603. #endif /* WANT_REQUEST_HANDLERS */
  2604. /* ### make_requests end ### */
  2605. /* Everything above this line is generated automatically by tools/make_requests */
  2606. #endif /* __WINE_SERVER_REQUEST_H */