int = GetBinaryType(appName)
Determines whether a file is executable, and if so, what type of executable file it is. That last property determines which subsystem an executable file runs under.