home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / pdhmsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  12.4 KB  |  560 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1996-1999  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. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  23. #define _PDH_MSG_H_
  24. #if _MSC_VER > 1000
  25. #pragma once
  26. #endif
  27.  
  28. //
  29. //     PDH DLL messages
  30. //
  31. //
  32. //      Success Messages
  33. //
  34. //         the Win32 error value ERROR_SUCCESS is used for success returns
  35. //
  36. //      MESSAGE NAME FORMAT
  37. //
  38. //          PDH_CSTATUS_...   messages are data item status message and
  39. //                     are returned in reference to the status of a data 
  40. //                     item
  41. //          PDH_...           messages are returned by FUNCTIONS only and
  42. //                     not used as data item status values
  43. //
  44. //      Success Messages
  45. //         These messages are normally returned when the operation completed
  46. //         successfully.
  47. //
  48. //
  49. //  Values are 32 bit values layed out as follows:
  50. //
  51. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  52. //   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
  53. //  +---+-+-+-----------------------+-------------------------------+
  54. //  |Sev|C|R|     Facility          |               Code            |
  55. //  +---+-+-+-----------------------+-------------------------------+
  56. //
  57. //  where
  58. //
  59. //      Sev - is the severity code
  60. //
  61. //          00 - Success
  62. //          01 - Informational
  63. //          10 - Warning
  64. //          11 - Error
  65. //
  66. //      C - is the Customer code flag
  67. //
  68. //      R - is a reserved bit
  69. //
  70. //      Facility - is the facility code
  71. //
  72. //      Code - is the facility's status code
  73. //
  74. //
  75. // Define the facility codes
  76. //
  77.  
  78.  
  79. //
  80. // Define the severity codes
  81. //
  82. #define STATUS_SEVERITY_WARNING          0x2
  83. #define STATUS_SEVERITY_SUCCESS          0x0
  84. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  85. #define STATUS_SEVERITY_ERROR            0x3
  86.  
  87.  
  88. //
  89. // MessageId: PDH_CSTATUS_VALID_DATA
  90. //
  91. // MessageText:
  92. //
  93. //  The returned data is valid.
  94. //
  95. #define PDH_CSTATUS_VALID_DATA           ((DWORD)0x00000000L)
  96.  
  97. //
  98. // MessageId: PDH_CSTATUS_NEW_DATA
  99. //
  100. // MessageText:
  101. //
  102. //  The return data value is valid and different from the last sample.
  103. //
  104. #define PDH_CSTATUS_NEW_DATA             ((DWORD)0x00000001L)
  105.  
  106. //
  107. //        Informational messages
  108. //
  109. //  None
  110. //
  111. //      Warning Messages
  112. //         These messages are returned when the function has completed 
  113. //         successfully but the results may be different than expected.
  114. //
  115. //
  116. // MessageId: PDH_CSTATUS_NO_MACHINE
  117. //
  118. // MessageText:
  119. //
  120. //  Unable to connect to specified machine or machine is off line.
  121. //
  122. #define PDH_CSTATUS_NO_MACHINE           ((DWORD)0x800007D0L)
  123.  
  124. //
  125. // MessageId: PDH_CSTATUS_NO_INSTANCE
  126. //
  127. // MessageText:
  128. //
  129. //  The specified instance is not present.
  130. //
  131. #define PDH_CSTATUS_NO_INSTANCE          ((DWORD)0x800007D1L)
  132.  
  133. //
  134. // MessageId: PDH_MORE_DATA
  135. //
  136. // MessageText:
  137. //
  138. //  There is more data to return than would fit in the supplied buffer. Allocate
  139. //  a larger buffer and call the function again.
  140. //
  141. #define PDH_MORE_DATA                    ((DWORD)0x800007D2L)
  142.  
  143. //
  144. // MessageId: PDH_CSTATUS_ITEM_NOT_VALIDATED
  145. //
  146. // MessageText:
  147. //
  148. //  The data item has been added to the query, but has not been validated nor 
  149. //  accessed. No other status information on this data item is available.
  150. //
  151. #define PDH_CSTATUS_ITEM_NOT_VALIDATED   ((DWORD)0x800007D3L)
  152.  
  153. //
  154. // MessageId: PDH_RETRY
  155. //
  156. // MessageText:
  157. //
  158. //  The selected operation should be retried.
  159. //
  160. #define PDH_RETRY                        ((DWORD)0x800007D4L)
  161.  
  162. //
  163. // MessageId: PDH_NO_DATA
  164. //
  165. // MessageText:
  166. //
  167. //  No data to return.
  168. //
  169. #define PDH_NO_DATA                      ((DWORD)0x800007D5L)
  170.  
  171. //
  172. // MessageId: PDH_CALC_NEGATIVE_DENOMINATOR
  173. //
  174. // MessageText:
  175. //
  176. //  A counter with a negative denominator value was detected.
  177. //
  178. #define PDH_CALC_NEGATIVE_DENOMINATOR    ((DWORD)0x800007D6L)
  179.  
  180. //
  181. // MessageId: PDH_CALC_NEGATIVE_TIMEBASE
  182. //
  183. // MessageText:
  184. //
  185. //  A counter with a negative timebase value was detected.
  186. //
  187. #define PDH_CALC_NEGATIVE_TIMEBASE       ((DWORD)0x800007D7L)
  188.  
  189. //
  190. // MessageId: PDH_CALC_NEGATIVE_VALUE
  191. //
  192. // MessageText:
  193. //
  194. //  A counter with a negative value was detected.
  195. //
  196. #define PDH_CALC_NEGATIVE_VALUE          ((DWORD)0x800007D8L)
  197.  
  198. //
  199. // MessageId: PDH_DIALOG_CANCELLED
  200. //
  201. // MessageText:
  202. //
  203. //  The user cancelled the dialog box.
  204. //
  205. #define PDH_DIALOG_CANCELLED             ((DWORD)0x800007D9L)
  206.  
  207. //
  208. // MessageId: PDH_END_OF_LOG_FILE
  209. //
  210. // MessageText:
  211. //
  212. //  The end of the log file was reached.
  213. //
  214. #define PDH_END_OF_LOG_FILE              ((DWORD)0x800007DAL)
  215.  
  216. //
  217. //     Error Messages
  218. //        These messages are returned when the function could not complete
  219. //        as requested and some corrective action may be required by the
  220. //        the caller or the user.
  221. //
  222. //
  223. // MessageId: PDH_CSTATUS_NO_OBJECT
  224. //
  225. // MessageText:
  226. //
  227. //  The specified object is not found on the system.
  228. //
  229. #define PDH_CSTATUS_NO_OBJECT            ((DWORD)0xC0000BB8L)
  230.  
  231. //
  232. // MessageId: PDH_CSTATUS_NO_COUNTER
  233. //
  234. // MessageText:
  235. //
  236. //  The specified counter could not be found.
  237. //
  238. #define PDH_CSTATUS_NO_COUNTER           ((DWORD)0xC0000BB9L)
  239.  
  240. //
  241. // MessageId: PDH_CSTATUS_INVALID_DATA
  242. //
  243. // MessageText:
  244. //
  245. //  The returned data is not valid.
  246. //
  247. #define PDH_CSTATUS_INVALID_DATA         ((DWORD)0xC0000BBAL)
  248.  
  249. //
  250. // MessageId: PDH_MEMORY_ALLOCATION_FAILURE
  251. //
  252. // MessageText:
  253. //
  254. //  A PDH function could not allocate enough temporary memory to complete the
  255. //  operation. Close some applications or extend the pagefile and retry the 
  256. //  function.
  257. //
  258. #define PDH_MEMORY_ALLOCATION_FAILURE    ((DWORD)0xC0000BBBL)
  259.  
  260. //
  261. // MessageId: PDH_INVALID_HANDLE
  262. //
  263. // MessageText:
  264. //
  265. //  The handle is not a valid PDH object.
  266. //
  267. #define PDH_INVALID_HANDLE               ((DWORD)0xC0000BBCL)
  268.  
  269. //
  270. // MessageId: PDH_INVALID_ARGUMENT
  271. //
  272. // MessageText:
  273. //
  274. //  A required argument is missing or incorrect.
  275. //
  276. #define PDH_INVALID_ARGUMENT             ((DWORD)0xC0000BBDL)
  277.  
  278. //
  279. // MessageId: PDH_FUNCTION_NOT_FOUND
  280. //
  281. // MessageText:
  282. //
  283. //  Unable to find the specified function.
  284. //
  285. #define PDH_FUNCTION_NOT_FOUND           ((DWORD)0xC0000BBEL)
  286.  
  287. //
  288. // MessageId: PDH_CSTATUS_NO_COUNTERNAME
  289. //
  290. // MessageText:
  291. //
  292. //  No counter was specified.
  293. //
  294. #define PDH_CSTATUS_NO_COUNTERNAME       ((DWORD)0xC0000BBFL)
  295.  
  296. //
  297. // MessageId: PDH_CSTATUS_BAD_COUNTERNAME
  298. //
  299. // MessageText:
  300. //
  301. //  Unable to parse the counter path. Check the format and syntax of the 
  302. //  specified path.
  303. //
  304. #define PDH_CSTATUS_BAD_COUNTERNAME      ((DWORD)0xC0000BC0L)
  305.  
  306. //
  307. // MessageId: PDH_INVALID_BUFFER
  308. //
  309. // MessageText:
  310. //
  311. //  The buffer passed by the caller is invalid.
  312. //
  313. #define PDH_INVALID_BUFFER               ((DWORD)0xC0000BC1L)
  314.  
  315. //
  316. // MessageId: PDH_INSUFFICIENT_BUFFER
  317. //
  318. // MessageText:
  319. //
  320. //  The requested data is larger than the buffer supplied. Unable to return the
  321. //  requested data.
  322. //
  323. #define PDH_INSUFFICIENT_BUFFER          ((DWORD)0xC0000BC2L)
  324.  
  325. //
  326. // MessageId: PDH_CANNOT_CONNECT_MACHINE
  327. //
  328. // MessageText:
  329. //
  330. //  Unable to connect to the requested machine.
  331. //
  332. #define PDH_CANNOT_CONNECT_MACHINE       ((DWORD)0xC0000BC3L)
  333.  
  334. //
  335. // MessageId: PDH_INVALID_PATH
  336. //
  337. // MessageText:
  338. //
  339. //  The specified counter path could not be interpreted.
  340. //
  341. #define PDH_INVALID_PATH                 ((DWORD)0xC0000BC4L)
  342.  
  343. //
  344. // MessageId: PDH_INVALID_INSTANCE
  345. //
  346. // MessageText:
  347. //
  348. //  The instance name could not be read from the specified counter path.
  349. //
  350. #define PDH_INVALID_INSTANCE             ((DWORD)0xC0000BC5L)
  351.  
  352. //
  353. // MessageId: PDH_INVALID_DATA
  354. //
  355. // MessageText:
  356. //
  357. //  The data is not valid.
  358. //
  359. #define PDH_INVALID_DATA                 ((DWORD)0xC0000BC6L)
  360.  
  361. //
  362. // MessageId: PDH_NO_DIALOG_DATA
  363. //
  364. // MessageText:
  365. //
  366. //  The dialog box data block was missing or invalid.
  367. //
  368. #define PDH_NO_DIALOG_DATA               ((DWORD)0xC0000BC7L)
  369.  
  370. //
  371. // MessageId: PDH_CANNOT_READ_NAME_STRINGS
  372. //
  373. // MessageText:
  374. //
  375. //  Unable to read the counter and/or explain text from the specified machine.
  376. //
  377. #define PDH_CANNOT_READ_NAME_STRINGS     ((DWORD)0xC0000BC8L)
  378.  
  379. //
  380. // MessageId: PDH_LOG_FILE_CREATE_ERROR
  381. //
  382. // MessageText:
  383. //
  384. //  Unable to create the specified log file.
  385. //
  386. #define PDH_LOG_FILE_CREATE_ERROR        ((DWORD)0xC0000BC9L)
  387.  
  388. //
  389. // MessageId: PDH_LOG_FILE_OPEN_ERROR
  390. //
  391. // MessageText:
  392. //
  393. //  Unable to open the specified log file.
  394. //
  395. #define PDH_LOG_FILE_OPEN_ERROR          ((DWORD)0xC0000BCAL)
  396.  
  397. //
  398. // MessageId: PDH_LOG_TYPE_NOT_FOUND
  399. //
  400. // MessageText:
  401. //
  402. //  The specified log file type has not been installed on this system.
  403. //
  404. #define PDH_LOG_TYPE_NOT_FOUND           ((DWORD)0xC0000BCBL)
  405.  
  406. //
  407. // MessageId: PDH_NO_MORE_DATA
  408. //
  409. // MessageText:
  410. //
  411. //  No more data is available.
  412. //
  413. #define PDH_NO_MORE_DATA                 ((DWORD)0xC0000BCCL)
  414.  
  415. //
  416. // MessageId: PDH_ENTRY_NOT_IN_LOG_FILE
  417. //
  418. // MessageText:
  419. //
  420. //  The specified record was not found in the log file.
  421. //
  422. #define PDH_ENTRY_NOT_IN_LOG_FILE        ((DWORD)0xC0000BCDL)
  423.  
  424. //
  425. // MessageId: PDH_DATA_SOURCE_IS_LOG_FILE
  426. //
  427. // MessageText:
  428. //
  429. //  The specified data source is a log file.
  430. //
  431. #define PDH_DATA_SOURCE_IS_LOG_FILE      ((DWORD)0xC0000BCEL)
  432.  
  433. //
  434. // MessageId: PDH_DATA_SOURCE_IS_REAL_TIME
  435. //
  436. // MessageText:
  437. //
  438. //  The specified data source is the current activity.
  439. //
  440. #define PDH_DATA_SOURCE_IS_REAL_TIME     ((DWORD)0xC0000BCFL)
  441.  
  442. //
  443. // MessageId: PDH_UNABLE_READ_LOG_HEADER
  444. //
  445. // MessageText:
  446. //
  447. //  The log file header could not be read.
  448. //
  449. #define PDH_UNABLE_READ_LOG_HEADER       ((DWORD)0xC0000BD0L)
  450.  
  451. //
  452. // MessageId: PDH_FILE_NOT_FOUND
  453. //
  454. // MessageText:
  455. //
  456. //  Unable to find the specified file.
  457. //
  458. #define PDH_FILE_NOT_FOUND               ((DWORD)0xC0000BD1L)
  459.  
  460. //
  461. // MessageId: PDH_FILE_ALREADY_EXISTS
  462. //
  463. // MessageText:
  464. //
  465. //  There is already a file with the specified file name.
  466. //
  467. #define PDH_FILE_ALREADY_EXISTS          ((DWORD)0xC0000BD2L)
  468.  
  469. //
  470. // MessageId: PDH_NOT_IMPLEMENTED
  471. //
  472. // MessageText:
  473. //
  474. //  The function referenced has not been implemented.
  475. //
  476. #define PDH_NOT_IMPLEMENTED              ((DWORD)0xC0000BD3L)
  477.  
  478. //
  479. // MessageId: PDH_STRING_NOT_FOUND
  480. //
  481. // MessageText:
  482. //
  483. //  Unable to find the specified string in the list of performance name and 
  484. //  explain text strings.
  485. //
  486. #define PDH_STRING_NOT_FOUND             ((DWORD)0xC0000BD4L)
  487.  
  488. //
  489. // MessageId: PDH_UNABLE_MAP_NAME_FILES
  490. //
  491. // MessageText:
  492. //
  493. //  Unable to map to the performance counter name data files. The data 
  494. //  will be read from the registry and stored locally.
  495. //
  496. #define PDH_UNABLE_MAP_NAME_FILES        ((DWORD)0x80000BD5L)
  497.  
  498. //
  499. // MessageId: PDH_UNKNOWN_LOG_FORMAT
  500. //
  501. // MessageText:
  502. //
  503. //  The format of the specified log file is not recognized by the PDH DLL.
  504. //
  505. #define PDH_UNKNOWN_LOG_FORMAT           ((DWORD)0xC0000BD6L)
  506.  
  507. //
  508. // MessageId: PDH_UNKNOWN_LOGSVC_COMMAND
  509. //
  510. // MessageText:
  511. //
  512. //  The specified Log Service command value is not recognized.
  513. //
  514. #define PDH_UNKNOWN_LOGSVC_COMMAND       ((DWORD)0xC0000BD7L)
  515.  
  516. //
  517. // MessageId: PDH_LOGSVC_QUERY_NOT_FOUND
  518. //
  519. // MessageText:
  520. //
  521. //  The specified Query from the Log Service could not be found or could not
  522. //  be opened.
  523. //
  524. #define PDH_LOGSVC_QUERY_NOT_FOUND       ((DWORD)0xC0000BD8L)
  525.  
  526. //
  527. // MessageId: PDH_LOGSVC_NOT_OPENED
  528. //
  529. // MessageText:
  530. //
  531. //  The Performance Data Log Service key could not be opened. This may be due
  532. //  to insufficient privilege or because the service has not been installed.
  533. //
  534. #define PDH_LOGSVC_NOT_OPENED            ((DWORD)0xC0000BD9L)
  535.  
  536. //
  537. // MessageId: PDH_WBEM_ERROR
  538. //
  539. // MessageText:
  540. //
  541. //  An error occured while accessing the WBEM data store.  The WBEM error code
  542. //  is contained in the LastError value.
  543. //
  544. #define PDH_WBEM_ERROR                   ((DWORD)0xC0000BDAL)
  545.  
  546. //
  547. // MessageId: PDH_ACCESS_DENIED
  548. //
  549. // MessageText:
  550. //
  551. //  Unable to access the desired machine or service. Check the permissions and 
  552. //  authentication of the log service or the interactive user session against 
  553. //  those on the machine or service being monitored.
  554. //
  555. #define PDH_ACCESS_DENIED                ((DWORD)0xC0000BDBL)
  556.  
  557. #pragma option pop /*P_O_Pop*/
  558. #endif //_PDH_MSG_H_
  559. // end of generated file
  560.