利用API函数获取“C:/Documents and Settings/All Users/Application Data”地址
PS:安装以及运行客户端需要保存一个配置文件,目前想到的是保存在这个位置,看很多软件也是保存在这个位置的(欢迎提供更好的方案)。调用Shell32.dll 这个函数([DllImport("Shell32.dll")]
public extern static int SHGetSpecialFolderPath(IntPtr hwndOwner,ref string lpszPath, int nFolder, bool fCreate);)为什么不能返回路径地址?
SMILET
相关分类