migrate Pilz.Win32 & optimize Pilz & Pilz.IO
This commit is contained in:
22
Pilz.Win32/Mapped/NativeFileInfo.cs
Normal file
22
Pilz.Win32/Mapped/NativeFileInfo.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user