我在使用 Enterprise.Windows.Win32.Win32.GetLargeIcon
时遇到错误。我需要导入哪个dll才能解决?
public Icon ObjectIcon
{
get
{
if (_objectIcon == null)
{
_objectIcon = Enterprise.Windows.Win32.Win32.GetLargeIcon(_filePathAndName);
}
return _objectIcon;
}
}
这是here提到的解决方案中的一段代码
提前致谢。
最佳答案
试试这个:
_objectIcon = System.Drawing.Icon.ExtractAssociatedIcon(_filePathAndName);
关于c# - 企业 Enterprise.windows.win32.win32,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37117385/