PageRenderTime 55ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/p42/SysCore/Include/error.h

http://github.com/mooseman/plan_42
C Header | 73 lines | 29 code | 6 blank | 38 comment | 0 complexity | cdd0020d6f56091b82ad16890cae9901 MD5 | raw file
Possible License(s): Unlicense
  1. /******************************************************************************
  2. error.h
  3. -system error codes
  4. modified\ Aug 06 2008
  5. arthor\ Mike
  6. -------------------------------------------------------------------------------
  7. Copyright Š 2008, BrokenThorn Entertainment Co. Copyright of, or the use of
  8. this, or any part, of this software without the consent of BrokenThorn Entertainment,
  9. Co. is strickly prohibated. All other rights reserved.
  10. ******************************************************************************/
  11. //
  12. // Values are 32 bit values laid out as follows:
  13. //
  14. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  15. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  16. // +---+-+-+-----------------------+-------------------------------+
  17. // |Sev|C|R| Facility | Code |
  18. // +---+-+-+-----------------------+-------------------------------+
  19. //
  20. // where
  21. //
  22. // Sev - is the severity code
  23. //
  24. // 00 - Success
  25. // 01 - Informational
  26. // 10 - Warning
  27. // 11 - Error
  28. //
  29. // C - is the Customer code flag
  30. //
  31. // R - is a reserved bit
  32. //
  33. // Facility - is the facility code
  34. //
  35. // Code - is the facility's status code
  36. //! facility codes
  37. #define FACILITY_MOS 8
  38. #define FACILITY_URT 19
  39. #define FACILITY_UMI 22
  40. #define FACILITY_SXS 23
  41. #define FACILITY_STORAGE 3
  42. #define FACILITY_STATE_MANAGEMENT 34
  43. #define FACILITY_SSPI 9
  44. #define FACILITY_SCARD 16
  45. #define FACILITY_SETUPAPI 15
  46. #define FACILITY_SECURITY 9
  47. #define FACILITY_RPC 1
  48. #define FACILITY_CONTROL 10
  49. #define FACILITY_NULL 0
  50. #define FACILITY_METADIRECTORY 35
  51. #define FACILITY_MSMQ 14
  52. #define FACILITY_MEDIASERVER 13
  53. #define FACILITY_INTERNET 12
  54. #define FACILITY_ITF 4
  55. #define FACILITY_HTTP 25
  56. #define FACILITY_DPLAY 21
  57. #define FACILITY_DISPATCH 2
  58. #define FACILITY_CONFIGURATION 33
  59. #define FACILITY_COMPLUS 17
  60. #define FACILITY_CERT 11
  61. #define FACILITY_BACKGROUNDCOPY 32
  62. #define FACILITY_ACS 20
  63. #define FACILITY_AAF 18
  64. //! error codes
  65. #define ERROR_SUCCESS 0L
  66. #define ERROR_INVALID_FUNCTION 1L