Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Updated 4-Sep-18 7:18am

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900