title: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework
body: <p>I have to track the lists of all the visited urls from any browser like Internet Explorer, Mozilla Firefox, Google Chrome, Opera etc. </p>
  
  <p>To get the all opened tabs in the Internet Explorer, I have used the below codes :</p>
  
  <pre><code>SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindows();
  string filename;
  ArrayList windows = new ArrayList();
  foreach (SHDocVw.WebBrowser ie in shellWindows)
  {
      filename = Path.GetFileNameWithoutExtension(ie.FullName).ToLower();
      if (filename.Equals("iexplore"))
      {
          Console.WriteLine("IE Url for '" + ie.LocationName + "' is " + (ie.LocationURL));
      }
  }
  </code></pre>
  
  <p>But my question is that how can I get this same all the opened tabs description from  other browser?</p>
  
  <p>I have found the below code to get the only one tab which is open in the browser.</p>
  
  <p>using DDE to get the current tab.</p>
  
  <pre><code>private string GetBrowserURL(string browser) 
  {
      try {
          DdeClient dde = new DdeClient(browser, "WWW_GetWindowInfo");
          dde.Connect();
          string url = dde.Request("URL", int.MaxValue);
          string[] text = url.Split(new string[] { "\",\"" },  StringSplitOptions.RemoveEmptyEntries);
          dde.Disconnect();
          return text[0].Substring(1);
      } 
      catch {
          return null;
      }
  }
  </code></pre>
  
  <p>I have checked WinPCap, SharpPcap, Pcap but could not get the right solutions to solve the issue.</p>
  
  <p>I need a source code using c# which will be running successfully in .Net 2.0 framework to get the all visited urls lists from all the browser.</p>
  
  <p>Please help me to solve this issue.</p>