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.

96 lines
1.9 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // dnscache.h
  7. //
  8. // Implementation File:
  9. // dnscache.cpp
  10. //
  11. // Description:
  12. // Definition of the CDnsStatistic class.
  13. //
  14. // Author:
  15. // Henry Wang (Henrywa) March 8, 2000
  16. //
  17. // Notes:
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #pragma once
  21. #include "dnsbase.h"
  22. class CObjPath;
  23. /////////////////////////////////////////////////////////////////////////////
  24. //++
  25. //
  26. // class CDnsStatistic
  27. //
  28. // Description:
  29. //
  30. // Class definition for DNS Server statistics
  31. //
  32. //
  33. // Inheritance:
  34. //
  35. //
  36. //--
  37. /////////////////////////////////////////////////////////////////////////////
  38. class CDnsStatistic : CDnsBase
  39. {
  40. public:
  41. CDnsStatistic();
  42. CDnsStatistic(
  43. const WCHAR*,
  44. CWbemServices*
  45. );
  46. ~CDnsStatistic();
  47. SCODE EnumInstance(
  48. long lFlags,
  49. IWbemContext * pCtx,
  50. IWbemObjectSink * pHandler
  51. );
  52. SCODE GetObject(
  53. CObjPath & ObjectPath,
  54. long lFlags,
  55. IWbemContext * pCtx,
  56. IWbemObjectSink * pHandler
  57. );
  58. SCODE ExecuteMethod(
  59. CObjPath & objPath,
  60. WCHAR * wzMethodName,
  61. long lFlag,
  62. IWbemClassObject * pInArgs,
  63. IWbemObjectSink * pHandler
  64. ) ;
  65. SCODE PutInstance(
  66. IWbemClassObject * pInst ,
  67. long lFlags,
  68. IWbemContext* pCtx ,
  69. IWbemObjectSink * pHandler
  70. );
  71. SCODE DeleteInstance(
  72. CObjPath & ObjectPath,
  73. long lFlags,
  74. IWbemContext * pCtx,
  75. IWbemObjectSink * pResponseHandler
  76. );
  77. static CDnsBase * CreateThis(
  78. const WCHAR * wszName,
  79. CWbemServices * pNamespace,
  80. const char * szType
  81. );
  82. }; // CDnsStatistic