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.
But the iss
Are you the author of the process in question? If so, a more robust design would be to use IPC to interrogate the process directly. That way, you don't necessarily have to poll and you don't have irritating issues such as what happens if you detect the process, create the context menu and then the process goes down?