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.

43 lines
881 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. NOTSINK.H
  5. Abstract:
  6. History:
  7. --*/
  8. #include <wbemidl.h>
  9. //#include <arena.h>
  10. //#include <flexarry.h>
  11. #include "wbemtest.h"
  12. #pragma warning(disable:4355)
  13. class CNotSink : public IWbemObjectSink
  14. {
  15. long m_lRefCount;
  16. CQueryResultDlg* m_pViewer;
  17. CRITICAL_SECTION m_cs;
  18. public:
  19. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj);
  20. STDMETHOD_(ULONG, AddRef)(THIS);
  21. STDMETHOD_(ULONG, Release)(THIS);
  22. STDMETHOD(Indicate)(long lObjectCount, IWbemClassObject** pObjArray);
  23. STDMETHOD(SetStatus)(long lFlags, long lParam, BSTR strParam,
  24. IWbemClassObject* pObjPAram);
  25. // Private to implementation.
  26. // ==========================
  27. CNotSink(CQueryResultDlg* pViewer);
  28. ~CNotSink();
  29. void ResetViewer() { m_pViewer = NULL;}
  30. };