title: How to get WinInet's proxy settings quickly (without network dependency)
body: <p>How can I quickly retrieve Internet Explorer's proxy settings from C++?</p>
  
  <p>The windows function <code>WinHTTPGetIEProxyConfigForCurrentUser()</code> gives me exactly what I want.</p>
  
  <p>The problem with <code>WinHTTPGetIEProxyConfigForCurrentUser()</code> is it is running unacceptably slowly on some of my user's systems (they are running Windows 7). For these users, the function takes multiple seconds to complete. It seems to have a networking dependency, since if they unplug the network cable the function returns fast (and with the same result).</p>
  
  <p>So how can I get the system proxy settings without this slow network dependency?</p>
  
  <p>Thanks!</p>