コード例 #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
ファイル: RShell32.cs プロジェクト: whztt07/MoCross
 public static extern bool SHGetSpecialFolderPath(
     IntPtr hwndOwner,
     StringBuilder lpszPath,
     EShellSpecialFolders nFolder,
     bool fCreate);