开发者

Is there a standard Windows dialog for obtaining the proxy username and password?

开发者 https://www.devze.com 2023-01-19 00:22 出处:网络
I\'m using WinHTTP to write an an app that needs access to the internet, and is potentially behind a proxy. Everything works (almost) out of the box is the user is on a domain, but if he or she isn\'t

I'm using WinHTTP to write an an app that needs access to the internet, and is potentially behind a proxy. Everything works (almost) out of the box is the user is on a domain, but if he or she isn't then I ne开发者_开发百科ed a way to ask for credentials. Is there a standard way of doing that, or should I write my own dialog?

Ideally I'd like something that mimics IE's username/password dialog.

Thanks.


CredUIPromptForCredentials() (or one of its variants) is probably what you're looking for. This provides a consistent look and feel with the version of Windows your software is running on.

0

精彩评论

暂无评论...
验证码 换一张
取 消