home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / error.h < prev    next >
Text File  |  1999-03-15  |  10KB  |  160 lines

  1. /*****************************************************************************************************************************************************
  2.  
  3.     Filename: error.h
  4.  
  5.     Copyright (c) 1992,1993,1994, Intel Corporation.  All rights reserved.
  6.     Copyright (c) 1993 - 1996, International Business Machines, Corporation. All rights reserved.
  7.  
  8.     Description: Service Layer error codes
  9.  
  10.  
  11. ****************************************************************************************************************************************************/
  12.  
  13. #ifndef ERROR_H_FILE
  14. #define ERROR_H_FILE
  15.  
  16.  
  17. /****************************************************************** INCLUDES ***********************************************************************/
  18.  
  19. /***************************************************************************************************************************************************/
  20.  
  21.  
  22. /******************************************************************* DEFINES ***********************************************************************/
  23.  
  24. #define DMI_GENERAL_ERRORS 0x00000000
  25.  
  26. /* Non-error condition codes */
  27. #define SLERR_NO_ERROR                                                  DMI_GENERAL_ERRORS + 0x00000000
  28. #define SLERR_NO_ERROR_MORE_DATA                                DMI_GENERAL_ERRORS + 0x00000001
  29.  
  30.  
  31. /* Database Errors */
  32. #define DB_ERRORS                                                               DMI_GENERAL_ERRORS + 0x00000100
  33.  
  34. #define DBERR_ATTRIBUTE_NOT_FOUND                               DB_ERRORS + 0x00000000
  35. #define DBERR_VALUE_EXCEEDS_MAXSIZE                             DB_ERRORS + 0x00000001
  36. #define DBERR_COMPONENT_NOT_FOUND                               DB_ERRORS + 0x00000002
  37. #define DBERR_ENUM_ERROR                                                DB_ERRORS + 0x00000003
  38. #define DBERR_GROUP_NOT_FOUND                                   DB_ERRORS + 0x00000004
  39. #define DBERR_ILLEGAL_KEYS                                              DB_ERRORS + 0x00000005
  40. #define DBERR_ILLEGAL_TO_SET                                    DB_ERRORS + 0x00000006
  41. #define DBERR_OVERLAY_NAME_NOT_FOUND                    DB_ERRORS + 0x00000007
  42. #define DBERR_ILLEGAL_TO_GET                                    DB_ERRORS + 0x00000008
  43. #define DBERR_NO_DESCRIPTION                                    DB_ERRORS + 0x00000009
  44. #define DBERR_ROW_NOT_FOUND                                             DB_ERRORS + 0x0000000a
  45. #define DBERR_DIRECT_INTERFACE_NOT_REGISTERED   DB_ERRORS + 0x0000000b
  46. #define DBERR_DATABASE_CORRUPT                                  DB_ERRORS + 0x0000000c
  47. #define DBERR_ATTRIBUTE_NOT_SUPPORTED                   DB_ERRORS + 0x0000000d
  48. #define DBERR_NO_PRAGMA                         DB_ERRORS + 0x0000000e
  49. #define DBERR_VALUE_UNKNOWN                     DB_ERRORS + 0x0000000f
  50. #define DBERR_LIMITS_EXCEEDED                   DB_ERRORS + 0x00000010
  51.  
  52.  
  53. /* Service Layer Errors */
  54. #define SL_ERRORS                                                               DMI_GENERAL_ERRORS + 0x00000200
  55.  
  56. #define SLERR_BUFFER_FULL                                               SL_ERRORS + 0x00000000
  57. #define SLERR_ILL_FORMED_COMMAND                                SL_ERRORS + 0x00000001
  58. #define SLERR_ILLEGAL_COMMAND                                   SL_ERRORS + 0x00000002
  59. #define SLERR_ILLEGAL_HANDLE                                    SL_ERRORS + 0x00000003
  60. #define SLERR_OUT_OF_MEMORY                                             SL_ERRORS + 0x00000004
  61. #define SLERR_NULL_COMPLETION_FUNCTION                  SL_ERRORS + 0x00000005
  62. #define SLERR_NULL_RESPONSE_BUFFER                              SL_ERRORS + 0x00000006
  63. #define SLERR_CMD_HANDLE_IN_USE                         SL_ERRORS + 0x00000007
  64. #define SLERR_ILLEGAL_DMI_LEVEL                                 SL_ERRORS + 0x00000008
  65. #define SLERR_UNKNOWN_CI_REGISTRY                               SL_ERRORS + 0x00000009
  66. #define SLERR_COMMAND_CANCELED                                  SL_ERRORS + 0x0000000a
  67. #define SLERR_INSUFFICIENT_PRIVILEGES                   SL_ERRORS + 0x0000000b
  68. #define SLERR_NULL_ACCESS_FUNCTION                              SL_ERRORS + 0x0000000c
  69. #define SLERR_FILE_ERROR                                                SL_ERRORS + 0x0000000d
  70. #define SLERR_EXEC_FAILURE                                              SL_ERRORS + 0x0000000e
  71. #define SLERR_BAD_MIF_FILE                                              SL_ERRORS + 0x0000000f
  72. #define SLERR_INVALID_FILE_TYPE                                 SL_ERRORS + 0x00000010
  73. #define SLERR_SL_INACTIVE                                               SL_ERRORS + 0x00000011
  74. #define SLERR_UNICODE_NOT_SUPPORTED                             SL_ERRORS + 0x00000012
  75. #define SLERR_CANT_UNINSTALL_SL_COMPONENT       SL_ERRORS + 0x00000013
  76. #define SLERR_NULL_CANCEL_FUNCTION                              SL_ERRORS + 0x00000014
  77.  
  78. /* DMI DOS ERRORS                                                            */
  79. /* --------------                                                            */
  80. #define DMI_DOS_ERRORS 0x00001000
  81.  
  82. /* Overlay Manager Errors */
  83. #define DOS_OM_ERRORS                                                   DMI_DOS_ERRORS + 0x00000000
  84.  
  85. #define OMERR_OUT_OF_PARTITION_MEMORY                   DOS_OM_ERRORS + 0x00000000
  86. #define OMERR_OVERLAY_NOT_FOUND                                 DOS_OM_ERRORS + 0x00000001
  87. #define OMERR_READING_FILE                                              DOS_OM_ERRORS + 0x00000002
  88.  
  89. #define DMI_DOS_SYSTEM_ERRORS                                   DMI_DOS_ERRORS + 0x00000100
  90.  
  91. #define DOSERR_SL_BUSY                                                  DMI_DOS_SYSTEM_ERRORS + 0x00000001
  92.  
  93. /* DMI WINDOWS ERRORS                                                        */
  94. /* ------------------                                                        */
  95. #define DMI_WINDOWS_ERRORS 0x00002000
  96.  
  97. #define WINERR_OUT_OF_DPMI_MEMORY                               DMI_WINDOWS_ERRORS + 0x00000000
  98. #define WINERR_OUT_OF_DPMI_CALLBACKS                    DMI_WINDOWS_ERRORS + 0x00000001
  99. #define WINERR_UNABLE_TO_FIND_TASK_HANDLE               DMI_WINDOWS_ERRORS + 0x00000002
  100.  
  101. /* DMI OS/2 ERRORS OR NT SPECIFIC ERRORS                                     */
  102. /* ----------------                                                          */
  103. #if defined(_WIN32)
  104. #define DMI_OS2_ERRORS 0x00006000
  105. #else
  106. #define DMI_OS2_ERRORS 0x00003000
  107. #endif
  108.  
  109. #define SLERR_NOT_INITIALIZED                   DMI_OS2_ERRORS + 0x00000000
  110. #define SLERR_IPC_CREATE_ERROR                  DMI_OS2_ERRORS + 0x00000001
  111. #define SLERR_THREAD_CREATE_ERROR               DMI_OS2_ERRORS + 0x00000002
  112. #define SLERR_QUEUE_CREATE_ERROR                DMI_OS2_ERRORS + 0x00000003
  113. #define SLERR_SL_TERMINATED                     DMI_OS2_ERRORS + 0x00000004
  114. #define SLERR_CMD_EXCEPTION                     DMI_OS2_ERRORS + 0x00000005
  115. #define SLERR_SYNC_SETUP_ERROR                  DMI_OS2_ERRORS + 0x00000006
  116. #define SLERR_SL_DLL_MISMATCH                   DMI_OS2_ERRORS + 0x00000007
  117. #define SLERR_IPC_ERROR                         DMI_OS2_ERRORS + 0x00000008
  118.  
  119.  
  120. /* DMI UNIX ERRORS                                                           */
  121. /* ----------------                                                          */
  122. #define DMI_UNIX_ERRORS 0x00004000
  123.  
  124.  
  125. /* DMI COMPONENT ERRORS                                                      */
  126. /* --------------------                                                      */
  127. #define DMI_COMPONENT_ERRORS 0x00010000
  128.  
  129. #define CPERR_MODULE_REMOVED                    DMI_COMPONENT_ERRORS + 0x00000000
  130. #define CPERR_CANCEL_ERROR                              DMI_COMPONENT_ERRORS + 0x00000001               /* Who knows what this means; it's in the spec. */
  131. #define CPERR_INVALID_OVERLAY                   DMI_COMPONENT_ERRORS + 0x00000002
  132. #define CPERR_CI_TERMINATED             DMI_COMPONENT_ERRORS + 0x00000003
  133. #define CPERR_GET_ERROR                 DMI_COMPONENT_ERRORS + 0x00000004
  134. #define CPERR_KEY_ERROR                 DMI_COMPONENT_ERRORS + 0x00000005
  135. #define CPERR_RELEASE_ERROR             DMI_COMPONENT_ERRORS + 0x00000006
  136. #define CPERR_RESERVE_ERROR             DMI_COMPONENT_ERRORS + 0x00000007
  137. #define CPERR_ROW_ERROR                 DMI_COMPONENT_ERRORS + 0x00000008
  138. #define CPERR_SET_ERROR                 DMI_COMPONENT_ERRORS + 0x00000009
  139.  
  140. /***************************************************************************************************************************************************/
  141.  
  142.  
  143. /******************************************************************** TYPEDEFS *********************************************************************/
  144.  
  145. typedef unsigned long SL_ErrorCode_t;
  146.  
  147. /***************************************************************************************************************************************************/
  148.  
  149.  
  150. /********************************************************************** DATA ***********************************************************************/
  151.  
  152. /***************************************************************************************************************************************************/
  153.  
  154. /**************************************************************** FUNCTION PROTOTYPES **************************************************************/
  155.  
  156. /***************************************************************************************************************************************************/
  157.  
  158.  
  159. #endif
  160.