Re: CredUIPromptForCredentialsW
Fabian Schmied <[email protected]> Thu, 8 Nov 2007 09:24:36 +0100
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
> I'm using a C# class that acts as a thin wrapper around the > CredUIPromptForCredentialsW function. > > A good article on this function is written here: > http://msdn2.microsoft.com/en-us/library/aa480470.aspx > > When calling the function with the INCORRECT_PASSWORD flag, the balloon hint > doesn't appear. I found out that this is because this flag was introduced > after XP, and only works on Win 2003 or later. I am developing and deploying > on XP. Interesting, the docs don't seem to mention this. > I wonder how I can use the function differently to indicate that a login > failed. Well, why don't you just specify a caption text or message that indicates that the login failed? You could also adjust the bitmap being shown (although I don't know whether the managed PromptForCredentials wrapper provided with that article already supports this feature of CredUIPromptForCredentials). Fabian