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.

50 lines
1.3 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // TaskGatherClusterInfo.h
  7. //
  8. // Description:
  9. // CTaskGatherClusterInfo implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 07-APR-2000
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CTaskGatherClusterInfo
  17. class
  18. CTaskGatherClusterInfo:
  19. public ITaskGatherClusterInfo
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. // IDoTask / ITaskGatherNodeInfo
  25. OBJECTCOOKIE m_cookie; // Cookie to the Node
  26. OBJECTCOOKIE m_cookieCompletion; // Cookie to signal when task is completed
  27. CTaskGatherClusterInfo( void );
  28. ~CTaskGatherClusterInfo( void );
  29. STDMETHOD( Init )( void );
  30. public: // Methods
  31. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  32. // IUnknown
  33. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  34. STDMETHOD_( ULONG, AddRef )( void );
  35. STDMETHOD_( ULONG, Release )( void );
  36. // IDoTask / ITaskGatherNodeInfo
  37. STDMETHOD( BeginTask )( void );
  38. STDMETHOD( StopTask )( void );
  39. STDMETHOD( SetCookie )( OBJECTCOOKIE cookieIn );
  40. STDMETHOD( SetCompletionCookie )( OBJECTCOOKIE cookieIn );
  41. }; // class CTaskGatherClusterInfo