Hi, 1. In NPAddConnection3, do I need to create and display a credentials dialog for the user? Or returning WN_BAD_PASSWORD is enough? 2. If indeed I am the one that has to create the dialog, is there any default credentials dialog that I can use? Thank you very much! Josef
Hi, MSDN suggests that you never return codes like ERROR_LOGON_FAILURE, WN_BAD_PASSWORD or WN_ACCESS_DENIED in NPAddConnection3. Instead, it says that this function should "continue asking the user for valid credentials until the user either supplies them or presses a cancel button." . In order to display a credential dialog, you can use the function CredUIPromptForCredentials defined in Credui.dll . Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr to reach : mounir_idrix_fr (replace the underscores with the at and dot characters respectively) "Josef" wrote: > Hi, > 1. In NPAddConnection3, do I need to create and display a credentials dialog > for the user? Or returning WN_BAD_PASSWORD is enough? > 2. If indeed I am the one that has to create the dialog, is there any > default credentials dialog that I can use? > > Thank you very much! > Josef