title: Set system proxy && authentication in C++ on Windows
body: <p>Is there a way in C++ to set the Windows system proxy <strong>with authentication credentials</strong> so it would affect all running programs(browsers, etc...) immediatly but:</p>
  
  <ol>
  <li>Not requiring restarting any browser</li>
  <li><strong>Not requiring browser-reauthentication</strong></li>
  </ol>
  
  <p>I am looking really for a system level pre-authenticated proxy.</p>
  
  <p>Thank you for any help. Ask any questions if something is unclear.</p>
  
  <p><em>Using: c++11, Windows 7</em></p>
  
  <p><strong>EDIT 1:</strong> I need to set this programmatically, so please do not suggest any manual actions.
  <br><strong>EDIT 2:</strong> Partially acceptable is a way how to set proxy programmatically without pre-authentication but still keeping 1. requirement (Not requiring restarting any browser)</p>