Question about Computers & Internet
Depends, do you want it to "exit gracefully", or forcibly shut it down immediately?
To exit gracefully, you use the ExitProcess winapi call. To -kill it immediately, use TerminateProcess winapi call.
For both calls you need the process handler which may be obtained by walking the existing processes on the system
here's an example of just using exitprocess / terminateprocess
here's a more in depth example that actually walks the process list so you can kill the process by "name" instead of by process id:
Posted on Dec 06, 2008
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Nov 15, 2013 | Compaq Computers & Internet
on Mar 15, 2010 | Computers & Internet
Sep 07, 2011 | Computers & Internet
Mar 01, 2011 | Dell OptiPlex GX110 PC Desktop
Jan 20, 2011 | E-Machines (T2958) PC Desktop
Dec 29, 2010 | Sonic Computers & Internet
Dec 06, 2010 | Computers & Internet
Mar 15, 2010 | Sony VAIO PCV-W600G PC Desktop
Apr 07, 2009 | Acer Computers & Internet
Feb 07, 2009 | E-Machines eMachines Desktop PC
49 people viewed this question
Usually answered in minutes!