title: IWebbrowser2 IE=edge and User agent string
body: <p>I'm developping a winapi c++ program that uses IWebBrowser2 embedded control.</p>
  
  <p>I'm running Windows 7 + IExplore 11 so when I open IE11 and call to my server I get this User Agent string:</p>
  
  <pre><code>Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
  </code></pre>
  
  <p>When making requests from IWebBrowser2 I get this UA String:</p>
  
  <pre><code>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0; InfoPath.3; .NET4.0E)
  </code></pre>
  
  <p>I've managed to append this meta tag to every html page loaded in IWebBrowser2 (<strong>EDIT</strong> trying to avoid doing Browser Feature Controls -see comments-):</p>
  
  <pre><code>&lt;meta http-equiv="X-UA-Compatible" content="IE=edge"/&gt;
  </code></pre>
  
  <p><br>
  <strong>First question</strong>: by doing this, do I enable features for the latest installed IExplore version?</p>
  
  <p><strong>Second question</strong>: I've seen in <a href="https://stackoverflow.com/questions/937573/changing-the-user-agent-of-the-webbrowser-control">Changing the user agent of the WebBrowser control</a> how to change the UA string in IWebBrowser2.</p>
  
  <p>Is there any way to get the latest IE version UA string in a safe user permission? (so even for most permission restricted user accounts I could achieve).
  I've tried with <a href="http://msdn.microsoft.com/en-us/library/ms775114%28v=vs.85%29.aspx" rel="nofollow noreferrer">ObtainUserAgentString()</a> with no luck, always getting <code>"Mozilla/4.0 ... MSIE 7.0 ..."</code></p>