messages.h
上传用户:yuandong
上传日期:2022-08-08
资源大小:954k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

C++ Builder

  1. //
  2. //  Status 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|       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. //      Facility - is the facility code
  22. //
  23. //      Code - is the facility's status code
  24. //
  25. //
  26. //  Values are 32 bit values layed out as follows:
  27. //
  28. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  29. //   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
  30. //  +---+-+-+-----------------------+-------------------------------+
  31. //  |Sev|C|R|     Facility          |               Code            |
  32. //  +---+-+-+-----------------------+-------------------------------+
  33. //
  34. //  where
  35. //
  36. //      Sev - is the severity code
  37. //
  38. //          00 - Success
  39. //          01 - Informational
  40. //          10 - Warning
  41. //          11 - Error
  42. //
  43. //      C - is the Customer code flag
  44. //
  45. //      R - is a reserved bit
  46. //
  47. //      Facility - is the facility code
  48. //
  49. //      Code - is the facility's status code
  50. //
  51. //
  52. // Define the facility codes
  53. //
  54. //
  55. // Define the severity codes
  56. //
  57. #define STATUS_SEVERITY_WARNING          0x2
  58. #define STATUS_SEVERITY_SUCCESS          0x0
  59. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  60. #define STATUS_SEVERITY_ERROR            0x3
  61. //
  62. // MessageId: MSG_DOCUMENT_FAILED
  63. //
  64. // MessageText:
  65. //
  66. //  Document failed to print due to %1.
  67. //
  68. #define MSG_DOCUMENT_FAILED              ((NTSTATUS)0xC000002DL)