In internet explorer i can set the proxy server. Then, when accessing the internet IE will prompt me for proxy credentials and optionally save them. New instances of IE pick up the credentials.

I can also see the credentials are saved in the Credentials Manager, as a Generic Credential. The name follows a naming convention like Microsoft\_WinInet\_[proxyserver:port]/[proxyserver.acme.com].

My app uses WinINet. We are currently setting the credentials via InternetSetOption with INTERNET\_OPTION\_PROXY\_USERNAME and INTERNET\_OPTION\_PROXY\_PASSWORD. 

But instead I want to tell WinINet to use IE's (or the Credentials Manager) credentials for the current user.