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.

49 lines
1.4 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 CTaskGatherClusterInfo
  18. : public ITaskGatherClusterInfo
  19. {
  20. private:
  21. // IUnknown
  22. LONG m_cRef;
  23. // IDoTask / ITaskGatherNodeInfo
  24. OBJECTCOOKIE m_cookie; // Cookie to the Node
  25. OBJECTCOOKIE m_cookieCompletion; // Cookie to signal when task is completed
  26. BOOL m_fStop;
  27. CTaskGatherClusterInfo( void );
  28. ~CTaskGatherClusterInfo( void );
  29. STDMETHOD( HrInit )( void );
  30. public: // Methods
  31. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  32. // IUnknown
  33. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  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