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.

311 lines
6.6 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. perferr.h
  5. (derived from perferr.mc by the message compiler )
  6. Abstract:
  7. Event message definititions used by routines in PERFAPI.DLL
  8. Comments:
  9. I need to put more error codes here. Also, they all need to
  10. be in the correct order. Oh well, it works for now.
  11. --*/
  12. //
  13. #ifndef _PERFERR_H_
  14. #define _PERFERR_H_
  15. //
  16. //
  17. // Perfutil messages
  18. //
  19. //
  20. // Values are 32 bit values layed out as follows:
  21. //
  22. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  23. // 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
  24. // +---+-+-+-----------------------+-------------------------------+
  25. // |Sev|C|R| Facility | Code |
  26. // +---+-+-+-----------------------+-------------------------------+
  27. //
  28. // where
  29. //
  30. // Sev - is the severity code
  31. //
  32. // 00 - Success
  33. // 01 - Informational
  34. // 10 - Warning
  35. // 11 - Error
  36. //
  37. // C - is the Customer code flag
  38. //
  39. // R - is a reserved bit
  40. //
  41. // Facility - is the facility code
  42. //
  43. // Code - is the facility's status code
  44. //
  45. //
  46. // Define the facility codes
  47. //
  48. //
  49. // Define the severity codes
  50. //
  51. //
  52. // MessageId: UTIL_LOG_OPEN
  53. //
  54. // MessageText:
  55. //
  56. // The Dynamic Performance counters DLL opened the Event Log.
  57. //
  58. #define UTIL_LOG_OPEN ((DWORD)0x4123076CL)
  59. //
  60. //
  61. // MessageId: UTIL_CLOSING_LOG
  62. //
  63. // MessageText:
  64. //
  65. // The Dynamic Performance counters DLL closed the Event Log.
  66. //
  67. #define UTIL_CLOSING_LOG ((DWORD)0x412307CFL)
  68. //
  69. //
  70. // MessageId: PERFAPI_COLLECT_CALLED
  71. //
  72. // MessageText:
  73. //
  74. // Perfapi Collect Function has been called.
  75. //
  76. #define PERFAPI_COLLECT_CALLED ((DWORD)0x412307D0L)
  77. //
  78. //
  79. // MessageId: PERFAPI_OPEN_CALLED
  80. //
  81. // MessageText:
  82. //
  83. // Perfapi Open Function has been called.
  84. //
  85. #define PERFAPI_OPEN_CALLED ((DWORD)0x412307D1L)
  86. //
  87. //
  88. // MessageId: PERFAPI_UNABLE_OPEN_DRIVER_KEY
  89. //
  90. // MessageText:
  91. //
  92. // Unable to open "Performance" key of PerfApiCounters in registy. Status code is returned in data.
  93. //
  94. #define PERFAPI_UNABLE_OPEN_DRIVER_KEY ((DWORD)0xC12307D2L)
  95. //
  96. //
  97. // MessageId: PERFAPI_UNABLE_READ_COUNTERS
  98. //
  99. // MessageText:
  100. //
  101. // Unable to read the "Counters" value from the Perlib\<lang id> Key. Status codes returned in data.
  102. //
  103. #define PERFAPI_UNABLE_READ_COUNTERS ((DWORD)0xC12307D3L)
  104. //
  105. //
  106. // MessageId: PERFAPI_UNABLE_READ_HELPTEXT
  107. //
  108. // MessageText:
  109. //
  110. // Unable to read the "Help" value from the Perflib\<lang id> Key. Status codes returned in data.
  111. //
  112. #define PERFAPI_UNABLE_READ_HELPTEXT ((DWORD)0xC12307D4L)
  113. //
  114. //
  115. // MessageId: PERFAPI_FAILED_TO_ALLOC_OBJECT_SHMEM
  116. //
  117. // MessageText:
  118. //
  119. // Failed to alloc and initialize the shared memory for object counters. Status is in data.
  120. //
  121. #define PERFAPI_FAILED_TO_ALLOC_OBJECT_SHMEM ((DWORD)0xC12307D5L)
  122. //
  123. //
  124. // MessageId: PERFAPI_FAILED_TO_UPDATE_REGISTRY
  125. //
  126. // MessageText:
  127. //
  128. // Failed to update the registry entries. Status code is in data.
  129. //
  130. #define PERFAPI_FAILED_TO_UPDATE_REGISTRY ((DWORD)0xC12307D6L)
  131. //
  132. //
  133. // MessageId: PERFAPI_INVALID_OBJECT_HANDLE
  134. //
  135. // MessageText:
  136. //
  137. // Invalid object handle passed. Cannot create counter/instance, or destroy object.
  138. //
  139. #define PERFAPI_INVALID_OBJECT_HANDLE ((DWORD)0xC12307D7L)
  140. //
  141. //
  142. // MessageId: PERFAPI_FAILED_TO_CREATE_INSTANCE_HANDLE
  143. //
  144. // MessageText:
  145. //
  146. // Failed to create instance handle. Reason: too many instances.
  147. //
  148. #define PERFAPI_FAILED_TO_CREATE_INSTANCE_HANDLE ((DWORD)0xC12307D8L)
  149. //
  150. //
  151. // MessageId: PERFAPI_FAILED_TO_CREATE_COUNTER_HANDLE
  152. //
  153. // MessageText:
  154. //
  155. // Failed to create counter handle. Reason: out of memory.
  156. //
  157. #define PERFAPI_FAILED_TO_CREATE_COUNTER_HANDLE ((DWORD)0xC12307D9L)
  158. //
  159. //
  160. // MessageId: PERFAPI_INVALID_TITLE
  161. //
  162. // MessageText:
  163. //
  164. // Failed to create Performance object, instance or counter. Reason: no name was supplied.
  165. //
  166. #define PERFAPI_INVALID_TITLE ((DWORD)0xC12307DAL)
  167. //
  168. //
  169. // MessageId: PERFAPI_ALREADY_EXISTS
  170. //
  171. // MessageText:
  172. //
  173. // The Performance object, counter or instance existed before an attempt to create it. The call did not create a new object, counter or instance. The handle, offset or instance id that was returned refer to the old object, counter or instance.
  174. //
  175. #define PERFAPI_ALREADY_EXISTS ((DWORD)0x812307DBL)
  176. //
  177. //
  178. // MessageId: PERFAPI_INVALID_INSTANCE_HANDLE
  179. //
  180. // MessageText:
  181. //
  182. // The supplied Performance Instance handle is invalid.
  183. //
  184. #define PERFAPI_INVALID_INSTANCE_HANDLE ((DWORD)0xC12307DCL)
  185. //
  186. //
  187. // MessageId: PERFAPI_FAILED_TO_CREATE_INSTANCE
  188. //
  189. // MessageText:
  190. //
  191. // Failed to create Performance instance. Possible reasons: Can't create any more instances for the object, or the object that the instance belongs to, does not support instances.
  192. //
  193. #define PERFAPI_FAILED_TO_CREATE_INSTANCE ((DWORD)0xC12307DDL)
  194. //
  195. //
  196. // MessageId: PERFAPI_FAILED_TO_CREATE_COUNTER
  197. //
  198. // MessageText:
  199. //
  200. // Can't create any more Performance counters for the object.
  201. //
  202. #define PERFAPI_FAILED_TO_CREATE_COUNTER ((DWORD)0xC12307DEL)
  203. //
  204. //
  205. // MessageId: PERFAPI_FAILED_TO_CREATE_OBJECT
  206. //
  207. // MessageText:
  208. //
  209. // Can't create any more Performance objects.
  210. //
  211. #define PERFAPI_FAILED_TO_CREATE_OBJECT ((DWORD)0xC12307DFL)
  212. //
  213. //
  214. // MessageId: PERFAPI_FAILED_TO_OPEN_REGISTRY
  215. //
  216. // MessageText:
  217. //
  218. // The Dynamic Performance Counters DLL failed to open a registry key.
  219. //
  220. #define PERFAPI_FAILED_TO_OPEN_REGISTRY ((DWORD)0xC12307E0L)
  221. //
  222. //
  223. // MessageId: PERFAPI_FAILED_TO_READ_REGISTRY
  224. //
  225. // MessageText:
  226. //
  227. // The Dynamic Performance Counters DLL failed to read a value from a registry key.
  228. //
  229. #define PERFAPI_FAILED_TO_READ_REGISTRY ((DWORD)0xC12307E1L)
  230. //
  231. //
  232. // MessageId: PERFAPI_INVALID_COUNTER_HANDLE
  233. //
  234. // MessageText:
  235. //
  236. // The Performance counter handle supplied is invalid.
  237. //
  238. #define PERFAPI_INVALID_COUNTER_HANDLE ((DWORD)0xC12307E2L)
  239. //
  240. //
  241. // MessageId: PERFAPI_INVALID_INSTANCE_ID
  242. //
  243. // MessageText:
  244. //
  245. // The supplied Performance Instance id is invalid.
  246. //
  247. #define PERFAPI_INVALID_INSTANCE_ID ((DWORD)0xC12307E3L)
  248. //
  249. //
  250. // MessageId: PERFAPI_OUT_OF_MEMORY
  251. //
  252. // MessageText:
  253. //
  254. // An attempt to allocate local memory failed.
  255. //
  256. #define PERFAPI_OUT_OF_MEMORY ((DWORD)0xC12307E4L)
  257. //
  258. //
  259. // MessageId: PERFAPI_OUT_OF_REGISTRY_ENTRIES
  260. //
  261. // MessageText:
  262. //
  263. // All the allocated registry entries for dynamic performance objects/counters have been filled out. Can not add any more objects/counters.
  264. //
  265. #define PERFAPI_OUT_OF_REGISTRY_ENTRIES ((DWORD)0xC12307E5L)
  266. //
  267. //
  268. // MessageId: PERFAPI_INVALID_COUNTER_ID
  269. //
  270. // MessageText:
  271. //
  272. // The supplied Performance Counter id is invalid.
  273. //
  274. #define PERFAPI_INVALID_COUNTER_ID ((DWORD)0xC12307E6L)
  275. #endif // _PERFERR_H_