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.

184 lines
2.9 KiB

  1. // NspTCP.cpp: implementation for the WMI class Nsp_TcpSettings
  2. //
  3. // Copyright (c)1997-2001 Microsoft Corporation
  4. //
  5. //////////////////////////////////////////////////////////////////////
  6. #include "precomp.h"
  7. #include "NspTCP.h"
  8. /*
  9. Routine Description:
  10. Name:
  11. CNspTCP::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. CNspTCP::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. CNspTCP::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. Notes:
  46. */
  47. STDMETHODIMP
  48. CNspTCP::DeleteInstance (
  49. IN IWbemContext * pCtx,
  50. IN IWbemObjectSink * pSink
  51. )
  52. {
  53. return WBEM_E_NOT_SUPPORTED;
  54. }
  55. /*
  56. Routine Description:
  57. Name:
  58. CNspTCP::PutInstance
  59. Functionality:
  60. Put a TCP object whose properties are represented by the
  61. wbem object.
  62. Virtual:
  63. Yes (part of IIPSecObjectImpl)
  64. Arguments:
  65. pInst - The wbem object.
  66. pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
  67. pSink - COM interface pointer to notify WMI of results.
  68. Return Value:
  69. Success:
  70. WBEM_NO_ERROR
  71. Failure:
  72. Various error codes specifying the error.
  73. Notes:
  74. This object is not fully defined at this point. No implementation yet.
  75. */
  76. STDMETHODIMP
  77. CNspTCP::PutInstance (
  78. IN IWbemClassObject * pInst,
  79. IN IWbemContext * pCtx,
  80. IN IWbemObjectSink * pSink
  81. )
  82. {
  83. return WBEM_E_NOT_SUPPORTED;
  84. }
  85. /*
  86. Routine Description:
  87. Name:
  88. CNspTCP::GetInstance
  89. Functionality:
  90. Create a wbem object by the given key properties (already captured by our key chain object)..
  91. Virtual:
  92. Yes (part of IIPSecObjectImpl)
  93. Arguments:
  94. pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
  95. pSink - COM interface pointer to notify WMI of any created objects.
  96. Return Value:
  97. WBEM_E_NOT_SUPPORTED
  98. Notes:
  99. */
  100. STDMETHODIMP
  101. CNspTCP::GetInstance (
  102. IN IWbemContext * pCtx,
  103. IN IWbemObjectSink * pSink
  104. )
  105. {
  106. return WBEM_E_NOT_SUPPORTED;
  107. }