Exemplo n.º 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());
        }
Exemplo n.º 2
0
 public static extern bool SHGetSpecialFolderPath(
     IntPtr hwndOwner,
     StringBuilder lpszPath,
     EShellSpecialFolders nFolder,
     bool fCreate);