C++ check if a process exists

Red Squirrel

No Lifer
May 24, 2003
70,561
13,801
126
www.anyf.ca
Using standard C++ what would be the function to check if a windows process exists? I want to write a program that periodically checks if an application is running. I don't want any .net stuff or whatever, since I'm using Dev C++ so want some somewhat standard code to work with. A function that works in Linux AND windows would be a bonus, but for now I only need it for Windows.

Thanks in advance.