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.

75 lines
1.4 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // dnsserver.h
  7. //
  8. // Implementation File:
  9. // dnsserver.cpp
  10. //
  11. // Description:
  12. // Definition of the CDnsServerclass.
  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. class CDnsServer : public CDnsBase
  24. {
  25. public:
  26. CDnsServer();
  27. CDnsServer(
  28. const WCHAR*,
  29. CWbemServices*
  30. );
  31. ~CDnsServer();
  32. SCODE EnumInstance(
  33. long lFlags,
  34. IWbemContext * pCtx,
  35. IWbemObjectSink * pHandler);
  36. SCODE GetObject(
  37. CObjPath & ObjectPath,
  38. long lFlags,
  39. IWbemContext * pCtx,
  40. IWbemObjectSink * pHandler
  41. );
  42. SCODE ExecuteMethod(
  43. CObjPath & objPath,
  44. WCHAR * wzMethodName,
  45. long lFlag,
  46. IWbemClassObject * pInArgs,
  47. IWbemObjectSink * pHandler
  48. ) ;
  49. SCODE PutInstance(
  50. IWbemClassObject * pInst ,
  51. long lFlags,
  52. IWbemContext* pCtx ,
  53. IWbemObjectSink * pHandler
  54. );
  55. static CDnsBase* CreateThis(
  56. const WCHAR * wszName, //class name
  57. CWbemServices * pNamespace, //namespace
  58. const char * szType //str type id
  59. );
  60. protected:
  61. SCODE StartServer(void);
  62. SCODE StopServer(void);
  63. };