using Pilz.Win32.Native;

namespace Pilz.Win32.Mapped;


public class NativeFileInfo
{

    public Icon Icon { get; private set; }
    public int SystemIconIndex { get; private set; }
    public string Displayname { get; private set; }
    public string Typename { get; private set; }

    public NativeFileInfo(SHFILEINFO info)
    {
        Icon = Icon.FromHandle(info.hIcon);
        SystemIconIndex = (int)info.iIcon;
        Displayname = info.szDisplayName;
        Typename = info.szTypeName;
    }

}