1 /* -*-C-*-
2 
3 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
4     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
5     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Massachusetts
6     Institute of Technology
7 
8 This file is part of MIT/GNU Scheme.
9 
10 MIT/GNU Scheme is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or (at
13 your option) any later version.
14 
15 MIT/GNU Scheme is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 General Public License for more details.
19 
20 You should have received a copy of the GNU General Public License
21 along with MIT/GNU Scheme; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
23 USA.
24 
25 */
26 
27 /* This flag, defined by "syscall.h", means to define the syscall
28    enums normally defined by that file.  */
29 #ifdef DEFINE_WIN32_SYSCALLS
30 
31 enum syscall_names
32 {
33   /* Native Win32 API procedures: */
34   apicall_CloseHandle,
35   apicall_CopyFile,
36   apicall_CreateDirectory,
37   apicall_CreateFile,
38   apicall_CreatePipe,
39   apicall_CreateProcess,
40   apicall_DeleteFile,
41   apicall_DuplicateHandle,
42   apicall_EnumWindows,
43   apicall_ExpandEnvironmentStrings,
44   apicall_FindFirstFile,
45   apicall_GetExitCodeProcess,
46   apicall_GetFileAttributes,
47   apicall_GetFileInformationByHandle,
48   apicall_GetFileSize,
49   apicall_GetFileTime,
50   apicall_GetKeyboardState,
51   apicall_GetStdHandle,
52   apicall_InitializeSecurityDescriptor,
53   apicall_MoveFile,
54   apicall_MsgWaitForMultipleObjects,
55   apicall_PeekNamedPipe,
56   apicall_ReadFile,
57   apicall_RegCloseKey,
58   apicall_RegCreateKeyEx,
59   apicall_RegDeleteKey,
60   apicall_RegDeleteValue,
61   apicall_RegEnumKeyEx,
62   apicall_RegEnumValue,
63   apicall_RegOpenKeyEx,
64   apicall_RegQueryInfoKey,
65   apicall_RegQueryValueEx,
66   apicall_RegSetValueEx,
67   apicall_RemoveDirectory,
68   apicall_SetCurrentDirectory,
69   apicall_SetEndOfFile,
70   apicall_SetFileAttributes,
71   apicall_SetFilePointer,
72   apicall_SetFileTime,
73   apicall_SetKeyboardState,
74   apicall_SetSecurityDescriptorDacl,
75   apicall_SetStdHandle,
76   apicall_SetTimer,
77   apicall_TerminateProcess,
78   apicall_WaitForMultipleObjects,
79   apicall_WaitForSingleObject,
80   apicall_WriteFile,
81 
82   /* Winsock procedures: */
83   apicall_accept,
84   apicall_bind,
85   apicall_closesocket,
86   apicall_connect,
87   apicall_gethostbyname,
88   apicall_gethostname,
89   apicall_getsockopt,
90   apicall_ioctlsocket,
91   apicall_listen,
92   apicall_recv,
93   apicall_select,
94   apicall_send,
95   apicall_setsockopt,
96   apicall_shutdown,
97   apicall_socket,
98 
99   /* C Library's unix-style procedures: */
100   syscall_close,
101   syscall_fstat,
102   syscall_getcwd,
103   syscall_gmtime,
104   syscall_localtime,
105   syscall_lseek,
106   syscall_malloc,
107   syscall_mkdir,
108   syscall_mktime,
109   syscall_open,
110   syscall_read,
111   syscall_realloc,
112   syscall_rmdir,
113   syscall_stat,
114   syscall_unlink,
115   syscall_write
116 };
117 
118 /* Machine-generated table, do not edit: */
119 enum syserr_names
120 {
121   /* Win32 error codes: */
122   syserr_success,
123   syserr_invalid_function,
124   syserr_file_not_found,
125   syserr_path_not_found,
126   syserr_too_many_open_files,
127   syserr_access_denied,
128   syserr_invalid_handle,
129   syserr_arena_trashed,
130   syserr_not_enough_memory,
131   syserr_invalid_block,
132   syserr_bad_environment,
133   syserr_bad_format,
134   syserr_invalid_access,
135   syserr_invalid_data,
136   syserr_outofmemory,
137   syserr_invalid_drive,
138   syserr_current_directory,
139   syserr_not_same_device,
140   syserr_no_more_files,
141   syserr_write_protect,
142   syserr_bad_unit,
143   syserr_not_ready,
144   syserr_bad_command,
145   syserr_crc,
146   syserr_bad_length,
147   syserr_seek,
148   syserr_not_dos_disk,
149   syserr_sector_not_found,
150   syserr_out_of_paper,
151   syserr_write_fault,
152   syserr_read_fault,
153   syserr_gen_failure,
154   syserr_sharing_violation,
155   syserr_lock_violation,
156   syserr_wrong_disk,
157   syserr_sharing_buffer_exceeded,
158   syserr_handle_eof,
159   syserr_handle_disk_full,
160   syserr_not_supported,
161   syserr_rem_not_list,
162   syserr_dup_name,
163   syserr_bad_netpath,
164   syserr_network_busy,
165   syserr_dev_not_exist,
166   syserr_too_many_cmds,
167   syserr_adap_hdw_err,
168   syserr_bad_net_resp,
169   syserr_unexp_net_err,
170   syserr_bad_rem_adap,
171   syserr_printq_full,
172   syserr_no_spool_space,
173   syserr_print_cancelled,
174   syserr_netname_deleted,
175   syserr_network_access_denied,
176   syserr_bad_dev_type,
177   syserr_bad_net_name,
178   syserr_too_many_names,
179   syserr_too_many_sess,
180   syserr_sharing_paused,
181   syserr_req_not_accep,
182   syserr_redir_paused,
183   syserr_file_exists,
184   syserr_cannot_make,
185   syserr_fail_i24,
186   syserr_out_of_structures,
187   syserr_already_assigned,
188   syserr_invalid_password,
189   syserr_invalid_parameter,
190   syserr_net_write_fault,
191   syserr_no_proc_slots,
192   syserr_too_many_semaphores,
193   syserr_excl_sem_already_owned,
194   syserr_sem_is_set,
195   syserr_too_many_sem_requests,
196   syserr_invalid_at_interrupt_time,
197   syserr_sem_owner_died,
198   syserr_sem_user_limit,
199   syserr_disk_change,
200   syserr_drive_locked,
201   syserr_broken_pipe,
202   syserr_open_failed,
203   syserr_buffer_overflow,
204   syserr_disk_full,
205   syserr_no_more_search_handles,
206   syserr_invalid_target_handle,
207   syserr_invalid_category,
208   syserr_invalid_verify_switch,
209   syserr_bad_driver_level,
210   syserr_call_not_implemented,
211   syserr_sem_timeout,
212   syserr_insufficient_buffer,
213   syserr_invalid_name,
214   syserr_invalid_level,
215   syserr_no_volume_label,
216   syserr_mod_not_found,
217   syserr_proc_not_found,
218   syserr_wait_no_children,
219   syserr_child_not_complete,
220   syserr_direct_access_handle,
221   syserr_negative_seek,
222   syserr_seek_on_device,
223   syserr_is_join_target,
224   syserr_is_joined,
225   syserr_is_substed,
226   syserr_not_joined,
227   syserr_not_substed,
228   syserr_join_to_join,
229   syserr_subst_to_subst,
230   syserr_join_to_subst,
231   syserr_subst_to_join,
232   syserr_busy_drive,
233   syserr_same_drive,
234   syserr_dir_not_root,
235   syserr_dir_not_empty,
236   syserr_is_subst_path,
237   syserr_is_join_path,
238   syserr_path_busy,
239   syserr_is_subst_target,
240   syserr_system_trace,
241   syserr_invalid_event_count,
242   syserr_too_many_muxwaiters,
243   syserr_invalid_list_format,
244   syserr_label_too_long,
245   syserr_too_many_tcbs,
246   syserr_signal_refused,
247   syserr_discarded,
248   syserr_not_locked,
249   syserr_bad_threadid_addr,
250   syserr_bad_arguments,
251   syserr_bad_pathname,
252   syserr_signal_pending,
253   syserr_max_thrds_reached,
254   syserr_lock_failed,
255   syserr_busy,
256   syserr_cancel_violation,
257   syserr_atomic_locks_not_supported,
258   syserr_invalid_segment_number,
259   syserr_invalid_ordinal,
260   syserr_already_exists,
261   syserr_invalid_flag_number,
262   syserr_sem_not_found,
263   syserr_invalid_starting_codeseg,
264   syserr_invalid_stackseg,
265   syserr_invalid_moduletype,
266   syserr_invalid_exe_signature,
267   syserr_exe_marked_invalid,
268   syserr_bad_exe_format,
269   syserr_iterated_data_exceeds_64k,
270   syserr_invalid_minallocsize,
271   syserr_dynlink_from_invalid_ring,
272   syserr_iopl_not_enabled,
273   syserr_invalid_segdpl,
274   syserr_autodataseg_exceeds_64k,
275   syserr_ring2seg_must_be_movable,
276   syserr_reloc_chain_xeeds_seglim,
277   syserr_infloop_in_reloc_chain,
278   syserr_envvar_not_found,
279   syserr_no_signal_sent,
280   syserr_filename_exced_range,
281   syserr_ring2_stack_in_use,
282   syserr_meta_expansion_too_long,
283   syserr_invalid_signal_number,
284   syserr_thread_1_inactive,
285   syserr_locked,
286   syserr_too_many_modules,
287   syserr_nesting_not_allowed,
288   syserr_bad_pipe,
289   syserr_pipe_busy,
290   syserr_no_data,
291   syserr_pipe_not_connected,
292   syserr_more_data,
293   syserr_vc_disconnected,
294   syserr_invalid_ea_name,
295   syserr_ea_list_inconsistent,
296   syserr_no_more_items,
297   syserr_cannot_copy,
298   syserr_directory,
299   syserr_eas_didnt_fit,
300   syserr_ea_file_corrupt,
301   syserr_ea_table_full,
302   syserr_invalid_ea_handle,
303   syserr_eas_not_supported,
304   syserr_not_owner,
305   syserr_too_many_posts,
306   syserr_partial_copy,
307   syserr_mr_mid_not_found,
308   syserr_invalid_address,
309   syserr_arithmetic_overflow,
310   syserr_pipe_connected,
311   syserr_pipe_listening,
312   syserr_ea_access_denied,
313   syserr_operation_aborted,
314   syserr_io_incomplete,
315   syserr_io_pending,
316   syserr_noaccess,
317   syserr_swaperror,
318   syserr_stack_overflow,
319   syserr_invalid_message,
320   syserr_can_not_complete,
321   syserr_invalid_flags,
322   syserr_unrecognized_volume,
323   syserr_file_invalid,
324   syserr_fullscreen_mode,
325   syserr_no_token,
326   syserr_baddb,
327   syserr_badkey,
328   syserr_cantopen,
329   syserr_cantread,
330   syserr_cantwrite,
331   syserr_registry_recovered,
332   syserr_registry_corrupt,
333   syserr_registry_io_failed,
334   syserr_not_registry_file,
335   syserr_key_deleted,
336   syserr_no_log_space,
337   syserr_key_has_children,
338   syserr_child_must_be_volatile,
339   syserr_notify_enum_dir,
340   syserr_dependent_services_running,
341   syserr_invalid_service_control,
342   syserr_service_request_timeout,
343   syserr_service_no_thread,
344   syserr_service_database_locked,
345   syserr_service_already_running,
346   syserr_invalid_service_account,
347   syserr_service_disabled,
348   syserr_circular_dependency,
349   syserr_service_does_not_exist,
350   syserr_service_cannot_accept_ctrl,
351   syserr_service_not_active,
352   syserr_failed_service_controller_connect,
353   syserr_exception_in_service,
354   syserr_database_does_not_exist,
355   syserr_service_specific_error,
356   syserr_process_aborted,
357   syserr_service_dependency_fail,
358   syserr_service_logon_failed,
359   syserr_service_start_hang,
360   syserr_invalid_service_lock,
361   syserr_service_marked_for_delete,
362   syserr_service_exists,
363   syserr_already_running_lkg,
364   syserr_service_dependency_deleted,
365   syserr_boot_already_accepted,
366   syserr_service_never_started,
367   syserr_duplicate_service_name,
368   syserr_end_of_media,
369   syserr_filemark_detected,
370   syserr_beginning_of_media,
371   syserr_setmark_detected,
372   syserr_no_data_detected,
373   syserr_partition_failure,
374   syserr_invalid_block_length,
375   syserr_device_not_partitioned,
376   syserr_unable_to_lock_media,
377   syserr_unable_to_unload_media,
378   syserr_media_changed,
379   syserr_bus_reset,
380   syserr_no_media_in_drive,
381   syserr_no_unicode_translation,
382   syserr_dll_init_failed,
383   syserr_shutdown_in_progress,
384   syserr_no_shutdown_in_progress,
385   syserr_io_device,
386   syserr_serial_no_device,
387   syserr_irq_busy,
388   syserr_more_writes,
389   syserr_counter_timeout,
390   syserr_floppy_id_mark_not_found,
391   syserr_floppy_wrong_cylinder,
392   syserr_floppy_unknown_error,
393   syserr_floppy_bad_registers,
394   syserr_disk_recalibrate_failed,
395   syserr_disk_operation_failed,
396   syserr_disk_reset_failed,
397   syserr_eom_overflow,
398   syserr_not_enough_server_memory,
399   syserr_possible_deadlock,
400   syserr_mapped_alignment,
401   syserr_set_power_state_vetoed,
402   syserr_set_power_state_failed,
403   syserr_old_win_version,
404   syserr_app_wrong_os,
405   syserr_single_instance_app,
406   syserr_rmode_app,
407   syserr_invalid_dll,
408   syserr_no_association,
409   syserr_dde_fail,
410   syserr_dll_not_found,
411   syserr_bad_username,
412   syserr_not_connected,
413   syserr_open_files,
414   syserr_active_connections,
415   syserr_device_in_use,
416   syserr_bad_device,
417   syserr_connection_unavail,
418   syserr_device_already_remembered,
419   syserr_no_net_or_bad_path,
420   syserr_bad_provider,
421   syserr_cannot_open_profile,
422   syserr_bad_profile,
423   syserr_not_container,
424   syserr_extended_error,
425   syserr_invalid_groupname,
426   syserr_invalid_computername,
427   syserr_invalid_eventname,
428   syserr_invalid_domainname,
429   syserr_invalid_servicename,
430   syserr_invalid_netname,
431   syserr_invalid_sharename,
432   syserr_invalid_passwordname,
433   syserr_invalid_messagename,
434   syserr_invalid_messagedest,
435   syserr_session_credential_conflict,
436   syserr_remote_session_limit_exceeded,
437   syserr_dup_domainname,
438   syserr_no_network,
439   syserr_cancelled,
440   syserr_user_mapped_file,
441   syserr_connection_refused,
442   syserr_graceful_disconnect,
443   syserr_address_already_associated,
444   syserr_address_not_associated,
445   syserr_connection_invalid,
446   syserr_connection_active,
447   syserr_network_unreachable,
448   syserr_host_unreachable,
449   syserr_protocol_unreachable,
450   syserr_port_unreachable,
451   syserr_request_aborted,
452   syserr_connection_aborted,
453   syserr_retry,
454   syserr_connection_count_limit,
455   syserr_login_time_restriction,
456   syserr_login_wksta_restriction,
457   syserr_incorrect_address,
458   syserr_already_registered,
459   syserr_service_not_found,
460   syserr_not_authenticated,
461   syserr_not_logged_on,
462   syserr_continue,
463   syserr_already_initialized,
464   syserr_no_more_devices,
465   syserr_not_all_assigned,
466   syserr_some_not_mapped,
467   syserr_no_quotas_for_account,
468   syserr_local_user_session_key,
469   syserr_null_lm_password,
470   syserr_unknown_revision,
471   syserr_revision_mismatch,
472   syserr_invalid_owner,
473   syserr_invalid_primary_group,
474   syserr_no_impersonation_token,
475   syserr_cant_disable_mandatory,
476   syserr_no_logon_servers,
477   syserr_no_such_logon_session,
478   syserr_no_such_privilege,
479   syserr_privilege_not_held,
480   syserr_invalid_account_name,
481   syserr_user_exists,
482   syserr_no_such_user,
483   syserr_group_exists,
484   syserr_no_such_group,
485   syserr_member_in_group,
486   syserr_member_not_in_group,
487   syserr_last_admin,
488   syserr_wrong_password,
489   syserr_ill_formed_password,
490   syserr_password_restriction,
491   syserr_logon_failure,
492   syserr_account_restriction,
493   syserr_invalid_logon_hours,
494   syserr_invalid_workstation,
495   syserr_password_expired,
496   syserr_account_disabled,
497   syserr_none_mapped,
498   syserr_too_many_luids_requested,
499   syserr_luids_exhausted,
500   syserr_invalid_sub_authority,
501   syserr_invalid_acl,
502   syserr_invalid_sid,
503   syserr_invalid_security_descr,
504   syserr_bad_inheritance_acl,
505   syserr_server_disabled,
506   syserr_server_not_disabled,
507   syserr_invalid_id_authority,
508   syserr_allotted_space_exceeded,
509   syserr_invalid_group_attributes,
510   syserr_bad_impersonation_level,
511   syserr_cant_open_anonymous,
512   syserr_bad_validation_class,
513   syserr_bad_token_type,
514   syserr_no_security_on_object,
515   syserr_cant_access_domain_info,
516   syserr_invalid_server_state,
517   syserr_invalid_domain_state,
518   syserr_invalid_domain_role,
519   syserr_no_such_domain,
520   syserr_domain_exists,
521   syserr_domain_limit_exceeded,
522   syserr_internal_db_corruption,
523   syserr_internal_error,
524   syserr_generic_not_mapped,
525   syserr_bad_descriptor_format,
526   syserr_not_logon_process,
527   syserr_logon_session_exists,
528   syserr_no_such_package,
529   syserr_bad_logon_session_state,
530   syserr_logon_session_collision,
531   syserr_invalid_logon_type,
532   syserr_cannot_impersonate,
533   syserr_rxact_invalid_state,
534   syserr_rxact_commit_failure,
535   syserr_special_account,
536   syserr_special_group,
537   syserr_special_user,
538   syserr_members_primary_group,
539   syserr_token_already_in_use,
540   syserr_no_such_alias,
541   syserr_member_not_in_alias,
542   syserr_member_in_alias,
543   syserr_alias_exists,
544   syserr_logon_not_granted,
545   syserr_too_many_secrets,
546   syserr_secret_too_long,
547   syserr_internal_db_error,
548   syserr_too_many_context_ids,
549   syserr_logon_type_not_granted,
550   syserr_nt_cross_encryption_required,
551   syserr_no_such_member,
552   syserr_invalid_member,
553   syserr_too_many_sids,
554   syserr_lm_cross_encryption_required,
555   syserr_no_inheritance,
556   syserr_file_corrupt,
557   syserr_disk_corrupt,
558   syserr_no_user_session_key,
559   syserr_license_quota_exceeded,
560   syserr_invalid_window_handle,
561   syserr_invalid_menu_handle,
562   syserr_invalid_cursor_handle,
563   syserr_invalid_accel_handle,
564   syserr_invalid_hook_handle,
565   syserr_invalid_dwp_handle,
566   syserr_tlw_with_wschild,
567   syserr_cannot_find_wnd_class,
568   syserr_window_of_other_thread,
569   syserr_hotkey_already_registered,
570   syserr_class_already_exists,
571   syserr_class_does_not_exist,
572   syserr_class_has_windows,
573   syserr_invalid_index,
574   syserr_invalid_icon_handle,
575   syserr_private_dialog_index,
576   syserr_listbox_id_not_found,
577   syserr_no_wildcard_characters,
578   syserr_clipboard_not_open,
579   syserr_hotkey_not_registered,
580   syserr_window_not_dialog,
581   syserr_control_id_not_found,
582   syserr_invalid_combobox_message,
583   syserr_window_not_combobox,
584   syserr_invalid_edit_height,
585   syserr_dc_not_found,
586   syserr_invalid_hook_filter,
587   syserr_invalid_filter_proc,
588   syserr_hook_needs_hmod,
589   syserr_global_only_hook,
590   syserr_journal_hook_set,
591   syserr_hook_not_installed,
592   syserr_invalid_lb_message,
593   syserr_setcount_on_bad_lb,
594   syserr_lb_without_tabstops,
595   syserr_destroy_object_of_other_thread,
596   syserr_child_window_menu,
597   syserr_no_system_menu,
598   syserr_invalid_msgbox_style,
599   syserr_invalid_spi_value,
600   syserr_screen_already_locked,
601   syserr_hwnds_have_diff_parent,
602   syserr_not_child_window,
603   syserr_invalid_gw_command,
604   syserr_invalid_thread_id,
605   syserr_non_mdichild_window,
606   syserr_popup_already_active,
607   syserr_no_scrollbars,
608   syserr_invalid_scrollbar_range,
609   syserr_invalid_showwin_command,
610   syserr_no_system_resources,
611   syserr_nonpaged_system_resources,
612   syserr_paged_system_resources,
613   syserr_working_set_quota,
614   syserr_pagefile_quota,
615   syserr_commitment_limit,
616   syserr_menu_item_not_found,
617   syserr_eventlog_file_corrupt,
618   syserr_eventlog_cant_start,
619   syserr_log_file_full,
620   syserr_eventlog_file_changed,
621   syserr_rpc_s_invalid_string_binding,
622   syserr_rpc_s_wrong_kind_of_binding,
623   syserr_rpc_s_invalid_binding,
624   syserr_rpc_s_protseq_not_supported,
625   syserr_rpc_s_invalid_rpc_protseq,
626   syserr_rpc_s_invalid_string_uuid,
627   syserr_rpc_s_invalid_endpoint_format,
628   syserr_rpc_s_invalid_net_addr,
629   syserr_rpc_s_no_endpoint_found,
630   syserr_rpc_s_invalid_timeout,
631   syserr_rpc_s_object_not_found,
632   syserr_rpc_s_already_registered,
633   syserr_rpc_s_type_already_registered,
634   syserr_rpc_s_already_listening,
635   syserr_rpc_s_no_protseqs_registered,
636   syserr_rpc_s_not_listening,
637   syserr_rpc_s_unknown_mgr_type,
638   syserr_rpc_s_unknown_if,
639   syserr_rpc_s_no_bindings,
640   syserr_rpc_s_no_protseqs,
641   syserr_rpc_s_cant_create_endpoint,
642   syserr_rpc_s_out_of_resources,
643   syserr_rpc_s_server_unavailable,
644   syserr_rpc_s_server_too_busy,
645   syserr_rpc_s_invalid_network_options,
646   syserr_rpc_s_no_call_active,
647   syserr_rpc_s_call_failed,
648   syserr_rpc_s_call_failed_dne,
649   syserr_rpc_s_protocol_error,
650   syserr_rpc_s_unsupported_trans_syn,
651   syserr_rpc_s_unsupported_type,
652   syserr_rpc_s_invalid_tag,
653   syserr_rpc_s_invalid_bound,
654   syserr_rpc_s_no_entry_name,
655   syserr_rpc_s_invalid_name_syntax,
656   syserr_rpc_s_unsupported_name_syntax,
657   syserr_rpc_s_uuid_no_address,
658   syserr_rpc_s_duplicate_endpoint,
659   syserr_rpc_s_unknown_authn_type,
660   syserr_rpc_s_max_calls_too_small,
661   syserr_rpc_s_string_too_long,
662   syserr_rpc_s_protseq_not_found,
663   syserr_rpc_s_procnum_out_of_range,
664   syserr_rpc_s_binding_has_no_auth,
665   syserr_rpc_s_unknown_authn_service,
666   syserr_rpc_s_unknown_authn_level,
667   syserr_rpc_s_invalid_auth_identity,
668   syserr_rpc_s_unknown_authz_service,
669   syserr_ept_s_invalid_entry,
670   syserr_ept_s_cant_perform_op,
671   syserr_ept_s_not_registered,
672   syserr_rpc_s_nothing_to_export,
673   syserr_rpc_s_incomplete_name,
674   syserr_rpc_s_invalid_vers_option,
675   syserr_rpc_s_no_more_members,
676   syserr_rpc_s_not_all_objs_unexported,
677   syserr_rpc_s_interface_not_found,
678   syserr_rpc_s_entry_already_exists,
679   syserr_rpc_s_entry_not_found,
680   syserr_rpc_s_name_service_unavailable,
681   syserr_rpc_s_invalid_naf_id,
682   syserr_rpc_s_cannot_support,
683   syserr_rpc_s_no_context_available,
684   syserr_rpc_s_internal_error,
685   syserr_rpc_s_zero_divide,
686   syserr_rpc_s_address_error,
687   syserr_rpc_s_fp_div_zero,
688   syserr_rpc_s_fp_underflow,
689   syserr_rpc_s_fp_overflow,
690   syserr_rpc_x_no_more_entries,
691   syserr_rpc_x_ss_char_trans_open_fail,
692   syserr_rpc_x_ss_char_trans_short_file,
693   syserr_rpc_x_ss_in_null_context,
694   syserr_rpc_x_ss_context_damaged,
695   syserr_rpc_x_ss_handles_mismatch,
696   syserr_rpc_x_ss_cannot_get_call_handle,
697   syserr_rpc_x_null_ref_pointer,
698   syserr_rpc_x_enum_value_out_of_range,
699   syserr_rpc_x_byte_count_too_small,
700   syserr_rpc_x_bad_stub_data,
701   syserr_invalid_user_buffer,
702   syserr_unrecognized_media,
703   syserr_no_trust_lsa_secret,
704   syserr_no_trust_sam_account,
705   syserr_trusted_domain_failure,
706   syserr_trusted_relationship_failure,
707   syserr_trust_failure,
708   syserr_rpc_s_call_in_progress,
709   syserr_netlogon_not_started,
710   syserr_account_expired,
711   syserr_redirector_has_open_handles,
712   syserr_printer_driver_already_installed,
713   syserr_unknown_port,
714   syserr_unknown_printer_driver,
715   syserr_unknown_printprocessor,
716   syserr_invalid_separator_file,
717   syserr_invalid_priority,
718   syserr_invalid_printer_name,
719   syserr_printer_already_exists,
720   syserr_invalid_printer_command,
721   syserr_invalid_datatype,
722   syserr_invalid_environment,
723   syserr_rpc_s_no_more_bindings,
724   syserr_nologon_interdomain_trust_account,
725   syserr_nologon_workstation_trust_account,
726   syserr_nologon_server_trust_account,
727   syserr_domain_trust_inconsistent,
728   syserr_server_has_open_handles,
729   syserr_resource_data_not_found,
730   syserr_resource_type_not_found,
731   syserr_resource_name_not_found,
732   syserr_resource_lang_not_found,
733   syserr_not_enough_quota,
734   syserr_rpc_s_no_interfaces,
735   syserr_rpc_s_call_cancelled,
736   syserr_rpc_s_binding_incomplete,
737   syserr_rpc_s_comm_failure,
738   syserr_rpc_s_unsupported_authn_level,
739   syserr_rpc_s_no_princ_name,
740   syserr_rpc_s_not_rpc_error,
741   syserr_rpc_s_uuid_local_only,
742   syserr_rpc_s_sec_pkg_error,
743   syserr_rpc_s_not_cancelled,
744   syserr_rpc_x_invalid_es_action,
745   syserr_rpc_x_wrong_es_version,
746   syserr_rpc_x_wrong_stub_version,
747   syserr_rpc_s_group_member_not_found,
748   syserr_ept_s_cant_create,
749   syserr_rpc_s_invalid_object,
750   syserr_invalid_time,
751   syserr_invalid_form_name,
752   syserr_invalid_form_size,
753   syserr_already_waiting,
754   syserr_printer_deleted,
755   syserr_invalid_printer_state,
756   syserr_password_must_change,
757   syserr_domain_controller_not_found,
758   syserr_account_locked_out,
759   syserr_no_browser_servers_found,
760   syserr_invalid_pixel_format,
761   syserr_bad_driver,
762   syserr_invalid_window_style,
763   syserr_metafile_not_supported,
764   syserr_transform_not_supported,
765   syserr_clipping_not_supported,
766   syserr_unknown_print_monitor,
767   syserr_printer_driver_in_use,
768   syserr_spool_file_not_found,
769   syserr_spl_no_startdoc,
770   syserr_spl_no_addjob,
771   syserr_print_processor_already_installed,
772   syserr_print_monitor_already_installed,
773   syserr_wins_internal,
774   syserr_can_not_del_local_wins,
775   syserr_static_init,
776   syserr_inc_backup,
777   syserr_full_backup,
778   syserr_rec_non_existent,
779   syserr_rpl_not_allowed,
780 
781   /* Winsock error codes: */
782   syserr_wsaeintr,
783   syserr_wsaebadf,
784   syserr_wsaeacces,
785   syserr_wsaefault,
786   syserr_wsaeinval,
787   syserr_wsaemfile,
788   syserr_wsaewouldblock,
789   syserr_wsaeinprogress,
790   syserr_wsaealready,
791   syserr_wsaenotsock,
792   syserr_wsaedestaddrreq,
793   syserr_wsaemsgsize,
794   syserr_wsaeprototype,
795   syserr_wsaenoprotoopt,
796   syserr_wsaeprotonosupport,
797   syserr_wsaesocktnosupport,
798   syserr_wsaeopnotsupp,
799   syserr_wsaepfnosupport,
800   syserr_wsaeafnosupport,
801   syserr_wsaeaddrinuse,
802   syserr_wsaeaddrnotavail,
803   syserr_wsaenetdown,
804   syserr_wsaenetunreach,
805   syserr_wsaenetreset,
806   syserr_wsaeconnaborted,
807   syserr_wsaeconnreset,
808   syserr_wsaenobufs,
809   syserr_wsaeisconn,
810   syserr_wsaenotconn,
811   syserr_wsaeshutdown,
812   syserr_wsaetoomanyrefs,
813   syserr_wsaetimedout,
814   syserr_wsaeconnrefused,
815   syserr_wsaeloop,
816   syserr_wsaenametoolong,
817   syserr_wsaehostdown,
818   syserr_wsaehostunreach,
819   syserr_wsaenotempty,
820   syserr_wsaeproclim,
821   syserr_wsaeusers,
822   syserr_wsaedquot,
823   syserr_wsaestale,
824   syserr_wsaeremote,
825   syserr_wsaediscon,
826   syserr_wsasysnotready,
827   syserr_wsavernotsupported,
828   syserr_wsanotinitialised,
829   syserr_wsahost_not_found,
830   syserr_wsatry_again,
831   syserr_wsano_recovery,
832   syserr_wsano_data,
833 
834   /* Unix error codes: */
835 #define FIRST_UNIX_ERROR_CODE syserr_arg_list_too_long
836   syserr_arg_list_too_long,
837   syserr_bad_file_descriptor,
838   syserr_domain_error,
839   syserr_exec_format_error,
840   syserr_unix_file_exists,
841   syserr_interrupted_function_call,
842   syserr_invalid_argument,
843   syserr_no_such_file_or_directory,
844   syserr_not_a_directory,
845   syserr_not_enough_space,
846   syserr_permission_denied,
847   syserr_resource_deadlock_avoided,
848   syserr_resource_temporarily_unavailable,
849   syserr_result_too_large,
850   syserr_unix_too_many_open_files,
851 
852   syserr_unknown
853 };
854 
855 #else /* not DEFINE_WIN32_SYSCALLS */
856 
857 extern void NT_prim_check_errno (enum syscall_names);
858 extern void NT_error_api_call (DWORD, enum syscall_names);
859 extern void NT_error_unix_call (int, enum syscall_names);
860 
861 #define STD_VOID_UNIX_CALL(proc, args)					\
862 {									\
863   while ((proc args) < 0)						\
864     if (errno != EINTR)							\
865       NT_error_unix_call (errno, syscall_ ## proc);			\
866 }
867 
868 #define STD_UINT_UNIX_CALL(result, proc, args)				\
869 {									\
870   if (((result) = (proc args)) == 0)					\
871     NT_error_unix_call (errno, syscall_ ## proc);			\
872 }
873 
874 #define STD_PTR_UNIX_CALL(result, proc, args)				\
875 {									\
876   if (((result) = (proc args)) == 0)					\
877     NT_error_unix_call (errno, syscall_ ## proc);			\
878 }
879 
880 #define STD_BOOL_API_CALL(proc, args)					\
881 {									\
882   if (! (proc args))							\
883     NT_error_api_call ((GetLastError ()), apicall_ ## proc);		\
884 }
885 
886 #define STD_HANDLE_API_CALL(result, proc, args)				\
887 {									\
888   if (((result) = (proc args)) == INVALID_HANDLE_VALUE)			\
889     NT_error_api_call ((GetLastError ()), apicall_ ## proc);		\
890 }
891 
892 #ifdef SCM_NTTOP_C
893 
894 static const char * syscall_names_table [] =
895 {
896   /* Native Win32 API procedures: */
897   "close-handle",
898   "copy-file",
899   "create-directory",
900   "create-file",
901   "create-pipe",
902   "create-process",
903   "delete-file",
904   "duplicate-handle",
905   "enum-windows",
906   "expand-environment-strings",
907   "find-first-file",
908   "get-exit-code-process",
909   "get-file-attributes",
910   "get-file-information-by-handle",
911   "get-file-size",
912   "get-file-time",
913   "get-keyboard-state",
914   "get-std-handle",
915   "initialize-security-descriptor",
916   "move-file",
917   "msg-wait-for-multiple-objects",
918   "peek-named-pipe",
919   "read-file",
920   "reg-close-key",
921   "reg-create-key-ex",
922   "reg-delete-key",
923   "reg-delete-value",
924   "reg-enum-key-ex",
925   "reg-enum-value",
926   "reg-open-key-ex",
927   "reg-query-info-key",
928   "reg-query-value-ex",
929   "reg-set-value-ex",
930   "remove-directory",
931   "set-current-directory",
932   "set-end-of-file",
933   "set-file-attributes",
934   "set-file-pointer",
935   "set-file-time",
936   "set-keyboard-state",
937   "set-security-descriptor-dacl",
938   "set-std-handle",
939   "set-timer",
940   "terminate-process",
941   "wait-for-multiple-objects",
942   "wait-for-single-object",
943   "write-file",
944 
945   /* Winsock procedures: */
946   "accept",
947   "bind",
948   "close-socket",
949   "connect",
950   "get-host-by-name",
951   "get-host-name",
952   "get-socket-option",
953   "ioctl-socket",
954   "listen",
955   "recv",
956   "send",
957   "select",
958   "set-socket-option",
959   "shutdown",
960   "socket",
961 
962   /* C Library's unix-style procedures: */
963   "close",
964   "fstat",
965   "getcwd",
966   "gmtime",
967   "localtime",
968   "lseek",
969   "malloc",
970   "mkdir",
971   "mktime",
972   "open",
973   "read",
974   "realloc",
975   "rmdir",
976   "stat",
977   "unlink",
978   "write"
979 };
980 
981 /* Machine-generated table, do not edit: */
982 static const char * syserr_names_table [] =
983 {
984   /* Win32 error codes: */
985   "success",
986   "invalid-function",
987   "file-not-found",
988   "path-not-found",
989   "too-many-open-files",
990   "access-denied",
991   "invalid-handle",
992   "arena-trashed",
993   "not-enough-memory",
994   "invalid-block",
995   "bad-environment",
996   "bad-format",
997   "invalid-access",
998   "invalid-data",
999   "outofmemory",
1000   "invalid-drive",
1001   "current-directory",
1002   "not-same-device",
1003   "no-more-files",
1004   "write-protect",
1005   "bad-unit",
1006   "not-ready",
1007   "bad-command",
1008   "crc",
1009   "bad-length",
1010   "seek",
1011   "not-dos-disk",
1012   "sector-not-found",
1013   "out-of-paper",
1014   "write-fault",
1015   "read-fault",
1016   "gen-failure",
1017   "sharing-violation",
1018   "lock-violation",
1019   "wrong-disk",
1020   "sharing-buffer-exceeded",
1021   "handle-eof",
1022   "handle-disk-full",
1023   "not-supported",
1024   "rem-not-list",
1025   "dup-name",
1026   "bad-netpath",
1027   "network-busy",
1028   "dev-not-exist",
1029   "too-many-cmds",
1030   "adap-hdw-err",
1031   "bad-net-resp",
1032   "unexp-net-err",
1033   "bad-rem-adap",
1034   "printq-full",
1035   "no-spool-space",
1036   "print-cancelled",
1037   "netname-deleted",
1038   "network-access-denied",
1039   "bad-dev-type",
1040   "bad-net-name",
1041   "too-many-names",
1042   "too-many-sess",
1043   "sharing-paused",
1044   "req-not-accep",
1045   "redir-paused",
1046   "file-exists",
1047   "cannot-make",
1048   "fail-i24",
1049   "out-of-structures",
1050   "already-assigned",
1051   "invalid-password",
1052   "invalid-parameter",
1053   "net-write-fault",
1054   "no-proc-slots",
1055   "too-many-semaphores",
1056   "excl-sem-already-owned",
1057   "sem-is-set",
1058   "too-many-sem-requests",
1059   "invalid-at-interrupt-time",
1060   "sem-owner-died",
1061   "sem-user-limit",
1062   "disk-change",
1063   "drive-locked",
1064   "broken-pipe",
1065   "open-failed",
1066   "buffer-overflow",
1067   "disk-full",
1068   "no-more-search-handles",
1069   "invalid-target-handle",
1070   "invalid-category",
1071   "invalid-verify-switch",
1072   "bad-driver-level",
1073   "call-not-implemented",
1074   "sem-timeout",
1075   "insufficient-buffer",
1076   "invalid-name",
1077   "invalid-level",
1078   "no-volume-label",
1079   "mod-not-found",
1080   "proc-not-found",
1081   "wait-no-children",
1082   "child-not-complete",
1083   "direct-access-handle",
1084   "negative-seek",
1085   "seek-on-device",
1086   "is-join-target",
1087   "is-joined",
1088   "is-substed",
1089   "not-joined",
1090   "not-substed",
1091   "join-to-join",
1092   "subst-to-subst",
1093   "join-to-subst",
1094   "subst-to-join",
1095   "busy-drive",
1096   "same-drive",
1097   "dir-not-root",
1098   "dir-not-empty",
1099   "is-subst-path",
1100   "is-join-path",
1101   "path-busy",
1102   "is-subst-target",
1103   "system-trace",
1104   "invalid-event-count",
1105   "too-many-muxwaiters",
1106   "invalid-list-format",
1107   "label-too-long",
1108   "too-many-tcbs",
1109   "signal-refused",
1110   "discarded",
1111   "not-locked",
1112   "bad-threadid-addr",
1113   "bad-arguments",
1114   "bad-pathname",
1115   "signal-pending",
1116   "max-thrds-reached",
1117   "lock-failed",
1118   "busy",
1119   "cancel-violation",
1120   "atomic-locks-not-supported",
1121   "invalid-segment-number",
1122   "invalid-ordinal",
1123   "already-exists",
1124   "invalid-flag-number",
1125   "sem-not-found",
1126   "invalid-starting-codeseg",
1127   "invalid-stackseg",
1128   "invalid-moduletype",
1129   "invalid-exe-signature",
1130   "exe-marked-invalid",
1131   "bad-exe-format",
1132   "iterated-data-exceeds-64k",
1133   "invalid-minallocsize",
1134   "dynlink-from-invalid-ring",
1135   "iopl-not-enabled",
1136   "invalid-segdpl",
1137   "autodataseg-exceeds-64k",
1138   "ring2seg-must-be-movable",
1139   "reloc-chain-xeeds-seglim",
1140   "infloop-in-reloc-chain",
1141   "envvar-not-found",
1142   "no-signal-sent",
1143   "filename-exced-range",
1144   "ring2-stack-in-use",
1145   "meta-expansion-too-long",
1146   "invalid-signal-number",
1147   "thread-1-inactive",
1148   "locked",
1149   "too-many-modules",
1150   "nesting-not-allowed",
1151   "bad-pipe",
1152   "pipe-busy",
1153   "no-data",
1154   "pipe-not-connected",
1155   "more-data",
1156   "vc-disconnected",
1157   "invalid-ea-name",
1158   "ea-list-inconsistent",
1159   "no-more-items",
1160   "cannot-copy",
1161   "directory",
1162   "eas-didnt-fit",
1163   "ea-file-corrupt",
1164   "ea-table-full",
1165   "invalid-ea-handle",
1166   "eas-not-supported",
1167   "not-owner",
1168   "too-many-posts",
1169   "partial-copy",
1170   "mr-mid-not-found",
1171   "invalid-address",
1172   "arithmetic-overflow",
1173   "pipe-connected",
1174   "pipe-listening",
1175   "ea-access-denied",
1176   "operation-aborted",
1177   "io-incomplete",
1178   "io-pending",
1179   "noaccess",
1180   "swaperror",
1181   "stack-overflow",
1182   "invalid-message",
1183   "can-not-complete",
1184   "invalid-flags",
1185   "unrecognized-volume",
1186   "file-invalid",
1187   "fullscreen-mode",
1188   "no-token",
1189   "baddb",
1190   "badkey",
1191   "cantopen",
1192   "cantread",
1193   "cantwrite",
1194   "registry-recovered",
1195   "registry-corrupt",
1196   "registry-io-failed",
1197   "not-registry-file",
1198   "key-deleted",
1199   "no-log-space",
1200   "key-has-children",
1201   "child-must-be-volatile",
1202   "notify-enum-dir",
1203   "dependent-services-running",
1204   "invalid-service-control",
1205   "service-request-timeout",
1206   "service-no-thread",
1207   "service-database-locked",
1208   "service-already-running",
1209   "invalid-service-account",
1210   "service-disabled",
1211   "circular-dependency",
1212   "service-does-not-exist",
1213   "service-cannot-accept-ctrl",
1214   "service-not-active",
1215   "failed-service-controller-connect",
1216   "exception-in-service",
1217   "database-does-not-exist",
1218   "service-specific-error",
1219   "process-aborted",
1220   "service-dependency-fail",
1221   "service-logon-failed",
1222   "service-start-hang",
1223   "invalid-service-lock",
1224   "service-marked-for-delete",
1225   "service-exists",
1226   "already-running-lkg",
1227   "service-dependency-deleted",
1228   "boot-already-accepted",
1229   "service-never-started",
1230   "duplicate-service-name",
1231   "end-of-media",
1232   "filemark-detected",
1233   "beginning-of-media",
1234   "setmark-detected",
1235   "no-data-detected",
1236   "partition-failure",
1237   "invalid-block-length",
1238   "device-not-partitioned",
1239   "unable-to-lock-media",
1240   "unable-to-unload-media",
1241   "media-changed",
1242   "bus-reset",
1243   "no-media-in-drive",
1244   "no-unicode-translation",
1245   "dll-init-failed",
1246   "shutdown-in-progress",
1247   "no-shutdown-in-progress",
1248   "io-device",
1249   "serial-no-device",
1250   "irq-busy",
1251   "more-writes",
1252   "counter-timeout",
1253   "floppy-id-mark-not-found",
1254   "floppy-wrong-cylinder",
1255   "floppy-unknown-error",
1256   "floppy-bad-registers",
1257   "disk-recalibrate-failed",
1258   "disk-operation-failed",
1259   "disk-reset-failed",
1260   "eom-overflow",
1261   "not-enough-server-memory",
1262   "possible-deadlock",
1263   "mapped-alignment",
1264   "set-power-state-vetoed",
1265   "set-power-state-failed",
1266   "old-win-version",
1267   "app-wrong-os",
1268   "single-instance-app",
1269   "rmode-app",
1270   "invalid-dll",
1271   "no-association",
1272   "dde-fail",
1273   "dll-not-found",
1274   "bad-username",
1275   "not-connected",
1276   "open-files",
1277   "active-connections",
1278   "device-in-use",
1279   "bad-device",
1280   "connection-unavail",
1281   "device-already-remembered",
1282   "no-net-or-bad-path",
1283   "bad-provider",
1284   "cannot-open-profile",
1285   "bad-profile",
1286   "not-container",
1287   "extended-error",
1288   "invalid-groupname",
1289   "invalid-computername",
1290   "invalid-eventname",
1291   "invalid-domainname",
1292   "invalid-servicename",
1293   "invalid-netname",
1294   "invalid-sharename",
1295   "invalid-passwordname",
1296   "invalid-messagename",
1297   "invalid-messagedest",
1298   "session-credential-conflict",
1299   "remote-session-limit-exceeded",
1300   "dup-domainname",
1301   "no-network",
1302   "cancelled",
1303   "user-mapped-file",
1304   "connection-refused",
1305   "graceful-disconnect",
1306   "address-already-associated",
1307   "address-not-associated",
1308   "connection-invalid",
1309   "connection-active",
1310   "network-unreachable",
1311   "host-unreachable",
1312   "protocol-unreachable",
1313   "port-unreachable",
1314   "request-aborted",
1315   "connection-aborted",
1316   "retry",
1317   "connection-count-limit",
1318   "login-time-restriction",
1319   "login-wksta-restriction",
1320   "incorrect-address",
1321   "already-registered",
1322   "service-not-found",
1323   "not-authenticated",
1324   "not-logged-on",
1325   "continue",
1326   "already-initialized",
1327   "no-more-devices",
1328   "not-all-assigned",
1329   "some-not-mapped",
1330   "no-quotas-for-account",
1331   "local-user-session-key",
1332   "null-lm-password",
1333   "unknown-revision",
1334   "revision-mismatch",
1335   "invalid-owner",
1336   "invalid-primary-group",
1337   "no-impersonation-token",
1338   "cant-disable-mandatory",
1339   "no-logon-servers",
1340   "no-such-logon-session",
1341   "no-such-privilege",
1342   "privilege-not-held",
1343   "invalid-account-name",
1344   "user-exists",
1345   "no-such-user",
1346   "group-exists",
1347   "no-such-group",
1348   "member-in-group",
1349   "member-not-in-group",
1350   "last-admin",
1351   "wrong-password",
1352   "ill-formed-password",
1353   "password-restriction",
1354   "logon-failure",
1355   "account-restriction",
1356   "invalid-logon-hours",
1357   "invalid-workstation",
1358   "password-expired",
1359   "account-disabled",
1360   "none-mapped",
1361   "too-many-luids-requested",
1362   "luids-exhausted",
1363   "invalid-sub-authority",
1364   "invalid-acl",
1365   "invalid-sid",
1366   "invalid-security-descr",
1367   "bad-inheritance-acl",
1368   "server-disabled",
1369   "server-not-disabled",
1370   "invalid-id-authority",
1371   "allotted-space-exceeded",
1372   "invalid-group-attributes",
1373   "bad-impersonation-level",
1374   "cant-open-anonymous",
1375   "bad-validation-class",
1376   "bad-token-type",
1377   "no-security-on-object",
1378   "cant-access-domain-info",
1379   "invalid-server-state",
1380   "invalid-domain-state",
1381   "invalid-domain-role",
1382   "no-such-domain",
1383   "domain-exists",
1384   "domain-limit-exceeded",
1385   "internal-db-corruption",
1386   "internal-error",
1387   "generic-not-mapped",
1388   "bad-descriptor-format",
1389   "not-logon-process",
1390   "logon-session-exists",
1391   "no-such-package",
1392   "bad-logon-session-state",
1393   "logon-session-collision",
1394   "invalid-logon-type",
1395   "cannot-impersonate",
1396   "rxact-invalid-state",
1397   "rxact-commit-failure",
1398   "special-account",
1399   "special-group",
1400   "special-user",
1401   "members-primary-group",
1402   "token-already-in-use",
1403   "no-such-alias",
1404   "member-not-in-alias",
1405   "member-in-alias",
1406   "alias-exists",
1407   "logon-not-granted",
1408   "too-many-secrets",
1409   "secret-too-long",
1410   "internal-db-error",
1411   "too-many-context-ids",
1412   "logon-type-not-granted",
1413   "nt-cross-encryption-required",
1414   "no-such-member",
1415   "invalid-member",
1416   "too-many-sids",
1417   "lm-cross-encryption-required",
1418   "no-inheritance",
1419   "file-corrupt",
1420   "disk-corrupt",
1421   "no-user-session-key",
1422   "license-quota-exceeded",
1423   "invalid-window-handle",
1424   "invalid-menu-handle",
1425   "invalid-cursor-handle",
1426   "invalid-accel-handle",
1427   "invalid-hook-handle",
1428   "invalid-dwp-handle",
1429   "tlw-with-wschild",
1430   "cannot-find-wnd-class",
1431   "window-of-other-thread",
1432   "hotkey-already-registered",
1433   "class-already-exists",
1434   "class-does-not-exist",
1435   "class-has-windows",
1436   "invalid-index",
1437   "invalid-icon-handle",
1438   "private-dialog-index",
1439   "listbox-id-not-found",
1440   "no-wildcard-characters",
1441   "clipboard-not-open",
1442   "hotkey-not-registered",
1443   "window-not-dialog",
1444   "control-id-not-found",
1445   "invalid-combobox-message",
1446   "window-not-combobox",
1447   "invalid-edit-height",
1448   "dc-not-found",
1449   "invalid-hook-filter",
1450   "invalid-filter-proc",
1451   "hook-needs-hmod",
1452   "global-only-hook",
1453   "journal-hook-set",
1454   "hook-not-installed",
1455   "invalid-lb-message",
1456   "setcount-on-bad-lb",
1457   "lb-without-tabstops",
1458   "destroy-object-of-other-thread",
1459   "child-window-menu",
1460   "no-system-menu",
1461   "invalid-msgbox-style",
1462   "invalid-spi-value",
1463   "screen-already-locked",
1464   "hwnds-have-diff-parent",
1465   "not-child-window",
1466   "invalid-gw-command",
1467   "invalid-thread-id",
1468   "non-mdichild-window",
1469   "popup-already-active",
1470   "no-scrollbars",
1471   "invalid-scrollbar-range",
1472   "invalid-showwin-command",
1473   "no-system-resources",
1474   "nonpaged-system-resources",
1475   "paged-system-resources",
1476   "working-set-quota",
1477   "pagefile-quota",
1478   "commitment-limit",
1479   "menu-item-not-found",
1480   "eventlog-file-corrupt",
1481   "eventlog-cant-start",
1482   "log-file-full",
1483   "eventlog-file-changed",
1484   "rpc-s-invalid-string-binding",
1485   "rpc-s-wrong-kind-of-binding",
1486   "rpc-s-invalid-binding",
1487   "rpc-s-protseq-not-supported",
1488   "rpc-s-invalid-rpc-protseq",
1489   "rpc-s-invalid-string-uuid",
1490   "rpc-s-invalid-endpoint-format",
1491   "rpc-s-invalid-net-addr",
1492   "rpc-s-no-endpoint-found",
1493   "rpc-s-invalid-timeout",
1494   "rpc-s-object-not-found",
1495   "rpc-s-already-registered",
1496   "rpc-s-type-already-registered",
1497   "rpc-s-already-listening",
1498   "rpc-s-no-protseqs-registered",
1499   "rpc-s-not-listening",
1500   "rpc-s-unknown-mgr-type",
1501   "rpc-s-unknown-if",
1502   "rpc-s-no-bindings",
1503   "rpc-s-no-protseqs",
1504   "rpc-s-cant-create-endpoint",
1505   "rpc-s-out-of-resources",
1506   "rpc-s-server-unavailable",
1507   "rpc-s-server-too-busy",
1508   "rpc-s-invalid-network-options",
1509   "rpc-s-no-call-active",
1510   "rpc-s-call-failed",
1511   "rpc-s-call-failed-dne",
1512   "rpc-s-protocol-error",
1513   "rpc-s-unsupported-trans-syn",
1514   "rpc-s-unsupported-type",
1515   "rpc-s-invalid-tag",
1516   "rpc-s-invalid-bound",
1517   "rpc-s-no-entry-name",
1518   "rpc-s-invalid-name-syntax",
1519   "rpc-s-unsupported-name-syntax",
1520   "rpc-s-uuid-no-address",
1521   "rpc-s-duplicate-endpoint",
1522   "rpc-s-unknown-authn-type",
1523   "rpc-s-max-calls-too-small",
1524   "rpc-s-string-too-long",
1525   "rpc-s-protseq-not-found",
1526   "rpc-s-procnum-out-of-range",
1527   "rpc-s-binding-has-no-auth",
1528   "rpc-s-unknown-authn-service",
1529   "rpc-s-unknown-authn-level",
1530   "rpc-s-invalid-auth-identity",
1531   "rpc-s-unknown-authz-service",
1532   "ept-s-invalid-entry",
1533   "ept-s-cant-perform-op",
1534   "ept-s-not-registered",
1535   "rpc-s-nothing-to-export",
1536   "rpc-s-incomplete-name",
1537   "rpc-s-invalid-vers-option",
1538   "rpc-s-no-more-members",
1539   "rpc-s-not-all-objs-unexported",
1540   "rpc-s-interface-not-found",
1541   "rpc-s-entry-already-exists",
1542   "rpc-s-entry-not-found",
1543   "rpc-s-name-service-unavailable",
1544   "rpc-s-invalid-naf-id",
1545   "rpc-s-cannot-support",
1546   "rpc-s-no-context-available",
1547   "rpc-s-internal-error",
1548   "rpc-s-zero-divide",
1549   "rpc-s-address-error",
1550   "rpc-s-fp-div-zero",
1551   "rpc-s-fp-underflow",
1552   "rpc-s-fp-overflow",
1553   "rpc-x-no-more-entries",
1554   "rpc-x-ss-char-trans-open-fail",
1555   "rpc-x-ss-char-trans-short-file",
1556   "rpc-x-ss-in-null-context",
1557   "rpc-x-ss-context-damaged",
1558   "rpc-x-ss-handles-mismatch",
1559   "rpc-x-ss-cannot-get-call-handle",
1560   "rpc-x-null-ref-pointer",
1561   "rpc-x-enum-value-out-of-range",
1562   "rpc-x-byte-count-too-small",
1563   "rpc-x-bad-stub-data",
1564   "invalid-user-buffer",
1565   "unrecognized-media",
1566   "no-trust-lsa-secret",
1567   "no-trust-sam-account",
1568   "trusted-domain-failure",
1569   "trusted-relationship-failure",
1570   "trust-failure",
1571   "rpc-s-call-in-progress",
1572   "netlogon-not-started",
1573   "account-expired",
1574   "redirector-has-open-handles",
1575   "printer-driver-already-installed",
1576   "unknown-port",
1577   "unknown-printer-driver",
1578   "unknown-printprocessor",
1579   "invalid-separator-file",
1580   "invalid-priority",
1581   "invalid-printer-name",
1582   "printer-already-exists",
1583   "invalid-printer-command",
1584   "invalid-datatype",
1585   "invalid-environment",
1586   "rpc-s-no-more-bindings",
1587   "nologon-interdomain-trust-account",
1588   "nologon-workstation-trust-account",
1589   "nologon-server-trust-account",
1590   "domain-trust-inconsistent",
1591   "server-has-open-handles",
1592   "resource-data-not-found",
1593   "resource-type-not-found",
1594   "resource-name-not-found",
1595   "resource-lang-not-found",
1596   "not-enough-quota",
1597   "rpc-s-no-interfaces",
1598   "rpc-s-call-cancelled",
1599   "rpc-s-binding-incomplete",
1600   "rpc-s-comm-failure",
1601   "rpc-s-unsupported-authn-level",
1602   "rpc-s-no-princ-name",
1603   "rpc-s-not-rpc-error",
1604   "rpc-s-uuid-local-only",
1605   "rpc-s-sec-pkg-error",
1606   "rpc-s-not-cancelled",
1607   "rpc-x-invalid-es-action",
1608   "rpc-x-wrong-es-version",
1609   "rpc-x-wrong-stub-version",
1610   "rpc-s-group-member-not-found",
1611   "ept-s-cant-create",
1612   "rpc-s-invalid-object",
1613   "invalid-time",
1614   "invalid-form-name",
1615   "invalid-form-size",
1616   "already-waiting",
1617   "printer-deleted",
1618   "invalid-printer-state",
1619   "password-must-change",
1620   "domain-controller-not-found",
1621   "account-locked-out",
1622   "no-browser-servers-found",
1623   "invalid-pixel-format",
1624   "bad-driver",
1625   "invalid-window-style",
1626   "metafile-not-supported",
1627   "transform-not-supported",
1628   "clipping-not-supported",
1629   "unknown-print-monitor",
1630   "printer-driver-in-use",
1631   "spool-file-not-found",
1632   "spl-no-startdoc",
1633   "spl-no-addjob",
1634   "print-processor-already-installed",
1635   "print-monitor-already-installed",
1636   "wins-internal",
1637   "can-not-del-local-wins",
1638   "static-init",
1639   "inc-backup",
1640   "full-backup",
1641   "rec-non-existent",
1642   "rpl-not-allowed",
1643 
1644   /* Winsock error codes: */
1645   "wsaeintr",
1646   "wsaebadf",
1647   "wsaeacces",
1648   "wsaefault",
1649   "wsaeinval",
1650   "wsaemfile",
1651   "wsaewouldblock",
1652   "wsaeinprogress",
1653   "wsaealready",
1654   "wsaenotsock",
1655   "wsaedestaddrreq",
1656   "wsaemsgsize",
1657   "wsaeprototype",
1658   "wsaenoprotoopt",
1659   "wsaeprotonosupport",
1660   "wsaesocktnosupport",
1661   "wsaeopnotsupp",
1662   "wsaepfnosupport",
1663   "wsaeafnosupport",
1664   "wsaeaddrinuse",
1665   "wsaeaddrnotavail",
1666   "wsaenetdown",
1667   "wsaenetunreach",
1668   "wsaenetreset",
1669   "wsaeconnaborted",
1670   "wsaeconnreset",
1671   "wsaenobufs",
1672   "wsaeisconn",
1673   "wsaenotconn",
1674   "wsaeshutdown",
1675   "wsaetoomanyrefs",
1676   "wsaetimedout",
1677   "wsaeconnrefused",
1678   "wsaeloop",
1679   "wsaenametoolong",
1680   "wsaehostdown",
1681   "wsaehostunreach",
1682   "wsaenotempty",
1683   "wsaeproclim",
1684   "wsaeusers",
1685   "wsaedquot",
1686   "wsaestale",
1687   "wsaeremote",
1688   "wsaediscon",
1689   "wsasysnotready",
1690   "wsavernotsupported",
1691   "wsanotinitialised",
1692   "wsahost_not_found",
1693   "wsatry_again",
1694   "wsano_recovery",
1695   "wsano_data",
1696 
1697   /* Unix error codes: */
1698   "arg-list-too-long",
1699   "bad-file-descriptor",
1700   "domain-error",
1701   "exec-format-error",
1702   "file-exists",
1703   "interrupted-function-call",
1704   "invalid-argument",
1705   "no-such-file-or-directory",
1706   "not-a-directory",
1707   "not-enough-space",
1708   "permission-denied",
1709   "resource-deadlock-avoided",
1710   "resource-temporarily-unavailable",
1711   "result-too-large",
1712   "too-many-open-files",
1713   "unknown"
1714 };
1715 
1716 #endif /* SCM_NTTOP_C */
1717 
1718 #endif /* not DEFINE_WIN32_SYSCALLS */
1719