I want to get the associated file type icon in my WPF
app. Currently I can get the 32x32
version using System.Drawing.Icon.ExtractAssociatedIcon(filePath)
. However, I want the biggest available icon. How can I achieve this?
For example I want to get the icon for HTML files like the one below (shown in my Explorer):