public static string GetSpecialFolderPath(IntPtr hwnd, EShellSpecialFolders nFolder) { StringBuilder sb = new StringBuilder(RShell32.MAX_PATH); RShell32.SHGetSpecialFolderPath(hwnd, sb, nFolder, false); return(sb.ToString()); }
public static extern bool SHGetSpecialFolderPath( IntPtr hwndOwner, StringBuilder lpszPath, EShellSpecialFolders nFolder, bool fCreate);