C # application running in the background and noting other open applications and their paths

advertisements

I want to make an application that stays in the background and notes down which applications are opened in the foreground and also notes their path. Can anyone tell me if its possible and how to do it


It is possible. You can use WMI and Win32_ProcessStartTrace to track when a new process has started and use the information to find its path.