/// See SHFileInfo.Create(...) static public CsShellFileInfo Get_SHFILE(this string path, SHGFI flags) { var shinfo = new CsShellFileInfo(); WinShell32.SHGetFileInfo(path, 0, ref shinfo, CsShellFileInfo.SIZE, flags); return(shinfo); }
static public int Get_SHICON(this string path, SHGFI flags) { var shinfo = new CsShellFileInfo(); WinShell32.SHGetFileInfo(path, 0, ref shinfo, CsShellFileInfo.SIZE, flags); return(shinfo.IconIndex); }
static public IntPtr Get_Shell_ImageListPointer(this string path, SHGFI flags) { var shinfo = new CsShellFileInfo(); return(WinShell32.SHGetFileInfo(path, 0, ref shinfo, CsShellFileInfo.SIZE, flags)); }