VC获取操作系统特殊路径的方法
BOOL SHGetSpecialFolderPath ( HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate); hwndOwner :用GetDesktopWindow API取一个窗口句柄。 lpszPath:返回的路径 nFolder:标识代号 fCreate:true :如果文件夹不存在则创建,false:不创建 lpszPath和nFolder对应关系: nFolder lpszPath 0 C:/Documents and Settings/当前用户/桌
下载地址
用户评论