On Wed, Apr 28, 2010 at 5:38 PM, Heiko Hund <hh...@astaro.com> wrote: > On Wednesday 28 April 2010 16:24:31 Alon Bar-Lev wrote: >> The IE API is user specific. >> As OpenVPN runs as a service using own user or system account, IE API >> is not suitable. > > Sadly I haven't found the WinHttpGetProxyForUrl API in MinGW W32API. So, use > of this might rather be a long-term goal as it takes a while to get it > included.
No problem to add simple prototypes and perform GetProcAddress(). > If the service is started by the GUI it still makes sense to use user specific > proxy settings, doesn't it? One could consider auto-proxy for auto-started > VPNs a misconfiguration, as well. Or am I mislead? If this is a service that is started, it cannot access your proxy without more tweaks. If the GUI runs the OpenVPN.exe in the user context (user with administrative permission) it is fine. Alon.