Leaked source code of windows server 2003
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.

101 lines
3.4 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATASRV.h
  5. Abstract:
  6. Header file for the Windows NT Server Performance 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 _DATASRV_H_
  16. #define _DATASRV_H_
  17. //
  18. // logical disk performance definition structure
  19. //
  20. //
  21. // This is the Srv counter structure presently returned by NT.
  22. //
  23. typedef struct _SRV_DATA_DEFINITION {
  24. PERF_OBJECT_TYPE SrvObjectType;
  25. PERF_COUNTER_DEFINITION cdTotalBytes;
  26. PERF_COUNTER_DEFINITION cdTotalBytesReceived;
  27. PERF_COUNTER_DEFINITION cdTotalBytesSent;
  28. PERF_COUNTER_DEFINITION cdSessionsTimedOut;
  29. PERF_COUNTER_DEFINITION cdSessionsErroredOut;
  30. PERF_COUNTER_DEFINITION cdSessionsLoggedOff;
  31. PERF_COUNTER_DEFINITION cdSessionsForcedLogOff;
  32. PERF_COUNTER_DEFINITION cdLogonErrors;
  33. PERF_COUNTER_DEFINITION cdAccessPermissionErrors;
  34. PERF_COUNTER_DEFINITION cdGrantedAccessErrors;
  35. PERF_COUNTER_DEFINITION cdSystemErrors;
  36. PERF_COUNTER_DEFINITION cdBlockingSmbsRejected;
  37. PERF_COUNTER_DEFINITION cdWorkItemShortages;
  38. PERF_COUNTER_DEFINITION cdTotalFilesOpened;
  39. PERF_COUNTER_DEFINITION cdCurrentOpenFiles;
  40. PERF_COUNTER_DEFINITION cdCurrentSessions;
  41. PERF_COUNTER_DEFINITION cdCurrentOpenSearches;
  42. PERF_COUNTER_DEFINITION cdCurrentNonPagedPoolUsage;
  43. PERF_COUNTER_DEFINITION cdNonPagedPoolFailures;
  44. PERF_COUNTER_DEFINITION cdPeakNonPagedPoolUsage;
  45. PERF_COUNTER_DEFINITION cdCurrentPagedPoolUsage;
  46. PERF_COUNTER_DEFINITION cdPagedPoolFailures;
  47. PERF_COUNTER_DEFINITION cdPeakPagedPoolUsage;
  48. PERF_COUNTER_DEFINITION cdContextBlockQueueRate;
  49. PERF_COUNTER_DEFINITION cdNetLogon;
  50. PERF_COUNTER_DEFINITION cdNetLogonTotal;
  51. } SRV_DATA_DEFINITION, *PSRV_DATA_DEFINITION;
  52. typedef struct _SRV_COUNTER_DATA{
  53. PERF_COUNTER_BLOCK CounterBlock;
  54. LONGLONG TotalBytes;
  55. LONGLONG TotalBytesReceived;
  56. LONGLONG TotalBytesSent;
  57. DWORD SessionsTimedOut;
  58. DWORD SessionsErroredOut;
  59. DWORD SessionsLoggedOff;
  60. DWORD SessionsForcedLogOff;
  61. DWORD LogonErrors;
  62. DWORD AccessPermissionErrors;
  63. DWORD GrantedAccessErrors;
  64. DWORD SystemErrors;
  65. DWORD BlockingSmbsRejected;
  66. DWORD WorkItemShortages;
  67. DWORD TotalFilesOpened;
  68. DWORD CurrentOpenFiles;
  69. DWORD CurrentSessions;
  70. DWORD CurrentOpenSearches;
  71. DWORD CurrentNonPagedPoolUsage;
  72. DWORD NonPagedPoolFailures;
  73. DWORD PeakNonPagedPoolUsage;
  74. DWORD CurrentPagedPoolUsage;
  75. DWORD PagedPoolFailures;
  76. DWORD PeakPagedPoolUsage;
  77. DWORD ContextBlockQueueRate;
  78. DWORD NetLogon;
  79. DWORD NetLogonTotal;
  80. } SRV_COUNTER_DATA, * PSRV_COUNTER_DATA;
  81. extern SRV_DATA_DEFINITION SrvDataDefinition;
  82. #endif // _DATASRV_H_
  83.