示例#1
0
        public static string GetSpecialFolderPath(IntPtr hwnd, EShellSpecialFolders nFolder)
        {
            StringBuilder sb = new StringBuilder(RShell32.MAX_PATH);

            RShell32.SHGetSpecialFolderPath(hwnd, sb, nFolder, false);
            return(sb.ToString());
        }
示例#2
0
 public static extern bool SHGetSpecialFolderPath(
     IntPtr hwndOwner,
     StringBuilder lpszPath,
     EShellSpecialFolders nFolder,
     bool fCreate);