shutdown in windows

Discussion in 'Python' started by hyperbob, Sep 10, 2004.

  1. hyperbob

    hyperbob Guest

    Hello,

    1. Does anyone know how do I know when windows tries to kill my
    process and what I can do to reduce the damage it will cause? Do I
    have some time gap to finish the process cleanly? I understood it's
    somehow related to catching the WM_CLOSE message from windows but I
    couldn't find an explanation of a mechanism that allows me to do so.
    My process is a background process with no gui or console window, but
    I would also like to be able to do so in a console application.

    2. Are there any useful general traditional techniques for making a
    process be able to deal with an unclean termination, or is it
    completely different for each case?

    Thanks,
    Bob
     
    hyperbob, Sep 10, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. N. Hamacher

    Recognize Windows Shutdown

    N. Hamacher, Jun 21, 2004, in forum: Java
    Replies:
    2
    Views:
    3,496
    Mark Thornton
    Jun 21, 2004
  2. Austin

    How to detect windows shutdown

    Austin, Apr 6, 2005, in forum: Python
    Replies:
    4
    Views:
    564
    vincent wehren
    Apr 7, 2005
  3. Austin

    Detect windows shutdown

    Austin, Jun 22, 2005, in forum: Python
    Replies:
    2
    Views:
    673
    Chris Lambacher
    Jun 23, 2005
  4. Stefan Krah
    Replies:
    0
    Views:
    744
    Stefan Krah
    Jan 11, 2006
  5. Replies:
    7
    Views:
    503
Loading...

Share This Page