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.

87 lines
1.8 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 CDnscache 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 CDnsCache
  27. //
  28. // Description:
  29. // class defination for dns cache
  30. //
  31. //
  32. // Inheritance:
  33. //
  34. //
  35. //--
  36. /////////////////////////////////////////////////////////////////////////////
  37. class CDnsCache : CDnsBase
  38. {
  39. public:
  40. CDnsCache();
  41. CDnsCache(
  42. const WCHAR*,
  43. CWbemServices*);
  44. ~CDnsCache();
  45. SCODE EnumInstance(
  46. long lFlags,
  47. IWbemContext * pCtx,
  48. IWbemObjectSink * pHandler);
  49. SCODE GetObject(
  50. CObjPath & ObjectPath,
  51. long lFlags,
  52. IWbemContext * pCtx,
  53. IWbemObjectSink * pHandler
  54. );
  55. SCODE ExecuteMethod(
  56. CObjPath & objPath,
  57. WCHAR * wzMethodName,
  58. long lFlag,
  59. IWbemClassObject * pInArgs,
  60. IWbemObjectSink * pHandler
  61. ) ;
  62. SCODE PutInstance(
  63. IWbemClassObject * pInst ,
  64. long lFlags,
  65. IWbemContext* pCtx ,
  66. IWbemObjectSink * pHandler
  67. );
  68. SCODE DeleteInstance(
  69. CObjPath & ObjectPath,
  70. long lFlags,
  71. IWbemContext * pCtx,
  72. IWbemObjectSink * pResponseHandler
  73. );
  74. static CDnsBase* CreateThis(
  75. const WCHAR * wszName, //class name
  76. CWbemServices * pNamespace, //namespace
  77. const char * szType //str type id
  78. );
  79. };