如何在系统范围内获得有关新流程的通知? [英] How to get a notification about a new process' coming into being in system range?

查看:67
本文介绍了如何在系统范围内获得有关新流程的通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要获取通知,我尝试使用计时器定期刷新进程列表.但这肯定是一个错误的设计.能否使用C#给我一个好的解决方案?谢谢.

To get the notifycation,I attempted to use a timer to refresh the process list periodically.But it must be a bad design.Can you give me a good solution using C# ? Thanks.

推荐答案

我通过简单的Google搜索系统事件新进程开始"找到了它:

http://stackoverflow.com/questions/848618/net-events-for-process-可执行文件开始 [ ^ ]

读者注意:我知道,它是StackOverflow的链接,但是回答问题比担心站点间的贪婪更为重要.
I found this with a simple google search for "system event new process start":

http://stackoverflow.com/questions/848618/net-events-for-process-executable-start[^]

NOTE TO READERS: I know, it''s a link to StackOverflow, but answering the question is more important than worrying about inter-site snobbery.


您好,

看看这篇文章:

在C#WPF中监视过程统计信息 [
Hello,

Have a look at this article:

Monitoring Process Statistics in C# WPF[^]

It does it in a thread using an endless loop.

do
{
    // process monitoring code.
}while (true); //infinite loop



瓦莱里.



Valery.


这篇关于如何在系统范围内获得有关新流程的通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆