How to close a process in win32

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neil Benn

    How to close a process in win32

    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 TerminateProces s 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/de...teprocess.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 : benn@cenix-bioscience.com
    Cenix Website : http://www.cenix-bioscience.com


Working...