title: How can a C/C++ process know if it runs in background?
body: <p>I have a method in my process that should be run only if the process is not in background.
  How can I dynamically test if the current process is in background ?
  Thanks</p>