[DllImport("shell32.dll", SetLastError = true, CharSet = CharSet.Ansi)] public static extern IntPtr ExtractAssociatedIconA(IntPtr hInst, StringBuilder lpIconPath, out ushort lpiIcon );
Microsoft documentation: Link
Last updated 1 year ago