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.

31 lines
940 B

  1. #ifndef CIconTask_h
  2. #define CIconTask_h
  3. #include <runtask.h>
  4. typedef void (*PFNICONTASKBALLBACK)(LPVOID pvData, UINT uId, UINT iIconIndex);
  5. class CIconTask : public CRunnableTask
  6. {
  7. public:
  8. // IRunnableTask methods (override)
  9. virtual STDMETHODIMP RunInitRT(void);
  10. CIconTask(LPITEMIDLIST pidl, PFNICONTASKBALLBACK pfn, LPVOID pvData, UINT uId);
  11. private:
  12. virtual ~CIconTask();
  13. LPITEMIDLIST _pidl;
  14. PFNICONTASKBALLBACK _pfn;
  15. LPVOID _pvData;
  16. UINT _uId;
  17. };
  18. // NOTE: If you pass NULL for psf and pidlFolder, you must pass a full pidl which
  19. // the API takes ownership of. (This is an optimization) lamadio - 7.28.98
  20. HRESULT AddIconTask(IShellTaskScheduler* pts, IShellFolder* psf, LPCITEMIDLIST pidlFolder,
  21. LPCITEMIDLIST pidl, PFNICONTASKBALLBACK pfn, LPVOID pvData, UINT uId,
  22. int* piTempIcon);
  23. #endif