home *** CD-ROM | disk | FTP | other *** search
/ Delphi Developer's Kit 1996 / Delphi Developer's Kit 1996.iso / power / wfc007.000 / sample / watchdog / messages.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-22  |  3.2 KB  |  150 lines

  1. #if ! defined( MESSAGES_HEADER_FILE )
  2.  
  3. #define MESSAGES_HEADER_FILE
  4.  
  5. //
  6. //  Values are 32 bit values layed out as follows:
  7. //
  8. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  9. //   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
  10. //  +---+-+-+-----------------------+-------------------------------+
  11. //  |Sev|C|R|     Facility          |               Code            |
  12. //  +---+-+-+-----------------------+-------------------------------+
  13. //
  14. //  where
  15. //
  16. //      Sev - is the severity code
  17. //
  18. //          00 - Success
  19. //          01 - Informational
  20. //          10 - Warning
  21. //          11 - Error
  22. //
  23. //      C - is the Customer code flag
  24. //
  25. //      R - is a reserved bit
  26. //
  27. //      Facility - is the facility code
  28. //
  29. //      Code - is the facility's status code
  30. //
  31. //
  32. // Define the facility codes
  33. //
  34. #define FACILITY_SYSTEM                  0x0
  35. #define FACILITY_STUBS                   0x3
  36. #define FACILITY_RUNTIME                 0x2
  37. #define FACILITY_IO_ERROR_CODE           0x4
  38.  
  39.  
  40. //
  41. // Define the severity codes
  42. //
  43. #define STATUS_SEVERITY_WARNING          0x2
  44. #define STATUS_SEVERITY_SUCCESS          0x0
  45. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  46. #define STATUS_SEVERITY_ERROR            0x3
  47.  
  48.  
  49. //
  50. // MessageId: MSG_WATCHDOG_SUCCESSFULLY_INSTALLED
  51. //
  52. // MessageText:
  53. //
  54. //  WatchDog successfully installed by %1.
  55. //
  56. #define MSG_WATCHDOG_SUCCESSFULLY_INSTALLED ((DWORD)0x40000001L)
  57.  
  58. //
  59. // MessageId: MSG_WATCHDOG_SUCCESSFULLY_REMOVED
  60. //
  61. // MessageText:
  62. //
  63. //  WatchDog successfully removed by %1.
  64. //
  65. #define MSG_WATCHDOG_SUCCESSFULLY_REMOVED ((DWORD)0x40000002L)
  66.  
  67. //
  68. // MessageId: MSG_WATCHDOG_ERROR_CODE
  69. //
  70. // MessageText:
  71. //
  72. //  Error %1, %2
  73. //
  74. #define MSG_WATCHDOG_ERROR_CODE          ((DWORD)0xC0000003L)
  75.  
  76. //
  77. // MessageId: MSG_WATCHDOG_SERVICE_STARTED
  78. //
  79. // MessageText:
  80. //
  81. //  Service started.
  82. //
  83. #define MSG_WATCHDOG_SERVICE_STARTED     ((DWORD)0x40000004L)
  84.  
  85. //
  86. // MessageId: MSG_WATCHDOG_SERVICE_STOPPED
  87. //
  88. // MessageText:
  89. //
  90. //  Service stopped
  91. //
  92. #define MSG_WATCHDOG_SERVICE_STOPPED     ((DWORD)0x40000005L)
  93.  
  94. //
  95. // MessageId: MSG_WATCHDOG_UNEXPECTED_ERROR
  96. //
  97. // MessageText:
  98. //
  99. //  Unexpected error at line %1 of %2, %3
  100. //
  101. #define MSG_WATCHDOG_UNEXPECTED_ERROR    ((DWORD)0xC0000006L)
  102.  
  103. //
  104. // MessageId: MSG_WATCHDOG_RESTARTING_SERVICE
  105. //
  106. // MessageText:
  107. //
  108. //  Restarting service "%1"
  109. //
  110. #define MSG_WATCHDOG_RESTARTING_SERVICE  ((DWORD)0x40000007L)
  111.  
  112. //
  113. // MessageId: MSG_CANT_CONNECT_TO_REGISTRY
  114. //
  115. // MessageText:
  116. //
  117. //  Can't connect to registry %1 because %2
  118. //
  119. #define MSG_CANT_CONNECT_TO_REGISTRY     ((DWORD)0xC0000008L)
  120.  
  121. //
  122. // MessageId: MSG_CANT_CREATE_REGISTRY_KEY
  123. //
  124. // MessageText:
  125. //
  126. //  Can't create registry key %1 because %2
  127. //
  128. #define MSG_CANT_CREATE_REGISTRY_KEY     ((DWORD)0xC0000009L)
  129.  
  130. //
  131. // MessageId: MSG_CANT_SET_REGISTRY_ENTRY
  132. //
  133. // MessageText:
  134. //
  135. //  Can't set registry entry %1 because %2
  136. //
  137. #define MSG_CANT_SET_REGISTRY_ENTRY      ((DWORD)0xC000000AL)
  138.  
  139. //
  140. // MessageId: MSG_CANT_CREATE_SERVICE
  141. //
  142. // MessageText:
  143. //
  144. //  Call to CreateService() failed with %1 at line %2 of %3
  145. //
  146. #define MSG_CANT_CREATE_SERVICE          ((DWORD)0xC000000BL)
  147.  
  148.  
  149.  #endif // MESSAGES_HEADER_FILE
  150.