Location of My Pictures

c#, windows, windows-vista, windows-xp

Solution

The following will return a full-path to the location of the users picture folder (Username\My Documents\My Pictures on XP, Username\Pictures on Vista)

Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);

Problem

How do I programatically (Using C#) find out what the path is of my My Pictures folder? Does this work on XP and Vista?

Original source