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:
Oct 05, 2015 | Sewing Machines
Mar 11, 2012 | Power Acoustik MOFO-12 Car Subwoofer
May 24, 2011 | Samsung Galaxy Tab Tablet PC
Jan 07, 2011 | Kyocera Office Equipment & Supplies
Dec 13, 2009 | Kenwood KAC-8104D Car Audio Amplifier
Jan 26, 2009 | Sharp VC-A554U VHS VCR
May 15, 2008 | Sharp VC-A412U VHS VCR
Aug 07, 2007 | Symbol LS 4000i Handheld
49 people viewed this question
Usually answered in minutes!