Source code of Windows XP (NT5)
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.

60 lines
1.2 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: MSG_BAD_TRAP_INDEX
  39. //
  40. // MessageText:
  41. //
  42. // No trap sent.
  43. // %1!s!
  44. //
  45. #define MSG_BAD_TRAP_INDEX 0x80000000L
  46. //
  47. // MessageId: MSG_BAD_TRAP_VARIABLE_COUNT
  48. //
  49. // MessageText:
  50. //
  51. // Trap was sent with no arguments.
  52. // %1!s!
  53. //
  54. #define MSG_BAD_TRAP_VARIABLE_COUNT 0x80000001L