Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
class Program { [DllImport("shell32.dll")] static extern bool SHGetSpecialFolderPath(IntPtr hwndOwner, [Out] StringBuilder lpszPath, int nFolder, bool fCreate); const int CSIDL_COMMON_STARTMENU = 0x16; // \Windows\Start Menu\Programs static void Main(string[] args) { StringBuilder path = new StringBuilder(260); SHGetSpecialFolderPath(IntPtr.Zero, path, CSIDL_COMMON_STARTMENU, false); string s = path.ToString(); } }
string s = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)