#ifndef CIconTask_h #define CIconTask_h #include typedef void (*PFNICONTASKBALLBACK)(LPVOID pvData, UINT uId, UINT iIconIndex); class CIconTask : public CRunnableTask { public: // IRunnableTask methods (override) virtual STDMETHODIMP RunInitRT(void); CIconTask(LPITEMIDLIST pidl, PFNICONTASKBALLBACK pfn, LPVOID pvData, UINT uId); private: virtual ~CIconTask(); LPITEMIDLIST _pidl; PFNICONTASKBALLBACK _pfn; LPVOID _pvData; UINT _uId; }; // NOTE: If you pass NULL for psf and pidlFolder, you must pass a full pidl which // the API takes ownership of. (This is an optimization) lamadio - 7.28.98 HRESULT AddIconTask(IShellTaskScheduler* pts, IShellFolder* psf, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidl, PFNICONTASKBALLBACK pfn, LPVOID pvData, UINT uId, int* piTempIcon); #endif