6#define MAXIMUM_SYNCHRONIZING_OBJECTS 64
8#define STATUS_RANGE 1000
10#define MKSTATUS_RANGE(previous) ((::i32)(previous) + (::i32)(STATUS_RANGE))
12#define STATUS_RANGE_GENERAL ((::i32)(0))
14#define STATUS_RANGE_TIME_BAG MKSTATUS_RANGE(STATUS_RANGE_GENERAL)
16#define STATUS_RANGE_EXCEPTION MKSTATUS_RANGE(STATUS_RANGE_TIME_BAG)
18#define STATUS_RANGE_IO MKSTATUS_RANGE(STATUS_RANGE_EXCEPTION)
20#define STATUS_RANGE_FILE MKSTATUS_RANGE(STATUS_RANGE_IO)
22#define STATUS_RANGE_NETWORK MKSTATUS_RANGE(STATUS_RANGE_FILE)
24#define STATUS_RANGE_HTTP MKSTATUS_RANGE(STATUS_RANGE_NETWORK)
26#define STATUS_RANGE_AUTHENTICATION MKSTATUS_RANGE(STATUS_RANGE_HTTP)
28#define STATUS_RANGE_DATABASE MKSTATUS_RANGE(STATUS_RANGE_AUTHENTICATION)
30#define STATUS_RANGE_MULTIMEDIA MKSTATUS_RANGE(STATUS_RANGE_DATABASE)
32#define STATUS_FAILURE (I32_MINIMUM)
34#define INT_FAILURE_STATUS(iStatusRange) (((::i64)STATUS_FAILURE + (iStatusRange)))
36#define INT_SUCCESS_STATUS(iStatusRange) ((::i64)(iStatusRange))
38#define FAILURE_STATUS(iStatusRange) ((::e_status )(::enum_status)INT_FAILURE_STATUS(iStatusRange))
40#define SUCCESS_STATUS(iStatusRange) ((::e_status )(::enum_status)INT_SUCCESS_STATUS(iStatusRange))
42#define PRIestatus PRIi64
44#define DECLARE_SE_EXCEPTION_ERROR(name) IDENTIFIER_CONCATENATE(error_,name)
47enum enum_status : ::i64
50 e_status_none = INT64_MIN,
52 e_status_process_result_negative_base = (::i64)I32_MINIMUM - 1,
54 error_failed = INT_FAILURE_STATUS(STATUS_RANGE_GENERAL),
64 error_another_installation_already_running,
68 error_no_devices_found,
69 error_invalid_device_id,
73 error_would_reach_buffer_limit,
74 error_not_implemented,
75 error_conversion_not_a_number,
76 error_not_valid_email_address,
77 error_not_valid_user_id,
80 error_value_not_found,
84 error_composite_not_composer_member,
87 error_insufficient_buffer,
88 error_not_initialized,
99 error_already_working_on_it,
107 error_what_exclamation_exclamation,
109 error_invalid_character,
113 error_exit_application,
119 error_network_payload_parsing,
121 error_invalid_operation,
124 error_need_restart_application_to_activate_feature,
125 error_function_entry_not_found,
126 error_some_error_has_occurred,
127 error_library_not_found,
128 error_library_not_loaded,
132 error_codec_not_found,
135 error_operation_not_permitted,
136 error_resource_deadlock_would_occur,
139error_time_bag = INT_FAILURE_STATUS(STATUS_RANGE_EXCEPTION),
143error_invalid_parameter,
145error_invalid_tk_position,
147error_bad_file_format,
148error_bad_data_format,
149error_unsupported_function,
150error_already_allocated,
172error_midi_not_prerolled,
179error_rtf_document_format,
180error_rtf_section_format,
181error_rtf_paragraph_format,
188error_exception = INT_FAILURE_STATUS(STATUS_RANGE_EXCEPTION),
189error_standard_exception,
191error_index_out_of_bounds,
193error_unexpected_result,
196error_catch_all_exception,
200error_invalid_time_type,
202error_unexpected_situation,
203error_datetime_parser,
204error_invalid_empty_argument,
205error_segmentation_fault,
206DECLARE_SE_EXCEPTION_ERROR(standard_datatype_misalignment),
207DECLARE_SE_EXCEPTION_ERROR(standard_breakpoint),
208DECLARE_SE_EXCEPTION_ERROR(standard_single_step),
209DECLARE_SE_EXCEPTION_ERROR(standard_array_bounds_exceeded),
210DECLARE_SE_EXCEPTION_ERROR(standard_flt_denormal_operand),
211DECLARE_SE_EXCEPTION_ERROR(standard_flt_divide_by_zero),
212DECLARE_SE_EXCEPTION_ERROR(standard_flt_inexact_result),
213DECLARE_SE_EXCEPTION_ERROR(standard_flt_invalid_operation),
214DECLARE_SE_EXCEPTION_ERROR(standard_flt_overflow),
215DECLARE_SE_EXCEPTION_ERROR(standard_flt_stack_check),
216DECLARE_SE_EXCEPTION_ERROR(standard_flt_underflow),
217DECLARE_SE_EXCEPTION_ERROR(standard_int_divide_by_zero),
218DECLARE_SE_EXCEPTION_ERROR(standard_int_overflow),
219DECLARE_SE_EXCEPTION_ERROR(standard_priv_instruction),
220DECLARE_SE_EXCEPTION_ERROR(standard_in_page_error),
221DECLARE_SE_EXCEPTION_ERROR(standard_illegal_instruction),
222DECLARE_SE_EXCEPTION_ERROR(standard_noncontinuable_exception),
223DECLARE_SE_EXCEPTION_ERROR(standard_stack_overflow),
224DECLARE_SE_EXCEPTION_ERROR(standard_invalid_disposition),
225DECLARE_SE_EXCEPTION_ERROR(standard_guard_page),
226DECLARE_SE_EXCEPTION_ERROR(standard_invalid_handle),
227DECLARE_SE_EXCEPTION_ERROR(standard_microsoft_cpp),
228DECLARE_SE_EXCEPTION_ERROR(standard_winrt_originate_error),
231error_io = INT_FAILURE_STATUS(STATUS_RANGE_IO),
234error_port_not_opened,
236error_premature_end_of_file,
237error_serialization_unexpected_value,
241 error_file = INT_FAILURE_STATUS(STATUS_RANGE_FILE),
242 error_file_not_found,
244 error_too_many_open_files,
245 error_file_access_denied,
247 error_erase_current_dir,
248 error_directory_full,
251 error_file_sharing_violation,
252 error_file_lock_violation,
256 error_end_of_decoding,
257 error_not_a_directory,
259 error_icloud_not_available,
262 error_network = INT_FAILURE_STATUS(STATUS_RANGE_NETWORK),
263 error_connection_timed_out,
264 error_connection_cancelled,
265 error_on_connection_timeout,
268 abandoned_base = -0x7FFFFFFE00000000ll,
269 abandoned_end = abandoned_base + MAXIMUM_SYNCHRONIZING_OBJECTS,
271 success_login = INT_FAILURE_STATUS(STATUS_RANGE_AUTHENTICATION),
274 error_http = INT_FAILURE_STATUS(STATUS_RANGE_HTTP),
276 error_database = INT_FAILURE_STATUS(STATUS_RANGE_DATABASE),
278 error_dataset_wrong_state,
279 error_dataset_inactive,
280 error_field_not_found,
282 undefined = INT_SUCCESS_STATUS(STATUS_RANGE_GENERAL),
292 success_mouse_has_left,
293 partial_one_third_or_less_has_failed,
294 partial_sorf_of_half_has_failed,
295 partial_two_thirds_or_more_but_not_all_has_failed,
297 success_not_constructed,
298 success_not_allocated,
300 success_not_composed,
301 success_already_added,
303 success_already_enabled,
308 success_io_completion,
312 success_http = INT_SUCCESS_STATUS(STATUS_RANGE_HTTP),
313 success_http_redirection,
316 success_dataset_empty = INT_SUCCESS_STATUS(STATUS_RANGE_DATABASE),
319 success_time_bag = INT_SUCCESS_STATUS(STATUS_RANGE_TIME_BAG),
320 success_event_not_found,
321 success_track_not_found,
324 success_reached_tk_max,
325 success_meta_pending,
327 success_end_of_track,
331#include "status_range_authentication.h"
333 e_status_process_result_positive_base = 0x10000000,
334 signaled_base = 0x10000000,
335 signaled_end = signaled_base + MAXIMUM_SYNCHRONIZING_OBJECTS,
340#undef MAXIMUM_SYNCHRONIZING_OBJECTS
343#if __cplusplus > 202001L
344#define INLINE_CONSTEXPR inline constexpr
346#define INLINE_CONSTEXPR inline