I am in need of a way to determine if a process is running as an application or just running in the background of windows NT.

Specifically, I need to know whether or not the process is under the applications tab on windows task manager or the processes tab. I imagine that there is some API call that i don't know about. Thanks in advance,


john