ConstReadonlyACTIVE: 2ReadonlyBACKGROUND: 0A process is in the background and not visible to the user.
ReadonlyFOREGROUND: 1A process is in the foreground, and it is visible to the user, but doesn't have focus (for example, covered by a dialog).
A process is in the foreground and user can interact with it.