C#中的程序在执行时监视应用程序。 [英] Program in C # monitor an application when it is executed.

查看:165
本文介绍了C#中的程序在执行时监视应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我可以提供方向帮助,我想要做的是通过C#中的程序监控应用程序运行时。



我尝试过的事情:



我的想法是在后台流程领域的任务管理器中这个区域,它显示了应用程序运行的程度,我想使用C#方法监视该应用程序,通过串行通信告诉它正在运行的PIC。

Hello,
I could help with an orientation, what I want to do is through a program in C # monitor an application when it runs.

What I have tried:

The idea that I have is that in Task Manager in the area of Background processes in this area, it shows me how much the application is running, I want to use a C # method to monitor that application, to tell it through a serial communication to a PIC that is in operation.

推荐答案

以下内容可以帮助您开始获取流程信息...



如何获取有关C#进程的信息? - 堆栈溢出 [ ^ ]



您不清楚如何启动和管理您的应用程序。如果您希望应用程序出现在通知区域中,但通常没有表单,则以下内容可能有所帮助:



无模式通知图标应用 [ ^ ]



如果相反,您更喜欢它作为Windows运行服务,请查看以下内容:



演练:在组件设计器中创建Windows服务应用程序Microsoft Docs [ ^ ]



根据您的系统,您可能需要以提升的权限运行以监视不同的进程。
The following can get you started on getting process information...

How to get information about process in C#? - Stack Overflow[^]

You're not clear on how you'll start and manage your application. If you want an application that appears in the notification area, but does not normally have a form, the following might help:

Formless Notify Icon Application[^]

If instead, you prefer it to run as a Windows service, check out the following:

Walkthrough: Creating a Windows Service Application in the Component Designer | Microsoft Docs[^]

Depending on your system, its likely you'll have to run with elevated privileges to monitor a different process.


这篇关于C#中的程序在执行时监视应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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