Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATASRVQ.h
  5. Abstract:
  6. Header file for the Windows NT Processor Server Queue counters.
  7. This file contains definitions to construct the dynamic data
  8. which is returned by the Configuration Registry. Data from
  9. various system API calls is placed into the structures shown
  10. here.
  11. Author:
  12. Bob Watson 28-Oct-1996
  13. Revision History:
  14. --*/
  15. #ifndef _DATASRVQ_H_
  16. #define _DATASRVQ_H_
  17. //
  18. // define for Server Queue Statistics
  19. //
  20. typedef struct _SRVQ_DATA_DEFINITION {
  21. PERF_OBJECT_TYPE SrvQueueObjectType;
  22. PERF_COUNTER_DEFINITION cdQueueLength;
  23. PERF_COUNTER_DEFINITION cdActiveThreads;
  24. PERF_COUNTER_DEFINITION cdAvailableThreads;
  25. PERF_COUNTER_DEFINITION cdAvailableWorkItems;
  26. PERF_COUNTER_DEFINITION cdBorrowedWorkItems;
  27. PERF_COUNTER_DEFINITION cdWorkItemShortages;
  28. PERF_COUNTER_DEFINITION cdCurrentClients;
  29. PERF_COUNTER_DEFINITION cdBytesReceived;
  30. PERF_COUNTER_DEFINITION cdBytesSent;
  31. PERF_COUNTER_DEFINITION cdTotalBytesTransfered;
  32. PERF_COUNTER_DEFINITION cdReadOperations;
  33. PERF_COUNTER_DEFINITION cdBytesRead;
  34. PERF_COUNTER_DEFINITION cdWriteOperations;
  35. PERF_COUNTER_DEFINITION cdBytesWritten;
  36. PERF_COUNTER_DEFINITION cdTotalBytes;
  37. PERF_COUNTER_DEFINITION cdTotalOperations;
  38. PERF_COUNTER_DEFINITION cdTotalContextBlocksQueued;
  39. } SRVQ_DATA_DEFINITION, * PSRVQ_DATA_DEFINITION;
  40. typedef struct _SRVQ_COUNTER_DATA{
  41. PERF_COUNTER_BLOCK CounterBlock;
  42. DWORD QueueLength;
  43. DWORD ActiveThreads;
  44. DWORD AvailableThreads;
  45. DWORD AvailableWorkItems;
  46. DWORD BorrowedWorkItems;
  47. DWORD WorkItemShortages;
  48. DWORD CurrentClients;
  49. LONGLONG BytesReceived;
  50. LONGLONG BytesSent;
  51. LONGLONG TotalBytesTransfered;
  52. LONGLONG ReadOperations;
  53. LONGLONG BytesRead;
  54. LONGLONG WriteOperations;
  55. LONGLONG BytesWritten;
  56. LONGLONG TotalBytes;
  57. LONGLONG TotalOperations;
  58. DWORD TotalContextBlocksQueued;
  59. } SRVQ_COUNTER_DATA, * PSRVQ_COUNTER_DATA;
  60. extern SRVQ_DATA_DEFINITION SrvQDataDefinition;
  61. #endif // _DATASRVQ_H_
  62.