I'm currently working on a tool which is used to monitor system status in an NT4 environment. One of the functions is to check to see if a certain process is running based on the name of that function.
I'm struggling to find a way of doing this directly from within a C program though - the best I've come up with so far is to call tlist from the resource kit, save its output in a file and then scan the file for the proc name. This seems a pretty crappy way to do things though, so if anyone can help it would be much appreciated.