get_all_processes hardcodes state_char = 'R', so every process shows as Running and the running-count is meaningless on Windows. SystemProcessInformation (see the enumeration issue) carries each thread's state and wait reason; derive a per-process state from them — e.g. Running if any thread is Running, otherwise Waiting/Sleeping, and Suspended when all threads are in a suspended wait. Depends on the NtQuerySystemInformation enumeration.
get_all_processeshardcodesstate_char = 'R', so every process shows as Running and the running-count is meaningless on Windows.SystemProcessInformation(see the enumeration issue) carries each thread's state and wait reason; derive a per-process state from them — e.g. Running if any thread is Running, otherwise Waiting/Sleeping, and Suspended when all threads are in a suspended wait. Depends on the NtQuerySystemInformation enumeration.