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.

61 lines
990 B

  1. /*++
  2. Copyright (c) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. WbemObjectSink.h
  5. Abstract:
  6. Definition of:
  7. CWbemObjectSink
  8. Wraps IWbemObjectSink. Batches the Indicate call.
  9. Author:
  10. ???
  11. Revision History:
  12. Mohit Srivastava 10-Nov-2000
  13. --*/
  14. #ifndef __wbemobjectsink_h__
  15. #define __wbemobjectsink_h__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include <windows.h>
  20. #include <wbemprov.h>
  21. typedef LPVOID * PPVOID;
  22. class CWbemObjectSink
  23. {
  24. protected:
  25. IWbemObjectSink* m_pSink;
  26. IWbemClassObject** m_ppInst;
  27. DWORD m_dwThreshHold; // Number of "Indicates" to cache
  28. DWORD m_dwIndex;
  29. public:
  30. CWbemObjectSink(
  31. IWbemObjectSink*,
  32. DWORD = 1);
  33. virtual ~CWbemObjectSink();
  34. void Indicate(IWbemClassObject*);
  35. void SetStatus(
  36. LONG,
  37. HRESULT,
  38. const BSTR,
  39. IWbemClassObject*);
  40. };
  41. #endif