Class IconHelper
public class IconHelper
- Inheritance
-
IconHelper
- Inherited Members
- Extension Methods
Fields
Instance
public static IconHelper Instance
Field Value
Methods
GetSystemInfoIcon(string)
public Icon GetSystemInfoIcon(string path)
Parameters
path
string
Returns
SHGetFileInfo(string, uint, ref SHFILEINFO, uint, uint)
返回系统设置的图标
public static extern nint SHGetFileInfo(string pszPath, uint dwFileAttributes, ref IconHelper.SHFILEINFO psfi, uint cbSizeFileInfo, uint uFlags)
Parameters
pszPath
string文件路径 如果为"" 返回文件夹的
dwFileAttributes
uint0
psfi
IconHelper.SHFILEINFO结构体
cbSizeFileInfo
uint结构体大小
uFlags
uint枚举类型
Returns
- nint
-1失败