I am currently making a program that will behave differently depending if the Foreground Window is CMD-like or GUI. How would I go about getting this information though?