
Simple function that uses Windows Management Instrurmentation (WMI) to find if Process (task) is running on your system. I used this to detect if pcAnywhere Host (awhost32.exe) was running before I had a Telephone Call Accounting System "Phone Home" using the modem. Then I use the same function to detect that awhost32.exe was stopped before using the modem. After my app was done with the modem and issued the restart of pcAnywhere, used the function to see that awhost32.exe had started. Also included in the sample app is a simple task list.