title: Implement Overlay Icon?
body: <p>I read this article in <a href="http://www.codeproject.com/KB/shell/overlayicon.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/shell/overlayicon.aspx</a>.
  I have some questions that I cannot answer. Please help me?</p>
  
  <ol>
  <li>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 
  <code>GetOverlayInfo()</code> first and call <code>IsMemberOf()</code>? Just 2 functions?</li>
  <li>In the <code>GetOverlayInfo()</code>. 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?</li>
  <li><p>In the below function:</p>
  
  <pre><code>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;
  }
  </code></pre></li>
  </ol>
  
  <p>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?</p>
  
  <ol>
  <li><code>pwszIconFile</code></li>
  <li><code>cchMax</code></li>
  <li><code>pIndex</code> </li>
  <li><code>pdwFlags</code> (Could I pass which value when I call it from outside. Ex C# program)</li>
  </ol>