Results 1 to 3 of 3

Thread: shutting down with windows

  1. #1
    New Member
    Join Date
    Jan 02
    Posts
    3

    shutting down with windows

    I an using msghook.dll to detect a windows shutdown, and that works great. My question is what is the correct sequence of actions after the message has been sent to my program? I do my housekeeping, then what?

    Thanks in advance.

  2. #2
    Super Moderator Hack's Avatar
    Join Date
    Aug 01
    Location
    Searching for mendhak
    Posts
    58,283
    I'm not sure I understand what you are looking for. Your application begins its shutdown, you do your housekeeping then it closes.

    ?
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

  3. #3
    New Member
    Join Date
    Jan 02
    Posts
    3
    In my before message event, I close my connection to the server. Do I try to close now, or do I reply with a false (saying that shutdown processing should continue) and wait for the WM_CLOSE method to close? I can't seem to get the sequence right, either I get the "this program is not responding" message, or I improperly respond and the shutdown sequence is stopped.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •