You can look at the call to CredUIPromptForWindowsCredentials :
From MSDN :
The CredUIPromptForWindowsCredentials function creates and displays a custom dialog box that allows users to provide credentials using any credential provider installed on the local computer.
But thereโs more to this than just displaying a dialog and receiving / receiving an action - you will most likely need to register an authentication provider in the system, among other things that I donโt quite understand, explaining any detail! You can give you a decent launch pad, though.
UPDATE:
Oded compensated for my laziness and provided a pinvoke.net link displaying definitions for this in a managed environment:
CredUIPromptForWindowsCredentials PInvoke.NET Link
Grant thomas
source share