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.

51 lines
1.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // TaskPollingCallback.h
  7. //
  8. // Description:
  9. // CTaskPollingCallback implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 10-JUL-2000
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CTaskPollingCallback
  17. class
  18. CTaskPollingCallback:
  19. public ITaskPollingCallback
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. // IDoTask/ITaskPollingCallback
  25. bool m_fStop;
  26. DWORD m_dwServerGITCookie;
  27. private: // Methods
  28. CTaskPollingCallback( );
  29. ~CTaskPollingCallback();
  30. STDMETHOD( Init )( void );
  31. public: // Methods
  32. static HRESULT
  33. S_HrCreateInstance( IUnknown ** ppunkOut );
  34. // IUnknown
  35. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  36. STDMETHOD_( ULONG, AddRef )( void );
  37. STDMETHOD_( ULONG, Release )( void );
  38. // IDoTask/ITaskPollingCallback
  39. STDMETHOD( BeginTask )( void );
  40. STDMETHOD( StopTask )( void );
  41. STDMETHOD( SetServerGITCookie )( DWORD dwGITCookieIn );
  42. }; // class CTaskPollingCallback