avi
avi

Reputation: 21

Enterprise Enterprise.windows.win32.win32

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.

Upvotes: 2

Views: 223

Answers (1)

Markus
Markus

Reputation: 31

Try this:

_objectIcon = System.Drawing.Icon.ExtractAssociatedIcon(_filePathAndName);

Upvotes: 1

Related Questions