Programmatically adding a folder to a shell library (e.g., the Music library)

This blog post has moved to https://matthewvaneerde.wordpress.com/2012/10/18/programmatically-adding-a-folder-to-a-shell-library-e-g-the-music-library/