[DllImport("shell32.dll")]
static extern bool SHGetSpecialFolderPath(IntPtr hwndOwner,
[Out] StringBuilder lpszPath, int nFolder, bool fCreate);
None.
None.
Please add some!
const int CSIDL_PROGRAMS = 2; // \Windows\Start Menu\Programs
StringBuilder path = new StringBuilder(255);
SHGetSpecialFolderPath(IntPtr.Zero, path, CSIDL_PROGRAMS, false);
// path.ToString() should now hold the path
Do you know one? Please contribute it!