2

I am getting an error when using Enterprise.Windows.Win32.Win32.GetLargeIcon. Which dll do I need to import to resolve it?

public Icon ObjectIcon
{
    get
    {                
        if (_objectIcon == null)
        {
            _objectIcon = Enterprise.Windows.Win32.Win32.GetLargeIcon(_filePathAndName);
        }

        return _objectIcon;
    }
}

This is a piece of code in the solution mentioned here

Thanks in Advance.

Community
  • 1
  • 1
avi
  • 21
  • 1
  • I don't know where that namespace comes from but I expect its functionality is similar to what I described in [Get icon 128*128 File type C#](http://stackoverflow.com/a/28530403/578411) – rene Jun 18 '16 at 12:44

1 Answers1

1

Try this:

_objectIcon = System.Drawing.Icon.ExtractAssociatedIcon(_filePathAndName);
Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
Markus
  • 21
  • 1