Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.3 KiB

  1. //
  2. // Values are 32 bit values layed out as follows:
  3. //
  4. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  5. // 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
  6. // +---+-+-+-----------------------+-------------------------------+
  7. // |Sev|C|R| Facility | Code |
  8. // +---+-+-+-----------------------+-------------------------------+
  9. //
  10. // where
  11. //
  12. // Sev - is the severity code
  13. //
  14. // 00 - Success
  15. // 01 - Informational
  16. // 10 - Warning
  17. // 11 - Error
  18. //
  19. // C - is the Customer code flag
  20. //
  21. // R - is a reserved bit
  22. //
  23. // Facility - is the facility code
  24. //
  25. // Code - is the facility's status code
  26. //
  27. //
  28. // Define the facility codes
  29. //
  30. //
  31. // Define the severity codes
  32. //
  33. #define STATUS_SEVERITY_WARNING 0x2
  34. #define STATUS_SEVERITY_SUCCESS 0x0
  35. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  36. #define STATUS_SEVERITY_ERROR 0x3
  37. //
  38. // MessageId: EVENT_MESSAGE
  39. //
  40. // MessageText:
  41. //
  42. // %1
  43. //
  44. #define EVENT_MESSAGE 0xC00007D0L
  45. //
  46. // MessageId: EVENT_ERROR
  47. //
  48. // MessageText:
  49. //
  50. // %1
  51. //
  52. #define EVENT_ERROR 0xC00007D1L
  53. //
  54. // MessageId: EVENT_GENERAL
  55. //
  56. // MessageText:
  57. //
  58. // %1
  59. //
  60. #define EVENT_GENERAL 0xC00007D2L