detect the win gui process that starts in windows using c#?ManagementEventWatcher

大兔子大兔子 提交于 2019-12-24 17:25:18

问题


how to detect the process that have an interface like chrome , skype , torrent , explorer etc and get this process id , name , title , and parent id so what i did is that i get all the process list running in windows but i want to get the process name when it starts and process must have an interface or GUI look

here is function i want to start watcher when it detects the GUI process it works recursively but i want to handle it event based and only GUI check

public  void callme() {


    WqlEventQuery query =
          new WqlEventQuery("__InstanceCreationEvent",
          new TimeSpan(0, 0, 1),
          "TargetInstance isa \"Win32_Process\"");


}

i have win form and i also want windows title in its options options and parent id

来源:https://stackoverflow.com/questions/37586870/detect-the-win-gui-process-that-starts-in-windows-using-cmanagementeventwatche

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!