public static extern IntPtr SHGetFileInfo( string pszPath, int dwFileAttributes, ref NativeMethods.SHFILEINFO psfi, int cbFileInfo, NativeMethods.SHGFI uFlags);
public static extern IntPtr SHGetFileInfo( HandleRef pidl, int dwFileAttributes, ref NativeMethods.SHFILEINFO psfi, int cbFileInfo, NativeMethods.SHGFI uFlags);
public NativeMethods.SHFILEINFO FileInto(NativeMethods.SHGFI fileinfo) { NativeMethods.SHFILEINFO shfi = new NativeMethods.SHFILEINFO(); NativeMethods.SHGetFileInfo(this.pidl, 0, ref shfi, Marshal.SizeOf(shfi), fileinfo); return(shfi); }