Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am building an MFC 6.0 application. How can I close a running process from that application like ending process from task manager? Tell me if there exists a windows API for my purpose.
Posted

1 solution

Start from Process and Thread Functions (Windows)[^]. The specific API that you need is TerminateProcess(); the others could be useful to identify the HANDLE of the process that you want to terminate).
 
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