in reply to GetProcessID problems

When you are talking about PIDs, are you talking about $$ or about the stuff that GetProcessID returns?

Under Win32, $$ and GetProcessID are/can be different.

Show us some minimal code reproducing the problem: