How can I get the icon from the executable file only having an instance of it's Process in C#
c#
Solution
Icon ico = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName);
Problem
I can get the executable location from the process, how do I get the icon from file? Maybe use windows api LoadIcon(). I wonder if there is .NET way...