2

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 need 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.

Pedro d'Aquino
  • 5,130
  • 6
  • 36
  • 46

1 Answers1

2

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.

Emerick Rogul
  • 6,706
  • 3
  • 32
  • 39
Bukes
  • 3,668
  • 1
  • 18
  • 20