Beispiel #1
0
        /// 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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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));
        }