hello

I would like to have a function that check if a process is running , something like

bool isRunning( string progName);

how do i go about doing it on both linux and windows?