21 lines
604 B
C#
21 lines
604 B
C#
using global::System.Drawing;
|
|
using global::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;
|
|
}
|
|
}
|
|
} |