jwapdhmsg.pas 25 KB

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