获取方法:
function GetPath(FID: Integer): string;
var
pidl: PItemIDList;
path: array[0..MAX_PATH] of Char;
begin
SHGetSpecialFolderLocation(0, FID, pidl);
SHGetPathFromIDList(pidl, path);
Result := path;
end;
console.log( fsys.getSpecialDefault(0xb /*_CSIDL_STARTMENU*/) )
// XP: C:\Document and Settings\Default Users\Start Menu
//WIN7: C:\User\Default\AppData\Roaming\Microsoft\Windows\Start Menu
//包含“开始”菜单项的文件系统目录。
console.log( fsys.getSpecial(0xb /*_CSIDL_STARTMENU*/) )
// XP: C:\Document and Settings\用户名\「开始」菜单
//WIN7: C:\User\用户名\AppData\Roaming\Microsoft\Windows\Start Menu
//包含“开始”菜单项的文件系统目录。
console.log( fsys.getSpecial(0x22/*_CSIDL_HISTORY*/) )
// XP: C:\Document and Settings\用户名\Local Settings\History
//WIN7: C:\Users\用户名\AppData\Local\Microsoft\Windows\History
//作为 Internet 历史记录项的公共储存库的文件系统目录
console.log( fsys.getSpecial(0x20/*_CSIDL_INTERNET_CACHE*/) )
// XP: C:\Document and Settings\用户名\Local Settings\Temporary Internet Files
//WIN7: C:\Users\用户名\AppData\Local\Microsoft\Windows\Temporary Internet Files
//作为临时 Internet 文件的公共储存库的文件系统目录