7#define __XTD_CORE_INTERNAL__
11#undef __XTD_CORE_INTERNAL__
12#include <unordered_map>
13#include <system_error>
22# undef CO_E_NOTINITIALIZED
23# undef DISP_E_PARAMNOTFOUND
24# undef DISP_E_TYPEMISMATCH
25# undef DISP_E_BADVARTYPE
26# undef DISP_E_OVERFLOW
27# undef DISP_E_DIVBYZERO
30# undef E_CHANGED_STATE
37# undef ERROR_MRM_MAP_NOT_FOUND
40# undef RPC_E_CHANGED_MODE
41# undef TYPE_E_TYPEMISMATCH
42# undef STG_E_PATHNOTFOUND
43# undef ERROR_TOO_MANY_OPEN_FILES
44# undef ERROR_SHARING_VIOLATION
45# undef ERROR_LOCK_VIOLATION
46# undef ERROR_OPEN_FAILED
47# undef ERROR_DISK_CORRUPT
48# undef ERROR_UNRECOGNIZED_VOLUME
49# undef ERROR_DLL_INIT_FAILED
50# undef ERROR_FILE_INVALID
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Contains the HRESULT values used by xtd.
Definition h_result.hpp:95
static auto get_messages() noexcept -> const xtd::collections::generic::dictionary< xtd::int32, xtd::string > &
Gets The HRESULT messages.
static constexpr auto COR_E_SERIALIZATION
Serialization error.
Definition h_result.hpp:233
static constexpr auto COR_E_SYNCHRONIZATIONLOCK
Object synchronization method was called from an unsynchronized block of code.
Definition h_result.hpp:237
static constexpr auto COR_E_TYPELOAD
Failure has occurred while loading a type.
Definition h_result.hpp:261
static constexpr auto ERROR_FILE_INVALID
File invalid.
Definition h_result.hpp:339
static constexpr auto E_POINTER
Attempted to read or write protected memory. This is often an indication that other memory is corrupt...
Definition h_result.hpp:299
static auto failed(xtd::int32 h_result) noexcept -> bool
Provides a generic fail test for the specified HRESULT.
static constexpr auto COR_E_INVALIDFILTERCRITERIA
Specified filter criteria was invalid.
Definition h_result.hpp:175
static constexpr auto COR_E_MISSINGMEMBER
Attempted to access a missing member.
Definition h_result.hpp:197
static constexpr auto COR_E_CUSTOMATTRIBUTEFORMAT
Binary format of the specified custom attribute was invalid.
Definition h_result.hpp:133
static constexpr auto COR_E_ABANDONEDMUTEX
The wait completed due to an abandoned mutex.
Definition h_result.hpp:105
static constexpr auto COR_E_MEMBERACCESS
Cannot access member.
Definition h_result.hpp:189
static constexpr auto COR_E_EXCEPTION
Exception of type 'xtd::exception' was thrown.
Definition h_result.hpp:151
static constexpr auto COR_E_RANK
Attempted to operate on an array with the incorrect number of dimensions.
Definition h_result.hpp:221
static constexpr auto COR_E_RUNTIMEWRAPPED
An object that does not derive from xtd:oobject has been wrapped in a runtime_wrapped_exception.
Definition h_result.hpp:225
static constexpr auto COR_E_AMBIGUOUSIMPLEMENTATION
Ambiguous implementation found.
Definition h_result.hpp:107
static auto get_h_results() noexcept -> const xtd::array< xtd::int32 > &
Gets an array of HRESULT.
static constexpr auto DISP_E_OVERFLOW
Arithmetic operation resulted in an overflow.
Definition h_result.hpp:279
static constexpr auto E_CHANGED_STATE
The state has been modified.
Definition h_result.hpp:287
static constexpr auto COR_E_TARGETINVOCATION
Exception has been thrown by the target of an invocation.
Definition h_result.hpp:243
static constexpr auto COR_E_FAILFAST
Fail fast.
Definition h_result.hpp:155
static constexpr auto COR_E_NOTSUPPORTED
Specified method is not supported.
Definition h_result.hpp:207
static constexpr auto ERROR_DLL_INIT_FAILED
DLL init failed.
Definition h_result.hpp:335
static constexpr auto COR_E_INDEXOUTOFRANGE
Index was outside the bounds of the array.
Definition h_result.hpp:165
static constexpr auto COR_E_OVERFLOW
Arithmetic operation resulted in an overflow.
Definition h_result.hpp:215
static constexpr auto COR_E_VERIFICATION
Operation could destabilize the runtime.
Definition h_result.hpp:267
static constexpr auto FUSION_E_REF_DEF_MISMATCH
Fusion the reference definition is incompatible.
Definition h_result.hpp:321
static constexpr auto COR_E_METHODACCESS
Attempt to access the method failed.
Definition h_result.hpp:191
static constexpr auto COR_E_STACKOVERFLOW
Operation caused a stack overflow.
Definition h_result.hpp:235
static constexpr auto COR_E_TYPEINITIALIZATION
The type initializer for 'value' threw an exception.
Definition h_result.hpp:259
static constexpr auto COR_E_INVALIDCOMOBJECT
Attempt has been made to use a COM object that does not have a backing class factory.
Definition h_result.hpp:173
static constexpr auto COR_E_OUTOFMEMORY
Insufficient memory to continue the execution of the program.
Definition h_result.hpp:213
static constexpr auto COR_E_THREADINTERRUPTED
Thread was interrupted from a waiting state.
Definition h_result.hpp:249
static constexpr auto E_BOUNDS
Bounds exception.
Definition h_result.hpp:285
static constexpr auto COR_E_IO
I/O error occurred.
Definition h_result.hpp:183
static constexpr auto E_UNEXPECTED
Unexpected failure.
Definition h_result.hpp:301
static constexpr auto S_FALSE
Operation successful but returned no results.
Definition h_result.hpp:103
static constexpr auto RPC_E_CHANGED_MODE
Cannot change the current thread mode.
Definition h_result.hpp:309
static auto get_code(xtd::int32 h_result) noexcept -> xtd::int32
Gets the code portion of the specified HRESULT.
static constexpr auto COR_E_CONTEXTMARSHAL
Attempted to marshal an object across a context boundary.
Definition h_result.hpp:131
static constexpr auto COR_E_MULTICASTNOTSUPPORTED
Attempted to add multiple callbacks to a delegate that does not support multicast.
Definition h_result.hpp:203
static auto to_string(xtd::int32 h_result) noexcept -> xtd::string
Gets the name of the specified HRESULT.
static constexpr auto COR_E_MARSHALDIRECTIVE
Marshaling directives are invalid.
Definition h_result.hpp:187
static constexpr auto ERROR_TOO_MANY_OPEN_FILES
Too many open files.
Definition h_result.hpp:323
static constexpr auto COR_E_INSUFFICIENTMEMORY
Insufficient memory to continue the execution of the program.
Definition h_result.hpp:169
static constexpr auto DISP_E_TYPEMISMATCH
Attempt to access a variable with an incompatible type.
Definition h_result.hpp:275
static constexpr auto MSEE_E_ASSEMBLYLOADINPROGRESS
Assembly load in progress.
Definition h_result.hpp:337
static constexpr auto COR_E_NOTFINITENUMBER
Number encountered was not a finite quantity.
Definition h_result.hpp:205
static constexpr auto DISP_E_DIVBYZERO
Attempted to divide by zero.
Definition h_result.hpp:281
static constexpr auto COR_E_INSUFFICIENTEXECUTIONSTACK
Insufficient stack to continue executing the program safely. This can happen from having too many fun...
Definition h_result.hpp:167
static constexpr auto S_OK
Operation successful.
Definition h_result.hpp:101
static constexpr auto COR_E_DLLNOTFOUND
Dll was not found.
Definition h_result.hpp:141
static constexpr auto COR_E_ARGUMENT
Value does not fall within the expected range.
Definition h_result.hpp:115
static constexpr auto COR_E_PATHTOOLONG
The specified file name or path is too long, or a component of the specified path is too long.
Definition h_result.hpp:217
static constexpr auto COR_E_REFLECTIONTYPELOAD
Exception of type 'xtd::reflection::reflection_type_load_exception' was thrown.
Definition h_result.hpp:223
static constexpr auto ERROR_SHARING_VIOLATION
Sharing violation.
Definition h_result.hpp:325
static constexpr auto ERROR_MRM_MAP_NOT_FOUND
Resource map not found.
Definition h_result.hpp:303
static constexpr auto E_ABORT
Operation aborted.
Definition h_result.hpp:283
static auto get_facility(int32 h_result) noexcept -> xtd::int32
The facility of the specified HRESULT, which indicates what API or framework originated this error.
static constexpr auto COR_E_FIELDACCESS
Attempted to access a field that is not accessible by the caller.
Definition h_result.hpp:157
static constexpr auto COR_E_OPERATIONCANCELED
The operation was canceled.
Definition h_result.hpp:211
static constexpr auto COR_E_INVALIDCAST
Specified cast is not valid.
Definition h_result.hpp:171
static constexpr auto CTL_E_PATHNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:315
static constexpr auto ERROR_UNRECOGNIZED_VOLUME
Unrecognized volume.
Definition h_result.hpp:333
static auto get_message(xtd::int32 h_result) noexcept -> xtd::string
Gets the message of the specified HRESULT.
static constexpr auto COR_E_THREADABORTED
Thread was aborted.
Definition h_result.hpp:247
static auto get_names() noexcept -> const xtd::collections::generic::dictionary< xtd::int32, xtd::string > &
Gets The HRESULT names.
static constexpr auto COR_E_TIMEOUT
The operation has timed out.
Definition h_result.hpp:255
static constexpr auto FUSION_E_INVALID_NAME
Fusion invalid name exception.
Definition h_result.hpp:319
static constexpr auto ERROR_TIMEOUT
The operation has timed out.
Definition h_result.hpp:305
static constexpr auto COR_E_ARRAYTYPEMISMATCH
Attempted to access an element as a type incompatible with the array.
Definition h_result.hpp:121
static constexpr auto COR_E_MISSINGMETHOD
Attempted to access a missing method.
Definition h_result.hpp:199
static constexpr auto DISP_E_BADVARTYPE
Invalid variable type.
Definition h_result.hpp:277
static auto is_error(xtd::int32 h_result) noexcept -> bool
Provides a generic is error test for the specified HRESULT.
static constexpr auto RO_E_CLOSED
The object has been closed.
Definition h_result.hpp:307
static constexpr auto COR_E_CODECONTRACTFAILED
A code contract (ie, precondition, postcondition, invariant, or assert) failed.
Definition h_result.hpp:129
static constexpr auto COR_E_APPLICATION
Error in the application.
Definition h_result.hpp:113
static constexpr auto COR_E_AMBIGUOUSMATCH
Ambiguous match found.
Definition h_result.hpp:109
static constexpr auto COR_E_FILELOAD
Could not load the specified file.
Definition h_result.hpp:159
static constexpr auto CO_E_NOTINITIALIZED
Not initialized.
Definition h_result.hpp:271
static constexpr auto COR_E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:161
static constexpr auto COR_E_UNAUTHORIZEDACCESS
Attempted to perform an unauthorized operation.
Definition h_result.hpp:265
static auto h_result_category() noexcept -> const std::error_category &
Obtains a reference to the static error category object for HRESULT errors. The object is required to...
static constexpr auto COR_E_MISSINGFIELD
Attempted to access a non-existing field.
Definition h_result.hpp:193
static constexpr auto COR_E_WAITHANDLECANNOTBEOPENED
No handle of the given name exists.
Definition h_result.hpp:269
static constexpr auto COR_E_TYPEACCESS
Attempt to access the type failed.
Definition h_result.hpp:257
static constexpr auto COR_E_MISSINGSATELLITEASSEMBLY
Resource lookup fell back to the ultimate fallback resources in a satellite assembly,...
Definition h_result.hpp:201
static constexpr auto COR_E_SAFEARRAYTYPEMISMATCH
Specified array was not of the expected type.
Definition h_result.hpp:229
static constexpr auto COR_E_ARGUMENTOUTOFRANGE
Specified argument was out of the range of valid values.
Definition h_result.hpp:117
static constexpr auto COR_E_DRIVENOTFOUND
Could not find the drive. The drive might not be ready or might not be mapped.
Definition h_result.hpp:143
static constexpr auto COR_E_MISSINGMANIFESTRESOURCE
Attempted to access a missing manifest resource.
Definition h_result.hpp:195
static constexpr auto COR_E_PLATFORMNOTSUPPORTED
Operation is not supported on this platform.
Definition h_result.hpp:219
static constexpr auto COR_E_TARGET
Exception of type 'xtd::reflection::target_exception' was thrown.
Definition h_result.hpp:241
static constexpr auto ERROR_OPEN_FAILED
Open failed.
Definition h_result.hpp:329
static constexpr auto COR_E_ARITHMETIC
Overflow or underflow in the arithmetic operation.
Definition h_result.hpp:119
static constexpr auto COR_E_SAFEARRAYRANKMISMATCH
Specified array was not of the expected rank.
Definition h_result.hpp:227
static constexpr auto DISP_E_PARAMNOTFOUND
Could not find the parameter.
Definition h_result.hpp:273
static constexpr auto COR_E_DIVIDEBYZERO
Attempted to divide by zero.
Definition h_result.hpp:139
static constexpr auto TYPE_E_TYPEMISMATCH
Incompatible type.
Definition h_result.hpp:311
static constexpr auto COR_E_TYPEUNLOADED
Type had been unloaded.
Definition h_result.hpp:263
static constexpr auto ERROR_DISK_CORRUPT
Disk corrupt.
Definition h_result.hpp:331
static constexpr auto COR_E_OBJECTCLOSED
Cannot access a closed object.
Definition h_result.hpp:209
static constexpr auto COR_E_THREADSTART
Thread start failure.
Definition h_result.hpp:251
static constexpr auto COR_E_BADIMAGEFORMAT
Format of the executable (.exe) or library (.dll) is invalid.
Definition h_result.hpp:125
static constexpr auto COR_E_ENTRYPOINTNOTFOUND
Entry point was not found.
Definition h_result.hpp:149
static auto get_name(xtd::int32 h_result) noexcept -> xtd::string
Gets the name of the specified HRESULT.
static constexpr auto COR_E_DUPLICATEWAITOBJECT
Duplicate objects in argument.
Definition h_result.hpp:145
static constexpr auto E_HANDLE
The handle is invalid.
Definition h_result.hpp:293
static constexpr auto COR_E_SYSTEM
System error.
Definition h_result.hpp:239
static constexpr auto COR_E_DIRECTORYNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:137
static constexpr auto COR_E_FORMAT
One of the identified items was in an invalid format.
Definition h_result.hpp:163
static constexpr auto COR_E_INVALIDOLEVARIANTTYPE
Specified OLE variant was invalid.
Definition h_result.hpp:177
static constexpr auto COR_E_DATAMISALIGNED
A datatype misalignment was detected in a load or store instruction.
Definition h_result.hpp:135
static constexpr auto COR_E_SECURITY
Security error.
Definition h_result.hpp:231
static constexpr auto COR_E_BADEXEFORMAT
Format of the executable (.exe) cannot be run.
Definition h_result.hpp:123
static constexpr auto COR_E_TARGETPARAMCOUNT
Number of parameters specified does not match the expected number.
Definition h_result.hpp:245
static constexpr auto CTL_E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:317
static constexpr auto COR_E_KEYNOTFOUND
The given key was not present in the dictionary.
Definition h_result.hpp:185
static constexpr auto E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:289
static constexpr auto E_NOTIMPL
The method or operation is not implemented.
Definition h_result.hpp:297
static constexpr auto COR_E_CANNOTUNLOADAPPDOMAIN
Attempt to unload the AppDomain failed.
Definition h_result.hpp:127
static constexpr auto COR_E_APPDOMAINUNLOADED
Attempted to access an unloaded AppDomain.
Definition h_result.hpp:111
static constexpr auto COR_E_INVALIDOPERATION
Operation is not valid due to the current state of the object.
Definition h_result.hpp:179
static constexpr auto ERROR_LOCK_VIOLATION
Lock violations.
Definition h_result.hpp:327
static constexpr auto E_FAIL
Unspecified failure.
Definition h_result.hpp:291
static constexpr auto COR_E_THREADSTATE
Thread was in an invalid state for the operation being executed.
Definition h_result.hpp:253
static constexpr auto COR_E_EXECUTIONENGINE
Internal error in the runtime.
Definition h_result.hpp:153
static constexpr auto COR_E_ENDOFSTREAM
Attempted to read past the end of the stream.
Definition h_result.hpp:147
static constexpr auto STG_E_PATHNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:313
static auto make_error_code(xtd::int32 h_result) noexcept -> std::error_code
Creates error code value for the specified HRESULT.
static auto get_severity(xtd::int32 h_result) noexcept -> xtd::int32
The severity of the specified HRESULT, which indicates what API or framework originated this error.
static constexpr auto E_INVALIDARG
Value does not fall within the expected range.
Definition h_result.hpp:295
static auto succeeded(xtd::int32 h_result) noexcept -> bool
Provides a generic success test for the specified HRESULT.
static constexpr auto COR_E_INVALIDPROGRAM
xtd detected an invalid program.
Definition h_result.hpp:181
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
Contains xtd::int32 type.
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::static_object class.