diff options
Diffstat (limited to 'src/mscorlib/src/System/IO/__HResults.cs')
-rw-r--r-- | src/mscorlib/src/System/IO/__HResults.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/IO/__HResults.cs b/src/mscorlib/src/System/IO/__HResults.cs new file mode 100644 index 0000000000..e19f28f833 --- /dev/null +++ b/src/mscorlib/src/System/IO/__HResults.cs @@ -0,0 +1,28 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//============================================================================= +// +// +// +// +// Purpose: Define HResult constants. Every exception has one of these. +// +// +//===========================================================================*/ +namespace System.IO { + using System; + // Only static data no need to serialize + internal static class __HResults + { + // These use an error code from WinError.h + public const int COR_E_ENDOFSTREAM = unchecked((int)0x80070026); // OS defined + public const int COR_E_FILELOAD = unchecked((int)0x80131621); + public const int COR_E_FILENOTFOUND = unchecked((int)0x80070002); + public const int COR_E_DIRECTORYNOTFOUND = unchecked((int)0x80070003); + public const int COR_E_PATHTOOLONG = unchecked((int)0x800700CE); + + public const int COR_E_IO = unchecked((int)0x80131620); + } +} |