How to get applications from taskmanager's tabs? [duplicate] - c#

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Retrieve a complete processes list using C#
How can I get a list of applications from the applications in Task Manager in C#?
Also, I'll want see hidden applications. Because, some applications do not appear in processes tab e.g Knignt Online.
What should I do?

Have a look at:
System.Diagnostics.Process.GetProcesses()

Related

C# - is it possible to modify values and call functions while the process is running? [duplicate]

This question already has answers here:
How can I write on another process memory?
(4 answers)
How to remote invoke another process method from C# application
(2 answers)
Closed 3 years ago.
I've been starting to do some decompiling of my C# programs and got some interesting results by editing the dlls, but is it possible to change values and call functions in a running process given that I know what the names of the variables or functions are?
Doesn't any cheat to any game do exactly that?
I mean, if I understand you correctly, there is software called
Cheat Engine which allows you to modify process variables values, inject dll's and much more.

C# launch power options [duplicate]

This question already has answers here:
How can run functions of powercfg by C# code?
(3 answers)
Closed 9 years ago.
From my C# program I want to open the power options from the control panel in Windows.
However I can't seem to find out how to do that, I tried making a shortcut and see where it goes but it is referring to the control panel.
Does anyone have an idea how to do that or where the exe is located to launch?
Try the following:
System.Diagnostics.Process.Start("powercfg.cpl");

C# class similar to Java Desktop class [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Open file with associated application
I want to open a file in it respective application, e.g. open function of windows.
Same thing can be done in java with the help of Desktop class where you pass the file name and the respective file is opened.
But no idea how to do in C#.
System.Diagnostics.Process.Start("filename.doc");

Running execute file in c# [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to shell execute a file in C#?
How can i run an execute file in c# (by command line)?
and in addition, I want to save the output and see it on the screen?
See the System.Diagnostics.Process class. See MSDN.
You use the StadardOutput (and optionally StandardError) to get the output and put it at the screen any way you want.

How to view which files is Writing a Process [duplicate]

This question already has answers here:
How do I get the list of open file handles by process in C#?
(7 answers)
Closed 7 years ago.
Is there a way to get List of Files or FileName which a Process is writing (if possible writing/reading/appending) ,from C# ,which means im talking about Windows (NT,Vista,XP,7).
see here: How do I get the list of open file handles by process in C#?

Categories