Q. How can I reuse in WPF the security features provided by the Windows credentials dialog (WinForms32)?
Brainstorm (not sure if any of these are possible):
Host the WinForms32 dialog inside my own WPF dialog. MSDN has an article that explains how to host a WinForms control (i.e., textbox, etc.) but not a WinForms dialog. Yes, this will be ugly, but we're not worried about looks right now.
Provide a WPF GUI that wraps the WinForms dialog. Upon login, the WPF username textbox and WPF
SecurePassword
textbox are transferred to their WinForms equivalent under the covers. The moving of sensitive data might pose a security risk (but some may argue that the attacker has plenty of other ways to steal your password).Move the WinForms username and password textboxes to the WPF dialog ("re-parent" the existing textboxes).
Any suggestions/comments (including criticism of my ideas) are appreciated!