I should not display certain context menu options if one process is not running?.
I am checking if the process is running or not using the process name.
EnumProcesses is the other way to enumerate active processes.
The difference is that you need to allocate the space for PIDs,call EnumProcesses, open each process with PROCESS_QUERY_INFORMATION access flag and then call GetProcessImageFileName on it's handle and do the comparison.