Process.State (gb)

Property Read State As Integer

Returns the current state of the process object: Stopped, Running or Crashed.