C# Raise an event when a new process starts

前端 未结 4 1729
再見小時候
再見小時候 2020-12-10 04:34

Hey there, Is there a way to raise event when a new process is started without using the ManagementEventWatcher, and without using the Process.GetProcesses()? The problem wi

4条回答
  •  有刺的猬
    2020-12-10 05:07

    It should be possible to figure out when an application was last run by configuring audit process tracking in Windows. The following links might get you started:

    Audit process tracking

    How can I track what programs come and go on my machine?

    The process tracking will create entries in the Windows event log which you can then access using C#.

    Ref: .NET Process Monitor

提交回复
热议问题