I read this article in http://www.codeproject.com/KB/shell/overlayicon.aspx. I have some questions that I cannot answer. Please help me?
- When I build the project to COM dll. When I use other program to call this dll. Which method could I will call to display overlay icon on the selected file? I think I will call
GetOverlayInfo()
first and callIsMemberOf()
? Just 2 functions? - In the
GetOverlayInfo()
. Will I pass what value in the first parameter? the path of the overlay icon? or the path of the file which will be setted overlay icon on it? Could u give me an example? In the below function:
STDMETHODIMP CMyOverlayIcon::GetOverlayInfo( LPWSTR pwszIconFile, int cchMax,int* pIndex, DWORD* pdwFlags) { GetModuleFileName(_AtlBaseModule.GetModuleInstance(),pwszIconFile,cchMax); *pIndex =0; *pdwFlags = ISIOI_ICONFILE | ISIOI_ICONINDEX; return S_OK; }
Could u tell me could I pass what value to the function when I call it from outside program. Could u give me an example how to call it and transfer value to it?
pwszIconFile
cchMax
pIndex
pdwFlags
(Could I pass which value when I call it from outside. Ex C# program)