~ubuntu-branches/ubuntu/lucid/fpc/lucid-proposed

« back to all changes in this revision

Viewing changes to fpcsrc/packages/winunits-jedi/src/jwapdhmsg.pas

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-10-09 23:29:00 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081009232900-553f61m37jkp6upv
Tags: 2.2.2-4
[ Torsten Werner ]
* Update ABI version in fpc-depends automatically.
* Remove empty directories from binary package fpc-source.

[ Mazen Neifer ]
* Removed leading path when calling update-alternatives to remove a Linitian
  error.
* Fixed clean target.
* Improved description of packages. (Closes: #498882)

Show diffs side-by-side

added added

removed removed

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