home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / pdhmsg.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  12KB  |  533 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1996-1997  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. // MessageId: PDH_END_OF_LOG_FILE
  204. //
  205. // MessageText:
  206. //
  207. //  The end of the log file was reached.
  208. //
  209. #define PDH_END_OF_LOG_FILE              ((DWORD)0x800007DAL)
  210.  
  211. //
  212. //     Error Messages
  213. //        These messages are returned when the function could not complete
  214. //        as requested and some corrective action may be required by the
  215. //        the caller or the user.
  216. //
  217. //
  218. // MessageId: PDH_CSTATUS_NO_OBJECT
  219. //
  220. // MessageText:
  221. //
  222. //  The specified object is not found on the system.
  223. //
  224. #define PDH_CSTATUS_NO_OBJECT            ((DWORD)0xC0000BB8L)
  225.  
  226. //
  227. // MessageId: PDH_CSTATUS_NO_COUNTER
  228. //
  229. // MessageText:
  230. //
  231. //  The specified counter could not be found.
  232. //
  233. #define PDH_CSTATUS_NO_COUNTER           ((DWORD)0xC0000BB9L)
  234.  
  235. //
  236. // MessageId: PDH_CSTATUS_INVALID_DATA
  237. //
  238. // MessageText:
  239. //
  240. //  The returned data is not valid.
  241. //
  242. #define PDH_CSTATUS_INVALID_DATA         ((DWORD)0xC0000BBAL)
  243.  
  244. //
  245. // MessageId: PDH_MEMORY_ALLOCATION_FAILURE
  246. //
  247. // MessageText:
  248. //
  249. //  A PDH function could not allocate enough temporary memory to complete the
  250. //  operation. Close some applications or extend the pagefile and retry the 
  251. //  function.
  252. //
  253. #define PDH_MEMORY_ALLOCATION_FAILURE    ((DWORD)0xC0000BBBL)
  254.  
  255. //
  256. // MessageId: PDH_INVALID_HANDLE
  257. //
  258. // MessageText:
  259. //
  260. //  The handle is not a valid PDH object.
  261. //
  262. #define PDH_INVALID_HANDLE               ((DWORD)0xC0000BBCL)
  263.  
  264. //
  265. // MessageId: PDH_INVALID_ARGUMENT
  266. //
  267. // MessageText:
  268. //
  269. //  A required argument is missing or incorrect.
  270. //
  271. #define PDH_INVALID_ARGUMENT             ((DWORD)0xC0000BBDL)
  272.  
  273. //
  274. // MessageId: PDH_FUNCTION_NOT_FOUND
  275. //
  276. // MessageText:
  277. //
  278. //  Unable to find the specified function.
  279. //
  280. #define PDH_FUNCTION_NOT_FOUND           ((DWORD)0xC0000BBEL)
  281.  
  282. //
  283. // MessageId: PDH_CSTATUS_NO_COUNTERNAME
  284. //
  285. // MessageText:
  286. //
  287. //  No counter was specified.
  288. //
  289. #define PDH_CSTATUS_NO_COUNTERNAME       ((DWORD)0xC0000BBFL)
  290.  
  291. //
  292. // MessageId: PDH_CSTATUS_BAD_COUNTERNAME
  293. //
  294. // MessageText:
  295. //
  296. //  Unable to parse the counter path. Check the format and syntax of the 
  297. //  specified path.
  298. //
  299. #define PDH_CSTATUS_BAD_COUNTERNAME      ((DWORD)0xC0000BC0L)
  300.  
  301. //
  302. // MessageId: PDH_INVALID_BUFFER
  303. //
  304. // MessageText:
  305. //
  306. //  The buffer passed by the caller is invalid.
  307. //
  308. #define PDH_INVALID_BUFFER               ((DWORD)0xC0000BC1L)
  309.  
  310. //
  311. // MessageId: PDH_INSUFFICIENT_BUFFER
  312. //
  313. // MessageText:
  314. //
  315. //  The requested data is larger than the buffer supplied. Unable to return the
  316. //  requested data.
  317. //
  318. #define PDH_INSUFFICIENT_BUFFER          ((DWORD)0xC0000BC2L)
  319.  
  320. //
  321. // MessageId: PDH_CANNOT_CONNECT_MACHINE
  322. //
  323. // MessageText:
  324. //
  325. //  Unable to connect to the requested machine.
  326. //
  327. #define PDH_CANNOT_CONNECT_MACHINE       ((DWORD)0xC0000BC3L)
  328.  
  329. //
  330. // MessageId: PDH_INVALID_PATH
  331. //
  332. // MessageText:
  333. //
  334. //  The specified counter path could not be interpreted.
  335. //
  336. #define PDH_INVALID_PATH                 ((DWORD)0xC0000BC4L)
  337.  
  338. //
  339. // MessageId: PDH_INVALID_INSTANCE
  340. //
  341. // MessageText:
  342. //
  343. //  The instance name could not be read from the specified counter path.
  344. //
  345. #define PDH_INVALID_INSTANCE             ((DWORD)0xC0000BC5L)
  346.  
  347. //
  348. // MessageId: PDH_INVALID_DATA
  349. //
  350. // MessageText:
  351. //
  352. //  The data is not valid.
  353. //
  354. #define PDH_INVALID_DATA                 ((DWORD)0xC0000BC6L)
  355.  
  356. //
  357. // MessageId: PDH_NO_DIALOG_DATA
  358. //
  359. // MessageText:
  360. //
  361. //  The dialog box data block was missing or invalid.
  362. //
  363. #define PDH_NO_DIALOG_DATA               ((DWORD)0xC0000BC7L)
  364.  
  365. //
  366. // MessageId: PDH_CANNOT_READ_NAME_STRINGS
  367. //
  368. // MessageText:
  369. //
  370. //  Unable to read the counter and/or explain text from the specified machine.
  371. //
  372. #define PDH_CANNOT_READ_NAME_STRINGS     ((DWORD)0xC0000BC8L)
  373.  
  374. //
  375. // MessageId: PDH_LOG_FILE_CREATE_ERROR
  376. //
  377. // MessageText:
  378. //
  379. //  Unable to create the specified log file.
  380. //
  381. #define PDH_LOG_FILE_CREATE_ERROR        ((DWORD)0xC0000BC9L)
  382.  
  383. //
  384. // MessageId: PDH_LOG_FILE_OPEN_ERROR
  385. //
  386. // MessageText:
  387. //
  388. //  Unable to open the specified log file.
  389. //
  390. #define PDH_LOG_FILE_OPEN_ERROR          ((DWORD)0xC0000BCAL)
  391.  
  392. //
  393. // MessageId: PDH_LOG_TYPE_NOT_FOUND
  394. //
  395. // MessageText:
  396. //
  397. //  The specified log file type has not been installed on this system.
  398. //
  399. #define PDH_LOG_TYPE_NOT_FOUND           ((DWORD)0xC0000BCBL)
  400.  
  401. //
  402. // MessageId: PDH_NO_MORE_DATA
  403. //
  404. // MessageText:
  405. //
  406. //  No more data is available.
  407. //
  408. #define PDH_NO_MORE_DATA                 ((DWORD)0xC0000BCCL)
  409.  
  410. //
  411. // MessageId: PDH_ENTRY_NOT_IN_LOG_FILE
  412. //
  413. // MessageText:
  414. //
  415. //  The specified record was not found in the log file.
  416. //
  417. #define PDH_ENTRY_NOT_IN_LOG_FILE        ((DWORD)0xC0000BCDL)
  418.  
  419. //
  420. // MessageId: PDH_DATA_SOURCE_IS_LOG_FILE
  421. //
  422. // MessageText:
  423. //
  424. //  The specified data source is a log file.
  425. //
  426. #define PDH_DATA_SOURCE_IS_LOG_FILE      ((DWORD)0xC0000BCEL)
  427.  
  428. //
  429. // MessageId: PDH_DATA_SOURCE_IS_REAL_TIME
  430. //
  431. // MessageText:
  432. //
  433. //  The specified data source is the current activity.
  434. //
  435. #define PDH_DATA_SOURCE_IS_REAL_TIME     ((DWORD)0xC0000BCFL)
  436.  
  437. //
  438. // MessageId: PDH_UNABLE_READ_LOG_HEADER
  439. //
  440. // MessageText:
  441. //
  442. //  The log file header could not be read.
  443. //
  444. #define PDH_UNABLE_READ_LOG_HEADER       ((DWORD)0xC0000BD0L)
  445.  
  446. //
  447. // MessageId: PDH_FILE_NOT_FOUND
  448. //
  449. // MessageText:
  450. //
  451. //  Unable to find the specified file.
  452. //
  453. #define PDH_FILE_NOT_FOUND               ((DWORD)0xC0000BD1L)
  454.  
  455. //
  456. // MessageId: PDH_FILE_ALREADY_EXISTS
  457. //
  458. // MessageText:
  459. //
  460. //  There is already a file with the specified file name.
  461. //
  462. #define PDH_FILE_ALREADY_EXISTS          ((DWORD)0xC0000BD2L)
  463.  
  464. //
  465. // MessageId: PDH_NOT_IMPLEMENTED
  466. //
  467. // MessageText:
  468. //
  469. //  The function referenced has not been implemented.
  470. //
  471. #define PDH_NOT_IMPLEMENTED              ((DWORD)0xC0000BD3L)
  472.  
  473. //
  474. // MessageId: PDH_STRING_NOT_FOUND
  475. //
  476. // MessageText:
  477. //
  478. //  Unable to find the specified string in the list of performance name and 
  479. //  explain text strings.
  480. //
  481. #define PDH_STRING_NOT_FOUND             ((DWORD)0xC0000BD4L)
  482.  
  483. //
  484. // MessageId: PDH_UNABLE_MAP_NAME_FILES
  485. //
  486. // MessageText:
  487. //
  488. //  Unable to map to the performance counter name data files. The data 
  489. //  will be read from the registry and stored locally.
  490. //
  491. #define PDH_UNABLE_MAP_NAME_FILES        ((DWORD)0x80000BD5L)
  492.  
  493. //
  494. // MessageId: PDH_UNKNOWN_LOG_FORMAT
  495. //
  496. // MessageText:
  497. //
  498. //  The format of the specified log file is not recognized by the PDH DLL.
  499. //
  500. #define PDH_UNKNOWN_LOG_FORMAT           ((DWORD)0xC0000BD6L)
  501.  
  502. //
  503. // MessageId: PDH_UNKNOWN_LOGSVC_COMMAND
  504. //
  505. // MessageText:
  506. //
  507. //  The specified Log Service command value is not recognized.
  508. //
  509. #define PDH_UNKNOWN_LOGSVC_COMMAND       ((DWORD)0xC0000BD7L)
  510.  
  511. //
  512. // MessageId: PDH_LOGSVC_QUERY_NOT_FOUND
  513. //
  514. // MessageText:
  515. //
  516. //  The specified Query from the Log Service could not be found or could not
  517. //  be opened.
  518. //
  519. #define PDH_LOGSVC_QUERY_NOT_FOUND       ((DWORD)0xC0000BD8L)
  520.  
  521. //
  522. // MessageId: PDH_LOGSVC_NOT_OPENED
  523. //
  524. // MessageText:
  525. //
  526. //  The Performance Data Log Service key could not be opened. This may be due
  527. //  to insufficient privilege or because the service has not been installed.
  528. //
  529. #define PDH_LOGSVC_NOT_OPENED            ((DWORD)0xC0000BD9L)
  530.  
  531. #endif //_PDH_MSG_H_
  532. // end of generated file
  533.