Ok, code exists, but as of writing, it is cobbled together from several sources:
MS Sample Code
Sample code is probably re-distributable, although it is hard to say what license governs: Here is one MS EULA that mentions sample code: http://msdn.microsoft.com/vstudio/eula.aspx?id=c8bf88e7-841c-43fd-c63d-379943617f36
Role & Membership- open source http://www.eggheadcafe.com/aboutus.aspx
http://sqlitenet.googlepages.com/home — no explicit license
No explicit license, uses parts of above
Obviously it would be nice if I could clean up this code and release it under a proper license with better license tracing.