监视应用程序并通过电子邮件发送通知 [英] monitor application and send notify via email

查看:108
本文介绍了监视应用程序并通过电子邮件发送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

需要您对我的问题的建议.我需要开发一个正在监视另一个应用程序(B)的应用程序(A).例如:A应用程序将检测B应用程序在处理过程中是否提示错误,并且A应用程序将通过电子邮件发送有关该错误的通知.

如果监视文件更改的状态,我可以使用"filesystemwatcher".但是如果监视其他应用程序,我不知道我需要使用哪个命令.
感谢您的意见或建议.
谢谢.

Hi all,

Need your advice about my issue. I need to develop one application(A) which is monitor another application(B). eg: The A application will detect if the B application prompt error during process and The A application will send notify via email about the error.

If monitor the status of file changes, I can use "filesystemwatcher". But if monitor the other application, I don''t know which command that I need to use.
Appreciate your advice or suggestion.
Thanks.

推荐答案

听说过还是进程隔离?的确是孤立的.答案取决于您要监视的活动.由于进程之间的隔离,您只能监视具有进程间通信特征的所有内容.特别是,您可以正确地使用FileSystemWatcher监视文件系统活动.您还可以使用WMI监视系统范围内其他进程的创建和终止.您可以在系统范围内挂接所有Windows消息.对于错误情况,异常处理没有什么可以检测到的特殊问题.这纯粹是内部流程活动.

—SA
Ever heard or isolation of processes? The are indeed isolated. The answer depends on what activity you want to monitor. Due to isolation of processes, you can only monitor everything which has a character of inter-process communication. In particular, you can monitor file system activity using FileSystemWatcher, as you correctly put it. You can also monitor creation and termination of other processes system-wide using WMI. You can hook all Windows messages system wide. As to error conditions— exception handling has nothing special which can be detected. This is a purely internal process activity.

—SA


这篇关于监视应用程序并通过电子邮件发送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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