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.

71 lines
1.8 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1999
  6. //
  7. // File: perfmon.h
  8. //
  9. // Contents: Schannel performance counter functions.
  10. //
  11. // Functions:
  12. //
  13. // History: 04-11-2000 jbanes Created
  14. //
  15. //------------------------------------------------------------------------
  16. #include <winperf.h>
  17. #include <sslperf.h>
  18. //
  19. // Perf Gen Resource object type counter definitions.
  20. //
  21. // This is the counter structure presently returned by the generator
  22. //
  23. typedef struct _SSLPERF_DATA_DEFINITION
  24. {
  25. PERF_OBJECT_TYPE SslPerfObjectType;
  26. PERF_COUNTER_DEFINITION CacheEntriesDef;
  27. PERF_COUNTER_DEFINITION ActiveEntriesDef;
  28. PERF_COUNTER_DEFINITION HandshakeCountDef;
  29. PERF_COUNTER_DEFINITION ReconnectCountDef;
  30. } SSLPERF_DATA_DEFINITION;
  31. //
  32. // This is the block of data that corresponds to each instance of the
  33. // object. This structure will immediately follow the instance definition
  34. // data structure
  35. //
  36. typedef struct _SSLPERF_COUNTER {
  37. PERF_COUNTER_BLOCK CounterBlock;
  38. DWORD dwCacheEntries;
  39. DWORD dwActiveEntries;
  40. DWORD dwHandshakeCount;
  41. DWORD dwReconnectCount;
  42. } SSLPERF_COUNTER, *PSSLPERF_COUNTER;
  43. #define QUERY_GLOBAL 1
  44. #define QUERY_ITEMS 2
  45. #define QUERY_FOREIGN 3
  46. #define QUERY_COSTLY 4
  47. DWORD
  48. GetQueryType (
  49. IN LPWSTR lpValue);
  50. BOOL
  51. MonBuildInstanceDefinition(
  52. PERF_INSTANCE_DEFINITION *pBuffer,
  53. PVOID *pBufferNext,
  54. DWORD ParentObjectTitleIndex,
  55. DWORD ParentObjectInstance,
  56. DWORD UniqueID,
  57. LPWSTR Name);
  58. BOOL
  59. IsNumberInUnicodeList(
  60. IN DWORD dwNumber,
  61. IN LPWSTR lpwszUnicodeList);