home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / ntapi.h < prev    next >
Text File  |  2000-05-20  |  45KB  |  1,704 lines

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