title: How to detect Console or Windows Application?
body: <p>I am trying to write a icon changing program like resource hacker. I am able to change icons of windows programs but not console programs and I think thats quite obvious. So I want to write a code in my program that will check if the argument exe file is a console program or windows program before it tries to change the icons.</p>
  
  <p>So how do I check if an exe file is a console program or windows program. I am writing program in C using visual studio.</p>