title: accessing windows taskbar icons in c++
body: <p>I am looking for a way to programmatically get the current taskbar icons (not the system tray)  for each program that is in the taskbar.</p>
  
  <p>I haven't had much luck with MSDN or Google, because all of the results relate to the system tray.</p>
  
  <p>Any suggestions or pointers would be helpful.</p>
  
  <p>EDIT:
  I tried Keegan Hernandez's idea but I think I might have done something wrong. The code is below (c++).</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include &lt;windows.h&gt;
  #include &lt;sstream&gt;
  using namespace std;
  vector&lt;string&gt; xxx;
  bool EnumWindowsProc(HWND hwnd,int ll)
  {
      if(ll=0)
      {
          //...
          if(IsWindowVisible(hwnd)==true){
          char tyty[129];
          GetWindowText(hwnd,tyty,128);
          stringstream lmlm;
          lmlm&lt;&lt;tyty;
          xxx.push_back(lmlm.str());
          return TRUE;
          }
      }
  }
  int main()
  {
      EnumWindows((WNDENUMPROC)EnumWindowsProc,0);
      vector&lt;string&gt;::iterator it;
      for(it=xxx.begin();it&lt;xxx.end();it++)
      {cout&lt;&lt; *it &lt;&lt;endl;}
      bool empty;
      cin&gt;&gt;empty;
  }
  </code></pre>