title: How to fetch Parent Process Id on Windows
body: <p>Is there an API in the C++ (or STL) to fetch the parent process id? if not then what could be the portable code to do so?
  I understand there linux api such as getppid can do the job on unix platforms but what is equivalent of the same on windows?</p>
  
  <p>Thanks!</p>