1
0

MyProgress.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef NULLSOFT_MYPROGRESSH
  2. #define NULLSOFT_MYPROGRESSH
  3. #include "P4SDevice.h"
  4. class MyProgress : public IWMDMProgress3
  5. {
  6. public:
  7. MyProgress(TransferItem * t);
  8. virtual ~MyProgress();
  9. /* IUnknown methods */
  10. virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid,void __RPC_FAR *__RPC_FAR *ppvObject);
  11. virtual ULONG STDMETHODCALLTYPE AddRef();
  12. virtual ULONG STDMETHODCALLTYPE Release();
  13. /* IWMDMProgress methods */
  14. virtual HRESULT STDMETHODCALLTYPE Begin(DWORD dwEstimatedTicks);
  15. virtual HRESULT STDMETHODCALLTYPE Progress(DWORD dwTranspiredTicks);
  16. virtual HRESULT STDMETHODCALLTYPE End();
  17. /* IWMDMProgress2 methods */
  18. virtual HRESULT STDMETHODCALLTYPE End2(HRESULT hrCompletionCode);
  19. /* IWMDMProgress3 methods */
  20. virtual HRESULT STDMETHODCALLTYPE Begin3(GUID EventId,DWORD dwEstimatedTicks,OPAQUECOMMAND* pContext);
  21. virtual HRESULT STDMETHODCALLTYPE Progress3(GUID EventId,DWORD dwTranspiredTicks,OPAQUECOMMAND* pContext);
  22. virtual HRESULT STDMETHODCALLTYPE End3(GUID EventId,HRESULT hrCompletionCode,OPAQUECOMMAND* pContext);
  23. public:
  24. TransferItem *t;
  25. ULONG refcount;
  26. DWORD estTicks;
  27. };
  28. #endif