The Labs \ Source Viewer \ SSCLI \ System \ HResults

  1. //------------------------------------------------------------------------------
  2. // <copyright file="HResults.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. /*
  16. These HRESULTs are used for mapping managed exceptions to COM error codes
  17. and vice versa through COM Interop.  For background on COM error codes see
  18. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/error_9td2.asp.
  19. FACILITY_URT is defined as 0x13 (0x8013xxxx). The facility range is reserved
  20. for the .NET Framework SDK teams.
  21. Within that range, the following subranges have been allocated for different
  22. feature areas:
  23. 0x10yy for Execution Engine
  24. 0x11yy for Metadata, TypeLib Export, and CLDB
  25. 0x12yy for MetaData Validator
  26. 0x13yy for Debugger and Profiler errors
  27. 0x14yy for Security
  28. 0x15yy for BCL
  29. 0x1600 - 0x161F for Reflection
  30. 0x1620 - 0x163F for System.IO
  31. 0x1640 - 0x165F for Security
  32. 0x1660 - 0x16FF for BCL
  33. 0x17yy for shim
  34. 0x18yy for IL Verifier
  35. 0x19yy for .NET Framework
  36. 0x1Ayy for .NET Framework
  37. 0x1Byy for MetaData Validator
  38. 0x30yy for VSA errors
  39. CLR HRESULTs are defined in corerror.h. If you make any modifications to
  40. the range allocations described above, please make sure the corerror.h file
  41. gets updated.
  42. */
  43. namespace System
  44. {
  45.     using System;
  46.    
  47.     static internal class HResults
  48.     {
  49.        
  50.         internal const int Configuration = unchecked((int)2148735234u);
  51.        
  52.         // Xml
  53.         internal const int Xml = unchecked((int)2148735296u);
  54.         internal const int XmlSchema = unchecked((int)2148735297u);
  55.         internal const int XmlXslt = unchecked((int)2148735298u);
  56.         internal const int XmlXPath = unchecked((int)2148735299u);
  57.        
  58.         // DataSet
  59.         internal const int Data = unchecked((int)2148735264u);
  60.         internal const int DataDeletedRowInaccessible = unchecked((int)2148735265u);
  61.         internal const int DataDuplicateName = unchecked((int)2148735266u);
  62.         internal const int DataInRowChangingEvent = unchecked((int)2148735267u);
  63.         internal const int DataInvalidConstraint = unchecked((int)2148735268u);
  64.         internal const int DataMissingPrimaryKey = unchecked((int)2148735269u);
  65.         internal const int DataNoNullAllowed = unchecked((int)2148735270u);
  66.         internal const int DataReadOnly = unchecked((int)2148735271u);
  67.         internal const int DataRowNotInTable = unchecked((int)2148735272u);
  68.         internal const int DataVersionNotFound = unchecked((int)2148735273u);
  69.         internal const int DataConstraint = unchecked((int)2148735274u);
  70.         internal const int StrongTyping = unchecked((int)2148735275u);
  71.        
  72.         // Managed Providers
  73.         internal const int SqlType = unchecked((int)2148735280u);
  74.         internal const int SqlNullValue = unchecked((int)2148735281u);
  75.         internal const int SqlTruncate = unchecked((int)2148735282u);
  76.         internal const int AdapterMapping = unchecked((int)2148735283u);
  77.         internal const int DataAdapter = unchecked((int)2148735284u);
  78.         internal const int DBConcurrency = unchecked((int)2148735285u);
  79.         internal const int OperationAborted = unchecked((int)2148735286u);
  80.         internal const int InvalidUdt = unchecked((int)2148735287u);
  81.        
  82.         internal const int SqlException = unchecked((int)2148735236u);
  83.         // System.Data.SqlClient.SqlClientException
  84.         internal const int OdbcException = unchecked((int)2148735287u);
  85.         // System.Data.Odbc.OdbcException
  86.         internal const int OracleException = unchecked((int)2148735288u);
  87.         // System.Data.OracleClient.OracleException
  88.         // Configuration encryption
  89.         internal const int NteBadKeySet = unchecked((int)2148073494u);
  90.        
  91.         // Win32
  92.         internal const int Win32AccessDenied = unchecked((int)2147942405u);
  93.         internal const int Win32InvalidHandle = unchecked((int)2147942406u);
  94.        
  95.        
  96.     }
  97. }

Developer Fusion