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.