7#define __XTD_CORE_INTERNAL__ 
   10#undef __XTD_CORE_INTERNAL__ 
   11#include <unordered_map> 
   12#include <system_error> 
   21#  undef CO_E_NOTINITIALIZED 
   22#  undef DISP_E_PARAMNOTFOUND 
   23#  undef DISP_E_TYPEMISMATCH 
   24#  undef DISP_E_BADVARTYPE 
   25#  undef DISP_E_OVERFLOW 
   26#  undef DISP_E_DIVBYZERO 
   29#  undef E_CHANGED_STATE 
   36#  undef ERROR_MRM_MAP_NOT_FOUND 
   39#  undef RPC_E_CHANGED_MODE 
   40#  undef TYPE_E_TYPEMISMATCH 
   41#  undef STG_E_PATHNOTFOUND 
   42#  undef ERROR_TOO_MANY_OPEN_FILES 
   43#  undef ERROR_SHARING_VIOLATION 
   44#  undef ERROR_LOCK_VIOLATION 
   45#  undef ERROR_OPEN_FAILED 
   46#  undef ERROR_DISK_CORRUPT 
   47#  undef ERROR_UNRECOGNIZED_VOLUME 
   48#  undef ERROR_DLL_INIT_FAILED 
   49#  undef ERROR_FILE_INVALID 
Contains array definitions.
 
Contains string definitions.
 
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:58
 
Contains the HRESULT values used by xtd.
Definition h_result.hpp:94
 
static constexpr int32 COR_E_STACKOVERFLOW
Operation caused a stack overflow.
Definition h_result.hpp:234
 
static constexpr int32 COR_E_THREADSTART
Thread start failure.
Definition h_result.hpp:250
 
static constexpr int32 COR_E_TYPEINITIALIZATION
The type initializer for 'value' threw an exception.
Definition h_result.hpp:258
 
static constexpr int32 COR_E_SECURITY
Security error.
Definition h_result.hpp:230
 
static bool is_error(int32 h_result) noexcept
Provides a generic is error test for the specified HRESULT.
 
static constexpr int32 RPC_E_CHANGED_MODE
Cannot change the current thread mode.
Definition h_result.hpp:308
 
static constexpr int32 COR_E_METHODACCESS
Attempt to access the method failed.
Definition h_result.hpp:190
 
static const std::unordered_map< int32, string > & get_messages() noexcept
Gets The HRESULT messages.
 
static constexpr int32 COR_E_TARGETINVOCATION
Exception has been thrown by the target of an invocation.
Definition h_result.hpp:242
 
static constexpr int32 E_POINTER
Attempted to read or write protected memory. This is often an indication that other memory is corrupt...
Definition h_result.hpp:298
 
static constexpr int32 E_BOUNDS
Bounds exception.
Definition h_result.hpp:284
 
static constexpr int32 COR_E_OVERFLOW
Arithmetic operation resulted in an overflow.
Definition h_result.hpp:214
 
static constexpr int32 COR_E_MEMBERACCESS
Cannot access member.
Definition h_result.hpp:188
 
static constexpr int32 COR_E_DRIVENOTFOUND
Could not find the drive. The drive might not be ready or might not be mapped.
Definition h_result.hpp:142
 
static constexpr int32 ERROR_DISK_CORRUPT
Disk corrupt.
Definition h_result.hpp:330
 
static constexpr int32 COR_E_FILELOAD
Could not load the specified file.
Definition h_result.hpp:158
 
static constexpr int32 COR_E_KEYNOTFOUND
The given key was not present in the dictionary.
Definition h_result.hpp:184
 
static constexpr int32 TYPE_E_TYPEMISMATCH
Incompatible type.
Definition h_result.hpp:310
 
static constexpr int32 COR_E_UNAUTHORIZEDACCESS
Attempted to perform an unauthorized operation.
Definition h_result.hpp:264
 
static constexpr int32 COR_E_MARSHALDIRECTIVE
Marshaling directives are invalid.
Definition h_result.hpp:186
 
static constexpr int32 COR_E_THREADINTERRUPTED
Thread was interrupted from a waiting state.
Definition h_result.hpp:248
 
static constexpr int32 COR_E_AMBIGUOUSMATCH
Ambiguous match found.
Definition h_result.hpp:108
 
static std::error_code make_error_code(int h_result) noexcept
Creates error code value for the specified HRESULT.
 
static constexpr int32 COR_E_SERIALIZATION
Serialization error.
Definition h_result.hpp:232
 
static constexpr int32 COR_E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:160
 
static constexpr int32 DISP_E_BADVARTYPE
Invalid variable type.
Definition h_result.hpp:276
 
static constexpr int32 COR_E_INVALIDOLEVARIANTTYPE
Specified OLE variant was invalid.
Definition h_result.hpp:176
 
static constexpr int32 COR_E_OBJECTCLOSED
Cannot access a closed object.
Definition h_result.hpp:208
 
static constexpr int32 COR_E_TARGETPARAMCOUNT
Number of parameters specified does not match the expected number.
Definition h_result.hpp:244
 
static constexpr int32 COR_E_BADEXEFORMAT
Format of the executable (.exe) cannot be run.
Definition h_result.hpp:122
 
static constexpr int32 COR_E_APPLICATION
Error in the application.
Definition h_result.hpp:112
 
static constexpr int32 COR_E_ARGUMENT
Value does not fall within the expected range.
Definition h_result.hpp:114
 
static int32 get_severity(int32 h_result) noexcept
The severity of the specified HRESULT, which indicates what API or framework originated this error.
 
static constexpr int32 COR_E_MULTICASTNOTSUPPORTED
Attempted to add multiple callbacks to a delegate that does not support multicast.
Definition h_result.hpp:202
 
static string get_name(int32 h_result) noexcept
Gets the name of the specified HRESULT.
 
static constexpr int32 COR_E_TYPELOAD
Failure has occurred while loading a type.
Definition h_result.hpp:260
 
static constexpr int32 CO_E_NOTINITIALIZED
Not initialized.
Definition h_result.hpp:270
 
static constexpr int32 COR_E_MISSINGSATELLITEASSEMBLY
Resource lookup fell back to the ultimate fallback resources in a satellite assembly,...
Definition h_result.hpp:200
 
static constexpr int32 COR_E_TARGET
Exception of type 'xtd::reflection::target_exception' was thrown.
Definition h_result.hpp:240
 
static constexpr int32 COR_E_EXECUTIONENGINE
Internal error in the runtime.
Definition h_result.hpp:152
 
static constexpr int32 COR_E_FAILFAST
Fail fast.
Definition h_result.hpp:154
 
static constexpr int32 COR_E_DUPLICATEWAITOBJECT
Duplicate objects in argument.
Definition h_result.hpp:144
 
static constexpr int32 FUSION_E_REF_DEF_MISMATCH
Fusion the reference definition is incompatible.
Definition h_result.hpp:320
 
static constexpr int32 COR_E_SYSTEM
System error.
Definition h_result.hpp:238
 
static constexpr int32 MSEE_E_ASSEMBLYLOADINPROGRESS
Assembly load in progress.
Definition h_result.hpp:336
 
static constexpr int32 DISP_E_OVERFLOW
Arithmetic operation resulted in an overflow.
Definition h_result.hpp:278
 
static constexpr int32 ERROR_MRM_MAP_NOT_FOUND
Resource map not found.
Definition h_result.hpp:302
 
static constexpr int32 COR_E_NOTSUPPORTED
Specified method is not supported.
Definition h_result.hpp:206
 
static constexpr int32 COR_E_MISSINGMETHOD
Attempted to access a missing method.
Definition h_result.hpp:198
 
static string get_message(int32 h_result) noexcept
Gets the message of the specified HRESULT.
 
static constexpr int32 COR_E_AMBIGUOUSIMPLEMENTATION
Ambiguous implementation found.
Definition h_result.hpp:106
 
static constexpr int32 E_CHANGED_STATE
The state has been modified.
Definition h_result.hpp:286
 
static constexpr int32 ERROR_LOCK_VIOLATION
Lock violations.
Definition h_result.hpp:326
 
static constexpr int32 COR_E_DATAMISALIGNED
A datatype misalignment was detected in a load or store instruction.
Definition h_result.hpp:134
 
static constexpr int32 COR_E_SAFEARRAYTYPEMISMATCH
Specified array was not of the expected type.
Definition h_result.hpp:228
 
static const std::unordered_map< int32, string > & get_names() noexcept
Gets The HRESULT names.
 
static constexpr int32 COR_E_ARITHMETIC
Overflow or underflow in the arithmetic operation.
Definition h_result.hpp:118
 
static constexpr int32 ERROR_OPEN_FAILED
Open failed.
Definition h_result.hpp:328
 
static constexpr int32 COR_E_ABANDONEDMUTEX
The wait completed due to an abandoned mutex.
Definition h_result.hpp:104
 
static constexpr int32 COR_E_CONTEXTMARSHAL
Attempted to marshal an object across a context boundary.
Definition h_result.hpp:130
 
static constexpr int32 COR_E_TYPEACCESS
Attempt to access the type failed.
Definition h_result.hpp:256
 
static constexpr int32 FUSION_E_INVALID_NAME
Fusion invalid name exception.
Definition h_result.hpp:318
 
static constexpr int32 COR_E_OUTOFMEMORY
Insufficient memory to continue the execution of the program.
Definition h_result.hpp:212
 
static constexpr int32 COR_E_FIELDACCESS
Attempted to access a field that is not accessible by the caller.
Definition h_result.hpp:156
 
static constexpr int32 COR_E_INVALIDOPERATION
Operation is not valid due to the current state of the object.
Definition h_result.hpp:178
 
static bool succeeded(int32 h_result) noexcept
Provides a generic success test for the specified HRESULT.
 
static constexpr int32 COR_E_ARRAYTYPEMISMATCH
Attempted to access an element as a type incompatible with the array.
Definition h_result.hpp:120
 
static constexpr int32 ERROR_TIMEOUT
The operation has timed out.
Definition h_result.hpp:304
 
static constexpr int32 COR_E_CANNOTUNLOADAPPDOMAIN
Attempt to unload the AppDomain failed.
Definition h_result.hpp:126
 
static string to_string(int32 h_result) noexcept
Gets the name of the specified HRESULT.
 
static constexpr int32 COR_E_INVALIDCAST
Specified cast is not valid.
Definition h_result.hpp:170
 
static constexpr int32 COR_E_SAFEARRAYRANKMISMATCH
Specified array was not of the expected rank.
Definition h_result.hpp:226
 
static constexpr int32 COR_E_CUSTOMATTRIBUTEFORMAT
Binary format of the specified custom attribute was invalid.
Definition h_result.hpp:132
 
static constexpr int32 COR_E_INVALIDCOMOBJECT
Attempt has been made to use a COM object that does not have a backing class factory.
Definition h_result.hpp:172
 
static constexpr int32 COR_E_MISSINGMANIFESTRESOURCE
Attempted to access a missing manifest resource.
Definition h_result.hpp:194
 
static bool failed(int32 h_result) noexcept
Provides a generic fail test for the specified HRESULT.
 
static int32 get_facility(int32 h_result) noexcept
The facility of the specified HRESULT, which indicates what API or framework originated this error.
 
static constexpr int32 ERROR_FILE_INVALID
File invalid.
Definition h_result.hpp:338
 
static constexpr int32 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:216
 
static constexpr int32 COR_E_DIRECTORYNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:136
 
static constexpr int32 ERROR_TOO_MANY_OPEN_FILES
Too many open files.
Definition h_result.hpp:322
 
static constexpr int32 COR_E_INDEXOUTOFRANGE
Index was outside the bounds of the array.
Definition h_result.hpp:164
 
static constexpr int32 E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:288
 
static constexpr int32 COR_E_INSUFFICIENTMEMORY
Insufficient memory to continue the execution of the program.
Definition h_result.hpp:168
 
static int32 get_code(int32 h_result) noexcept
Gets the code portion of the specified HRESULT.
 
static constexpr int32 COR_E_SYNCHRONIZATIONLOCK
Object synchronization method was called from an unsynchronized block of code.
Definition h_result.hpp:236
 
static constexpr int32 COR_E_NOTFINITENUMBER
Number encountered was not a finite quantity.
Definition h_result.hpp:204
 
static constexpr int32 COR_E_BADIMAGEFORMAT
Format of the executable (.exe) or library (.dll) is invalid.
Definition h_result.hpp:124
 
static constexpr int32 COR_E_INVALIDPROGRAM
xtd detected an invalid program.
Definition h_result.hpp:180
 
static constexpr int32 COR_E_ENTRYPOINTNOTFOUND
Entry point was not found.
Definition h_result.hpp:148
 
static constexpr int32 COR_E_MISSINGFIELD
Attempted to access a non-existing field.
Definition h_result.hpp:192
 
static constexpr int32 ERROR_DLL_INIT_FAILED
DLL init failed.
Definition h_result.hpp:334
 
static constexpr int32 COR_E_CODECONTRACTFAILED
A code contract (ie, precondition, postcondition, invariant, or assert) failed.
Definition h_result.hpp:128
 
static constexpr int32 COR_E_THREADABORTED
Thread was aborted.
Definition h_result.hpp:246
 
static constexpr int32 S_FALSE
Operation successful but returned no results.
Definition h_result.hpp:102
 
static constexpr int32 ERROR_SHARING_VIOLATION
Sharing violation.
Definition h_result.hpp:324
 
static constexpr int32 RO_E_CLOSED
The object has been closed.
Definition h_result.hpp:306
 
static constexpr int32 E_HANDLE
The handle is invalid.
Definition h_result.hpp:292
 
static constexpr int32 DISP_E_DIVBYZERO
Attempted to divide by zero.
Definition h_result.hpp:280
 
static constexpr int32 COR_E_EXCEPTION
Exception of type 'xtd::exception' was thrown.
Definition h_result.hpp:150
 
static constexpr int32 COR_E_PLATFORMNOTSUPPORTED
Operation is not supported on this platform.
Definition h_result.hpp:218
 
static constexpr int32 S_OK
Operation successful.
Definition h_result.hpp:100
 
static constexpr int32 COR_E_VERIFICATION
Operation could destabilize the runtime.
Definition h_result.hpp:266
 
static constexpr int32 COR_E_THREADSTATE
Thread was in an invalid state for the operation being executed.
Definition h_result.hpp:252
 
static constexpr int32 COR_E_RUNTIMEWRAPPED
An object that does not derive from xtd:oobject has been wrapped in a runtime_wrapped_exception.
Definition h_result.hpp:224
 
static constexpr int32 CTL_E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:316
 
static constexpr int32 COR_E_RANK
Attempted to operate on an array with the incorrect number of dimensions.
Definition h_result.hpp:220
 
static constexpr int32 COR_E_TYPEUNLOADED
Type had been unloaded.
Definition h_result.hpp:262
 
static constexpr int32 COR_E_WAITHANDLECANNOTBEOPENED
No handle of the given name exists.
Definition h_result.hpp:268
 
static constexpr int32 STG_E_PATHNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:312
 
static constexpr int32 DISP_E_TYPEMISMATCH
Attempt to access a variable with an incompatible type.
Definition h_result.hpp:274
 
static constexpr int32 COR_E_IO
I/O error occurred.
Definition h_result.hpp:182
 
static constexpr int32 E_FAIL
Unspecified failure.
Definition h_result.hpp:290
 
static constexpr int32 COR_E_MISSINGMEMBER
Attempted to access a missing member.
Definition h_result.hpp:196
 
static constexpr int32 E_UNEXPECTED
Unexpected failure.
Definition h_result.hpp:300
 
static constexpr int32 DISP_E_PARAMNOTFOUND
Could not find the parameter.
Definition h_result.hpp:272
 
static constexpr int32 COR_E_APPDOMAINUNLOADED
Attempted to access an unloaded AppDomain.
Definition h_result.hpp:110
 
static constexpr int32 COR_E_OPERATIONCANCELED
The operation was canceled.
Definition h_result.hpp:210
 
static constexpr int32 E_NOTIMPL
The method or operation is not implemented.
Definition h_result.hpp:296
 
static constexpr int32 E_ABORT
Operation aborted.
Definition h_result.hpp:282
 
static constexpr int32 COR_E_REFLECTIONTYPELOAD
Exception of type 'xtd::reflection::reflection_type_load_exception' was thrown.
Definition h_result.hpp:222
 
static const xtd::array< int32 > & get_h_results() noexcept
Gets an array of HRESULT.
 
static constexpr int32 CTL_E_PATHNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:314
 
static constexpr int32 COR_E_ARGUMENTOUTOFRANGE
Specified argument was out of the range of valid values.
Definition h_result.hpp:116
 
static constexpr int32 COR_E_DLLNOTFOUND
Dll was not found.
Definition h_result.hpp:140
 
static constexpr int32 COR_E_ENDOFSTREAM
Attempted to read past the end of the stream.
Definition h_result.hpp:146
 
static constexpr int32 COR_E_INSUFFICIENTEXECUTIONSTACK
Insufficient stack to continue executing the program safely. This can happen from having too many fun...
Definition h_result.hpp:166
 
static constexpr int32 COR_E_FORMAT
One of the identified items was in an invalid format.
Definition h_result.hpp:162
 
static constexpr int32 COR_E_TIMEOUT
The operation has timed out.
Definition h_result.hpp:254
 
static constexpr int32 E_INVALIDARG
Value does not fall within the expected range.
Definition h_result.hpp:294
 
static constexpr int32 COR_E_DIVIDEBYZERO
Attempted to divide by zero.
Definition h_result.hpp:138
 
static constexpr int32 COR_E_INVALIDFILTERCRITERIA
Specified filter criteria was invalid.
Definition h_result.hpp:174
 
static const std::error_category & h_result_category() noexcept
Obtains a reference to the static error category object for HRESULT errors. The object is required to...
 
static constexpr int32 ERROR_UNRECOGNIZED_VOLUME
Unrecognized volume.
Definition h_result.hpp:332
 
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
 
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
 
Contains xtd::int32 type.
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
Contains xtd::static_object class.