Using WMI is very heavy for the program I am developing. The process explorer (procexp.exe) tool is able to get the process status. If you suspend a process (that is suspend all the threads) from another program, process explorer is able to identify it and change it's color to gray.
There is no API available to suspend a process instead API is available to suspend a thread. If you suspend all the threads in a process then the whole process is suspended.
I am looking if there is any API or even assembly code or memory check or register values to identify the thread state.