如何知道哪个应用程序正在运行或关闭 [英] How to know which application is run or close

查看:107
本文介绍了如何知道哪个应用程序正在运行或关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何知道用户正在运行或关闭哪个应用程序?在vb.net
当我的应用程序正在运行时,请获取应用程序信息.


我不需要有关流程的信息,
您对注册表有任何窍门,还有更多...
请帮我...

在此先感谢...

How to know about which application is run or close from user? in vb.net
when my application is running then get application Information.


I don''t need information about Process,
You have any trick about registry and any more...
plz help me...

Thanks in Advance...

推荐答案

没有事件表明此应用程序已启动".您仅获得过程信息.所有这些都可以在.NET Framework中获得Process类.

您可以使用WMI和System.Management命名空间来通知流程创建.您可以在此处找到一个很好的示例 [
There is no event that says "This application was launched". You only get Process information. All of which you can get the Process class in the .NET Framework.

You can get notified of process creation using WMI and the System.Management namespace. You can find a good example of this here[^]


这篇关于如何知道哪个应用程序正在运行或关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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