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.

182 lines
2.9 KiB

  1. // ExceptionPort.cpp: implementation for the WMI class Nsp_ExceptionPorts
  2. //
  3. // Copyright (c)1997-2001 Microsoft Corporation
  4. //
  5. //////////////////////////////////////////////////////////////////////
  6. #include "precomp.h"
  7. #include "ExceptionPort.h"
  8. /*
  9. Routine Description:
  10. Name:
  11. CExceptionPort::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. CExceptionPort::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. CExceptionPort::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. CExceptionPort::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. CExceptionPort::PutInstance
  59. Functionality:
  60. Put an exception port 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. */
  75. STDMETHODIMP
  76. CExceptionPort::PutInstance (
  77. IN IWbemClassObject * pInst,
  78. IN IWbemContext * pCtx,
  79. IN IWbemObjectSink * pSink
  80. )
  81. {
  82. return WBEM_E_NOT_SUPPORTED;
  83. }
  84. /*
  85. Routine Description:
  86. Name:
  87. CExceptionPort::GetInstance
  88. Functionality:
  89. Create a wbem object by the given key properties (already captured by our key chain object)..
  90. Virtual:
  91. Yes (part of IIPSecObjectImpl)
  92. Arguments:
  93. pCtx - COM interface pointer given by WMI and needed for various WMI APIs.
  94. pSink - COM interface pointer to notify WMI of any created objects.
  95. Return Value:
  96. WBEM_E_NOT_SUPPORTED
  97. Notes:
  98. */
  99. STDMETHODIMP
  100. CExceptionPort::GetInstance (
  101. IN IWbemContext * pCtx,
  102. IN IWbemObjectSink * pSink
  103. )
  104. {
  105. return WBEM_E_NOT_SUPPORTED;
  106. }