how to get the parent of a Process

Well, today's challange is to find a way to obtain a process' parent...if it has one.  We have a situation where a test executable may or may not be launched by a test harness.  If it is, I'm told that the test harness should show up as the test executables parent.  So I figured that would be a good way to determine if the test executable was launched by a harness or not.

So far, all my MSN searches have yielded little in the way of a solution.  I'm fairly sure I'll have to marshall some kind of Win32 api or something, which is fine...but I don't know which one I'll need.  :)

Can anyone point me in the right direction?