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.

183 lines
2.9 KiB

  1. // Config.cpp: implementation for the WMI class Nsp_IPConfigSettings
  2. //
  3. // Copyright (c)1997-2001 Microsoft Corporation
  4. //
  5. //////////////////////////////////////////////////////////////////////
  6. #include "precomp.h"
  7. #include "Config.h"
  8. /*
  9. Routine Description:
  10. Name:
  11. CIPSecConfig::QueryInstance
  12. Functionality:
  13. Given the query, it returns to WMI (using pSink) all the instances that satisfy the query.
  14. Actually, what we give back to WMI may contain extra instances. WMI will do the final filtering.
  15. Virtual:
  16. Yes (part of IIPSecObjectImpl)
  17. Arguments:
  18. None.
  19. Return Value:
  20. Success:
  21. Failure:
  22. Notes:
  23. */
  24. STDMETHODIMP
  25. CIPSecConfig::QueryInstance (
  26. IN LPCWSTR pszQuery,
  27. IN IWbemContext * pCtx,
  28. IN IWbemObjectSink * pSink
  29. )
  30. {
  31. return WBEM_E_NOT_SUPPORTED;
  32. }
  33. /*
  34. Routine Description:
  35. Name:
  36. CIPSecConfig::DeleteInstance
  37. Functionality:
  38. Will delete the wbem object.
  39. Virtual:
  40. Yes (part of IIPSecObjectImpl)
  41. Arguments:
  42. pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
  43. pSink - COM interface pointer to notify WMI of any created objects.
  44. Return Value:
  45. WBEM_E_NOT_SUPPORTED
  46. Notes:
  47. */
  48. STDMETHODIMP
  49. CIPSecConfig::DeleteInstance (
  50. IN IWbemContext * pCtx,
  51. IN IWbemObjectSink * pSink
  52. )
  53. {
  54. return WBEM_E_NOT_SUPPORTED;
  55. }
  56. /*
  57. Routine Description:
  58. Name:
  59. CIPSecConfig::PutInstance
  60. Functionality:
  61. Put a configuration object whose properties are represented by the
  62. wbem object.
  63. Virtual:
  64. Yes (part of IIPSecObjectImpl)
  65. Arguments:
  66. pInst - The wbem object.
  67. pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
  68. pSink - COM interface pointer to notify WMI of results.
  69. Return Value:
  70. Success:
  71. WBEM_NO_ERROR
  72. Failure:
  73. Various error codes specifying the error.
  74. Notes:
  75. This object is not fully defined at this point. No implementation yet.
  76. */
  77. STDMETHODIMP
  78. CIPSecConfig::PutInstance (
  79. IN IWbemClassObject * pInst,
  80. IN IWbemContext * pCtx,
  81. IN IWbemObjectSink * pSink
  82. )
  83. {
  84. return WBEM_E_NOT_SUPPORTED;
  85. }
  86. /*
  87. Routine Description:
  88. Name:
  89. CIPSecConfig::GetInstance
  90. Functionality:
  91. Create a wbem object by the given key properties (already captured by our key chain object)..
  92. Virtual:
  93. Yes (part of IIPSecObjectImpl)
  94. Arguments:
  95. pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
  96. pSink - COM interface pointer to notify WMI of any created objects.
  97. Return Value:
  98. WBEM_E_NOT_SUPPORTED
  99. Notes:
  100. */
  101. STDMETHODIMP
  102. CIPSecConfig::GetInstance (
  103. IN IWbemContext * pCtx,
  104. IN IWbemObjectSink * pSink
  105. )
  106. {
  107. return WBEM_E_NOT_SUPPORTED;
  108. }