Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Stopping certain processes

Hello, I have a question on a certain project I am making.
Is it possible when a program is launched that it will stop certain processes like taskmgr.exe?

Like if something is launched it will immediatly kill a process with administrative privileges?
Sure. Put your (obsolete) evasive measures in the Form_Load event.
Thank you so much for the fast response.
(Nov 14, 2015 11:34 AM)Odus Wrote:  Sure. Put your (obsolete) evasive measures in the Form_Load event.

it makes it even funnier because he thanked you.
https://msdn.microsoft.com/en-us/library...2147217396
(Nov 14, 2015 11:55 AM)nathan72389 Wrote:  it makes it even funnier because he thanked you.

The sarcasm?

(Nov 14, 2015 12:36 PM)He B TeMy Wrote:  -snip-

Thanks for a serious actual response
Thanks OP, this will help me out alot.
If you go for Win32, open a handle to the process with OpenProcess then call TerminateProcess. Note that TerminateProcess requires the handle to have PROCESS_TERMINATE access right.
(Nov 14, 2015 03:42 PM)excr4sh Wrote:  If you go for Win32, open a handle to the process with OpenProcess then call TerminateProcess. Note that TerminateProcess requires the handle to have PROCESS_TERMINATE access right.

Yea, and what do you use to get the PID? If you're telling someone to make calls to native api's using .net while there's built-in classes for it, at least specify the required API's.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ByteDoktorFeb 26, 2025 01:24 PM 0 146 Feb 26, 2025 01:24 PM
Last Post: ByteDoktor
[.NET] by VUEDUEMay 27, 2021 05:14 AM 5 211 May 27, 2021 05:14 AM
Last Post: Shadow_Cloud
[C] by georgeziozasJan 19, 2021 12:14 AM 2 180 Jan 19, 2021 12:14 AM
Last Post: Juice