jwapdhmsg.pas 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102
  1. {******************************************************************************}
  2. { }
  3. { Performance Data Helper Error Codes API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: pdhmsg.h, released August 2001. The original Pascal }
  9. { code is: PdhMsg.pas, released December 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  16. { }
  17. { You may retrieve the latest version of this file at the Project JEDI }
  18. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  19. { }
  20. { The contents of this file are used with permission, subject to the Mozilla }
  21. { Public License Version 1.1 (the "License"); you may not use this file except }
  22. { in compliance with the License. You may obtain a copy of the License at }
  23. { http://www.mozilla.org/MPL/MPL-1.1.html }
  24. { }
  25. { Software distributed under the License is distributed on an "AS IS" basis, }
  26. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  27. { the specific language governing rights and limitations under the License. }
  28. { }
  29. { Alternatively, the contents of this file may be used under the terms of the }
  30. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  31. { provisions of the LGPL License are applicable instead of those above. }
  32. { If you wish to allow use of your version of this file only under the terms }
  33. { of the LGPL License and not to allow others to use your version of this file }
  34. { under the MPL, indicate your decision by deleting the provisions above and }
  35. { replace them with the notice and other provisions required by the LGPL }
  36. { License. If you do not delete the provisions above, a recipient may use }
  37. { your version of this file under either the MPL or the LGPL License. }
  38. { }
  39. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  40. { }
  41. {******************************************************************************}
  42. // $Id: JwaPdhMsg.pas,v 1.6 2005/09/03 14:27:48 marquardt Exp $
  43. unit JwaPdhMsg;
  44. {$WEAKPACKAGEUNIT}
  45. {$HPPEMIT ''}
  46. {$HPPEMIT '#include "pdhmsg.h"'}
  47. {$HPPEMIT ''}
  48. {$I jediapilib.inc}
  49. interface
  50. uses
  51. JwaWindows;
  52. // PDH DLL messages
  53. //
  54. //
  55. // Success Messages
  56. //
  57. // the Win32 error value ERROR_SUCCESS is used for success returns
  58. //
  59. // MESSAGE NAME FORMAT
  60. //
  61. // PDH_CSTATUS_... messages are data item status message and
  62. // are returned in reference to the status of a data
  63. // item
  64. // PDH_... messages are returned by FUNCTIONS only and
  65. // not used as data item status values
  66. //
  67. // Success Messages
  68. // These messages are normally returned when the operation completed
  69. // successfully.
  70. //
  71. //
  72. // Values are 32 bit values layed out as follows:
  73. //
  74. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  75. // 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
  76. // +---+-+-+-----------------------+-------------------------------+
  77. // |Sev|C|R| Facility | Code |
  78. // +---+-+-+-----------------------+-------------------------------+
  79. //
  80. // where
  81. //
  82. // Sev - is the severity code
  83. //
  84. // 00 - Success
  85. // 01 - Informational
  86. // 10 - Warning
  87. // 11 - Error
  88. //
  89. // C - is the Customer code flag
  90. //
  91. // R - is a reserved bit
  92. //
  93. // Facility - is the facility code
  94. //
  95. // Code - is the facility's status code
  96. //
  97. //
  98. // Define the facility codes
  99. const
  100. //
  101. // Define the severity codes
  102. //
  103. STATUS_SEVERITY_WARNING = $2;
  104. {$EXTERNALSYM STATUS_SEVERITY_WARNING}
  105. STATUS_SEVERITY_SUCCESS = $0;
  106. {$EXTERNALSYM STATUS_SEVERITY_SUCCESS}
  107. STATUS_SEVERITY_INFORMATIONAL = $1;
  108. {$EXTERNALSYM STATUS_SEVERITY_INFORMATIONAL}
  109. STATUS_SEVERITY_ERROR = $3;
  110. {$EXTERNALSYM STATUS_SEVERITY_ERROR}
  111. //
  112. // MessageId: PDH_CSTATUS_VALID_DATA
  113. //
  114. // MessageText:
  115. //
  116. // The returned data is valid.
  117. //
  118. PDH_CSTATUS_VALID_DATA = DWORD($00000000);
  119. {$EXTERNALSYM PDH_CSTATUS_VALID_DATA}
  120. //
  121. // MessageId: PDH_CSTATUS_NEW_DATA
  122. //
  123. // MessageText:
  124. //
  125. // The return data value is valid and different from the last sample.
  126. //
  127. PDH_CSTATUS_NEW_DATA = DWORD($00000001);
  128. {$EXTERNALSYM PDH_CSTATUS_NEW_DATA}
  129. //
  130. // Informational messages
  131. //
  132. // None
  133. //
  134. // Warning Messages
  135. // These messages are returned when the function has completed
  136. // successfully but the results may be different than expected.
  137. //
  138. //
  139. // MessageId: PDH_CSTATUS_NO_MACHINE
  140. //
  141. // MessageText:
  142. //
  143. // Unable to connect to specified machine or machine is off line.
  144. //
  145. PDH_CSTATUS_NO_MACHINE = DWORD($800007D0);
  146. {$EXTERNALSYM PDH_CSTATUS_NO_MACHINE}
  147. //
  148. // MessageId: PDH_CSTATUS_NO_INSTANCE
  149. //
  150. // MessageText:
  151. //
  152. // The specified instance is not present.
  153. //
  154. PDH_CSTATUS_NO_INSTANCE = DWORD($800007D1);
  155. {$EXTERNALSYM PDH_CSTATUS_NO_INSTANCE}
  156. //
  157. // MessageId: PDH_MORE_DATA
  158. //
  159. // MessageText:
  160. //
  161. // There is more data to return than would fit in the supplied buffer. Allocate
  162. // a larger buffer and call the function again.
  163. //
  164. PDH_MORE_DATA = DWORD($800007D2);
  165. {$EXTERNALSYM PDH_MORE_DATA}
  166. //
  167. // MessageId: PDH_CSTATUS_ITEM_NOT_VALIDATED
  168. //
  169. // MessageText:
  170. //
  171. // The data item has been added to the query, but has not been validated nor
  172. // accessed. No other status information on this data item is available.
  173. //
  174. PDH_CSTATUS_ITEM_NOT_VALIDATED = DWORD($800007D3);
  175. {$EXTERNALSYM PDH_CSTATUS_ITEM_NOT_VALIDATED}
  176. //
  177. // MessageId: PDH_RETRY
  178. //
  179. // MessageText:
  180. //
  181. // The selected operation should be retried.
  182. //
  183. PDH_RETRY = DWORD($800007D4);
  184. {$EXTERNALSYM PDH_RETRY}
  185. //
  186. // MessageId: PDH_NO_DATA
  187. //
  188. // MessageText:
  189. //
  190. // No data to return.
  191. //
  192. PDH_NO_DATA = DWORD($800007D5);
  193. {$EXTERNALSYM PDH_NO_DATA}
  194. //
  195. // MessageId: PDH_CALC_NEGATIVE_DENOMINATOR
  196. //
  197. // MessageText:
  198. //
  199. // A counter with a negative denominator value was detected.
  200. //
  201. PDH_CALC_NEGATIVE_DENOMINATOR = DWORD($800007D6);
  202. {$EXTERNALSYM PDH_CALC_NEGATIVE_DENOMINATOR}
  203. //
  204. // MessageId: PDH_CALC_NEGATIVE_TIMEBASE
  205. //
  206. // MessageText:
  207. //
  208. // A counter with a negative timebase value was detected.
  209. //
  210. PDH_CALC_NEGATIVE_TIMEBASE = DWORD($800007D7);
  211. {$EXTERNALSYM PDH_CALC_NEGATIVE_TIMEBASE}
  212. //
  213. // MessageId: PDH_CALC_NEGATIVE_VALUE
  214. //
  215. // MessageText:
  216. //
  217. // A counter with a negative value was detected.
  218. //
  219. PDH_CALC_NEGATIVE_VALUE = DWORD($800007D8);
  220. {$EXTERNALSYM PDH_CALC_NEGATIVE_VALUE}
  221. //
  222. // MessageId: PDH_DIALOG_CANCELLED
  223. //
  224. // MessageText:
  225. //
  226. // The user cancelled the dialog box.
  227. //
  228. PDH_DIALOG_CANCELLED = DWORD($800007D9);
  229. {$EXTERNALSYM PDH_DIALOG_CANCELLED}
  230. //
  231. // MessageId: PDH_END_OF_LOG_FILE
  232. //
  233. // MessageText:
  234. //
  235. // The end of the log file was reached.
  236. //
  237. PDH_END_OF_LOG_FILE = DWORD($800007DA);
  238. {$EXTERNALSYM PDH_END_OF_LOG_FILE}
  239. //
  240. // MessageId: PDH_ASYNC_QUERY_TIMEOUT
  241. //
  242. // MessageText:
  243. //
  244. // Time out while waiting for asynchronous counter collection thread to end.
  245. //
  246. PDH_ASYNC_QUERY_TIMEOUT = DWORD($800007DB);
  247. {$EXTERNALSYM PDH_ASYNC_QUERY_TIMEOUT}
  248. //
  249. // MessageId: PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE
  250. //
  251. // MessageText:
  252. //
  253. // Cannot change default real-time data source. There are real-time query
  254. // sessions collecting counter data.
  255. //
  256. PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE = DWORD($800007DC);
  257. {$EXTERNALSYM PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE}
  258. //
  259. // Error Messages
  260. // These messages are returned when the function could not complete
  261. // as requested and some corrective action may be required by the
  262. // the caller or the user.
  263. //
  264. //
  265. // MessageId: PDH_CSTATUS_NO_OBJECT
  266. //
  267. // MessageText:
  268. //
  269. // The specified object is not found on the system.
  270. //
  271. PDH_CSTATUS_NO_OBJECT = DWORD($C0000BB8);
  272. {$EXTERNALSYM PDH_CSTATUS_NO_OBJECT}
  273. //
  274. // MessageId: PDH_CSTATUS_NO_COUNTER
  275. //
  276. // MessageText:
  277. //
  278. // The specified counter could not be found.
  279. //
  280. PDH_CSTATUS_NO_COUNTER = DWORD($C0000BB9);
  281. {$EXTERNALSYM PDH_CSTATUS_NO_COUNTER}
  282. //
  283. // MessageId: PDH_CSTATUS_INVALID_DATA
  284. //
  285. // MessageText:
  286. //
  287. // The returned data is not valid.
  288. //
  289. PDH_CSTATUS_INVALID_DATA = DWORD($C0000BBA);
  290. {$EXTERNALSYM PDH_CSTATUS_INVALID_DATA}
  291. //
  292. // MessageId: PDH_MEMORY_ALLOCATION_FAILURE
  293. //
  294. // MessageText:
  295. //
  296. // A PDH function could not allocate enough temporary memory to complete the
  297. // operation. Close some applications or extend the pagefile and retry the
  298. // function.
  299. //
  300. PDH_MEMORY_ALLOCATION_FAILURE = DWORD($C0000BBB);
  301. {$EXTERNALSYM PDH_MEMORY_ALLOCATION_FAILURE}
  302. //
  303. // MessageId: PDH_INVALID_HANDLE
  304. //
  305. // MessageText:
  306. //
  307. // The handle is not a valid PDH object.
  308. //
  309. PDH_INVALID_HANDLE = DWORD($C0000BBC);
  310. {$EXTERNALSYM PDH_INVALID_HANDLE}
  311. //
  312. // MessageId: PDH_INVALID_ARGUMENT
  313. //
  314. // MessageText:
  315. //
  316. // A required argument is missing or incorrect.
  317. //
  318. PDH_INVALID_ARGUMENT = DWORD($C0000BBD);
  319. {$EXTERNALSYM PDH_INVALID_ARGUMENT}
  320. //
  321. // MessageId: PDH_FUNCTION_NOT_FOUND
  322. //
  323. // MessageText:
  324. //
  325. // Unable to find the specified function.
  326. //
  327. PDH_FUNCTION_NOT_FOUND = DWORD($C0000BBE);
  328. {$EXTERNALSYM PDH_FUNCTION_NOT_FOUND}
  329. //
  330. // MessageId: PDH_CSTATUS_NO_COUNTERNAME
  331. //
  332. // MessageText:
  333. //
  334. // No counter was specified.
  335. //
  336. PDH_CSTATUS_NO_COUNTERNAME = DWORD($C0000BBF);
  337. {$EXTERNALSYM PDH_CSTATUS_NO_COUNTERNAME}
  338. //
  339. // MessageId: PDH_CSTATUS_BAD_COUNTERNAME
  340. //
  341. // MessageText:
  342. //
  343. // Unable to parse the counter path. Check the format and syntax of the
  344. // specified path.
  345. //
  346. PDH_CSTATUS_BAD_COUNTERNAME = DWORD($C0000BC0);
  347. {$EXTERNALSYM PDH_CSTATUS_BAD_COUNTERNAME}
  348. //
  349. // MessageId: PDH_INVALID_BUFFER
  350. //
  351. // MessageText:
  352. //
  353. // The buffer passed by the caller is invalid.
  354. //
  355. PDH_INVALID_BUFFER = DWORD($C0000BC1);
  356. {$EXTERNALSYM PDH_INVALID_BUFFER}
  357. //
  358. // MessageId: PDH_INSUFFICIENT_BUFFER
  359. //
  360. // MessageText:
  361. //
  362. // The requested data is larger than the buffer supplied. Unable to return the
  363. // requested data.
  364. //
  365. PDH_INSUFFICIENT_BUFFER = DWORD($C0000BC2);
  366. {$EXTERNALSYM PDH_INSUFFICIENT_BUFFER}
  367. //
  368. // MessageId: PDH_CANNOT_CONNECT_MACHINE
  369. //
  370. // MessageText:
  371. //
  372. // Unable to connect to the requested machine.
  373. //
  374. PDH_CANNOT_CONNECT_MACHINE = DWORD($C0000BC3);
  375. {$EXTERNALSYM PDH_CANNOT_CONNECT_MACHINE}
  376. //
  377. // MessageId: PDH_INVALID_PATH
  378. //
  379. // MessageText:
  380. //
  381. // The specified counter path could not be interpreted.
  382. //
  383. PDH_INVALID_PATH = DWORD($C0000BC4);
  384. {$EXTERNALSYM PDH_INVALID_PATH}
  385. //
  386. // MessageId: PDH_INVALID_INSTANCE
  387. //
  388. // MessageText:
  389. //
  390. // The instance name could not be read from the specified counter path.
  391. //
  392. PDH_INVALID_INSTANCE = DWORD($C0000BC5);
  393. {$EXTERNALSYM PDH_INVALID_INSTANCE}
  394. //
  395. // MessageId: PDH_INVALID_DATA
  396. //
  397. // MessageText:
  398. //
  399. // The data is not valid.
  400. //
  401. PDH_INVALID_DATA = DWORD($C0000BC6);
  402. {$EXTERNALSYM PDH_INVALID_DATA}
  403. //
  404. // MessageId: PDH_NO_DIALOG_DATA
  405. //
  406. // MessageText:
  407. //
  408. // The dialog box data block was missing or invalid.
  409. //
  410. PDH_NO_DIALOG_DATA = DWORD($C0000BC7);
  411. {$EXTERNALSYM PDH_NO_DIALOG_DATA}
  412. //
  413. // MessageId: PDH_CANNOT_READ_NAME_STRINGS
  414. //
  415. // MessageText:
  416. //
  417. // Unable to read the counter and/or explain text from the specified machine.
  418. //
  419. PDH_CANNOT_READ_NAME_STRINGS = DWORD($C0000BC8);
  420. {$EXTERNALSYM PDH_CANNOT_READ_NAME_STRINGS}
  421. //
  422. // MessageId: PDH_LOG_FILE_CREATE_ERROR
  423. //
  424. // MessageText:
  425. //
  426. // Unable to create the specified log file.
  427. //
  428. PDH_LOG_FILE_CREATE_ERROR = DWORD($C0000BC9);
  429. {$EXTERNALSYM PDH_LOG_FILE_CREATE_ERROR}
  430. //
  431. // MessageId: PDH_LOG_FILE_OPEN_ERROR
  432. //
  433. // MessageText:
  434. //
  435. // Unable to open the specified log file.
  436. //
  437. PDH_LOG_FILE_OPEN_ERROR = DWORD($C0000BCA);
  438. {$EXTERNALSYM PDH_LOG_FILE_OPEN_ERROR}
  439. //
  440. // MessageId: PDH_LOG_TYPE_NOT_FOUND
  441. //
  442. // MessageText:
  443. //
  444. // The specified log file type has not been installed on this system.
  445. //
  446. PDH_LOG_TYPE_NOT_FOUND = DWORD($C0000BCB);
  447. {$EXTERNALSYM PDH_LOG_TYPE_NOT_FOUND}
  448. //
  449. // MessageId: PDH_NO_MORE_DATA
  450. //
  451. // MessageText:
  452. //
  453. // No more data is available.
  454. //
  455. PDH_NO_MORE_DATA = DWORD($C0000BCC);
  456. {$EXTERNALSYM PDH_NO_MORE_DATA}
  457. //
  458. // MessageId: PDH_ENTRY_NOT_IN_LOG_FILE
  459. //
  460. // MessageText:
  461. //
  462. // The specified record was not found in the log file.
  463. //
  464. PDH_ENTRY_NOT_IN_LOG_FILE = DWORD($C0000BCD);
  465. {$EXTERNALSYM PDH_ENTRY_NOT_IN_LOG_FILE}
  466. //
  467. // MessageId: PDH_DATA_SOURCE_IS_LOG_FILE
  468. //
  469. // MessageText:
  470. //
  471. // The specified data source is a log file.
  472. //
  473. PDH_DATA_SOURCE_IS_LOG_FILE = DWORD($C0000BCE);
  474. {$EXTERNALSYM PDH_DATA_SOURCE_IS_LOG_FILE}
  475. //
  476. // MessageId: PDH_DATA_SOURCE_IS_REAL_TIME
  477. //
  478. // MessageText:
  479. //
  480. // The specified data source is the current activity.
  481. //
  482. PDH_DATA_SOURCE_IS_REAL_TIME = DWORD($C0000BCF);
  483. {$EXTERNALSYM PDH_DATA_SOURCE_IS_REAL_TIME}
  484. //
  485. // MessageId: PDH_UNABLE_READ_LOG_HEADER
  486. //
  487. // MessageText:
  488. //
  489. // The log file header could not be read.
  490. //
  491. PDH_UNABLE_READ_LOG_HEADER = DWORD($C0000BD0);
  492. {$EXTERNALSYM PDH_UNABLE_READ_LOG_HEADER}
  493. //
  494. // MessageId: PDH_FILE_NOT_FOUND
  495. //
  496. // MessageText:
  497. //
  498. // Unable to find the specified file.
  499. //
  500. PDH_FILE_NOT_FOUND = DWORD($C0000BD1);
  501. {$EXTERNALSYM PDH_FILE_NOT_FOUND}
  502. //
  503. // MessageId: PDH_FILE_ALREADY_EXISTS
  504. //
  505. // MessageText:
  506. //
  507. // There is already a file with the specified file name.
  508. //
  509. PDH_FILE_ALREADY_EXISTS = DWORD($C0000BD2);
  510. {$EXTERNALSYM PDH_FILE_ALREADY_EXISTS}
  511. //
  512. // MessageId: PDH_NOT_IMPLEMENTED
  513. //
  514. // MessageText:
  515. //
  516. // The function referenced has not been implemented.
  517. //
  518. PDH_NOT_IMPLEMENTED = DWORD($C0000BD3);
  519. {$EXTERNALSYM PDH_NOT_IMPLEMENTED}
  520. //
  521. // MessageId: PDH_STRING_NOT_FOUND
  522. //
  523. // MessageText:
  524. //
  525. // Unable to find the specified string in the list of performance name and
  526. // explain text strings.
  527. //
  528. PDH_STRING_NOT_FOUND = DWORD($C0000BD4);
  529. {$EXTERNALSYM PDH_STRING_NOT_FOUND}
  530. //
  531. // MessageId: PDH_UNABLE_MAP_NAME_FILES
  532. //
  533. // MessageText:
  534. //
  535. // Unable to map to the performance counter name data files. The data
  536. // will be read from the registry and stored locally.
  537. //
  538. PDH_UNABLE_MAP_NAME_FILES = DWORD($80000BD5);
  539. {$EXTERNALSYM PDH_UNABLE_MAP_NAME_FILES}
  540. //
  541. // MessageId: PDH_UNKNOWN_LOG_FORMAT
  542. //
  543. // MessageText:
  544. //
  545. // The format of the specified log file is not recognized by the PDH DLL.
  546. //
  547. PDH_UNKNOWN_LOG_FORMAT = DWORD($C0000BD6);
  548. {$EXTERNALSYM PDH_UNKNOWN_LOG_FORMAT}
  549. //
  550. // MessageId: PDH_UNKNOWN_LOGSVC_COMMAND
  551. //
  552. // MessageText:
  553. //
  554. // The specified Log Service command value is not recognized.
  555. //
  556. PDH_UNKNOWN_LOGSVC_COMMAND = DWORD($C0000BD7);
  557. {$EXTERNALSYM PDH_UNKNOWN_LOGSVC_COMMAND}
  558. //
  559. // MessageId: PDH_LOGSVC_QUERY_NOT_FOUND
  560. //
  561. // MessageText:
  562. //
  563. // The specified Query from the Log Service could not be found or could not
  564. // be opened.
  565. //
  566. PDH_LOGSVC_QUERY_NOT_FOUND = DWORD($C0000BD8);
  567. {$EXTERNALSYM PDH_LOGSVC_QUERY_NOT_FOUND}
  568. //
  569. // MessageId: PDH_LOGSVC_NOT_OPENED
  570. //
  571. // MessageText:
  572. //
  573. // The Performance Data Log Service key could not be opened. This may be due
  574. // to insufficient privilege or because the service has not been installed.
  575. //
  576. PDH_LOGSVC_NOT_OPENED = DWORD($C0000BD9);
  577. {$EXTERNALSYM PDH_LOGSVC_NOT_OPENED}
  578. //
  579. // MessageId: PDH_WBEM_ERROR
  580. //
  581. // MessageText:
  582. //
  583. // An error occurred while accessing the WBEM data store.
  584. //
  585. PDH_WBEM_ERROR = DWORD($C0000BDA);
  586. {$EXTERNALSYM PDH_WBEM_ERROR}
  587. //
  588. // MessageId: PDH_ACCESS_DENIED
  589. //
  590. // MessageText:
  591. //
  592. // Unable to access the desired machine or service. Check the permissions and
  593. // authentication of the log service or the interactive user session against
  594. // those on the machine or service being monitored.
  595. //
  596. PDH_ACCESS_DENIED = DWORD($C0000BDB);
  597. {$EXTERNALSYM PDH_ACCESS_DENIED}
  598. //
  599. // MessageId: PDH_LOG_FILE_TOO_SMALL
  600. //
  601. // MessageText:
  602. //
  603. // The maximum log file size specified is too small to log the selected counters.
  604. // No data will be recorded in this log file. Specify a smaller set of counters
  605. // to log or a larger file size and retry this call.
  606. //
  607. PDH_LOG_FILE_TOO_SMALL = DWORD($C0000BDC);
  608. {$EXTERNALSYM PDH_LOG_FILE_TOO_SMALL}
  609. //
  610. // MessageId: PDH_INVALID_DATASOURCE
  611. //
  612. // MessageText:
  613. //
  614. // Cannot connect to ODBC DataSource Name.
  615. //
  616. PDH_INVALID_DATASOURCE = DWORD($C0000BDD);
  617. {$EXTERNALSYM PDH_INVALID_DATASOURCE}
  618. //
  619. // MessageId: PDH_INVALID_SQLDB
  620. //
  621. // MessageText:
  622. //
  623. // SQL Database does not contain a valid set of tables for Perfmon, use PdhCreateSQLTables.
  624. //
  625. PDH_INVALID_SQLDB = DWORD($C0000BDE);
  626. {$EXTERNALSYM PDH_INVALID_SQLDB}
  627. //
  628. // MessageId: PDH_NO_COUNTERS
  629. //
  630. // MessageText:
  631. //
  632. // No counters were found for this Perfmon SQL Log Set.
  633. //
  634. PDH_NO_COUNTERS = DWORD($C0000BDF);
  635. {$EXTERNALSYM PDH_NO_COUNTERS}
  636. //
  637. // MessageId: PDH_SQL_ALLOC_FAILED
  638. //
  639. // MessageText:
  640. //
  641. // Call to SQLAllocStmt failed with %1.
  642. //
  643. PDH_SQL_ALLOC_FAILED = DWORD($C0000BE0);
  644. {$EXTERNALSYM PDH_SQL_ALLOC_FAILED}
  645. //
  646. // MessageId: PDH_SQL_ALLOCCON_FAILED
  647. //
  648. // MessageText:
  649. //
  650. // Call to SQLAllocConnect failed with %1.
  651. //
  652. PDH_SQL_ALLOCCON_FAILED = DWORD($C0000BE1);
  653. {$EXTERNALSYM PDH_SQL_ALLOCCON_FAILED}
  654. //
  655. // MessageId: PDH_SQL_EXEC_DIRECT_FAILED
  656. //
  657. // MessageText:
  658. //
  659. // Call to SQLExecDirect failed with %1.
  660. //
  661. PDH_SQL_EXEC_DIRECT_FAILED = DWORD($C0000BE2);
  662. {$EXTERNALSYM PDH_SQL_EXEC_DIRECT_FAILED}
  663. //
  664. // MessageId: PDH_SQL_FETCH_FAILED
  665. //
  666. // MessageText:
  667. //
  668. // Call to SQLFetch failed with %1.
  669. //
  670. PDH_SQL_FETCH_FAILED = DWORD($C0000BE3);
  671. {$EXTERNALSYM PDH_SQL_FETCH_FAILED}
  672. //
  673. // MessageId: PDH_SQL_ROWCOUNT_FAILED
  674. //
  675. // MessageText:
  676. //
  677. // Call to SQLRowCount failed with %1.
  678. //
  679. PDH_SQL_ROWCOUNT_FAILED = DWORD($C0000BE4);
  680. {$EXTERNALSYM PDH_SQL_ROWCOUNT_FAILED}
  681. //
  682. // MessageId: PDH_SQL_MORE_RESULTS_FAILED
  683. //
  684. // MessageText:
  685. //
  686. // Call to SQLMoreResults failed with %1.
  687. //
  688. PDH_SQL_MORE_RESULTS_FAILED = DWORD($C0000BE5);
  689. {$EXTERNALSYM PDH_SQL_MORE_RESULTS_FAILED}
  690. //
  691. // MessageId: PDH_SQL_CONNECT_FAILED
  692. //
  693. // MessageText:
  694. //
  695. // Call to SQLConnect failed with %1.
  696. //
  697. PDH_SQL_CONNECT_FAILED = DWORD($C0000BE6);
  698. {$EXTERNALSYM PDH_SQL_CONNECT_FAILED}
  699. //
  700. // MessageId: PDH_SQL_BIND_FAILED
  701. //
  702. // MessageText:
  703. //
  704. // Call to SQLBindCol failed with %1.
  705. //
  706. PDH_SQL_BIND_FAILED = DWORD($C0000BE7);
  707. {$EXTERNALSYM PDH_SQL_BIND_FAILED}
  708. //
  709. // MessageId: PDH_CANNOT_CONNECT_WMI_SERVER
  710. //
  711. // MessageText:
  712. //
  713. // Unable to connect to the WMI server on requested machine.
  714. //
  715. PDH_CANNOT_CONNECT_WMI_SERVER = DWORD($C0000BE8);
  716. {$EXTERNALSYM PDH_CANNOT_CONNECT_WMI_SERVER}
  717. //
  718. // MessageId: PDH_PLA_COLLECTION_ALREADY_RUNNING
  719. //
  720. // MessageText:
  721. //
  722. // Collection "%1!s!" is already running.
  723. //
  724. PDH_PLA_COLLECTION_ALREADY_RUNNING = DWORD($C0000BE9);
  725. {$EXTERNALSYM PDH_PLA_COLLECTION_ALREADY_RUNNING}
  726. //
  727. // MessageId: PDH_PLA_ERROR_SCHEDULE_OVERLAP
  728. //
  729. // MessageText:
  730. //
  731. // The specified start time is after the end time.
  732. //
  733. PDH_PLA_ERROR_SCHEDULE_OVERLAP = DWORD($C0000BEA);
  734. {$EXTERNALSYM PDH_PLA_ERROR_SCHEDULE_OVERLAP}
  735. //
  736. // MessageId: PDH_PLA_COLLECTION_NOT_FOUND
  737. //
  738. // MessageText:
  739. //
  740. // Collection "%1!s!" does not exist.
  741. //
  742. PDH_PLA_COLLECTION_NOT_FOUND = DWORD($C0000BEB);
  743. {$EXTERNALSYM PDH_PLA_COLLECTION_NOT_FOUND}
  744. //
  745. // MessageId: PDH_PLA_ERROR_SCHEDULE_ELAPSED
  746. //
  747. // MessageText:
  748. //
  749. // The specified end time has already elapsed.
  750. //
  751. PDH_PLA_ERROR_SCHEDULE_ELAPSED = DWORD($C0000BEC);
  752. {$EXTERNALSYM PDH_PLA_ERROR_SCHEDULE_ELAPSED}
  753. //
  754. // MessageId: PDH_PLA_ERROR_NOSTART
  755. //
  756. // MessageText:
  757. //
  758. // Collection "%1!s!" did not start, check the application event log for any errors.
  759. //
  760. PDH_PLA_ERROR_NOSTART = DWORD($C0000BED);
  761. {$EXTERNALSYM PDH_PLA_ERROR_NOSTART}
  762. //
  763. // MessageId: PDH_PLA_ERROR_ALREADY_EXISTS
  764. //
  765. // MessageText:
  766. //
  767. // Collection "%1!s!" already exists.
  768. //
  769. PDH_PLA_ERROR_ALREADY_EXISTS = DWORD($C0000BEE);
  770. {$EXTERNALSYM PDH_PLA_ERROR_ALREADY_EXISTS}
  771. //
  772. // MessageId: PDH_PLA_ERROR_TYPE_MISMATCH
  773. //
  774. // MessageText:
  775. //
  776. // There is a mismatch in the settings type.
  777. //
  778. PDH_PLA_ERROR_TYPE_MISMATCH = DWORD($C0000BEF);
  779. {$EXTERNALSYM PDH_PLA_ERROR_TYPE_MISMATCH}
  780. //
  781. // MessageId: PDH_PLA_ERROR_FILEPATH
  782. //
  783. // MessageText:
  784. //
  785. // The information specified does not resolve to a valid path name.
  786. //
  787. PDH_PLA_ERROR_FILEPATH = DWORD($C0000BF0);
  788. {$EXTERNALSYM PDH_PLA_ERROR_FILEPATH}
  789. //
  790. // MessageId: PDH_PLA_SERVICE_ERROR
  791. //
  792. // MessageText:
  793. //
  794. // The "Performance Logs & Alerts" service did not respond.
  795. //
  796. PDH_PLA_SERVICE_ERROR = DWORD($C0000BF1);
  797. {$EXTERNALSYM PDH_PLA_SERVICE_ERROR}
  798. //
  799. // MessageId: PDH_PLA_VALIDATION_ERROR
  800. //
  801. // MessageText:
  802. //
  803. // The information passed is not valid.
  804. //
  805. PDH_PLA_VALIDATION_ERROR = DWORD($C0000BF2);
  806. {$EXTERNALSYM PDH_PLA_VALIDATION_ERROR}
  807. //
  808. // MessageId: PDH_PLA_VALIDATION_WARNING
  809. //
  810. // MessageText:
  811. //
  812. // The information passed is not valid.
  813. //
  814. PDH_PLA_VALIDATION_WARNING = DWORD($80000BF3);
  815. {$EXTERNALSYM PDH_PLA_VALIDATION_WARNING}
  816. //
  817. // MessageId: PDH_PLA_ERROR_NAME_TOO_LONG
  818. //
  819. // MessageText:
  820. //
  821. // The name supplied is too long.
  822. //
  823. PDH_PLA_ERROR_NAME_TOO_LONG = DWORD($C0000BF4);
  824. {$EXTERNALSYM PDH_PLA_ERROR_NAME_TOO_LONG}
  825. //
  826. // MessageId: PDH_INVALID_SQL_LOG_FORMAT
  827. //
  828. // MessageText:
  829. //
  830. // SQL log format is incorrect. Correct format is "SQL:<DSN-name>!<LogSet-Name>".
  831. //
  832. PDH_INVALID_SQL_LOG_FORMAT = DWORD($C0000BF5);
  833. {$EXTERNALSYM PDH_INVALID_SQL_LOG_FORMAT}
  834. //
  835. // MessageId: PDH_COUNTER_ALREADY_IN_QUERY
  836. //
  837. // MessageText:
  838. //
  839. // Performance counter in PdhAddCounter() call has already been added
  840. // in the performance query. This counter is ignored.
  841. //
  842. PDH_COUNTER_ALREADY_IN_QUERY = DWORD($C0000BF6);
  843. {$EXTERNALSYM PDH_COUNTER_ALREADY_IN_QUERY}
  844. //
  845. // MessageId: PDH_BINARY_LOG_CORRUPT
  846. //
  847. // MessageText:
  848. //
  849. // Unable to read counter information and data from input binary log files.
  850. //
  851. PDH_BINARY_LOG_CORRUPT = DWORD($C0000BF7);
  852. {$EXTERNALSYM PDH_BINARY_LOG_CORRUPT}
  853. //
  854. // MessageId: PDH_LOG_SAMPLE_TOO_SMALL
  855. //
  856. // MessageText:
  857. //
  858. // At least one of the input binary log files contain fewer than two data samples.
  859. //
  860. PDH_LOG_SAMPLE_TOO_SMALL = DWORD($C0000BF8);
  861. {$EXTERNALSYM PDH_LOG_SAMPLE_TOO_SMALL}
  862. //
  863. // MessageId: PDH_OS_LATER_VERSION
  864. //
  865. // MessageText:
  866. //
  867. // The version of the operating system on the computer named %1 is later than that on the local computer. This operation is not available from the local computer.
  868. //
  869. PDH_OS_LATER_VERSION = DWORD($C0000BF9);
  870. {$EXTERNALSYM PDH_OS_LATER_VERSION}
  871. //
  872. // MessageId: PDH_OS_EARLIER_VERSION
  873. //
  874. // MessageText:
  875. //
  876. // %1 supports %2 or later. Check the operating system version on the computer named %3.
  877. //
  878. PDH_OS_EARLIER_VERSION = DWORD($C0000BFA);
  879. {$EXTERNALSYM PDH_OS_EARLIER_VERSION}
  880. //
  881. // MessageId: PDH_INCORRECT_APPEND_TIME
  882. //
  883. // MessageText:
  884. //
  885. // The output file must contain earlier data than the file to be appended.
  886. //
  887. PDH_INCORRECT_APPEND_TIME = DWORD($C0000BFB);
  888. {$EXTERNALSYM PDH_INCORRECT_APPEND_TIME}
  889. //
  890. // MessageId: PDH_UNMATCHED_APPEND_COUNTER
  891. //
  892. // MessageText:
  893. //
  894. // Both files must have identical counters in order to append.
  895. //
  896. PDH_UNMATCHED_APPEND_COUNTER = DWORD($C0000BFC);
  897. {$EXTERNALSYM PDH_UNMATCHED_APPEND_COUNTER}
  898. //
  899. // MessageId: PDH_SQL_ALTER_DETAIL_FAILED
  900. //
  901. // MessageText:
  902. //
  903. // Cannot alter CounterDetail table layout in SQL database.
  904. //
  905. PDH_SQL_ALTER_DETAIL_FAILED = DWORD($C0000BFD);
  906. {$EXTERNALSYM PDH_SQL_ALTER_DETAIL_FAILED}
  907. //
  908. // MessageId: PDH_QUERY_PERF_DATA_TIMEOUT
  909. //
  910. // MessageText:
  911. //
  912. // System is busy. Timeout when collecting counter data. Please retry later or increase "CollectTime" registry value.
  913. //
  914. PDH_QUERY_PERF_DATA_TIMEOUT = DWORD($C0000BFE);
  915. {$EXTERNALSYM PDH_QUERY_PERF_DATA_TIMEOUT}
  916. implementation
  917. end.