home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / win32 / Pdhmsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-08  |  8.1 KB  |  367 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1996  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     pdhmsg.h
  8.        (generated from pdhmsg.mc)
  9.  
  10. Abstract:
  11.  
  12.    Event message definititions used by routines by PDH.DLL
  13.  
  14. Created:
  15.  
  16.     6-Feb-96   Bob Watson (a-robw)
  17.  
  18. Revision History:
  19.  
  20. --*/
  21. #ifndef _PDH_MSG_H_
  22. #define _PDH_MSG_H_
  23. //
  24. //     PDH DLL messages
  25. //
  26. //
  27. //      Success Messages
  28. //
  29. //         the Win32 error value ERROR_SUCCESS is used for success returns
  30. //
  31. //      MESSAGE NAME FORMAT
  32. //
  33. //          PDH_CSTATUS_...   messages are data item status message and
  34. //                     are returned in reference to the status of a data 
  35. //                     item
  36. //          PDH_...           messages are returned by FUNCTIONS only and
  37. //                     not used as data item status values
  38. //
  39. //      Success Messages
  40. //         These messages are normally returned when the operation completed
  41. //         successfully.
  42. //
  43. //
  44. //  Values are 32 bit values layed out as follows:
  45. //
  46. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  47. //   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
  48. //  +---+-+-+-----------------------+-------------------------------+
  49. //  |Sev|C|R|     Facility          |               Code            |
  50. //  +---+-+-+-----------------------+-------------------------------+
  51. //
  52. //  where
  53. //
  54. //      Sev - is the severity code
  55. //
  56. //          00 - Success
  57. //          01 - Informational
  58. //          10 - Warning
  59. //          11 - Error
  60. //
  61. //      C - is the Customer code flag
  62. //
  63. //      R - is a reserved bit
  64. //
  65. //      Facility - is the facility code
  66. //
  67. //      Code - is the facility's status code
  68. //
  69. //
  70. // Define the facility codes
  71. //
  72.  
  73.  
  74. //
  75. // Define the severity codes
  76. //
  77. #define STATUS_SEVERITY_WARNING          0x2
  78. #define STATUS_SEVERITY_SUCCESS          0x0
  79. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  80. #define STATUS_SEVERITY_ERROR            0x3
  81.  
  82.  
  83. //
  84. // MessageId: PDH_CSTATUS_VALID_DATA
  85. //
  86. // MessageText:
  87. //
  88. //  The returned data is valid.
  89. //
  90. #define PDH_CSTATUS_VALID_DATA           ((DWORD)0x00000000L)
  91.  
  92. //
  93. // MessageId: PDH_CSTATUS_NEW_DATA
  94. //
  95. // MessageText:
  96. //
  97. //  The return data value is valid and different from the last sample.
  98. //
  99. #define PDH_CSTATUS_NEW_DATA             ((DWORD)0x00000001L)
  100.  
  101. //
  102. //        Informational messages
  103. //
  104. //  None
  105. //
  106. //      Warning Messages
  107. //         These messages are returned when the function has completed 
  108. //         successfully but the results may be different than expected.
  109. //
  110. //
  111. // MessageId: PDH_CSTATUS_NO_MACHINE
  112. //
  113. // MessageText:
  114. //
  115. //  Unable to connect to specified machine or machine is off line.
  116. //
  117. #define PDH_CSTATUS_NO_MACHINE           ((DWORD)0x800007D0L)
  118.  
  119. //
  120. // MessageId: PDH_CSTATUS_NO_INSTANCE
  121. //
  122. // MessageText:
  123. //
  124. //  The specified instance is not present.
  125. //
  126. #define PDH_CSTATUS_NO_INSTANCE          ((DWORD)0x800007D1L)
  127.  
  128. //
  129. // MessageId: PDH_MORE_DATA
  130. //
  131. // MessageText:
  132. //
  133. //  There is more data to return than would fit in the supplied buffer. Allocate
  134. //  a larger buffer and call the function again.
  135. //
  136. #define PDH_MORE_DATA                    ((DWORD)0x800007D2L)
  137.  
  138. //
  139. // MessageId: PDH_CSTATUS_ITEM_NOT_VALIDATED
  140. //
  141. // MessageText:
  142. //
  143. //  The data item has been added to the query, but has not been validated nor 
  144. //  accessed. No other status information on this data item is available.
  145. //
  146. #define PDH_CSTATUS_ITEM_NOT_VALIDATED   ((DWORD)0x800007D3L)
  147.  
  148. //
  149. // MessageId: PDH_RETRY
  150. //
  151. // MessageText:
  152. //
  153. //  The selected operation should be retried.
  154. //
  155. #define PDH_RETRY                        ((DWORD)0x800007D4L)
  156.  
  157. //
  158. // MessageId: PDH_NO_DATA
  159. //
  160. // MessageText:
  161. //
  162. //  No data to return.
  163. //
  164. #define PDH_NO_DATA                      ((DWORD)0x800007D5L)
  165.  
  166. //
  167. // MessageId: PDH_CALC_NEGATIVE_DENOMINATOR
  168. //
  169. // MessageText:
  170. //
  171. //  A counter with a negative denominator value was detected.
  172. //
  173. #define PDH_CALC_NEGATIVE_DENOMINATOR    ((DWORD)0x800007D6L)
  174.  
  175. //
  176. // MessageId: PDH_CALC_NEGATIVE_TIMEBASE
  177. //
  178. // MessageText:
  179. //
  180. //  A counter with a negative timebase value was detected.
  181. //
  182. #define PDH_CALC_NEGATIVE_TIMEBASE       ((DWORD)0x800007D7L)
  183.  
  184. //
  185. // MessageId: PDH_CALC_NEGATIVE_VALUE
  186. //
  187. // MessageText:
  188. //
  189. //  A counter with a negative value was detected.
  190. //
  191. #define PDH_CALC_NEGATIVE_VALUE          ((DWORD)0x800007D8L)
  192.  
  193. //
  194. // MessageId: PDH_DIALOG_CANCELLED
  195. //
  196. // MessageText:
  197. //
  198. //  The user cancelled the dialog box.
  199. //
  200. #define PDH_DIALOG_CANCELLED             ((DWORD)0x800007D9L)
  201.  
  202. //
  203. //     Error Messages
  204. //        These messages are returned when the function could not complete
  205. //        as requested and some corrective action may be required by the
  206. //        the caller or the user.
  207. //
  208. //
  209. // MessageId: PDH_CSTATUS_NO_OBJECT
  210. //
  211. // MessageText:
  212. //
  213. //  The specified object is not found on the system.
  214. //
  215. #define PDH_CSTATUS_NO_OBJECT            ((DWORD)0xC0000BB8L)
  216.  
  217. //
  218. // MessageId: PDH_CSTATUS_NO_COUNTER
  219. //
  220. // MessageText:
  221. //
  222. //  The specified counter could not be found.
  223. //
  224. #define PDH_CSTATUS_NO_COUNTER           ((DWORD)0xC0000BB9L)
  225.  
  226. //
  227. // MessageId: PDH_CSTATUS_INVALID_DATA
  228. //
  229. // MessageText:
  230. //
  231. //  The returned data is not valid.
  232. //
  233. #define PDH_CSTATUS_INVALID_DATA         ((DWORD)0xC0000BBAL)
  234.  
  235. //
  236. // MessageId: PDH_MEMORY_ALLOCATION_FAILURE
  237. //
  238. // MessageText:
  239. //
  240. //  A PDH function could not allocate enough temporary memory to complete the
  241. //  operation. Close some applications or extend the pagefile and retry the 
  242. //  function.
  243. //
  244. #define PDH_MEMORY_ALLOCATION_FAILURE    ((DWORD)0xC0000BBBL)
  245.  
  246. //
  247. // MessageId: PDH_INVALID_HANDLE
  248. //
  249. // MessageText:
  250. //
  251. //  The handle is not a valid PDH object.
  252. //
  253. #define PDH_INVALID_HANDLE               ((DWORD)0xC0000BBCL)
  254.  
  255. //
  256. // MessageId: PDH_INVALID_ARGUMENT
  257. //
  258. // MessageText:
  259. //
  260. //  A required argument is missing or incorrect.
  261. //
  262. #define PDH_INVALID_ARGUMENT             ((DWORD)0xC0000BBDL)
  263.  
  264. //
  265. // MessageId: PDH_FUNCTION_NOT_FOUND
  266. //
  267. // MessageText:
  268. //
  269. //  Unable to find the specified function.
  270. //
  271. #define PDH_FUNCTION_NOT_FOUND           ((DWORD)0xC0000BBEL)
  272.  
  273. //
  274. // MessageId: PDH_CSTATUS_NO_COUNTERNAME
  275. //
  276. // MessageText:
  277. //
  278. //  No counter was specified.
  279. //
  280. #define PDH_CSTATUS_NO_COUNTERNAME       ((DWORD)0xC0000BBFL)
  281.  
  282. //
  283. // MessageId: PDH_CSTATUS_BAD_COUNTERNAME
  284. //
  285. // MessageText:
  286. //
  287. //  Unable to parse the counter path. Check the format and syntax of the 
  288. //  specified path.
  289. //
  290. #define PDH_CSTATUS_BAD_COUNTERNAME      ((DWORD)0xC0000BC0L)
  291.  
  292. //
  293. // MessageId: PDH_INVALID_BUFFER
  294. //
  295. // MessageText:
  296. //
  297. //  The buffer passed by the caller is invalid.
  298. //
  299. #define PDH_INVALID_BUFFER               ((DWORD)0xC0000BC1L)
  300.  
  301. //
  302. // MessageId: PDH_INSUFFICIENT_BUFFER
  303. //
  304. // MessageText:
  305. //
  306. //  The requested data is larger than the buffer supplied. Unable to return the
  307. //  requested data.
  308. //
  309. #define PDH_INSUFFICIENT_BUFFER          ((DWORD)0xC0000BC2L)
  310.  
  311. //
  312. // MessageId: PDH_CANNOT_CONNECT_MACHINE
  313. //
  314. // MessageText:
  315. //
  316. //  Unable to connect to the requested machine.
  317. //
  318. #define PDH_CANNOT_CONNECT_MACHINE       ((DWORD)0xC0000BC3L)
  319.  
  320. //
  321. // MessageId: PDH_INVALID_PATH
  322. //
  323. // MessageText:
  324. //
  325. //  The specified counter path could not be interpreted.
  326. //
  327. #define PDH_INVALID_PATH                 ((DWORD)0xC0000BC4L)
  328.  
  329. //
  330. // MessageId: PDH_INVALID_INSTANCE
  331. //
  332. // MessageText:
  333. //
  334. //  The instance name could not be read from the specified counter path.
  335. //
  336. #define PDH_INVALID_INSTANCE             ((DWORD)0xC0000BC5L)
  337.  
  338. //
  339. // MessageId: PDH_INVALID_DATA
  340. //
  341. // MessageText:
  342. //
  343. //  The data is not valid.
  344. //
  345. #define PDH_INVALID_DATA                 ((DWORD)0xC0000BC6L)
  346.  
  347. //
  348. // MessageId: PDH_NO_DIALOG_DATA
  349. //
  350. // MessageText:
  351. //
  352. //  The dialog box data block was missing or invalid.
  353. //
  354. #define PDH_NO_DIALOG_DATA               ((DWORD)0xC0000BC7L)
  355.  
  356. //
  357. // MessageId: PDH_CANNOT_READ_NAME_STRINGS
  358. //
  359. // MessageText:
  360. //
  361. //  Unable to read the counter and/or explain text from the specified machine.
  362. //
  363. #define PDH_CANNOT_READ_NAME_STRINGS     ((DWORD)0xC0000BC8L)
  364.  
  365. #endif //_PDH_MSG_H_
  366. // end of generated file
  367.