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
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