views:

56

answers:

1

I'm writing an application intended for distribution around the world. I recently discovered a method of WinHTTP:

http://msdn.microsoft.com/en-us/library/aa384097(VS.85).aspx

This can decode any Netscape-style PAC file (in Javascript) and tell me the correct proxy to use for any URL I might want to use.

That's all great, but I've noticed that some of our company sites use a proxy configuration with a "ins" file ( http://support.microsoft.com/kb/171783 ) - and the WinHTTP service seems not to understand this style of configuration.

So is there an alternative method I can use? Surely there must be a function somewhere which understands all of Microsoft's many and varied configuration standards?

Thanks!

A: 

The INS format is for IE, try WinHttpGetIEProxyConfigForCurrentUser() to get that configuration.

Doubt