Extending the CredUI Interface

by admin 19. May 2004 11:01

A couple of months ago I wanted to extend the CredUIPromptForCredentials dialog box to add an "Add new user" link to it. Well, my previous attempt failed but after stumbling across the MSDN Mag articles on extending a messagebox using hooks the solution was trivial. (http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/default.aspx and http://msdn.microsoft.com/msdnmag/issues/02/11/CuttingEdge/default.aspx)

The link is a standard windows forms LinkLabel hosted in a WinForms panel, so basically any WinForms control could be added (though I'm unsure of the implications of hosting WinForms in a non-WinForms window - it seems to be working).

I'll post the code up soon. Leave some comments chasing me up if I forget.

Comments are closed

About Us

RikWare is a software development company based in Brisbane, Australia. Led by director, Richard Mason, RikWare focusses on solving challenging business problems promptly and effectively.

RikWare is also the owner of Aussie Bushwalking, a free, wiki-like collaboration site for bushwalkers and the creator of RikMigrations, a migration framework for .NET.

Aussie Bushwalking

Want to discover some new bushwalking ideas? Share a few of your own? Aussie Bushwalking is like Wikipedia... but for bushwalkers. Head on over. Anybody can see the walks and it's free to sign up and share your own.

 

RikMigrations

RikMigrations is a database migration library for .NET based on the migrations facility provided by Ruby on Rails. It allows simple upgrading and downgrading of databases using .NET code (such as VB or C#) either from the command line or built into your application. Unlike many other migration frameworks, RikMigrations is a stand-alone library which does not rely on a large surrounding framework.