How to close a process in win32

N

Neil Benn

Hello,

I'd make a call between the processes - you can have the
deamon listen on a port and the GUI app can then send a shutdown message
onto that port (there are obviously much fancier ways of doing this - I
just picked the most bread and butter one). This will allow you to shut
down your deamon in an organised fashion - I don't know if the terminate
process functions calls the TerminateProcess function in the win32api
but it is not a recommended way of closing your process.

If you wish more info on closing your app in win32 goto -
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/terminateprocess.asp).


Cheers,

Neil

--

Neil Benn
Senior Automation Engineer
Cenix BioScience
BioInnovations Zentrum
Tatzberg 46
D-01307
Dresden
Germany

Tel : +49 (0)351 4173 154
e-mail : (e-mail address removed)
Cenix Website : http://www.cenix-bioscience.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ConfigParser Keys 1
__eq__ on a dict 9
Plone FAQ 1
UML Tools 1
Python Twain 0
Pyhton Interpreter Startup time 16
Use of Ruby in Laboratory Automation 1
Oddity is shutil.copyfileobj 0

Members online

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top